iking-web-ui-pro 0.2.39 → 0.2.40

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
@@ -31,7 +31,7 @@
31
31
  v-if="item[propsField.children]?.length && item.show"\r
32
32
  @click="changeShow(item, index)"\r
33
33
  class="ikapprove icon-a-putongjiantoushouqi"\r
34
- ></i> `),(ce=W[c.propsField.children])!=null&&ce.length&&W.show?(f.openBlock(),f.createBlock(f.unref(cr),{key:1,class:"ikapprove",onClick:q=>V(W,K),name:"iksvg_shouqi"},null,8,["onClick"])):f.createCommentVNode("v-if",!0)],14,Die)]),f.createElementVNode("ul",{class:f.normalizeClass(E(K))},[f.createElementVNode("div",{id:`children${K}`},[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(W[c.propsField.children],(q,X)=>(f.openBlock(),f.createElementBlock("li",{class:f.normalizeClass(T(K,X)),style:f.normalizeStyle(c.needClick?"cursor: pointer;":""),key:X,onClick:Ce=>N(q,K+1+"-"+(X+1))},f.toDisplayString(q.name),15,Rie))),128))],8,Oie)],2)])}),128))]))}}),Hwe="",Iie=Zs(Vs(Nie,[["__scopeId","data-v-240cff4f"]])),s$=c=>c%1===0?c.toString():c.toFixed(2),Bie=(c,r=2)=>{if(c===void 0)return"";if(c===0)return"0 B";const a=["B","KB","MB","GB","TB"],l=Math.floor(Math.log(c)/Math.log(1024));let i=c/Math.pow(1024,l);return(i%1===0?i.toFixed(r||0):i.toFixed(r))+" "+a[l]},Yv=(c,r)=>r?r.startsWith("http")?r:`${c||location.origin}${r}`:"",Uwe="",HQ=c=>({nodeType:{发起人节点:"INITIATOR",审批节点:"APPROVE",抄送节点:"CARBON_COPY",办理节点:"DISPOSE",分支节点:"BRANCH",条件节点:"CONDITION",结束节点:"END",并行分支:"PARALLEL",子流程:"SUB_PROCESS",...c.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",...c.defaultFieldMap},statusWithoutApprover:{自动通过:"AUTO_PASS",自动拒绝:"AUTO_REJECT",自动转交管理员:"TRANSMIT_TO_MANAGER",指定人员审批:"SPECIFIED_USER",...c.statusWithoutApprover},multiple:!1,chooseType:[],statusOption:{发起:"INITIATE",等待:"WAIT",同意:"PASS",撤销:"REVOKE",拒绝:"REJECT",转交:"TRANSFER",加签:"APPEND",退回:"BACK",评论:"COMMENT",待执行:"WAITING",执行中:"RUNNING",...c.defaultStatus},listData:[]}),zQ=(c,r,a)=>{let l="";switch(r){case c.nodeType.审批节点:a&&a.length==1?l="ikapprove-ziyuan":l="ikapprove-shenpi";break;case c.nodeType.办理节点:l="ikapprove-bianji";break;case c.nodeType.抄送节点:l="ikapprove-chaosong";break;case c.nodeType.并行分支:l="ikapprove-fenzhi";break;case c.nodeType.子流程:l="ikapprove-ziliucheng1";break;default:l="ikapprove-ziyuan"}return`ikapprove ${l}`},UQ=["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"],$2=c=>{const r=f.inject("loadUrl"),a=f.computed(()=>c.loadUrl||c.fileUrl||(r==null?void 0:r.value)),l=f.inject("uploadUrl"),i=f.computed(()=>c.action||c.uploadUrl||(l==null?void 0:l.value)),m=f.inject("token"),v=f.computed(()=>c.token||(m==null?void 0:m.value)),C=f.inject("onlyofficeConfig"),E=f.computed(()=>c.onlyofficeConfig||(C==null?void 0:C.value)),T=f.inject("userInfo"),N=f.computed(()=>c.userInfo||(T==null?void 0:T.value)),V=[...UQ,...UQ.map(U=>U.toLocaleUpperCase())];return{cLoadUrl:a,cUploadUrl:i,cToken:v,cOnlyofficeConfig:E,cUserInfo:N,cOnlyofficePreviewType:V}},r$=c=>(f.pushScopeId("data-v-48f27627"),c=c(),f.popScopeId(),c),Mie={class:"approveProcess",id:"approveProcess"},Pie=["id"],Lie={class:"topBlock"},Fie={class:"left"},$ie={class:"nodeBg"},Vie=["src"],Hie={class:"right"},zie={class:"topInfo"},Uie={key:0},Wie={key:0,class:"main-text"},jie={class:"name"},Gie={key:0},Zie={key:0},qie={key:1},Kie=r$(()=>f.createElementVNode("span",{class:"red",style:{margin:"0px 5px"}}," 退回至",-1)),Yie={key:0},Xie={key:0},Qie={key:1},Jie={key:1},eae=r$(()=>f.createElementVNode("div",{class:"main-text"},"抄送人员",-1)),tae={class:"name"},nae={key:0},oae={style:{color:"#000"}},sae={class:"blue",style:{"margin-left":"5px","font-size":"12px"}},rae={key:1},iae={key:0,class:"blue",style:{"font-size":"12px"}},aae={key:1},lae={key:0,class:"blue",style:{"font-size":"12px"}},cae={key:1,class:"blue",style:{"font-size":"12px"}},uae={class:"time"},dae={key:0},fae={key:1},mae=["onClick"],hae=["onClick"],gae={key:0,class:"opinion"},pae={key:0},vae={key:1},yae=r$(()=>f.createElementVNode("span",{class:"ik-text-primary"},"添加审批人",-1)),bae={style:{color:"var(--el-text-color-primary)","margin-left":"8px"}},Cae={key:2,class:"annexImage"},_ae={key:3,class:"approveList"},wae={class:"nodeBg-list"},Sae=["src"],Eae={key:1},kae={key:2,class:"ikapprove ikapprove-duihao2 green read"},xae=["title"],Aae={key:0,class:"branch"},Tae={class:"branch-card"},Dae={class:"branch-name"},Oae={name:"IkingApprovalProcessDetail"},Rae=f.defineComponent({...Oae,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(c,{emit:r}){const a=c,{cLoadUrl:l}=$2(a),i=f.reactive(HQ(a));f.watch(()=>a.dataList,N=>{N&&(f.nextTick(()=>{i.listData=N}),setTimeout(()=>{a.returnNode.length&&m()},500))},{deep:!0}),f.onMounted(()=>{a.dataList.length&&(i.listData=a.dataList,setTimeout(()=>{a.returnNode.length&&m()},500))});const m=()=>{let N=null;if(a!=null&&a.returnNode)for(N of a==null?void 0:a.returnNode){if(isNaN(N[1]))return;let V=Array.from(new Array(N[1]+1).keys()).slice(N[0]);f.nextTick(()=>{v(V)})}},v=N=>{var ce,q,X;let V=document.createElement("div"),U=document.getElementById("approveProcess"),z=0,W=(ce=document.getElementById(`${N[0]}`))==null?void 0:ce.offsetWidth,K=(q=document.getElementById(`${N[0]}`))==null?void 0:q.offsetLeft,Z=(X=document.getElementById(`${N[0]}`))==null?void 0:X.offsetTop;N.forEach(Ce=>{let st=document.getElementById(`${Ce}`);z+=st.offsetHeight}),setTimeout(()=>{V.style.width=W+32+"px",V.style.height=z+"px",V.style.background="#f9f9f9",V.style.position="absolute",V.style.top=Z-16+"px",V.style.left=K-16+"px",V.style.zIndex=-1,U==null||U.appendChild(V)})},C=(N,V,U)=>{var K,Z;let z=(K=i.listData)==null?void 0:K.findIndex(ce=>ce.lineType=="dashed"),W="";if(U&&((Z=U[i.defaultFile.approvePersonList])==null?void 0:Z.findIndex(q=>q[i.defaultFile.approveStatus]===i.statusOption.执行中))>-1)return"ikapprove ikapprove-dengdai orange";switch(N){case i.statusOption.发起:W="ikapprove-duihao2 green";break;case i.statusOption.执行中:W=z==V?"ikapprove-dengdai orange":"";break;case i.statusOption.同意:W="ikapprove-duihao2 green";break;case i.statusOption.拒绝:W="ikapprove-jujue red";break;case i.statusOption.转交:W="ikapprove-zhuanjiao blue";break;case i.statusOption.加签:W="ikapprove-tianjia blue";break;case i.statusOption.退回:W="ikapprove-s_fanhui2 red";break;case i.statusOption.评论:W="ikapprove-pinglun1 blue";break}return`ikapprove ${W}`},E=(N,V)=>{N.show=!N.show;let U=document.getElementById(`${N[i.defaultFile.nodeId]}`),z=Array.from(U==null?void 0:U.getElementsByClassName("approveList"));for(let W of z)W.style.display=V},T=N=>Yv(l.value,N);return(N,V)=>{const U=f.resolveComponent("el-image"),z=f.resolveComponent("IkingApprovalProcessDetail");return f.openBlock(),f.createElementBlock("div",Mie,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(i.listData,(W,K)=>{var Z,ce,q,X,Ce,st,Ne,ee,xe,et;return f.openBlock(),f.createElementBlock("div",{class:"approveBlock",id:W[i.defaultFile.nodeId],key:W[i.defaultFile.nodeId]},[f.createElementVNode("div",Lie,[f.createElementVNode("div",Fie,[f.createElementVNode("span",$ie,[f.createCommentVNode(' 用户列表长度等于1, :src="formatUrl(it)"并且存在头像 '),((Z=W[i.defaultFile.approvePersonList])==null?void 0:Z.length)==1&&W[i.defaultFile.approvePersonList][0].userAvatar?(f.openBlock(),f.createElementBlock("img",{key:0,style:{width:"100%",height:"100%","border-radius":"10px"},src:T(W[i.defaultFile.approvePersonList][0].userAvatar),alt:""},null,8,Vie)):(f.openBlock(),f.createElementBlock(f.Fragment,{key:1},[f.createCommentVNode(" 否则显示对应节点 "),f.createElementVNode("i",{class:f.normalizeClass(f.unref(zQ)(i,W[i.defaultFile.nodeType],W[i.defaultFile.approvePersonList]))},null,2)],2112)),f.createCommentVNode(" 审批状态图标 "),f.createElementVNode("i",{class:f.normalizeClass(C(W[i.defaultFile.approveStatus],K,W))},null,2)])]),f.createElementVNode("div",Hie,[f.createElementVNode("div",zie,[f.createElementVNode("div",null,[f.createCommentVNode(" 不是抄送节点 "),i.nodeType.抄送节点!==W[i.defaultFile.nodeType]?(f.openBlock(),f.createElementBlock("div",Uie,[f.createCommentVNode(" 撤销,评论不显示节点名称 "),W[i.defaultFile.approveStatus]!=i.statusOption.撤销&&W[i.defaultFile.approveStatus]!=i.statusOption.评论&&W[i.defaultFile.nodeType]!==i.nodeType.并行分支?(f.openBlock(),f.createElementBlock("div",Wie,f.toDisplayString(W[i.defaultFile.nodeTypeName]),1)):f.createCommentVNode("v-if",!0),f.createCommentVNode(" 名字+审批状态 "),f.createElementVNode("div",jie,[f.createCommentVNode(" 已审批节点文本 "),W[i.defaultFile.lineType]=="solid"?(f.openBlock(),f.createElementBlock("div",Gie,[f.createElementVNode("span",{style:f.normalizeStyle({color:W[i.defaultFile.approveStatus]==i.statusOption.评论?"#000":""})},f.toDisplayString(W[i.defaultFile.originator]),5),f.createCommentVNode(" 发起,退回不显示状态 "),W[i.defaultFile.approveStatusName]&&W[i.defaultFile.approveStatus]!=i.statusOption.发起&&W[i.defaultFile.approveStatus]!=i.statusOption.退回?(f.openBlock(),f.createElementBlock("span",Zie,f.toDisplayString(W[i.defaultFile.approveStatus]==i.statusOption.评论?" 添加了评论":W!=null&&W.nodeActionAliasName?`(已${W.nodeActionAliasName})`:`(${W[i.defaultFile.approveStatusName]})`),1)):f.createCommentVNode("v-if",!0),f.createCommentVNode(" 退回状态显示 "),W[i.defaultFile.approveStatus]==i.statusOption.退回?(f.openBlock(),f.createElementBlock("span",qie,[Kie,f.createTextVNode(" "+f.toDisplayString(W[i.defaultFile.backToInstanceNodeName]||W[i.defaultFile.backToRecordNodeName]),1)])):f.createCommentVNode("v-if",!0)])):(f.openBlock(),f.createElementBlock(f.Fragment,{key:1},[f.createCommentVNode(" 待审批节点 "),f.createElementVNode("div",null,[((ce=W[i.defaultFile.approvePersonList])==null?void 0:ce.length)==1?(f.openBlock(),f.createElementBlock("span",Yie,[f.createTextVNode(f.toDisplayString(W[i.defaultFile.originator])+" ",1),W[i.defaultFile.approveStatus]==i.statusOption.等待?(f.openBlock(),f.createElementBlock("span",Xie,f.toDisplayString(W!=null&&W.nodeActionAliasName?`(已${W.nodeActionAliasName})`:`(${W[i.defaultFile.approveStatusName]})`),1)):f.createCommentVNode("v-if",!0)])):W[i.defaultFile.approvePersonList]?(f.openBlock(),f.createElementBlock("span",Qie,f.toDisplayString(`${(q=W[i.defaultFile.approvePersonList])==null?void 0:q.length}人${W[i.defaultFile.approveTypeName]}`),1)):f.createCommentVNode("v-if",!0)])],2112))])])):(f.openBlock(),f.createElementBlock("div",Jie,[eae,f.createElementVNode("div",tae,[f.createCommentVNode(" 抄送一人时 "),((X=W[i.defaultFile.approvePersonList])==null?void 0:X.length)==1?(f.openBlock(),f.createElementBlock("span",nae,[f.createElementVNode("span",null,[f.createTextVNode("已抄送给 "),f.createElementVNode("span",oae,f.toDisplayString(W[i.defaultFile.approvePersonList][0].userName),1)]),f.createElementVNode("span",sae,f.toDisplayString(W[i.defaultFile.approvePersonList][0].status==="END"?"已读":"未读"),1)])):f.createCommentVNode("v-if",!0),f.createCommentVNode(" 抄送多人时 "),((Ce=W[i.defaultFile.approvePersonList])==null?void 0:Ce.length)>1?(f.openBlock(),f.createElementBlock("span",rae,[f.createTextVNode(f.toDisplayString(`已抄送${(st=W[i.defaultFile.approvePersonList])==null?void 0:st.length}人`)+" ",1),W[i.defaultFile.allRead]?(f.openBlock(),f.createElementBlock("span",iae," 全部已读 ")):(f.openBlock(),f.createElementBlock("span",aae,[W[i.defaultFile.read]?f.createCommentVNode("v-if",!0):(f.openBlock(),f.createElementBlock("span",lae," 全部未读 ")),W[i.defaultFile.read]?(f.openBlock(),f.createElementBlock("span",cae,f.toDisplayString(W[i.defaultFile.read])+"人已读 ",1)):f.createCommentVNode("v-if",!0)]))])):f.createCommentVNode("v-if",!0)])]))]),f.createElementVNode("div",uae,[f.createCommentVNode(" 不是抄送节点,展示时间 "),W[i.defaultFile.nodeType]!=i.nodeType.抄送节点&&W[i.defaultFile.approveStatus]!==i.statusOption.等待?(f.openBlock(),f.createElementBlock("span",dae,f.toDisplayString(f.unref(To.ikDate).toDateTime(W[i.defaultFile.operationTime],"MM/DD HH:mm")),1)):f.createCommentVNode("v-if",!0),f.createCommentVNode(" 是抄送节点,并且抄送人员大于1时,展示图标 "),W[i.defaultFile.nodeType]==i.nodeType.抄送节点&&((Ne=W[i.defaultFile.approvePersonList])==null?void 0:Ne.length)>1?(f.openBlock(),f.createElementBlock("span",fae,[W!=null&&W.show?(f.openBlock(),f.createElementBlock("i",{key:0,class:"ikapprove ikapprove-a-putongjiantouzhankai",onClick:tt=>E(W,"grid")},null,8,mae)):(f.openBlock(),f.createElementBlock("i",{key:1,onClick:tt=>E(W,"none"),class:"ikapprove ikapprove-a-putongjiantoushouqi"},null,8,hae))])):f.createCommentVNode("v-if",!0)])])])]),f.createElementVNode("div",{class:"bottomBlock",style:f.normalizeStyle({borderLeft:K==i.listData.length-1?"":`2px ${W[i.defaultFile.lineType]||"dashed"} var(--el-border-color)`})},[f.createCommentVNode(" 审批意见 "),W[i.defaultFile.approveOpinion]||W[i.defaultFile.approveStatus]==i.statusOption.加签?(f.openBlock(),f.createElementBlock("div",gae,[W[i.defaultFile.approveOpinion]?(f.openBlock(),f.createElementBlock("span",pae,f.toDisplayString(W[i.defaultFile.approveOpinion]),1)):f.createCommentVNode("v-if",!0),W[i.defaultFile.approveStatus]==i.statusOption.加签?(f.openBlock(),f.createElementBlock("span",vae,[yae,(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(W[i.defaultFile.countersignPer],(tt,je)=>(f.openBlock(),f.createElementBlock("span",bae,f.toDisplayString(tt==null?void 0:tt.userName)+f.toDisplayString(je<W[i.defaultFile.countersignPer].length-1?"、":""),1))),256))])):f.createCommentVNode("v-if",!0)])):f.createCommentVNode("v-if",!0),f.createCommentVNode(" 附件 "),(ee=W[i.defaultFile.attachment])!=null&&ee.length?(f.openBlock(),f.createBlock(f.unref(TR),{key:1,list:W[i.defaultFile.attachment]},null,8,["list"])):f.createCommentVNode("v-if",!0),f.createCommentVNode(" 附件图片 "),(xe=W[i.defaultFile.attachmentImg])!=null&&xe.length?(f.openBlock(),f.createElementBlock("div",Cae,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(W[i.defaultFile.attachmentImg],(tt,je)=>(f.openBlock(),f.createElementBlock("div",{class:"image",key:je},[f.createVNode(U,{src:T(tt),"preview-src-list":W[i.defaultFile.attachmentImg].map(be=>T(be)),fit:"cover","z-index":"9999","zoom-rate":1.2,alt:T(tt)},null,8,["src","preview-src-list","alt"])]))),128))])):f.createCommentVNode("v-if",!0),f.createCommentVNode(" 抄送节点或是等待审批状态并且列表长度大于1 "),(W[i.defaultFile.nodeType]==i.nodeType.抄送节点||W[i.defaultFile.approveStatus]==i.statusOption.等待)&&((et=W[i.defaultFile.approvePersonList])==null?void 0:et.length)>1?(f.openBlock(),f.createElementBlock("div",_ae,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(W[i.defaultFile.approvePersonList],tt=>(f.openBlock(),f.createElementBlock("div",{class:"perBlock",key:tt.userName},[f.createElementVNode("span",wae,[tt.userAvatar?(f.openBlock(),f.createElementBlock("img",{key:0,style:{width:"100%",height:"100%","border-radius":"50%"},src:T(tt.userAvatar),alt:""},null,8,Sae)):(f.openBlock(),f.createElementBlock("span",Eae,f.toDisplayString(tt.userName.slice(-2)),1)),tt.status==="END"?(f.openBlock(),f.createElementBlock("i",kae)):f.createCommentVNode("v-if",!0)]),f.createElementVNode("div",{class:"main-text",title:tt.userName},f.toDisplayString(tt.userName),9,xae)]))),128))])):f.createCommentVNode("v-if",!0)],4),W[i.defaultFile.nodeType]===i.nodeType.并行分支?(f.openBlock(),f.createElementBlock("div",Aae,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(W[i.defaultFile.parallelInstances],tt=>(f.openBlock(),f.createElementBlock("div",Tae,[f.createElementVNode("div",Dae,f.toDisplayString(tt.name),1),f.createVNode(z,f.mergeProps({ref_for:!0},a,{"data-list":(tt==null?void 0:tt.processInstanceNodes)||[]}),null,16,["data-list"])]))),256))])):f.createCommentVNode("v-if",!0)],8,Pie)}),128))])}}}),Wwe="",Nae=Zs(Vs(Rae,[["__scopeId","data-v-48f27627"]])),WQ=c=>(f.pushScopeId("data-v-0f9a3920"),c=c(),f.popScopeId(),c),Iae={class:"approveProcess",id:"approveProcess"},Bae={class:"node"},Mae={class:"nodeBg"},Pae={key:0,class:"info"},Lae={class:"explain"},Fae={key:0},$ae={key:0},Vae={key:1},Hae={key:0},zae={key:1},Uae={class:"personlist"},Wae={style:{width:"58px"}},jae={class:"avatar"},Gae=["src"],Zae={key:1,class:"nodeBg"},qae=["onClick"],Kae=["title"],Yae={key:0,class:"sign"},Xae={key:0},Qae=["onClick"],Jae={key:0,class:"required"},ele=WQ(()=>f.createElementVNode("i",{class:"ikapprove ikapprove-xinzeng"},null,-1)),tle={key:1,class:"node-branchs"},nle=WQ(()=>f.createElementVNode("div",{class:"branch-line"},null,-1)),ole={style:{flex:"1"}},sle={class:"node-branch"},rle={name:"IkApprovalProcess"},ile=f.defineComponent({...rle,props:{pickerUrl:{type:String,default:""},loadUrl:{type:String,default:""},dataList:{type:Array,default:()=>[]},defaultNodeType:{type:Object,default:()=>({})},defaultFieldMap:{type:Object,default:()=>({})},statusWithoutApprover:{type:Object,default:()=>({})}},setup(c,{expose:r}){const a=c,{cLoadUrl:l}=$2(a),i=To.ikStore.local.getItem("token")||"Bearer 841b7a7b0d9c4021b1655192c28ac61b",m=f.ref("sys");function v(K){const Z=window.location.search;return new URLSearchParams(Z).get(K)}function C(){var Z;const K=v("xTenant")||((Z=To.ikStore.local.getItem("tenant"))==null?void 0:Z.code);K&&(m.value=K)}C();const E=f.reactive(HQ(a)),T=async K=>{var Z;if(K.multiple=!K[E.defaultFile.singleApproval]||K[E.defaultFile.isShowAddCopy],K.handList=K[E.defaultFile.approvePersonList]?K[E.defaultFile.approvePersonList]:[],K[E.defaultFile.nodeType]===E.nodeType.抄送节点)K.handList.forEach(ce=>{ce.elementName||(ce.elementName=ce.userName,ce.elementId=ce.userId,ce.avatar=ce.userAvatar),ce.elementType="USER",ce.disabled=!0}),K.chooseType=["user"],K.userList=[],K.depList=[];else switch(K[E.defaultFile.initiatorSpecifiedScopeType]){case"ALL":K.chooseType=["dep_user"],K.userList=[],K.depList=[];break;default:K.chooseType=["user"],K.userList=K.userList?K.userList:(Z=K[E.defaultFile.initiatorSpecifiedScope])==null?void 0:Z.map(ce=>({...ce,elementName:(ce==null?void 0:ce.executorName)||(ce==null?void 0:ce.userName),elementId:(ce==null?void 0:ce.executorId)||(ce==null?void 0:ce.userId),avatar:((ce==null?void 0:ce.executorAvatar)||(ce==null?void 0:ce.userAvatar))&&N((ce==null?void 0:ce.executorAvatar)||(ce==null?void 0:ce.userAvatar))||"",elementType:"USER"}))}f.nextTick(()=>{K.isShow=!0})},N=K=>{let Z="";return K.includes("http")||K.includes("https")?Z=K:Z=l.value?`${K.includes(l.value)?"":l.value}${K}`:`${location.origin+location.pathname}server/oss/download?fileUrl=${K}`,Z},V=(K,Z)=>{a.dataList[Z].handList=K.list;let q=(a.dataList[Z][E.defaultFile.approvePersonList]||[]).filter(Ce=>!Ce.canDele),X=K.list.map(Ce=>({...Ce,userName:Ce.elementName,userAvatar:Ce.avatar,canDele:!0}));a.dataList[Z][E.defaultFile.approvePersonList]=q.concat(X)},U=(K,Z)=>{a.dataList[K][E.defaultFile.approvePersonList].splice(Z,1),a.dataList[K].handList=a.dataList[K][E.defaultFile.approvePersonList]},z=()=>{let K=!0;return a.dataList.forEach(Z=>{var ce;Z.required=!1,Z[E.defaultFile.nodeType]==E.nodeType.审批节点&&Z[E.defaultFile.isShowAdd]&&((ce=Z[E.defaultFile.approvePersonList])!=null&&ce.length||(K=!1,Z.required=!0))}),K},W=f.computed(()=>({propOption:{name:"elementName",id:"elementId",type:"elementType",avatar:"avatar"},typeOption:{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},api:{methods:"post",url:a.pickerUrl,headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:i,"X-Tenant":m.value}}}));return r({requiredVerification:z}),(K,Z)=>{const ce=f.resolveComponent("IkApprovalProcess");return f.openBlock(),f.createElementBlock("div",Iae,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(a.dataList,(q,X)=>{var Ce,st,Ne,ee;return f.openBlock(),f.createElementBlock("div",{class:"content",key:q.id},[f.createCommentVNode(" 审批节点类型 "),f.createElementVNode("div",Bae,[f.createElementVNode("span",Mae,[f.createElementVNode("i",{class:f.normalizeClass(f.unref(zQ)(E,q[E.defaultFile.nodeType]))},null,2)]),f.createElementVNode("div",{class:"line",style:f.normalizeStyle({"border-left":X===a.dataList.length-1?"":"2px solid var(--el-border-color)"})},null,4)]),q[E.defaultFile.nodeType]!==E.nodeType.并行分支?(f.openBlock(),f.createElementBlock("div",Pae,[f.createElementVNode("div",null,[f.createElementVNode("div",null,f.toDisplayString(q[E.defaultFile.nodeTypeName]),1),f.createElementVNode("div",Lae,[f.createCommentVNode(" 抄送节点 "),q[E.defaultFile.nodeType]==E.nodeType.抄送节点?(f.openBlock(),f.createElementBlock("span",Fae,[q[E.defaultFile.approvePersonList].length?(f.openBlock(),f.createElementBlock("span",$ae,f.toDisplayString(`抄送${q[E.defaultFile.approvePersonList].length}人`),1)):f.createCommentVNode("v-if",!0),q[E.defaultFile.isShowAdd]?(f.openBlock(),f.createElementBlock("span",Vae,",可添加抄送人")):f.createCommentVNode("v-if",!0)])):(f.openBlock(),f.createElementBlock(f.Fragment,{key:1},[f.createCommentVNode(" 审批节点 "),f.createElementVNode("span",null,[f.createCommentVNode(" 存在审批人时 "),(Ce=q[E.defaultFile.approvePersonList])!=null&&Ce.length?(f.openBlock(),f.createElementBlock("span",Hae,f.toDisplayString(((st=q[E.defaultFile.approvePersonList])==null?void 0:st.length)==1?"1人审批":`${(Ne=q[E.defaultFile.approvePersonList])==null?void 0:Ne.length}人${q[E.defaultFile.multiExecutorTypeName]}`),1)):[E.statusWithoutApprover.自动通过,E.statusWithoutApprover.自动拒绝].includes(q[E.defaultFile.approveType])?(f.openBlock(),f.createElementBlock("span",zae,f.toDisplayString(q[E.defaultFile.approveTypeName]),1)):q[E.defaultFile.executorEmptyStrategy]&&q[E.defaultFile.executorEmpty]?(f.openBlock(),f.createElementBlock(f.Fragment,{key:2},[f.createCommentVNode(" 没有审批人,并且有指定默认审批方式 "),f.createElementVNode("span",null,[f.createTextVNode(" 未找到审批人,"),f.createElementVNode("span",null,f.toDisplayString(q[E.defaultFile.executorEmptyStrategy]==E.statusWithoutApprover.自动通过?"将自动通过":q[E.defaultFile.executorEmptyStrategy]==E.statusWithoutApprover.自动转交管理员?"自动转交给管理员":q[E.defaultFile.executorEmptyStrategy]==E.statusWithoutApprover.指定人员审批?`将自动转给指定成员${q[E.defaultFile.reserveExecutorUsers]&&q[E.defaultFile.reserveExecutorUsers][0].userName}`:""),1)])],2112)):[E.nodeType.并行分支,E.nodeType.子流程].includes(q[E.defaultFile.nodeType])?f.createCommentVNode("v-if",!0):(f.openBlock(),f.createElementBlock("span",{key:3,class:f.normalizeClass(q.required?"warn":"")}," 请选择"+f.toDisplayString(q[E.defaultFile.nodeType]===E.nodeType.办理节点?"办理人":"审批人"),3))])],2112))])]),f.createElementVNode("div",Uae,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(q[E.defaultFile.approvePersonList],(xe,et)=>{var tt;return f.openBlock(),f.createElementBlock("div",{class:"list",key:xe.userId},[f.createElementVNode("div",Wae,[f.createElementVNode("div",jae,[xe.userAvatar?(f.openBlock(),f.createElementBlock("img",{key:0,src:N(xe.userAvatar),alt:""},null,8,Gae)):(f.openBlock(),f.createElementBlock("div",Zae,[f.createElementVNode("span",null,f.toDisplayString(xe.userName.slice(-2)),1)])),xe.canDele?(f.openBlock(),f.createElementBlock("i",{key:2,onClick:je=>U(X,et),class:"ikapprove ikapprove-shanchu1"},null,8,qae)):f.createCommentVNode("v-if",!0)]),f.createElementVNode("div",{class:"name",title:xe.userName},f.toDisplayString(xe.userName),9,Kae)]),f.createCommentVNode(" 显示添加人按钮,不是单选且已选中一个人的情况,显示图标 "),q[E.defaultFile.isShowAdd]&&!(q[E.defaultFile.singleApproval]&&((tt=q[E.defaultFile.approvePersonList])==null?void 0:tt.length)==1)?(f.openBlock(),f.createElementBlock("span",Yae,[f.createCommentVNode(" 抄送默认 "),q[E.defaultFile.nodeType]==E.nodeType.抄送节点?(f.openBlock(),f.createElementBlock("span",Xae,"+")):(f.openBlock(),f.createElementBlock(f.Fragment,{key:1},[f.createCommentVNode(" 审批 "),f.createElementVNode("span",null,f.toDisplayString(q[E.defaultFile.multiExecutorType]=="ANY"?"/":q[E.defaultFile.multiExecutorType]=="ALL"?"+":">"),1)],2112))])):f.createCommentVNode("v-if",!0)])}),128)),f.createCommentVNode(" 显示添加人按钮,不是单选且已选中一个人的情况,显示按钮 (item[state.defaultFile.isShowAdd] && "),q[E.defaultFile.isShowAdd]&&!(q[E.defaultFile.singleApproval]&&((ee=q[E.defaultFile.approvePersonList])==null?void 0:ee.length)==1)||q[E.defaultFile.isShowAddCopy]?(f.openBlock(),f.createElementBlock("span",{key:0,class:"addBg",onClick:xe=>T(q)},[q[E.defaultFile.nodeType]==E.nodeType.审批节点?(f.openBlock(),f.createElementBlock("span",Jae)):f.createCommentVNode("v-if",!0),ele],8,Qae)):f.createCommentVNode("v-if",!0),f.createCommentVNode(" 添加人组件 "),f.createVNode(f.unref(yA),f.mergeProps({modelValue:q.handList,"onUpdate:modelValue":xe=>q.handList=xe,show:q.isShow,"onUpdate:show":xe=>q.isShow=xe,onOk:xe=>V(xe,X),multiple:q.multiple,"dep-list":q.depList,"user-list":q.userList,"organization-list":q.organizationList,ref_for:!0},W.value,{chooseType:q.chooseType}),null,16,["modelValue","onUpdate:modelValue","show","onUpdate:show","onOk","multiple","dep-list","user-list","organization-list","chooseType"])])])):(f.openBlock(),f.createElementBlock("div",tle,[nle,f.createElementVNode("div",ole,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(q.parallelInstances,(xe,et)=>(f.openBlock(),f.createElementBlock("div",{key:et,class:f.normalizeClass(`branch branch-${et}`)},[f.createElementVNode("div",sle,f.toDisplayString(xe.name),1),f.createVNode(ce,f.mergeProps({ref_for:!0},a,{dataList:xe.processInstanceNodes,style:{"margin-left":"20px"}}),null,16,["dataList"])],2))),128))])]))])}),128))])}}}),Gwe="",ale=Zs(Vs(ile,[["__scopeId","data-v-0f9a3920"]]));var jQ={code:"zh-cn",week:{dow:1,doy:4},buttonText:{prev:"上月",next:"下月",today:"今天",year:"年",month:"月",week:"周",day:"日",list:"日程"},weekText:"周",allDayText:"全天",moreLinkText(c){return"另外 "+c+" 个"},noEventsText:"没有事件显示"},jO,Es,GQ,ZQ,PS,V2,qQ,KQ,YQ,GO={},XQ=[],lle=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Xv(c,r){for(var a in r)c[a]=r[a];return c}function QQ(c){var r=c.parentNode;r&&r.removeChild(c)}function rt(c,r,a){var l,i,m,v={};for(m in r)m=="key"?l=r[m]:m=="ref"?i=r[m]:v[m]=r[m];if(arguments.length>2&&(v.children=arguments.length>3?jO.call(arguments,2):a),typeof c=="function"&&c.defaultProps!=null)for(m in c.defaultProps)v[m]===void 0&&(v[m]=c.defaultProps[m]);return ZO(c,v,l,i,null)}function ZO(c,r,a,l,i){var m={type:c,props:r,key:a,ref:l,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++GQ};return i==null&&Es.vnode!=null&&Es.vnode(m),m}function Bd(){return{current:null}}function Ya(c){return c.children}function cle(c,r,a,l,i){var m;for(m in a)m==="children"||m==="key"||m in r||qO(c,m,null,a[m],l);for(m in r)i&&typeof r[m]!="function"||m==="children"||m==="key"||m==="value"||m==="checked"||a[m]===r[m]||qO(c,m,r[m],a[m],l)}function JQ(c,r,a){r[0]==="-"?c.setProperty(r,a??""):c[r]=a==null?"":typeof a!="number"||lle.test(r)?a:a+"px"}function qO(c,r,a,l,i){var m;e:if(r==="style")if(typeof a=="string")c.style.cssText=a;else{if(typeof l=="string"&&(c.style.cssText=l=""),l)for(r in l)a&&r in a||JQ(c.style,r,"");if(a)for(r in a)l&&a[r]===l[r]||JQ(c.style,r,a[r])}else if(r[0]==="o"&&r[1]==="n")m=r!==(r=r.replace(/Capture$/,"")),r=r.toLowerCase()in c?r.toLowerCase().slice(2):r.slice(2),c.l||(c.l={}),c.l[r+m]=a,a?l||c.addEventListener(r,m?tJ:eJ,m):c.removeEventListener(r,m?tJ:eJ,m);else if(r!=="dangerouslySetInnerHTML"){if(i)r=r.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(r!=="width"&&r!=="height"&&r!=="href"&&r!=="list"&&r!=="form"&&r!=="tabIndex"&&r!=="download"&&r in c)try{c[r]=a??"";break e}catch{}typeof a=="function"||(a==null||a===!1&&r.indexOf("-")==-1?c.removeAttribute(r):c.setAttribute(r,a))}}function eJ(c){PS=!0;try{return this.l[c.type+!1](Es.event?Es.event(c):c)}finally{PS=!1}}function tJ(c){PS=!0;try{return this.l[c.type+!0](Es.event?Es.event(c):c)}finally{PS=!1}}function sm(c,r){this.props=c,this.context=r}function sA(c,r){if(r==null)return c.__?sA(c.__,c.__.__k.indexOf(c)+1):null;for(var a;r<c.__k.length;r++)if((a=c.__k[r])!=null&&a.__e!=null)return a.__e;return typeof c.type=="function"?sA(c):null}function nJ(c){var r,a;if((c=c.__)!=null&&c.__c!=null){for(c.__e=c.__c.base=null,r=0;r<c.__k.length;r++)if((a=c.__k[r])!=null&&a.__e!=null){c.__e=c.__c.base=a.__e;break}return nJ(c)}}function ule(c){PS?setTimeout(c):KQ(c)}function i$(c){(!c.__d&&(c.__d=!0)&&V2.push(c)&&!KO.__r++||qQ!==Es.debounceRendering)&&((qQ=Es.debounceRendering)||ule)(KO)}function KO(){var c,r,a,l,i,m,v,C;for(V2.sort(function(E,T){return E.__v.__b-T.__v.__b});c=V2.shift();)c.__d&&(r=V2.length,l=void 0,i=void 0,v=(m=(a=c).__v).__e,(C=a.__P)&&(l=[],(i=Xv({},m)).__v=m.__v+1,a$(C,m,i,a.__n,C.ownerSVGElement!==void 0,m.__h!=null?[v]:null,l,v??sA(m),m.__h),aJ(l,m),m.__e!=v&&nJ(m)),V2.length>r&&V2.sort(function(E,T){return E.__v.__b-T.__v.__b}));KO.__r=0}function oJ(c,r,a,l,i,m,v,C,E,T){var N,V,U,z,W,K,Z,ce=l&&l.__k||XQ,q=ce.length;for(a.__k=[],N=0;N<r.length;N++)if((z=a.__k[N]=(z=r[N])==null||typeof z=="boolean"?null:typeof z=="string"||typeof z=="number"||typeof z=="bigint"?ZO(null,z,null,null,z):Array.isArray(z)?ZO(Ya,{children:z},null,null,null):z.__b>0?ZO(z.type,z.props,z.key,z.ref?z.ref:null,z.__v):z)!=null){if(z.__=a,z.__b=a.__b+1,(U=ce[N])===null||U&&z.key==U.key&&z.type===U.type)ce[N]=void 0;else for(V=0;V<q;V++){if((U=ce[V])&&z.key==U.key&&z.type===U.type){ce[V]=void 0;break}U=null}a$(c,z,U=U||GO,i,m,v,C,E,T),W=z.__e,(V=z.ref)&&U.ref!=V&&(Z||(Z=[]),U.ref&&Z.push(U.ref,null,z),Z.push(V,z.__c||W,z)),W!=null?(K==null&&(K=W),typeof z.type=="function"&&z.__k===U.__k?z.__d=E=sJ(z,E,c):E=rJ(c,z,U,ce,W,E),typeof a.type=="function"&&(a.__d=E)):E&&U.__e==E&&E.parentNode!=c&&(E=sA(U))}for(a.__e=K,N=q;N--;)ce[N]!=null&&(typeof a.type=="function"&&ce[N].__e!=null&&ce[N].__e==a.__d&&(a.__d=iJ(l).nextSibling),cJ(ce[N],ce[N]));if(Z)for(N=0;N<Z.length;N++)lJ(Z[N],Z[++N],Z[++N])}function sJ(c,r,a){for(var l,i=c.__k,m=0;i&&m<i.length;m++)(l=i[m])&&(l.__=c,r=typeof l.type=="function"?sJ(l,r,a):rJ(a,l,l,i,l.__e,r));return r}function YO(c,r){return r=r||[],c==null||typeof c=="boolean"||(Array.isArray(c)?c.some(function(a){YO(a,r)}):r.push(c)),r}function rJ(c,r,a,l,i,m){var v,C,E;if(r.__d!==void 0)v=r.__d,r.__d=void 0;else if(a==null||i!=m||i.parentNode==null)e:if(m==null||m.parentNode!==c)c.appendChild(i),v=null;else{for(C=m,E=0;(C=C.nextSibling)&&E<l.length;E+=1)if(C==i)break e;c.insertBefore(i,m),v=m}return v!==void 0?v:i.nextSibling}function iJ(c){var r,a,l;if(c.type==null||typeof c.type=="string")return c.__e;if(c.__k){for(r=c.__k.length-1;r>=0;r--)if((a=c.__k[r])&&(l=iJ(a)))return l}return null}function a$(c,r,a,l,i,m,v,C,E){var T,N,V,U,z,W,K,Z,ce,q,X,Ce,st,Ne,ee,xe=r.type;if(r.constructor!==void 0)return null;a.__h!=null&&(E=a.__h,C=r.__e=a.__e,r.__h=null,m=[C]),(T=Es.__b)&&T(r);try{e:if(typeof xe=="function"){if(Z=r.props,ce=(T=xe.contextType)&&l[T.__c],q=T?ce?ce.props.value:T.__:l,a.__c?K=(N=r.__c=a.__c).__=N.__E:("prototype"in xe&&xe.prototype.render?r.__c=N=new xe(Z,q):(r.__c=N=new sm(Z,q),N.constructor=xe,N.render=fle),ce&&ce.sub(N),N.props=Z,N.state||(N.state={}),N.context=q,N.__n=l,V=N.__d=!0,N.__h=[],N._sb=[]),N.__s==null&&(N.__s=N.state),xe.getDerivedStateFromProps!=null&&(N.__s==N.state&&(N.__s=Xv({},N.__s)),Xv(N.__s,xe.getDerivedStateFromProps(Z,N.__s))),U=N.props,z=N.state,N.__v=r,V)xe.getDerivedStateFromProps==null&&N.componentWillMount!=null&&N.componentWillMount(),N.componentDidMount!=null&&N.__h.push(N.componentDidMount);else{if(xe.getDerivedStateFromProps==null&&Z!==U&&N.componentWillReceiveProps!=null&&N.componentWillReceiveProps(Z,q),!N.__e&&N.shouldComponentUpdate!=null&&N.shouldComponentUpdate(Z,N.__s,q)===!1||r.__v===a.__v){for(r.__v!==a.__v&&(N.props=Z,N.state=N.__s,N.__d=!1),r.__e=a.__e,r.__k=a.__k,r.__k.forEach(function(et){et&&(et.__=r)}),X=0;X<N._sb.length;X++)N.__h.push(N._sb[X]);N._sb=[],N.__h.length&&v.push(N);break e}N.componentWillUpdate!=null&&N.componentWillUpdate(Z,N.__s,q),N.componentDidUpdate!=null&&N.__h.push(function(){N.componentDidUpdate(U,z,W)})}if(N.context=q,N.props=Z,N.__P=c,Ce=Es.__r,st=0,"prototype"in xe&&xe.prototype.render){for(N.state=N.__s,N.__d=!1,Ce&&Ce(r),T=N.render(N.props,N.state,N.context),Ne=0;Ne<N._sb.length;Ne++)N.__h.push(N._sb[Ne]);N._sb=[]}else do N.__d=!1,Ce&&Ce(r),T=N.render(N.props,N.state,N.context),N.state=N.__s;while(N.__d&&++st<25);N.state=N.__s,N.getChildContext!=null&&(l=Xv(Xv({},l),N.getChildContext())),V||N.getSnapshotBeforeUpdate==null||(W=N.getSnapshotBeforeUpdate(U,z)),ee=T!=null&&T.type===Ya&&T.key==null?T.props.children:T,oJ(c,Array.isArray(ee)?ee:[ee],r,a,l,i,m,v,C,E),N.base=r.__e,r.__h=null,N.__h.length&&v.push(N),K&&(N.__E=N.__=null),N.__e=!1}else m==null&&r.__v===a.__v?(r.__k=a.__k,r.__e=a.__e):r.__e=dle(a.__e,r,a,l,i,m,v,E);(T=Es.diffed)&&T(r)}catch(et){r.__v=null,(E||m!=null)&&(r.__e=C,r.__h=!!E,m[m.indexOf(C)]=null),Es.__e(et,r,a)}}function aJ(c,r){Es.__c&&Es.__c(r,c),c.some(function(a){try{c=a.__h,a.__h=[],c.some(function(l){l.call(a)})}catch(l){Es.__e(l,a.__v)}})}function dle(c,r,a,l,i,m,v,C){var E,T,N,V=a.props,U=r.props,z=r.type,W=0;if(z==="svg"&&(i=!0),m!=null){for(;W<m.length;W++)if((E=m[W])&&"setAttribute"in E==!!z&&(z?E.localName===z:E.nodeType===3)){c=E,m[W]=null;break}}if(c==null){if(z===null)return document.createTextNode(U);c=i?document.createElementNS("http://www.w3.org/2000/svg",z):document.createElement(z,U.is&&U),m=null,C=!1}if(z===null)V===U||C&&c.data===U||(c.data=U);else{if(m=m&&jO.call(c.childNodes),T=(V=a.props||GO).dangerouslySetInnerHTML,N=U.dangerouslySetInnerHTML,!C){if(m!=null)for(V={},W=0;W<c.attributes.length;W++)V[c.attributes[W].name]=c.attributes[W].value;(N||T)&&(N&&(T&&N.__html==T.__html||N.__html===c.innerHTML)||(c.innerHTML=N&&N.__html||""))}if(cle(c,U,V,i,C),N)r.__k=[];else if(W=r.props.children,oJ(c,Array.isArray(W)?W:[W],r,a,l,i&&z!=="foreignObject",m,v,m?m[0]:a.__k&&sA(a,0),C),m!=null)for(W=m.length;W--;)m[W]!=null&&QQ(m[W]);C||("value"in U&&(W=U.value)!==void 0&&(W!==c.value||z==="progress"&&!W||z==="option"&&W!==V.value)&&qO(c,"value",W,V.value,!1),"checked"in U&&(W=U.checked)!==void 0&&W!==c.checked&&qO(c,"checked",W,V.checked,!1))}return c}function lJ(c,r,a){try{typeof c=="function"?c(r):c.current=r}catch(l){Es.__e(l,a)}}function cJ(c,r,a){var l,i;if(Es.unmount&&Es.unmount(c),(l=c.ref)&&(l.current&&l.current!==c.__e||lJ(l,null,r)),(l=c.__c)!=null){if(l.componentWillUnmount)try{l.componentWillUnmount()}catch(m){Es.__e(m,r)}l.base=l.__P=null,c.__c=void 0}if(l=c.__k)for(i=0;i<l.length;i++)l[i]&&cJ(l[i],r,a||typeof c.type!="function");a||c.__e==null||QQ(c.__e),c.__=c.__e=c.__d=void 0}function fle(c,r,a){return this.constructor(c,a)}function rA(c,r,a){var l,i,m;Es.__&&Es.__(c,r),i=(l=typeof a=="function")?null:a&&a.__k||r.__k,m=[],a$(r,c=(!l&&a||r).__k=rt(Ya,null,[c]),i||GO,GO,r.ownerSVGElement!==void 0,!l&&a?[a]:i?null:r.firstChild?jO.call(r.childNodes):null,m,!l&&a?a:i?i.__e:r.firstChild,l),aJ(m,c)}function mle(c,r){var a={__c:r="__cC"+YQ++,__:c,Consumer:function(l,i){return l.children(i)},Provider:function(l){var i,m;return this.getChildContext||(i=[],(m={})[r]=this,this.getChildContext=function(){return m},this.shouldComponentUpdate=function(v){this.props.value!==v.value&&i.some(function(C){C.__e=!0,i$(C)})},this.sub=function(v){i.push(v);var C=v.componentWillUnmount;v.componentWillUnmount=function(){i.splice(i.indexOf(v),1),C&&C.call(v)}}),l.children}};return a.Provider.__=a.Consumer.contextType=a}jO=XQ.slice,Es={__e:function(c,r,a,l){for(var i,m,v;r=r.__;)if((i=r.__c)&&!i.__)try{if((m=i.constructor)&&m.getDerivedStateFromError!=null&&(i.setState(m.getDerivedStateFromError(c)),v=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(c,l||{}),v=i.__d),v)return i.__E=i}catch(C){c=C}throw c}},GQ=0,ZQ=function(c){return c!=null&&c.constructor===void 0},PS=!1,sm.prototype.setState=function(c,r){var a;a=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Xv({},this.state),typeof c=="function"&&(c=c(Xv({},a),this.props)),c&&Xv(a,c),c!=null&&this.__v&&(r&&this._sb.push(r),i$(this))},sm.prototype.forceUpdate=function(c){this.__v&&(this.__e=!0,c&&this.__h.push(c),i$(this))},sm.prototype.render=Ya,V2=[],KQ=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,KO.__r=0,YQ=0;var Cp,l$,uJ,dJ=[],c$=[],fJ=Es.__b,mJ=Es.__r,hJ=Es.diffed,gJ=Es.__c,pJ=Es.unmount;function hle(){for(var c;c=dJ.shift();)if(c.__P&&c.__H)try{c.__H.__h.forEach(XO),c.__H.__h.forEach(u$),c.__H.__h=[]}catch(r){c.__H.__h=[],Es.__e(r,c.__v)}}Es.__b=function(c){Cp=null,fJ&&fJ(c)},Es.__r=function(c){mJ&&mJ(c);var r=(Cp=c.__c).__H;r&&(l$===Cp?(r.__h=[],Cp.__h=[],r.__.forEach(function(a){a.__N&&(a.__=a.__N),a.__V=c$,a.__N=a.i=void 0})):(r.__h.forEach(XO),r.__h.forEach(u$),r.__h=[])),l$=Cp},Es.diffed=function(c){hJ&&hJ(c);var r=c.__c;r&&r.__H&&(r.__H.__h.length&&(dJ.push(r)!==1&&uJ===Es.requestAnimationFrame||((uJ=Es.requestAnimationFrame)||gle)(hle)),r.__H.__.forEach(function(a){a.i&&(a.__H=a.i),a.__V!==c$&&(a.__=a.__V),a.i=void 0,a.__V=c$})),l$=Cp=null},Es.__c=function(c,r){r.some(function(a){try{a.__h.forEach(XO),a.__h=a.__h.filter(function(l){return!l.__||u$(l)})}catch(l){r.some(function(i){i.__h&&(i.__h=[])}),r=[],Es.__e(l,a.__v)}}),gJ&&gJ(c,r)},Es.unmount=function(c){pJ&&pJ(c);var r,a=c.__c;a&&a.__H&&(a.__H.__.forEach(function(l){try{XO(l)}catch(i){r=i}}),a.__H=void 0,r&&Es.__e(r,a.__v))};var vJ=typeof requestAnimationFrame=="function";function gle(c){var r,a=function(){clearTimeout(l),vJ&&cancelAnimationFrame(r),setTimeout(c)},l=setTimeout(a,100);vJ&&(r=requestAnimationFrame(a))}function XO(c){var r=Cp,a=c.__c;typeof a=="function"&&(c.__c=void 0,a()),Cp=r}function u$(c){var r=Cp;c.__c=c.__(),Cp=r}function ple(c,r){for(var a in r)c[a]=r[a];return c}function yJ(c,r){for(var a in c)if(a!=="__source"&&!(a in r))return!0;for(var l in r)if(l!=="__source"&&c[l]!==r[l])return!0;return!1}function bJ(c){this.props=c}(bJ.prototype=new sm).isPureReactComponent=!0,bJ.prototype.shouldComponentUpdate=function(c,r){return yJ(this.props,c)||yJ(this.state,r)};var CJ=Es.__b;Es.__b=function(c){c.type&&c.type.__f&&c.ref&&(c.props.ref=c.ref,c.ref=null),CJ&&CJ(c)};var vle=Es.__e;Es.__e=function(c,r,a,l){if(c.then){for(var i,m=r;m=m.__;)if((i=m.__c)&&i.__c)return r.__e==null&&(r.__e=a.__e,r.__k=a.__k),i.__c(c,r)}vle(c,r,a,l)};var _J=Es.unmount;function wJ(c,r,a){return c&&(c.__c&&c.__c.__H&&(c.__c.__H.__.forEach(function(l){typeof l.__c=="function"&&l.__c()}),c.__c.__H=null),(c=ple({},c)).__c!=null&&(c.__c.__P===a&&(c.__c.__P=r),c.__c=null),c.__k=c.__k&&c.__k.map(function(l){return wJ(l,r,a)})),c}function SJ(c,r,a){return c&&(c.__v=null,c.__k=c.__k&&c.__k.map(function(l){return SJ(l,r,a)}),c.__c&&c.__c.__P===r&&(c.__e&&a.insertBefore(c.__e,c.__d),c.__c.__e=!0,c.__c.__P=a)),c}function d$(){this.__u=0,this.t=null,this.__b=null}function EJ(c){var r=c.__.__c;return r&&r.__a&&r.__a(c)}function QO(){this.u=null,this.o=null}Es.unmount=function(c){var r=c.__c;r&&r.__R&&r.__R(),r&&c.__h===!0&&(c.type=null),_J&&_J(c)},(d$.prototype=new sm).__c=function(c,r){var a=r.__c,l=this;l.t==null&&(l.t=[]),l.t.push(a);var i=EJ(l.__v),m=!1,v=function(){m||(m=!0,a.__R=null,i?i(C):C())};a.__R=v;var C=function(){if(!--l.__u){if(l.state.__a){var T=l.state.__a;l.__v.__k[0]=SJ(T,T.__c.__P,T.__c.__O)}var N;for(l.setState({__a:l.__b=null});N=l.t.pop();)N.forceUpdate()}},E=r.__h===!0;l.__u++||E||l.setState({__a:l.__b=l.__v.__k[0]}),c.then(v,v)},d$.prototype.componentWillUnmount=function(){this.t=[]},d$.prototype.render=function(c,r){if(this.__b){if(this.__v.__k){var a=document.createElement("div"),l=this.__v.__k[0].__c;this.__v.__k[0]=wJ(this.__b,a,l.__O=l.__P)}this.__b=null}var i=r.__a&&rt(Ya,null,c.fallback);return i&&(i.__h=null),[rt(Ya,null,r.__a?null:c.children),i]};var kJ=function(c,r,a){if(++a[1]===a[0]&&c.o.delete(r),c.props.revealOrder&&(c.props.revealOrder[0]!=="t"||!c.o.size))for(a=c.u;a;){for(;a.length>3;)a.pop()();if(a[1]<a[0])break;c.u=a=a[2]}};function yle(c){return this.getChildContext=function(){return c.context},c.children}function ble(c){var r=this,a=c.i;r.componentWillUnmount=function(){rA(null,r.l),r.l=null,r.i=null},r.i&&r.i!==a&&r.componentWillUnmount(),c.__v?(r.l||(r.i=a,r.l={nodeType:1,parentNode:a,childNodes:[],appendChild:function(l){this.childNodes.push(l),r.i.appendChild(l)},insertBefore:function(l,i){this.childNodes.push(l),r.i.appendChild(l)},removeChild:function(l){this.childNodes.splice(this.childNodes.indexOf(l)>>>1,1),r.i.removeChild(l)}}),rA(rt(yle,{context:r.context},c.__v),r.l)):r.l&&r.componentWillUnmount()}function Cle(c,r){var a=rt(ble,{__v:c,i:r});return a.containerInfo=r,a}(QO.prototype=new sm).__a=function(c){var r=this,a=EJ(r.__v),l=r.o.get(c);return l[0]++,function(i){var m=function(){r.props.revealOrder?(l.push(i),kJ(r,c,l)):i()};a?a(m):m()}},QO.prototype.render=function(c){this.u=null,this.o=new Map;var r=YO(c.children);c.revealOrder&&c.revealOrder[0]==="b"&&r.reverse();for(var a=r.length;a--;)this.o.set(r[a],this.u=[1,0,this.u]);return c.children},QO.prototype.componentDidUpdate=QO.prototype.componentDidMount=function(){var c=this;this.o.forEach(function(r,a){kJ(c,a,r)})};var _le=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,wle=/^(?: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]/,Sle=typeof document<"u",Ele=function(c){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(c)};sm.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(c){Object.defineProperty(sm.prototype,c,{configurable:!0,get:function(){return this["UNSAFE_"+c]},set:function(r){Object.defineProperty(this,c,{configurable:!0,writable:!0,value:r})}})});var xJ=Es.event;function kle(){}function xle(){return this.cancelBubble}function Ale(){return this.defaultPrevented}Es.event=function(c){return xJ&&(c=xJ(c)),c.persist=kle,c.isPropagationStopped=xle,c.isDefaultPrevented=Ale,c.nativeEvent=c};var AJ={configurable:!0,get:function(){return this.class}},TJ=Es.vnode;Es.vnode=function(c){var r=c.type,a=c.props,l=a;if(typeof r=="string"){var i=r.indexOf("-")===-1;for(var m in l={},a){var v=a[m];Sle&&m==="children"&&r==="noscript"||m==="value"&&"defaultValue"in a&&v==null||(m==="defaultValue"&&"value"in a&&a.value==null?m="value":m==="download"&&v===!0?v="":/ondoubleclick/i.test(m)?m="ondblclick":/^onchange(textarea|input)/i.test(m+r)&&!Ele(a.type)?m="oninput":/^onfocus$/i.test(m)?m="onfocusin":/^onblur$/i.test(m)?m="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(m)?m=m.toLowerCase():i&&wle.test(m)?m=m.replace(/[A-Z0-9]/g,"-$&").toLowerCase():v===null&&(v=void 0),/^oninput$/i.test(m)&&(m=m.toLowerCase(),l[m]&&(m="oninputCapture")),l[m]=v)}r=="select"&&l.multiple&&Array.isArray(l.value)&&(l.value=YO(a.children).forEach(function(C){C.props.selected=l.value.indexOf(C.props.value)!=-1})),r=="select"&&l.defaultValue!=null&&(l.value=YO(a.children).forEach(function(C){C.props.selected=l.multiple?l.defaultValue.indexOf(C.props.value)!=-1:l.defaultValue==C.props.value})),c.props=l,a.class!=a.className&&(AJ.enumerable="className"in a,a.className!=null&&(l.class=a.className),Object.defineProperty(l,"className",AJ))}c.$$typeof=_le,TJ&&TJ(c)};var DJ=Es.__r;Es.__r=function(c){DJ&&DJ(c),c.__c};const OJ=[],f$=new Map;function m$(c){OJ.push(c),f$.forEach(r=>{NJ(r,c)})}function Tle(c){c.isConnected&&c.getRootNode&&RJ(c.getRootNode())}function RJ(c){let r=f$.get(c);if(!r||!r.isConnected){if(r=c.querySelector("style[data-fullcalendar]"),!r){r=document.createElement("style"),r.setAttribute("data-fullcalendar","");const a=Ole();a&&(r.nonce=a);const l=c===document?document.head:c,i=c===document?l.querySelector("script,link[rel=stylesheet],link[as=style],style"):l.firstChild;l.insertBefore(r,i)}f$.set(c,r),Dle(r)}}function Dle(c){for(const r of OJ)NJ(c,r)}function NJ(c,r){const{sheet:a}=c,l=a.cssRules.length;r.split("}").forEach((i,m)=>{i=i.trim(),i&&a.insertRule(i+"}",l+m)})}let h$;function Ole(){return h$===void 0&&(h$=Rle()),h$}function Rle(){const c=document.querySelector('meta[name="csp-nonce"]');if(c&&c.hasAttribute("content"))return c.getAttribute("content");const r=document.querySelector("script[nonce]");return r&&r.nonce||""}typeof document<"u"&&RJ(document);var Nle=':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;-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;-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)}';m$(Nle);class g${constructor(r){this.drainedOption=r,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(r){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),r==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),r))}pause(r=""){let{pauseDepths:a}=this;a[r]=(a[r]||0)+1,this.clearTimeout()}resume(r="",a){let{pauseDepths:l}=this;r in l&&(a?delete l[r]:(l[r]-=1,l[r]<=0&&delete l[r]),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 p$(c){c.parentNode&&c.parentNode.removeChild(c)}function td(c,r){if(c.closest)return c.closest(r);if(!document.documentElement.contains(c))return null;do{if(Ile(c,r))return c;c=c.parentElement||c.parentNode}while(c!==null&&c.nodeType===1);return null}function Ile(c,r){return(c.matches||c.matchesSelector||c.msMatchesSelector).call(c,r)}function Ble(c,r){let a=c instanceof HTMLElement?[c]:c,l=[];for(let i=0;i<a.length;i+=1){let m=a[i].querySelectorAll(r);for(let v=0;v<m.length;v+=1)l.push(m[v])}return l}const Mle=/(top|left|right|bottom|width|height)$/i;function iA(c,r){for(let a in r)IJ(c,a,r[a])}function IJ(c,r,a){a==null?c.style[r]="":typeof a=="number"&&Mle.test(r)?c.style[r]=`${a}px`:c.style[r]=a}function BJ(c){var r,a;return(a=(r=c.composedPath)===null||r===void 0?void 0:r.call(c)[0])!==null&&a!==void 0?a:c.target}let MJ=0;function JO(){return MJ+=1,"fc-dom-"+MJ}function eR(c){c.preventDefault()}function Ple(c,r){return a=>{let l=td(a.target,c);l&&r.call(l,a,l)}}function PJ(c,r,a,l){let i=Ple(a,l);return c.addEventListener(r,i),()=>{c.removeEventListener(r,i)}}function Lle(c,r,a,l){let i;return PJ(c,"mouseover",r,(m,v)=>{if(v!==i){i=v,a(m,v);let C=E=>{i=null,l(E,v),v.removeEventListener("mouseleave",C)};v.addEventListener("mouseleave",C)}})}const LJ=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function Fle(c,r){let a=l=>{r(l),LJ.forEach(i=>{c.removeEventListener(i,a)})};LJ.forEach(l=>{c.addEventListener(l,a)})}function FJ(c){return Object.assign({onClick:c},$J(c))}function $J(c){return{tabIndex:0,onKeyDown(r){(r.key==="Enter"||r.key===" ")&&(c(r),r.preventDefault())}}}let VJ=0;function H2(){return VJ+=1,String(VJ)}function v$(){document.body.classList.add("fc-not-allowed")}function y$(){document.body.classList.remove("fc-not-allowed")}function $le(c){c.style.userSelect="none",c.style.webkitUserSelect="none",c.addEventListener("selectstart",eR)}function Vle(c){c.style.userSelect="",c.style.webkitUserSelect="",c.removeEventListener("selectstart",eR)}function Hle(c){c.addEventListener("contextmenu",eR)}function zle(c){c.removeEventListener("contextmenu",eR)}function Ule(c){let r=[],a=[],l,i;for(typeof c=="string"?a=c.split(/\s*,\s*/):typeof c=="function"?a=[c]:Array.isArray(c)&&(a=c),l=0;l<a.length;l+=1)i=a[l],typeof i=="string"?r.push(i.charAt(0)==="-"?{field:i.substring(1),order:-1}:{field:i,order:1}):typeof i=="function"&&r.push({func:i});return r}function Wle(c,r,a){let l,i;for(l=0;l<a.length;l+=1)if(i=jle(c,r,a[l]),i)return i;return 0}function jle(c,r,a){return a.func?a.func(c,r):Gle(c[a.field],r[a.field])*(a.order||1)}function Gle(c,r){return!c&&!r?0:r==null?-1:c==null?1:typeof c=="string"||typeof r=="string"?String(c).localeCompare(String(r)):c-r}function LS(c,r){let a=String(c);return"000".substr(0,r-a.length)+a}function aA(c,r,a){return typeof c=="function"?c(...r):typeof c=="string"?r.reduce((l,i,m)=>l.replace("$"+m,i||""),c):a}function Zle(c,r){return c-r}function tR(c){return c%1===0}function qle(c){let r=c.querySelector(".fc-scrollgrid-shrink-frame"),a=c.querySelector(".fc-scrollgrid-shrink-cushion");if(!r)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!a)throw new Error("needs fc-scrollgrid-shrink-cushion className");return c.getBoundingClientRect().width-r.getBoundingClientRect().width+a.getBoundingClientRect().width}const HJ=["years","months","days","milliseconds"],Kle=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function ni(c,r){return typeof c=="string"?Yle(c):typeof c=="object"&&c?zJ(c):typeof c=="number"?zJ({[r||"milliseconds"]:c}):null}function Yle(c){let r=Kle.exec(c);if(r){let a=r[1]?-1:1;return{years:0,months:0,days:a*(r[2]?parseInt(r[2],10):0),milliseconds:a*((r[3]?parseInt(r[3],10):0)*60*60*1e3+(r[4]?parseInt(r[4],10):0)*60*1e3+(r[5]?parseInt(r[5],10):0)*1e3+(r[6]?parseInt(r[6],10):0))}}return null}function zJ(c){let r={years:c.years||c.year||0,months:c.months||c.month||0,days:c.days||c.day||0,milliseconds:(c.hours||c.hour||0)*60*60*1e3+(c.minutes||c.minute||0)*60*1e3+(c.seconds||c.second||0)*1e3+(c.milliseconds||c.millisecond||c.ms||0)},a=c.weeks||c.week;return a&&(r.days+=a*7,r.specifiedWeeks=!0),r}function Xle(c,r){return c.years===r.years&&c.months===r.months&&c.days===r.days&&c.milliseconds===r.milliseconds}function b$(c,r){return{years:c.years+r.years,months:c.months+r.months,days:c.days+r.days,milliseconds:c.milliseconds+r.milliseconds}}function Qle(c,r){return{years:c.years-r.years,months:c.months-r.months,days:c.days-r.days,milliseconds:c.milliseconds-r.milliseconds}}function Jle(c,r){return{years:c.years*r,months:c.months*r,days:c.days*r,milliseconds:c.milliseconds*r}}function ece(c){return FS(c)/365}function tce(c){return FS(c)/30}function FS(c){return rg(c)/864e5}function rg(c){return c.years*(365*864e5)+c.months*(30*864e5)+c.days*864e5+c.milliseconds}function C$(c,r){let a=null;for(let l=0;l<HJ.length;l+=1){let i=HJ[l];if(r[i]){let m=c[i]/r[i];if(!tR(m)||a!==null&&a!==m)return null;a=m}else if(c[i])return null}return a}function _$(c){let r=c.milliseconds;if(r){if(r%1e3!==0)return{unit:"millisecond",value:r};if(r%(1e3*60)!==0)return{unit:"second",value:r/1e3};if(r%(1e3*60*60)!==0)return{unit:"minute",value:r/(1e3*60)};if(r)return{unit:"hour",value:r/(1e3*60*60)}}return c.days?c.specifiedWeeks&&c.days%7===0?{unit:"week",value:c.days/7}:{unit:"day",value:c.days}:c.months?{unit:"month",value:c.months}:c.years?{unit:"year",value:c.years}:{unit:"millisecond",value:0}}function Qv(c,r,a){if(c===r)return!0;let l=c.length,i;if(l!==r.length)return!1;for(i=0;i<l;i+=1)if(!(a?a(c[i],r[i]):c[i]===r[i]))return!1;return!0}const nce=["sun","mon","tue","wed","thu","fri","sat"];function UJ(c,r){let a=ey(c);return a[2]+=r*7,yf(a)}function nd(c,r){let a=ey(c);return a[2]+=r,yf(a)}function Jv(c,r){let a=ey(c);return a[6]+=r,yf(a)}function oce(c,r){return z2(c,r)/7}function z2(c,r){return(r.valueOf()-c.valueOf())/(1e3*60*60*24)}function sce(c,r){return(r.valueOf()-c.valueOf())/(1e3*60*60)}function rce(c,r){return(r.valueOf()-c.valueOf())/(1e3*60)}function ice(c,r){return(r.valueOf()-c.valueOf())/1e3}function ace(c,r){let a=Ra(c),l=Ra(r);return{years:0,months:0,days:Math.round(z2(a,l)),milliseconds:r.valueOf()-l.valueOf()-(c.valueOf()-a.valueOf())}}function lce(c,r){let a=nR(c,r);return a!==null&&a%7===0?a/7:null}function nR(c,r){return ty(c)===ty(r)?Math.round(z2(c,r)):null}function Ra(c){return yf([c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()])}function cce(c){return yf([c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate(),c.getUTCHours()])}function uce(c){return yf([c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate(),c.getUTCHours(),c.getUTCMinutes()])}function dce(c){return yf([c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate(),c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds()])}function fce(c,r,a){let l=c.getUTCFullYear(),i=w$(c,l,r,a);if(i<1)return w$(c,l-1,r,a);let m=w$(c,l+1,r,a);return m>=1?Math.min(i,m):i}function w$(c,r,a,l){let i=yf([r,0,1+mce(r,a,l)]),m=Ra(c),v=Math.round(z2(i,m));return Math.floor(v/7)+1}function mce(c,r,a){let l=7+r-a;return-((7+yf([c,0,l]).getUTCDay()-r)%7)+l-1}function WJ(c){return[c.getFullYear(),c.getMonth(),c.getDate(),c.getHours(),c.getMinutes(),c.getSeconds(),c.getMilliseconds()]}function jJ(c){return new Date(c[0],c[1]||0,c[2]==null?1:c[2],c[3]||0,c[4]||0,c[5]||0)}function ey(c){return[c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate(),c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()]}function yf(c){return c.length===1&&(c=c.concat([0])),new Date(Date.UTC(...c))}function GJ(c){return!isNaN(c.valueOf())}function ty(c){return c.getUTCHours()*1e3*60*60+c.getUTCMinutes()*1e3*60+c.getUTCSeconds()*1e3+c.getUTCMilliseconds()}function ZJ(c,r,a=!1){let l=c.toISOString();return l=l.replace(".000",""),a&&(l=l.replace("T00:00:00Z","")),l.length>10&&(r==null?l=l.replace("Z",""):r!==0&&(l=l.replace("Z",E$(r,!0)))),l}function S$(c){return c.toISOString().replace(/T.*$/,"")}function hce(c){return c.toISOString().match(/^\d{4}-\d{2}/)[0]}function gce(c){return LS(c.getUTCHours(),2)+":"+LS(c.getUTCMinutes(),2)+":"+LS(c.getUTCSeconds(),2)}function E$(c,r=!1){let a=c<0?"-":"+",l=Math.abs(c),i=Math.floor(l/60),m=Math.round(l%60);return r?`${a+LS(i,2)}:${LS(m,2)}`:`GMT${a}${i}${m?`:${LS(m,2)}`:""}`}function Ms(c,r,a){let l,i;return function(...m){if(!l)i=c.apply(this,m);else if(!Qv(l,m)){a&&a(i);let v=c.apply(this,m);(!r||!r(v,i))&&(i=v)}return l=m,i}}function oR(c,r,a){let l,i;return m=>{if(!l)i=c.call(this,m);else if(!_p(l,m)){a&&a(i);let v=c.call(this,m);(!r||!r(v,i))&&(i=v)}return l=m,i}}const qJ={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},sR={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},rR=/\s*([ap])\.?m\.?/i,pce=/,/g,vce=/\s+/g,yce=/\u200e/g,bce=/UTC|GMT/;class Cce{constructor(r){let a={},l={},i=0;for(let m in r)m in qJ?(l[m]=r[m],i=Math.max(qJ[m],i)):(a[m]=r[m],m in sR&&(i=Math.max(sR[m],i)));this.standardDateProps=a,this.extendedSettings=l,this.severity=i,this.buildFormattingFunc=Ms(KJ)}format(r,a){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,a)(r)}formatRange(r,a,l,i){let{standardDateProps:m,extendedSettings:v}=this,C=xce(r.marker,a.marker,l.calendarSystem);if(!C)return this.format(r,l);let E=C;E>1&&(m.year==="numeric"||m.year==="2-digit")&&(m.month==="numeric"||m.month==="2-digit")&&(m.day==="numeric"||m.day==="2-digit")&&(E=1);let T=this.format(r,l),N=this.format(a,l);if(T===N)return T;let V=Ace(m,E),U=KJ(V,v,l),z=U(r),W=U(a),K=Tce(T,z,N,W),Z=v.separator||i||l.defaultSeparator||"";return K?K.before+z+Z+W+K.after:T+Z+N}getLargestUnit(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function KJ(c,r,a){let l=Object.keys(c).length;return l===1&&c.timeZoneName==="short"?i=>E$(i.timeZoneOffset):l===0&&r.week?i=>kce(a.computeWeekNumber(i.marker),a.weekText,a.weekTextLong,a.locale,r.week):_ce(c,r,a)}function _ce(c,r,a){c=Object.assign({},c),r=Object.assign({},r),wce(c,r),c.timeZone="UTC";let l=new Intl.DateTimeFormat(a.locale.codes,c),i;if(r.omitZeroMinute){let m=Object.assign({},c);delete m.minute,i=new Intl.DateTimeFormat(a.locale.codes,m)}return m=>{let{marker:v}=m,C;i&&!v.getUTCMinutes()?C=i:C=l;let E=C.format(v);return Sce(E,m,c,r,a)}}function wce(c,r){c.timeZoneName&&(c.hour||(c.hour="2-digit"),c.minute||(c.minute="2-digit")),c.timeZoneName==="long"&&(c.timeZoneName="short"),r.omitZeroMinute&&(c.second||c.millisecond)&&delete r.omitZeroMinute}function Sce(c,r,a,l,i){return c=c.replace(yce,""),a.timeZoneName==="short"&&(c=Ece(c,i.timeZone==="UTC"||r.timeZoneOffset==null?"UTC":E$(r.timeZoneOffset))),l.omitCommas&&(c=c.replace(pce,"").trim()),l.omitZeroMinute&&(c=c.replace(":00","")),l.meridiem===!1?c=c.replace(rR,"").trim():l.meridiem==="narrow"?c=c.replace(rR,(m,v)=>v.toLocaleLowerCase()):l.meridiem==="short"?c=c.replace(rR,(m,v)=>`${v.toLocaleLowerCase()}m`):l.meridiem==="lowercase"&&(c=c.replace(rR,m=>m.toLocaleLowerCase())),c=c.replace(vce," "),c=c.trim(),c}function Ece(c,r){let a=!1;return c=c.replace(bce,()=>(a=!0,r)),a||(c+=` ${r}`),c}function kce(c,r,a,l,i){let m=[];return i==="long"?m.push(a):(i==="short"||i==="narrow")&&m.push(r),(i==="long"||i==="short")&&m.push(" "),m.push(l.simpleNumberFormat.format(c)),l.options.direction==="rtl"&&m.reverse(),m.join("")}function xce(c,r,a){return a.getMarkerYear(c)!==a.getMarkerYear(r)?5:a.getMarkerMonth(c)!==a.getMarkerMonth(r)?4:a.getMarkerDay(c)!==a.getMarkerDay(r)?2:ty(c)!==ty(r)?1:0}function Ace(c,r){let a={};for(let l in c)(!(l in sR)||sR[l]<=r)&&(a[l]=c[l]);return a}function Tce(c,r,a,l){let i=0;for(;i<c.length;){let m=c.indexOf(r,i);if(m===-1)break;let v=c.substr(0,m);i=m+r.length;let C=c.substr(i),E=0;for(;E<a.length;){let T=a.indexOf(l,E);if(T===-1)break;let N=a.substr(0,T);E=T+l.length;let V=a.substr(E);if(v===N&&C===V)return{before:v,after:C}}}return null}function YJ(c,r){let a=r.markerToArray(c.marker);return{marker:c.marker,timeZoneOffset:c.timeZoneOffset,array:a,year:a[0],month:a[1],day:a[2],hour:a[3],minute:a[4],second:a[5],millisecond:a[6]}}function iR(c,r,a,l){let i=YJ(c,a.calendarSystem),m=r?YJ(r,a.calendarSystem):null;return{date:i,start:i,end:m,timeZone:a.timeZone,localeCodes:a.locale.codes,defaultSeparator:l||a.defaultSeparator}}class Dce{constructor(r){this.cmdStr=r}format(r,a,l){return a.cmdFormatter(this.cmdStr,iR(r,null,a,l))}formatRange(r,a,l,i){return l.cmdFormatter(this.cmdStr,iR(r,a,l,i))}}class Oce{constructor(r){this.func=r}format(r,a,l){return this.func(iR(r,null,a,l))}formatRange(r,a,l,i){return this.func(iR(r,a,l,i))}}function El(c){return typeof c=="object"&&c?new Cce(c):typeof c=="string"?new Dce(c):typeof c=="function"?new Oce(c):null}const XJ={navLinkDayClick:qt,navLinkWeekClick:qt,duration:ni,bootstrapFontAwesome:qt,buttonIcons:qt,customButtons:qt,defaultAllDayEventDuration:ni,defaultTimedEventDuration:ni,nextDayThreshold:ni,scrollTime:ni,scrollTimeReset:Boolean,slotMinTime:ni,slotMaxTime:ni,dayPopoverFormat:El,slotDuration:ni,snapDuration:ni,headerToolbar:qt,footerToolbar:qt,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:El,dayHeaderClassNames:qt,dayHeaderContent:qt,dayHeaderDidMount:qt,dayHeaderWillUnmount:qt,dayCellClassNames:qt,dayCellContent:qt,dayCellDidMount:qt,dayCellWillUnmount:qt,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:qt,weekNumbers:Boolean,weekNumberClassNames:qt,weekNumberContent:qt,weekNumberDidMount:qt,weekNumberWillUnmount:qt,editable:Boolean,viewClassNames:qt,viewDidMount:qt,viewWillUnmount:qt,nowIndicator:Boolean,nowIndicatorClassNames:qt,nowIndicatorContent:qt,nowIndicatorDidMount:qt,nowIndicatorWillUnmount:qt,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:qt,locale:qt,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:qt,eventOrder:Ule,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:qt,contentHeight:qt,direction:String,weekNumberFormat:El,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:qt,initialDate:qt,now:qt,eventDataTransform:qt,stickyHeaderDates:qt,stickyFooterScrollbar:qt,viewHeight:qt,defaultAllDay:Boolean,eventSourceFailure:qt,eventSourceSuccess:qt,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:qt,eventConstraint:qt,eventAllow:qt,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:qt,eventContent:qt,eventDidMount:qt,eventWillUnmount:qt,selectConstraint:qt,selectOverlap:qt,selectAllow:qt,droppable:Boolean,unselectCancel:String,slotLabelFormat:qt,slotLaneClassNames:qt,slotLaneContent:qt,slotLaneDidMount:qt,slotLaneWillUnmount:qt,slotLabelClassNames:qt,slotLabelContent:qt,slotLabelDidMount:qt,slotLabelWillUnmount:qt,dayMaxEvents:qt,dayMaxEventRows:qt,dayMinWidth:Number,slotLabelInterval:ni,allDayText:String,allDayClassNames:qt,allDayContent:qt,allDayDidMount:qt,allDayWillUnmount:qt,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:El,rerenderDelay:Number,moreLinkText:qt,moreLinkHint:qt,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:qt,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:ni,hiddenDays:qt,fixedWeekCount:Boolean,validRange:qt,visibleRange:qt,titleFormat:qt,eventInteractive:Boolean,noEventsText:String,viewHint:qt,navLinkHint:qt,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:qt,moreLinkClassNames:qt,moreLinkContent:qt,moreLinkDidMount:qt,moreLinkWillUnmount:qt,monthStartFormat:El,handleCustomRendering:qt,customRenderingMetaMap:qt,customRenderingReplaces:Boolean},lA={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"}},QJ={datesSet:qt,eventsSet:qt,eventAdd:qt,eventChange:qt,eventRemove:qt,windowResize:qt,eventClick:qt,eventMouseEnter:qt,eventMouseLeave:qt,select:qt,unselect:qt,loading:qt,_unmount:qt,_beforeprint:qt,_afterprint:qt,_noEventDrop:qt,_noEventResize:qt,_resize:qt,_scrollRequest:qt},JJ={buttonText:qt,buttonHints:qt,views:qt,plugins:qt,initialEvents:qt,events:qt,eventSources:qt},U2={headerToolbar:W2,footerToolbar:W2,buttonText:W2,buttonHints:W2,buttonIcons:W2,dateIncrement:W2,plugins:aR,events:aR,eventSources:aR,resources:aR};function W2(c,r){return typeof c=="object"&&typeof r=="object"&&c&&r?_p(c,r):c===r}function aR(c,r){return Array.isArray(c)&&Array.isArray(r)?Qv(c,r):c===r}const Rce={type:String,component:qt,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:qt,usesMinMaxTime:Boolean,classNames:qt,content:qt,didMount:qt,willUnmount:qt};function k$(c){return A$(c,U2)}function x$(c,r){let a={},l={};for(let i in r)i in c&&(a[i]=r[i](c[i]));for(let i in c)i in r||(l[i]=c[i]);return{refined:a,extra:l}}function qt(c){return c}const{hasOwnProperty:lR}=Object.prototype;function A$(c,r){let a={};if(r){for(let l in r)if(r[l]===W2){let i=[];for(let m=c.length-1;m>=0;m-=1){let v=c[m][l];if(typeof v=="object"&&v)i.unshift(v);else if(v!==void 0){a[l]=v;break}}i.length&&(a[l]=A$(i))}}for(let l=c.length-1;l>=0;l-=1){let i=c[l];for(let m in i)m in a||(a[m]=i[m])}return a}function j2(c,r){let a={};for(let l in c)r(c[l],l)&&(a[l]=c[l]);return a}function Z1(c,r){let a={};for(let l in c)a[l]=r(c[l],l);return a}function eee(c){let r={};for(let a of c)r[a]=!0;return r}function T$(c){let r=[];for(let a in c)r.push(c[a]);return r}function _p(c,r){if(c===r)return!0;for(let a in c)if(lR.call(c,a)&&!(a in r))return!1;for(let a in r)if(lR.call(r,a)&&c[a]!==r[a])return!1;return!0}const Nce=/^on[A-Z]/;function Ice(c,r){const a=D$(c,r);for(let l of a)if(!Nce.test(l))return!1;return!0}function D$(c,r){let a=[];for(let l in c)lR.call(c,l)&&(l in r||a.push(l));for(let l in r)lR.call(r,l)&&c[l]!==r[l]&&a.push(l);return a}function O$(c,r,a={}){if(c===r)return!0;for(let l in r)if(!(l in c&&Bce(c[l],r[l],a[l])))return!1;for(let l in c)if(!(l in r))return!1;return!0}function Bce(c,r,a){return c===r||a===!0?!0:a?a(c,r):!1}function Mce(c,r=0,a,l=1){let i=[];a==null&&(a=Object.keys(c).length);for(let m=r;m<a;m+=l){let v=c[m];v!==void 0&&i.push(v)}return i}let tee={};function Pce(c,r){tee[c]=r}function Lce(c){return new tee[c]}class Fce{getMarkerYear(r){return r.getUTCFullYear()}getMarkerMonth(r){return r.getUTCMonth()}getMarkerDay(r){return r.getUTCDate()}arrayToMarker(r){return yf(r)}markerToArray(r){return ey(r)}}Pce("gregory",Fce);const $ce=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function Vce(c){let r=$ce.exec(c);if(r){let a=new Date(Date.UTC(Number(r[1]),r[3]?Number(r[3])-1:0,Number(r[5]||1),Number(r[7]||0),Number(r[8]||0),Number(r[10]||0),r[12]?+`0.${r[12]}`*1e3:0));if(GJ(a)){let l=null;return r[13]&&(l=(r[15]==="-"?-1:1)*(Number(r[16]||0)*60+Number(r[18]||0))),{marker:a,isTimeUnspecified:!r[6],timeZoneOffset:l}}}return null}class Hce{constructor(r){let a=this.timeZone=r.timeZone,l=a!=="local"&&a!=="UTC";r.namedTimeZoneImpl&&l&&(this.namedTimeZoneImpl=new r.namedTimeZoneImpl(a)),this.canComputeOffset=!!(!l||this.namedTimeZoneImpl),this.calendarSystem=Lce(r.calendarSystem),this.locale=r.locale,this.weekDow=r.locale.week.dow,this.weekDoy=r.locale.week.doy,r.weekNumberCalculation==="ISO"&&(this.weekDow=1,this.weekDoy=4),typeof r.firstDay=="number"&&(this.weekDow=r.firstDay),typeof r.weekNumberCalculation=="function"&&(this.weekNumberFunc=r.weekNumberCalculation),this.weekText=r.weekText!=null?r.weekText:r.locale.options.weekText,this.weekTextLong=(r.weekTextLong!=null?r.weekTextLong:r.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=r.cmdFormatter,this.defaultSeparator=r.defaultSeparator}createMarker(r){let a=this.createMarkerMeta(r);return a===null?null:a.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker(new Date().valueOf()):yf(WJ(new Date))}createMarkerMeta(r){if(typeof r=="string")return this.parse(r);let a=null;return typeof r=="number"?a=this.timestampToMarker(r):r instanceof Date?(r=r.valueOf(),isNaN(r)||(a=this.timestampToMarker(r))):Array.isArray(r)&&(a=yf(r)),a===null||!GJ(a)?null:{marker:a,isTimeUnspecified:!1,forcedTzo:null}}parse(r){let a=Vce(r);if(a===null)return null;let{marker:l}=a,i=null;return a.timeZoneOffset!==null&&(this.canComputeOffset?l=this.timestampToMarker(l.valueOf()-a.timeZoneOffset*60*1e3):i=a.timeZoneOffset),{marker:l,isTimeUnspecified:a.isTimeUnspecified,forcedTzo:i}}getYear(r){return this.calendarSystem.getMarkerYear(r)}getMonth(r){return this.calendarSystem.getMarkerMonth(r)}getDay(r){return this.calendarSystem.getMarkerDay(r)}add(r,a){let l=this.calendarSystem.markerToArray(r);return l[0]+=a.years,l[1]+=a.months,l[2]+=a.days,l[6]+=a.milliseconds,this.calendarSystem.arrayToMarker(l)}subtract(r,a){let l=this.calendarSystem.markerToArray(r);return l[0]-=a.years,l[1]-=a.months,l[2]-=a.days,l[6]-=a.milliseconds,this.calendarSystem.arrayToMarker(l)}addYears(r,a){let l=this.calendarSystem.markerToArray(r);return l[0]+=a,this.calendarSystem.arrayToMarker(l)}addMonths(r,a){let l=this.calendarSystem.markerToArray(r);return l[1]+=a,this.calendarSystem.arrayToMarker(l)}diffWholeYears(r,a){let{calendarSystem:l}=this;return ty(r)===ty(a)&&l.getMarkerDay(r)===l.getMarkerDay(a)&&l.getMarkerMonth(r)===l.getMarkerMonth(a)?l.getMarkerYear(a)-l.getMarkerYear(r):null}diffWholeMonths(r,a){let{calendarSystem:l}=this;return ty(r)===ty(a)&&l.getMarkerDay(r)===l.getMarkerDay(a)?l.getMarkerMonth(a)-l.getMarkerMonth(r)+(l.getMarkerYear(a)-l.getMarkerYear(r))*12:null}greatestWholeUnit(r,a){let l=this.diffWholeYears(r,a);return l!==null?{unit:"year",value:l}:(l=this.diffWholeMonths(r,a),l!==null?{unit:"month",value:l}:(l=lce(r,a),l!==null?{unit:"week",value:l}:(l=nR(r,a),l!==null?{unit:"day",value:l}:(l=sce(r,a),tR(l)?{unit:"hour",value:l}:(l=rce(r,a),tR(l)?{unit:"minute",value:l}:(l=ice(r,a),tR(l)?{unit:"second",value:l}:{unit:"millisecond",value:a.valueOf()-r.valueOf()}))))))}countDurationsBetween(r,a,l){let i;return l.years&&(i=this.diffWholeYears(r,a),i!==null)?i/ece(l):l.months&&(i=this.diffWholeMonths(r,a),i!==null)?i/tce(l):l.days&&(i=nR(r,a),i!==null)?i/FS(l):(a.valueOf()-r.valueOf())/rg(l)}startOf(r,a){return a==="year"?this.startOfYear(r):a==="month"?this.startOfMonth(r):a==="week"?this.startOfWeek(r):a==="day"?Ra(r):a==="hour"?cce(r):a==="minute"?uce(r):a==="second"?dce(r):null}startOfYear(r){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(r)])}startOfMonth(r){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(r),this.calendarSystem.getMarkerMonth(r)])}startOfWeek(r){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(r),this.calendarSystem.getMarkerMonth(r),r.getUTCDate()-(r.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(r){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(r)):fce(r,this.weekDow,this.weekDoy)}format(r,a,l={}){return a.format({marker:r,timeZoneOffset:l.forcedTzo!=null?l.forcedTzo:this.offsetForMarker(r)},this)}formatRange(r,a,l,i={}){return i.isEndExclusive&&(a=Jv(a,-1)),l.formatRange({marker:r,timeZoneOffset:i.forcedStartTzo!=null?i.forcedStartTzo:this.offsetForMarker(r)},{marker:a,timeZoneOffset:i.forcedEndTzo!=null?i.forcedEndTzo:this.offsetForMarker(a)},this,i.defaultSeparator)}formatIso(r,a={}){let l=null;return a.omitTimeZoneOffset||(a.forcedTzo!=null?l=a.forcedTzo:l=this.offsetForMarker(r)),ZJ(r,l,a.omitTime)}timestampToMarker(r){return this.timeZone==="local"?yf(WJ(new Date(r))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(r):yf(this.namedTimeZoneImpl.timestampToArray(r))}offsetForMarker(r){return this.timeZone==="local"?-jJ(ey(r)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(ey(r)):null}toDate(r,a){return this.timeZone==="local"?jJ(ey(r)):this.timeZone==="UTC"?new Date(r.valueOf()):this.namedTimeZoneImpl?new Date(r.valueOf()-this.namedTimeZoneImpl.offsetForArray(ey(r))*1e3*60):new Date(r.valueOf()-(a||0))}}class cA{constructor(r){this.iconOverrideOption&&this.setIconOverride(r[this.iconOverrideOption])}setIconOverride(r){let a,l;if(typeof r=="object"&&r){a=Object.assign({},this.iconClasses);for(l in r)a[l]=this.applyIconOverridePrefix(r[l]);this.iconClasses=a}else r===!1&&(this.iconClasses={})}applyIconOverridePrefix(r){let a=this.iconOverridePrefix;return a&&r.indexOf(a)!==0&&(r=a+r),r}getClass(r){return this.classes[r]||""}getIconClass(r,a){let l;return a&&this.rtlIconClasses?l=this.rtlIconClasses[r]||this.iconClasses[r]:l=this.iconClasses[r],l?`${this.baseIconClass} ${l}`:""}getCustomButtonIconClass(r){let a;return this.iconOverrideCustomButtonOption&&(a=r[this.iconOverrideCustomButtonOption],a)?`${this.baseIconClass} ${this.applyIconOverridePrefix(a)}`:""}}cA.prototype.classes={},cA.prototype.iconClasses={},cA.prototype.baseIconClass="",cA.prototype.iconOverridePrefix="";function cR(c){c();let r=Es.debounceRendering,a=[];function l(i){a.push(i)}for(Es.debounceRendering=l,rA(rt(zce,{}),document.createElement("div"));a.length;)a.shift()();Es.debounceRendering=r}class zce extends sm{render(){return rt("div",{})}componentDidMount(){this.setState({})}}function nee(c){let r=mle(c),a=r.Provider;return r.Provider=function(){let l=!this.getChildContext,i=a.apply(this,arguments);if(l){let m=[];this.shouldComponentUpdate=v=>{this.props.value!==v.value&&m.forEach(C=>{C.context=v.value,C.forceUpdate()})},this.sub=v=>{m.push(v);let C=v.componentWillUnmount;v.componentWillUnmount=()=>{m.splice(m.indexOf(v),1),C&&C.call(v)}}}return i},r}class Uce{constructor(r,a,l,i){this.execFunc=r,this.emitter=a,this.scrollTime=l,this.scrollTimeReset=i,this.handleScrollRequest=m=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},m),this.drain()},a.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(r){r&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const q1=nee({});function Wce(c,r,a,l,i,m,v,C,E,T,N,V,U){return{dateEnv:i,options:a,pluginHooks:v,emitter:T,dispatch:C,getCurrentData:E,calendarApi:N,viewSpec:c,viewApi:r,dateProfileGenerator:l,theme:m,isRtl:a.direction==="rtl",addResizeHandler(z){T.on("_resize",z)},removeResizeHandler(z){T.off("_resize",z)},createScrollResponder(z){return new Uce(z,T,ni(a.scrollTime),a.scrollTimeReset)},registerInteractiveComponent:V,unregisterInteractiveComponent:U}}class G2 extends sm{shouldComponentUpdate(r,a){return this.debug&&console.log(D$(r,this.props),D$(a,this.state)),!O$(this.props,r,this.propEquality)||!O$(this.state,a,this.stateEquality)}safeSetState(r){O$(this.state,Object.assign(Object.assign({},this.state),r),this.stateEquality)||this.setState(r)}}G2.addPropsEquality=jce,G2.addStateEquality=Gce,G2.contextType=q1,G2.prototype.propEquality={},G2.prototype.stateEquality={};class Li extends G2{}Li.contextType=q1;function jce(c){let r=Object.create(this.prototype.propEquality);Object.assign(r,c),this.prototype.propEquality=r}function Gce(c){let r=Object.create(this.prototype.stateEquality);Object.assign(r,c),this.prototype.stateEquality=r}function K1(c,r){typeof c=="function"?c(r):c&&(c.current=r)}class R$ extends Li{constructor(){super(...arguments),this.id=H2(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=r=>{const{options:a}=this.context,{generatorName:l}=this.props;(!a.customRenderingReplaces||!N$(l,a))&&this.updateElRef(r)},this.updateElRef=r=>{this.props.elRef&&K1(this.props.elRef,r)}}render(){const{props:r,context:a}=this,{options:l}=a,{customGenerator:i,defaultGenerator:m,renderProps:v}=r,C=oee(r,[],this.handleEl);let E=!1,T,N=[],V;if(i!=null){const U=typeof i=="function"?i(v,rt):i;if(U===!0)E=!0;else{const z=U&&typeof U=="object";z&&"html"in U?C.dangerouslySetInnerHTML={__html:U.html}:z&&"domNodes"in U?N=Array.prototype.slice.call(U.domNodes):(z?ZQ(U):typeof U!="function")?T=U:V=U}}else E=!N$(r.generatorName,l);return E&&m&&(T=m(v)),this.queuedDomNodes=N,this.currentGeneratorMeta=V,rt(r.elTag,C,T)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(r){var a;const{props:l,context:i}=this,{handleCustomRendering:m,customRenderingMetaMap:v}=i.options;if(m){const C=(a=this.currentGeneratorMeta)!==null&&a!==void 0?a:v==null?void 0:v[l.generatorName];C&&m(Object.assign(Object.assign({id:this.id,isActive:r,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:C},l),{elClasses:(l.elClasses||[]).filter(Zce)}))}}applyQueueudDomNodes(){const{queuedDomNodes:r,currentDomNodes:a}=this,l=this.base;if(!Qv(r,a)){a.forEach(p$);for(let i of r)l.appendChild(i);this.currentDomNodes=r}}}R$.addPropsEquality({elClasses:Qv,elStyle:_p,elAttrs:Ice,renderProps:_p});function N$(c,r){var a;return!!(r.handleCustomRendering&&c&&(!((a=r.customRenderingMetaMap)===null||a===void 0)&&a[c]))}function oee(c,r,a){const l=Object.assign(Object.assign({},c.elAttrs),{ref:a});return(c.elClasses||r)&&(l.className=(c.elClasses||[]).concat(r||[]).concat(l.className||[]).filter(Boolean).join(" ")),c.elStyle&&(l.style=c.elStyle),l}function Zce(c){return!!c}const see=nee(0);class rm extends sm{constructor(){super(...arguments),this.InnerContent=qce.bind(void 0,this),this.handleEl=r=>{this.el=r,this.props.elRef&&(K1(this.props.elRef,r),r&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:r}=this,a=Kce(r.classNameGenerator,r.renderProps);if(r.children){const l=oee(r,a,this.handleEl),i=r.children(this.InnerContent,r.renderProps,l);return r.elTag?rt(r.elTag,l,i):i}else return rt(R$,Object.assign(Object.assign({},r),{elRef:this.handleEl,elTag:r.elTag||"div",elClasses:(r.elClasses||[]).concat(a),renderId:this.context}))}componentDidMount(){var r,a;this.el?(a=(r=this.props).didMount)===null||a===void 0||a.call(r,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var r,a;(a=(r=this.props).willUnmount)===null||a===void 0||a.call(r,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}rm.contextType=see;function qce(c,r){const a=c.props;return rt(R$,Object.assign({renderProps:a.renderProps,generatorName:a.generatorName,customGenerator:a.customGenerator,defaultGenerator:a.defaultGenerator,renderId:c.context},r))}function Kce(c,r){const a=typeof c=="function"?c(r):c||[];return typeof a=="string"?[a]:a}class uR extends Li{render(){let{props:r,context:a}=this,{options:l}=a,i={view:a.viewApi};return rt(rm,Object.assign({},r,{elTag:r.elTag||"div",elClasses:[...ree(r.viewSpec),...r.elClasses||[]],renderProps:i,classNameGenerator:l.viewClassNames,generatorName:void 0,didMount:l.viewDidMount,willUnmount:l.viewWillUnmount}),()=>r.children)}}function ree(c){return[`fc-${c.type}-view`,"fc-view"]}function Yce(c,r){let a=null,l=null;return c.start&&(a=r.createMarker(c.start)),c.end&&(l=r.createMarker(c.end)),!a&&!l||a&&l&&l<a?null:{start:a,end:l}}function iee(c,r){let a=[],{start:l}=r,i,m;for(c.sort(Xce),i=0;i<c.length;i+=1)m=c[i],m.start>l&&a.push({start:l,end:m.start}),m.end>l&&(l=m.end);return l<r.end&&a.push({start:l,end:r.end}),a}function Xce(c,r){return c.start.valueOf()-r.start.valueOf()}function Z2(c,r){let{start:a,end:l}=c,i=null;return r.start!==null&&(a===null?a=r.start:a=new Date(Math.max(a.valueOf(),r.start.valueOf()))),r.end!=null&&(l===null?l=r.end:l=new Date(Math.min(l.valueOf(),r.end.valueOf()))),(a===null||l===null||a<l)&&(i={start:a,end:l}),i}function Qce(c,r){return(c.start===null?null:c.start.valueOf())===(r.start===null?null:r.start.valueOf())&&(c.end===null?null:c.end.valueOf())===(r.end===null?null:r.end.valueOf())}function I$(c,r){return(c.end===null||r.start===null||c.end>r.start)&&(c.start===null||r.end===null||c.start<r.end)}function dR(c,r){return(c.start===null||r.start!==null&&r.start>=c.start)&&(c.end===null||r.end!==null&&r.end<=c.end)}function Y1(c,r){return(c.start===null||r>=c.start)&&(c.end===null||r<c.end)}function Jce(c,r){return r.start!=null&&c<r.start?r.start:r.end!=null&&c>=r.end?new Date(r.end.valueOf()-1):c}function aee(c){let r=Math.floor(z2(c.start,c.end))||1,a=Ra(c.start),l=nd(a,r);return{start:a,end:l}}function lee(c,r=ni(0)){let a=null,l=null;if(c.end){l=Ra(c.end);let i=c.end.valueOf()-l.valueOf();i&&i>=rg(r)&&(l=nd(l,1))}return c.start&&(a=Ra(c.start),l&&l<=a&&(l=nd(a,1))),{start:a,end:l}}function $S(c,r,a,l){return l==="year"?ni(a.diffWholeYears(c,r),"year"):l==="month"?ni(a.diffWholeMonths(c,r),"month"):ace(c,r)}function eue(c,r){switch(r.type){case"CHANGE_DATE":return r.dateMarker;default:return c}}function tue(c,r){let a=c.initialDate;return a!=null?r.createMarker(a):uA(c.now,r)}function uA(c,r){return typeof c=="function"&&(c=c()),c==null?r.createNowMarker():r.createMarker(c)}class cee{constructor(r){this.props=r,this.nowDate=uA(r.nowInput,r.dateEnv),this.initHiddenDays()}buildPrev(r,a,l){let{dateEnv:i}=this.props,m=i.subtract(i.startOf(a,r.currentRangeUnit),r.dateIncrement);return this.build(m,-1,l)}buildNext(r,a,l){let{dateEnv:i}=this.props,m=i.add(i.startOf(a,r.currentRangeUnit),r.dateIncrement);return this.build(m,1,l)}build(r,a,l=!0){let{props:i}=this,m,v,C,E,T,N;return m=this.buildValidRange(),m=this.trimHiddenDays(m),l&&(r=Jce(r,m)),v=this.buildCurrentRangeInfo(r,a),C=/^(year|month|week|day)$/.test(v.unit),E=this.buildRenderRange(this.trimHiddenDays(v.range),v.unit,C),E=this.trimHiddenDays(E),T=E,i.showNonCurrentDates||(T=Z2(T,v.range)),T=this.adjustActiveRange(T),T=Z2(T,m),N=I$(v.range,m),Y1(E,r)||(r=E.start),{currentDate:r,validRange:m,currentRange:v.range,currentRangeUnit:v.unit,isRangeAllDay:C,activeRange:T,renderRange:E,slotMinTime:i.slotMinTime,slotMaxTime:i.slotMaxTime,isValid:N,dateIncrement:this.buildDateIncrement(v.duration)}}buildValidRange(){let r=this.props.validRangeInput,a=typeof r=="function"?r.call(this.props.calendarApi,this.nowDate):r;return this.refineRange(a)||{start:null,end:null}}buildCurrentRangeInfo(r,a){let{props:l}=this,i=null,m=null,v=null,C;return l.duration?(i=l.duration,m=l.durationUnit,v=this.buildRangeFromDuration(r,a,i,m)):(C=this.props.dayCount)?(m="day",v=this.buildRangeFromDayCount(r,a,C)):(v=this.buildCustomVisibleRange(r))?m=l.dateEnv.greatestWholeUnit(v.start,v.end).unit:(i=this.getFallbackDuration(),m=_$(i).unit,v=this.buildRangeFromDuration(r,a,i,m)),{duration:i,unit:m,range:v}}getFallbackDuration(){return ni({day:1})}adjustActiveRange(r){let{dateEnv:a,usesMinMaxTime:l,slotMinTime:i,slotMaxTime:m}=this.props,{start:v,end:C}=r;return l&&(FS(i)<0&&(v=Ra(v),v=a.add(v,i)),FS(m)>1&&(C=Ra(C),C=nd(C,-1),C=a.add(C,m))),{start:v,end:C}}buildRangeFromDuration(r,a,l,i){let{dateEnv:m,dateAlignment:v}=this.props,C,E,T;if(!v){let{dateIncrement:V}=this.props;V&&rg(V)<rg(l)?v=_$(V).unit:v=i}FS(l)<=1&&this.isHiddenDay(C)&&(C=this.skipHiddenDays(C,a),C=Ra(C));function N(){C=m.startOf(r,v),E=m.add(C,l),T={start:C,end:E}}return N(),this.trimHiddenDays(T)||(r=this.skipHiddenDays(r,a),N()),T}buildRangeFromDayCount(r,a,l){let{dateEnv:i,dateAlignment:m}=this.props,v=0,C=r,E;m&&(C=i.startOf(C,m)),C=Ra(C),C=this.skipHiddenDays(C,a),E=C;do E=nd(E,1),this.isHiddenDay(E)||(v+=1);while(v<l);return{start:C,end:E}}buildCustomVisibleRange(r){let{props:a}=this,l=a.visibleRangeInput,i=typeof l=="function"?l.call(a.calendarApi,a.dateEnv.toDate(r)):l,m=this.refineRange(i);return m&&(m.start==null||m.end==null)?null:m}buildRenderRange(r,a,l){return r}buildDateIncrement(r){let{dateIncrement:a}=this.props,l;return a||((l=this.props.dateAlignment)?ni(1,l):r||ni({days:1}))}refineRange(r){if(r){let a=Yce(r,this.props.dateEnv);return a&&(a=lee(a)),a}return null}initHiddenDays(){let r=this.props.hiddenDays||[],a=[],l=0,i;for(this.props.weekends===!1&&r.push(0,6),i=0;i<7;i+=1)(a[i]=r.indexOf(i)!==-1)||(l+=1);if(!l)throw new Error("invalid hiddenDays");this.isHiddenDayHash=a}trimHiddenDays(r){let{start:a,end:l}=r;return a&&(a=this.skipHiddenDays(a)),l&&(l=this.skipHiddenDays(l,-1,!0)),a==null||l==null||a<l?{start:a,end:l}:null}isHiddenDay(r){return r instanceof Date&&(r=r.getUTCDay()),this.isHiddenDayHash[r]}skipHiddenDays(r,a=1,l=!1){for(;this.isHiddenDayHash[(r.getUTCDay()+(l?a:0)+7)%7];)r=nd(r,a);return r}}function B$(c,r,a,l){return{instanceId:H2(),defId:c,range:r,forcedStartTzo:a??null,forcedEndTzo:l??null}}function nue(c,r,a,l){for(let i=0;i<l.length;i+=1){let m=l[i].parse(c,a);if(m){let{allDay:v}=c;return v==null&&(v=r,v==null&&(v=m.allDayGuess,v==null&&(v=!1))),{allDay:v,duration:m.duration,typeData:m.typeData,typeId:i}}}return null}function q2(c,r,a){let{dateEnv:l,pluginHooks:i,options:m}=a,{defs:v,instances:C}=c;C=j2(C,E=>!v[E.defId].recurringDef);for(let E in v){let T=v[E];if(T.recurringDef){let{duration:N}=T.recurringDef;N||(N=T.allDay?m.defaultAllDayEventDuration:m.defaultTimedEventDuration);let V=oue(T,N,r,l,i.recurringTypes);for(let U of V){let z=B$(E,{start:U,end:l.add(U,N)});C[z.instanceId]=z}}}return{defs:v,instances:C}}function oue(c,r,a,l,i){let v=i[c.recurringDef.typeId].expand(c.recurringDef.typeData,{start:l.subtract(a.start,r),end:a.end},l);return c.allDay&&(v=v.map(Ra)),v}const fR={id:String,groupId:String,title:String,url:String,interactive:Boolean},uee={start:qt,end:qt,date:qt,allDay:Boolean},sue=Object.assign(Object.assign(Object.assign({},fR),uee),{extendedProps:qt});function dee(c,r,a,l,i=M$(a),m,v){let{refined:C,extra:E}=fee(c,a,i),T=iue(r,a),N=nue(C,T,a.dateEnv,a.pluginHooks.recurringTypes);if(N){let U=P$(C,E,r?r.sourceId:"",N.allDay,!!N.duration,a,m);return U.recurringDef={typeId:N.typeId,typeData:N.typeData,duration:N.duration},{def:U,instance:null}}let V=rue(C,T,a,l);if(V){let U=P$(C,E,r?r.sourceId:"",V.allDay,V.hasEnd,a,m),z=B$(U.defId,V.range,V.forcedStartTzo,V.forcedEndTzo);return v&&U.publicId&&v[U.publicId]&&(z.instanceId=v[U.publicId]),{def:U,instance:z}}return null}function fee(c,r,a=M$(r)){return x$(c,a)}function M$(c){return Object.assign(Object.assign(Object.assign({},hR),sue),c.pluginHooks.eventRefiners)}function P$(c,r,a,l,i,m,v){let C={title:c.title||"",groupId:c.groupId||"",publicId:c.id||"",url:c.url||"",recurringDef:null,defId:(v&&c.id?v[c.id]:"")||H2(),sourceId:a,allDay:l,hasEnd:i,interactive:c.interactive,ui:gR(c,m),extendedProps:Object.assign(Object.assign({},c.extendedProps||{}),r)};for(let E of m.pluginHooks.eventDefMemberAdders)Object.assign(C,E(c));return Object.freeze(C.ui.classNames),Object.freeze(C.extendedProps),C}function rue(c,r,a,l){let{allDay:i}=c,m,v=null,C=!1,E,T=null,N=c.start!=null?c.start:c.date;if(m=a.dateEnv.createMarkerMeta(N),m)v=m.marker;else if(!l)return null;return c.end!=null&&(E=a.dateEnv.createMarkerMeta(c.end)),i==null&&(r!=null?i=r:i=(!m||m.isTimeUnspecified)&&(!E||E.isTimeUnspecified)),i&&v&&(v=Ra(v)),E&&(T=E.marker,i&&(T=Ra(T)),v&&T<=v&&(T=null)),T?C=!0:l||(C=a.options.forceEventDuration||!1,T=a.dateEnv.add(v,i?a.options.defaultAllDayEventDuration:a.options.defaultTimedEventDuration)),{allDay:i,hasEnd:C,range:{start:v,end:T},forcedStartTzo:m?m.forcedTzo:null,forcedEndTzo:E?E.forcedTzo:null}}function iue(c,r){let a=null;return c&&(a=c.defaultAllDay),a==null&&(a=r.options.defaultAllDay),a}function dA(c,r,a,l,i,m){let v=im(),C=M$(a);for(let E of c){let T=dee(E,r,a,l,C,i,m);T&&L$(T,v)}return v}function L$(c,r=im()){return r.defs[c.def.defId]=c.def,c.instance&&(r.instances[c.instance.instanceId]=c.instance),r}function F$(c,r){let a=c.instances[r];if(a){let l=c.defs[a.defId],i=mR(c,m=>aue(l,m));return i.defs[l.defId]=l,i.instances[a.instanceId]=a,i}return im()}function aue(c,r){return!!(c.groupId&&c.groupId===r.groupId)}function im(){return{defs:{},instances:{}}}function $$(c,r){return{defs:Object.assign(Object.assign({},c.defs),r.defs),instances:Object.assign(Object.assign({},c.instances),r.instances)}}function mR(c,r){let a=j2(c.defs,r),l=j2(c.instances,i=>a[i.defId]);return{defs:a,instances:l}}function lue(c,r){let{defs:a,instances:l}=c,i={},m={};for(let v in a)r.defs[v]||(i[v]=a[v]);for(let v in l)!r.instances[v]&&i[l[v].defId]&&(m[v]=l[v]);return{defs:i,instances:m}}function cue(c,r){return Array.isArray(c)?dA(c,null,r,!0):typeof c=="object"&&c?dA([c],null,r,!0):c!=null?String(c):null}function mee(c){return Array.isArray(c)?c:typeof c=="string"?c.split(/\s+/):[]}const hR={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:qt,overlap:qt,allow:qt,className:mee,classNames:mee,color:String,backgroundColor:String,borderColor:String,textColor:String},uue={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function gR(c,r){let a=cue(c.constraint,r);return{display:c.display||null,startEditable:c.startEditable!=null?c.startEditable:c.editable,durationEditable:c.durationEditable!=null?c.durationEditable:c.editable,constraints:a!=null?[a]:[],overlap:c.overlap!=null?c.overlap:null,allows:c.allow!=null?[c.allow]:[],backgroundColor:c.backgroundColor||c.color||"",borderColor:c.borderColor||c.color||"",textColor:c.textColor||"",classNames:(c.className||[]).concat(c.classNames||[])}}function hee(c){return c.reduce(due,uue)}function due(c,r){return{display:r.display!=null?r.display:c.display,startEditable:r.startEditable!=null?r.startEditable:c.startEditable,durationEditable:r.durationEditable!=null?r.durationEditable:c.durationEditable,constraints:c.constraints.concat(r.constraints),overlap:typeof r.overlap=="boolean"?r.overlap:c.overlap,allows:c.allows.concat(r.allows),backgroundColor:r.backgroundColor||c.backgroundColor,borderColor:r.borderColor||c.borderColor,textColor:r.textColor||c.textColor,classNames:c.classNames.concat(r.classNames)}}const fue={id:String,defaultAllDay:Boolean,url:String,format:String,events:qt,eventDataTransform:qt,success:qt,failure:qt};function gee(c,r,a=pee(r)){let l;if(typeof c=="string"?l={url:c}:typeof c=="function"||Array.isArray(c)?l={events:c}:typeof c=="object"&&c&&(l=c),l){let{refined:i,extra:m}=x$(l,a),v=mue(i,r);if(v)return{_raw:c,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||"",sourceId:H2(),sourceDefId:v.sourceDefId,meta:v.meta,ui:gR(i,r),extendedProps:m}}return null}function pee(c){return Object.assign(Object.assign(Object.assign({},hR),fue),c.pluginHooks.eventSourceRefiners)}function mue(c,r){let a=r.pluginHooks.eventSourceDefs;for(let l=a.length-1;l>=0;l-=1){let m=a[l].parseMeta(c);if(m)return{sourceDefId:l,meta:m}}return null}function hue(c,r,a,l,i){switch(r.type){case"RECEIVE_EVENTS":return gue(c,a[r.sourceId],r.fetchId,r.fetchRange,r.rawEvents,i);case"RESET_RAW_EVENTS":return pue(c,a[r.sourceId],r.rawEvents,l.activeRange,i);case"ADD_EVENTS":return vue(c,r.eventStore,l?l.activeRange:null,i);case"RESET_EVENTS":return r.eventStore;case"MERGE_EVENTS":return $$(c,r.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return l?q2(c,l.activeRange,i):c;case"REMOVE_EVENTS":return lue(c,r.eventStore);case"REMOVE_EVENT_SOURCE":return Cee(c,r.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return mR(c,m=>!m.sourceId);case"REMOVE_ALL_EVENTS":return im();default:return c}}function gue(c,r,a,l,i,m){if(r&&a===r.latestFetchId){let v=dA(vee(i,r,m),r,m);return l&&(v=q2(v,l,m)),$$(Cee(c,r.sourceId),v)}return c}function pue(c,r,a,l,i){const{defIdMap:m,instanceIdMap:v}=bue(c);let C=dA(vee(a,r,i),r,i,!1,m,v);return q2(C,l,i)}function vee(c,r,a){let l=a.options.eventDataTransform,i=r?r.eventDataTransform:null;return i&&(c=yee(c,i)),l&&(c=yee(c,l)),c}function yee(c,r){let a;if(!r)a=c;else{a=[];for(let l of c){let i=r(l);i?a.push(i):i==null&&a.push(l)}}return a}function vue(c,r,a,l){return a&&(r=q2(r,a,l)),$$(c,r)}function bee(c,r,a){let{defs:l}=c,i=Z1(c.instances,m=>l[m.defId].allDay?m:Object.assign(Object.assign({},m),{range:{start:a.createMarker(r.toDate(m.range.start,m.forcedStartTzo)),end:a.createMarker(r.toDate(m.range.end,m.forcedEndTzo))},forcedStartTzo:a.canComputeOffset?null:m.forcedStartTzo,forcedEndTzo:a.canComputeOffset?null:m.forcedEndTzo}));return{defs:l,instances:i}}function Cee(c,r){return mR(c,a=>a.sourceId!==r)}function yue(c,r){return{defs:c.defs,instances:j2(c.instances,a=>!r[a.instanceId])}}function bue(c){const{defs:r,instances:a}=c,l={},i={};for(let m in r){const v=r[m],{publicId:C}=v;C&&(l[C]=m)}for(let m in a){const v=a[m],C=r[v.defId],{publicId:E}=C;E&&(i[E]=m)}return{defIdMap:l,instanceIdMap:i}}class pR{constructor(){this.handlers={},this.thisContext=null}setThisContext(r){this.thisContext=r}setOptions(r){this.options=r}on(r,a){Cue(this.handlers,r,a)}off(r,a){_ue(this.handlers,r,a)}trigger(r,...a){let l=this.handlers[r]||[],i=this.options&&this.options[r],m=[].concat(i||[],l);for(let v of m)v.apply(this.thisContext,a)}hasHandlers(r){return!!(this.handlers[r]&&this.handlers[r].length||this.options&&this.options[r])}}function Cue(c,r,a){(c[r]||(c[r]=[])).push(a)}function _ue(c,r,a){a?c[r]&&(c[r]=c[r].filter(l=>l!==a)):delete c[r]}const wue={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function Sue(c,r){return dA(Eue(c),null,r)}function Eue(c){let r;return c===!0?r=[{}]:Array.isArray(c)?r=c.filter(a=>a.daysOfWeek):typeof c=="object"&&c?r=[c]:r=[],r=r.map(a=>Object.assign(Object.assign({},wue),a)),r}function _ee(c,r,a){a.emitter.trigger("select",Object.assign(Object.assign({},V$(c,a)),{jsEvent:r?r.origEvent:null,view:a.viewApi||a.calendarApi.view}))}function kue(c,r){r.emitter.trigger("unselect",{jsEvent:c?c.origEvent:null,view:r.viewApi||r.calendarApi.view})}function V$(c,r){let a={};for(let l of r.pluginHooks.dateSpanTransforms)Object.assign(a,l(c,r));return Object.assign(a,$ue(c,r.dateEnv)),a}function wee(c,r,a){let{dateEnv:l,options:i}=a,m=r;return c?(m=Ra(m),m=l.add(m,i.defaultAllDayEventDuration)):m=l.add(m,i.defaultTimedEventDuration),m}function H$(c,r,a,l){let i=vR(c.defs,r),m=im();for(let v in c.defs){let C=c.defs[v];m.defs[v]=xue(C,i[v],a,l)}for(let v in c.instances){let C=c.instances[v],E=m.defs[C.defId];m.instances[v]=Aue(C,E,i[C.defId],a,l)}return m}function xue(c,r,a,l){let i=a.standardProps||{};i.hasEnd==null&&r.durationEditable&&(a.startDelta||a.endDelta)&&(i.hasEnd=!0);let m=Object.assign(Object.assign(Object.assign({},c),i),{ui:Object.assign(Object.assign({},c.ui),i.ui)});a.extendedProps&&(m.extendedProps=Object.assign(Object.assign({},m.extendedProps),a.extendedProps));for(let v of l.pluginHooks.eventDefMutationAppliers)v(m,a,l);return!m.hasEnd&&l.options.forceEventDuration&&(m.hasEnd=!0),m}function Aue(c,r,a,l,i){let{dateEnv:m}=i,v=l.standardProps&&l.standardProps.allDay===!0,C=l.standardProps&&l.standardProps.hasEnd===!1,E=Object.assign({},c);return v&&(E.range=aee(E.range)),l.datesDelta&&a.startEditable&&(E.range={start:m.add(E.range.start,l.datesDelta),end:m.add(E.range.end,l.datesDelta)}),l.startDelta&&a.durationEditable&&(E.range={start:m.add(E.range.start,l.startDelta),end:E.range.end}),l.endDelta&&a.durationEditable&&(E.range={start:E.range.start,end:m.add(E.range.end,l.endDelta)}),C&&(E.range={start:E.range.start,end:wee(r.allDay,E.range.start,i)}),r.allDay&&(E.range={start:Ra(E.range.start),end:Ra(E.range.end)}),E.range.end<E.range.start&&(E.range.end=wee(r.allDay,E.range.start,i)),E}class VS{constructor(r,a){this.context=r,this.internalEventSource=a}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 fl{constructor(r,a,l){this._context=r,this._def=a,this._instance=l||null}setProp(r,a){if(r in uee)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(r==="id")a=fR[r](a),this.mutate({standardProps:{publicId:a}});else if(r in fR)a=fR[r](a),this.mutate({standardProps:{[r]:a}});else if(r in hR){let l=hR[r](a);r==="color"?l={backgroundColor:a,borderColor:a}:r==="editable"?l={startEditable:a,durationEditable:a}:l={[r]:a},this.mutate({standardProps:{ui:l}})}else console.warn(`Could not set prop '${r}'. Use setExtendedProp instead.`)}setExtendedProp(r,a){this.mutate({extendedProps:{[r]:a}})}setStart(r,a={}){let{dateEnv:l}=this._context,i=l.createMarker(r);if(i&&this._instance){let m=this._instance.range,v=$S(m.start,i,l,a.granularity);a.maintainDuration?this.mutate({datesDelta:v}):this.mutate({startDelta:v})}}setEnd(r,a={}){let{dateEnv:l}=this._context,i;if(!(r!=null&&(i=l.createMarker(r),!i))&&this._instance)if(i){let m=$S(this._instance.range.end,i,l,a.granularity);this.mutate({endDelta:m})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(r,a,l={}){let{dateEnv:i}=this._context,m={allDay:l.allDay},v=i.createMarker(r),C;if(v&&!(a!=null&&(C=i.createMarker(a),!C))&&this._instance){let E=this._instance.range;l.allDay===!0&&(E=aee(E));let T=$S(E.start,v,i,l.granularity);if(C){let N=$S(E.end,C,i,l.granularity);Xle(T,N)?this.mutate({datesDelta:T,standardProps:m}):this.mutate({startDelta:T,endDelta:N,standardProps:m})}else m.hasEnd=!1,this.mutate({datesDelta:T,standardProps:m})}}moveStart(r){let a=ni(r);a&&this.mutate({startDelta:a})}moveEnd(r){let a=ni(r);a&&this.mutate({endDelta:a})}moveDates(r){let a=ni(r);a&&this.mutate({datesDelta:a})}setAllDay(r,a={}){let l={allDay:r},{maintainDuration:i}=a;i==null&&(i=this._context.options.allDayMaintainDuration),this._def.allDay!==r&&(l.hasEnd=i),this.mutate({standardProps:l})}formatRange(r){let{dateEnv:a}=this._context,l=this._instance,i=El(r);return this._def.hasEnd?a.formatRange(l.range.start,l.range.end,i,{forcedStartTzo:l.forcedStartTzo,forcedEndTzo:l.forcedEndTzo}):a.format(l.range.start,i,{forcedTzo:l.forcedStartTzo})}mutate(r){let a=this._instance;if(a){let l=this._def,i=this._context,{eventStore:m}=i.getCurrentData(),v=F$(m,a.instanceId);v=H$(v,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},r,i);let E=new fl(i,l,a);this._def=v.defs[l.defId],this._instance=v.instances[a.instanceId],i.dispatch({type:"MERGE_EVENTS",eventStore:v}),i.emitter.trigger("eventChange",{oldEvent:E,event:this,relatedEvents:K2(v,i,a),revert(){i.dispatch({type:"RESET_EVENTS",eventStore:m})}})}}remove(){let r=this._context,a=See(this);r.dispatch({type:"REMOVE_EVENTS",eventStore:a}),r.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){r.dispatch({type:"MERGE_EVENTS",eventStore:a})}})}get source(){let{sourceId:r}=this._def;return r?new VS(this._context,this._context.getCurrentData().eventSources[r]):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 r=this._instance;return r?this._context.dateEnv.formatIso(r.range.start,{omitTime:this._def.allDay,forcedTzo:r.forcedStartTzo}):""}get endStr(){let r=this._instance;return r&&this._def.hasEnd?this._context.dateEnv.formatIso(r.range.end,{omitTime:this._def.allDay,forcedTzo:r.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(r={}){let a=this._def,{ui:l}=a,{startStr:i,endStr:m}=this,v={allDay:a.allDay};return a.title&&(v.title=a.title),i&&(v.start=i),m&&(v.end=m),a.publicId&&(v.id=a.publicId),a.groupId&&(v.groupId=a.groupId),a.url&&(v.url=a.url),l.display&&l.display!=="auto"&&(v.display=l.display),r.collapseColor&&l.backgroundColor&&l.backgroundColor===l.borderColor?v.color=l.backgroundColor:(l.backgroundColor&&(v.backgroundColor=l.backgroundColor),l.borderColor&&(v.borderColor=l.borderColor)),l.textColor&&(v.textColor=l.textColor),l.classNames.length&&(v.classNames=l.classNames),Object.keys(a.extendedProps).length&&(r.collapseExtendedProps?Object.assign(v,a.extendedProps):v.extendedProps=a.extendedProps),v}toJSON(){return this.toPlainObject()}}function See(c){let r=c._def,a=c._instance;return{defs:{[r.defId]:r},instances:a?{[a.instanceId]:a}:{}}}function K2(c,r,a){let{defs:l,instances:i}=c,m=[],v=a?a.instanceId:"";for(let C in i){let E=i[C],T=l[E.defId];E.instanceId!==v&&m.push(new fl(r,T,E))}return m}function Eee(c,r,a,l){let i={},m={},v={},C=[],E=[],T=vR(c.defs,r);for(let N in c.defs){let V=c.defs[N];T[V.defId].display==="inverse-background"&&(V.groupId?(i[V.groupId]=[],v[V.groupId]||(v[V.groupId]=V)):m[N]=[])}for(let N in c.instances){let V=c.instances[N],U=c.defs[V.defId],z=T[U.defId],W=V.range,K=!U.allDay&&l?lee(W,l):W,Z=Z2(K,a);Z&&(z.display==="inverse-background"?U.groupId?i[U.groupId].push(Z):m[V.defId].push(Z):z.display!=="none"&&(z.display==="background"?C:E).push({def:U,ui:z,instance:V,range:Z,isStart:K.start&&K.start.valueOf()===Z.start.valueOf(),isEnd:K.end&&K.end.valueOf()===Z.end.valueOf()}))}for(let N in i){let V=i[N],U=iee(V,a);for(let z of U){let W=v[N],K=T[W.defId];C.push({def:W,ui:K,instance:null,range:z,isStart:!1,isEnd:!1})}}for(let N in m){let V=m[N],U=iee(V,a);for(let z of U)C.push({def:c.defs[N],ui:T[N],instance:null,range:z,isStart:!1,isEnd:!1})}return{bg:C,fg:E}}function Tue(c){return c.ui.display==="background"||c.ui.display==="inverse-background"}function kee(c,r){c.fcSeg=r}function HS(c){return c.fcSeg||c.parentNode.fcSeg||null}function vR(c,r){return Z1(c,a=>xee(a,r))}function xee(c,r){let a=[];return r[""]&&a.push(r[""]),r[c.defId]&&a.push(r[c.defId]),a.push(c.ui),hee(a)}function Aee(c,r){let a=c.map(Due);return a.sort((l,i)=>Wle(l,i,r)),a.map(l=>l._seg)}function Due(c){let{eventRange:r}=c,a=r.def,l=r.instance?r.instance.range:r.range,i=l.start?l.start.valueOf():0,m=l.end?l.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},a.extendedProps),a),{id:a.publicId,start:i,end:m,duration:m-i,allDay:Number(a.allDay),_seg:c})}function Oue(c,r){let{pluginHooks:a}=r,l=a.isDraggableTransformers,{def:i,ui:m}=c.eventRange,v=m.startEditable;for(let C of l)v=C(v,i,m,r);return v}function Rue(c,r){return c.isStart&&c.eventRange.ui.durationEditable&&r.options.eventResizableFromStart}function Nue(c,r){return c.isEnd&&c.eventRange.ui.durationEditable}function Tee(c,r,a,l,i,m,v){let{dateEnv:C,options:E}=a,{displayEventTime:T,displayEventEnd:N}=E,V=c.eventRange.def,U=c.eventRange.instance;T==null&&(T=l!==!1),N==null&&(N=i!==!1);let z=U.range.start,W=U.range.end,K=m||c.start||c.eventRange.range.start,Z=v||c.end||c.eventRange.range.end,ce=Ra(z).valueOf()===Ra(K).valueOf(),q=Ra(Jv(W,-1)).valueOf()===Ra(Jv(Z,-1)).valueOf();return T&&!V.allDay&&(ce||q)?(K=ce?z:K,Z=q?W:Z,N&&V.hasEnd?C.formatRange(K,Z,r,{forcedStartTzo:m?null:U.forcedStartTzo,forcedEndTzo:v?null:U.forcedEndTzo}):C.format(K,r,{forcedTzo:m?null:U.forcedStartTzo})):""}function ny(c,r,a){let l=c.eventRange.range;return{isPast:l.end<=(a||r.start),isFuture:l.start>=(a||r.end),isToday:r&&Y1(r,l.start)}}function Iue(c){let r=["fc-event"];return c.isMirror&&r.push("fc-event-mirror"),c.isDraggable&&r.push("fc-event-draggable"),(c.isStartResizable||c.isEndResizable)&&r.push("fc-event-resizable"),c.isDragging&&r.push("fc-event-dragging"),c.isResizing&&r.push("fc-event-resizing"),c.isSelected&&r.push("fc-event-selected"),c.isStart&&r.push("fc-event-start"),c.isEnd&&r.push("fc-event-end"),c.isPast&&r.push("fc-event-past"),c.isToday&&r.push("fc-event-today"),c.isFuture&&r.push("fc-event-future"),r}function Dee(c){return c.instance?c.instance.instanceId:`${c.def.defId}:${c.range.start.toISOString()}`}function Oee(c,r){let{def:a,instance:l}=c.eventRange,{url:i}=a;if(i)return{href:i};let{emitter:m,options:v}=r,{eventInteractive:C}=v;return C==null&&(C=a.interactive,C==null&&(C=!!m.hasHandlers("eventClick"))),C?$J(E=>{m.trigger("eventClick",{el:E.target,event:new fl(r,a,l),jsEvent:E,view:r.viewApi})}):{}}const Bue={start:qt,end:qt,allDay:Boolean};function Mue(c,r,a){let l=Pue(c,r),{range:i}=l;if(!i.start)return null;if(!i.end){if(a==null)return null;i.end=r.add(i.start,a)}return l}function Pue(c,r){let{refined:a,extra:l}=x$(c,Bue),i=a.start?r.createMarkerMeta(a.start):null,m=a.end?r.createMarkerMeta(a.end):null,{allDay:v}=a;return v==null&&(v=i&&i.isTimeUnspecified&&(!m||m.isTimeUnspecified)),Object.assign({range:{start:i?i.marker:null,end:m?m.marker:null},allDay:v},l)}function Lue(c,r){return Qce(c.range,r.range)&&c.allDay===r.allDay&&Fue(c,r)}function Fue(c,r){for(let a in r)if(a!=="range"&&a!=="allDay"&&c[a]!==r[a])return!1;for(let a in c)if(!(a in r))return!1;return!0}function $ue(c,r){return Object.assign(Object.assign({},Nee(c.range,r,c.allDay)),{allDay:c.allDay})}function Ree(c,r,a){return Object.assign(Object.assign({},Nee(c,r,a)),{timeZone:r.timeZone})}function Nee(c,r,a){return{start:r.toDate(c.start),end:r.toDate(c.end),startStr:r.formatIso(c.start,{omitTime:a}),endStr:r.formatIso(c.end,{omitTime:a})}}function Vue(c,r,a){let l=fee({editable:!1},a),i=P$(l.refined,l.extra,"",c.allDay,!0,a);return{def:i,ui:xee(i,r),instance:B$(i.defId,c.range),range:c.range,isStart:!0,isEnd:!0}}function Hue(c,r,a){let l=!1,i=function(C){l||(l=!0,r(C))},m=function(C){l||(l=!0,a(C))},v=c(i,m);v&&typeof v.then=="function"&&v.then(i,m)}class Iee extends Error{constructor(r,a){super(r),this.response=a}}function zue(c,r,a){c=c.toUpperCase();const l={method:c};return c==="GET"?r+=(r.indexOf("?")===-1?"?":"&")+new URLSearchParams(a):(l.body=new URLSearchParams(a),l.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(r,l).then(i=>{if(i.ok)return i.json().then(m=>[m,i],()=>{throw new Iee("Failure parsing JSON",i)});throw new Iee("Request failed",i)})}let z$;function Bee(){return z$==null&&(z$=Uue()),z$}function Uue(){if(typeof document>"u")return!0;let c=document.createElement("div");c.style.position="absolute",c.style.top="0px",c.style.left="0px",c.innerHTML="<table><tr><td><div></div></td></tr></table>",c.querySelector("table").style.height="100px",c.querySelector("div").style.height="100%",document.body.appendChild(c);let a=c.querySelector("div").offsetHeight>0;return document.body.removeChild(c),a}class Wue extends Li{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{cR(()=>{this.setState({forPrint:!0})})},this.handleAfterPrint=()=>{cR(()=>{this.setState({forPrint:!1})})}}render(){let{props:r}=this,{options:a}=r,{forPrint:l}=this.state,i=l||a.height==="auto"||a.contentHeight==="auto",m=!i&&a.height!=null?a.height:"",v=["fc",l?"fc-media-print":"fc-media-screen",`fc-direction-${a.direction}`,r.theme.getClass("root")];return Bee()||v.push("fc-liquid-hack"),r.children(v,m,i,l)}componentDidMount(){let{emitter:r}=this.props;r.on("_beforeprint",this.handleBeforePrint),r.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:r}=this.props;r.off("_beforeprint",this.handleBeforePrint),r.off("_afterprint",this.handleAfterPrint)}}class zS{constructor(r){this.component=r.component,this.isHitComboAllowed=r.isHitComboAllowed||null}destroy(){}}function jue(c,r){return{component:c,el:r.el,useEventCenter:r.useEventCenter!=null?r.useEventCenter:!0,isHitComboAllowed:r.isHitComboAllowed||null}}function U$(c){return{[c.component.uid]:c}}const W$={};class Gue{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(r){this.currentDataManager.dispatch(r)}get view(){return this.getCurrentData().viewApi}batchRendering(r){r()}updateSize(){this.trigger("_resize",!0)}setOption(r,a){this.dispatch({type:"SET_OPTION",optionName:r,rawOptionValue:a})}getOption(r){return this.currentDataManager.currentCalendarOptionsInput[r]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(r,a){let{currentDataManager:l}=this;l.currentCalendarOptionsRefiners[r]?l.emitter.on(r,a):console.warn(`Unknown listener name '${r}'`)}off(r,a){this.currentDataManager.emitter.off(r,a)}trigger(r,...a){this.currentDataManager.emitter.trigger(r,...a)}changeView(r,a){this.batchRendering(()=>{if(this.unselect(),a)if(a.start&&a.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:r}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:a});else{let{dateEnv:l}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:r,dateMarker:l.createMarker(a)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:r})})}zoomTo(r,a){let l=this.getCurrentData(),i;a=a||"day",i=l.viewSpecs[a]||this.getUnitViewSpec(a),this.unselect(),i?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:i.type,dateMarker:r}):this.dispatch({type:"CHANGE_DATE",dateMarker:r})}getUnitViewSpec(r){let{viewSpecs:a,toolbarConfig:l}=this.getCurrentData(),i=[].concat(l.header?l.header.viewsWithButtons:[],l.footer?l.footer.viewsWithButtons:[]),m,v;for(let C in a)i.push(C);for(m=0;m<i.length;m+=1)if(v=a[i[m]],v&&v.singleUnit===r)return v;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let r=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:r.dateEnv.addYears(r.currentDate,-1)})}nextYear(){let r=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:r.dateEnv.addYears(r.currentDate,1)})}today(){let r=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:uA(r.calendarOptions.now,r.dateEnv)})}gotoDate(r){let a=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:a.dateEnv.createMarker(r)})}incrementDate(r){let a=this.getCurrentData(),l=ni(r);l&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:a.dateEnv.add(a.currentDate,l)}))}getDate(){let r=this.getCurrentData();return r.dateEnv.toDate(r.currentDate)}formatDate(r,a){let{dateEnv:l}=this.getCurrentData();return l.format(l.createMarker(r),El(a))}formatRange(r,a,l){let{dateEnv:i}=this.getCurrentData();return i.formatRange(i.createMarker(r),i.createMarker(a),El(l),l)}formatIso(r,a){let{dateEnv:l}=this.getCurrentData();return l.formatIso(l.createMarker(r),{omitTime:a})}select(r,a){let l;a==null?r.start!=null?l=r:l={start:r,end:null}:l={start:r,end:a};let i=this.getCurrentData(),m=Mue(l,i.dateEnv,ni({days:1}));m&&(this.dispatch({type:"SELECT_DATES",selection:m}),_ee(m,null,i))}unselect(r){let a=this.getCurrentData();a.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),kue(r,a))}addEvent(r,a){if(r instanceof fl){let v=r._def,C=r._instance;return this.getCurrentData().eventStore.defs[v.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:L$({def:v,instance:C})}),this.triggerEventAdd(r)),r}let l=this.getCurrentData(),i;if(a instanceof VS)i=a.internalEventSource;else if(typeof a=="boolean")a&&([i]=T$(l.eventSources));else if(a!=null){let v=this.getEventSourceById(a);if(!v)return console.warn(`Could not find an event source with ID "${a}"`),null;i=v.internalEventSource}let m=dee(r,i,l,!1);if(m){let v=new fl(l,m.def,m.def.recurringDef?null:m.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:L$(m)}),this.triggerEventAdd(v),v}return null}triggerEventAdd(r){let{emitter:a}=this.getCurrentData();a.trigger("eventAdd",{event:r,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:See(r)})}})}getEventById(r){let a=this.getCurrentData(),{defs:l,instances:i}=a.eventStore;r=String(r);for(let m in l){let v=l[m];if(v.publicId===r){if(v.recurringDef)return new fl(a,v,null);for(let C in i){let E=i[C];if(E.defId===v.defId)return new fl(a,v,E)}}}return null}getEvents(){let r=this.getCurrentData();return K2(r.eventStore,r)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let r=this.getCurrentData(),a=r.eventSources,l=[];for(let i in a)l.push(new VS(r,a[i]));return l}getEventSourceById(r){let a=this.getCurrentData(),l=a.eventSources;r=String(r);for(let i in l)if(l[i].publicId===r)return new VS(a,l[i]);return null}addEventSource(r){let a=this.getCurrentData();if(r instanceof VS)return a.eventSources[r.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[r.internalEventSource]}),r;let l=gee(r,a);return l?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[l]}),new VS(a,l)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(r){let a=ni(r);a&&this.trigger("_scrollRequest",{time:a})}}function Zue(c,r){return c.left>=r.left&&c.left<r.right&&c.top>=r.top&&c.top<r.bottom}function Mee(c,r){let a={left:Math.max(c.left,r.left),right:Math.min(c.right,r.right),top:Math.max(c.top,r.top),bottom:Math.min(c.bottom,r.bottom)};return a.left<a.right&&a.top<a.bottom?a:!1}function que(c,r){return{left:Math.min(Math.max(c.left,r.left),r.right),top:Math.min(Math.max(c.top,r.top),r.bottom)}}function Kue(c){return{left:(c.left+c.right)/2,top:(c.top+c.bottom)/2}}function Yue(c,r){return{left:c.left-r.left,top:c.top-r.top}}const j$=im();class Xue{constructor(){this.getKeysForEventDefs=Ms(this._getKeysForEventDefs),this.splitDateSelection=Ms(this._splitDateSpan),this.splitEventStore=Ms(this._splitEventStore),this.splitIndividualUi=Ms(this._splitIndividualUi),this.splitEventDrag=Ms(this._splitInteraction),this.splitEventResize=Ms(this._splitInteraction),this.eventUiBuilders={}}splitProps(r){let a=this.getKeyInfo(r),l=this.getKeysForEventDefs(r.eventStore),i=this.splitDateSelection(r.dateSelection),m=this.splitIndividualUi(r.eventUiBases,l),v=this.splitEventStore(r.eventStore,l),C=this.splitEventDrag(r.eventDrag),E=this.splitEventResize(r.eventResize),T={};this.eventUiBuilders=Z1(a,(N,V)=>this.eventUiBuilders[V]||Ms(Que));for(let N in a){let V=a[N],U=v[N]||j$,z=this.eventUiBuilders[N];T[N]={businessHours:V.businessHours||r.businessHours,dateSelection:i[N]||null,eventStore:U,eventUiBases:z(r.eventUiBases[""],V.ui,m[N]),eventSelection:U.instances[r.eventSelection]?r.eventSelection:"",eventDrag:C[N]||null,eventResize:E[N]||null}}return T}_splitDateSpan(r){let a={};if(r){let l=this.getKeysForDateSpan(r);for(let i of l)a[i]=r}return a}_getKeysForEventDefs(r){return Z1(r.defs,a=>this.getKeysForEventDef(a))}_splitEventStore(r,a){let{defs:l,instances:i}=r,m={};for(let v in l)for(let C of a[v])m[C]||(m[C]=im()),m[C].defs[v]=l[v];for(let v in i){let C=i[v];for(let E of a[C.defId])m[E]&&(m[E].instances[v]=C)}return m}_splitIndividualUi(r,a){let l={};for(let i in r)if(i)for(let m of a[i])l[m]||(l[m]={}),l[m][i]=r[i];return l}_splitInteraction(r){let a={};if(r){let l=this._splitEventStore(r.affectedEvents,this._getKeysForEventDefs(r.affectedEvents)),i=this._getKeysForEventDefs(r.mutatedEvents),m=this._splitEventStore(r.mutatedEvents,i),v=C=>{a[C]||(a[C]={affectedEvents:l[C]||j$,mutatedEvents:m[C]||j$,isEvent:r.isEvent})};for(let C in l)v(C);for(let C in m)v(C)}return a}}function Que(c,r,a){let l=[];c&&l.push(c),r&&l.push(r);let i={"":hee(l)};return a&&Object.assign(i,a),i}function Pee(c,r,a,l){return{dow:c.getUTCDay(),isDisabled:!!(l&&!Y1(l.activeRange,c)),isOther:!!(l&&!Y1(l.currentRange,c)),isToday:!!(r&&Y1(r,c)),isPast:!!(a?c<a:r&&c<r.start),isFuture:!!(a?c>a:r&&c>=r.end)}}function G$(c,r){let a=["fc-day",`fc-day-${nce[c.dow]}`];return c.isDisabled?a.push("fc-day-disabled"):(c.isToday&&(a.push("fc-day-today"),a.push(r.getClass("today"))),c.isPast&&a.push("fc-day-past"),c.isFuture&&a.push("fc-day-future"),c.isOther&&a.push("fc-day-other")),a}const Jue=El({year:"numeric",month:"long",day:"numeric"}),ede=El({week:"long"});function yR(c,r,a="day",l=!0){const{dateEnv:i,options:m,calendarApi:v}=c;let C=i.format(r,a==="week"?ede:Jue);if(m.navLinks){let E=i.toDate(r);const T=N=>{let V=a==="day"?m.navLinkDayClick:a==="week"?m.navLinkWeekClick:null;typeof V=="function"?V.call(v,i.toDate(r),N):(typeof V=="string"&&(a=V),v.zoomTo(r,a))};return Object.assign({title:aA(m.navLinkHint,[C,E],C),"data-navlink":""},l?FJ(T):{onClick:T})}return{"aria-label":C}}let Z$=null;function tde(){return Z$===null&&(Z$=nde()),Z$}function nde(){let c=document.createElement("div");iA(c,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),c.innerHTML="<div></div>",document.body.appendChild(c);let a=c.firstChild.getBoundingClientRect().left>c.getBoundingClientRect().left;return p$(c),a}let q$;function ode(){return q$||(q$=sde()),q$}function sde(){let c=document.createElement("div");c.style.overflow="scroll",c.style.position="absolute",c.style.top="-9999px",c.style.left="-9999px",document.body.appendChild(c);let r=Lee(c);return document.body.removeChild(c),r}function Lee(c){return{x:c.offsetHeight-c.clientHeight,y:c.offsetWidth-c.clientWidth}}function rde(c,r=!1){let a=window.getComputedStyle(c),l=parseInt(a.borderLeftWidth,10)||0,i=parseInt(a.borderRightWidth,10)||0,m=parseInt(a.borderTopWidth,10)||0,v=parseInt(a.borderBottomWidth,10)||0,C=Lee(c),E=C.y-l-i,T=C.x-m-v,N={borderLeft:l,borderRight:i,borderTop:m,borderBottom:v,scrollbarBottom:T,scrollbarLeft:0,scrollbarRight:0};return tde()&&a.direction==="rtl"?N.scrollbarLeft=E:N.scrollbarRight=E,r&&(N.paddingLeft=parseInt(a.paddingLeft,10)||0,N.paddingRight=parseInt(a.paddingRight,10)||0,N.paddingTop=parseInt(a.paddingTop,10)||0,N.paddingBottom=parseInt(a.paddingBottom,10)||0),N}function ide(c,r=!1,a){let l=a?c.getBoundingClientRect():K$(c),i=rde(c,r),m={left:l.left+i.borderLeft+i.scrollbarLeft,right:l.right-i.borderRight-i.scrollbarRight,top:l.top+i.borderTop,bottom:l.bottom-i.borderBottom-i.scrollbarBottom};return r&&(m.left+=i.paddingLeft,m.right-=i.paddingRight,m.top+=i.paddingTop,m.bottom-=i.paddingBottom),m}function K$(c){let r=c.getBoundingClientRect();return{left:r.left+window.scrollX,top:r.top+window.scrollY,right:r.right+window.scrollX,bottom:r.bottom+window.scrollY}}function ade(c){let r=Fee(c),a=c.getBoundingClientRect();for(let l of r){let i=Mee(a,l.getBoundingClientRect());if(i)a=i;else return null}return a}function Fee(c){let r=[];for(;c instanceof HTMLElement;){let a=window.getComputedStyle(c);if(a.position==="fixed")break;/(auto|scroll)/.test(a.overflow+a.overflowY+a.overflowX)&&r.push(c),c=c.parentNode}return r}class US{constructor(r,a,l,i){this.els=a;let m=this.originClientRect=r.getBoundingClientRect();l&&this.buildElHorizontals(m.left),i&&this.buildElVerticals(m.top)}buildElHorizontals(r){let a=[],l=[];for(let i of this.els){let m=i.getBoundingClientRect();a.push(m.left-r),l.push(m.right-r)}this.lefts=a,this.rights=l}buildElVerticals(r){let a=[],l=[];for(let i of this.els){let m=i.getBoundingClientRect();a.push(m.top-r),l.push(m.bottom-r)}this.tops=a,this.bottoms=l}leftToIndex(r){let{lefts:a,rights:l}=this,i=a.length,m;for(m=0;m<i;m+=1)if(r>=a[m]&&r<l[m])return m}topToIndex(r){let{tops:a,bottoms:l}=this,i=a.length,m;for(m=0;m<i;m+=1)if(r>=a[m]&&r<l[m])return m}getWidth(r){return this.rights[r]-this.lefts[r]}getHeight(r){return this.bottoms[r]-this.tops[r]}similarTo(r){return bR(this.tops||[],r.tops||[])&&bR(this.bottoms||[],r.bottoms||[])&&bR(this.lefts||[],r.lefts||[])&&bR(this.rights||[],r.rights||[])}}function bR(c,r){const a=c.length;if(a!==r.length)return!1;for(let l=0;l<a;l++)if(Math.round(c[l])!==Math.round(r[l]))return!1;return!0}class Y${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 lde extends Y${constructor(r){super(),this.el=r}getScrollTop(){return this.el.scrollTop}getScrollLeft(){return this.el.scrollLeft}setScrollTop(r){this.el.scrollTop=r}setScrollLeft(r){this.el.scrollLeft=r}getScrollWidth(){return this.el.scrollWidth}getScrollHeight(){return this.el.scrollHeight}getClientHeight(){return this.el.clientHeight}getClientWidth(){return this.el.clientWidth}}class cde extends Y${getScrollTop(){return window.scrollY}getScrollLeft(){return window.scrollX}setScrollTop(r){window.scroll(window.scrollX,r)}setScrollLeft(r){window.scroll(r,window.scrollY)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class wp extends Li{constructor(){super(...arguments),this.uid=H2()}prepareHits(){}queryHit(r,a,l,i){return null}isValidSegDownEl(r){return!this.props.eventDrag&&!this.props.eventResize&&!td(r,".fc-event-mirror")}isValidDateDownEl(r){return!td(r,".fc-event:not(.fc-bg-event)")&&!td(r,".fc-more-link")&&!td(r,"a[data-navlink]")&&!td(r,".fc-popover")}}class $ee{constructor(r=a=>a.thickness||1){this.getEntryThickness=r,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(r){let a=[];for(let l of r)this.insertEntry(l,a);return a}insertEntry(r,a){let l=this.findInsertion(r);this.isInsertionValid(l,r)?this.insertEntryAt(r,l):this.handleInvalidInsertion(l,r,a)}isInsertionValid(r,a){return(this.maxCoord===-1||r.levelCoord+this.getEntryThickness(a)<=this.maxCoord)&&(this.maxStackCnt===-1||r.stackCnt<this.maxStackCnt)}handleInvalidInsertion(r,a,l){if(this.allowReslicing&&r.touchingEntry){const i=Object.assign(Object.assign({},a),{span:Q$(a.span,r.touchingEntry.span)});l.push(i),this.splitEntry(a,r.touchingEntry,l)}else l.push(a)}splitEntry(r,a,l){let i=r.span,m=a.span;i.start<m.start&&this.insertEntry({index:r.index,thickness:r.thickness,span:{start:i.start,end:m.start}},l),i.end>m.end&&this.insertEntry({index:r.index,thickness:r.thickness,span:{start:m.end,end:i.end}},l)}insertEntryAt(r,a){let{entriesByLevel:l,levelCoords:i}=this;a.lateral===-1?(J$(i,a.level,a.levelCoord),J$(l,a.level,[r])):J$(l[a.level],a.lateral,r),this.stackCnts[Y2(r)]=a.stackCnt}findInsertion(r){let{levelCoords:a,entriesByLevel:l,strictOrder:i,stackCnts:m}=this,v=a.length,C=0,E=-1,T=-1,N=null,V=0;for(let W=0;W<v;W+=1){const K=a[W];if(!i&&K>=C+this.getEntryThickness(r))break;let Z=l[W],ce,q=eV(Z,r.span.start,X$),X=q[0]+q[1];for(;(ce=Z[X])&&ce.span.start<r.span.end;){let Ce=K+this.getEntryThickness(ce);Ce>C&&(C=Ce,N=ce,E=W,T=X),Ce===C&&(V=Math.max(V,m[Y2(ce)]+1)),X+=1}}let U=0;if(N)for(U=E+1;U<v&&a[U]<C;)U+=1;let z=-1;return U<v&&a[U]===C&&(z=eV(l[U],r.span.end,X$)[0]),{touchingLevel:E,touchingLateral:T,touchingEntry:N,stackCnt:V,levelCoord:C,level:U,lateral:z}}toRects(){let{entriesByLevel:r,levelCoords:a}=this,l=r.length,i=[];for(let m=0;m<l;m+=1){let v=r[m],C=a[m];for(let E of v)i.push(Object.assign(Object.assign({},E),{thickness:this.getEntryThickness(E),levelCoord:C}))}return i}}function X$(c){return c.span.end}function Y2(c){return c.index+":"+c.span.start}function ude(c){let r=[];for(let a of c){let l=[],i={span:a.span,entries:[a]};for(let m of r)Q$(m.span,i.span)?i={entries:m.entries.concat(i.entries),span:dde(m.span,i.span)}:l.push(m);l.push(i),r=l}return r}function dde(c,r){return{start:Math.min(c.start,r.start),end:Math.max(c.end,r.end)}}function Q$(c,r){let a=Math.max(c.start,r.start),l=Math.min(c.end,r.end);return a<l?{start:a,end:l}:null}function J$(c,r,a){c.splice(r,0,a)}function eV(c,r,a){let l=0,i=c.length;if(!i||r<a(c[l]))return[0,0];if(r>a(c[i-1]))return[i,0];for(;l<i;){let m=Math.floor(l+(i-l)/2),v=a(c[m]);if(r<v)i=m;else if(r>v)l=m+1;else return[m,1]}return[l,0]}class fde{constructor(r,a){this.emitter=new pR}destroy(){}setMirrorIsVisible(r){}setMirrorNeedsRevert(r){}setAutoScrollEnabled(r){}}const tV={};function mde(c,r){return!c||r>10?El({weekday:"short"}):r>1?El({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):El({weekday:"long"})}const Vee="fc-col-header-cell";function Hee(c){return c.text}class hde extends Li{render(){let{dateEnv:r,options:a,theme:l,viewApi:i}=this.context,{props:m}=this,{date:v,dateProfile:C}=m,E=Pee(v,m.todayRange,null,C),T=[Vee].concat(G$(E,l)),N=r.format(v,m.dayHeaderFormat),V=!E.isDisabled&&m.colCnt>1?yR(this.context,v):{},U=Object.assign(Object.assign(Object.assign({date:r.toDate(v),view:i},m.extraRenderProps),{text:N}),E);return rt(rm,{elTag:"th",elClasses:T,elAttrs:Object.assign({role:"columnheader",colSpan:m.colSpan,"data-date":E.isDisabled?void 0:S$(v)},m.extraDataAttrs),renderProps:U,generatorName:"dayHeaderContent",customGenerator:a.dayHeaderContent,defaultGenerator:Hee,classNameGenerator:a.dayHeaderClassNames,didMount:a.dayHeaderDidMount,willUnmount:a.dayHeaderWillUnmount},z=>rt("div",{className:"fc-scrollgrid-sync-inner"},!E.isDisabled&&rt(z,{elTag:"a",elAttrs:V,elClasses:["fc-col-header-cell-cushion",m.isSticky&&"fc-sticky"]})))}}const gde=El({weekday:"long"});class pde extends Li{render(){let{props:r}=this,{dateEnv:a,theme:l,viewApi:i,options:m}=this.context,v=nd(new Date(2592e5),r.dow),C={dow:r.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},E=a.format(v,r.dayHeaderFormat),T=Object.assign(Object.assign(Object.assign(Object.assign({date:v},C),{view:i}),r.extraRenderProps),{text:E});return rt(rm,{elTag:"th",elClasses:[Vee,...G$(C,l),...r.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:r.colSpan},r.extraDataAttrs),renderProps:T,generatorName:"dayHeaderContent",customGenerator:m.dayHeaderContent,defaultGenerator:Hee,classNameGenerator:m.dayHeaderClassNames,didMount:m.dayHeaderDidMount,willUnmount:m.dayHeaderWillUnmount},N=>rt("div",{className:"fc-scrollgrid-sync-inner"},rt(N,{elTag:"a",elClasses:["fc-col-header-cell-cushion",r.isSticky&&"fc-sticky"],elAttrs:{"aria-label":a.format(v,gde)}})))}}class fA extends sm{constructor(r,a){super(r,a),this.initialNowDate=uA(a.options.now,a.dateEnv),this.initialNowQueriedMs=new Date().valueOf(),this.state=this.computeTiming().currentState}render(){let{props:r,state:a}=this;return r.children(a.nowDate,a.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(r){r.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:r,context:a}=this,l=Jv(this.initialNowDate,new Date().valueOf()-this.initialNowQueriedMs),i=a.dateEnv.startOf(l,r.unit),m=a.dateEnv.add(i,ni(1,r.unit)),v=m.valueOf()-l.valueOf();return v=Math.min(1e3*60*60*24,v),{currentState:{nowDate:i,todayRange:zee(i)},nextState:{nowDate:m,todayRange:zee(m)},waitMs:v}}setTimeout(){let{nextState:r,waitMs:a}=this.computeTiming();this.timeoutId=setTimeout(()=>{this.setState(r,()=>{this.setTimeout()})},a)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}fA.contextType=q1;function zee(c){let r=Ra(c),a=nd(r,1);return{start:r,end:a}}class Uee extends Li{constructor(){super(...arguments),this.createDayHeaderFormatter=Ms(vde)}render(){let{context:r}=this,{dates:a,dateProfile:l,datesRepDistinctDays:i,renderIntro:m}=this.props,v=this.createDayHeaderFormatter(r.options.dayHeaderFormat,i,a.length);return rt(fA,{unit:"day"},(C,E)=>rt("tr",{role:"row"},m&&m("day"),a.map(T=>i?rt(hde,{key:T.toISOString(),date:T,dateProfile:l,todayRange:E,colCnt:a.length,dayHeaderFormat:v}):rt(pde,{key:T.getUTCDay(),dow:T.getUTCDay(),dayHeaderFormat:v}))))}}function vde(c,r,a){return c||mde(r,a)}class Wee{constructor(r,a){let l=r.start,{end:i}=r,m=[],v=[],C=-1;for(;l<i;)a.isHiddenDay(l)?m.push(C+.5):(C+=1,m.push(C),v.push(l)),l=nd(l,1);this.dates=v,this.indices=m,this.cnt=v.length}sliceRange(r){let a=this.getDateDayIndex(r.start),l=this.getDateDayIndex(nd(r.end,-1)),i=Math.max(0,a),m=Math.min(this.cnt-1,l);return i=Math.ceil(i),m=Math.floor(m),i<=m?{firstIndex:i,lastIndex:m,isStart:a===i,isEnd:l===m}:null}getDateDayIndex(r){let{indices:a}=this,l=Math.floor(z2(this.dates[0],r));return l<0?a[0]-1:l>=a.length?a[a.length-1]+1:a[l]}}class jee{constructor(r,a){let{dates:l}=r,i,m,v;if(a){for(m=l[0].getUTCDay(),i=1;i<l.length&&l[i].getUTCDay()!==m;i+=1);v=Math.ceil(l.length/i)}else v=1,i=l.length;this.rowCnt=v,this.colCnt=i,this.daySeries=r,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let r=[];for(let a=0;a<this.rowCnt;a+=1){let l=[];for(let i=0;i<this.colCnt;i+=1)l.push(this.buildCell(a,i));r.push(l)}return r}buildCell(r,a){let l=this.daySeries.dates[r*this.colCnt+a];return{key:l.toISOString(),date:l}}buildHeaderDates(){let r=[];for(let a=0;a<this.colCnt;a+=1)r.push(this.cells[0][a].date);return r}sliceRange(r){let{colCnt:a}=this,l=this.daySeries.sliceRange(r),i=[];if(l){let{firstIndex:m,lastIndex:v}=l,C=m;for(;C<=v;){let E=Math.floor(C/a),T=Math.min((E+1)*a,v+1);i.push({row:E,firstCol:C%a,lastCol:(T-1)%a,isStart:l.isStart&&C===m,isEnd:l.isEnd&&T-1===v}),C=T}}return i}}class Gee{constructor(){this.sliceBusinessHours=Ms(this._sliceBusinessHours),this.sliceDateSelection=Ms(this._sliceDateSpan),this.sliceEventStore=Ms(this._sliceEventStore),this.sliceEventDrag=Ms(this._sliceInteraction),this.sliceEventResize=Ms(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(r,a,l,i,...m){let{eventUiBases:v}=r,C=this.sliceEventStore(r.eventStore,v,a,l,...m);return{dateSelectionSegs:this.sliceDateSelection(r.dateSelection,a,l,v,i,...m),businessHourSegs:this.sliceBusinessHours(r.businessHours,a,l,i,...m),fgEventSegs:C.fg,bgEventSegs:C.bg,eventDrag:this.sliceEventDrag(r.eventDrag,v,a,l,...m),eventResize:this.sliceEventResize(r.eventResize,v,a,l,...m),eventSelection:r.eventSelection}}sliceNowDate(r,a,l,i,...m){return this._sliceDateSpan({range:{start:r,end:Jv(r,1)},allDay:!1},a,l,{},i,...m)}_sliceBusinessHours(r,a,l,i,...m){return r?this._sliceEventStore(q2(r,CR(a,!!l),i),{},a,l,...m).bg:[]}_sliceEventStore(r,a,l,i,...m){if(r){let v=Eee(r,a,CR(l,!!i),i);return{bg:this.sliceEventRanges(v.bg,m),fg:this.sliceEventRanges(v.fg,m)}}return{bg:[],fg:[]}}_sliceInteraction(r,a,l,i,...m){if(!r)return null;let v=Eee(r.mutatedEvents,a,CR(l,!!i),i);return{segs:this.sliceEventRanges(v.fg,m),affectedInstances:r.affectedEvents.instances,isEvent:r.isEvent}}_sliceDateSpan(r,a,l,i,m,...v){if(!r)return[];let C=CR(a,!!l),E=Z2(r.range,C);if(E){r=Object.assign(Object.assign({},r),{range:E});let T=Vue(r,i,m),N=this.sliceRange(r.range,...v);for(let V of N)V.eventRange=T;return N}return[]}sliceEventRanges(r,a){let l=[];for(let i of r)l.push(...this.sliceEventRange(i,a));return l}sliceEventRange(r,a){let l=r.range;this.forceDayIfListItem&&r.ui.display==="list-item"&&(l={start:l.start,end:nd(l.start,1)});let i=this.sliceRange(l,...a);for(let m of i)m.eventRange=r,m.isStart=r.isStart&&m.isStart,m.isEnd=r.isEnd&&m.isEnd;return i}}function CR(c,r){let a=c.activeRange;return r?a:{start:Jv(a.start,c.slotMinTime.milliseconds),end:Jv(a.end,c.slotMaxTime.milliseconds-864e5)}}function Zee(c,r,a){let{instances:l}=c.mutatedEvents;for(let i in l)if(!dR(r.validRange,l[i].range))return!1;return qee({eventDrag:c},a)}function yde(c,r,a){return dR(r.validRange,c.range)?qee({dateSelection:c},a):!1}function qee(c,r){let a=r.getCurrentData(),l=Object.assign({businessHours:a.businessHours,dateSelection:"",eventStore:a.eventStore,eventUiBases:a.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},c);return(r.pluginHooks.isPropsValid||bde)(l,r)}function bde(c,r,a={},l){return!(c.eventDrag&&!Cde(c,r,a,l)||c.dateSelection&&!_de(c,r,a,l))}function Cde(c,r,a,l){let i=r.getCurrentData(),m=c.eventDrag,v=m.mutatedEvents,C=v.defs,E=v.instances,T=vR(C,m.isEvent?c.eventUiBases:{"":i.selectionConfig});l&&(T=Z1(T,l));let N=yue(c.eventStore,m.affectedEvents.instances),V=N.defs,U=N.instances,z=vR(V,c.eventUiBases);for(let W in E){let K=E[W],Z=K.range,ce=T[K.defId],q=C[K.defId];if(!Kee(ce.constraints,Z,N,c.businessHours,r))return!1;let{eventOverlap:X}=r.options,Ce=typeof X=="function"?X:null;for(let Ne in U){let ee=U[Ne];if(I$(Z,ee.range)&&(z[ee.defId].overlap===!1&&m.isEvent||ce.overlap===!1||Ce&&!Ce(new fl(r,V[ee.defId],ee),new fl(r,q,K))))return!1}let st=i.eventStore;for(let Ne of ce.allows){let ee=Object.assign(Object.assign({},a),{range:K.range,allDay:q.allDay}),xe=st.defs[q.defId],et=st.instances[W],tt;if(xe?tt=new fl(r,xe,et):tt=new fl(r,q),!Ne(V$(ee,r),tt))return!1}}return!0}function _de(c,r,a,l){let i=c.eventStore,m=i.defs,v=i.instances,C=c.dateSelection,E=C.range,{selectionConfig:T}=r.getCurrentData();if(l&&(T=l(T)),!Kee(T.constraints,E,i,c.businessHours,r))return!1;let{selectOverlap:N}=r.options,V=typeof N=="function"?N:null;for(let U in v){let z=v[U];if(I$(E,z.range)&&(T.overlap===!1||V&&!V(new fl(r,m[z.defId],z),null)))return!1}for(let U of T.allows){let z=Object.assign(Object.assign({},a),C);if(!U(V$(z,r),null))return!1}return!0}function Kee(c,r,a,l,i){for(let m of c)if(!Sde(wde(m,r,a,l,i),r))return!1;return!0}function wde(c,r,a,l,i){return c==="businessHours"?nV(q2(l,r,i)):typeof c=="string"?nV(mR(a,m=>m.groupId===c)):typeof c=="object"&&c?nV(q2(c,r,i)):[]}function nV(c){let{instances:r}=c,a=[];for(let l in r)a.push(r[l].range);return a}function Sde(c,r){for(let a of c)if(dR(a,r))return!0;return!1}const _R=/^(visible|hidden)$/;class Ede extends Li{constructor(){super(...arguments),this.handleEl=r=>{this.el=r,K1(this.props.elRef,r)}}render(){let{props:r}=this,{liquid:a,liquidIsAbsolute:l}=r,i=a&&l,m=["fc-scroller"];return a&&(l?m.push("fc-scroller-liquid-absolute"):m.push("fc-scroller-liquid")),rt("div",{ref:this.handleEl,className:m.join(" "),style:{overflowX:r.overflowX,overflowY:r.overflowY,left:i&&-(r.overcomeLeft||0)||"",right:i&&-(r.overcomeRight||0)||"",bottom:i&&-(r.overcomeBottom||0)||"",marginLeft:!i&&-(r.overcomeLeft||0)||"",marginRight:!i&&-(r.overcomeRight||0)||"",marginBottom:!i&&-(r.overcomeBottom||0)||"",maxHeight:r.maxHeight||""}},r.children)}needsXScrolling(){if(_R.test(this.props.overflowX))return!1;let{el:r}=this,a=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:l}=r;for(let i=0;i<l.length;i+=1)if(l[i].getBoundingClientRect().width>a)return!0;return!1}needsYScrolling(){if(_R.test(this.props.overflowY))return!1;let{el:r}=this,a=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:l}=r;for(let i=0;i<l.length;i+=1)if(l[i].getBoundingClientRect().height>a)return!0;return!1}getXScrollbarWidth(){return _R.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return _R.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class X1{constructor(r){this.masterCallback=r,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(a,l)=>{let{depths:i,currentMap:m}=this,v=!1,C=!1;a!==null?(v=l in m,m[l]=a,i[l]=(i[l]||0)+1,C=!0):(i[l]-=1,i[l]||(delete m[l],delete this.callbackMap[l],v=!0)),this.masterCallback&&(v&&this.masterCallback(null,String(l)),C&&this.masterCallback(a,String(l)))}}createRef(r){let a=this.callbackMap[r];return a||(a=this.callbackMap[r]=l=>{this.handleValue(l,String(r))}),a}collect(r,a,l){return Mce(this.currentMap,r,a,l)}getAll(){return T$(this.currentMap)}}function kde(c){let r=Ble(c,".fc-scrollgrid-shrink"),a=0;for(let l of r)a=Math.max(a,qle(l));return Math.ceil(a)}function Yee(c,r){return c.liquid&&r.liquid}function xde(c,r){return r.maxHeight!=null||Yee(c,r)}function Ade(c,r,a,l){let{expandRows:i}=a;return typeof r.content=="function"?r.content(a):rt("table",{role:"presentation",className:[r.tableClassName,c.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:a.tableMinWidth,width:a.clientWidth,height:i?a.clientHeight:""}},a.tableColGroupNode,rt(l?"thead":"tbody",{role:"presentation"},typeof r.rowContent=="function"?r.rowContent(a):r.rowContent))}function Tde(c,r){return Qv(c,r,_p)}function Dde(c,r){let a=[];for(let l of c){let i=l.span||1;for(let m=0;m<i;m+=1)a.push(rt("col",{style:{width:l.width==="shrink"?Ode(r):l.width||"",minWidth:l.minWidth||""}}))}return rt("colgroup",{},...a)}function Ode(c){return c??4}function Rde(c){for(let r of c)if(r.width==="shrink")return!0;return!1}function Nde(c,r){let a=["fc-scrollgrid",r.theme.getClass("table")];return c&&a.push("fc-scrollgrid-liquid"),a}function Ide(c,r){let a=["fc-scrollgrid-section",`fc-scrollgrid-section-${c.type}`,c.className];return r&&c.liquid&&c.maxHeight==null&&a.push("fc-scrollgrid-section-liquid"),c.isSticky&&a.push("fc-scrollgrid-section-sticky"),a}function oV(c){return rt("div",{className:"fc-scrollgrid-sticky-shim",style:{width:c.clientWidth,minWidth:c.tableMinWidth}})}function wR(c){let{stickyHeaderDates:r}=c;return(r==null||r==="auto")&&(r=c.height==="auto"||c.viewHeight==="auto"),r}function Xee(c){let{stickyFooterScrollbar:r}=c;return(r==null||r==="auto")&&(r=c.height==="auto"||c.viewHeight==="auto"),r}class sV extends Li{constructor(){super(...arguments),this.processCols=Ms(r=>r,Tde),this.renderMicroColGroup=Ms(Dde),this.scrollerRefs=new X1,this.scrollerElRefs=new X1(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:r,state:a,context:l}=this,i=r.sections||[],m=this.processCols(r.cols),v=this.renderMicroColGroup(m,a.shrinkWidth),C=Nde(r.liquid,l);r.collapsibleWidth&&C.push("fc-scrollgrid-collapsible");let E=i.length,T=0,N,V=[],U=[],z=[];for(;T<E&&(N=i[T]).type==="header";)V.push(this.renderSection(N,v,!0)),T+=1;for(;T<E&&(N=i[T]).type==="body";)U.push(this.renderSection(N,v,!1)),T+=1;for(;T<E&&(N=i[T]).type==="footer";)z.push(this.renderSection(N,v,!0)),T+=1;let W=!Bee();const K={role:"rowgroup"};return rt("table",{role:"grid",className:C.join(" "),style:{height:r.height}},!!(!W&&V.length)&&rt("thead",K,...V),!!(!W&&U.length)&&rt("tbody",K,...U),!!(!W&&z.length)&&rt("tfoot",K,...z),W&&rt("tbody",K,...V,...U,...z))}renderSection(r,a,l){return"outerContent"in r?rt(Ya,{key:r.key},r.outerContent):rt("tr",{key:r.key,role:"presentation",className:Ide(r,this.props.liquid).join(" ")},this.renderChunkTd(r,a,r.chunk,l))}renderChunkTd(r,a,l,i){if("outerContent"in l)return l.outerContent;let{props:m}=this,{forceYScrollbars:v,scrollerClientWidths:C,scrollerClientHeights:E}=this.state,T=xde(m,r),N=Yee(m,r),V=m.liquid?v?"scroll":T?"auto":"hidden":"visible",U=r.key,z=Ade(r,l,{tableColGroupNode:a,tableMinWidth:"",clientWidth:!m.collapsibleWidth&&C[U]!==void 0?C[U]:null,clientHeight:E[U]!==void 0?E[U]:null,expandRows:r.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},i);return rt(i?"th":"td",{ref:l.elRef,role:"presentation"},rt("div",{className:`fc-scroller-harness${N?" fc-scroller-harness-liquid":""}`},rt(Ede,{ref:this.scrollerRefs.createRef(U),elRef:this.scrollerElRefs.createRef(U),overflowY:V,overflowX:m.liquid?"hidden":"visible",maxHeight:r.maxHeight,liquid:N,liquidIsAbsolute:!0},z)))}_handleScrollerEl(r,a){let l=Bde(this.props.sections,a);l&&K1(l.chunk.scrollerElRef,r)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return Rde(this.props.cols)?kde(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let r=ode(),{scrollerRefs:a,scrollerElRefs:l}=this,i=!1,m={},v={};for(let C in a.currentMap){let E=a.currentMap[C];if(E&&E.needsYScrolling()){i=!0;break}}for(let C of this.props.sections){let E=C.key,T=l.currentMap[E];if(T){let N=T.parentNode;m[E]=Math.floor(N.getBoundingClientRect().width-(i?r.y:0)),v[E]=Math.floor(N.getBoundingClientRect().height)}}return{forceYScrollbars:i,scrollerClientWidths:m,scrollerClientHeights:v}}}sV.addStateEquality({scrollerClientWidths:_p,scrollerClientHeights:_p});function Bde(c,r){for(let a of c)if(a.key===r)return a;return null}class rV extends Li{constructor(){super(...arguments),this.handleEl=r=>{this.el=r,r&&kee(r,this.props.seg)}}render(){const{props:r,context:a}=this,{options:l}=a,{seg:i}=r,{eventRange:m}=i,{ui:v}=m,C={event:new fl(a,m.def,m.instance),view:a.viewApi,timeText:r.timeText,textColor:v.textColor,backgroundColor:v.backgroundColor,borderColor:v.borderColor,isDraggable:!r.disableDragging&&Oue(i,a),isStartResizable:!r.disableResizing&&Rue(i,a),isEndResizable:!r.disableResizing&&Nue(i),isMirror:!!(r.isDragging||r.isResizing||r.isDateSelecting),isStart:!!i.isStart,isEnd:!!i.isEnd,isPast:!!r.isPast,isFuture:!!r.isFuture,isToday:!!r.isToday,isSelected:!!r.isSelected,isDragging:!!r.isDragging,isResizing:!!r.isResizing};return rt(rm,Object.assign({},r,{elRef:this.handleEl,elClasses:[...Iue(C),...i.eventRange.ui.classNames,...r.elClasses||[]],renderProps:C,generatorName:"eventContent",customGenerator:l.eventContent,defaultGenerator:r.defaultGenerator,classNameGenerator:l.eventClassNames,didMount:l.eventDidMount,willUnmount:l.eventWillUnmount}))}componentDidUpdate(r){this.el&&this.props.seg!==r.seg&&kee(this.el,this.props.seg)}}class Qee extends Li{render(){let{props:r,context:a}=this,{options:l}=a,{seg:i}=r,{ui:m}=i.eventRange,v=l.eventTimeFormat||r.defaultTimeFormat,C=Tee(i,v,a,r.defaultDisplayEventTime,r.defaultDisplayEventEnd);return rt(rV,Object.assign({},r,{elTag:"a",elStyle:{borderColor:m.borderColor,backgroundColor:m.backgroundColor},elAttrs:Oee(i,a),defaultGenerator:Mde,timeText:C}),(E,T)=>rt(Ya,null,rt(E,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:T.textColor}}),!!T.isStartResizable&&rt("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!T.isEndResizable&&rt("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function Mde(c){return rt("div",{className:"fc-event-main-frame"},c.timeText&&rt("div",{className:"fc-event-time"},c.timeText),rt("div",{className:"fc-event-title-container"},rt("div",{className:"fc-event-title fc-sticky"},c.event.title||rt(Ya,null," "))))}const iV=c=>rt(q1.Consumer,null,r=>{let{options:a}=r,l={isAxis:c.isAxis,date:r.dateEnv.toDate(c.date),view:r.viewApi};return rt(rm,Object.assign({},c,{elTag:c.elTag||"div",renderProps:l,generatorName:"nowIndicatorContent",customGenerator:a.nowIndicatorContent,classNameGenerator:a.nowIndicatorClassNames,didMount:a.nowIndicatorDidMount,willUnmount:a.nowIndicatorWillUnmount}))}),Pde=El({day:"numeric"});class aV extends Li{constructor(){super(...arguments),this.refineRenderProps=oR(Lde)}render(){let{props:r,context:a}=this,{options:l}=a,i=this.refineRenderProps({date:r.date,dateProfile:r.dateProfile,todayRange:r.todayRange,isMonthStart:r.isMonthStart||!1,showDayNumber:r.showDayNumber,extraRenderProps:r.extraRenderProps,viewApi:a.viewApi,dateEnv:a.dateEnv,monthStartFormat:l.monthStartFormat});return rt(rm,Object.assign({},r,{elClasses:[...G$(i,a.theme),...r.elClasses||[]],elAttrs:Object.assign(Object.assign({},r.elAttrs),i.isDisabled?{}:{"data-date":S$(r.date)}),renderProps:i,generatorName:"dayCellContent",customGenerator:l.dayCellContent,defaultGenerator:r.defaultGenerator,classNameGenerator:i.isDisabled?void 0:l.dayCellClassNames,didMount:l.dayCellDidMount,willUnmount:l.dayCellWillUnmount}))}}function lV(c){return!!(c.dayCellContent||N$("dayCellContent",c))}function Lde(c){let{date:r,dateEnv:a,dateProfile:l,isMonthStart:i}=c,m=Pee(r,c.todayRange,null,l),v=c.showDayNumber?a.format(r,i?c.monthStartFormat:Pde):"";return Object.assign(Object.assign(Object.assign({date:a.toDate(r),view:c.viewApi},m),{isMonthStart:i,dayNumberText:v}),c.extraRenderProps)}class Jee extends Li{render(){let{props:r}=this,{seg:a}=r;return rt(rV,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:a.eventRange.ui.backgroundColor},defaultGenerator:Fde,seg:a,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:r.isPast,isFuture:r.isFuture,isToday:r.isToday,disableDragging:!0,disableResizing:!0})}}function Fde(c){let{title:r}=c.event;return r&&rt("div",{className:"fc-event-title"},c.event.title)}function ete(c){return rt("div",{className:`fc-${c}`})}const tte=c=>rt(q1.Consumer,null,r=>{let{dateEnv:a,options:l}=r,{date:i}=c,m=l.weekNumberFormat||c.defaultFormat,v=a.computeWeekNumber(i),C=a.format(i,m);return rt(rm,Object.assign({},c,{renderProps:{num:v,text:C,date:i},generatorName:"weekNumberContent",customGenerator:l.weekNumberContent,defaultGenerator:$de,classNameGenerator:l.weekNumberClassNames,didMount:l.weekNumberDidMount,willUnmount:l.weekNumberWillUnmount}))});function $de(c){return c.text}const cV=10;class Vde extends Li{constructor(){super(...arguments),this.state={titleId:JO()},this.handleRootEl=r=>{this.rootEl=r,this.props.elRef&&K1(this.props.elRef,r)},this.handleDocumentMouseDown=r=>{const a=BJ(r);this.rootEl.contains(a)||this.handleCloseClick()},this.handleDocumentKeyDown=r=>{r.key==="Escape"&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:r}=this.props;r&&r()}}render(){let{theme:r,options:a}=this.context,{props:l,state:i}=this,m=["fc-popover",r.getClass("popover")].concat(l.extraClassNames||[]);return Cle(rt("div",Object.assign({},l.extraAttrs,{id:l.id,className:m.join(" "),"aria-labelledby":i.titleId,ref:this.handleRootEl}),rt("div",{className:"fc-popover-header "+r.getClass("popoverHeader")},rt("span",{className:"fc-popover-title",id:i.titleId},l.title),rt("span",{className:"fc-popover-close "+r.getIconClass("close"),title:a.closeHint,onClick:this.handleCloseClick})),rt("div",{className:"fc-popover-body "+r.getClass("popoverContent")},l.children)),l.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:r}=this.context,{alignmentEl:a,alignGridTop:l}=this.props,{rootEl:i}=this,m=ade(a);if(m){let v=i.getBoundingClientRect(),C=l?td(a,".fc-scrollgrid").getBoundingClientRect().top:m.top,E=r?m.right-v.width:m.left;C=Math.max(C,cV),E=Math.min(E,document.documentElement.clientWidth-cV-v.width),E=Math.max(E,cV);let T=i.offsetParent.getBoundingClientRect();iA(i,{top:C-T.top,left:E-T.left})}}}class Hde extends wp{constructor(){super(...arguments),this.handleRootEl=r=>{this.rootEl=r,r?this.context.registerInteractiveComponent(this,{el:r,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:r,dateEnv:a}=this.context,{props:l}=this,{startDate:i,todayRange:m,dateProfile:v}=l,C=a.format(i,r.dayPopoverFormat);return rt(aV,{elRef:this.handleRootEl,date:i,dateProfile:v,todayRange:m},(E,T,N)=>rt(Vde,{elRef:N.ref,id:l.id,title:C,extraClassNames:["fc-more-popover"].concat(N.className||[]),extraAttrs:N,parentEl:l.parentEl,alignmentEl:l.alignmentEl,alignGridTop:l.alignGridTop,onClose:l.onClose},lV(r)&&rt(E,{elTag:"div",elClasses:["fc-more-popover-misc"]}),l.children))}queryHit(r,a,l,i){let{rootEl:m,props:v}=this;return r>=0&&r<l&&a>=0&&a<i?{dateProfile:v.dateProfile,dateSpan:Object.assign({allDay:!v.forceTimed,range:{start:v.startDate,end:v.endDate}},v.extraDateSpan),dayEl:m,rect:{left:0,top:0,right:l,bottom:i},layer:1}:null}}class nte extends Li{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:JO()},this.handleLinkEl=r=>{this.linkEl=r,this.props.elRef&&K1(this.props.elRef,r)},this.handleClick=r=>{let{props:a,context:l}=this,{moreLinkClick:i}=l.options,m=ote(a).start;function v(C){let{def:E,instance:T,range:N}=C.eventRange;return{event:new fl(l,E,T),start:l.dateEnv.toDate(N.start),end:l.dateEnv.toDate(N.end),isStart:C.isStart,isEnd:C.isEnd}}typeof i=="function"&&(i=i({date:m,allDay:!!a.allDayDate,allSegs:a.allSegs.map(v),hiddenSegs:a.hiddenSegs.map(v),jsEvent:r,view:l.viewApi})),!i||i==="popover"?this.setState({isPopoverOpen:!0}):typeof i=="string"&&l.calendarApi.zoomTo(m,i)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:r,state:a}=this;return rt(q1.Consumer,null,l=>{let{viewApi:i,options:m,calendarApi:v}=l,{moreLinkText:C}=m,{moreCnt:E}=r,T=ote(r),N=typeof C=="function"?C.call(v,E):`+${E} ${C}`,V=aA(m.moreLinkHint,[E],N),U={num:E,shortText:`+${E}`,text:N,view:i};return rt(Ya,null,!!r.moreCnt&&rt(rm,{elTag:r.elTag||"a",elRef:this.handleLinkEl,elClasses:[...r.elClasses||[],"fc-more-link"],elStyle:r.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},r.elAttrs),FJ(this.handleClick)),{title:V,"aria-expanded":a.isPopoverOpen,"aria-controls":a.isPopoverOpen?a.popoverId:""}),renderProps:U,generatorName:"moreLinkContent",customGenerator:m.moreLinkContent,defaultGenerator:r.defaultGenerator||zde,classNameGenerator:m.moreLinkClassNames,didMount:m.moreLinkDidMount,willUnmount:m.moreLinkWillUnmount},r.children),a.isPopoverOpen&&rt(Hde,{id:a.popoverId,startDate:T.start,endDate:T.end,dateProfile:r.dateProfile,todayRange:r.todayRange,extraDateSpan:r.extraDateSpan,parentEl:this.parentEl,alignmentEl:r.alignmentElRef?r.alignmentElRef.current:this.linkEl,alignGridTop:r.alignGridTop,forceTimed:r.forceTimed,onClose:this.handlePopoverClose},r.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=td(this.linkEl,".fc-view-harness"))}}function zde(c){return c.text}function ote(c){if(c.allDayDate)return{start:c.allDayDate,end:nd(c.allDayDate,1)};let{hiddenSegs:r}=c;return{start:ste(r),end:Wde(r)}}function ste(c){return c.reduce(Ude).eventRange.range.start}function Ude(c,r){return c.eventRange.range.start<r.eventRange.range.start?c:r}function Wde(c){return c.reduce(jde).eventRange.range.end}function jde(c,r){return c.eventRange.range.end>r.eventRange.range.end?c:r}class Gde{constructor(){this.handlers=[]}set(r){this.currentValue=r;for(let a of this.handlers)a(r)}subscribe(r){this.handlers.push(r),this.currentValue!==void 0&&r(this.currentValue)}}class Zde extends Gde{constructor(){super(...arguments),this.map=new Map}handle(r){const{map:a}=this;let l=!1;r.isActive?(a.set(r.id,r),l=!0):a.has(r.id)&&(a.delete(r.id),l=!0),l&&this.set(a)}}const qde=[],rte={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"},ite=Object.assign(Object.assign({},rte),{buttonHints:{prev:"Previous $0",next:"Next $0",today(c,r){return r==="day"?"Today":`This ${c}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(c){return`Show ${c} more event${c===1?"":"s"}`}});function Kde(c){let r=c.length>0?c[0].code:"en",a=qde.concat(c),l={en:ite};for(let i of a)l[i.code]=i;return{map:l,defaultCode:r}}function ate(c,r){return typeof c=="object"&&!Array.isArray(c)?lte(c.code,[c.code],c):Yde(c,r)}function Yde(c,r){let a=[].concat(c||[]),l=Xde(a,r)||ite;return lte(c,a,l)}function Xde(c,r){for(let a=0;a<c.length;a+=1){let l=c[a].toLocaleLowerCase().split("-");for(let i=l.length;i>0;i-=1){let m=l.slice(0,i).join("-");if(r[m])return r[m]}}return null}function lte(c,r,a){let l=A$([rte,a],["buttonText"]);delete l.code;let{week:i}=l;return delete l.week,{codeArg:c,codes:r,week:i,simpleNumberFormat:new Intl.NumberFormat(c),options:l}}function Q1(c){return{id:H2(),name:c.name,premiumReleaseDate:c.premiumReleaseDate?new Date(c.premiumReleaseDate):void 0,deps:c.deps||[],reducers:c.reducers||[],isLoadingFuncs:c.isLoadingFuncs||[],contextInit:[].concat(c.contextInit||[]),eventRefiners:c.eventRefiners||{},eventDefMemberAdders:c.eventDefMemberAdders||[],eventSourceRefiners:c.eventSourceRefiners||{},isDraggableTransformers:c.isDraggableTransformers||[],eventDragMutationMassagers:c.eventDragMutationMassagers||[],eventDefMutationAppliers:c.eventDefMutationAppliers||[],dateSelectionTransformers:c.dateSelectionTransformers||[],datePointTransforms:c.datePointTransforms||[],dateSpanTransforms:c.dateSpanTransforms||[],views:c.views||{},viewPropsTransformers:c.viewPropsTransformers||[],isPropsValid:c.isPropsValid||null,externalDefTransforms:c.externalDefTransforms||[],viewContainerAppends:c.viewContainerAppends||[],eventDropTransformers:c.eventDropTransformers||[],componentInteractions:c.componentInteractions||[],calendarInteractions:c.calendarInteractions||[],themeClasses:c.themeClasses||{},eventSourceDefs:c.eventSourceDefs||[],cmdFormatter:c.cmdFormatter,recurringTypes:c.recurringTypes||[],namedTimeZonedImpl:c.namedTimeZonedImpl,initialView:c.initialView||"",elementDraggingImpl:c.elementDraggingImpl,optionChangeHandlers:c.optionChangeHandlers||{},scrollGridImpl:c.scrollGridImpl||null,listenerRefiners:c.listenerRefiners||{},optionRefiners:c.optionRefiners||{},propSetHandlers:c.propSetHandlers||{}}}function Qde(c,r){let a={},l={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 i(m){for(let v of m){const C=v.name,E=a[C];E===void 0?(a[C]=v.id,i(v.deps),l=efe(l,v)):E!==v.id&&console.warn(`Duplicate plugin '${C}'`)}}return c&&i(c),i(r),l}function Jde(){let c=[],r=[],a;return(l,i)=>((!a||!Qv(l,c)||!Qv(i,r))&&(a=Qde(l,i)),c=l,r=i,a)}function efe(c,r){return{premiumReleaseDate:tfe(c.premiumReleaseDate,r.premiumReleaseDate),reducers:c.reducers.concat(r.reducers),isLoadingFuncs:c.isLoadingFuncs.concat(r.isLoadingFuncs),contextInit:c.contextInit.concat(r.contextInit),eventRefiners:Object.assign(Object.assign({},c.eventRefiners),r.eventRefiners),eventDefMemberAdders:c.eventDefMemberAdders.concat(r.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},c.eventSourceRefiners),r.eventSourceRefiners),isDraggableTransformers:c.isDraggableTransformers.concat(r.isDraggableTransformers),eventDragMutationMassagers:c.eventDragMutationMassagers.concat(r.eventDragMutationMassagers),eventDefMutationAppliers:c.eventDefMutationAppliers.concat(r.eventDefMutationAppliers),dateSelectionTransformers:c.dateSelectionTransformers.concat(r.dateSelectionTransformers),datePointTransforms:c.datePointTransforms.concat(r.datePointTransforms),dateSpanTransforms:c.dateSpanTransforms.concat(r.dateSpanTransforms),views:Object.assign(Object.assign({},c.views),r.views),viewPropsTransformers:c.viewPropsTransformers.concat(r.viewPropsTransformers),isPropsValid:r.isPropsValid||c.isPropsValid,externalDefTransforms:c.externalDefTransforms.concat(r.externalDefTransforms),viewContainerAppends:c.viewContainerAppends.concat(r.viewContainerAppends),eventDropTransformers:c.eventDropTransformers.concat(r.eventDropTransformers),calendarInteractions:c.calendarInteractions.concat(r.calendarInteractions),componentInteractions:c.componentInteractions.concat(r.componentInteractions),themeClasses:Object.assign(Object.assign({},c.themeClasses),r.themeClasses),eventSourceDefs:c.eventSourceDefs.concat(r.eventSourceDefs),cmdFormatter:r.cmdFormatter||c.cmdFormatter,recurringTypes:c.recurringTypes.concat(r.recurringTypes),namedTimeZonedImpl:r.namedTimeZonedImpl||c.namedTimeZonedImpl,initialView:c.initialView||r.initialView,elementDraggingImpl:c.elementDraggingImpl||r.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},c.optionChangeHandlers),r.optionChangeHandlers),scrollGridImpl:r.scrollGridImpl||c.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},c.listenerRefiners),r.listenerRefiners),optionRefiners:Object.assign(Object.assign({},c.optionRefiners),r.optionRefiners),propSetHandlers:Object.assign(Object.assign({},c.propSetHandlers),r.propSetHandlers)}}function tfe(c,r){return c===void 0?r:r===void 0?c:new Date(Math.max(c.valueOf(),r.valueOf()))}class oy extends cA{}oy.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},oy.prototype.baseIconClass="fc-icon",oy.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"},oy.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},oy.prototype.iconOverrideOption="buttonIcons",oy.prototype.iconOverrideCustomButtonOption="icon",oy.prototype.iconOverridePrefix="fc-icon-";function nfe(c,r){let a={},l;for(l in c)uV(l,a,c,r);for(l in r)uV(l,a,c,r);return a}function uV(c,r,a,l){if(r[c])return r[c];let i=ofe(c,r,a,l);return i&&(r[c]=i),i}function ofe(c,r,a,l){let i=a[c],m=l[c],v=N=>i&&i[N]!==null?i[N]:m&&m[N]!==null?m[N]:null,C=v("component"),E=v("superType"),T=null;if(E){if(E===c)throw new Error("Can't have a custom view type that references itself");T=uV(E,r,a,l)}return!C&&T&&(C=T.component),C?{type:c,component:C,defaults:Object.assign(Object.assign({},T?T.defaults:{}),i?i.rawOptions:{}),overrides:Object.assign(Object.assign({},T?T.overrides:{}),m?m.rawOptions:{})}:null}function cte(c){return Z1(c,sfe)}function sfe(c){let r=typeof c=="function"?{component:c}:c,{component:a}=r;return r.content?a=ute(r):a&&!(a.prototype instanceof Li)&&(a=ute(Object.assign(Object.assign({},r),{content:a}))),{superType:r.type,component:a,rawOptions:r}}function ute(c){return r=>rt(q1.Consumer,null,a=>rt(rm,{elTag:"div",elClasses:ree(a.viewSpec),renderProps:Object.assign(Object.assign({},r),{nextDayThreshold:a.options.nextDayThreshold}),generatorName:void 0,customGenerator:c.content,classNameGenerator:c.classNames,didMount:c.didMount,willUnmount:c.willUnmount}))}function rfe(c,r,a,l){let i=cte(c),m=cte(r.views),v=nfe(i,m);return Z1(v,C=>ife(C,m,r,a,l))}function ife(c,r,a,l,i){let m=c.overrides.duration||c.defaults.duration||l.duration||a.duration,v=null,C="",E="",T={};if(m&&(v=afe(m),v)){let U=_$(v);C=U.unit,U.value===1&&(E=C,T=r[C]?r[C].rawOptions:{})}let N=U=>{let z=U.buttonText||{},W=c.defaults.buttonTextKey;return W!=null&&z[W]!=null?z[W]:z[c.type]!=null?z[c.type]:z[E]!=null?z[E]:null},V=U=>{let z=U.buttonHints||{},W=c.defaults.buttonTextKey;return W!=null&&z[W]!=null?z[W]:z[c.type]!=null?z[c.type]:z[E]!=null?z[E]:null};return{type:c.type,component:c.component,duration:v,durationUnit:C,singleUnit:E,optionDefaults:c.defaults,optionOverrides:Object.assign(Object.assign({},T),c.overrides),buttonTextOverride:N(l)||N(a)||c.overrides.buttonText,buttonTextDefault:N(i)||c.defaults.buttonText||N(lA)||c.type,buttonTitleOverride:V(l)||V(a)||c.overrides.buttonHint,buttonTitleDefault:V(i)||c.defaults.buttonHint||V(lA)}}let dte={};function afe(c){let r=JSON.stringify(c),a=dte[r];return a===void 0&&(a=ni(c),dte[r]=a),a}function lfe(c,r){switch(r.type){case"CHANGE_VIEW_TYPE":c=r.viewType}return c}function cfe(c,r){switch(r.type){case"SET_OPTION":return Object.assign(Object.assign({},c),{[r.optionName]:r.rawOptionValue});default:return c}}function ufe(c,r,a,l){let i;switch(r.type){case"CHANGE_VIEW_TYPE":return l.build(r.dateMarker||a);case"CHANGE_DATE":return l.build(r.dateMarker);case"PREV":if(i=l.buildPrev(c,a),i.isValid)return i;break;case"NEXT":if(i=l.buildNext(c,a),i.isValid)return i;break}return c}function dfe(c,r,a){let l=r?r.activeRange:null;return mte({},yfe(c,a),l,a)}function ffe(c,r,a,l){let i=a?a.activeRange:null;switch(r.type){case"ADD_EVENT_SOURCES":return mte(c,r.sources,i,l);case"REMOVE_EVENT_SOURCE":return hfe(c,r.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return a?hte(c,i,l):c;case"FETCH_EVENT_SOURCES":return dV(c,r.sourceIds?eee(r.sourceIds):gte(c,l),i,r.isRefetch||!1,l);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return vfe(c,r.sourceId,r.fetchId,r.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return c}}function mfe(c,r,a){let l=r?r.activeRange:null;return dV(c,gte(c,a),l,!0,a)}function fte(c){for(let r in c)if(c[r].isFetching)return!0;return!1}function mte(c,r,a,l){let i={};for(let m of r)i[m.sourceId]=m;return a&&(i=hte(i,a,l)),Object.assign(Object.assign({},c),i)}function hfe(c,r){return j2(c,a=>a.sourceId!==r)}function hte(c,r,a){return dV(c,j2(c,l=>gfe(l,r,a)),r,!1,a)}function gfe(c,r,a){return pte(c,a)?!a.options.lazyFetching||!c.fetchRange||c.isFetching||r.start<c.fetchRange.start||r.end>c.fetchRange.end:!c.latestFetchId}function dV(c,r,a,l,i){let m={};for(let v in c){let C=c[v];r[v]?m[v]=pfe(C,a,l,i):m[v]=C}return m}function pfe(c,r,a,l){let{options:i,calendarApi:m}=l,v=l.pluginHooks.eventSourceDefs[c.sourceDefId],C=H2();return v.fetch({eventSource:c,range:r,isRefetch:a,context:l},E=>{let{rawEvents:T}=E;i.eventSourceSuccess&&(T=i.eventSourceSuccess.call(m,T,E.response)||T),c.success&&(T=c.success.call(m,T,E.response)||T),l.dispatch({type:"RECEIVE_EVENTS",sourceId:c.sourceId,fetchId:C,fetchRange:r,rawEvents:T})},E=>{let T=!1;i.eventSourceFailure&&(i.eventSourceFailure.call(m,E),T=!0),c.failure&&(c.failure(E),T=!0),T||console.warn(E.message,E),l.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:c.sourceId,fetchId:C,fetchRange:r,error:E})}),Object.assign(Object.assign({},c),{isFetching:!0,latestFetchId:C})}function vfe(c,r,a,l){let i=c[r];return i&&a===i.latestFetchId?Object.assign(Object.assign({},c),{[r]:Object.assign(Object.assign({},i),{isFetching:!1,fetchRange:l})}):c}function gte(c,r){return j2(c,a=>pte(a,r))}function yfe(c,r){let a=pee(r),l=[].concat(c.eventSources||[]),i=[];c.initialEvents&&l.unshift(c.initialEvents),c.events&&l.unshift(c.events);for(let m of l){let v=gee(m,r,a);v&&i.push(v)}return i}function pte(c,r){return!r.pluginHooks.eventSourceDefs[c.sourceDefId].ignoreRange}function bfe(c,r){switch(r.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return r.selection;default:return c}}function Cfe(c,r){switch(r.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return r.eventInstanceId;default:return c}}function _fe(c,r){let a;switch(r.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return a=r.state,{affectedEvents:a.affectedEvents,mutatedEvents:a.mutatedEvents,isEvent:a.isEvent};default:return c}}function wfe(c,r){let a;switch(r.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return a=r.state,{affectedEvents:a.affectedEvents,mutatedEvents:a.mutatedEvents,isEvent:a.isEvent};default:return c}}function Sfe(c,r,a,l,i){let m=c.headerToolbar?vte(c.headerToolbar,c,r,a,l,i):null,v=c.footerToolbar?vte(c.footerToolbar,c,r,a,l,i):null;return{header:m,footer:v}}function vte(c,r,a,l,i,m){let v={},C=[],E=!1;for(let T in c){let N=c[T],V=Efe(N,r,a,l,i,m);v[T]=V.widgets,C.push(...V.viewsWithButtons),E=E||V.hasTitle}return{sectionWidgets:v,viewsWithButtons:C,hasTitle:E}}function Efe(c,r,a,l,i,m){let v=r.direction==="rtl",C=r.customButtons||{},E=a.buttonText||{},T=r.buttonText||{},N=a.buttonHints||{},V=r.buttonHints||{},U=c?c.split(" "):[],z=[],W=!1;return{widgets:U.map(Z=>Z.split(",").map(ce=>{if(ce==="title")return W=!0,{buttonName:ce};let q,X,Ce,st,Ne,ee;if(q=C[ce])Ce=xe=>{q.click&&q.click.call(xe.target,xe,xe.target)},(st=l.getCustomButtonIconClass(q))||(st=l.getIconClass(ce,v))||(Ne=q.text),ee=q.hint||q.text;else if(X=i[ce]){z.push(ce),Ce=()=>{m.changeView(ce)},(Ne=X.buttonTextOverride)||(st=l.getIconClass(ce,v))||(Ne=X.buttonTextDefault);let xe=X.buttonTextOverride||X.buttonTextDefault;ee=aA(X.buttonTitleOverride||X.buttonTitleDefault||r.viewHint,[xe,ce],xe)}else if(m[ce])if(Ce=()=>{m[ce]()},(Ne=E[ce])||(st=l.getIconClass(ce,v))||(Ne=T[ce]),ce==="prevYear"||ce==="nextYear"){let xe=ce==="prevYear"?"prev":"next";ee=aA(N[xe]||V[xe],[T.year||"year","year"],T[ce])}else ee=xe=>aA(N[ce]||V[ce],[T[xe]||xe,xe],T[ce]);return{buttonName:ce,buttonClick:Ce,buttonIcon:st,buttonText:Ne,buttonHint:ee}})),viewsWithButtons:z,hasTitle:W}}class kfe{constructor(r,a,l){this.type=r,this.getCurrentData=a,this.dateEnv=l}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(r){return this.getCurrentData().options[r]}}const xfe=Q1({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta(c){return Array.isArray(c.events)?c.events:null},fetch(c,r){r({rawEvents:c.eventSource.meta})}}]}),Afe=Q1({name:"func-event-source",eventSourceDefs:[{parseMeta(c){return typeof c.events=="function"?c.events:null},fetch(c,r,a){const{dateEnv:l}=c.context,i=c.eventSource.meta;Hue(i.bind(null,Ree(c.range,l)),m=>r({rawEvents:m}),a)}}]}),Tfe=Q1({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:qt,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta(c){return c.url&&(c.format==="json"||!c.format)?{url:c.url,format:"json",method:(c.method||"GET").toUpperCase(),extraParams:c.extraParams,startParam:c.startParam,endParam:c.endParam,timeZoneParam:c.timeZoneParam}:null},fetch(c,r,a){const{meta:l}=c.eventSource,i=Dfe(l,c.range,c.context);zue(l.method,l.url,i).then(([m,v])=>{r({rawEvents:m,response:v})},a)}}]});function Dfe(c,r,a){let{dateEnv:l,options:i}=a,m,v,C,E,T={};return m=c.startParam,m==null&&(m=i.startParam),v=c.endParam,v==null&&(v=i.endParam),C=c.timeZoneParam,C==null&&(C=i.timeZoneParam),typeof c.extraParams=="function"?E=c.extraParams():E=c.extraParams||{},Object.assign(T,E),T[m]=l.formatIso(r.start),T[v]=l.formatIso(r.end),l.timeZone!=="local"&&(T[C]=l.timeZone),T}const Ofe=Q1({name:"simple-recurring-event",recurringTypes:[{parse(c,r){if(c.daysOfWeek||c.startTime||c.endTime||c.startRecur||c.endRecur){let a={daysOfWeek:c.daysOfWeek||null,startTime:c.startTime||null,endTime:c.endTime||null,startRecur:c.startRecur?r.createMarker(c.startRecur):null,endRecur:c.endRecur?r.createMarker(c.endRecur):null},l;return c.duration&&(l=c.duration),!l&&c.startTime&&c.endTime&&(l=Qle(c.endTime,c.startTime)),{allDayGuess:!c.startTime&&!c.endTime,duration:l,typeData:a}}return null},expand(c,r,a){let l=Z2(r,{start:c.startRecur,end:c.endRecur});return l?Rfe(c.daysOfWeek,c.startTime,l,a):[]}}],eventRefiners:{daysOfWeek:qt,startTime:ni,endTime:ni,duration:ni,startRecur:qt,endRecur:qt}});function Rfe(c,r,a,l){let i=c?eee(c):null,m=Ra(a.start),v=a.end,C=[];for(;m<v;){let E;(!i||i[m.getUTCDay()])&&(r?E=l.add(m,r):E=m,C.push(E)),m=nd(m,1)}return C}const Nfe=Q1({name:"change-handler",optionChangeHandlers:{events(c,r){yte([c],r)},eventSources:yte}});function yte(c,r){let a=T$(r.getCurrentData().eventSources);if(a.length===1&&c.length===1&&Array.isArray(a[0]._raw)&&Array.isArray(c[0])){r.dispatch({type:"RESET_RAW_EVENTS",sourceId:a[0].sourceId,rawEvents:c[0]});return}let l=[];for(let i of c){let m=!1;for(let v=0;v<a.length;v+=1)if(a[v]._raw===i){a.splice(v,1),m=!0;break}m||l.push(i)}for(let i of a)r.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:i.sourceId});for(let i of l)r.calendarApi.addEventSource(i)}function Ife(c,r){r.emitter.trigger("datesSet",Object.assign(Object.assign({},Ree(c.activeRange,r.dateEnv)),{view:r.viewApi}))}function Bfe(c,r){let{emitter:a}=r;a.hasHandlers("eventsSet")&&a.trigger("eventsSet",K2(c,r))}const Mfe=[xfe,Afe,Tfe,Ofe,Nfe,Q1({name:"misc",isLoadingFuncs:[c=>fte(c.eventSources)],propSetHandlers:{dateProfile:Ife,eventStore:Bfe}})];class Pfe{constructor(r,a){this.runTaskOption=r,this.drainedOption=a,this.queue=[],this.delayedRunner=new g$(this.drain.bind(this))}request(r,a){this.queue.push(r),this.delayedRunner.request(a)}pause(r){this.delayedRunner.pause(r)}resume(r,a){this.delayedRunner.resume(r,a)}drain(){let{queue:r}=this;for(;r.length;){let a=[],l;for(;l=r.shift();)this.runTask(l),a.push(l);this.drained(a)}}runTask(r){this.runTaskOption&&this.runTaskOption(r)}drained(r){this.drainedOption&&this.drainedOption(r)}}function Lfe(c,r,a){let l;return/^(year|month)$/.test(c.currentRangeUnit)?l=c.currentRange:l=c.activeRange,a.formatRange(l.start,l.end,El(r.titleFormat||Ffe(c)),{isEndExclusive:c.isRangeAllDay,defaultSeparator:r.titleRangeSeparator})}function Ffe(c){let{currentRangeUnit:r}=c;if(r==="year")return{year:"numeric"};if(r==="month")return{year:"numeric",month:"long"};let a=nR(c.currentRange.start,c.currentRange.end);return a!==null&&a>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class $fe{constructor(r){this.computeCurrentViewData=Ms(this._computeCurrentViewData),this.organizeRawLocales=Ms(Kde),this.buildLocale=Ms(ate),this.buildPluginHooks=Jde(),this.buildDateEnv=Ms(Vfe),this.buildTheme=Ms(Hfe),this.parseToolbars=Ms(Sfe),this.buildViewSpecs=Ms(rfe),this.buildDateProfileGenerator=oR(zfe),this.buildViewApi=Ms(Ufe),this.buildViewUiProps=oR(Gfe),this.buildEventUiBySource=Ms(Wfe,_p),this.buildEventUiBases=Ms(jfe),this.parseContextBusinessHours=oR(Zfe),this.buildTitle=Ms(Lfe),this.emitter=new pR,this.actionRunner=new Pfe(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=U=>{this.actionRunner.request(U)},this.props=r,this.actionRunner.pause();let a={},l=this.computeOptionsData(r.optionOverrides,a,r.calendarApi),i=l.calendarOptions.initialView||l.pluginHooks.initialView,m=this.computeCurrentViewData(i,l,r.optionOverrides,a);r.calendarApi.currentDataManager=this,this.emitter.setThisContext(r.calendarApi),this.emitter.setOptions(m.options);let v=tue(l.calendarOptions,l.dateEnv),C=m.dateProfileGenerator.build(v);Y1(C.activeRange,v)||(v=C.currentRange.start);let E={dateEnv:l.dateEnv,options:l.calendarOptions,pluginHooks:l.pluginHooks,calendarApi:r.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let U of l.pluginHooks.contextInit)U(E);let T=dfe(l.calendarOptions,C,E),N={dynamicOptionOverrides:a,currentViewType:i,currentDate:v,dateProfile:C,businessHours:this.parseContextBusinessHours(E),eventSources:T,eventUiBases:{},eventStore:im(),renderableEventStore:im(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(E).selectionConfig},V=Object.assign(Object.assign({},E),N);for(let U of l.pluginHooks.reducers)Object.assign(N,U(null,null,V));fV(N,E)&&this.emitter.trigger("loading",!0),this.state=N,this.updateData(),this.actionRunner.resume()}resetOptions(r,a){let{props:l}=this;a===void 0?l.optionOverrides=r:(l.optionOverrides=Object.assign(Object.assign({},l.optionOverrides||{}),r),this.optionsForRefining.push(...a)),(a===void 0||a.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(r){let{props:a,state:l,emitter:i}=this,m=cfe(l.dynamicOptionOverrides,r),v=this.computeOptionsData(a.optionOverrides,m,a.calendarApi),C=lfe(l.currentViewType,r),E=this.computeCurrentViewData(C,v,a.optionOverrides,m);a.calendarApi.currentDataManager=this,i.setThisContext(a.calendarApi),i.setOptions(E.options);let T={dateEnv:v.dateEnv,options:v.calendarOptions,pluginHooks:v.pluginHooks,calendarApi:a.calendarApi,dispatch:this.dispatch,emitter:i,getCurrentData:this.getCurrentData},{currentDate:N,dateProfile:V}=l;this.data&&this.data.dateProfileGenerator!==E.dateProfileGenerator&&(V=E.dateProfileGenerator.build(N)),N=eue(N,r),V=ufe(V,r,N,E.dateProfileGenerator),(r.type==="PREV"||r.type==="NEXT"||!Y1(V.currentRange,N))&&(N=V.currentRange.start);let U=ffe(l.eventSources,r,V,T),z=hue(l.eventStore,r,U,V,T),K=fte(U)&&!E.options.progressiveEventRendering&&l.renderableEventStore||z,{eventUiSingleBase:Z,selectionConfig:ce}=this.buildViewUiProps(T),q=this.buildEventUiBySource(U),X=this.buildEventUiBases(K.defs,Z,q),Ce={dynamicOptionOverrides:m,currentViewType:C,currentDate:N,dateProfile:V,eventSources:U,eventStore:z,renderableEventStore:K,selectionConfig:ce,eventUiBases:X,businessHours:this.parseContextBusinessHours(T),dateSelection:bfe(l.dateSelection,r),eventSelection:Cfe(l.eventSelection,r),eventDrag:_fe(l.eventDrag,r),eventResize:wfe(l.eventResize,r)},st=Object.assign(Object.assign({},T),Ce);for(let xe of v.pluginHooks.reducers)Object.assign(Ce,xe(l,r,st));let Ne=fV(l,T),ee=fV(Ce,T);!Ne&&ee?i.trigger("loading",!0):Ne&&!ee&&i.trigger("loading",!1),this.state=Ce,a.onAction&&a.onAction(r)}updateData(){let{props:r,state:a}=this,l=this.data,i=this.computeOptionsData(r.optionOverrides,a.dynamicOptionOverrides,r.calendarApi),m=this.computeCurrentViewData(a.currentViewType,i,r.optionOverrides,a.dynamicOptionOverrides),v=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(a.dateProfile,m.options,i.dateEnv),calendarApi:r.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},i),m),a),C=i.pluginHooks.optionChangeHandlers,E=l&&l.calendarOptions,T=i.calendarOptions;if(E&&E!==T){E.timeZone!==T.timeZone&&(a.eventSources=v.eventSources=mfe(v.eventSources,a.dateProfile,v),a.eventStore=v.eventStore=bee(v.eventStore,l.dateEnv,v.dateEnv),a.renderableEventStore=v.renderableEventStore=bee(v.renderableEventStore,l.dateEnv,v.dateEnv));for(let N in C)(this.optionsForHandling.indexOf(N)!==-1||E[N]!==T[N])&&C[N](T[N],v)}this.optionsForHandling=[],r.onData&&r.onData(v)}computeOptionsData(r,a,l){if(!this.optionsForRefining.length&&r===this.stableOptionOverrides&&a===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:i,pluginHooks:m,localeDefaults:v,availableLocaleData:C,extra:E}=this.processRawCalendarOptions(r,a);bte(E);let T=this.buildDateEnv(i.timeZone,i.locale,i.weekNumberCalculation,i.firstDay,i.weekText,m,C,i.defaultRangeSeparator),N=this.buildViewSpecs(m.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,v),V=this.buildTheme(i,m),U=this.parseToolbars(i,this.stableOptionOverrides,V,N,l);return this.stableCalendarOptionsData={calendarOptions:i,pluginHooks:m,dateEnv:T,viewSpecs:N,theme:V,toolbarConfig:U,localeDefaults:v,availableRawLocales:C.map}}processRawCalendarOptions(r,a){let{locales:l,locale:i}=k$([lA,r,a]),m=this.organizeRawLocales(l),v=m.map,C=this.buildLocale(i||m.defaultCode,v).options,E=this.buildPluginHooks(r.plugins||[],Mfe),T=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},XJ),QJ),JJ),E.listenerRefiners),E.optionRefiners),N={},V=k$([lA,C,r,a]),U={},z=this.currentCalendarOptionsInput,W=this.currentCalendarOptionsRefined,K=!1;for(let Z in V)this.optionsForRefining.indexOf(Z)===-1&&(V[Z]===z[Z]||U2[Z]&&Z in z&&U2[Z](z[Z],V[Z]))?U[Z]=W[Z]:T[Z]?(U[Z]=T[Z](V[Z]),K=!0):N[Z]=z[Z];return K&&(this.currentCalendarOptionsInput=V,this.currentCalendarOptionsRefined=U,this.stableOptionOverrides=r,this.stableDynamicOptionOverrides=a),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:E,availableLocaleData:m,localeDefaults:C,extra:N}}_computeCurrentViewData(r,a,l,i){let m=a.viewSpecs[r];if(!m)throw new Error(`viewType "${r}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:v,extra:C}=this.processRawViewOptions(m,a.pluginHooks,a.localeDefaults,l,i);bte(C);let E=this.buildDateProfileGenerator({dateProfileGeneratorClass:m.optionDefaults.dateProfileGeneratorClass,duration:m.duration,durationUnit:m.durationUnit,usesMinMaxTime:m.optionDefaults.usesMinMaxTime,dateEnv:a.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:v.slotMinTime,slotMaxTime:v.slotMaxTime,showNonCurrentDates:v.showNonCurrentDates,dayCount:v.dayCount,dateAlignment:v.dateAlignment,dateIncrement:v.dateIncrement,hiddenDays:v.hiddenDays,weekends:v.weekends,nowInput:v.now,validRangeInput:v.validRange,visibleRangeInput:v.visibleRange,fixedWeekCount:v.fixedWeekCount}),T=this.buildViewApi(r,this.getCurrentData,a.dateEnv);return{viewSpec:m,options:v,dateProfileGenerator:E,viewApi:T}}processRawViewOptions(r,a,l,i,m){let v=k$([lA,r.optionDefaults,l,i,r.optionOverrides,m]),C=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},XJ),QJ),JJ),Rce),a.listenerRefiners),a.optionRefiners),E={},T=this.currentViewOptionsInput,N=this.currentViewOptionsRefined,V=!1,U={};for(let z in v)v[z]===T[z]||U2[z]&&U2[z](v[z],T[z])?E[z]=N[z]:(v[z]===this.currentCalendarOptionsInput[z]||U2[z]&&U2[z](v[z],this.currentCalendarOptionsInput[z])?z in this.currentCalendarOptionsRefined&&(E[z]=this.currentCalendarOptionsRefined[z]):C[z]?E[z]=C[z](v[z]):U[z]=v[z],V=!0);return V&&(this.currentViewOptionsInput=v,this.currentViewOptionsRefined=E),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:U}}}function Vfe(c,r,a,l,i,m,v,C){let E=ate(r||v.defaultCode,v.map);return new Hce({calendarSystem:"gregory",timeZone:c,namedTimeZoneImpl:m.namedTimeZonedImpl,locale:E,weekNumberCalculation:a,firstDay:l,weekText:i,cmdFormatter:m.cmdFormatter,defaultSeparator:C})}function Hfe(c,r){let a=r.themeClasses[c.themeSystem]||oy;return new a(c)}function zfe(c){let r=c.dateProfileGeneratorClass||cee;return new r(c)}function Ufe(c,r,a){return new kfe(c,r,a)}function Wfe(c){return Z1(c,r=>r.ui)}function jfe(c,r,a){let l={"":r};for(let i in c){let m=c[i];m.sourceId&&a[m.sourceId]&&(l[i]=a[m.sourceId])}return l}function Gfe(c){let{options:r}=c;return{eventUiSingleBase:gR({display:r.eventDisplay,editable:r.editable,startEditable:r.eventStartEditable,durationEditable:r.eventDurationEditable,constraint:r.eventConstraint,overlap:typeof r.eventOverlap=="boolean"?r.eventOverlap:void 0,allow:r.eventAllow,backgroundColor:r.eventBackgroundColor,borderColor:r.eventBorderColor,textColor:r.eventTextColor,color:r.eventColor},c),selectionConfig:gR({constraint:r.selectConstraint,overlap:typeof r.selectOverlap=="boolean"?r.selectOverlap:void 0,allow:r.selectAllow},c)}}function fV(c,r){for(let a of r.pluginHooks.isLoadingFuncs)if(a(c))return!0;return!1}function Zfe(c){return Sue(c.options.businessHours,c)}function bte(c,r){for(let a in c)console.warn(`Unknown option '${a}'`+(r?` for view '${r}'`:""))}class qfe extends Li{render(){let r=this.props.widgetGroups.map(a=>this.renderWidgetGroup(a));return rt("div",{className:"fc-toolbar-chunk"},...r)}renderWidgetGroup(r){let{props:a}=this,{theme:l}=this.context,i=[],m=!0;for(let v of r){let{buttonName:C,buttonClick:E,buttonText:T,buttonIcon:N,buttonHint:V}=v;if(C==="title")m=!1,i.push(rt("h2",{className:"fc-toolbar-title",id:a.titleId},a.title));else{let U=C===a.activeButton,z=!a.isTodayEnabled&&C==="today"||!a.isPrevEnabled&&C==="prev"||!a.isNextEnabled&&C==="next",W=[`fc-${C}-button`,l.getClass("button")];U&&W.push(l.getClass("buttonActive")),i.push(rt("button",{type:"button",title:typeof V=="function"?V(a.navUnit):V,disabled:z,"aria-pressed":U,className:W.join(" "),onClick:E},T||(N?rt("span",{className:N,role:"img"}):"")))}}if(i.length>1){let v=m&&l.getClass("buttonGroup")||"";return rt("div",{className:v},...i)}return i[0]}}class Cte extends Li{render(){let{model:r,extraClassName:a}=this.props,l=!1,i,m,v=r.sectionWidgets,C=v.center;return v.left?(l=!0,i=v.left):i=v.start,v.right?(l=!0,m=v.right):m=v.end,rt("div",{className:[a||"","fc-toolbar",l?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",i||[]),this.renderSection("center",C||[]),this.renderSection("end",m||[]))}renderSection(r,a){let{props:l}=this;return rt(qfe,{key:r,widgetGroups:a,title:l.title,navUnit:l.navUnit,activeButton:l.activeButton,isTodayEnabled:l.isTodayEnabled,isPrevEnabled:l.isPrevEnabled,isNextEnabled:l.isNextEnabled,titleId:l.titleId})}}class Kfe extends Li{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=r=>{this.el=r,K1(this.props.elRef,r),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:r,state:a}=this,{aspectRatio:l}=r,i=["fc-view-harness",l||r.liquid||r.height?"fc-view-harness-active":"fc-view-harness-passive"],m="",v="";return l?a.availableWidth!==null?m=a.availableWidth/l:v=`${1/l*100}%`:m=r.height||"",rt("div",{"aria-labelledby":r.labeledById,ref:this.handleEl,className:i.join(" "),style:{height:m,paddingBottom:v}},r.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 Yfe extends zS{constructor(r){super(r),this.handleSegClick=(a,l)=>{let{component:i}=this,{context:m}=i,v=HS(l);if(v&&i.isValidSegDownEl(a.target)){let C=td(a.target,".fc-event-forced-url"),E=C?C.querySelector("a[href]").href:"";m.emitter.trigger("eventClick",{el:l,event:new fl(i.context,v.eventRange.def,v.eventRange.instance),jsEvent:a,view:m.viewApi}),E&&!a.defaultPrevented&&(window.location.href=E)}},this.destroy=PJ(r.el,"click",".fc-event",this.handleSegClick)}}class Xfe extends zS{constructor(r){super(r),this.handleEventElRemove=a=>{a===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(a,l)=>{HS(l)&&(this.currentSegEl=l,this.triggerEvent("eventMouseEnter",a,l))},this.handleSegLeave=(a,l)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",a,l))},this.removeHoverListeners=Lle(r.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(r,a,l){let{component:i}=this,{context:m}=i,v=HS(l);(!a||i.isValidSegDownEl(a.target))&&m.emitter.trigger(r,{el:l,event:new fl(m,v.eventRange.def,v.eventRange.instance),jsEvent:a,view:m.viewApi})}}class Qfe extends G2{constructor(){super(...arguments),this.buildViewContext=Ms(Wce),this.buildViewPropTransformers=Ms(eme),this.buildToolbarProps=Ms(Jfe),this.headerRef=Bd(),this.footerRef=Bd(),this.interactionsStore={},this.state={viewLabelId:JO()},this.registerInteractiveComponent=(r,a)=>{let l=jue(r,a),v=[Yfe,Xfe].concat(this.props.pluginHooks.componentInteractions).map(C=>new C(l));this.interactionsStore[r.uid]=v,W$[r.uid]=l},this.unregisterInteractiveComponent=r=>{let a=this.interactionsStore[r.uid];if(a){for(let l of a)l.destroy();delete this.interactionsStore[r.uid]}delete W$[r.uid]},this.resizeRunner=new g$(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=r=>{let{options:a}=this.props;a.handleWindowResize&&r.target===window&&this.resizeRunner.request(a.windowResizeDelay)}}render(){let{props:r}=this,{toolbarConfig:a,options:l}=r,i=this.buildToolbarProps(r.viewSpec,r.dateProfile,r.dateProfileGenerator,r.currentDate,uA(r.options.now,r.dateEnv),r.viewTitle),m=!1,v="",C;r.isHeightAuto||r.forPrint?v="":l.height!=null?m=!0:l.contentHeight!=null?v=l.contentHeight:C=Math.max(l.aspectRatio,.5);let E=this.buildViewContext(r.viewSpec,r.viewApi,r.options,r.dateProfileGenerator,r.dateEnv,r.theme,r.pluginHooks,r.dispatch,r.getCurrentData,r.emitter,r.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),T=a.header&&a.header.hasTitle?this.state.viewLabelId:void 0;return rt(q1.Provider,{value:E},a.header&&rt(Cte,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:a.header,titleId:T},i)),rt(Kfe,{liquid:m,height:v,aspectRatio:C,labeledById:T},this.renderView(r),this.buildAppendContent()),a.footer&&rt(Cte,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:a.footer,titleId:""},i)))}componentDidMount(){let{props:r}=this;this.calendarInteractions=r.pluginHooks.calendarInteractions.map(l=>new l(r)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:a}=r.pluginHooks;for(let l in a)a[l](r[l],r)}componentDidUpdate(r){let{props:a}=this,{propSetHandlers:l}=a.pluginHooks;for(let i in l)a[i]!==r[i]&&l[i](a[i],a)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let r of this.calendarInteractions)r.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:r}=this,a=r.pluginHooks.viewContainerAppends.map(l=>l(r));return rt(Ya,{},...a)}renderView(r){let{pluginHooks:a}=r,{viewSpec:l}=r,i={dateProfile:r.dateProfile,businessHours:r.businessHours,eventStore:r.renderableEventStore,eventUiBases:r.eventUiBases,dateSelection:r.dateSelection,eventSelection:r.eventSelection,eventDrag:r.eventDrag,eventResize:r.eventResize,isHeightAuto:r.isHeightAuto,forPrint:r.forPrint},m=this.buildViewPropTransformers(a.viewPropsTransformers);for(let C of m)Object.assign(i,C.transform(i,r));let v=l.component;return rt(v,Object.assign({},i))}}function Jfe(c,r,a,l,i,m){let v=a.build(i,void 0,!1),C=a.buildPrev(r,l,!1),E=a.buildNext(r,l,!1);return{title:m,activeButton:c.type,navUnit:c.singleUnit,isTodayEnabled:v.isValid&&!Y1(r.currentRange,i),isPrevEnabled:C.isValid,isNextEnabled:E.isValid}}function eme(c){return c.map(r=>new r)}let tme=class extends Gue{constructor(r,a={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=l=>{switch(l.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=l=>{this.currentData=l,this.renderRunner.request(l.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:l}=this;cR(()=>{rA(rt(Wue,{options:l.calendarOptions,theme:l.theme,emitter:l.emitter},(i,m,v,C)=>(this.setClassNames(i),this.setHeight(m),rt(see.Provider,{value:this.customContentRenderId},rt(Qfe,Object.assign({isHeightAuto:v,forPrint:C},l))))),this.el)})}else this.isRendered&&(this.isRendered=!1,rA(null,this.el),this.setClassNames([]),this.setHeight(""))},Tle(r),this.el=r,this.renderRunner=new g$(this.handleRenderRequest),new $fe({optionOverrides:a,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let r=this.isRendering;r?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),r&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){cR(()=>{super.updateSize()})}batchRendering(r){this.renderRunner.pause("batchRendering"),r(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(r,a){this.currentDataManager.resetOptions(r,a)}setClassNames(r){if(!Qv(r,this.currentClassNames)){let{classList:a}=this.el;for(let l of this.currentClassNames)a.remove(l);for(let l of r)a.add(l);this.currentClassNames=r}}setHeight(r){IJ(this.el,"height",r)}};const nme={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0},_te=f.defineComponent({props:{options:Object},data(){return{renderId:0,customRenderingMap:new Map}},methods:{getApi(){return this.calendar},buildOptions(c){return{...c,customRenderingMetaMap:rme(this.$slots),handleCustomRendering:this.handleCustomRendering}}},render(){const c=[];for(const r of this.customRenderingMap.values())c.push(f.h(ome,{key:r.id,customRendering:r}));return f.h("div",{attrs:{"data-fc-render-id":this.renderId}},f.h(f.Fragment,c))},mounted(){const c=new Zde;this.handleCustomRendering=c.handle.bind(c);const r=this.buildOptions(this.options),a=new tme(this.$el,r);this.calendar=a,a.render(),c.subscribe(l=>{this.customRenderingMap=l,this.renderId++,this.needCustomRenderingResize=!0})},beforeUpdate(){this.getApi().resumeRendering()},updated(){this.needCustomRenderingResize&&(this.needCustomRenderingResize=!1,this.getApi().updateSize())},beforeUnmount(){this.getApi().destroy()},watch:sme()}),ome=f.defineComponent({props:{customRendering:Object},render(){const c=this.customRendering,r=typeof c.generatorMeta=="function"?c.generatorMeta(c.renderProps):c.generatorMeta;return f.h(f.Teleport,{to:c.containerEl},r)}});function tSe(c){return c}function sme(){let c={options:{deep:!0,handler(r){let a=this.getApi();a.pauseRendering();let l=this.buildOptions(r);a.resetOptions(l),this.renderId++}}};for(let r in nme)c[`options.${r}`]={deep:!0,handler(a){if(a!==void 0){let l=this.getApi();l.pauseRendering(),l.resetOptions({[r]:a},[r]),this.renderId++}}};return c}function rme(c){const r={};for(const a in c)r[ime(a)]=c[a];return r}function ime(c){return c.split("-").map((r,a)=>a?ame(r):r).join("")}function ame(c){return c.charAt(0).toUpperCase()+c.slice(1)}class lme extends wp{constructor(){super(...arguments),this.headerElRef=Bd()}renderSimpleLayout(r,a){let{props:l,context:i}=this,m=[],v=wR(i.options);return r&&m.push({type:"header",key:"header",isSticky:v,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:r}}),m.push({type:"body",key:"body",liquid:!0,chunk:{content:a}}),rt(uR,{elClasses:["fc-daygrid"],viewSpec:i.viewSpec},rt(sV,{liquid:!l.isHeightAuto&&!l.forPrint,collapsibleWidth:l.forPrint,cols:[],sections:m}))}renderHScrollLayout(r,a,l,i){let m=this.context.pluginHooks.scrollGridImpl;if(!m)throw new Error("No ScrollGrid implementation");let{props:v,context:C}=this,E=!v.forPrint&&wR(C.options),T=!v.forPrint&&Xee(C.options),N=[];return r&&N.push({type:"header",key:"header",isSticky:E,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:r}]}),N.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:a}]}),T&&N.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:oV}]}),rt(uR,{elClasses:["fc-daygrid"],viewSpec:C.viewSpec},rt(m,{liquid:!v.isHeightAuto&&!v.forPrint,forPrint:v.forPrint,collapsibleWidth:v.forPrint,colGroups:[{cols:[{span:l,minWidth:i}]}],sections:N}))}}function SR(c,r){let a=[];for(let l=0;l<r;l+=1)a[l]=[];for(let l of c)a[l.row].push(l);return a}function ER(c,r){let a=[];for(let l=0;l<r;l+=1)a[l]=[];for(let l of c)a[l.firstCol].push(l);return a}function wte(c,r){let a=[];if(c){for(let l=0;l<r;l+=1)a[l]={affectedInstances:c.affectedInstances,isEvent:c.isEvent,segs:[]};for(let l of c.segs)a[l.row].segs.push(l)}else for(let l=0;l<r;l+=1)a[l]=null;return a}const Ste=El({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function Ete(c){let{display:r}=c.eventRange.ui;return r==="list-item"||r==="auto"&&!c.eventRange.def.allDay&&c.firstCol===c.lastCol&&c.isStart&&c.isEnd}class kte extends Li{render(){let{props:r}=this;return rt(Qee,Object.assign({},r,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:Ste,defaultDisplayEventEnd:r.defaultDisplayEventEnd,disableResizing:!r.seg.eventRange.def.allDay}))}}class xte extends Li{render(){let{props:r,context:a}=this,{options:l}=a,{seg:i}=r,m=l.eventTimeFormat||Ste,v=Tee(i,m,a,!0,r.defaultDisplayEventEnd);return rt(rV,Object.assign({},r,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:Oee(r.seg,a),defaultGenerator:cme,timeText:v,isResizing:!1,isDateSelecting:!1}))}}function cme(c){return rt(Ya,null,rt("div",{className:"fc-daygrid-event-dot",style:{borderColor:c.borderColor||c.backgroundColor}}),c.timeText&&rt("div",{className:"fc-event-time"},c.timeText),rt("div",{className:"fc-event-title"},c.event.title||rt(Ya,null," ")))}class ume extends Li{constructor(){super(...arguments),this.compileSegs=Ms(dme)}render(){let{props:r}=this,{allSegs:a,invisibleSegs:l}=this.compileSegs(r.singlePlacements);return rt(nte,{elClasses:["fc-daygrid-more-link"],dateProfile:r.dateProfile,todayRange:r.todayRange,allDayDate:r.allDayDate,moreCnt:r.moreCnt,allSegs:a,hiddenSegs:l,alignmentElRef:r.alignmentElRef,alignGridTop:r.alignGridTop,extraDateSpan:r.extraDateSpan,popoverContent:()=>{let i=(r.eventDrag?r.eventDrag.affectedInstances:null)||(r.eventResize?r.eventResize.affectedInstances:null)||{};return rt(Ya,null,a.map(m=>{let v=m.eventRange.instance.instanceId;return rt("div",{className:"fc-daygrid-event-harness",key:v,style:{visibility:i[v]?"hidden":""}},Ete(m)?rt(xte,Object.assign({seg:m,isDragging:!1,isSelected:v===r.eventSelection,defaultDisplayEventEnd:!1},ny(m,r.todayRange))):rt(kte,Object.assign({seg:m,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:v===r.eventSelection,defaultDisplayEventEnd:!1},ny(m,r.todayRange))))}))}})}}function dme(c){let r=[],a=[];for(let l of c)r.push(l.seg),l.isVisible||a.push(l.seg);return{allSegs:r,invisibleSegs:a}}const fme=El({week:"narrow"});class mme extends wp{constructor(){super(...arguments),this.rootElRef=Bd(),this.state={dayNumberId:JO()},this.handleRootEl=r=>{K1(this.rootElRef,r),K1(this.props.elRef,r)}}render(){let{context:r,props:a,state:l,rootElRef:i}=this,{options:m,dateEnv:v}=r,{date:C,dateProfile:E}=a;const T=a.showDayNumber&&gme(C,E.currentRange,v);return rt(aV,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...a.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},a.extraDataAttrs),a.showDayNumber?{"aria-labelledby":l.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:hme,date:C,dateProfile:E,todayRange:a.todayRange,showDayNumber:a.showDayNumber,isMonthStart:T,extraRenderProps:a.extraRenderProps},(N,V)=>rt("div",{ref:a.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:a.minHeight}},a.showWeekNumber&&rt(tte,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:yR(r,C,"week"),date:C,defaultFormat:fme}),!V.isDisabled&&(a.showDayNumber||lV(m)||a.forceDayTop)?rt("div",{className:"fc-daygrid-day-top"},rt(N,{elTag:"a",elClasses:["fc-daygrid-day-number",T&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},yR(r,C)),{id:l.dayNumberId})})):a.showDayNumber?rt("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},rt("a",{className:"fc-daygrid-day-number"}," ")):void 0,rt("div",{className:"fc-daygrid-day-events",ref:a.fgContentElRef},a.fgContent,rt("div",{className:"fc-daygrid-day-bottom",style:{marginTop:a.moreMarginTop}},rt(ume,{allDayDate:C,singlePlacements:a.singlePlacements,moreCnt:a.moreCnt,alignmentElRef:i,alignGridTop:!a.showDayNumber,extraDateSpan:a.extraDateSpan,dateProfile:a.dateProfile,eventSelection:a.eventSelection,eventDrag:a.eventDrag,eventResize:a.eventResize,todayRange:a.todayRange}))),rt("div",{className:"fc-daygrid-day-bg"},a.bgContent)))}}function hme(c){return c.dayNumberText||rt(Ya,null," ")}function gme(c,r,a){const{start:l,end:i}=r,m=Jv(i,-1),v=a.getYear(l),C=a.getMonth(l),E=a.getYear(m),T=a.getMonth(m);return!(v===E&&C===T)&&(c.valueOf()===l.valueOf()||a.getDay(c)===1&&c.valueOf()<i.valueOf())}function Ate(c){return c.eventRange.instance.instanceId+":"+c.firstCol}function Tte(c){return Ate(c)+":"+c.lastCol}function pme(c,r,a,l,i,m,v){let C=new bme(ce=>{let q=c[ce.index].eventRange.instance.instanceId+":"+ce.span.start+":"+(ce.span.end-1);return i[q]||1});C.allowReslicing=!0,C.strictOrder=l,r===!0||a===!0?(C.maxCoord=m,C.hiddenConsumes=!0):typeof r=="number"?C.maxStackCnt=r:typeof a=="number"&&(C.maxStackCnt=a,C.hiddenConsumes=!0);let E=[],T=[];for(let ce=0;ce<c.length;ce+=1){let q=c[ce],X=Tte(q);i[X]!=null?E.push({index:ce,span:{start:q.firstCol,end:q.lastCol+1}}):T.push(q)}let N=C.addSegs(E),V=C.toRects(),{singleColPlacements:U,multiColPlacements:z,leftoverMargins:W}=vme(V,c,v),K=[],Z=[];for(let ce of T){z[ce.firstCol].push({seg:ce,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let q=ce.firstCol;q<=ce.lastCol;q+=1)U[q].push({seg:WS(ce,q,q+1,v),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let ce=0;ce<v.length;ce+=1)K.push(0);for(let ce of N){let q=c[ce.index],X=ce.span;z[X.start].push({seg:WS(q,X.start,X.end,v),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let Ce=X.start;Ce<X.end;Ce+=1)K[Ce]+=1,U[Ce].push({seg:WS(q,Ce,Ce+1,v),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let ce=0;ce<v.length;ce+=1)Z.push(W[ce]);return{singleColPlacements:U,multiColPlacements:z,moreCnts:K,moreMarginTops:Z}}function vme(c,r,a){let l=yme(c,a.length),i=[],m=[],v=[];for(let C=0;C<a.length;C+=1){let E=l[C],T=[],N=0,V=0;for(let z of E){let W=r[z.index];T.push({seg:WS(W,C,C+1,a),isVisible:!0,isAbsolute:!1,absoluteTop:z.levelCoord,marginTop:z.levelCoord-N}),N=z.levelCoord+z.thickness}let U=[];N=0,V=0;for(let z of E){let W=r[z.index],K=z.span.end-z.span.start>1,Z=z.span.start===C;V+=z.levelCoord-N,N=z.levelCoord+z.thickness,K?(V+=z.thickness,Z&&U.push({seg:WS(W,z.span.start,z.span.end,a),isVisible:!0,isAbsolute:!0,absoluteTop:z.levelCoord,marginTop:0})):Z&&(U.push({seg:WS(W,z.span.start,z.span.end,a),isVisible:!0,isAbsolute:!1,absoluteTop:z.levelCoord,marginTop:V}),V=0)}i.push(T),m.push(U),v.push(V)}return{singleColPlacements:i,multiColPlacements:m,leftoverMargins:v}}function yme(c,r){let a=[];for(let l=0;l<r;l+=1)a.push([]);for(let l of c)for(let i=l.span.start;i<l.span.end;i+=1)a[i].push(l);return a}function WS(c,r,a,l){if(c.firstCol===r&&c.lastCol===a-1)return c;let i=c.eventRange,m=i.range,v=Z2(m,{start:l[r].date,end:nd(l[a-1].date,1)});return Object.assign(Object.assign({},c),{firstCol:r,lastCol:a-1,eventRange:{def:i.def,ui:Object.assign(Object.assign({},i.ui),{durationEditable:!1}),instance:i.instance,range:v},isStart:c.isStart&&v.start.valueOf()===m.start.valueOf(),isEnd:c.isEnd&&v.end.valueOf()===m.end.valueOf()})}class bme extends $ee{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(r){const a=super.addSegs(r),{entriesByLevel:l}=this,i=m=>!this.forceHidden[Y2(m)];for(let m=0;m<l.length;m+=1)l[m]=l[m].filter(i);return a}handleInvalidInsertion(r,a,l){const{entriesByLevel:i,forceHidden:m}=this,{touchingEntry:v,touchingLevel:C,touchingLateral:E}=r;if(this.hiddenConsumes&&v){const T=Y2(v);if(!m[T])if(this.allowReslicing){const N=Object.assign(Object.assign({},v),{span:Q$(v.span,a.span)}),V=Y2(N);m[V]=!0,i[C][E]=N,l.push(N),this.splitEntry(v,a,l)}else m[T]=!0,l.push(v)}super.handleInvalidInsertion(r,a,l)}}class Dte extends wp{constructor(){super(...arguments),this.cellElRefs=new X1,this.frameElRefs=new X1,this.fgElRefs=new X1,this.segHarnessRefs=new X1,this.rootElRef=Bd(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=r=>{r&&this.updateSizing(!0)}}render(){let{props:r,state:a,context:l}=this,{options:i}=l,m=r.cells.length,v=ER(r.businessHourSegs,m),C=ER(r.bgEventSegs,m),E=ER(this.getHighlightSegs(),m),T=ER(this.getMirrorSegs(),m),{singleColPlacements:N,multiColPlacements:V,moreCnts:U,moreMarginTops:z}=pme(Aee(r.fgEventSegs,i.eventOrder),r.dayMaxEvents,r.dayMaxEventRows,i.eventOrderStrict,a.segHeights,a.maxContentHeight,r.cells),W=r.eventDrag&&r.eventDrag.affectedInstances||r.eventResize&&r.eventResize.affectedInstances||{};return rt("tr",{ref:this.rootElRef,role:"row"},r.renderIntro&&r.renderIntro(),r.cells.map((K,Z)=>{let ce=this.renderFgSegs(Z,r.forPrint?N[Z]:V[Z],r.todayRange,W),q=this.renderFgSegs(Z,Cme(T[Z],V),r.todayRange,{},!!r.eventDrag,!!r.eventResize,!1);return rt(mme,{key:K.key,elRef:this.cellElRefs.createRef(K.key),innerElRef:this.frameElRefs.createRef(K.key),dateProfile:r.dateProfile,date:K.date,showDayNumber:r.showDayNumbers,showWeekNumber:r.showWeekNumbers&&Z===0,forceDayTop:r.showWeekNumbers,todayRange:r.todayRange,eventSelection:r.eventSelection,eventDrag:r.eventDrag,eventResize:r.eventResize,extraRenderProps:K.extraRenderProps,extraDataAttrs:K.extraDataAttrs,extraClassNames:K.extraClassNames,extraDateSpan:K.extraDateSpan,moreCnt:U[Z],moreMarginTop:z[Z],singlePlacements:N[Z],fgContentElRef:this.fgElRefs.createRef(K.key),fgContent:rt(Ya,null,rt(Ya,null,ce),rt(Ya,null,q)),bgContent:rt(Ya,null,this.renderFillSegs(E[Z],"highlight"),this.renderFillSegs(v[Z],"non-business"),this.renderFillSegs(C[Z],"bg-event")),minHeight:r.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(r,a){let l=this.props;this.updateSizing(!_p(r,l))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:r}=this;return r.eventDrag&&r.eventDrag.segs.length?r.eventDrag.segs:r.eventResize&&r.eventResize.segs.length?r.eventResize.segs:r.dateSelectionSegs}getMirrorSegs(){let{props:r}=this;return r.eventResize&&r.eventResize.segs.length?r.eventResize.segs:[]}renderFgSegs(r,a,l,i,m,v,C){let{context:E}=this,{eventSelection:T}=this.props,{framePositions:N}=this.state,V=this.props.cells.length===1,U=m||v||C,z=[];if(N)for(let W of a){let{seg:K}=W,{instanceId:Z}=K.eventRange.instance,ce=W.isVisible&&!i[Z],q=W.isAbsolute,X="",Ce="";q&&(E.isRtl?(Ce=0,X=N.lefts[K.lastCol]-N.lefts[K.firstCol]):(X=0,Ce=N.rights[K.firstCol]-N.rights[K.lastCol])),z.push(rt("div",{className:"fc-daygrid-event-harness"+(q?" fc-daygrid-event-harness-abs":""),key:Ate(K),ref:U?null:this.segHarnessRefs.createRef(Tte(K)),style:{visibility:ce?"":"hidden",marginTop:q?"":W.marginTop,top:q?W.absoluteTop:"",left:X,right:Ce}},Ete(K)?rt(xte,Object.assign({seg:K,isDragging:m,isSelected:Z===T,defaultDisplayEventEnd:V},ny(K,l))):rt(kte,Object.assign({seg:K,isDragging:m,isResizing:v,isDateSelecting:C,isSelected:Z===T,defaultDisplayEventEnd:V},ny(K,l)))))}return z}renderFillSegs(r,a){let{isRtl:l}=this.context,{todayRange:i}=this.props,{framePositions:m}=this.state,v=[];if(m)for(let C of r){let E=l?{right:0,left:m.lefts[C.lastCol]-m.lefts[C.firstCol]}:{left:0,right:m.rights[C.firstCol]-m.rights[C.lastCol]};v.push(rt("div",{key:Dee(C.eventRange),className:"fc-daygrid-bg-harness",style:E},a==="bg-event"?rt(Jee,Object.assign({seg:C},ny(C,i))):ete(a)))}return rt(Ya,{},...v)}updateSizing(r){let{props:a,state:l,frameElRefs:i}=this;if(!a.forPrint&&a.clientWidth!==null){if(r){let E=a.cells.map(T=>i.currentMap[T.key]);if(E.length){let T=this.rootElRef.current,N=new US(T,E,!0,!1);(!l.framePositions||!l.framePositions.similarTo(N))&&this.setState({framePositions:new US(T,E,!0,!1)})}}const m=this.state.segHeights,v=this.querySegHeights(),C=a.dayMaxEvents===!0||a.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},m),v),maxContentHeight:C?this.computeMaxContentHeight():null})}}querySegHeights(){let r=this.segHarnessRefs.currentMap,a={};for(let l in r){let i=Math.round(r[l].getBoundingClientRect().height);a[l]=Math.max(a[l]||0,i)}return a}computeMaxContentHeight(){let r=this.props.cells[0].key,a=this.cellElRefs.currentMap[r],l=this.fgElRefs.currentMap[r];return a.getBoundingClientRect().bottom-l.getBoundingClientRect().top}getCellEls(){let r=this.cellElRefs.currentMap;return this.props.cells.map(a=>r[a.key])}}Dte.addStateEquality({segHeights:_p});function Cme(c,r){if(!c.length)return[];let a=_me(r);return c.map(l=>({seg:l,isVisible:!0,isAbsolute:!0,absoluteTop:a[l.eventRange.instance.instanceId],marginTop:0}))}function _me(c){let r={};for(let a of c)for(let l of a)r[l.seg.eventRange.instance.instanceId]=l.absoluteTop;return r}class wme extends wp{constructor(){super(...arguments),this.splitBusinessHourSegs=Ms(SR),this.splitBgEventSegs=Ms(SR),this.splitFgEventSegs=Ms(SR),this.splitDateSelectionSegs=Ms(SR),this.splitEventDrag=Ms(wte),this.splitEventResize=Ms(wte),this.rowRefs=new X1}render(){let{props:r,context:a}=this,l=r.cells.length,i=this.splitBusinessHourSegs(r.businessHourSegs,l),m=this.splitBgEventSegs(r.bgEventSegs,l),v=this.splitFgEventSegs(r.fgEventSegs,l),C=this.splitDateSelectionSegs(r.dateSelectionSegs,l),E=this.splitEventDrag(r.eventDrag,l),T=this.splitEventResize(r.eventResize,l),N=l>=7&&r.clientWidth?r.clientWidth/a.options.aspectRatio/6:null;return rt(fA,{unit:"day"},(V,U)=>rt(Ya,null,r.cells.map((z,W)=>rt(Dte,{ref:this.rowRefs.createRef(W),key:z.length?z[0].date.toISOString():W,showDayNumbers:l>1,showWeekNumbers:r.showWeekNumbers,todayRange:U,dateProfile:r.dateProfile,cells:z,renderIntro:r.renderRowIntro,businessHourSegs:i[W],eventSelection:r.eventSelection,bgEventSegs:m[W].filter(Sme),fgEventSegs:v[W],dateSelectionSegs:C[W],eventDrag:E[W],eventResize:T[W],dayMaxEvents:r.dayMaxEvents,dayMaxEventRows:r.dayMaxEventRows,clientWidth:r.clientWidth,clientHeight:r.clientHeight,cellMinHeight:N,forPrint:r.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const r=this.rowRefs.currentMap[0].getCellEls()[0],a=r?r.closest(".fc-daygrid-body"):null;a&&(this.rootEl=a,this.context.registerInteractiveComponent(this,{el:a,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new US(this.rootEl,this.rowRefs.collect().map(r=>r.getCellEls()[0]),!1,!0),this.colPositions=new US(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(r,a){let{colPositions:l,rowPositions:i}=this,m=l.leftToIndex(r),v=i.topToIndex(a);if(v!=null&&m!=null){let C=this.props.cells[v][m];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(v,m),allDay:!0},C.extraDateSpan),dayEl:this.getCellEl(v,m),rect:{left:l.lefts[m],right:l.rights[m],top:i.tops[v],bottom:i.bottoms[v]},layer:0}}return null}getCellEl(r,a){return this.rowRefs.currentMap[r].getCellEls()[a]}getCellRange(r,a){let l=this.props.cells[r][a].date,i=nd(l,1);return{start:l,end:i}}}function Sme(c){return c.eventRange.def.allDay}class Eme extends wp{constructor(){super(...arguments),this.elRef=Bd(),this.needsScrollReset=!1}render(){let{props:r}=this,{dayMaxEventRows:a,dayMaxEvents:l,expandRows:i}=r,m=l===!0||a===!0;m&&!i&&(m=!1,a=null,l=null);let v=["fc-daygrid-body",m?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",i?"":"fc-daygrid-body-natural"];return rt("div",{ref:this.elRef,className:v.join(" "),style:{width:r.clientWidth,minWidth:r.tableMinWidth}},rt("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:r.clientWidth,minWidth:r.tableMinWidth,height:i?r.clientHeight:""}},r.colGroupNode,rt("tbody",{role:"presentation"},rt(wme,{dateProfile:r.dateProfile,cells:r.cells,renderRowIntro:r.renderRowIntro,showWeekNumbers:r.showWeekNumbers,clientWidth:r.clientWidth,clientHeight:r.clientHeight,businessHourSegs:r.businessHourSegs,bgEventSegs:r.bgEventSegs,fgEventSegs:r.fgEventSegs,dateSelectionSegs:r.dateSelectionSegs,eventSelection:r.eventSelection,eventDrag:r.eventDrag,eventResize:r.eventResize,dayMaxEvents:l,dayMaxEventRows:a,forPrint:r.forPrint,isHitComboAllowed:r.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(r){r.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const r=kme(this.elRef.current,this.props.dateProfile);if(r){const a=r.closest(".fc-daygrid-body"),l=a.closest(".fc-scroller"),i=r.getBoundingClientRect().top-a.getBoundingClientRect().top;l.scrollTop=i?i+1:0}this.needsScrollReset=!1}}}function kme(c,r){let a;return r.currentRangeUnit.match(/year|month/)&&(a=c.querySelector(`[data-date="${hce(r.currentDate)}-01"]`)),a||(a=c.querySelector(`[data-date="${S$(r.currentDate)}"]`)),a}class xme extends Gee{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(r,a){return a.sliceRange(r)}}class Ote extends wp{constructor(){super(...arguments),this.slicer=new xme,this.tableRef=Bd()}render(){let{props:r,context:a}=this;return rt(Eme,Object.assign({ref:this.tableRef},this.slicer.sliceProps(r,r.dateProfile,r.nextDayThreshold,a,r.dayTableModel),{dateProfile:r.dateProfile,cells:r.dayTableModel.cells,colGroupNode:r.colGroupNode,tableMinWidth:r.tableMinWidth,renderRowIntro:r.renderRowIntro,dayMaxEvents:r.dayMaxEvents,dayMaxEventRows:r.dayMaxEventRows,showWeekNumbers:r.showWeekNumbers,expandRows:r.expandRows,headerAlignElRef:r.headerAlignElRef,clientWidth:r.clientWidth,clientHeight:r.clientHeight,forPrint:r.forPrint}))}}class Ame extends lme{constructor(){super(...arguments),this.buildDayTableModel=Ms(Tme),this.headerRef=Bd(),this.tableRef=Bd()}render(){let{options:r,dateProfileGenerator:a}=this.context,{props:l}=this,i=this.buildDayTableModel(l.dateProfile,a),m=r.dayHeaders&&rt(Uee,{ref:this.headerRef,dateProfile:l.dateProfile,dates:i.headerDates,datesRepDistinctDays:i.rowCnt===1}),v=C=>rt(Ote,{ref:this.tableRef,dateProfile:l.dateProfile,dayTableModel:i,businessHours:l.businessHours,dateSelection:l.dateSelection,eventStore:l.eventStore,eventUiBases:l.eventUiBases,eventSelection:l.eventSelection,eventDrag:l.eventDrag,eventResize:l.eventResize,nextDayThreshold:r.nextDayThreshold,colGroupNode:C.tableColGroupNode,tableMinWidth:C.tableMinWidth,dayMaxEvents:r.dayMaxEvents,dayMaxEventRows:r.dayMaxEventRows,showWeekNumbers:r.weekNumbers,expandRows:!l.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:C.clientWidth,clientHeight:C.clientHeight,forPrint:l.forPrint});return r.dayMinWidth?this.renderHScrollLayout(m,v,i.colCnt,r.dayMinWidth):this.renderSimpleLayout(m,v)}}function Tme(c,r){let a=new Wee(c.renderRange,r);return new jee(a,/year|month|week/.test(c.currentRangeUnit))}class Dme extends cee{buildRenderRange(r,a,l){let i=super.buildRenderRange(r,a,l),{props:m}=this;return Ome({currentRange:i,snapToWeek:/^(year|month)$/.test(a),fixedWeekCount:m.fixedWeekCount,dateEnv:m.dateEnv})}}function Ome(c){let{dateEnv:r,currentRange:a}=c,{start:l,end:i}=a,m;if(c.snapToWeek&&(l=r.startOfWeek(l),m=r.startOfWeek(i),m.valueOf()!==i.valueOf()&&(i=UJ(m,1))),c.fixedWeekCount){let v=r.startOfWeek(r.startOfMonth(nd(a.end,-1))),C=Math.ceil(oce(v,i));i=UJ(i,6-C)}return{start:l,end:i}}var Rme=':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}';m$(Rme);var Rte=Q1({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:Ame,dateProfileGeneratorClass:Dme},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 Nme extends Xue{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(r){return r.allDay?["allDay"]:["timed"]}getKeysForEventDef(r){return r.allDay?Tue(r)?["timed","allDay"]:["allDay"]:["timed"]}}const Ime=El({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function Nte(c){let r=["fc-timegrid-slot","fc-timegrid-slot-label",c.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return rt(q1.Consumer,null,a=>{if(!c.isLabeled)return rt("td",{className:r.join(" "),"data-time":c.isoTimeStr});let{dateEnv:l,options:i,viewApi:m}=a,v=i.slotLabelFormat==null?Ime:Array.isArray(i.slotLabelFormat)?El(i.slotLabelFormat[0]):El(i.slotLabelFormat),C={level:0,time:c.time,date:l.toDate(c.date),view:m,text:l.format(c.date,v)};return rt(rm,{elTag:"td",elClasses:r,elAttrs:{"data-time":c.isoTimeStr},renderProps:C,generatorName:"slotLabelContent",customGenerator:i.slotLabelContent,defaultGenerator:Bme,classNameGenerator:i.slotLabelClassNames,didMount:i.slotLabelDidMount,willUnmount:i.slotLabelWillUnmount},E=>rt("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},rt(E,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]})))})}function Bme(c){return c.text}class Mme extends Li{render(){return this.props.slatMetas.map(r=>rt("tr",{key:r.key},rt(Nte,Object.assign({},r))))}}const Pme=El({week:"short"}),Lme=5;class Fme extends wp{constructor(){super(...arguments),this.allDaySplitter=new Nme,this.headerElRef=Bd(),this.rootElRef=Bd(),this.scrollerElRef=Bd(),this.state={slatCoords:null},this.handleScrollTopRequest=r=>{let a=this.scrollerElRef.current;a&&(a.scrollTop=r)},this.renderHeadAxis=(r,a="")=>{let{options:l}=this.context,{dateProfile:i}=this.props,m=i.renderRange,C=z2(m.start,m.end)===1?yR(this.context,m.start,"week"):{};return l.weekNumbers&&r==="day"?rt(tte,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:m.start,defaultFormat:Pme},E=>rt("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:a}},rt(E,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:C}))):rt("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},rt("div",{className:"fc-timegrid-axis-frame",style:{height:a}}))},this.renderTableRowAxis=r=>{let{options:a,viewApi:l}=this.context,i={text:a.allDayText,view:l};return rt(rm,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:i,generatorName:"allDayContent",customGenerator:a.allDayContent,defaultGenerator:$me,classNameGenerator:a.allDayClassNames,didMount:a.allDayDidMount,willUnmount:a.allDayWillUnmount},m=>rt("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",r==null?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:r}},rt(m,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]})))},this.handleSlatCoords=r=>{this.setState({slatCoords:r})}}renderSimpleLayout(r,a,l){let{context:i,props:m}=this,v=[],C=wR(i.options);return r&&v.push({type:"header",key:"header",isSticky:C,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:r}}),a&&(v.push({type:"body",key:"all-day",chunk:{content:a}}),v.push({type:"body",key:"all-day-divider",outerContent:rt("tr",{role:"presentation",className:"fc-scrollgrid-section"},rt("td",{className:"fc-timegrid-divider "+i.theme.getClass("tableCellShaded")}))})),v.push({type:"body",key:"body",liquid:!0,expandRows:!!i.options.expandRows,chunk:{scrollerElRef:this.scrollerElRef,content:l}}),rt(uR,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:i.viewSpec},rt(sV,{liquid:!m.isHeightAuto&&!m.forPrint,collapsibleWidth:m.forPrint,cols:[{width:"shrink"}],sections:v}))}renderHScrollLayout(r,a,l,i,m,v,C){let E=this.context.pluginHooks.scrollGridImpl;if(!E)throw new Error("No ScrollGrid implementation");let{context:T,props:N}=this,V=!N.forPrint&&wR(T.options),U=!N.forPrint&&Xee(T.options),z=[];r&&z.push({type:"header",key:"header",isSticky:V,syncRowHeights:!0,chunks:[{key:"axis",rowContent:K=>rt("tr",{role:"presentation"},this.renderHeadAxis("day",K.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:r}]}),a&&(z.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:K=>rt("tr",{role:"presentation"},this.renderTableRowAxis(K.rowSyncHeights[0]))},{key:"cols",content:a}]}),z.push({key:"all-day-divider",type:"body",outerContent:rt("tr",{role:"presentation",className:"fc-scrollgrid-section"},rt("td",{colSpan:2,className:"fc-timegrid-divider "+T.theme.getClass("tableCellShaded")}))}));let W=T.options.nowIndicator;return z.push({type:"body",key:"body",liquid:!0,expandRows:!!T.options.expandRows,chunks:[{key:"axis",content:K=>rt("div",{className:"fc-timegrid-axis-chunk"},rt("table",{"aria-hidden":!0,style:{height:K.expandRows?K.clientHeight:""}},K.tableColGroupNode,rt("tbody",null,rt(Mme,{slatMetas:v}))),rt("div",{className:"fc-timegrid-now-indicator-container"},rt(fA,{unit:W?"minute":"day"},Z=>{let ce=W&&C&&C.safeComputeTop(Z);return typeof ce=="number"?rt(iV,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:ce},isAxis:!0,date:Z}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:l}]}),U&&z.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:oV},{key:"cols",content:oV}]}),rt(uR,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:T.viewSpec},rt(E,{liquid:!N.isHeightAuto&&!N.forPrint,forPrint:N.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:i,minWidth:m}]}],sections:z}))}getAllDayMaxEventProps(){let{dayMaxEvents:r,dayMaxEventRows:a}=this.context.options;return(r===!0||a===!0)&&(r=void 0,a=Lme),{dayMaxEvents:r,dayMaxEventRows:a}}}function $me(c){return c.text}class Vme{constructor(r,a,l){this.positions=r,this.dateProfile=a,this.slotDuration=l}safeComputeTop(r){let{dateProfile:a}=this;if(Y1(a.currentRange,r)){let l=Ra(r),i=r.valueOf()-l.valueOf();if(i>=rg(a.slotMinTime)&&i<rg(a.slotMaxTime))return this.computeTimeTop(ni(i))}return null}computeDateTop(r,a){return a||(a=Ra(r)),this.computeTimeTop(ni(r.valueOf()-a.valueOf()))}computeTimeTop(r){let{positions:a,dateProfile:l}=this,i=a.els.length,m=(r.milliseconds-rg(l.slotMinTime))/rg(this.slotDuration),v,C;return m=Math.max(0,m),m=Math.min(i,m),v=Math.floor(m),v=Math.min(v,i-1),C=m-v,a.tops[v]+a.getHeight(v)*C}}class Hme extends Li{render(){let{props:r,context:a}=this,{options:l}=a,{slatElRefs:i}=r;return rt("tbody",null,r.slatMetas.map((m,v)=>{let C={time:m.time,date:a.dateEnv.toDate(m.date),view:a.viewApi};return rt("tr",{key:m.key,ref:i.createRef(m.key)},r.axis&&rt(Nte,Object.assign({},m)),rt(rm,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!m.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":m.isoTimeStr},renderProps:C,generatorName:"slotLaneContent",customGenerator:l.slotLaneContent,classNameGenerator:l.slotLaneClassNames,didMount:l.slotLaneDidMount,willUnmount:l.slotLaneWillUnmount}))}))}}class zme extends Li{constructor(){super(...arguments),this.rootElRef=Bd(),this.slatElRefs=new X1}render(){let{props:r,context:a}=this;return rt("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},rt("table",{"aria-hidden":!0,className:a.theme.getClass("table"),style:{minWidth:r.tableMinWidth,width:r.clientWidth,height:r.minHeight}},r.tableColGroupNode,rt(Hme,{slatElRefs:this.slatElRefs,axis:r.axis,slatMetas:r.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:r,props:a}=this;a.onCoords&&a.clientWidth!==null&&this.rootElRef.current.offsetHeight&&a.onCoords(new Vme(new US(this.rootElRef.current,Ume(this.slatElRefs.currentMap,a.slatMetas),!1,!0),this.props.dateProfile,r.options.slotDuration))}}function Ume(c,r){return r.map(a=>c[a.key])}function mA(c,r){let a=[],l;for(l=0;l<r;l+=1)a.push([]);if(c)for(l=0;l<c.length;l+=1)a[c[l].col].push(c[l]);return a}function Ite(c,r){let a=[];if(c){for(let l=0;l<r;l+=1)a[l]={affectedInstances:c.affectedInstances,isEvent:c.isEvent,segs:[]};for(let l of c.segs)a[l.col].segs.push(l)}else for(let l=0;l<r;l+=1)a[l]=null;return a}class Wme extends Li{render(){let{props:r}=this;return rt(nte,{elClasses:["fc-timegrid-more-link"],elStyle:{top:r.top,bottom:r.bottom},allDayDate:null,moreCnt:r.hiddenSegs.length,allSegs:r.hiddenSegs,hiddenSegs:r.hiddenSegs,extraDateSpan:r.extraDateSpan,dateProfile:r.dateProfile,todayRange:r.todayRange,popoverContent:()=>Lte(r.hiddenSegs,r),defaultGenerator:jme,forceTimed:!0},a=>rt(a,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}}function jme(c){return c.shortText}function Gme(c,r,a){let l=new $ee;r!=null&&(l.strictOrder=r),a!=null&&(l.maxStackCnt=a);let i=l.addSegs(c),m=ude(i),v=Zme(l);return v=Xme(v,1),{segRects:Qme(v),hiddenGroups:m}}function Zme(c){const{entriesByLevel:r}=c,a=mV((l,i)=>l+":"+i,(l,i)=>{let m=Yme(c,l,i),v=Bte(m,a),C=r[l][i];return[Object.assign(Object.assign({},C),{nextLevelNodes:v[0]}),C.thickness+v[1]]});return Bte(r.length?{level:0,lateralStart:0,lateralEnd:r[0].length}:null,a)[0]}function Bte(c,r){if(!c)return[[],0];let{level:a,lateralStart:l,lateralEnd:i}=c,m=l,v=[];for(;m<i;)v.push(r(a,m)),m+=1;return v.sort(qme),[v.map(Kme),v[0][1]]}function qme(c,r){return r[1]-c[1]}function Kme(c){return c[0]}function Yme(c,r,a){let{levelCoords:l,entriesByLevel:i}=c,m=i[r][a],v=l[r]+m.thickness,C=l.length,E=r;for(;E<C&&l[E]<v;E+=1);for(;E<C;E+=1){let T=i[E],N,V=eV(T,m.span.start,X$),U=V[0]+V[1],z=U;for(;(N=T[z])&&N.span.start<m.span.end;)z+=1;if(U<z)return{level:E,lateralStart:U,lateralEnd:z}}return null}function Xme(c,r){const a=mV((l,i,m)=>Y2(l),(l,i,m)=>{let{nextLevelNodes:v,thickness:C}=l,E=C+m,T=C/E,N,V=[];if(!v.length)N=r;else for(let z of v)if(N===void 0){let W=a(z,i,E);N=W[0],V.push(W[1])}else{let W=a(z,N,0);V.push(W[1])}let U=(N-i)*T;return[N-U,Object.assign(Object.assign({},l),{thickness:U,nextLevelNodes:V})]});return c.map(l=>a(l,0,0)[1])}function Qme(c){let r=[];const a=mV((i,m,v)=>Y2(i),(i,m,v)=>{let C=Object.assign(Object.assign({},i),{levelCoord:m,stackDepth:v,stackForward:0});return r.push(C),C.stackForward=l(i.nextLevelNodes,m+i.thickness,v+1)+1});function l(i,m,v){let C=0;for(let E of i)C=Math.max(a(E,m,v),C);return C}return l(c,0,0),r}function mV(c,r){const a={};return(...l)=>{let i=c(...l);return i in a?a[i]:a[i]=r(...l)}}function Mte(c,r,a=null,l=0){let i=[];if(a)for(let m=0;m<c.length;m+=1){let v=c[m],C=a.computeDateTop(v.start,r),E=Math.max(C+(l||0),a.computeDateTop(v.end,r));i.push({start:Math.round(C),end:Math.round(E)})}return i}function Jme(c,r,a,l){let i=[],m=[];for(let T=0;T<c.length;T+=1){let N=r[T];N?i.push({index:T,thickness:1,span:N}):m.push(c[T])}let{segRects:v,hiddenGroups:C}=Gme(i,a,l),E=[];for(let T of v)E.push({seg:c[T.index],rect:T});for(let T of m)E.push({seg:T,rect:null});return{segPlacements:E,hiddenGroups:C}}const ehe=El({hour:"numeric",minute:"2-digit",meridiem:!1});class Pte extends Li{render(){return rt(Qee,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:ehe}))}}class the extends Li{constructor(){super(...arguments),this.sortEventSegs=Ms(Aee)}render(){let{props:r,context:a}=this,{options:l}=a,i=l.selectMirror,m=r.eventDrag&&r.eventDrag.segs||r.eventResize&&r.eventResize.segs||i&&r.dateSelectionSegs||[],v=r.eventDrag&&r.eventDrag.affectedInstances||r.eventResize&&r.eventResize.affectedInstances||{},C=this.sortEventSegs(r.fgEventSegs,l.eventOrder);return rt(aV,{elTag:"td",elRef:r.elRef,elClasses:["fc-timegrid-col",...r.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},r.extraDataAttrs),date:r.date,dateProfile:r.dateProfile,todayRange:r.todayRange,extraRenderProps:r.extraRenderProps},E=>rt("div",{className:"fc-timegrid-col-frame"},rt("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(r.businessHourSegs,"non-business"),this.renderFillSegs(r.bgEventSegs,"bg-event"),this.renderFillSegs(r.dateSelectionSegs,"highlight")),rt("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(C,v,!1,!1,!1)),rt("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(m,{},!!r.eventDrag,!!r.eventResize,!!i,"mirror")),rt("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(r.nowIndicatorSegs)),lV(l)&&rt(E,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(r,a,l,i,m,v){let{props:C}=this;return C.forPrint?Lte(r,C):this.renderPositionedFgSegs(r,a,l,i,m,v)}renderPositionedFgSegs(r,a,l,i,m,v){let{eventMaxStack:C,eventShortHeight:E,eventOrderStrict:T,eventMinHeight:N}=this.context.options,{date:V,slatCoords:U,eventSelection:z,todayRange:W,nowDate:K}=this.props,Z=l||i||m,ce=Mte(r,V,U,N),{segPlacements:q,hiddenGroups:X}=Jme(r,ce,T,C);return rt(Ya,null,this.renderHiddenGroups(X,r),q.map(Ce=>{let{seg:st,rect:Ne}=Ce,ee=st.eventRange.instance.instanceId,xe=Z||!!(!a[ee]&&Ne),et=hV(Ne&&Ne.span),tt=!Z&&Ne?this.computeSegHStyle(Ne):{left:0,right:0},je=!!Ne&&Ne.stackForward>0,be=!!Ne&&Ne.span.end-Ne.span.start<E;return rt("div",{className:"fc-timegrid-event-harness"+(je?" fc-timegrid-event-harness-inset":""),key:v||ee,style:Object.assign(Object.assign({visibility:xe?"":"hidden"},et),tt)},rt(Pte,Object.assign({seg:st,isDragging:l,isResizing:i,isDateSelecting:m,isSelected:ee===z,isShort:be},ny(st,W,K))))}))}renderHiddenGroups(r,a){let{extraDateSpan:l,dateProfile:i,todayRange:m,nowDate:v,eventSelection:C,eventDrag:E,eventResize:T}=this.props;return rt(Ya,null,r.map(N=>{let V=hV(N.span),U=nhe(N.entries,a);return rt(Wme,{key:ZJ(ste(U)),hiddenSegs:U,top:V.top,bottom:V.bottom,extraDateSpan:l,dateProfile:i,todayRange:m,nowDate:v,eventSelection:C,eventDrag:E,eventResize:T})}))}renderFillSegs(r,a){let{props:l,context:i}=this,v=Mte(r,l.date,l.slatCoords,i.options.eventMinHeight).map((C,E)=>{let T=r[E];return rt("div",{key:Dee(T.eventRange),className:"fc-timegrid-bg-harness",style:hV(C)},a==="bg-event"?rt(Jee,Object.assign({seg:T},ny(T,l.todayRange,l.nowDate))):ete(a))});return rt(Ya,null,v)}renderNowIndicator(r){let{slatCoords:a,date:l}=this.props;return a?r.map((i,m)=>rt(iV,{key:m,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:a.computeDateTop(i.start,l)},isAxis:!1,date:l})):null}computeSegHStyle(r){let{isRtl:a,options:l}=this.context,i=l.slotEventOverlap,m=r.levelCoord,v=r.levelCoord+r.thickness,C,E;i&&(v=Math.min(1,m+(v-m)*2)),a?(C=1-v,E=m):(C=m,E=1-v);let T={zIndex:r.stackDepth+1,left:C*100+"%",right:E*100+"%"};return i&&!r.stackForward&&(T[a?"marginLeft":"marginRight"]=10*2),T}}function Lte(c,{todayRange:r,nowDate:a,eventSelection:l,eventDrag:i,eventResize:m}){let v=(i?i.affectedInstances:null)||(m?m.affectedInstances:null)||{};return rt(Ya,null,c.map(C=>{let E=C.eventRange.instance.instanceId;return rt("div",{key:E,style:{visibility:v[E]?"hidden":""}},rt(Pte,Object.assign({seg:C,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:E===l,isShort:!1},ny(C,r,a))))}))}function hV(c){return c?{top:c.start,bottom:-c.end}:{top:"",bottom:""}}function nhe(c,r){return c.map(a=>r[a.index])}class ohe extends Li{constructor(){super(...arguments),this.splitFgEventSegs=Ms(mA),this.splitBgEventSegs=Ms(mA),this.splitBusinessHourSegs=Ms(mA),this.splitNowIndicatorSegs=Ms(mA),this.splitDateSelectionSegs=Ms(mA),this.splitEventDrag=Ms(Ite),this.splitEventResize=Ms(Ite),this.rootElRef=Bd(),this.cellElRefs=new X1}render(){let{props:r,context:a}=this,l=a.options.nowIndicator&&r.slatCoords&&r.slatCoords.safeComputeTop(r.nowDate),i=r.cells.length,m=this.splitFgEventSegs(r.fgEventSegs,i),v=this.splitBgEventSegs(r.bgEventSegs,i),C=this.splitBusinessHourSegs(r.businessHourSegs,i),E=this.splitNowIndicatorSegs(r.nowIndicatorSegs,i),T=this.splitDateSelectionSegs(r.dateSelectionSegs,i),N=this.splitEventDrag(r.eventDrag,i),V=this.splitEventResize(r.eventResize,i);return rt("div",{className:"fc-timegrid-cols",ref:this.rootElRef},rt("table",{role:"presentation",style:{minWidth:r.tableMinWidth,width:r.clientWidth}},r.tableColGroupNode,rt("tbody",{role:"presentation"},rt("tr",{role:"row"},r.axis&&rt("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},rt("div",{className:"fc-timegrid-col-frame"},rt("div",{className:"fc-timegrid-now-indicator-container"},typeof l=="number"&&rt(iV,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:l},isAxis:!0,date:r.nowDate})))),r.cells.map((U,z)=>rt(the,{key:U.key,elRef:this.cellElRefs.createRef(U.key),dateProfile:r.dateProfile,date:U.date,nowDate:r.nowDate,todayRange:r.todayRange,extraRenderProps:U.extraRenderProps,extraDataAttrs:U.extraDataAttrs,extraClassNames:U.extraClassNames,extraDateSpan:U.extraDateSpan,fgEventSegs:m[z],bgEventSegs:v[z],businessHourSegs:C[z],nowIndicatorSegs:E[z],dateSelectionSegs:T[z],eventDrag:N[z],eventResize:V[z],slatCoords:r.slatCoords,eventSelection:r.eventSelection,forPrint:r.forPrint}))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:r}=this;r.onColCoords&&r.clientWidth!==null&&r.onColCoords(new US(this.rootElRef.current,she(this.cellElRefs.currentMap,r.cells),!0,!1))}}function she(c,r){return r.map(a=>c[a.key])}class rhe extends wp{constructor(){super(...arguments),this.processSlotOptions=Ms(ihe),this.state={slatCoords:null},this.handleRootEl=r=>{r?this.context.registerInteractiveComponent(this,{el:r,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=r=>{let{onScrollTopRequest:a}=this.props,{slatCoords:l}=this.state;if(a&&l){if(r.time){let i=l.computeTimeTop(r.time);i=Math.ceil(i),i&&(i+=1),a(i)}return!0}return!1},this.handleColCoords=r=>{this.colCoords=r},this.handleSlatCoords=r=>{this.setState({slatCoords:r}),this.props.onSlatCoords&&this.props.onSlatCoords(r)}}render(){let{props:r,state:a}=this;return rt("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:r.clientWidth,minWidth:r.tableMinWidth}},rt(zme,{axis:r.axis,dateProfile:r.dateProfile,slatMetas:r.slatMetas,clientWidth:r.clientWidth,minHeight:r.expandRows?r.clientHeight:"",tableMinWidth:r.tableMinWidth,tableColGroupNode:r.axis?r.tableColGroupNode:null,onCoords:this.handleSlatCoords}),rt(ohe,{cells:r.cells,axis:r.axis,dateProfile:r.dateProfile,businessHourSegs:r.businessHourSegs,bgEventSegs:r.bgEventSegs,fgEventSegs:r.fgEventSegs,dateSelectionSegs:r.dateSelectionSegs,eventSelection:r.eventSelection,eventDrag:r.eventDrag,eventResize:r.eventResize,todayRange:r.todayRange,nowDate:r.nowDate,nowIndicatorSegs:r.nowIndicatorSegs,clientWidth:r.clientWidth,tableMinWidth:r.tableMinWidth,tableColGroupNode:r.tableColGroupNode,slatCoords:a.slatCoords,onColCoords:this.handleColCoords,forPrint:r.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(r){this.scrollResponder.update(r.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(r,a){let{dateEnv:l,options:i}=this.context,{colCoords:m}=this,{dateProfile:v}=this.props,{slatCoords:C}=this.state,{snapDuration:E,snapsPerSlot:T}=this.processSlotOptions(this.props.slotDuration,i.snapDuration),N=m.leftToIndex(r),V=C.positions.topToIndex(a);if(N!=null&&V!=null){let U=this.props.cells[N],z=C.positions.tops[V],W=C.positions.getHeight(V),K=(a-z)/W,Z=Math.floor(K*T),ce=V*T+Z,q=this.props.cells[N].date,X=b$(v.slotMinTime,Jle(E,ce)),Ce=l.add(q,X),st=l.add(Ce,E);return{dateProfile:v,dateSpan:Object.assign({range:{start:Ce,end:st},allDay:!1},U.extraDateSpan),dayEl:m.els[N],rect:{left:m.lefts[N],right:m.rights[N],top:z,bottom:z+W},layer:0}}return null}}function ihe(c,r){let a=r||c,l=C$(c,a);return l===null&&(a=c,l=1),{snapDuration:a,snapsPerSlot:l}}class ahe extends Gee{sliceRange(r,a){let l=[];for(let i=0;i<a.length;i+=1){let m=Z2(r,a[i]);m&&l.push({start:m.start,end:m.end,isStart:m.start.valueOf()===r.start.valueOf(),isEnd:m.end.valueOf()===r.end.valueOf(),col:i})}return l}}class lhe extends wp{constructor(){super(...arguments),this.buildDayRanges=Ms(che),this.slicer=new ahe,this.timeColsRef=Bd()}render(){let{props:r,context:a}=this,{dateProfile:l,dayTableModel:i}=r,{nowIndicator:m,nextDayThreshold:v}=a.options,C=this.buildDayRanges(i,l,a.dateEnv);return rt(fA,{unit:m?"minute":"day"},(E,T)=>rt(rhe,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(r,l,null,a,C),{forPrint:r.forPrint,axis:r.axis,dateProfile:l,slatMetas:r.slatMetas,slotDuration:r.slotDuration,cells:i.cells[0],tableColGroupNode:r.tableColGroupNode,tableMinWidth:r.tableMinWidth,clientWidth:r.clientWidth,clientHeight:r.clientHeight,expandRows:r.expandRows,nowDate:E,nowIndicatorSegs:m&&this.slicer.sliceNowDate(E,l,v,a,C),todayRange:T,onScrollTopRequest:r.onScrollTopRequest,onSlatCoords:r.onSlatCoords})))}}function che(c,r,a){let l=[];for(let i of c.headerDates)l.push({start:a.add(i,r.slotMinTime),end:a.add(i,r.slotMaxTime)});return l}const Fte=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function uhe(c,r,a,l,i){let m=new Date(0),v=c,C=ni(0),E=a||dhe(l),T=[];for(;rg(v)<rg(r);){let N=i.add(m,v),V=C$(C,E)!==null;T.push({date:N,time:v,key:N.toISOString(),isoTimeStr:gce(N),isLabeled:V}),v=b$(v,l),C=b$(C,l)}return T}function dhe(c){let r,a,l;for(r=Fte.length-1;r>=0;r-=1)if(a=ni(Fte[r]),l=C$(a,c),l!==null&&l>1)return a;return c}class fhe extends Fme{constructor(){super(...arguments),this.buildTimeColsModel=Ms(mhe),this.buildSlatMetas=Ms(uhe)}render(){let{options:r,dateEnv:a,dateProfileGenerator:l}=this.context,{props:i}=this,{dateProfile:m}=i,v=this.buildTimeColsModel(m,l),C=this.allDaySplitter.splitProps(i),E=this.buildSlatMetas(m.slotMinTime,m.slotMaxTime,r.slotLabelInterval,r.slotDuration,a),{dayMinWidth:T}=r,N=!T,V=T,U=r.dayHeaders&&rt(Uee,{dates:v.headerDates,dateProfile:m,datesRepDistinctDays:!0,renderIntro:N?this.renderHeadAxis:null}),z=r.allDaySlot!==!1&&(K=>rt(Ote,Object.assign({},C.allDay,{dateProfile:m,dayTableModel:v,nextDayThreshold:r.nextDayThreshold,tableMinWidth:K.tableMinWidth,colGroupNode:K.tableColGroupNode,renderRowIntro:N?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:K.clientWidth,clientHeight:K.clientHeight,forPrint:i.forPrint},this.getAllDayMaxEventProps()))),W=K=>rt(lhe,Object.assign({},C.timed,{dayTableModel:v,dateProfile:m,axis:N,slotDuration:r.slotDuration,slatMetas:E,forPrint:i.forPrint,tableColGroupNode:K.tableColGroupNode,tableMinWidth:K.tableMinWidth,clientWidth:K.clientWidth,clientHeight:K.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:K.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return V?this.renderHScrollLayout(U,z,W,v.colCnt,T,E,this.state.slatCoords):this.renderSimpleLayout(U,z,W)}}function mhe(c,r){let a=new Wee(c.renderRange,r);return new jee(a,!1)}var hhe='.fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-v-event .fc-event-main{color:var(--fc-event-text-color);height:100%}.fc-v-event .fc-event-main-frame{display:flex;flex-direction:column;height:100%}.fc-v-event .fc-event-time{flex-grow:0;flex-shrink:0;max-height:100%;overflow:hidden}.fc-v-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;max-height:100%;overflow:hidden;top:0}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%;position:relative;z-index:1}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-slot{border-bottom:0;height:1.5em}.fc .fc-timegrid-slot:empty:before{content:"\\00a0"}.fc .fc-timegrid-slot-minor{border-top-style:dotted}.fc .fc-timegrid-slot-label-cushion{display:inline-block;white-space:nowrap}.fc .fc-timegrid-slot-label{vertical-align:middle}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{padding:0 4px}.fc .fc-timegrid-axis-frame-liquid{height:100%}.fc .fc-timegrid-axis-frame{align-items:center;display:flex;justify-content:flex-end;overflow:hidden}.fc .fc-timegrid-axis-cushion{flex-shrink:0;max-width:60px}.fc-direction-ltr .fc-timegrid-slot-label-frame{text-align:right}.fc-direction-rtl .fc-timegrid-slot-label-frame{text-align:left}.fc-liquid-hack .fc-timegrid-axis-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols{bottom:0;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols>table{height:100%}.fc-media-screen .fc-timegrid-col-bg,.fc-media-screen .fc-timegrid-col-events,.fc-media-screen .fc-timegrid-now-indicator-container{left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col-bg{z-index:2}.fc .fc-timegrid-col-bg .fc-non-business{z-index:1}.fc .fc-timegrid-col-bg .fc-bg-event{z-index:2}.fc .fc-timegrid-col-bg .fc-highlight{z-index:3}.fc .fc-timegrid-bg-harness{left:0;position:absolute;right:0}.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-now-indicator-container{bottom:0;overflow:hidden}.fc-direction-ltr .fc-timegrid-col-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-events{margin:0 2px 0 2.5%}.fc-timegrid-event-harness{position:absolute}.fc-timegrid-event-harness>.fc-timegrid-event{bottom:0;left:0;position:absolute;right:0;top:0}.fc-timegrid-event-harness-inset .fc-timegrid-event,.fc-timegrid-event.fc-event-mirror,.fc-timegrid-more-link{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event,.fc-timegrid-more-link{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-main-frame{flex-direction:row;overflow:hidden}.fc-timegrid-event-short .fc-event-time:after{content:"\\00a0-\\00a0"}.fc-timegrid-event-short .fc-event-title{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;position:absolute;z-index:9999}.fc-timegrid-more-link-inner{padding:3px 2px;top:0}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc .fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;border-width:1px 0 0;left:0;position:absolute;right:0;z-index:4}.fc .fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-style:solid;margin-top:-5px;position:absolute;z-index:4}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}';m$(hhe);var $te=Q1({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:fhe,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});tV.touchMouseIgnoreWait=500;let gV=0,kR=0,pV=!1;class Vte{constructor(r){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=a=>{if(!this.shouldIgnoreMouse()&&ghe(a)&&this.tryStart(a)){let l=this.createEventFromMouse(a,!0);this.emitter.trigger("pointerdown",l),this.initScrollWatch(l),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=a=>{let l=this.createEventFromMouse(a);this.recordCoords(l),this.emitter.trigger("pointermove",l)},this.handleMouseUp=a=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(a)),this.cleanup()},this.handleTouchStart=a=>{if(this.tryStart(a)){this.isTouchDragging=!0;let l=this.createEventFromTouch(a,!0);this.emitter.trigger("pointerdown",l),this.initScrollWatch(l);let i=a.target;this.shouldIgnoreMove||i.addEventListener("touchmove",this.handleTouchMove),i.addEventListener("touchend",this.handleTouchEnd),i.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=a=>{let l=this.createEventFromTouch(a);this.recordCoords(l),this.emitter.trigger("pointermove",l)},this.handleTouchEnd=a=>{if(this.isDragging){let l=a.target;l.removeEventListener("touchmove",this.handleTouchMove),l.removeEventListener("touchend",this.handleTouchEnd),l.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(a)),this.cleanup(),this.isTouchDragging=!1,phe()}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=a=>{if(!this.shouldIgnoreMove){let l=window.scrollX-this.prevScrollX+this.prevPageX,i=window.scrollY-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:a,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:l,pageY:i,deltaX:l-this.origPageX,deltaY:i-this.origPageY})}},this.containerEl=r,this.emitter=new pR,r.addEventListener("mousedown",this.handleMouseDown),r.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),vhe()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),yhe()}tryStart(r){let a=this.querySubjectEl(r),l=r.target;return a&&(!this.handleSelector||td(l,this.handleSelector))?(this.subjectEl=a,this.isDragging=!0,this.wasTouchScroll=!1,!0):!1}cleanup(){pV=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(r){return this.selector?td(r.target,this.selector):this.containerEl}shouldIgnoreMouse(){return gV||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(pV=!0)}initScrollWatch(r){this.shouldWatchScroll&&(this.recordCoords(r),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(r){this.shouldWatchScroll&&(this.prevPageX=r.pageX,this.prevPageY=r.pageY,this.prevScrollX=window.scrollX,this.prevScrollY=window.scrollY)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(r,a){let l=0,i=0;return a?(this.origPageX=r.pageX,this.origPageY=r.pageY):(l=r.pageX-this.origPageX,i=r.pageY-this.origPageY),{origEvent:r,isTouch:!1,subjectEl:this.subjectEl,pageX:r.pageX,pageY:r.pageY,deltaX:l,deltaY:i}}createEventFromTouch(r,a){let l=r.touches,i,m,v=0,C=0;return l&&l.length?(i=l[0].pageX,m=l[0].pageY):(i=r.pageX,m=r.pageY),a?(this.origPageX=i,this.origPageY=m):(v=i-this.origPageX,C=m-this.origPageY),{origEvent:r,isTouch:!0,subjectEl:this.subjectEl,pageX:i,pageY:m,deltaX:v,deltaY:C}}}function ghe(c){return c.button===0&&!c.ctrlKey}function phe(){gV+=1,setTimeout(()=>{gV-=1},tV.touchMouseIgnoreWait)}function vhe(){kR+=1,kR===1&&window.addEventListener("touchmove",Hte,{passive:!1})}function yhe(){kR-=1,kR||window.removeEventListener("touchmove",Hte,{passive:!1})}function Hte(c){pV&&c.preventDefault()}class bhe{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(r,a,l){this.sourceEl=r,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=a-window.scrollX,this.origScreenY=l-window.scrollY,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(r,a){this.deltaX=r-window.scrollX-this.origScreenX,this.deltaY=a-window.scrollY-this.origScreenY,this.updateElPosition()}setIsVisible(r){r?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=r,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=r)}stop(r,a){let l=()=>{this.cleanup(),a()};r&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(l,this.revertDuration):setTimeout(l,0)}doRevertAnimation(r,a){let l=this.mirrorEl,i=this.sourceEl.getBoundingClientRect();l.style.transition="top "+a+"ms,left "+a+"ms",iA(l,{left:i.left,top:i.top}),Fle(l,()=>{l.style.transition="",r()})}cleanup(){this.mirrorEl&&(p$(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&iA(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let r=this.sourceElRect,a=this.mirrorEl;return a||(a=this.mirrorEl=this.sourceEl.cloneNode(!0),a.style.userSelect="none",a.style.webkitUserSelect="none",a.style.pointerEvents="none",a.classList.add("fc-event-dragging"),iA(a,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:r.right-r.left,height:r.bottom-r.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(a)),a}}class zte extends Y${constructor(r,a){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=r,this.doesListening=a,this.scrollTop=this.origScrollTop=r.getScrollTop(),this.scrollLeft=this.origScrollLeft=r.getScrollLeft(),this.scrollWidth=r.getScrollWidth(),this.scrollHeight=r.getScrollHeight(),this.clientWidth=r.getClientWidth(),this.clientHeight=r.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(r){this.scrollController.setScrollTop(r),this.doesListening||(this.scrollTop=Math.max(Math.min(r,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(r){this.scrollController.setScrollLeft(r),this.doesListening||(this.scrollLeft=Math.max(Math.min(r,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}}class Ute extends zte{constructor(r,a){super(new lde(r),a)}getEventTarget(){return this.scrollController.el}computeClientRect(){return ide(this.scrollController.el)}}class Che extends zte{constructor(r){super(new cde,r)}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 Wte=typeof performance=="function"?performance.now:Date.now;class _he{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 r=this.computeBestEdge(this.pointerScreenX+window.scrollX,this.pointerScreenY+window.scrollY);if(r){let a=Wte();this.handleSide(r,(a-this.msSinceRequest)/1e3),this.requestAnimation(a)}else this.isAnimating=!1}}}start(r,a,l){this.isEnabled&&(this.scrollCaches=this.buildCaches(l),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(r,a))}handleMove(r,a){if(this.isEnabled){let l=r-window.scrollX,i=a-window.scrollY,m=this.pointerScreenY===null?0:i-this.pointerScreenY,v=this.pointerScreenX===null?0:l-this.pointerScreenX;m<0?this.everMovedUp=!0:m>0&&(this.everMovedDown=!0),v<0?this.everMovedLeft=!0:v>0&&(this.everMovedRight=!0),this.pointerScreenX=l,this.pointerScreenY=i,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(Wte()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let r of this.scrollCaches)r.destroy();this.scrollCaches=null}}requestAnimation(r){this.msSinceRequest=r,requestAnimationFrame(this.animate)}handleSide(r,a){let{scrollCache:l}=r,{edgeThreshold:i}=this,m=i-r.distance,v=m*m/(i*i)*this.maxVelocity*a,C=1;switch(r.name){case"left":C=-1;case"right":l.setScrollLeft(l.getScrollLeft()+v*C);break;case"top":C=-1;case"bottom":l.setScrollTop(l.getScrollTop()+v*C);break}}computeBestEdge(r,a){let{edgeThreshold:l}=this,i=null,m=this.scrollCaches||[];for(let v of m){let C=v.clientRect,E=r-C.left,T=C.right-r,N=a-C.top,V=C.bottom-a;E>=0&&T>=0&&N>=0&&V>=0&&(N<=l&&this.everMovedUp&&v.canScrollUp()&&(!i||i.distance>N)&&(i={scrollCache:v,name:"top",distance:N}),V<=l&&this.everMovedDown&&v.canScrollDown()&&(!i||i.distance>V)&&(i={scrollCache:v,name:"bottom",distance:V}),E<=l&&this.everMovedLeft&&v.canScrollLeft()&&(!i||i.distance>E)&&(i={scrollCache:v,name:"left",distance:E}),T<=l&&this.everMovedRight&&v.canScrollRight()&&(!i||i.distance>T)&&(i={scrollCache:v,name:"right",distance:T}))}return i}buildCaches(r){return this.queryScrollEls(r).map(a=>a===window?new Che(!1):new Ute(a,!1))}queryScrollEls(r){let a=[];for(let l of this.scrollQuery)typeof l=="object"?a.push(l):a.push(...Array.prototype.slice.call(r.getRootNode().querySelectorAll(l)));return a}}class hA extends fde{constructor(r,a){super(r),this.containerEl=r,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=i=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,$le(document.body),Hle(document.body),i.isTouch||i.origEvent.preventDefault(),this.emitter.trigger("pointerdown",i),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(i.subjectEl,i.pageX,i.pageY),this.startDelay(i),this.minDistance||this.handleDistanceSurpassed(i)))},this.onPointerMove=i=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",i),!this.isDistanceSurpassed){let m=this.minDistance,v,{deltaX:C,deltaY:E}=i;v=C*C+E*E,v>=m*m&&this.handleDistanceSurpassed(i)}this.isDragging&&(i.origEvent.type!=="scroll"&&(this.mirror.handleMove(i.pageX,i.pageY),this.autoScroller.handleMove(i.pageX,i.pageY)),this.emitter.trigger("dragmove",i))}},this.onPointerUp=i=>{this.isInteracting&&(this.isInteracting=!1,Vle(document.body),zle(document.body),this.emitter.trigger("pointerup",i),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(i)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let l=this.pointer=new Vte(r);l.emitter.on("pointerdown",this.onPointerDown),l.emitter.on("pointermove",this.onPointerMove),l.emitter.on("pointerup",this.onPointerUp),a&&(l.selector=a),this.mirror=new bhe,this.autoScroller=new _he}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(r){typeof this.delay=="number"?this.delayTimeoutId=setTimeout(()=>{this.delayTimeoutId=null,this.handleDelayEnd(r)},this.delay):this.handleDelayEnd(r)}handleDelayEnd(r){this.isDelayEnded=!0,this.tryStartDrag(r)}handleDistanceSurpassed(r){this.isDistanceSurpassed=!0,this.tryStartDrag(r)}tryStartDrag(r){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(r.pageX,r.pageY,this.containerEl),this.emitter.trigger("dragstart",r),this.touchScrollAllowed===!1&&this.pointer.cancelTouchScroll())}tryStopDrag(r){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,r))}stopDrag(r){this.isDragging=!1,this.emitter.trigger("dragend",r)}setIgnoreMove(r){this.pointer.shouldIgnoreMove=r}setMirrorIsVisible(r){this.mirror.setIsVisible(r)}setMirrorNeedsRevert(r){this.mirrorNeedsRevert=r}setAutoScrollEnabled(r){this.autoScroller.isEnabled=r}}class whe{constructor(r){this.el=r,this.origRect=K$(r),this.scrollCaches=Fee(r).map(a=>new Ute(a,!0))}destroy(){for(let r of this.scrollCaches)r.destroy()}computeLeft(){let r=this.origRect.left;for(let a of this.scrollCaches)r+=a.origScrollLeft-a.getScrollLeft();return r}computeTop(){let r=this.origRect.top;for(let a of this.scrollCaches)r+=a.origScrollTop-a.getScrollTop();return r}isWithinClipping(r,a){let l={left:r,top:a};for(let i of this.scrollCaches)if(!She(i.getEventTarget())&&!Zue(l,i.clientRect))return!1;return!0}}function She(c){let r=c.tagName;return r==="HTML"||r==="BODY"}class xR{constructor(r,a){this.useSubjectCenter=!1,this.requireInitial=!0,this.disablePointCheck=!1,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=l=>{let{dragging:i}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(l),this.initialHit||!this.requireInitial?(i.setIgnoreMove(!1),this.emitter.trigger("pointerdown",l)):i.setIgnoreMove(!0)},this.handleDragStart=l=>{this.emitter.trigger("dragstart",l),this.handleMove(l,!0)},this.handleDragMove=l=>{this.emitter.trigger("dragmove",l),this.handleMove(l)},this.handlePointerUp=l=>{this.releaseHits(),this.emitter.trigger("pointerup",l)},this.handleDragEnd=l=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,l),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",l)},this.droppableStore=a,r.emitter.on("pointerdown",this.handlePointerDown),r.emitter.on("dragstart",this.handleDragStart),r.emitter.on("dragmove",this.handleDragMove),r.emitter.on("pointerup",this.handlePointerUp),r.emitter.on("dragend",this.handleDragEnd),this.dragging=r,this.emitter=new pR}processFirstCoord(r){let a={left:r.pageX,top:r.pageY},l=a,i=r.subjectEl,m;i instanceof HTMLElement&&(m=K$(i),l=que(l,m));let v=this.initialHit=this.queryHitForOffset(l.left,l.top);if(v){if(this.useSubjectCenter&&m){let C=Mee(m,v.rect);C&&(l=Kue(C))}this.coordAdjust=Yue(l,a)}else this.coordAdjust={left:0,top:0}}handleMove(r,a){let l=this.queryHitForOffset(r.pageX+this.coordAdjust.left,r.pageY+this.coordAdjust.top);(a||!AR(this.movingHit,l))&&(this.movingHit=l,this.emitter.trigger("hitupdate",l,!1,r))}prepareHits(){this.offsetTrackers=Z1(this.droppableStore,r=>(r.component.prepareHits(),new whe(r.el)))}releaseHits(){let{offsetTrackers:r}=this;for(let a in r)r[a].destroy();this.offsetTrackers={}}queryHitForOffset(r,a){let{droppableStore:l,offsetTrackers:i}=this,m=null;for(let v in l){let C=l[v].component,E=i[v];if(E&&E.isWithinClipping(r,a)){let T=E.computeLeft(),N=E.computeTop(),V=r-T,U=a-N,{origRect:z}=E,W=z.right-z.left,K=z.bottom-z.top;if(V>=0&&V<W&&U>=0&&U<K){let Z=C.queryHit(V,U,W,K);Z&&dR(Z.dateProfile.activeRange,Z.dateSpan.range)&&(this.disablePointCheck||E.el.contains(document.elementFromPoint(V+T-window.scrollX,U+N-window.scrollY)))&&(!m||Z.layer>m.layer)&&(Z.componentId=v,Z.context=C.context,Z.rect.left+=T,Z.rect.right+=T,Z.rect.top+=N,Z.rect.bottom+=N,m=Z)}}}return m}}function AR(c,r){return!c&&!r?!0:!!c!=!!r?!1:Lue(c.dateSpan,r.dateSpan)}function jte(c,r){let a={};for(let l of r.pluginHooks.datePointTransforms)Object.assign(a,l(c,r));return Object.assign(a,Ehe(c,r.dateEnv)),a}function Ehe(c,r){return{date:r.toDate(c.range.start),dateStr:r.formatIso(c.range.start,{omitTime:c.allDay}),allDay:c.allDay}}class khe extends zS{constructor(r){super(r),this.handlePointerDown=l=>{let{dragging:i}=this,m=l.origEvent.target;i.setIgnoreMove(!this.component.isValidDateDownEl(m))},this.handleDragEnd=l=>{let{component:i}=this,{pointer:m}=this.dragging;if(!m.wasTouchScroll){let{initialHit:v,finalHit:C}=this.hitDragging;if(v&&C&&AR(v,C)){let{context:E}=i,T=Object.assign(Object.assign({},jte(v.dateSpan,E)),{dayEl:v.dayEl,jsEvent:l.origEvent,view:E.viewApi||E.calendarApi.view});E.emitter.trigger("dateClick",T)}}},this.dragging=new hA(r.el),this.dragging.autoScroller.isEnabled=!1;let a=this.hitDragging=new xR(this.dragging,U$(r));a.emitter.on("pointerdown",this.handlePointerDown),a.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class xhe extends zS{constructor(r){super(r),this.dragSelection=null,this.handlePointerDown=v=>{let{component:C,dragging:E}=this,{options:T}=C.context,N=T.selectable&&C.isValidDateDownEl(v.origEvent.target);E.setIgnoreMove(!N),E.delay=v.isTouch?Ahe(C):null},this.handleDragStart=v=>{this.component.context.calendarApi.unselect(v)},this.handleHitUpdate=(v,C)=>{let{context:E}=this.component,T=null,N=!1;if(v){let V=this.hitDragging.initialHit;v.componentId===V.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(V,v)||(T=The(V,v,E.pluginHooks.dateSelectionTransformers)),(!T||!yde(T,v.dateProfile,E))&&(N=!0,T=null)}T?E.dispatch({type:"SELECT_DATES",selection:T}):C||E.dispatch({type:"UNSELECT_DATES"}),N?v$():y$(),C||(this.dragSelection=T)},this.handlePointerUp=v=>{this.dragSelection&&(_ee(this.dragSelection,v,this.component.context),this.dragSelection=null)};let{component:a}=r,{options:l}=a.context,i=this.dragging=new hA(r.el);i.touchScrollAllowed=!1,i.minDistance=l.selectMinDistance||0,i.autoScroller.isEnabled=l.dragScroll;let m=this.hitDragging=new xR(this.dragging,U$(r));m.emitter.on("pointerdown",this.handlePointerDown),m.emitter.on("dragstart",this.handleDragStart),m.emitter.on("hitupdate",this.handleHitUpdate),m.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}}function Ahe(c){let{options:r}=c.context,a=r.selectLongPressDelay;return a==null&&(a=r.longPressDelay),a}function The(c,r,a){let l=c.dateSpan,i=r.dateSpan,m=[l.range.start,l.range.end,i.range.start,i.range.end];m.sort(Zle);let v={};for(let C of a){let E=C(c,r);if(E===!1)return null;E&&Object.assign(v,E)}return v.range={start:m[0],end:m[3]},v.allDay=l.allDay,v}class gA extends zS{constructor(r){super(r),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=v=>{let C=v.origEvent.target,{component:E,dragging:T}=this,{mirror:N}=T,{options:V}=E.context,U=E.context;this.subjectEl=v.subjectEl;let z=this.subjectSeg=HS(v.subjectEl),K=(this.eventRange=z.eventRange).instance.instanceId;this.relevantEvents=F$(U.getCurrentData().eventStore,K),T.minDistance=v.isTouch?0:V.eventDragMinDistance,T.delay=v.isTouch&&K!==E.props.eventSelection?Ohe(E):null,V.fixedMirrorParent?N.parentNode=V.fixedMirrorParent:N.parentNode=td(C,".fc"),N.revertDuration=V.dragRevertDuration;let Z=E.isValidSegDownEl(C)&&!td(C,".fc-event-resizer");T.setIgnoreMove(!Z),this.isDragging=Z&&v.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=v=>{let C=this.component.context,E=this.eventRange,T=E.instance.instanceId;v.isTouch?T!==this.component.props.eventSelection&&C.dispatch({type:"SELECT_EVENT",eventInstanceId:T}):C.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(C.calendarApi.unselect(v),C.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new fl(C,E.def,E.instance),jsEvent:v.origEvent,view:C.viewApi}))},this.handleHitUpdate=(v,C)=>{if(!this.isDragging)return;let E=this.relevantEvents,T=this.hitDragging.initialHit,N=this.component.context,V=null,U=null,z=null,W=!1,K={affectedEvents:E,mutatedEvents:im(),isEvent:!0};if(v){V=v.context;let Z=V.options;N===V||Z.editable&&Z.droppable?(U=Dhe(T,v,this.eventRange.instance.range.start,V.getCurrentData().pluginHooks.eventDragMutationMassagers),U&&(z=H$(E,V.getCurrentData().eventUiBases,U,V),K.mutatedEvents=z,Zee(K,v.dateProfile,V)||(W=!0,U=null,z=null,K.mutatedEvents=im()))):V=null}this.displayDrag(V,K),W?v$():y$(),C||(N===V&&AR(T,v)&&(U=null),this.dragging.setMirrorNeedsRevert(!U),this.dragging.setMirrorIsVisible(!v||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=V,this.validMutation=U,this.mutatedRelevantEvents=z)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=v=>{if(this.isDragging){let C=this.component.context,E=C.viewApi,{receivingContext:T,validMutation:N}=this,V=this.eventRange.def,U=this.eventRange.instance,z=new fl(C,V,U),W=this.relevantEvents,K=this.mutatedRelevantEvents,{finalHit:Z}=this.hitDragging;if(this.clearDrag(),C.emitter.trigger("eventDragStop",{el:this.subjectEl,event:z,jsEvent:v.origEvent,view:E}),N){if(T===C){let ce=new fl(C,K.defs[V.defId],U?K.instances[U.instanceId]:null);C.dispatch({type:"MERGE_EVENTS",eventStore:K});let q={oldEvent:z,event:ce,relatedEvents:K2(K,C,U),revert(){C.dispatch({type:"MERGE_EVENTS",eventStore:W})}},X={};for(let Ce of C.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(X,Ce(N,C));C.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},q),X),{el:v.subjectEl,delta:N.datesDelta,jsEvent:v.origEvent,view:E})),C.emitter.trigger("eventChange",q)}else if(T){let ce={event:z,relatedEvents:K2(W,C,U),revert(){C.dispatch({type:"MERGE_EVENTS",eventStore:W})}};C.emitter.trigger("eventLeave",Object.assign(Object.assign({},ce),{draggedEl:v.subjectEl,view:E})),C.dispatch({type:"REMOVE_EVENTS",eventStore:W}),C.emitter.trigger("eventRemove",ce);let q=K.defs[V.defId],X=K.instances[U.instanceId],Ce=new fl(T,q,X);T.dispatch({type:"MERGE_EVENTS",eventStore:K});let st={event:Ce,relatedEvents:K2(K,T,X),revert(){T.dispatch({type:"REMOVE_EVENTS",eventStore:K})}};T.emitter.trigger("eventAdd",st),v.isTouch&&T.dispatch({type:"SELECT_EVENT",eventInstanceId:U.instanceId}),T.emitter.trigger("drop",Object.assign(Object.assign({},jte(Z.dateSpan,T)),{draggedEl:v.subjectEl,jsEvent:v.origEvent,view:Z.context.viewApi})),T.emitter.trigger("eventReceive",Object.assign(Object.assign({},st),{draggedEl:v.subjectEl,view:Z.context.viewApi}))}}else C.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:a}=this,{options:l}=a.context,i=this.dragging=new hA(r.el);i.pointer.selector=gA.SELECTOR,i.touchScrollAllowed=!1,i.autoScroller.isEnabled=l.dragScroll;let m=this.hitDragging=new xR(this.dragging,W$);m.useSubjectCenter=r.useEventCenter,m.emitter.on("pointerdown",this.handlePointerDown),m.emitter.on("dragstart",this.handleDragStart),m.emitter.on("hitupdate",this.handleHitUpdate),m.emitter.on("pointerup",this.handlePointerUp),m.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(r,a){let l=this.component.context,i=this.receivingContext;i&&i!==r&&(i===l?i.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:a.affectedEvents,mutatedEvents:im(),isEvent:!0}}):i.dispatch({type:"UNSET_EVENT_DRAG"})),r&&r.dispatch({type:"SET_EVENT_DRAG",state:a})}clearDrag(){let r=this.component.context,{receivingContext:a}=this;a&&a.dispatch({type:"UNSET_EVENT_DRAG"}),r!==a&&r.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}}gA.SELECTOR=".fc-event-draggable, .fc-event-resizable";function Dhe(c,r,a,l){let i=c.dateSpan,m=r.dateSpan,v=i.range.start,C=m.range.start,E={};i.allDay!==m.allDay&&(E.allDay=m.allDay,E.hasEnd=r.context.options.allDayMaintainDuration,m.allDay?v=Ra(a):v=a);let T=$S(v,C,c.context.dateEnv,c.componentId===r.componentId?c.largeUnit:null);T.milliseconds&&(E.allDay=!1);let N={datesDelta:T,standardProps:E};for(let V of l)V(N,c,r);return N}function Ohe(c){let{options:r}=c.context,a=r.eventLongPressDelay;return a==null&&(a=r.longPressDelay),a}class Rhe extends zS{constructor(r){super(r),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=m=>{let{component:v}=this,C=this.querySegEl(m),E=HS(C),T=this.eventRange=E.eventRange;this.dragging.minDistance=v.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(m.origEvent.target)||m.isTouch&&this.component.props.eventSelection!==T.instance.instanceId)},this.handleDragStart=m=>{let{context:v}=this.component,C=this.eventRange;this.relevantEvents=F$(v.getCurrentData().eventStore,this.eventRange.instance.instanceId);let E=this.querySegEl(m);this.draggingSegEl=E,this.draggingSeg=HS(E),v.calendarApi.unselect(),v.emitter.trigger("eventResizeStart",{el:E,event:new fl(v,C.def,C.instance),jsEvent:m.origEvent,view:v.viewApi})},this.handleHitUpdate=(m,v,C)=>{let{context:E}=this.component,T=this.relevantEvents,N=this.hitDragging.initialHit,V=this.eventRange.instance,U=null,z=null,W=!1,K={affectedEvents:T,mutatedEvents:im(),isEvent:!0};m&&(m.componentId===N.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(N,m)||(U=Nhe(N,m,C.subjectEl.classList.contains("fc-event-resizer-start"),V.range))),U&&(z=H$(T,E.getCurrentData().eventUiBases,U,E),K.mutatedEvents=z,Zee(K,m.dateProfile,E)||(W=!0,U=null,z=null,K.mutatedEvents=null)),z?E.dispatch({type:"SET_EVENT_RESIZE",state:K}):E.dispatch({type:"UNSET_EVENT_RESIZE"}),W?v$():y$(),v||(U&&AR(N,m)&&(U=null),this.validMutation=U,this.mutatedRelevantEvents=z)},this.handleDragEnd=m=>{let{context:v}=this.component,C=this.eventRange.def,E=this.eventRange.instance,T=new fl(v,C,E),N=this.relevantEvents,V=this.mutatedRelevantEvents;if(v.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:T,jsEvent:m.origEvent,view:v.viewApi}),this.validMutation){let U=new fl(v,V.defs[C.defId],E?V.instances[E.instanceId]:null);v.dispatch({type:"MERGE_EVENTS",eventStore:V});let z={oldEvent:T,event:U,relatedEvents:K2(V,v,E),revert(){v.dispatch({type:"MERGE_EVENTS",eventStore:N})}};v.emitter.trigger("eventResize",Object.assign(Object.assign({},z),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||ni(0),endDelta:this.validMutation.endDelta||ni(0),jsEvent:m.origEvent,view:v.viewApi})),v.emitter.trigger("eventChange",z)}else v.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:a}=r,l=this.dragging=new hA(r.el);l.pointer.selector=".fc-event-resizer",l.touchScrollAllowed=!1,l.autoScroller.isEnabled=a.context.options.dragScroll;let i=this.hitDragging=new xR(this.dragging,U$(r));i.emitter.on("pointerdown",this.handlePointerDown),i.emitter.on("dragstart",this.handleDragStart),i.emitter.on("hitupdate",this.handleHitUpdate),i.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(r){return td(r.subjectEl,".fc-event")}}function Nhe(c,r,a,l){let i=c.context.dateEnv,m=c.dateSpan.range.start,v=r.dateSpan.range.start,C=$S(m,v,i,c.largeUnit);if(a){if(i.add(l.start,C)<l.end)return{startDelta:C}}else if(i.add(l.end,C)>l.start)return{endDelta:C};return null}class Ihe{constructor(r){this.context=r,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=l=>{l.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=l=>{let i=this.context.options.unselectCancel,m=BJ(l.origEvent);this.matchesCancel=!!td(m,i),this.matchesEvent=!!td(m,gA.SELECTOR)},this.onDocumentPointerUp=l=>{let{context:i}=this,{documentPointer:m}=this,v=i.getCurrentData();if(!m.wasTouchScroll){if(v.dateSelection&&!this.isRecentPointerDateSelect){let C=i.options.unselectAuto;C&&(!C||!this.matchesCancel)&&i.calendarApi.unselect(l)}v.eventSelection&&!this.matchesEvent&&i.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let a=this.documentPointer=new Vte(document);a.shouldIgnoreMove=!0,a.shouldWatchScroll=!1,a.emitter.on("pointerdown",this.onDocumentPointerDown),a.emitter.on("pointerup",this.onDocumentPointerUp),r.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}const Bhe={fixedMirrorParent:qt},Mhe={dateClick:qt,eventDragStart:qt,eventDragStop:qt,eventDrop:qt,eventResizeStart:qt,eventResizeStop:qt,eventResize:qt,drop:qt,eventReceive:qt,eventLeave:qt};tV.dataAttrPrefix="";var Gte=Q1({name:"@fullcalendar/interaction",componentInteractions:[khe,xhe,gA,Rhe],calendarInteractions:[Ihe],elementDraggingImpl:hA,optionRefiners:Bhe,listenerRefiners:Mhe});let Phe=0,Lhe=new Date().toISOString().replace(/T.*$/,"");const Fhe=[{id:$he(),title:"All-day event",start:Lhe}];function $he(){return String(Phe++)}const pA=c=>(f.pushScopeId("data-v-1fa0e0e1"),c=c(),f.popScopeId(),c),Vhe={class:"demo-app"},Hhe={class:"demo-app-main"},zhe={class:"title-line"},Uhe=["title","onClick"],Whe={key:0,style:{width:"90%"}},jhe=pA(()=>f.createElementVNode("span",{class:"to"},"至",-1)),Ghe={key:1,style:{width:"90%"}},Zhe=pA(()=>f.createElementVNode("span",{class:"to"},"至",-1)),qhe={key:2,style:{width:"90%",display:"flex","align-items":"center","justify-content":"space-between"}},Khe={key:0,style:{"margin-left":"2%"}},Yhe=pA(()=>f.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),Xhe={key:1},Qhe=pA(()=>f.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),Jhe={key:0,class:"placeholder"},ege={class:"info"},tge=pA(()=>f.createElementVNode("img",{src:"https://img1.baidu.com/it/u=1960110688,1786190632&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=281",alt:""},null,-1)),nge={class:"dialog-footer"},oge={name:"IkApprovalProcess"},sge=f.defineComponent({...oge,props:{dataList:{type:Array,default:()=>[]},defaultNodeType:{type:Object,default:()=>({})},defaultFieldMap:{type:Object,default:()=>({})},statusWithoutApprover:{type:Object,default:()=>({})}},emits:["delete","success"],setup(c,{emit:r}){const a=r,l=K=>{if(C.selectInfo=K,m(),K.view.type=="dayGridMonth"){let ce=K.end.getTime()-864e5;C.timeType="month",C.form.startDate=To.ikDate.toYMD(K.start),C.form.endDate=To.ikDate.toYMD(new Date(ce))}else K.view.type=="timeGridWeek"?(C.timeType="week",C.form.startDate=To.ikDate.toYMDHM(K.start),C.form.endDate=To.ikDate.toYMDHM(K.end)):K.view.type=="timeGridDay"&&(C.timeType="day",C.form.startDate=To.ikDate.toYMD(K.start),C.form.endDate=To.ikDate.toYMD(K.start),C.form.startTime=To.ikDate.toDateTime(K.start),C.form.endTime=To.ikDate.toDateTime(K.end));K.view.calendar.unselect(),f.nextTick(()=>{C.title="新建日程",C.dialogVisible=!0})},i=(K,Z)=>{C.title="修改日程",C.dialogVisible=!0},m=K=>{fetch("http://192.168.2.45:6002/component/pick/mix",{method:"POST",body:JSON.stringify({parentDepartmentId:K||"",name:""}),headers:{Authorization:"Bearer iking","Content-Type":"application/json"}}).then(q=>{q.json().then(X=>{const{success:Ce,data:st}=X;if(!Ce)return;const{departments:Ne,users:ee,roles:xe,posts:et}=st;C.depList=Ne,C.userList=ee,C.roleList=xe,C.postList=et})}).catch(q=>{console.info("error: ",q)})},v=K=>{C.currentEvents=K},C=f.reactive({allDay:!1,dialogVisible:!1,form:{title:"",type:1,startDate:"",endDate:"",startTime:"",endTime:"",personList:[],location:""},formRef:null,title:"新建日程",timeType:"month",handList:[],isShow:!1,depList:[],userList:[],roleList:[],postList:[],selectInfo:{},calendarOptions:{locale:jQ,plugins:[Rte,$te,Gte],headerToolbar:{left:"prev,next today",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay"},firstDay:1,initialView:"dayGridMonth",initialEvents:Fhe,editable:!0,selectable:!0,selectMirror:!0,dayMaxEvents:!0,weekends:!0,select:l,eventClick:K=>i(),eventsSet:v},currentEvents:[]}),E=()=>{var K;(K=C.formRef)==null||K.resetFields(),C.form={title:"",type:1,startDate:"",endDate:"",startTime:"",endTime:"",personList:[],location:""},C.dialogVisible=!1},T=async()=>{var ce,q,X,Ce;let K=(q=(ce=C.selectInfo)==null?void 0:ce.view)==null?void 0:q.calendar,Z={id:new Date().getTime(),title:C.form.title,start:(X=C.selectInfo)==null?void 0:X.startStr,end:(Ce=C.selectInfo)==null?void 0:Ce.endStr,allDay:C.allDay};await K.addEvent(Z),a("success",Z),E()},N=K=>{Ft.ElMessageBox.confirm(`你确定删除事件'${K.event.title}'?`,"Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(()=>{Ft.ElMessage({type:"success",message:"删除成功"}),K.event.remove(),a("delete",K.event)})},V=K=>{C.handList=K.list,C.form.personList=K.list},U=()=>{C.isShow=!0},z=K=>{m(K==null?void 0:K.elementId)},W=K=>{C.form.personList.splice(K,1),C.handList=C.form.personList};return(K,Z)=>{const ce=f.resolveComponent("el-checkbox");return f.openBlock(),f.createElementBlock("div",Vhe,[f.createElementVNode("div",Hhe,[f.createVNode(f.unref(_te),{class:"demo-app-calendar",options:C.calendarOptions},{eventContent:f.withCtx(q=>[f.createElementVNode("div",zhe,[f.createElementVNode("span",{class:"title",title:q.event.title,onClick:f.withModifiers(X=>i(),["stop"])},f.toDisplayString(q.event.title),9,Uhe),f.createVNode(f.unref(Ft.ElIcon),{size:16,onClick:f.withModifiers(X=>N(q),["stop"])},{default:f.withCtx(()=>[f.createVNode(f.unref(RQ))]),_:2},1032,["onClick"])])]),_:1},8,["options"])]),f.createCommentVNode(" 新建日程 "),f.createVNode(f.unref(Ft.ElDialog),{modelValue:C.dialogVisible,"onUpdate:modelValue":Z[12]||(Z[12]=q=>C.dialogVisible=q),title:C.title,width:"30%",ref:"formRef",onClose:E},{footer:f.withCtx(()=>[f.createElementVNode("span",nge,[f.createVNode(f.unref(Ft.ElButton),{onClick:E},{default:f.withCtx(()=>[f.createTextVNode("取消")]),_:1}),f.createVNode(f.unref(Ft.ElButton),{type:"primary",onClick:T},{default:f.withCtx(()=>[f.createTextVNode("确定")]),_:1})])]),default:f.withCtx(()=>[f.createVNode(f.unref(Ft.ElForm),{model:C.form},{default:f.withCtx(()=>[f.createVNode(f.unref(Ft.ElFormItem),null,{default:f.withCtx(()=>[f.createVNode(f.unref(Ft.ElIcon),{class:"icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(DQ))]),_:1}),f.createVNode(f.unref(Ft.ElInput),{modelValue:C.form.title,"onUpdate:modelValue":Z[0]||(Z[0]=q=>C.form.title=q),placeholder:`添加${C.form.type==1?"会议":"活动"}标题`,style:{width:"70%"},clearable:""},null,8,["modelValue","placeholder"]),f.createVNode(f.unref(Ft.ElSelect),{modelValue:C.form.type,"onUpdate:modelValue":Z[1]||(Z[1]=q=>C.form.type=q),style:{width:"20%"}},{default:f.withCtx(()=>[f.createVNode(f.unref(Ft.ElOption),{label:"会议",value:1}),f.createVNode(f.unref(Ft.ElOption),{label:"活动",value:2})]),_:1},8,["modelValue"])]),_:1}),f.createVNode(f.unref(Ft.ElFormItem),null,{default:f.withCtx(()=>[f.createVNode(f.unref(Ft.ElIcon),{class:"icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(OQ))]),_:1}),C.timeType=="month"?(f.openBlock(),f.createElementBlock("div",Whe,[f.createVNode(f.unref(Ft.ElDatePicker),{modelValue:C.form.startDate,"onUpdate:modelValue":Z[2]||(Z[2]=q=>C.form.startDate=q),type:"date",placeholder:"开始日期",style:{width:"48%"}},null,8,["modelValue"]),jhe,f.createVNode(f.unref(Ft.ElDatePicker),{modelValue:C.form.endDate,"onUpdate:modelValue":Z[3]||(Z[3]=q=>C.form.endDate=q),type:"date",placeholder:"结束日期",style:{width:"48%"}},null,8,["modelValue"])])):f.createCommentVNode("v-if",!0),C.timeType=="week"?(f.openBlock(),f.createElementBlock("div",Ghe,[f.createVNode(f.unref(Ft.ElDatePicker),{modelValue:C.form.startDate,"onUpdate:modelValue":Z[4]||(Z[4]=q=>C.form.startDate=q),type:"datetime",placeholder:"开始日期",style:{width:"48%"},format:"YYYY-MM-DD HH:mm"},null,8,["modelValue"]),Zhe,f.createVNode(f.unref(Ft.ElDatePicker),{modelValue:C.form.endDate,"onUpdate:modelValue":Z[5]||(Z[5]=q=>C.form.endDate=q),type:"datetime",placeholder:"结束日期",style:{width:"48%"},format:"YYYY-MM-DD HH:mm"},null,8,["modelValue"])])):f.createCommentVNode("v-if",!0),C.timeType=="day"?(f.openBlock(),f.createElementBlock("div",qhe,[f.createVNode(f.unref(Ft.ElDatePicker),{modelValue:C.form.startDate,"onUpdate:modelValue":Z[6]||(Z[6]=q=>C.form.startDate=q),type:"date",placeholder:"开始日期",style:f.normalizeStyle({width:C.allDay?"45%":"90%"})},null,8,["modelValue","style"]),C.allDay?(f.openBlock(),f.createElementBlock("div",Xhe,[Qhe,f.createVNode(f.unref(Ft.ElDatePicker),{modelValue:C.form.endDate,"onUpdate:modelValue":Z[9]||(Z[9]=q=>C.form.endDate=q),type:"date",placeholder:"结束日期",style:{width:"90%"}},null,8,["modelValue"])])):(f.openBlock(),f.createElementBlock("div",Khe,[f.createVNode(f.unref(Ft.ElTimePicker),{modelValue:C.form.startTime,"onUpdate:modelValue":Z[7]||(Z[7]=q=>C.form.startTime=q),type:"datetime",placeholder:"开始日期",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"]),Yhe,f.createVNode(f.unref(Ft.ElTimePicker),{modelValue:C.form.endTime,"onUpdate:modelValue":Z[8]||(Z[8]=q=>C.form.endTime=q),type:"datetime",placeholder:"结束日期",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"])])),f.createVNode(ce,{modelValue:C.allDay,"onUpdate:modelValue":Z[10]||(Z[10]=q=>C.allDay=q),label:"全天",style:{"margin-left":"2%"}},null,8,["modelValue"])])):f.createCommentVNode("v-if",!0)]),_:1}),f.createVNode(f.unref(Ft.ElFormItem),null,{default:f.withCtx(()=>[f.createVNode(f.unref(Ft.ElIcon),{class:"icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(uie))]),_:1}),f.createElementVNode("div",{class:"personBlock",onClick:f.withModifiers(U,["stop"])},[C.form.personList.length?(f.openBlock(!0),f.createElementBlock(f.Fragment,{key:1},f.renderList(C.form.personList,(q,X)=>(f.openBlock(),f.createElementBlock("div",{key:X,class:"nameBlock"},[f.createElementVNode("div",ege,[tge,f.createElementVNode("div",null,f.toDisplayString(q.elementName),1)]),f.createVNode(f.unref(Ft.ElIcon),{class:"close",onClick:f.withModifiers(Ce=>W(X),["stop"])},{default:f.withCtx(()=>[f.createVNode(f.unref(WO))]),_:2},1032,["onClick"])]))),128)):(f.openBlock(),f.createElementBlock("span",Jhe,"添加参与人"))])]),_:1}),f.createVNode(f.unref(Ft.ElFormItem),null,{default:f.withCtx(()=>[f.createVNode(f.unref(Ft.ElIcon),{class:"icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(Yre))]),_:1}),f.createVNode(f.unref(Ft.ElInput),{modelValue:C.form.location,"onUpdate:modelValue":Z[11]||(Z[11]=q=>C.form.location=q),placeholder:"添加地点",style:{width:"90%"},clearable:""},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),f.createCommentVNode(" 选人组件 "),f.createVNode(f.unref(yA),{modelValue:C.handList,"onUpdate:modelValue":Z[13]||(Z[13]=q=>C.handList=q),show:C.isShow,"onUpdate:show":Z[14]||(Z[14]=q=>C.isShow=q),onOk:V,multiple:!0,"type-option":{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},"dep-list":C.depList,"user-list":C.userList,"prop-option":{name:"elementName",id:"elementId",type:"elementType",avatar:"avatar"},chooseType:["user"],onHandChild:z},null,8,["modelValue","show","dep-list","user-list"])])}}}),oSe="",rge=Zs(Vs(sge,[["__scopeId","data-v-1fa0e0e1"]])),ige=c=>(f.pushScopeId("data-v-a26cdcaf"),c=c(),f.popScopeId(),c),age={class:"ik-hor-step-content"},lge=[ige(()=>f.createElementVNode("i",{class:"ik-hor-step_line_inner"},null,-1))],cge=["onClick"],uge={class:"ik-hor-step_main"},dge=["id","onClick"],fge=["id","onClick"],mge=f.defineComponent({__name:"IKHorizontalStepBar",props:{spaceNum:{type:String,default:"58px"},active:{type:Number,default:null},activeColor:{type:String,default:""},needClick:{type:Boolean,default:!0},list:{type:Array,default:()=>[]},alignCenter:{type:Boolean,default:!1},propsField:{type:Object,default:()=>({title:"title",description:"description",value:"value"})}},emits:["click","update:active"],setup(c,{emit:r}){const a=c,l=r,i=f.ref(!1),m=f.ref(),v=f.ref(),C=f.ref(!1);f.watch(()=>a.active,K=>{let Z=document.getElementById("stepItemContent"),ce=document.getElementById(`stepItem${K}`),q=document.getElementById("stepItem0");const X=ce&&q?(ce==null?void 0:ce.offsetLeft)-(q==null?void 0:q.offsetLeft):0;Z&&ce&&(Z.scrollLeft=X>(Z==null?void 0:Z.clientWidth)?X-(Z==null?void 0:Z.offsetLeft):0)}),f.watch(()=>a.list,()=>{f.nextTick(()=>{let Z=document.getElementById("stepItemContent"),ce=(Z==null?void 0:Z.scrollWidth)>(Z==null?void 0:Z.clientWidth);i.value=ce,window.addEventListener("resize",K,!0)});const K=()=>{let Z=document.getElementById("stepItemContent"),ce=(Z==null?void 0:Z.scrollWidth)>(Z==null?void 0:Z.clientWidth);i.value=ce}},{deep:!0}),f.onMounted(()=>{f.nextTick(()=>{let Z=document.getElementById("stepItemContent"),ce=(Z==null?void 0:Z.scrollWidth)>(Z==null?void 0:Z.clientWidth);i.value=ce,window.addEventListener("resize",K,!0)});const K=()=>{let Z=document.getElementById("stepItemContent"),ce=(Z==null?void 0:Z.scrollWidth)>(Z==null?void 0:Z.clientWidth);i.value=ce}});const E=(K,Z)=>{if(!a.needClick)return;l("update:active",Z),l("click",K);let ce=document.getElementById("stepItemContent"),q=document.getElementById(`stepItem${Z}`),X=document.getElementById("stepItem0");const Ce=q&&X?(q==null?void 0:q.offsetLeft)-(X==null?void 0:X.offsetLeft):0;ce&&q&&(ce.scrollLeft=Ce>(ce==null?void 0:ce.clientWidth)?Ce-(ce==null?void 0:ce.offsetLeft):0)},T=()=>{let K=document.getElementById("stepItemContent");K&&(K.scrollLeft=K.scrollLeft-20)},N=()=>{let K=document.getElementById("stepItemContent");K&&(K.scrollLeft=K.scrollLeft+20)},V=()=>{clearInterval(v.value);let K=document.getElementById("stepItemContent");C.value=!1,v.value=setInterval(()=>{C.value=!0,K&&(K.scrollLeft=K.scrollLeft-20)},100)},U=()=>{clearInterval(v.value),C.value||T()},z=()=>{clearInterval(m.value);let K=document.getElementById("stepItemContent");C.value=!1,m.value=setInterval(()=>{C.value=!0,K&&(K.scrollLeft=K.scrollLeft+20)},100)},W=()=>{clearInterval(m.value),C.value||N()};return(K,Z)=>{const ce=f.resolveComponent("el-icon");return f.openBlock(),f.createElementBlock("div",age,[i.value?(f.openBlock(),f.createElementBlock("div",{key:0,class:"icon-left",onMousedown:V,onMouseup:U,onClick:T},[f.createVNode(ce,{class:"operation-icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(n$),{size:"26px"})]),_:1})],32)):f.createCommentVNode("v-if",!0),f.createElementVNode("div",{class:"step-item-content",id:"stepItemContent",style:f.normalizeStyle({justifyContent:i.value?"flex-start":"center"})},[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(c.list,(q,X)=>{var Ce;return f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(`${c.alignCenter?"ik-hor-step-item":""} step-item ${X<=c.active?"step-item-active":""}`),style:f.normalizeStyle({width:c.alignCenter?`calc(100%/${(Ce=c.list)==null?void 0:Ce.length})`:""}),key:X},[f.createElementVNode("div",{class:f.normalizeClass(`${c.alignCenter?"ik-hor-step_head":""} `)},[X!==0?(f.openBlock(),f.createElementBlock("div",{key:0,class:f.normalizeClass(`ik-hor-step_line step-border ${X<=c.active?"step-border-greater-than":""}`),style:f.normalizeStyle({width:`${c.spaceNum.indexOf("px")!=-1?c.spaceNum:`${c.spaceNum}px`}`})},lge,6)):f.createCommentVNode("v-if",!0),f.createElementVNode("div",{class:f.normalizeClass(`step-num ${X===c.active?"step-num-active":X<c.active?"step-num-greater-than":""}`),onClick:st=>E(q,X),style:f.normalizeStyle({backgroundColor:X===c.active&&c.activeColor?c.activeColor:"",cursor:q&&q.disabled?"not-allowed":c.needClick?"pointer":"context-menu"})},[f.renderSlot(K.$slots,"icon",{data:{item:q,index:X}},()=>[f.createTextVNode(f.toDisplayString(X+1),1)],!0)],14,cge)],2),f.createElementVNode("div",uge,[f.createElementVNode("div",{id:`stepItem${X}`,class:f.normalizeClass(`step-label ${c.active===X?"step-label-active":X<c.active?"step-label-greater-than":""} step-item-${X}`),style:f.normalizeStyle({color:X===c.active&&c.activeColor?c.activeColor:"",cursor:q&&q.disabled?"not-allowed":c.needClick?"pointer":"context-menu"}),onClick:st=>E(q,X)},f.toDisplayString(q[c.propsField.title]),15,dge),f.createElementVNode("div",{id:`stepItemDesc${X}`,class:f.normalizeClass(`step-description step-label ${c.active===X?"step-label-active":X<c.active?"step-label-greater-than":""} step-item-${X}`),style:f.normalizeStyle({color:X===c.active&&c.activeColor?c.activeColor:"",cursor:q&&q.disabled?"not-allowed":c.needClick?"pointer":"context-menu"}),onClick:st=>E(q,X)},f.toDisplayString(q[c.propsField.description]),15,fge)])],6)}),128))],4),i.value?(f.openBlock(),f.createElementBlock("div",{key:1,class:"icon-right",onMousedown:z,onMouseup:W,onClick:N},[f.createVNode(ce,{class:"operation-icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(o$))]),_:1})],32)):f.createCommentVNode("v-if",!0)])}}}),iSe="",hge=Zs(Vs(mge,[["__scopeId","data-v-a26cdcaf"]])),gge=["onClick"],pge={class:"fileName simple"},vge=["onClick"],yge={class:"text"},bge={class:"fileName"},Cge={class:"size"},_ge=f.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:()=>({})},jwtToken:{type:String,default:""},simple:{type:Boolean,default:!1}},emits:["handPreview"],setup(c,{emit:r}){const a=c,{cLoadUrl:l,cOnlyofficeConfig:i,cOnlyofficePreviewType:m}=$2(a),v=r,C=f.computed(()=>({name:"name",url:"url",suffix:"suffix",size:"size",...a.field})),E=f.ref({}),T=f.ref(!1),N=W=>{var K,Z;E.value={...W,name:W.name,url:Yv(l.value,(W==null?void 0:W.url)||((Z=(K=W==null?void 0:W.response)==null?void 0:K.data)==null?void 0:Z.id)||(W==null?void 0:W.id))},a.isOnlyOfficePreview&&(T.value=!0),v("handPreview",E.value)},V=W=>{To.ikFile.downloadFile(Yv(l.value,W[C.value.url]||W.attachmentId||W.id),W[C.value.name]||W.attachmentName)},U=f.computed(()=>To.paramType.isNumber(a.width)?`${a.width}px`:a.width),z=f.computed(()=>a.list.map(W=>{var Z;const K=W[C.value.name]||W.attachmentName;return{...W,name:K,size:W[C.value.size]||(W==null?void 0:W.fileSize)||(W==null?void 0:W.attachmentSize),suffix:W[C.value.suffix]||(W==null?void 0:W.attachmentSuffix)||((Z=K.split("."))==null?void 0:Z.at(-1))}}));return(W,K)=>{var ce,q,X;const Z=f.resolveComponent("tmplate");return f.openBlock(),f.createElementBlock(f.Fragment,null,[(ce=c.list)!=null&&ce.length?(f.openBlock(),f.createElementBlock(f.Fragment,{key:0},[c.simple?(f.openBlock(!0),f.createElementBlock(f.Fragment,{key:0},f.renderList(z.value,(Ce,st)=>(f.openBlock(),f.createElementBlock("div",{class:"iking-privew-annex simple",onClick:Ne=>N(Ce),style:f.normalizeStyle({width:U.value})},[f.createElementVNode("div",pge,f.toDisplayString(Ce.name),1),f.createElementVNode("div",{class:f.normalizeClass(["flex flex-center",{"hover-show":c.iconHoverShow}])},[f.createVNode(f.unref(cr),{name:"iksvg_daochu",onClick:f.withModifiers(Ne=>V(Ce),["stop"]),size:20,active:""},null,8,["onClick"]),f.unref(m).includes(Ce.suffix)?(f.openBlock(),f.createBlock(f.unref(cr),{key:0,name:"iksvg_yulan",size:20,active:""})):f.createCommentVNode("v-if",!0),f.renderSlot(W.$slots,"operation",{data:{...Ce,findex:st}})],2)],12,gge))),256)):(f.openBlock(),f.createBlock(Z,{key:1},{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(z.value,(Ce,st)=>{var Ne;return f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["iking-privew-annex",{"is-bg":c.showBg}]),key:st,style:f.normalizeStyle({marginBottom:st==((Ne=c.list)==null?void 0:Ne.length)-1?"0":"10px",width:U.value})},[f.createElementVNode("div",{class:"file-card",onClick:ee=>N(Ce)},[f.createVNode(f.unref(UO),{file:Ce,style:f.normalizeStyle({height:`${c.iconSize}px`}),class:"ikui-w-auto",fields:C.value},null,8,["file","style","fields"]),f.createElementVNode("div",yge,[f.createElementVNode("div",bge,f.toDisplayString(Ce.name),1),f.createElementVNode("div",Cge,f.toDisplayString(f.unref(Bie)(Ce.size)),1)]),f.createElementVNode("div",{class:f.normalizeClass(["flex flex-center",{"hover-show":c.iconHoverShow}])},[f.createVNode(f.unref(cr),{name:"iksvg_daochu",onClick:f.withModifiers(ee=>V(Ce),["stop"]),bg:c.showBg,size:c.showBg?"default":20,title:"下载"},null,8,["onClick","bg","size"]),f.unref(m).includes(Ce.suffix)?(f.openBlock(),f.createBlock(f.unref(cr),{key:0,name:"iksvg_yulan",bg:c.showBg,size:c.showBg?"default":20,title:"预览"},null,8,["bg","size"])):f.createCommentVNode("v-if",!0),f.renderSlot(W.$slots,"operation",{data:{...Ce,findex:st}})],2)],8,vge)],6)}),128))]),_:3}))],64)):f.createCommentVNode("v-if",!0),f.createVNode(f.unref(vV),{show:T.value,"onUpdate:show":K[0]||(K[0]=Ce=>T.value=Ce),loadUrl:f.unref(l),file:E.value,onlyofficeServer:((q=f.unref(i))==null?void 0:q.serverUrl)||c.onlyofficeServer,onlyOfficeConfig:f.unref(i),onlyOfficeAccept:((X=f.unref(i))==null?void 0:X.accept)||c.onlyOfficeAccept},null,8,["show","loadUrl","file","onlyofficeServer","onlyOfficeConfig","onlyOfficeAccept"])],64)}}}),lSe="",TR=Zs(_ge),wge=f.defineComponent({__name:"IkPreviewFileDialog",props:f.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:["update:show"],setup(c){const r=c,a=f.useModel(c,"show"),l=f.computed(()=>({name:"name",url:"url",suffix:"suffix",size:"fileSize",...r.field})),i=f.ref(null),m=f.ref(null),v=f.reactive({image:!1,office:!1,video:!1}),C=T=>{var N,V,U,z,W,K,Z;try{const ce=((N=T==null?void 0:T.response)==null?void 0:N.data)||T,q=ce[l.value.url]||(ce==null?void 0:ce.id)||ce.attachmentId,X=(V=ce[l.value.suffix]||ce.attachmentSuffix)==null?void 0:V.toLowerCase(),Ce=ce[l.value.name]||(ce==null?void 0:ce.attachmentName)||(ce==null?void 0:ce.originName);if(m.value={...T,name:T[l.value.name],url:Yv(r.loadUrl,q)},T&&Pc(T,l.value)==="image"){v.image=!0;return}else if(T&&Pc(T,l.value)==="video"){v.video=!0;return}else if((((U=r.onlyOfficeConfig)==null?void 0:U.accept)||r.onlyOfficeAccept).includes(X)){v.office=!0,i.value={...r.onlyOfficeConfig,editorConfig:{...((z=r.onlyOfficeConfig)==null?void 0:z.editorConfig)||{},customization:{...((K=(W=r.onlyOfficeConfig)==null?void 0:W.editorConfig)==null?void 0:K.customization)||{},review:{reviewDisplay:"final"}}},document:{key:To.buildUUID(),title:Ce,url:Yv(r.loadUrl,q),fileType:X,...((Z=r.onlyOfficeConfig)==null?void 0:Z.document)||{}},documentType:ire(X)};return}}catch(ce){console.info("预览错误: ",ce)}};f.watch([a,r.file],([T,N])=>{T&&f.nextTick(()=>{C(r.file)})});const E=()=>{a.value=!1,v.office=!1,v.image=!1,v.video=!1,m.value=null};return(T,N)=>{var V,U,z;return a.value?(f.openBlock(),f.createElementBlock(f.Fragment,{key:0},[(V=m.value)!=null&&V.url&&v.image?(f.openBlock(),f.createBlock(f.unref(RV),{key:0,onClose:N[0]||(N[0]=W=>E()),ref:"previewImgRef","url-list":[(U=m.value)==null?void 0:U.url],teleported:"","z-index":9999},null,8,["url-list"])):f.createCommentVNode("v-if",!0),f.createCommentVNode(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),f.createCommentVNode(" 文档类 "),f.createVNode(f.unref(Poe),{modelValue:v.video,"onUpdate:modelValue":N[1]||(N[1]=W=>v.video=W),url:(z=m.value)==null?void 0:z.url},null,8,["modelValue","url"]),f.createVNode(f.unref(nne),{modelValue:v.office,"onUpdate:modelValue":N[2]||(N[2]=W=>v.office=W),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:E,"modal-class":"ik-only-preview-dialog"},{default:f.withCtx(()=>{var W;return[f.createVNode(f.unref(wne),{"config-options":i.value,"document-server-url":((W=c.onlyOfficeConfig)==null?void 0:W.serverUrl)||c.onlyofficeServer},null,8,["config-options","document-server-url"])]}),_:1},8,["modelValue"])],64)):f.createCommentVNode("v-if",!0)}}}),cSe="",vV=Zs(wge),Sge="data:image/webp;base64,UklGRnoEAABXRUJQVlA4WAoAAAAwAAAALwAALwAASUNDUMgBAAAAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADZBTFBImAAAAA2AYm3bsuhFm7u72wZoTrbGIcoKaKyAROJQbQmW2IVb/WkW3ZmPd3ymRMQEwJfV56QRo5pHErkUkFdQWRJpeGW6SoL9EvaWxAdbAeiVd5gyAK5NAdOtv4uNfsT21TUukBVjgFubBOQS+Ip7G/k2LpatkF2hAuBI5siAdsL2j3DHQrJ7NKDbUIyOj3bhqADBsgNPUqUlgncLVlA4IOwBAABwDQCdASowADAAPm0yk0ckIyGhJzgMkIANiWwArDM9tzexcZ3vwYZdKHIB749Ap5gP1E/YD34/QB6AH+A9F//S+w1z2/sz/5DzdDABM7ldHg1iMkeWX8LH9T1VzicAWGJgnNq4e/5P/NObJOBUhFC8dPnhmAD+9wGzP9Zfeg5ENi90xn4awZvrlCLnfwvZX//s4u6n2Pa2TF/r8wh0GtdNNJIBMRbrMaCBwyl6z86DqQgvpixbIdOVbwZFf/7KjC+uzJ5nNRyJ1Rpab8pIf2m1+SBOfX9w7EFXUErK8NSCsePMPazMXKH5y9Wl+nfiSrmsv079Fk6NkDF3Dxr+C+Rp4UdG/f3kP8PZfd/FyRupWURiDOrAjLamuF4OPo2BylwD7ulmdgDn4BEMXuvpYCACy4yCVjgsOzqToG2rSfJOtxy6Hh1/B2gu7X1MdJpHsdHdUrlRzTLKyV3wZG5a64SKKB2/QGk8IRZT0veUdDeo579/WyTU3ujQZeKNBS9ANlv1muyN9Kf5bm1f3UoPm/KnDkqf/1f2jf6aQJ7IYNod25fVfhRX+l1u9qBzs/bVezF7ZgC2LOuuJl1Tvwgeujpg9Uc/m0A9X878DzEkgxP/sPGviOfCElM1J/Kr3TTCwCkfW+K3oZuMB7HAAAA=",Ege=c=>(f.pushScopeId("data-v-192d3070"),c=c(),f.popScopeId(),c),kge={class:"ik-flie-list"},xge={class:"name"},Age={key:1},Tge=["src"],Dge={class:"file-icon"},Oge={class:"file-name-loading"},Rge={class:"file-name"},Nge={key:0},Ige={key:0,class:"file-size"},Bge={class:"name"},Mge={class:"file-name-loading"},Pge={class:"file-name"},Lge={class:"file-size"},Fge={class:"operate-btn"},$ge={class:"card"},Vge={class:"title"},Hge=Ege(()=>f.createElementVNode("img",{src:Sge,class:"w-[48px] h-[48px]"},null,-1)),zge={class:"ik-flie-list"},Uge={class:"name"},Wge={key:1},jge=["src"],Gge={class:"file-icon"},Zge={class:"file-name-loading"},qge={class:"file-name"},Kge={key:0},Yge={key:0,class:"file-size"},Xge={key:0},Qge=f.defineComponent({__name:"index",props:f.mergeModels({showIcon:{type:Boolean,default:!0},title:{type:String,default:"上传文件"},action:{type:String,default:""},type:{type:String,default:"button"},headers:{type:Object,default:()=>({})},loadUrl:{type:String,default:""},limit:{type:Number,default:1},size:{type:Number,default:50},accept:{type:String,default:"*"},multiple:{type:Boolean,default:!0},tip:{type:Boolean,default:!1},tipText:{type:String,default:""},limitText:{type:String,default:""},defaultFileds:{type:Object,default:()=>({name:"name",url:"url",suffix:"suffix",size:"fileSize"})},preview:{type:Boolean,default:!1},customIconData:{type:Object,default:()=>({})},customIconFields:{type:Object,default:()=>({type:"type",icon:"icon"})},disabled:{type:Boolean,default:!1},plain:{type:Boolean,default:!1},imageMode:{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:()=>({})},jwtToken:{type:String,default:""},trueDelete:{type:Boolean,default:!1}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:f.mergeModels(["delete","exceed","handPreview","success","error","outSize"],["update:modelValue"]),setup(c,{emit:r}){const a=c,l=r,i=f.useModel(c,"modelValue"),v={...{name:"name",url:"url",suffix:"suffix",size:"size"},...a.defaultFileds},{cLoadUrl:C,cUploadUrl:E,cOnlyofficeConfig:T,cOnlyofficePreviewType:N}=$2(a),V=f.computed(()=>a.size),U=f.ref(null),z=f.ref([]),W=f.ref({}),K=f.ref(!1),Z=F=>{const At=F.size/1024/1024;return At<V.value?!0:(l("outSize"),Ft.ElMessage({message:`上传文件大小(${At.toFixed(4)}MB)超出允许最大值(${a.size}MB),请重新选择`,type:"warning",showClose:!0,duration:5e3}),!1)},ce=f.computed(()=>{const{accept:F}=a;return F==="*"?"*":`${F.toLowerCase()},${F.toUpperCase()}`}),q=(F,At)=>{var Lt,We;if(F.size/1024/1024<V.value||f.nextTick(()=>{i.value.pop()}),a.accept!=="*"){const ut=(Lt=ce.value)==null?void 0:Lt.split(",");!ut.includes((We=F==null?void 0:F.raw)==null?void 0:We.type)&&!ut.includes(`.${F.name.split(".").pop()}`)&&(Ft.ElMessage({message:`不允许的上传文件格式(${F.name}),请重新选择`,type:"warning",showClose:!0,duration:5e3}),f.nextTick(()=>{i.value.pop()}))}},X=()=>!1,Ce=(F,At)=>{var Je,Et;F.status="ready",At!==void 0&&z.value.splice(At,1),(Je=U.value)==null||Je.handleStart(F.raw),(Et=U.value)==null||Et.submit()},st=(F,At)=>{var Je;F.splice(a.limit===1?1:a.limit),F.forEach(Et=>{var Lt;(Lt=U.value)==null||Lt.handleStart(Et)}),(Je=U.value)==null||Je.submit(),Ft.ElMessage({message:(a==null?void 0:a.limitText)||`最大可上传${a.limit}个文件,已忽略超出文件`,type:"warning",showClose:!0,duration:5e3}),l("exceed",F)},Ne=(F,At,Je)=>{F.success?l("success",F,At,Je):(l("error",F,At,Je),be(At),z.value.push(At))},ee=(F,At,Je)=>{z.value.push(At),l("error",F,At,Je)},xe=F=>{var At,Je;W.value={...F,name:F[v.name],url:Yv(C.value,F[v.url]||((Je=(At=F==null?void 0:F.response)==null?void 0:At.data)==null?void 0:Je.id))},a.isOnlyOfficePreview&&(K.value=!0),l("handPreview",W.value)},et=F=>{To.ikFile.downloadByOnlineUrl(F[v.url],F[v.name])},tt=(F,At=!1)=>{var Je;(Je=U.value)==null||Je.abort(F)},je={Authorization:"Bearer iking","X-Tenant":"sys","Content-Type":"application/x-www-form-urlencoded"},be=F=>{var At,Je,Et,Lt,We;try{F.status!=="success"&&tt(F),(At=U.value)==null||At.handleRemove(F),i.value=i.value.filter(ut=>ut.uid!==F.uid),l("delete",F),a.trueDelete&&e$.post(E.value.replace("/oss/upload","/oss/delete"),{fileUrl:((Et=(Je=F==null?void 0:F.response)==null?void 0:Je.data)==null?void 0:Et.id)||((Lt=F==null?void 0:F.data)==null?void 0:Lt.id)||(F==null?void 0:F.id)||F[v.url]},{headers:je})}catch(ut){(We=U.value)==null||We.handleRemove(F),i.value=i.value.filter(An=>An.uid!==F.uid),l("delete",F),console.error(ut)}},xn=(F,At)=>{z.value.splice(At,1)},dn=f.computed(()=>i.value.length>=a.limit||a.disabled),zt=F=>{var Je,Et,Lt;const At=((Et=(Je=F==null?void 0:F.response)==null?void 0:Je.data)==null?void 0:Et[v.suffix])||((Lt=F==null?void 0:F.data)==null?void 0:Lt[v.suffix])||(F==null?void 0:F[v.suffix]);return N.includes(At)};return(F,At)=>{var Je;return f.openBlock(),f.createElementBlock(f.Fragment,null,[c.preview?f.createCommentVNode("v-if",!0):(f.openBlock(),f.createElementBlock(f.Fragment,{key:0},[c.type==="button"?(f.openBlock(),f.createBlock(f.unref(Ft.ElUpload),f.mergeProps({key:0,class:"ik-file-upload"},F.$attrs,{accept:c.accept,action:f.unref(E),"file-list":i.value,"onUpdate:fileList":At[0]||(At[0]=Et=>i.value=Et),ref_key:"refUpload",ref:U,"auto-upload":!0,"before-upload":Z,"before-remove":X,"on-exceed":st,"on-change":q,multiple:c.multiple,headers:c.headers,limit:c.limit,"on-success":Ne,"on-error":ee}),{trigger:f.withCtx(()=>[F.$slots.trigger?f.renderSlot(F.$slots,"trigger",{key:0},void 0,!0):(f.openBlock(),f.createBlock(f.unref(Ft.ElButton),{key:1,disabled:dn.value},f.createSlots({default:f.withCtx(()=>[f.createTextVNode(" "+f.toDisplayString(c.title),1)]),_:2},[c.showIcon?{name:"icon",fn:f.withCtx(()=>[f.createVNode(f.unref(cr),{name:"iksvg_daoru",disabled:dn.value},null,8,["disabled"])]),key:"0"}:void 0]),1032,["disabled"]))]),file:f.withCtx(({file:Et})=>[f.createElementVNode("div",kge,[f.createElementVNode("div",xge,[!F.$slots.fileIcon&&(!c.customIconData[f.unref(Pc)(Et,v)]||!c.customIconData[f.unref(Pc)(Et,v)][c.customIconFields.icon])?(f.openBlock(),f.createBlock(f.unref(UO),{key:0,type:f.unref(Pc)(Et,v)},null,8,["type"])):!F.$slots.fileIcon&&c.customIconData[f.unref(Pc)(Et,v)]&&c.customIconData[f.unref(Pc)(Et,v)][c.customIconFields.icon]?(f.openBlock(),f.createElementBlock("div",Age,[c.customIconData[f.unref(Pc)(Et,v)][c.customIconFields.type]==="img"?(f.openBlock(),f.createElementBlock("img",{key:0,src:c.customIconData[f.unref(Pc)(Et,v)][c.customIconFields.icon],alt:"",class:"file-img-icon"},null,8,Tge)):(f.openBlock(),f.createElementBlock("span",{key:1,class:f.normalizeClass([c.customIconData[f.unref(Pc)(Et,v)][c.customIconFields.icon],"file-icon-size"])},null,2))])):f.createCommentVNode("v-if",!0),f.createElementVNode("div",Dge,[f.renderSlot(F.$slots,"fileIcon",{file:Et},void 0,!0)]),f.createElementVNode("div",Oge,[f.createElementVNode("p",Rge,[f.createTextVNode(f.toDisplayString(Et[v.name]||Et.name)+" ",1),Et.percentage&&Et.status==="uploading"?(f.openBlock(),f.createElementBlock("span",Nge,"("+f.toDisplayString(Et.percentage)+"%)",1)):f.createCommentVNode("v-if",!0)]),Et.status==="success"?(f.openBlock(),f.createElementBlock("p",Ige,f.toDisplayString(f.unref(s$)((Et[v.size]||Et.size)/1024/1024))+"MB ",1)):f.createCommentVNode("v-if",!0),Et.percentage&&Et.status==="uploading"?(f.openBlock(),f.createBlock(f.unref(Ft.ElProgress),{key:1,"text-inside":"",percentage:Et.percentage,color:"var(--el-color-primary)","show-text":!1},null,8,["percentage"])):f.createCommentVNode("v-if",!0)])]),f.createElementVNode("div",null,[Et.status==="success"?(f.openBlock(),f.createElementBlock(f.Fragment,{key:0},[zt(Et)?(f.openBlock(),f.createBlock(f.unref(cr),{key:0,onClick:Lt=>xe(Et),name:"iksvg_yulan",title:"预览",bg:"",size:"default"},null,8,["onClick"])):f.createCommentVNode("v-if",!0),f.createVNode(f.unref(cr),{onClick:f.withModifiers(Lt=>be(Et),["stop"]),error:"",name:"iksvg_shanchu",title:"删除",bg:"",size:"default"},null,8,["onClick"])],64)):(f.openBlock(),f.createBlock(f.unref(cr),{key:1,onClick:f.withModifiers(Lt=>be(Et),["stop"]),error:"",name:"iksvg_guanbi",size:"default",bg:"",title:"取消上传"},null,8,["onClick"]))])])]),default:f.withCtx(()=>{var Et;return[!c.preview&&c.tip?(f.openBlock(),f.createBlock(f.unref(Ft.ElTooltip),{key:0,effect:"dark",content:a.tipText||"","popper-class":"_ik_web_ui_file-help-tooltip"},{default:f.withCtx(()=>[f.createVNode(f.unref(Ft.ElIcon),{size:23,class:"_ik_web_ui_file_help_icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(MQ))]),_:1})]),_:1},8,["content"])):f.createCommentVNode("v-if",!0),(Et=z.value)!=null&&Et.length?(f.openBlock(!0),f.createElementBlock(f.Fragment,{key:1},f.renderList(z.value,(Lt,We)=>(f.openBlock(),f.createElementBlock("div",{class:"ik-error-flie-list",key:Lt.uid},[f.createElementVNode("div",Bge,[f.createVNode(f.unref(Ft.ElIcon),{size:32,class:"info",style:{"vertical-align":"middle"}},{default:f.withCtx(()=>[f.createVNode(f.unref(hie))]),_:1}),f.createElementVNode("div",Mge,[f.createElementVNode("p",Pge,f.toDisplayString(Lt[v.name]||Lt.name),1),f.createElementVNode("p",Lge,f.toDisplayString(f.unref(s$)(Lt.size/1024/1024))+"MB ",1)])]),f.createElementVNode("div",Fge,[f.createVNode(f.unref(cr),{onClick:f.withModifiers(ut=>Ce(Lt,We),["stop"]),name:"iksvg_zhongzhi",title:"重新上传",bg:"",size:"default"},null,8,["onClick"]),f.createVNode(f.unref(cr),{onClick:f.withModifiers(ut=>xn(Lt,We),["stop"]),error:"",name:"iksvg_shanchu",title:"删除",bg:"",size:"default"},null,8,["onClick"])])]))),128)):f.createCommentVNode("v-if",!0)]}),_:3},16,["accept","action","file-list","multiple","headers","limit"])):(f.openBlock(),f.createBlock(f.unref(Ft.ElUpload),f.mergeProps({key:1,"file-list":i.value,"onUpdate:fileList":At[1]||(At[1]=Et=>i.value=Et),class:["ik-file-pload-card",{plain:c.plain}],"auto-upload":!0},F.$attrs,{accept:c.accept,action:f.unref(E),disabled:dn.value,ref_key:"refUpload",ref:U,"before-upload":Z,"before-remove":X,"on-exceed":st,multiple:c.multiple,headers:c.headers,limit:c.limit,"on-success":Ne,"on-error":ee,"on-change":q}),{file:f.withCtx(({file:Et})=>[f.createElementVNode("div",zge,[f.createElementVNode("div",Uge,[!F.$slots.fileIcon&&(!c.customIconData[f.unref(Pc)(Et,v)]||!c.customIconData[f.unref(Pc)(Et,v)][c.customIconFields.icon])?(f.openBlock(),f.createBlock(f.unref(UO),{key:0,type:f.unref(Pc)(Et,v)},null,8,["type"])):!F.$slots.fileIcon&&c.customIconData[f.unref(Pc)(Et,v)]&&c.customIconData[f.unref(Pc)(Et,v)][c.customIconFields.icon]?(f.openBlock(),f.createElementBlock("div",Wge,[c.customIconData[f.unref(Pc)(Et,v)][c.customIconFields.type]==="img"?(f.openBlock(),f.createElementBlock("img",{key:0,src:c.customIconData[f.unref(Pc)(Et,v)][c.customIconFields.icon],alt:"",class:"file-img-icon"},null,8,jge)):(f.openBlock(),f.createElementBlock("span",{key:1,class:f.normalizeClass([c.customIconData[f.unref(Pc)(Et,v)][c.customIconFields.icon],"file-icon-size"])},null,2))])):f.createCommentVNode("v-if",!0),f.createElementVNode("div",Gge,[f.renderSlot(F.$slots,"fileIcon",{file:Et},void 0,!0)]),f.createElementVNode("div",Zge,[f.createElementVNode("p",qge,[f.createTextVNode(f.toDisplayString(Et[v.name]||Et.name)+" ",1),Et.percentage&&Et.status==="uploading"?(f.openBlock(),f.createElementBlock("span",Kge,"("+f.toDisplayString(Et.percentage)+"%)",1)):f.createCommentVNode("v-if",!0)]),Et.status==="success"?(f.openBlock(),f.createElementBlock("p",Yge,f.toDisplayString(f.unref(s$)((Et[v.size]||Et.size)/1024/1024))+"MB ",1)):f.createCommentVNode("v-if",!0),Et.percentage&&Et.status==="uploading"?(f.openBlock(),f.createBlock(f.unref(Ft.ElProgress),{key:1,"text-inside":"",percentage:Et.percentage,color:"var(--el-color-primary)","show-text":!1},null,8,["percentage"])):f.createCommentVNode("v-if",!0)])]),c.preview?(f.openBlock(),f.createElementBlock(f.Fragment,{key:1},[(c.preview||Et.percentage===100)&&zt(Et)?(f.openBlock(),f.createBlock(f.unref(Ft.ElIcon),{key:0,title:"预览",class:"primary"},{default:f.withCtx(()=>[f.createVNode(f.unref(fie),{onClick:Lt=>xe(Et)},null,8,["onClick"])]),_:2},1024)):f.createCommentVNode("v-if",!0),f.createVNode(f.unref(Ft.ElIcon),{title:"下载",class:"primary"},{default:f.withCtx(()=>[f.createVNode(f.unref(IQ),{onClick:Lt=>et(Et)},null,8,["onClick"])]),_:2},1024)],64)):(f.openBlock(),f.createElementBlock("div",Xge,[Et.status==="success"?(f.openBlock(),f.createElementBlock(f.Fragment,{key:0},[zt(Et)?(f.openBlock(),f.createBlock(f.unref(cr),{key:0,onClick:Lt=>xe(Et),name:"iksvg_yulan",title:"预览",bg:"",size:"default"},null,8,["onClick"])):f.createCommentVNode("v-if",!0),f.createVNode(f.unref(cr),{onClick:Lt=>be(Et),error:"",name:"iksvg_shanchu",title:"删除",bg:"",size:"default"},null,8,["onClick"])],64)):(f.openBlock(),f.createBlock(f.unref(cr),{key:1,onClick:Lt=>be(Et),error:"",name:"iksvg_guanbi",size:"default",bg:"",title:"取消上传"},null,8,["onClick"]))]))])]),default:f.withCtx(()=>[f.createElementVNode("div",$ge,[f.createElementVNode("div",Vge,[c.imageMode?f.renderSlot(F.$slots,"image",{key:0},()=>[Hge],!0):c.showIcon?(f.openBlock(),f.createBlock(f.unref(cr),{key:1,name:"iksvg_img_shangchuanhetongfujianbeifen",type:"primary",bg:"",size:40})):f.createCommentVNode("v-if",!0),f.createElementVNode("span",null,[f.createTextVNode(f.toDisplayString(c.title)+" ",1),!c.preview&&c.tip?(f.openBlock(),f.createBlock(f.unref(Ft.ElTooltip),{key:0,effect:"dark",content:a.tipText||"","popper-class":"_ik_web_ui_file-help-tooltip"},{default:f.withCtx(()=>[f.createVNode(f.unref(Ft.ElIcon),{size:23,class:"_ik_web_ui_file_help_icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(MQ))]),_:1})]),_:1},8,["content"])):f.createCommentVNode("v-if",!0)])]),f.createVNode(f.unref(cr),{name:"iksvg_daoru",bg:"",size:24,width:40,padding:"0"})])]),_:3},16,["file-list","class","accept","action","disabled","multiple","headers","limit"]))],64)),f.createVNode(f.unref(vV),{show:K.value,"onUpdate:show":At[2]||(At[2]=Et=>K.value=Et),loadUrl:f.unref(C),file:W.value,onlyofficeServer:((Je=f.unref(T))==null?void 0:Je.serverUrl)||c.onlyofficeServer,onlyOfficeConfig:f.unref(T)},null,8,["show","loadUrl","file","onlyofficeServer","onlyOfficeConfig"])],64)}}}),uSe="",dSe="",Jge=Zs(Vs(Qge,[["__scopeId","data-v-192d3070"]])),epe={},tpe={t:"1686214149488",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8490",width:"200",height:"200"},npe=[f.createElementVNode("path",{d:"M369.569592 512.011256c0-14.328333-11.010775-25.945929-24.591071-25.945929L86.980515 486.065328c-13.580297 0-24.591071 11.618619-24.591071 25.945929 0 14.33038 11.010775 25.947975 24.591071 25.947975l257.998005 0C358.55984 537.959232 369.569592 526.341636 369.569592 512.011256z","p-id":"8491"},null,-1),f.createElementVNode("path",{d:"M937.019485 486.064304 679.020456 486.064304c-13.580297 0-24.591071 11.618619-24.591071 25.945929 0 14.33038 11.010775 25.947975 24.591071 25.947975l257.999029 0c13.580297 0 24.590048-11.618619 24.590048-25.947975C961.609533 497.682923 950.598758 486.064304 937.019485 486.064304z","p-id":"8492"},null,-1),f.createElementVNode("path",{d:"M512.011768 62.389956c-13.580297 0-24.590048 11.618619-24.590048 25.945929l0 257.170151c0 14.329357 11.010775 25.946952 24.590048 25.946952s24.591071-11.618619 24.591071-25.946952L536.602839 88.335884C536.602839 74.008574 525.591041 62.389956 512.011768 62.389956z","p-id":"8493"},null,-1),f.createElementVNode("path",{d:"M512.011768 652.544967c-13.580297 0-24.590048 11.618619-24.590048 25.946952l0 257.169127c0 14.33038 11.010775 25.947975 24.590048 25.947975s24.591071-11.618619 24.591071-25.947975L536.602839 678.491918C536.602839 664.162562 525.591041 652.544967 512.011768 652.544967z","p-id":"8494"},null,-1),f.createElementVNode("path",{d:"M377.001865 413.125085c4.744048 4.737908 10.818393 7.082302 16.882506 7.082302 6.519484 0 13.039991-2.724041 17.879206-8.134261 9.317203-10.414187 8.885368-26.834158-0.9967-36.678364L228.341057 193.559391c-9.832949-9.830903-25.406646-9.388834-34.760688 1.050935-9.317203 10.414187-8.885368 26.834158 0.9967 36.678364L377.001865 413.125085z","p-id":"8495"},null,-1),f.createElementVNode("path",{d:"M646.997112 610.873892c-9.846252-9.831926-25.419949-9.388834-34.761712 1.051959-9.317203 10.414187-8.885368 26.834158 0.997724 36.678364l182.41354 181.834348c4.743024 4.738931 10.818393 7.083326 16.881482 7.083326 6.520507 0 13.039991-2.723018 17.879206-8.134261 9.317203-10.41521 8.886391-26.834158-0.9967-36.678364L646.997112 610.873892z","p-id":"8496"},null,-1),f.createElementVNode("path",{d:"M630.114606 420.207387c6.064113 0 12.139481-2.344395 16.882506-7.082302l182.425819-181.836395c9.882068-9.844206 10.313903-26.264177 0.9967-36.678364-9.341762-10.43977-24.915459-10.882861-34.760688-1.050935L613.233124 375.394762c-9.882068 9.844206-10.314926 26.264177-0.997724 36.678364C617.074615 417.483346 623.595123 420.207387 630.114606 420.207387z","p-id":"8497"},null,-1),f.createElementVNode("path",{d:"M377.025401 610.873892 194.600605 792.710286c-9.881045 9.844206-10.313903 26.263154-0.9967 36.678364 4.839215 5.411243 11.358699 8.134261 17.879206 8.134261 6.064113 0 12.138458-2.344395 16.881482-7.083326l182.425819-181.834348c9.881045-9.844206 10.313903-26.264177 0.9967-36.678364C402.469909 601.485057 386.872676 601.041966 377.025401 610.873892z","p-id":"8498"},null,-1)];function ope(c,r){return f.openBlock(),f.createElementBlock("svg",tpe,npe)}const spe=Vs(epe,[["render",ope]]),Zte=c=>(f.pushScopeId("data-v-95e3d8e0"),c=c(),f.popScopeId(),c),rpe={key:1,class:"upload-btn"},ipe={class:"tip"},ape={class:"loading-statu"},lpe={class:"operate-btn"},cpe={key:0},upe={class:"el-upload-list el-upload-list--picture-card"},dpe=["onClick"],fpe=Zte(()=>f.createElementVNode("span",{class:"error"},"上传错误",-1)),mpe=Zte(()=>f.createElementVNode("p",null,"点击重新上传",-1)),hpe=["src"],gpe={class:"demo-image__preview"},ppe=f.defineComponent({__name:"index",props:f.mergeModels({title:{type:String,default:"上传图片"},loadUrl:{type:String,default:""},action:{type:String,default:""},headers:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},limit:{type:Number,default:50},size:{type:Number,default:50},accept:{type:String,default:"image/*"},fit:{type:String,default:"contain"},preview:{type:Boolean,default:!1},multiple:{type:Boolean,default:!0},tip:{type:Boolean,default:!1},tipText:{type:String,default:""},disabled:{type:Boolean,default:!1},width:{type:Number,default:106},height:{type:Number,default:106}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:f.mergeModels(["delete","success"],["update:modelValue"]),setup(c,{emit:r}){f.useCssVars(At=>({"67f9e9a6":E.value,"7d745147":T.value,"5e8a4930":F.value,"1aabb338":zt.value}));const a=c,l=f.useModel(c,"modelValue"),i=At=>Array.isArray(At)?At.map(Je=>{var We,ut;const Et=((We=Je.url)==null?void 0:We.startsWith("http"))||((ut=Je.url)==null?void 0:ut.startsWith("blob")),Lt=(Je==null?void 0:Je.url)||Je;return{...Je.url?Je:{url:Lt},__url:Et?Lt:`${v.value}${Lt}`}}):At?[{url:At,__url:At!=null&&At.startsWith("http")||At!=null&&At.startsWith("blob")?At:`${v.value}${At}`}]:[];f.watch(()=>l.value,At=>{!At||!At.length?U.value=[]:U.value=To._.cloneDeep(i(At))},{deep:!0});const m=r,{cLoadUrl:v,cUploadUrl:C}=$2(a),E=f.computed(()=>`${a.width}px`),T=f.computed(()=>`${a.height}px`),N=f.computed(()=>a.size),V=f.ref(null),U=f.ref(i(l.value)),z=f.ref([]),W=f.ref(!1),K=f.ref(0),Z=f.computed(()=>a.tipText||`最多可上传${a.limit}张图片, 每张图片不能超过${a.size}MB`),ce=(At,Je)=>{},q=At=>{if(!At.type.includes("image")){Ft.ElMessage.warning("只允许上传图片!");try{U.value.pop()}catch{}return!1}if(!(At.size/1024/1024<N.value)){Ft.ElMessage.warning(`图片大小超出系统限制的${a.size}MB!`);try{U.value.pop()}catch{}return!1}return!0},X=()=>!1,Ce=(At,Je)=>{var Et,Lt;At.status="ready",Je!==void 0&&z.value.splice(Je,1),(Et=V.value)==null||Et.handleStart(At.raw),(Lt=V.value)==null||Lt.submit()},st=(At,Je)=>{var ut,An;const Et=l.value.length,Lt=a.limit-Et;let We=0;for(;We<Lt&&We<(At==null?void 0:At.length);)(ut=V.value)==null||ut.handleStart(At==null?void 0:At[We]),(An=V.value)==null||An.submit(),We++},Ne=(At,Je,Et)=>{m("success",At,Je,Et),l.value=U.value},ee=(At,Je,Et)=>{z.value.push({...Je,__url:Je.url})},xe=At=>{var Je;W.value=!0,K.value=Array.isArray(l==null?void 0:l.value)?(Je=l==null?void 0:l.value)==null?void 0:Je.findIndex(Et=>Et.url===At.url):0},et=At=>{To.ikFile.downloadFile(At.__url||At.url,At.name||At.url)},tt=At=>{var Je;(Je=V.value)==null||Je.abort(At)},je=At=>{var Je;At.status!=="success"&&tt(At),l.value=(Je=U.value)==null?void 0:Je.filter(Et=>Et.uid!==At.uid),m("delete",At)},be=(At,Je)=>{z.value.splice(Je,1)},xn=f.computed(()=>U.value.length+z.value.length<a.limit),dn=f.computed(()=>l.value.length>=a.limit||a.disabled),zt=f.computed(()=>{var At;return!((At=l.value)!=null&&At.length)&&!z.value.length||a.limit===1||typeof l.value=="string"?"0":`${a.width+8}px`}),F=f.computed(()=>{var At;return!((At=l.value)!=null&&At.length)&&!z.value.length&&typeof l.value!="string"||a.limit===1?"none":"absolute"});return(At,Je)=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[f.createVNode(f.unref(Ft.ElUpload),f.mergeProps({class:["ik-image-upload",{preview:c.preview,"hide-upload":!xn.value,disabled:dn.value}],ref_key:"refUpload",ref:V,"list-type":"picture-card",accept:c.accept,action:f.unref(C),headers:c.headers,data:c.data,"file-list":U.value,"onUpdate:fileList":Je[0]||(Je[0]=Et=>U.value=Et),multiple:c.multiple,limit:c.limit,"on-change":ce,"before-upload":q,"before-remove":X,"on-exceed":st,"on-success":Ne,"on-error":ee,drag:""},At.$attrs,{disabled:dn.value}),f.createSlots({trigger:f.withCtx(()=>[At.$slots.trigger?f.renderSlot(At.$slots,"trigger",{key:0},void 0,!0):(f.openBlock(),f.createElementBlock("div",rpe,[f.createVNode(f.unref(Ft.ElIcon),{size:20},{default:f.withCtx(()=>[f.createVNode(f.unref(cr),{name:"iksvg_guanbibeifen",disabled:dn.value},null,8,["disabled"])]),_:1}),f.createElementVNode("span",null,f.toDisplayString(c.title),1)]))]),file:f.withCtx(({file:Et,index:Lt})=>[f.createElementVNode("div",{class:f.normalizeClass(["load-list",{loading:Et.status==="uploading"}]),"element-loading-background":"var(--ik-upload-bg)"},[f.withDirectives(f.createElementVNode("div",ape,[f.createVNode(spe),f.createTextVNode(" 上传"+f.toDisplayString(Et.percentage)+"% ",1)],512),[[f.vShow,Et.status==="uploading"]]),f.createCommentVNode(` <img :src="file.url" alt="" :style="{ 'object-fit': fit }" /> `),f.createVNode(f.unref(Ft.ElImage),{style:{width:"100%",height:"100%"},src:Et.__url||Et.url,"zoom-rate":1.2,"initial-index":0,fit:"contain"},null,8,["src"]),f.createElementVNode("span",lpe,[f.createElementVNode("span",null,[f.createVNode(f.unref(Ft.ElIcon),{onClick:We=>xe(Et)},{default:f.withCtx(()=>[f.createVNode(f.unref(FQ))]),_:2},1032,["onClick"])]),f.createElementVNode("span",null,[f.createVNode(f.unref(Ft.ElIcon),{onClick:We=>et(Et)},{default:f.withCtx(()=>[f.createVNode(f.unref(IQ))]),_:2},1032,["onClick"])]),c.preview?f.createCommentVNode("v-if",!0):(f.openBlock(),f.createElementBlock("span",cpe,[f.createVNode(f.unref(Ft.ElIcon),{type:"warning",onClick:We=>je(Et)},{default:f.withCtx(()=>[f.createVNode(f.unref(NQ))]),_:2},1032,["onClick"])]))])],2)]),default:f.withCtx(()=>[f.createElementVNode("ul",upe,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(z.value,(Et,Lt)=>(f.openBlock(),f.createElementBlock("li",{class:"el-upload-list__item",key:Et.uid},[f.createElementVNode("span",null,[f.createVNode(f.unref(Ft.ElIcon),{onClick:We=>be(Et,Lt)},{default:f.withCtx(()=>[f.createVNode(f.unref(WO))]),_:2},1032,["onClick"])]),f.createElementVNode("div",{class:f.normalizeClass(["load-list",{loading:Et.status==="uploading",fail:Et.status==="fail"}]),"element-loading-background":"var(--ik-upload-bg)"},[f.withDirectives(f.createElementVNode("div",{class:"loading-statu",onClick:We=>Ce(Et,Lt)},[f.createVNode(f.unref(Ft.ElIcon),{size:24},{default:f.withCtx(()=>[f.createVNode(f.unref(PQ))]),_:1}),fpe,mpe],8,dpe),[[f.vShow,Et.status==="fail"]]),f.createElementVNode("img",{src:Et.__url,alt:"",style:f.normalizeStyle({"object-fit":c.fit})},null,12,hpe)],2)]))),128))])]),_:2},[c.tip?{name:"tip",fn:f.withCtx(()=>[f.createElementVNode("span",ipe,f.toDisplayString(Z.value),1)]),key:"0"}:void 0]),1040,["class","accept","action","headers","data","file-list","multiple","limit","disabled"]),f.createCommentVNode(" 文件预览 "),f.createElementVNode("div",gpe,[W.value?(f.openBlock(),f.createBlock(f.unref(RV),{key:0,"lock-scroll":"","hide-on-click-modal":"",onClose:Je[1]||(Je[1]=()=>{W.value=!1}),"url-list":i(U.value).map(Et=>Et.__url),"initial-index":K.value},null,8,["url-list","initial-index"])):f.createCommentVNode("v-if",!0)])],64))}}),_Se="",vpe=Zs(Vs(ppe,[["__scopeId","data-v-95e3d8e0"]])),ype=["src"],bpe={name:"IkPrintConfig"},Cpe=f.defineComponent({...bpe,props:{id:{},srcPrefix:{default:""},token:{}},emits:["created"],setup(c,{emit:r}){const a=c,l=r,i=f.computed(()=>!!a.id),m=f.reactive({currentId:a.id,loading:!0,src:""}),v=async()=>{fetch(`${a.srcPrefix??""}/jmreport/save`,{method:"POST",body:JSON.stringify({}),headers:{"Content-Type":"application/json",Authorization:a.token??""}}).then(E=>E.json()).then(({code:E,result:T})=>{if(E===200){const N=T.id;m.currentId=N,m.src=`${a.srcPrefix??""}/jmreport/index/${m.currentId}?token=${a.token}&menuType=printinfo`,l("created",m.currentId)}}).catch(E=>{console.error(E)})},C=()=>{if(!i.value){v();return}m.src=`${a.srcPrefix??""}/jmreport/index/${m.currentId}?token=${a.token}`};return f.onMounted(()=>{C()}),(E,T)=>m.src?(f.openBlock(),f.createElementBlock("iframe",{key:0,width:"100%",height:"100%",src:m.src,frameborder:"0"},null,8,ype)):f.createCommentVNode("v-if",!0)}}),_pe=Zs(Cpe),wpe=["src"],Spe={name:"IkPrintView"},Epe=f.defineComponent({...Spe,props:{modelValue:{type:Boolean,default:!1},templateId:{},dataId:{},srcPrefix:{default:""},token:{},idKey:{default:"id"},width:{default:"100%"},height:{default:"calc(100vh - 186px)"}},emits:["update:modelValue"],setup(c,{emit:r}){const a=c,l=r,i=f.computed({get:()=>a.modelValue,set:C=>{l("update:modelValue",C)}}),m=f.reactive({src:"",showIframe:!1}),v=()=>{m.showIframe=!1,m.src=`${a.srcPrefix}/jmreport/view/${a.templateId}?token=${a.token??""}&${a.idKey}=${a.dataId}`,setTimeout(()=>{m.showIframe=!0},300)};return f.watch(()=>i.value,C=>{C&&v()}),f.onMounted(()=>{i.value&&v()}),(C,E)=>{const T=f.resolveComponent("el-dialog");return f.openBlock(),f.createBlock(T,{modelValue:i.value,"onUpdate:modelValue":E[0]||(E[0]=N=>i.value=N),fullscreen:"",title:"预览"},{default:f.withCtx(()=>[f.createElementVNode("div",{style:f.normalizeStyle({width:a.width,height:a.height})},[m.showIframe?(f.openBlock(),f.createElementBlock("iframe",{key:0,width:"100%",height:"100%",src:m.src,frameborder:"0"},null,8,wpe)):f.createCommentVNode("v-if",!0)],4)]),_:1},8,["modelValue"])}}}),kpe=Zs(Epe),xpe={class:"ik-full-calendar"},Ape=["onClick"],Tpe={key:0,class:"event-title allday"},Dpe={key:0,class:"event-title-time"},Ope={key:1,class:"event-title no-allday"},Rpe={class:"event-title-time"},Npe={class:"event-title-text"},Ipe={name:"IkFullCalendar"},Bpe=f.defineComponent({...Ipe,props:{options:{default:{}},removable:{type:Boolean,default:!0},modelValue:{default:[]},tooltipFieldName:{default:"remark"}},emits:["added","deleted","update:modelValue","eventClick","deleteClick","dateSelect"],setup(c,{expose:r,emit:a}){const l=c,i=f.computed({get:()=>l.modelValue,set:q=>m("update:modelValue",q)}),m=a,v=f.ref(null),C=q=>{},E=f.ref("dayGridMonth"),T=q=>{m("dateSelect",q)},N=q=>{m("eventClick",q)},V=q=>{m("deleteClick",q)},U=()=>({locale:jQ,plugins:[Rte,Gte,$te],headerToolbar:{left:"dayGridMonth,timeGridWeek,timeGridDay prev,today,next",center:"title",right:""},firstDay:1,initialView:"dayGridMonth",weekends:!0,editable:!0,selectable:!0,selectMirror:!0,dateClick:C,select:T,...l.options,events:i.value}),z=f.reactive({timeType:"month",options:U()}),W=f.ref(null),K=()=>{var q;z.options=U(),(q=v.value)==null||q.buildOptions(z.options)};r({...{prev:()=>{var q;(q=W.value)==null||q.prev()},next:()=>{var q;(q=W.value)==null||q.next()},today:()=>{var q;(q=W.value)==null||q.today()},changeView:q=>{var X;(X=W.value)==null||X.changeView(q),E.value=q},getDate:()=>{var q;return(q=W.value)==null?void 0:q.getDate()},getView:()=>{var q;return(q=W.value)==null?void 0:q.view},unselect:()=>{var q;return(q=W.value)==null?void 0:q.unselect()}}}),f.watch(()=>i.value,()=>{K()});const ce=()=>{var q;W.value=(q=v.value)==null?void 0:q.getApi()};return f.onMounted(()=>{ce()}),(q,X)=>{const Ce=f.resolveComponent("el-tooltip"),st=f.resolveComponent("el-icon");return f.openBlock(),f.createElementBlock("div",xpe,[f.createVNode(f.unref(_te),{ref_key:"_ref",ref:v,options:z.options,style:{height:"100%"}},{eventContent:f.withCtx(Ne=>[f.createElementVNode("div",{class:"title-line",onClick:ee=>N(Ne)},[f.createVNode(Ce,null,{content:f.withCtx(()=>{var ee,xe;return[f.createCommentVNode(" {{arg}} "),f.createTextVNode(" "+f.toDisplayString((xe=(ee=Ne.event)==null?void 0:ee.extendedProps)==null?void 0:xe[l.tooltipFieldName]),1)]}),default:f.withCtx(()=>[Ne.event.allDay?(f.openBlock(),f.createElementBlock("span",Tpe,[E.value==="dayGridMonth"?(f.openBlock(),f.createElementBlock("span",Dpe,f.toDisplayString("(全天)"))):f.createCommentVNode("v-if",!0),f.createElementVNode("span",null,f.toDisplayString(Ne.event.title),1)])):(f.openBlock(),f.createElementBlock("span",Ope,[f.createElementVNode("span",Rpe,f.toDisplayString(f.unref(To.ikDate).toDateTime(Ne.event.startStr,"HH:mm")),1),f.createElementVNode("span",Npe,f.toDisplayString(Ne.event.title),1)]))]),_:2},1024),l.removable?(f.openBlock(),f.createBlock(st,{key:0,size:16,onClick:f.withModifiers(ee=>V(Ne),["stop"])},{default:f.withCtx(()=>[f.createVNode(f.unref(RQ))]),_:2},1032,["onClick"])):f.createCommentVNode("v-if",!0)],8,Ape)]),_:1},8,["options"])])}}}),SSe="",Mpe=Vs(Bpe,[["__scopeId","data-v-f0925ff8"]]);let Ppe=class{constructor(){MS(this,"id",new Date().getTime());MS(this,"title","");MS(this,"start","");MS(this,"end","");MS(this,"allDay",!1);MS(this,"extendedProps",{})}};const qte=Zs(Mpe),Lpe={key:0,class:"ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"},Fpe={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},$pe=["xlink:href"],Vpe=["src"],Hpe={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},zpe=["xlink:href"],Upe=["src"],Wpe=f.defineComponent({name:"IkSvgIcon",__name:"index",props:{active:{type:Boolean,default:!1},bg:{type:Boolean,default:!1},color:{},colorLight:{},disabled:{type:Boolean,default:!1},error:{type:Boolean},flip:{},name:{},notip:{type:Boolean,default:!1},opacity:{default:.5},padding:{default:"6px"},primary:{type:Boolean},rotate:{},showBg:{type:Boolean,default:!1},size:{default:""},success:{type:Boolean},tableIconType:{},title:{},type:{},warning:{type:Boolean},width:{}},setup(c){const r=c,a=f.computed(()=>r),l=f.computed(()=>{const{name:m}=a.value;return/^http?:\/\//.test(m)?"img":/i-[^:]+:[^:]+/.test(m)?"unocss":m!=null&&m.startsWith("iksig")?"iksig":m!=null&&m.includes(":")?"iconify":m!=null&&m.startsWith("iksvg")?"svg":"i"}),i=f.computed(()=>{const m=[];if(a.value.flip)switch(a.value.flip){case"horizontal":m.push("rotateY(180deg)");break;case"vertical":m.push("rotateX(180deg)");break;case"both":m.push("rotateX(180deg)"),m.push("rotateY(180deg)");break}a.value.rotate&&m.push(`rotate(${a.value.rotate%360}deg)`);const v={pointerEvents:a.value.disabled?"none":"auto",...a.value.color&&{color:a.value.color},...a.value.size&&{fontSize:typeof a.value.size=="number"?`${a.value.size}px`:a.value.size},...m.length&&{transform:m.join(" ")},padding:a.value.showBg||a.value.bg?a.value.padding:0,...a.value.color&&l.value!=="iksig"?{"--ik-color-icon-dark":a.value.color,"--ik-color-icon-light":a.value.colorLight||To.ikColor.setOpacity(a.value.color,a.value.opacity)}:{}};return a.value.width&&(v.width=v.height=typeof a.value.width=="number"?`${a.value.width}px`:a.value.width),v});return(m,v)=>{const C=f.resolveComponent("el-tooltip"),E=f.resolveComponent("el-button");return a.value.tableIconType==="icon"||!a.value.tableIconType?(f.openBlock(),f.createElementBlock("span",Lpe,[a.value.notip||!a.value.title?(f.openBlock(),f.createElementBlock("i",{key:0,class:f.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[m.name]:l.value==="unocss","show-bg":a.value.showBg||a.value.bg,default:a.value.size==="default",small:a.value.size==="small",big:a.value.size==="big",warning:a.value.warning||a.value.type==="warning",primary:a.value.primary||a.value.type==="primary",success:m.success||a.value.type==="success",error:a.value.error||a.value.type==="error",active:a.value.active,disabled:a.value.disabled}]),style:f.normalizeStyle(i.value)},[f.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),l.value==="iksig"?(f.openBlock(),f.createElementBlock("i",{key:0,class:f.normalizeClass(`iksig ${a.value.name}`),style:f.normalizeStyle(i.value)},null,6)):l.value==="svg"?(f.openBlock(),f.createElementBlock("svg",Fpe,[f.createElementVNode("use",{"xlink:href":`#${a.value.name}`},null,8,$pe)])):l.value==="img"?(f.openBlock(),f.createElementBlock("img",{key:2,src:a.value.name,class:"h-[1em] w-[1em]"},null,8,Vpe)):(f.openBlock(),f.createElementBlock("i",{key:3,class:f.normalizeClass(a.value.name),style:f.normalizeStyle(i.value)},null,6))],6)):(f.openBlock(),f.createBlock(C,{key:1,content:a.value.title,placement:"top"},{default:f.withCtx(()=>[f.createElementVNode("i",{class:f.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[m.name]:l.value==="unocss","show-bg":a.value.showBg||a.value.bg,default:a.value.size==="default",small:a.value.size==="small",big:a.value.size==="big",warning:a.value.warning||a.value.type==="warning",primary:m.primary||a.value.type==="primary",success:m.success||a.value.type==="success",error:a.value.error||a.value.type==="error",active:a.value.active}]),style:f.normalizeStyle(i.value)},[l.value==="iksig"?(f.openBlock(),f.createElementBlock("i",{key:0,class:f.normalizeClass(`iksig ${a.value.name}`),style:f.normalizeStyle(i.value)},null,6)):l.value==="svg"?(f.openBlock(),f.createElementBlock("svg",Hpe,[f.createElementVNode("use",{"xlink:href":`#${a.value.name}`},null,8,zpe)])):l.value==="img"?(f.openBlock(),f.createElementBlock("img",{key:2,src:a.value.name,class:"h-[1em] w-[1em]"},null,8,Upe)):(f.openBlock(),f.createElementBlock("i",{key:3,class:f.normalizeClass(a.value.name),style:f.normalizeStyle(i.value)},null,6))],6)]),_:1},8,["content"]))])):(f.openBlock(),f.createBlock(E,{key:1,type:["warning","error"].includes(a.value.type)?"danger":""},{default:f.withCtx(()=>[f.createTextVNode(f.toDisplayString(a.value.title),1)]),_:1},8,["type"]))}}}),ESe="",cr=Zs(Vs(Wpe,[["__scopeId","data-v-52806adf"]])),yV=c=>(f.pushScopeId("data-v-e308f501"),c=c(),f.popScopeId(),c),jpe={class:"ik-schedule"},Gpe={class:"ik-schedule__left"},Zpe={class:"ik-schedule__header"},qpe={class:"ik-schedule__title"},Kpe=yV(()=>f.createElementVNode("div",{class:"ik-schedule__header-right"},null,-1)),Ype={class:"ik-schedule__body"},Xpe={style:{"font-size":"18px"}},Qpe={key:0},Jpe={style:{width:"90%",display:"flex","align-items":"center","justify-content":"space-between"}},e1e={key:0,style:{"margin-left":"2%"}},t1e=yV(()=>f.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),n1e={key:1},o1e=yV(()=>f.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),s1e={class:"dialog-footer"},r1e={name:"IkSchedule"},i1e=f.defineComponent({...r1e,props:{modelValue:{default:[]},options:{default:{initialView:"dayGridMonth"}},editVisible:{type:Boolean},removable:{type:Boolean,default:!0}},emits:["update:modelValue","added","updated","deleted","editOpen","submit","update:editVisible","submitAdd","submitUpdate","submitDelete"],setup(c,{expose:r,emit:a}){var ee;const l=c,i=a,m=!!f.useSlots().form,v=f.computed({get:()=>l.modelValue,set:xe=>{i("update:modelValue",xe)}}),C=f.computed(()=>({...l.options,headerToolbar:!1})),E=f.reactive({currentView:(ee=l.options)==null?void 0:ee.initialView,viewTitle:"",rightLabel:"今日",timeType:"month",currentDate:null}),T=f.ref(null),N=xe=>{var et;(et=T.value)==null||et.changeView(xe),E.currentView=xe,V()},V=()=>{var et;const xe=(et=T.value)==null?void 0:et.getView();E.viewTitle=xe==null?void 0:xe.title},U=()=>{var xe;(xe=T.value)==null||xe.prev(),V()},z=()=>{var xe;(xe=T.value)==null||xe.next(),V()},W=()=>{var xe;(xe=T.value)==null||xe.today(),V()},K=xe=>E.currentView===xe,Z=f.ref(null),ce={createDefaultForm:()=>({title:"",allDay:!1,type:1,startDate:"",endDate:"",startTime:"",endTime:"",location:"",remark:""}),close:()=>{X.value=!1},customSubmit:xe=>{var tt,je;let et={...xe,id:void 0,allDay:q.form.allDay,start:(tt=q.selectInfo)==null?void 0:tt.startStr,end:(je=q.selectInfo)==null?void 0:je.endStr};ce.operation(et),ce.close()},operation:xe=>{var et;q.operation==="add"?i("submitAdd",xe):(xe.id=(et=q.editEvent)==null?void 0:et.id,i("submitUpdate",xe))},submit:async()=>{var et,tt;if(m){i("submit");return}if(!q.form.title){Ft.ElMessage.info("标题不能为空");return}if(!q.form.allDay&&(!q.form.startTime||!q.form.endTime)){Ft.ElMessage.info("时间不能为空");return}let xe={id:void 0,title:q.form.title,allDay:q.form.allDay,start:(et=q.selectInfo)==null?void 0:et.startStr,end:(tt=q.selectInfo)==null?void 0:tt.endStr,extendedProps:{...q.form}};if(xe.allDay)xe.start=To.ikDate.toDate(q.form.startDate),xe.end=To.ikDate.toDate(q.form.endDate);else{const je=To.ikDate.toDate(q.form.startDate),be=To.ikDate.toDateTime(q.form.startTime).substring(10),xn=To.ikDate.toDateTime(q.form.endTime).substring(10);xe.start=`${je}${be}`,xe.end=`${je}${xn}`,xe.extendedProps.startTime=xe.start,xe.extendedProps.endTime=xe.end}ce.operation(xe),ce.close()},reset:()=>{var xe;q.form=ce.createDefaultForm(),(xe=Z.value)==null||xe.clearValidate()},edit:()=>{q.editable=!0,q.title="编辑日程"},cancelEdit:()=>{q.editable=!1,q.title="日程信息"},del:()=>{Ne(q.clickInfo)}},q=f.reactive({operation:"update",selectInfo:{},editEvent:void 0,title:"",visible:!1,allDay:!1,form:ce.createDefaultForm(),editable:!1,clickInfo:null}),X=f.computed({get:()=>q.visible,set:xe=>{q.visible=xe}}),Ce=xe=>{var et;if(q.form.allDay=xe.allDay,q.selectInfo=xe,ce.reset(),xe.view.type=="dayGridMonth"){let tt=xe.end.getTime()-864e5;E.timeType="month",q.form.startDate=To.ikDate.toYMD(xe.start),q.form.endDate=To.ikDate.toYMD(new Date(tt)),q.form.allDay=!0}else xe.view.type=="timeGridWeek"?E.timeType="week":xe.view.type=="timeGridDay"&&(E.timeType="day"),q.form.startDate=To.ikDate.toYMD(xe.start),q.form.endDate=To.ikDate.toYMD(xe.start),q.form.startTime=To.ikDate.toDateTime(xe.start),q.form.endTime=To.ikDate.toDateTime(xe.end);(et=T.value)==null||et.unselect(),f.nextTick(()=>{q.title="新建日程",q.operation="add",q.editable=!0,X.value=!0,i("editOpen",JSON.parse(JSON.stringify(q)))})},st=xe=>{q.title="日程信息",q.operation="update",q.clickInfo=xe,q.editEvent=xe.event;debugger;q.editEvent.allDay?(q.form.startDate=q.editEvent.startStr,q.form.endDate=q.editEvent.startStr):(q.form.startDate=q.editEvent.startStr,q.form.startTime=q.editEvent.start,q.form.endTime=q.editEvent.end),q.form.title=q.editEvent.title,q.form.allDay=q.editEvent.allDay,sre.copyValue(q.form,q.editEvent.extendedProps),ce.cancelEdit(),X.value=!0,i("editOpen",JSON.parse(JSON.stringify(q)))},Ne=xe=>{Ft.ElMessageBox.confirm(`你确定删除事件 ${xe.event.title} ?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{ce.close(),i("submitDelete",xe.event.id)})};return r({customSubmit:xe=>ce.customSubmit(xe)}),f.onMounted(()=>{V()}),(xe,et)=>{const tt=f.resolveComponent("el-button"),je=f.resolveComponent("el-button-group"),be=f.resolveComponent("el-icon"),xn=f.resolveComponent("el-space"),dn=f.resolveComponent("el-input"),zt=f.resolveComponent("el-form-item"),F=f.resolveComponent("el-date-picker"),At=f.resolveComponent("el-time-picker"),Je=f.resolveComponent("el-checkbox"),Et=f.resolveComponent("el-form"),Lt=f.resolveComponent("el-dialog");return f.openBlock(),f.createElementBlock("div",jpe,[f.createElementVNode("div",Gpe,[f.createElementVNode("div",Zpe,[f.createVNode(xn,{style:{"flex-shrink":"0"},size:24},{default:f.withCtx(()=>[f.createVNode(je,null,{default:f.withCtx(()=>[f.createVNode(tt,{onClick:et[0]||(et[0]=We=>N("dayGridMonth")),type:K("dayGridMonth")?"primary":""},{default:f.withCtx(()=>[f.createTextVNode("月")]),_:1},8,["type"]),f.createVNode(tt,{onClick:et[1]||(et[1]=We=>N("timeGridWeek")),type:K("timeGridWeek")?"primary":""},{default:f.withCtx(()=>[f.createTextVNode("周")]),_:1},8,["type"]),f.createVNode(tt,{onClick:et[2]||(et[2]=We=>N("timeGridDay")),type:K("timeGridDay")?"primary":""},{default:f.withCtx(()=>[f.createTextVNode("日")]),_:1},8,["type"])]),_:1}),f.createElementVNode("span",qpe,f.toDisplayString(E.viewTitle),1),f.createVNode(je,{style:{"flex-shrink":"0"}},{default:f.withCtx(()=>[f.createVNode(tt,{onClick:U},{default:f.withCtx(()=>[f.createVNode(be,null,{default:f.withCtx(()=>[f.createVNode(f.unref(n$))]),_:1})]),_:1}),f.createVNode(tt,{onClick:W},{default:f.withCtx(()=>[f.createTextVNode("今天")]),_:1}),f.createVNode(tt,{onClick:z},{default:f.withCtx(()=>[f.createVNode(be,null,{default:f.withCtx(()=>[f.createVNode(f.unref(o$))]),_:1})]),_:1})]),_:1})]),_:1}),Kpe]),f.createElementVNode("div",Ype,[f.createVNode(f.unref(qte),{removable:xe.removable,onDateSelect:Ce,onDeleteClick:Ne,onEventClick:st,ref_key:"_refCalendar",ref:T,options:C.value,modelValue:v.value,"onUpdate:modelValue":et[3]||(et[3]=We=>v.value=We)},null,8,["removable","options","modelValue"])])]),f.createCommentVNode(" 新建/修改对话框 "),f.createVNode(Lt,{width:"700px",modelValue:X.value,"onUpdate:modelValue":et[11]||(et[11]=We=>X.value=We)},{header:f.withCtx(()=>[f.createElementVNode("div",null,[f.createElementVNode("span",Xpe,f.toDisplayString(q.title),1),q.operation==="update"?(f.openBlock(),f.createElementBlock("span",Qpe,[q.editable?(f.openBlock(),f.createBlock(f.unref(cr),{key:1,style:{"margin-left":"4px"},name:"iksvg_qiehuan-daohang",onClick:ce.cancelEdit},null,8,["onClick"])):(f.openBlock(),f.createBlock(f.unref(cr),{key:0,style:{"margin-left":"4px"},name:"iksvg_xiugai",onClick:ce.edit},null,8,["onClick"]))])):f.createCommentVNode("v-if",!0)])]),footer:f.withCtx(()=>[f.createElementVNode("span",s1e,[f.renderSlot(xe.$slots,"form-footer",{},()=>[f.createElementVNode("span",null,[f.createVNode(tt,{onClick:ce.close},{default:f.withCtx(()=>[f.createTextVNode("取消")]),_:1},8,["onClick"]),f.createVNode(tt,{onClick:ce.del},{default:f.withCtx(()=>[f.createTextVNode("删除")]),_:1},8,["onClick"]),f.createVNode(tt,{type:"primary",onClick:ce.submit},{default:f.withCtx(()=>[f.createTextVNode("确定")]),_:1},8,["onClick"])])],!0)])]),default:f.withCtx(()=>[f.renderSlot(xe.$slots,"form",{},()=>[f.createVNode(Et,{ref_key:"_editFormRef",ref:Z,model:q.form,disabled:!q.editable},{default:f.withCtx(()=>[f.createVNode(zt,null,{default:f.withCtx(()=>[f.createVNode(be,{class:"icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(DQ))]),_:1}),f.createVNode(dn,{modelValue:q.form.title,"onUpdate:modelValue":et[4]||(et[4]=We=>q.form.title=We),placeholder:"请输入标题",style:{width:"90%"},clearable:""},null,8,["modelValue"])]),_:1}),f.createVNode(zt,null,{default:f.withCtx(()=>[f.createVNode(be,{class:"icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(OQ))]),_:1}),f.createElementVNode("div",Jpe,[f.createVNode(F,{disabled:"",modelValue:q.form.startDate,"onUpdate:modelValue":et[5]||(et[5]=We=>q.form.startDate=We),type:"date",placeholder:"开始日期",style:f.normalizeStyle({width:q.form.allDay?"45%":"90%"})},null,8,["modelValue","style"]),q.form.allDay?(f.openBlock(),f.createElementBlock("div",n1e,[o1e,f.createVNode(F,{disabled:"",modelValue:q.form.endDate,"onUpdate:modelValue":et[8]||(et[8]=We=>q.form.endDate=We),type:"date",placeholder:"结束日期",style:{width:"90%"}},null,8,["modelValue"])])):(f.openBlock(),f.createElementBlock("div",e1e,[f.createVNode(At,{modelValue:q.form.startTime,"onUpdate:modelValue":et[6]||(et[6]=We=>q.form.startTime=We),type:"datetime",placeholder:"开始时间",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"]),t1e,f.createVNode(At,{modelValue:q.form.endTime,"onUpdate:modelValue":et[7]||(et[7]=We=>q.form.endTime=We),type:"datetime",placeholder:"结束时间",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"])])),f.createVNode(Je,{modelValue:q.form.allDay,"onUpdate:modelValue":et[9]||(et[9]=We=>q.form.allDay=We),label:"全天",style:{"margin-left":"2%"}},null,8,["modelValue"])])]),_:1}),f.createVNode(zt,null,{default:f.withCtx(()=>[f.createVNode(be,{class:"icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(jre))]),_:1}),f.createVNode(dn,{type:"textarea",modelValue:q.form.remark,"onUpdate:modelValue":et[10]||(et[10]=We=>q.form.remark=We),placeholder:"描述",style:{width:"90%"},clearable:""},null,8,["modelValue"])]),_:1})]),_:1},8,["model","disabled"])],!0)]),_:3},8,["modelValue"])])}}}),xSe="",a1e=Zs(Vs(i1e,[["__scopeId","data-v-e308f501"]])),l1e={key:0,class:"ik-tabs-split overflow-overlay gl-padding"},c1e=f.defineComponent({__name:"IkPageTabs",props:f.mergeModels({tabs:{type:Array,default:()=>[]},defaultSlot:{type:Boolean,default:!0},lazyTab:{type:Boolean,default:!1},split:{type:Boolean,default:!1}},{modelValue:{type:String||Number,default:""},modelModifiers:{}}),emits:f.mergeModels(["tabClick","search"],["update:modelValue"]),setup(c,{emit:r}){const a=c,l=r,i=f.useModel(c,"modelValue"),m=f.ref(new Map);for(const C of a.tabs)m.value.set(C.id,a.lazyTab?C.id!==i.value:!1);const v=C=>{i.value=C.paneName,m.value.get(C.paneName)||l("tabClick",C.paneName,C),m.value.set(C.paneName,!1)};return(C,E)=>{const T=f.resolveComponent("el-tab-pane"),N=f.resolveComponent("el-tabs");return f.openBlock(),f.createElementBlock(f.Fragment,null,[f.createCommentVNode(' <div class="flex-1 contents"> '),f.createVNode(N,{modelValue:i.value,"onUpdate:modelValue":E[0]||(E[0]=V=>i.value=V),class:f.normalizeClass(["ik-tabs",{"is-default":C.$slots.default,"split gl-padding gl-container":c.split}]),onTabClick:v},{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(c.tabs,V=>(f.openBlock(),f.createBlock(T,{key:V.id,disabled:V==null?void 0:V.disabled,name:V.id},{label:f.withCtx(()=>[f.createElementVNode("span",null,f.toDisplayString(V.label),1)]),default:f.withCtx(()=>[!C.$slots.default&&!m.value.get(V.id)&&!c.split?f.renderSlot(C.$slots,V.id,{key:0},void 0,!0):f.createCommentVNode("v-if",!0)]),_:2},1032,["disabled","name"]))),128)),f.createCommentVNode(" 当存在默认slot且需要展示默认slot时 "),C.$slots.default&&c.defaultSlot&&!c.split?f.renderSlot(C.$slots,"default",{key:0},void 0,!0):f.createCommentVNode("v-if",!0)]),_:3},8,["modelValue","class"]),c.split?(f.openBlock(),f.createElementBlock("div",l1e,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(c.tabs,V=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[!C.$slots.default&&!m.value.get(V.id)?f.renderSlot(C.$slots,V.id,{key:0},void 0,!0):f.createCommentVNode("v-if",!0)],64))),256)),C.$slots.default&&c.defaultSlot?f.renderSlot(C.$slots,"default",{key:0},void 0,!0):f.createCommentVNode("v-if",!0)])):f.createCommentVNode("v-if",!0),f.createCommentVNode(" </div> ")],64)}}}),TSe="",u1e=Zs(Vs(c1e,[["__scopeId","data-v-e282a7f2"]]));var J1=(c=>(c.input="input",c.area="area",c.number="number",c.select="select",c.date="date",c.datetime="datetime",c.checkbox="checkbox",c.radio="radio",c.treeselect="treeselect",c.choosePerson="choosePerson",c))(J1||{}),X2=(c=>(c.year="year",c.month="month",c.date="date",c.dates="dates",c.datetime="datetime",c.week="week",c.datetimerange="datetimerange",c.daterange="daterange",c.monthrange="monthrange",c))(X2||{});function Kte(c){return typeof c=="function"||Object.prototype.toString.call(c)==="[object Object]"&&!f.isVNode(c)}const d1e=f.defineComponent({name:"IkSearchAuto",props:{list:{required:!0,type:Array,default:()=>[]},shadow:{type:String,default:"never"},immediate:{type:Boolean,default:!0},tab:{type:String,default:""},search:{type:Function,default:null},loading:{type:Boolean,default:!1}},emits:["search","pickerChange"],setup(c,{emit:r,expose:a}){const l=f.ref(),i={},m=f.ref({}),v=f.ref([]),C=f.ref({...m.value});f.watch(v,(ut,An)=>{const dt=An.filter(Vt=>!ut.includes(Vt));if(dt.length){let Vt=!1;dt.forEach(Ge=>{C.value[Ge]!==void 0&&(Vt=!0),C.value[Ge]=void 0}),Vt&&r("search",C.value)}});const E=()=>{v.value=[],c.list.forEach(ut=>{var An,dt;m.value[ut.key]=m.value[ut.value],i[ut.key]=i[ut.value],v.value.push(ut.key),(An=C.value)[dt=ut.key]??(An[dt]=ut.value||null)})};E(),f.watch(()=>c.list,()=>{E()});const T=f.computed(()=>v.value.map(ut=>c.list.find(An=>An.key===ut))),N=()=>{var ut;C.value.page=1,(ut=c.search)==null||ut.call(c,C.value),r("search",C.value)};a({resetForm:()=>{var ut,An;(An=(ut=l.value)==null?void 0:ut.resetFields)==null||An.call(ut),N()},reRequest:()=>{N()}});const z=()=>{var ut;r("search",C.value),(ut=c.search)==null||ut.call(c,C.value)},W=ut=>{ut.key==="Enter"&&N()},K=()=>{var ut;(ut=l.value)==null||ut.resetFields(),N()};c.immediate&&N();const Z=({maxlength:ut,minlength:An,key:dt,disabled:Vt,placeholder:Ge,formProp:at={},value:oe,label:po})=>f.createVNode(Ft.ElInput,f.mergeProps({modelValue:C.value[dt],"onUpdate:modelValue":[Nn=>C.value[dt]=Nn,Nn=>C.value[dt]=Nn],clearable:!0,maxlength:ut,minlength:An,disabled:Vt,onBlur:()=>z()},at,{placeholder:(at==null?void 0:at.placeholder)||Ge||`请输入${po||""}`}),null),ce=({key:ut,placeholder:An,max:dt,min:Vt,disabled:Ge,precision:at,step:oe=1,label:po,formProp:Nn={}})=>f.createVNode(Ft.ElInputNumber,f.mergeProps({modelValue:C.value[ut],"onUpdate:modelValue":yo=>C.value[ut]=yo,clearable:!0,max:dt,min:Vt,disabled:Ge,precision:at,step:oe,onChange:()=>z()},Nn,{placeholder:(Nn==null?void 0:Nn.placeholder)||An||`请输入${po||""}`}),null),q=({key:ut,placeholder:An,disabled:dt,options:Vt,label:Ge,multiple:at=!1,filterable:oe=!0,formProp:po={}})=>f.createVNode(Ft.ElSelect,f.mergeProps({modelValue:C.value[ut],"onUpdate:modelValue":Nn=>C.value[ut]=Nn,clearable:!0,disabled:dt,multiple:at,filterable:oe,onChange:()=>z()},po,{placeholder:(po==null?void 0:po.placeholder)||An||`请选择${Ge||""}`}),{default:()=>[Vt==null?void 0:Vt.map(Nn=>f.createVNode(Ft.ElOption,{key:Nn.value,label:Nn.label,value:Nn.value},null))]}),X=({key:ut,disabled:An,options:dt,formProp:Vt={}})=>f.createVNode(Ft.ElRadioGroup,f.mergeProps({modelValue:C.value[ut],"onUpdate:modelValue":Ge=>C.value[ut]=Ge,disabled:An,onChange:()=>z()},Vt),{default:()=>[dt==null?void 0:dt.map(Ge=>(Vt==null?void 0:Vt.radioType)==="button"?f.createVNode(Ft.ElRadioButton,{key:Ge.value,label:Ge.value,name:Ge.label},null):f.createVNode(Ft.ElRadio,{key:Ge.value,label:Ge.value,name:Ge.label},null))]}),Ce=({key:ut,disabled:An,options:dt,min:Vt,max:Ge,formProp:at={}})=>f.createVNode(Ft.ElCheckboxGroup,f.mergeProps({modelValue:C.value[ut],"onUpdate:modelValue":oe=>C.value[ut]=oe,disabled:An,max:Ge,min:Vt,onChange:()=>z()},at),{default:()=>[dt==null?void 0:dt.map(oe=>f.createVNode(Ft.ElCheckbox,{key:oe.value,label:oe.label,value:oe.value},null))]}),st=({key:ut,label:An,formProp:dt={},placeholder:Vt})=>f.createVNode(Ft.ElDatePicker,f.mergeProps({modelValue:C.value[ut],"onUpdate:modelValue":Ge=>C.value[ut]=Ge,onChange:()=>z()},dt,{placeholder:(dt==null?void 0:dt.placeholder)||Vt||`请选择${An}时间`}),null),Ne=({key:ut,disabled:An,editable:dt=!0,startPlaceholder:Vt="开始日期",endplaceholder:Ge="结束日期",dateType:at=X2.date,format:oe,placeholder:po="请选择日期",popperclass:Nn,rangeSeparator:yo="-",defaultValue:Fo,defaultTime:gi,valueFormat:vt,disabledDate:jt=()=>!1,formProp:St={}})=>{let Ue=oe;if(Ue)switch(at){case X2.date:case X2.dates:Ue="YYYY-MM-DD";break;case X2.year:Ue="YYYY";break;case X2.month:Ue="YYYY-MM";break;case X2.week:Ue="YYYY-MM-DD";break;default:Ue=""}return f.createVNode(Ft.ElDatePicker,f.mergeProps({modelValue:C.value[ut],"onUpdate:modelValue":In=>C.value[ut]=In,onChange:()=>z(),disabled:An,type:at,editable:dt,startPlaceholder:Vt,endPlaceholder:Ge,rangeSeparator:yo,format:Ue,popperClass:Nn,defaultValue:Fo,defaultTime:gi,valueFormat:vt,disabledDate:jt},St,{placeholder:(St==null?void 0:St.placeholder)||po||"请选择日期"}),null)},ee=({key:ut,options:An,multiple:dt=!1,filterable:Vt=!0,nodeKey:Ge="id",props:at,highlightCurrent:oe=!0,defaultExpandAll:po=!1,expandOnClickNode:Nn=!1,placeholder:yo="全部",checkOnClickNode:Fo=!1,showCheckbox:gi=!1,checkStrictly:vt=!0,defaultCheckedKeys:jt=[],currentNodeKey:St="",accordion:Ue=!1,formProp:In={},label:kt})=>f.createVNode(Ft.ElTreeSelect,f.mergeProps({modelValue:C.value[ut],"onUpdate:modelValue":Ct=>C.value[ut]=Ct,data:An,onChange:()=>z(),clearable:!0,multiple:dt,props:at,placeholder:yo,filterable:Vt,nodeKey:Ge,highlightCurrent:oe,defaultExpandAll:po,expandOnClickNode:Nn,checkOnClickNode:Fo,showCheckbox:gi,checkStrictly:vt,defaultCheckedKeys:jt,currentNodeKey:St,accordion:Ue},In,{placeholder:(In==null?void 0:In.placeholder)||yo||`请选择${kt||""}`}),null),xe=({key:ut,selectKey:An,placeholder:dt,disabled:Vt,options:Ge,multiple:at=!1,filterable:oe=!0,formProp:po={}})=>f.createVNode(Ft.ElInput,f.mergeProps({disabled:Vt,modelValue:C.value[ut],"onUpdate:modelValue":Nn=>C.value[ut]=Nn,onBlur:()=>z()},po,{placeholder:(po==null?void 0:po.placeholder)||dt||"全部"}),{prepend:()=>f.createVNode(Ft.ElSelect,f.mergeProps({disabled:Vt,multiple:at,filterable:oe,modelValue:C.value[An],"onUpdate:modelValue":Nn=>C.value[An]=Nn,onChange:()=>z()},po),{default:()=>[Ge==null?void 0:Ge.map(Nn=>f.createVNode(Ft.ElOption,{key:Nn.value,label:Nn.label,value:Nn.value},null))]})}),et="",tt="iking",je=f.ref(null),be=f.ref([]),xn=f.ref(!1),dn=f.ref(""),zt=new Map,F=ut=>{xn.value=!0,be.value=zt.has(ut)?zt.get(ut):C.value[ut],dn.value=ut},At=()=>{zt.set(dn.value,[]),dn.value="",z()},Je=ut=>{var An,dt;C.value[dn.value]=(An=ut.list.map(Vt=>Vt.elementName))==null?void 0:An.join(","),zt.set(dn.value,ut.list),r("search",C.value),r("pickerChange",ut),(dt=c.search)==null||dt.call(c,C.value)},Et=({key:ut,placeholder:An,typeOption:dt,_list:Vt,maxlength:Ge,minlength:at,disabled:oe,formProp:po})=>f.createVNode(Ft.ElInput,f.mergeProps({modelValue:C.value[ut],"onUpdate:modelValue":Nn=>C.value[ut]=Nn,clearable:!0,maxlength:Ge,minlength:at,disabled:oe},po,{onClick:()=>F(ut),onClear:()=>At(),placeholder:(po==null?void 0:po.placeholder)||An||`点击选择${label||"人员"}`}),null),Lt=ut=>{switch(ut.type){case"":case void 0:case J1.input:case"el-input":return Z(ut);case J1.number:case"el-input-number":return ce(ut);case J1.select:case"el-select":return q(ut);case J1.checkbox:case"el-checkbox":return Ce(ut);case J1.radio:case"el-radio-group":case"el-radio":return X(ut);case J1.date:case"el-date-picker":return Ne(ut);case"el-time-select":return st(ut);case J1.treeselect:case"el-tree-select":return ee(ut);case J1.choosePerson:return Et(ut);case"select-input":return xe(ut);default:return f.createVNode(f.Fragment,null,null)}},We=f.computed(()=>{var dt;const ut=[],An=T.value.length-1;return(dt=T.value)==null||dt.forEach((Vt,Ge)=>{let at,oe;if(!Vt)return[];const po=Vt.col||1;ut.push(f.createVNode(Ft.ElCol,{xl:{span:po*6},lg:{span:po*6},md:{span:po*12},sm:{span:po*24}},{default:()=>[Ge===An?f.createVNode("div",{class:"last-form"},[f.createVNode(Ft.ElFormItem,{label:Vt.type==="select-input"?"":Vt.label,prop:Vt.key},Kte(at=Lt(Vt))?at:{default:()=>[at]}),f.createVNode(cr,{name:"icon-sousuo1",pop:!0,title:"搜索",size:"big","show-bg":!0,width:40,onClick:()=>z()},null),f.createVNode(cr,{name:"icon-zhongzhi",pop:!0,title:"重置并搜索",size:"big","show-bg":!0,width:40,onClick:()=>K()},null)]):f.createVNode(Ft.ElFormItem,{label:Vt.type==="select-input"?"":Vt.label,prop:Vt.key},Kte(oe=Lt(Vt))?oe:{default:()=>[oe]})]}))}),ut});return()=>f.createVNode(f.Fragment,null,[f.createVNode(Ft.ElCard,{class:"gl-search-card",shadow:c.shadow},{default:()=>[f.createVNode(Ft.ElForm,{class:"auto-search-form",onKeyup:W,ref:l,model:C.value},{default:()=>[f.createVNode(Ft.ElRow,{gutter:16},{default:()=>[We.value]})]})]}),f.createVNode(yA,{ref:je.value,modelValue:be.value,"onUpdate:modelValue":ut=>be.value=ut,show:xn.value,"onUpdate:show":ut=>xn.value=ut,"append-to-body":!0,api:{methods:"post",url:`${et}/server/component/pick/mix`,headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:tt}},tabs:["group","role","post"],chooseType:["user"],typeOption:{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},propOption:{name:"elementName",id:"elementId",type:"elementType"},onOk:ut=>Je(ut)},null)])}}),f1e={class:"header-left"},m1e={class:"title"},h1e={class:"flex items-center"},g1e=f.defineComponent({__name:"IkPageHead",props:f.mergeModels({headerTitle:{type:String,default:""},headerBorder:{type:Boolean,default:!1},fields:{required:!0,type:Array,default:()=>[]},search:{type:Function,default:null},loading:{type:Boolean,default:!1},tabId:{type:Number||String,default:0},exportBtn:{type:Boolean,default:!1},refreshBtn:{type:Boolean,default:!1},settingBtn:{type:Boolean,default:!0},defaultShow:{type:Boolean,default:!1},headerHeight:{type:Number,default:66}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:["update:modelValue"],setup(c){f.useCssVars(T=>({"59e2b6b4":E}));const r=c,a=f.useModel(c,"modelValue"),l=f.ref(r.defaultShow),i=()=>{l.value=!l.value},m=f.computed(()=>r.fields.filter(T=>!T.onlyForm)),v=f.computed(()=>{var T;return(T=r.fields)==null?void 0:T.filter(N=>N.search)}),C=f.computed(()=>v.value.length),E=`${r.headerHeight}px`;return(T,N)=>{const V=f.resolveComponent("el-card");return f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["ik-page-header",{"show-search":l.value}])},[f.createElementVNode("div",{class:"header",style:f.normalizeStyle({borderColor:c.headerBorder?"var(--ik-border-color)":"transparent",marginBottom:c.headerBorder?"8px":"0"})},[f.createElementVNode("div",f1e,[f.createCommentVNode(' 左侧标题、tab页或自定义内容 v-if="!$slots.headerLeft" '),f.createElementVNode("span",m1e,f.toDisplayString(c.headerTitle),1),f.renderSlot(T.$slots,"headerLeft",{},void 0,!0)]),f.createCommentVNode(" 默认按钮 "),f.createElementVNode("div",h1e,[f.createCommentVNode(" 右侧操作或自定义内容 "),f.renderSlot(T.$slots,"headerRight",{},void 0,!0),c.exportBtn?(f.openBlock(),f.createBlock(f.unref(cr),{key:0,name:"iksvg_xiazai",type:"primary",title:"导出","show-bg":"",size:"default"})):f.createCommentVNode("v-if",!0),C.value?(f.openBlock(),f.createBlock(f.unref(cr),{key:1,name:"iksvg_shaixuan1",size:"default",title:l.value?"收起筛选条件":"展开筛选条件","show-bg":"",onClick:i},null,8,["title"])):f.createCommentVNode("v-if",!0),c.refreshBtn?(f.openBlock(),f.createBlock(f.unref(cr),{key:2,name:"iksvg_zhongzhi1",title:"保留搜索条件刷新","show-bg":"",size:"default",onClick:c.search},null,8,["onClick"])):f.createCommentVNode("v-if",!0),f.createCommentVNode(` <IkSvgIcon\r
34
+ ></i> `),(ce=W[c.propsField.children])!=null&&ce.length&&W.show?(f.openBlock(),f.createBlock(f.unref(cr),{key:1,class:"ikapprove",onClick:q=>V(W,K),name:"iksvg_shouqi"},null,8,["onClick"])):f.createCommentVNode("v-if",!0)],14,Die)]),f.createElementVNode("ul",{class:f.normalizeClass(E(K))},[f.createElementVNode("div",{id:`children${K}`},[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(W[c.propsField.children],(q,X)=>(f.openBlock(),f.createElementBlock("li",{class:f.normalizeClass(T(K,X)),style:f.normalizeStyle(c.needClick?"cursor: pointer;":""),key:X,onClick:Ce=>N(q,K+1+"-"+(X+1))},f.toDisplayString(q.name),15,Rie))),128))],8,Oie)],2)])}),128))]))}}),Hwe="",Iie=Zs(Vs(Nie,[["__scopeId","data-v-240cff4f"]])),s$=c=>c%1===0?c.toString():c.toFixed(2),Bie=(c,r=2)=>{if(c===void 0)return"";if(c===0)return"0 B";const a=["B","KB","MB","GB","TB"],l=Math.floor(Math.log(c)/Math.log(1024));let i=c/Math.pow(1024,l);return(i%1===0?i.toFixed(r||0):i.toFixed(r))+" "+a[l]},Yv=(c,r)=>r?r.startsWith("http")?r:`${c||location.origin}${r}`:"",Uwe="",HQ=c=>({nodeType:{发起人节点:"INITIATOR",审批节点:"APPROVE",抄送节点:"CARBON_COPY",办理节点:"DISPOSE",分支节点:"BRANCH",条件节点:"CONDITION",结束节点:"END",并行分支:"PARALLEL",子流程:"SUB_PROCESS",...c.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",...c.defaultFieldMap},statusWithoutApprover:{自动通过:"AUTO_PASS",自动拒绝:"AUTO_REJECT",自动转交管理员:"TRANSMIT_TO_MANAGER",指定人员审批:"SPECIFIED_USER",...c.statusWithoutApprover},multiple:!1,chooseType:[],statusOption:{发起:"INITIATE",等待:"WAIT",同意:"PASS",撤销:"REVOKE",拒绝:"REJECT",转交:"TRANSFER",加签:"APPEND",退回:"BACK",评论:"COMMENT",待执行:"WAITING",执行中:"RUNNING",...c.defaultStatus},listData:[]}),zQ=(c,r,a)=>{let l="";switch(r){case c.nodeType.审批节点:a&&a.length==1?l="ikapprove-ziyuan":l="ikapprove-shenpi";break;case c.nodeType.办理节点:l="ikapprove-bianji";break;case c.nodeType.抄送节点:l="ikapprove-chaosong";break;case c.nodeType.并行分支:l="ikapprove-fenzhi";break;case c.nodeType.子流程:l="ikapprove-ziliucheng1";break;default:l="ikapprove-ziyuan"}return`ikapprove ${l}`},UQ=["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"],$2=c=>{const r=f.inject("loadUrl"),a=f.computed(()=>c.loadUrl||c.fileUrl||(r==null?void 0:r.value)),l=f.inject("uploadUrl"),i=f.computed(()=>c.action||c.uploadUrl||(l==null?void 0:l.value)),m=f.inject("token"),v=f.computed(()=>c.token||(m==null?void 0:m.value)),C=f.inject("onlyofficeConfig"),E=f.computed(()=>c.onlyofficeConfig||(C==null?void 0:C.value)),T=f.inject("userInfo"),N=f.computed(()=>c.userInfo||(T==null?void 0:T.value)),V=[...UQ,...UQ.map(U=>U.toLocaleUpperCase())];return{cLoadUrl:a,cUploadUrl:i,cToken:v,cOnlyofficeConfig:E,cUserInfo:N,cOnlyofficePreviewType:V}},r$=c=>(f.pushScopeId("data-v-48f27627"),c=c(),f.popScopeId(),c),Mie={class:"approveProcess",id:"approveProcess"},Pie=["id"],Lie={class:"topBlock"},Fie={class:"left"},$ie={class:"nodeBg"},Vie=["src"],Hie={class:"right"},zie={class:"topInfo"},Uie={key:0},Wie={key:0,class:"main-text"},jie={class:"name"},Gie={key:0},Zie={key:0},qie={key:1},Kie=r$(()=>f.createElementVNode("span",{class:"red",style:{margin:"0px 5px"}}," 退回至",-1)),Yie={key:0},Xie={key:0},Qie={key:1},Jie={key:1},eae=r$(()=>f.createElementVNode("div",{class:"main-text"},"抄送人员",-1)),tae={class:"name"},nae={key:0},oae={style:{color:"#000"}},sae={class:"blue",style:{"margin-left":"5px","font-size":"12px"}},rae={key:1},iae={key:0,class:"blue",style:{"font-size":"12px"}},aae={key:1},lae={key:0,class:"blue",style:{"font-size":"12px"}},cae={key:1,class:"blue",style:{"font-size":"12px"}},uae={class:"time"},dae={key:0},fae={key:1},mae=["onClick"],hae=["onClick"],gae={key:0,class:"opinion"},pae={key:0},vae={key:1},yae=r$(()=>f.createElementVNode("span",{class:"ik-text-primary"},"添加审批人",-1)),bae={style:{color:"var(--el-text-color-primary)","margin-left":"8px"}},Cae={key:2,class:"annexImage"},_ae={key:3,class:"approveList"},wae={class:"nodeBg-list"},Sae=["src"],Eae={key:1},kae={key:2,class:"ikapprove ikapprove-duihao2 green read"},xae=["title"],Aae={key:0,class:"branch"},Tae={class:"branch-card"},Dae={class:"branch-name"},Oae={name:"IkingApprovalProcessDetail"},Rae=f.defineComponent({...Oae,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(c,{emit:r}){const a=c,{cLoadUrl:l}=$2(a),i=f.reactive(HQ(a));f.watch(()=>a.dataList,N=>{N&&(f.nextTick(()=>{i.listData=N}),setTimeout(()=>{a.returnNode.length&&m()},500))},{deep:!0}),f.onMounted(()=>{a.dataList.length&&(i.listData=a.dataList,setTimeout(()=>{a.returnNode.length&&m()},500))});const m=()=>{let N=null;if(a!=null&&a.returnNode)for(N of a==null?void 0:a.returnNode){if(isNaN(N[1]))return;let V=Array.from(new Array(N[1]+1).keys()).slice(N[0]);f.nextTick(()=>{v(V)})}},v=N=>{var ce,q,X;let V=document.createElement("div"),U=document.getElementById("approveProcess"),z=0,W=(ce=document.getElementById(`${N[0]}`))==null?void 0:ce.offsetWidth,K=(q=document.getElementById(`${N[0]}`))==null?void 0:q.offsetLeft,Z=(X=document.getElementById(`${N[0]}`))==null?void 0:X.offsetTop;N.forEach(Ce=>{let st=document.getElementById(`${Ce}`);z+=st.offsetHeight}),setTimeout(()=>{V.style.width=W+32+"px",V.style.height=z+"px",V.style.background="#f9f9f9",V.style.position="absolute",V.style.top=Z-16+"px",V.style.left=K-16+"px",V.style.zIndex=-1,U==null||U.appendChild(V)})},C=(N,V,U)=>{var K,Z;let z=(K=i.listData)==null?void 0:K.findIndex(ce=>ce.lineType=="dashed"),W="";if(U&&((Z=U[i.defaultFile.approvePersonList])==null?void 0:Z.findIndex(q=>q[i.defaultFile.approveStatus]===i.statusOption.执行中))>-1)return"ikapprove ikapprove-dengdai orange";switch(N){case i.statusOption.发起:W="ikapprove-duihao2 green";break;case i.statusOption.执行中:W=z==V?"ikapprove-dengdai orange":"";break;case i.statusOption.同意:W="ikapprove-duihao2 green";break;case i.statusOption.拒绝:W="ikapprove-jujue red";break;case i.statusOption.转交:W="ikapprove-zhuanjiao blue";break;case i.statusOption.加签:W="ikapprove-tianjia blue";break;case i.statusOption.退回:W="ikapprove-s_fanhui2 red";break;case i.statusOption.评论:W="ikapprove-pinglun1 blue";break}return`ikapprove ${W}`},E=(N,V)=>{N.show=!N.show;let U=document.getElementById(`${N[i.defaultFile.nodeId]}`),z=Array.from(U==null?void 0:U.getElementsByClassName("approveList"));for(let W of z)W.style.display=V},T=N=>Yv(l.value,N);return(N,V)=>{const U=f.resolveComponent("el-image"),z=f.resolveComponent("IkingApprovalProcessDetail");return f.openBlock(),f.createElementBlock("div",Mie,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(i.listData,(W,K)=>{var Z,ce,q,X,Ce,st,Ne,ee,xe,et;return f.openBlock(),f.createElementBlock("div",{class:"approveBlock",id:W[i.defaultFile.nodeId],key:W[i.defaultFile.nodeId]},[f.createElementVNode("div",Lie,[f.createElementVNode("div",Fie,[f.createElementVNode("span",$ie,[f.createCommentVNode(' 用户列表长度等于1, :src="formatUrl(it)"并且存在头像 '),((Z=W[i.defaultFile.approvePersonList])==null?void 0:Z.length)==1&&W[i.defaultFile.approvePersonList][0].userAvatar?(f.openBlock(),f.createElementBlock("img",{key:0,style:{width:"100%",height:"100%","border-radius":"10px"},src:T(W[i.defaultFile.approvePersonList][0].userAvatar),alt:""},null,8,Vie)):(f.openBlock(),f.createElementBlock(f.Fragment,{key:1},[f.createCommentVNode(" 否则显示对应节点 "),f.createElementVNode("i",{class:f.normalizeClass(f.unref(zQ)(i,W[i.defaultFile.nodeType],W[i.defaultFile.approvePersonList]))},null,2)],2112)),f.createCommentVNode(" 审批状态图标 "),f.createElementVNode("i",{class:f.normalizeClass(C(W[i.defaultFile.approveStatus],K,W))},null,2)])]),f.createElementVNode("div",Hie,[f.createElementVNode("div",zie,[f.createElementVNode("div",null,[f.createCommentVNode(" 不是抄送节点 "),i.nodeType.抄送节点!==W[i.defaultFile.nodeType]?(f.openBlock(),f.createElementBlock("div",Uie,[f.createCommentVNode(" 撤销,评论不显示节点名称 "),W[i.defaultFile.approveStatus]!=i.statusOption.撤销&&W[i.defaultFile.approveStatus]!=i.statusOption.评论&&W[i.defaultFile.nodeType]!==i.nodeType.并行分支?(f.openBlock(),f.createElementBlock("div",Wie,f.toDisplayString(W[i.defaultFile.nodeTypeName]),1)):f.createCommentVNode("v-if",!0),f.createCommentVNode(" 名字+审批状态 "),f.createElementVNode("div",jie,[f.createCommentVNode(" 已审批节点文本 "),W[i.defaultFile.lineType]=="solid"?(f.openBlock(),f.createElementBlock("div",Gie,[f.createElementVNode("span",{style:f.normalizeStyle({color:W[i.defaultFile.approveStatus]==i.statusOption.评论?"#000":""})},f.toDisplayString(W[i.defaultFile.originator]),5),f.createCommentVNode(" 发起,退回不显示状态 "),W[i.defaultFile.approveStatusName]&&W[i.defaultFile.approveStatus]!=i.statusOption.发起&&W[i.defaultFile.approveStatus]!=i.statusOption.退回?(f.openBlock(),f.createElementBlock("span",Zie,f.toDisplayString(W[i.defaultFile.approveStatus]==i.statusOption.评论?" 添加了评论":W!=null&&W.nodeActionAliasName?`(已${W.nodeActionAliasName})`:`(${W[i.defaultFile.approveStatusName]})`),1)):f.createCommentVNode("v-if",!0),f.createCommentVNode(" 退回状态显示 "),W[i.defaultFile.approveStatus]==i.statusOption.退回?(f.openBlock(),f.createElementBlock("span",qie,[Kie,f.createTextVNode(" "+f.toDisplayString(W[i.defaultFile.backToInstanceNodeName]||W[i.defaultFile.backToRecordNodeName]),1)])):f.createCommentVNode("v-if",!0)])):(f.openBlock(),f.createElementBlock(f.Fragment,{key:1},[f.createCommentVNode(" 待审批节点 "),f.createElementVNode("div",null,[((ce=W[i.defaultFile.approvePersonList])==null?void 0:ce.length)==1?(f.openBlock(),f.createElementBlock("span",Yie,[f.createTextVNode(f.toDisplayString(W[i.defaultFile.originator])+" ",1),W[i.defaultFile.approveStatus]==i.statusOption.等待?(f.openBlock(),f.createElementBlock("span",Xie,f.toDisplayString(W!=null&&W.nodeActionAliasName?`(已${W.nodeActionAliasName})`:`(${W[i.defaultFile.approveStatusName]})`),1)):f.createCommentVNode("v-if",!0)])):W[i.defaultFile.approvePersonList]?(f.openBlock(),f.createElementBlock("span",Qie,f.toDisplayString(`${(q=W[i.defaultFile.approvePersonList])==null?void 0:q.length}人${W[i.defaultFile.approveTypeName]}`),1)):f.createCommentVNode("v-if",!0)])],2112))])])):(f.openBlock(),f.createElementBlock("div",Jie,[eae,f.createElementVNode("div",tae,[f.createCommentVNode(" 抄送一人时 "),((X=W[i.defaultFile.approvePersonList])==null?void 0:X.length)==1?(f.openBlock(),f.createElementBlock("span",nae,[f.createElementVNode("span",null,[f.createTextVNode("已抄送给 "),f.createElementVNode("span",oae,f.toDisplayString(W[i.defaultFile.approvePersonList][0].userName),1)]),f.createElementVNode("span",sae,f.toDisplayString(W[i.defaultFile.approvePersonList][0].status==="END"?"已读":"未读"),1)])):f.createCommentVNode("v-if",!0),f.createCommentVNode(" 抄送多人时 "),((Ce=W[i.defaultFile.approvePersonList])==null?void 0:Ce.length)>1?(f.openBlock(),f.createElementBlock("span",rae,[f.createTextVNode(f.toDisplayString(`已抄送${(st=W[i.defaultFile.approvePersonList])==null?void 0:st.length}人`)+" ",1),W[i.defaultFile.allRead]?(f.openBlock(),f.createElementBlock("span",iae," 全部已读 ")):(f.openBlock(),f.createElementBlock("span",aae,[W[i.defaultFile.read]?f.createCommentVNode("v-if",!0):(f.openBlock(),f.createElementBlock("span",lae," 全部未读 ")),W[i.defaultFile.read]?(f.openBlock(),f.createElementBlock("span",cae,f.toDisplayString(W[i.defaultFile.read])+"人已读 ",1)):f.createCommentVNode("v-if",!0)]))])):f.createCommentVNode("v-if",!0)])]))]),f.createElementVNode("div",uae,[f.createCommentVNode(" 不是抄送节点,展示时间 "),W[i.defaultFile.nodeType]!=i.nodeType.抄送节点&&W[i.defaultFile.approveStatus]!==i.statusOption.等待?(f.openBlock(),f.createElementBlock("span",dae,f.toDisplayString(f.unref(To.ikDate).toDateTime(W[i.defaultFile.operationTime],"MM/DD HH:mm")),1)):f.createCommentVNode("v-if",!0),f.createCommentVNode(" 是抄送节点,并且抄送人员大于1时,展示图标 "),W[i.defaultFile.nodeType]==i.nodeType.抄送节点&&((Ne=W[i.defaultFile.approvePersonList])==null?void 0:Ne.length)>1?(f.openBlock(),f.createElementBlock("span",fae,[W!=null&&W.show?(f.openBlock(),f.createElementBlock("i",{key:0,class:"ikapprove ikapprove-a-putongjiantouzhankai",onClick:tt=>E(W,"grid")},null,8,mae)):(f.openBlock(),f.createElementBlock("i",{key:1,onClick:tt=>E(W,"none"),class:"ikapprove ikapprove-a-putongjiantoushouqi"},null,8,hae))])):f.createCommentVNode("v-if",!0)])])])]),f.createElementVNode("div",{class:"bottomBlock",style:f.normalizeStyle({borderLeft:K==i.listData.length-1?"":`2px ${W[i.defaultFile.lineType]||"dashed"} var(--el-border-color)`})},[f.createCommentVNode(" 审批意见 "),W[i.defaultFile.approveOpinion]||W[i.defaultFile.approveStatus]==i.statusOption.加签?(f.openBlock(),f.createElementBlock("div",gae,[W[i.defaultFile.approveOpinion]?(f.openBlock(),f.createElementBlock("span",pae,f.toDisplayString(W[i.defaultFile.approveOpinion]),1)):f.createCommentVNode("v-if",!0),W[i.defaultFile.approveStatus]==i.statusOption.加签?(f.openBlock(),f.createElementBlock("span",vae,[yae,(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(W[i.defaultFile.countersignPer],(tt,je)=>(f.openBlock(),f.createElementBlock("span",bae,f.toDisplayString(tt==null?void 0:tt.userName)+f.toDisplayString(je<W[i.defaultFile.countersignPer].length-1?"、":""),1))),256))])):f.createCommentVNode("v-if",!0)])):f.createCommentVNode("v-if",!0),f.createCommentVNode(" 附件 "),(ee=W[i.defaultFile.attachment])!=null&&ee.length?(f.openBlock(),f.createBlock(f.unref(TR),{key:1,list:W[i.defaultFile.attachment]},null,8,["list"])):f.createCommentVNode("v-if",!0),f.createCommentVNode(" 附件图片 "),(xe=W[i.defaultFile.attachmentImg])!=null&&xe.length?(f.openBlock(),f.createElementBlock("div",Cae,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(W[i.defaultFile.attachmentImg],(tt,je)=>(f.openBlock(),f.createElementBlock("div",{class:"image",key:je},[f.createVNode(U,{src:T(tt),"preview-src-list":W[i.defaultFile.attachmentImg].map(be=>T(be)),fit:"cover","z-index":"9999","zoom-rate":1.2,alt:T(tt)},null,8,["src","preview-src-list","alt"])]))),128))])):f.createCommentVNode("v-if",!0),f.createCommentVNode(" 抄送节点或是等待审批状态并且列表长度大于1 "),(W[i.defaultFile.nodeType]==i.nodeType.抄送节点||W[i.defaultFile.approveStatus]==i.statusOption.等待)&&((et=W[i.defaultFile.approvePersonList])==null?void 0:et.length)>1?(f.openBlock(),f.createElementBlock("div",_ae,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(W[i.defaultFile.approvePersonList],tt=>(f.openBlock(),f.createElementBlock("div",{class:"perBlock",key:tt.userName},[f.createElementVNode("span",wae,[tt.userAvatar?(f.openBlock(),f.createElementBlock("img",{key:0,style:{width:"100%",height:"100%","border-radius":"50%"},src:T(tt.userAvatar),alt:""},null,8,Sae)):(f.openBlock(),f.createElementBlock("span",Eae,f.toDisplayString(tt.userName.slice(-2)),1)),tt.status==="END"?(f.openBlock(),f.createElementBlock("i",kae)):f.createCommentVNode("v-if",!0)]),f.createElementVNode("div",{class:"main-text",title:tt.userName},f.toDisplayString(tt.userName),9,xae)]))),128))])):f.createCommentVNode("v-if",!0)],4),W[i.defaultFile.nodeType]===i.nodeType.并行分支?(f.openBlock(),f.createElementBlock("div",Aae,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(W[i.defaultFile.parallelInstances],tt=>(f.openBlock(),f.createElementBlock("div",Tae,[f.createElementVNode("div",Dae,f.toDisplayString(tt.name),1),f.createVNode(z,f.mergeProps({ref_for:!0},a,{"data-list":(tt==null?void 0:tt.processInstanceNodes)||[]}),null,16,["data-list"])]))),256))])):f.createCommentVNode("v-if",!0)],8,Pie)}),128))])}}}),Wwe="",Nae=Zs(Vs(Rae,[["__scopeId","data-v-48f27627"]])),WQ=c=>(f.pushScopeId("data-v-0f9a3920"),c=c(),f.popScopeId(),c),Iae={class:"approveProcess",id:"approveProcess"},Bae={class:"node"},Mae={class:"nodeBg"},Pae={key:0,class:"info"},Lae={class:"explain"},Fae={key:0},$ae={key:0},Vae={key:1},Hae={key:0},zae={key:1},Uae={class:"personlist"},Wae={style:{width:"58px"}},jae={class:"avatar"},Gae=["src"],Zae={key:1,class:"nodeBg"},qae=["onClick"],Kae=["title"],Yae={key:0,class:"sign"},Xae={key:0},Qae=["onClick"],Jae={key:0,class:"required"},ele=WQ(()=>f.createElementVNode("i",{class:"ikapprove ikapprove-xinzeng"},null,-1)),tle={key:1,class:"node-branchs"},nle=WQ(()=>f.createElementVNode("div",{class:"branch-line"},null,-1)),ole={style:{flex:"1"}},sle={class:"node-branch"},rle={name:"IkApprovalProcess"},ile=f.defineComponent({...rle,props:{pickerUrl:{type:String,default:""},loadUrl:{type:String,default:""},dataList:{type:Array,default:()=>[]},defaultNodeType:{type:Object,default:()=>({})},defaultFieldMap:{type:Object,default:()=>({})},statusWithoutApprover:{type:Object,default:()=>({})}},setup(c,{expose:r}){const a=c,{cLoadUrl:l}=$2(a),i=To.ikStore.local.getItem("token")||"Bearer 841b7a7b0d9c4021b1655192c28ac61b",m=f.ref("sys");function v(K){const Z=window.location.search;return new URLSearchParams(Z).get(K)}function C(){var Z;const K=v("xTenant")||((Z=To.ikStore.local.getItem("tenant"))==null?void 0:Z.code);K&&(m.value=K)}C();const E=f.reactive(HQ(a)),T=async K=>{var Z;if(K.multiple=!K[E.defaultFile.singleApproval]||K[E.defaultFile.isShowAddCopy],K.handList=K[E.defaultFile.approvePersonList]?K[E.defaultFile.approvePersonList]:[],K[E.defaultFile.nodeType]===E.nodeType.抄送节点)K.handList.forEach(ce=>{ce.elementName||(ce.elementName=ce.userName,ce.elementId=ce.userId,ce.avatar=ce.userAvatar),ce.elementType="USER",ce.disabled=!0}),K.chooseType=["user"],K.userList=[],K.depList=[];else switch(K[E.defaultFile.initiatorSpecifiedScopeType]){case"ALL":K.chooseType=["dep_user"],K.userList=[],K.depList=[];break;default:K.chooseType=["user"],K.userList=K.userList?K.userList:(Z=K[E.defaultFile.initiatorSpecifiedScope])==null?void 0:Z.map(ce=>({...ce,elementName:(ce==null?void 0:ce.executorName)||(ce==null?void 0:ce.userName),elementId:(ce==null?void 0:ce.executorId)||(ce==null?void 0:ce.userId),avatar:((ce==null?void 0:ce.executorAvatar)||(ce==null?void 0:ce.userAvatar))&&N((ce==null?void 0:ce.executorAvatar)||(ce==null?void 0:ce.userAvatar))||"",elementType:"USER"}))}f.nextTick(()=>{K.isShow=!0})},N=K=>{let Z="";return K.includes("http")||K.includes("https")?Z=K:Z=l.value?`${K.includes(l.value)?"":l.value}${K}`:`${location.origin+location.pathname}server/oss/download?fileUrl=${K}`,Z},V=(K,Z)=>{a.dataList[Z].handList=K.list;let q=(a.dataList[Z][E.defaultFile.approvePersonList]||[]).filter(Ce=>!Ce.canDele),X=K.list.map(Ce=>({...Ce,userName:Ce.elementName,userAvatar:Ce.avatar,canDele:!0}));a.dataList[Z][E.defaultFile.approvePersonList]=q.concat(X)},U=(K,Z)=>{a.dataList[K][E.defaultFile.approvePersonList].splice(Z,1),a.dataList[K].handList=a.dataList[K][E.defaultFile.approvePersonList]},z=()=>{let K=!0;return a.dataList.forEach(Z=>{var ce;Z.required=!1,Z[E.defaultFile.nodeType]==E.nodeType.审批节点&&Z[E.defaultFile.isShowAdd]&&((ce=Z[E.defaultFile.approvePersonList])!=null&&ce.length||(K=!1,Z.required=!0))}),K},W=f.computed(()=>({propOption:{name:"elementName",id:"elementId",type:"elementType",avatar:"avatar"},typeOption:{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},api:{methods:"post",url:a.pickerUrl,headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:i,"X-Tenant":m.value}}}));return r({requiredVerification:z}),(K,Z)=>{const ce=f.resolveComponent("IkApprovalProcess");return f.openBlock(),f.createElementBlock("div",Iae,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(a.dataList,(q,X)=>{var Ce,st,Ne,ee;return f.openBlock(),f.createElementBlock("div",{class:"content",key:q.id},[f.createCommentVNode(" 审批节点类型 "),f.createElementVNode("div",Bae,[f.createElementVNode("span",Mae,[f.createElementVNode("i",{class:f.normalizeClass(f.unref(zQ)(E,q[E.defaultFile.nodeType]))},null,2)]),f.createElementVNode("div",{class:"line",style:f.normalizeStyle({"border-left":X===a.dataList.length-1?"":"2px solid var(--el-border-color)"})},null,4)]),q[E.defaultFile.nodeType]!==E.nodeType.并行分支?(f.openBlock(),f.createElementBlock("div",Pae,[f.createElementVNode("div",null,[f.createElementVNode("div",null,f.toDisplayString(q[E.defaultFile.nodeTypeName]),1),f.createElementVNode("div",Lae,[f.createCommentVNode(" 抄送节点 "),q[E.defaultFile.nodeType]==E.nodeType.抄送节点?(f.openBlock(),f.createElementBlock("span",Fae,[q[E.defaultFile.approvePersonList].length?(f.openBlock(),f.createElementBlock("span",$ae,f.toDisplayString(`抄送${q[E.defaultFile.approvePersonList].length}人`),1)):f.createCommentVNode("v-if",!0),q[E.defaultFile.isShowAdd]?(f.openBlock(),f.createElementBlock("span",Vae,",可添加抄送人")):f.createCommentVNode("v-if",!0)])):(f.openBlock(),f.createElementBlock(f.Fragment,{key:1},[f.createCommentVNode(" 审批节点 "),f.createElementVNode("span",null,[f.createCommentVNode(" 存在审批人时 "),(Ce=q[E.defaultFile.approvePersonList])!=null&&Ce.length?(f.openBlock(),f.createElementBlock("span",Hae,f.toDisplayString(((st=q[E.defaultFile.approvePersonList])==null?void 0:st.length)==1?"1人审批":`${(Ne=q[E.defaultFile.approvePersonList])==null?void 0:Ne.length}人${q[E.defaultFile.multiExecutorTypeName]}`),1)):[E.statusWithoutApprover.自动通过,E.statusWithoutApprover.自动拒绝].includes(q[E.defaultFile.approveType])?(f.openBlock(),f.createElementBlock("span",zae,f.toDisplayString(q[E.defaultFile.approveTypeName]),1)):q[E.defaultFile.executorEmptyStrategy]&&q[E.defaultFile.executorEmpty]?(f.openBlock(),f.createElementBlock(f.Fragment,{key:2},[f.createCommentVNode(" 没有审批人,并且有指定默认审批方式 "),f.createElementVNode("span",null,[f.createTextVNode(" 未找到审批人,"),f.createElementVNode("span",null,f.toDisplayString(q[E.defaultFile.executorEmptyStrategy]==E.statusWithoutApprover.自动通过?"将自动通过":q[E.defaultFile.executorEmptyStrategy]==E.statusWithoutApprover.自动转交管理员?"自动转交给管理员":q[E.defaultFile.executorEmptyStrategy]==E.statusWithoutApprover.指定人员审批?`将自动转给指定成员${q[E.defaultFile.reserveExecutorUsers]&&q[E.defaultFile.reserveExecutorUsers][0].userName}`:""),1)])],2112)):[E.nodeType.并行分支,E.nodeType.子流程].includes(q[E.defaultFile.nodeType])?f.createCommentVNode("v-if",!0):(f.openBlock(),f.createElementBlock("span",{key:3,class:f.normalizeClass(q.required?"warn":"")}," 请选择"+f.toDisplayString(q[E.defaultFile.nodeType]===E.nodeType.办理节点?"办理人":"审批人"),3))])],2112))])]),f.createElementVNode("div",Uae,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(q[E.defaultFile.approvePersonList],(xe,et)=>{var tt;return f.openBlock(),f.createElementBlock("div",{class:"list",key:xe.userId},[f.createElementVNode("div",Wae,[f.createElementVNode("div",jae,[xe.userAvatar?(f.openBlock(),f.createElementBlock("img",{key:0,src:N(xe.userAvatar),alt:""},null,8,Gae)):(f.openBlock(),f.createElementBlock("div",Zae,[f.createElementVNode("span",null,f.toDisplayString(xe.userName.slice(-2)),1)])),xe.canDele?(f.openBlock(),f.createElementBlock("i",{key:2,onClick:je=>U(X,et),class:"ikapprove ikapprove-shanchu1"},null,8,qae)):f.createCommentVNode("v-if",!0)]),f.createElementVNode("div",{class:"name",title:xe.userName},f.toDisplayString(xe.userName),9,Kae)]),f.createCommentVNode(" 显示添加人按钮,不是单选且已选中一个人的情况,显示图标 "),q[E.defaultFile.isShowAdd]&&!(q[E.defaultFile.singleApproval]&&((tt=q[E.defaultFile.approvePersonList])==null?void 0:tt.length)==1)?(f.openBlock(),f.createElementBlock("span",Yae,[f.createCommentVNode(" 抄送默认 "),q[E.defaultFile.nodeType]==E.nodeType.抄送节点?(f.openBlock(),f.createElementBlock("span",Xae,"+")):(f.openBlock(),f.createElementBlock(f.Fragment,{key:1},[f.createCommentVNode(" 审批 "),f.createElementVNode("span",null,f.toDisplayString(q[E.defaultFile.multiExecutorType]=="ANY"?"/":q[E.defaultFile.multiExecutorType]=="ALL"?"+":">"),1)],2112))])):f.createCommentVNode("v-if",!0)])}),128)),f.createCommentVNode(" 显示添加人按钮,不是单选且已选中一个人的情况,显示按钮 (item[state.defaultFile.isShowAdd] && "),q[E.defaultFile.isShowAdd]&&!(q[E.defaultFile.singleApproval]&&((ee=q[E.defaultFile.approvePersonList])==null?void 0:ee.length)==1)||q[E.defaultFile.isShowAddCopy]?(f.openBlock(),f.createElementBlock("span",{key:0,class:"addBg",onClick:xe=>T(q)},[q[E.defaultFile.nodeType]==E.nodeType.审批节点?(f.openBlock(),f.createElementBlock("span",Jae)):f.createCommentVNode("v-if",!0),ele],8,Qae)):f.createCommentVNode("v-if",!0),f.createCommentVNode(" 添加人组件 "),f.createVNode(f.unref(yA),f.mergeProps({modelValue:q.handList,"onUpdate:modelValue":xe=>q.handList=xe,show:q.isShow,"onUpdate:show":xe=>q.isShow=xe,onOk:xe=>V(xe,X),multiple:q.multiple,"dep-list":q.depList,"user-list":q.userList,"organization-list":q.organizationList,ref_for:!0},W.value,{chooseType:q.chooseType}),null,16,["modelValue","onUpdate:modelValue","show","onUpdate:show","onOk","multiple","dep-list","user-list","organization-list","chooseType"])])])):(f.openBlock(),f.createElementBlock("div",tle,[nle,f.createElementVNode("div",ole,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(q.parallelInstances,(xe,et)=>(f.openBlock(),f.createElementBlock("div",{key:et,class:f.normalizeClass(`branch branch-${et}`)},[f.createElementVNode("div",sle,f.toDisplayString(xe.name),1),f.createVNode(ce,f.mergeProps({ref_for:!0},a,{dataList:xe.processInstanceNodes,style:{"margin-left":"20px"}}),null,16,["dataList"])],2))),128))])]))])}),128))])}}}),Gwe="",ale=Zs(Vs(ile,[["__scopeId","data-v-0f9a3920"]]));var jQ={code:"zh-cn",week:{dow:1,doy:4},buttonText:{prev:"上月",next:"下月",today:"今天",year:"年",month:"月",week:"周",day:"日",list:"日程"},weekText:"周",allDayText:"全天",moreLinkText(c){return"另外 "+c+" 个"},noEventsText:"没有事件显示"},jO,Es,GQ,ZQ,PS,V2,qQ,KQ,YQ,GO={},XQ=[],lle=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Xv(c,r){for(var a in r)c[a]=r[a];return c}function QQ(c){var r=c.parentNode;r&&r.removeChild(c)}function rt(c,r,a){var l,i,m,v={};for(m in r)m=="key"?l=r[m]:m=="ref"?i=r[m]:v[m]=r[m];if(arguments.length>2&&(v.children=arguments.length>3?jO.call(arguments,2):a),typeof c=="function"&&c.defaultProps!=null)for(m in c.defaultProps)v[m]===void 0&&(v[m]=c.defaultProps[m]);return ZO(c,v,l,i,null)}function ZO(c,r,a,l,i){var m={type:c,props:r,key:a,ref:l,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++GQ};return i==null&&Es.vnode!=null&&Es.vnode(m),m}function Bd(){return{current:null}}function Ya(c){return c.children}function cle(c,r,a,l,i){var m;for(m in a)m==="children"||m==="key"||m in r||qO(c,m,null,a[m],l);for(m in r)i&&typeof r[m]!="function"||m==="children"||m==="key"||m==="value"||m==="checked"||a[m]===r[m]||qO(c,m,r[m],a[m],l)}function JQ(c,r,a){r[0]==="-"?c.setProperty(r,a??""):c[r]=a==null?"":typeof a!="number"||lle.test(r)?a:a+"px"}function qO(c,r,a,l,i){var m;e:if(r==="style")if(typeof a=="string")c.style.cssText=a;else{if(typeof l=="string"&&(c.style.cssText=l=""),l)for(r in l)a&&r in a||JQ(c.style,r,"");if(a)for(r in a)l&&a[r]===l[r]||JQ(c.style,r,a[r])}else if(r[0]==="o"&&r[1]==="n")m=r!==(r=r.replace(/Capture$/,"")),r=r.toLowerCase()in c?r.toLowerCase().slice(2):r.slice(2),c.l||(c.l={}),c.l[r+m]=a,a?l||c.addEventListener(r,m?tJ:eJ,m):c.removeEventListener(r,m?tJ:eJ,m);else if(r!=="dangerouslySetInnerHTML"){if(i)r=r.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(r!=="width"&&r!=="height"&&r!=="href"&&r!=="list"&&r!=="form"&&r!=="tabIndex"&&r!=="download"&&r in c)try{c[r]=a??"";break e}catch{}typeof a=="function"||(a==null||a===!1&&r.indexOf("-")==-1?c.removeAttribute(r):c.setAttribute(r,a))}}function eJ(c){PS=!0;try{return this.l[c.type+!1](Es.event?Es.event(c):c)}finally{PS=!1}}function tJ(c){PS=!0;try{return this.l[c.type+!0](Es.event?Es.event(c):c)}finally{PS=!1}}function sm(c,r){this.props=c,this.context=r}function sA(c,r){if(r==null)return c.__?sA(c.__,c.__.__k.indexOf(c)+1):null;for(var a;r<c.__k.length;r++)if((a=c.__k[r])!=null&&a.__e!=null)return a.__e;return typeof c.type=="function"?sA(c):null}function nJ(c){var r,a;if((c=c.__)!=null&&c.__c!=null){for(c.__e=c.__c.base=null,r=0;r<c.__k.length;r++)if((a=c.__k[r])!=null&&a.__e!=null){c.__e=c.__c.base=a.__e;break}return nJ(c)}}function ule(c){PS?setTimeout(c):KQ(c)}function i$(c){(!c.__d&&(c.__d=!0)&&V2.push(c)&&!KO.__r++||qQ!==Es.debounceRendering)&&((qQ=Es.debounceRendering)||ule)(KO)}function KO(){var c,r,a,l,i,m,v,C;for(V2.sort(function(E,T){return E.__v.__b-T.__v.__b});c=V2.shift();)c.__d&&(r=V2.length,l=void 0,i=void 0,v=(m=(a=c).__v).__e,(C=a.__P)&&(l=[],(i=Xv({},m)).__v=m.__v+1,a$(C,m,i,a.__n,C.ownerSVGElement!==void 0,m.__h!=null?[v]:null,l,v??sA(m),m.__h),aJ(l,m),m.__e!=v&&nJ(m)),V2.length>r&&V2.sort(function(E,T){return E.__v.__b-T.__v.__b}));KO.__r=0}function oJ(c,r,a,l,i,m,v,C,E,T){var N,V,U,z,W,K,Z,ce=l&&l.__k||XQ,q=ce.length;for(a.__k=[],N=0;N<r.length;N++)if((z=a.__k[N]=(z=r[N])==null||typeof z=="boolean"?null:typeof z=="string"||typeof z=="number"||typeof z=="bigint"?ZO(null,z,null,null,z):Array.isArray(z)?ZO(Ya,{children:z},null,null,null):z.__b>0?ZO(z.type,z.props,z.key,z.ref?z.ref:null,z.__v):z)!=null){if(z.__=a,z.__b=a.__b+1,(U=ce[N])===null||U&&z.key==U.key&&z.type===U.type)ce[N]=void 0;else for(V=0;V<q;V++){if((U=ce[V])&&z.key==U.key&&z.type===U.type){ce[V]=void 0;break}U=null}a$(c,z,U=U||GO,i,m,v,C,E,T),W=z.__e,(V=z.ref)&&U.ref!=V&&(Z||(Z=[]),U.ref&&Z.push(U.ref,null,z),Z.push(V,z.__c||W,z)),W!=null?(K==null&&(K=W),typeof z.type=="function"&&z.__k===U.__k?z.__d=E=sJ(z,E,c):E=rJ(c,z,U,ce,W,E),typeof a.type=="function"&&(a.__d=E)):E&&U.__e==E&&E.parentNode!=c&&(E=sA(U))}for(a.__e=K,N=q;N--;)ce[N]!=null&&(typeof a.type=="function"&&ce[N].__e!=null&&ce[N].__e==a.__d&&(a.__d=iJ(l).nextSibling),cJ(ce[N],ce[N]));if(Z)for(N=0;N<Z.length;N++)lJ(Z[N],Z[++N],Z[++N])}function sJ(c,r,a){for(var l,i=c.__k,m=0;i&&m<i.length;m++)(l=i[m])&&(l.__=c,r=typeof l.type=="function"?sJ(l,r,a):rJ(a,l,l,i,l.__e,r));return r}function YO(c,r){return r=r||[],c==null||typeof c=="boolean"||(Array.isArray(c)?c.some(function(a){YO(a,r)}):r.push(c)),r}function rJ(c,r,a,l,i,m){var v,C,E;if(r.__d!==void 0)v=r.__d,r.__d=void 0;else if(a==null||i!=m||i.parentNode==null)e:if(m==null||m.parentNode!==c)c.appendChild(i),v=null;else{for(C=m,E=0;(C=C.nextSibling)&&E<l.length;E+=1)if(C==i)break e;c.insertBefore(i,m),v=m}return v!==void 0?v:i.nextSibling}function iJ(c){var r,a,l;if(c.type==null||typeof c.type=="string")return c.__e;if(c.__k){for(r=c.__k.length-1;r>=0;r--)if((a=c.__k[r])&&(l=iJ(a)))return l}return null}function a$(c,r,a,l,i,m,v,C,E){var T,N,V,U,z,W,K,Z,ce,q,X,Ce,st,Ne,ee,xe=r.type;if(r.constructor!==void 0)return null;a.__h!=null&&(E=a.__h,C=r.__e=a.__e,r.__h=null,m=[C]),(T=Es.__b)&&T(r);try{e:if(typeof xe=="function"){if(Z=r.props,ce=(T=xe.contextType)&&l[T.__c],q=T?ce?ce.props.value:T.__:l,a.__c?K=(N=r.__c=a.__c).__=N.__E:("prototype"in xe&&xe.prototype.render?r.__c=N=new xe(Z,q):(r.__c=N=new sm(Z,q),N.constructor=xe,N.render=fle),ce&&ce.sub(N),N.props=Z,N.state||(N.state={}),N.context=q,N.__n=l,V=N.__d=!0,N.__h=[],N._sb=[]),N.__s==null&&(N.__s=N.state),xe.getDerivedStateFromProps!=null&&(N.__s==N.state&&(N.__s=Xv({},N.__s)),Xv(N.__s,xe.getDerivedStateFromProps(Z,N.__s))),U=N.props,z=N.state,N.__v=r,V)xe.getDerivedStateFromProps==null&&N.componentWillMount!=null&&N.componentWillMount(),N.componentDidMount!=null&&N.__h.push(N.componentDidMount);else{if(xe.getDerivedStateFromProps==null&&Z!==U&&N.componentWillReceiveProps!=null&&N.componentWillReceiveProps(Z,q),!N.__e&&N.shouldComponentUpdate!=null&&N.shouldComponentUpdate(Z,N.__s,q)===!1||r.__v===a.__v){for(r.__v!==a.__v&&(N.props=Z,N.state=N.__s,N.__d=!1),r.__e=a.__e,r.__k=a.__k,r.__k.forEach(function(et){et&&(et.__=r)}),X=0;X<N._sb.length;X++)N.__h.push(N._sb[X]);N._sb=[],N.__h.length&&v.push(N);break e}N.componentWillUpdate!=null&&N.componentWillUpdate(Z,N.__s,q),N.componentDidUpdate!=null&&N.__h.push(function(){N.componentDidUpdate(U,z,W)})}if(N.context=q,N.props=Z,N.__P=c,Ce=Es.__r,st=0,"prototype"in xe&&xe.prototype.render){for(N.state=N.__s,N.__d=!1,Ce&&Ce(r),T=N.render(N.props,N.state,N.context),Ne=0;Ne<N._sb.length;Ne++)N.__h.push(N._sb[Ne]);N._sb=[]}else do N.__d=!1,Ce&&Ce(r),T=N.render(N.props,N.state,N.context),N.state=N.__s;while(N.__d&&++st<25);N.state=N.__s,N.getChildContext!=null&&(l=Xv(Xv({},l),N.getChildContext())),V||N.getSnapshotBeforeUpdate==null||(W=N.getSnapshotBeforeUpdate(U,z)),ee=T!=null&&T.type===Ya&&T.key==null?T.props.children:T,oJ(c,Array.isArray(ee)?ee:[ee],r,a,l,i,m,v,C,E),N.base=r.__e,r.__h=null,N.__h.length&&v.push(N),K&&(N.__E=N.__=null),N.__e=!1}else m==null&&r.__v===a.__v?(r.__k=a.__k,r.__e=a.__e):r.__e=dle(a.__e,r,a,l,i,m,v,E);(T=Es.diffed)&&T(r)}catch(et){r.__v=null,(E||m!=null)&&(r.__e=C,r.__h=!!E,m[m.indexOf(C)]=null),Es.__e(et,r,a)}}function aJ(c,r){Es.__c&&Es.__c(r,c),c.some(function(a){try{c=a.__h,a.__h=[],c.some(function(l){l.call(a)})}catch(l){Es.__e(l,a.__v)}})}function dle(c,r,a,l,i,m,v,C){var E,T,N,V=a.props,U=r.props,z=r.type,W=0;if(z==="svg"&&(i=!0),m!=null){for(;W<m.length;W++)if((E=m[W])&&"setAttribute"in E==!!z&&(z?E.localName===z:E.nodeType===3)){c=E,m[W]=null;break}}if(c==null){if(z===null)return document.createTextNode(U);c=i?document.createElementNS("http://www.w3.org/2000/svg",z):document.createElement(z,U.is&&U),m=null,C=!1}if(z===null)V===U||C&&c.data===U||(c.data=U);else{if(m=m&&jO.call(c.childNodes),T=(V=a.props||GO).dangerouslySetInnerHTML,N=U.dangerouslySetInnerHTML,!C){if(m!=null)for(V={},W=0;W<c.attributes.length;W++)V[c.attributes[W].name]=c.attributes[W].value;(N||T)&&(N&&(T&&N.__html==T.__html||N.__html===c.innerHTML)||(c.innerHTML=N&&N.__html||""))}if(cle(c,U,V,i,C),N)r.__k=[];else if(W=r.props.children,oJ(c,Array.isArray(W)?W:[W],r,a,l,i&&z!=="foreignObject",m,v,m?m[0]:a.__k&&sA(a,0),C),m!=null)for(W=m.length;W--;)m[W]!=null&&QQ(m[W]);C||("value"in U&&(W=U.value)!==void 0&&(W!==c.value||z==="progress"&&!W||z==="option"&&W!==V.value)&&qO(c,"value",W,V.value,!1),"checked"in U&&(W=U.checked)!==void 0&&W!==c.checked&&qO(c,"checked",W,V.checked,!1))}return c}function lJ(c,r,a){try{typeof c=="function"?c(r):c.current=r}catch(l){Es.__e(l,a)}}function cJ(c,r,a){var l,i;if(Es.unmount&&Es.unmount(c),(l=c.ref)&&(l.current&&l.current!==c.__e||lJ(l,null,r)),(l=c.__c)!=null){if(l.componentWillUnmount)try{l.componentWillUnmount()}catch(m){Es.__e(m,r)}l.base=l.__P=null,c.__c=void 0}if(l=c.__k)for(i=0;i<l.length;i++)l[i]&&cJ(l[i],r,a||typeof c.type!="function");a||c.__e==null||QQ(c.__e),c.__=c.__e=c.__d=void 0}function fle(c,r,a){return this.constructor(c,a)}function rA(c,r,a){var l,i,m;Es.__&&Es.__(c,r),i=(l=typeof a=="function")?null:a&&a.__k||r.__k,m=[],a$(r,c=(!l&&a||r).__k=rt(Ya,null,[c]),i||GO,GO,r.ownerSVGElement!==void 0,!l&&a?[a]:i?null:r.firstChild?jO.call(r.childNodes):null,m,!l&&a?a:i?i.__e:r.firstChild,l),aJ(m,c)}function mle(c,r){var a={__c:r="__cC"+YQ++,__:c,Consumer:function(l,i){return l.children(i)},Provider:function(l){var i,m;return this.getChildContext||(i=[],(m={})[r]=this,this.getChildContext=function(){return m},this.shouldComponentUpdate=function(v){this.props.value!==v.value&&i.some(function(C){C.__e=!0,i$(C)})},this.sub=function(v){i.push(v);var C=v.componentWillUnmount;v.componentWillUnmount=function(){i.splice(i.indexOf(v),1),C&&C.call(v)}}),l.children}};return a.Provider.__=a.Consumer.contextType=a}jO=XQ.slice,Es={__e:function(c,r,a,l){for(var i,m,v;r=r.__;)if((i=r.__c)&&!i.__)try{if((m=i.constructor)&&m.getDerivedStateFromError!=null&&(i.setState(m.getDerivedStateFromError(c)),v=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(c,l||{}),v=i.__d),v)return i.__E=i}catch(C){c=C}throw c}},GQ=0,ZQ=function(c){return c!=null&&c.constructor===void 0},PS=!1,sm.prototype.setState=function(c,r){var a;a=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Xv({},this.state),typeof c=="function"&&(c=c(Xv({},a),this.props)),c&&Xv(a,c),c!=null&&this.__v&&(r&&this._sb.push(r),i$(this))},sm.prototype.forceUpdate=function(c){this.__v&&(this.__e=!0,c&&this.__h.push(c),i$(this))},sm.prototype.render=Ya,V2=[],KQ=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,KO.__r=0,YQ=0;var Cp,l$,uJ,dJ=[],c$=[],fJ=Es.__b,mJ=Es.__r,hJ=Es.diffed,gJ=Es.__c,pJ=Es.unmount;function hle(){for(var c;c=dJ.shift();)if(c.__P&&c.__H)try{c.__H.__h.forEach(XO),c.__H.__h.forEach(u$),c.__H.__h=[]}catch(r){c.__H.__h=[],Es.__e(r,c.__v)}}Es.__b=function(c){Cp=null,fJ&&fJ(c)},Es.__r=function(c){mJ&&mJ(c);var r=(Cp=c.__c).__H;r&&(l$===Cp?(r.__h=[],Cp.__h=[],r.__.forEach(function(a){a.__N&&(a.__=a.__N),a.__V=c$,a.__N=a.i=void 0})):(r.__h.forEach(XO),r.__h.forEach(u$),r.__h=[])),l$=Cp},Es.diffed=function(c){hJ&&hJ(c);var r=c.__c;r&&r.__H&&(r.__H.__h.length&&(dJ.push(r)!==1&&uJ===Es.requestAnimationFrame||((uJ=Es.requestAnimationFrame)||gle)(hle)),r.__H.__.forEach(function(a){a.i&&(a.__H=a.i),a.__V!==c$&&(a.__=a.__V),a.i=void 0,a.__V=c$})),l$=Cp=null},Es.__c=function(c,r){r.some(function(a){try{a.__h.forEach(XO),a.__h=a.__h.filter(function(l){return!l.__||u$(l)})}catch(l){r.some(function(i){i.__h&&(i.__h=[])}),r=[],Es.__e(l,a.__v)}}),gJ&&gJ(c,r)},Es.unmount=function(c){pJ&&pJ(c);var r,a=c.__c;a&&a.__H&&(a.__H.__.forEach(function(l){try{XO(l)}catch(i){r=i}}),a.__H=void 0,r&&Es.__e(r,a.__v))};var vJ=typeof requestAnimationFrame=="function";function gle(c){var r,a=function(){clearTimeout(l),vJ&&cancelAnimationFrame(r),setTimeout(c)},l=setTimeout(a,100);vJ&&(r=requestAnimationFrame(a))}function XO(c){var r=Cp,a=c.__c;typeof a=="function"&&(c.__c=void 0,a()),Cp=r}function u$(c){var r=Cp;c.__c=c.__(),Cp=r}function ple(c,r){for(var a in r)c[a]=r[a];return c}function yJ(c,r){for(var a in c)if(a!=="__source"&&!(a in r))return!0;for(var l in r)if(l!=="__source"&&c[l]!==r[l])return!0;return!1}function bJ(c){this.props=c}(bJ.prototype=new sm).isPureReactComponent=!0,bJ.prototype.shouldComponentUpdate=function(c,r){return yJ(this.props,c)||yJ(this.state,r)};var CJ=Es.__b;Es.__b=function(c){c.type&&c.type.__f&&c.ref&&(c.props.ref=c.ref,c.ref=null),CJ&&CJ(c)};var vle=Es.__e;Es.__e=function(c,r,a,l){if(c.then){for(var i,m=r;m=m.__;)if((i=m.__c)&&i.__c)return r.__e==null&&(r.__e=a.__e,r.__k=a.__k),i.__c(c,r)}vle(c,r,a,l)};var _J=Es.unmount;function wJ(c,r,a){return c&&(c.__c&&c.__c.__H&&(c.__c.__H.__.forEach(function(l){typeof l.__c=="function"&&l.__c()}),c.__c.__H=null),(c=ple({},c)).__c!=null&&(c.__c.__P===a&&(c.__c.__P=r),c.__c=null),c.__k=c.__k&&c.__k.map(function(l){return wJ(l,r,a)})),c}function SJ(c,r,a){return c&&(c.__v=null,c.__k=c.__k&&c.__k.map(function(l){return SJ(l,r,a)}),c.__c&&c.__c.__P===r&&(c.__e&&a.insertBefore(c.__e,c.__d),c.__c.__e=!0,c.__c.__P=a)),c}function d$(){this.__u=0,this.t=null,this.__b=null}function EJ(c){var r=c.__.__c;return r&&r.__a&&r.__a(c)}function QO(){this.u=null,this.o=null}Es.unmount=function(c){var r=c.__c;r&&r.__R&&r.__R(),r&&c.__h===!0&&(c.type=null),_J&&_J(c)},(d$.prototype=new sm).__c=function(c,r){var a=r.__c,l=this;l.t==null&&(l.t=[]),l.t.push(a);var i=EJ(l.__v),m=!1,v=function(){m||(m=!0,a.__R=null,i?i(C):C())};a.__R=v;var C=function(){if(!--l.__u){if(l.state.__a){var T=l.state.__a;l.__v.__k[0]=SJ(T,T.__c.__P,T.__c.__O)}var N;for(l.setState({__a:l.__b=null});N=l.t.pop();)N.forceUpdate()}},E=r.__h===!0;l.__u++||E||l.setState({__a:l.__b=l.__v.__k[0]}),c.then(v,v)},d$.prototype.componentWillUnmount=function(){this.t=[]},d$.prototype.render=function(c,r){if(this.__b){if(this.__v.__k){var a=document.createElement("div"),l=this.__v.__k[0].__c;this.__v.__k[0]=wJ(this.__b,a,l.__O=l.__P)}this.__b=null}var i=r.__a&&rt(Ya,null,c.fallback);return i&&(i.__h=null),[rt(Ya,null,r.__a?null:c.children),i]};var kJ=function(c,r,a){if(++a[1]===a[0]&&c.o.delete(r),c.props.revealOrder&&(c.props.revealOrder[0]!=="t"||!c.o.size))for(a=c.u;a;){for(;a.length>3;)a.pop()();if(a[1]<a[0])break;c.u=a=a[2]}};function yle(c){return this.getChildContext=function(){return c.context},c.children}function ble(c){var r=this,a=c.i;r.componentWillUnmount=function(){rA(null,r.l),r.l=null,r.i=null},r.i&&r.i!==a&&r.componentWillUnmount(),c.__v?(r.l||(r.i=a,r.l={nodeType:1,parentNode:a,childNodes:[],appendChild:function(l){this.childNodes.push(l),r.i.appendChild(l)},insertBefore:function(l,i){this.childNodes.push(l),r.i.appendChild(l)},removeChild:function(l){this.childNodes.splice(this.childNodes.indexOf(l)>>>1,1),r.i.removeChild(l)}}),rA(rt(yle,{context:r.context},c.__v),r.l)):r.l&&r.componentWillUnmount()}function Cle(c,r){var a=rt(ble,{__v:c,i:r});return a.containerInfo=r,a}(QO.prototype=new sm).__a=function(c){var r=this,a=EJ(r.__v),l=r.o.get(c);return l[0]++,function(i){var m=function(){r.props.revealOrder?(l.push(i),kJ(r,c,l)):i()};a?a(m):m()}},QO.prototype.render=function(c){this.u=null,this.o=new Map;var r=YO(c.children);c.revealOrder&&c.revealOrder[0]==="b"&&r.reverse();for(var a=r.length;a--;)this.o.set(r[a],this.u=[1,0,this.u]);return c.children},QO.prototype.componentDidUpdate=QO.prototype.componentDidMount=function(){var c=this;this.o.forEach(function(r,a){kJ(c,a,r)})};var _le=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,wle=/^(?: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]/,Sle=typeof document<"u",Ele=function(c){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(c)};sm.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(c){Object.defineProperty(sm.prototype,c,{configurable:!0,get:function(){return this["UNSAFE_"+c]},set:function(r){Object.defineProperty(this,c,{configurable:!0,writable:!0,value:r})}})});var xJ=Es.event;function kle(){}function xle(){return this.cancelBubble}function Ale(){return this.defaultPrevented}Es.event=function(c){return xJ&&(c=xJ(c)),c.persist=kle,c.isPropagationStopped=xle,c.isDefaultPrevented=Ale,c.nativeEvent=c};var AJ={configurable:!0,get:function(){return this.class}},TJ=Es.vnode;Es.vnode=function(c){var r=c.type,a=c.props,l=a;if(typeof r=="string"){var i=r.indexOf("-")===-1;for(var m in l={},a){var v=a[m];Sle&&m==="children"&&r==="noscript"||m==="value"&&"defaultValue"in a&&v==null||(m==="defaultValue"&&"value"in a&&a.value==null?m="value":m==="download"&&v===!0?v="":/ondoubleclick/i.test(m)?m="ondblclick":/^onchange(textarea|input)/i.test(m+r)&&!Ele(a.type)?m="oninput":/^onfocus$/i.test(m)?m="onfocusin":/^onblur$/i.test(m)?m="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(m)?m=m.toLowerCase():i&&wle.test(m)?m=m.replace(/[A-Z0-9]/g,"-$&").toLowerCase():v===null&&(v=void 0),/^oninput$/i.test(m)&&(m=m.toLowerCase(),l[m]&&(m="oninputCapture")),l[m]=v)}r=="select"&&l.multiple&&Array.isArray(l.value)&&(l.value=YO(a.children).forEach(function(C){C.props.selected=l.value.indexOf(C.props.value)!=-1})),r=="select"&&l.defaultValue!=null&&(l.value=YO(a.children).forEach(function(C){C.props.selected=l.multiple?l.defaultValue.indexOf(C.props.value)!=-1:l.defaultValue==C.props.value})),c.props=l,a.class!=a.className&&(AJ.enumerable="className"in a,a.className!=null&&(l.class=a.className),Object.defineProperty(l,"className",AJ))}c.$$typeof=_le,TJ&&TJ(c)};var DJ=Es.__r;Es.__r=function(c){DJ&&DJ(c),c.__c};const OJ=[],f$=new Map;function m$(c){OJ.push(c),f$.forEach(r=>{NJ(r,c)})}function Tle(c){c.isConnected&&c.getRootNode&&RJ(c.getRootNode())}function RJ(c){let r=f$.get(c);if(!r||!r.isConnected){if(r=c.querySelector("style[data-fullcalendar]"),!r){r=document.createElement("style"),r.setAttribute("data-fullcalendar","");const a=Ole();a&&(r.nonce=a);const l=c===document?document.head:c,i=c===document?l.querySelector("script,link[rel=stylesheet],link[as=style],style"):l.firstChild;l.insertBefore(r,i)}f$.set(c,r),Dle(r)}}function Dle(c){for(const r of OJ)NJ(c,r)}function NJ(c,r){const{sheet:a}=c,l=a.cssRules.length;r.split("}").forEach((i,m)=>{i=i.trim(),i&&a.insertRule(i+"}",l+m)})}let h$;function Ole(){return h$===void 0&&(h$=Rle()),h$}function Rle(){const c=document.querySelector('meta[name="csp-nonce"]');if(c&&c.hasAttribute("content"))return c.getAttribute("content");const r=document.querySelector("script[nonce]");return r&&r.nonce||""}typeof document<"u"&&RJ(document);var Nle=':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;-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;-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)}';m$(Nle);class g${constructor(r){this.drainedOption=r,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(r){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),r==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),r))}pause(r=""){let{pauseDepths:a}=this;a[r]=(a[r]||0)+1,this.clearTimeout()}resume(r="",a){let{pauseDepths:l}=this;r in l&&(a?delete l[r]:(l[r]-=1,l[r]<=0&&delete l[r]),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 p$(c){c.parentNode&&c.parentNode.removeChild(c)}function td(c,r){if(c.closest)return c.closest(r);if(!document.documentElement.contains(c))return null;do{if(Ile(c,r))return c;c=c.parentElement||c.parentNode}while(c!==null&&c.nodeType===1);return null}function Ile(c,r){return(c.matches||c.matchesSelector||c.msMatchesSelector).call(c,r)}function Ble(c,r){let a=c instanceof HTMLElement?[c]:c,l=[];for(let i=0;i<a.length;i+=1){let m=a[i].querySelectorAll(r);for(let v=0;v<m.length;v+=1)l.push(m[v])}return l}const Mle=/(top|left|right|bottom|width|height)$/i;function iA(c,r){for(let a in r)IJ(c,a,r[a])}function IJ(c,r,a){a==null?c.style[r]="":typeof a=="number"&&Mle.test(r)?c.style[r]=`${a}px`:c.style[r]=a}function BJ(c){var r,a;return(a=(r=c.composedPath)===null||r===void 0?void 0:r.call(c)[0])!==null&&a!==void 0?a:c.target}let MJ=0;function JO(){return MJ+=1,"fc-dom-"+MJ}function eR(c){c.preventDefault()}function Ple(c,r){return a=>{let l=td(a.target,c);l&&r.call(l,a,l)}}function PJ(c,r,a,l){let i=Ple(a,l);return c.addEventListener(r,i),()=>{c.removeEventListener(r,i)}}function Lle(c,r,a,l){let i;return PJ(c,"mouseover",r,(m,v)=>{if(v!==i){i=v,a(m,v);let C=E=>{i=null,l(E,v),v.removeEventListener("mouseleave",C)};v.addEventListener("mouseleave",C)}})}const LJ=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function Fle(c,r){let a=l=>{r(l),LJ.forEach(i=>{c.removeEventListener(i,a)})};LJ.forEach(l=>{c.addEventListener(l,a)})}function FJ(c){return Object.assign({onClick:c},$J(c))}function $J(c){return{tabIndex:0,onKeyDown(r){(r.key==="Enter"||r.key===" ")&&(c(r),r.preventDefault())}}}let VJ=0;function H2(){return VJ+=1,String(VJ)}function v$(){document.body.classList.add("fc-not-allowed")}function y$(){document.body.classList.remove("fc-not-allowed")}function $le(c){c.style.userSelect="none",c.style.webkitUserSelect="none",c.addEventListener("selectstart",eR)}function Vle(c){c.style.userSelect="",c.style.webkitUserSelect="",c.removeEventListener("selectstart",eR)}function Hle(c){c.addEventListener("contextmenu",eR)}function zle(c){c.removeEventListener("contextmenu",eR)}function Ule(c){let r=[],a=[],l,i;for(typeof c=="string"?a=c.split(/\s*,\s*/):typeof c=="function"?a=[c]:Array.isArray(c)&&(a=c),l=0;l<a.length;l+=1)i=a[l],typeof i=="string"?r.push(i.charAt(0)==="-"?{field:i.substring(1),order:-1}:{field:i,order:1}):typeof i=="function"&&r.push({func:i});return r}function Wle(c,r,a){let l,i;for(l=0;l<a.length;l+=1)if(i=jle(c,r,a[l]),i)return i;return 0}function jle(c,r,a){return a.func?a.func(c,r):Gle(c[a.field],r[a.field])*(a.order||1)}function Gle(c,r){return!c&&!r?0:r==null?-1:c==null?1:typeof c=="string"||typeof r=="string"?String(c).localeCompare(String(r)):c-r}function LS(c,r){let a=String(c);return"000".substr(0,r-a.length)+a}function aA(c,r,a){return typeof c=="function"?c(...r):typeof c=="string"?r.reduce((l,i,m)=>l.replace("$"+m,i||""),c):a}function Zle(c,r){return c-r}function tR(c){return c%1===0}function qle(c){let r=c.querySelector(".fc-scrollgrid-shrink-frame"),a=c.querySelector(".fc-scrollgrid-shrink-cushion");if(!r)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!a)throw new Error("needs fc-scrollgrid-shrink-cushion className");return c.getBoundingClientRect().width-r.getBoundingClientRect().width+a.getBoundingClientRect().width}const HJ=["years","months","days","milliseconds"],Kle=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function ni(c,r){return typeof c=="string"?Yle(c):typeof c=="object"&&c?zJ(c):typeof c=="number"?zJ({[r||"milliseconds"]:c}):null}function Yle(c){let r=Kle.exec(c);if(r){let a=r[1]?-1:1;return{years:0,months:0,days:a*(r[2]?parseInt(r[2],10):0),milliseconds:a*((r[3]?parseInt(r[3],10):0)*60*60*1e3+(r[4]?parseInt(r[4],10):0)*60*1e3+(r[5]?parseInt(r[5],10):0)*1e3+(r[6]?parseInt(r[6],10):0))}}return null}function zJ(c){let r={years:c.years||c.year||0,months:c.months||c.month||0,days:c.days||c.day||0,milliseconds:(c.hours||c.hour||0)*60*60*1e3+(c.minutes||c.minute||0)*60*1e3+(c.seconds||c.second||0)*1e3+(c.milliseconds||c.millisecond||c.ms||0)},a=c.weeks||c.week;return a&&(r.days+=a*7,r.specifiedWeeks=!0),r}function Xle(c,r){return c.years===r.years&&c.months===r.months&&c.days===r.days&&c.milliseconds===r.milliseconds}function b$(c,r){return{years:c.years+r.years,months:c.months+r.months,days:c.days+r.days,milliseconds:c.milliseconds+r.milliseconds}}function Qle(c,r){return{years:c.years-r.years,months:c.months-r.months,days:c.days-r.days,milliseconds:c.milliseconds-r.milliseconds}}function Jle(c,r){return{years:c.years*r,months:c.months*r,days:c.days*r,milliseconds:c.milliseconds*r}}function ece(c){return FS(c)/365}function tce(c){return FS(c)/30}function FS(c){return rg(c)/864e5}function rg(c){return c.years*(365*864e5)+c.months*(30*864e5)+c.days*864e5+c.milliseconds}function C$(c,r){let a=null;for(let l=0;l<HJ.length;l+=1){let i=HJ[l];if(r[i]){let m=c[i]/r[i];if(!tR(m)||a!==null&&a!==m)return null;a=m}else if(c[i])return null}return a}function _$(c){let r=c.milliseconds;if(r){if(r%1e3!==0)return{unit:"millisecond",value:r};if(r%(1e3*60)!==0)return{unit:"second",value:r/1e3};if(r%(1e3*60*60)!==0)return{unit:"minute",value:r/(1e3*60)};if(r)return{unit:"hour",value:r/(1e3*60*60)}}return c.days?c.specifiedWeeks&&c.days%7===0?{unit:"week",value:c.days/7}:{unit:"day",value:c.days}:c.months?{unit:"month",value:c.months}:c.years?{unit:"year",value:c.years}:{unit:"millisecond",value:0}}function Qv(c,r,a){if(c===r)return!0;let l=c.length,i;if(l!==r.length)return!1;for(i=0;i<l;i+=1)if(!(a?a(c[i],r[i]):c[i]===r[i]))return!1;return!0}const nce=["sun","mon","tue","wed","thu","fri","sat"];function UJ(c,r){let a=ey(c);return a[2]+=r*7,yf(a)}function nd(c,r){let a=ey(c);return a[2]+=r,yf(a)}function Jv(c,r){let a=ey(c);return a[6]+=r,yf(a)}function oce(c,r){return z2(c,r)/7}function z2(c,r){return(r.valueOf()-c.valueOf())/(1e3*60*60*24)}function sce(c,r){return(r.valueOf()-c.valueOf())/(1e3*60*60)}function rce(c,r){return(r.valueOf()-c.valueOf())/(1e3*60)}function ice(c,r){return(r.valueOf()-c.valueOf())/1e3}function ace(c,r){let a=Ra(c),l=Ra(r);return{years:0,months:0,days:Math.round(z2(a,l)),milliseconds:r.valueOf()-l.valueOf()-(c.valueOf()-a.valueOf())}}function lce(c,r){let a=nR(c,r);return a!==null&&a%7===0?a/7:null}function nR(c,r){return ty(c)===ty(r)?Math.round(z2(c,r)):null}function Ra(c){return yf([c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()])}function cce(c){return yf([c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate(),c.getUTCHours()])}function uce(c){return yf([c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate(),c.getUTCHours(),c.getUTCMinutes()])}function dce(c){return yf([c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate(),c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds()])}function fce(c,r,a){let l=c.getUTCFullYear(),i=w$(c,l,r,a);if(i<1)return w$(c,l-1,r,a);let m=w$(c,l+1,r,a);return m>=1?Math.min(i,m):i}function w$(c,r,a,l){let i=yf([r,0,1+mce(r,a,l)]),m=Ra(c),v=Math.round(z2(i,m));return Math.floor(v/7)+1}function mce(c,r,a){let l=7+r-a;return-((7+yf([c,0,l]).getUTCDay()-r)%7)+l-1}function WJ(c){return[c.getFullYear(),c.getMonth(),c.getDate(),c.getHours(),c.getMinutes(),c.getSeconds(),c.getMilliseconds()]}function jJ(c){return new Date(c[0],c[1]||0,c[2]==null?1:c[2],c[3]||0,c[4]||0,c[5]||0)}function ey(c){return[c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate(),c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()]}function yf(c){return c.length===1&&(c=c.concat([0])),new Date(Date.UTC(...c))}function GJ(c){return!isNaN(c.valueOf())}function ty(c){return c.getUTCHours()*1e3*60*60+c.getUTCMinutes()*1e3*60+c.getUTCSeconds()*1e3+c.getUTCMilliseconds()}function ZJ(c,r,a=!1){let l=c.toISOString();return l=l.replace(".000",""),a&&(l=l.replace("T00:00:00Z","")),l.length>10&&(r==null?l=l.replace("Z",""):r!==0&&(l=l.replace("Z",E$(r,!0)))),l}function S$(c){return c.toISOString().replace(/T.*$/,"")}function hce(c){return c.toISOString().match(/^\d{4}-\d{2}/)[0]}function gce(c){return LS(c.getUTCHours(),2)+":"+LS(c.getUTCMinutes(),2)+":"+LS(c.getUTCSeconds(),2)}function E$(c,r=!1){let a=c<0?"-":"+",l=Math.abs(c),i=Math.floor(l/60),m=Math.round(l%60);return r?`${a+LS(i,2)}:${LS(m,2)}`:`GMT${a}${i}${m?`:${LS(m,2)}`:""}`}function Ms(c,r,a){let l,i;return function(...m){if(!l)i=c.apply(this,m);else if(!Qv(l,m)){a&&a(i);let v=c.apply(this,m);(!r||!r(v,i))&&(i=v)}return l=m,i}}function oR(c,r,a){let l,i;return m=>{if(!l)i=c.call(this,m);else if(!_p(l,m)){a&&a(i);let v=c.call(this,m);(!r||!r(v,i))&&(i=v)}return l=m,i}}const qJ={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},sR={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},rR=/\s*([ap])\.?m\.?/i,pce=/,/g,vce=/\s+/g,yce=/\u200e/g,bce=/UTC|GMT/;class Cce{constructor(r){let a={},l={},i=0;for(let m in r)m in qJ?(l[m]=r[m],i=Math.max(qJ[m],i)):(a[m]=r[m],m in sR&&(i=Math.max(sR[m],i)));this.standardDateProps=a,this.extendedSettings=l,this.severity=i,this.buildFormattingFunc=Ms(KJ)}format(r,a){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,a)(r)}formatRange(r,a,l,i){let{standardDateProps:m,extendedSettings:v}=this,C=xce(r.marker,a.marker,l.calendarSystem);if(!C)return this.format(r,l);let E=C;E>1&&(m.year==="numeric"||m.year==="2-digit")&&(m.month==="numeric"||m.month==="2-digit")&&(m.day==="numeric"||m.day==="2-digit")&&(E=1);let T=this.format(r,l),N=this.format(a,l);if(T===N)return T;let V=Ace(m,E),U=KJ(V,v,l),z=U(r),W=U(a),K=Tce(T,z,N,W),Z=v.separator||i||l.defaultSeparator||"";return K?K.before+z+Z+W+K.after:T+Z+N}getLargestUnit(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function KJ(c,r,a){let l=Object.keys(c).length;return l===1&&c.timeZoneName==="short"?i=>E$(i.timeZoneOffset):l===0&&r.week?i=>kce(a.computeWeekNumber(i.marker),a.weekText,a.weekTextLong,a.locale,r.week):_ce(c,r,a)}function _ce(c,r,a){c=Object.assign({},c),r=Object.assign({},r),wce(c,r),c.timeZone="UTC";let l=new Intl.DateTimeFormat(a.locale.codes,c),i;if(r.omitZeroMinute){let m=Object.assign({},c);delete m.minute,i=new Intl.DateTimeFormat(a.locale.codes,m)}return m=>{let{marker:v}=m,C;i&&!v.getUTCMinutes()?C=i:C=l;let E=C.format(v);return Sce(E,m,c,r,a)}}function wce(c,r){c.timeZoneName&&(c.hour||(c.hour="2-digit"),c.minute||(c.minute="2-digit")),c.timeZoneName==="long"&&(c.timeZoneName="short"),r.omitZeroMinute&&(c.second||c.millisecond)&&delete r.omitZeroMinute}function Sce(c,r,a,l,i){return c=c.replace(yce,""),a.timeZoneName==="short"&&(c=Ece(c,i.timeZone==="UTC"||r.timeZoneOffset==null?"UTC":E$(r.timeZoneOffset))),l.omitCommas&&(c=c.replace(pce,"").trim()),l.omitZeroMinute&&(c=c.replace(":00","")),l.meridiem===!1?c=c.replace(rR,"").trim():l.meridiem==="narrow"?c=c.replace(rR,(m,v)=>v.toLocaleLowerCase()):l.meridiem==="short"?c=c.replace(rR,(m,v)=>`${v.toLocaleLowerCase()}m`):l.meridiem==="lowercase"&&(c=c.replace(rR,m=>m.toLocaleLowerCase())),c=c.replace(vce," "),c=c.trim(),c}function Ece(c,r){let a=!1;return c=c.replace(bce,()=>(a=!0,r)),a||(c+=` ${r}`),c}function kce(c,r,a,l,i){let m=[];return i==="long"?m.push(a):(i==="short"||i==="narrow")&&m.push(r),(i==="long"||i==="short")&&m.push(" "),m.push(l.simpleNumberFormat.format(c)),l.options.direction==="rtl"&&m.reverse(),m.join("")}function xce(c,r,a){return a.getMarkerYear(c)!==a.getMarkerYear(r)?5:a.getMarkerMonth(c)!==a.getMarkerMonth(r)?4:a.getMarkerDay(c)!==a.getMarkerDay(r)?2:ty(c)!==ty(r)?1:0}function Ace(c,r){let a={};for(let l in c)(!(l in sR)||sR[l]<=r)&&(a[l]=c[l]);return a}function Tce(c,r,a,l){let i=0;for(;i<c.length;){let m=c.indexOf(r,i);if(m===-1)break;let v=c.substr(0,m);i=m+r.length;let C=c.substr(i),E=0;for(;E<a.length;){let T=a.indexOf(l,E);if(T===-1)break;let N=a.substr(0,T);E=T+l.length;let V=a.substr(E);if(v===N&&C===V)return{before:v,after:C}}}return null}function YJ(c,r){let a=r.markerToArray(c.marker);return{marker:c.marker,timeZoneOffset:c.timeZoneOffset,array:a,year:a[0],month:a[1],day:a[2],hour:a[3],minute:a[4],second:a[5],millisecond:a[6]}}function iR(c,r,a,l){let i=YJ(c,a.calendarSystem),m=r?YJ(r,a.calendarSystem):null;return{date:i,start:i,end:m,timeZone:a.timeZone,localeCodes:a.locale.codes,defaultSeparator:l||a.defaultSeparator}}class Dce{constructor(r){this.cmdStr=r}format(r,a,l){return a.cmdFormatter(this.cmdStr,iR(r,null,a,l))}formatRange(r,a,l,i){return l.cmdFormatter(this.cmdStr,iR(r,a,l,i))}}class Oce{constructor(r){this.func=r}format(r,a,l){return this.func(iR(r,null,a,l))}formatRange(r,a,l,i){return this.func(iR(r,a,l,i))}}function El(c){return typeof c=="object"&&c?new Cce(c):typeof c=="string"?new Dce(c):typeof c=="function"?new Oce(c):null}const XJ={navLinkDayClick:qt,navLinkWeekClick:qt,duration:ni,bootstrapFontAwesome:qt,buttonIcons:qt,customButtons:qt,defaultAllDayEventDuration:ni,defaultTimedEventDuration:ni,nextDayThreshold:ni,scrollTime:ni,scrollTimeReset:Boolean,slotMinTime:ni,slotMaxTime:ni,dayPopoverFormat:El,slotDuration:ni,snapDuration:ni,headerToolbar:qt,footerToolbar:qt,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:El,dayHeaderClassNames:qt,dayHeaderContent:qt,dayHeaderDidMount:qt,dayHeaderWillUnmount:qt,dayCellClassNames:qt,dayCellContent:qt,dayCellDidMount:qt,dayCellWillUnmount:qt,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:qt,weekNumbers:Boolean,weekNumberClassNames:qt,weekNumberContent:qt,weekNumberDidMount:qt,weekNumberWillUnmount:qt,editable:Boolean,viewClassNames:qt,viewDidMount:qt,viewWillUnmount:qt,nowIndicator:Boolean,nowIndicatorClassNames:qt,nowIndicatorContent:qt,nowIndicatorDidMount:qt,nowIndicatorWillUnmount:qt,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:qt,locale:qt,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:qt,eventOrder:Ule,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:qt,contentHeight:qt,direction:String,weekNumberFormat:El,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:qt,initialDate:qt,now:qt,eventDataTransform:qt,stickyHeaderDates:qt,stickyFooterScrollbar:qt,viewHeight:qt,defaultAllDay:Boolean,eventSourceFailure:qt,eventSourceSuccess:qt,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:qt,eventConstraint:qt,eventAllow:qt,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:qt,eventContent:qt,eventDidMount:qt,eventWillUnmount:qt,selectConstraint:qt,selectOverlap:qt,selectAllow:qt,droppable:Boolean,unselectCancel:String,slotLabelFormat:qt,slotLaneClassNames:qt,slotLaneContent:qt,slotLaneDidMount:qt,slotLaneWillUnmount:qt,slotLabelClassNames:qt,slotLabelContent:qt,slotLabelDidMount:qt,slotLabelWillUnmount:qt,dayMaxEvents:qt,dayMaxEventRows:qt,dayMinWidth:Number,slotLabelInterval:ni,allDayText:String,allDayClassNames:qt,allDayContent:qt,allDayDidMount:qt,allDayWillUnmount:qt,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:El,rerenderDelay:Number,moreLinkText:qt,moreLinkHint:qt,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:qt,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:ni,hiddenDays:qt,fixedWeekCount:Boolean,validRange:qt,visibleRange:qt,titleFormat:qt,eventInteractive:Boolean,noEventsText:String,viewHint:qt,navLinkHint:qt,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:qt,moreLinkClassNames:qt,moreLinkContent:qt,moreLinkDidMount:qt,moreLinkWillUnmount:qt,monthStartFormat:El,handleCustomRendering:qt,customRenderingMetaMap:qt,customRenderingReplaces:Boolean},lA={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"}},QJ={datesSet:qt,eventsSet:qt,eventAdd:qt,eventChange:qt,eventRemove:qt,windowResize:qt,eventClick:qt,eventMouseEnter:qt,eventMouseLeave:qt,select:qt,unselect:qt,loading:qt,_unmount:qt,_beforeprint:qt,_afterprint:qt,_noEventDrop:qt,_noEventResize:qt,_resize:qt,_scrollRequest:qt},JJ={buttonText:qt,buttonHints:qt,views:qt,plugins:qt,initialEvents:qt,events:qt,eventSources:qt},U2={headerToolbar:W2,footerToolbar:W2,buttonText:W2,buttonHints:W2,buttonIcons:W2,dateIncrement:W2,plugins:aR,events:aR,eventSources:aR,resources:aR};function W2(c,r){return typeof c=="object"&&typeof r=="object"&&c&&r?_p(c,r):c===r}function aR(c,r){return Array.isArray(c)&&Array.isArray(r)?Qv(c,r):c===r}const Rce={type:String,component:qt,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:qt,usesMinMaxTime:Boolean,classNames:qt,content:qt,didMount:qt,willUnmount:qt};function k$(c){return A$(c,U2)}function x$(c,r){let a={},l={};for(let i in r)i in c&&(a[i]=r[i](c[i]));for(let i in c)i in r||(l[i]=c[i]);return{refined:a,extra:l}}function qt(c){return c}const{hasOwnProperty:lR}=Object.prototype;function A$(c,r){let a={};if(r){for(let l in r)if(r[l]===W2){let i=[];for(let m=c.length-1;m>=0;m-=1){let v=c[m][l];if(typeof v=="object"&&v)i.unshift(v);else if(v!==void 0){a[l]=v;break}}i.length&&(a[l]=A$(i))}}for(let l=c.length-1;l>=0;l-=1){let i=c[l];for(let m in i)m in a||(a[m]=i[m])}return a}function j2(c,r){let a={};for(let l in c)r(c[l],l)&&(a[l]=c[l]);return a}function Z1(c,r){let a={};for(let l in c)a[l]=r(c[l],l);return a}function eee(c){let r={};for(let a of c)r[a]=!0;return r}function T$(c){let r=[];for(let a in c)r.push(c[a]);return r}function _p(c,r){if(c===r)return!0;for(let a in c)if(lR.call(c,a)&&!(a in r))return!1;for(let a in r)if(lR.call(r,a)&&c[a]!==r[a])return!1;return!0}const Nce=/^on[A-Z]/;function Ice(c,r){const a=D$(c,r);for(let l of a)if(!Nce.test(l))return!1;return!0}function D$(c,r){let a=[];for(let l in c)lR.call(c,l)&&(l in r||a.push(l));for(let l in r)lR.call(r,l)&&c[l]!==r[l]&&a.push(l);return a}function O$(c,r,a={}){if(c===r)return!0;for(let l in r)if(!(l in c&&Bce(c[l],r[l],a[l])))return!1;for(let l in c)if(!(l in r))return!1;return!0}function Bce(c,r,a){return c===r||a===!0?!0:a?a(c,r):!1}function Mce(c,r=0,a,l=1){let i=[];a==null&&(a=Object.keys(c).length);for(let m=r;m<a;m+=l){let v=c[m];v!==void 0&&i.push(v)}return i}let tee={};function Pce(c,r){tee[c]=r}function Lce(c){return new tee[c]}class Fce{getMarkerYear(r){return r.getUTCFullYear()}getMarkerMonth(r){return r.getUTCMonth()}getMarkerDay(r){return r.getUTCDate()}arrayToMarker(r){return yf(r)}markerToArray(r){return ey(r)}}Pce("gregory",Fce);const $ce=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function Vce(c){let r=$ce.exec(c);if(r){let a=new Date(Date.UTC(Number(r[1]),r[3]?Number(r[3])-1:0,Number(r[5]||1),Number(r[7]||0),Number(r[8]||0),Number(r[10]||0),r[12]?+`0.${r[12]}`*1e3:0));if(GJ(a)){let l=null;return r[13]&&(l=(r[15]==="-"?-1:1)*(Number(r[16]||0)*60+Number(r[18]||0))),{marker:a,isTimeUnspecified:!r[6],timeZoneOffset:l}}}return null}class Hce{constructor(r){let a=this.timeZone=r.timeZone,l=a!=="local"&&a!=="UTC";r.namedTimeZoneImpl&&l&&(this.namedTimeZoneImpl=new r.namedTimeZoneImpl(a)),this.canComputeOffset=!!(!l||this.namedTimeZoneImpl),this.calendarSystem=Lce(r.calendarSystem),this.locale=r.locale,this.weekDow=r.locale.week.dow,this.weekDoy=r.locale.week.doy,r.weekNumberCalculation==="ISO"&&(this.weekDow=1,this.weekDoy=4),typeof r.firstDay=="number"&&(this.weekDow=r.firstDay),typeof r.weekNumberCalculation=="function"&&(this.weekNumberFunc=r.weekNumberCalculation),this.weekText=r.weekText!=null?r.weekText:r.locale.options.weekText,this.weekTextLong=(r.weekTextLong!=null?r.weekTextLong:r.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=r.cmdFormatter,this.defaultSeparator=r.defaultSeparator}createMarker(r){let a=this.createMarkerMeta(r);return a===null?null:a.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker(new Date().valueOf()):yf(WJ(new Date))}createMarkerMeta(r){if(typeof r=="string")return this.parse(r);let a=null;return typeof r=="number"?a=this.timestampToMarker(r):r instanceof Date?(r=r.valueOf(),isNaN(r)||(a=this.timestampToMarker(r))):Array.isArray(r)&&(a=yf(r)),a===null||!GJ(a)?null:{marker:a,isTimeUnspecified:!1,forcedTzo:null}}parse(r){let a=Vce(r);if(a===null)return null;let{marker:l}=a,i=null;return a.timeZoneOffset!==null&&(this.canComputeOffset?l=this.timestampToMarker(l.valueOf()-a.timeZoneOffset*60*1e3):i=a.timeZoneOffset),{marker:l,isTimeUnspecified:a.isTimeUnspecified,forcedTzo:i}}getYear(r){return this.calendarSystem.getMarkerYear(r)}getMonth(r){return this.calendarSystem.getMarkerMonth(r)}getDay(r){return this.calendarSystem.getMarkerDay(r)}add(r,a){let l=this.calendarSystem.markerToArray(r);return l[0]+=a.years,l[1]+=a.months,l[2]+=a.days,l[6]+=a.milliseconds,this.calendarSystem.arrayToMarker(l)}subtract(r,a){let l=this.calendarSystem.markerToArray(r);return l[0]-=a.years,l[1]-=a.months,l[2]-=a.days,l[6]-=a.milliseconds,this.calendarSystem.arrayToMarker(l)}addYears(r,a){let l=this.calendarSystem.markerToArray(r);return l[0]+=a,this.calendarSystem.arrayToMarker(l)}addMonths(r,a){let l=this.calendarSystem.markerToArray(r);return l[1]+=a,this.calendarSystem.arrayToMarker(l)}diffWholeYears(r,a){let{calendarSystem:l}=this;return ty(r)===ty(a)&&l.getMarkerDay(r)===l.getMarkerDay(a)&&l.getMarkerMonth(r)===l.getMarkerMonth(a)?l.getMarkerYear(a)-l.getMarkerYear(r):null}diffWholeMonths(r,a){let{calendarSystem:l}=this;return ty(r)===ty(a)&&l.getMarkerDay(r)===l.getMarkerDay(a)?l.getMarkerMonth(a)-l.getMarkerMonth(r)+(l.getMarkerYear(a)-l.getMarkerYear(r))*12:null}greatestWholeUnit(r,a){let l=this.diffWholeYears(r,a);return l!==null?{unit:"year",value:l}:(l=this.diffWholeMonths(r,a),l!==null?{unit:"month",value:l}:(l=lce(r,a),l!==null?{unit:"week",value:l}:(l=nR(r,a),l!==null?{unit:"day",value:l}:(l=sce(r,a),tR(l)?{unit:"hour",value:l}:(l=rce(r,a),tR(l)?{unit:"minute",value:l}:(l=ice(r,a),tR(l)?{unit:"second",value:l}:{unit:"millisecond",value:a.valueOf()-r.valueOf()}))))))}countDurationsBetween(r,a,l){let i;return l.years&&(i=this.diffWholeYears(r,a),i!==null)?i/ece(l):l.months&&(i=this.diffWholeMonths(r,a),i!==null)?i/tce(l):l.days&&(i=nR(r,a),i!==null)?i/FS(l):(a.valueOf()-r.valueOf())/rg(l)}startOf(r,a){return a==="year"?this.startOfYear(r):a==="month"?this.startOfMonth(r):a==="week"?this.startOfWeek(r):a==="day"?Ra(r):a==="hour"?cce(r):a==="minute"?uce(r):a==="second"?dce(r):null}startOfYear(r){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(r)])}startOfMonth(r){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(r),this.calendarSystem.getMarkerMonth(r)])}startOfWeek(r){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(r),this.calendarSystem.getMarkerMonth(r),r.getUTCDate()-(r.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(r){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(r)):fce(r,this.weekDow,this.weekDoy)}format(r,a,l={}){return a.format({marker:r,timeZoneOffset:l.forcedTzo!=null?l.forcedTzo:this.offsetForMarker(r)},this)}formatRange(r,a,l,i={}){return i.isEndExclusive&&(a=Jv(a,-1)),l.formatRange({marker:r,timeZoneOffset:i.forcedStartTzo!=null?i.forcedStartTzo:this.offsetForMarker(r)},{marker:a,timeZoneOffset:i.forcedEndTzo!=null?i.forcedEndTzo:this.offsetForMarker(a)},this,i.defaultSeparator)}formatIso(r,a={}){let l=null;return a.omitTimeZoneOffset||(a.forcedTzo!=null?l=a.forcedTzo:l=this.offsetForMarker(r)),ZJ(r,l,a.omitTime)}timestampToMarker(r){return this.timeZone==="local"?yf(WJ(new Date(r))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(r):yf(this.namedTimeZoneImpl.timestampToArray(r))}offsetForMarker(r){return this.timeZone==="local"?-jJ(ey(r)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(ey(r)):null}toDate(r,a){return this.timeZone==="local"?jJ(ey(r)):this.timeZone==="UTC"?new Date(r.valueOf()):this.namedTimeZoneImpl?new Date(r.valueOf()-this.namedTimeZoneImpl.offsetForArray(ey(r))*1e3*60):new Date(r.valueOf()-(a||0))}}class cA{constructor(r){this.iconOverrideOption&&this.setIconOverride(r[this.iconOverrideOption])}setIconOverride(r){let a,l;if(typeof r=="object"&&r){a=Object.assign({},this.iconClasses);for(l in r)a[l]=this.applyIconOverridePrefix(r[l]);this.iconClasses=a}else r===!1&&(this.iconClasses={})}applyIconOverridePrefix(r){let a=this.iconOverridePrefix;return a&&r.indexOf(a)!==0&&(r=a+r),r}getClass(r){return this.classes[r]||""}getIconClass(r,a){let l;return a&&this.rtlIconClasses?l=this.rtlIconClasses[r]||this.iconClasses[r]:l=this.iconClasses[r],l?`${this.baseIconClass} ${l}`:""}getCustomButtonIconClass(r){let a;return this.iconOverrideCustomButtonOption&&(a=r[this.iconOverrideCustomButtonOption],a)?`${this.baseIconClass} ${this.applyIconOverridePrefix(a)}`:""}}cA.prototype.classes={},cA.prototype.iconClasses={},cA.prototype.baseIconClass="",cA.prototype.iconOverridePrefix="";function cR(c){c();let r=Es.debounceRendering,a=[];function l(i){a.push(i)}for(Es.debounceRendering=l,rA(rt(zce,{}),document.createElement("div"));a.length;)a.shift()();Es.debounceRendering=r}class zce extends sm{render(){return rt("div",{})}componentDidMount(){this.setState({})}}function nee(c){let r=mle(c),a=r.Provider;return r.Provider=function(){let l=!this.getChildContext,i=a.apply(this,arguments);if(l){let m=[];this.shouldComponentUpdate=v=>{this.props.value!==v.value&&m.forEach(C=>{C.context=v.value,C.forceUpdate()})},this.sub=v=>{m.push(v);let C=v.componentWillUnmount;v.componentWillUnmount=()=>{m.splice(m.indexOf(v),1),C&&C.call(v)}}}return i},r}class Uce{constructor(r,a,l,i){this.execFunc=r,this.emitter=a,this.scrollTime=l,this.scrollTimeReset=i,this.handleScrollRequest=m=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},m),this.drain()},a.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(r){r&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const q1=nee({});function Wce(c,r,a,l,i,m,v,C,E,T,N,V,U){return{dateEnv:i,options:a,pluginHooks:v,emitter:T,dispatch:C,getCurrentData:E,calendarApi:N,viewSpec:c,viewApi:r,dateProfileGenerator:l,theme:m,isRtl:a.direction==="rtl",addResizeHandler(z){T.on("_resize",z)},removeResizeHandler(z){T.off("_resize",z)},createScrollResponder(z){return new Uce(z,T,ni(a.scrollTime),a.scrollTimeReset)},registerInteractiveComponent:V,unregisterInteractiveComponent:U}}class G2 extends sm{shouldComponentUpdate(r,a){return this.debug&&console.log(D$(r,this.props),D$(a,this.state)),!O$(this.props,r,this.propEquality)||!O$(this.state,a,this.stateEquality)}safeSetState(r){O$(this.state,Object.assign(Object.assign({},this.state),r),this.stateEquality)||this.setState(r)}}G2.addPropsEquality=jce,G2.addStateEquality=Gce,G2.contextType=q1,G2.prototype.propEquality={},G2.prototype.stateEquality={};class Li extends G2{}Li.contextType=q1;function jce(c){let r=Object.create(this.prototype.propEquality);Object.assign(r,c),this.prototype.propEquality=r}function Gce(c){let r=Object.create(this.prototype.stateEquality);Object.assign(r,c),this.prototype.stateEquality=r}function K1(c,r){typeof c=="function"?c(r):c&&(c.current=r)}class R$ extends Li{constructor(){super(...arguments),this.id=H2(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=r=>{const{options:a}=this.context,{generatorName:l}=this.props;(!a.customRenderingReplaces||!N$(l,a))&&this.updateElRef(r)},this.updateElRef=r=>{this.props.elRef&&K1(this.props.elRef,r)}}render(){const{props:r,context:a}=this,{options:l}=a,{customGenerator:i,defaultGenerator:m,renderProps:v}=r,C=oee(r,[],this.handleEl);let E=!1,T,N=[],V;if(i!=null){const U=typeof i=="function"?i(v,rt):i;if(U===!0)E=!0;else{const z=U&&typeof U=="object";z&&"html"in U?C.dangerouslySetInnerHTML={__html:U.html}:z&&"domNodes"in U?N=Array.prototype.slice.call(U.domNodes):(z?ZQ(U):typeof U!="function")?T=U:V=U}}else E=!N$(r.generatorName,l);return E&&m&&(T=m(v)),this.queuedDomNodes=N,this.currentGeneratorMeta=V,rt(r.elTag,C,T)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(r){var a;const{props:l,context:i}=this,{handleCustomRendering:m,customRenderingMetaMap:v}=i.options;if(m){const C=(a=this.currentGeneratorMeta)!==null&&a!==void 0?a:v==null?void 0:v[l.generatorName];C&&m(Object.assign(Object.assign({id:this.id,isActive:r,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:C},l),{elClasses:(l.elClasses||[]).filter(Zce)}))}}applyQueueudDomNodes(){const{queuedDomNodes:r,currentDomNodes:a}=this,l=this.base;if(!Qv(r,a)){a.forEach(p$);for(let i of r)l.appendChild(i);this.currentDomNodes=r}}}R$.addPropsEquality({elClasses:Qv,elStyle:_p,elAttrs:Ice,renderProps:_p});function N$(c,r){var a;return!!(r.handleCustomRendering&&c&&(!((a=r.customRenderingMetaMap)===null||a===void 0)&&a[c]))}function oee(c,r,a){const l=Object.assign(Object.assign({},c.elAttrs),{ref:a});return(c.elClasses||r)&&(l.className=(c.elClasses||[]).concat(r||[]).concat(l.className||[]).filter(Boolean).join(" ")),c.elStyle&&(l.style=c.elStyle),l}function Zce(c){return!!c}const see=nee(0);class rm extends sm{constructor(){super(...arguments),this.InnerContent=qce.bind(void 0,this),this.handleEl=r=>{this.el=r,this.props.elRef&&(K1(this.props.elRef,r),r&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:r}=this,a=Kce(r.classNameGenerator,r.renderProps);if(r.children){const l=oee(r,a,this.handleEl),i=r.children(this.InnerContent,r.renderProps,l);return r.elTag?rt(r.elTag,l,i):i}else return rt(R$,Object.assign(Object.assign({},r),{elRef:this.handleEl,elTag:r.elTag||"div",elClasses:(r.elClasses||[]).concat(a),renderId:this.context}))}componentDidMount(){var r,a;this.el?(a=(r=this.props).didMount)===null||a===void 0||a.call(r,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var r,a;(a=(r=this.props).willUnmount)===null||a===void 0||a.call(r,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}rm.contextType=see;function qce(c,r){const a=c.props;return rt(R$,Object.assign({renderProps:a.renderProps,generatorName:a.generatorName,customGenerator:a.customGenerator,defaultGenerator:a.defaultGenerator,renderId:c.context},r))}function Kce(c,r){const a=typeof c=="function"?c(r):c||[];return typeof a=="string"?[a]:a}class uR extends Li{render(){let{props:r,context:a}=this,{options:l}=a,i={view:a.viewApi};return rt(rm,Object.assign({},r,{elTag:r.elTag||"div",elClasses:[...ree(r.viewSpec),...r.elClasses||[]],renderProps:i,classNameGenerator:l.viewClassNames,generatorName:void 0,didMount:l.viewDidMount,willUnmount:l.viewWillUnmount}),()=>r.children)}}function ree(c){return[`fc-${c.type}-view`,"fc-view"]}function Yce(c,r){let a=null,l=null;return c.start&&(a=r.createMarker(c.start)),c.end&&(l=r.createMarker(c.end)),!a&&!l||a&&l&&l<a?null:{start:a,end:l}}function iee(c,r){let a=[],{start:l}=r,i,m;for(c.sort(Xce),i=0;i<c.length;i+=1)m=c[i],m.start>l&&a.push({start:l,end:m.start}),m.end>l&&(l=m.end);return l<r.end&&a.push({start:l,end:r.end}),a}function Xce(c,r){return c.start.valueOf()-r.start.valueOf()}function Z2(c,r){let{start:a,end:l}=c,i=null;return r.start!==null&&(a===null?a=r.start:a=new Date(Math.max(a.valueOf(),r.start.valueOf()))),r.end!=null&&(l===null?l=r.end:l=new Date(Math.min(l.valueOf(),r.end.valueOf()))),(a===null||l===null||a<l)&&(i={start:a,end:l}),i}function Qce(c,r){return(c.start===null?null:c.start.valueOf())===(r.start===null?null:r.start.valueOf())&&(c.end===null?null:c.end.valueOf())===(r.end===null?null:r.end.valueOf())}function I$(c,r){return(c.end===null||r.start===null||c.end>r.start)&&(c.start===null||r.end===null||c.start<r.end)}function dR(c,r){return(c.start===null||r.start!==null&&r.start>=c.start)&&(c.end===null||r.end!==null&&r.end<=c.end)}function Y1(c,r){return(c.start===null||r>=c.start)&&(c.end===null||r<c.end)}function Jce(c,r){return r.start!=null&&c<r.start?r.start:r.end!=null&&c>=r.end?new Date(r.end.valueOf()-1):c}function aee(c){let r=Math.floor(z2(c.start,c.end))||1,a=Ra(c.start),l=nd(a,r);return{start:a,end:l}}function lee(c,r=ni(0)){let a=null,l=null;if(c.end){l=Ra(c.end);let i=c.end.valueOf()-l.valueOf();i&&i>=rg(r)&&(l=nd(l,1))}return c.start&&(a=Ra(c.start),l&&l<=a&&(l=nd(a,1))),{start:a,end:l}}function $S(c,r,a,l){return l==="year"?ni(a.diffWholeYears(c,r),"year"):l==="month"?ni(a.diffWholeMonths(c,r),"month"):ace(c,r)}function eue(c,r){switch(r.type){case"CHANGE_DATE":return r.dateMarker;default:return c}}function tue(c,r){let a=c.initialDate;return a!=null?r.createMarker(a):uA(c.now,r)}function uA(c,r){return typeof c=="function"&&(c=c()),c==null?r.createNowMarker():r.createMarker(c)}class cee{constructor(r){this.props=r,this.nowDate=uA(r.nowInput,r.dateEnv),this.initHiddenDays()}buildPrev(r,a,l){let{dateEnv:i}=this.props,m=i.subtract(i.startOf(a,r.currentRangeUnit),r.dateIncrement);return this.build(m,-1,l)}buildNext(r,a,l){let{dateEnv:i}=this.props,m=i.add(i.startOf(a,r.currentRangeUnit),r.dateIncrement);return this.build(m,1,l)}build(r,a,l=!0){let{props:i}=this,m,v,C,E,T,N;return m=this.buildValidRange(),m=this.trimHiddenDays(m),l&&(r=Jce(r,m)),v=this.buildCurrentRangeInfo(r,a),C=/^(year|month|week|day)$/.test(v.unit),E=this.buildRenderRange(this.trimHiddenDays(v.range),v.unit,C),E=this.trimHiddenDays(E),T=E,i.showNonCurrentDates||(T=Z2(T,v.range)),T=this.adjustActiveRange(T),T=Z2(T,m),N=I$(v.range,m),Y1(E,r)||(r=E.start),{currentDate:r,validRange:m,currentRange:v.range,currentRangeUnit:v.unit,isRangeAllDay:C,activeRange:T,renderRange:E,slotMinTime:i.slotMinTime,slotMaxTime:i.slotMaxTime,isValid:N,dateIncrement:this.buildDateIncrement(v.duration)}}buildValidRange(){let r=this.props.validRangeInput,a=typeof r=="function"?r.call(this.props.calendarApi,this.nowDate):r;return this.refineRange(a)||{start:null,end:null}}buildCurrentRangeInfo(r,a){let{props:l}=this,i=null,m=null,v=null,C;return l.duration?(i=l.duration,m=l.durationUnit,v=this.buildRangeFromDuration(r,a,i,m)):(C=this.props.dayCount)?(m="day",v=this.buildRangeFromDayCount(r,a,C)):(v=this.buildCustomVisibleRange(r))?m=l.dateEnv.greatestWholeUnit(v.start,v.end).unit:(i=this.getFallbackDuration(),m=_$(i).unit,v=this.buildRangeFromDuration(r,a,i,m)),{duration:i,unit:m,range:v}}getFallbackDuration(){return ni({day:1})}adjustActiveRange(r){let{dateEnv:a,usesMinMaxTime:l,slotMinTime:i,slotMaxTime:m}=this.props,{start:v,end:C}=r;return l&&(FS(i)<0&&(v=Ra(v),v=a.add(v,i)),FS(m)>1&&(C=Ra(C),C=nd(C,-1),C=a.add(C,m))),{start:v,end:C}}buildRangeFromDuration(r,a,l,i){let{dateEnv:m,dateAlignment:v}=this.props,C,E,T;if(!v){let{dateIncrement:V}=this.props;V&&rg(V)<rg(l)?v=_$(V).unit:v=i}FS(l)<=1&&this.isHiddenDay(C)&&(C=this.skipHiddenDays(C,a),C=Ra(C));function N(){C=m.startOf(r,v),E=m.add(C,l),T={start:C,end:E}}return N(),this.trimHiddenDays(T)||(r=this.skipHiddenDays(r,a),N()),T}buildRangeFromDayCount(r,a,l){let{dateEnv:i,dateAlignment:m}=this.props,v=0,C=r,E;m&&(C=i.startOf(C,m)),C=Ra(C),C=this.skipHiddenDays(C,a),E=C;do E=nd(E,1),this.isHiddenDay(E)||(v+=1);while(v<l);return{start:C,end:E}}buildCustomVisibleRange(r){let{props:a}=this,l=a.visibleRangeInput,i=typeof l=="function"?l.call(a.calendarApi,a.dateEnv.toDate(r)):l,m=this.refineRange(i);return m&&(m.start==null||m.end==null)?null:m}buildRenderRange(r,a,l){return r}buildDateIncrement(r){let{dateIncrement:a}=this.props,l;return a||((l=this.props.dateAlignment)?ni(1,l):r||ni({days:1}))}refineRange(r){if(r){let a=Yce(r,this.props.dateEnv);return a&&(a=lee(a)),a}return null}initHiddenDays(){let r=this.props.hiddenDays||[],a=[],l=0,i;for(this.props.weekends===!1&&r.push(0,6),i=0;i<7;i+=1)(a[i]=r.indexOf(i)!==-1)||(l+=1);if(!l)throw new Error("invalid hiddenDays");this.isHiddenDayHash=a}trimHiddenDays(r){let{start:a,end:l}=r;return a&&(a=this.skipHiddenDays(a)),l&&(l=this.skipHiddenDays(l,-1,!0)),a==null||l==null||a<l?{start:a,end:l}:null}isHiddenDay(r){return r instanceof Date&&(r=r.getUTCDay()),this.isHiddenDayHash[r]}skipHiddenDays(r,a=1,l=!1){for(;this.isHiddenDayHash[(r.getUTCDay()+(l?a:0)+7)%7];)r=nd(r,a);return r}}function B$(c,r,a,l){return{instanceId:H2(),defId:c,range:r,forcedStartTzo:a??null,forcedEndTzo:l??null}}function nue(c,r,a,l){for(let i=0;i<l.length;i+=1){let m=l[i].parse(c,a);if(m){let{allDay:v}=c;return v==null&&(v=r,v==null&&(v=m.allDayGuess,v==null&&(v=!1))),{allDay:v,duration:m.duration,typeData:m.typeData,typeId:i}}}return null}function q2(c,r,a){let{dateEnv:l,pluginHooks:i,options:m}=a,{defs:v,instances:C}=c;C=j2(C,E=>!v[E.defId].recurringDef);for(let E in v){let T=v[E];if(T.recurringDef){let{duration:N}=T.recurringDef;N||(N=T.allDay?m.defaultAllDayEventDuration:m.defaultTimedEventDuration);let V=oue(T,N,r,l,i.recurringTypes);for(let U of V){let z=B$(E,{start:U,end:l.add(U,N)});C[z.instanceId]=z}}}return{defs:v,instances:C}}function oue(c,r,a,l,i){let v=i[c.recurringDef.typeId].expand(c.recurringDef.typeData,{start:l.subtract(a.start,r),end:a.end},l);return c.allDay&&(v=v.map(Ra)),v}const fR={id:String,groupId:String,title:String,url:String,interactive:Boolean},uee={start:qt,end:qt,date:qt,allDay:Boolean},sue=Object.assign(Object.assign(Object.assign({},fR),uee),{extendedProps:qt});function dee(c,r,a,l,i=M$(a),m,v){let{refined:C,extra:E}=fee(c,a,i),T=iue(r,a),N=nue(C,T,a.dateEnv,a.pluginHooks.recurringTypes);if(N){let U=P$(C,E,r?r.sourceId:"",N.allDay,!!N.duration,a,m);return U.recurringDef={typeId:N.typeId,typeData:N.typeData,duration:N.duration},{def:U,instance:null}}let V=rue(C,T,a,l);if(V){let U=P$(C,E,r?r.sourceId:"",V.allDay,V.hasEnd,a,m),z=B$(U.defId,V.range,V.forcedStartTzo,V.forcedEndTzo);return v&&U.publicId&&v[U.publicId]&&(z.instanceId=v[U.publicId]),{def:U,instance:z}}return null}function fee(c,r,a=M$(r)){return x$(c,a)}function M$(c){return Object.assign(Object.assign(Object.assign({},hR),sue),c.pluginHooks.eventRefiners)}function P$(c,r,a,l,i,m,v){let C={title:c.title||"",groupId:c.groupId||"",publicId:c.id||"",url:c.url||"",recurringDef:null,defId:(v&&c.id?v[c.id]:"")||H2(),sourceId:a,allDay:l,hasEnd:i,interactive:c.interactive,ui:gR(c,m),extendedProps:Object.assign(Object.assign({},c.extendedProps||{}),r)};for(let E of m.pluginHooks.eventDefMemberAdders)Object.assign(C,E(c));return Object.freeze(C.ui.classNames),Object.freeze(C.extendedProps),C}function rue(c,r,a,l){let{allDay:i}=c,m,v=null,C=!1,E,T=null,N=c.start!=null?c.start:c.date;if(m=a.dateEnv.createMarkerMeta(N),m)v=m.marker;else if(!l)return null;return c.end!=null&&(E=a.dateEnv.createMarkerMeta(c.end)),i==null&&(r!=null?i=r:i=(!m||m.isTimeUnspecified)&&(!E||E.isTimeUnspecified)),i&&v&&(v=Ra(v)),E&&(T=E.marker,i&&(T=Ra(T)),v&&T<=v&&(T=null)),T?C=!0:l||(C=a.options.forceEventDuration||!1,T=a.dateEnv.add(v,i?a.options.defaultAllDayEventDuration:a.options.defaultTimedEventDuration)),{allDay:i,hasEnd:C,range:{start:v,end:T},forcedStartTzo:m?m.forcedTzo:null,forcedEndTzo:E?E.forcedTzo:null}}function iue(c,r){let a=null;return c&&(a=c.defaultAllDay),a==null&&(a=r.options.defaultAllDay),a}function dA(c,r,a,l,i,m){let v=im(),C=M$(a);for(let E of c){let T=dee(E,r,a,l,C,i,m);T&&L$(T,v)}return v}function L$(c,r=im()){return r.defs[c.def.defId]=c.def,c.instance&&(r.instances[c.instance.instanceId]=c.instance),r}function F$(c,r){let a=c.instances[r];if(a){let l=c.defs[a.defId],i=mR(c,m=>aue(l,m));return i.defs[l.defId]=l,i.instances[a.instanceId]=a,i}return im()}function aue(c,r){return!!(c.groupId&&c.groupId===r.groupId)}function im(){return{defs:{},instances:{}}}function $$(c,r){return{defs:Object.assign(Object.assign({},c.defs),r.defs),instances:Object.assign(Object.assign({},c.instances),r.instances)}}function mR(c,r){let a=j2(c.defs,r),l=j2(c.instances,i=>a[i.defId]);return{defs:a,instances:l}}function lue(c,r){let{defs:a,instances:l}=c,i={},m={};for(let v in a)r.defs[v]||(i[v]=a[v]);for(let v in l)!r.instances[v]&&i[l[v].defId]&&(m[v]=l[v]);return{defs:i,instances:m}}function cue(c,r){return Array.isArray(c)?dA(c,null,r,!0):typeof c=="object"&&c?dA([c],null,r,!0):c!=null?String(c):null}function mee(c){return Array.isArray(c)?c:typeof c=="string"?c.split(/\s+/):[]}const hR={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:qt,overlap:qt,allow:qt,className:mee,classNames:mee,color:String,backgroundColor:String,borderColor:String,textColor:String},uue={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function gR(c,r){let a=cue(c.constraint,r);return{display:c.display||null,startEditable:c.startEditable!=null?c.startEditable:c.editable,durationEditable:c.durationEditable!=null?c.durationEditable:c.editable,constraints:a!=null?[a]:[],overlap:c.overlap!=null?c.overlap:null,allows:c.allow!=null?[c.allow]:[],backgroundColor:c.backgroundColor||c.color||"",borderColor:c.borderColor||c.color||"",textColor:c.textColor||"",classNames:(c.className||[]).concat(c.classNames||[])}}function hee(c){return c.reduce(due,uue)}function due(c,r){return{display:r.display!=null?r.display:c.display,startEditable:r.startEditable!=null?r.startEditable:c.startEditable,durationEditable:r.durationEditable!=null?r.durationEditable:c.durationEditable,constraints:c.constraints.concat(r.constraints),overlap:typeof r.overlap=="boolean"?r.overlap:c.overlap,allows:c.allows.concat(r.allows),backgroundColor:r.backgroundColor||c.backgroundColor,borderColor:r.borderColor||c.borderColor,textColor:r.textColor||c.textColor,classNames:c.classNames.concat(r.classNames)}}const fue={id:String,defaultAllDay:Boolean,url:String,format:String,events:qt,eventDataTransform:qt,success:qt,failure:qt};function gee(c,r,a=pee(r)){let l;if(typeof c=="string"?l={url:c}:typeof c=="function"||Array.isArray(c)?l={events:c}:typeof c=="object"&&c&&(l=c),l){let{refined:i,extra:m}=x$(l,a),v=mue(i,r);if(v)return{_raw:c,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||"",sourceId:H2(),sourceDefId:v.sourceDefId,meta:v.meta,ui:gR(i,r),extendedProps:m}}return null}function pee(c){return Object.assign(Object.assign(Object.assign({},hR),fue),c.pluginHooks.eventSourceRefiners)}function mue(c,r){let a=r.pluginHooks.eventSourceDefs;for(let l=a.length-1;l>=0;l-=1){let m=a[l].parseMeta(c);if(m)return{sourceDefId:l,meta:m}}return null}function hue(c,r,a,l,i){switch(r.type){case"RECEIVE_EVENTS":return gue(c,a[r.sourceId],r.fetchId,r.fetchRange,r.rawEvents,i);case"RESET_RAW_EVENTS":return pue(c,a[r.sourceId],r.rawEvents,l.activeRange,i);case"ADD_EVENTS":return vue(c,r.eventStore,l?l.activeRange:null,i);case"RESET_EVENTS":return r.eventStore;case"MERGE_EVENTS":return $$(c,r.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return l?q2(c,l.activeRange,i):c;case"REMOVE_EVENTS":return lue(c,r.eventStore);case"REMOVE_EVENT_SOURCE":return Cee(c,r.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return mR(c,m=>!m.sourceId);case"REMOVE_ALL_EVENTS":return im();default:return c}}function gue(c,r,a,l,i,m){if(r&&a===r.latestFetchId){let v=dA(vee(i,r,m),r,m);return l&&(v=q2(v,l,m)),$$(Cee(c,r.sourceId),v)}return c}function pue(c,r,a,l,i){const{defIdMap:m,instanceIdMap:v}=bue(c);let C=dA(vee(a,r,i),r,i,!1,m,v);return q2(C,l,i)}function vee(c,r,a){let l=a.options.eventDataTransform,i=r?r.eventDataTransform:null;return i&&(c=yee(c,i)),l&&(c=yee(c,l)),c}function yee(c,r){let a;if(!r)a=c;else{a=[];for(let l of c){let i=r(l);i?a.push(i):i==null&&a.push(l)}}return a}function vue(c,r,a,l){return a&&(r=q2(r,a,l)),$$(c,r)}function bee(c,r,a){let{defs:l}=c,i=Z1(c.instances,m=>l[m.defId].allDay?m:Object.assign(Object.assign({},m),{range:{start:a.createMarker(r.toDate(m.range.start,m.forcedStartTzo)),end:a.createMarker(r.toDate(m.range.end,m.forcedEndTzo))},forcedStartTzo:a.canComputeOffset?null:m.forcedStartTzo,forcedEndTzo:a.canComputeOffset?null:m.forcedEndTzo}));return{defs:l,instances:i}}function Cee(c,r){return mR(c,a=>a.sourceId!==r)}function yue(c,r){return{defs:c.defs,instances:j2(c.instances,a=>!r[a.instanceId])}}function bue(c){const{defs:r,instances:a}=c,l={},i={};for(let m in r){const v=r[m],{publicId:C}=v;C&&(l[C]=m)}for(let m in a){const v=a[m],C=r[v.defId],{publicId:E}=C;E&&(i[E]=m)}return{defIdMap:l,instanceIdMap:i}}class pR{constructor(){this.handlers={},this.thisContext=null}setThisContext(r){this.thisContext=r}setOptions(r){this.options=r}on(r,a){Cue(this.handlers,r,a)}off(r,a){_ue(this.handlers,r,a)}trigger(r,...a){let l=this.handlers[r]||[],i=this.options&&this.options[r],m=[].concat(i||[],l);for(let v of m)v.apply(this.thisContext,a)}hasHandlers(r){return!!(this.handlers[r]&&this.handlers[r].length||this.options&&this.options[r])}}function Cue(c,r,a){(c[r]||(c[r]=[])).push(a)}function _ue(c,r,a){a?c[r]&&(c[r]=c[r].filter(l=>l!==a)):delete c[r]}const wue={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function Sue(c,r){return dA(Eue(c),null,r)}function Eue(c){let r;return c===!0?r=[{}]:Array.isArray(c)?r=c.filter(a=>a.daysOfWeek):typeof c=="object"&&c?r=[c]:r=[],r=r.map(a=>Object.assign(Object.assign({},wue),a)),r}function _ee(c,r,a){a.emitter.trigger("select",Object.assign(Object.assign({},V$(c,a)),{jsEvent:r?r.origEvent:null,view:a.viewApi||a.calendarApi.view}))}function kue(c,r){r.emitter.trigger("unselect",{jsEvent:c?c.origEvent:null,view:r.viewApi||r.calendarApi.view})}function V$(c,r){let a={};for(let l of r.pluginHooks.dateSpanTransforms)Object.assign(a,l(c,r));return Object.assign(a,$ue(c,r.dateEnv)),a}function wee(c,r,a){let{dateEnv:l,options:i}=a,m=r;return c?(m=Ra(m),m=l.add(m,i.defaultAllDayEventDuration)):m=l.add(m,i.defaultTimedEventDuration),m}function H$(c,r,a,l){let i=vR(c.defs,r),m=im();for(let v in c.defs){let C=c.defs[v];m.defs[v]=xue(C,i[v],a,l)}for(let v in c.instances){let C=c.instances[v],E=m.defs[C.defId];m.instances[v]=Aue(C,E,i[C.defId],a,l)}return m}function xue(c,r,a,l){let i=a.standardProps||{};i.hasEnd==null&&r.durationEditable&&(a.startDelta||a.endDelta)&&(i.hasEnd=!0);let m=Object.assign(Object.assign(Object.assign({},c),i),{ui:Object.assign(Object.assign({},c.ui),i.ui)});a.extendedProps&&(m.extendedProps=Object.assign(Object.assign({},m.extendedProps),a.extendedProps));for(let v of l.pluginHooks.eventDefMutationAppliers)v(m,a,l);return!m.hasEnd&&l.options.forceEventDuration&&(m.hasEnd=!0),m}function Aue(c,r,a,l,i){let{dateEnv:m}=i,v=l.standardProps&&l.standardProps.allDay===!0,C=l.standardProps&&l.standardProps.hasEnd===!1,E=Object.assign({},c);return v&&(E.range=aee(E.range)),l.datesDelta&&a.startEditable&&(E.range={start:m.add(E.range.start,l.datesDelta),end:m.add(E.range.end,l.datesDelta)}),l.startDelta&&a.durationEditable&&(E.range={start:m.add(E.range.start,l.startDelta),end:E.range.end}),l.endDelta&&a.durationEditable&&(E.range={start:E.range.start,end:m.add(E.range.end,l.endDelta)}),C&&(E.range={start:E.range.start,end:wee(r.allDay,E.range.start,i)}),r.allDay&&(E.range={start:Ra(E.range.start),end:Ra(E.range.end)}),E.range.end<E.range.start&&(E.range.end=wee(r.allDay,E.range.start,i)),E}class VS{constructor(r,a){this.context=r,this.internalEventSource=a}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 fl{constructor(r,a,l){this._context=r,this._def=a,this._instance=l||null}setProp(r,a){if(r in uee)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(r==="id")a=fR[r](a),this.mutate({standardProps:{publicId:a}});else if(r in fR)a=fR[r](a),this.mutate({standardProps:{[r]:a}});else if(r in hR){let l=hR[r](a);r==="color"?l={backgroundColor:a,borderColor:a}:r==="editable"?l={startEditable:a,durationEditable:a}:l={[r]:a},this.mutate({standardProps:{ui:l}})}else console.warn(`Could not set prop '${r}'. Use setExtendedProp instead.`)}setExtendedProp(r,a){this.mutate({extendedProps:{[r]:a}})}setStart(r,a={}){let{dateEnv:l}=this._context,i=l.createMarker(r);if(i&&this._instance){let m=this._instance.range,v=$S(m.start,i,l,a.granularity);a.maintainDuration?this.mutate({datesDelta:v}):this.mutate({startDelta:v})}}setEnd(r,a={}){let{dateEnv:l}=this._context,i;if(!(r!=null&&(i=l.createMarker(r),!i))&&this._instance)if(i){let m=$S(this._instance.range.end,i,l,a.granularity);this.mutate({endDelta:m})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(r,a,l={}){let{dateEnv:i}=this._context,m={allDay:l.allDay},v=i.createMarker(r),C;if(v&&!(a!=null&&(C=i.createMarker(a),!C))&&this._instance){let E=this._instance.range;l.allDay===!0&&(E=aee(E));let T=$S(E.start,v,i,l.granularity);if(C){let N=$S(E.end,C,i,l.granularity);Xle(T,N)?this.mutate({datesDelta:T,standardProps:m}):this.mutate({startDelta:T,endDelta:N,standardProps:m})}else m.hasEnd=!1,this.mutate({datesDelta:T,standardProps:m})}}moveStart(r){let a=ni(r);a&&this.mutate({startDelta:a})}moveEnd(r){let a=ni(r);a&&this.mutate({endDelta:a})}moveDates(r){let a=ni(r);a&&this.mutate({datesDelta:a})}setAllDay(r,a={}){let l={allDay:r},{maintainDuration:i}=a;i==null&&(i=this._context.options.allDayMaintainDuration),this._def.allDay!==r&&(l.hasEnd=i),this.mutate({standardProps:l})}formatRange(r){let{dateEnv:a}=this._context,l=this._instance,i=El(r);return this._def.hasEnd?a.formatRange(l.range.start,l.range.end,i,{forcedStartTzo:l.forcedStartTzo,forcedEndTzo:l.forcedEndTzo}):a.format(l.range.start,i,{forcedTzo:l.forcedStartTzo})}mutate(r){let a=this._instance;if(a){let l=this._def,i=this._context,{eventStore:m}=i.getCurrentData(),v=F$(m,a.instanceId);v=H$(v,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},r,i);let E=new fl(i,l,a);this._def=v.defs[l.defId],this._instance=v.instances[a.instanceId],i.dispatch({type:"MERGE_EVENTS",eventStore:v}),i.emitter.trigger("eventChange",{oldEvent:E,event:this,relatedEvents:K2(v,i,a),revert(){i.dispatch({type:"RESET_EVENTS",eventStore:m})}})}}remove(){let r=this._context,a=See(this);r.dispatch({type:"REMOVE_EVENTS",eventStore:a}),r.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){r.dispatch({type:"MERGE_EVENTS",eventStore:a})}})}get source(){let{sourceId:r}=this._def;return r?new VS(this._context,this._context.getCurrentData().eventSources[r]):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 r=this._instance;return r?this._context.dateEnv.formatIso(r.range.start,{omitTime:this._def.allDay,forcedTzo:r.forcedStartTzo}):""}get endStr(){let r=this._instance;return r&&this._def.hasEnd?this._context.dateEnv.formatIso(r.range.end,{omitTime:this._def.allDay,forcedTzo:r.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(r={}){let a=this._def,{ui:l}=a,{startStr:i,endStr:m}=this,v={allDay:a.allDay};return a.title&&(v.title=a.title),i&&(v.start=i),m&&(v.end=m),a.publicId&&(v.id=a.publicId),a.groupId&&(v.groupId=a.groupId),a.url&&(v.url=a.url),l.display&&l.display!=="auto"&&(v.display=l.display),r.collapseColor&&l.backgroundColor&&l.backgroundColor===l.borderColor?v.color=l.backgroundColor:(l.backgroundColor&&(v.backgroundColor=l.backgroundColor),l.borderColor&&(v.borderColor=l.borderColor)),l.textColor&&(v.textColor=l.textColor),l.classNames.length&&(v.classNames=l.classNames),Object.keys(a.extendedProps).length&&(r.collapseExtendedProps?Object.assign(v,a.extendedProps):v.extendedProps=a.extendedProps),v}toJSON(){return this.toPlainObject()}}function See(c){let r=c._def,a=c._instance;return{defs:{[r.defId]:r},instances:a?{[a.instanceId]:a}:{}}}function K2(c,r,a){let{defs:l,instances:i}=c,m=[],v=a?a.instanceId:"";for(let C in i){let E=i[C],T=l[E.defId];E.instanceId!==v&&m.push(new fl(r,T,E))}return m}function Eee(c,r,a,l){let i={},m={},v={},C=[],E=[],T=vR(c.defs,r);for(let N in c.defs){let V=c.defs[N];T[V.defId].display==="inverse-background"&&(V.groupId?(i[V.groupId]=[],v[V.groupId]||(v[V.groupId]=V)):m[N]=[])}for(let N in c.instances){let V=c.instances[N],U=c.defs[V.defId],z=T[U.defId],W=V.range,K=!U.allDay&&l?lee(W,l):W,Z=Z2(K,a);Z&&(z.display==="inverse-background"?U.groupId?i[U.groupId].push(Z):m[V.defId].push(Z):z.display!=="none"&&(z.display==="background"?C:E).push({def:U,ui:z,instance:V,range:Z,isStart:K.start&&K.start.valueOf()===Z.start.valueOf(),isEnd:K.end&&K.end.valueOf()===Z.end.valueOf()}))}for(let N in i){let V=i[N],U=iee(V,a);for(let z of U){let W=v[N],K=T[W.defId];C.push({def:W,ui:K,instance:null,range:z,isStart:!1,isEnd:!1})}}for(let N in m){let V=m[N],U=iee(V,a);for(let z of U)C.push({def:c.defs[N],ui:T[N],instance:null,range:z,isStart:!1,isEnd:!1})}return{bg:C,fg:E}}function Tue(c){return c.ui.display==="background"||c.ui.display==="inverse-background"}function kee(c,r){c.fcSeg=r}function HS(c){return c.fcSeg||c.parentNode.fcSeg||null}function vR(c,r){return Z1(c,a=>xee(a,r))}function xee(c,r){let a=[];return r[""]&&a.push(r[""]),r[c.defId]&&a.push(r[c.defId]),a.push(c.ui),hee(a)}function Aee(c,r){let a=c.map(Due);return a.sort((l,i)=>Wle(l,i,r)),a.map(l=>l._seg)}function Due(c){let{eventRange:r}=c,a=r.def,l=r.instance?r.instance.range:r.range,i=l.start?l.start.valueOf():0,m=l.end?l.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},a.extendedProps),a),{id:a.publicId,start:i,end:m,duration:m-i,allDay:Number(a.allDay),_seg:c})}function Oue(c,r){let{pluginHooks:a}=r,l=a.isDraggableTransformers,{def:i,ui:m}=c.eventRange,v=m.startEditable;for(let C of l)v=C(v,i,m,r);return v}function Rue(c,r){return c.isStart&&c.eventRange.ui.durationEditable&&r.options.eventResizableFromStart}function Nue(c,r){return c.isEnd&&c.eventRange.ui.durationEditable}function Tee(c,r,a,l,i,m,v){let{dateEnv:C,options:E}=a,{displayEventTime:T,displayEventEnd:N}=E,V=c.eventRange.def,U=c.eventRange.instance;T==null&&(T=l!==!1),N==null&&(N=i!==!1);let z=U.range.start,W=U.range.end,K=m||c.start||c.eventRange.range.start,Z=v||c.end||c.eventRange.range.end,ce=Ra(z).valueOf()===Ra(K).valueOf(),q=Ra(Jv(W,-1)).valueOf()===Ra(Jv(Z,-1)).valueOf();return T&&!V.allDay&&(ce||q)?(K=ce?z:K,Z=q?W:Z,N&&V.hasEnd?C.formatRange(K,Z,r,{forcedStartTzo:m?null:U.forcedStartTzo,forcedEndTzo:v?null:U.forcedEndTzo}):C.format(K,r,{forcedTzo:m?null:U.forcedStartTzo})):""}function ny(c,r,a){let l=c.eventRange.range;return{isPast:l.end<=(a||r.start),isFuture:l.start>=(a||r.end),isToday:r&&Y1(r,l.start)}}function Iue(c){let r=["fc-event"];return c.isMirror&&r.push("fc-event-mirror"),c.isDraggable&&r.push("fc-event-draggable"),(c.isStartResizable||c.isEndResizable)&&r.push("fc-event-resizable"),c.isDragging&&r.push("fc-event-dragging"),c.isResizing&&r.push("fc-event-resizing"),c.isSelected&&r.push("fc-event-selected"),c.isStart&&r.push("fc-event-start"),c.isEnd&&r.push("fc-event-end"),c.isPast&&r.push("fc-event-past"),c.isToday&&r.push("fc-event-today"),c.isFuture&&r.push("fc-event-future"),r}function Dee(c){return c.instance?c.instance.instanceId:`${c.def.defId}:${c.range.start.toISOString()}`}function Oee(c,r){let{def:a,instance:l}=c.eventRange,{url:i}=a;if(i)return{href:i};let{emitter:m,options:v}=r,{eventInteractive:C}=v;return C==null&&(C=a.interactive,C==null&&(C=!!m.hasHandlers("eventClick"))),C?$J(E=>{m.trigger("eventClick",{el:E.target,event:new fl(r,a,l),jsEvent:E,view:r.viewApi})}):{}}const Bue={start:qt,end:qt,allDay:Boolean};function Mue(c,r,a){let l=Pue(c,r),{range:i}=l;if(!i.start)return null;if(!i.end){if(a==null)return null;i.end=r.add(i.start,a)}return l}function Pue(c,r){let{refined:a,extra:l}=x$(c,Bue),i=a.start?r.createMarkerMeta(a.start):null,m=a.end?r.createMarkerMeta(a.end):null,{allDay:v}=a;return v==null&&(v=i&&i.isTimeUnspecified&&(!m||m.isTimeUnspecified)),Object.assign({range:{start:i?i.marker:null,end:m?m.marker:null},allDay:v},l)}function Lue(c,r){return Qce(c.range,r.range)&&c.allDay===r.allDay&&Fue(c,r)}function Fue(c,r){for(let a in r)if(a!=="range"&&a!=="allDay"&&c[a]!==r[a])return!1;for(let a in c)if(!(a in r))return!1;return!0}function $ue(c,r){return Object.assign(Object.assign({},Nee(c.range,r,c.allDay)),{allDay:c.allDay})}function Ree(c,r,a){return Object.assign(Object.assign({},Nee(c,r,a)),{timeZone:r.timeZone})}function Nee(c,r,a){return{start:r.toDate(c.start),end:r.toDate(c.end),startStr:r.formatIso(c.start,{omitTime:a}),endStr:r.formatIso(c.end,{omitTime:a})}}function Vue(c,r,a){let l=fee({editable:!1},a),i=P$(l.refined,l.extra,"",c.allDay,!0,a);return{def:i,ui:xee(i,r),instance:B$(i.defId,c.range),range:c.range,isStart:!0,isEnd:!0}}function Hue(c,r,a){let l=!1,i=function(C){l||(l=!0,r(C))},m=function(C){l||(l=!0,a(C))},v=c(i,m);v&&typeof v.then=="function"&&v.then(i,m)}class Iee extends Error{constructor(r,a){super(r),this.response=a}}function zue(c,r,a){c=c.toUpperCase();const l={method:c};return c==="GET"?r+=(r.indexOf("?")===-1?"?":"&")+new URLSearchParams(a):(l.body=new URLSearchParams(a),l.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(r,l).then(i=>{if(i.ok)return i.json().then(m=>[m,i],()=>{throw new Iee("Failure parsing JSON",i)});throw new Iee("Request failed",i)})}let z$;function Bee(){return z$==null&&(z$=Uue()),z$}function Uue(){if(typeof document>"u")return!0;let c=document.createElement("div");c.style.position="absolute",c.style.top="0px",c.style.left="0px",c.innerHTML="<table><tr><td><div></div></td></tr></table>",c.querySelector("table").style.height="100px",c.querySelector("div").style.height="100%",document.body.appendChild(c);let a=c.querySelector("div").offsetHeight>0;return document.body.removeChild(c),a}class Wue extends Li{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{cR(()=>{this.setState({forPrint:!0})})},this.handleAfterPrint=()=>{cR(()=>{this.setState({forPrint:!1})})}}render(){let{props:r}=this,{options:a}=r,{forPrint:l}=this.state,i=l||a.height==="auto"||a.contentHeight==="auto",m=!i&&a.height!=null?a.height:"",v=["fc",l?"fc-media-print":"fc-media-screen",`fc-direction-${a.direction}`,r.theme.getClass("root")];return Bee()||v.push("fc-liquid-hack"),r.children(v,m,i,l)}componentDidMount(){let{emitter:r}=this.props;r.on("_beforeprint",this.handleBeforePrint),r.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:r}=this.props;r.off("_beforeprint",this.handleBeforePrint),r.off("_afterprint",this.handleAfterPrint)}}class zS{constructor(r){this.component=r.component,this.isHitComboAllowed=r.isHitComboAllowed||null}destroy(){}}function jue(c,r){return{component:c,el:r.el,useEventCenter:r.useEventCenter!=null?r.useEventCenter:!0,isHitComboAllowed:r.isHitComboAllowed||null}}function U$(c){return{[c.component.uid]:c}}const W$={};class Gue{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(r){this.currentDataManager.dispatch(r)}get view(){return this.getCurrentData().viewApi}batchRendering(r){r()}updateSize(){this.trigger("_resize",!0)}setOption(r,a){this.dispatch({type:"SET_OPTION",optionName:r,rawOptionValue:a})}getOption(r){return this.currentDataManager.currentCalendarOptionsInput[r]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(r,a){let{currentDataManager:l}=this;l.currentCalendarOptionsRefiners[r]?l.emitter.on(r,a):console.warn(`Unknown listener name '${r}'`)}off(r,a){this.currentDataManager.emitter.off(r,a)}trigger(r,...a){this.currentDataManager.emitter.trigger(r,...a)}changeView(r,a){this.batchRendering(()=>{if(this.unselect(),a)if(a.start&&a.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:r}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:a});else{let{dateEnv:l}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:r,dateMarker:l.createMarker(a)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:r})})}zoomTo(r,a){let l=this.getCurrentData(),i;a=a||"day",i=l.viewSpecs[a]||this.getUnitViewSpec(a),this.unselect(),i?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:i.type,dateMarker:r}):this.dispatch({type:"CHANGE_DATE",dateMarker:r})}getUnitViewSpec(r){let{viewSpecs:a,toolbarConfig:l}=this.getCurrentData(),i=[].concat(l.header?l.header.viewsWithButtons:[],l.footer?l.footer.viewsWithButtons:[]),m,v;for(let C in a)i.push(C);for(m=0;m<i.length;m+=1)if(v=a[i[m]],v&&v.singleUnit===r)return v;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let r=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:r.dateEnv.addYears(r.currentDate,-1)})}nextYear(){let r=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:r.dateEnv.addYears(r.currentDate,1)})}today(){let r=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:uA(r.calendarOptions.now,r.dateEnv)})}gotoDate(r){let a=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:a.dateEnv.createMarker(r)})}incrementDate(r){let a=this.getCurrentData(),l=ni(r);l&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:a.dateEnv.add(a.currentDate,l)}))}getDate(){let r=this.getCurrentData();return r.dateEnv.toDate(r.currentDate)}formatDate(r,a){let{dateEnv:l}=this.getCurrentData();return l.format(l.createMarker(r),El(a))}formatRange(r,a,l){let{dateEnv:i}=this.getCurrentData();return i.formatRange(i.createMarker(r),i.createMarker(a),El(l),l)}formatIso(r,a){let{dateEnv:l}=this.getCurrentData();return l.formatIso(l.createMarker(r),{omitTime:a})}select(r,a){let l;a==null?r.start!=null?l=r:l={start:r,end:null}:l={start:r,end:a};let i=this.getCurrentData(),m=Mue(l,i.dateEnv,ni({days:1}));m&&(this.dispatch({type:"SELECT_DATES",selection:m}),_ee(m,null,i))}unselect(r){let a=this.getCurrentData();a.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),kue(r,a))}addEvent(r,a){if(r instanceof fl){let v=r._def,C=r._instance;return this.getCurrentData().eventStore.defs[v.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:L$({def:v,instance:C})}),this.triggerEventAdd(r)),r}let l=this.getCurrentData(),i;if(a instanceof VS)i=a.internalEventSource;else if(typeof a=="boolean")a&&([i]=T$(l.eventSources));else if(a!=null){let v=this.getEventSourceById(a);if(!v)return console.warn(`Could not find an event source with ID "${a}"`),null;i=v.internalEventSource}let m=dee(r,i,l,!1);if(m){let v=new fl(l,m.def,m.def.recurringDef?null:m.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:L$(m)}),this.triggerEventAdd(v),v}return null}triggerEventAdd(r){let{emitter:a}=this.getCurrentData();a.trigger("eventAdd",{event:r,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:See(r)})}})}getEventById(r){let a=this.getCurrentData(),{defs:l,instances:i}=a.eventStore;r=String(r);for(let m in l){let v=l[m];if(v.publicId===r){if(v.recurringDef)return new fl(a,v,null);for(let C in i){let E=i[C];if(E.defId===v.defId)return new fl(a,v,E)}}}return null}getEvents(){let r=this.getCurrentData();return K2(r.eventStore,r)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let r=this.getCurrentData(),a=r.eventSources,l=[];for(let i in a)l.push(new VS(r,a[i]));return l}getEventSourceById(r){let a=this.getCurrentData(),l=a.eventSources;r=String(r);for(let i in l)if(l[i].publicId===r)return new VS(a,l[i]);return null}addEventSource(r){let a=this.getCurrentData();if(r instanceof VS)return a.eventSources[r.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[r.internalEventSource]}),r;let l=gee(r,a);return l?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[l]}),new VS(a,l)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(r){let a=ni(r);a&&this.trigger("_scrollRequest",{time:a})}}function Zue(c,r){return c.left>=r.left&&c.left<r.right&&c.top>=r.top&&c.top<r.bottom}function Mee(c,r){let a={left:Math.max(c.left,r.left),right:Math.min(c.right,r.right),top:Math.max(c.top,r.top),bottom:Math.min(c.bottom,r.bottom)};return a.left<a.right&&a.top<a.bottom?a:!1}function que(c,r){return{left:Math.min(Math.max(c.left,r.left),r.right),top:Math.min(Math.max(c.top,r.top),r.bottom)}}function Kue(c){return{left:(c.left+c.right)/2,top:(c.top+c.bottom)/2}}function Yue(c,r){return{left:c.left-r.left,top:c.top-r.top}}const j$=im();class Xue{constructor(){this.getKeysForEventDefs=Ms(this._getKeysForEventDefs),this.splitDateSelection=Ms(this._splitDateSpan),this.splitEventStore=Ms(this._splitEventStore),this.splitIndividualUi=Ms(this._splitIndividualUi),this.splitEventDrag=Ms(this._splitInteraction),this.splitEventResize=Ms(this._splitInteraction),this.eventUiBuilders={}}splitProps(r){let a=this.getKeyInfo(r),l=this.getKeysForEventDefs(r.eventStore),i=this.splitDateSelection(r.dateSelection),m=this.splitIndividualUi(r.eventUiBases,l),v=this.splitEventStore(r.eventStore,l),C=this.splitEventDrag(r.eventDrag),E=this.splitEventResize(r.eventResize),T={};this.eventUiBuilders=Z1(a,(N,V)=>this.eventUiBuilders[V]||Ms(Que));for(let N in a){let V=a[N],U=v[N]||j$,z=this.eventUiBuilders[N];T[N]={businessHours:V.businessHours||r.businessHours,dateSelection:i[N]||null,eventStore:U,eventUiBases:z(r.eventUiBases[""],V.ui,m[N]),eventSelection:U.instances[r.eventSelection]?r.eventSelection:"",eventDrag:C[N]||null,eventResize:E[N]||null}}return T}_splitDateSpan(r){let a={};if(r){let l=this.getKeysForDateSpan(r);for(let i of l)a[i]=r}return a}_getKeysForEventDefs(r){return Z1(r.defs,a=>this.getKeysForEventDef(a))}_splitEventStore(r,a){let{defs:l,instances:i}=r,m={};for(let v in l)for(let C of a[v])m[C]||(m[C]=im()),m[C].defs[v]=l[v];for(let v in i){let C=i[v];for(let E of a[C.defId])m[E]&&(m[E].instances[v]=C)}return m}_splitIndividualUi(r,a){let l={};for(let i in r)if(i)for(let m of a[i])l[m]||(l[m]={}),l[m][i]=r[i];return l}_splitInteraction(r){let a={};if(r){let l=this._splitEventStore(r.affectedEvents,this._getKeysForEventDefs(r.affectedEvents)),i=this._getKeysForEventDefs(r.mutatedEvents),m=this._splitEventStore(r.mutatedEvents,i),v=C=>{a[C]||(a[C]={affectedEvents:l[C]||j$,mutatedEvents:m[C]||j$,isEvent:r.isEvent})};for(let C in l)v(C);for(let C in m)v(C)}return a}}function Que(c,r,a){let l=[];c&&l.push(c),r&&l.push(r);let i={"":hee(l)};return a&&Object.assign(i,a),i}function Pee(c,r,a,l){return{dow:c.getUTCDay(),isDisabled:!!(l&&!Y1(l.activeRange,c)),isOther:!!(l&&!Y1(l.currentRange,c)),isToday:!!(r&&Y1(r,c)),isPast:!!(a?c<a:r&&c<r.start),isFuture:!!(a?c>a:r&&c>=r.end)}}function G$(c,r){let a=["fc-day",`fc-day-${nce[c.dow]}`];return c.isDisabled?a.push("fc-day-disabled"):(c.isToday&&(a.push("fc-day-today"),a.push(r.getClass("today"))),c.isPast&&a.push("fc-day-past"),c.isFuture&&a.push("fc-day-future"),c.isOther&&a.push("fc-day-other")),a}const Jue=El({year:"numeric",month:"long",day:"numeric"}),ede=El({week:"long"});function yR(c,r,a="day",l=!0){const{dateEnv:i,options:m,calendarApi:v}=c;let C=i.format(r,a==="week"?ede:Jue);if(m.navLinks){let E=i.toDate(r);const T=N=>{let V=a==="day"?m.navLinkDayClick:a==="week"?m.navLinkWeekClick:null;typeof V=="function"?V.call(v,i.toDate(r),N):(typeof V=="string"&&(a=V),v.zoomTo(r,a))};return Object.assign({title:aA(m.navLinkHint,[C,E],C),"data-navlink":""},l?FJ(T):{onClick:T})}return{"aria-label":C}}let Z$=null;function tde(){return Z$===null&&(Z$=nde()),Z$}function nde(){let c=document.createElement("div");iA(c,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),c.innerHTML="<div></div>",document.body.appendChild(c);let a=c.firstChild.getBoundingClientRect().left>c.getBoundingClientRect().left;return p$(c),a}let q$;function ode(){return q$||(q$=sde()),q$}function sde(){let c=document.createElement("div");c.style.overflow="scroll",c.style.position="absolute",c.style.top="-9999px",c.style.left="-9999px",document.body.appendChild(c);let r=Lee(c);return document.body.removeChild(c),r}function Lee(c){return{x:c.offsetHeight-c.clientHeight,y:c.offsetWidth-c.clientWidth}}function rde(c,r=!1){let a=window.getComputedStyle(c),l=parseInt(a.borderLeftWidth,10)||0,i=parseInt(a.borderRightWidth,10)||0,m=parseInt(a.borderTopWidth,10)||0,v=parseInt(a.borderBottomWidth,10)||0,C=Lee(c),E=C.y-l-i,T=C.x-m-v,N={borderLeft:l,borderRight:i,borderTop:m,borderBottom:v,scrollbarBottom:T,scrollbarLeft:0,scrollbarRight:0};return tde()&&a.direction==="rtl"?N.scrollbarLeft=E:N.scrollbarRight=E,r&&(N.paddingLeft=parseInt(a.paddingLeft,10)||0,N.paddingRight=parseInt(a.paddingRight,10)||0,N.paddingTop=parseInt(a.paddingTop,10)||0,N.paddingBottom=parseInt(a.paddingBottom,10)||0),N}function ide(c,r=!1,a){let l=a?c.getBoundingClientRect():K$(c),i=rde(c,r),m={left:l.left+i.borderLeft+i.scrollbarLeft,right:l.right-i.borderRight-i.scrollbarRight,top:l.top+i.borderTop,bottom:l.bottom-i.borderBottom-i.scrollbarBottom};return r&&(m.left+=i.paddingLeft,m.right-=i.paddingRight,m.top+=i.paddingTop,m.bottom-=i.paddingBottom),m}function K$(c){let r=c.getBoundingClientRect();return{left:r.left+window.scrollX,top:r.top+window.scrollY,right:r.right+window.scrollX,bottom:r.bottom+window.scrollY}}function ade(c){let r=Fee(c),a=c.getBoundingClientRect();for(let l of r){let i=Mee(a,l.getBoundingClientRect());if(i)a=i;else return null}return a}function Fee(c){let r=[];for(;c instanceof HTMLElement;){let a=window.getComputedStyle(c);if(a.position==="fixed")break;/(auto|scroll)/.test(a.overflow+a.overflowY+a.overflowX)&&r.push(c),c=c.parentNode}return r}class US{constructor(r,a,l,i){this.els=a;let m=this.originClientRect=r.getBoundingClientRect();l&&this.buildElHorizontals(m.left),i&&this.buildElVerticals(m.top)}buildElHorizontals(r){let a=[],l=[];for(let i of this.els){let m=i.getBoundingClientRect();a.push(m.left-r),l.push(m.right-r)}this.lefts=a,this.rights=l}buildElVerticals(r){let a=[],l=[];for(let i of this.els){let m=i.getBoundingClientRect();a.push(m.top-r),l.push(m.bottom-r)}this.tops=a,this.bottoms=l}leftToIndex(r){let{lefts:a,rights:l}=this,i=a.length,m;for(m=0;m<i;m+=1)if(r>=a[m]&&r<l[m])return m}topToIndex(r){let{tops:a,bottoms:l}=this,i=a.length,m;for(m=0;m<i;m+=1)if(r>=a[m]&&r<l[m])return m}getWidth(r){return this.rights[r]-this.lefts[r]}getHeight(r){return this.bottoms[r]-this.tops[r]}similarTo(r){return bR(this.tops||[],r.tops||[])&&bR(this.bottoms||[],r.bottoms||[])&&bR(this.lefts||[],r.lefts||[])&&bR(this.rights||[],r.rights||[])}}function bR(c,r){const a=c.length;if(a!==r.length)return!1;for(let l=0;l<a;l++)if(Math.round(c[l])!==Math.round(r[l]))return!1;return!0}class Y${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 lde extends Y${constructor(r){super(),this.el=r}getScrollTop(){return this.el.scrollTop}getScrollLeft(){return this.el.scrollLeft}setScrollTop(r){this.el.scrollTop=r}setScrollLeft(r){this.el.scrollLeft=r}getScrollWidth(){return this.el.scrollWidth}getScrollHeight(){return this.el.scrollHeight}getClientHeight(){return this.el.clientHeight}getClientWidth(){return this.el.clientWidth}}class cde extends Y${getScrollTop(){return window.scrollY}getScrollLeft(){return window.scrollX}setScrollTop(r){window.scroll(window.scrollX,r)}setScrollLeft(r){window.scroll(r,window.scrollY)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class wp extends Li{constructor(){super(...arguments),this.uid=H2()}prepareHits(){}queryHit(r,a,l,i){return null}isValidSegDownEl(r){return!this.props.eventDrag&&!this.props.eventResize&&!td(r,".fc-event-mirror")}isValidDateDownEl(r){return!td(r,".fc-event:not(.fc-bg-event)")&&!td(r,".fc-more-link")&&!td(r,"a[data-navlink]")&&!td(r,".fc-popover")}}class $ee{constructor(r=a=>a.thickness||1){this.getEntryThickness=r,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(r){let a=[];for(let l of r)this.insertEntry(l,a);return a}insertEntry(r,a){let l=this.findInsertion(r);this.isInsertionValid(l,r)?this.insertEntryAt(r,l):this.handleInvalidInsertion(l,r,a)}isInsertionValid(r,a){return(this.maxCoord===-1||r.levelCoord+this.getEntryThickness(a)<=this.maxCoord)&&(this.maxStackCnt===-1||r.stackCnt<this.maxStackCnt)}handleInvalidInsertion(r,a,l){if(this.allowReslicing&&r.touchingEntry){const i=Object.assign(Object.assign({},a),{span:Q$(a.span,r.touchingEntry.span)});l.push(i),this.splitEntry(a,r.touchingEntry,l)}else l.push(a)}splitEntry(r,a,l){let i=r.span,m=a.span;i.start<m.start&&this.insertEntry({index:r.index,thickness:r.thickness,span:{start:i.start,end:m.start}},l),i.end>m.end&&this.insertEntry({index:r.index,thickness:r.thickness,span:{start:m.end,end:i.end}},l)}insertEntryAt(r,a){let{entriesByLevel:l,levelCoords:i}=this;a.lateral===-1?(J$(i,a.level,a.levelCoord),J$(l,a.level,[r])):J$(l[a.level],a.lateral,r),this.stackCnts[Y2(r)]=a.stackCnt}findInsertion(r){let{levelCoords:a,entriesByLevel:l,strictOrder:i,stackCnts:m}=this,v=a.length,C=0,E=-1,T=-1,N=null,V=0;for(let W=0;W<v;W+=1){const K=a[W];if(!i&&K>=C+this.getEntryThickness(r))break;let Z=l[W],ce,q=eV(Z,r.span.start,X$),X=q[0]+q[1];for(;(ce=Z[X])&&ce.span.start<r.span.end;){let Ce=K+this.getEntryThickness(ce);Ce>C&&(C=Ce,N=ce,E=W,T=X),Ce===C&&(V=Math.max(V,m[Y2(ce)]+1)),X+=1}}let U=0;if(N)for(U=E+1;U<v&&a[U]<C;)U+=1;let z=-1;return U<v&&a[U]===C&&(z=eV(l[U],r.span.end,X$)[0]),{touchingLevel:E,touchingLateral:T,touchingEntry:N,stackCnt:V,levelCoord:C,level:U,lateral:z}}toRects(){let{entriesByLevel:r,levelCoords:a}=this,l=r.length,i=[];for(let m=0;m<l;m+=1){let v=r[m],C=a[m];for(let E of v)i.push(Object.assign(Object.assign({},E),{thickness:this.getEntryThickness(E),levelCoord:C}))}return i}}function X$(c){return c.span.end}function Y2(c){return c.index+":"+c.span.start}function ude(c){let r=[];for(let a of c){let l=[],i={span:a.span,entries:[a]};for(let m of r)Q$(m.span,i.span)?i={entries:m.entries.concat(i.entries),span:dde(m.span,i.span)}:l.push(m);l.push(i),r=l}return r}function dde(c,r){return{start:Math.min(c.start,r.start),end:Math.max(c.end,r.end)}}function Q$(c,r){let a=Math.max(c.start,r.start),l=Math.min(c.end,r.end);return a<l?{start:a,end:l}:null}function J$(c,r,a){c.splice(r,0,a)}function eV(c,r,a){let l=0,i=c.length;if(!i||r<a(c[l]))return[0,0];if(r>a(c[i-1]))return[i,0];for(;l<i;){let m=Math.floor(l+(i-l)/2),v=a(c[m]);if(r<v)i=m;else if(r>v)l=m+1;else return[m,1]}return[l,0]}class fde{constructor(r,a){this.emitter=new pR}destroy(){}setMirrorIsVisible(r){}setMirrorNeedsRevert(r){}setAutoScrollEnabled(r){}}const tV={};function mde(c,r){return!c||r>10?El({weekday:"short"}):r>1?El({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):El({weekday:"long"})}const Vee="fc-col-header-cell";function Hee(c){return c.text}class hde extends Li{render(){let{dateEnv:r,options:a,theme:l,viewApi:i}=this.context,{props:m}=this,{date:v,dateProfile:C}=m,E=Pee(v,m.todayRange,null,C),T=[Vee].concat(G$(E,l)),N=r.format(v,m.dayHeaderFormat),V=!E.isDisabled&&m.colCnt>1?yR(this.context,v):{},U=Object.assign(Object.assign(Object.assign({date:r.toDate(v),view:i},m.extraRenderProps),{text:N}),E);return rt(rm,{elTag:"th",elClasses:T,elAttrs:Object.assign({role:"columnheader",colSpan:m.colSpan,"data-date":E.isDisabled?void 0:S$(v)},m.extraDataAttrs),renderProps:U,generatorName:"dayHeaderContent",customGenerator:a.dayHeaderContent,defaultGenerator:Hee,classNameGenerator:a.dayHeaderClassNames,didMount:a.dayHeaderDidMount,willUnmount:a.dayHeaderWillUnmount},z=>rt("div",{className:"fc-scrollgrid-sync-inner"},!E.isDisabled&&rt(z,{elTag:"a",elAttrs:V,elClasses:["fc-col-header-cell-cushion",m.isSticky&&"fc-sticky"]})))}}const gde=El({weekday:"long"});class pde extends Li{render(){let{props:r}=this,{dateEnv:a,theme:l,viewApi:i,options:m}=this.context,v=nd(new Date(2592e5),r.dow),C={dow:r.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},E=a.format(v,r.dayHeaderFormat),T=Object.assign(Object.assign(Object.assign(Object.assign({date:v},C),{view:i}),r.extraRenderProps),{text:E});return rt(rm,{elTag:"th",elClasses:[Vee,...G$(C,l),...r.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:r.colSpan},r.extraDataAttrs),renderProps:T,generatorName:"dayHeaderContent",customGenerator:m.dayHeaderContent,defaultGenerator:Hee,classNameGenerator:m.dayHeaderClassNames,didMount:m.dayHeaderDidMount,willUnmount:m.dayHeaderWillUnmount},N=>rt("div",{className:"fc-scrollgrid-sync-inner"},rt(N,{elTag:"a",elClasses:["fc-col-header-cell-cushion",r.isSticky&&"fc-sticky"],elAttrs:{"aria-label":a.format(v,gde)}})))}}class fA extends sm{constructor(r,a){super(r,a),this.initialNowDate=uA(a.options.now,a.dateEnv),this.initialNowQueriedMs=new Date().valueOf(),this.state=this.computeTiming().currentState}render(){let{props:r,state:a}=this;return r.children(a.nowDate,a.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(r){r.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:r,context:a}=this,l=Jv(this.initialNowDate,new Date().valueOf()-this.initialNowQueriedMs),i=a.dateEnv.startOf(l,r.unit),m=a.dateEnv.add(i,ni(1,r.unit)),v=m.valueOf()-l.valueOf();return v=Math.min(1e3*60*60*24,v),{currentState:{nowDate:i,todayRange:zee(i)},nextState:{nowDate:m,todayRange:zee(m)},waitMs:v}}setTimeout(){let{nextState:r,waitMs:a}=this.computeTiming();this.timeoutId=setTimeout(()=>{this.setState(r,()=>{this.setTimeout()})},a)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}fA.contextType=q1;function zee(c){let r=Ra(c),a=nd(r,1);return{start:r,end:a}}class Uee extends Li{constructor(){super(...arguments),this.createDayHeaderFormatter=Ms(vde)}render(){let{context:r}=this,{dates:a,dateProfile:l,datesRepDistinctDays:i,renderIntro:m}=this.props,v=this.createDayHeaderFormatter(r.options.dayHeaderFormat,i,a.length);return rt(fA,{unit:"day"},(C,E)=>rt("tr",{role:"row"},m&&m("day"),a.map(T=>i?rt(hde,{key:T.toISOString(),date:T,dateProfile:l,todayRange:E,colCnt:a.length,dayHeaderFormat:v}):rt(pde,{key:T.getUTCDay(),dow:T.getUTCDay(),dayHeaderFormat:v}))))}}function vde(c,r,a){return c||mde(r,a)}class Wee{constructor(r,a){let l=r.start,{end:i}=r,m=[],v=[],C=-1;for(;l<i;)a.isHiddenDay(l)?m.push(C+.5):(C+=1,m.push(C),v.push(l)),l=nd(l,1);this.dates=v,this.indices=m,this.cnt=v.length}sliceRange(r){let a=this.getDateDayIndex(r.start),l=this.getDateDayIndex(nd(r.end,-1)),i=Math.max(0,a),m=Math.min(this.cnt-1,l);return i=Math.ceil(i),m=Math.floor(m),i<=m?{firstIndex:i,lastIndex:m,isStart:a===i,isEnd:l===m}:null}getDateDayIndex(r){let{indices:a}=this,l=Math.floor(z2(this.dates[0],r));return l<0?a[0]-1:l>=a.length?a[a.length-1]+1:a[l]}}class jee{constructor(r,a){let{dates:l}=r,i,m,v;if(a){for(m=l[0].getUTCDay(),i=1;i<l.length&&l[i].getUTCDay()!==m;i+=1);v=Math.ceil(l.length/i)}else v=1,i=l.length;this.rowCnt=v,this.colCnt=i,this.daySeries=r,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let r=[];for(let a=0;a<this.rowCnt;a+=1){let l=[];for(let i=0;i<this.colCnt;i+=1)l.push(this.buildCell(a,i));r.push(l)}return r}buildCell(r,a){let l=this.daySeries.dates[r*this.colCnt+a];return{key:l.toISOString(),date:l}}buildHeaderDates(){let r=[];for(let a=0;a<this.colCnt;a+=1)r.push(this.cells[0][a].date);return r}sliceRange(r){let{colCnt:a}=this,l=this.daySeries.sliceRange(r),i=[];if(l){let{firstIndex:m,lastIndex:v}=l,C=m;for(;C<=v;){let E=Math.floor(C/a),T=Math.min((E+1)*a,v+1);i.push({row:E,firstCol:C%a,lastCol:(T-1)%a,isStart:l.isStart&&C===m,isEnd:l.isEnd&&T-1===v}),C=T}}return i}}class Gee{constructor(){this.sliceBusinessHours=Ms(this._sliceBusinessHours),this.sliceDateSelection=Ms(this._sliceDateSpan),this.sliceEventStore=Ms(this._sliceEventStore),this.sliceEventDrag=Ms(this._sliceInteraction),this.sliceEventResize=Ms(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(r,a,l,i,...m){let{eventUiBases:v}=r,C=this.sliceEventStore(r.eventStore,v,a,l,...m);return{dateSelectionSegs:this.sliceDateSelection(r.dateSelection,a,l,v,i,...m),businessHourSegs:this.sliceBusinessHours(r.businessHours,a,l,i,...m),fgEventSegs:C.fg,bgEventSegs:C.bg,eventDrag:this.sliceEventDrag(r.eventDrag,v,a,l,...m),eventResize:this.sliceEventResize(r.eventResize,v,a,l,...m),eventSelection:r.eventSelection}}sliceNowDate(r,a,l,i,...m){return this._sliceDateSpan({range:{start:r,end:Jv(r,1)},allDay:!1},a,l,{},i,...m)}_sliceBusinessHours(r,a,l,i,...m){return r?this._sliceEventStore(q2(r,CR(a,!!l),i),{},a,l,...m).bg:[]}_sliceEventStore(r,a,l,i,...m){if(r){let v=Eee(r,a,CR(l,!!i),i);return{bg:this.sliceEventRanges(v.bg,m),fg:this.sliceEventRanges(v.fg,m)}}return{bg:[],fg:[]}}_sliceInteraction(r,a,l,i,...m){if(!r)return null;let v=Eee(r.mutatedEvents,a,CR(l,!!i),i);return{segs:this.sliceEventRanges(v.fg,m),affectedInstances:r.affectedEvents.instances,isEvent:r.isEvent}}_sliceDateSpan(r,a,l,i,m,...v){if(!r)return[];let C=CR(a,!!l),E=Z2(r.range,C);if(E){r=Object.assign(Object.assign({},r),{range:E});let T=Vue(r,i,m),N=this.sliceRange(r.range,...v);for(let V of N)V.eventRange=T;return N}return[]}sliceEventRanges(r,a){let l=[];for(let i of r)l.push(...this.sliceEventRange(i,a));return l}sliceEventRange(r,a){let l=r.range;this.forceDayIfListItem&&r.ui.display==="list-item"&&(l={start:l.start,end:nd(l.start,1)});let i=this.sliceRange(l,...a);for(let m of i)m.eventRange=r,m.isStart=r.isStart&&m.isStart,m.isEnd=r.isEnd&&m.isEnd;return i}}function CR(c,r){let a=c.activeRange;return r?a:{start:Jv(a.start,c.slotMinTime.milliseconds),end:Jv(a.end,c.slotMaxTime.milliseconds-864e5)}}function Zee(c,r,a){let{instances:l}=c.mutatedEvents;for(let i in l)if(!dR(r.validRange,l[i].range))return!1;return qee({eventDrag:c},a)}function yde(c,r,a){return dR(r.validRange,c.range)?qee({dateSelection:c},a):!1}function qee(c,r){let a=r.getCurrentData(),l=Object.assign({businessHours:a.businessHours,dateSelection:"",eventStore:a.eventStore,eventUiBases:a.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},c);return(r.pluginHooks.isPropsValid||bde)(l,r)}function bde(c,r,a={},l){return!(c.eventDrag&&!Cde(c,r,a,l)||c.dateSelection&&!_de(c,r,a,l))}function Cde(c,r,a,l){let i=r.getCurrentData(),m=c.eventDrag,v=m.mutatedEvents,C=v.defs,E=v.instances,T=vR(C,m.isEvent?c.eventUiBases:{"":i.selectionConfig});l&&(T=Z1(T,l));let N=yue(c.eventStore,m.affectedEvents.instances),V=N.defs,U=N.instances,z=vR(V,c.eventUiBases);for(let W in E){let K=E[W],Z=K.range,ce=T[K.defId],q=C[K.defId];if(!Kee(ce.constraints,Z,N,c.businessHours,r))return!1;let{eventOverlap:X}=r.options,Ce=typeof X=="function"?X:null;for(let Ne in U){let ee=U[Ne];if(I$(Z,ee.range)&&(z[ee.defId].overlap===!1&&m.isEvent||ce.overlap===!1||Ce&&!Ce(new fl(r,V[ee.defId],ee),new fl(r,q,K))))return!1}let st=i.eventStore;for(let Ne of ce.allows){let ee=Object.assign(Object.assign({},a),{range:K.range,allDay:q.allDay}),xe=st.defs[q.defId],et=st.instances[W],tt;if(xe?tt=new fl(r,xe,et):tt=new fl(r,q),!Ne(V$(ee,r),tt))return!1}}return!0}function _de(c,r,a,l){let i=c.eventStore,m=i.defs,v=i.instances,C=c.dateSelection,E=C.range,{selectionConfig:T}=r.getCurrentData();if(l&&(T=l(T)),!Kee(T.constraints,E,i,c.businessHours,r))return!1;let{selectOverlap:N}=r.options,V=typeof N=="function"?N:null;for(let U in v){let z=v[U];if(I$(E,z.range)&&(T.overlap===!1||V&&!V(new fl(r,m[z.defId],z),null)))return!1}for(let U of T.allows){let z=Object.assign(Object.assign({},a),C);if(!U(V$(z,r),null))return!1}return!0}function Kee(c,r,a,l,i){for(let m of c)if(!Sde(wde(m,r,a,l,i),r))return!1;return!0}function wde(c,r,a,l,i){return c==="businessHours"?nV(q2(l,r,i)):typeof c=="string"?nV(mR(a,m=>m.groupId===c)):typeof c=="object"&&c?nV(q2(c,r,i)):[]}function nV(c){let{instances:r}=c,a=[];for(let l in r)a.push(r[l].range);return a}function Sde(c,r){for(let a of c)if(dR(a,r))return!0;return!1}const _R=/^(visible|hidden)$/;class Ede extends Li{constructor(){super(...arguments),this.handleEl=r=>{this.el=r,K1(this.props.elRef,r)}}render(){let{props:r}=this,{liquid:a,liquidIsAbsolute:l}=r,i=a&&l,m=["fc-scroller"];return a&&(l?m.push("fc-scroller-liquid-absolute"):m.push("fc-scroller-liquid")),rt("div",{ref:this.handleEl,className:m.join(" "),style:{overflowX:r.overflowX,overflowY:r.overflowY,left:i&&-(r.overcomeLeft||0)||"",right:i&&-(r.overcomeRight||0)||"",bottom:i&&-(r.overcomeBottom||0)||"",marginLeft:!i&&-(r.overcomeLeft||0)||"",marginRight:!i&&-(r.overcomeRight||0)||"",marginBottom:!i&&-(r.overcomeBottom||0)||"",maxHeight:r.maxHeight||""}},r.children)}needsXScrolling(){if(_R.test(this.props.overflowX))return!1;let{el:r}=this,a=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:l}=r;for(let i=0;i<l.length;i+=1)if(l[i].getBoundingClientRect().width>a)return!0;return!1}needsYScrolling(){if(_R.test(this.props.overflowY))return!1;let{el:r}=this,a=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:l}=r;for(let i=0;i<l.length;i+=1)if(l[i].getBoundingClientRect().height>a)return!0;return!1}getXScrollbarWidth(){return _R.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return _R.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class X1{constructor(r){this.masterCallback=r,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(a,l)=>{let{depths:i,currentMap:m}=this,v=!1,C=!1;a!==null?(v=l in m,m[l]=a,i[l]=(i[l]||0)+1,C=!0):(i[l]-=1,i[l]||(delete m[l],delete this.callbackMap[l],v=!0)),this.masterCallback&&(v&&this.masterCallback(null,String(l)),C&&this.masterCallback(a,String(l)))}}createRef(r){let a=this.callbackMap[r];return a||(a=this.callbackMap[r]=l=>{this.handleValue(l,String(r))}),a}collect(r,a,l){return Mce(this.currentMap,r,a,l)}getAll(){return T$(this.currentMap)}}function kde(c){let r=Ble(c,".fc-scrollgrid-shrink"),a=0;for(let l of r)a=Math.max(a,qle(l));return Math.ceil(a)}function Yee(c,r){return c.liquid&&r.liquid}function xde(c,r){return r.maxHeight!=null||Yee(c,r)}function Ade(c,r,a,l){let{expandRows:i}=a;return typeof r.content=="function"?r.content(a):rt("table",{role:"presentation",className:[r.tableClassName,c.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:a.tableMinWidth,width:a.clientWidth,height:i?a.clientHeight:""}},a.tableColGroupNode,rt(l?"thead":"tbody",{role:"presentation"},typeof r.rowContent=="function"?r.rowContent(a):r.rowContent))}function Tde(c,r){return Qv(c,r,_p)}function Dde(c,r){let a=[];for(let l of c){let i=l.span||1;for(let m=0;m<i;m+=1)a.push(rt("col",{style:{width:l.width==="shrink"?Ode(r):l.width||"",minWidth:l.minWidth||""}}))}return rt("colgroup",{},...a)}function Ode(c){return c??4}function Rde(c){for(let r of c)if(r.width==="shrink")return!0;return!1}function Nde(c,r){let a=["fc-scrollgrid",r.theme.getClass("table")];return c&&a.push("fc-scrollgrid-liquid"),a}function Ide(c,r){let a=["fc-scrollgrid-section",`fc-scrollgrid-section-${c.type}`,c.className];return r&&c.liquid&&c.maxHeight==null&&a.push("fc-scrollgrid-section-liquid"),c.isSticky&&a.push("fc-scrollgrid-section-sticky"),a}function oV(c){return rt("div",{className:"fc-scrollgrid-sticky-shim",style:{width:c.clientWidth,minWidth:c.tableMinWidth}})}function wR(c){let{stickyHeaderDates:r}=c;return(r==null||r==="auto")&&(r=c.height==="auto"||c.viewHeight==="auto"),r}function Xee(c){let{stickyFooterScrollbar:r}=c;return(r==null||r==="auto")&&(r=c.height==="auto"||c.viewHeight==="auto"),r}class sV extends Li{constructor(){super(...arguments),this.processCols=Ms(r=>r,Tde),this.renderMicroColGroup=Ms(Dde),this.scrollerRefs=new X1,this.scrollerElRefs=new X1(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:r,state:a,context:l}=this,i=r.sections||[],m=this.processCols(r.cols),v=this.renderMicroColGroup(m,a.shrinkWidth),C=Nde(r.liquid,l);r.collapsibleWidth&&C.push("fc-scrollgrid-collapsible");let E=i.length,T=0,N,V=[],U=[],z=[];for(;T<E&&(N=i[T]).type==="header";)V.push(this.renderSection(N,v,!0)),T+=1;for(;T<E&&(N=i[T]).type==="body";)U.push(this.renderSection(N,v,!1)),T+=1;for(;T<E&&(N=i[T]).type==="footer";)z.push(this.renderSection(N,v,!0)),T+=1;let W=!Bee();const K={role:"rowgroup"};return rt("table",{role:"grid",className:C.join(" "),style:{height:r.height}},!!(!W&&V.length)&&rt("thead",K,...V),!!(!W&&U.length)&&rt("tbody",K,...U),!!(!W&&z.length)&&rt("tfoot",K,...z),W&&rt("tbody",K,...V,...U,...z))}renderSection(r,a,l){return"outerContent"in r?rt(Ya,{key:r.key},r.outerContent):rt("tr",{key:r.key,role:"presentation",className:Ide(r,this.props.liquid).join(" ")},this.renderChunkTd(r,a,r.chunk,l))}renderChunkTd(r,a,l,i){if("outerContent"in l)return l.outerContent;let{props:m}=this,{forceYScrollbars:v,scrollerClientWidths:C,scrollerClientHeights:E}=this.state,T=xde(m,r),N=Yee(m,r),V=m.liquid?v?"scroll":T?"auto":"hidden":"visible",U=r.key,z=Ade(r,l,{tableColGroupNode:a,tableMinWidth:"",clientWidth:!m.collapsibleWidth&&C[U]!==void 0?C[U]:null,clientHeight:E[U]!==void 0?E[U]:null,expandRows:r.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},i);return rt(i?"th":"td",{ref:l.elRef,role:"presentation"},rt("div",{className:`fc-scroller-harness${N?" fc-scroller-harness-liquid":""}`},rt(Ede,{ref:this.scrollerRefs.createRef(U),elRef:this.scrollerElRefs.createRef(U),overflowY:V,overflowX:m.liquid?"hidden":"visible",maxHeight:r.maxHeight,liquid:N,liquidIsAbsolute:!0},z)))}_handleScrollerEl(r,a){let l=Bde(this.props.sections,a);l&&K1(l.chunk.scrollerElRef,r)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return Rde(this.props.cols)?kde(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let r=ode(),{scrollerRefs:a,scrollerElRefs:l}=this,i=!1,m={},v={};for(let C in a.currentMap){let E=a.currentMap[C];if(E&&E.needsYScrolling()){i=!0;break}}for(let C of this.props.sections){let E=C.key,T=l.currentMap[E];if(T){let N=T.parentNode;m[E]=Math.floor(N.getBoundingClientRect().width-(i?r.y:0)),v[E]=Math.floor(N.getBoundingClientRect().height)}}return{forceYScrollbars:i,scrollerClientWidths:m,scrollerClientHeights:v}}}sV.addStateEquality({scrollerClientWidths:_p,scrollerClientHeights:_p});function Bde(c,r){for(let a of c)if(a.key===r)return a;return null}class rV extends Li{constructor(){super(...arguments),this.handleEl=r=>{this.el=r,r&&kee(r,this.props.seg)}}render(){const{props:r,context:a}=this,{options:l}=a,{seg:i}=r,{eventRange:m}=i,{ui:v}=m,C={event:new fl(a,m.def,m.instance),view:a.viewApi,timeText:r.timeText,textColor:v.textColor,backgroundColor:v.backgroundColor,borderColor:v.borderColor,isDraggable:!r.disableDragging&&Oue(i,a),isStartResizable:!r.disableResizing&&Rue(i,a),isEndResizable:!r.disableResizing&&Nue(i),isMirror:!!(r.isDragging||r.isResizing||r.isDateSelecting),isStart:!!i.isStart,isEnd:!!i.isEnd,isPast:!!r.isPast,isFuture:!!r.isFuture,isToday:!!r.isToday,isSelected:!!r.isSelected,isDragging:!!r.isDragging,isResizing:!!r.isResizing};return rt(rm,Object.assign({},r,{elRef:this.handleEl,elClasses:[...Iue(C),...i.eventRange.ui.classNames,...r.elClasses||[]],renderProps:C,generatorName:"eventContent",customGenerator:l.eventContent,defaultGenerator:r.defaultGenerator,classNameGenerator:l.eventClassNames,didMount:l.eventDidMount,willUnmount:l.eventWillUnmount}))}componentDidUpdate(r){this.el&&this.props.seg!==r.seg&&kee(this.el,this.props.seg)}}class Qee extends Li{render(){let{props:r,context:a}=this,{options:l}=a,{seg:i}=r,{ui:m}=i.eventRange,v=l.eventTimeFormat||r.defaultTimeFormat,C=Tee(i,v,a,r.defaultDisplayEventTime,r.defaultDisplayEventEnd);return rt(rV,Object.assign({},r,{elTag:"a",elStyle:{borderColor:m.borderColor,backgroundColor:m.backgroundColor},elAttrs:Oee(i,a),defaultGenerator:Mde,timeText:C}),(E,T)=>rt(Ya,null,rt(E,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:T.textColor}}),!!T.isStartResizable&&rt("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!T.isEndResizable&&rt("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function Mde(c){return rt("div",{className:"fc-event-main-frame"},c.timeText&&rt("div",{className:"fc-event-time"},c.timeText),rt("div",{className:"fc-event-title-container"},rt("div",{className:"fc-event-title fc-sticky"},c.event.title||rt(Ya,null," "))))}const iV=c=>rt(q1.Consumer,null,r=>{let{options:a}=r,l={isAxis:c.isAxis,date:r.dateEnv.toDate(c.date),view:r.viewApi};return rt(rm,Object.assign({},c,{elTag:c.elTag||"div",renderProps:l,generatorName:"nowIndicatorContent",customGenerator:a.nowIndicatorContent,classNameGenerator:a.nowIndicatorClassNames,didMount:a.nowIndicatorDidMount,willUnmount:a.nowIndicatorWillUnmount}))}),Pde=El({day:"numeric"});class aV extends Li{constructor(){super(...arguments),this.refineRenderProps=oR(Lde)}render(){let{props:r,context:a}=this,{options:l}=a,i=this.refineRenderProps({date:r.date,dateProfile:r.dateProfile,todayRange:r.todayRange,isMonthStart:r.isMonthStart||!1,showDayNumber:r.showDayNumber,extraRenderProps:r.extraRenderProps,viewApi:a.viewApi,dateEnv:a.dateEnv,monthStartFormat:l.monthStartFormat});return rt(rm,Object.assign({},r,{elClasses:[...G$(i,a.theme),...r.elClasses||[]],elAttrs:Object.assign(Object.assign({},r.elAttrs),i.isDisabled?{}:{"data-date":S$(r.date)}),renderProps:i,generatorName:"dayCellContent",customGenerator:l.dayCellContent,defaultGenerator:r.defaultGenerator,classNameGenerator:i.isDisabled?void 0:l.dayCellClassNames,didMount:l.dayCellDidMount,willUnmount:l.dayCellWillUnmount}))}}function lV(c){return!!(c.dayCellContent||N$("dayCellContent",c))}function Lde(c){let{date:r,dateEnv:a,dateProfile:l,isMonthStart:i}=c,m=Pee(r,c.todayRange,null,l),v=c.showDayNumber?a.format(r,i?c.monthStartFormat:Pde):"";return Object.assign(Object.assign(Object.assign({date:a.toDate(r),view:c.viewApi},m),{isMonthStart:i,dayNumberText:v}),c.extraRenderProps)}class Jee extends Li{render(){let{props:r}=this,{seg:a}=r;return rt(rV,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:a.eventRange.ui.backgroundColor},defaultGenerator:Fde,seg:a,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:r.isPast,isFuture:r.isFuture,isToday:r.isToday,disableDragging:!0,disableResizing:!0})}}function Fde(c){let{title:r}=c.event;return r&&rt("div",{className:"fc-event-title"},c.event.title)}function ete(c){return rt("div",{className:`fc-${c}`})}const tte=c=>rt(q1.Consumer,null,r=>{let{dateEnv:a,options:l}=r,{date:i}=c,m=l.weekNumberFormat||c.defaultFormat,v=a.computeWeekNumber(i),C=a.format(i,m);return rt(rm,Object.assign({},c,{renderProps:{num:v,text:C,date:i},generatorName:"weekNumberContent",customGenerator:l.weekNumberContent,defaultGenerator:$de,classNameGenerator:l.weekNumberClassNames,didMount:l.weekNumberDidMount,willUnmount:l.weekNumberWillUnmount}))});function $de(c){return c.text}const cV=10;class Vde extends Li{constructor(){super(...arguments),this.state={titleId:JO()},this.handleRootEl=r=>{this.rootEl=r,this.props.elRef&&K1(this.props.elRef,r)},this.handleDocumentMouseDown=r=>{const a=BJ(r);this.rootEl.contains(a)||this.handleCloseClick()},this.handleDocumentKeyDown=r=>{r.key==="Escape"&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:r}=this.props;r&&r()}}render(){let{theme:r,options:a}=this.context,{props:l,state:i}=this,m=["fc-popover",r.getClass("popover")].concat(l.extraClassNames||[]);return Cle(rt("div",Object.assign({},l.extraAttrs,{id:l.id,className:m.join(" "),"aria-labelledby":i.titleId,ref:this.handleRootEl}),rt("div",{className:"fc-popover-header "+r.getClass("popoverHeader")},rt("span",{className:"fc-popover-title",id:i.titleId},l.title),rt("span",{className:"fc-popover-close "+r.getIconClass("close"),title:a.closeHint,onClick:this.handleCloseClick})),rt("div",{className:"fc-popover-body "+r.getClass("popoverContent")},l.children)),l.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:r}=this.context,{alignmentEl:a,alignGridTop:l}=this.props,{rootEl:i}=this,m=ade(a);if(m){let v=i.getBoundingClientRect(),C=l?td(a,".fc-scrollgrid").getBoundingClientRect().top:m.top,E=r?m.right-v.width:m.left;C=Math.max(C,cV),E=Math.min(E,document.documentElement.clientWidth-cV-v.width),E=Math.max(E,cV);let T=i.offsetParent.getBoundingClientRect();iA(i,{top:C-T.top,left:E-T.left})}}}class Hde extends wp{constructor(){super(...arguments),this.handleRootEl=r=>{this.rootEl=r,r?this.context.registerInteractiveComponent(this,{el:r,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:r,dateEnv:a}=this.context,{props:l}=this,{startDate:i,todayRange:m,dateProfile:v}=l,C=a.format(i,r.dayPopoverFormat);return rt(aV,{elRef:this.handleRootEl,date:i,dateProfile:v,todayRange:m},(E,T,N)=>rt(Vde,{elRef:N.ref,id:l.id,title:C,extraClassNames:["fc-more-popover"].concat(N.className||[]),extraAttrs:N,parentEl:l.parentEl,alignmentEl:l.alignmentEl,alignGridTop:l.alignGridTop,onClose:l.onClose},lV(r)&&rt(E,{elTag:"div",elClasses:["fc-more-popover-misc"]}),l.children))}queryHit(r,a,l,i){let{rootEl:m,props:v}=this;return r>=0&&r<l&&a>=0&&a<i?{dateProfile:v.dateProfile,dateSpan:Object.assign({allDay:!v.forceTimed,range:{start:v.startDate,end:v.endDate}},v.extraDateSpan),dayEl:m,rect:{left:0,top:0,right:l,bottom:i},layer:1}:null}}class nte extends Li{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:JO()},this.handleLinkEl=r=>{this.linkEl=r,this.props.elRef&&K1(this.props.elRef,r)},this.handleClick=r=>{let{props:a,context:l}=this,{moreLinkClick:i}=l.options,m=ote(a).start;function v(C){let{def:E,instance:T,range:N}=C.eventRange;return{event:new fl(l,E,T),start:l.dateEnv.toDate(N.start),end:l.dateEnv.toDate(N.end),isStart:C.isStart,isEnd:C.isEnd}}typeof i=="function"&&(i=i({date:m,allDay:!!a.allDayDate,allSegs:a.allSegs.map(v),hiddenSegs:a.hiddenSegs.map(v),jsEvent:r,view:l.viewApi})),!i||i==="popover"?this.setState({isPopoverOpen:!0}):typeof i=="string"&&l.calendarApi.zoomTo(m,i)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:r,state:a}=this;return rt(q1.Consumer,null,l=>{let{viewApi:i,options:m,calendarApi:v}=l,{moreLinkText:C}=m,{moreCnt:E}=r,T=ote(r),N=typeof C=="function"?C.call(v,E):`+${E} ${C}`,V=aA(m.moreLinkHint,[E],N),U={num:E,shortText:`+${E}`,text:N,view:i};return rt(Ya,null,!!r.moreCnt&&rt(rm,{elTag:r.elTag||"a",elRef:this.handleLinkEl,elClasses:[...r.elClasses||[],"fc-more-link"],elStyle:r.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},r.elAttrs),FJ(this.handleClick)),{title:V,"aria-expanded":a.isPopoverOpen,"aria-controls":a.isPopoverOpen?a.popoverId:""}),renderProps:U,generatorName:"moreLinkContent",customGenerator:m.moreLinkContent,defaultGenerator:r.defaultGenerator||zde,classNameGenerator:m.moreLinkClassNames,didMount:m.moreLinkDidMount,willUnmount:m.moreLinkWillUnmount},r.children),a.isPopoverOpen&&rt(Hde,{id:a.popoverId,startDate:T.start,endDate:T.end,dateProfile:r.dateProfile,todayRange:r.todayRange,extraDateSpan:r.extraDateSpan,parentEl:this.parentEl,alignmentEl:r.alignmentElRef?r.alignmentElRef.current:this.linkEl,alignGridTop:r.alignGridTop,forceTimed:r.forceTimed,onClose:this.handlePopoverClose},r.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=td(this.linkEl,".fc-view-harness"))}}function zde(c){return c.text}function ote(c){if(c.allDayDate)return{start:c.allDayDate,end:nd(c.allDayDate,1)};let{hiddenSegs:r}=c;return{start:ste(r),end:Wde(r)}}function ste(c){return c.reduce(Ude).eventRange.range.start}function Ude(c,r){return c.eventRange.range.start<r.eventRange.range.start?c:r}function Wde(c){return c.reduce(jde).eventRange.range.end}function jde(c,r){return c.eventRange.range.end>r.eventRange.range.end?c:r}class Gde{constructor(){this.handlers=[]}set(r){this.currentValue=r;for(let a of this.handlers)a(r)}subscribe(r){this.handlers.push(r),this.currentValue!==void 0&&r(this.currentValue)}}class Zde extends Gde{constructor(){super(...arguments),this.map=new Map}handle(r){const{map:a}=this;let l=!1;r.isActive?(a.set(r.id,r),l=!0):a.has(r.id)&&(a.delete(r.id),l=!0),l&&this.set(a)}}const qde=[],rte={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"},ite=Object.assign(Object.assign({},rte),{buttonHints:{prev:"Previous $0",next:"Next $0",today(c,r){return r==="day"?"Today":`This ${c}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(c){return`Show ${c} more event${c===1?"":"s"}`}});function Kde(c){let r=c.length>0?c[0].code:"en",a=qde.concat(c),l={en:ite};for(let i of a)l[i.code]=i;return{map:l,defaultCode:r}}function ate(c,r){return typeof c=="object"&&!Array.isArray(c)?lte(c.code,[c.code],c):Yde(c,r)}function Yde(c,r){let a=[].concat(c||[]),l=Xde(a,r)||ite;return lte(c,a,l)}function Xde(c,r){for(let a=0;a<c.length;a+=1){let l=c[a].toLocaleLowerCase().split("-");for(let i=l.length;i>0;i-=1){let m=l.slice(0,i).join("-");if(r[m])return r[m]}}return null}function lte(c,r,a){let l=A$([rte,a],["buttonText"]);delete l.code;let{week:i}=l;return delete l.week,{codeArg:c,codes:r,week:i,simpleNumberFormat:new Intl.NumberFormat(c),options:l}}function Q1(c){return{id:H2(),name:c.name,premiumReleaseDate:c.premiumReleaseDate?new Date(c.premiumReleaseDate):void 0,deps:c.deps||[],reducers:c.reducers||[],isLoadingFuncs:c.isLoadingFuncs||[],contextInit:[].concat(c.contextInit||[]),eventRefiners:c.eventRefiners||{},eventDefMemberAdders:c.eventDefMemberAdders||[],eventSourceRefiners:c.eventSourceRefiners||{},isDraggableTransformers:c.isDraggableTransformers||[],eventDragMutationMassagers:c.eventDragMutationMassagers||[],eventDefMutationAppliers:c.eventDefMutationAppliers||[],dateSelectionTransformers:c.dateSelectionTransformers||[],datePointTransforms:c.datePointTransforms||[],dateSpanTransforms:c.dateSpanTransforms||[],views:c.views||{},viewPropsTransformers:c.viewPropsTransformers||[],isPropsValid:c.isPropsValid||null,externalDefTransforms:c.externalDefTransforms||[],viewContainerAppends:c.viewContainerAppends||[],eventDropTransformers:c.eventDropTransformers||[],componentInteractions:c.componentInteractions||[],calendarInteractions:c.calendarInteractions||[],themeClasses:c.themeClasses||{},eventSourceDefs:c.eventSourceDefs||[],cmdFormatter:c.cmdFormatter,recurringTypes:c.recurringTypes||[],namedTimeZonedImpl:c.namedTimeZonedImpl,initialView:c.initialView||"",elementDraggingImpl:c.elementDraggingImpl,optionChangeHandlers:c.optionChangeHandlers||{},scrollGridImpl:c.scrollGridImpl||null,listenerRefiners:c.listenerRefiners||{},optionRefiners:c.optionRefiners||{},propSetHandlers:c.propSetHandlers||{}}}function Qde(c,r){let a={},l={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 i(m){for(let v of m){const C=v.name,E=a[C];E===void 0?(a[C]=v.id,i(v.deps),l=efe(l,v)):E!==v.id&&console.warn(`Duplicate plugin '${C}'`)}}return c&&i(c),i(r),l}function Jde(){let c=[],r=[],a;return(l,i)=>((!a||!Qv(l,c)||!Qv(i,r))&&(a=Qde(l,i)),c=l,r=i,a)}function efe(c,r){return{premiumReleaseDate:tfe(c.premiumReleaseDate,r.premiumReleaseDate),reducers:c.reducers.concat(r.reducers),isLoadingFuncs:c.isLoadingFuncs.concat(r.isLoadingFuncs),contextInit:c.contextInit.concat(r.contextInit),eventRefiners:Object.assign(Object.assign({},c.eventRefiners),r.eventRefiners),eventDefMemberAdders:c.eventDefMemberAdders.concat(r.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},c.eventSourceRefiners),r.eventSourceRefiners),isDraggableTransformers:c.isDraggableTransformers.concat(r.isDraggableTransformers),eventDragMutationMassagers:c.eventDragMutationMassagers.concat(r.eventDragMutationMassagers),eventDefMutationAppliers:c.eventDefMutationAppliers.concat(r.eventDefMutationAppliers),dateSelectionTransformers:c.dateSelectionTransformers.concat(r.dateSelectionTransformers),datePointTransforms:c.datePointTransforms.concat(r.datePointTransforms),dateSpanTransforms:c.dateSpanTransforms.concat(r.dateSpanTransforms),views:Object.assign(Object.assign({},c.views),r.views),viewPropsTransformers:c.viewPropsTransformers.concat(r.viewPropsTransformers),isPropsValid:r.isPropsValid||c.isPropsValid,externalDefTransforms:c.externalDefTransforms.concat(r.externalDefTransforms),viewContainerAppends:c.viewContainerAppends.concat(r.viewContainerAppends),eventDropTransformers:c.eventDropTransformers.concat(r.eventDropTransformers),calendarInteractions:c.calendarInteractions.concat(r.calendarInteractions),componentInteractions:c.componentInteractions.concat(r.componentInteractions),themeClasses:Object.assign(Object.assign({},c.themeClasses),r.themeClasses),eventSourceDefs:c.eventSourceDefs.concat(r.eventSourceDefs),cmdFormatter:r.cmdFormatter||c.cmdFormatter,recurringTypes:c.recurringTypes.concat(r.recurringTypes),namedTimeZonedImpl:r.namedTimeZonedImpl||c.namedTimeZonedImpl,initialView:c.initialView||r.initialView,elementDraggingImpl:c.elementDraggingImpl||r.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},c.optionChangeHandlers),r.optionChangeHandlers),scrollGridImpl:r.scrollGridImpl||c.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},c.listenerRefiners),r.listenerRefiners),optionRefiners:Object.assign(Object.assign({},c.optionRefiners),r.optionRefiners),propSetHandlers:Object.assign(Object.assign({},c.propSetHandlers),r.propSetHandlers)}}function tfe(c,r){return c===void 0?r:r===void 0?c:new Date(Math.max(c.valueOf(),r.valueOf()))}class oy extends cA{}oy.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},oy.prototype.baseIconClass="fc-icon",oy.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"},oy.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},oy.prototype.iconOverrideOption="buttonIcons",oy.prototype.iconOverrideCustomButtonOption="icon",oy.prototype.iconOverridePrefix="fc-icon-";function nfe(c,r){let a={},l;for(l in c)uV(l,a,c,r);for(l in r)uV(l,a,c,r);return a}function uV(c,r,a,l){if(r[c])return r[c];let i=ofe(c,r,a,l);return i&&(r[c]=i),i}function ofe(c,r,a,l){let i=a[c],m=l[c],v=N=>i&&i[N]!==null?i[N]:m&&m[N]!==null?m[N]:null,C=v("component"),E=v("superType"),T=null;if(E){if(E===c)throw new Error("Can't have a custom view type that references itself");T=uV(E,r,a,l)}return!C&&T&&(C=T.component),C?{type:c,component:C,defaults:Object.assign(Object.assign({},T?T.defaults:{}),i?i.rawOptions:{}),overrides:Object.assign(Object.assign({},T?T.overrides:{}),m?m.rawOptions:{})}:null}function cte(c){return Z1(c,sfe)}function sfe(c){let r=typeof c=="function"?{component:c}:c,{component:a}=r;return r.content?a=ute(r):a&&!(a.prototype instanceof Li)&&(a=ute(Object.assign(Object.assign({},r),{content:a}))),{superType:r.type,component:a,rawOptions:r}}function ute(c){return r=>rt(q1.Consumer,null,a=>rt(rm,{elTag:"div",elClasses:ree(a.viewSpec),renderProps:Object.assign(Object.assign({},r),{nextDayThreshold:a.options.nextDayThreshold}),generatorName:void 0,customGenerator:c.content,classNameGenerator:c.classNames,didMount:c.didMount,willUnmount:c.willUnmount}))}function rfe(c,r,a,l){let i=cte(c),m=cte(r.views),v=nfe(i,m);return Z1(v,C=>ife(C,m,r,a,l))}function ife(c,r,a,l,i){let m=c.overrides.duration||c.defaults.duration||l.duration||a.duration,v=null,C="",E="",T={};if(m&&(v=afe(m),v)){let U=_$(v);C=U.unit,U.value===1&&(E=C,T=r[C]?r[C].rawOptions:{})}let N=U=>{let z=U.buttonText||{},W=c.defaults.buttonTextKey;return W!=null&&z[W]!=null?z[W]:z[c.type]!=null?z[c.type]:z[E]!=null?z[E]:null},V=U=>{let z=U.buttonHints||{},W=c.defaults.buttonTextKey;return W!=null&&z[W]!=null?z[W]:z[c.type]!=null?z[c.type]:z[E]!=null?z[E]:null};return{type:c.type,component:c.component,duration:v,durationUnit:C,singleUnit:E,optionDefaults:c.defaults,optionOverrides:Object.assign(Object.assign({},T),c.overrides),buttonTextOverride:N(l)||N(a)||c.overrides.buttonText,buttonTextDefault:N(i)||c.defaults.buttonText||N(lA)||c.type,buttonTitleOverride:V(l)||V(a)||c.overrides.buttonHint,buttonTitleDefault:V(i)||c.defaults.buttonHint||V(lA)}}let dte={};function afe(c){let r=JSON.stringify(c),a=dte[r];return a===void 0&&(a=ni(c),dte[r]=a),a}function lfe(c,r){switch(r.type){case"CHANGE_VIEW_TYPE":c=r.viewType}return c}function cfe(c,r){switch(r.type){case"SET_OPTION":return Object.assign(Object.assign({},c),{[r.optionName]:r.rawOptionValue});default:return c}}function ufe(c,r,a,l){let i;switch(r.type){case"CHANGE_VIEW_TYPE":return l.build(r.dateMarker||a);case"CHANGE_DATE":return l.build(r.dateMarker);case"PREV":if(i=l.buildPrev(c,a),i.isValid)return i;break;case"NEXT":if(i=l.buildNext(c,a),i.isValid)return i;break}return c}function dfe(c,r,a){let l=r?r.activeRange:null;return mte({},yfe(c,a),l,a)}function ffe(c,r,a,l){let i=a?a.activeRange:null;switch(r.type){case"ADD_EVENT_SOURCES":return mte(c,r.sources,i,l);case"REMOVE_EVENT_SOURCE":return hfe(c,r.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return a?hte(c,i,l):c;case"FETCH_EVENT_SOURCES":return dV(c,r.sourceIds?eee(r.sourceIds):gte(c,l),i,r.isRefetch||!1,l);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return vfe(c,r.sourceId,r.fetchId,r.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return c}}function mfe(c,r,a){let l=r?r.activeRange:null;return dV(c,gte(c,a),l,!0,a)}function fte(c){for(let r in c)if(c[r].isFetching)return!0;return!1}function mte(c,r,a,l){let i={};for(let m of r)i[m.sourceId]=m;return a&&(i=hte(i,a,l)),Object.assign(Object.assign({},c),i)}function hfe(c,r){return j2(c,a=>a.sourceId!==r)}function hte(c,r,a){return dV(c,j2(c,l=>gfe(l,r,a)),r,!1,a)}function gfe(c,r,a){return pte(c,a)?!a.options.lazyFetching||!c.fetchRange||c.isFetching||r.start<c.fetchRange.start||r.end>c.fetchRange.end:!c.latestFetchId}function dV(c,r,a,l,i){let m={};for(let v in c){let C=c[v];r[v]?m[v]=pfe(C,a,l,i):m[v]=C}return m}function pfe(c,r,a,l){let{options:i,calendarApi:m}=l,v=l.pluginHooks.eventSourceDefs[c.sourceDefId],C=H2();return v.fetch({eventSource:c,range:r,isRefetch:a,context:l},E=>{let{rawEvents:T}=E;i.eventSourceSuccess&&(T=i.eventSourceSuccess.call(m,T,E.response)||T),c.success&&(T=c.success.call(m,T,E.response)||T),l.dispatch({type:"RECEIVE_EVENTS",sourceId:c.sourceId,fetchId:C,fetchRange:r,rawEvents:T})},E=>{let T=!1;i.eventSourceFailure&&(i.eventSourceFailure.call(m,E),T=!0),c.failure&&(c.failure(E),T=!0),T||console.warn(E.message,E),l.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:c.sourceId,fetchId:C,fetchRange:r,error:E})}),Object.assign(Object.assign({},c),{isFetching:!0,latestFetchId:C})}function vfe(c,r,a,l){let i=c[r];return i&&a===i.latestFetchId?Object.assign(Object.assign({},c),{[r]:Object.assign(Object.assign({},i),{isFetching:!1,fetchRange:l})}):c}function gte(c,r){return j2(c,a=>pte(a,r))}function yfe(c,r){let a=pee(r),l=[].concat(c.eventSources||[]),i=[];c.initialEvents&&l.unshift(c.initialEvents),c.events&&l.unshift(c.events);for(let m of l){let v=gee(m,r,a);v&&i.push(v)}return i}function pte(c,r){return!r.pluginHooks.eventSourceDefs[c.sourceDefId].ignoreRange}function bfe(c,r){switch(r.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return r.selection;default:return c}}function Cfe(c,r){switch(r.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return r.eventInstanceId;default:return c}}function _fe(c,r){let a;switch(r.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return a=r.state,{affectedEvents:a.affectedEvents,mutatedEvents:a.mutatedEvents,isEvent:a.isEvent};default:return c}}function wfe(c,r){let a;switch(r.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return a=r.state,{affectedEvents:a.affectedEvents,mutatedEvents:a.mutatedEvents,isEvent:a.isEvent};default:return c}}function Sfe(c,r,a,l,i){let m=c.headerToolbar?vte(c.headerToolbar,c,r,a,l,i):null,v=c.footerToolbar?vte(c.footerToolbar,c,r,a,l,i):null;return{header:m,footer:v}}function vte(c,r,a,l,i,m){let v={},C=[],E=!1;for(let T in c){let N=c[T],V=Efe(N,r,a,l,i,m);v[T]=V.widgets,C.push(...V.viewsWithButtons),E=E||V.hasTitle}return{sectionWidgets:v,viewsWithButtons:C,hasTitle:E}}function Efe(c,r,a,l,i,m){let v=r.direction==="rtl",C=r.customButtons||{},E=a.buttonText||{},T=r.buttonText||{},N=a.buttonHints||{},V=r.buttonHints||{},U=c?c.split(" "):[],z=[],W=!1;return{widgets:U.map(Z=>Z.split(",").map(ce=>{if(ce==="title")return W=!0,{buttonName:ce};let q,X,Ce,st,Ne,ee;if(q=C[ce])Ce=xe=>{q.click&&q.click.call(xe.target,xe,xe.target)},(st=l.getCustomButtonIconClass(q))||(st=l.getIconClass(ce,v))||(Ne=q.text),ee=q.hint||q.text;else if(X=i[ce]){z.push(ce),Ce=()=>{m.changeView(ce)},(Ne=X.buttonTextOverride)||(st=l.getIconClass(ce,v))||(Ne=X.buttonTextDefault);let xe=X.buttonTextOverride||X.buttonTextDefault;ee=aA(X.buttonTitleOverride||X.buttonTitleDefault||r.viewHint,[xe,ce],xe)}else if(m[ce])if(Ce=()=>{m[ce]()},(Ne=E[ce])||(st=l.getIconClass(ce,v))||(Ne=T[ce]),ce==="prevYear"||ce==="nextYear"){let xe=ce==="prevYear"?"prev":"next";ee=aA(N[xe]||V[xe],[T.year||"year","year"],T[ce])}else ee=xe=>aA(N[ce]||V[ce],[T[xe]||xe,xe],T[ce]);return{buttonName:ce,buttonClick:Ce,buttonIcon:st,buttonText:Ne,buttonHint:ee}})),viewsWithButtons:z,hasTitle:W}}class kfe{constructor(r,a,l){this.type=r,this.getCurrentData=a,this.dateEnv=l}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(r){return this.getCurrentData().options[r]}}const xfe=Q1({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta(c){return Array.isArray(c.events)?c.events:null},fetch(c,r){r({rawEvents:c.eventSource.meta})}}]}),Afe=Q1({name:"func-event-source",eventSourceDefs:[{parseMeta(c){return typeof c.events=="function"?c.events:null},fetch(c,r,a){const{dateEnv:l}=c.context,i=c.eventSource.meta;Hue(i.bind(null,Ree(c.range,l)),m=>r({rawEvents:m}),a)}}]}),Tfe=Q1({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:qt,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta(c){return c.url&&(c.format==="json"||!c.format)?{url:c.url,format:"json",method:(c.method||"GET").toUpperCase(),extraParams:c.extraParams,startParam:c.startParam,endParam:c.endParam,timeZoneParam:c.timeZoneParam}:null},fetch(c,r,a){const{meta:l}=c.eventSource,i=Dfe(l,c.range,c.context);zue(l.method,l.url,i).then(([m,v])=>{r({rawEvents:m,response:v})},a)}}]});function Dfe(c,r,a){let{dateEnv:l,options:i}=a,m,v,C,E,T={};return m=c.startParam,m==null&&(m=i.startParam),v=c.endParam,v==null&&(v=i.endParam),C=c.timeZoneParam,C==null&&(C=i.timeZoneParam),typeof c.extraParams=="function"?E=c.extraParams():E=c.extraParams||{},Object.assign(T,E),T[m]=l.formatIso(r.start),T[v]=l.formatIso(r.end),l.timeZone!=="local"&&(T[C]=l.timeZone),T}const Ofe=Q1({name:"simple-recurring-event",recurringTypes:[{parse(c,r){if(c.daysOfWeek||c.startTime||c.endTime||c.startRecur||c.endRecur){let a={daysOfWeek:c.daysOfWeek||null,startTime:c.startTime||null,endTime:c.endTime||null,startRecur:c.startRecur?r.createMarker(c.startRecur):null,endRecur:c.endRecur?r.createMarker(c.endRecur):null},l;return c.duration&&(l=c.duration),!l&&c.startTime&&c.endTime&&(l=Qle(c.endTime,c.startTime)),{allDayGuess:!c.startTime&&!c.endTime,duration:l,typeData:a}}return null},expand(c,r,a){let l=Z2(r,{start:c.startRecur,end:c.endRecur});return l?Rfe(c.daysOfWeek,c.startTime,l,a):[]}}],eventRefiners:{daysOfWeek:qt,startTime:ni,endTime:ni,duration:ni,startRecur:qt,endRecur:qt}});function Rfe(c,r,a,l){let i=c?eee(c):null,m=Ra(a.start),v=a.end,C=[];for(;m<v;){let E;(!i||i[m.getUTCDay()])&&(r?E=l.add(m,r):E=m,C.push(E)),m=nd(m,1)}return C}const Nfe=Q1({name:"change-handler",optionChangeHandlers:{events(c,r){yte([c],r)},eventSources:yte}});function yte(c,r){let a=T$(r.getCurrentData().eventSources);if(a.length===1&&c.length===1&&Array.isArray(a[0]._raw)&&Array.isArray(c[0])){r.dispatch({type:"RESET_RAW_EVENTS",sourceId:a[0].sourceId,rawEvents:c[0]});return}let l=[];for(let i of c){let m=!1;for(let v=0;v<a.length;v+=1)if(a[v]._raw===i){a.splice(v,1),m=!0;break}m||l.push(i)}for(let i of a)r.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:i.sourceId});for(let i of l)r.calendarApi.addEventSource(i)}function Ife(c,r){r.emitter.trigger("datesSet",Object.assign(Object.assign({},Ree(c.activeRange,r.dateEnv)),{view:r.viewApi}))}function Bfe(c,r){let{emitter:a}=r;a.hasHandlers("eventsSet")&&a.trigger("eventsSet",K2(c,r))}const Mfe=[xfe,Afe,Tfe,Ofe,Nfe,Q1({name:"misc",isLoadingFuncs:[c=>fte(c.eventSources)],propSetHandlers:{dateProfile:Ife,eventStore:Bfe}})];class Pfe{constructor(r,a){this.runTaskOption=r,this.drainedOption=a,this.queue=[],this.delayedRunner=new g$(this.drain.bind(this))}request(r,a){this.queue.push(r),this.delayedRunner.request(a)}pause(r){this.delayedRunner.pause(r)}resume(r,a){this.delayedRunner.resume(r,a)}drain(){let{queue:r}=this;for(;r.length;){let a=[],l;for(;l=r.shift();)this.runTask(l),a.push(l);this.drained(a)}}runTask(r){this.runTaskOption&&this.runTaskOption(r)}drained(r){this.drainedOption&&this.drainedOption(r)}}function Lfe(c,r,a){let l;return/^(year|month)$/.test(c.currentRangeUnit)?l=c.currentRange:l=c.activeRange,a.formatRange(l.start,l.end,El(r.titleFormat||Ffe(c)),{isEndExclusive:c.isRangeAllDay,defaultSeparator:r.titleRangeSeparator})}function Ffe(c){let{currentRangeUnit:r}=c;if(r==="year")return{year:"numeric"};if(r==="month")return{year:"numeric",month:"long"};let a=nR(c.currentRange.start,c.currentRange.end);return a!==null&&a>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class $fe{constructor(r){this.computeCurrentViewData=Ms(this._computeCurrentViewData),this.organizeRawLocales=Ms(Kde),this.buildLocale=Ms(ate),this.buildPluginHooks=Jde(),this.buildDateEnv=Ms(Vfe),this.buildTheme=Ms(Hfe),this.parseToolbars=Ms(Sfe),this.buildViewSpecs=Ms(rfe),this.buildDateProfileGenerator=oR(zfe),this.buildViewApi=Ms(Ufe),this.buildViewUiProps=oR(Gfe),this.buildEventUiBySource=Ms(Wfe,_p),this.buildEventUiBases=Ms(jfe),this.parseContextBusinessHours=oR(Zfe),this.buildTitle=Ms(Lfe),this.emitter=new pR,this.actionRunner=new Pfe(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=U=>{this.actionRunner.request(U)},this.props=r,this.actionRunner.pause();let a={},l=this.computeOptionsData(r.optionOverrides,a,r.calendarApi),i=l.calendarOptions.initialView||l.pluginHooks.initialView,m=this.computeCurrentViewData(i,l,r.optionOverrides,a);r.calendarApi.currentDataManager=this,this.emitter.setThisContext(r.calendarApi),this.emitter.setOptions(m.options);let v=tue(l.calendarOptions,l.dateEnv),C=m.dateProfileGenerator.build(v);Y1(C.activeRange,v)||(v=C.currentRange.start);let E={dateEnv:l.dateEnv,options:l.calendarOptions,pluginHooks:l.pluginHooks,calendarApi:r.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let U of l.pluginHooks.contextInit)U(E);let T=dfe(l.calendarOptions,C,E),N={dynamicOptionOverrides:a,currentViewType:i,currentDate:v,dateProfile:C,businessHours:this.parseContextBusinessHours(E),eventSources:T,eventUiBases:{},eventStore:im(),renderableEventStore:im(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(E).selectionConfig},V=Object.assign(Object.assign({},E),N);for(let U of l.pluginHooks.reducers)Object.assign(N,U(null,null,V));fV(N,E)&&this.emitter.trigger("loading",!0),this.state=N,this.updateData(),this.actionRunner.resume()}resetOptions(r,a){let{props:l}=this;a===void 0?l.optionOverrides=r:(l.optionOverrides=Object.assign(Object.assign({},l.optionOverrides||{}),r),this.optionsForRefining.push(...a)),(a===void 0||a.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(r){let{props:a,state:l,emitter:i}=this,m=cfe(l.dynamicOptionOverrides,r),v=this.computeOptionsData(a.optionOverrides,m,a.calendarApi),C=lfe(l.currentViewType,r),E=this.computeCurrentViewData(C,v,a.optionOverrides,m);a.calendarApi.currentDataManager=this,i.setThisContext(a.calendarApi),i.setOptions(E.options);let T={dateEnv:v.dateEnv,options:v.calendarOptions,pluginHooks:v.pluginHooks,calendarApi:a.calendarApi,dispatch:this.dispatch,emitter:i,getCurrentData:this.getCurrentData},{currentDate:N,dateProfile:V}=l;this.data&&this.data.dateProfileGenerator!==E.dateProfileGenerator&&(V=E.dateProfileGenerator.build(N)),N=eue(N,r),V=ufe(V,r,N,E.dateProfileGenerator),(r.type==="PREV"||r.type==="NEXT"||!Y1(V.currentRange,N))&&(N=V.currentRange.start);let U=ffe(l.eventSources,r,V,T),z=hue(l.eventStore,r,U,V,T),K=fte(U)&&!E.options.progressiveEventRendering&&l.renderableEventStore||z,{eventUiSingleBase:Z,selectionConfig:ce}=this.buildViewUiProps(T),q=this.buildEventUiBySource(U),X=this.buildEventUiBases(K.defs,Z,q),Ce={dynamicOptionOverrides:m,currentViewType:C,currentDate:N,dateProfile:V,eventSources:U,eventStore:z,renderableEventStore:K,selectionConfig:ce,eventUiBases:X,businessHours:this.parseContextBusinessHours(T),dateSelection:bfe(l.dateSelection,r),eventSelection:Cfe(l.eventSelection,r),eventDrag:_fe(l.eventDrag,r),eventResize:wfe(l.eventResize,r)},st=Object.assign(Object.assign({},T),Ce);for(let xe of v.pluginHooks.reducers)Object.assign(Ce,xe(l,r,st));let Ne=fV(l,T),ee=fV(Ce,T);!Ne&&ee?i.trigger("loading",!0):Ne&&!ee&&i.trigger("loading",!1),this.state=Ce,a.onAction&&a.onAction(r)}updateData(){let{props:r,state:a}=this,l=this.data,i=this.computeOptionsData(r.optionOverrides,a.dynamicOptionOverrides,r.calendarApi),m=this.computeCurrentViewData(a.currentViewType,i,r.optionOverrides,a.dynamicOptionOverrides),v=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(a.dateProfile,m.options,i.dateEnv),calendarApi:r.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},i),m),a),C=i.pluginHooks.optionChangeHandlers,E=l&&l.calendarOptions,T=i.calendarOptions;if(E&&E!==T){E.timeZone!==T.timeZone&&(a.eventSources=v.eventSources=mfe(v.eventSources,a.dateProfile,v),a.eventStore=v.eventStore=bee(v.eventStore,l.dateEnv,v.dateEnv),a.renderableEventStore=v.renderableEventStore=bee(v.renderableEventStore,l.dateEnv,v.dateEnv));for(let N in C)(this.optionsForHandling.indexOf(N)!==-1||E[N]!==T[N])&&C[N](T[N],v)}this.optionsForHandling=[],r.onData&&r.onData(v)}computeOptionsData(r,a,l){if(!this.optionsForRefining.length&&r===this.stableOptionOverrides&&a===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:i,pluginHooks:m,localeDefaults:v,availableLocaleData:C,extra:E}=this.processRawCalendarOptions(r,a);bte(E);let T=this.buildDateEnv(i.timeZone,i.locale,i.weekNumberCalculation,i.firstDay,i.weekText,m,C,i.defaultRangeSeparator),N=this.buildViewSpecs(m.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,v),V=this.buildTheme(i,m),U=this.parseToolbars(i,this.stableOptionOverrides,V,N,l);return this.stableCalendarOptionsData={calendarOptions:i,pluginHooks:m,dateEnv:T,viewSpecs:N,theme:V,toolbarConfig:U,localeDefaults:v,availableRawLocales:C.map}}processRawCalendarOptions(r,a){let{locales:l,locale:i}=k$([lA,r,a]),m=this.organizeRawLocales(l),v=m.map,C=this.buildLocale(i||m.defaultCode,v).options,E=this.buildPluginHooks(r.plugins||[],Mfe),T=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},XJ),QJ),JJ),E.listenerRefiners),E.optionRefiners),N={},V=k$([lA,C,r,a]),U={},z=this.currentCalendarOptionsInput,W=this.currentCalendarOptionsRefined,K=!1;for(let Z in V)this.optionsForRefining.indexOf(Z)===-1&&(V[Z]===z[Z]||U2[Z]&&Z in z&&U2[Z](z[Z],V[Z]))?U[Z]=W[Z]:T[Z]?(U[Z]=T[Z](V[Z]),K=!0):N[Z]=z[Z];return K&&(this.currentCalendarOptionsInput=V,this.currentCalendarOptionsRefined=U,this.stableOptionOverrides=r,this.stableDynamicOptionOverrides=a),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:E,availableLocaleData:m,localeDefaults:C,extra:N}}_computeCurrentViewData(r,a,l,i){let m=a.viewSpecs[r];if(!m)throw new Error(`viewType "${r}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:v,extra:C}=this.processRawViewOptions(m,a.pluginHooks,a.localeDefaults,l,i);bte(C);let E=this.buildDateProfileGenerator({dateProfileGeneratorClass:m.optionDefaults.dateProfileGeneratorClass,duration:m.duration,durationUnit:m.durationUnit,usesMinMaxTime:m.optionDefaults.usesMinMaxTime,dateEnv:a.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:v.slotMinTime,slotMaxTime:v.slotMaxTime,showNonCurrentDates:v.showNonCurrentDates,dayCount:v.dayCount,dateAlignment:v.dateAlignment,dateIncrement:v.dateIncrement,hiddenDays:v.hiddenDays,weekends:v.weekends,nowInput:v.now,validRangeInput:v.validRange,visibleRangeInput:v.visibleRange,fixedWeekCount:v.fixedWeekCount}),T=this.buildViewApi(r,this.getCurrentData,a.dateEnv);return{viewSpec:m,options:v,dateProfileGenerator:E,viewApi:T}}processRawViewOptions(r,a,l,i,m){let v=k$([lA,r.optionDefaults,l,i,r.optionOverrides,m]),C=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},XJ),QJ),JJ),Rce),a.listenerRefiners),a.optionRefiners),E={},T=this.currentViewOptionsInput,N=this.currentViewOptionsRefined,V=!1,U={};for(let z in v)v[z]===T[z]||U2[z]&&U2[z](v[z],T[z])?E[z]=N[z]:(v[z]===this.currentCalendarOptionsInput[z]||U2[z]&&U2[z](v[z],this.currentCalendarOptionsInput[z])?z in this.currentCalendarOptionsRefined&&(E[z]=this.currentCalendarOptionsRefined[z]):C[z]?E[z]=C[z](v[z]):U[z]=v[z],V=!0);return V&&(this.currentViewOptionsInput=v,this.currentViewOptionsRefined=E),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:U}}}function Vfe(c,r,a,l,i,m,v,C){let E=ate(r||v.defaultCode,v.map);return new Hce({calendarSystem:"gregory",timeZone:c,namedTimeZoneImpl:m.namedTimeZonedImpl,locale:E,weekNumberCalculation:a,firstDay:l,weekText:i,cmdFormatter:m.cmdFormatter,defaultSeparator:C})}function Hfe(c,r){let a=r.themeClasses[c.themeSystem]||oy;return new a(c)}function zfe(c){let r=c.dateProfileGeneratorClass||cee;return new r(c)}function Ufe(c,r,a){return new kfe(c,r,a)}function Wfe(c){return Z1(c,r=>r.ui)}function jfe(c,r,a){let l={"":r};for(let i in c){let m=c[i];m.sourceId&&a[m.sourceId]&&(l[i]=a[m.sourceId])}return l}function Gfe(c){let{options:r}=c;return{eventUiSingleBase:gR({display:r.eventDisplay,editable:r.editable,startEditable:r.eventStartEditable,durationEditable:r.eventDurationEditable,constraint:r.eventConstraint,overlap:typeof r.eventOverlap=="boolean"?r.eventOverlap:void 0,allow:r.eventAllow,backgroundColor:r.eventBackgroundColor,borderColor:r.eventBorderColor,textColor:r.eventTextColor,color:r.eventColor},c),selectionConfig:gR({constraint:r.selectConstraint,overlap:typeof r.selectOverlap=="boolean"?r.selectOverlap:void 0,allow:r.selectAllow},c)}}function fV(c,r){for(let a of r.pluginHooks.isLoadingFuncs)if(a(c))return!0;return!1}function Zfe(c){return Sue(c.options.businessHours,c)}function bte(c,r){for(let a in c)console.warn(`Unknown option '${a}'`+(r?` for view '${r}'`:""))}class qfe extends Li{render(){let r=this.props.widgetGroups.map(a=>this.renderWidgetGroup(a));return rt("div",{className:"fc-toolbar-chunk"},...r)}renderWidgetGroup(r){let{props:a}=this,{theme:l}=this.context,i=[],m=!0;for(let v of r){let{buttonName:C,buttonClick:E,buttonText:T,buttonIcon:N,buttonHint:V}=v;if(C==="title")m=!1,i.push(rt("h2",{className:"fc-toolbar-title",id:a.titleId},a.title));else{let U=C===a.activeButton,z=!a.isTodayEnabled&&C==="today"||!a.isPrevEnabled&&C==="prev"||!a.isNextEnabled&&C==="next",W=[`fc-${C}-button`,l.getClass("button")];U&&W.push(l.getClass("buttonActive")),i.push(rt("button",{type:"button",title:typeof V=="function"?V(a.navUnit):V,disabled:z,"aria-pressed":U,className:W.join(" "),onClick:E},T||(N?rt("span",{className:N,role:"img"}):"")))}}if(i.length>1){let v=m&&l.getClass("buttonGroup")||"";return rt("div",{className:v},...i)}return i[0]}}class Cte extends Li{render(){let{model:r,extraClassName:a}=this.props,l=!1,i,m,v=r.sectionWidgets,C=v.center;return v.left?(l=!0,i=v.left):i=v.start,v.right?(l=!0,m=v.right):m=v.end,rt("div",{className:[a||"","fc-toolbar",l?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",i||[]),this.renderSection("center",C||[]),this.renderSection("end",m||[]))}renderSection(r,a){let{props:l}=this;return rt(qfe,{key:r,widgetGroups:a,title:l.title,navUnit:l.navUnit,activeButton:l.activeButton,isTodayEnabled:l.isTodayEnabled,isPrevEnabled:l.isPrevEnabled,isNextEnabled:l.isNextEnabled,titleId:l.titleId})}}class Kfe extends Li{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=r=>{this.el=r,K1(this.props.elRef,r),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:r,state:a}=this,{aspectRatio:l}=r,i=["fc-view-harness",l||r.liquid||r.height?"fc-view-harness-active":"fc-view-harness-passive"],m="",v="";return l?a.availableWidth!==null?m=a.availableWidth/l:v=`${1/l*100}%`:m=r.height||"",rt("div",{"aria-labelledby":r.labeledById,ref:this.handleEl,className:i.join(" "),style:{height:m,paddingBottom:v}},r.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 Yfe extends zS{constructor(r){super(r),this.handleSegClick=(a,l)=>{let{component:i}=this,{context:m}=i,v=HS(l);if(v&&i.isValidSegDownEl(a.target)){let C=td(a.target,".fc-event-forced-url"),E=C?C.querySelector("a[href]").href:"";m.emitter.trigger("eventClick",{el:l,event:new fl(i.context,v.eventRange.def,v.eventRange.instance),jsEvent:a,view:m.viewApi}),E&&!a.defaultPrevented&&(window.location.href=E)}},this.destroy=PJ(r.el,"click",".fc-event",this.handleSegClick)}}class Xfe extends zS{constructor(r){super(r),this.handleEventElRemove=a=>{a===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(a,l)=>{HS(l)&&(this.currentSegEl=l,this.triggerEvent("eventMouseEnter",a,l))},this.handleSegLeave=(a,l)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",a,l))},this.removeHoverListeners=Lle(r.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(r,a,l){let{component:i}=this,{context:m}=i,v=HS(l);(!a||i.isValidSegDownEl(a.target))&&m.emitter.trigger(r,{el:l,event:new fl(m,v.eventRange.def,v.eventRange.instance),jsEvent:a,view:m.viewApi})}}class Qfe extends G2{constructor(){super(...arguments),this.buildViewContext=Ms(Wce),this.buildViewPropTransformers=Ms(eme),this.buildToolbarProps=Ms(Jfe),this.headerRef=Bd(),this.footerRef=Bd(),this.interactionsStore={},this.state={viewLabelId:JO()},this.registerInteractiveComponent=(r,a)=>{let l=jue(r,a),v=[Yfe,Xfe].concat(this.props.pluginHooks.componentInteractions).map(C=>new C(l));this.interactionsStore[r.uid]=v,W$[r.uid]=l},this.unregisterInteractiveComponent=r=>{let a=this.interactionsStore[r.uid];if(a){for(let l of a)l.destroy();delete this.interactionsStore[r.uid]}delete W$[r.uid]},this.resizeRunner=new g$(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=r=>{let{options:a}=this.props;a.handleWindowResize&&r.target===window&&this.resizeRunner.request(a.windowResizeDelay)}}render(){let{props:r}=this,{toolbarConfig:a,options:l}=r,i=this.buildToolbarProps(r.viewSpec,r.dateProfile,r.dateProfileGenerator,r.currentDate,uA(r.options.now,r.dateEnv),r.viewTitle),m=!1,v="",C;r.isHeightAuto||r.forPrint?v="":l.height!=null?m=!0:l.contentHeight!=null?v=l.contentHeight:C=Math.max(l.aspectRatio,.5);let E=this.buildViewContext(r.viewSpec,r.viewApi,r.options,r.dateProfileGenerator,r.dateEnv,r.theme,r.pluginHooks,r.dispatch,r.getCurrentData,r.emitter,r.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),T=a.header&&a.header.hasTitle?this.state.viewLabelId:void 0;return rt(q1.Provider,{value:E},a.header&&rt(Cte,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:a.header,titleId:T},i)),rt(Kfe,{liquid:m,height:v,aspectRatio:C,labeledById:T},this.renderView(r),this.buildAppendContent()),a.footer&&rt(Cte,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:a.footer,titleId:""},i)))}componentDidMount(){let{props:r}=this;this.calendarInteractions=r.pluginHooks.calendarInteractions.map(l=>new l(r)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:a}=r.pluginHooks;for(let l in a)a[l](r[l],r)}componentDidUpdate(r){let{props:a}=this,{propSetHandlers:l}=a.pluginHooks;for(let i in l)a[i]!==r[i]&&l[i](a[i],a)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let r of this.calendarInteractions)r.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:r}=this,a=r.pluginHooks.viewContainerAppends.map(l=>l(r));return rt(Ya,{},...a)}renderView(r){let{pluginHooks:a}=r,{viewSpec:l}=r,i={dateProfile:r.dateProfile,businessHours:r.businessHours,eventStore:r.renderableEventStore,eventUiBases:r.eventUiBases,dateSelection:r.dateSelection,eventSelection:r.eventSelection,eventDrag:r.eventDrag,eventResize:r.eventResize,isHeightAuto:r.isHeightAuto,forPrint:r.forPrint},m=this.buildViewPropTransformers(a.viewPropsTransformers);for(let C of m)Object.assign(i,C.transform(i,r));let v=l.component;return rt(v,Object.assign({},i))}}function Jfe(c,r,a,l,i,m){let v=a.build(i,void 0,!1),C=a.buildPrev(r,l,!1),E=a.buildNext(r,l,!1);return{title:m,activeButton:c.type,navUnit:c.singleUnit,isTodayEnabled:v.isValid&&!Y1(r.currentRange,i),isPrevEnabled:C.isValid,isNextEnabled:E.isValid}}function eme(c){return c.map(r=>new r)}let tme=class extends Gue{constructor(r,a={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=l=>{switch(l.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=l=>{this.currentData=l,this.renderRunner.request(l.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:l}=this;cR(()=>{rA(rt(Wue,{options:l.calendarOptions,theme:l.theme,emitter:l.emitter},(i,m,v,C)=>(this.setClassNames(i),this.setHeight(m),rt(see.Provider,{value:this.customContentRenderId},rt(Qfe,Object.assign({isHeightAuto:v,forPrint:C},l))))),this.el)})}else this.isRendered&&(this.isRendered=!1,rA(null,this.el),this.setClassNames([]),this.setHeight(""))},Tle(r),this.el=r,this.renderRunner=new g$(this.handleRenderRequest),new $fe({optionOverrides:a,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let r=this.isRendering;r?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),r&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){cR(()=>{super.updateSize()})}batchRendering(r){this.renderRunner.pause("batchRendering"),r(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(r,a){this.currentDataManager.resetOptions(r,a)}setClassNames(r){if(!Qv(r,this.currentClassNames)){let{classList:a}=this.el;for(let l of this.currentClassNames)a.remove(l);for(let l of r)a.add(l);this.currentClassNames=r}}setHeight(r){IJ(this.el,"height",r)}};const nme={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0},_te=f.defineComponent({props:{options:Object},data(){return{renderId:0,customRenderingMap:new Map}},methods:{getApi(){return this.calendar},buildOptions(c){return{...c,customRenderingMetaMap:rme(this.$slots),handleCustomRendering:this.handleCustomRendering}}},render(){const c=[];for(const r of this.customRenderingMap.values())c.push(f.h(ome,{key:r.id,customRendering:r}));return f.h("div",{attrs:{"data-fc-render-id":this.renderId}},f.h(f.Fragment,c))},mounted(){const c=new Zde;this.handleCustomRendering=c.handle.bind(c);const r=this.buildOptions(this.options),a=new tme(this.$el,r);this.calendar=a,a.render(),c.subscribe(l=>{this.customRenderingMap=l,this.renderId++,this.needCustomRenderingResize=!0})},beforeUpdate(){this.getApi().resumeRendering()},updated(){this.needCustomRenderingResize&&(this.needCustomRenderingResize=!1,this.getApi().updateSize())},beforeUnmount(){this.getApi().destroy()},watch:sme()}),ome=f.defineComponent({props:{customRendering:Object},render(){const c=this.customRendering,r=typeof c.generatorMeta=="function"?c.generatorMeta(c.renderProps):c.generatorMeta;return f.h(f.Teleport,{to:c.containerEl},r)}});function tSe(c){return c}function sme(){let c={options:{deep:!0,handler(r){let a=this.getApi();a.pauseRendering();let l=this.buildOptions(r);a.resetOptions(l),this.renderId++}}};for(let r in nme)c[`options.${r}`]={deep:!0,handler(a){if(a!==void 0){let l=this.getApi();l.pauseRendering(),l.resetOptions({[r]:a},[r]),this.renderId++}}};return c}function rme(c){const r={};for(const a in c)r[ime(a)]=c[a];return r}function ime(c){return c.split("-").map((r,a)=>a?ame(r):r).join("")}function ame(c){return c.charAt(0).toUpperCase()+c.slice(1)}class lme extends wp{constructor(){super(...arguments),this.headerElRef=Bd()}renderSimpleLayout(r,a){let{props:l,context:i}=this,m=[],v=wR(i.options);return r&&m.push({type:"header",key:"header",isSticky:v,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:r}}),m.push({type:"body",key:"body",liquid:!0,chunk:{content:a}}),rt(uR,{elClasses:["fc-daygrid"],viewSpec:i.viewSpec},rt(sV,{liquid:!l.isHeightAuto&&!l.forPrint,collapsibleWidth:l.forPrint,cols:[],sections:m}))}renderHScrollLayout(r,a,l,i){let m=this.context.pluginHooks.scrollGridImpl;if(!m)throw new Error("No ScrollGrid implementation");let{props:v,context:C}=this,E=!v.forPrint&&wR(C.options),T=!v.forPrint&&Xee(C.options),N=[];return r&&N.push({type:"header",key:"header",isSticky:E,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:r}]}),N.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:a}]}),T&&N.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:oV}]}),rt(uR,{elClasses:["fc-daygrid"],viewSpec:C.viewSpec},rt(m,{liquid:!v.isHeightAuto&&!v.forPrint,forPrint:v.forPrint,collapsibleWidth:v.forPrint,colGroups:[{cols:[{span:l,minWidth:i}]}],sections:N}))}}function SR(c,r){let a=[];for(let l=0;l<r;l+=1)a[l]=[];for(let l of c)a[l.row].push(l);return a}function ER(c,r){let a=[];for(let l=0;l<r;l+=1)a[l]=[];for(let l of c)a[l.firstCol].push(l);return a}function wte(c,r){let a=[];if(c){for(let l=0;l<r;l+=1)a[l]={affectedInstances:c.affectedInstances,isEvent:c.isEvent,segs:[]};for(let l of c.segs)a[l.row].segs.push(l)}else for(let l=0;l<r;l+=1)a[l]=null;return a}const Ste=El({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function Ete(c){let{display:r}=c.eventRange.ui;return r==="list-item"||r==="auto"&&!c.eventRange.def.allDay&&c.firstCol===c.lastCol&&c.isStart&&c.isEnd}class kte extends Li{render(){let{props:r}=this;return rt(Qee,Object.assign({},r,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:Ste,defaultDisplayEventEnd:r.defaultDisplayEventEnd,disableResizing:!r.seg.eventRange.def.allDay}))}}class xte extends Li{render(){let{props:r,context:a}=this,{options:l}=a,{seg:i}=r,m=l.eventTimeFormat||Ste,v=Tee(i,m,a,!0,r.defaultDisplayEventEnd);return rt(rV,Object.assign({},r,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:Oee(r.seg,a),defaultGenerator:cme,timeText:v,isResizing:!1,isDateSelecting:!1}))}}function cme(c){return rt(Ya,null,rt("div",{className:"fc-daygrid-event-dot",style:{borderColor:c.borderColor||c.backgroundColor}}),c.timeText&&rt("div",{className:"fc-event-time"},c.timeText),rt("div",{className:"fc-event-title"},c.event.title||rt(Ya,null," ")))}class ume extends Li{constructor(){super(...arguments),this.compileSegs=Ms(dme)}render(){let{props:r}=this,{allSegs:a,invisibleSegs:l}=this.compileSegs(r.singlePlacements);return rt(nte,{elClasses:["fc-daygrid-more-link"],dateProfile:r.dateProfile,todayRange:r.todayRange,allDayDate:r.allDayDate,moreCnt:r.moreCnt,allSegs:a,hiddenSegs:l,alignmentElRef:r.alignmentElRef,alignGridTop:r.alignGridTop,extraDateSpan:r.extraDateSpan,popoverContent:()=>{let i=(r.eventDrag?r.eventDrag.affectedInstances:null)||(r.eventResize?r.eventResize.affectedInstances:null)||{};return rt(Ya,null,a.map(m=>{let v=m.eventRange.instance.instanceId;return rt("div",{className:"fc-daygrid-event-harness",key:v,style:{visibility:i[v]?"hidden":""}},Ete(m)?rt(xte,Object.assign({seg:m,isDragging:!1,isSelected:v===r.eventSelection,defaultDisplayEventEnd:!1},ny(m,r.todayRange))):rt(kte,Object.assign({seg:m,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:v===r.eventSelection,defaultDisplayEventEnd:!1},ny(m,r.todayRange))))}))}})}}function dme(c){let r=[],a=[];for(let l of c)r.push(l.seg),l.isVisible||a.push(l.seg);return{allSegs:r,invisibleSegs:a}}const fme=El({week:"narrow"});class mme extends wp{constructor(){super(...arguments),this.rootElRef=Bd(),this.state={dayNumberId:JO()},this.handleRootEl=r=>{K1(this.rootElRef,r),K1(this.props.elRef,r)}}render(){let{context:r,props:a,state:l,rootElRef:i}=this,{options:m,dateEnv:v}=r,{date:C,dateProfile:E}=a;const T=a.showDayNumber&&gme(C,E.currentRange,v);return rt(aV,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...a.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},a.extraDataAttrs),a.showDayNumber?{"aria-labelledby":l.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:hme,date:C,dateProfile:E,todayRange:a.todayRange,showDayNumber:a.showDayNumber,isMonthStart:T,extraRenderProps:a.extraRenderProps},(N,V)=>rt("div",{ref:a.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:a.minHeight}},a.showWeekNumber&&rt(tte,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:yR(r,C,"week"),date:C,defaultFormat:fme}),!V.isDisabled&&(a.showDayNumber||lV(m)||a.forceDayTop)?rt("div",{className:"fc-daygrid-day-top"},rt(N,{elTag:"a",elClasses:["fc-daygrid-day-number",T&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},yR(r,C)),{id:l.dayNumberId})})):a.showDayNumber?rt("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},rt("a",{className:"fc-daygrid-day-number"}," ")):void 0,rt("div",{className:"fc-daygrid-day-events",ref:a.fgContentElRef},a.fgContent,rt("div",{className:"fc-daygrid-day-bottom",style:{marginTop:a.moreMarginTop}},rt(ume,{allDayDate:C,singlePlacements:a.singlePlacements,moreCnt:a.moreCnt,alignmentElRef:i,alignGridTop:!a.showDayNumber,extraDateSpan:a.extraDateSpan,dateProfile:a.dateProfile,eventSelection:a.eventSelection,eventDrag:a.eventDrag,eventResize:a.eventResize,todayRange:a.todayRange}))),rt("div",{className:"fc-daygrid-day-bg"},a.bgContent)))}}function hme(c){return c.dayNumberText||rt(Ya,null," ")}function gme(c,r,a){const{start:l,end:i}=r,m=Jv(i,-1),v=a.getYear(l),C=a.getMonth(l),E=a.getYear(m),T=a.getMonth(m);return!(v===E&&C===T)&&(c.valueOf()===l.valueOf()||a.getDay(c)===1&&c.valueOf()<i.valueOf())}function Ate(c){return c.eventRange.instance.instanceId+":"+c.firstCol}function Tte(c){return Ate(c)+":"+c.lastCol}function pme(c,r,a,l,i,m,v){let C=new bme(ce=>{let q=c[ce.index].eventRange.instance.instanceId+":"+ce.span.start+":"+(ce.span.end-1);return i[q]||1});C.allowReslicing=!0,C.strictOrder=l,r===!0||a===!0?(C.maxCoord=m,C.hiddenConsumes=!0):typeof r=="number"?C.maxStackCnt=r:typeof a=="number"&&(C.maxStackCnt=a,C.hiddenConsumes=!0);let E=[],T=[];for(let ce=0;ce<c.length;ce+=1){let q=c[ce],X=Tte(q);i[X]!=null?E.push({index:ce,span:{start:q.firstCol,end:q.lastCol+1}}):T.push(q)}let N=C.addSegs(E),V=C.toRects(),{singleColPlacements:U,multiColPlacements:z,leftoverMargins:W}=vme(V,c,v),K=[],Z=[];for(let ce of T){z[ce.firstCol].push({seg:ce,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let q=ce.firstCol;q<=ce.lastCol;q+=1)U[q].push({seg:WS(ce,q,q+1,v),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let ce=0;ce<v.length;ce+=1)K.push(0);for(let ce of N){let q=c[ce.index],X=ce.span;z[X.start].push({seg:WS(q,X.start,X.end,v),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let Ce=X.start;Ce<X.end;Ce+=1)K[Ce]+=1,U[Ce].push({seg:WS(q,Ce,Ce+1,v),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let ce=0;ce<v.length;ce+=1)Z.push(W[ce]);return{singleColPlacements:U,multiColPlacements:z,moreCnts:K,moreMarginTops:Z}}function vme(c,r,a){let l=yme(c,a.length),i=[],m=[],v=[];for(let C=0;C<a.length;C+=1){let E=l[C],T=[],N=0,V=0;for(let z of E){let W=r[z.index];T.push({seg:WS(W,C,C+1,a),isVisible:!0,isAbsolute:!1,absoluteTop:z.levelCoord,marginTop:z.levelCoord-N}),N=z.levelCoord+z.thickness}let U=[];N=0,V=0;for(let z of E){let W=r[z.index],K=z.span.end-z.span.start>1,Z=z.span.start===C;V+=z.levelCoord-N,N=z.levelCoord+z.thickness,K?(V+=z.thickness,Z&&U.push({seg:WS(W,z.span.start,z.span.end,a),isVisible:!0,isAbsolute:!0,absoluteTop:z.levelCoord,marginTop:0})):Z&&(U.push({seg:WS(W,z.span.start,z.span.end,a),isVisible:!0,isAbsolute:!1,absoluteTop:z.levelCoord,marginTop:V}),V=0)}i.push(T),m.push(U),v.push(V)}return{singleColPlacements:i,multiColPlacements:m,leftoverMargins:v}}function yme(c,r){let a=[];for(let l=0;l<r;l+=1)a.push([]);for(let l of c)for(let i=l.span.start;i<l.span.end;i+=1)a[i].push(l);return a}function WS(c,r,a,l){if(c.firstCol===r&&c.lastCol===a-1)return c;let i=c.eventRange,m=i.range,v=Z2(m,{start:l[r].date,end:nd(l[a-1].date,1)});return Object.assign(Object.assign({},c),{firstCol:r,lastCol:a-1,eventRange:{def:i.def,ui:Object.assign(Object.assign({},i.ui),{durationEditable:!1}),instance:i.instance,range:v},isStart:c.isStart&&v.start.valueOf()===m.start.valueOf(),isEnd:c.isEnd&&v.end.valueOf()===m.end.valueOf()})}class bme extends $ee{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(r){const a=super.addSegs(r),{entriesByLevel:l}=this,i=m=>!this.forceHidden[Y2(m)];for(let m=0;m<l.length;m+=1)l[m]=l[m].filter(i);return a}handleInvalidInsertion(r,a,l){const{entriesByLevel:i,forceHidden:m}=this,{touchingEntry:v,touchingLevel:C,touchingLateral:E}=r;if(this.hiddenConsumes&&v){const T=Y2(v);if(!m[T])if(this.allowReslicing){const N=Object.assign(Object.assign({},v),{span:Q$(v.span,a.span)}),V=Y2(N);m[V]=!0,i[C][E]=N,l.push(N),this.splitEntry(v,a,l)}else m[T]=!0,l.push(v)}super.handleInvalidInsertion(r,a,l)}}class Dte extends wp{constructor(){super(...arguments),this.cellElRefs=new X1,this.frameElRefs=new X1,this.fgElRefs=new X1,this.segHarnessRefs=new X1,this.rootElRef=Bd(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=r=>{r&&this.updateSizing(!0)}}render(){let{props:r,state:a,context:l}=this,{options:i}=l,m=r.cells.length,v=ER(r.businessHourSegs,m),C=ER(r.bgEventSegs,m),E=ER(this.getHighlightSegs(),m),T=ER(this.getMirrorSegs(),m),{singleColPlacements:N,multiColPlacements:V,moreCnts:U,moreMarginTops:z}=pme(Aee(r.fgEventSegs,i.eventOrder),r.dayMaxEvents,r.dayMaxEventRows,i.eventOrderStrict,a.segHeights,a.maxContentHeight,r.cells),W=r.eventDrag&&r.eventDrag.affectedInstances||r.eventResize&&r.eventResize.affectedInstances||{};return rt("tr",{ref:this.rootElRef,role:"row"},r.renderIntro&&r.renderIntro(),r.cells.map((K,Z)=>{let ce=this.renderFgSegs(Z,r.forPrint?N[Z]:V[Z],r.todayRange,W),q=this.renderFgSegs(Z,Cme(T[Z],V),r.todayRange,{},!!r.eventDrag,!!r.eventResize,!1);return rt(mme,{key:K.key,elRef:this.cellElRefs.createRef(K.key),innerElRef:this.frameElRefs.createRef(K.key),dateProfile:r.dateProfile,date:K.date,showDayNumber:r.showDayNumbers,showWeekNumber:r.showWeekNumbers&&Z===0,forceDayTop:r.showWeekNumbers,todayRange:r.todayRange,eventSelection:r.eventSelection,eventDrag:r.eventDrag,eventResize:r.eventResize,extraRenderProps:K.extraRenderProps,extraDataAttrs:K.extraDataAttrs,extraClassNames:K.extraClassNames,extraDateSpan:K.extraDateSpan,moreCnt:U[Z],moreMarginTop:z[Z],singlePlacements:N[Z],fgContentElRef:this.fgElRefs.createRef(K.key),fgContent:rt(Ya,null,rt(Ya,null,ce),rt(Ya,null,q)),bgContent:rt(Ya,null,this.renderFillSegs(E[Z],"highlight"),this.renderFillSegs(v[Z],"non-business"),this.renderFillSegs(C[Z],"bg-event")),minHeight:r.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(r,a){let l=this.props;this.updateSizing(!_p(r,l))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:r}=this;return r.eventDrag&&r.eventDrag.segs.length?r.eventDrag.segs:r.eventResize&&r.eventResize.segs.length?r.eventResize.segs:r.dateSelectionSegs}getMirrorSegs(){let{props:r}=this;return r.eventResize&&r.eventResize.segs.length?r.eventResize.segs:[]}renderFgSegs(r,a,l,i,m,v,C){let{context:E}=this,{eventSelection:T}=this.props,{framePositions:N}=this.state,V=this.props.cells.length===1,U=m||v||C,z=[];if(N)for(let W of a){let{seg:K}=W,{instanceId:Z}=K.eventRange.instance,ce=W.isVisible&&!i[Z],q=W.isAbsolute,X="",Ce="";q&&(E.isRtl?(Ce=0,X=N.lefts[K.lastCol]-N.lefts[K.firstCol]):(X=0,Ce=N.rights[K.firstCol]-N.rights[K.lastCol])),z.push(rt("div",{className:"fc-daygrid-event-harness"+(q?" fc-daygrid-event-harness-abs":""),key:Ate(K),ref:U?null:this.segHarnessRefs.createRef(Tte(K)),style:{visibility:ce?"":"hidden",marginTop:q?"":W.marginTop,top:q?W.absoluteTop:"",left:X,right:Ce}},Ete(K)?rt(xte,Object.assign({seg:K,isDragging:m,isSelected:Z===T,defaultDisplayEventEnd:V},ny(K,l))):rt(kte,Object.assign({seg:K,isDragging:m,isResizing:v,isDateSelecting:C,isSelected:Z===T,defaultDisplayEventEnd:V},ny(K,l)))))}return z}renderFillSegs(r,a){let{isRtl:l}=this.context,{todayRange:i}=this.props,{framePositions:m}=this.state,v=[];if(m)for(let C of r){let E=l?{right:0,left:m.lefts[C.lastCol]-m.lefts[C.firstCol]}:{left:0,right:m.rights[C.firstCol]-m.rights[C.lastCol]};v.push(rt("div",{key:Dee(C.eventRange),className:"fc-daygrid-bg-harness",style:E},a==="bg-event"?rt(Jee,Object.assign({seg:C},ny(C,i))):ete(a)))}return rt(Ya,{},...v)}updateSizing(r){let{props:a,state:l,frameElRefs:i}=this;if(!a.forPrint&&a.clientWidth!==null){if(r){let E=a.cells.map(T=>i.currentMap[T.key]);if(E.length){let T=this.rootElRef.current,N=new US(T,E,!0,!1);(!l.framePositions||!l.framePositions.similarTo(N))&&this.setState({framePositions:new US(T,E,!0,!1)})}}const m=this.state.segHeights,v=this.querySegHeights(),C=a.dayMaxEvents===!0||a.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},m),v),maxContentHeight:C?this.computeMaxContentHeight():null})}}querySegHeights(){let r=this.segHarnessRefs.currentMap,a={};for(let l in r){let i=Math.round(r[l].getBoundingClientRect().height);a[l]=Math.max(a[l]||0,i)}return a}computeMaxContentHeight(){let r=this.props.cells[0].key,a=this.cellElRefs.currentMap[r],l=this.fgElRefs.currentMap[r];return a.getBoundingClientRect().bottom-l.getBoundingClientRect().top}getCellEls(){let r=this.cellElRefs.currentMap;return this.props.cells.map(a=>r[a.key])}}Dte.addStateEquality({segHeights:_p});function Cme(c,r){if(!c.length)return[];let a=_me(r);return c.map(l=>({seg:l,isVisible:!0,isAbsolute:!0,absoluteTop:a[l.eventRange.instance.instanceId],marginTop:0}))}function _me(c){let r={};for(let a of c)for(let l of a)r[l.seg.eventRange.instance.instanceId]=l.absoluteTop;return r}class wme extends wp{constructor(){super(...arguments),this.splitBusinessHourSegs=Ms(SR),this.splitBgEventSegs=Ms(SR),this.splitFgEventSegs=Ms(SR),this.splitDateSelectionSegs=Ms(SR),this.splitEventDrag=Ms(wte),this.splitEventResize=Ms(wte),this.rowRefs=new X1}render(){let{props:r,context:a}=this,l=r.cells.length,i=this.splitBusinessHourSegs(r.businessHourSegs,l),m=this.splitBgEventSegs(r.bgEventSegs,l),v=this.splitFgEventSegs(r.fgEventSegs,l),C=this.splitDateSelectionSegs(r.dateSelectionSegs,l),E=this.splitEventDrag(r.eventDrag,l),T=this.splitEventResize(r.eventResize,l),N=l>=7&&r.clientWidth?r.clientWidth/a.options.aspectRatio/6:null;return rt(fA,{unit:"day"},(V,U)=>rt(Ya,null,r.cells.map((z,W)=>rt(Dte,{ref:this.rowRefs.createRef(W),key:z.length?z[0].date.toISOString():W,showDayNumbers:l>1,showWeekNumbers:r.showWeekNumbers,todayRange:U,dateProfile:r.dateProfile,cells:z,renderIntro:r.renderRowIntro,businessHourSegs:i[W],eventSelection:r.eventSelection,bgEventSegs:m[W].filter(Sme),fgEventSegs:v[W],dateSelectionSegs:C[W],eventDrag:E[W],eventResize:T[W],dayMaxEvents:r.dayMaxEvents,dayMaxEventRows:r.dayMaxEventRows,clientWidth:r.clientWidth,clientHeight:r.clientHeight,cellMinHeight:N,forPrint:r.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const r=this.rowRefs.currentMap[0].getCellEls()[0],a=r?r.closest(".fc-daygrid-body"):null;a&&(this.rootEl=a,this.context.registerInteractiveComponent(this,{el:a,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new US(this.rootEl,this.rowRefs.collect().map(r=>r.getCellEls()[0]),!1,!0),this.colPositions=new US(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(r,a){let{colPositions:l,rowPositions:i}=this,m=l.leftToIndex(r),v=i.topToIndex(a);if(v!=null&&m!=null){let C=this.props.cells[v][m];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(v,m),allDay:!0},C.extraDateSpan),dayEl:this.getCellEl(v,m),rect:{left:l.lefts[m],right:l.rights[m],top:i.tops[v],bottom:i.bottoms[v]},layer:0}}return null}getCellEl(r,a){return this.rowRefs.currentMap[r].getCellEls()[a]}getCellRange(r,a){let l=this.props.cells[r][a].date,i=nd(l,1);return{start:l,end:i}}}function Sme(c){return c.eventRange.def.allDay}class Eme extends wp{constructor(){super(...arguments),this.elRef=Bd(),this.needsScrollReset=!1}render(){let{props:r}=this,{dayMaxEventRows:a,dayMaxEvents:l,expandRows:i}=r,m=l===!0||a===!0;m&&!i&&(m=!1,a=null,l=null);let v=["fc-daygrid-body",m?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",i?"":"fc-daygrid-body-natural"];return rt("div",{ref:this.elRef,className:v.join(" "),style:{width:r.clientWidth,minWidth:r.tableMinWidth}},rt("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:r.clientWidth,minWidth:r.tableMinWidth,height:i?r.clientHeight:""}},r.colGroupNode,rt("tbody",{role:"presentation"},rt(wme,{dateProfile:r.dateProfile,cells:r.cells,renderRowIntro:r.renderRowIntro,showWeekNumbers:r.showWeekNumbers,clientWidth:r.clientWidth,clientHeight:r.clientHeight,businessHourSegs:r.businessHourSegs,bgEventSegs:r.bgEventSegs,fgEventSegs:r.fgEventSegs,dateSelectionSegs:r.dateSelectionSegs,eventSelection:r.eventSelection,eventDrag:r.eventDrag,eventResize:r.eventResize,dayMaxEvents:l,dayMaxEventRows:a,forPrint:r.forPrint,isHitComboAllowed:r.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(r){r.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const r=kme(this.elRef.current,this.props.dateProfile);if(r){const a=r.closest(".fc-daygrid-body"),l=a.closest(".fc-scroller"),i=r.getBoundingClientRect().top-a.getBoundingClientRect().top;l.scrollTop=i?i+1:0}this.needsScrollReset=!1}}}function kme(c,r){let a;return r.currentRangeUnit.match(/year|month/)&&(a=c.querySelector(`[data-date="${hce(r.currentDate)}-01"]`)),a||(a=c.querySelector(`[data-date="${S$(r.currentDate)}"]`)),a}class xme extends Gee{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(r,a){return a.sliceRange(r)}}class Ote extends wp{constructor(){super(...arguments),this.slicer=new xme,this.tableRef=Bd()}render(){let{props:r,context:a}=this;return rt(Eme,Object.assign({ref:this.tableRef},this.slicer.sliceProps(r,r.dateProfile,r.nextDayThreshold,a,r.dayTableModel),{dateProfile:r.dateProfile,cells:r.dayTableModel.cells,colGroupNode:r.colGroupNode,tableMinWidth:r.tableMinWidth,renderRowIntro:r.renderRowIntro,dayMaxEvents:r.dayMaxEvents,dayMaxEventRows:r.dayMaxEventRows,showWeekNumbers:r.showWeekNumbers,expandRows:r.expandRows,headerAlignElRef:r.headerAlignElRef,clientWidth:r.clientWidth,clientHeight:r.clientHeight,forPrint:r.forPrint}))}}class Ame extends lme{constructor(){super(...arguments),this.buildDayTableModel=Ms(Tme),this.headerRef=Bd(),this.tableRef=Bd()}render(){let{options:r,dateProfileGenerator:a}=this.context,{props:l}=this,i=this.buildDayTableModel(l.dateProfile,a),m=r.dayHeaders&&rt(Uee,{ref:this.headerRef,dateProfile:l.dateProfile,dates:i.headerDates,datesRepDistinctDays:i.rowCnt===1}),v=C=>rt(Ote,{ref:this.tableRef,dateProfile:l.dateProfile,dayTableModel:i,businessHours:l.businessHours,dateSelection:l.dateSelection,eventStore:l.eventStore,eventUiBases:l.eventUiBases,eventSelection:l.eventSelection,eventDrag:l.eventDrag,eventResize:l.eventResize,nextDayThreshold:r.nextDayThreshold,colGroupNode:C.tableColGroupNode,tableMinWidth:C.tableMinWidth,dayMaxEvents:r.dayMaxEvents,dayMaxEventRows:r.dayMaxEventRows,showWeekNumbers:r.weekNumbers,expandRows:!l.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:C.clientWidth,clientHeight:C.clientHeight,forPrint:l.forPrint});return r.dayMinWidth?this.renderHScrollLayout(m,v,i.colCnt,r.dayMinWidth):this.renderSimpleLayout(m,v)}}function Tme(c,r){let a=new Wee(c.renderRange,r);return new jee(a,/year|month|week/.test(c.currentRangeUnit))}class Dme extends cee{buildRenderRange(r,a,l){let i=super.buildRenderRange(r,a,l),{props:m}=this;return Ome({currentRange:i,snapToWeek:/^(year|month)$/.test(a),fixedWeekCount:m.fixedWeekCount,dateEnv:m.dateEnv})}}function Ome(c){let{dateEnv:r,currentRange:a}=c,{start:l,end:i}=a,m;if(c.snapToWeek&&(l=r.startOfWeek(l),m=r.startOfWeek(i),m.valueOf()!==i.valueOf()&&(i=UJ(m,1))),c.fixedWeekCount){let v=r.startOfWeek(r.startOfMonth(nd(a.end,-1))),C=Math.ceil(oce(v,i));i=UJ(i,6-C)}return{start:l,end:i}}var Rme=':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}';m$(Rme);var Rte=Q1({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:Ame,dateProfileGeneratorClass:Dme},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 Nme extends Xue{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(r){return r.allDay?["allDay"]:["timed"]}getKeysForEventDef(r){return r.allDay?Tue(r)?["timed","allDay"]:["allDay"]:["timed"]}}const Ime=El({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function Nte(c){let r=["fc-timegrid-slot","fc-timegrid-slot-label",c.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return rt(q1.Consumer,null,a=>{if(!c.isLabeled)return rt("td",{className:r.join(" "),"data-time":c.isoTimeStr});let{dateEnv:l,options:i,viewApi:m}=a,v=i.slotLabelFormat==null?Ime:Array.isArray(i.slotLabelFormat)?El(i.slotLabelFormat[0]):El(i.slotLabelFormat),C={level:0,time:c.time,date:l.toDate(c.date),view:m,text:l.format(c.date,v)};return rt(rm,{elTag:"td",elClasses:r,elAttrs:{"data-time":c.isoTimeStr},renderProps:C,generatorName:"slotLabelContent",customGenerator:i.slotLabelContent,defaultGenerator:Bme,classNameGenerator:i.slotLabelClassNames,didMount:i.slotLabelDidMount,willUnmount:i.slotLabelWillUnmount},E=>rt("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},rt(E,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]})))})}function Bme(c){return c.text}class Mme extends Li{render(){return this.props.slatMetas.map(r=>rt("tr",{key:r.key},rt(Nte,Object.assign({},r))))}}const Pme=El({week:"short"}),Lme=5;class Fme extends wp{constructor(){super(...arguments),this.allDaySplitter=new Nme,this.headerElRef=Bd(),this.rootElRef=Bd(),this.scrollerElRef=Bd(),this.state={slatCoords:null},this.handleScrollTopRequest=r=>{let a=this.scrollerElRef.current;a&&(a.scrollTop=r)},this.renderHeadAxis=(r,a="")=>{let{options:l}=this.context,{dateProfile:i}=this.props,m=i.renderRange,C=z2(m.start,m.end)===1?yR(this.context,m.start,"week"):{};return l.weekNumbers&&r==="day"?rt(tte,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:m.start,defaultFormat:Pme},E=>rt("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:a}},rt(E,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:C}))):rt("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},rt("div",{className:"fc-timegrid-axis-frame",style:{height:a}}))},this.renderTableRowAxis=r=>{let{options:a,viewApi:l}=this.context,i={text:a.allDayText,view:l};return rt(rm,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:i,generatorName:"allDayContent",customGenerator:a.allDayContent,defaultGenerator:$me,classNameGenerator:a.allDayClassNames,didMount:a.allDayDidMount,willUnmount:a.allDayWillUnmount},m=>rt("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",r==null?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:r}},rt(m,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]})))},this.handleSlatCoords=r=>{this.setState({slatCoords:r})}}renderSimpleLayout(r,a,l){let{context:i,props:m}=this,v=[],C=wR(i.options);return r&&v.push({type:"header",key:"header",isSticky:C,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:r}}),a&&(v.push({type:"body",key:"all-day",chunk:{content:a}}),v.push({type:"body",key:"all-day-divider",outerContent:rt("tr",{role:"presentation",className:"fc-scrollgrid-section"},rt("td",{className:"fc-timegrid-divider "+i.theme.getClass("tableCellShaded")}))})),v.push({type:"body",key:"body",liquid:!0,expandRows:!!i.options.expandRows,chunk:{scrollerElRef:this.scrollerElRef,content:l}}),rt(uR,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:i.viewSpec},rt(sV,{liquid:!m.isHeightAuto&&!m.forPrint,collapsibleWidth:m.forPrint,cols:[{width:"shrink"}],sections:v}))}renderHScrollLayout(r,a,l,i,m,v,C){let E=this.context.pluginHooks.scrollGridImpl;if(!E)throw new Error("No ScrollGrid implementation");let{context:T,props:N}=this,V=!N.forPrint&&wR(T.options),U=!N.forPrint&&Xee(T.options),z=[];r&&z.push({type:"header",key:"header",isSticky:V,syncRowHeights:!0,chunks:[{key:"axis",rowContent:K=>rt("tr",{role:"presentation"},this.renderHeadAxis("day",K.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:r}]}),a&&(z.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:K=>rt("tr",{role:"presentation"},this.renderTableRowAxis(K.rowSyncHeights[0]))},{key:"cols",content:a}]}),z.push({key:"all-day-divider",type:"body",outerContent:rt("tr",{role:"presentation",className:"fc-scrollgrid-section"},rt("td",{colSpan:2,className:"fc-timegrid-divider "+T.theme.getClass("tableCellShaded")}))}));let W=T.options.nowIndicator;return z.push({type:"body",key:"body",liquid:!0,expandRows:!!T.options.expandRows,chunks:[{key:"axis",content:K=>rt("div",{className:"fc-timegrid-axis-chunk"},rt("table",{"aria-hidden":!0,style:{height:K.expandRows?K.clientHeight:""}},K.tableColGroupNode,rt("tbody",null,rt(Mme,{slatMetas:v}))),rt("div",{className:"fc-timegrid-now-indicator-container"},rt(fA,{unit:W?"minute":"day"},Z=>{let ce=W&&C&&C.safeComputeTop(Z);return typeof ce=="number"?rt(iV,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:ce},isAxis:!0,date:Z}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:l}]}),U&&z.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:oV},{key:"cols",content:oV}]}),rt(uR,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:T.viewSpec},rt(E,{liquid:!N.isHeightAuto&&!N.forPrint,forPrint:N.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:i,minWidth:m}]}],sections:z}))}getAllDayMaxEventProps(){let{dayMaxEvents:r,dayMaxEventRows:a}=this.context.options;return(r===!0||a===!0)&&(r=void 0,a=Lme),{dayMaxEvents:r,dayMaxEventRows:a}}}function $me(c){return c.text}class Vme{constructor(r,a,l){this.positions=r,this.dateProfile=a,this.slotDuration=l}safeComputeTop(r){let{dateProfile:a}=this;if(Y1(a.currentRange,r)){let l=Ra(r),i=r.valueOf()-l.valueOf();if(i>=rg(a.slotMinTime)&&i<rg(a.slotMaxTime))return this.computeTimeTop(ni(i))}return null}computeDateTop(r,a){return a||(a=Ra(r)),this.computeTimeTop(ni(r.valueOf()-a.valueOf()))}computeTimeTop(r){let{positions:a,dateProfile:l}=this,i=a.els.length,m=(r.milliseconds-rg(l.slotMinTime))/rg(this.slotDuration),v,C;return m=Math.max(0,m),m=Math.min(i,m),v=Math.floor(m),v=Math.min(v,i-1),C=m-v,a.tops[v]+a.getHeight(v)*C}}class Hme extends Li{render(){let{props:r,context:a}=this,{options:l}=a,{slatElRefs:i}=r;return rt("tbody",null,r.slatMetas.map((m,v)=>{let C={time:m.time,date:a.dateEnv.toDate(m.date),view:a.viewApi};return rt("tr",{key:m.key,ref:i.createRef(m.key)},r.axis&&rt(Nte,Object.assign({},m)),rt(rm,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!m.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":m.isoTimeStr},renderProps:C,generatorName:"slotLaneContent",customGenerator:l.slotLaneContent,classNameGenerator:l.slotLaneClassNames,didMount:l.slotLaneDidMount,willUnmount:l.slotLaneWillUnmount}))}))}}class zme extends Li{constructor(){super(...arguments),this.rootElRef=Bd(),this.slatElRefs=new X1}render(){let{props:r,context:a}=this;return rt("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},rt("table",{"aria-hidden":!0,className:a.theme.getClass("table"),style:{minWidth:r.tableMinWidth,width:r.clientWidth,height:r.minHeight}},r.tableColGroupNode,rt(Hme,{slatElRefs:this.slatElRefs,axis:r.axis,slatMetas:r.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:r,props:a}=this;a.onCoords&&a.clientWidth!==null&&this.rootElRef.current.offsetHeight&&a.onCoords(new Vme(new US(this.rootElRef.current,Ume(this.slatElRefs.currentMap,a.slatMetas),!1,!0),this.props.dateProfile,r.options.slotDuration))}}function Ume(c,r){return r.map(a=>c[a.key])}function mA(c,r){let a=[],l;for(l=0;l<r;l+=1)a.push([]);if(c)for(l=0;l<c.length;l+=1)a[c[l].col].push(c[l]);return a}function Ite(c,r){let a=[];if(c){for(let l=0;l<r;l+=1)a[l]={affectedInstances:c.affectedInstances,isEvent:c.isEvent,segs:[]};for(let l of c.segs)a[l.col].segs.push(l)}else for(let l=0;l<r;l+=1)a[l]=null;return a}class Wme extends Li{render(){let{props:r}=this;return rt(nte,{elClasses:["fc-timegrid-more-link"],elStyle:{top:r.top,bottom:r.bottom},allDayDate:null,moreCnt:r.hiddenSegs.length,allSegs:r.hiddenSegs,hiddenSegs:r.hiddenSegs,extraDateSpan:r.extraDateSpan,dateProfile:r.dateProfile,todayRange:r.todayRange,popoverContent:()=>Lte(r.hiddenSegs,r),defaultGenerator:jme,forceTimed:!0},a=>rt(a,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}}function jme(c){return c.shortText}function Gme(c,r,a){let l=new $ee;r!=null&&(l.strictOrder=r),a!=null&&(l.maxStackCnt=a);let i=l.addSegs(c),m=ude(i),v=Zme(l);return v=Xme(v,1),{segRects:Qme(v),hiddenGroups:m}}function Zme(c){const{entriesByLevel:r}=c,a=mV((l,i)=>l+":"+i,(l,i)=>{let m=Yme(c,l,i),v=Bte(m,a),C=r[l][i];return[Object.assign(Object.assign({},C),{nextLevelNodes:v[0]}),C.thickness+v[1]]});return Bte(r.length?{level:0,lateralStart:0,lateralEnd:r[0].length}:null,a)[0]}function Bte(c,r){if(!c)return[[],0];let{level:a,lateralStart:l,lateralEnd:i}=c,m=l,v=[];for(;m<i;)v.push(r(a,m)),m+=1;return v.sort(qme),[v.map(Kme),v[0][1]]}function qme(c,r){return r[1]-c[1]}function Kme(c){return c[0]}function Yme(c,r,a){let{levelCoords:l,entriesByLevel:i}=c,m=i[r][a],v=l[r]+m.thickness,C=l.length,E=r;for(;E<C&&l[E]<v;E+=1);for(;E<C;E+=1){let T=i[E],N,V=eV(T,m.span.start,X$),U=V[0]+V[1],z=U;for(;(N=T[z])&&N.span.start<m.span.end;)z+=1;if(U<z)return{level:E,lateralStart:U,lateralEnd:z}}return null}function Xme(c,r){const a=mV((l,i,m)=>Y2(l),(l,i,m)=>{let{nextLevelNodes:v,thickness:C}=l,E=C+m,T=C/E,N,V=[];if(!v.length)N=r;else for(let z of v)if(N===void 0){let W=a(z,i,E);N=W[0],V.push(W[1])}else{let W=a(z,N,0);V.push(W[1])}let U=(N-i)*T;return[N-U,Object.assign(Object.assign({},l),{thickness:U,nextLevelNodes:V})]});return c.map(l=>a(l,0,0)[1])}function Qme(c){let r=[];const a=mV((i,m,v)=>Y2(i),(i,m,v)=>{let C=Object.assign(Object.assign({},i),{levelCoord:m,stackDepth:v,stackForward:0});return r.push(C),C.stackForward=l(i.nextLevelNodes,m+i.thickness,v+1)+1});function l(i,m,v){let C=0;for(let E of i)C=Math.max(a(E,m,v),C);return C}return l(c,0,0),r}function mV(c,r){const a={};return(...l)=>{let i=c(...l);return i in a?a[i]:a[i]=r(...l)}}function Mte(c,r,a=null,l=0){let i=[];if(a)for(let m=0;m<c.length;m+=1){let v=c[m],C=a.computeDateTop(v.start,r),E=Math.max(C+(l||0),a.computeDateTop(v.end,r));i.push({start:Math.round(C),end:Math.round(E)})}return i}function Jme(c,r,a,l){let i=[],m=[];for(let T=0;T<c.length;T+=1){let N=r[T];N?i.push({index:T,thickness:1,span:N}):m.push(c[T])}let{segRects:v,hiddenGroups:C}=Gme(i,a,l),E=[];for(let T of v)E.push({seg:c[T.index],rect:T});for(let T of m)E.push({seg:T,rect:null});return{segPlacements:E,hiddenGroups:C}}const ehe=El({hour:"numeric",minute:"2-digit",meridiem:!1});class Pte extends Li{render(){return rt(Qee,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:ehe}))}}class the extends Li{constructor(){super(...arguments),this.sortEventSegs=Ms(Aee)}render(){let{props:r,context:a}=this,{options:l}=a,i=l.selectMirror,m=r.eventDrag&&r.eventDrag.segs||r.eventResize&&r.eventResize.segs||i&&r.dateSelectionSegs||[],v=r.eventDrag&&r.eventDrag.affectedInstances||r.eventResize&&r.eventResize.affectedInstances||{},C=this.sortEventSegs(r.fgEventSegs,l.eventOrder);return rt(aV,{elTag:"td",elRef:r.elRef,elClasses:["fc-timegrid-col",...r.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},r.extraDataAttrs),date:r.date,dateProfile:r.dateProfile,todayRange:r.todayRange,extraRenderProps:r.extraRenderProps},E=>rt("div",{className:"fc-timegrid-col-frame"},rt("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(r.businessHourSegs,"non-business"),this.renderFillSegs(r.bgEventSegs,"bg-event"),this.renderFillSegs(r.dateSelectionSegs,"highlight")),rt("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(C,v,!1,!1,!1)),rt("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(m,{},!!r.eventDrag,!!r.eventResize,!!i,"mirror")),rt("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(r.nowIndicatorSegs)),lV(l)&&rt(E,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(r,a,l,i,m,v){let{props:C}=this;return C.forPrint?Lte(r,C):this.renderPositionedFgSegs(r,a,l,i,m,v)}renderPositionedFgSegs(r,a,l,i,m,v){let{eventMaxStack:C,eventShortHeight:E,eventOrderStrict:T,eventMinHeight:N}=this.context.options,{date:V,slatCoords:U,eventSelection:z,todayRange:W,nowDate:K}=this.props,Z=l||i||m,ce=Mte(r,V,U,N),{segPlacements:q,hiddenGroups:X}=Jme(r,ce,T,C);return rt(Ya,null,this.renderHiddenGroups(X,r),q.map(Ce=>{let{seg:st,rect:Ne}=Ce,ee=st.eventRange.instance.instanceId,xe=Z||!!(!a[ee]&&Ne),et=hV(Ne&&Ne.span),tt=!Z&&Ne?this.computeSegHStyle(Ne):{left:0,right:0},je=!!Ne&&Ne.stackForward>0,be=!!Ne&&Ne.span.end-Ne.span.start<E;return rt("div",{className:"fc-timegrid-event-harness"+(je?" fc-timegrid-event-harness-inset":""),key:v||ee,style:Object.assign(Object.assign({visibility:xe?"":"hidden"},et),tt)},rt(Pte,Object.assign({seg:st,isDragging:l,isResizing:i,isDateSelecting:m,isSelected:ee===z,isShort:be},ny(st,W,K))))}))}renderHiddenGroups(r,a){let{extraDateSpan:l,dateProfile:i,todayRange:m,nowDate:v,eventSelection:C,eventDrag:E,eventResize:T}=this.props;return rt(Ya,null,r.map(N=>{let V=hV(N.span),U=nhe(N.entries,a);return rt(Wme,{key:ZJ(ste(U)),hiddenSegs:U,top:V.top,bottom:V.bottom,extraDateSpan:l,dateProfile:i,todayRange:m,nowDate:v,eventSelection:C,eventDrag:E,eventResize:T})}))}renderFillSegs(r,a){let{props:l,context:i}=this,v=Mte(r,l.date,l.slatCoords,i.options.eventMinHeight).map((C,E)=>{let T=r[E];return rt("div",{key:Dee(T.eventRange),className:"fc-timegrid-bg-harness",style:hV(C)},a==="bg-event"?rt(Jee,Object.assign({seg:T},ny(T,l.todayRange,l.nowDate))):ete(a))});return rt(Ya,null,v)}renderNowIndicator(r){let{slatCoords:a,date:l}=this.props;return a?r.map((i,m)=>rt(iV,{key:m,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:a.computeDateTop(i.start,l)},isAxis:!1,date:l})):null}computeSegHStyle(r){let{isRtl:a,options:l}=this.context,i=l.slotEventOverlap,m=r.levelCoord,v=r.levelCoord+r.thickness,C,E;i&&(v=Math.min(1,m+(v-m)*2)),a?(C=1-v,E=m):(C=m,E=1-v);let T={zIndex:r.stackDepth+1,left:C*100+"%",right:E*100+"%"};return i&&!r.stackForward&&(T[a?"marginLeft":"marginRight"]=10*2),T}}function Lte(c,{todayRange:r,nowDate:a,eventSelection:l,eventDrag:i,eventResize:m}){let v=(i?i.affectedInstances:null)||(m?m.affectedInstances:null)||{};return rt(Ya,null,c.map(C=>{let E=C.eventRange.instance.instanceId;return rt("div",{key:E,style:{visibility:v[E]?"hidden":""}},rt(Pte,Object.assign({seg:C,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:E===l,isShort:!1},ny(C,r,a))))}))}function hV(c){return c?{top:c.start,bottom:-c.end}:{top:"",bottom:""}}function nhe(c,r){return c.map(a=>r[a.index])}class ohe extends Li{constructor(){super(...arguments),this.splitFgEventSegs=Ms(mA),this.splitBgEventSegs=Ms(mA),this.splitBusinessHourSegs=Ms(mA),this.splitNowIndicatorSegs=Ms(mA),this.splitDateSelectionSegs=Ms(mA),this.splitEventDrag=Ms(Ite),this.splitEventResize=Ms(Ite),this.rootElRef=Bd(),this.cellElRefs=new X1}render(){let{props:r,context:a}=this,l=a.options.nowIndicator&&r.slatCoords&&r.slatCoords.safeComputeTop(r.nowDate),i=r.cells.length,m=this.splitFgEventSegs(r.fgEventSegs,i),v=this.splitBgEventSegs(r.bgEventSegs,i),C=this.splitBusinessHourSegs(r.businessHourSegs,i),E=this.splitNowIndicatorSegs(r.nowIndicatorSegs,i),T=this.splitDateSelectionSegs(r.dateSelectionSegs,i),N=this.splitEventDrag(r.eventDrag,i),V=this.splitEventResize(r.eventResize,i);return rt("div",{className:"fc-timegrid-cols",ref:this.rootElRef},rt("table",{role:"presentation",style:{minWidth:r.tableMinWidth,width:r.clientWidth}},r.tableColGroupNode,rt("tbody",{role:"presentation"},rt("tr",{role:"row"},r.axis&&rt("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},rt("div",{className:"fc-timegrid-col-frame"},rt("div",{className:"fc-timegrid-now-indicator-container"},typeof l=="number"&&rt(iV,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:l},isAxis:!0,date:r.nowDate})))),r.cells.map((U,z)=>rt(the,{key:U.key,elRef:this.cellElRefs.createRef(U.key),dateProfile:r.dateProfile,date:U.date,nowDate:r.nowDate,todayRange:r.todayRange,extraRenderProps:U.extraRenderProps,extraDataAttrs:U.extraDataAttrs,extraClassNames:U.extraClassNames,extraDateSpan:U.extraDateSpan,fgEventSegs:m[z],bgEventSegs:v[z],businessHourSegs:C[z],nowIndicatorSegs:E[z],dateSelectionSegs:T[z],eventDrag:N[z],eventResize:V[z],slatCoords:r.slatCoords,eventSelection:r.eventSelection,forPrint:r.forPrint}))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:r}=this;r.onColCoords&&r.clientWidth!==null&&r.onColCoords(new US(this.rootElRef.current,she(this.cellElRefs.currentMap,r.cells),!0,!1))}}function she(c,r){return r.map(a=>c[a.key])}class rhe extends wp{constructor(){super(...arguments),this.processSlotOptions=Ms(ihe),this.state={slatCoords:null},this.handleRootEl=r=>{r?this.context.registerInteractiveComponent(this,{el:r,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=r=>{let{onScrollTopRequest:a}=this.props,{slatCoords:l}=this.state;if(a&&l){if(r.time){let i=l.computeTimeTop(r.time);i=Math.ceil(i),i&&(i+=1),a(i)}return!0}return!1},this.handleColCoords=r=>{this.colCoords=r},this.handleSlatCoords=r=>{this.setState({slatCoords:r}),this.props.onSlatCoords&&this.props.onSlatCoords(r)}}render(){let{props:r,state:a}=this;return rt("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:r.clientWidth,minWidth:r.tableMinWidth}},rt(zme,{axis:r.axis,dateProfile:r.dateProfile,slatMetas:r.slatMetas,clientWidth:r.clientWidth,minHeight:r.expandRows?r.clientHeight:"",tableMinWidth:r.tableMinWidth,tableColGroupNode:r.axis?r.tableColGroupNode:null,onCoords:this.handleSlatCoords}),rt(ohe,{cells:r.cells,axis:r.axis,dateProfile:r.dateProfile,businessHourSegs:r.businessHourSegs,bgEventSegs:r.bgEventSegs,fgEventSegs:r.fgEventSegs,dateSelectionSegs:r.dateSelectionSegs,eventSelection:r.eventSelection,eventDrag:r.eventDrag,eventResize:r.eventResize,todayRange:r.todayRange,nowDate:r.nowDate,nowIndicatorSegs:r.nowIndicatorSegs,clientWidth:r.clientWidth,tableMinWidth:r.tableMinWidth,tableColGroupNode:r.tableColGroupNode,slatCoords:a.slatCoords,onColCoords:this.handleColCoords,forPrint:r.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(r){this.scrollResponder.update(r.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(r,a){let{dateEnv:l,options:i}=this.context,{colCoords:m}=this,{dateProfile:v}=this.props,{slatCoords:C}=this.state,{snapDuration:E,snapsPerSlot:T}=this.processSlotOptions(this.props.slotDuration,i.snapDuration),N=m.leftToIndex(r),V=C.positions.topToIndex(a);if(N!=null&&V!=null){let U=this.props.cells[N],z=C.positions.tops[V],W=C.positions.getHeight(V),K=(a-z)/W,Z=Math.floor(K*T),ce=V*T+Z,q=this.props.cells[N].date,X=b$(v.slotMinTime,Jle(E,ce)),Ce=l.add(q,X),st=l.add(Ce,E);return{dateProfile:v,dateSpan:Object.assign({range:{start:Ce,end:st},allDay:!1},U.extraDateSpan),dayEl:m.els[N],rect:{left:m.lefts[N],right:m.rights[N],top:z,bottom:z+W},layer:0}}return null}}function ihe(c,r){let a=r||c,l=C$(c,a);return l===null&&(a=c,l=1),{snapDuration:a,snapsPerSlot:l}}class ahe extends Gee{sliceRange(r,a){let l=[];for(let i=0;i<a.length;i+=1){let m=Z2(r,a[i]);m&&l.push({start:m.start,end:m.end,isStart:m.start.valueOf()===r.start.valueOf(),isEnd:m.end.valueOf()===r.end.valueOf(),col:i})}return l}}class lhe extends wp{constructor(){super(...arguments),this.buildDayRanges=Ms(che),this.slicer=new ahe,this.timeColsRef=Bd()}render(){let{props:r,context:a}=this,{dateProfile:l,dayTableModel:i}=r,{nowIndicator:m,nextDayThreshold:v}=a.options,C=this.buildDayRanges(i,l,a.dateEnv);return rt(fA,{unit:m?"minute":"day"},(E,T)=>rt(rhe,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(r,l,null,a,C),{forPrint:r.forPrint,axis:r.axis,dateProfile:l,slatMetas:r.slatMetas,slotDuration:r.slotDuration,cells:i.cells[0],tableColGroupNode:r.tableColGroupNode,tableMinWidth:r.tableMinWidth,clientWidth:r.clientWidth,clientHeight:r.clientHeight,expandRows:r.expandRows,nowDate:E,nowIndicatorSegs:m&&this.slicer.sliceNowDate(E,l,v,a,C),todayRange:T,onScrollTopRequest:r.onScrollTopRequest,onSlatCoords:r.onSlatCoords})))}}function che(c,r,a){let l=[];for(let i of c.headerDates)l.push({start:a.add(i,r.slotMinTime),end:a.add(i,r.slotMaxTime)});return l}const Fte=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function uhe(c,r,a,l,i){let m=new Date(0),v=c,C=ni(0),E=a||dhe(l),T=[];for(;rg(v)<rg(r);){let N=i.add(m,v),V=C$(C,E)!==null;T.push({date:N,time:v,key:N.toISOString(),isoTimeStr:gce(N),isLabeled:V}),v=b$(v,l),C=b$(C,l)}return T}function dhe(c){let r,a,l;for(r=Fte.length-1;r>=0;r-=1)if(a=ni(Fte[r]),l=C$(a,c),l!==null&&l>1)return a;return c}class fhe extends Fme{constructor(){super(...arguments),this.buildTimeColsModel=Ms(mhe),this.buildSlatMetas=Ms(uhe)}render(){let{options:r,dateEnv:a,dateProfileGenerator:l}=this.context,{props:i}=this,{dateProfile:m}=i,v=this.buildTimeColsModel(m,l),C=this.allDaySplitter.splitProps(i),E=this.buildSlatMetas(m.slotMinTime,m.slotMaxTime,r.slotLabelInterval,r.slotDuration,a),{dayMinWidth:T}=r,N=!T,V=T,U=r.dayHeaders&&rt(Uee,{dates:v.headerDates,dateProfile:m,datesRepDistinctDays:!0,renderIntro:N?this.renderHeadAxis:null}),z=r.allDaySlot!==!1&&(K=>rt(Ote,Object.assign({},C.allDay,{dateProfile:m,dayTableModel:v,nextDayThreshold:r.nextDayThreshold,tableMinWidth:K.tableMinWidth,colGroupNode:K.tableColGroupNode,renderRowIntro:N?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:K.clientWidth,clientHeight:K.clientHeight,forPrint:i.forPrint},this.getAllDayMaxEventProps()))),W=K=>rt(lhe,Object.assign({},C.timed,{dayTableModel:v,dateProfile:m,axis:N,slotDuration:r.slotDuration,slatMetas:E,forPrint:i.forPrint,tableColGroupNode:K.tableColGroupNode,tableMinWidth:K.tableMinWidth,clientWidth:K.clientWidth,clientHeight:K.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:K.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return V?this.renderHScrollLayout(U,z,W,v.colCnt,T,E,this.state.slatCoords):this.renderSimpleLayout(U,z,W)}}function mhe(c,r){let a=new Wee(c.renderRange,r);return new jee(a,!1)}var hhe='.fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-v-event .fc-event-main{color:var(--fc-event-text-color);height:100%}.fc-v-event .fc-event-main-frame{display:flex;flex-direction:column;height:100%}.fc-v-event .fc-event-time{flex-grow:0;flex-shrink:0;max-height:100%;overflow:hidden}.fc-v-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;max-height:100%;overflow:hidden;top:0}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%;position:relative;z-index:1}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-slot{border-bottom:0;height:1.5em}.fc .fc-timegrid-slot:empty:before{content:"\\00a0"}.fc .fc-timegrid-slot-minor{border-top-style:dotted}.fc .fc-timegrid-slot-label-cushion{display:inline-block;white-space:nowrap}.fc .fc-timegrid-slot-label{vertical-align:middle}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{padding:0 4px}.fc .fc-timegrid-axis-frame-liquid{height:100%}.fc .fc-timegrid-axis-frame{align-items:center;display:flex;justify-content:flex-end;overflow:hidden}.fc .fc-timegrid-axis-cushion{flex-shrink:0;max-width:60px}.fc-direction-ltr .fc-timegrid-slot-label-frame{text-align:right}.fc-direction-rtl .fc-timegrid-slot-label-frame{text-align:left}.fc-liquid-hack .fc-timegrid-axis-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols{bottom:0;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols>table{height:100%}.fc-media-screen .fc-timegrid-col-bg,.fc-media-screen .fc-timegrid-col-events,.fc-media-screen .fc-timegrid-now-indicator-container{left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col-bg{z-index:2}.fc .fc-timegrid-col-bg .fc-non-business{z-index:1}.fc .fc-timegrid-col-bg .fc-bg-event{z-index:2}.fc .fc-timegrid-col-bg .fc-highlight{z-index:3}.fc .fc-timegrid-bg-harness{left:0;position:absolute;right:0}.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-now-indicator-container{bottom:0;overflow:hidden}.fc-direction-ltr .fc-timegrid-col-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-events{margin:0 2px 0 2.5%}.fc-timegrid-event-harness{position:absolute}.fc-timegrid-event-harness>.fc-timegrid-event{bottom:0;left:0;position:absolute;right:0;top:0}.fc-timegrid-event-harness-inset .fc-timegrid-event,.fc-timegrid-event.fc-event-mirror,.fc-timegrid-more-link{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event,.fc-timegrid-more-link{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-main-frame{flex-direction:row;overflow:hidden}.fc-timegrid-event-short .fc-event-time:after{content:"\\00a0-\\00a0"}.fc-timegrid-event-short .fc-event-title{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;position:absolute;z-index:9999}.fc-timegrid-more-link-inner{padding:3px 2px;top:0}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc .fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;border-width:1px 0 0;left:0;position:absolute;right:0;z-index:4}.fc .fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-style:solid;margin-top:-5px;position:absolute;z-index:4}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}';m$(hhe);var $te=Q1({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:fhe,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});tV.touchMouseIgnoreWait=500;let gV=0,kR=0,pV=!1;class Vte{constructor(r){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=a=>{if(!this.shouldIgnoreMouse()&&ghe(a)&&this.tryStart(a)){let l=this.createEventFromMouse(a,!0);this.emitter.trigger("pointerdown",l),this.initScrollWatch(l),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=a=>{let l=this.createEventFromMouse(a);this.recordCoords(l),this.emitter.trigger("pointermove",l)},this.handleMouseUp=a=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(a)),this.cleanup()},this.handleTouchStart=a=>{if(this.tryStart(a)){this.isTouchDragging=!0;let l=this.createEventFromTouch(a,!0);this.emitter.trigger("pointerdown",l),this.initScrollWatch(l);let i=a.target;this.shouldIgnoreMove||i.addEventListener("touchmove",this.handleTouchMove),i.addEventListener("touchend",this.handleTouchEnd),i.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=a=>{let l=this.createEventFromTouch(a);this.recordCoords(l),this.emitter.trigger("pointermove",l)},this.handleTouchEnd=a=>{if(this.isDragging){let l=a.target;l.removeEventListener("touchmove",this.handleTouchMove),l.removeEventListener("touchend",this.handleTouchEnd),l.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(a)),this.cleanup(),this.isTouchDragging=!1,phe()}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=a=>{if(!this.shouldIgnoreMove){let l=window.scrollX-this.prevScrollX+this.prevPageX,i=window.scrollY-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:a,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:l,pageY:i,deltaX:l-this.origPageX,deltaY:i-this.origPageY})}},this.containerEl=r,this.emitter=new pR,r.addEventListener("mousedown",this.handleMouseDown),r.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),vhe()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),yhe()}tryStart(r){let a=this.querySubjectEl(r),l=r.target;return a&&(!this.handleSelector||td(l,this.handleSelector))?(this.subjectEl=a,this.isDragging=!0,this.wasTouchScroll=!1,!0):!1}cleanup(){pV=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(r){return this.selector?td(r.target,this.selector):this.containerEl}shouldIgnoreMouse(){return gV||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(pV=!0)}initScrollWatch(r){this.shouldWatchScroll&&(this.recordCoords(r),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(r){this.shouldWatchScroll&&(this.prevPageX=r.pageX,this.prevPageY=r.pageY,this.prevScrollX=window.scrollX,this.prevScrollY=window.scrollY)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(r,a){let l=0,i=0;return a?(this.origPageX=r.pageX,this.origPageY=r.pageY):(l=r.pageX-this.origPageX,i=r.pageY-this.origPageY),{origEvent:r,isTouch:!1,subjectEl:this.subjectEl,pageX:r.pageX,pageY:r.pageY,deltaX:l,deltaY:i}}createEventFromTouch(r,a){let l=r.touches,i,m,v=0,C=0;return l&&l.length?(i=l[0].pageX,m=l[0].pageY):(i=r.pageX,m=r.pageY),a?(this.origPageX=i,this.origPageY=m):(v=i-this.origPageX,C=m-this.origPageY),{origEvent:r,isTouch:!0,subjectEl:this.subjectEl,pageX:i,pageY:m,deltaX:v,deltaY:C}}}function ghe(c){return c.button===0&&!c.ctrlKey}function phe(){gV+=1,setTimeout(()=>{gV-=1},tV.touchMouseIgnoreWait)}function vhe(){kR+=1,kR===1&&window.addEventListener("touchmove",Hte,{passive:!1})}function yhe(){kR-=1,kR||window.removeEventListener("touchmove",Hte,{passive:!1})}function Hte(c){pV&&c.preventDefault()}class bhe{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(r,a,l){this.sourceEl=r,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=a-window.scrollX,this.origScreenY=l-window.scrollY,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(r,a){this.deltaX=r-window.scrollX-this.origScreenX,this.deltaY=a-window.scrollY-this.origScreenY,this.updateElPosition()}setIsVisible(r){r?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=r,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=r)}stop(r,a){let l=()=>{this.cleanup(),a()};r&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(l,this.revertDuration):setTimeout(l,0)}doRevertAnimation(r,a){let l=this.mirrorEl,i=this.sourceEl.getBoundingClientRect();l.style.transition="top "+a+"ms,left "+a+"ms",iA(l,{left:i.left,top:i.top}),Fle(l,()=>{l.style.transition="",r()})}cleanup(){this.mirrorEl&&(p$(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&iA(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let r=this.sourceElRect,a=this.mirrorEl;return a||(a=this.mirrorEl=this.sourceEl.cloneNode(!0),a.style.userSelect="none",a.style.webkitUserSelect="none",a.style.pointerEvents="none",a.classList.add("fc-event-dragging"),iA(a,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:r.right-r.left,height:r.bottom-r.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(a)),a}}class zte extends Y${constructor(r,a){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=r,this.doesListening=a,this.scrollTop=this.origScrollTop=r.getScrollTop(),this.scrollLeft=this.origScrollLeft=r.getScrollLeft(),this.scrollWidth=r.getScrollWidth(),this.scrollHeight=r.getScrollHeight(),this.clientWidth=r.getClientWidth(),this.clientHeight=r.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(r){this.scrollController.setScrollTop(r),this.doesListening||(this.scrollTop=Math.max(Math.min(r,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(r){this.scrollController.setScrollLeft(r),this.doesListening||(this.scrollLeft=Math.max(Math.min(r,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}}class Ute extends zte{constructor(r,a){super(new lde(r),a)}getEventTarget(){return this.scrollController.el}computeClientRect(){return ide(this.scrollController.el)}}class Che extends zte{constructor(r){super(new cde,r)}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 Wte=typeof performance=="function"?performance.now:Date.now;class _he{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 r=this.computeBestEdge(this.pointerScreenX+window.scrollX,this.pointerScreenY+window.scrollY);if(r){let a=Wte();this.handleSide(r,(a-this.msSinceRequest)/1e3),this.requestAnimation(a)}else this.isAnimating=!1}}}start(r,a,l){this.isEnabled&&(this.scrollCaches=this.buildCaches(l),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(r,a))}handleMove(r,a){if(this.isEnabled){let l=r-window.scrollX,i=a-window.scrollY,m=this.pointerScreenY===null?0:i-this.pointerScreenY,v=this.pointerScreenX===null?0:l-this.pointerScreenX;m<0?this.everMovedUp=!0:m>0&&(this.everMovedDown=!0),v<0?this.everMovedLeft=!0:v>0&&(this.everMovedRight=!0),this.pointerScreenX=l,this.pointerScreenY=i,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(Wte()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let r of this.scrollCaches)r.destroy();this.scrollCaches=null}}requestAnimation(r){this.msSinceRequest=r,requestAnimationFrame(this.animate)}handleSide(r,a){let{scrollCache:l}=r,{edgeThreshold:i}=this,m=i-r.distance,v=m*m/(i*i)*this.maxVelocity*a,C=1;switch(r.name){case"left":C=-1;case"right":l.setScrollLeft(l.getScrollLeft()+v*C);break;case"top":C=-1;case"bottom":l.setScrollTop(l.getScrollTop()+v*C);break}}computeBestEdge(r,a){let{edgeThreshold:l}=this,i=null,m=this.scrollCaches||[];for(let v of m){let C=v.clientRect,E=r-C.left,T=C.right-r,N=a-C.top,V=C.bottom-a;E>=0&&T>=0&&N>=0&&V>=0&&(N<=l&&this.everMovedUp&&v.canScrollUp()&&(!i||i.distance>N)&&(i={scrollCache:v,name:"top",distance:N}),V<=l&&this.everMovedDown&&v.canScrollDown()&&(!i||i.distance>V)&&(i={scrollCache:v,name:"bottom",distance:V}),E<=l&&this.everMovedLeft&&v.canScrollLeft()&&(!i||i.distance>E)&&(i={scrollCache:v,name:"left",distance:E}),T<=l&&this.everMovedRight&&v.canScrollRight()&&(!i||i.distance>T)&&(i={scrollCache:v,name:"right",distance:T}))}return i}buildCaches(r){return this.queryScrollEls(r).map(a=>a===window?new Che(!1):new Ute(a,!1))}queryScrollEls(r){let a=[];for(let l of this.scrollQuery)typeof l=="object"?a.push(l):a.push(...Array.prototype.slice.call(r.getRootNode().querySelectorAll(l)));return a}}class hA extends fde{constructor(r,a){super(r),this.containerEl=r,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=i=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,$le(document.body),Hle(document.body),i.isTouch||i.origEvent.preventDefault(),this.emitter.trigger("pointerdown",i),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(i.subjectEl,i.pageX,i.pageY),this.startDelay(i),this.minDistance||this.handleDistanceSurpassed(i)))},this.onPointerMove=i=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",i),!this.isDistanceSurpassed){let m=this.minDistance,v,{deltaX:C,deltaY:E}=i;v=C*C+E*E,v>=m*m&&this.handleDistanceSurpassed(i)}this.isDragging&&(i.origEvent.type!=="scroll"&&(this.mirror.handleMove(i.pageX,i.pageY),this.autoScroller.handleMove(i.pageX,i.pageY)),this.emitter.trigger("dragmove",i))}},this.onPointerUp=i=>{this.isInteracting&&(this.isInteracting=!1,Vle(document.body),zle(document.body),this.emitter.trigger("pointerup",i),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(i)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let l=this.pointer=new Vte(r);l.emitter.on("pointerdown",this.onPointerDown),l.emitter.on("pointermove",this.onPointerMove),l.emitter.on("pointerup",this.onPointerUp),a&&(l.selector=a),this.mirror=new bhe,this.autoScroller=new _he}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(r){typeof this.delay=="number"?this.delayTimeoutId=setTimeout(()=>{this.delayTimeoutId=null,this.handleDelayEnd(r)},this.delay):this.handleDelayEnd(r)}handleDelayEnd(r){this.isDelayEnded=!0,this.tryStartDrag(r)}handleDistanceSurpassed(r){this.isDistanceSurpassed=!0,this.tryStartDrag(r)}tryStartDrag(r){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(r.pageX,r.pageY,this.containerEl),this.emitter.trigger("dragstart",r),this.touchScrollAllowed===!1&&this.pointer.cancelTouchScroll())}tryStopDrag(r){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,r))}stopDrag(r){this.isDragging=!1,this.emitter.trigger("dragend",r)}setIgnoreMove(r){this.pointer.shouldIgnoreMove=r}setMirrorIsVisible(r){this.mirror.setIsVisible(r)}setMirrorNeedsRevert(r){this.mirrorNeedsRevert=r}setAutoScrollEnabled(r){this.autoScroller.isEnabled=r}}class whe{constructor(r){this.el=r,this.origRect=K$(r),this.scrollCaches=Fee(r).map(a=>new Ute(a,!0))}destroy(){for(let r of this.scrollCaches)r.destroy()}computeLeft(){let r=this.origRect.left;for(let a of this.scrollCaches)r+=a.origScrollLeft-a.getScrollLeft();return r}computeTop(){let r=this.origRect.top;for(let a of this.scrollCaches)r+=a.origScrollTop-a.getScrollTop();return r}isWithinClipping(r,a){let l={left:r,top:a};for(let i of this.scrollCaches)if(!She(i.getEventTarget())&&!Zue(l,i.clientRect))return!1;return!0}}function She(c){let r=c.tagName;return r==="HTML"||r==="BODY"}class xR{constructor(r,a){this.useSubjectCenter=!1,this.requireInitial=!0,this.disablePointCheck=!1,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=l=>{let{dragging:i}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(l),this.initialHit||!this.requireInitial?(i.setIgnoreMove(!1),this.emitter.trigger("pointerdown",l)):i.setIgnoreMove(!0)},this.handleDragStart=l=>{this.emitter.trigger("dragstart",l),this.handleMove(l,!0)},this.handleDragMove=l=>{this.emitter.trigger("dragmove",l),this.handleMove(l)},this.handlePointerUp=l=>{this.releaseHits(),this.emitter.trigger("pointerup",l)},this.handleDragEnd=l=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,l),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",l)},this.droppableStore=a,r.emitter.on("pointerdown",this.handlePointerDown),r.emitter.on("dragstart",this.handleDragStart),r.emitter.on("dragmove",this.handleDragMove),r.emitter.on("pointerup",this.handlePointerUp),r.emitter.on("dragend",this.handleDragEnd),this.dragging=r,this.emitter=new pR}processFirstCoord(r){let a={left:r.pageX,top:r.pageY},l=a,i=r.subjectEl,m;i instanceof HTMLElement&&(m=K$(i),l=que(l,m));let v=this.initialHit=this.queryHitForOffset(l.left,l.top);if(v){if(this.useSubjectCenter&&m){let C=Mee(m,v.rect);C&&(l=Kue(C))}this.coordAdjust=Yue(l,a)}else this.coordAdjust={left:0,top:0}}handleMove(r,a){let l=this.queryHitForOffset(r.pageX+this.coordAdjust.left,r.pageY+this.coordAdjust.top);(a||!AR(this.movingHit,l))&&(this.movingHit=l,this.emitter.trigger("hitupdate",l,!1,r))}prepareHits(){this.offsetTrackers=Z1(this.droppableStore,r=>(r.component.prepareHits(),new whe(r.el)))}releaseHits(){let{offsetTrackers:r}=this;for(let a in r)r[a].destroy();this.offsetTrackers={}}queryHitForOffset(r,a){let{droppableStore:l,offsetTrackers:i}=this,m=null;for(let v in l){let C=l[v].component,E=i[v];if(E&&E.isWithinClipping(r,a)){let T=E.computeLeft(),N=E.computeTop(),V=r-T,U=a-N,{origRect:z}=E,W=z.right-z.left,K=z.bottom-z.top;if(V>=0&&V<W&&U>=0&&U<K){let Z=C.queryHit(V,U,W,K);Z&&dR(Z.dateProfile.activeRange,Z.dateSpan.range)&&(this.disablePointCheck||E.el.contains(document.elementFromPoint(V+T-window.scrollX,U+N-window.scrollY)))&&(!m||Z.layer>m.layer)&&(Z.componentId=v,Z.context=C.context,Z.rect.left+=T,Z.rect.right+=T,Z.rect.top+=N,Z.rect.bottom+=N,m=Z)}}}return m}}function AR(c,r){return!c&&!r?!0:!!c!=!!r?!1:Lue(c.dateSpan,r.dateSpan)}function jte(c,r){let a={};for(let l of r.pluginHooks.datePointTransforms)Object.assign(a,l(c,r));return Object.assign(a,Ehe(c,r.dateEnv)),a}function Ehe(c,r){return{date:r.toDate(c.range.start),dateStr:r.formatIso(c.range.start,{omitTime:c.allDay}),allDay:c.allDay}}class khe extends zS{constructor(r){super(r),this.handlePointerDown=l=>{let{dragging:i}=this,m=l.origEvent.target;i.setIgnoreMove(!this.component.isValidDateDownEl(m))},this.handleDragEnd=l=>{let{component:i}=this,{pointer:m}=this.dragging;if(!m.wasTouchScroll){let{initialHit:v,finalHit:C}=this.hitDragging;if(v&&C&&AR(v,C)){let{context:E}=i,T=Object.assign(Object.assign({},jte(v.dateSpan,E)),{dayEl:v.dayEl,jsEvent:l.origEvent,view:E.viewApi||E.calendarApi.view});E.emitter.trigger("dateClick",T)}}},this.dragging=new hA(r.el),this.dragging.autoScroller.isEnabled=!1;let a=this.hitDragging=new xR(this.dragging,U$(r));a.emitter.on("pointerdown",this.handlePointerDown),a.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class xhe extends zS{constructor(r){super(r),this.dragSelection=null,this.handlePointerDown=v=>{let{component:C,dragging:E}=this,{options:T}=C.context,N=T.selectable&&C.isValidDateDownEl(v.origEvent.target);E.setIgnoreMove(!N),E.delay=v.isTouch?Ahe(C):null},this.handleDragStart=v=>{this.component.context.calendarApi.unselect(v)},this.handleHitUpdate=(v,C)=>{let{context:E}=this.component,T=null,N=!1;if(v){let V=this.hitDragging.initialHit;v.componentId===V.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(V,v)||(T=The(V,v,E.pluginHooks.dateSelectionTransformers)),(!T||!yde(T,v.dateProfile,E))&&(N=!0,T=null)}T?E.dispatch({type:"SELECT_DATES",selection:T}):C||E.dispatch({type:"UNSELECT_DATES"}),N?v$():y$(),C||(this.dragSelection=T)},this.handlePointerUp=v=>{this.dragSelection&&(_ee(this.dragSelection,v,this.component.context),this.dragSelection=null)};let{component:a}=r,{options:l}=a.context,i=this.dragging=new hA(r.el);i.touchScrollAllowed=!1,i.minDistance=l.selectMinDistance||0,i.autoScroller.isEnabled=l.dragScroll;let m=this.hitDragging=new xR(this.dragging,U$(r));m.emitter.on("pointerdown",this.handlePointerDown),m.emitter.on("dragstart",this.handleDragStart),m.emitter.on("hitupdate",this.handleHitUpdate),m.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}}function Ahe(c){let{options:r}=c.context,a=r.selectLongPressDelay;return a==null&&(a=r.longPressDelay),a}function The(c,r,a){let l=c.dateSpan,i=r.dateSpan,m=[l.range.start,l.range.end,i.range.start,i.range.end];m.sort(Zle);let v={};for(let C of a){let E=C(c,r);if(E===!1)return null;E&&Object.assign(v,E)}return v.range={start:m[0],end:m[3]},v.allDay=l.allDay,v}class gA extends zS{constructor(r){super(r),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=v=>{let C=v.origEvent.target,{component:E,dragging:T}=this,{mirror:N}=T,{options:V}=E.context,U=E.context;this.subjectEl=v.subjectEl;let z=this.subjectSeg=HS(v.subjectEl),K=(this.eventRange=z.eventRange).instance.instanceId;this.relevantEvents=F$(U.getCurrentData().eventStore,K),T.minDistance=v.isTouch?0:V.eventDragMinDistance,T.delay=v.isTouch&&K!==E.props.eventSelection?Ohe(E):null,V.fixedMirrorParent?N.parentNode=V.fixedMirrorParent:N.parentNode=td(C,".fc"),N.revertDuration=V.dragRevertDuration;let Z=E.isValidSegDownEl(C)&&!td(C,".fc-event-resizer");T.setIgnoreMove(!Z),this.isDragging=Z&&v.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=v=>{let C=this.component.context,E=this.eventRange,T=E.instance.instanceId;v.isTouch?T!==this.component.props.eventSelection&&C.dispatch({type:"SELECT_EVENT",eventInstanceId:T}):C.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(C.calendarApi.unselect(v),C.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new fl(C,E.def,E.instance),jsEvent:v.origEvent,view:C.viewApi}))},this.handleHitUpdate=(v,C)=>{if(!this.isDragging)return;let E=this.relevantEvents,T=this.hitDragging.initialHit,N=this.component.context,V=null,U=null,z=null,W=!1,K={affectedEvents:E,mutatedEvents:im(),isEvent:!0};if(v){V=v.context;let Z=V.options;N===V||Z.editable&&Z.droppable?(U=Dhe(T,v,this.eventRange.instance.range.start,V.getCurrentData().pluginHooks.eventDragMutationMassagers),U&&(z=H$(E,V.getCurrentData().eventUiBases,U,V),K.mutatedEvents=z,Zee(K,v.dateProfile,V)||(W=!0,U=null,z=null,K.mutatedEvents=im()))):V=null}this.displayDrag(V,K),W?v$():y$(),C||(N===V&&AR(T,v)&&(U=null),this.dragging.setMirrorNeedsRevert(!U),this.dragging.setMirrorIsVisible(!v||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=V,this.validMutation=U,this.mutatedRelevantEvents=z)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=v=>{if(this.isDragging){let C=this.component.context,E=C.viewApi,{receivingContext:T,validMutation:N}=this,V=this.eventRange.def,U=this.eventRange.instance,z=new fl(C,V,U),W=this.relevantEvents,K=this.mutatedRelevantEvents,{finalHit:Z}=this.hitDragging;if(this.clearDrag(),C.emitter.trigger("eventDragStop",{el:this.subjectEl,event:z,jsEvent:v.origEvent,view:E}),N){if(T===C){let ce=new fl(C,K.defs[V.defId],U?K.instances[U.instanceId]:null);C.dispatch({type:"MERGE_EVENTS",eventStore:K});let q={oldEvent:z,event:ce,relatedEvents:K2(K,C,U),revert(){C.dispatch({type:"MERGE_EVENTS",eventStore:W})}},X={};for(let Ce of C.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(X,Ce(N,C));C.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},q),X),{el:v.subjectEl,delta:N.datesDelta,jsEvent:v.origEvent,view:E})),C.emitter.trigger("eventChange",q)}else if(T){let ce={event:z,relatedEvents:K2(W,C,U),revert(){C.dispatch({type:"MERGE_EVENTS",eventStore:W})}};C.emitter.trigger("eventLeave",Object.assign(Object.assign({},ce),{draggedEl:v.subjectEl,view:E})),C.dispatch({type:"REMOVE_EVENTS",eventStore:W}),C.emitter.trigger("eventRemove",ce);let q=K.defs[V.defId],X=K.instances[U.instanceId],Ce=new fl(T,q,X);T.dispatch({type:"MERGE_EVENTS",eventStore:K});let st={event:Ce,relatedEvents:K2(K,T,X),revert(){T.dispatch({type:"REMOVE_EVENTS",eventStore:K})}};T.emitter.trigger("eventAdd",st),v.isTouch&&T.dispatch({type:"SELECT_EVENT",eventInstanceId:U.instanceId}),T.emitter.trigger("drop",Object.assign(Object.assign({},jte(Z.dateSpan,T)),{draggedEl:v.subjectEl,jsEvent:v.origEvent,view:Z.context.viewApi})),T.emitter.trigger("eventReceive",Object.assign(Object.assign({},st),{draggedEl:v.subjectEl,view:Z.context.viewApi}))}}else C.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:a}=this,{options:l}=a.context,i=this.dragging=new hA(r.el);i.pointer.selector=gA.SELECTOR,i.touchScrollAllowed=!1,i.autoScroller.isEnabled=l.dragScroll;let m=this.hitDragging=new xR(this.dragging,W$);m.useSubjectCenter=r.useEventCenter,m.emitter.on("pointerdown",this.handlePointerDown),m.emitter.on("dragstart",this.handleDragStart),m.emitter.on("hitupdate",this.handleHitUpdate),m.emitter.on("pointerup",this.handlePointerUp),m.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(r,a){let l=this.component.context,i=this.receivingContext;i&&i!==r&&(i===l?i.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:a.affectedEvents,mutatedEvents:im(),isEvent:!0}}):i.dispatch({type:"UNSET_EVENT_DRAG"})),r&&r.dispatch({type:"SET_EVENT_DRAG",state:a})}clearDrag(){let r=this.component.context,{receivingContext:a}=this;a&&a.dispatch({type:"UNSET_EVENT_DRAG"}),r!==a&&r.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}}gA.SELECTOR=".fc-event-draggable, .fc-event-resizable";function Dhe(c,r,a,l){let i=c.dateSpan,m=r.dateSpan,v=i.range.start,C=m.range.start,E={};i.allDay!==m.allDay&&(E.allDay=m.allDay,E.hasEnd=r.context.options.allDayMaintainDuration,m.allDay?v=Ra(a):v=a);let T=$S(v,C,c.context.dateEnv,c.componentId===r.componentId?c.largeUnit:null);T.milliseconds&&(E.allDay=!1);let N={datesDelta:T,standardProps:E};for(let V of l)V(N,c,r);return N}function Ohe(c){let{options:r}=c.context,a=r.eventLongPressDelay;return a==null&&(a=r.longPressDelay),a}class Rhe extends zS{constructor(r){super(r),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=m=>{let{component:v}=this,C=this.querySegEl(m),E=HS(C),T=this.eventRange=E.eventRange;this.dragging.minDistance=v.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(m.origEvent.target)||m.isTouch&&this.component.props.eventSelection!==T.instance.instanceId)},this.handleDragStart=m=>{let{context:v}=this.component,C=this.eventRange;this.relevantEvents=F$(v.getCurrentData().eventStore,this.eventRange.instance.instanceId);let E=this.querySegEl(m);this.draggingSegEl=E,this.draggingSeg=HS(E),v.calendarApi.unselect(),v.emitter.trigger("eventResizeStart",{el:E,event:new fl(v,C.def,C.instance),jsEvent:m.origEvent,view:v.viewApi})},this.handleHitUpdate=(m,v,C)=>{let{context:E}=this.component,T=this.relevantEvents,N=this.hitDragging.initialHit,V=this.eventRange.instance,U=null,z=null,W=!1,K={affectedEvents:T,mutatedEvents:im(),isEvent:!0};m&&(m.componentId===N.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(N,m)||(U=Nhe(N,m,C.subjectEl.classList.contains("fc-event-resizer-start"),V.range))),U&&(z=H$(T,E.getCurrentData().eventUiBases,U,E),K.mutatedEvents=z,Zee(K,m.dateProfile,E)||(W=!0,U=null,z=null,K.mutatedEvents=null)),z?E.dispatch({type:"SET_EVENT_RESIZE",state:K}):E.dispatch({type:"UNSET_EVENT_RESIZE"}),W?v$():y$(),v||(U&&AR(N,m)&&(U=null),this.validMutation=U,this.mutatedRelevantEvents=z)},this.handleDragEnd=m=>{let{context:v}=this.component,C=this.eventRange.def,E=this.eventRange.instance,T=new fl(v,C,E),N=this.relevantEvents,V=this.mutatedRelevantEvents;if(v.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:T,jsEvent:m.origEvent,view:v.viewApi}),this.validMutation){let U=new fl(v,V.defs[C.defId],E?V.instances[E.instanceId]:null);v.dispatch({type:"MERGE_EVENTS",eventStore:V});let z={oldEvent:T,event:U,relatedEvents:K2(V,v,E),revert(){v.dispatch({type:"MERGE_EVENTS",eventStore:N})}};v.emitter.trigger("eventResize",Object.assign(Object.assign({},z),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||ni(0),endDelta:this.validMutation.endDelta||ni(0),jsEvent:m.origEvent,view:v.viewApi})),v.emitter.trigger("eventChange",z)}else v.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:a}=r,l=this.dragging=new hA(r.el);l.pointer.selector=".fc-event-resizer",l.touchScrollAllowed=!1,l.autoScroller.isEnabled=a.context.options.dragScroll;let i=this.hitDragging=new xR(this.dragging,U$(r));i.emitter.on("pointerdown",this.handlePointerDown),i.emitter.on("dragstart",this.handleDragStart),i.emitter.on("hitupdate",this.handleHitUpdate),i.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(r){return td(r.subjectEl,".fc-event")}}function Nhe(c,r,a,l){let i=c.context.dateEnv,m=c.dateSpan.range.start,v=r.dateSpan.range.start,C=$S(m,v,i,c.largeUnit);if(a){if(i.add(l.start,C)<l.end)return{startDelta:C}}else if(i.add(l.end,C)>l.start)return{endDelta:C};return null}class Ihe{constructor(r){this.context=r,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=l=>{l.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=l=>{let i=this.context.options.unselectCancel,m=BJ(l.origEvent);this.matchesCancel=!!td(m,i),this.matchesEvent=!!td(m,gA.SELECTOR)},this.onDocumentPointerUp=l=>{let{context:i}=this,{documentPointer:m}=this,v=i.getCurrentData();if(!m.wasTouchScroll){if(v.dateSelection&&!this.isRecentPointerDateSelect){let C=i.options.unselectAuto;C&&(!C||!this.matchesCancel)&&i.calendarApi.unselect(l)}v.eventSelection&&!this.matchesEvent&&i.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let a=this.documentPointer=new Vte(document);a.shouldIgnoreMove=!0,a.shouldWatchScroll=!1,a.emitter.on("pointerdown",this.onDocumentPointerDown),a.emitter.on("pointerup",this.onDocumentPointerUp),r.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}const Bhe={fixedMirrorParent:qt},Mhe={dateClick:qt,eventDragStart:qt,eventDragStop:qt,eventDrop:qt,eventResizeStart:qt,eventResizeStop:qt,eventResize:qt,drop:qt,eventReceive:qt,eventLeave:qt};tV.dataAttrPrefix="";var Gte=Q1({name:"@fullcalendar/interaction",componentInteractions:[khe,xhe,gA,Rhe],calendarInteractions:[Ihe],elementDraggingImpl:hA,optionRefiners:Bhe,listenerRefiners:Mhe});let Phe=0,Lhe=new Date().toISOString().replace(/T.*$/,"");const Fhe=[{id:$he(),title:"All-day event",start:Lhe}];function $he(){return String(Phe++)}const pA=c=>(f.pushScopeId("data-v-1fa0e0e1"),c=c(),f.popScopeId(),c),Vhe={class:"demo-app"},Hhe={class:"demo-app-main"},zhe={class:"title-line"},Uhe=["title","onClick"],Whe={key:0,style:{width:"90%"}},jhe=pA(()=>f.createElementVNode("span",{class:"to"},"至",-1)),Ghe={key:1,style:{width:"90%"}},Zhe=pA(()=>f.createElementVNode("span",{class:"to"},"至",-1)),qhe={key:2,style:{width:"90%",display:"flex","align-items":"center","justify-content":"space-between"}},Khe={key:0,style:{"margin-left":"2%"}},Yhe=pA(()=>f.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),Xhe={key:1},Qhe=pA(()=>f.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),Jhe={key:0,class:"placeholder"},ege={class:"info"},tge=pA(()=>f.createElementVNode("img",{src:"https://img1.baidu.com/it/u=1960110688,1786190632&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=281",alt:""},null,-1)),nge={class:"dialog-footer"},oge={name:"IkApprovalProcess"},sge=f.defineComponent({...oge,props:{dataList:{type:Array,default:()=>[]},defaultNodeType:{type:Object,default:()=>({})},defaultFieldMap:{type:Object,default:()=>({})},statusWithoutApprover:{type:Object,default:()=>({})}},emits:["delete","success"],setup(c,{emit:r}){const a=r,l=K=>{if(C.selectInfo=K,m(),K.view.type=="dayGridMonth"){let ce=K.end.getTime()-864e5;C.timeType="month",C.form.startDate=To.ikDate.toYMD(K.start),C.form.endDate=To.ikDate.toYMD(new Date(ce))}else K.view.type=="timeGridWeek"?(C.timeType="week",C.form.startDate=To.ikDate.toYMDHM(K.start),C.form.endDate=To.ikDate.toYMDHM(K.end)):K.view.type=="timeGridDay"&&(C.timeType="day",C.form.startDate=To.ikDate.toYMD(K.start),C.form.endDate=To.ikDate.toYMD(K.start),C.form.startTime=To.ikDate.toDateTime(K.start),C.form.endTime=To.ikDate.toDateTime(K.end));K.view.calendar.unselect(),f.nextTick(()=>{C.title="新建日程",C.dialogVisible=!0})},i=(K,Z)=>{C.title="修改日程",C.dialogVisible=!0},m=K=>{fetch("http://192.168.2.45:6002/component/pick/mix",{method:"POST",body:JSON.stringify({parentDepartmentId:K||"",name:""}),headers:{Authorization:"Bearer iking","Content-Type":"application/json"}}).then(q=>{q.json().then(X=>{const{success:Ce,data:st}=X;if(!Ce)return;const{departments:Ne,users:ee,roles:xe,posts:et}=st;C.depList=Ne,C.userList=ee,C.roleList=xe,C.postList=et})}).catch(q=>{console.info("error: ",q)})},v=K=>{C.currentEvents=K},C=f.reactive({allDay:!1,dialogVisible:!1,form:{title:"",type:1,startDate:"",endDate:"",startTime:"",endTime:"",personList:[],location:""},formRef:null,title:"新建日程",timeType:"month",handList:[],isShow:!1,depList:[],userList:[],roleList:[],postList:[],selectInfo:{},calendarOptions:{locale:jQ,plugins:[Rte,$te,Gte],headerToolbar:{left:"prev,next today",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay"},firstDay:1,initialView:"dayGridMonth",initialEvents:Fhe,editable:!0,selectable:!0,selectMirror:!0,dayMaxEvents:!0,weekends:!0,select:l,eventClick:K=>i(),eventsSet:v},currentEvents:[]}),E=()=>{var K;(K=C.formRef)==null||K.resetFields(),C.form={title:"",type:1,startDate:"",endDate:"",startTime:"",endTime:"",personList:[],location:""},C.dialogVisible=!1},T=async()=>{var ce,q,X,Ce;let K=(q=(ce=C.selectInfo)==null?void 0:ce.view)==null?void 0:q.calendar,Z={id:new Date().getTime(),title:C.form.title,start:(X=C.selectInfo)==null?void 0:X.startStr,end:(Ce=C.selectInfo)==null?void 0:Ce.endStr,allDay:C.allDay};await K.addEvent(Z),a("success",Z),E()},N=K=>{Ft.ElMessageBox.confirm(`你确定删除事件'${K.event.title}'?`,"Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(()=>{Ft.ElMessage({type:"success",message:"删除成功"}),K.event.remove(),a("delete",K.event)})},V=K=>{C.handList=K.list,C.form.personList=K.list},U=()=>{C.isShow=!0},z=K=>{m(K==null?void 0:K.elementId)},W=K=>{C.form.personList.splice(K,1),C.handList=C.form.personList};return(K,Z)=>{const ce=f.resolveComponent("el-checkbox");return f.openBlock(),f.createElementBlock("div",Vhe,[f.createElementVNode("div",Hhe,[f.createVNode(f.unref(_te),{class:"demo-app-calendar",options:C.calendarOptions},{eventContent:f.withCtx(q=>[f.createElementVNode("div",zhe,[f.createElementVNode("span",{class:"title",title:q.event.title,onClick:f.withModifiers(X=>i(),["stop"])},f.toDisplayString(q.event.title),9,Uhe),f.createVNode(f.unref(Ft.ElIcon),{size:16,onClick:f.withModifiers(X=>N(q),["stop"])},{default:f.withCtx(()=>[f.createVNode(f.unref(RQ))]),_:2},1032,["onClick"])])]),_:1},8,["options"])]),f.createCommentVNode(" 新建日程 "),f.createVNode(f.unref(Ft.ElDialog),{modelValue:C.dialogVisible,"onUpdate:modelValue":Z[12]||(Z[12]=q=>C.dialogVisible=q),title:C.title,width:"30%",ref:"formRef",onClose:E},{footer:f.withCtx(()=>[f.createElementVNode("span",nge,[f.createVNode(f.unref(Ft.ElButton),{onClick:E},{default:f.withCtx(()=>[f.createTextVNode("取消")]),_:1}),f.createVNode(f.unref(Ft.ElButton),{type:"primary",onClick:T},{default:f.withCtx(()=>[f.createTextVNode("确定")]),_:1})])]),default:f.withCtx(()=>[f.createVNode(f.unref(Ft.ElForm),{model:C.form},{default:f.withCtx(()=>[f.createVNode(f.unref(Ft.ElFormItem),null,{default:f.withCtx(()=>[f.createVNode(f.unref(Ft.ElIcon),{class:"icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(DQ))]),_:1}),f.createVNode(f.unref(Ft.ElInput),{modelValue:C.form.title,"onUpdate:modelValue":Z[0]||(Z[0]=q=>C.form.title=q),placeholder:`添加${C.form.type==1?"会议":"活动"}标题`,style:{width:"70%"},clearable:""},null,8,["modelValue","placeholder"]),f.createVNode(f.unref(Ft.ElSelect),{modelValue:C.form.type,"onUpdate:modelValue":Z[1]||(Z[1]=q=>C.form.type=q),style:{width:"20%"}},{default:f.withCtx(()=>[f.createVNode(f.unref(Ft.ElOption),{label:"会议",value:1}),f.createVNode(f.unref(Ft.ElOption),{label:"活动",value:2})]),_:1},8,["modelValue"])]),_:1}),f.createVNode(f.unref(Ft.ElFormItem),null,{default:f.withCtx(()=>[f.createVNode(f.unref(Ft.ElIcon),{class:"icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(OQ))]),_:1}),C.timeType=="month"?(f.openBlock(),f.createElementBlock("div",Whe,[f.createVNode(f.unref(Ft.ElDatePicker),{modelValue:C.form.startDate,"onUpdate:modelValue":Z[2]||(Z[2]=q=>C.form.startDate=q),type:"date",placeholder:"开始日期",style:{width:"48%"}},null,8,["modelValue"]),jhe,f.createVNode(f.unref(Ft.ElDatePicker),{modelValue:C.form.endDate,"onUpdate:modelValue":Z[3]||(Z[3]=q=>C.form.endDate=q),type:"date",placeholder:"结束日期",style:{width:"48%"}},null,8,["modelValue"])])):f.createCommentVNode("v-if",!0),C.timeType=="week"?(f.openBlock(),f.createElementBlock("div",Ghe,[f.createVNode(f.unref(Ft.ElDatePicker),{modelValue:C.form.startDate,"onUpdate:modelValue":Z[4]||(Z[4]=q=>C.form.startDate=q),type:"datetime",placeholder:"开始日期",style:{width:"48%"},format:"YYYY-MM-DD HH:mm"},null,8,["modelValue"]),Zhe,f.createVNode(f.unref(Ft.ElDatePicker),{modelValue:C.form.endDate,"onUpdate:modelValue":Z[5]||(Z[5]=q=>C.form.endDate=q),type:"datetime",placeholder:"结束日期",style:{width:"48%"},format:"YYYY-MM-DD HH:mm"},null,8,["modelValue"])])):f.createCommentVNode("v-if",!0),C.timeType=="day"?(f.openBlock(),f.createElementBlock("div",qhe,[f.createVNode(f.unref(Ft.ElDatePicker),{modelValue:C.form.startDate,"onUpdate:modelValue":Z[6]||(Z[6]=q=>C.form.startDate=q),type:"date",placeholder:"开始日期",style:f.normalizeStyle({width:C.allDay?"45%":"90%"})},null,8,["modelValue","style"]),C.allDay?(f.openBlock(),f.createElementBlock("div",Xhe,[Qhe,f.createVNode(f.unref(Ft.ElDatePicker),{modelValue:C.form.endDate,"onUpdate:modelValue":Z[9]||(Z[9]=q=>C.form.endDate=q),type:"date",placeholder:"结束日期",style:{width:"90%"}},null,8,["modelValue"])])):(f.openBlock(),f.createElementBlock("div",Khe,[f.createVNode(f.unref(Ft.ElTimePicker),{modelValue:C.form.startTime,"onUpdate:modelValue":Z[7]||(Z[7]=q=>C.form.startTime=q),type:"datetime",placeholder:"开始日期",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"]),Yhe,f.createVNode(f.unref(Ft.ElTimePicker),{modelValue:C.form.endTime,"onUpdate:modelValue":Z[8]||(Z[8]=q=>C.form.endTime=q),type:"datetime",placeholder:"结束日期",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"])])),f.createVNode(ce,{modelValue:C.allDay,"onUpdate:modelValue":Z[10]||(Z[10]=q=>C.allDay=q),label:"全天",style:{"margin-left":"2%"}},null,8,["modelValue"])])):f.createCommentVNode("v-if",!0)]),_:1}),f.createVNode(f.unref(Ft.ElFormItem),null,{default:f.withCtx(()=>[f.createVNode(f.unref(Ft.ElIcon),{class:"icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(uie))]),_:1}),f.createElementVNode("div",{class:"personBlock",onClick:f.withModifiers(U,["stop"])},[C.form.personList.length?(f.openBlock(!0),f.createElementBlock(f.Fragment,{key:1},f.renderList(C.form.personList,(q,X)=>(f.openBlock(),f.createElementBlock("div",{key:X,class:"nameBlock"},[f.createElementVNode("div",ege,[tge,f.createElementVNode("div",null,f.toDisplayString(q.elementName),1)]),f.createVNode(f.unref(Ft.ElIcon),{class:"close",onClick:f.withModifiers(Ce=>W(X),["stop"])},{default:f.withCtx(()=>[f.createVNode(f.unref(WO))]),_:2},1032,["onClick"])]))),128)):(f.openBlock(),f.createElementBlock("span",Jhe,"添加参与人"))])]),_:1}),f.createVNode(f.unref(Ft.ElFormItem),null,{default:f.withCtx(()=>[f.createVNode(f.unref(Ft.ElIcon),{class:"icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(Yre))]),_:1}),f.createVNode(f.unref(Ft.ElInput),{modelValue:C.form.location,"onUpdate:modelValue":Z[11]||(Z[11]=q=>C.form.location=q),placeholder:"添加地点",style:{width:"90%"},clearable:""},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),f.createCommentVNode(" 选人组件 "),f.createVNode(f.unref(yA),{modelValue:C.handList,"onUpdate:modelValue":Z[13]||(Z[13]=q=>C.handList=q),show:C.isShow,"onUpdate:show":Z[14]||(Z[14]=q=>C.isShow=q),onOk:V,multiple:!0,"type-option":{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},"dep-list":C.depList,"user-list":C.userList,"prop-option":{name:"elementName",id:"elementId",type:"elementType",avatar:"avatar"},chooseType:["user"],onHandChild:z},null,8,["modelValue","show","dep-list","user-list"])])}}}),oSe="",rge=Zs(Vs(sge,[["__scopeId","data-v-1fa0e0e1"]])),ige=c=>(f.pushScopeId("data-v-a26cdcaf"),c=c(),f.popScopeId(),c),age={class:"ik-hor-step-content"},lge=[ige(()=>f.createElementVNode("i",{class:"ik-hor-step_line_inner"},null,-1))],cge=["onClick"],uge={class:"ik-hor-step_main"},dge=["id","onClick"],fge=["id","onClick"],mge=f.defineComponent({__name:"IKHorizontalStepBar",props:{spaceNum:{type:String,default:"58px"},active:{type:Number,default:null},activeColor:{type:String,default:""},needClick:{type:Boolean,default:!0},list:{type:Array,default:()=>[]},alignCenter:{type:Boolean,default:!1},propsField:{type:Object,default:()=>({title:"title",description:"description",value:"value"})}},emits:["click","update:active"],setup(c,{emit:r}){const a=c,l=r,i=f.ref(!1),m=f.ref(),v=f.ref(),C=f.ref(!1);f.watch(()=>a.active,K=>{let Z=document.getElementById("stepItemContent"),ce=document.getElementById(`stepItem${K}`),q=document.getElementById("stepItem0");const X=ce&&q?(ce==null?void 0:ce.offsetLeft)-(q==null?void 0:q.offsetLeft):0;Z&&ce&&(Z.scrollLeft=X>(Z==null?void 0:Z.clientWidth)?X-(Z==null?void 0:Z.offsetLeft):0)}),f.watch(()=>a.list,()=>{f.nextTick(()=>{let Z=document.getElementById("stepItemContent"),ce=(Z==null?void 0:Z.scrollWidth)>(Z==null?void 0:Z.clientWidth);i.value=ce,window.addEventListener("resize",K,!0)});const K=()=>{let Z=document.getElementById("stepItemContent"),ce=(Z==null?void 0:Z.scrollWidth)>(Z==null?void 0:Z.clientWidth);i.value=ce}},{deep:!0}),f.onMounted(()=>{f.nextTick(()=>{let Z=document.getElementById("stepItemContent"),ce=(Z==null?void 0:Z.scrollWidth)>(Z==null?void 0:Z.clientWidth);i.value=ce,window.addEventListener("resize",K,!0)});const K=()=>{let Z=document.getElementById("stepItemContent"),ce=(Z==null?void 0:Z.scrollWidth)>(Z==null?void 0:Z.clientWidth);i.value=ce}});const E=(K,Z)=>{if(!a.needClick)return;l("update:active",Z),l("click",K);let ce=document.getElementById("stepItemContent"),q=document.getElementById(`stepItem${Z}`),X=document.getElementById("stepItem0");const Ce=q&&X?(q==null?void 0:q.offsetLeft)-(X==null?void 0:X.offsetLeft):0;ce&&q&&(ce.scrollLeft=Ce>(ce==null?void 0:ce.clientWidth)?Ce-(ce==null?void 0:ce.offsetLeft):0)},T=()=>{let K=document.getElementById("stepItemContent");K&&(K.scrollLeft=K.scrollLeft-20)},N=()=>{let K=document.getElementById("stepItemContent");K&&(K.scrollLeft=K.scrollLeft+20)},V=()=>{clearInterval(v.value);let K=document.getElementById("stepItemContent");C.value=!1,v.value=setInterval(()=>{C.value=!0,K&&(K.scrollLeft=K.scrollLeft-20)},100)},U=()=>{clearInterval(v.value),C.value||T()},z=()=>{clearInterval(m.value);let K=document.getElementById("stepItemContent");C.value=!1,m.value=setInterval(()=>{C.value=!0,K&&(K.scrollLeft=K.scrollLeft+20)},100)},W=()=>{clearInterval(m.value),C.value||N()};return(K,Z)=>{const ce=f.resolveComponent("el-icon");return f.openBlock(),f.createElementBlock("div",age,[i.value?(f.openBlock(),f.createElementBlock("div",{key:0,class:"icon-left",onMousedown:V,onMouseup:U,onClick:T},[f.createVNode(ce,{class:"operation-icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(n$),{size:"26px"})]),_:1})],32)):f.createCommentVNode("v-if",!0),f.createElementVNode("div",{class:"step-item-content",id:"stepItemContent",style:f.normalizeStyle({justifyContent:i.value?"flex-start":"center"})},[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(c.list,(q,X)=>{var Ce;return f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(`${c.alignCenter?"ik-hor-step-item":""} step-item ${X<=c.active?"step-item-active":""}`),style:f.normalizeStyle({width:c.alignCenter?`calc(100%/${(Ce=c.list)==null?void 0:Ce.length})`:""}),key:X},[f.createElementVNode("div",{class:f.normalizeClass(`${c.alignCenter?"ik-hor-step_head":""} `)},[X!==0?(f.openBlock(),f.createElementBlock("div",{key:0,class:f.normalizeClass(`ik-hor-step_line step-border ${X<=c.active?"step-border-greater-than":""}`),style:f.normalizeStyle({width:`${c.spaceNum.indexOf("px")!=-1?c.spaceNum:`${c.spaceNum}px`}`})},lge,6)):f.createCommentVNode("v-if",!0),f.createElementVNode("div",{class:f.normalizeClass(`step-num ${X===c.active?"step-num-active":X<c.active?"step-num-greater-than":""}`),onClick:st=>E(q,X),style:f.normalizeStyle({backgroundColor:X===c.active&&c.activeColor?c.activeColor:"",cursor:q&&q.disabled?"not-allowed":c.needClick?"pointer":"context-menu"})},[f.renderSlot(K.$slots,"icon",{data:{item:q,index:X}},()=>[f.createTextVNode(f.toDisplayString(X+1),1)],!0)],14,cge)],2),f.createElementVNode("div",uge,[f.createElementVNode("div",{id:`stepItem${X}`,class:f.normalizeClass(`step-label ${c.active===X?"step-label-active":X<c.active?"step-label-greater-than":""} step-item-${X}`),style:f.normalizeStyle({color:X===c.active&&c.activeColor?c.activeColor:"",cursor:q&&q.disabled?"not-allowed":c.needClick?"pointer":"context-menu"}),onClick:st=>E(q,X)},f.toDisplayString(q[c.propsField.title]),15,dge),f.createElementVNode("div",{id:`stepItemDesc${X}`,class:f.normalizeClass(`step-description step-label ${c.active===X?"step-label-active":X<c.active?"step-label-greater-than":""} step-item-${X}`),style:f.normalizeStyle({color:X===c.active&&c.activeColor?c.activeColor:"",cursor:q&&q.disabled?"not-allowed":c.needClick?"pointer":"context-menu"}),onClick:st=>E(q,X)},f.toDisplayString(q[c.propsField.description]),15,fge)])],6)}),128))],4),i.value?(f.openBlock(),f.createElementBlock("div",{key:1,class:"icon-right",onMousedown:z,onMouseup:W,onClick:N},[f.createVNode(ce,{class:"operation-icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(o$))]),_:1})],32)):f.createCommentVNode("v-if",!0)])}}}),iSe="",hge=Zs(Vs(mge,[["__scopeId","data-v-a26cdcaf"]])),gge=["onClick"],pge={class:"fileName simple"},vge=["onClick"],yge={class:"text"},bge={class:"fileName"},Cge={class:"size"},_ge=f.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:()=>({})},jwtToken:{type:String,default:""},simple:{type:Boolean,default:!1}},emits:["handPreview"],setup(c,{emit:r}){const a=c,{cLoadUrl:l,cOnlyofficeConfig:i,cOnlyofficePreviewType:m}=$2(a),v=r,C=f.computed(()=>({name:"name",url:"url",suffix:"suffix",size:"size",...a.field})),E=f.ref({}),T=f.ref(!1),N=W=>{var K,Z;E.value={...W,name:W.name,url:Yv(l.value,W[C.value.url]||((Z=(K=W==null?void 0:W.response)==null?void 0:K.data)==null?void 0:Z.id)||(W==null?void 0:W.id))},a.isOnlyOfficePreview&&(T.value=!0),v("handPreview",E.value)},V=W=>{To.ikFile.downloadFile(Yv(l.value,W[C.value.url]||W.attachmentId||W.id),W[C.value.name]||W.attachmentName)},U=f.computed(()=>To.paramType.isNumber(a.width)?`${a.width}px`:a.width),z=f.computed(()=>a.list.map(W=>{var Z;const K=W[C.value.name]||W.attachmentName;return{...W,name:K,size:W[C.value.size]||(W==null?void 0:W.fileSize)||(W==null?void 0:W.attachmentSize),suffix:W[C.value.suffix]||(W==null?void 0:W.attachmentSuffix)||((Z=K.split("."))==null?void 0:Z.at(-1))}}));return(W,K)=>{var ce,q,X;const Z=f.resolveComponent("tmplate");return f.openBlock(),f.createElementBlock(f.Fragment,null,[(ce=c.list)!=null&&ce.length?(f.openBlock(),f.createElementBlock(f.Fragment,{key:0},[c.simple?(f.openBlock(!0),f.createElementBlock(f.Fragment,{key:0},f.renderList(z.value,(Ce,st)=>(f.openBlock(),f.createElementBlock("div",{class:"iking-privew-annex simple",onClick:Ne=>N(Ce),style:f.normalizeStyle({width:U.value})},[f.createElementVNode("div",pge,f.toDisplayString(Ce.name),1),f.createElementVNode("div",{class:f.normalizeClass(["flex flex-center",{"hover-show":c.iconHoverShow}])},[f.createVNode(f.unref(cr),{name:"iksvg_daochu",onClick:f.withModifiers(Ne=>V(Ce),["stop"]),size:20,active:""},null,8,["onClick"]),f.unref(m).includes(Ce.suffix)?(f.openBlock(),f.createBlock(f.unref(cr),{key:0,name:"iksvg_yulan",size:20,active:""})):f.createCommentVNode("v-if",!0),f.renderSlot(W.$slots,"operation",{data:{...Ce,findex:st}})],2)],12,gge))),256)):(f.openBlock(),f.createBlock(Z,{key:1},{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(z.value,(Ce,st)=>{var Ne;return f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["iking-privew-annex",{"is-bg":c.showBg}]),key:st,style:f.normalizeStyle({marginBottom:st==((Ne=c.list)==null?void 0:Ne.length)-1?"0":"10px",width:U.value})},[f.createElementVNode("div",{class:"file-card",onClick:ee=>N(Ce)},[f.createVNode(f.unref(UO),{file:Ce,style:f.normalizeStyle({height:`${c.iconSize}px`}),class:"ikui-w-auto",fields:C.value},null,8,["file","style","fields"]),f.createElementVNode("div",yge,[f.createElementVNode("div",bge,f.toDisplayString(Ce.name),1),f.createElementVNode("div",Cge,f.toDisplayString(f.unref(Bie)(Ce.size)),1)]),f.createElementVNode("div",{class:f.normalizeClass(["flex flex-center",{"hover-show":c.iconHoverShow}])},[f.createVNode(f.unref(cr),{name:"iksvg_daochu",onClick:f.withModifiers(ee=>V(Ce),["stop"]),bg:c.showBg,size:c.showBg?"default":20,title:"下载"},null,8,["onClick","bg","size"]),f.unref(m).includes(Ce.suffix)?(f.openBlock(),f.createBlock(f.unref(cr),{key:0,name:"iksvg_yulan",bg:c.showBg,size:c.showBg?"default":20,title:"预览"},null,8,["bg","size"])):f.createCommentVNode("v-if",!0),f.renderSlot(W.$slots,"operation",{data:{...Ce,findex:st}})],2)],8,vge)],6)}),128))]),_:3}))],64)):f.createCommentVNode("v-if",!0),f.createVNode(f.unref(vV),{show:T.value,"onUpdate:show":K[0]||(K[0]=Ce=>T.value=Ce),loadUrl:f.unref(l),file:E.value,onlyofficeServer:((q=f.unref(i))==null?void 0:q.serverUrl)||c.onlyofficeServer,onlyOfficeConfig:f.unref(i),onlyOfficeAccept:((X=f.unref(i))==null?void 0:X.accept)||c.onlyOfficeAccept},null,8,["show","loadUrl","file","onlyofficeServer","onlyOfficeConfig","onlyOfficeAccept"])],64)}}}),lSe="",TR=Zs(_ge),wge=f.defineComponent({__name:"IkPreviewFileDialog",props:f.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:["update:show"],setup(c){const r=c,a=f.useModel(c,"show"),l=f.computed(()=>({name:"name",url:"url",suffix:"suffix",size:"fileSize",...r.field})),i=f.ref(null),m=f.ref(null),v=f.reactive({image:!1,office:!1,video:!1}),C=T=>{var N,V,U,z,W,K,Z;try{const ce=((N=T==null?void 0:T.response)==null?void 0:N.data)||T,q=ce[l.value.url]||(ce==null?void 0:ce.id)||ce.attachmentId,X=(V=ce[l.value.suffix]||ce.attachmentSuffix)==null?void 0:V.toLowerCase(),Ce=ce[l.value.name]||(ce==null?void 0:ce.attachmentName)||(ce==null?void 0:ce.originName);if(m.value={...T,name:T[l.value.name],url:Yv(r.loadUrl,q)},T&&Pc(T,l.value)==="image"){v.image=!0;return}else if(T&&Pc(T,l.value)==="video"){v.video=!0;return}else if((((U=r.onlyOfficeConfig)==null?void 0:U.accept)||r.onlyOfficeAccept).includes(X)){v.office=!0,i.value={...r.onlyOfficeConfig,editorConfig:{...((z=r.onlyOfficeConfig)==null?void 0:z.editorConfig)||{},customization:{...((K=(W=r.onlyOfficeConfig)==null?void 0:W.editorConfig)==null?void 0:K.customization)||{},review:{reviewDisplay:"final"}}},document:{key:To.buildUUID(),title:Ce,url:Yv(r.loadUrl,q),fileType:X,...((Z=r.onlyOfficeConfig)==null?void 0:Z.document)||{}},documentType:ire(X)};return}}catch(ce){console.info("预览错误: ",ce)}};f.watch([a,r.file],([T,N])=>{T&&f.nextTick(()=>{C(r.file)})});const E=()=>{a.value=!1,v.office=!1,v.image=!1,v.video=!1,m.value=null};return(T,N)=>{var V,U,z;return a.value?(f.openBlock(),f.createElementBlock(f.Fragment,{key:0},[(V=m.value)!=null&&V.url&&v.image?(f.openBlock(),f.createBlock(f.unref(RV),{key:0,onClose:N[0]||(N[0]=W=>E()),ref:"previewImgRef","url-list":[(U=m.value)==null?void 0:U.url],teleported:"","z-index":9999},null,8,["url-list"])):f.createCommentVNode("v-if",!0),f.createCommentVNode(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),f.createCommentVNode(" 文档类 "),f.createVNode(f.unref(Poe),{modelValue:v.video,"onUpdate:modelValue":N[1]||(N[1]=W=>v.video=W),url:(z=m.value)==null?void 0:z.url},null,8,["modelValue","url"]),f.createVNode(f.unref(nne),{modelValue:v.office,"onUpdate:modelValue":N[2]||(N[2]=W=>v.office=W),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:E,"modal-class":"ik-only-preview-dialog"},{default:f.withCtx(()=>{var W;return[f.createVNode(f.unref(wne),{"config-options":i.value,"document-server-url":((W=c.onlyOfficeConfig)==null?void 0:W.serverUrl)||c.onlyofficeServer},null,8,["config-options","document-server-url"])]}),_:1},8,["modelValue"])],64)):f.createCommentVNode("v-if",!0)}}}),cSe="",vV=Zs(wge),Sge="data:image/webp;base64,UklGRnoEAABXRUJQVlA4WAoAAAAwAAAALwAALwAASUNDUMgBAAAAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADZBTFBImAAAAA2AYm3bsuhFm7u72wZoTrbGIcoKaKyAROJQbQmW2IVb/WkW3ZmPd3ymRMQEwJfV56QRo5pHErkUkFdQWRJpeGW6SoL9EvaWxAdbAeiVd5gyAK5NAdOtv4uNfsT21TUukBVjgFubBOQS+Ip7G/k2LpatkF2hAuBI5siAdsL2j3DHQrJ7NKDbUIyOj3bhqADBsgNPUqUlgncLVlA4IOwBAABwDQCdASowADAAPm0yk0ckIyGhJzgMkIANiWwArDM9tzexcZ3vwYZdKHIB749Ap5gP1E/YD34/QB6AH+A9F//S+w1z2/sz/5DzdDABM7ldHg1iMkeWX8LH9T1VzicAWGJgnNq4e/5P/NObJOBUhFC8dPnhmAD+9wGzP9Zfeg5ENi90xn4awZvrlCLnfwvZX//s4u6n2Pa2TF/r8wh0GtdNNJIBMRbrMaCBwyl6z86DqQgvpixbIdOVbwZFf/7KjC+uzJ5nNRyJ1Rpab8pIf2m1+SBOfX9w7EFXUErK8NSCsePMPazMXKH5y9Wl+nfiSrmsv079Fk6NkDF3Dxr+C+Rp4UdG/f3kP8PZfd/FyRupWURiDOrAjLamuF4OPo2BylwD7ulmdgDn4BEMXuvpYCACy4yCVjgsOzqToG2rSfJOtxy6Hh1/B2gu7X1MdJpHsdHdUrlRzTLKyV3wZG5a64SKKB2/QGk8IRZT0veUdDeo579/WyTU3ujQZeKNBS9ANlv1muyN9Kf5bm1f3UoPm/KnDkqf/1f2jf6aQJ7IYNod25fVfhRX+l1u9qBzs/bVezF7ZgC2LOuuJl1Tvwgeujpg9Uc/m0A9X878DzEkgxP/sPGviOfCElM1J/Kr3TTCwCkfW+K3oZuMB7HAAAA=",Ege=c=>(f.pushScopeId("data-v-192d3070"),c=c(),f.popScopeId(),c),kge={class:"ik-flie-list"},xge={class:"name"},Age={key:1},Tge=["src"],Dge={class:"file-icon"},Oge={class:"file-name-loading"},Rge={class:"file-name"},Nge={key:0},Ige={key:0,class:"file-size"},Bge={class:"name"},Mge={class:"file-name-loading"},Pge={class:"file-name"},Lge={class:"file-size"},Fge={class:"operate-btn"},$ge={class:"card"},Vge={class:"title"},Hge=Ege(()=>f.createElementVNode("img",{src:Sge,class:"w-[48px] h-[48px]"},null,-1)),zge={class:"ik-flie-list"},Uge={class:"name"},Wge={key:1},jge=["src"],Gge={class:"file-icon"},Zge={class:"file-name-loading"},qge={class:"file-name"},Kge={key:0},Yge={key:0,class:"file-size"},Xge={key:0},Qge=f.defineComponent({__name:"index",props:f.mergeModels({showIcon:{type:Boolean,default:!0},title:{type:String,default:"上传文件"},action:{type:String,default:""},type:{type:String,default:"button"},headers:{type:Object,default:()=>({})},loadUrl:{type:String,default:""},limit:{type:Number,default:1},size:{type:Number,default:50},accept:{type:String,default:"*"},multiple:{type:Boolean,default:!0},tip:{type:Boolean,default:!1},tipText:{type:String,default:""},limitText:{type:String,default:""},defaultFileds:{type:Object,default:()=>({name:"name",url:"url",suffix:"suffix",size:"fileSize"})},preview:{type:Boolean,default:!1},customIconData:{type:Object,default:()=>({})},customIconFields:{type:Object,default:()=>({type:"type",icon:"icon"})},disabled:{type:Boolean,default:!1},plain:{type:Boolean,default:!1},imageMode:{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:()=>({})},jwtToken:{type:String,default:""},trueDelete:{type:Boolean,default:!1}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:f.mergeModels(["delete","exceed","handPreview","success","error","outSize"],["update:modelValue"]),setup(c,{emit:r}){const a=c,l=r,i=f.useModel(c,"modelValue"),v={...{name:"name",url:"url",suffix:"suffix",size:"size"},...a.defaultFileds},{cLoadUrl:C,cUploadUrl:E,cOnlyofficeConfig:T,cOnlyofficePreviewType:N}=$2(a),V=f.computed(()=>a.size),U=f.ref(null),z=f.ref([]),W=f.ref({}),K=f.ref(!1),Z=F=>{const At=F.size/1024/1024;return At<V.value?!0:(l("outSize"),Ft.ElMessage({message:`上传文件大小(${At.toFixed(4)}MB)超出允许最大值(${a.size}MB),请重新选择`,type:"warning",showClose:!0,duration:5e3}),!1)},ce=f.computed(()=>{const{accept:F}=a;return F==="*"?"*":`${F.toLowerCase()},${F.toUpperCase()}`}),q=(F,At)=>{var Lt,We;if(F.size/1024/1024<V.value||f.nextTick(()=>{i.value.pop()}),a.accept!=="*"){const ut=(Lt=ce.value)==null?void 0:Lt.split(",");!ut.includes((We=F==null?void 0:F.raw)==null?void 0:We.type)&&!ut.includes(`.${F.name.split(".").pop()}`)&&(Ft.ElMessage({message:`不允许的上传文件格式(${F.name}),请重新选择`,type:"warning",showClose:!0,duration:5e3}),f.nextTick(()=>{i.value.pop()}))}},X=()=>!1,Ce=(F,At)=>{var Je,Et;F.status="ready",At!==void 0&&z.value.splice(At,1),(Je=U.value)==null||Je.handleStart(F.raw),(Et=U.value)==null||Et.submit()},st=(F,At)=>{var Je;F.splice(a.limit===1?1:a.limit),F.forEach(Et=>{var Lt;(Lt=U.value)==null||Lt.handleStart(Et)}),(Je=U.value)==null||Je.submit(),Ft.ElMessage({message:(a==null?void 0:a.limitText)||`最大可上传${a.limit}个文件,已忽略超出文件`,type:"warning",showClose:!0,duration:5e3}),l("exceed",F)},Ne=(F,At,Je)=>{F.success?l("success",F,At,Je):(l("error",F,At,Je),be(At),z.value.push(At))},ee=(F,At,Je)=>{z.value.push(At),l("error",F,At,Je)},xe=F=>{var At,Je;W.value={...F,name:F[v.name],url:Yv(C.value,F[v.url]||((Je=(At=F==null?void 0:F.response)==null?void 0:At.data)==null?void 0:Je.id))},a.isOnlyOfficePreview&&(K.value=!0),l("handPreview",W.value)},et=F=>{To.ikFile.downloadByOnlineUrl(F[v.url],F[v.name])},tt=(F,At=!1)=>{var Je;(Je=U.value)==null||Je.abort(F)},je={Authorization:"Bearer iking","X-Tenant":"sys","Content-Type":"application/x-www-form-urlencoded"},be=F=>{var At,Je,Et,Lt,We;try{F.status!=="success"&&tt(F),(At=U.value)==null||At.handleRemove(F),i.value=i.value.filter(ut=>ut.uid!==F.uid),l("delete",F),a.trueDelete&&e$.post(E.value.replace("/oss/upload","/oss/delete"),{fileUrl:((Et=(Je=F==null?void 0:F.response)==null?void 0:Je.data)==null?void 0:Et.id)||((Lt=F==null?void 0:F.data)==null?void 0:Lt.id)||(F==null?void 0:F.id)||F[v.url]},{headers:je})}catch(ut){(We=U.value)==null||We.handleRemove(F),i.value=i.value.filter(An=>An.uid!==F.uid),l("delete",F),console.error(ut)}},xn=(F,At)=>{z.value.splice(At,1)},dn=f.computed(()=>i.value.length>=a.limit||a.disabled),zt=F=>{var Je,Et,Lt;const At=((Et=(Je=F==null?void 0:F.response)==null?void 0:Je.data)==null?void 0:Et[v.suffix])||((Lt=F==null?void 0:F.data)==null?void 0:Lt[v.suffix])||(F==null?void 0:F[v.suffix]);return N.includes(At)};return(F,At)=>{var Je;return f.openBlock(),f.createElementBlock(f.Fragment,null,[c.preview?f.createCommentVNode("v-if",!0):(f.openBlock(),f.createElementBlock(f.Fragment,{key:0},[c.type==="button"?(f.openBlock(),f.createBlock(f.unref(Ft.ElUpload),f.mergeProps({key:0,class:"ik-file-upload"},F.$attrs,{accept:c.accept,action:f.unref(E),"file-list":i.value,"onUpdate:fileList":At[0]||(At[0]=Et=>i.value=Et),ref_key:"refUpload",ref:U,"auto-upload":!0,"before-upload":Z,"before-remove":X,"on-exceed":st,"on-change":q,multiple:c.multiple,headers:c.headers,limit:c.limit,"on-success":Ne,"on-error":ee}),{trigger:f.withCtx(()=>[F.$slots.trigger?f.renderSlot(F.$slots,"trigger",{key:0},void 0,!0):(f.openBlock(),f.createBlock(f.unref(Ft.ElButton),{key:1,disabled:dn.value},f.createSlots({default:f.withCtx(()=>[f.createTextVNode(" "+f.toDisplayString(c.title),1)]),_:2},[c.showIcon?{name:"icon",fn:f.withCtx(()=>[f.createVNode(f.unref(cr),{name:"iksvg_daoru",disabled:dn.value},null,8,["disabled"])]),key:"0"}:void 0]),1032,["disabled"]))]),file:f.withCtx(({file:Et})=>[f.createElementVNode("div",kge,[f.createElementVNode("div",xge,[!F.$slots.fileIcon&&(!c.customIconData[f.unref(Pc)(Et,v)]||!c.customIconData[f.unref(Pc)(Et,v)][c.customIconFields.icon])?(f.openBlock(),f.createBlock(f.unref(UO),{key:0,type:f.unref(Pc)(Et,v)},null,8,["type"])):!F.$slots.fileIcon&&c.customIconData[f.unref(Pc)(Et,v)]&&c.customIconData[f.unref(Pc)(Et,v)][c.customIconFields.icon]?(f.openBlock(),f.createElementBlock("div",Age,[c.customIconData[f.unref(Pc)(Et,v)][c.customIconFields.type]==="img"?(f.openBlock(),f.createElementBlock("img",{key:0,src:c.customIconData[f.unref(Pc)(Et,v)][c.customIconFields.icon],alt:"",class:"file-img-icon"},null,8,Tge)):(f.openBlock(),f.createElementBlock("span",{key:1,class:f.normalizeClass([c.customIconData[f.unref(Pc)(Et,v)][c.customIconFields.icon],"file-icon-size"])},null,2))])):f.createCommentVNode("v-if",!0),f.createElementVNode("div",Dge,[f.renderSlot(F.$slots,"fileIcon",{file:Et},void 0,!0)]),f.createElementVNode("div",Oge,[f.createElementVNode("p",Rge,[f.createTextVNode(f.toDisplayString(Et[v.name]||Et.name)+" ",1),Et.percentage&&Et.status==="uploading"?(f.openBlock(),f.createElementBlock("span",Nge,"("+f.toDisplayString(Et.percentage)+"%)",1)):f.createCommentVNode("v-if",!0)]),Et.status==="success"?(f.openBlock(),f.createElementBlock("p",Ige,f.toDisplayString(f.unref(s$)((Et[v.size]||Et.size)/1024/1024))+"MB ",1)):f.createCommentVNode("v-if",!0),Et.percentage&&Et.status==="uploading"?(f.openBlock(),f.createBlock(f.unref(Ft.ElProgress),{key:1,"text-inside":"",percentage:Et.percentage,color:"var(--el-color-primary)","show-text":!1},null,8,["percentage"])):f.createCommentVNode("v-if",!0)])]),f.createElementVNode("div",null,[Et.status==="success"?(f.openBlock(),f.createElementBlock(f.Fragment,{key:0},[zt(Et)?(f.openBlock(),f.createBlock(f.unref(cr),{key:0,onClick:Lt=>xe(Et),name:"iksvg_yulan",title:"预览",bg:"",size:"default"},null,8,["onClick"])):f.createCommentVNode("v-if",!0),f.createVNode(f.unref(cr),{onClick:f.withModifiers(Lt=>be(Et),["stop"]),error:"",name:"iksvg_shanchu",title:"删除",bg:"",size:"default"},null,8,["onClick"])],64)):(f.openBlock(),f.createBlock(f.unref(cr),{key:1,onClick:f.withModifiers(Lt=>be(Et),["stop"]),error:"",name:"iksvg_guanbi",size:"default",bg:"",title:"取消上传"},null,8,["onClick"]))])])]),default:f.withCtx(()=>{var Et;return[!c.preview&&c.tip?(f.openBlock(),f.createBlock(f.unref(Ft.ElTooltip),{key:0,effect:"dark",content:a.tipText||"","popper-class":"_ik_web_ui_file-help-tooltip"},{default:f.withCtx(()=>[f.createVNode(f.unref(Ft.ElIcon),{size:23,class:"_ik_web_ui_file_help_icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(MQ))]),_:1})]),_:1},8,["content"])):f.createCommentVNode("v-if",!0),(Et=z.value)!=null&&Et.length?(f.openBlock(!0),f.createElementBlock(f.Fragment,{key:1},f.renderList(z.value,(Lt,We)=>(f.openBlock(),f.createElementBlock("div",{class:"ik-error-flie-list",key:Lt.uid},[f.createElementVNode("div",Bge,[f.createVNode(f.unref(Ft.ElIcon),{size:32,class:"info",style:{"vertical-align":"middle"}},{default:f.withCtx(()=>[f.createVNode(f.unref(hie))]),_:1}),f.createElementVNode("div",Mge,[f.createElementVNode("p",Pge,f.toDisplayString(Lt[v.name]||Lt.name),1),f.createElementVNode("p",Lge,f.toDisplayString(f.unref(s$)(Lt.size/1024/1024))+"MB ",1)])]),f.createElementVNode("div",Fge,[f.createVNode(f.unref(cr),{onClick:f.withModifiers(ut=>Ce(Lt,We),["stop"]),name:"iksvg_zhongzhi",title:"重新上传",bg:"",size:"default"},null,8,["onClick"]),f.createVNode(f.unref(cr),{onClick:f.withModifiers(ut=>xn(Lt,We),["stop"]),error:"",name:"iksvg_shanchu",title:"删除",bg:"",size:"default"},null,8,["onClick"])])]))),128)):f.createCommentVNode("v-if",!0)]}),_:3},16,["accept","action","file-list","multiple","headers","limit"])):(f.openBlock(),f.createBlock(f.unref(Ft.ElUpload),f.mergeProps({key:1,"file-list":i.value,"onUpdate:fileList":At[1]||(At[1]=Et=>i.value=Et),class:["ik-file-pload-card",{plain:c.plain}],"auto-upload":!0},F.$attrs,{accept:c.accept,action:f.unref(E),disabled:dn.value,ref_key:"refUpload",ref:U,"before-upload":Z,"before-remove":X,"on-exceed":st,multiple:c.multiple,headers:c.headers,limit:c.limit,"on-success":Ne,"on-error":ee,"on-change":q}),{file:f.withCtx(({file:Et})=>[f.createElementVNode("div",zge,[f.createElementVNode("div",Uge,[!F.$slots.fileIcon&&(!c.customIconData[f.unref(Pc)(Et,v)]||!c.customIconData[f.unref(Pc)(Et,v)][c.customIconFields.icon])?(f.openBlock(),f.createBlock(f.unref(UO),{key:0,type:f.unref(Pc)(Et,v)},null,8,["type"])):!F.$slots.fileIcon&&c.customIconData[f.unref(Pc)(Et,v)]&&c.customIconData[f.unref(Pc)(Et,v)][c.customIconFields.icon]?(f.openBlock(),f.createElementBlock("div",Wge,[c.customIconData[f.unref(Pc)(Et,v)][c.customIconFields.type]==="img"?(f.openBlock(),f.createElementBlock("img",{key:0,src:c.customIconData[f.unref(Pc)(Et,v)][c.customIconFields.icon],alt:"",class:"file-img-icon"},null,8,jge)):(f.openBlock(),f.createElementBlock("span",{key:1,class:f.normalizeClass([c.customIconData[f.unref(Pc)(Et,v)][c.customIconFields.icon],"file-icon-size"])},null,2))])):f.createCommentVNode("v-if",!0),f.createElementVNode("div",Gge,[f.renderSlot(F.$slots,"fileIcon",{file:Et},void 0,!0)]),f.createElementVNode("div",Zge,[f.createElementVNode("p",qge,[f.createTextVNode(f.toDisplayString(Et[v.name]||Et.name)+" ",1),Et.percentage&&Et.status==="uploading"?(f.openBlock(),f.createElementBlock("span",Kge,"("+f.toDisplayString(Et.percentage)+"%)",1)):f.createCommentVNode("v-if",!0)]),Et.status==="success"?(f.openBlock(),f.createElementBlock("p",Yge,f.toDisplayString(f.unref(s$)((Et[v.size]||Et.size)/1024/1024))+"MB ",1)):f.createCommentVNode("v-if",!0),Et.percentage&&Et.status==="uploading"?(f.openBlock(),f.createBlock(f.unref(Ft.ElProgress),{key:1,"text-inside":"",percentage:Et.percentage,color:"var(--el-color-primary)","show-text":!1},null,8,["percentage"])):f.createCommentVNode("v-if",!0)])]),c.preview?(f.openBlock(),f.createElementBlock(f.Fragment,{key:1},[(c.preview||Et.percentage===100)&&zt(Et)?(f.openBlock(),f.createBlock(f.unref(Ft.ElIcon),{key:0,title:"预览",class:"primary"},{default:f.withCtx(()=>[f.createVNode(f.unref(fie),{onClick:Lt=>xe(Et)},null,8,["onClick"])]),_:2},1024)):f.createCommentVNode("v-if",!0),f.createVNode(f.unref(Ft.ElIcon),{title:"下载",class:"primary"},{default:f.withCtx(()=>[f.createVNode(f.unref(IQ),{onClick:Lt=>et(Et)},null,8,["onClick"])]),_:2},1024)],64)):(f.openBlock(),f.createElementBlock("div",Xge,[Et.status==="success"?(f.openBlock(),f.createElementBlock(f.Fragment,{key:0},[zt(Et)?(f.openBlock(),f.createBlock(f.unref(cr),{key:0,onClick:Lt=>xe(Et),name:"iksvg_yulan",title:"预览",bg:"",size:"default"},null,8,["onClick"])):f.createCommentVNode("v-if",!0),f.createVNode(f.unref(cr),{onClick:Lt=>be(Et),error:"",name:"iksvg_shanchu",title:"删除",bg:"",size:"default"},null,8,["onClick"])],64)):(f.openBlock(),f.createBlock(f.unref(cr),{key:1,onClick:Lt=>be(Et),error:"",name:"iksvg_guanbi",size:"default",bg:"",title:"取消上传"},null,8,["onClick"]))]))])]),default:f.withCtx(()=>[f.createElementVNode("div",$ge,[f.createElementVNode("div",Vge,[c.imageMode?f.renderSlot(F.$slots,"image",{key:0},()=>[Hge],!0):c.showIcon?(f.openBlock(),f.createBlock(f.unref(cr),{key:1,name:"iksvg_img_shangchuanhetongfujianbeifen",type:"primary",bg:"",size:40})):f.createCommentVNode("v-if",!0),f.createElementVNode("span",null,[f.createTextVNode(f.toDisplayString(c.title)+" ",1),!c.preview&&c.tip?(f.openBlock(),f.createBlock(f.unref(Ft.ElTooltip),{key:0,effect:"dark",content:a.tipText||"","popper-class":"_ik_web_ui_file-help-tooltip"},{default:f.withCtx(()=>[f.createVNode(f.unref(Ft.ElIcon),{size:23,class:"_ik_web_ui_file_help_icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(MQ))]),_:1})]),_:1},8,["content"])):f.createCommentVNode("v-if",!0)])]),f.createVNode(f.unref(cr),{name:"iksvg_daoru",bg:"",size:24,width:40,padding:"0"})])]),_:3},16,["file-list","class","accept","action","disabled","multiple","headers","limit"]))],64)),f.createVNode(f.unref(vV),{show:K.value,"onUpdate:show":At[2]||(At[2]=Et=>K.value=Et),loadUrl:f.unref(C),file:W.value,onlyofficeServer:((Je=f.unref(T))==null?void 0:Je.serverUrl)||c.onlyofficeServer,onlyOfficeConfig:f.unref(T)},null,8,["show","loadUrl","file","onlyofficeServer","onlyOfficeConfig"])],64)}}}),uSe="",dSe="",Jge=Zs(Vs(Qge,[["__scopeId","data-v-192d3070"]])),epe={},tpe={t:"1686214149488",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8490",width:"200",height:"200"},npe=[f.createElementVNode("path",{d:"M369.569592 512.011256c0-14.328333-11.010775-25.945929-24.591071-25.945929L86.980515 486.065328c-13.580297 0-24.591071 11.618619-24.591071 25.945929 0 14.33038 11.010775 25.947975 24.591071 25.947975l257.998005 0C358.55984 537.959232 369.569592 526.341636 369.569592 512.011256z","p-id":"8491"},null,-1),f.createElementVNode("path",{d:"M937.019485 486.064304 679.020456 486.064304c-13.580297 0-24.591071 11.618619-24.591071 25.945929 0 14.33038 11.010775 25.947975 24.591071 25.947975l257.999029 0c13.580297 0 24.590048-11.618619 24.590048-25.947975C961.609533 497.682923 950.598758 486.064304 937.019485 486.064304z","p-id":"8492"},null,-1),f.createElementVNode("path",{d:"M512.011768 62.389956c-13.580297 0-24.590048 11.618619-24.590048 25.945929l0 257.170151c0 14.329357 11.010775 25.946952 24.590048 25.946952s24.591071-11.618619 24.591071-25.946952L536.602839 88.335884C536.602839 74.008574 525.591041 62.389956 512.011768 62.389956z","p-id":"8493"},null,-1),f.createElementVNode("path",{d:"M512.011768 652.544967c-13.580297 0-24.590048 11.618619-24.590048 25.946952l0 257.169127c0 14.33038 11.010775 25.947975 24.590048 25.947975s24.591071-11.618619 24.591071-25.947975L536.602839 678.491918C536.602839 664.162562 525.591041 652.544967 512.011768 652.544967z","p-id":"8494"},null,-1),f.createElementVNode("path",{d:"M377.001865 413.125085c4.744048 4.737908 10.818393 7.082302 16.882506 7.082302 6.519484 0 13.039991-2.724041 17.879206-8.134261 9.317203-10.414187 8.885368-26.834158-0.9967-36.678364L228.341057 193.559391c-9.832949-9.830903-25.406646-9.388834-34.760688 1.050935-9.317203 10.414187-8.885368 26.834158 0.9967 36.678364L377.001865 413.125085z","p-id":"8495"},null,-1),f.createElementVNode("path",{d:"M646.997112 610.873892c-9.846252-9.831926-25.419949-9.388834-34.761712 1.051959-9.317203 10.414187-8.885368 26.834158 0.997724 36.678364l182.41354 181.834348c4.743024 4.738931 10.818393 7.083326 16.881482 7.083326 6.520507 0 13.039991-2.723018 17.879206-8.134261 9.317203-10.41521 8.886391-26.834158-0.9967-36.678364L646.997112 610.873892z","p-id":"8496"},null,-1),f.createElementVNode("path",{d:"M630.114606 420.207387c6.064113 0 12.139481-2.344395 16.882506-7.082302l182.425819-181.836395c9.882068-9.844206 10.313903-26.264177 0.9967-36.678364-9.341762-10.43977-24.915459-10.882861-34.760688-1.050935L613.233124 375.394762c-9.882068 9.844206-10.314926 26.264177-0.997724 36.678364C617.074615 417.483346 623.595123 420.207387 630.114606 420.207387z","p-id":"8497"},null,-1),f.createElementVNode("path",{d:"M377.025401 610.873892 194.600605 792.710286c-9.881045 9.844206-10.313903 26.263154-0.9967 36.678364 4.839215 5.411243 11.358699 8.134261 17.879206 8.134261 6.064113 0 12.138458-2.344395 16.881482-7.083326l182.425819-181.834348c9.881045-9.844206 10.313903-26.264177 0.9967-36.678364C402.469909 601.485057 386.872676 601.041966 377.025401 610.873892z","p-id":"8498"},null,-1)];function ope(c,r){return f.openBlock(),f.createElementBlock("svg",tpe,npe)}const spe=Vs(epe,[["render",ope]]),Zte=c=>(f.pushScopeId("data-v-95e3d8e0"),c=c(),f.popScopeId(),c),rpe={key:1,class:"upload-btn"},ipe={class:"tip"},ape={class:"loading-statu"},lpe={class:"operate-btn"},cpe={key:0},upe={class:"el-upload-list el-upload-list--picture-card"},dpe=["onClick"],fpe=Zte(()=>f.createElementVNode("span",{class:"error"},"上传错误",-1)),mpe=Zte(()=>f.createElementVNode("p",null,"点击重新上传",-1)),hpe=["src"],gpe={class:"demo-image__preview"},ppe=f.defineComponent({__name:"index",props:f.mergeModels({title:{type:String,default:"上传图片"},loadUrl:{type:String,default:""},action:{type:String,default:""},headers:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},limit:{type:Number,default:50},size:{type:Number,default:50},accept:{type:String,default:"image/*"},fit:{type:String,default:"contain"},preview:{type:Boolean,default:!1},multiple:{type:Boolean,default:!0},tip:{type:Boolean,default:!1},tipText:{type:String,default:""},disabled:{type:Boolean,default:!1},width:{type:Number,default:106},height:{type:Number,default:106}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:f.mergeModels(["delete","success"],["update:modelValue"]),setup(c,{emit:r}){f.useCssVars(At=>({"67f9e9a6":E.value,"7d745147":T.value,"5e8a4930":F.value,"1aabb338":zt.value}));const a=c,l=f.useModel(c,"modelValue"),i=At=>Array.isArray(At)?At.map(Je=>{var We,ut;const Et=((We=Je.url)==null?void 0:We.startsWith("http"))||((ut=Je.url)==null?void 0:ut.startsWith("blob")),Lt=(Je==null?void 0:Je.url)||Je;return{...Je.url?Je:{url:Lt},__url:Et?Lt:`${v.value}${Lt}`}}):At?[{url:At,__url:At!=null&&At.startsWith("http")||At!=null&&At.startsWith("blob")?At:`${v.value}${At}`}]:[];f.watch(()=>l.value,At=>{!At||!At.length?U.value=[]:U.value=To._.cloneDeep(i(At))},{deep:!0});const m=r,{cLoadUrl:v,cUploadUrl:C}=$2(a),E=f.computed(()=>`${a.width}px`),T=f.computed(()=>`${a.height}px`),N=f.computed(()=>a.size),V=f.ref(null),U=f.ref(i(l.value)),z=f.ref([]),W=f.ref(!1),K=f.ref(0),Z=f.computed(()=>a.tipText||`最多可上传${a.limit}张图片, 每张图片不能超过${a.size}MB`),ce=(At,Je)=>{},q=At=>{if(!At.type.includes("image")){Ft.ElMessage.warning("只允许上传图片!");try{U.value.pop()}catch{}return!1}if(!(At.size/1024/1024<N.value)){Ft.ElMessage.warning(`图片大小超出系统限制的${a.size}MB!`);try{U.value.pop()}catch{}return!1}return!0},X=()=>!1,Ce=(At,Je)=>{var Et,Lt;At.status="ready",Je!==void 0&&z.value.splice(Je,1),(Et=V.value)==null||Et.handleStart(At.raw),(Lt=V.value)==null||Lt.submit()},st=(At,Je)=>{var ut,An;const Et=l.value.length,Lt=a.limit-Et;let We=0;for(;We<Lt&&We<(At==null?void 0:At.length);)(ut=V.value)==null||ut.handleStart(At==null?void 0:At[We]),(An=V.value)==null||An.submit(),We++},Ne=(At,Je,Et)=>{m("success",At,Je,Et),l.value=U.value},ee=(At,Je,Et)=>{z.value.push({...Je,__url:Je.url})},xe=At=>{var Je;W.value=!0,K.value=Array.isArray(l==null?void 0:l.value)?(Je=l==null?void 0:l.value)==null?void 0:Je.findIndex(Et=>Et.url===At.url):0},et=At=>{To.ikFile.downloadFile(At.__url||At.url,At.name||At.url)},tt=At=>{var Je;(Je=V.value)==null||Je.abort(At)},je=At=>{var Je;At.status!=="success"&&tt(At),l.value=(Je=U.value)==null?void 0:Je.filter(Et=>Et.uid!==At.uid),m("delete",At)},be=(At,Je)=>{z.value.splice(Je,1)},xn=f.computed(()=>U.value.length+z.value.length<a.limit),dn=f.computed(()=>l.value.length>=a.limit||a.disabled),zt=f.computed(()=>{var At;return!((At=l.value)!=null&&At.length)&&!z.value.length||a.limit===1||typeof l.value=="string"?"0":`${a.width+8}px`}),F=f.computed(()=>{var At;return!((At=l.value)!=null&&At.length)&&!z.value.length&&typeof l.value!="string"||a.limit===1?"none":"absolute"});return(At,Je)=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[f.createVNode(f.unref(Ft.ElUpload),f.mergeProps({class:["ik-image-upload",{preview:c.preview,"hide-upload":!xn.value,disabled:dn.value}],ref_key:"refUpload",ref:V,"list-type":"picture-card",accept:c.accept,action:f.unref(C),headers:c.headers,data:c.data,"file-list":U.value,"onUpdate:fileList":Je[0]||(Je[0]=Et=>U.value=Et),multiple:c.multiple,limit:c.limit,"on-change":ce,"before-upload":q,"before-remove":X,"on-exceed":st,"on-success":Ne,"on-error":ee,drag:""},At.$attrs,{disabled:dn.value}),f.createSlots({trigger:f.withCtx(()=>[At.$slots.trigger?f.renderSlot(At.$slots,"trigger",{key:0},void 0,!0):(f.openBlock(),f.createElementBlock("div",rpe,[f.createVNode(f.unref(Ft.ElIcon),{size:20},{default:f.withCtx(()=>[f.createVNode(f.unref(cr),{name:"iksvg_guanbibeifen",disabled:dn.value},null,8,["disabled"])]),_:1}),f.createElementVNode("span",null,f.toDisplayString(c.title),1)]))]),file:f.withCtx(({file:Et,index:Lt})=>[f.createElementVNode("div",{class:f.normalizeClass(["load-list",{loading:Et.status==="uploading"}]),"element-loading-background":"var(--ik-upload-bg)"},[f.withDirectives(f.createElementVNode("div",ape,[f.createVNode(spe),f.createTextVNode(" 上传"+f.toDisplayString(Et.percentage)+"% ",1)],512),[[f.vShow,Et.status==="uploading"]]),f.createCommentVNode(` <img :src="file.url" alt="" :style="{ 'object-fit': fit }" /> `),f.createVNode(f.unref(Ft.ElImage),{style:{width:"100%",height:"100%"},src:Et.__url||Et.url,"zoom-rate":1.2,"initial-index":0,fit:"contain"},null,8,["src"]),f.createElementVNode("span",lpe,[f.createElementVNode("span",null,[f.createVNode(f.unref(Ft.ElIcon),{onClick:We=>xe(Et)},{default:f.withCtx(()=>[f.createVNode(f.unref(FQ))]),_:2},1032,["onClick"])]),f.createElementVNode("span",null,[f.createVNode(f.unref(Ft.ElIcon),{onClick:We=>et(Et)},{default:f.withCtx(()=>[f.createVNode(f.unref(IQ))]),_:2},1032,["onClick"])]),c.preview?f.createCommentVNode("v-if",!0):(f.openBlock(),f.createElementBlock("span",cpe,[f.createVNode(f.unref(Ft.ElIcon),{type:"warning",onClick:We=>je(Et)},{default:f.withCtx(()=>[f.createVNode(f.unref(NQ))]),_:2},1032,["onClick"])]))])],2)]),default:f.withCtx(()=>[f.createElementVNode("ul",upe,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(z.value,(Et,Lt)=>(f.openBlock(),f.createElementBlock("li",{class:"el-upload-list__item",key:Et.uid},[f.createElementVNode("span",null,[f.createVNode(f.unref(Ft.ElIcon),{onClick:We=>be(Et,Lt)},{default:f.withCtx(()=>[f.createVNode(f.unref(WO))]),_:2},1032,["onClick"])]),f.createElementVNode("div",{class:f.normalizeClass(["load-list",{loading:Et.status==="uploading",fail:Et.status==="fail"}]),"element-loading-background":"var(--ik-upload-bg)"},[f.withDirectives(f.createElementVNode("div",{class:"loading-statu",onClick:We=>Ce(Et,Lt)},[f.createVNode(f.unref(Ft.ElIcon),{size:24},{default:f.withCtx(()=>[f.createVNode(f.unref(PQ))]),_:1}),fpe,mpe],8,dpe),[[f.vShow,Et.status==="fail"]]),f.createElementVNode("img",{src:Et.__url,alt:"",style:f.normalizeStyle({"object-fit":c.fit})},null,12,hpe)],2)]))),128))])]),_:2},[c.tip?{name:"tip",fn:f.withCtx(()=>[f.createElementVNode("span",ipe,f.toDisplayString(Z.value),1)]),key:"0"}:void 0]),1040,["class","accept","action","headers","data","file-list","multiple","limit","disabled"]),f.createCommentVNode(" 文件预览 "),f.createElementVNode("div",gpe,[W.value?(f.openBlock(),f.createBlock(f.unref(RV),{key:0,"lock-scroll":"","hide-on-click-modal":"",onClose:Je[1]||(Je[1]=()=>{W.value=!1}),"url-list":i(U.value).map(Et=>Et.__url),"initial-index":K.value},null,8,["url-list","initial-index"])):f.createCommentVNode("v-if",!0)])],64))}}),_Se="",vpe=Zs(Vs(ppe,[["__scopeId","data-v-95e3d8e0"]])),ype=["src"],bpe={name:"IkPrintConfig"},Cpe=f.defineComponent({...bpe,props:{id:{},srcPrefix:{default:""},token:{}},emits:["created"],setup(c,{emit:r}){const a=c,l=r,i=f.computed(()=>!!a.id),m=f.reactive({currentId:a.id,loading:!0,src:""}),v=async()=>{fetch(`${a.srcPrefix??""}/jmreport/save`,{method:"POST",body:JSON.stringify({}),headers:{"Content-Type":"application/json",Authorization:a.token??""}}).then(E=>E.json()).then(({code:E,result:T})=>{if(E===200){const N=T.id;m.currentId=N,m.src=`${a.srcPrefix??""}/jmreport/index/${m.currentId}?token=${a.token}&menuType=printinfo`,l("created",m.currentId)}}).catch(E=>{console.error(E)})},C=()=>{if(!i.value){v();return}m.src=`${a.srcPrefix??""}/jmreport/index/${m.currentId}?token=${a.token}`};return f.onMounted(()=>{C()}),(E,T)=>m.src?(f.openBlock(),f.createElementBlock("iframe",{key:0,width:"100%",height:"100%",src:m.src,frameborder:"0"},null,8,ype)):f.createCommentVNode("v-if",!0)}}),_pe=Zs(Cpe),wpe=["src"],Spe={name:"IkPrintView"},Epe=f.defineComponent({...Spe,props:{modelValue:{type:Boolean,default:!1},templateId:{},dataId:{},srcPrefix:{default:""},token:{},idKey:{default:"id"},width:{default:"100%"},height:{default:"calc(100vh - 186px)"}},emits:["update:modelValue"],setup(c,{emit:r}){const a=c,l=r,i=f.computed({get:()=>a.modelValue,set:C=>{l("update:modelValue",C)}}),m=f.reactive({src:"",showIframe:!1}),v=()=>{m.showIframe=!1,m.src=`${a.srcPrefix}/jmreport/view/${a.templateId}?token=${a.token??""}&${a.idKey}=${a.dataId}`,setTimeout(()=>{m.showIframe=!0},300)};return f.watch(()=>i.value,C=>{C&&v()}),f.onMounted(()=>{i.value&&v()}),(C,E)=>{const T=f.resolveComponent("el-dialog");return f.openBlock(),f.createBlock(T,{modelValue:i.value,"onUpdate:modelValue":E[0]||(E[0]=N=>i.value=N),fullscreen:"",title:"预览"},{default:f.withCtx(()=>[f.createElementVNode("div",{style:f.normalizeStyle({width:a.width,height:a.height})},[m.showIframe?(f.openBlock(),f.createElementBlock("iframe",{key:0,width:"100%",height:"100%",src:m.src,frameborder:"0"},null,8,wpe)):f.createCommentVNode("v-if",!0)],4)]),_:1},8,["modelValue"])}}}),kpe=Zs(Epe),xpe={class:"ik-full-calendar"},Ape=["onClick"],Tpe={key:0,class:"event-title allday"},Dpe={key:0,class:"event-title-time"},Ope={key:1,class:"event-title no-allday"},Rpe={class:"event-title-time"},Npe={class:"event-title-text"},Ipe={name:"IkFullCalendar"},Bpe=f.defineComponent({...Ipe,props:{options:{default:{}},removable:{type:Boolean,default:!0},modelValue:{default:[]},tooltipFieldName:{default:"remark"}},emits:["added","deleted","update:modelValue","eventClick","deleteClick","dateSelect"],setup(c,{expose:r,emit:a}){const l=c,i=f.computed({get:()=>l.modelValue,set:q=>m("update:modelValue",q)}),m=a,v=f.ref(null),C=q=>{},E=f.ref("dayGridMonth"),T=q=>{m("dateSelect",q)},N=q=>{m("eventClick",q)},V=q=>{m("deleteClick",q)},U=()=>({locale:jQ,plugins:[Rte,Gte,$te],headerToolbar:{left:"dayGridMonth,timeGridWeek,timeGridDay prev,today,next",center:"title",right:""},firstDay:1,initialView:"dayGridMonth",weekends:!0,editable:!0,selectable:!0,selectMirror:!0,dateClick:C,select:T,...l.options,events:i.value}),z=f.reactive({timeType:"month",options:U()}),W=f.ref(null),K=()=>{var q;z.options=U(),(q=v.value)==null||q.buildOptions(z.options)};r({...{prev:()=>{var q;(q=W.value)==null||q.prev()},next:()=>{var q;(q=W.value)==null||q.next()},today:()=>{var q;(q=W.value)==null||q.today()},changeView:q=>{var X;(X=W.value)==null||X.changeView(q),E.value=q},getDate:()=>{var q;return(q=W.value)==null?void 0:q.getDate()},getView:()=>{var q;return(q=W.value)==null?void 0:q.view},unselect:()=>{var q;return(q=W.value)==null?void 0:q.unselect()}}}),f.watch(()=>i.value,()=>{K()});const ce=()=>{var q;W.value=(q=v.value)==null?void 0:q.getApi()};return f.onMounted(()=>{ce()}),(q,X)=>{const Ce=f.resolveComponent("el-tooltip"),st=f.resolveComponent("el-icon");return f.openBlock(),f.createElementBlock("div",xpe,[f.createVNode(f.unref(_te),{ref_key:"_ref",ref:v,options:z.options,style:{height:"100%"}},{eventContent:f.withCtx(Ne=>[f.createElementVNode("div",{class:"title-line",onClick:ee=>N(Ne)},[f.createVNode(Ce,null,{content:f.withCtx(()=>{var ee,xe;return[f.createCommentVNode(" {{arg}} "),f.createTextVNode(" "+f.toDisplayString((xe=(ee=Ne.event)==null?void 0:ee.extendedProps)==null?void 0:xe[l.tooltipFieldName]),1)]}),default:f.withCtx(()=>[Ne.event.allDay?(f.openBlock(),f.createElementBlock("span",Tpe,[E.value==="dayGridMonth"?(f.openBlock(),f.createElementBlock("span",Dpe,f.toDisplayString("(全天)"))):f.createCommentVNode("v-if",!0),f.createElementVNode("span",null,f.toDisplayString(Ne.event.title),1)])):(f.openBlock(),f.createElementBlock("span",Ope,[f.createElementVNode("span",Rpe,f.toDisplayString(f.unref(To.ikDate).toDateTime(Ne.event.startStr,"HH:mm")),1),f.createElementVNode("span",Npe,f.toDisplayString(Ne.event.title),1)]))]),_:2},1024),l.removable?(f.openBlock(),f.createBlock(st,{key:0,size:16,onClick:f.withModifiers(ee=>V(Ne),["stop"])},{default:f.withCtx(()=>[f.createVNode(f.unref(RQ))]),_:2},1032,["onClick"])):f.createCommentVNode("v-if",!0)],8,Ape)]),_:1},8,["options"])])}}}),SSe="",Mpe=Vs(Bpe,[["__scopeId","data-v-f0925ff8"]]);let Ppe=class{constructor(){MS(this,"id",new Date().getTime());MS(this,"title","");MS(this,"start","");MS(this,"end","");MS(this,"allDay",!1);MS(this,"extendedProps",{})}};const qte=Zs(Mpe),Lpe={key:0,class:"ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"},Fpe={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},$pe=["xlink:href"],Vpe=["src"],Hpe={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},zpe=["xlink:href"],Upe=["src"],Wpe=f.defineComponent({name:"IkSvgIcon",__name:"index",props:{active:{type:Boolean,default:!1},bg:{type:Boolean,default:!1},color:{},colorLight:{},disabled:{type:Boolean,default:!1},error:{type:Boolean},flip:{},name:{},notip:{type:Boolean,default:!1},opacity:{default:.5},padding:{default:"6px"},primary:{type:Boolean},rotate:{},showBg:{type:Boolean,default:!1},size:{default:""},success:{type:Boolean},tableIconType:{},title:{},type:{},warning:{type:Boolean},width:{}},setup(c){const r=c,a=f.computed(()=>r),l=f.computed(()=>{const{name:m}=a.value;return/^http?:\/\//.test(m)?"img":/i-[^:]+:[^:]+/.test(m)?"unocss":m!=null&&m.startsWith("iksig")?"iksig":m!=null&&m.includes(":")?"iconify":m!=null&&m.startsWith("iksvg")?"svg":"i"}),i=f.computed(()=>{const m=[];if(a.value.flip)switch(a.value.flip){case"horizontal":m.push("rotateY(180deg)");break;case"vertical":m.push("rotateX(180deg)");break;case"both":m.push("rotateX(180deg)"),m.push("rotateY(180deg)");break}a.value.rotate&&m.push(`rotate(${a.value.rotate%360}deg)`);const v={pointerEvents:a.value.disabled?"none":"auto",...a.value.color&&{color:a.value.color},...a.value.size&&{fontSize:typeof a.value.size=="number"?`${a.value.size}px`:a.value.size},...m.length&&{transform:m.join(" ")},padding:a.value.showBg||a.value.bg?a.value.padding:0,...a.value.color&&l.value!=="iksig"?{"--ik-color-icon-dark":a.value.color,"--ik-color-icon-light":a.value.colorLight||To.ikColor.setOpacity(a.value.color,a.value.opacity)}:{}};return a.value.width&&(v.width=v.height=typeof a.value.width=="number"?`${a.value.width}px`:a.value.width),v});return(m,v)=>{const C=f.resolveComponent("el-tooltip"),E=f.resolveComponent("el-button");return a.value.tableIconType==="icon"||!a.value.tableIconType?(f.openBlock(),f.createElementBlock("span",Lpe,[a.value.notip||!a.value.title?(f.openBlock(),f.createElementBlock("i",{key:0,class:f.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[m.name]:l.value==="unocss","show-bg":a.value.showBg||a.value.bg,default:a.value.size==="default",small:a.value.size==="small",big:a.value.size==="big",warning:a.value.warning||a.value.type==="warning",primary:a.value.primary||a.value.type==="primary",success:m.success||a.value.type==="success",error:a.value.error||a.value.type==="error",active:a.value.active,disabled:a.value.disabled}]),style:f.normalizeStyle(i.value)},[f.createCommentVNode(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),l.value==="iksig"?(f.openBlock(),f.createElementBlock("i",{key:0,class:f.normalizeClass(`iksig ${a.value.name}`),style:f.normalizeStyle(i.value)},null,6)):l.value==="svg"?(f.openBlock(),f.createElementBlock("svg",Fpe,[f.createElementVNode("use",{"xlink:href":`#${a.value.name}`},null,8,$pe)])):l.value==="img"?(f.openBlock(),f.createElementBlock("img",{key:2,src:a.value.name,class:"h-[1em] w-[1em]"},null,8,Vpe)):(f.openBlock(),f.createElementBlock("i",{key:3,class:f.normalizeClass(a.value.name),style:f.normalizeStyle(i.value)},null,6))],6)):(f.openBlock(),f.createBlock(C,{key:1,content:a.value.title,placement:"top"},{default:f.withCtx(()=>[f.createElementVNode("i",{class:f.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition",{[m.name]:l.value==="unocss","show-bg":a.value.showBg||a.value.bg,default:a.value.size==="default",small:a.value.size==="small",big:a.value.size==="big",warning:a.value.warning||a.value.type==="warning",primary:m.primary||a.value.type==="primary",success:m.success||a.value.type==="success",error:a.value.error||a.value.type==="error",active:a.value.active}]),style:f.normalizeStyle(i.value)},[l.value==="iksig"?(f.openBlock(),f.createElementBlock("i",{key:0,class:f.normalizeClass(`iksig ${a.value.name}`),style:f.normalizeStyle(i.value)},null,6)):l.value==="svg"?(f.openBlock(),f.createElementBlock("svg",Hpe,[f.createElementVNode("use",{"xlink:href":`#${a.value.name}`},null,8,zpe)])):l.value==="img"?(f.openBlock(),f.createElementBlock("img",{key:2,src:a.value.name,class:"h-[1em] w-[1em]"},null,8,Upe)):(f.openBlock(),f.createElementBlock("i",{key:3,class:f.normalizeClass(a.value.name),style:f.normalizeStyle(i.value)},null,6))],6)]),_:1},8,["content"]))])):(f.openBlock(),f.createBlock(E,{key:1,type:["warning","error"].includes(a.value.type)?"danger":""},{default:f.withCtx(()=>[f.createTextVNode(f.toDisplayString(a.value.title),1)]),_:1},8,["type"]))}}}),ESe="",cr=Zs(Vs(Wpe,[["__scopeId","data-v-52806adf"]])),yV=c=>(f.pushScopeId("data-v-e308f501"),c=c(),f.popScopeId(),c),jpe={class:"ik-schedule"},Gpe={class:"ik-schedule__left"},Zpe={class:"ik-schedule__header"},qpe={class:"ik-schedule__title"},Kpe=yV(()=>f.createElementVNode("div",{class:"ik-schedule__header-right"},null,-1)),Ype={class:"ik-schedule__body"},Xpe={style:{"font-size":"18px"}},Qpe={key:0},Jpe={style:{width:"90%",display:"flex","align-items":"center","justify-content":"space-between"}},e1e={key:0,style:{"margin-left":"2%"}},t1e=yV(()=>f.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),n1e={key:1},o1e=yV(()=>f.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),s1e={class:"dialog-footer"},r1e={name:"IkSchedule"},i1e=f.defineComponent({...r1e,props:{modelValue:{default:[]},options:{default:{initialView:"dayGridMonth"}},editVisible:{type:Boolean},removable:{type:Boolean,default:!0}},emits:["update:modelValue","added","updated","deleted","editOpen","submit","update:editVisible","submitAdd","submitUpdate","submitDelete"],setup(c,{expose:r,emit:a}){var ee;const l=c,i=a,m=!!f.useSlots().form,v=f.computed({get:()=>l.modelValue,set:xe=>{i("update:modelValue",xe)}}),C=f.computed(()=>({...l.options,headerToolbar:!1})),E=f.reactive({currentView:(ee=l.options)==null?void 0:ee.initialView,viewTitle:"",rightLabel:"今日",timeType:"month",currentDate:null}),T=f.ref(null),N=xe=>{var et;(et=T.value)==null||et.changeView(xe),E.currentView=xe,V()},V=()=>{var et;const xe=(et=T.value)==null?void 0:et.getView();E.viewTitle=xe==null?void 0:xe.title},U=()=>{var xe;(xe=T.value)==null||xe.prev(),V()},z=()=>{var xe;(xe=T.value)==null||xe.next(),V()},W=()=>{var xe;(xe=T.value)==null||xe.today(),V()},K=xe=>E.currentView===xe,Z=f.ref(null),ce={createDefaultForm:()=>({title:"",allDay:!1,type:1,startDate:"",endDate:"",startTime:"",endTime:"",location:"",remark:""}),close:()=>{X.value=!1},customSubmit:xe=>{var tt,je;let et={...xe,id:void 0,allDay:q.form.allDay,start:(tt=q.selectInfo)==null?void 0:tt.startStr,end:(je=q.selectInfo)==null?void 0:je.endStr};ce.operation(et),ce.close()},operation:xe=>{var et;q.operation==="add"?i("submitAdd",xe):(xe.id=(et=q.editEvent)==null?void 0:et.id,i("submitUpdate",xe))},submit:async()=>{var et,tt;if(m){i("submit");return}if(!q.form.title){Ft.ElMessage.info("标题不能为空");return}if(!q.form.allDay&&(!q.form.startTime||!q.form.endTime)){Ft.ElMessage.info("时间不能为空");return}let xe={id:void 0,title:q.form.title,allDay:q.form.allDay,start:(et=q.selectInfo)==null?void 0:et.startStr,end:(tt=q.selectInfo)==null?void 0:tt.endStr,extendedProps:{...q.form}};if(xe.allDay)xe.start=To.ikDate.toDate(q.form.startDate),xe.end=To.ikDate.toDate(q.form.endDate);else{const je=To.ikDate.toDate(q.form.startDate),be=To.ikDate.toDateTime(q.form.startTime).substring(10),xn=To.ikDate.toDateTime(q.form.endTime).substring(10);xe.start=`${je}${be}`,xe.end=`${je}${xn}`,xe.extendedProps.startTime=xe.start,xe.extendedProps.endTime=xe.end}ce.operation(xe),ce.close()},reset:()=>{var xe;q.form=ce.createDefaultForm(),(xe=Z.value)==null||xe.clearValidate()},edit:()=>{q.editable=!0,q.title="编辑日程"},cancelEdit:()=>{q.editable=!1,q.title="日程信息"},del:()=>{Ne(q.clickInfo)}},q=f.reactive({operation:"update",selectInfo:{},editEvent:void 0,title:"",visible:!1,allDay:!1,form:ce.createDefaultForm(),editable:!1,clickInfo:null}),X=f.computed({get:()=>q.visible,set:xe=>{q.visible=xe}}),Ce=xe=>{var et;if(q.form.allDay=xe.allDay,q.selectInfo=xe,ce.reset(),xe.view.type=="dayGridMonth"){let tt=xe.end.getTime()-864e5;E.timeType="month",q.form.startDate=To.ikDate.toYMD(xe.start),q.form.endDate=To.ikDate.toYMD(new Date(tt)),q.form.allDay=!0}else xe.view.type=="timeGridWeek"?E.timeType="week":xe.view.type=="timeGridDay"&&(E.timeType="day"),q.form.startDate=To.ikDate.toYMD(xe.start),q.form.endDate=To.ikDate.toYMD(xe.start),q.form.startTime=To.ikDate.toDateTime(xe.start),q.form.endTime=To.ikDate.toDateTime(xe.end);(et=T.value)==null||et.unselect(),f.nextTick(()=>{q.title="新建日程",q.operation="add",q.editable=!0,X.value=!0,i("editOpen",JSON.parse(JSON.stringify(q)))})},st=xe=>{q.title="日程信息",q.operation="update",q.clickInfo=xe,q.editEvent=xe.event;debugger;q.editEvent.allDay?(q.form.startDate=q.editEvent.startStr,q.form.endDate=q.editEvent.startStr):(q.form.startDate=q.editEvent.startStr,q.form.startTime=q.editEvent.start,q.form.endTime=q.editEvent.end),q.form.title=q.editEvent.title,q.form.allDay=q.editEvent.allDay,sre.copyValue(q.form,q.editEvent.extendedProps),ce.cancelEdit(),X.value=!0,i("editOpen",JSON.parse(JSON.stringify(q)))},Ne=xe=>{Ft.ElMessageBox.confirm(`你确定删除事件 ${xe.event.title} ?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{ce.close(),i("submitDelete",xe.event.id)})};return r({customSubmit:xe=>ce.customSubmit(xe)}),f.onMounted(()=>{V()}),(xe,et)=>{const tt=f.resolveComponent("el-button"),je=f.resolveComponent("el-button-group"),be=f.resolveComponent("el-icon"),xn=f.resolveComponent("el-space"),dn=f.resolveComponent("el-input"),zt=f.resolveComponent("el-form-item"),F=f.resolveComponent("el-date-picker"),At=f.resolveComponent("el-time-picker"),Je=f.resolveComponent("el-checkbox"),Et=f.resolveComponent("el-form"),Lt=f.resolveComponent("el-dialog");return f.openBlock(),f.createElementBlock("div",jpe,[f.createElementVNode("div",Gpe,[f.createElementVNode("div",Zpe,[f.createVNode(xn,{style:{"flex-shrink":"0"},size:24},{default:f.withCtx(()=>[f.createVNode(je,null,{default:f.withCtx(()=>[f.createVNode(tt,{onClick:et[0]||(et[0]=We=>N("dayGridMonth")),type:K("dayGridMonth")?"primary":""},{default:f.withCtx(()=>[f.createTextVNode("月")]),_:1},8,["type"]),f.createVNode(tt,{onClick:et[1]||(et[1]=We=>N("timeGridWeek")),type:K("timeGridWeek")?"primary":""},{default:f.withCtx(()=>[f.createTextVNode("周")]),_:1},8,["type"]),f.createVNode(tt,{onClick:et[2]||(et[2]=We=>N("timeGridDay")),type:K("timeGridDay")?"primary":""},{default:f.withCtx(()=>[f.createTextVNode("日")]),_:1},8,["type"])]),_:1}),f.createElementVNode("span",qpe,f.toDisplayString(E.viewTitle),1),f.createVNode(je,{style:{"flex-shrink":"0"}},{default:f.withCtx(()=>[f.createVNode(tt,{onClick:U},{default:f.withCtx(()=>[f.createVNode(be,null,{default:f.withCtx(()=>[f.createVNode(f.unref(n$))]),_:1})]),_:1}),f.createVNode(tt,{onClick:W},{default:f.withCtx(()=>[f.createTextVNode("今天")]),_:1}),f.createVNode(tt,{onClick:z},{default:f.withCtx(()=>[f.createVNode(be,null,{default:f.withCtx(()=>[f.createVNode(f.unref(o$))]),_:1})]),_:1})]),_:1})]),_:1}),Kpe]),f.createElementVNode("div",Ype,[f.createVNode(f.unref(qte),{removable:xe.removable,onDateSelect:Ce,onDeleteClick:Ne,onEventClick:st,ref_key:"_refCalendar",ref:T,options:C.value,modelValue:v.value,"onUpdate:modelValue":et[3]||(et[3]=We=>v.value=We)},null,8,["removable","options","modelValue"])])]),f.createCommentVNode(" 新建/修改对话框 "),f.createVNode(Lt,{width:"700px",modelValue:X.value,"onUpdate:modelValue":et[11]||(et[11]=We=>X.value=We)},{header:f.withCtx(()=>[f.createElementVNode("div",null,[f.createElementVNode("span",Xpe,f.toDisplayString(q.title),1),q.operation==="update"?(f.openBlock(),f.createElementBlock("span",Qpe,[q.editable?(f.openBlock(),f.createBlock(f.unref(cr),{key:1,style:{"margin-left":"4px"},name:"iksvg_qiehuan-daohang",onClick:ce.cancelEdit},null,8,["onClick"])):(f.openBlock(),f.createBlock(f.unref(cr),{key:0,style:{"margin-left":"4px"},name:"iksvg_xiugai",onClick:ce.edit},null,8,["onClick"]))])):f.createCommentVNode("v-if",!0)])]),footer:f.withCtx(()=>[f.createElementVNode("span",s1e,[f.renderSlot(xe.$slots,"form-footer",{},()=>[f.createElementVNode("span",null,[f.createVNode(tt,{onClick:ce.close},{default:f.withCtx(()=>[f.createTextVNode("取消")]),_:1},8,["onClick"]),f.createVNode(tt,{onClick:ce.del},{default:f.withCtx(()=>[f.createTextVNode("删除")]),_:1},8,["onClick"]),f.createVNode(tt,{type:"primary",onClick:ce.submit},{default:f.withCtx(()=>[f.createTextVNode("确定")]),_:1},8,["onClick"])])],!0)])]),default:f.withCtx(()=>[f.renderSlot(xe.$slots,"form",{},()=>[f.createVNode(Et,{ref_key:"_editFormRef",ref:Z,model:q.form,disabled:!q.editable},{default:f.withCtx(()=>[f.createVNode(zt,null,{default:f.withCtx(()=>[f.createVNode(be,{class:"icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(DQ))]),_:1}),f.createVNode(dn,{modelValue:q.form.title,"onUpdate:modelValue":et[4]||(et[4]=We=>q.form.title=We),placeholder:"请输入标题",style:{width:"90%"},clearable:""},null,8,["modelValue"])]),_:1}),f.createVNode(zt,null,{default:f.withCtx(()=>[f.createVNode(be,{class:"icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(OQ))]),_:1}),f.createElementVNode("div",Jpe,[f.createVNode(F,{disabled:"",modelValue:q.form.startDate,"onUpdate:modelValue":et[5]||(et[5]=We=>q.form.startDate=We),type:"date",placeholder:"开始日期",style:f.normalizeStyle({width:q.form.allDay?"45%":"90%"})},null,8,["modelValue","style"]),q.form.allDay?(f.openBlock(),f.createElementBlock("div",n1e,[o1e,f.createVNode(F,{disabled:"",modelValue:q.form.endDate,"onUpdate:modelValue":et[8]||(et[8]=We=>q.form.endDate=We),type:"date",placeholder:"结束日期",style:{width:"90%"}},null,8,["modelValue"])])):(f.openBlock(),f.createElementBlock("div",e1e,[f.createVNode(At,{modelValue:q.form.startTime,"onUpdate:modelValue":et[6]||(et[6]=We=>q.form.startTime=We),type:"datetime",placeholder:"开始时间",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"]),t1e,f.createVNode(At,{modelValue:q.form.endTime,"onUpdate:modelValue":et[7]||(et[7]=We=>q.form.endTime=We),type:"datetime",placeholder:"结束时间",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"])])),f.createVNode(Je,{modelValue:q.form.allDay,"onUpdate:modelValue":et[9]||(et[9]=We=>q.form.allDay=We),label:"全天",style:{"margin-left":"2%"}},null,8,["modelValue"])])]),_:1}),f.createVNode(zt,null,{default:f.withCtx(()=>[f.createVNode(be,{class:"icon"},{default:f.withCtx(()=>[f.createVNode(f.unref(jre))]),_:1}),f.createVNode(dn,{type:"textarea",modelValue:q.form.remark,"onUpdate:modelValue":et[10]||(et[10]=We=>q.form.remark=We),placeholder:"描述",style:{width:"90%"},clearable:""},null,8,["modelValue"])]),_:1})]),_:1},8,["model","disabled"])],!0)]),_:3},8,["modelValue"])])}}}),xSe="",a1e=Zs(Vs(i1e,[["__scopeId","data-v-e308f501"]])),l1e={key:0,class:"ik-tabs-split overflow-overlay gl-padding"},c1e=f.defineComponent({__name:"IkPageTabs",props:f.mergeModels({tabs:{type:Array,default:()=>[]},defaultSlot:{type:Boolean,default:!0},lazyTab:{type:Boolean,default:!1},split:{type:Boolean,default:!1}},{modelValue:{type:String||Number,default:""},modelModifiers:{}}),emits:f.mergeModels(["tabClick","search"],["update:modelValue"]),setup(c,{emit:r}){const a=c,l=r,i=f.useModel(c,"modelValue"),m=f.ref(new Map);for(const C of a.tabs)m.value.set(C.id,a.lazyTab?C.id!==i.value:!1);const v=C=>{i.value=C.paneName,m.value.get(C.paneName)||l("tabClick",C.paneName,C),m.value.set(C.paneName,!1)};return(C,E)=>{const T=f.resolveComponent("el-tab-pane"),N=f.resolveComponent("el-tabs");return f.openBlock(),f.createElementBlock(f.Fragment,null,[f.createCommentVNode(' <div class="flex-1 contents"> '),f.createVNode(N,{modelValue:i.value,"onUpdate:modelValue":E[0]||(E[0]=V=>i.value=V),class:f.normalizeClass(["ik-tabs",{"is-default":C.$slots.default,"split gl-padding gl-container":c.split}]),onTabClick:v},{default:f.withCtx(()=>[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(c.tabs,V=>(f.openBlock(),f.createBlock(T,{key:V.id,disabled:V==null?void 0:V.disabled,name:V.id},{label:f.withCtx(()=>[f.createElementVNode("span",null,f.toDisplayString(V.label),1)]),default:f.withCtx(()=>[!C.$slots.default&&!m.value.get(V.id)&&!c.split?f.renderSlot(C.$slots,V.id,{key:0},void 0,!0):f.createCommentVNode("v-if",!0)]),_:2},1032,["disabled","name"]))),128)),f.createCommentVNode(" 当存在默认slot且需要展示默认slot时 "),C.$slots.default&&c.defaultSlot&&!c.split?f.renderSlot(C.$slots,"default",{key:0},void 0,!0):f.createCommentVNode("v-if",!0)]),_:3},8,["modelValue","class"]),c.split?(f.openBlock(),f.createElementBlock("div",l1e,[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(c.tabs,V=>(f.openBlock(),f.createElementBlock(f.Fragment,null,[!C.$slots.default&&!m.value.get(V.id)?f.renderSlot(C.$slots,V.id,{key:0},void 0,!0):f.createCommentVNode("v-if",!0)],64))),256)),C.$slots.default&&c.defaultSlot?f.renderSlot(C.$slots,"default",{key:0},void 0,!0):f.createCommentVNode("v-if",!0)])):f.createCommentVNode("v-if",!0),f.createCommentVNode(" </div> ")],64)}}}),TSe="",u1e=Zs(Vs(c1e,[["__scopeId","data-v-e282a7f2"]]));var J1=(c=>(c.input="input",c.area="area",c.number="number",c.select="select",c.date="date",c.datetime="datetime",c.checkbox="checkbox",c.radio="radio",c.treeselect="treeselect",c.choosePerson="choosePerson",c))(J1||{}),X2=(c=>(c.year="year",c.month="month",c.date="date",c.dates="dates",c.datetime="datetime",c.week="week",c.datetimerange="datetimerange",c.daterange="daterange",c.monthrange="monthrange",c))(X2||{});function Kte(c){return typeof c=="function"||Object.prototype.toString.call(c)==="[object Object]"&&!f.isVNode(c)}const d1e=f.defineComponent({name:"IkSearchAuto",props:{list:{required:!0,type:Array,default:()=>[]},shadow:{type:String,default:"never"},immediate:{type:Boolean,default:!0},tab:{type:String,default:""},search:{type:Function,default:null},loading:{type:Boolean,default:!1}},emits:["search","pickerChange"],setup(c,{emit:r,expose:a}){const l=f.ref(),i={},m=f.ref({}),v=f.ref([]),C=f.ref({...m.value});f.watch(v,(ut,An)=>{const dt=An.filter(Vt=>!ut.includes(Vt));if(dt.length){let Vt=!1;dt.forEach(Ge=>{C.value[Ge]!==void 0&&(Vt=!0),C.value[Ge]=void 0}),Vt&&r("search",C.value)}});const E=()=>{v.value=[],c.list.forEach(ut=>{var An,dt;m.value[ut.key]=m.value[ut.value],i[ut.key]=i[ut.value],v.value.push(ut.key),(An=C.value)[dt=ut.key]??(An[dt]=ut.value||null)})};E(),f.watch(()=>c.list,()=>{E()});const T=f.computed(()=>v.value.map(ut=>c.list.find(An=>An.key===ut))),N=()=>{var ut;C.value.page=1,(ut=c.search)==null||ut.call(c,C.value),r("search",C.value)};a({resetForm:()=>{var ut,An;(An=(ut=l.value)==null?void 0:ut.resetFields)==null||An.call(ut),N()},reRequest:()=>{N()}});const z=()=>{var ut;r("search",C.value),(ut=c.search)==null||ut.call(c,C.value)},W=ut=>{ut.key==="Enter"&&N()},K=()=>{var ut;(ut=l.value)==null||ut.resetFields(),N()};c.immediate&&N();const Z=({maxlength:ut,minlength:An,key:dt,disabled:Vt,placeholder:Ge,formProp:at={},value:oe,label:po})=>f.createVNode(Ft.ElInput,f.mergeProps({modelValue:C.value[dt],"onUpdate:modelValue":[Nn=>C.value[dt]=Nn,Nn=>C.value[dt]=Nn],clearable:!0,maxlength:ut,minlength:An,disabled:Vt,onBlur:()=>z()},at,{placeholder:(at==null?void 0:at.placeholder)||Ge||`请输入${po||""}`}),null),ce=({key:ut,placeholder:An,max:dt,min:Vt,disabled:Ge,precision:at,step:oe=1,label:po,formProp:Nn={}})=>f.createVNode(Ft.ElInputNumber,f.mergeProps({modelValue:C.value[ut],"onUpdate:modelValue":yo=>C.value[ut]=yo,clearable:!0,max:dt,min:Vt,disabled:Ge,precision:at,step:oe,onChange:()=>z()},Nn,{placeholder:(Nn==null?void 0:Nn.placeholder)||An||`请输入${po||""}`}),null),q=({key:ut,placeholder:An,disabled:dt,options:Vt,label:Ge,multiple:at=!1,filterable:oe=!0,formProp:po={}})=>f.createVNode(Ft.ElSelect,f.mergeProps({modelValue:C.value[ut],"onUpdate:modelValue":Nn=>C.value[ut]=Nn,clearable:!0,disabled:dt,multiple:at,filterable:oe,onChange:()=>z()},po,{placeholder:(po==null?void 0:po.placeholder)||An||`请选择${Ge||""}`}),{default:()=>[Vt==null?void 0:Vt.map(Nn=>f.createVNode(Ft.ElOption,{key:Nn.value,label:Nn.label,value:Nn.value},null))]}),X=({key:ut,disabled:An,options:dt,formProp:Vt={}})=>f.createVNode(Ft.ElRadioGroup,f.mergeProps({modelValue:C.value[ut],"onUpdate:modelValue":Ge=>C.value[ut]=Ge,disabled:An,onChange:()=>z()},Vt),{default:()=>[dt==null?void 0:dt.map(Ge=>(Vt==null?void 0:Vt.radioType)==="button"?f.createVNode(Ft.ElRadioButton,{key:Ge.value,label:Ge.value,name:Ge.label},null):f.createVNode(Ft.ElRadio,{key:Ge.value,label:Ge.value,name:Ge.label},null))]}),Ce=({key:ut,disabled:An,options:dt,min:Vt,max:Ge,formProp:at={}})=>f.createVNode(Ft.ElCheckboxGroup,f.mergeProps({modelValue:C.value[ut],"onUpdate:modelValue":oe=>C.value[ut]=oe,disabled:An,max:Ge,min:Vt,onChange:()=>z()},at),{default:()=>[dt==null?void 0:dt.map(oe=>f.createVNode(Ft.ElCheckbox,{key:oe.value,label:oe.label,value:oe.value},null))]}),st=({key:ut,label:An,formProp:dt={},placeholder:Vt})=>f.createVNode(Ft.ElDatePicker,f.mergeProps({modelValue:C.value[ut],"onUpdate:modelValue":Ge=>C.value[ut]=Ge,onChange:()=>z()},dt,{placeholder:(dt==null?void 0:dt.placeholder)||Vt||`请选择${An}时间`}),null),Ne=({key:ut,disabled:An,editable:dt=!0,startPlaceholder:Vt="开始日期",endplaceholder:Ge="结束日期",dateType:at=X2.date,format:oe,placeholder:po="请选择日期",popperclass:Nn,rangeSeparator:yo="-",defaultValue:Fo,defaultTime:gi,valueFormat:vt,disabledDate:jt=()=>!1,formProp:St={}})=>{let Ue=oe;if(Ue)switch(at){case X2.date:case X2.dates:Ue="YYYY-MM-DD";break;case X2.year:Ue="YYYY";break;case X2.month:Ue="YYYY-MM";break;case X2.week:Ue="YYYY-MM-DD";break;default:Ue=""}return f.createVNode(Ft.ElDatePicker,f.mergeProps({modelValue:C.value[ut],"onUpdate:modelValue":In=>C.value[ut]=In,onChange:()=>z(),disabled:An,type:at,editable:dt,startPlaceholder:Vt,endPlaceholder:Ge,rangeSeparator:yo,format:Ue,popperClass:Nn,defaultValue:Fo,defaultTime:gi,valueFormat:vt,disabledDate:jt},St,{placeholder:(St==null?void 0:St.placeholder)||po||"请选择日期"}),null)},ee=({key:ut,options:An,multiple:dt=!1,filterable:Vt=!0,nodeKey:Ge="id",props:at,highlightCurrent:oe=!0,defaultExpandAll:po=!1,expandOnClickNode:Nn=!1,placeholder:yo="全部",checkOnClickNode:Fo=!1,showCheckbox:gi=!1,checkStrictly:vt=!0,defaultCheckedKeys:jt=[],currentNodeKey:St="",accordion:Ue=!1,formProp:In={},label:kt})=>f.createVNode(Ft.ElTreeSelect,f.mergeProps({modelValue:C.value[ut],"onUpdate:modelValue":Ct=>C.value[ut]=Ct,data:An,onChange:()=>z(),clearable:!0,multiple:dt,props:at,placeholder:yo,filterable:Vt,nodeKey:Ge,highlightCurrent:oe,defaultExpandAll:po,expandOnClickNode:Nn,checkOnClickNode:Fo,showCheckbox:gi,checkStrictly:vt,defaultCheckedKeys:jt,currentNodeKey:St,accordion:Ue},In,{placeholder:(In==null?void 0:In.placeholder)||yo||`请选择${kt||""}`}),null),xe=({key:ut,selectKey:An,placeholder:dt,disabled:Vt,options:Ge,multiple:at=!1,filterable:oe=!0,formProp:po={}})=>f.createVNode(Ft.ElInput,f.mergeProps({disabled:Vt,modelValue:C.value[ut],"onUpdate:modelValue":Nn=>C.value[ut]=Nn,onBlur:()=>z()},po,{placeholder:(po==null?void 0:po.placeholder)||dt||"全部"}),{prepend:()=>f.createVNode(Ft.ElSelect,f.mergeProps({disabled:Vt,multiple:at,filterable:oe,modelValue:C.value[An],"onUpdate:modelValue":Nn=>C.value[An]=Nn,onChange:()=>z()},po),{default:()=>[Ge==null?void 0:Ge.map(Nn=>f.createVNode(Ft.ElOption,{key:Nn.value,label:Nn.label,value:Nn.value},null))]})}),et="",tt="iking",je=f.ref(null),be=f.ref([]),xn=f.ref(!1),dn=f.ref(""),zt=new Map,F=ut=>{xn.value=!0,be.value=zt.has(ut)?zt.get(ut):C.value[ut],dn.value=ut},At=()=>{zt.set(dn.value,[]),dn.value="",z()},Je=ut=>{var An,dt;C.value[dn.value]=(An=ut.list.map(Vt=>Vt.elementName))==null?void 0:An.join(","),zt.set(dn.value,ut.list),r("search",C.value),r("pickerChange",ut),(dt=c.search)==null||dt.call(c,C.value)},Et=({key:ut,placeholder:An,typeOption:dt,_list:Vt,maxlength:Ge,minlength:at,disabled:oe,formProp:po})=>f.createVNode(Ft.ElInput,f.mergeProps({modelValue:C.value[ut],"onUpdate:modelValue":Nn=>C.value[ut]=Nn,clearable:!0,maxlength:Ge,minlength:at,disabled:oe},po,{onClick:()=>F(ut),onClear:()=>At(),placeholder:(po==null?void 0:po.placeholder)||An||`点击选择${label||"人员"}`}),null),Lt=ut=>{switch(ut.type){case"":case void 0:case J1.input:case"el-input":return Z(ut);case J1.number:case"el-input-number":return ce(ut);case J1.select:case"el-select":return q(ut);case J1.checkbox:case"el-checkbox":return Ce(ut);case J1.radio:case"el-radio-group":case"el-radio":return X(ut);case J1.date:case"el-date-picker":return Ne(ut);case"el-time-select":return st(ut);case J1.treeselect:case"el-tree-select":return ee(ut);case J1.choosePerson:return Et(ut);case"select-input":return xe(ut);default:return f.createVNode(f.Fragment,null,null)}},We=f.computed(()=>{var dt;const ut=[],An=T.value.length-1;return(dt=T.value)==null||dt.forEach((Vt,Ge)=>{let at,oe;if(!Vt)return[];const po=Vt.col||1;ut.push(f.createVNode(Ft.ElCol,{xl:{span:po*6},lg:{span:po*6},md:{span:po*12},sm:{span:po*24}},{default:()=>[Ge===An?f.createVNode("div",{class:"last-form"},[f.createVNode(Ft.ElFormItem,{label:Vt.type==="select-input"?"":Vt.label,prop:Vt.key},Kte(at=Lt(Vt))?at:{default:()=>[at]}),f.createVNode(cr,{name:"icon-sousuo1",pop:!0,title:"搜索",size:"big","show-bg":!0,width:40,onClick:()=>z()},null),f.createVNode(cr,{name:"icon-zhongzhi",pop:!0,title:"重置并搜索",size:"big","show-bg":!0,width:40,onClick:()=>K()},null)]):f.createVNode(Ft.ElFormItem,{label:Vt.type==="select-input"?"":Vt.label,prop:Vt.key},Kte(oe=Lt(Vt))?oe:{default:()=>[oe]})]}))}),ut});return()=>f.createVNode(f.Fragment,null,[f.createVNode(Ft.ElCard,{class:"gl-search-card",shadow:c.shadow},{default:()=>[f.createVNode(Ft.ElForm,{class:"auto-search-form",onKeyup:W,ref:l,model:C.value},{default:()=>[f.createVNode(Ft.ElRow,{gutter:16},{default:()=>[We.value]})]})]}),f.createVNode(yA,{ref:je.value,modelValue:be.value,"onUpdate:modelValue":ut=>be.value=ut,show:xn.value,"onUpdate:show":ut=>xn.value=ut,"append-to-body":!0,api:{methods:"post",url:`${et}/server/component/pick/mix`,headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:tt}},tabs:["group","role","post"],chooseType:["user"],typeOption:{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},propOption:{name:"elementName",id:"elementId",type:"elementType"},onOk:ut=>Je(ut)},null)])}}),f1e={class:"header-left"},m1e={class:"title"},h1e={class:"flex items-center"},g1e=f.defineComponent({__name:"IkPageHead",props:f.mergeModels({headerTitle:{type:String,default:""},headerBorder:{type:Boolean,default:!1},fields:{required:!0,type:Array,default:()=>[]},search:{type:Function,default:null},loading:{type:Boolean,default:!1},tabId:{type:Number||String,default:0},exportBtn:{type:Boolean,default:!1},refreshBtn:{type:Boolean,default:!1},settingBtn:{type:Boolean,default:!0},defaultShow:{type:Boolean,default:!1},headerHeight:{type:Number,default:66}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:["update:modelValue"],setup(c){f.useCssVars(T=>({"59e2b6b4":E}));const r=c,a=f.useModel(c,"modelValue"),l=f.ref(r.defaultShow),i=()=>{l.value=!l.value},m=f.computed(()=>r.fields.filter(T=>!T.onlyForm)),v=f.computed(()=>{var T;return(T=r.fields)==null?void 0:T.filter(N=>N.search)}),C=f.computed(()=>v.value.length),E=`${r.headerHeight}px`;return(T,N)=>{const V=f.resolveComponent("el-card");return f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(["ik-page-header",{"show-search":l.value}])},[f.createElementVNode("div",{class:"header",style:f.normalizeStyle({borderColor:c.headerBorder?"var(--ik-border-color)":"transparent",marginBottom:c.headerBorder?"8px":"0"})},[f.createElementVNode("div",f1e,[f.createCommentVNode(' 左侧标题、tab页或自定义内容 v-if="!$slots.headerLeft" '),f.createElementVNode("span",m1e,f.toDisplayString(c.headerTitle),1),f.renderSlot(T.$slots,"headerLeft",{},void 0,!0)]),f.createCommentVNode(" 默认按钮 "),f.createElementVNode("div",h1e,[f.createCommentVNode(" 右侧操作或自定义内容 "),f.renderSlot(T.$slots,"headerRight",{},void 0,!0),c.exportBtn?(f.openBlock(),f.createBlock(f.unref(cr),{key:0,name:"iksvg_xiazai",type:"primary",title:"导出","show-bg":"",size:"default"})):f.createCommentVNode("v-if",!0),C.value?(f.openBlock(),f.createBlock(f.unref(cr),{key:1,name:"iksvg_shaixuan1",size:"default",title:l.value?"收起筛选条件":"展开筛选条件","show-bg":"",onClick:i},null,8,["title"])):f.createCommentVNode("v-if",!0),c.refreshBtn?(f.openBlock(),f.createBlock(f.unref(cr),{key:2,name:"iksvg_zhongzhi1",title:"保留搜索条件刷新","show-bg":"",size:"default",onClick:c.search},null,8,["onClick"])):f.createCommentVNode("v-if",!0),f.createCommentVNode(` <IkSvgIcon\r
35
35
  name="icon-shezhi"\r
36
36
  show-bg\r
37
37
  :width="40"\r