iking-web-ui-pro 0.0.13 → 0.0.14
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.es.js +6844 -11038
- package/dist/index.umd.js +6 -10
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(j,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue"),require("element-plus"),require("iking-utils-pro"),require("axios"),require("vuedraggable")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus","iking-utils-pro","axios","vuedraggable"],i):(j=typeof globalThis<"u"?globalThis:j||self,i(j.index={},j.Vue,j["element-plus"],j["iking-utils-pro"],j.axios,j.vuedraggable))})(this,function(j,i,A,z,pd,hd){"use strict";var XE=Object.defineProperty;var JE=(j,i,A)=>i in j?XE(j,i,{enumerable:!0,configurable:!0,writable:!0,value:A}):j[i]=A;var Pt=(j,i,A)=>(JE(j,typeof i!="symbol"?i+"":i,A),A);const oe=(t,e)=>{if(t.install=n=>{for(const o of[t,...Object.values(e??{})])n.component(o.name,o)},e)for(const[n,o]of Object.entries(e))t[n]=o;return t},md=Object.prototype.toString,Ti=t=>md.call(t)==="[object Object]",gd={copyValue:(t,e)=>{if(!Ti(t)||!Ti(e))throw new Error("参数异常");return Object.keys(t).forEach(n=>{Reflect.has(e,n)&&(t[n]=e[n])}),t},isObject:Ti};/*! Element Plus Icons Vue v2.3.1 */var _d=i.defineComponent({name:"ArrowLeft",__name:"arrow-left",setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),Sr=_d,yd=i.defineComponent({name:"ArrowRight",__name:"arrow-right",setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),Ar=yd,bd=i.defineComponent({name:"ArrowUp",__name:"arrow-up",setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),Ed=bd,wd=i.defineComponent({name:"Bottom",__name:"bottom",setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z"})]))}}),Cd=wd,kd=i.defineComponent({name:"Calendar",__name:"calendar",setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),Dr=kd,vd=i.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),xr=vd,Sd=i.defineComponent({name:"Clock",__name:"clock",setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),i.createElementVNode("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),i.createElementVNode("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),Nr=Sd,Ad=i.defineComponent({name:"Close",__name:"close",setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Tr=Ad,Dd=i.defineComponent({name:"DCaret",__name:"d-caret",setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"m512 128 288 320H224zM224 576h576L512 896z"})]))}}),xd=Dd,Nd=i.defineComponent({name:"DeleteFilled",__name:"delete-filled",setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64zm64 0h192v-64H416zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32m192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32"})]))}}),Vr=Nd,Td=i.defineComponent({name:"Delete",__name:"delete",setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),on=Td,Vd=i.defineComponent({name:"Document",__name:"document",setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),Rd=Vd,Id=i.defineComponent({name:"Download",__name:"download",setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"})]))}}),Vi=Id,Bd=i.defineComponent({name:"Location",__name:"location",setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),i.createElementVNode("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),Od=Bd,Md=i.defineComponent({name:"MoreFilled",__name:"more-filled",setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),Rr=Md,Ld=i.defineComponent({name:"Plus",__name:"plus",setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),zd=Ld,Pd=i.defineComponent({name:"QuestionFilled",__name:"question-filled",setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"})]))}}),Fd=Pd,$d=i.defineComponent({name:"Refresh",__name:"refresh",setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),Ri=$d,Hd=i.defineComponent({name:"Search",__name:"search",setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),jd=Hd,Ud=i.defineComponent({name:"Top",__name:"top",setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M572.235 205.282v600.365a30.118 30.118 0 1 1-60.235 0V205.282L292.382 438.633a28.913 28.913 0 0 1-42.646 0 33.43 33.43 0 0 1 0-45.236l271.058-288.045a28.913 28.913 0 0 1 42.647 0L834.5 393.397a33.43 33.43 0 0 1 0 45.176 28.913 28.913 0 0 1-42.647 0l-219.618-233.23z"})]))}}),Wd=Ud,Gd=i.defineComponent({name:"Upload",__name:"upload",setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248z"})]))}}),qd=Gd,Yd=i.defineComponent({name:"User",__name:"user",setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0"})]))}}),Qd=Yd,Zd=i.defineComponent({name:"View",__name:"view",setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),Ir=Zd,Kd=i.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),Xd=Kd,Jd=i.defineComponent({name:"ZoomIn",__name:"zoom-in",setup(t){return(e,n)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),eu=Jd,Be=(t=>(t.input="input",t.area="area",t.number="number",t.select="select",t.date="date",t.datetime="datetime",t.checkbox="checkbox",t.radio="radio",t.treeselect="treeselect",t.choosePerson="choosePerson",t))(Be||{}),Xe=(t=>(t.year="year",t.month="month",t.date="date",t.dates="dates",t.datetime="datetime",t.week="week",t.datetimerange="datetimerange",t.daterange="daterange",t.monthrange="monthrange",t))(Xe||{}),Br=(t=>(t.center="center",t.left="left",t.right="right",t))(Br||{});function tu(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!i.isVNode(t)}const nu=i.defineComponent({name:"IkSearchAuto",props:{list:{required:!0,type:Array,default:()=>[]},shadow:{type:String,default:"never"},immediate:{type:Boolean,default:!0},num:{type:Number,default:4},tab:{type:String,default:""}},emits:["handleChange"],setup(t,{emit:e,expose:n}){const o=i.ref(t.list),{list:r}=t,l=()=>{e("handleChange",o)},a=({key:h,placeholder:b,maxlength:y,minlength:C,disabled:k})=>i.createVNode(A.ElInput,{modelValue:o.value[h],"onUpdate:modelValue":B=>o.value[h]=B,clearable:!0,maxlength:y,minlength:C,disabled:k,onChange:()=>l(),placeholder:b||"全部"},null),s=({key:h,placeholder:b,max:y,min:C,disabled:k,precision:B,step:S=1})=>i.createVNode(A.ElInputNumber,{modelValue:o.value[h],"onUpdate:modelValue":x=>o.value[h]=x,clearable:!0,max:y,min:C,disabled:k,precision:B,step:S,onChange:()=>l(),placeholder:b||"全部"},null),d=({key:h,placeholder:b,disabled:y,options:C,multiple:k=!1,filterable:B=!0})=>i.createVNode(A.ElSelect,{modelValue:o.value[h],"onUpdate:modelValue":S=>o.value[h]=S,clearable:!0,disabled:y,multiple:k,filterable:B,onChange:()=>l(),placeholder:b||"全部"},{default:()=>[C==null?void 0:C.map(S=>i.createVNode(A.ElOption,{key:S.value,label:S.label,value:S.value},null))]}),f=({key:h,disabled:b,options:y})=>i.createVNode(A.ElRadioGroup,{modelValue:o.value[h],"onUpdate:modelValue":C=>o.value[h]=C,disabled:b,onChange:()=>l()},{default:()=>[y==null?void 0:y.map(C=>i.createVNode(A.ElRadio,{key:C.value,label:C.label,value:C.value},null))]}),u=({key:h,disabled:b,options:y,min:C,max:k})=>i.createVNode(A.ElCheckboxGroup,{modelValue:o.value[h],"onUpdate:modelValue":B=>o.value[h]=B,disabled:b,max:k,min:C,onChange:()=>l()},{default:()=>[y==null?void 0:y.map(B=>i.createVNode(A.ElCheckbox,{key:B.value,label:B.label,value:B.value},null))]}),m=({key:h,disabled:b,editable:y=!0,startPlaceholder:C="开始日期",endplaceholder:k="结束日期",dateType:B=Xe.date,format:S,placeholder:x="请选择日期",popperclass:w,rangeSeparator:N="-",defaultValue:D,defaultTime:O,valueFormat:V,disabledDate:L=()=>!1})=>{let H=S;if(!H)switch(B){case Xe.date:case Xe.dates:H="YYYY-MM-DD";break;case Xe.year:H="YYYY";break;case Xe.month:H="YYYY-MM";break;case Xe.week:H="YYYY-MM-DD";break;default:H="YYYY-MM-DD"}return i.createVNode(A.ElDatePicker,{modelValue:o.value[h],"onUpdate:modelValue":I=>o.value[h]=I,onChange:()=>l(),placeholder:x,disabled:b,type:B,editable:y,startPlaceholder:C,endPlaceholder:k,rangeSeparator:N,format:H,popperClass:w,defaultValue:D,defaultTime:O,valueFormat:V,disabledDate:L},null)},p=({key:h,options:b,multiple:y=!1,filterable:C=!0,nodeKey:k="id",props:B,highlightCurrent:S=!0,defaultExpandAll:x=!1,expandOnClickNode:w=!1,placeholder:N="全部",checkOnClickNode:D=!1,showCheckbox:O=!1,checkStrictly:V=!0,defaultCheckedKeys:L=[],currentNodeKey:H="",accordion:I=!1})=>i.createVNode(A.ElTreeSelect,{modelValue:o.value[h],"onUpdate:modelValue":ee=>o.value[h]=ee,data:b,onChange:()=>l(),clearable:!0,multiple:y,props:B,placeholder:N,filterable:C,nodeKey:k,highlightCurrent:S,defaultExpandAll:x,expandOnClickNode:w,checkOnClickNode:D,showCheckbox:O,checkStrictly:V,defaultCheckedKeys:L,currentNodeKey:H,accordion:I},null),c=({key:h,placeholder:b,typeOption:y,_list:C,data:k,handSetChild:B})=>i.createVNode(En,{typeOption:y,list:C,key:h,props:t,data:k,handSetChild:B,placeholder:b},null),_=h=>{switch(h.type){case"":case void 0:case Be.input:return a(h);case Be.number:return s(h);case Be.select:return d(h);case Be.checkbox:return u(h);case Be.radio:return f(h);case Be.date:return m(h);case Be.treeselect:return p(h);case Be.choosePerson:return c(h);default:return i.createVNode(i.Fragment,null,null)}},g=i.computed(()=>{const h=[];return r.forEach((b,y)=>{let C;if(!b)return[];h.push(i.createVNode(A.ElFormItem,{label:b.label,prop:b.key},tu(C=_(b))?C:{default:()=>[C]}))}),h});return()=>i.createVNode(i.Fragment,null,[g.value])}}),iu={class:"ik-head-left"},ou={class:"ik-head-right"},ru=i.defineComponent({__name:"IKSearchHead",props:{rowData:{type:Array,default:()=>[]}},emits:["import","export","delete"],setup(t,{emit:e}){const n=e;return(o,r)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ik-head",t.rowData.length===0?"pack-up":"ik-unfold"])},[i.createElementVNode("div",iu,i.toDisplayString(`已选${t.rowData.length}条数据`),1),i.createElementVNode("div",ou,[i.createVNode(i.unref(A.ElButton),{class:"ik-head-icon",title:"查询",icon:i.unref(on),onClick:r[0]||(r[0]=l=>n("delete",t.rowData))},null,8,["icon"]),i.createVNode(i.unref(A.ElButton),{class:"ik-head-icon",title:"导入",icon:i.unref(Wd),onClick:r[1]||(r[1]=l=>n("import",t.rowData))},null,8,["icon"]),i.createVNode(i.unref(A.ElButton),{class:"ik-head-icon",title:"导出",icon:i.unref(Cd),onClick:r[2]||(r[2]=l=>n("export",t.rowData))},null,8,["icon"])])],2))}}),t4="",n4="",K=(t,e)=>{const n=t.__vccOpts||t;for(const[o,r]of e)n[o]=r;return n},Or=K(ru,[["__scopeId","data-v-251f2b3d"]]),lu={class:"ik-pack"},au=i.defineComponent({__name:"IKSearch",props:{enter:{type:Boolean,default:!0},minSpan:{type:Number,default:6},inline:{type:Boolean,default:!0},model:{type:Object,default:()=>{}},formRef:{type:Object,default:null},labelWidth:{type:Number,default:100},statusIcon:{type:Boolean,default:!1},title:{type:String,default:""},shadow:{type:String,default:"never"},showSearch:{type:Boolean,default:!0},list:{type:Array,default:()=>[]},rowData:{type:Array,default:()=>[]},num:{type:Number,default:4}},emits:["refresh","search","update:formRef","import","export","delete"],setup(t,{emit:e}){const n=t,o=e,r={},l={},a=i.ref([]),s=i.ref({...l}),d=i.ref(null),f=i.ref(!1);i.watch(a,(c,_)=>{const g=_.filter(h=>!c.includes(h));if(g.length){let h=!1;g.forEach(b=>{s.value[b]!==void 0&&(h=!0),s.value[b]=void 0}),h&&o("search",s.value)}}),n.list.forEach((c,_)=>{l[c.key]=l[c.value],_<n.num&&(r[c.key]=r[c.value],a.value.push(c.key))});const u=i.computed(()=>a.value.map(c=>n.list.find(_=>_.key===c)));i.computed(()=>{const{minSpan:c}=n;return u.value.length<4?c>8||c>6?c:6:c});const m=()=>{var c;try{(c=d.value)==null||c.resetFields(),o("refresh"),o("search",s.value)}catch{}},p=()=>{f.value=!f.value};return(c,_)=>(i.openBlock(),i.createElementBlock("div",null,[i.createVNode(Or,{rowData:n.rowData,onDelete:_[0]||(_[0]=g=>o("delete",t.rowData)),onImport:_[1]||(_[1]=g=>o("import",t.rowData)),onExport:_[2]||(_[2]=g=>o("export",t.rowData))},null,8,["rowData"]),i.createVNode(i.unref(A.ElCard),{class:i.normalizeClass(["gl-search-card",f.value?"pack-up-search":"ik-unfold-search"]),shadow:t.shadow},i.createSlots({default:i.withCtx(()=>[i.createVNode(i.unref(A.ElForm),{ref_key:"_formRef",ref:d,inline:t.inline,model:s.value,"status-icon":t.statusIcon,"label-width":`${t.labelWidth}px`,class:"in-label",onKeydown:_[5]||(_[5]=i.withKeys(i.withModifiers(g=>o("search",s.value),["prevent"]),["enter"]))},{default:i.withCtx(()=>[i.createVNode(i.unref(A.ElRow),{gutter:10},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(u.value,(g,h)=>(i.openBlock(),i.createBlock(i.unref(A.ElCol),{key:h,class:i.normalizeClass(["el-col","el-col-24",`el-col-sm-${12*(g.col||1)*(h===u.value.length-1?2:1)}`,`el-col-md-${8*(g.col||1)*(h===u.value.length-1?2:1)}`,`el-col-lg-${6*(g.col||1)*(h===u.value.length-1?2:1)}`,`el-col-xl-${4*(g.col||1)*(h===u.value.length-1?2:1)}`,"is-guttered","el-col-4",`el-col-l-${4*(g.col||1)*(h===u.value.length-1?2:1)}`,`el-col-sl-${5*(g.col||1)*(h===u.value.length-1?2:1)}`,`${h===u.value.length-1?"last-col":""}`].join(" "))},{default:i.withCtx(()=>[i.createElementVNode("div",{class:i.normalizeClass(["last-with-btn",h===u.value.length-1?"last-form":""])},[g!=null&&g.slot?i.renderSlot(c.$slots,g==null?void 0:g.slot,{key:0},void 0,!0):i.createCommentVNode("v-if",!0),g!=null&&g.slot?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createBlock(i.unref(nu),{key:1,onHandleChange:_[3]||(_[3]=b=>o("search",s.value)),list:[t.list[h]]},null,8,["list"])),h+1===u.value.length?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[t.showSearch?(i.openBlock(),i.createBlock(i.unref(A.ElButton),{key:0,class:"icon-more el-icon ml",title:"查询",icon:i.unref(jd),onClick:_[4]||(_[4]=b=>o("search",s.value))},null,8,["icon"])):i.createCommentVNode("v-if",!0),i.createVNode(i.unref(A.ElButton),{icon:i.unref(Ri),class:"icon-more el-icon ml",title:"重置",onClick:m},null,8,["icon"]),i.createCommentVNode(` <el-popover\r
|
|
1
|
+
(function(U,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue"),require("element-plus"),require("iking-utils-pro"),require("axios"),require("vuedraggable")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus","iking-utils-pro","axios","vuedraggable"],r):(U=typeof globalThis<"u"?globalThis:U||self,r(U.index={},U.Vue,U["element-plus"],U["iking-utils-pro"],U.axios,U.vuedraggable))})(this,function(U,r,A,H,ki,Ci){"use strict";var m6=Object.defineProperty;var g6=(U,r,A)=>r in U?m6(U,r,{enumerable:!0,configurable:!0,writable:!0,value:A}):U[r]=A;var ut=(U,r,A)=>(g6(U,typeof r!="symbol"?r+"":r,A),A);const ae=(t,e)=>{if(t.install=n=>{for(const l of[t,...Object.values(e??{})])n.component(l.name,l)},e)for(const[n,l]of Object.entries(e))t[n]=l;return t},vi=Object.prototype.toString,wn=t=>vi.call(t)==="[object Object]",wi={copyValue:(t,e)=>{if(!wn(t)||!wn(e))throw new Error("参数异常");return Object.keys(t).forEach(n=>{Reflect.has(e,n)&&(t[n]=e[n])}),t},isObject:wn};/*! Element Plus Icons Vue v2.3.1 */var Ai=r.defineComponent({name:"ArrowLeft",__name:"arrow-left",setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[r.createElementVNode("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),Wr=Ai,Si=r.defineComponent({name:"ArrowRight",__name:"arrow-right",setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[r.createElementVNode("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),Gr=Si,Di=r.defineComponent({name:"ArrowUp",__name:"arrow-up",setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[r.createElementVNode("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),xi=Di,Ni=r.defineComponent({name:"Bottom",__name:"bottom",setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[r.createElementVNode("path",{fill:"currentColor",d:"M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z"})]))}}),Ti=Ni,Bi=r.defineComponent({name:"Calendar",__name:"calendar",setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[r.createElementVNode("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),Yr=Bi,Vi=r.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[r.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),qr=Vi,Ri=r.defineComponent({name:"Clock",__name:"clock",setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[r.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),r.createElementVNode("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),r.createElementVNode("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),Qr=Ri,Ii=r.defineComponent({name:"Close",__name:"close",setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[r.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Zr=Ii,Mi=r.defineComponent({name:"DCaret",__name:"d-caret",setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[r.createElementVNode("path",{fill:"currentColor",d:"m512 128 288 320H224zM224 576h576L512 896z"})]))}}),Oi=Mi,Li=r.defineComponent({name:"DeleteFilled",__name:"delete-filled",setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[r.createElementVNode("path",{fill:"currentColor",d:"M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64zm64 0h192v-64H416zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32m192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32"})]))}}),Xr=Li,Fi=r.defineComponent({name:"Delete",__name:"delete",setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[r.createElementVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),Ct=Fi,Hi=r.defineComponent({name:"Document",__name:"document",setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[r.createElementVNode("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),Pi=Hi,zi=r.defineComponent({name:"Download",__name:"download",setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[r.createElementVNode("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"})]))}}),An=zi,$i=r.defineComponent({name:"Location",__name:"location",setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[r.createElementVNode("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),r.createElementVNode("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),Ui=$i,ji=r.defineComponent({name:"MoreFilled",__name:"more-filled",setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[r.createElementVNode("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),Kr=ji,Wi=r.defineComponent({name:"Plus",__name:"plus",setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[r.createElementVNode("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),Gi=Wi,Yi=r.defineComponent({name:"QuestionFilled",__name:"question-filled",setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[r.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"})]))}}),qi=Yi,Qi=r.defineComponent({name:"Refresh",__name:"refresh",setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[r.createElementVNode("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),Sn=Qi,Zi=r.defineComponent({name:"Search",__name:"search",setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[r.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),Xi=Zi,Ki=r.defineComponent({name:"Top",__name:"top",setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[r.createElementVNode("path",{fill:"currentColor",d:"M572.235 205.282v600.365a30.118 30.118 0 1 1-60.235 0V205.282L292.382 438.633a28.913 28.913 0 0 1-42.646 0 33.43 33.43 0 0 1 0-45.236l271.058-288.045a28.913 28.913 0 0 1 42.647 0L834.5 393.397a33.43 33.43 0 0 1 0 45.176 28.913 28.913 0 0 1-42.647 0l-219.618-233.23z"})]))}}),Ji=Ki,es=r.defineComponent({name:"Upload",__name:"upload",setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[r.createElementVNode("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248z"})]))}}),ts=es,ns=r.defineComponent({name:"User",__name:"user",setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[r.createElementVNode("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0"})]))}}),rs=ns,ls=r.defineComponent({name:"View",__name:"view",setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[r.createElementVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),Jr=ls,os=r.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[r.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),as=os,is=r.defineComponent({name:"ZoomIn",__name:"zoom-in",setup(t){return(e,n)=>(r.openBlock(),r.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[r.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),ss=is,ve=(t=>(t.input="input",t.area="area",t.number="number",t.select="select",t.date="date",t.datetime="datetime",t.checkbox="checkbox",t.radio="radio",t.treeselect="treeselect",t.choosePerson="choosePerson",t))(ve||{}),Fe=(t=>(t.year="year",t.month="month",t.date="date",t.dates="dates",t.datetime="datetime",t.week="week",t.datetimerange="datetimerange",t.daterange="daterange",t.monthrange="monthrange",t))(Fe||{}),el=(t=>(t.center="center",t.left="left",t.right="right",t))(el||{});function cs(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!r.isVNode(t)}const ds=r.defineComponent({name:"IkSearchAuto",props:{list:{required:!0,type:Array,default:()=>[]},shadow:{type:String,default:"never"},immediate:{type:Boolean,default:!0},num:{type:Number,default:4},tab:{type:String,default:""}},emits:["handleChange"],setup(t,{emit:e,expose:n}){const l=r.ref(t.list),{list:o}=t,a=()=>{e("handleChange",l)},i=({key:p,placeholder:_,maxlength:b,minlength:C,disabled:v})=>r.createVNode(A.ElInput,{modelValue:l.value[p],"onUpdate:modelValue":I=>l.value[p]=I,clearable:!0,maxlength:b,minlength:C,disabled:v,onChange:()=>a(),placeholder:_||"全部"},null),s=({key:p,placeholder:_,max:b,min:C,disabled:v,precision:I,step:N=1})=>r.createVNode(A.ElInputNumber,{modelValue:l.value[p],"onUpdate:modelValue":x=>l.value[p]=x,clearable:!0,max:b,min:C,disabled:v,precision:I,step:N,onChange:()=>a(),placeholder:_||"全部"},null),d=({key:p,placeholder:_,disabled:b,options:C,multiple:v=!1,filterable:I=!0})=>r.createVNode(A.ElSelect,{modelValue:l.value[p],"onUpdate:modelValue":N=>l.value[p]=N,clearable:!0,disabled:b,multiple:v,filterable:I,onChange:()=>a(),placeholder:_||"全部"},{default:()=>[C==null?void 0:C.map(N=>r.createVNode(A.ElOption,{key:N.value,label:N.label,value:N.value},null))]}),f=({key:p,disabled:_,options:b})=>r.createVNode(A.ElRadioGroup,{modelValue:l.value[p],"onUpdate:modelValue":C=>l.value[p]=C,disabled:_,onChange:()=>a()},{default:()=>[b==null?void 0:b.map(C=>r.createVNode(A.ElRadio,{key:C.value,label:C.label,value:C.value},null))]}),u=({key:p,disabled:_,options:b,min:C,max:v})=>r.createVNode(A.ElCheckboxGroup,{modelValue:l.value[p],"onUpdate:modelValue":I=>l.value[p]=I,disabled:_,max:v,min:C,onChange:()=>a()},{default:()=>[b==null?void 0:b.map(I=>r.createVNode(A.ElCheckbox,{key:I.value,label:I.label,value:I.value},null))]}),g=({key:p,disabled:_,editable:b=!0,startPlaceholder:C="开始日期",endplaceholder:v="结束日期",dateType:I=Fe.date,format:N,placeholder:x="请选择日期",popperclass:k,rangeSeparator:D="-",defaultValue:S,defaultTime:M,valueFormat:B,disabledDate:L=()=>!1})=>{let $=N;if(!$)switch(I){case Fe.date:case Fe.dates:$="YYYY-MM-DD";break;case Fe.year:$="YYYY";break;case Fe.month:$="YYYY-MM";break;case Fe.week:$="YYYY-MM-DD";break;default:$="YYYY-MM-DD"}return r.createVNode(A.ElDatePicker,{modelValue:l.value[p],"onUpdate:modelValue":R=>l.value[p]=R,onChange:()=>a(),placeholder:x,disabled:_,type:I,editable:b,startPlaceholder:C,endPlaceholder:v,rangeSeparator:D,format:$,popperClass:k,defaultValue:S,defaultTime:M,valueFormat:B,disabledDate:L},null)},h=({key:p,options:_,multiple:b=!1,filterable:C=!0,nodeKey:v="id",props:I,highlightCurrent:N=!0,defaultExpandAll:x=!1,expandOnClickNode:k=!1,placeholder:D="全部",checkOnClickNode:S=!1,showCheckbox:M=!1,checkStrictly:B=!0,defaultCheckedKeys:L=[],currentNodeKey:$="",accordion:R=!1})=>r.createVNode(A.ElTreeSelect,{modelValue:l.value[p],"onUpdate:modelValue":J=>l.value[p]=J,data:_,onChange:()=>a(),clearable:!0,multiple:b,props:I,placeholder:D,filterable:C,nodeKey:v,highlightCurrent:N,defaultExpandAll:x,expandOnClickNode:k,checkOnClickNode:S,showCheckbox:M,checkStrictly:B,defaultCheckedKeys:L,currentNodeKey:$,accordion:R},null),c=({key:p,placeholder:_,typeOption:b,_list:C,data:v,handSetChild:I})=>r.createVNode(Ft,{typeOption:b,list:C,key:p,props:t,data:v,handSetChild:I,placeholder:_},null),y=p=>{switch(p.type){case"":case void 0:case ve.input:return i(p);case ve.number:return s(p);case ve.select:return d(p);case ve.checkbox:return u(p);case ve.radio:return f(p);case ve.date:return g(p);case ve.treeselect:return h(p);case ve.choosePerson:return c(p);default:return r.createVNode(r.Fragment,null,null)}},m=r.computed(()=>{const p=[];return o.forEach((_,b)=>{let C;if(!_)return[];p.push(r.createVNode(A.ElFormItem,{label:_.label,prop:_.key},cs(C=y(_))?C:{default:()=>[C]}))}),p});return()=>r.createVNode(r.Fragment,null,[m.value])}}),us={class:"ik-head-left"},fs={class:"ik-head-right"},ps=r.defineComponent({__name:"IKSearchHead",props:{rowData:{type:Array,default:()=>[]}},emits:["import","export","delete"],setup(t,{emit:e}){const n=e;return(l,o)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ik-head",t.rowData.length===0?"pack-up":"ik-unfold"])},[r.createElementVNode("div",us,r.toDisplayString(`已选${t.rowData.length}条数据`),1),r.createElementVNode("div",fs,[r.createVNode(r.unref(A.ElButton),{class:"ik-head-icon",title:"查询",icon:r.unref(Ct),onClick:o[0]||(o[0]=a=>n("delete",t.rowData))},null,8,["icon"]),r.createVNode(r.unref(A.ElButton),{class:"ik-head-icon",title:"导入",icon:r.unref(Ji),onClick:o[1]||(o[1]=a=>n("import",t.rowData))},null,8,["icon"]),r.createVNode(r.unref(A.ElButton),{class:"ik-head-icon",title:"导出",icon:r.unref(Ti),onClick:o[2]||(o[2]=a=>n("export",t.rowData))},null,8,["icon"])])],2))}}),b6="",_6="",X=(t,e)=>{const n=t.__vccOpts||t;for(const[l,o]of e)n[l]=o;return n},tl=X(ps,[["__scopeId","data-v-251f2b3d"]]),hs={class:"ik-pack"},ms=r.defineComponent({__name:"IKSearch",props:{enter:{type:Boolean,default:!0},minSpan:{type:Number,default:6},inline:{type:Boolean,default:!0},model:{type:Object,default:()=>{}},formRef:{type:Object,default:null},labelWidth:{type:Number,default:100},statusIcon:{type:Boolean,default:!1},title:{type:String,default:""},shadow:{type:String,default:"never"},showSearch:{type:Boolean,default:!0},list:{type:Array,default:()=>[]},rowData:{type:Array,default:()=>[]},num:{type:Number,default:4}},emits:["refresh","search","update:formRef","import","export","delete"],setup(t,{emit:e}){const n=t,l=e,o={},a={},i=r.ref([]),s=r.ref({...a}),d=r.ref(null),f=r.ref(!1);r.watch(i,(c,y)=>{const m=y.filter(p=>!c.includes(p));if(m.length){let p=!1;m.forEach(_=>{s.value[_]!==void 0&&(p=!0),s.value[_]=void 0}),p&&l("search",s.value)}}),n.list.forEach((c,y)=>{a[c.key]=a[c.value],y<n.num&&(o[c.key]=o[c.value],i.value.push(c.key))});const u=r.computed(()=>i.value.map(c=>n.list.find(y=>y.key===c)));r.computed(()=>{const{minSpan:c}=n;return u.value.length<4?c>8||c>6?c:6:c});const g=()=>{var c;try{(c=d.value)==null||c.resetFields(),l("refresh"),l("search",s.value)}catch{}},h=()=>{f.value=!f.value};return(c,y)=>(r.openBlock(),r.createElementBlock("div",null,[r.createVNode(tl,{rowData:n.rowData,onDelete:y[0]||(y[0]=m=>l("delete",t.rowData)),onImport:y[1]||(y[1]=m=>l("import",t.rowData)),onExport:y[2]||(y[2]=m=>l("export",t.rowData))},null,8,["rowData"]),r.createVNode(r.unref(A.ElCard),{class:r.normalizeClass(["gl-search-card",f.value?"pack-up-search":"ik-unfold-search"]),shadow:t.shadow},r.createSlots({default:r.withCtx(()=>[r.createVNode(r.unref(A.ElForm),{ref_key:"_formRef",ref:d,inline:t.inline,model:s.value,"status-icon":t.statusIcon,"label-width":`${t.labelWidth}px`,class:"in-label",onKeydown:y[5]||(y[5]=r.withKeys(r.withModifiers(m=>l("search",s.value),["prevent"]),["enter"]))},{default:r.withCtx(()=>[r.createVNode(r.unref(A.ElRow),{gutter:10},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.value,(m,p)=>(r.openBlock(),r.createBlock(r.unref(A.ElCol),{key:p,class:r.normalizeClass(["el-col","el-col-24",`el-col-sm-${12*(m.col||1)*(p===u.value.length-1?2:1)}`,`el-col-md-${8*(m.col||1)*(p===u.value.length-1?2:1)}`,`el-col-lg-${6*(m.col||1)*(p===u.value.length-1?2:1)}`,`el-col-xl-${4*(m.col||1)*(p===u.value.length-1?2:1)}`,"is-guttered","el-col-4",`el-col-l-${4*(m.col||1)*(p===u.value.length-1?2:1)}`,`el-col-sl-${5*(m.col||1)*(p===u.value.length-1?2:1)}`,`${p===u.value.length-1?"last-col":""}`].join(" "))},{default:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass(["last-with-btn",p===u.value.length-1?"last-form":""])},[m!=null&&m.slot?r.renderSlot(c.$slots,m==null?void 0:m.slot,{key:0},void 0,!0):r.createCommentVNode("v-if",!0),m!=null&&m.slot?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createBlock(r.unref(ds),{key:1,onHandleChange:y[3]||(y[3]=_=>l("search",s.value)),list:[t.list[p]]},null,8,["list"])),p+1===u.value.length?(r.openBlock(),r.createElementBlock(r.Fragment,{key:2},[t.showSearch?(r.openBlock(),r.createBlock(r.unref(A.ElButton),{key:0,class:"icon-more el-icon ml",title:"查询",icon:r.unref(Xi),onClick:y[4]||(y[4]=_=>l("search",s.value))},null,8,["icon"])):r.createCommentVNode("v-if",!0),r.createVNode(r.unref(A.ElButton),{icon:r.unref(Sn),class:"icon-more el-icon ml",title:"重置",onClick:g},null,8,["icon"]),r.createCommentVNode(` <el-popover\r
|
|
2
2
|
placement="right"\r
|
|
3
3
|
popper-class="gl-search-form-popper"\r
|
|
4
4
|
width="100"\r
|
|
@@ -23,20 +23,20 @@
|
|
|
23
23
|
</el-checkbox>\r
|
|
24
24
|
</el-checkbox-group>\r
|
|
25
25
|
</template>\r
|
|
26
|
-
</el-popover> `)],64)):
|
|
26
|
+
</el-popover> `)],64)):r.createCommentVNode("v-if",!0)],2)]),_:2},1032,["class"]))),128))]),_:3})]),_:3},8,["inline","model","status-icon","label-width"])]),_:2},[t.title?{name:"header",fn:r.withCtx(()=>[r.createElementVNode("h2",null,r.toDisplayString(t.title),1)]),key:"0"}:void 0]),1032,["class","shadow"]),r.createElementVNode("div",hs,[r.createElementVNode("div",{class:"ik-pack-up",onClick:h},[r.createVNode(r.unref(A.ElIcon),{size:"16"},{default:r.withCtx(()=>[r.withDirectives(r.createVNode(r.unref(xi),null,null,512),[[r.vShow,!f.value]])]),_:1})])])]))}}),E6="",k6="",gs=ae(X(ms,[["__scopeId","data-v-403809ec"]])),ys=ae(tl),bs={class:"content"},_s={class:"top"},Es=["onClick"],ks=["id"],Cs=["onClick"],vs=r.defineComponent({__name:"IKVerticalStepBar",props:{active:{type:String,default:""},list:{type:Array,default:()=>[]},needClick:{type:Boolean,default:!1},propsField:{type:Object,default:()=>({name:"name",children:"children"})}},emits:["click","update:active"],setup(t,{emit:e}){const n=t,l=e,o=r.computed(()=>Number(n.active.indexOf("-")>0?n.active.split("-")[0]:n.active)),a=r.computed(()=>n.active.indexOf("-")>0?Number(n.active.split("-")[1]):0),i=h=>{let c="",y=h+1;return y<o.value?c="before-bg":y===o.value?c="active-bg":y>o.value&&(c="after-bg"),`${c} index`},s=h=>{let c="",y=h+1;return y<o.value?c="before-text":y===o.value?c="active-text":y>o.value&&(c="after-text"),`${c} text`},d=h=>{let c="",y=h+1;return y<o.value?c="before-style":y<n.list.length&&(c="after-style"),`${c} bottom`},f=(h,c)=>{let y="",m=h+1,p=c+1;return m<o.value?y="before-text":m===o.value?p<a.value?y="before-text":p===a.value?y="active-text":p>a.value&&(y="after-text"):m>o.value&&(y="after-text"),`${y} child-text`},u=(h,c)=>{n.needClick&&(h[n.propsField.children]||(l("update:active",c+""),l("click",h)))},g=(h,c)=>{h.show=!h.show;let y=document.getElementById(`children${c}`);h.show?y.style.display="none":y.style.display="block"};return(h,c)=>(r.openBlock(),r.createElementBlock("div",bs,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.list,(y,m)=>{var p,_;return r.openBlock(),r.createElementBlock("div",{class:"line-block",key:m},[r.createElementVNode("div",_s,[r.createElementVNode("div",{class:r.normalizeClass(i(m))},r.toDisplayString(m+1),3),r.createElementVNode("div",{class:r.normalizeClass(s(m)),style:r.normalizeStyle(t.needClick?"cursor: pointer;":""),onClick:b=>u(y,m+1)},[r.createTextVNode(r.toDisplayString(y[t.propsField.name])+" ",1),r.createCommentVNode(` <i\r
|
|
27
27
|
v-if="item[propsField.children]?.length && !item.show"\r
|
|
28
28
|
class="ikapprove icon-a-putongjiantouzhankai"\r
|
|
29
29
|
@click="changeShow(item, index)"\r
|
|
30
|
-
></i> `),(
|
|
30
|
+
></i> `),(p=y[t.propsField.children])!=null&&p.length&&!y.show?(r.openBlock(),r.createBlock(r.unref(pe),{key:0,class:"ikapprove",onClick:b=>g(y,m),name:"iksvg_zhankai"},null,8,["onClick"])):r.createCommentVNode("v-if",!0),r.createCommentVNode(` <i\r
|
|
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> `),(b=_[t.propsField.children])!=null&&b.length&&_.show?(i.openBlock(),i.createBlock(i.unref(fe),{key:1,class:"ikapprove",onClick:y=>m(_,g),name:"iksvg_shouqi"},null,8,["onClick"])):i.createCommentVNode("v-if",!0)],14,fu)]),i.createElementVNode("ul",{class:i.normalizeClass(d(g))},[i.createElementVNode("div",{id:`children${g}`},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(_[t.propsField.children],(y,C)=>(i.openBlock(),i.createElementBlock("li",{class:i.normalizeClass(f(g,C)),style:i.normalizeStyle(t.needClick?"cursor: pointer;":""),key:C,onClick:k=>u(y,g+1+"-"+(C+1))},i.toDisplayString(y.name),15,hu))),128))],8,pu)],2)])}),128))]))}}),l4="",gu=oe(K(mu,[["__scopeId","data-v-240cff4f"]])),s4="",Ii=t=>(i.pushScopeId("data-v-41886e6b"),t=t(),i.popScopeId(),t),_u={class:"approveProcess",id:"approveProcess"},yu=["id"],bu={class:"topBlock"},Eu={class:"left"},wu={class:"nodeBg"},Cu=["src"],ku={class:"right"},vu={class:"topInfo"},Su={key:0},Au={key:0,class:"main-text"},Du={class:"name"},xu={key:0},Nu={key:0},Tu={key:1},Vu=Ii(()=>i.createElementVNode("span",{class:"red",style:{margin:"0px 5px"}},"退回至",-1)),Ru={key:0},Iu={key:0},Bu={key:1},Ou={key:1},Mu=Ii(()=>i.createElementVNode("div",{class:"main-text"},"抄送人员",-1)),Lu={class:"name"},zu={key:0},Pu={style:{color:"#000"}},Fu={class:"blue",style:{"margin-left":"5px","font-size":"12px"}},$u={key:1},Hu={key:0,class:"blue",style:{"font-size":"12px"}},ju={key:1},Uu={key:0,class:"blue",style:{"font-size":"12px"}},Wu={key:1,class:"blue",style:{"font-size":"12px"}},Gu={class:"time"},qu={key:0},Yu={key:1},Qu=["onClick"],Zu=["onClick"],Ku={key:0,class:"opinion"},Xu={key:0},Ju={key:1},ef=Ii(()=>i.createElementVNode("span",null,"添加审批人",-1)),tf={style:{color:"var(--el-text-color-primary)","margin-left":"8px"}},nf={key:1,class:"annex"},of=["onClick"],rf={class:"text"},lf={class:"fileName"},af={class:"size"},sf={key:2,class:"annexImage"},cf={key:3,class:"approveList"},df={class:"nodeBg-list"},uf=["src"],ff={key:1,class:"ikapprove ikapprove-duihao2 green read"},pf=["title"],hf={name:"IkingApprovalProcessDetail"},mf=i.defineComponent({...hf,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:""}},emits:["preview"],setup(t,{emit:e}){const n=t,o=i.reactive({nodeType:{发起人节点:"1",审批节点:"2",办理节点:"3",抄送节点:"4",...n.defaultNodeType},statusOption:{发起:"1",等待:"2",同意:"3",拒绝:"4",转交:"5",加签:"6",退回:"7",撤销:"8",评论:"9",...n.defaultStatus},listData:[],defaultFile:{id:"id",nodeId:"nodeId",nodeType:"nodeType",nodeTypeName:"nodeTypeName",approveStatus:"approveStatus",approveStatusName:"approveStatusName",originator:"originator",operationTime:"operationTime",approveType:"approveType",approveTypeName:"approveTypeName",multiExecutorTypeName:"multiExecutorTypeName",approveOpinion:"approveOpinion",countersignPer:"countersignPer",backToRecordNodeName:"backToRecordNodeName",attachment:"attachment",attachmentParam:{id:"id",originName:"originName",url:"url",suffix:"suffix",size:"size"},attachmentImg:"attachmentImg",returnNode:"returnNode",returnNodeName:"returnNodeName",lineType:"lineType",allRead:"allRead",read:"read",approvePersonList:[{id:"id",name:"name",approveState:"approveState",approveTime:"approveTime",approveOpinion:"approveOpinion",userAvatar:"userAvatar",accomplish:"accomplish"}],...n.defaultFieldMap}});i.watch(()=>n.dataList,c=>{c&&(i.nextTick(()=>{o.listData=c}),setTimeout(()=>{n.returnNode.length&&r()},500))},{deep:!0}),i.onMounted(()=>{n.dataList.length&&(o.listData=n.dataList,setTimeout(()=>{n.returnNode.length&&r()},500))});const r=()=>{let c=null;if(n!=null&&n.returnNode)for(c of n==null?void 0:n.returnNode){if(isNaN(c[1]))return;let _=Array.from(new Array(c[1]+1).keys()).slice(c[0]);i.nextTick(()=>{l(_)})}},l=c=>{var k,B,S;let _=document.createElement("div"),g=document.getElementById("approveProcess"),h=0,b=(k=document.getElementById(`${c[0]}`))==null?void 0:k.offsetWidth,y=(B=document.getElementById(`${c[0]}`))==null?void 0:B.offsetLeft,C=(S=document.getElementById(`${c[0]}`))==null?void 0:S.offsetTop;c.forEach(x=>{let w=document.getElementById(`${x}`);h+=w.offsetHeight}),setTimeout(()=>{_.style.width=b+32+"px",_.style.height=h+"px",_.style.background="#f9f9f9",_.style.position="absolute",_.style.top=C-16+"px",_.style.left=y-16+"px",_.style.zIndex=-1,g==null||g.appendChild(_)})},a=(c,_)=>{var b;let g=(b=o.listData)==null?void 0:b.findIndex(y=>y.lineType=="dashed"),h="";switch(c){case o.statusOption.发起:h="ikapprove-duihao2 green";break;case o.statusOption.等待:h=g==_?"ikapprove-dengdai orange":"";break;case o.statusOption.同意:h="ikapprove-duihao2 green";break;case o.statusOption.拒绝:h="ikapprove-jujue red";break;case o.statusOption.转交:h="ikapprove-zhuanjiao blue";break;case o.statusOption.加签:h="ikapprove-tianjia blue";break;case o.statusOption.退回:h="ikapprove-s_fanhui2 red";break;case o.statusOption.评论:h="ikapprove-pinglun1 blue";break}return`ikapprove ${h}`},s=(c,_)=>{let g="";switch(c){case o.nodeType.发起人节点:g="ikapprove-ziyuan";break;case o.nodeType.审批节点:_&&_.length==1?g="ikapprove-ziyuan":g="ikapprove-shenpi";break;case o.nodeType.办理节点:g="ikapprove-bianji";break;case o.nodeType.抄送节点:g="ikapprove-chaosong";break;default:g="ikapprove-ziyuan"}return`ikapprove ${g}`},d=c=>{let _="";return c=="jpg"||c=="jpeg"||c=="png"?_="ikapprove-tupian":c=="doc"||c=="docx"?_="ikapprove-WORD":c=="xls"||c=="xlsx"?_="ikapprove-EXCEL":c=="ppt"||c=="pptx"?_="ikapprove-pptcopy":c=="pdf"?_="ikapprove-PDF":c=="rar"||c=="zip"?_="ikapprove-fujian":c=="txt"||c=="zip"?_="ikapprove-TXTCopy":c=="mp3"||c=="wma"||c=="m4a"?_="ikapprove-yinpinwenjian":(c=="avi"||c=="wmv"||c=="mp4"||c=="mov")&&(_="ikapprove-shipinwenjian"),`icon ikapprove ${_}`},f=e,u=c=>{f("preview",c),n.local||window.open(p(c[o.defaultFile.attachmentParam.url]))},m=(c,_)=>{c.show=!c.show;let g=document.getElementById(`${c[o.defaultFile.nodeId]}`),h=Array.from(g==null?void 0:g.getElementsByClassName("approveList"));for(let b of h)b.style.display=_},p=c=>{let _="";return c.includes("http")||c.includes("https")?_=c:_=n.fileUrl+c,_};return(c,_)=>{const g=i.resolveComponent("el-image");return i.openBlock(),i.createElementBlock("div",_u,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.listData,(h,b)=>{var y,C,k,B,S,x,w,N,D,O;return i.openBlock(),i.createElementBlock("div",{class:"approveBlock",id:h[o.defaultFile.nodeId],key:h[o.defaultFile.nodeId]},[i.createElementVNode("div",bu,[i.createElementVNode("div",Eu,[i.createElementVNode("span",wu,[i.createCommentVNode(' 用户列表长度等于1, :src="formatUrl(it)"并且存在头像 '),((y=h[o.defaultFile.approvePersonList])==null?void 0:y.length)==1&&h[o.defaultFile.approvePersonList][0].userAvatar?(i.openBlock(),i.createElementBlock("img",{key:0,style:{width:"100%",height:"100%","border-radius":"50%"},src:p(h[o.defaultFile.approvePersonList][0].userAvatar),alt:""},null,8,Cu)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createCommentVNode(" 否则显示对应节点 "),i.createElementVNode("i",{class:i.normalizeClass(s(h[o.defaultFile.nodeType],h[o.defaultFile.approvePersonList]))},null,2)],2112)),i.createCommentVNode(" 审批状态图标 "),i.createElementVNode("i",{class:i.normalizeClass(a(h[o.defaultFile.approveStatus],b))},null,2)])]),i.createElementVNode("div",ku,[i.createElementVNode("div",vu,[i.createElementVNode("div",null,[i.createCommentVNode(" 不是抄送节点 "),h[o.defaultFile.nodeType]!=o.nodeType.抄送节点?(i.openBlock(),i.createElementBlock("div",Su,[i.createCommentVNode(" 撤销,评论不显示节点名称 "),h[o.defaultFile.approveStatus]!=o.statusOption.撤销&&h[o.defaultFile.approveStatus]!=o.statusOption.评论?(i.openBlock(),i.createElementBlock("div",Au,i.toDisplayString(h[o.defaultFile.nodeTypeName]),1)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" 名字+审批状态 "),i.createElementVNode("div",Du,[i.createCommentVNode(" 已审批节点文本 "),h[o.defaultFile.lineType]=="solid"?(i.openBlock(),i.createElementBlock("div",xu,[i.createElementVNode("span",{style:i.normalizeStyle({color:h[o.defaultFile.approveStatus]==o.statusOption.评论?"#000":""})},i.toDisplayString(h[o.defaultFile.originator]),5),i.createCommentVNode(" 发起,退回不显示状态 "),h[o.defaultFile.approveStatusName]&&h[o.defaultFile.approveStatus]!=o.statusOption.发起&&h[o.defaultFile.approveStatus]!=o.statusOption.退回?(i.openBlock(),i.createElementBlock("span",Nu,i.toDisplayString(h[o.defaultFile.approveStatus]==o.statusOption.评论?" 添加了评论":"("+h[o.defaultFile.approveStatusName]+")"),1)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" 退回状态显示 "),h[o.defaultFile.approveStatus]==o.statusOption.退回?(i.openBlock(),i.createElementBlock("span",Tu,[Vu,i.createTextVNode(i.toDisplayString(h[o.defaultFile.backToRecordNodeName]),1)])):i.createCommentVNode("v-if",!0)])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createCommentVNode(" 待审批节点 "),i.createElementVNode("div",null,[((C=h[o.defaultFile.approvePersonList])==null?void 0:C.length)==1?(i.openBlock(),i.createElementBlock("span",Ru,[i.createTextVNode(i.toDisplayString(h[o.defaultFile.originator])+" ",1),h[o.defaultFile.approveStatus]==o.statusOption.等待?(i.openBlock(),i.createElementBlock("span",Iu,i.toDisplayString(`(${h[o.defaultFile.approveStatusName]})`),1)):i.createCommentVNode("v-if",!0)])):(i.openBlock(),i.createElementBlock("span",Bu,i.toDisplayString(((k=h[o.defaultFile.approvePersonList])==null?void 0:k.length)+"人"+h[o.defaultFile.approveTypeName]),1))])],2112))])])):(i.openBlock(),i.createElementBlock("div",Ou,[Mu,i.createElementVNode("div",Lu,[i.createCommentVNode(" 抄送一人时 "),((B=h[o.defaultFile.approvePersonList])==null?void 0:B.length)==1?(i.openBlock(),i.createElementBlock("span",zu,[i.createElementVNode("span",null,[i.createTextVNode("已抄送给 "),i.createElementVNode("span",Pu,i.toDisplayString(h[o.defaultFile.approvePersonList][0].userName),1)]),i.createElementVNode("span",Fu,i.toDisplayString(h[o.defaultFile.approvePersonList][0].status==="END"?"已读":"未读"),1)])):i.createCommentVNode("v-if",!0),i.createCommentVNode(" 抄送多人时 "),((S=h[o.defaultFile.approvePersonList])==null?void 0:S.length)>1?(i.openBlock(),i.createElementBlock("span",$u,[i.createTextVNode(i.toDisplayString(`已抄送${(x=h[o.defaultFile.approvePersonList])==null?void 0:x.length}人`)+" ",1),h[o.defaultFile.allRead]?(i.openBlock(),i.createElementBlock("span",Hu," 全部已读 ")):(i.openBlock(),i.createElementBlock("span",ju,[h[o.defaultFile.read]?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createElementBlock("span",Uu," 全部未读 ")),h[o.defaultFile.read]?(i.openBlock(),i.createElementBlock("span",Wu,i.toDisplayString(h[o.defaultFile.read])+"人已读 ",1)):i.createCommentVNode("v-if",!0)]))])):i.createCommentVNode("v-if",!0)])]))]),i.createElementVNode("div",Gu,[i.createCommentVNode(" 不是抄送节点,展示时间 "),h[o.defaultFile.nodeType]!=o.nodeType.抄送节点?(i.openBlock(),i.createElementBlock("span",qu,i.toDisplayString(h[o.defaultFile.operationTime]),1)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" 是抄送节点,并且抄送人员大于1时,展示图标 "),h[o.defaultFile.nodeType]==o.nodeType.抄送节点&&((w=h[o.defaultFile.approvePersonList])==null?void 0:w.length)>1?(i.openBlock(),i.createElementBlock("span",Yu,[h!=null&&h.show?(i.openBlock(),i.createElementBlock("i",{key:0,class:"ikapprove ikapprove-a-putongjiantouzhankai",onClick:V=>m(h,"grid")},null,8,Qu)):(i.openBlock(),i.createElementBlock("i",{key:1,onClick:V=>m(h,"none"),class:"ikapprove ikapprove-a-putongjiantoushouqi"},null,8,Zu))])):i.createCommentVNode("v-if",!0)])])])]),i.createElementVNode("div",{class:"bottomBlock",style:i.normalizeStyle({borderLeft:b==o.listData.length-1?"":`2px ${h[o.defaultFile.lineType]} var(--el-border-color)`})},[i.createCommentVNode(" 审批意见 "),h[o.defaultFile.approveOpinion]||h[o.defaultFile.approveStatus]==o.statusOption.加签?(i.openBlock(),i.createElementBlock("div",Ku,[h[o.defaultFile.approveOpinion]?(i.openBlock(),i.createElementBlock("span",Xu,i.toDisplayString(h[o.defaultFile.approveOpinion]),1)):i.createCommentVNode("v-if",!0),h[o.defaultFile.approveStatus]==o.statusOption.加签?(i.openBlock(),i.createElementBlock("span",Ju,[ef,(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(h[o.defaultFile.countersignPer],(V,L)=>(i.openBlock(),i.createElementBlock("span",tf,i.toDisplayString(V==null?void 0:V.userName)+i.toDisplayString(L<h[o.defaultFile.countersignPer].length-1?"、":""),1))),256))])):i.createCommentVNode("v-if",!0)])):i.createCommentVNode("v-if",!0),i.createCommentVNode(" 附件 "),(N=h[o.defaultFile.attachment])!=null&&N.length?(i.openBlock(),i.createElementBlock("div",nf,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(h[o.defaultFile.attachment],(V,L)=>(i.openBlock(),i.createElementBlock("div",{class:"file-card",key:L,onClick:H=>u(V)},[i.createElementVNode("div",{class:i.normalizeClass(d(V[o.defaultFile.attachmentParam.suffix]))},null,2),i.createElementVNode("div",rf,[i.createElementVNode("div",lf,i.toDisplayString(V[o.defaultFile.attachmentParam.originName]),1),i.createElementVNode("div",af,i.toDisplayString((V[o.defaultFile.attachmentParam.size]/1024/1024).toFixed(3))+"MB ",1)])],8,of))),128))])):i.createCommentVNode("v-if",!0),i.createCommentVNode(" 附件图片 "),(D=h[o.defaultFile.attachmentImg])!=null&&D.length?(i.openBlock(),i.createElementBlock("div",sf,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(h[o.defaultFile.attachmentImg],(V,L)=>(i.openBlock(),i.createElementBlock("div",{class:"image",key:L},[i.createVNode(g,{src:p(V),fit:"cover","z-index":"9999","zoom-rate":1.2,alt:p(V)},null,8,["src","alt"])]))),128))])):i.createCommentVNode("v-if",!0),i.createCommentVNode(" 抄送节点或是等待审批状态并且列表长度大于1 "),(h[o.defaultFile.nodeType]==o.nodeType.抄送节点||h[o.defaultFile.approveStatus]==o.statusOption.等待)&&((O=h[o.defaultFile.approvePersonList])==null?void 0:O.length)>1?(i.openBlock(),i.createElementBlock("div",cf,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(h[o.defaultFile.approvePersonList],V=>(i.openBlock(),i.createElementBlock("div",{class:"perBlock",key:V.userName},[i.createElementVNode("span",df,[V.userAvatar?(i.openBlock(),i.createElementBlock("img",{key:0,style:{width:"100%",height:"100%","border-radius":"50%"},src:p(V.userAvatar),alt:""},null,8,uf)):i.createCommentVNode("v-if",!0),i.createElementVNode("span",null,i.toDisplayString(V.userName.slice(-2)),1),V.status==="END"?(i.openBlock(),i.createElementBlock("i",ff)):i.createCommentVNode("v-if",!0)]),i.createElementVNode("div",{class:"main-text",title:V.userName},i.toDisplayString(V.userName),9,pf)]))),128))])):i.createCommentVNode("v-if",!0)],4)],8,yu)}),128))])}}}),c4="",gf=oe(K(mf,[["__scopeId","data-v-41886e6b"]])),_f=t=>(i.pushScopeId("data-v-04ec002f"),t=t(),i.popScopeId(),t),yf={class:"approveProcess",id:"approveProcess"},bf={class:"node"},Ef={class:"nodeBg"},wf={class:"info"},Cf={class:"explain"},kf={key:0},vf={key:0},Sf={key:1},Af={key:0},Df={key:1},xf={class:"personlist"},Nf={style:{width:"58px"}},Tf={class:"avatar"},Vf=["src"],Rf={key:1,class:"nodeBg"},If=["onClick"],Bf=["title"],Of={key:0,class:"sign"},Mf={key:0},Lf=["onClick"],zf={key:0,class:"required"},Pf=_f(()=>i.createElementVNode("i",{class:"ikapprove ikapprove-xinzeng"},null,-1)),Ff={name:"IkApprovalProcess"},$f=i.defineComponent({...Ff,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(t,{expose:e}){const n=t,o=z.ikStore.local.getItem("token")||"Bearer iking",r=i.reactive({nodeType:{发起人节点:"INITIATOR",审批节点:"APPROVE",抄送节点:"CARBON_COPY",办理节点:"DISPOSE",分支节点:"BRANCH",条件节点:"CONDITION",结束节点:"END",...n.defaultNodeType},statusWithoutApprover:{自动通过:"AUTO_PASS",自动拒绝:"AUTO_REJECT",自动转交管理员:"TRANSMIT_TO_MANAGER",指定人员审批:"SPECIFIED_USER",...n.statusWithoutApprover},defaultFile:{id:"id",nodeId:"sortOrder",nodeType:"type",nodeTypeName:"name",approveType:"approveType",multiExecutorType:"multiExecutorType",approveTypeName:"approveTypeName",multiExecutorTypeName:"multiExecutorTypeName",approvalCategory:"approvalCategory",isShowAdd:"initiatorSpecify",isShowAddCopy:"initiatorSpecifyCarbonCopy",executorEmpty:"executorEmpty",executorEmptyStrategy:"executorEmptyStrategy",reserveExecutorUsers:"reserveExecutorUsers",approvePersonList:"executorUsers",initiatorSpecifiedScope:"initiatorSpecifiedScope",initiatorSpecifiedScopeType:"initiatorSpecifiedScopeType",singleApproval:"singleApproval",...n.defaultFieldMap},multiple:!1,chooseType:[]}),l=async m=>{var p;if(m.multiple=!m[r.defaultFile.singleApproval]||m[r.defaultFile.isShowAddCopy],m.handList=m[r.defaultFile.approvePersonList]?m[r.defaultFile.approvePersonList]:[],m[r.defaultFile.nodeType]===r.nodeType.抄送节点)m.handList.forEach(c=>{c.elementName||(c.elementName=c.userName,c.elementId=c.userId,c.avatar=c.userAvatar),c.elementType="USER",c.disabled=!0}),m.chooseType=["user"],m.userList=[],m.depList=[];else switch(m[r.defaultFile.initiatorSpecifiedScopeType]){case"ALL":m.chooseType=["dep_user"],m.userList=[],m.depList=[];break;default:m.chooseType=["user"],m.userList=m.userList?m.userList:(p=m[r.defaultFile.initiatorSpecifiedScope])==null?void 0:p.map(c=>({...c,elementName:(c==null?void 0:c.executorName)||(c==null?void 0:c.userName),elementId:(c==null?void 0:c.executorId)||(c==null?void 0:c.userId),avatar:((c==null?void 0:c.executorAvatar)||(c==null?void 0:c.userAvatar))&&a((c==null?void 0:c.executorAvatar)||(c==null?void 0:c.userAvatar))||"",elementType:"USER"}))}i.nextTick(()=>{m.isShow=!0})},a=m=>{let p="";return m.includes("http")||m.includes("https")?p=m:p=n.loadUrl?`${n.loadUrl}${m}`:`${location.origin+location.pathname}server/oss/download?fileUrl=${m}`,p},s=m=>{let p="";switch(m){case r.nodeType.审批节点:p="ikapprove-shenpi";break;case r.nodeType.办理节点:p="ikapprove-bianji";break;case r.nodeType.抄送节点:p="ikapprove-chaosong";break;default:p="ikapprove-ziyuan"}return`ikapprove ${p}`},d=(m,p)=>{n.dataList[p].handList=m.list;let _=(n.dataList[p][r.defaultFile.approvePersonList]||[]).filter(h=>!h.canDele),g=m.list.map(h=>({...h,userName:h.elementName,userAvatar:h.avatar,canDele:!0}));n.dataList[p][r.defaultFile.approvePersonList]=_.concat(g)},f=(m,p)=>{n.dataList[m][r.defaultFile.approvePersonList].splice(p,1),n.dataList[m].handList=n.dataList[m][r.defaultFile.approvePersonList]};return e({requiredVerification:()=>{let m=!0;return n.dataList.forEach(p=>{var c;p.required=!1,p[r.defaultFile.nodeType]==r.nodeType.审批节点&&p[r.defaultFile.isShowAdd]&&((c=p[r.defaultFile.approvePersonList])!=null&&c.length||(m=!1,p.required=!0))}),m}}),(m,p)=>(i.openBlock(),i.createElementBlock("div",yf,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(n.dataList,(c,_)=>{var g,h,b,y;return i.openBlock(),i.createElementBlock("div",{class:"content",key:c.id},[i.createCommentVNode(" 审批节点类型 "),i.createElementVNode("div",bf,[i.createElementVNode("span",Ef,[i.createElementVNode("i",{class:i.normalizeClass(s(c[r.defaultFile.nodeType]))},null,2)]),i.createElementVNode("div",{class:"line",style:i.normalizeStyle({"border-left":_===n.dataList.length-1?"":"2px solid var(--el-border-color)"})},null,4)]),i.createElementVNode("div",wf,[i.createElementVNode("div",null,[i.createElementVNode("div",null,i.toDisplayString(c[r.defaultFile.nodeTypeName]),1),i.createElementVNode("div",Cf,[i.createCommentVNode(" 抄送节点 "),c[r.defaultFile.nodeType]==r.nodeType.抄送节点?(i.openBlock(),i.createElementBlock("span",kf,[c[r.defaultFile.approvePersonList].length?(i.openBlock(),i.createElementBlock("span",vf,i.toDisplayString(`抄送${c[r.defaultFile.approvePersonList].length}人`),1)):i.createCommentVNode("v-if",!0),c[r.defaultFile.isShowAdd]?(i.openBlock(),i.createElementBlock("span",Sf,",可添加抄送人")):i.createCommentVNode("v-if",!0)])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createCommentVNode(" 审批节点 "),i.createElementVNode("span",null,[i.createCommentVNode(" 存在审批人时 "),(g=c[r.defaultFile.approvePersonList])!=null&&g.length?(i.openBlock(),i.createElementBlock("span",Af,i.toDisplayString(((h=c[r.defaultFile.approvePersonList])==null?void 0:h.length)==1?"1人审批":`${(b=c[r.defaultFile.approvePersonList])==null?void 0:b.length}人${c[r.defaultFile.multiExecutorTypeName]}`),1)):[r.statusWithoutApprover.自动通过,r.statusWithoutApprover.自动拒绝].includes(c[r.defaultFile.approveType])?(i.openBlock(),i.createElementBlock("span",Df,i.toDisplayString(c[r.defaultFile.approveTypeName]),1)):c[r.defaultFile.executorEmptyStrategy]&&c[r.defaultFile.executorEmpty]?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createCommentVNode(" 没有审批人,并且有指定默认审批方式 "),i.createElementVNode("span",null,[i.createTextVNode(" 未找到审批人,"),i.createElementVNode("span",null,i.toDisplayString(c[r.defaultFile.executorEmptyStrategy]==r.statusWithoutApprover.自动通过?"将自动通过":c[r.defaultFile.executorEmptyStrategy]==r.statusWithoutApprover.自动转交管理员?"自动转交给管理员":c[r.defaultFile.executorEmptyStrategy]==r.statusWithoutApprover.指定人员审批?`将自动转给指定成员${c[r.defaultFile.reserveExecutorUsers]&&c[r.defaultFile.reserveExecutorUsers][0].userName}`:""),1)])],2112)):(i.openBlock(),i.createElementBlock("span",{key:3,class:i.normalizeClass(c.required?"warn":"")},"请选择"+i.toDisplayString(c[r.defaultFile.nodeType]===r.nodeType.办理节点?"办理人":"审批人"),3))])],2112))])]),i.createElementVNode("div",xf,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(c[r.defaultFile.approvePersonList],(C,k)=>{var B;return i.openBlock(),i.createElementBlock("div",{class:"list",key:C.userId},[i.createElementVNode("div",Nf,[i.createElementVNode("div",Tf,[C.userAvatar?(i.openBlock(),i.createElementBlock("img",{key:0,src:a(C.userAvatar),alt:""},null,8,Vf)):(i.openBlock(),i.createElementBlock("div",Rf,[i.createElementVNode("span",null,i.toDisplayString(C.userName.slice(-2)),1)])),C.canDele?(i.openBlock(),i.createElementBlock("i",{key:2,onClick:S=>f(_,k),class:"ikapprove ikapprove-shanchu1"},null,8,If)):i.createCommentVNode("v-if",!0)]),i.createElementVNode("div",{class:"name",title:C.userName},i.toDisplayString(C.userName),9,Bf)]),i.createCommentVNode(" 显示添加人按钮,不是单选且已选中一个人的情况,显示图标 "),c[r.defaultFile.isShowAdd]&&!(c[r.defaultFile.singleApproval]&&((B=c[r.defaultFile.approvePersonList])==null?void 0:B.length)==1)?(i.openBlock(),i.createElementBlock("span",Of,[i.createCommentVNode(" 抄送默认 "),c[r.defaultFile.nodeType]==r.nodeType.抄送节点?(i.openBlock(),i.createElementBlock("span",Mf,"+")):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createCommentVNode(" 审批 "),i.createElementVNode("span",null,i.toDisplayString(c[r.defaultFile.multiExecutorType]=="ANY"?"/":c[r.defaultFile.multiExecutorType]=="ALL"?"+":">"),1)],2112))])):i.createCommentVNode("v-if",!0)])}),128)),i.createCommentVNode(" 显示添加人按钮,不是单选且已选中一个人的情况,显示按钮 "),c[r.defaultFile.isShowAdd]&&!(c[r.defaultFile.singleApproval]&&((y=c[r.defaultFile.approvePersonList])==null?void 0:y.length)==1)||c[r.defaultFile.isShowAddCopy]?(i.openBlock(),i.createElementBlock("span",{key:0,class:"addBg",onClick:C=>l(c)},[c[r.defaultFile.nodeType]==r.nodeType.审批节点?(i.openBlock(),i.createElementBlock("span",zf)):i.createCommentVNode("v-if",!0),Pf],8,Lf)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" 添加人组件 "),i.createVNode(i.unref(En),{modelValue:c.handList,"onUpdate:modelValue":C=>c.handList=C,show:c.isShow,"onUpdate:show":C=>c.isShow=C,onOk:C=>d(C,_),multiple:c.multiple,"type-option":{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},api:{methods:"post",url:t.pickerUrl,headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:i.unref(o)}},"dep-list":c.depList,"user-list":c.userList,"organization-list":c.organizationList,"prop-option":{name:"elementName",id:"elementId",type:"elementType",avatar:"avatar"},chooseType:c.chooseType},null,8,["modelValue","onUpdate:modelValue","show","onUpdate:show","onOk","multiple","api","dep-list","user-list","organization-list","chooseType"])])])])}),128))]))}}),u4="",Hf=oe(K($f,[["__scopeId","data-v-04ec002f"]]));var Mr={code:"zh-cn",week:{dow:1,doy:4},buttonText:{prev:"上月",next:"下月",today:"今天",year:"年",month:"月",week:"周",day:"日",list:"日程"},weekText:"周",allDayText:"全天",moreLinkText(t){return"另外 "+t+" 个"},noEventsText:"没有事件显示"},Vn,P,Lr,zr,Ft,gt,Pr,Fr,$r,Rn={},Hr=[],jf=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Je(t,e){for(var n in e)t[n]=e[n];return t}function jr(t){var e=t.parentNode;e&&e.removeChild(t)}function E(t,e,n){var o,r,l,a={};for(l in e)l=="key"?o=e[l]:l=="ref"?r=e[l]:a[l]=e[l];if(arguments.length>2&&(a.children=arguments.length>3?Vn.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(l in t.defaultProps)a[l]===void 0&&(a[l]=t.defaultProps[l]);return In(t,a,o,r,null)}function In(t,e,n,o,r){var l={type:t,props:e,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r??++Lr};return r==null&&P.vnode!=null&&P.vnode(l),l}function be(){return{current:null}}function re(t){return t.children}function Uf(t,e,n,o,r){var l;for(l in n)l==="children"||l==="key"||l in e||Bn(t,l,null,n[l],o);for(l in e)r&&typeof e[l]!="function"||l==="children"||l==="key"||l==="value"||l==="checked"||n[l]===e[l]||Bn(t,l,e[l],n[l],o)}function Ur(t,e,n){e[0]==="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||jf.test(e)?n:n+"px"}function Bn(t,e,n,o,r){var l;e:if(e==="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof o=="string"&&(t.style.cssText=o=""),o)for(e in o)n&&e in n||Ur(t.style,e,"");if(n)for(e in n)o&&n[e]===o[e]||Ur(t.style,e,n[e])}else if(e[0]==="o"&&e[1]==="n")l=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+l]=n,n?o||t.addEventListener(e,l?Gr:Wr,l):t.removeEventListener(e,l?Gr:Wr,l);else if(e!=="dangerouslySetInnerHTML"){if(r)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="width"&&e!=="height"&&e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in t)try{t[e]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&e.indexOf("-")==-1?t.removeAttribute(e):t.setAttribute(e,n))}}function Wr(t){Ft=!0;try{return this.l[t.type+!1](P.event?P.event(t):t)}finally{Ft=!1}}function Gr(t){Ft=!0;try{return this.l[t.type+!0](P.event?P.event(t):t)}finally{Ft=!1}}function ve(t,e){this.props=t,this.context=e}function rn(t,e){if(e==null)return t.__?rn(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?rn(t):null}function qr(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=t.__c.base=n.__e;break}return qr(t)}}function Wf(t){Ft?setTimeout(t):Fr(t)}function Bi(t){(!t.__d&&(t.__d=!0)&>.push(t)&&!On.__r++||Pr!==P.debounceRendering)&&((Pr=P.debounceRendering)||Wf)(On)}function On(){var t,e,n,o,r,l,a,s;for(gt.sort(function(d,f){return d.__v.__b-f.__v.__b});t=gt.shift();)t.__d&&(e=gt.length,o=void 0,r=void 0,a=(l=(n=t).__v).__e,(s=n.__P)&&(o=[],(r=Je({},l)).__v=l.__v+1,Oi(s,l,r,n.__n,s.ownerSVGElement!==void 0,l.__h!=null?[a]:null,o,a??rn(l),l.__h),Xr(o,l),l.__e!=a&&qr(l)),gt.length>e&>.sort(function(d,f){return d.__v.__b-f.__v.__b}));On.__r=0}function Yr(t,e,n,o,r,l,a,s,d,f){var u,m,p,c,_,g,h,b=o&&o.__k||Hr,y=b.length;for(n.__k=[],u=0;u<e.length;u++)if((c=n.__k[u]=(c=e[u])==null||typeof c=="boolean"?null:typeof c=="string"||typeof c=="number"||typeof c=="bigint"?In(null,c,null,null,c):Array.isArray(c)?In(re,{children:c},null,null,null):c.__b>0?In(c.type,c.props,c.key,c.ref?c.ref:null,c.__v):c)!=null){if(c.__=n,c.__b=n.__b+1,(p=b[u])===null||p&&c.key==p.key&&c.type===p.type)b[u]=void 0;else for(m=0;m<y;m++){if((p=b[m])&&c.key==p.key&&c.type===p.type){b[m]=void 0;break}p=null}Oi(t,c,p=p||Rn,r,l,a,s,d,f),_=c.__e,(m=c.ref)&&p.ref!=m&&(h||(h=[]),p.ref&&h.push(p.ref,null,c),h.push(m,c.__c||_,c)),_!=null?(g==null&&(g=_),typeof c.type=="function"&&c.__k===p.__k?c.__d=d=Qr(c,d,t):d=Zr(t,c,p,b,_,d),typeof n.type=="function"&&(n.__d=d)):d&&p.__e==d&&d.parentNode!=t&&(d=rn(p))}for(n.__e=g,u=y;u--;)b[u]!=null&&(typeof n.type=="function"&&b[u].__e!=null&&b[u].__e==n.__d&&(n.__d=Kr(o).nextSibling),el(b[u],b[u]));if(h)for(u=0;u<h.length;u++)Jr(h[u],h[++u],h[++u])}function Qr(t,e,n){for(var o,r=t.__k,l=0;r&&l<r.length;l++)(o=r[l])&&(o.__=t,e=typeof o.type=="function"?Qr(o,e,n):Zr(n,o,o,r,o.__e,e));return e}function Mn(t,e){return e=e||[],t==null||typeof t=="boolean"||(Array.isArray(t)?t.some(function(n){Mn(n,e)}):e.push(t)),e}function Zr(t,e,n,o,r,l){var a,s,d;if(e.__d!==void 0)a=e.__d,e.__d=void 0;else if(n==null||r!=l||r.parentNode==null)e:if(l==null||l.parentNode!==t)t.appendChild(r),a=null;else{for(s=l,d=0;(s=s.nextSibling)&&d<o.length;d+=1)if(s==r)break e;t.insertBefore(r,l),a=l}return a!==void 0?a:r.nextSibling}function Kr(t){var e,n,o;if(t.type==null||typeof t.type=="string")return t.__e;if(t.__k){for(e=t.__k.length-1;e>=0;e--)if((n=t.__k[e])&&(o=Kr(n)))return o}return null}function Oi(t,e,n,o,r,l,a,s,d){var f,u,m,p,c,_,g,h,b,y,C,k,B,S,x,w=e.type;if(e.constructor!==void 0)return null;n.__h!=null&&(d=n.__h,s=e.__e=n.__e,e.__h=null,l=[s]),(f=P.__b)&&f(e);try{e:if(typeof w=="function"){if(h=e.props,b=(f=w.contextType)&&o[f.__c],y=f?b?b.props.value:f.__:o,n.__c?g=(u=e.__c=n.__c).__=u.__E:("prototype"in w&&w.prototype.render?e.__c=u=new w(h,y):(e.__c=u=new ve(h,y),u.constructor=w,u.render=qf),b&&b.sub(u),u.props=h,u.state||(u.state={}),u.context=y,u.__n=o,m=u.__d=!0,u.__h=[],u._sb=[]),u.__s==null&&(u.__s=u.state),w.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Je({},u.__s)),Je(u.__s,w.getDerivedStateFromProps(h,u.__s))),p=u.props,c=u.state,u.__v=e,m)w.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(w.getDerivedStateFromProps==null&&h!==p&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(h,y),!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(h,u.__s,y)===!1||e.__v===n.__v){for(e.__v!==n.__v&&(u.props=h,u.state=u.__s,u.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(N){N&&(N.__=e)}),C=0;C<u._sb.length;C++)u.__h.push(u._sb[C]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(h,u.__s,y),u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(p,c,_)})}if(u.context=y,u.props=h,u.__P=t,k=P.__r,B=0,"prototype"in w&&w.prototype.render){for(u.state=u.__s,u.__d=!1,k&&k(e),f=u.render(u.props,u.state,u.context),S=0;S<u._sb.length;S++)u.__h.push(u._sb[S]);u._sb=[]}else do u.__d=!1,k&&k(e),f=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++B<25);u.state=u.__s,u.getChildContext!=null&&(o=Je(Je({},o),u.getChildContext())),m||u.getSnapshotBeforeUpdate==null||(_=u.getSnapshotBeforeUpdate(p,c)),x=f!=null&&f.type===re&&f.key==null?f.props.children:f,Yr(t,Array.isArray(x)?x:[x],e,n,o,r,l,a,s,d),u.base=e.__e,e.__h=null,u.__h.length&&a.push(u),g&&(u.__E=u.__=null),u.__e=!1}else l==null&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=Gf(n.__e,e,n,o,r,l,a,d);(f=P.diffed)&&f(e)}catch(N){e.__v=null,(d||l!=null)&&(e.__e=s,e.__h=!!d,l[l.indexOf(s)]=null),P.__e(N,e,n)}}function Xr(t,e){P.__c&&P.__c(e,t),t.some(function(n){try{t=n.__h,n.__h=[],t.some(function(o){o.call(n)})}catch(o){P.__e(o,n.__v)}})}function Gf(t,e,n,o,r,l,a,s){var d,f,u,m=n.props,p=e.props,c=e.type,_=0;if(c==="svg"&&(r=!0),l!=null){for(;_<l.length;_++)if((d=l[_])&&"setAttribute"in d==!!c&&(c?d.localName===c:d.nodeType===3)){t=d,l[_]=null;break}}if(t==null){if(c===null)return document.createTextNode(p);t=r?document.createElementNS("http://www.w3.org/2000/svg",c):document.createElement(c,p.is&&p),l=null,s=!1}if(c===null)m===p||s&&t.data===p||(t.data=p);else{if(l=l&&Vn.call(t.childNodes),f=(m=n.props||Rn).dangerouslySetInnerHTML,u=p.dangerouslySetInnerHTML,!s){if(l!=null)for(m={},_=0;_<t.attributes.length;_++)m[t.attributes[_].name]=t.attributes[_].value;(u||f)&&(u&&(f&&u.__html==f.__html||u.__html===t.innerHTML)||(t.innerHTML=u&&u.__html||""))}if(Uf(t,p,m,r,s),u)e.__k=[];else if(_=e.props.children,Yr(t,Array.isArray(_)?_:[_],e,n,o,r&&c!=="foreignObject",l,a,l?l[0]:n.__k&&rn(n,0),s),l!=null)for(_=l.length;_--;)l[_]!=null&&jr(l[_]);s||("value"in p&&(_=p.value)!==void 0&&(_!==t.value||c==="progress"&&!_||c==="option"&&_!==m.value)&&Bn(t,"value",_,m.value,!1),"checked"in p&&(_=p.checked)!==void 0&&_!==t.checked&&Bn(t,"checked",_,m.checked,!1))}return t}function Jr(t,e,n){try{typeof t=="function"?t(e):t.current=e}catch(o){P.__e(o,n)}}function el(t,e,n){var o,r;if(P.unmount&&P.unmount(t),(o=t.ref)&&(o.current&&o.current!==t.__e||Jr(o,null,e)),(o=t.__c)!=null){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(l){P.__e(l,e)}o.base=o.__P=null,t.__c=void 0}if(o=t.__k)for(r=0;r<o.length;r++)o[r]&&el(o[r],e,n||typeof t.type!="function");n||t.__e==null||jr(t.__e),t.__=t.__e=t.__d=void 0}function qf(t,e,n){return this.constructor(t,n)}function ln(t,e,n){var o,r,l;P.__&&P.__(t,e),r=(o=typeof n=="function")?null:n&&n.__k||e.__k,l=[],Oi(e,t=(!o&&n||e).__k=E(re,null,[t]),r||Rn,Rn,e.ownerSVGElement!==void 0,!o&&n?[n]:r?null:e.firstChild?Vn.call(e.childNodes):null,l,!o&&n?n:r?r.__e:e.firstChild,o),Xr(l,t)}function Yf(t,e){var n={__c:e="__cC"+$r++,__:t,Consumer:function(o,r){return o.children(r)},Provider:function(o){var r,l;return this.getChildContext||(r=[],(l={})[e]=this,this.getChildContext=function(){return l},this.shouldComponentUpdate=function(a){this.props.value!==a.value&&r.some(function(s){s.__e=!0,Bi(s)})},this.sub=function(a){r.push(a);var s=a.componentWillUnmount;a.componentWillUnmount=function(){r.splice(r.indexOf(a),1),s&&s.call(a)}}),o.children}};return n.Provider.__=n.Consumer.contextType=n}Vn=Hr.slice,P={__e:function(t,e,n,o){for(var r,l,a;e=e.__;)if((r=e.__c)&&!r.__)try{if((l=r.constructor)&&l.getDerivedStateFromError!=null&&(r.setState(l.getDerivedStateFromError(t)),a=r.__d),r.componentDidCatch!=null&&(r.componentDidCatch(t,o||{}),a=r.__d),a)return r.__E=r}catch(s){t=s}throw t}},Lr=0,zr=function(t){return t!=null&&t.constructor===void 0},Ft=!1,ve.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Je({},this.state),typeof t=="function"&&(t=t(Je({},n),this.props)),t&&Je(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),Bi(this))},ve.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Bi(this))},ve.prototype.render=re,gt=[],Fr=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,On.__r=0,$r=0;var Oe,Mi,tl,nl=[],Li=[],il=P.__b,ol=P.__r,rl=P.diffed,ll=P.__c,al=P.unmount;function Qf(){for(var t;t=nl.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Ln),t.__H.__h.forEach(zi),t.__H.__h=[]}catch(e){t.__H.__h=[],P.__e(e,t.__v)}}P.__b=function(t){Oe=null,il&&il(t)},P.__r=function(t){ol&&ol(t);var e=(Oe=t.__c).__H;e&&(Mi===Oe?(e.__h=[],Oe.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Li,n.__N=n.i=void 0})):(e.__h.forEach(Ln),e.__h.forEach(zi),e.__h=[])),Mi=Oe},P.diffed=function(t){rl&&rl(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(nl.push(e)!==1&&tl===P.requestAnimationFrame||((tl=P.requestAnimationFrame)||Zf)(Qf)),e.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Li&&(n.__=n.__V),n.i=void 0,n.__V=Li})),Mi=Oe=null},P.__c=function(t,e){e.some(function(n){try{n.__h.forEach(Ln),n.__h=n.__h.filter(function(o){return!o.__||zi(o)})}catch(o){e.some(function(r){r.__h&&(r.__h=[])}),e=[],P.__e(o,n.__v)}}),ll&&ll(t,e)},P.unmount=function(t){al&&al(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(o){try{Ln(o)}catch(r){e=r}}),n.__H=void 0,e&&P.__e(e,n.__v))};var sl=typeof requestAnimationFrame=="function";function Zf(t){var e,n=function(){clearTimeout(o),sl&&cancelAnimationFrame(e),setTimeout(t)},o=setTimeout(n,100);sl&&(e=requestAnimationFrame(n))}function Ln(t){var e=Oe,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),Oe=e}function zi(t){var e=Oe;t.__c=t.__(),Oe=e}function Kf(t,e){for(var n in e)t[n]=e[n];return t}function cl(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var o in e)if(o!=="__source"&&t[o]!==e[o])return!0;return!1}function dl(t){this.props=t}(dl.prototype=new ve).isPureReactComponent=!0,dl.prototype.shouldComponentUpdate=function(t,e){return cl(this.props,t)||cl(this.state,e)};var ul=P.__b;P.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),ul&&ul(t)};var Xf=P.__e;P.__e=function(t,e,n,o){if(t.then){for(var r,l=e;l=l.__;)if((r=l.__c)&&r.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),r.__c(t,e)}Xf(t,e,n,o)};var fl=P.unmount;function pl(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(o){typeof o.__c=="function"&&o.__c()}),t.__c.__H=null),(t=Kf({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(o){return pl(o,e,n)})),t}function hl(t,e,n){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(o){return hl(o,e,n)}),t.__c&&t.__c.__P===e&&(t.__e&&n.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=n)),t}function Pi(){this.__u=0,this.t=null,this.__b=null}function ml(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function zn(){this.u=null,this.o=null}P.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),fl&&fl(t)},(Pi.prototype=new ve).__c=function(t,e){var n=e.__c,o=this;o.t==null&&(o.t=[]),o.t.push(n);var r=ml(o.__v),l=!1,a=function(){l||(l=!0,n.__R=null,r?r(s):s())};n.__R=a;var s=function(){if(!--o.__u){if(o.state.__a){var f=o.state.__a;o.__v.__k[0]=hl(f,f.__c.__P,f.__c.__O)}var u;for(o.setState({__a:o.__b=null});u=o.t.pop();)u.forceUpdate()}},d=e.__h===!0;o.__u++||d||o.setState({__a:o.__b=o.__v.__k[0]}),t.then(a,a)},Pi.prototype.componentWillUnmount=function(){this.t=[]},Pi.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=pl(this.__b,n,o.__O=o.__P)}this.__b=null}var r=e.__a&&E(re,null,t.fallback);return r&&(r.__h=null),[E(re,null,e.__a?null:t.children),r]};var gl=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.u=n=n[2]}};function Jf(t){return this.getChildContext=function(){return t.context},t.children}function ep(t){var e=this,n=t.i;e.componentWillUnmount=function(){ln(null,e.l),e.l=null,e.i=null},e.i&&e.i!==n&&e.componentWillUnmount(),t.__v?(e.l||(e.i=n,e.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(o){this.childNodes.push(o),e.i.appendChild(o)},insertBefore:function(o,r){this.childNodes.push(o),e.i.appendChild(o)},removeChild:function(o){this.childNodes.splice(this.childNodes.indexOf(o)>>>1,1),e.i.removeChild(o)}}),ln(E(Jf,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function tp(t,e){var n=E(ep,{__v:t,i:e});return n.containerInfo=e,n}(zn.prototype=new ve).__a=function(t){var e=this,n=ml(e.__v),o=e.o.get(t);return o[0]++,function(r){var l=function(){e.props.revealOrder?(o.push(r),gl(e,t,o)):r()};n?n(l):l()}},zn.prototype.render=function(t){this.u=null,this.o=new Map;var e=Mn(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},zn.prototype.componentDidUpdate=zn.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){gl(t,n,e)})};var np=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,ip=/^(?: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]/,op=typeof document<"u",rp=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};ve.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(ve.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var _l=P.event;function lp(){}function ap(){return this.cancelBubble}function sp(){return this.defaultPrevented}P.event=function(t){return _l&&(t=_l(t)),t.persist=lp,t.isPropagationStopped=ap,t.isDefaultPrevented=sp,t.nativeEvent=t};var yl={configurable:!0,get:function(){return this.class}},bl=P.vnode;P.vnode=function(t){var e=t.type,n=t.props,o=n;if(typeof e=="string"){var r=e.indexOf("-")===-1;for(var l in o={},n){var a=n[l];op&&l==="children"&&e==="noscript"||l==="value"&&"defaultValue"in n&&a==null||(l==="defaultValue"&&"value"in n&&n.value==null?l="value":l==="download"&&a===!0?a="":/ondoubleclick/i.test(l)?l="ondblclick":/^onchange(textarea|input)/i.test(l+e)&&!rp(n.type)?l="oninput":/^onfocus$/i.test(l)?l="onfocusin":/^onblur$/i.test(l)?l="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(l)?l=l.toLowerCase():r&&ip.test(l)?l=l.replace(/[A-Z0-9]/g,"-$&").toLowerCase():a===null&&(a=void 0),/^oninput$/i.test(l)&&(l=l.toLowerCase(),o[l]&&(l="oninputCapture")),o[l]=a)}e=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=Mn(n.children).forEach(function(s){s.props.selected=o.value.indexOf(s.props.value)!=-1})),e=="select"&&o.defaultValue!=null&&(o.value=Mn(n.children).forEach(function(s){s.props.selected=o.multiple?o.defaultValue.indexOf(s.props.value)!=-1:o.defaultValue==s.props.value})),t.props=o,n.class!=n.className&&(yl.enumerable="className"in n,n.className!=null&&(o.class=n.className),Object.defineProperty(o,"className",yl))}t.$$typeof=np,bl&&bl(t)};var El=P.__r;P.__r=function(t){El&&El(t),t.__c};const wl=[],Fi=new Map;function $i(t){wl.push(t),Fi.forEach(e=>{kl(e,t)})}function cp(t){t.isConnected&&Cl(t.getRootNode())}function Cl(t){let e=Fi.get(t);if(!e||!e.isConnected){if(e=t.querySelector("style[data-fullcalendar]"),!e){e=document.createElement("style"),e.setAttribute("data-fullcalendar","");const n=up();n&&(e.nonce=n);const o=t===document?document.head:t,r=t===document?o.querySelector("script,link[rel=stylesheet],link[as=style],style"):o.firstChild;o.insertBefore(e,r)}Fi.set(t,e),dp(e)}}function dp(t){for(const e of wl)kl(t,e)}function kl(t,e){const{sheet:n}=t,o=n.cssRules.length;e.split("}").forEach((r,l)=>{r=r.trim(),r&&n.insertRule(r+"}",o+l)})}let Hi;function up(){return Hi===void 0&&(Hi=fp()),Hi}function fp(){const t=document.querySelector('meta[name="csp-nonce"]');if(t&&t.hasAttribute("content"))return t.getAttribute("content");const e=document.querySelector("script[nonce]");return e&&e.nonce||""}typeof document<"u"&&Cl(document);var pp=':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}';$i(pp);class ji{constructor(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),e==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))}pause(e=""){let{pauseDepths:n}=this;n[e]=(n[e]||0)+1,this.clearTimeout()}resume(e="",n){let{pauseDepths:o}=this;e in o&&(n?delete o[e]:(o[e]-=1,o[e]<=0&&delete o[e]),this.tryDrain())}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}function Ui(t){t.parentNode&&t.parentNode.removeChild(t)}function _e(t,e){if(t.closest)return t.closest(e);if(!document.documentElement.contains(t))return null;do{if(hp(t,e))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===1);return null}function hp(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector).call(t,e)}function mp(t,e){let n=t instanceof HTMLElement?[t]:t,o=[];for(let r=0;r<n.length;r+=1){let l=n[r].querySelectorAll(e);for(let a=0;a<l.length;a+=1)o.push(l[a])}return o}const gp=/(top|left|right|bottom|width|height)$/i;function an(t,e){for(let n in e)vl(t,n,e[n])}function vl(t,e,n){n==null?t.style[e]="":typeof n=="number"&&gp.test(e)?t.style[e]=`${n}px`:t.style[e]=n}function Sl(t){var e,n;return(n=(e=t.composedPath)===null||e===void 0?void 0:e.call(t)[0])!==null&&n!==void 0?n:t.target}let Al=0;function Pn(){return Al+=1,"fc-dom-"+Al}function Fn(t){t.preventDefault()}function _p(t,e){return n=>{let o=_e(n.target,t);o&&e.call(o,n,o)}}function Dl(t,e,n,o){let r=_p(n,o);return t.addEventListener(e,r),()=>{t.removeEventListener(e,r)}}function yp(t,e,n,o){let r;return Dl(t,"mouseover",e,(l,a)=>{if(a!==r){r=a,n(l,a);let s=d=>{r=null,o(d,a),a.removeEventListener("mouseleave",s)};a.addEventListener("mouseleave",s)}})}const xl=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function bp(t,e){let n=o=>{e(o),xl.forEach(r=>{t.removeEventListener(r,n)})};xl.forEach(o=>{t.addEventListener(o,n)})}function Nl(t){return Object.assign({onClick:t},Tl(t))}function Tl(t){return{tabIndex:0,onKeyDown(e){(e.key==="Enter"||e.key===" ")&&(t(e),e.preventDefault())}}}let Vl=0;function _t(){return Vl+=1,String(Vl)}function Wi(){document.body.classList.add("fc-not-allowed")}function Gi(){document.body.classList.remove("fc-not-allowed")}function Ep(t){t.style.userSelect="none",t.style.webkitUserSelect="none",t.addEventListener("selectstart",Fn)}function wp(t){t.style.userSelect="",t.style.webkitUserSelect="",t.removeEventListener("selectstart",Fn)}function Cp(t){t.addEventListener("contextmenu",Fn)}function kp(t){t.removeEventListener("contextmenu",Fn)}function vp(t){let e=[],n=[],o,r;for(typeof t=="string"?n=t.split(/\s*,\s*/):typeof t=="function"?n=[t]:Array.isArray(t)&&(n=t),o=0;o<n.length;o+=1)r=n[o],typeof r=="string"?e.push(r.charAt(0)==="-"?{field:r.substring(1),order:-1}:{field:r,order:1}):typeof r=="function"&&e.push({func:r});return e}function Sp(t,e,n){let o,r;for(o=0;o<n.length;o+=1)if(r=Ap(t,e,n[o]),r)return r;return 0}function Ap(t,e,n){return n.func?n.func(t,e):Dp(t[n.field],e[n.field])*(n.order||1)}function Dp(t,e){return!t&&!e?0:e==null?-1:t==null?1:typeof t=="string"||typeof e=="string"?String(t).localeCompare(String(e)):t-e}function $t(t,e){let n=String(t);return"000".substr(0,e-n.length)+n}function sn(t,e,n){return typeof t=="function"?t(...e):typeof t=="string"?e.reduce((o,r,l)=>o.replace("$"+l,r||""),t):n}function xp(t,e){return t-e}function $n(t){return t%1===0}function Np(t){let e=t.querySelector(".fc-scrollgrid-shrink-frame"),n=t.querySelector(".fc-scrollgrid-shrink-cushion");if(!e)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return t.getBoundingClientRect().width-e.getBoundingClientRect().width+n.getBoundingClientRect().width}const Rl=["years","months","days","milliseconds"],Tp=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function Q(t,e){return typeof t=="string"?Vp(t):typeof t=="object"&&t?Il(t):typeof t=="number"?Il({[e||"milliseconds"]:t}):null}function Vp(t){let e=Tp.exec(t);if(e){let n=e[1]?-1:1;return{years:0,months:0,days:n*(e[2]?parseInt(e[2],10):0),milliseconds:n*((e[3]?parseInt(e[3],10):0)*60*60*1e3+(e[4]?parseInt(e[4],10):0)*60*1e3+(e[5]?parseInt(e[5],10):0)*1e3+(e[6]?parseInt(e[6],10):0))}}return null}function Il(t){let e={years:t.years||t.year||0,months:t.months||t.month||0,days:t.days||t.day||0,milliseconds:(t.hours||t.hour||0)*60*60*1e3+(t.minutes||t.minute||0)*60*1e3+(t.seconds||t.second||0)*1e3+(t.milliseconds||t.millisecond||t.ms||0)},n=t.weeks||t.week;return n&&(e.days+=n*7,e.specifiedWeeks=!0),e}function Rp(t,e){return t.years===e.years&&t.months===e.months&&t.days===e.days&&t.milliseconds===e.milliseconds}function qi(t,e){return{years:t.years+e.years,months:t.months+e.months,days:t.days+e.days,milliseconds:t.milliseconds+e.milliseconds}}function Ip(t,e){return{years:t.years-e.years,months:t.months-e.months,days:t.days-e.days,milliseconds:t.milliseconds-e.milliseconds}}function Bp(t,e){return{years:t.years*e,months:t.months*e,days:t.days*e,milliseconds:t.milliseconds*e}}function Op(t){return Ht(t)/365}function Mp(t){return Ht(t)/30}function Ht(t){return Te(t)/864e5}function Te(t){return t.years*(365*864e5)+t.months*(30*864e5)+t.days*864e5+t.milliseconds}function Yi(t,e){let n=null;for(let o=0;o<Rl.length;o+=1){let r=Rl[o];if(e[r]){let l=t[r]/e[r];if(!$n(l)||n!==null&&n!==l)return null;n=l}else if(t[r])return null}return n}function Qi(t){let e=t.milliseconds;if(e){if(e%1e3!==0)return{unit:"millisecond",value:e};if(e%(1e3*60)!==0)return{unit:"second",value:e/1e3};if(e%(1e3*60*60)!==0)return{unit:"minute",value:e/(1e3*60)};if(e)return{unit:"hour",value:e/(1e3*60*60)}}return t.days?t.specifiedWeeks&&t.days%7===0?{unit:"week",value:t.days/7}:{unit:"day",value:t.days}:t.months?{unit:"month",value:t.months}:t.years?{unit:"year",value:t.years}:{unit:"millisecond",value:0}}function et(t,e,n){if(t===e)return!0;let o=t.length,r;if(o!==e.length)return!1;for(r=0;r<o;r+=1)if(!(n?n(t[r],e[r]):t[r]===e[r]))return!1;return!0}const Lp=["sun","mon","tue","wed","thu","fri","sat"];function Bl(t,e){let n=nt(t);return n[2]+=e*7,we(n)}function ye(t,e){let n=nt(t);return n[2]+=e,we(n)}function tt(t,e){let n=nt(t);return n[6]+=e,we(n)}function zp(t,e){return yt(t,e)/7}function yt(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60*24)}function Pp(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60)}function Fp(t,e){return(e.valueOf()-t.valueOf())/(1e3*60)}function $p(t,e){return(e.valueOf()-t.valueOf())/1e3}function Hp(t,e){let n=ie(t),o=ie(e);return{years:0,months:0,days:Math.round(yt(n,o)),milliseconds:e.valueOf()-o.valueOf()-(t.valueOf()-n.valueOf())}}function jp(t,e){let n=Hn(t,e);return n!==null&&n%7===0?n/7:null}function Hn(t,e){return it(t)===it(e)?Math.round(yt(t,e)):null}function ie(t){return we([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()])}function Up(t){return we([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours()])}function Wp(t){return we([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes()])}function Gp(t){return we([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()])}function qp(t,e,n){let o=t.getUTCFullYear(),r=Zi(t,o,e,n);if(r<1)return Zi(t,o-1,e,n);let l=Zi(t,o+1,e,n);return l>=1?Math.min(r,l):r}function Zi(t,e,n,o){let r=we([e,0,1+Yp(e,n,o)]),l=ie(t),a=Math.round(yt(r,l));return Math.floor(a/7)+1}function Yp(t,e,n){let o=7+e-n;return-((7+we([t,0,o]).getUTCDay()-e)%7)+o-1}function Ol(t){return[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()]}function Ml(t){return new Date(t[0],t[1]||0,t[2]==null?1:t[2],t[3]||0,t[4]||0,t[5]||0)}function nt(t){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()]}function we(t){return t.length===1&&(t=t.concat([0])),new Date(Date.UTC(...t))}function Ll(t){return!isNaN(t.valueOf())}function it(t){return t.getUTCHours()*1e3*60*60+t.getUTCMinutes()*1e3*60+t.getUTCSeconds()*1e3+t.getUTCMilliseconds()}function zl(t,e,n=!1){let o=t.toISOString();return o=o.replace(".000",""),n&&(o=o.replace("T00:00:00Z","")),o.length>10&&(e==null?o=o.replace("Z",""):e!==0&&(o=o.replace("Z",Xi(e,!0)))),o}function Ki(t){return t.toISOString().replace(/T.*$/,"")}function Qp(t){return t.toISOString().match(/^\d{4}-\d{2}/)[0]}function Zp(t){return $t(t.getUTCHours(),2)+":"+$t(t.getUTCMinutes(),2)+":"+$t(t.getUTCSeconds(),2)}function Xi(t,e=!1){let n=t<0?"-":"+",o=Math.abs(t),r=Math.floor(o/60),l=Math.round(o%60);return e?`${n+$t(r,2)}:${$t(l,2)}`:`GMT${n}${r}${l?`:${$t(l,2)}`:""}`}function F(t,e,n){let o,r;return function(...l){if(!o)r=t.apply(this,l);else if(!et(o,l)){n&&n(r);let a=t.apply(this,l);(!e||!e(a,r))&&(r=a)}return o=l,r}}function jn(t,e,n){let o,r;return l=>{if(!o)r=t.call(this,l);else if(!Me(o,l)){n&&n(r);let a=t.call(this,l);(!e||!e(a,r))&&(r=a)}return o=l,r}}const Pl={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Un={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Wn=/\s*([ap])\.?m\.?/i,Kp=/,/g,Xp=/\s+/g,Jp=/\u200e/g,eh=/UTC|GMT/;class th{constructor(e){let n={},o={},r=0;for(let l in e)l in Pl?(o[l]=e[l],r=Math.max(Pl[l],r)):(n[l]=e[l],l in Un&&(r=Math.max(Un[l],r)));this.standardDateProps=n,this.extendedSettings=o,this.severity=r,this.buildFormattingFunc=F(Fl)}format(e,n){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,n)(e)}formatRange(e,n,o,r){let{standardDateProps:l,extendedSettings:a}=this,s=ah(e.marker,n.marker,o.calendarSystem);if(!s)return this.format(e,o);let d=s;d>1&&(l.year==="numeric"||l.year==="2-digit")&&(l.month==="numeric"||l.month==="2-digit")&&(l.day==="numeric"||l.day==="2-digit")&&(d=1);let f=this.format(e,o),u=this.format(n,o);if(f===u)return f;let m=sh(l,d),p=Fl(m,a,o),c=p(e),_=p(n),g=ch(f,c,u,_),h=a.separator||r||o.defaultSeparator||"";return g?g.before+c+h+_+g.after:f+h+u}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 Fl(t,e,n){let o=Object.keys(t).length;return o===1&&t.timeZoneName==="short"?r=>Xi(r.timeZoneOffset):o===0&&e.week?r=>lh(n.computeWeekNumber(r.marker),n.weekText,n.weekTextLong,n.locale,e.week):nh(t,e,n)}function nh(t,e,n){t=Object.assign({},t),e=Object.assign({},e),ih(t,e),t.timeZone="UTC";let o=new Intl.DateTimeFormat(n.locale.codes,t),r;if(e.omitZeroMinute){let l=Object.assign({},t);delete l.minute,r=new Intl.DateTimeFormat(n.locale.codes,l)}return l=>{let{marker:a}=l,s;r&&!a.getUTCMinutes()?s=r:s=o;let d=s.format(a);return oh(d,l,t,e,n)}}function ih(t,e){t.timeZoneName&&(t.hour||(t.hour="2-digit"),t.minute||(t.minute="2-digit")),t.timeZoneName==="long"&&(t.timeZoneName="short"),e.omitZeroMinute&&(t.second||t.millisecond)&&delete e.omitZeroMinute}function oh(t,e,n,o,r){return t=t.replace(Jp,""),n.timeZoneName==="short"&&(t=rh(t,r.timeZone==="UTC"||e.timeZoneOffset==null?"UTC":Xi(e.timeZoneOffset))),o.omitCommas&&(t=t.replace(Kp,"").trim()),o.omitZeroMinute&&(t=t.replace(":00","")),o.meridiem===!1?t=t.replace(Wn,"").trim():o.meridiem==="narrow"?t=t.replace(Wn,(l,a)=>a.toLocaleLowerCase()):o.meridiem==="short"?t=t.replace(Wn,(l,a)=>`${a.toLocaleLowerCase()}m`):o.meridiem==="lowercase"&&(t=t.replace(Wn,l=>l.toLocaleLowerCase())),t=t.replace(Xp," "),t=t.trim(),t}function rh(t,e){let n=!1;return t=t.replace(eh,()=>(n=!0,e)),n||(t+=` ${e}`),t}function lh(t,e,n,o,r){let l=[];return r==="long"?l.push(n):(r==="short"||r==="narrow")&&l.push(e),(r==="long"||r==="short")&&l.push(" "),l.push(o.simpleNumberFormat.format(t)),o.options.direction==="rtl"&&l.reverse(),l.join("")}function ah(t,e,n){return n.getMarkerYear(t)!==n.getMarkerYear(e)?5:n.getMarkerMonth(t)!==n.getMarkerMonth(e)?4:n.getMarkerDay(t)!==n.getMarkerDay(e)?2:it(t)!==it(e)?1:0}function sh(t,e){let n={};for(let o in t)(!(o in Un)||Un[o]<=e)&&(n[o]=t[o]);return n}function ch(t,e,n,o){let r=0;for(;r<t.length;){let l=t.indexOf(e,r);if(l===-1)break;let a=t.substr(0,l);r=l+e.length;let s=t.substr(r),d=0;for(;d<n.length;){let f=n.indexOf(o,d);if(f===-1)break;let u=n.substr(0,f);d=f+o.length;let m=n.substr(d);if(a===u&&s===m)return{before:a,after:s}}}return null}function $l(t,e){let n=e.markerToArray(t.marker);return{marker:t.marker,timeZoneOffset:t.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}function Gn(t,e,n,o){let r=$l(t,n.calendarSystem),l=e?$l(e,n.calendarSystem):null;return{date:r,start:r,end:l,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:o||n.defaultSeparator}}class dh{constructor(e){this.cmdStr=e}format(e,n,o){return n.cmdFormatter(this.cmdStr,Gn(e,null,n,o))}formatRange(e,n,o,r){return o.cmdFormatter(this.cmdStr,Gn(e,n,o,r))}}class uh{constructor(e){this.func=e}format(e,n,o){return this.func(Gn(e,null,n,o))}formatRange(e,n,o,r){return this.func(Gn(e,n,o,r))}}function de(t){return typeof t=="object"&&t?new th(t):typeof t=="string"?new dh(t):typeof t=="function"?new uh(t):null}const Hl={navLinkDayClick:v,navLinkWeekClick:v,duration:Q,bootstrapFontAwesome:v,buttonIcons:v,customButtons:v,defaultAllDayEventDuration:Q,defaultTimedEventDuration:Q,nextDayThreshold:Q,scrollTime:Q,scrollTimeReset:Boolean,slotMinTime:Q,slotMaxTime:Q,dayPopoverFormat:de,slotDuration:Q,snapDuration:Q,headerToolbar:v,footerToolbar:v,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:de,dayHeaderClassNames:v,dayHeaderContent:v,dayHeaderDidMount:v,dayHeaderWillUnmount:v,dayCellClassNames:v,dayCellContent:v,dayCellDidMount:v,dayCellWillUnmount:v,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:v,weekNumbers:Boolean,weekNumberClassNames:v,weekNumberContent:v,weekNumberDidMount:v,weekNumberWillUnmount:v,editable:Boolean,viewClassNames:v,viewDidMount:v,viewWillUnmount:v,nowIndicator:Boolean,nowIndicatorClassNames:v,nowIndicatorContent:v,nowIndicatorDidMount:v,nowIndicatorWillUnmount:v,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:v,locale:v,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:v,eventOrder:vp,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:v,contentHeight:v,direction:String,weekNumberFormat:de,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:v,initialDate:v,now:v,eventDataTransform:v,stickyHeaderDates:v,stickyFooterScrollbar:v,viewHeight:v,defaultAllDay:Boolean,eventSourceFailure:v,eventSourceSuccess:v,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:v,eventConstraint:v,eventAllow:v,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:v,eventContent:v,eventDidMount:v,eventWillUnmount:v,selectConstraint:v,selectOverlap:v,selectAllow:v,droppable:Boolean,unselectCancel:String,slotLabelFormat:v,slotLaneClassNames:v,slotLaneContent:v,slotLaneDidMount:v,slotLaneWillUnmount:v,slotLabelClassNames:v,slotLabelContent:v,slotLabelDidMount:v,slotLabelWillUnmount:v,dayMaxEvents:v,dayMaxEventRows:v,dayMinWidth:Number,slotLabelInterval:Q,allDayText:String,allDayClassNames:v,allDayContent:v,allDayDidMount:v,allDayWillUnmount:v,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:de,rerenderDelay:Number,moreLinkText:v,moreLinkHint:v,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:v,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:Q,hiddenDays:v,fixedWeekCount:Boolean,validRange:v,visibleRange:v,titleFormat:v,eventInteractive:Boolean,noEventsText:String,viewHint:v,navLinkHint:v,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:v,moreLinkClassNames:v,moreLinkContent:v,moreLinkDidMount:v,moreLinkWillUnmount:v,monthStartFormat:de,handleCustomRendering:v,customRenderingMetaMap:v,customRenderingReplaces:Boolean},cn={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"}},jl={datesSet:v,eventsSet:v,eventAdd:v,eventChange:v,eventRemove:v,windowResize:v,eventClick:v,eventMouseEnter:v,eventMouseLeave:v,select:v,unselect:v,loading:v,_unmount:v,_beforeprint:v,_afterprint:v,_noEventDrop:v,_noEventResize:v,_resize:v,_scrollRequest:v},Ul={buttonText:v,buttonHints:v,views:v,plugins:v,initialEvents:v,events:v,eventSources:v},bt={headerToolbar:Et,footerToolbar:Et,buttonText:Et,buttonHints:Et,buttonIcons:Et,dateIncrement:Et,plugins:qn,events:qn,eventSources:qn,resources:qn};function Et(t,e){return typeof t=="object"&&typeof e=="object"&&t&&e?Me(t,e):t===e}function qn(t,e){return Array.isArray(t)&&Array.isArray(e)?et(t,e):t===e}const fh={type:String,component:v,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:v,usesMinMaxTime:Boolean,classNames:v,content:v,didMount:v,willUnmount:v};function Ji(t){return to(t,bt)}function eo(t,e){let n={},o={};for(let r in e)r in t&&(n[r]=e[r](t[r]));for(let r in t)r in e||(o[r]=t[r]);return{refined:n,extra:o}}function v(t){return t}const{hasOwnProperty:Yn}=Object.prototype;function to(t,e){let n={};if(e){for(let o in e)if(e[o]===Et){let r=[];for(let l=t.length-1;l>=0;l-=1){let a=t[l][o];if(typeof a=="object"&&a)r.unshift(a);else if(a!==void 0){n[o]=a;break}}r.length&&(n[o]=to(r))}}for(let o=t.length-1;o>=0;o-=1){let r=t[o];for(let l in r)l in n||(n[l]=r[l])}return n}function wt(t,e){let n={};for(let o in t)e(t[o],o)&&(n[o]=t[o]);return n}function $e(t,e){let n={};for(let o in t)n[o]=e(t[o],o);return n}function Wl(t){let e={};for(let n of t)e[n]=!0;return e}function no(t){let e=[];for(let n in t)e.push(t[n]);return e}function Me(t,e){if(t===e)return!0;for(let n in t)if(Yn.call(t,n)&&!(n in e))return!1;for(let n in e)if(Yn.call(e,n)&&t[n]!==e[n])return!1;return!0}const ph=/^on[A-Z]/;function hh(t,e){const n=io(t,e);for(let o of n)if(!ph.test(o))return!1;return!0}function io(t,e){let n=[];for(let o in t)Yn.call(t,o)&&(o in e||n.push(o));for(let o in e)Yn.call(e,o)&&t[o]!==e[o]&&n.push(o);return n}function oo(t,e,n={}){if(t===e)return!0;for(let o in e)if(!(o in t&&mh(t[o],e[o],n[o])))return!1;for(let o in t)if(!(o in e))return!1;return!0}function mh(t,e,n){return t===e||n===!0?!0:n?n(t,e):!1}function gh(t,e=0,n,o=1){let r=[];n==null&&(n=Object.keys(t).length);for(let l=e;l<n;l+=o){let a=t[l];a!==void 0&&r.push(a)}return r}let Gl={};function _h(t,e){Gl[t]=e}function yh(t){return new Gl[t]}class bh{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return we(e)}markerToArray(e){return nt(e)}}_h("gregory",bh);const Eh=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function wh(t){let e=Eh.exec(t);if(e){let n=new Date(Date.UTC(Number(e[1]),e[3]?Number(e[3])-1:0,Number(e[5]||1),Number(e[7]||0),Number(e[8]||0),Number(e[10]||0),e[12]?+`0.${e[12]}`*1e3:0));if(Ll(n)){let o=null;return e[13]&&(o=(e[15]==="-"?-1:1)*(Number(e[16]||0)*60+Number(e[18]||0))),{marker:n,isTimeUnspecified:!e[6],timeZoneOffset:o}}}return null}class Ch{constructor(e){let n=this.timeZone=e.timeZone,o=n!=="local"&&n!=="UTC";e.namedTimeZoneImpl&&o&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(n)),this.canComputeOffset=!!(!o||this.namedTimeZoneImpl),this.calendarSystem=yh(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,e.weekNumberCalculation==="ISO"&&(this.weekDow=1,this.weekDoy=4),typeof e.firstDay=="number"&&(this.weekDow=e.firstDay),typeof e.weekNumberCalculation=="function"&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=e.weekText!=null?e.weekText:e.locale.options.weekText,this.weekTextLong=(e.weekTextLong!=null?e.weekTextLong:e.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}createMarker(e){let n=this.createMarkerMeta(e);return n===null?null:n.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker(new Date().valueOf()):we(Ol(new Date))}createMarkerMeta(e){if(typeof e=="string")return this.parse(e);let n=null;return typeof e=="number"?n=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(n=this.timestampToMarker(e))):Array.isArray(e)&&(n=we(e)),n===null||!Ll(n)?null:{marker:n,isTimeUnspecified:!1,forcedTzo:null}}parse(e){let n=wh(e);if(n===null)return null;let{marker:o}=n,r=null;return n.timeZoneOffset!==null&&(this.canComputeOffset?o=this.timestampToMarker(o.valueOf()-n.timeZoneOffset*60*1e3):r=n.timeZoneOffset),{marker:o,isTimeUnspecified:n.isTimeUnspecified,forcedTzo:r}}getYear(e){return this.calendarSystem.getMarkerYear(e)}getMonth(e){return this.calendarSystem.getMarkerMonth(e)}getDay(e){return this.calendarSystem.getMarkerDay(e)}add(e,n){let o=this.calendarSystem.markerToArray(e);return o[0]+=n.years,o[1]+=n.months,o[2]+=n.days,o[6]+=n.milliseconds,this.calendarSystem.arrayToMarker(o)}subtract(e,n){let o=this.calendarSystem.markerToArray(e);return o[0]-=n.years,o[1]-=n.months,o[2]-=n.days,o[6]-=n.milliseconds,this.calendarSystem.arrayToMarker(o)}addYears(e,n){let o=this.calendarSystem.markerToArray(e);return o[0]+=n,this.calendarSystem.arrayToMarker(o)}addMonths(e,n){let o=this.calendarSystem.markerToArray(e);return o[1]+=n,this.calendarSystem.arrayToMarker(o)}diffWholeYears(e,n){let{calendarSystem:o}=this;return it(e)===it(n)&&o.getMarkerDay(e)===o.getMarkerDay(n)&&o.getMarkerMonth(e)===o.getMarkerMonth(n)?o.getMarkerYear(n)-o.getMarkerYear(e):null}diffWholeMonths(e,n){let{calendarSystem:o}=this;return it(e)===it(n)&&o.getMarkerDay(e)===o.getMarkerDay(n)?o.getMarkerMonth(n)-o.getMarkerMonth(e)+(o.getMarkerYear(n)-o.getMarkerYear(e))*12:null}greatestWholeUnit(e,n){let o=this.diffWholeYears(e,n);return o!==null?{unit:"year",value:o}:(o=this.diffWholeMonths(e,n),o!==null?{unit:"month",value:o}:(o=jp(e,n),o!==null?{unit:"week",value:o}:(o=Hn(e,n),o!==null?{unit:"day",value:o}:(o=Pp(e,n),$n(o)?{unit:"hour",value:o}:(o=Fp(e,n),$n(o)?{unit:"minute",value:o}:(o=$p(e,n),$n(o)?{unit:"second",value:o}:{unit:"millisecond",value:n.valueOf()-e.valueOf()}))))))}countDurationsBetween(e,n,o){let r;return o.years&&(r=this.diffWholeYears(e,n),r!==null)?r/Op(o):o.months&&(r=this.diffWholeMonths(e,n),r!==null)?r/Mp(o):o.days&&(r=Hn(e,n),r!==null)?r/Ht(o):(n.valueOf()-e.valueOf())/Te(o)}startOf(e,n){return n==="year"?this.startOfYear(e):n==="month"?this.startOfMonth(e):n==="week"?this.startOfWeek(e):n==="day"?ie(e):n==="hour"?Up(e):n==="minute"?Wp(e):n==="second"?Gp(e):null}startOfYear(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])}startOfMonth(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])}startOfWeek(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):qp(e,this.weekDow,this.weekDoy)}format(e,n,o={}){return n.format({marker:e,timeZoneOffset:o.forcedTzo!=null?o.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,n,o,r={}){return r.isEndExclusive&&(n=tt(n,-1)),o.formatRange({marker:e,timeZoneOffset:r.forcedStartTzo!=null?r.forcedStartTzo:this.offsetForMarker(e)},{marker:n,timeZoneOffset:r.forcedEndTzo!=null?r.forcedEndTzo:this.offsetForMarker(n)},this,r.defaultSeparator)}formatIso(e,n={}){let o=null;return n.omitTimeZoneOffset||(n.forcedTzo!=null?o=n.forcedTzo:o=this.offsetForMarker(e)),zl(e,o,n.omitTime)}timestampToMarker(e){return this.timeZone==="local"?we(Ol(new Date(e))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(e):we(this.namedTimeZoneImpl.timestampToArray(e))}offsetForMarker(e){return this.timeZone==="local"?-Ml(nt(e)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(nt(e)):null}toDate(e,n){return this.timeZone==="local"?Ml(nt(e)):this.timeZone==="UTC"?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-this.namedTimeZoneImpl.offsetForArray(nt(e))*1e3*60):new Date(e.valueOf()-(n||0))}}class dn{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let n,o;if(typeof e=="object"&&e){n=Object.assign({},this.iconClasses);for(o in e)n[o]=this.applyIconOverridePrefix(e[o]);this.iconClasses=n}else e===!1&&(this.iconClasses={})}applyIconOverridePrefix(e){let n=this.iconOverridePrefix;return n&&e.indexOf(n)!==0&&(e=n+e),e}getClass(e){return this.classes[e]||""}getIconClass(e,n){let o;return n&&this.rtlIconClasses?o=this.rtlIconClasses[e]||this.iconClasses[e]:o=this.iconClasses[e],o?`${this.baseIconClass} ${o}`:""}getCustomButtonIconClass(e){let n;return this.iconOverrideCustomButtonOption&&(n=e[this.iconOverrideCustomButtonOption],n)?`${this.baseIconClass} ${this.applyIconOverridePrefix(n)}`:""}}dn.prototype.classes={},dn.prototype.iconClasses={},dn.prototype.baseIconClass="",dn.prototype.iconOverridePrefix="";function ql(t){t();let e=P.debounceRendering,n=[];function o(r){n.push(r)}for(P.debounceRendering=o,ln(E(kh,{}),document.createElement("div"));n.length;)n.shift()();P.debounceRendering=e}class kh extends ve{render(){return E("div",{})}componentDidMount(){this.setState({})}}function Yl(t){let e=Yf(t),n=e.Provider;return e.Provider=function(){let o=!this.getChildContext,r=n.apply(this,arguments);if(o){let l=[];this.shouldComponentUpdate=a=>{this.props.value!==a.value&&l.forEach(s=>{s.context=a.value,s.forceUpdate()})},this.sub=a=>{l.push(a);let s=a.componentWillUnmount;a.componentWillUnmount=()=>{l.splice(l.indexOf(a),1),s&&s.call(a)}}}return r},e}class vh{constructor(e,n,o,r){this.execFunc=e,this.emitter=n,this.scrollTime=o,this.scrollTimeReset=r,this.handleScrollRequest=l=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},l),this.drain()},n.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const He=Yl({});function Sh(t,e,n,o,r,l,a,s,d,f,u,m,p){return{dateEnv:r,options:n,pluginHooks:a,emitter:f,dispatch:s,getCurrentData:d,calendarApi:u,viewSpec:t,viewApi:e,dateProfileGenerator:o,theme:l,isRtl:n.direction==="rtl",addResizeHandler(c){f.on("_resize",c)},removeResizeHandler(c){f.off("_resize",c)},createScrollResponder(c){return new vh(c,f,Q(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:m,unregisterInteractiveComponent:p}}class Ct extends ve{shouldComponentUpdate(e,n){return this.debug&&console.log(io(e,this.props),io(n,this.state)),!oo(this.props,e,this.propEquality)||!oo(this.state,n,this.stateEquality)}safeSetState(e){oo(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}Ct.addPropsEquality=Ah,Ct.addStateEquality=Dh,Ct.contextType=He,Ct.prototype.propEquality={},Ct.prototype.stateEquality={};class J extends Ct{}J.contextType=He;function Ah(t){let e=Object.create(this.prototype.propEquality);Object.assign(e,t),this.prototype.propEquality=e}function Dh(t){let e=Object.create(this.prototype.stateEquality);Object.assign(e,t),this.prototype.stateEquality=e}function je(t,e){typeof t=="function"?t(e):t&&(t.current=e)}class ro extends J{constructor(){super(...arguments),this.id=_t(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{const{options:n}=this.context,{generatorName:o}=this.props;(!n.customRenderingReplaces||!lo(o,n))&&this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&je(this.props.elRef,e)}}render(){const{props:e,context:n}=this,{options:o}=n,{customGenerator:r,defaultGenerator:l,renderProps:a}=e,s=Ql(e,[],this.handleEl);let d=!1,f,u=[],m;if(r!=null){const p=typeof r=="function"?r(a,E):r;if(p===!0)d=!0;else{const c=p&&typeof p=="object";c&&"html"in p?s.dangerouslySetInnerHTML={__html:p.html}:c&&"domNodes"in p?u=Array.prototype.slice.call(p.domNodes):(c?zr(p):typeof p!="function")?f=p:m=p}}else d=!lo(e.generatorName,o);return d&&l&&(f=l(a)),this.queuedDomNodes=u,this.currentGeneratorMeta=m,E(e.elTag,s,f)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var n;const{props:o,context:r}=this,{handleCustomRendering:l,customRenderingMetaMap:a}=r.options;if(l){const s=(n=this.currentGeneratorMeta)!==null&&n!==void 0?n:a==null?void 0:a[o.generatorName];s&&l(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:s},o),{elClasses:(o.elClasses||[]).filter(xh)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:n}=this,o=this.base;if(!et(e,n)){n.forEach(Ui);for(let r of e)o.appendChild(r);this.currentDomNodes=e}}}ro.addPropsEquality({elClasses:et,elStyle:Me,elAttrs:hh,renderProps:Me});function lo(t,e){var n;return!!(e.handleCustomRendering&&t&&(!((n=e.customRenderingMetaMap)===null||n===void 0)&&n[t]))}function Ql(t,e,n){const o=Object.assign(Object.assign({},t.elAttrs),{ref:n});return(t.elClasses||e)&&(o.className=(t.elClasses||[]).concat(e||[]).concat(o.className||[]).filter(Boolean).join(" ")),t.elStyle&&(o.style=t.elStyle),o}function xh(t){return!!t}const Zl=Yl(0);class Se extends ve{constructor(){super(...arguments),this.InnerContent=Nh.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(je(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:e}=this,n=Th(e.classNameGenerator,e.renderProps);if(e.children){const o=Ql(e,n,this.handleEl),r=e.children(this.InnerContent,e.renderProps,o);return e.elTag?E(e.elTag,o,r):r}else return E(ro,Object.assign(Object.assign({},e),{elRef:this.handleEl,elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(n),renderId:this.context}))}componentDidMount(){var e,n;this.el?(n=(e=this.props).didMount)===null||n===void 0||n.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var e,n;(n=(e=this.props).willUnmount)===null||n===void 0||n.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}Se.contextType=Zl;function Nh(t,e){const n=t.props;return E(ro,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:t.context},e))}function Th(t,e){const n=typeof t=="function"?t(e):t||[];return typeof n=="string"?[n]:n}class Qn extends J{render(){let{props:e,context:n}=this,{options:o}=n,r={view:n.viewApi};return E(Se,Object.assign({},e,{elTag:e.elTag||"div",elClasses:[...Kl(e.viewSpec),...e.elClasses||[]],renderProps:r,classNameGenerator:o.viewClassNames,generatorName:void 0,didMount:o.viewDidMount,willUnmount:o.viewWillUnmount}),()=>e.children)}}function Kl(t){return[`fc-${t.type}-view`,"fc-view"]}function Vh(t,e){let n=null,o=null;return t.start&&(n=e.createMarker(t.start)),t.end&&(o=e.createMarker(t.end)),!n&&!o||n&&o&&o<n?null:{start:n,end:o}}function Xl(t,e){let n=[],{start:o}=e,r,l;for(t.sort(Rh),r=0;r<t.length;r+=1)l=t[r],l.start>o&&n.push({start:o,end:l.start}),l.end>o&&(o=l.end);return o<e.end&&n.push({start:o,end:e.end}),n}function Rh(t,e){return t.start.valueOf()-e.start.valueOf()}function kt(t,e){let{start:n,end:o}=t,r=null;return e.start!==null&&(n===null?n=e.start:n=new Date(Math.max(n.valueOf(),e.start.valueOf()))),e.end!=null&&(o===null?o=e.end:o=new Date(Math.min(o.valueOf(),e.end.valueOf()))),(n===null||o===null||n<o)&&(r={start:n,end:o}),r}function Ih(t,e){return(t.start===null?null:t.start.valueOf())===(e.start===null?null:e.start.valueOf())&&(t.end===null?null:t.end.valueOf())===(e.end===null?null:e.end.valueOf())}function ao(t,e){return(t.end===null||e.start===null||t.end>e.start)&&(t.start===null||e.end===null||t.start<e.end)}function Zn(t,e){return(t.start===null||e.start!==null&&e.start>=t.start)&&(t.end===null||e.end!==null&&e.end<=t.end)}function Ue(t,e){return(t.start===null||e>=t.start)&&(t.end===null||e<t.end)}function Bh(t,e){return e.start!=null&&t<e.start?e.start:e.end!=null&&t>=e.end?new Date(e.end.valueOf()-1):t}function Jl(t){let e=Math.floor(yt(t.start,t.end))||1,n=ie(t.start),o=ye(n,e);return{start:n,end:o}}function ea(t,e=Q(0)){let n=null,o=null;if(t.end){o=ie(t.end);let r=t.end.valueOf()-o.valueOf();r&&r>=Te(e)&&(o=ye(o,1))}return t.start&&(n=ie(t.start),o&&o<=n&&(o=ye(n,1))),{start:n,end:o}}function jt(t,e,n,o){return o==="year"?Q(n.diffWholeYears(t,e),"year"):o==="month"?Q(n.diffWholeMonths(t,e),"month"):Hp(t,e)}function Oh(t,e){switch(e.type){case"CHANGE_DATE":return e.dateMarker;default:return t}}function Mh(t,e){let n=t.initialDate;return n!=null?e.createMarker(n):un(t.now,e)}function un(t,e){return typeof t=="function"&&(t=t()),t==null?e.createNowMarker():e.createMarker(t)}class ta{constructor(e){this.props=e,this.nowDate=un(e.nowInput,e.dateEnv),this.initHiddenDays()}buildPrev(e,n,o){let{dateEnv:r}=this.props,l=r.subtract(r.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(l,-1,o)}buildNext(e,n,o){let{dateEnv:r}=this.props,l=r.add(r.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(l,1,o)}build(e,n,o=!0){let{props:r}=this,l,a,s,d,f,u;return l=this.buildValidRange(),l=this.trimHiddenDays(l),o&&(e=Bh(e,l)),a=this.buildCurrentRangeInfo(e,n),s=/^(year|month|week|day)$/.test(a.unit),d=this.buildRenderRange(this.trimHiddenDays(a.range),a.unit,s),d=this.trimHiddenDays(d),f=d,r.showNonCurrentDates||(f=kt(f,a.range)),f=this.adjustActiveRange(f),f=kt(f,l),u=ao(a.range,l),Ue(d,e)||(e=d.start),{currentDate:e,validRange:l,currentRange:a.range,currentRangeUnit:a.unit,isRangeAllDay:s,activeRange:f,renderRange:d,slotMinTime:r.slotMinTime,slotMaxTime:r.slotMaxTime,isValid:u,dateIncrement:this.buildDateIncrement(a.duration)}}buildValidRange(){let e=this.props.validRangeInput,n=typeof e=="function"?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(n)||{start:null,end:null}}buildCurrentRangeInfo(e,n){let{props:o}=this,r=null,l=null,a=null,s;return o.duration?(r=o.duration,l=o.durationUnit,a=this.buildRangeFromDuration(e,n,r,l)):(s=this.props.dayCount)?(l="day",a=this.buildRangeFromDayCount(e,n,s)):(a=this.buildCustomVisibleRange(e))?l=o.dateEnv.greatestWholeUnit(a.start,a.end).unit:(r=this.getFallbackDuration(),l=Qi(r).unit,a=this.buildRangeFromDuration(e,n,r,l)),{duration:r,unit:l,range:a}}getFallbackDuration(){return Q({day:1})}adjustActiveRange(e){let{dateEnv:n,usesMinMaxTime:o,slotMinTime:r,slotMaxTime:l}=this.props,{start:a,end:s}=e;return o&&(Ht(r)<0&&(a=ie(a),a=n.add(a,r)),Ht(l)>1&&(s=ie(s),s=ye(s,-1),s=n.add(s,l))),{start:a,end:s}}buildRangeFromDuration(e,n,o,r){let{dateEnv:l,dateAlignment:a}=this.props,s,d,f;if(!a){let{dateIncrement:m}=this.props;m&&Te(m)<Te(o)?a=Qi(m).unit:a=r}Ht(o)<=1&&this.isHiddenDay(s)&&(s=this.skipHiddenDays(s,n),s=ie(s));function u(){s=l.startOf(e,a),d=l.add(s,o),f={start:s,end:d}}return u(),this.trimHiddenDays(f)||(e=this.skipHiddenDays(e,n),u()),f}buildRangeFromDayCount(e,n,o){let{dateEnv:r,dateAlignment:l}=this.props,a=0,s=e,d;l&&(s=r.startOf(s,l)),s=ie(s),s=this.skipHiddenDays(s,n),d=s;do d=ye(d,1),this.isHiddenDay(d)||(a+=1);while(a<o);return{start:s,end:d}}buildCustomVisibleRange(e){let{props:n}=this,o=n.visibleRangeInput,r=typeof o=="function"?o.call(n.calendarApi,n.dateEnv.toDate(e)):o,l=this.refineRange(r);return l&&(l.start==null||l.end==null)?null:l}buildRenderRange(e,n,o){return e}buildDateIncrement(e){let{dateIncrement:n}=this.props,o;return n||((o=this.props.dateAlignment)?Q(1,o):e||Q({days:1}))}refineRange(e){if(e){let n=Vh(e,this.props.dateEnv);return n&&(n=ea(n)),n}return null}initHiddenDays(){let e=this.props.hiddenDays||[],n=[],o=0,r;for(this.props.weekends===!1&&e.push(0,6),r=0;r<7;r+=1)(n[r]=e.indexOf(r)!==-1)||(o+=1);if(!o)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n}trimHiddenDays(e){let{start:n,end:o}=e;return n&&(n=this.skipHiddenDays(n)),o&&(o=this.skipHiddenDays(o,-1,!0)),n==null||o==null||n<o?{start:n,end:o}:null}isHiddenDay(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]}skipHiddenDays(e,n=1,o=!1){for(;this.isHiddenDayHash[(e.getUTCDay()+(o?n:0)+7)%7];)e=ye(e,n);return e}}function so(t,e,n,o){return{instanceId:_t(),defId:t,range:e,forcedStartTzo:n??null,forcedEndTzo:o??null}}function Lh(t,e,n,o){for(let r=0;r<o.length;r+=1){let l=o[r].parse(t,n);if(l){let{allDay:a}=t;return a==null&&(a=e,a==null&&(a=l.allDayGuess,a==null&&(a=!1))),{allDay:a,duration:l.duration,typeData:l.typeData,typeId:r}}}return null}function vt(t,e,n){let{dateEnv:o,pluginHooks:r,options:l}=n,{defs:a,instances:s}=t;s=wt(s,d=>!a[d.defId].recurringDef);for(let d in a){let f=a[d];if(f.recurringDef){let{duration:u}=f.recurringDef;u||(u=f.allDay?l.defaultAllDayEventDuration:l.defaultTimedEventDuration);let m=zh(f,u,e,o,r.recurringTypes);for(let p of m){let c=so(d,{start:p,end:o.add(p,u)});s[c.instanceId]=c}}}return{defs:a,instances:s}}function zh(t,e,n,o,r){let a=r[t.recurringDef.typeId].expand(t.recurringDef.typeData,{start:o.subtract(n.start,e),end:n.end},o);return t.allDay&&(a=a.map(ie)),a}const Kn={id:String,groupId:String,title:String,url:String,interactive:Boolean},na={start:v,end:v,date:v,allDay:Boolean},Ph=Object.assign(Object.assign(Object.assign({},Kn),na),{extendedProps:v});function ia(t,e,n,o,r=co(n),l,a){let{refined:s,extra:d}=oa(t,n,r),f=$h(e,n),u=Lh(s,f,n.dateEnv,n.pluginHooks.recurringTypes);if(u){let p=uo(s,d,e?e.sourceId:"",u.allDay,!!u.duration,n,l);return p.recurringDef={typeId:u.typeId,typeData:u.typeData,duration:u.duration},{def:p,instance:null}}let m=Fh(s,f,n,o);if(m){let p=uo(s,d,e?e.sourceId:"",m.allDay,m.hasEnd,n,l),c=so(p.defId,m.range,m.forcedStartTzo,m.forcedEndTzo);return a&&p.publicId&&a[p.publicId]&&(c.instanceId=a[p.publicId]),{def:p,instance:c}}return null}function oa(t,e,n=co(e)){return eo(t,n)}function co(t){return Object.assign(Object.assign(Object.assign({},Jn),Ph),t.pluginHooks.eventRefiners)}function uo(t,e,n,o,r,l,a){let s={title:t.title||"",groupId:t.groupId||"",publicId:t.id||"",url:t.url||"",recurringDef:null,defId:(a&&t.id?a[t.id]:"")||_t(),sourceId:n,allDay:o,hasEnd:r,interactive:t.interactive,ui:ei(t,l),extendedProps:Object.assign(Object.assign({},t.extendedProps||{}),e)};for(let d of l.pluginHooks.eventDefMemberAdders)Object.assign(s,d(t));return Object.freeze(s.ui.classNames),Object.freeze(s.extendedProps),s}function Fh(t,e,n,o){let{allDay:r}=t,l,a=null,s=!1,d,f=null,u=t.start!=null?t.start:t.date;if(l=n.dateEnv.createMarkerMeta(u),l)a=l.marker;else if(!o)return null;return t.end!=null&&(d=n.dateEnv.createMarkerMeta(t.end)),r==null&&(e!=null?r=e:r=(!l||l.isTimeUnspecified)&&(!d||d.isTimeUnspecified)),r&&a&&(a=ie(a)),d&&(f=d.marker,r&&(f=ie(f)),a&&f<=a&&(f=null)),f?s=!0:o||(s=n.options.forceEventDuration||!1,f=n.dateEnv.add(a,r?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:r,hasEnd:s,range:{start:a,end:f},forcedStartTzo:l?l.forcedTzo:null,forcedEndTzo:d?d.forcedTzo:null}}function $h(t,e){let n=null;return t&&(n=t.defaultAllDay),n==null&&(n=e.options.defaultAllDay),n}function fn(t,e,n,o,r,l){let a=Ae(),s=co(n);for(let d of t){let f=ia(d,e,n,o,s,r,l);f&&fo(f,a)}return a}function fo(t,e=Ae()){return e.defs[t.def.defId]=t.def,t.instance&&(e.instances[t.instance.instanceId]=t.instance),e}function po(t,e){let n=t.instances[e];if(n){let o=t.defs[n.defId],r=Xn(t,l=>Hh(o,l));return r.defs[o.defId]=o,r.instances[n.instanceId]=n,r}return Ae()}function Hh(t,e){return!!(t.groupId&&t.groupId===e.groupId)}function Ae(){return{defs:{},instances:{}}}function ho(t,e){return{defs:Object.assign(Object.assign({},t.defs),e.defs),instances:Object.assign(Object.assign({},t.instances),e.instances)}}function Xn(t,e){let n=wt(t.defs,e),o=wt(t.instances,r=>n[r.defId]);return{defs:n,instances:o}}function jh(t,e){let{defs:n,instances:o}=t,r={},l={};for(let a in n)e.defs[a]||(r[a]=n[a]);for(let a in o)!e.instances[a]&&r[o[a].defId]&&(l[a]=o[a]);return{defs:r,instances:l}}function Uh(t,e){return Array.isArray(t)?fn(t,null,e,!0):typeof t=="object"&&t?fn([t],null,e,!0):t!=null?String(t):null}function ra(t){return Array.isArray(t)?t:typeof t=="string"?t.split(/\s+/):[]}const Jn={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:v,overlap:v,allow:v,className:ra,classNames:ra,color:String,backgroundColor:String,borderColor:String,textColor:String},Wh={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function ei(t,e){let n=Uh(t.constraint,e);return{display:t.display||null,startEditable:t.startEditable!=null?t.startEditable:t.editable,durationEditable:t.durationEditable!=null?t.durationEditable:t.editable,constraints:n!=null?[n]:[],overlap:t.overlap!=null?t.overlap:null,allows:t.allow!=null?[t.allow]:[],backgroundColor:t.backgroundColor||t.color||"",borderColor:t.borderColor||t.color||"",textColor:t.textColor||"",classNames:(t.className||[]).concat(t.classNames||[])}}function la(t){return t.reduce(Gh,Wh)}function Gh(t,e){return{display:e.display!=null?e.display:t.display,startEditable:e.startEditable!=null?e.startEditable:t.startEditable,durationEditable:e.durationEditable!=null?e.durationEditable:t.durationEditable,constraints:t.constraints.concat(e.constraints),overlap:typeof e.overlap=="boolean"?e.overlap:t.overlap,allows:t.allows.concat(e.allows),backgroundColor:e.backgroundColor||t.backgroundColor,borderColor:e.borderColor||t.borderColor,textColor:e.textColor||t.textColor,classNames:t.classNames.concat(e.classNames)}}const qh={id:String,defaultAllDay:Boolean,url:String,format:String,events:v,eventDataTransform:v,success:v,failure:v};function aa(t,e,n=sa(e)){let o;if(typeof t=="string"?o={url:t}:typeof t=="function"||Array.isArray(t)?o={events:t}:typeof t=="object"&&t&&(o=t),o){let{refined:r,extra:l}=eo(o,n),a=Yh(r,e);if(a)return{_raw:t,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:r.defaultAllDay,eventDataTransform:r.eventDataTransform,success:r.success,failure:r.failure,publicId:r.id||"",sourceId:_t(),sourceDefId:a.sourceDefId,meta:a.meta,ui:ei(r,e),extendedProps:l}}return null}function sa(t){return Object.assign(Object.assign(Object.assign({},Jn),qh),t.pluginHooks.eventSourceRefiners)}function Yh(t,e){let n=e.pluginHooks.eventSourceDefs;for(let o=n.length-1;o>=0;o-=1){let l=n[o].parseMeta(t);if(l)return{sourceDefId:o,meta:l}}return null}function Qh(t,e,n,o,r){switch(e.type){case"RECEIVE_EVENTS":return Zh(t,n[e.sourceId],e.fetchId,e.fetchRange,e.rawEvents,r);case"RESET_RAW_EVENTS":return Kh(t,n[e.sourceId],e.rawEvents,o.activeRange,r);case"ADD_EVENTS":return Xh(t,e.eventStore,o?o.activeRange:null,r);case"RESET_EVENTS":return e.eventStore;case"MERGE_EVENTS":return ho(t,e.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return o?vt(t,o.activeRange,r):t;case"REMOVE_EVENTS":return jh(t,e.eventStore);case"REMOVE_EVENT_SOURCE":return fa(t,e.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Xn(t,l=>!l.sourceId);case"REMOVE_ALL_EVENTS":return Ae();default:return t}}function Zh(t,e,n,o,r,l){if(e&&n===e.latestFetchId){let a=fn(ca(r,e,l),e,l);return o&&(a=vt(a,o,l)),ho(fa(t,e.sourceId),a)}return t}function Kh(t,e,n,o,r){const{defIdMap:l,instanceIdMap:a}=em(t);let s=fn(ca(n,e,r),e,r,!1,l,a);return vt(s,o,r)}function ca(t,e,n){let o=n.options.eventDataTransform,r=e?e.eventDataTransform:null;return r&&(t=da(t,r)),o&&(t=da(t,o)),t}function da(t,e){let n;if(!e)n=t;else{n=[];for(let o of t){let r=e(o);r?n.push(r):r==null&&n.push(o)}}return n}function Xh(t,e,n,o){return n&&(e=vt(e,n,o)),ho(t,e)}function ua(t,e,n){let{defs:o}=t,r=$e(t.instances,l=>o[l.defId].allDay?l:Object.assign(Object.assign({},l),{range:{start:n.createMarker(e.toDate(l.range.start,l.forcedStartTzo)),end:n.createMarker(e.toDate(l.range.end,l.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:l.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:l.forcedEndTzo}));return{defs:o,instances:r}}function fa(t,e){return Xn(t,n=>n.sourceId!==e)}function Jh(t,e){return{defs:t.defs,instances:wt(t.instances,n=>!e[n.instanceId])}}function em(t){const{defs:e,instances:n}=t,o={},r={};for(let l in e){const a=e[l],{publicId:s}=a;s&&(o[s]=l)}for(let l in n){const a=n[l],s=e[a.defId],{publicId:d}=s;d&&(r[d]=l)}return{defIdMap:o,instanceIdMap:r}}class ti{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,n){tm(this.handlers,e,n)}off(e,n){nm(this.handlers,e,n)}trigger(e,...n){let o=this.handlers[e]||[],r=this.options&&this.options[e],l=[].concat(r||[],o);for(let a of l)a.apply(this.thisContext,n)}hasHandlers(e){return!!(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}function tm(t,e,n){(t[e]||(t[e]=[])).push(n)}function nm(t,e,n){n?t[e]&&(t[e]=t[e].filter(o=>o!==n)):delete t[e]}const im={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function om(t,e){return fn(rm(t),null,e)}function rm(t){let e;return t===!0?e=[{}]:Array.isArray(t)?e=t.filter(n=>n.daysOfWeek):typeof t=="object"&&t?e=[t]:e=[],e=e.map(n=>Object.assign(Object.assign({},im),n)),e}function pa(t,e,n){n.emitter.trigger("select",Object.assign(Object.assign({},mo(t,n)),{jsEvent:e?e.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function lm(t,e){e.emitter.trigger("unselect",{jsEvent:t?t.origEvent:null,view:e.viewApi||e.calendarApi.view})}function mo(t,e){let n={};for(let o of e.pluginHooks.dateSpanTransforms)Object.assign(n,o(t,e));return Object.assign(n,Em(t,e.dateEnv)),n}function ha(t,e,n){let{dateEnv:o,options:r}=n,l=e;return t?(l=ie(l),l=o.add(l,r.defaultAllDayEventDuration)):l=o.add(l,r.defaultTimedEventDuration),l}function go(t,e,n,o){let r=ni(t.defs,e),l=Ae();for(let a in t.defs){let s=t.defs[a];l.defs[a]=am(s,r[a],n,o)}for(let a in t.instances){let s=t.instances[a],d=l.defs[s.defId];l.instances[a]=sm(s,d,r[s.defId],n,o)}return l}function am(t,e,n,o){let r=n.standardProps||{};r.hasEnd==null&&e.durationEditable&&(n.startDelta||n.endDelta)&&(r.hasEnd=!0);let l=Object.assign(Object.assign(Object.assign({},t),r),{ui:Object.assign(Object.assign({},t.ui),r.ui)});n.extendedProps&&(l.extendedProps=Object.assign(Object.assign({},l.extendedProps),n.extendedProps));for(let a of o.pluginHooks.eventDefMutationAppliers)a(l,n,o);return!l.hasEnd&&o.options.forceEventDuration&&(l.hasEnd=!0),l}function sm(t,e,n,o,r){let{dateEnv:l}=r,a=o.standardProps&&o.standardProps.allDay===!0,s=o.standardProps&&o.standardProps.hasEnd===!1,d=Object.assign({},t);return a&&(d.range=Jl(d.range)),o.datesDelta&&n.startEditable&&(d.range={start:l.add(d.range.start,o.datesDelta),end:l.add(d.range.end,o.datesDelta)}),o.startDelta&&n.durationEditable&&(d.range={start:l.add(d.range.start,o.startDelta),end:d.range.end}),o.endDelta&&n.durationEditable&&(d.range={start:d.range.start,end:l.add(d.range.end,o.endDelta)}),s&&(d.range={start:d.range.start,end:ha(e.allDay,d.range.start,r)}),e.allDay&&(d.range={start:ie(d.range.start),end:ie(d.range.end)}),d.range.end<d.range.start&&(d.range.end=ha(e.allDay,d.range.start,r)),d}class Ut{constructor(e,n){this.context=e,this.internalEventSource=n}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 se{constructor(e,n,o){this._context=e,this._def=n,this._instance=o||null}setProp(e,n){if(e in na)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(e==="id")n=Kn[e](n),this.mutate({standardProps:{publicId:n}});else if(e in Kn)n=Kn[e](n),this.mutate({standardProps:{[e]:n}});else if(e in Jn){let o=Jn[e](n);e==="color"?o={backgroundColor:n,borderColor:n}:e==="editable"?o={startEditable:n,durationEditable:n}:o={[e]:n},this.mutate({standardProps:{ui:o}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,n){this.mutate({extendedProps:{[e]:n}})}setStart(e,n={}){let{dateEnv:o}=this._context,r=o.createMarker(e);if(r&&this._instance){let l=this._instance.range,a=jt(l.start,r,o,n.granularity);n.maintainDuration?this.mutate({datesDelta:a}):this.mutate({startDelta:a})}}setEnd(e,n={}){let{dateEnv:o}=this._context,r;if(!(e!=null&&(r=o.createMarker(e),!r))&&this._instance)if(r){let l=jt(this._instance.range.end,r,o,n.granularity);this.mutate({endDelta:l})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,n,o={}){let{dateEnv:r}=this._context,l={allDay:o.allDay},a=r.createMarker(e),s;if(a&&!(n!=null&&(s=r.createMarker(n),!s))&&this._instance){let d=this._instance.range;o.allDay===!0&&(d=Jl(d));let f=jt(d.start,a,r,o.granularity);if(s){let u=jt(d.end,s,r,o.granularity);Rp(f,u)?this.mutate({datesDelta:f,standardProps:l}):this.mutate({startDelta:f,endDelta:u,standardProps:l})}else l.hasEnd=!1,this.mutate({datesDelta:f,standardProps:l})}}moveStart(e){let n=Q(e);n&&this.mutate({startDelta:n})}moveEnd(e){let n=Q(e);n&&this.mutate({endDelta:n})}moveDates(e){let n=Q(e);n&&this.mutate({datesDelta:n})}setAllDay(e,n={}){let o={allDay:e},{maintainDuration:r}=n;r==null&&(r=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(o.hasEnd=r),this.mutate({standardProps:o})}formatRange(e){let{dateEnv:n}=this._context,o=this._instance,r=de(e);return this._def.hasEnd?n.formatRange(o.range.start,o.range.end,r,{forcedStartTzo:o.forcedStartTzo,forcedEndTzo:o.forcedEndTzo}):n.format(o.range.start,r,{forcedTzo:o.forcedStartTzo})}mutate(e){let n=this._instance;if(n){let o=this._def,r=this._context,{eventStore:l}=r.getCurrentData(),a=po(l,n.instanceId);a=go(a,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,r);let d=new se(r,o,n);this._def=a.defs[o.defId],this._instance=a.instances[n.instanceId],r.dispatch({type:"MERGE_EVENTS",eventStore:a}),r.emitter.trigger("eventChange",{oldEvent:d,event:this,relatedEvents:St(a,r,n),revert(){r.dispatch({type:"RESET_EVENTS",eventStore:l})}})}}remove(){let e=this._context,n=ma(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:n}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:n})}})}get source(){let{sourceId:e}=this._def;return e?new Ut(this._context,this._context.getCurrentData().eventSources[e]):null}get start(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null}get end(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null}get startStr(){let e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""}get endStr(){let e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo}):""}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||"auto"}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(e={}){let n=this._def,{ui:o}=n,{startStr:r,endStr:l}=this,a={allDay:n.allDay};return n.title&&(a.title=n.title),r&&(a.start=r),l&&(a.end=l),n.publicId&&(a.id=n.publicId),n.groupId&&(a.groupId=n.groupId),n.url&&(a.url=n.url),o.display&&o.display!=="auto"&&(a.display=o.display),e.collapseColor&&o.backgroundColor&&o.backgroundColor===o.borderColor?a.color=o.backgroundColor:(o.backgroundColor&&(a.backgroundColor=o.backgroundColor),o.borderColor&&(a.borderColor=o.borderColor)),o.textColor&&(a.textColor=o.textColor),o.classNames.length&&(a.classNames=o.classNames),Object.keys(n.extendedProps).length&&(e.collapseExtendedProps?Object.assign(a,n.extendedProps):a.extendedProps=n.extendedProps),a}toJSON(){return this.toPlainObject()}}function ma(t){let e=t._def,n=t._instance;return{defs:{[e.defId]:e},instances:n?{[n.instanceId]:n}:{}}}function St(t,e,n){let{defs:o,instances:r}=t,l=[],a=n?n.instanceId:"";for(let s in r){let d=r[s],f=o[d.defId];d.instanceId!==a&&l.push(new se(e,f,d))}return l}function ga(t,e,n,o){let r={},l={},a={},s=[],d=[],f=ni(t.defs,e);for(let u in t.defs){let m=t.defs[u];f[m.defId].display==="inverse-background"&&(m.groupId?(r[m.groupId]=[],a[m.groupId]||(a[m.groupId]=m)):l[u]=[])}for(let u in t.instances){let m=t.instances[u],p=t.defs[m.defId],c=f[p.defId],_=m.range,g=!p.allDay&&o?ea(_,o):_,h=kt(g,n);h&&(c.display==="inverse-background"?p.groupId?r[p.groupId].push(h):l[m.defId].push(h):c.display!=="none"&&(c.display==="background"?s:d).push({def:p,ui:c,instance:m,range:h,isStart:g.start&&g.start.valueOf()===h.start.valueOf(),isEnd:g.end&&g.end.valueOf()===h.end.valueOf()}))}for(let u in r){let m=r[u],p=Xl(m,n);for(let c of p){let _=a[u],g=f[_.defId];s.push({def:_,ui:g,instance:null,range:c,isStart:!1,isEnd:!1})}}for(let u in l){let m=l[u],p=Xl(m,n);for(let c of p)s.push({def:t.defs[u],ui:f[u],instance:null,range:c,isStart:!1,isEnd:!1})}return{bg:s,fg:d}}function cm(t){return t.ui.display==="background"||t.ui.display==="inverse-background"}function _a(t,e){t.fcSeg=e}function Wt(t){return t.fcSeg||t.parentNode.fcSeg||null}function ni(t,e){return $e(t,n=>ya(n,e))}function ya(t,e){let n=[];return e[""]&&n.push(e[""]),e[t.defId]&&n.push(e[t.defId]),n.push(t.ui),la(n)}function ba(t,e){let n=t.map(dm);return n.sort((o,r)=>Sp(o,r,e)),n.map(o=>o._seg)}function dm(t){let{eventRange:e}=t,n=e.def,o=e.instance?e.instance.range:e.range,r=o.start?o.start.valueOf():0,l=o.end?o.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:r,end:l,duration:l-r,allDay:Number(n.allDay),_seg:t})}function um(t,e){let{pluginHooks:n}=e,o=n.isDraggableTransformers,{def:r,ui:l}=t.eventRange,a=l.startEditable;for(let s of o)a=s(a,r,l,e);return a}function fm(t,e){return t.isStart&&t.eventRange.ui.durationEditable&&e.options.eventResizableFromStart}function pm(t,e){return t.isEnd&&t.eventRange.ui.durationEditable}function Ea(t,e,n,o,r,l,a){let{dateEnv:s,options:d}=n,{displayEventTime:f,displayEventEnd:u}=d,m=t.eventRange.def,p=t.eventRange.instance;f==null&&(f=o!==!1),u==null&&(u=r!==!1);let c=p.range.start,_=p.range.end,g=l||t.start||t.eventRange.range.start,h=a||t.end||t.eventRange.range.end,b=ie(c).valueOf()===ie(g).valueOf(),y=ie(tt(_,-1)).valueOf()===ie(tt(h,-1)).valueOf();return f&&!m.allDay&&(b||y)?(g=b?c:g,h=y?_:h,u&&m.hasEnd?s.formatRange(g,h,e,{forcedStartTzo:l?null:p.forcedStartTzo,forcedEndTzo:a?null:p.forcedEndTzo}):s.format(g,e,{forcedTzo:l?null:p.forcedStartTzo})):""}function ot(t,e,n){let o=t.eventRange.range;return{isPast:o.end<(n||e.start),isFuture:o.start>=(n||e.end),isToday:e&&Ue(e,o.start)}}function hm(t){let e=["fc-event"];return t.isMirror&&e.push("fc-event-mirror"),t.isDraggable&&e.push("fc-event-draggable"),(t.isStartResizable||t.isEndResizable)&&e.push("fc-event-resizable"),t.isDragging&&e.push("fc-event-dragging"),t.isResizing&&e.push("fc-event-resizing"),t.isSelected&&e.push("fc-event-selected"),t.isStart&&e.push("fc-event-start"),t.isEnd&&e.push("fc-event-end"),t.isPast&&e.push("fc-event-past"),t.isToday&&e.push("fc-event-today"),t.isFuture&&e.push("fc-event-future"),e}function wa(t){return t.instance?t.instance.instanceId:`${t.def.defId}:${t.range.start.toISOString()}`}function Ca(t,e){let{def:n,instance:o}=t.eventRange,{url:r}=n;if(r)return{href:r};let{emitter:l,options:a}=e,{eventInteractive:s}=a;return s==null&&(s=n.interactive,s==null&&(s=!!l.hasHandlers("eventClick"))),s?Tl(d=>{l.trigger("eventClick",{el:d.target,event:new se(e,n,o),jsEvent:d,view:e.viewApi})}):{}}const mm={start:v,end:v,allDay:Boolean};function gm(t,e,n){let o=_m(t,e),{range:r}=o;if(!r.start)return null;if(!r.end){if(n==null)return null;r.end=e.add(r.start,n)}return o}function _m(t,e){let{refined:n,extra:o}=eo(t,mm),r=n.start?e.createMarkerMeta(n.start):null,l=n.end?e.createMarkerMeta(n.end):null,{allDay:a}=n;return a==null&&(a=r&&r.isTimeUnspecified&&(!l||l.isTimeUnspecified)),Object.assign({range:{start:r?r.marker:null,end:l?l.marker:null},allDay:a},o)}function ym(t,e){return Ih(t.range,e.range)&&t.allDay===e.allDay&&bm(t,e)}function bm(t,e){for(let n in e)if(n!=="range"&&n!=="allDay"&&t[n]!==e[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}function Em(t,e){return Object.assign(Object.assign({},va(t.range,e,t.allDay)),{allDay:t.allDay})}function ka(t,e,n){return Object.assign(Object.assign({},va(t,e,n)),{timeZone:e.timeZone})}function va(t,e,n){return{start:e.toDate(t.start),end:e.toDate(t.end),startStr:e.formatIso(t.start,{omitTime:n}),endStr:e.formatIso(t.end,{omitTime:n})}}function wm(t,e,n){let o=oa({editable:!1},n),r=uo(o.refined,o.extra,"",t.allDay,!0,n);return{def:r,ui:ya(r,e),instance:so(r.defId,t.range),range:t.range,isStart:!0,isEnd:!0}}function Cm(t,e,n){let o=!1,r=function(s){o||(o=!0,e(s))},l=function(s){o||(o=!0,n(s))},a=t(r,l);a&&typeof a.then=="function"&&a.then(r,l)}class Sa extends Error{constructor(e,n){super(e),this.response=n}}function km(t,e,n){t=t.toUpperCase();const o={method:t};return t==="GET"?e+=(e.indexOf("?")===-1?"?":"&")+new URLSearchParams(n):(o.body=new URLSearchParams(n),o.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(e,o).then(r=>{if(r.ok)return r.json().then(l=>[l,r],()=>{throw new Sa("Failure parsing JSON",r)});throw new Sa("Request failed",r)})}let _o;function Aa(){return _o==null&&(_o=vm()),_o}function vm(){if(typeof document>"u")return!0;let t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.innerHTML="<table><tr><td><div></div></td></tr></table>",t.querySelector("table").style.height="100px",t.querySelector("div").style.height="100%",document.body.appendChild(t);let n=t.querySelector("div").offsetHeight>0;return document.body.removeChild(t),n}class Sm extends J{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{this.setState({forPrint:!0})},this.handleAfterPrint=()=>{this.setState({forPrint:!1})}}render(){let{props:e}=this,{options:n}=e,{forPrint:o}=this.state,r=o||n.height==="auto"||n.contentHeight==="auto",l=!r&&n.height!=null?n.height:"",a=["fc",o?"fc-media-print":"fc-media-screen",`fc-direction-${n.direction}`,e.theme.getClass("root")];return Aa()||a.push("fc-liquid-hack"),e.children(a,l,r,o)}componentDidMount(){let{emitter:e}=this.props;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)}}class Gt{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function Am(t,e){return{component:t,el:e.el,useEventCenter:e.useEventCenter!=null?e.useEventCenter:!0,isHitComboAllowed:e.isHitComboAllowed||null}}function yo(t){return{[t.component.uid]:t}}const bo={};class Dm{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){this.trigger("_resize",!0)}setOption(e,n){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:n})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,n){let{currentDataManager:o}=this;o.currentCalendarOptionsRefiners[e]?o.emitter.on(e,n):console.warn(`Unknown listener name '${e}'`)}off(e,n){this.currentDataManager.emitter.off(e,n)}trigger(e,...n){this.currentDataManager.emitter.trigger(e,...n)}changeView(e,n){this.batchRendering(()=>{if(this.unselect(),n)if(n.start&&n.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:n});else{let{dateEnv:o}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:o.createMarker(n)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})})}zoomTo(e,n){let o=this.getCurrentData(),r;n=n||"day",r=o.viewSpecs[n]||this.getUnitViewSpec(n),this.unselect(),r?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:r.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let{viewSpecs:n,toolbarConfig:o}=this.getCurrentData(),r=[].concat(o.header?o.header.viewsWithButtons:[],o.footer?o.footer.viewsWithButtons:[]),l,a;for(let s in n)r.push(s);for(l=0;l<r.length;l+=1)if(a=n[r[l]],a&&a.singleUnit===e)return a;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})}nextYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})}today(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:un(e.calendarOptions.now,e.dateEnv)})}gotoDate(e){let n=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.createMarker(e)})}incrementDate(e){let n=this.getCurrentData(),o=Q(e);o&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.add(n.currentDate,o)}))}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,n){let{dateEnv:o}=this.getCurrentData();return o.format(o.createMarker(e),de(n))}formatRange(e,n,o){let{dateEnv:r}=this.getCurrentData();return r.formatRange(r.createMarker(e),r.createMarker(n),de(o),o)}formatIso(e,n){let{dateEnv:o}=this.getCurrentData();return o.formatIso(o.createMarker(e),{omitTime:n})}select(e,n){let o;n==null?e.start!=null?o=e:o={start:e,end:null}:o={start:e,end:n};let r=this.getCurrentData(),l=gm(o,r.dateEnv,Q({days:1}));l&&(this.dispatch({type:"SELECT_DATES",selection:l}),pa(l,null,r))}unselect(e){let n=this.getCurrentData();n.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),lm(e,n))}addEvent(e,n){if(e instanceof se){let a=e._def,s=e._instance;return this.getCurrentData().eventStore.defs[a.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:fo({def:a,instance:s})}),this.triggerEventAdd(e)),e}let o=this.getCurrentData(),r;if(n instanceof Ut)r=n.internalEventSource;else if(typeof n=="boolean")n&&([r]=no(o.eventSources));else if(n!=null){let a=this.getEventSourceById(n);if(!a)return console.warn(`Could not find an event source with ID "${n}"`),null;r=a.internalEventSource}let l=ia(e,r,o,!1);if(l){let a=new se(o,l.def,l.def.recurringDef?null:l.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:fo(l)}),this.triggerEventAdd(a),a}return null}triggerEventAdd(e){let{emitter:n}=this.getCurrentData();n.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:ma(e)})}})}getEventById(e){let n=this.getCurrentData(),{defs:o,instances:r}=n.eventStore;e=String(e);for(let l in o){let a=o[l];if(a.publicId===e){if(a.recurringDef)return new se(n,a,null);for(let s in r){let d=r[s];if(d.defId===a.defId)return new se(n,a,d)}}}return null}getEvents(){let e=this.getCurrentData();return St(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),n=e.eventSources,o=[];for(let r in n)o.push(new Ut(e,n[r]));return o}getEventSourceById(e){let n=this.getCurrentData(),o=n.eventSources;e=String(e);for(let r in o)if(o[r].publicId===e)return new Ut(n,o[r]);return null}addEventSource(e){let n=this.getCurrentData();if(e instanceof Ut)return n.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let o=aa(e,n);return o?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[o]}),new Ut(n,o)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let n=Q(e);n&&this.trigger("_scrollRequest",{time:n})}}function xm(t,e){return t.left>=e.left&&t.left<e.right&&t.top>=e.top&&t.top<e.bottom}function Da(t,e){let n={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)};return n.left<n.right&&n.top<n.bottom?n:!1}function Nm(t,e){return{left:Math.min(Math.max(t.left,e.left),e.right),top:Math.min(Math.max(t.top,e.top),e.bottom)}}function Tm(t){return{left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}}function Vm(t,e){return{left:t.left-e.left,top:t.top-e.top}}const Eo=Ae();class Rm{constructor(){this.getKeysForEventDefs=F(this._getKeysForEventDefs),this.splitDateSelection=F(this._splitDateSpan),this.splitEventStore=F(this._splitEventStore),this.splitIndividualUi=F(this._splitIndividualUi),this.splitEventDrag=F(this._splitInteraction),this.splitEventResize=F(this._splitInteraction),this.eventUiBuilders={}}splitProps(e){let n=this.getKeyInfo(e),o=this.getKeysForEventDefs(e.eventStore),r=this.splitDateSelection(e.dateSelection),l=this.splitIndividualUi(e.eventUiBases,o),a=this.splitEventStore(e.eventStore,o),s=this.splitEventDrag(e.eventDrag),d=this.splitEventResize(e.eventResize),f={};this.eventUiBuilders=$e(n,(u,m)=>this.eventUiBuilders[m]||F(Im));for(let u in n){let m=n[u],p=a[u]||Eo,c=this.eventUiBuilders[u];f[u]={businessHours:m.businessHours||e.businessHours,dateSelection:r[u]||null,eventStore:p,eventUiBases:c(e.eventUiBases[""],m.ui,l[u]),eventSelection:p.instances[e.eventSelection]?e.eventSelection:"",eventDrag:s[u]||null,eventResize:d[u]||null}}return f}_splitDateSpan(e){let n={};if(e){let o=this.getKeysForDateSpan(e);for(let r of o)n[r]=e}return n}_getKeysForEventDefs(e){return $e(e.defs,n=>this.getKeysForEventDef(n))}_splitEventStore(e,n){let{defs:o,instances:r}=e,l={};for(let a in o)for(let s of n[a])l[s]||(l[s]=Ae()),l[s].defs[a]=o[a];for(let a in r){let s=r[a];for(let d of n[s.defId])l[d]&&(l[d].instances[a]=s)}return l}_splitIndividualUi(e,n){let o={};for(let r in e)if(r)for(let l of n[r])o[l]||(o[l]={}),o[l][r]=e[r];return o}_splitInteraction(e){let n={};if(e){let o=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),r=this._getKeysForEventDefs(e.mutatedEvents),l=this._splitEventStore(e.mutatedEvents,r),a=s=>{n[s]||(n[s]={affectedEvents:o[s]||Eo,mutatedEvents:l[s]||Eo,isEvent:e.isEvent})};for(let s in o)a(s);for(let s in l)a(s)}return n}}function Im(t,e,n){let o=[];t&&o.push(t),e&&o.push(e);let r={"":la(o)};return n&&Object.assign(r,n),r}function xa(t,e,n,o){return{dow:t.getUTCDay(),isDisabled:!!(o&&!Ue(o.activeRange,t)),isOther:!!(o&&!Ue(o.currentRange,t)),isToday:!!(e&&Ue(e,t)),isPast:!!(n?t<n:e&&t<e.start),isFuture:!!(n?t>n:e&&t>=e.end)}}function wo(t,e){let n=["fc-day",`fc-day-${Lp[t.dow]}`];return t.isDisabled?n.push("fc-day-disabled"):(t.isToday&&(n.push("fc-day-today"),n.push(e.getClass("today"))),t.isPast&&n.push("fc-day-past"),t.isFuture&&n.push("fc-day-future"),t.isOther&&n.push("fc-day-other")),n}const Bm=de({year:"numeric",month:"long",day:"numeric"}),Om=de({week:"long"});function ii(t,e,n="day",o=!0){const{dateEnv:r,options:l,calendarApi:a}=t;let s=r.format(e,n==="week"?Om:Bm);if(l.navLinks){let d=r.toDate(e);const f=u=>{let m=n==="day"?l.navLinkDayClick:n==="week"?l.navLinkWeekClick:null;typeof m=="function"?m.call(a,r.toDate(e),u):(typeof m=="string"&&(n=m),a.zoomTo(e,n))};return Object.assign({title:sn(l.navLinkHint,[s,d],s),"data-navlink":""},o?Nl(f):{onClick:f})}return{"aria-label":s}}let Co=null;function Mm(){return Co===null&&(Co=Lm()),Co}function Lm(){let t=document.createElement("div");an(t,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),t.innerHTML="<div></div>",document.body.appendChild(t);let n=t.firstChild.getBoundingClientRect().left>t.getBoundingClientRect().left;return Ui(t),n}let ko;function zm(){return ko||(ko=Pm()),ko}function Pm(){let t=document.createElement("div");t.style.overflow="scroll",t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t);let e=Na(t);return document.body.removeChild(t),e}function Na(t){return{x:t.offsetHeight-t.clientHeight,y:t.offsetWidth-t.clientWidth}}function Fm(t,e=!1){let n=window.getComputedStyle(t),o=parseInt(n.borderLeftWidth,10)||0,r=parseInt(n.borderRightWidth,10)||0,l=parseInt(n.borderTopWidth,10)||0,a=parseInt(n.borderBottomWidth,10)||0,s=Na(t),d=s.y-o-r,f=s.x-l-a,u={borderLeft:o,borderRight:r,borderTop:l,borderBottom:a,scrollbarBottom:f,scrollbarLeft:0,scrollbarRight:0};return Mm()&&n.direction==="rtl"?u.scrollbarLeft=d:u.scrollbarRight=d,e&&(u.paddingLeft=parseInt(n.paddingLeft,10)||0,u.paddingRight=parseInt(n.paddingRight,10)||0,u.paddingTop=parseInt(n.paddingTop,10)||0,u.paddingBottom=parseInt(n.paddingBottom,10)||0),u}function $m(t,e=!1,n){let o=n?t.getBoundingClientRect():vo(t),r=Fm(t,e),l={left:o.left+r.borderLeft+r.scrollbarLeft,right:o.right-r.borderRight-r.scrollbarRight,top:o.top+r.borderTop,bottom:o.bottom-r.borderBottom-r.scrollbarBottom};return e&&(l.left+=r.paddingLeft,l.right-=r.paddingRight,l.top+=r.paddingTop,l.bottom-=r.paddingBottom),l}function vo(t){let e=t.getBoundingClientRect();return{left:e.left+window.pageXOffset,top:e.top+window.pageYOffset,right:e.right+window.pageXOffset,bottom:e.bottom+window.pageYOffset}}function Hm(t){let e=Ta(t),n=t.getBoundingClientRect();for(let o of e){let r=Da(n,o.getBoundingClientRect());if(r)n=r;else return null}return n}function Ta(t){let e=[];for(;t instanceof HTMLElement;){let n=window.getComputedStyle(t);if(n.position==="fixed")break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&e.push(t),t=t.parentNode}return e}class qt{constructor(e,n,o,r){this.els=n;let l=this.originClientRect=e.getBoundingClientRect();o&&this.buildElHorizontals(l.left),r&&this.buildElVerticals(l.top)}buildElHorizontals(e){let n=[],o=[];for(let r of this.els){let l=r.getBoundingClientRect();n.push(l.left-e),o.push(l.right-e)}this.lefts=n,this.rights=o}buildElVerticals(e){let n=[],o=[];for(let r of this.els){let l=r.getBoundingClientRect();n.push(l.top-e),o.push(l.bottom-e)}this.tops=n,this.bottoms=o}leftToIndex(e){let{lefts:n,rights:o}=this,r=n.length,l;for(l=0;l<r;l+=1)if(e>=n[l]&&e<o[l])return l}topToIndex(e){let{tops:n,bottoms:o}=this,r=n.length,l;for(l=0;l<r;l+=1)if(e>=n[l]&&e<o[l])return l}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return oi(this.tops||[],e.tops||[])&&oi(this.bottoms||[],e.bottoms||[])&&oi(this.lefts||[],e.lefts||[])&&oi(this.rights||[],e.rights||[])}}function oi(t,e){const n=t.length;if(n!==e.length)return!1;for(let o=0;o<n;o++)if(Math.round(t[o])!==Math.round(e[o]))return!1;return!0}class So{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 jm extends So{constructor(e){super(),this.el=e}getScrollTop(){return this.el.scrollTop}getScrollLeft(){return this.el.scrollLeft}setScrollTop(e){this.el.scrollTop=e}setScrollLeft(e){this.el.scrollLeft=e}getScrollWidth(){return this.el.scrollWidth}getScrollHeight(){return this.el.scrollHeight}getClientHeight(){return this.el.clientHeight}getClientWidth(){return this.el.clientWidth}}class Um extends So{getScrollTop(){return window.pageYOffset}getScrollLeft(){return window.pageXOffset}setScrollTop(e){window.scroll(window.pageXOffset,e)}setScrollLeft(e){window.scroll(e,window.pageYOffset)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class Le extends J{constructor(){super(...arguments),this.uid=_t()}prepareHits(){}queryHit(e,n,o,r){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!_e(e,".fc-event-mirror")}isValidDateDownEl(e){return!_e(e,".fc-event:not(.fc-bg-event)")&&!_e(e,".fc-more-link")&&!_e(e,"a[data-navlink]")&&!_e(e,".fc-popover")}}class Va{constructor(e=n=>n.thickness){this.getEntryThickness=e,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(e){let n=[];for(let o of e)this.insertEntry(o,n);return n}insertEntry(e,n){let o=this.findInsertion(e);return this.isInsertionValid(o,e)?(this.insertEntryAt(e,o),1):this.handleInvalidInsertion(o,e,n)}isInsertionValid(e,n){return(this.maxCoord===-1||e.levelCoord+this.getEntryThickness(n)<=this.maxCoord)&&(this.maxStackCnt===-1||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,n,o){return this.allowReslicing&&e.touchingEntry?this.splitEntry(n,e.touchingEntry,o):(o.push(n),0)}splitEntry(e,n,o){let r=0,l=[],a=e.span,s=n.span;return a.start<s.start&&(r+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:a.start,end:s.start}},l)),a.end>s.end&&(r+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:s.end,end:a.end}},l)),r?(o.push({index:e.index,thickness:e.thickness,span:Do(s,a)},...l),r):(o.push(e),0)}insertEntryAt(e,n){let{entriesByLevel:o,levelCoords:r}=this;n.lateral===-1?(xo(r,n.level,n.levelCoord),xo(o,n.level,[e])):xo(o[n.level],n.lateral,e),this.stackCnts[At(e)]=n.stackCnt}findInsertion(e){let{levelCoords:n,entriesByLevel:o,strictOrder:r,stackCnts:l}=this,a=n.length,s=0,d=-1,f=-1,u=null,m=0;for(let _=0;_<a;_+=1){let g=n[_];if(!r&&g>=s+this.getEntryThickness(e))break;let h=o[_],b,y=No(h,e.span.start,Ao),C=y[0]+y[1];for(;(b=h[C])&&b.span.start<e.span.end;){let k=g+this.getEntryThickness(b);k>s&&(s=k,u=b,d=_,f=C),k===s&&(m=Math.max(m,l[At(b)]+1)),C+=1}}let p=0;if(u)for(p=d+1;p<a&&n[p]<s;)p+=1;let c=-1;return p<a&&n[p]===s&&(c=No(o[p],e.span.end,Ao)[0]),{touchingLevel:d,touchingLateral:f,touchingEntry:u,stackCnt:m,levelCoord:s,level:p,lateral:c}}toRects(){let{entriesByLevel:e,levelCoords:n}=this,o=e.length,r=[];for(let l=0;l<o;l+=1){let a=e[l],s=n[l];for(let d of a)r.push(Object.assign(Object.assign({},d),{thickness:this.getEntryThickness(d),levelCoord:s}))}return r}}function Ao(t){return t.span.end}function At(t){return t.index+":"+t.span.start}function Wm(t){let e=[];for(let n of t){let o=[],r={span:n.span,entries:[n]};for(let l of e)Do(l.span,r.span)?r={entries:l.entries.concat(r.entries),span:Gm(l.span,r.span)}:o.push(l);o.push(r),e=o}return e}function Gm(t,e){return{start:Math.min(t.start,e.start),end:Math.max(t.end,e.end)}}function Do(t,e){let n=Math.max(t.start,e.start),o=Math.min(t.end,e.end);return n<o?{start:n,end:o}:null}function xo(t,e,n){t.splice(e,0,n)}function No(t,e,n){let o=0,r=t.length;if(!r||e<n(t[o]))return[0,0];if(e>n(t[r-1]))return[r,0];for(;o<r;){let l=Math.floor(o+(r-o)/2),a=n(t[l]);if(e<a)r=l;else if(e>a)o=l+1;else return[l,1]}return[o,0]}class qm{constructor(e,n){this.emitter=new ti}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}}const To={};function Ym(t,e){return!t||e>10?de({weekday:"short"}):e>1?de({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):de({weekday:"long"})}const Ra="fc-col-header-cell";function Ia(t){return t.text}class Qm extends J{render(){let{dateEnv:e,options:n,theme:o,viewApi:r}=this.context,{props:l}=this,{date:a,dateProfile:s}=l,d=xa(a,l.todayRange,null,s),f=[Ra].concat(wo(d,o)),u=e.format(a,l.dayHeaderFormat),m=!d.isDisabled&&l.colCnt>1?ii(this.context,a):{},p=Object.assign(Object.assign(Object.assign({date:e.toDate(a),view:r},l.extraRenderProps),{text:u}),d);return E(Se,{elTag:"th",elClasses:f,elAttrs:Object.assign({role:"columnheader",colSpan:l.colSpan,"data-date":d.isDisabled?void 0:Ki(a)},l.extraDataAttrs),renderProps:p,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:Ia,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},c=>E("div",{className:"fc-scrollgrid-sync-inner"},!d.isDisabled&&E(c,{elTag:"a",elAttrs:m,elClasses:["fc-col-header-cell-cushion",l.isSticky&&"fc-sticky"]})))}}const Zm=de({weekday:"long"});class Km extends J{render(){let{props:e}=this,{dateEnv:n,theme:o,viewApi:r,options:l}=this.context,a=ye(new Date(2592e5),e.dow),s={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},d=n.format(a,e.dayHeaderFormat),f=Object.assign(Object.assign(Object.assign(Object.assign({date:a},s),{view:r}),e.extraRenderProps),{text:d});return E(Se,{elTag:"th",elClasses:[Ra,...wo(s,o),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:f,generatorName:"dayHeaderContent",customGenerator:l.dayHeaderContent,defaultGenerator:Ia,classNameGenerator:l.dayHeaderClassNames,didMount:l.dayHeaderDidMount,willUnmount:l.dayHeaderWillUnmount},u=>E("div",{className:"fc-scrollgrid-sync-inner"},E(u,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":n.format(a,Zm)}})))}}class pn extends ve{constructor(e,n){super(e,n),this.initialNowDate=un(n.options.now,n.dateEnv),this.initialNowQueriedMs=new Date().valueOf(),this.state=this.computeTiming().currentState}render(){let{props:e,state:n}=this;return e.children(n.nowDate,n.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:e,context:n}=this,o=tt(this.initialNowDate,new Date().valueOf()-this.initialNowQueriedMs),r=n.dateEnv.startOf(o,e.unit),l=n.dateEnv.add(r,Q(1,e.unit)),a=l.valueOf()-o.valueOf();return a=Math.min(1e3*60*60*24,a),{currentState:{nowDate:r,todayRange:Ba(r)},nextState:{nowDate:l,todayRange:Ba(l)},waitMs:a}}setTimeout(){let{nextState:e,waitMs:n}=this.computeTiming();this.timeoutId=setTimeout(()=>{this.setState(e,()=>{this.setTimeout()})},n)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}pn.contextType=He;function Ba(t){let e=ie(t),n=ye(e,1);return{start:e,end:n}}class Oa extends J{constructor(){super(...arguments),this.createDayHeaderFormatter=F(Xm)}render(){let{context:e}=this,{dates:n,dateProfile:o,datesRepDistinctDays:r,renderIntro:l}=this.props,a=this.createDayHeaderFormatter(e.options.dayHeaderFormat,r,n.length);return E(pn,{unit:"day"},(s,d)=>E("tr",{role:"row"},l&&l("day"),n.map(f=>r?E(Qm,{key:f.toISOString(),date:f,dateProfile:o,todayRange:d,colCnt:n.length,dayHeaderFormat:a}):E(Km,{key:f.getUTCDay(),dow:f.getUTCDay(),dayHeaderFormat:a}))))}}function Xm(t,e,n){return t||Ym(e,n)}class Ma{constructor(e,n){let o=e.start,{end:r}=e,l=[],a=[],s=-1;for(;o<r;)n.isHiddenDay(o)?l.push(s+.5):(s+=1,l.push(s),a.push(o)),o=ye(o,1);this.dates=a,this.indices=l,this.cnt=a.length}sliceRange(e){let n=this.getDateDayIndex(e.start),o=this.getDateDayIndex(ye(e.end,-1)),r=Math.max(0,n),l=Math.min(this.cnt-1,o);return r=Math.ceil(r),l=Math.floor(l),r<=l?{firstIndex:r,lastIndex:l,isStart:n===r,isEnd:o===l}:null}getDateDayIndex(e){let{indices:n}=this,o=Math.floor(yt(this.dates[0],e));return o<0?n[0]-1:o>=n.length?n[n.length-1]+1:n[o]}}class La{constructor(e,n){let{dates:o}=e,r,l,a;if(n){for(l=o[0].getUTCDay(),r=1;r<o.length&&o[r].getUTCDay()!==l;r+=1);a=Math.ceil(o.length/r)}else a=1,r=o.length;this.rowCnt=a,this.colCnt=r,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];for(let n=0;n<this.rowCnt;n+=1){let o=[];for(let r=0;r<this.colCnt;r+=1)o.push(this.buildCell(n,r));e.push(o)}return e}buildCell(e,n){let o=this.daySeries.dates[e*this.colCnt+n];return{key:o.toISOString(),date:o}}buildHeaderDates(){let e=[];for(let n=0;n<this.colCnt;n+=1)e.push(this.cells[0][n].date);return e}sliceRange(e){let{colCnt:n}=this,o=this.daySeries.sliceRange(e),r=[];if(o){let{firstIndex:l,lastIndex:a}=o,s=l;for(;s<=a;){let d=Math.floor(s/n),f=Math.min((d+1)*n,a+1);r.push({row:d,firstCol:s%n,lastCol:(f-1)%n,isStart:o.isStart&&s===l,isEnd:o.isEnd&&f-1===a}),s=f}}return r}}class za{constructor(){this.sliceBusinessHours=F(this._sliceBusinessHours),this.sliceDateSelection=F(this._sliceDateSpan),this.sliceEventStore=F(this._sliceEventStore),this.sliceEventDrag=F(this._sliceInteraction),this.sliceEventResize=F(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,n,o,r,...l){let{eventUiBases:a}=e,s=this.sliceEventStore(e.eventStore,a,n,o,...l);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,n,o,a,r,...l),businessHourSegs:this.sliceBusinessHours(e.businessHours,n,o,r,...l),fgEventSegs:s.fg,bgEventSegs:s.bg,eventDrag:this.sliceEventDrag(e.eventDrag,a,n,o,...l),eventResize:this.sliceEventResize(e.eventResize,a,n,o,...l),eventSelection:e.eventSelection}}sliceNowDate(e,n,o,r,...l){return this._sliceDateSpan({range:{start:e,end:tt(e,1)},allDay:!1},n,o,{},r,...l)}_sliceBusinessHours(e,n,o,r,...l){return e?this._sliceEventStore(vt(e,ri(n,!!o),r),{},n,o,...l).bg:[]}_sliceEventStore(e,n,o,r,...l){if(e){let a=ga(e,n,ri(o,!!r),r);return{bg:this.sliceEventRanges(a.bg,l),fg:this.sliceEventRanges(a.fg,l)}}return{bg:[],fg:[]}}_sliceInteraction(e,n,o,r,...l){if(!e)return null;let a=ga(e.mutatedEvents,n,ri(o,!!r),r);return{segs:this.sliceEventRanges(a.fg,l),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,n,o,r,l,...a){if(!e)return[];let s=ri(n,!!o),d=kt(e.range,s);if(d){e=Object.assign(Object.assign({},e),{range:d});let f=wm(e,r,l),u=this.sliceRange(e.range,...a);for(let m of u)m.eventRange=f;return u}return[]}sliceEventRanges(e,n){let o=[];for(let r of e)o.push(...this.sliceEventRange(r,n));return o}sliceEventRange(e,n){let o=e.range;this.forceDayIfListItem&&e.ui.display==="list-item"&&(o={start:o.start,end:ye(o.start,1)});let r=this.sliceRange(o,...n);for(let l of r)l.eventRange=e,l.isStart=e.isStart&&l.isStart,l.isEnd=e.isEnd&&l.isEnd;return r}}function ri(t,e){let n=t.activeRange;return e?n:{start:tt(n.start,t.slotMinTime.milliseconds),end:tt(n.end,t.slotMaxTime.milliseconds-864e5)}}function Pa(t,e,n){let{instances:o}=t.mutatedEvents;for(let r in o)if(!Zn(e.validRange,o[r].range))return!1;return Fa({eventDrag:t},n)}function Jm(t,e,n){return Zn(e.validRange,t.range)?Fa({dateSelection:t},n):!1}function Fa(t,e){let n=e.getCurrentData(),o=Object.assign({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},t);return(e.pluginHooks.isPropsValid||eg)(o,e)}function eg(t,e,n={},o){return!(t.eventDrag&&!tg(t,e,n,o)||t.dateSelection&&!ng(t,e,n,o))}function tg(t,e,n,o){let r=e.getCurrentData(),l=t.eventDrag,a=l.mutatedEvents,s=a.defs,d=a.instances,f=ni(s,l.isEvent?t.eventUiBases:{"":r.selectionConfig});o&&(f=$e(f,o));let u=Jh(t.eventStore,l.affectedEvents.instances),m=u.defs,p=u.instances,c=ni(m,t.eventUiBases);for(let _ in d){let g=d[_],h=g.range,b=f[g.defId],y=s[g.defId];if(!$a(b.constraints,h,u,t.businessHours,e))return!1;let{eventOverlap:C}=e.options,k=typeof C=="function"?C:null;for(let S in p){let x=p[S];if(ao(h,x.range)&&(c[x.defId].overlap===!1&&l.isEvent||b.overlap===!1||k&&!k(new se(e,m[x.defId],x),new se(e,y,g))))return!1}let B=r.eventStore;for(let S of b.allows){let x=Object.assign(Object.assign({},n),{range:g.range,allDay:y.allDay}),w=B.defs[y.defId],N=B.instances[_],D;if(w?D=new se(e,w,N):D=new se(e,y),!S(mo(x,e),D))return!1}}return!0}function ng(t,e,n,o){let r=t.eventStore,l=r.defs,a=r.instances,s=t.dateSelection,d=s.range,{selectionConfig:f}=e.getCurrentData();if(o&&(f=o(f)),!$a(f.constraints,d,r,t.businessHours,e))return!1;let{selectOverlap:u}=e.options,m=typeof u=="function"?u:null;for(let p in a){let c=a[p];if(ao(d,c.range)&&(f.overlap===!1||m&&!m(new se(e,l[c.defId],c),null)))return!1}for(let p of f.allows){let c=Object.assign(Object.assign({},n),s);if(!p(mo(c,e),null))return!1}return!0}function $a(t,e,n,o,r){for(let l of t)if(!og(ig(l,e,n,o,r),e))return!1;return!0}function ig(t,e,n,o,r){return t==="businessHours"?Vo(vt(o,e,r)):typeof t=="string"?Vo(Xn(n,l=>l.groupId===t)):typeof t=="object"&&t?Vo(vt(t,e,r)):[]}function Vo(t){let{instances:e}=t,n=[];for(let o in e)n.push(e[o].range);return n}function og(t,e){for(let n of t)if(Zn(n,e))return!0;return!1}const li=/^(visible|hidden)$/;class rg extends J{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,je(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:n,liquidIsAbsolute:o}=e,r=n&&o,l=["fc-scroller"];return n&&(o?l.push("fc-scroller-liquid-absolute"):l.push("fc-scroller-liquid")),E("div",{ref:this.handleEl,className:l.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:r&&-(e.overcomeLeft||0)||"",right:r&&-(e.overcomeRight||0)||"",bottom:r&&-(e.overcomeBottom||0)||"",marginLeft:!r&&-(e.overcomeLeft||0)||"",marginRight:!r&&-(e.overcomeRight||0)||"",marginBottom:!r&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)}needsXScrolling(){if(li.test(this.props.overflowX))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:o}=e;for(let r=0;r<o.length;r+=1)if(o[r].getBoundingClientRect().width>n)return!0;return!1}needsYScrolling(){if(li.test(this.props.overflowY))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:o}=e;for(let r=0;r<o.length;r+=1)if(o[r].getBoundingClientRect().height>n)return!0;return!1}getXScrollbarWidth(){return li.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return li.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class We{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(n,o)=>{let{depths:r,currentMap:l}=this,a=!1,s=!1;n!==null?(a=o in l,l[o]=n,r[o]=(r[o]||0)+1,s=!0):(r[o]-=1,r[o]||(delete l[o],delete this.callbackMap[o],a=!0)),this.masterCallback&&(a&&this.masterCallback(null,String(o)),s&&this.masterCallback(n,String(o)))}}createRef(e){let n=this.callbackMap[e];return n||(n=this.callbackMap[e]=o=>{this.handleValue(o,String(e))}),n}collect(e,n,o){return gh(this.currentMap,e,n,o)}getAll(){return no(this.currentMap)}}function lg(t){let e=mp(t,".fc-scrollgrid-shrink"),n=0;for(let o of e)n=Math.max(n,Np(o));return Math.ceil(n)}function Ha(t,e){return t.liquid&&e.liquid}function ag(t,e){return e.maxHeight!=null||Ha(t,e)}function sg(t,e,n,o){let{expandRows:r}=n;return typeof e.content=="function"?e.content(n):E("table",{role:"presentation",className:[e.tableClassName,t.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:r?n.clientHeight:""}},n.tableColGroupNode,E(o?"thead":"tbody",{role:"presentation"},typeof e.rowContent=="function"?e.rowContent(n):e.rowContent))}function cg(t,e){return et(t,e,Me)}function dg(t,e){let n=[];for(let o of t){let r=o.span||1;for(let l=0;l<r;l+=1)n.push(E("col",{style:{width:o.width==="shrink"?ug(e):o.width||"",minWidth:o.minWidth||""}}))}return E("colgroup",{},...n)}function ug(t){return t??4}function fg(t){for(let e of t)if(e.width==="shrink")return!0;return!1}function pg(t,e){let n=["fc-scrollgrid",e.theme.getClass("table")];return t&&n.push("fc-scrollgrid-liquid"),n}function hg(t,e){let n=["fc-scrollgrid-section",`fc-scrollgrid-section-${t.type}`,t.className];return e&&t.liquid&&t.maxHeight==null&&n.push("fc-scrollgrid-section-liquid"),t.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function Ro(t){return E("div",{className:"fc-scrollgrid-sticky-shim",style:{width:t.clientWidth,minWidth:t.tableMinWidth}})}function ai(t){let{stickyHeaderDates:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}function ja(t){let{stickyFooterScrollbar:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}class Io extends J{constructor(){super(...arguments),this.processCols=F(e=>e,cg),this.renderMicroColGroup=F(dg),this.scrollerRefs=new We,this.scrollerElRefs=new We(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:e,state:n,context:o}=this,r=e.sections||[],l=this.processCols(e.cols),a=this.renderMicroColGroup(l,n.shrinkWidth),s=pg(e.liquid,o);e.collapsibleWidth&&s.push("fc-scrollgrid-collapsible");let d=r.length,f=0,u,m=[],p=[],c=[];for(;f<d&&(u=r[f]).type==="header";)m.push(this.renderSection(u,a,!0)),f+=1;for(;f<d&&(u=r[f]).type==="body";)p.push(this.renderSection(u,a,!1)),f+=1;for(;f<d&&(u=r[f]).type==="footer";)c.push(this.renderSection(u,a,!0)),f+=1;let _=!Aa();const g={role:"rowgroup"};return E("table",{role:"grid",className:s.join(" "),style:{height:e.height}},!!(!_&&m.length)&&E("thead",g,...m),!!(!_&&p.length)&&E("tbody",g,...p),!!(!_&&c.length)&&E("tfoot",g,...c),_&&E("tbody",g,...m,...p,...c))}renderSection(e,n,o){return"outerContent"in e?E(re,{key:e.key},e.outerContent):E("tr",{key:e.key,role:"presentation",className:hg(e,this.props.liquid).join(" ")},this.renderChunkTd(e,n,e.chunk,o))}renderChunkTd(e,n,o,r){if("outerContent"in o)return o.outerContent;let{props:l}=this,{forceYScrollbars:a,scrollerClientWidths:s,scrollerClientHeights:d}=this.state,f=ag(l,e),u=Ha(l,e),m=l.liquid?a?"scroll":f?"auto":"hidden":"visible",p=e.key,c=sg(e,o,{tableColGroupNode:n,tableMinWidth:"",clientWidth:!l.collapsibleWidth&&s[p]!==void 0?s[p]:null,clientHeight:d[p]!==void 0?d[p]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},r);return E(r?"th":"td",{ref:o.elRef,role:"presentation"},E("div",{className:`fc-scroller-harness${u?" fc-scroller-harness-liquid":""}`},E(rg,{ref:this.scrollerRefs.createRef(p),elRef:this.scrollerElRefs.createRef(p),overflowY:m,overflowX:l.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:u,liquidIsAbsolute:!0},c)))}_handleScrollerEl(e,n){let o=mg(this.props.sections,n);o&&je(o.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return fg(this.props.cols)?lg(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=zm(),{scrollerRefs:n,scrollerElRefs:o}=this,r=!1,l={},a={};for(let s in n.currentMap){let d=n.currentMap[s];if(d&&d.needsYScrolling()){r=!0;break}}for(let s of this.props.sections){let d=s.key,f=o.currentMap[d];if(f){let u=f.parentNode;l[d]=Math.floor(u.getBoundingClientRect().width-(r?e.y:0)),a[d]=Math.floor(u.getBoundingClientRect().height)}}return{forceYScrollbars:r,scrollerClientWidths:l,scrollerClientHeights:a}}}Io.addStateEquality({scrollerClientWidths:Me,scrollerClientHeights:Me});function mg(t,e){for(let n of t)if(n.key===e)return n;return null}class Bo extends J{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,e&&_a(e,this.props.seg)}}render(){const{props:e,context:n}=this,{options:o}=n,{seg:r}=e,{eventRange:l}=r,{ui:a}=l,s={event:new se(n,l.def,l.instance),view:n.viewApi,timeText:e.timeText,textColor:a.textColor,backgroundColor:a.backgroundColor,borderColor:a.borderColor,isDraggable:!e.disableDragging&&um(r,n),isStartResizable:!e.disableResizing&&fm(r,n),isEndResizable:!e.disableResizing&&pm(r),isMirror:!!(e.isDragging||e.isResizing||e.isDateSelecting),isStart:!!r.isStart,isEnd:!!r.isEnd,isPast:!!e.isPast,isFuture:!!e.isFuture,isToday:!!e.isToday,isSelected:!!e.isSelected,isDragging:!!e.isDragging,isResizing:!!e.isResizing};return E(Se,Object.assign({},e,{elRef:this.handleEl,elClasses:[...hm(s),...r.eventRange.ui.classNames,...e.elClasses||[]],renderProps:s,generatorName:"eventContent",customGenerator:o.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:o.eventClassNames,didMount:o.eventDidMount,willUnmount:o.eventWillUnmount}))}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&_a(this.el,this.props.seg)}}class Ua extends J{render(){let{props:e,context:n}=this,{options:o}=n,{seg:r}=e,{ui:l}=r.eventRange,a=o.eventTimeFormat||e.defaultTimeFormat,s=Ea(r,a,n,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return E(Bo,Object.assign({},e,{elTag:"a",elStyle:{borderColor:l.borderColor,backgroundColor:l.backgroundColor},elAttrs:Ca(r,n),defaultGenerator:gg,timeText:s}),(d,f)=>E(re,null,E(d,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:f.textColor}}),!!f.isStartResizable&&E("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!f.isEndResizable&&E("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function gg(t){return E("div",{className:"fc-event-main-frame"},t.timeText&&E("div",{className:"fc-event-time"},t.timeText),E("div",{className:"fc-event-title-container"},E("div",{className:"fc-event-title fc-sticky"},t.event.title||E(re,null," "))))}const Oo=t=>E(He.Consumer,null,e=>{let{options:n}=e,o={isAxis:t.isAxis,date:e.dateEnv.toDate(t.date),view:e.viewApi};return E(Se,Object.assign({},t,{elTag:t.elTag||"div",renderProps:o,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount}))}),_g=de({day:"numeric"});class Mo extends J{constructor(){super(...arguments),this.refineRenderProps=jn(yg)}render(){let{props:e,context:n}=this,{options:o}=n,r=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:n.viewApi,dateEnv:n.dateEnv,monthStartFormat:o.monthStartFormat});return E(Se,Object.assign({},e,{elClasses:[...wo(r,n.theme),...e.elClasses||[]],elAttrs:Object.assign(Object.assign({},e.elAttrs),r.isDisabled?{}:{"data-date":Ki(e.date)}),renderProps:r,generatorName:"dayCellContent",customGenerator:o.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:r.isDisabled?void 0:o.dayCellClassNames,didMount:o.dayCellDidMount,willUnmount:o.dayCellWillUnmount}))}}function Lo(t){return!!(t.dayCellContent||lo("dayCellContent",t))}function yg(t){let{date:e,dateEnv:n,dateProfile:o,isMonthStart:r}=t,l=xa(e,t.todayRange,null,o),a=t.showDayNumber?n.format(e,r?t.monthStartFormat:_g):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(e),view:t.viewApi},l),{isMonthStart:r,dayNumberText:a}),t.extraRenderProps)}class Wa extends J{render(){let{props:e}=this,{seg:n}=e;return E(Bo,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:n.eventRange.ui.backgroundColor},defaultGenerator:bg,seg:n,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}}function bg(t){let{title:e}=t.event;return e&&E("div",{className:"fc-event-title"},t.event.title)}function Ga(t){return E("div",{className:`fc-${t}`})}const qa=t=>E(He.Consumer,null,e=>{let{dateEnv:n,options:o}=e,{date:r}=t,l=o.weekNumberFormat||t.defaultFormat,a=n.computeWeekNumber(r),s=n.format(r,l);return E(Se,Object.assign({},t,{renderProps:{num:a,text:s,date:r},generatorName:"weekNumberContent",customGenerator:o.weekNumberContent,defaultGenerator:Eg,classNameGenerator:o.weekNumberClassNames,didMount:o.weekNumberDidMount,willUnmount:o.weekNumberWillUnmount}))});function Eg(t){return t.text}const zo=10;class wg extends J{constructor(){super(...arguments),this.state={titleId:Pn()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&je(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const n=Sl(e);this.rootEl.contains(n)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{e.key==="Escape"&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:n}=this.context,{props:o,state:r}=this,l=["fc-popover",e.getClass("popover")].concat(o.extraClassNames||[]);return tp(E("div",Object.assign({},o.extraAttrs,{id:o.id,className:l.join(" "),"aria-labelledby":r.titleId,ref:this.handleRootEl}),E("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},E("span",{className:"fc-popover-title",id:r.titleId},o.title),E("span",{className:"fc-popover-close "+e.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),E("div",{className:"fc-popover-body "+e.getClass("popoverContent")},o.children)),o.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:e}=this.context,{alignmentEl:n,alignGridTop:o}=this.props,{rootEl:r}=this,l=Hm(n);if(l){let a=r.getBoundingClientRect(),s=o?_e(n,".fc-scrollgrid").getBoundingClientRect().top:l.top,d=e?l.right-a.width:l.left;s=Math.max(s,zo),d=Math.min(d,document.documentElement.clientWidth-zo-a.width),d=Math.max(d,zo);let f=r.offsetParent.getBoundingClientRect();an(r,{top:s-f.top,left:d-f.left})}}}class Cg extends Le{constructor(){super(...arguments),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:e,dateEnv:n}=this.context,{props:o}=this,{startDate:r,todayRange:l,dateProfile:a}=o,s=n.format(r,e.dayPopoverFormat);return E(Mo,{elRef:this.handleRootEl,date:r,dateProfile:a,todayRange:l},(d,f,u)=>E(wg,{elRef:u.ref,id:o.id,title:s,extraClassNames:["fc-more-popover"].concat(u.className||[]),extraAttrs:u,parentEl:o.parentEl,alignmentEl:o.alignmentEl,alignGridTop:o.alignGridTop,onClose:o.onClose},Lo(e)&&E(d,{elTag:"div",elClasses:["fc-more-popover-misc"]}),o.children))}queryHit(e,n,o,r){let{rootEl:l,props:a}=this;return e>=0&&e<o&&n>=0&&n<r?{dateProfile:a.dateProfile,dateSpan:Object.assign({allDay:!a.forceTimed,range:{start:a.startDate,end:a.endDate}},a.extraDateSpan),dayEl:l,rect:{left:0,top:0,right:o,bottom:r},layer:1}:null}}class Ya extends J{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:Pn()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&je(this.props.elRef,e)},this.handleClick=e=>{let{props:n,context:o}=this,{moreLinkClick:r}=o.options,l=Qa(n).start;function a(s){let{def:d,instance:f,range:u}=s.eventRange;return{event:new se(o,d,f),start:o.dateEnv.toDate(u.start),end:o.dateEnv.toDate(u.end),isStart:s.isStart,isEnd:s.isEnd}}typeof r=="function"&&(r=r({date:l,allDay:!!n.allDayDate,allSegs:n.allSegs.map(a),hiddenSegs:n.hiddenSegs.map(a),jsEvent:e,view:o.viewApi})),!r||r==="popover"?this.setState({isPopoverOpen:!0}):typeof r=="string"&&o.calendarApi.zoomTo(l,r)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:n}=this;return E(He.Consumer,null,o=>{let{viewApi:r,options:l,calendarApi:a}=o,{moreLinkText:s}=l,{moreCnt:d}=e,f=Qa(e),u=typeof s=="function"?s.call(a,d):`+${d} ${s}`,m=sn(l.moreLinkHint,[d],u),p={num:d,shortText:`+${d}`,text:u,view:r};return E(re,null,!!e.moreCnt&&E(Se,{elTag:e.elTag||"a",elRef:this.handleLinkEl,elClasses:[...e.elClasses||[],"fc-more-link"],elStyle:e.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},e.elAttrs),Nl(this.handleClick)),{title:m,"aria-expanded":n.isPopoverOpen,"aria-controls":n.isPopoverOpen?n.popoverId:""}),renderProps:p,generatorName:"moreLinkContent",customGenerator:l.moreLinkContent,defaultGenerator:e.defaultGenerator||kg,classNameGenerator:l.moreLinkClassNames,didMount:l.moreLinkDidMount,willUnmount:l.moreLinkWillUnmount},e.children),n.isPopoverOpen&&E(Cg,{id:n.popoverId,startDate:f.start,endDate:f.end,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:e.extraDateSpan,parentEl:this.parentEl,alignmentEl:e.alignmentElRef?e.alignmentElRef.current:this.linkEl,alignGridTop:e.alignGridTop,forceTimed:e.forceTimed,onClose:this.handlePopoverClose},e.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=_e(this.linkEl,".fc-view-harness"))}}function kg(t){return t.text}function Qa(t){if(t.allDayDate)return{start:t.allDayDate,end:ye(t.allDayDate,1)};let{hiddenSegs:e}=t;return{start:Za(e),end:Sg(e)}}function Za(t){return t.reduce(vg).eventRange.range.start}function vg(t,e){return t.eventRange.range.start<e.eventRange.range.start?t:e}function Sg(t){return t.reduce(Ag).eventRange.range.end}function Ag(t,e){return t.eventRange.range.end>e.eventRange.range.end?t:e}class Dg{constructor(){this.handlers=[]}set(e){this.currentValue=e;for(let n of this.handlers)n(e)}subscribe(e){this.handlers.push(e),this.currentValue!==void 0&&e(this.currentValue)}}class xg extends Dg{constructor(){super(...arguments),this.map=new Map}handle(e){const{map:n}=this;let o=!1;e.isActive?(n.set(e.id,e),o=!0):n.has(e.id)&&(n.delete(e.id),o=!0),o&&this.set(n)}}const Ng=[],Ka={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"},Xa=Object.assign(Object.assign({},Ka),{buttonHints:{prev:"Previous $0",next:"Next $0",today(t,e){return e==="day"?"Today":`This ${t}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(t){return`Show ${t} more event${t===1?"":"s"}`}});function Tg(t){let e=t.length>0?t[0].code:"en",n=Ng.concat(t),o={en:Xa};for(let r of n)o[r.code]=r;return{map:o,defaultCode:e}}function Ja(t,e){return typeof t=="object"&&!Array.isArray(t)?es(t.code,[t.code],t):Vg(t,e)}function Vg(t,e){let n=[].concat(t||[]),o=Rg(n,e)||Xa;return es(t,n,o)}function Rg(t,e){for(let n=0;n<t.length;n+=1){let o=t[n].toLocaleLowerCase().split("-");for(let r=o.length;r>0;r-=1){let l=o.slice(0,r).join("-");if(e[l])return e[l]}}return null}function es(t,e,n){let o=to([Ka,n],["buttonText"]);delete o.code;let{week:r}=o;return delete o.week,{codeArg:t,codes:e,week:r,simpleNumberFormat:new Intl.NumberFormat(t),options:o}}function Ge(t){return{id:_t(),name:t.name,premiumReleaseDate:t.premiumReleaseDate?new Date(t.premiumReleaseDate):void 0,deps:t.deps||[],reducers:t.reducers||[],isLoadingFuncs:t.isLoadingFuncs||[],contextInit:[].concat(t.contextInit||[]),eventRefiners:t.eventRefiners||{},eventDefMemberAdders:t.eventDefMemberAdders||[],eventSourceRefiners:t.eventSourceRefiners||{},isDraggableTransformers:t.isDraggableTransformers||[],eventDragMutationMassagers:t.eventDragMutationMassagers||[],eventDefMutationAppliers:t.eventDefMutationAppliers||[],dateSelectionTransformers:t.dateSelectionTransformers||[],datePointTransforms:t.datePointTransforms||[],dateSpanTransforms:t.dateSpanTransforms||[],views:t.views||{},viewPropsTransformers:t.viewPropsTransformers||[],isPropsValid:t.isPropsValid||null,externalDefTransforms:t.externalDefTransforms||[],viewContainerAppends:t.viewContainerAppends||[],eventDropTransformers:t.eventDropTransformers||[],componentInteractions:t.componentInteractions||[],calendarInteractions:t.calendarInteractions||[],themeClasses:t.themeClasses||{},eventSourceDefs:t.eventSourceDefs||[],cmdFormatter:t.cmdFormatter,recurringTypes:t.recurringTypes||[],namedTimeZonedImpl:t.namedTimeZonedImpl,initialView:t.initialView||"",elementDraggingImpl:t.elementDraggingImpl,optionChangeHandlers:t.optionChangeHandlers||{},scrollGridImpl:t.scrollGridImpl||null,listenerRefiners:t.listenerRefiners||{},optionRefiners:t.optionRefiners||{},propSetHandlers:t.propSetHandlers||{}}}function Ig(t,e){let n={},o={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 r(l){for(let a of l){const s=a.name,d=n[s];d===void 0?(n[s]=a.id,r(a.deps),o=Og(o,a)):d!==a.id&&console.warn(`Duplicate plugin '${s}'`)}}return t&&r(t),r(e),o}function Bg(){let t=[],e=[],n;return(o,r)=>((!n||!et(o,t)||!et(r,e))&&(n=Ig(o,r)),t=o,e=r,n)}function Og(t,e){return{premiumReleaseDate:Mg(t.premiumReleaseDate,e.premiumReleaseDate),reducers:t.reducers.concat(e.reducers),isLoadingFuncs:t.isLoadingFuncs.concat(e.isLoadingFuncs),contextInit:t.contextInit.concat(e.contextInit),eventRefiners:Object.assign(Object.assign({},t.eventRefiners),e.eventRefiners),eventDefMemberAdders:t.eventDefMemberAdders.concat(e.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},t.eventSourceRefiners),e.eventSourceRefiners),isDraggableTransformers:t.isDraggableTransformers.concat(e.isDraggableTransformers),eventDragMutationMassagers:t.eventDragMutationMassagers.concat(e.eventDragMutationMassagers),eventDefMutationAppliers:t.eventDefMutationAppliers.concat(e.eventDefMutationAppliers),dateSelectionTransformers:t.dateSelectionTransformers.concat(e.dateSelectionTransformers),datePointTransforms:t.datePointTransforms.concat(e.datePointTransforms),dateSpanTransforms:t.dateSpanTransforms.concat(e.dateSpanTransforms),views:Object.assign(Object.assign({},t.views),e.views),viewPropsTransformers:t.viewPropsTransformers.concat(e.viewPropsTransformers),isPropsValid:e.isPropsValid||t.isPropsValid,externalDefTransforms:t.externalDefTransforms.concat(e.externalDefTransforms),viewContainerAppends:t.viewContainerAppends.concat(e.viewContainerAppends),eventDropTransformers:t.eventDropTransformers.concat(e.eventDropTransformers),calendarInteractions:t.calendarInteractions.concat(e.calendarInteractions),componentInteractions:t.componentInteractions.concat(e.componentInteractions),themeClasses:Object.assign(Object.assign({},t.themeClasses),e.themeClasses),eventSourceDefs:t.eventSourceDefs.concat(e.eventSourceDefs),cmdFormatter:e.cmdFormatter||t.cmdFormatter,recurringTypes:t.recurringTypes.concat(e.recurringTypes),namedTimeZonedImpl:e.namedTimeZonedImpl||t.namedTimeZonedImpl,initialView:t.initialView||e.initialView,elementDraggingImpl:t.elementDraggingImpl||e.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},t.optionChangeHandlers),e.optionChangeHandlers),scrollGridImpl:e.scrollGridImpl||t.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},t.listenerRefiners),e.listenerRefiners),optionRefiners:Object.assign(Object.assign({},t.optionRefiners),e.optionRefiners),propSetHandlers:Object.assign(Object.assign({},t.propSetHandlers),e.propSetHandlers)}}function Mg(t,e){return t===void 0?e:e===void 0?t:new Date(Math.max(t.valueOf(),e.valueOf()))}class rt extends dn{}rt.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},rt.prototype.baseIconClass="fc-icon",rt.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"},rt.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},rt.prototype.iconOverrideOption="buttonIcons",rt.prototype.iconOverrideCustomButtonOption="icon",rt.prototype.iconOverridePrefix="fc-icon-";function Lg(t,e){let n={},o;for(o in t)Po(o,n,t,e);for(o in e)Po(o,n,t,e);return n}function Po(t,e,n,o){if(e[t])return e[t];let r=zg(t,e,n,o);return r&&(e[t]=r),r}function zg(t,e,n,o){let r=n[t],l=o[t],a=u=>r&&r[u]!==null?r[u]:l&&l[u]!==null?l[u]:null,s=a("component"),d=a("superType"),f=null;if(d){if(d===t)throw new Error("Can't have a custom view type that references itself");f=Po(d,e,n,o)}return!s&&f&&(s=f.component),s?{type:t,component:s,defaults:Object.assign(Object.assign({},f?f.defaults:{}),r?r.rawOptions:{}),overrides:Object.assign(Object.assign({},f?f.overrides:{}),l?l.rawOptions:{})}:null}function ts(t){return $e(t,Pg)}function Pg(t){let e=typeof t=="function"?{component:t}:t,{component:n}=e;return e.content?n=ns(e):n&&!(n.prototype instanceof J)&&(n=ns(Object.assign(Object.assign({},e),{content:n}))),{superType:e.type,component:n,rawOptions:e}}function ns(t){return e=>E(He.Consumer,null,n=>E(Se,{elTag:"div",elClasses:Kl(n.viewSpec),renderProps:Object.assign(Object.assign({},e),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,customGenerator:t.content,classNameGenerator:t.classNames,didMount:t.didMount,willUnmount:t.willUnmount}))}function Fg(t,e,n,o){let r=ts(t),l=ts(e.views),a=Lg(r,l);return $e(a,s=>$g(s,l,e,n,o))}function $g(t,e,n,o,r){let l=t.overrides.duration||t.defaults.duration||o.duration||n.duration,a=null,s="",d="",f={};if(l&&(a=Hg(l),a)){let p=Qi(a);s=p.unit,p.value===1&&(d=s,f=e[s]?e[s].rawOptions:{})}let u=p=>{let c=p.buttonText||{},_=t.defaults.buttonTextKey;return _!=null&&c[_]!=null?c[_]:c[t.type]!=null?c[t.type]:c[d]!=null?c[d]:null},m=p=>{let c=p.buttonHints||{},_=t.defaults.buttonTextKey;return _!=null&&c[_]!=null?c[_]:c[t.type]!=null?c[t.type]:c[d]!=null?c[d]:null};return{type:t.type,component:t.component,duration:a,durationUnit:s,singleUnit:d,optionDefaults:t.defaults,optionOverrides:Object.assign(Object.assign({},f),t.overrides),buttonTextOverride:u(o)||u(n)||t.overrides.buttonText,buttonTextDefault:u(r)||t.defaults.buttonText||u(cn)||t.type,buttonTitleOverride:m(o)||m(n)||t.overrides.buttonHint,buttonTitleDefault:m(r)||t.defaults.buttonHint||m(cn)}}let is={};function Hg(t){let e=JSON.stringify(t),n=is[e];return n===void 0&&(n=Q(t),is[e]=n),n}function jg(t,e){switch(e.type){case"CHANGE_VIEW_TYPE":t=e.viewType}return t}function Ug(t,e){switch(e.type){case"SET_OPTION":return Object.assign(Object.assign({},t),{[e.optionName]:e.rawOptionValue});default:return t}}function Wg(t,e,n,o){let r;switch(e.type){case"CHANGE_VIEW_TYPE":return o.build(e.dateMarker||n);case"CHANGE_DATE":return o.build(e.dateMarker);case"PREV":if(r=o.buildPrev(t,n),r.isValid)return r;break;case"NEXT":if(r=o.buildNext(t,n),r.isValid)return r;break}return t}function Gg(t,e,n){let o=e?e.activeRange:null;return rs({},Jg(t,n),o,n)}function qg(t,e,n,o){let r=n?n.activeRange:null;switch(e.type){case"ADD_EVENT_SOURCES":return rs(t,e.sources,r,o);case"REMOVE_EVENT_SOURCE":return Qg(t,e.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?ls(t,r,o):t;case"FETCH_EVENT_SOURCES":return Fo(t,e.sourceIds?Wl(e.sourceIds):as(t,o),r,e.isRefetch||!1,o);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return Xg(t,e.sourceId,e.fetchId,e.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return t}}function Yg(t,e,n){let o=e?e.activeRange:null;return Fo(t,as(t,n),o,!0,n)}function os(t){for(let e in t)if(t[e].isFetching)return!0;return!1}function rs(t,e,n,o){let r={};for(let l of e)r[l.sourceId]=l;return n&&(r=ls(r,n,o)),Object.assign(Object.assign({},t),r)}function Qg(t,e){return wt(t,n=>n.sourceId!==e)}function ls(t,e,n){return Fo(t,wt(t,o=>Zg(o,e,n)),e,!1,n)}function Zg(t,e,n){return ss(t,n)?!n.options.lazyFetching||!t.fetchRange||t.isFetching||e.start<t.fetchRange.start||e.end>t.fetchRange.end:!t.latestFetchId}function Fo(t,e,n,o,r){let l={};for(let a in t){let s=t[a];e[a]?l[a]=Kg(s,n,o,r):l[a]=s}return l}function Kg(t,e,n,o){let{options:r,calendarApi:l}=o,a=o.pluginHooks.eventSourceDefs[t.sourceDefId],s=_t();return a.fetch({eventSource:t,range:e,isRefetch:n,context:o},d=>{let{rawEvents:f}=d;r.eventSourceSuccess&&(f=r.eventSourceSuccess.call(l,f,d.response)||f),t.success&&(f=t.success.call(l,f,d.response)||f),o.dispatch({type:"RECEIVE_EVENTS",sourceId:t.sourceId,fetchId:s,fetchRange:e,rawEvents:f})},d=>{let f=!1;r.eventSourceFailure&&(r.eventSourceFailure.call(l,d),f=!0),t.failure&&(t.failure(d),f=!0),f||console.warn(d.message,d),o.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:t.sourceId,fetchId:s,fetchRange:e,error:d})}),Object.assign(Object.assign({},t),{isFetching:!0,latestFetchId:s})}function Xg(t,e,n,o){let r=t[e];return r&&n===r.latestFetchId?Object.assign(Object.assign({},t),{[e]:Object.assign(Object.assign({},r),{isFetching:!1,fetchRange:o})}):t}function as(t,e){return wt(t,n=>ss(n,e))}function Jg(t,e){let n=sa(e),o=[].concat(t.eventSources||[]),r=[];t.initialEvents&&o.unshift(t.initialEvents),t.events&&o.unshift(t.events);for(let l of o){let a=aa(l,e,n);a&&r.push(a)}return r}function ss(t,e){return!e.pluginHooks.eventSourceDefs[t.sourceDefId].ignoreRange}function e0(t,e){switch(e.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return e.selection;default:return t}}function t0(t,e){switch(e.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return e.eventInstanceId;default:return t}}function n0(t,e){let n;switch(e.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=e.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function i0(t,e){let n;switch(e.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=e.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function o0(t,e,n,o,r){let l=t.headerToolbar?cs(t.headerToolbar,t,e,n,o,r):null,a=t.footerToolbar?cs(t.footerToolbar,t,e,n,o,r):null;return{header:l,footer:a}}function cs(t,e,n,o,r,l){let a={},s=[],d=!1;for(let f in t){let u=t[f],m=r0(u,e,n,o,r,l);a[f]=m.widgets,s.push(...m.viewsWithButtons),d=d||m.hasTitle}return{sectionWidgets:a,viewsWithButtons:s,hasTitle:d}}function r0(t,e,n,o,r,l){let a=e.direction==="rtl",s=e.customButtons||{},d=n.buttonText||{},f=e.buttonText||{},u=n.buttonHints||{},m=e.buttonHints||{},p=t?t.split(" "):[],c=[],_=!1;return{widgets:p.map(h=>h.split(",").map(b=>{if(b==="title")return _=!0,{buttonName:b};let y,C,k,B,S,x;if(y=s[b])k=w=>{y.click&&y.click.call(w.target,w,w.target)},(B=o.getCustomButtonIconClass(y))||(B=o.getIconClass(b,a))||(S=y.text),x=y.hint||y.text;else if(C=r[b]){c.push(b),k=()=>{l.changeView(b)},(S=C.buttonTextOverride)||(B=o.getIconClass(b,a))||(S=C.buttonTextDefault);let w=C.buttonTextOverride||C.buttonTextDefault;x=sn(C.buttonTitleOverride||C.buttonTitleDefault||e.viewHint,[w,b],w)}else if(l[b])if(k=()=>{l[b]()},(S=d[b])||(B=o.getIconClass(b,a))||(S=f[b]),b==="prevYear"||b==="nextYear"){let w=b==="prevYear"?"prev":"next";x=sn(u[w]||m[w],[f.year||"year","year"],f[b])}else x=w=>sn(u[b]||m[b],[f[w]||w,w],f[b]);return{buttonName:b,buttonClick:k,buttonIcon:B,buttonText:S,buttonHint:x}})),viewsWithButtons:c,hasTitle:_}}class l0{constructor(e,n,o){this.type=e,this.getCurrentData=n,this.dateEnv=o}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(e){return this.getCurrentData().options[e]}}const a0=Ge({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta(t){return Array.isArray(t.events)?t.events:null},fetch(t,e){e({rawEvents:t.eventSource.meta})}}]}),s0=Ge({name:"func-event-source",eventSourceDefs:[{parseMeta(t){return typeof t.events=="function"?t.events:null},fetch(t,e,n){const{dateEnv:o}=t.context,r=t.eventSource.meta;Cm(r.bind(null,ka(t.range,o)),l=>e({rawEvents:l}),n)}}]}),c0=Ge({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:v,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta(t){return t.url&&(t.format==="json"||!t.format)?{url:t.url,format:"json",method:(t.method||"GET").toUpperCase(),extraParams:t.extraParams,startParam:t.startParam,endParam:t.endParam,timeZoneParam:t.timeZoneParam}:null},fetch(t,e,n){const{meta:o}=t.eventSource,r=d0(o,t.range,t.context);km(o.method,o.url,r).then(([l,a])=>{e({rawEvents:l,response:a})},n)}}]});function d0(t,e,n){let{dateEnv:o,options:r}=n,l,a,s,d,f={};return l=t.startParam,l==null&&(l=r.startParam),a=t.endParam,a==null&&(a=r.endParam),s=t.timeZoneParam,s==null&&(s=r.timeZoneParam),typeof t.extraParams=="function"?d=t.extraParams():d=t.extraParams||{},Object.assign(f,d),f[l]=o.formatIso(e.start),f[a]=o.formatIso(e.end),o.timeZone!=="local"&&(f[s]=o.timeZone),f}const u0=Ge({name:"simple-recurring-event",recurringTypes:[{parse(t,e){if(t.daysOfWeek||t.startTime||t.endTime||t.startRecur||t.endRecur){let n={daysOfWeek:t.daysOfWeek||null,startTime:t.startTime||null,endTime:t.endTime||null,startRecur:t.startRecur?e.createMarker(t.startRecur):null,endRecur:t.endRecur?e.createMarker(t.endRecur):null},o;return t.duration&&(o=t.duration),!o&&t.startTime&&t.endTime&&(o=Ip(t.endTime,t.startTime)),{allDayGuess:!t.startTime&&!t.endTime,duration:o,typeData:n}}return null},expand(t,e,n){let o=kt(e,{start:t.startRecur,end:t.endRecur});return o?f0(t.daysOfWeek,t.startTime,o,n):[]}}],eventRefiners:{daysOfWeek:v,startTime:Q,endTime:Q,duration:Q,startRecur:v,endRecur:v}});function f0(t,e,n,o){let r=t?Wl(t):null,l=ie(n.start),a=n.end,s=[];for(;l<a;){let d;(!r||r[l.getUTCDay()])&&(e?d=o.add(l,e):d=l,s.push(d)),l=ye(l,1)}return s}const p0=Ge({name:"change-handler",optionChangeHandlers:{events(t,e){ds([t],e)},eventSources:ds}});function ds(t,e){let n=no(e.getCurrentData().eventSources);if(n.length===1&&t.length===1&&Array.isArray(n[0]._raw)&&Array.isArray(t[0])){e.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:t[0]});return}let o=[];for(let r of t){let l=!1;for(let a=0;a<n.length;a+=1)if(n[a]._raw===r){n.splice(a,1),l=!0;break}l||o.push(r)}for(let r of n)e.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:r.sourceId});for(let r of o)e.calendarApi.addEventSource(r)}function h0(t,e){e.emitter.trigger("datesSet",Object.assign(Object.assign({},ka(t.activeRange,e.dateEnv)),{view:e.viewApi}))}function m0(t,e){let{emitter:n}=e;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",St(t,e))}const g0=[a0,s0,c0,u0,p0,Ge({name:"misc",isLoadingFuncs:[t=>os(t.eventSources)],propSetHandlers:{dateProfile:h0,eventStore:m0}})];class _0{constructor(e,n){this.runTaskOption=e,this.drainedOption=n,this.queue=[],this.delayedRunner=new ji(this.drain.bind(this))}request(e,n){this.queue.push(e),this.delayedRunner.request(n)}pause(e){this.delayedRunner.pause(e)}resume(e,n){this.delayedRunner.resume(e,n)}drain(){let{queue:e}=this;for(;e.length;){let n=[],o;for(;o=e.shift();)this.runTask(o),n.push(o);this.drained(n)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}}function y0(t,e,n){let o;return/^(year|month)$/.test(t.currentRangeUnit)?o=t.currentRange:o=t.activeRange,n.formatRange(o.start,o.end,de(e.titleFormat||b0(t)),{isEndExclusive:t.isRangeAllDay,defaultSeparator:e.titleRangeSeparator})}function b0(t){let{currentRangeUnit:e}=t;if(e==="year")return{year:"numeric"};if(e==="month")return{year:"numeric",month:"long"};let n=Hn(t.currentRange.start,t.currentRange.end);return n!==null&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class E0{constructor(e){this.computeCurrentViewData=F(this._computeCurrentViewData),this.organizeRawLocales=F(Tg),this.buildLocale=F(Ja),this.buildPluginHooks=Bg(),this.buildDateEnv=F(w0),this.buildTheme=F(C0),this.parseToolbars=F(o0),this.buildViewSpecs=F(Fg),this.buildDateProfileGenerator=jn(k0),this.buildViewApi=F(v0),this.buildViewUiProps=jn(D0),this.buildEventUiBySource=F(S0,Me),this.buildEventUiBases=F(A0),this.parseContextBusinessHours=jn(x0),this.buildTitle=F(y0),this.emitter=new ti,this.actionRunner=new _0(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=p=>{this.actionRunner.request(p)},this.props=e,this.actionRunner.pause();let n={},o=this.computeOptionsData(e.optionOverrides,n,e.calendarApi),r=o.calendarOptions.initialView||o.pluginHooks.initialView,l=this.computeCurrentViewData(r,o,e.optionOverrides,n);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(l.options);let a=Mh(o.calendarOptions,o.dateEnv),s=l.dateProfileGenerator.build(a);Ue(s.activeRange,a)||(a=s.currentRange.start);let d={dateEnv:o.dateEnv,options:o.calendarOptions,pluginHooks:o.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let p of o.pluginHooks.contextInit)p(d);let f=Gg(o.calendarOptions,s,d),u={dynamicOptionOverrides:n,currentViewType:r,currentDate:a,dateProfile:s,businessHours:this.parseContextBusinessHours(d),eventSources:f,eventUiBases:{},eventStore:Ae(),renderableEventStore:Ae(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(d).selectionConfig},m=Object.assign(Object.assign({},d),u);for(let p of o.pluginHooks.reducers)Object.assign(u,p(null,null,m));$o(u,d)&&this.emitter.trigger("loading",!0),this.state=u,this.updateData(),this.actionRunner.resume()}resetOptions(e,n){let{props:o}=this;n===void 0?o.optionOverrides=e:(o.optionOverrides=Object.assign(Object.assign({},o.optionOverrides||{}),e),this.optionsForRefining.push(...n)),(n===void 0||n.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:n,state:o,emitter:r}=this,l=Ug(o.dynamicOptionOverrides,e),a=this.computeOptionsData(n.optionOverrides,l,n.calendarApi),s=jg(o.currentViewType,e),d=this.computeCurrentViewData(s,a,n.optionOverrides,l);n.calendarApi.currentDataManager=this,r.setThisContext(n.calendarApi),r.setOptions(d.options);let f={dateEnv:a.dateEnv,options:a.calendarOptions,pluginHooks:a.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:r,getCurrentData:this.getCurrentData},{currentDate:u,dateProfile:m}=o;this.data&&this.data.dateProfileGenerator!==d.dateProfileGenerator&&(m=d.dateProfileGenerator.build(u)),u=Oh(u,e),m=Wg(m,e,u,d.dateProfileGenerator),(e.type==="PREV"||e.type==="NEXT"||!Ue(m.currentRange,u))&&(u=m.currentRange.start);let p=qg(o.eventSources,e,m,f),c=Qh(o.eventStore,e,p,m,f),g=os(p)&&!d.options.progressiveEventRendering&&o.renderableEventStore||c,{eventUiSingleBase:h,selectionConfig:b}=this.buildViewUiProps(f),y=this.buildEventUiBySource(p),C=this.buildEventUiBases(g.defs,h,y),k={dynamicOptionOverrides:l,currentViewType:s,currentDate:u,dateProfile:m,eventSources:p,eventStore:c,renderableEventStore:g,selectionConfig:b,eventUiBases:C,businessHours:this.parseContextBusinessHours(f),dateSelection:e0(o.dateSelection,e),eventSelection:t0(o.eventSelection,e),eventDrag:n0(o.eventDrag,e),eventResize:i0(o.eventResize,e)},B=Object.assign(Object.assign({},f),k);for(let w of a.pluginHooks.reducers)Object.assign(k,w(o,e,B));let S=$o(o,f),x=$o(k,f);!S&&x?r.trigger("loading",!0):S&&!x&&r.trigger("loading",!1),this.state=k,n.onAction&&n.onAction(e)}updateData(){let{props:e,state:n}=this,o=this.data,r=this.computeOptionsData(e.optionOverrides,n.dynamicOptionOverrides,e.calendarApi),l=this.computeCurrentViewData(n.currentViewType,r,e.optionOverrides,n.dynamicOptionOverrides),a=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(n.dateProfile,l.options,r.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},r),l),n),s=r.pluginHooks.optionChangeHandlers,d=o&&o.calendarOptions,f=r.calendarOptions;if(d&&d!==f){d.timeZone!==f.timeZone&&(n.eventSources=a.eventSources=Yg(a.eventSources,n.dateProfile,a),n.eventStore=a.eventStore=ua(a.eventStore,o.dateEnv,a.dateEnv),n.renderableEventStore=a.renderableEventStore=ua(a.renderableEventStore,o.dateEnv,a.dateEnv));for(let u in s)(this.optionsForHandling.indexOf(u)!==-1||d[u]!==f[u])&&s[u](f[u],a)}this.optionsForHandling=[],e.onData&&e.onData(a)}computeOptionsData(e,n,o){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&n===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:r,pluginHooks:l,localeDefaults:a,availableLocaleData:s,extra:d}=this.processRawCalendarOptions(e,n);us(d);let f=this.buildDateEnv(r.timeZone,r.locale,r.weekNumberCalculation,r.firstDay,r.weekText,l,s,r.defaultRangeSeparator),u=this.buildViewSpecs(l.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,a),m=this.buildTheme(r,l),p=this.parseToolbars(r,this.stableOptionOverrides,m,u,o);return this.stableCalendarOptionsData={calendarOptions:r,pluginHooks:l,dateEnv:f,viewSpecs:u,theme:m,toolbarConfig:p,localeDefaults:a,availableRawLocales:s.map}}processRawCalendarOptions(e,n){let{locales:o,locale:r}=Ji([cn,e,n]),l=this.organizeRawLocales(o),a=l.map,s=this.buildLocale(r||l.defaultCode,a).options,d=this.buildPluginHooks(e.plugins||[],g0),f=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Hl),jl),Ul),d.listenerRefiners),d.optionRefiners),u={},m=Ji([cn,s,e,n]),p={},c=this.currentCalendarOptionsInput,_=this.currentCalendarOptionsRefined,g=!1;for(let h in m)this.optionsForRefining.indexOf(h)===-1&&(m[h]===c[h]||bt[h]&&h in c&&bt[h](c[h],m[h]))?p[h]=_[h]:f[h]?(p[h]=f[h](m[h]),g=!0):u[h]=c[h];return g&&(this.currentCalendarOptionsInput=m,this.currentCalendarOptionsRefined=p,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=n),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:d,availableLocaleData:l,localeDefaults:s,extra:u}}_computeCurrentViewData(e,n,o,r){let l=n.viewSpecs[e];if(!l)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:a,extra:s}=this.processRawViewOptions(l,n.pluginHooks,n.localeDefaults,o,r);us(s);let d=this.buildDateProfileGenerator({dateProfileGeneratorClass:l.optionDefaults.dateProfileGeneratorClass,duration:l.duration,durationUnit:l.durationUnit,usesMinMaxTime:l.optionDefaults.usesMinMaxTime,dateEnv:n.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:a.slotMinTime,slotMaxTime:a.slotMaxTime,showNonCurrentDates:a.showNonCurrentDates,dayCount:a.dayCount,dateAlignment:a.dateAlignment,dateIncrement:a.dateIncrement,hiddenDays:a.hiddenDays,weekends:a.weekends,nowInput:a.now,validRangeInput:a.validRange,visibleRangeInput:a.visibleRange,fixedWeekCount:a.fixedWeekCount}),f=this.buildViewApi(e,this.getCurrentData,n.dateEnv);return{viewSpec:l,options:a,dateProfileGenerator:d,viewApi:f}}processRawViewOptions(e,n,o,r,l){let a=Ji([cn,e.optionDefaults,o,r,e.optionOverrides,l]),s=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Hl),jl),Ul),fh),n.listenerRefiners),n.optionRefiners),d={},f=this.currentViewOptionsInput,u=this.currentViewOptionsRefined,m=!1,p={};for(let c in a)a[c]===f[c]||bt[c]&&bt[c](a[c],f[c])?d[c]=u[c]:(a[c]===this.currentCalendarOptionsInput[c]||bt[c]&&bt[c](a[c],this.currentCalendarOptionsInput[c])?c in this.currentCalendarOptionsRefined&&(d[c]=this.currentCalendarOptionsRefined[c]):s[c]?d[c]=s[c](a[c]):p[c]=a[c],m=!0);return m&&(this.currentViewOptionsInput=a,this.currentViewOptionsRefined=d),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:p}}}function w0(t,e,n,o,r,l,a,s){let d=Ja(e||a.defaultCode,a.map);return new Ch({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:l.namedTimeZonedImpl,locale:d,weekNumberCalculation:n,firstDay:o,weekText:r,cmdFormatter:l.cmdFormatter,defaultSeparator:s})}function C0(t,e){let n=e.themeClasses[t.themeSystem]||rt;return new n(t)}function k0(t){let e=t.dateProfileGeneratorClass||ta;return new e(t)}function v0(t,e,n){return new l0(t,e,n)}function S0(t){return $e(t,e=>e.ui)}function A0(t,e,n){let o={"":e};for(let r in t){let l=t[r];l.sourceId&&n[l.sourceId]&&(o[r]=n[l.sourceId])}return o}function D0(t){let{options:e}=t;return{eventUiSingleBase:ei({display:e.eventDisplay,editable:e.editable,startEditable:e.eventStartEditable,durationEditable:e.eventDurationEditable,constraint:e.eventConstraint,overlap:typeof e.eventOverlap=="boolean"?e.eventOverlap:void 0,allow:e.eventAllow,backgroundColor:e.eventBackgroundColor,borderColor:e.eventBorderColor,textColor:e.eventTextColor,color:e.eventColor},t),selectionConfig:ei({constraint:e.selectConstraint,overlap:typeof e.selectOverlap=="boolean"?e.selectOverlap:void 0,allow:e.selectAllow},t)}}function $o(t,e){for(let n of e.pluginHooks.isLoadingFuncs)if(n(t))return!0;return!1}function x0(t){return om(t.options.businessHours,t)}function us(t,e){for(let n in t)console.warn(`Unknown option '${n}'`+(e?` for view '${e}'`:""))}class N0 extends J{render(){let e=this.props.widgetGroups.map(n=>this.renderWidgetGroup(n));return E("div",{className:"fc-toolbar-chunk"},...e)}renderWidgetGroup(e){let{props:n}=this,{theme:o}=this.context,r=[],l=!0;for(let a of e){let{buttonName:s,buttonClick:d,buttonText:f,buttonIcon:u,buttonHint:m}=a;if(s==="title")l=!1,r.push(E("h2",{className:"fc-toolbar-title",id:n.titleId},n.title));else{let p=s===n.activeButton,c=!n.isTodayEnabled&&s==="today"||!n.isPrevEnabled&&s==="prev"||!n.isNextEnabled&&s==="next",_=[`fc-${s}-button`,o.getClass("button")];p&&_.push(o.getClass("buttonActive")),r.push(E("button",{type:"button",title:typeof m=="function"?m(n.navUnit):m,disabled:c,"aria-pressed":p,className:_.join(" "),onClick:d},f||(u?E("span",{className:u,role:"img"}):"")))}}if(r.length>1){let a=l&&o.getClass("buttonGroup")||"";return E("div",{className:a},...r)}return r[0]}}class fs extends J{render(){let{model:e,extraClassName:n}=this.props,o=!1,r,l,a=e.sectionWidgets,s=a.center;return a.left?(o=!0,r=a.left):r=a.start,a.right?(o=!0,l=a.right):l=a.end,E("div",{className:[n||"","fc-toolbar",o?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",r||[]),this.renderSection("center",s||[]),this.renderSection("end",l||[]))}renderSection(e,n){let{props:o}=this;return E(N0,{key:e,widgetGroups:n,title:o.title,navUnit:o.navUnit,activeButton:o.activeButton,isTodayEnabled:o.isTodayEnabled,isPrevEnabled:o.isPrevEnabled,isNextEnabled:o.isNextEnabled,titleId:o.titleId})}}class T0 extends J{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,je(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:n}=this,{aspectRatio:o}=e,r=["fc-view-harness",o||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],l="",a="";return o?n.availableWidth!==null?l=n.availableWidth/o:a=`${1/o*100}%`:l=e.height||"",E("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:r.join(" "),style:{height:l,paddingBottom:a}},e.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class V0 extends Gt{constructor(e){super(e),this.handleSegClick=(n,o)=>{let{component:r}=this,{context:l}=r,a=Wt(o);if(a&&r.isValidSegDownEl(n.target)){let s=_e(n.target,".fc-event-forced-url"),d=s?s.querySelector("a[href]").href:"";l.emitter.trigger("eventClick",{el:o,event:new se(r.context,a.eventRange.def,a.eventRange.instance),jsEvent:n,view:l.viewApi}),d&&!n.defaultPrevented&&(window.location.href=d)}},this.destroy=Dl(e.el,"click",".fc-event",this.handleSegClick)}}class R0 extends Gt{constructor(e){super(e),this.handleEventElRemove=n=>{n===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(n,o)=>{Wt(o)&&(this.currentSegEl=o,this.triggerEvent("eventMouseEnter",n,o))},this.handleSegLeave=(n,o)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",n,o))},this.removeHoverListeners=yp(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,n,o){let{component:r}=this,{context:l}=r,a=Wt(o);(!n||r.isValidSegDownEl(n.target))&&l.emitter.trigger(e,{el:o,event:new se(l,a.eventRange.def,a.eventRange.instance),jsEvent:n,view:l.viewApi})}}class I0 extends Ct{constructor(){super(...arguments),this.buildViewContext=F(Sh),this.buildViewPropTransformers=F(O0),this.buildToolbarProps=F(B0),this.headerRef=be(),this.footerRef=be(),this.interactionsStore={},this.state={viewLabelId:Pn()},this.registerInteractiveComponent=(e,n)=>{let o=Am(e,n),a=[V0,R0].concat(this.props.pluginHooks.componentInteractions).map(s=>new s(o));this.interactionsStore[e.uid]=a,bo[e.uid]=o},this.unregisterInteractiveComponent=e=>{let n=this.interactionsStore[e.uid];if(n){for(let o of n)o.destroy();delete this.interactionsStore[e.uid]}delete bo[e.uid]},this.resizeRunner=new ji(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=e=>{let{options:n}=this.props;n.handleWindowResize&&e.target===window&&this.resizeRunner.request(n.windowResizeDelay)}}render(){let{props:e}=this,{toolbarConfig:n,options:o}=e,r=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,un(e.options.now,e.dateEnv),e.viewTitle),l=!1,a="",s;e.isHeightAuto||e.forPrint?a="":o.height!=null?l=!0:o.contentHeight!=null?a=o.contentHeight:s=Math.max(o.aspectRatio,.5);let d=this.buildViewContext(e.viewSpec,e.viewApi,e.options,e.dateProfileGenerator,e.dateEnv,e.theme,e.pluginHooks,e.dispatch,e.getCurrentData,e.emitter,e.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),f=n.header&&n.header.hasTitle?this.state.viewLabelId:"";return E(He.Provider,{value:d},n.header&&E(fs,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:f},r)),E(T0,{liquid:l,height:a,aspectRatio:s,labeledById:f},this.renderView(e),this.buildAppendContent()),n.footer&&E(fs,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},r)))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(o=>new o(e)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:n}=e.pluginHooks;for(let o in n)n[o](e[o],e)}componentDidUpdate(e){let{props:n}=this,{propSetHandlers:o}=n.pluginHooks;for(let r in o)n[r]!==e[r]&&o[r](n[r],n)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this,n=e.pluginHooks.viewContainerAppends.map(o=>o(e));return E(re,{},...n)}renderView(e){let{pluginHooks:n}=e,{viewSpec:o}=e,r={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},l=this.buildViewPropTransformers(n.viewPropsTransformers);for(let s of l)Object.assign(r,s.transform(r,e));let a=o.component;return E(a,Object.assign({},r))}}function B0(t,e,n,o,r,l){let a=n.build(r,void 0,!1),s=n.buildPrev(e,o,!1),d=n.buildNext(e,o,!1);return{title:l,activeButton:t.type,navUnit:t.singleUnit,isTodayEnabled:a.isValid&&!Ue(e.currentRange,r),isPrevEnabled:s.isValid,isNextEnabled:d.isValid}}function O0(t){return t.map(e=>new e)}let M0=class extends Dm{constructor(e,n={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=o=>{switch(o.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=o=>{this.currentData=o,this.renderRunner.request(o.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:o}=this;ql(()=>{ln(E(Sm,{options:o.calendarOptions,theme:o.theme,emitter:o.emitter},(r,l,a,s)=>(this.setClassNames(r),this.setHeight(l),E(Zl.Provider,{value:this.customContentRenderId},E(I0,Object.assign({isHeightAuto:a,forPrint:s},o))))),this.el)})}else this.isRendered&&(this.isRendered=!1,ln(null,this.el),this.setClassNames([]),this.setHeight(""))},cp(e),this.el=e,this.renderRunner=new ji(this.handleRenderRequest),new E0({optionOverrides:n,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){ql(()=>{super.updateSize()})}batchRendering(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(e,n){this.currentDataManager.resetOptions(e,n)}setClassNames(e){if(!et(e,this.currentClassNames)){let{classList:n}=this.el;for(let o of this.currentClassNames)n.remove(o);for(let o of e)n.add(o);this.currentClassNames=e}}setHeight(e){vl(this.el,"height",e)}};const L0={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0},ps=i.defineComponent({props:{options:Object},data(){return{renderId:0,customRenderingMap:new Map}},methods:{getApi(){return this.calendar},buildOptions(t){return{...t,customRenderingMetaMap:F0(this.$slots),handleCustomRendering:this.handleCustomRendering}}},render(){const t=[];for(const e of this.customRenderingMap.values())t.push(i.h(z0,{key:e.id,customRendering:e}));return i.h("div",{attrs:{"data-fc-render-id":this.renderId}},i.h(i.Fragment,t))},mounted(){const t=new xg;this.handleCustomRendering=t.handle.bind(t);const e=this.buildOptions(this.options),n=new M0(this.$el,e);this.calendar=n,n.render(),t.subscribe(o=>{this.customRenderingMap=o,this.renderId++,this.needCustomRenderingResize=!0})},beforeUpdate(){this.getApi().resumeRendering()},updated(){this.needCustomRenderingResize&&(this.needCustomRenderingResize=!1,this.getApi().updateSize())},beforeUnmount(){this.getApi().destroy()},watch:P0()}),z0=i.defineComponent({props:{customRendering:Object},render(){const t=this.customRendering,e=typeof t.generatorMeta=="function"?t.generatorMeta(t.renderProps):t.generatorMeta;return i.h(i.Teleport,{to:t.containerEl},e)}});function E4(t){return t}function P0(){let t={options:{deep:!0,handler(e){let n=this.getApi();n.pauseRendering();let o=this.buildOptions(e);n.resetOptions(o),this.renderId++}}};for(let e in L0)t[`options.${e}`]={deep:!0,handler(n){if(n!==void 0){let o=this.getApi();o.pauseRendering(),o.resetOptions({[e]:n},[e]),this.renderId++}}};return t}function F0(t){const e={};for(const n in t)e[$0(n)]=t[n];return e}function $0(t){return t.split("-").map((e,n)=>n?H0(e):e).join("")}function H0(t){return t.charAt(0).toUpperCase()+t.slice(1)}class j0 extends Le{constructor(){super(...arguments),this.headerElRef=be()}renderSimpleLayout(e,n){let{props:o,context:r}=this,l=[],a=ai(r.options);return e&&l.push({type:"header",key:"header",isSticky:a,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),l.push({type:"body",key:"body",liquid:!0,chunk:{content:n}}),E(Qn,{elClasses:["fc-daygrid"],viewSpec:r.viewSpec},E(Io,{liquid:!o.isHeightAuto&&!o.forPrint,collapsibleWidth:o.forPrint,cols:[],sections:l}))}renderHScrollLayout(e,n,o,r){let l=this.context.pluginHooks.scrollGridImpl;if(!l)throw new Error("No ScrollGrid implementation");let{props:a,context:s}=this,d=!a.forPrint&&ai(s.options),f=!a.forPrint&&ja(s.options),u=[];return e&&u.push({type:"header",key:"header",isSticky:d,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),u.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:n}]}),f&&u.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:Ro}]}),E(Qn,{elClasses:["fc-daygrid"],viewSpec:s.viewSpec},E(l,{liquid:!a.isHeightAuto&&!a.forPrint,forPrint:a.forPrint,collapsibleWidth:a.forPrint,colGroups:[{cols:[{span:o,minWidth:r}]}],sections:u}))}}function si(t,e){let n=[];for(let o=0;o<e;o+=1)n[o]=[];for(let o of t)n[o.row].push(o);return n}function ci(t,e){let n=[];for(let o=0;o<e;o+=1)n[o]=[];for(let o of t)n[o.firstCol].push(o);return n}function hs(t,e){let n=[];if(t){for(let o=0;o<e;o+=1)n[o]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(let o of t.segs)n[o.row].segs.push(o)}else for(let o=0;o<e;o+=1)n[o]=null;return n}const ms=de({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function gs(t){let{display:e}=t.eventRange.ui;return e==="list-item"||e==="auto"&&!t.eventRange.def.allDay&&t.firstCol===t.lastCol&&t.isStart&&t.isEnd}class _s extends J{render(){let{props:e}=this;return E(Ua,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:ms,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}}class ys extends J{render(){let{props:e,context:n}=this,{options:o}=n,{seg:r}=e,l=o.eventTimeFormat||ms,a=Ea(r,l,n,!0,e.defaultDisplayEventEnd);return E(Bo,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:Ca(e.seg,n),defaultGenerator:U0,timeText:a,isResizing:!1,isDateSelecting:!1}))}}function U0(t){return E(re,null,E("div",{className:"fc-daygrid-event-dot",style:{borderColor:t.borderColor||t.backgroundColor}}),t.timeText&&E("div",{className:"fc-event-time"},t.timeText),E("div",{className:"fc-event-title"},t.event.title||E(re,null," ")))}class W0 extends J{constructor(){super(...arguments),this.compileSegs=F(G0)}render(){let{props:e}=this,{allSegs:n,invisibleSegs:o}=this.compileSegs(e.singlePlacements);return E(Ya,{elClasses:["fc-daygrid-more-link"],dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:n,hiddenSegs:o,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:()=>{let r=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return E(re,null,n.map(l=>{let a=l.eventRange.instance.instanceId;return E("div",{className:"fc-daygrid-event-harness",key:a,style:{visibility:r[a]?"hidden":""}},gs(l)?E(ys,Object.assign({seg:l,isDragging:!1,isSelected:a===e.eventSelection,defaultDisplayEventEnd:!1},ot(l,e.todayRange))):E(_s,Object.assign({seg:l,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:a===e.eventSelection,defaultDisplayEventEnd:!1},ot(l,e.todayRange))))}))}})}}function G0(t){let e=[],n=[];for(let o of t)e.push(o.seg),o.isVisible||n.push(o.seg);return{allSegs:e,invisibleSegs:n}}const q0=de({week:"narrow"});class Y0 extends Le{constructor(){super(...arguments),this.rootElRef=be(),this.state={dayNumberId:Pn()},this.handleRootEl=e=>{je(this.rootElRef,e),je(this.props.elRef,e)}}render(){let{context:e,props:n,state:o,rootElRef:r}=this,{options:l,dateEnv:a}=e,{date:s,dateProfile:d}=n;const f=n.showDayNumber&&Z0(s,d.currentRange,a);return E(Mo,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...n.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},n.extraDataAttrs),n.showDayNumber?{"aria-labelledby":o.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:Q0,date:s,dateProfile:d,todayRange:n.todayRange,showDayNumber:n.showDayNumber,isMonthStart:f,extraRenderProps:n.extraRenderProps},(u,m)=>E("div",{ref:n.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:n.minHeight}},n.showWeekNumber&&E(qa,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:ii(e,s,"week"),date:s,defaultFormat:q0}),!m.isDisabled&&(n.showDayNumber||Lo(l)||n.forceDayTop)?E("div",{className:"fc-daygrid-day-top"},E(u,{elTag:"a",elClasses:["fc-daygrid-day-number",f&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},ii(e,s)),{id:o.dayNumberId})})):n.showDayNumber?E("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},E("a",{className:"fc-daygrid-day-number"}," ")):void 0,E("div",{className:"fc-daygrid-day-events",ref:n.fgContentElRef},n.fgContent,E("div",{className:"fc-daygrid-day-bottom",style:{marginTop:n.moreMarginTop}},E(W0,{allDayDate:s,singlePlacements:n.singlePlacements,moreCnt:n.moreCnt,alignmentElRef:r,alignGridTop:!n.showDayNumber,extraDateSpan:n.extraDateSpan,dateProfile:n.dateProfile,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,todayRange:n.todayRange}))),E("div",{className:"fc-daygrid-day-bg"},n.bgContent)))}}function Q0(t){return t.dayNumberText||E(re,null," ")}function Z0(t,e,n){const{start:o,end:r}=e,l=tt(r,-1),a=n.getYear(o),s=n.getMonth(o),d=n.getYear(l),f=n.getMonth(l);return!(a===d&&s===f)&&(t.valueOf()===o.valueOf()||n.getDay(t)===1&&t.valueOf()<r.valueOf())}function bs(t){return t.eventRange.instance.instanceId+":"+t.firstCol}function Es(t){return bs(t)+":"+t.lastCol}function K0(t,e,n,o,r,l,a){let s=new e3(b=>{let y=t[b.index].eventRange.instance.instanceId+":"+b.span.start+":"+(b.span.end-1);return r[y]});s.allowReslicing=!0,s.strictOrder=o,e===!0||n===!0?(s.maxCoord=l,s.hiddenConsumes=!0):typeof e=="number"?s.maxStackCnt=e:typeof n=="number"&&(s.maxStackCnt=n,s.hiddenConsumes=!0);let d=[],f=[];for(let b=0;b<t.length;b+=1){let y=t[b],C=Es(y);r[C]!=null?d.push({index:b,span:{start:y.firstCol,end:y.lastCol+1}}):f.push(y)}let u=s.addSegs(d),m=s.toRects(),{singleColPlacements:p,multiColPlacements:c,leftoverMargins:_}=X0(m,t,a),g=[],h=[];for(let b of f){c[b.firstCol].push({seg:b,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let y=b.firstCol;y<=b.lastCol;y+=1)p[y].push({seg:Yt(b,y,y+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let b=0;b<a.length;b+=1)g.push(0);for(let b of u){let y=t[b.index],C=b.span;c[C.start].push({seg:Yt(y,C.start,C.end,a),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let k=C.start;k<C.end;k+=1)g[k]+=1,p[k].push({seg:Yt(y,k,k+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let b=0;b<a.length;b+=1)h.push(_[b]);return{singleColPlacements:p,multiColPlacements:c,moreCnts:g,moreMarginTops:h}}function X0(t,e,n){let o=J0(t,n.length),r=[],l=[],a=[];for(let s=0;s<n.length;s+=1){let d=o[s],f=[],u=0,m=0;for(let c of d){let _=e[c.index];f.push({seg:Yt(_,s,s+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:c.levelCoord,marginTop:c.levelCoord-u}),u=c.levelCoord+c.thickness}let p=[];u=0,m=0;for(let c of d){let _=e[c.index],g=c.span.end-c.span.start>1,h=c.span.start===s;m+=c.levelCoord-u,u=c.levelCoord+c.thickness,g?(m+=c.thickness,h&&p.push({seg:Yt(_,c.span.start,c.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:c.levelCoord,marginTop:0})):h&&(p.push({seg:Yt(_,c.span.start,c.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:c.levelCoord,marginTop:m}),m=0)}r.push(f),l.push(p),a.push(m)}return{singleColPlacements:r,multiColPlacements:l,leftoverMargins:a}}function J0(t,e){let n=[];for(let o=0;o<e;o+=1)n.push([]);for(let o of t)for(let r=o.span.start;r<o.span.end;r+=1)n[r].push(o);return n}function Yt(t,e,n,o){if(t.firstCol===e&&t.lastCol===n-1)return t;let r=t.eventRange,l=r.range,a=kt(l,{start:o[e].date,end:ye(o[n-1].date,1)});return Object.assign(Object.assign({},t),{firstCol:e,lastCol:n-1,eventRange:{def:r.def,ui:Object.assign(Object.assign({},r.ui),{durationEditable:!1}),instance:r.instance,range:a},isStart:t.isStart&&a.start.valueOf()===l.start.valueOf(),isEnd:t.isEnd&&a.end.valueOf()===l.end.valueOf()})}class e3 extends Va{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){const n=super.addSegs(e),{entriesByLevel:o}=this,r=l=>!this.forceHidden[At(l)];for(let l=0;l<o.length;l+=1)o[l]=o[l].filter(r);return n}handleInvalidInsertion(e,n,o){const{entriesByLevel:r,forceHidden:l}=this,{touchingEntry:a,touchingLevel:s,touchingLateral:d}=e;if(this.hiddenConsumes&&a){const f=At(a);if(!l[f])if(this.allowReslicing){const u=Object.assign(Object.assign({},a),{span:Do(a.span,n.span)}),m=At(u);l[m]=!0,r[s][d]=u,this.splitEntry(a,n,o)}else l[f]=!0,o.push(a)}return super.handleInvalidInsertion(e,n,o)}}class ws extends Le{constructor(){super(...arguments),this.cellElRefs=new We,this.frameElRefs=new We,this.fgElRefs=new We,this.segHarnessRefs=new We,this.rootElRef=be(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=e=>{e&&this.updateSizing(!0)}}render(){let{props:e,state:n,context:o}=this,{options:r}=o,l=e.cells.length,a=ci(e.businessHourSegs,l),s=ci(e.bgEventSegs,l),d=ci(this.getHighlightSegs(),l),f=ci(this.getMirrorSegs(),l),{singleColPlacements:u,multiColPlacements:m,moreCnts:p,moreMarginTops:c}=K0(ba(e.fgEventSegs,r.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,r.eventOrderStrict,n.segHeights,n.maxContentHeight,e.cells),_=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return E("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map((g,h)=>{let b=this.renderFgSegs(h,e.forPrint?u[h]:m[h],e.todayRange,_),y=this.renderFgSegs(h,t3(f[h],m),e.todayRange,{},!!e.eventDrag,!!e.eventResize,!1);return E(Y0,{key:g.key,elRef:this.cellElRefs.createRef(g.key),innerElRef:this.frameElRefs.createRef(g.key),dateProfile:e.dateProfile,date:g.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&h===0,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:g.extraRenderProps,extraDataAttrs:g.extraDataAttrs,extraClassNames:g.extraClassNames,extraDateSpan:g.extraDateSpan,moreCnt:p[h],moreMarginTop:c[h],singlePlacements:u[h],fgContentElRef:this.fgElRefs.createRef(g.key),fgContent:E(re,null,E(re,null,b),E(re,null,y)),bgContent:E(re,null,this.renderFillSegs(d[h],"highlight"),this.renderFillSegs(a[h],"non-business"),this.renderFillSegs(s[h],"bg-event")),minHeight:e.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,n){let o=this.props;this.updateSizing(!Me(e,o))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:e}=this;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs}getMirrorSegs(){let{props:e}=this;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}renderFgSegs(e,n,o,r,l,a,s){let{context:d}=this,{eventSelection:f}=this.props,{framePositions:u}=this.state,m=this.props.cells.length===1,p=l||a||s,c=[];if(u)for(let _ of n){let{seg:g}=_,{instanceId:h}=g.eventRange.instance,b=_.isVisible&&!r[h],y=_.isAbsolute,C="",k="";y&&(d.isRtl?(k=0,C=u.lefts[g.lastCol]-u.lefts[g.firstCol]):(C=0,k=u.rights[g.firstCol]-u.rights[g.lastCol])),c.push(E("div",{className:"fc-daygrid-event-harness"+(y?" fc-daygrid-event-harness-abs":""),key:bs(g),ref:p?null:this.segHarnessRefs.createRef(Es(g)),style:{visibility:b?"":"hidden",marginTop:y?"":_.marginTop,top:y?_.absoluteTop:"",left:C,right:k}},gs(g)?E(ys,Object.assign({seg:g,isDragging:l,isSelected:h===f,defaultDisplayEventEnd:m},ot(g,o))):E(_s,Object.assign({seg:g,isDragging:l,isResizing:a,isDateSelecting:s,isSelected:h===f,defaultDisplayEventEnd:m},ot(g,o)))))}return c}renderFillSegs(e,n){let{isRtl:o}=this.context,{todayRange:r}=this.props,{framePositions:l}=this.state,a=[];if(l)for(let s of e){let d=o?{right:0,left:l.lefts[s.lastCol]-l.lefts[s.firstCol]}:{left:0,right:l.rights[s.firstCol]-l.rights[s.lastCol]};a.push(E("div",{key:wa(s.eventRange),className:"fc-daygrid-bg-harness",style:d},n==="bg-event"?E(Wa,Object.assign({seg:s},ot(s,r))):Ga(n)))}return E(re,{},...a)}updateSizing(e){let{props:n,state:o,frameElRefs:r}=this;if(!n.forPrint&&n.clientWidth!==null){if(e){let d=n.cells.map(f=>r.currentMap[f.key]);if(d.length){let f=this.rootElRef.current,u=new qt(f,d,!0,!1);(!o.framePositions||!o.framePositions.similarTo(u))&&this.setState({framePositions:new qt(f,d,!0,!1)})}}const l=this.state.segHeights,a=this.querySegHeights(),s=n.dayMaxEvents===!0||n.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},l),a),maxContentHeight:s?this.computeMaxContentHeight():null})}}querySegHeights(){let e=this.segHarnessRefs.currentMap,n={};for(let o in e){let r=Math.round(e[o].getBoundingClientRect().height);n[o]=Math.max(n[o]||0,r)}return n}computeMaxContentHeight(){let e=this.props.cells[0].key,n=this.cellElRefs.currentMap[e],o=this.fgElRefs.currentMap[e];return n.getBoundingClientRect().bottom-o.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map(n=>e[n.key])}}ws.addStateEquality({segHeights:Me});function t3(t,e){if(!t.length)return[];let n=n3(e);return t.map(o=>({seg:o,isVisible:!0,isAbsolute:!0,absoluteTop:n[o.eventRange.instance.instanceId],marginTop:0}))}function n3(t){let e={};for(let n of t)for(let o of n)e[o.seg.eventRange.instance.instanceId]=o.absoluteTop;return e}class i3 extends Le{constructor(){super(...arguments),this.splitBusinessHourSegs=F(si),this.splitBgEventSegs=F(si),this.splitFgEventSegs=F(si),this.splitDateSelectionSegs=F(si),this.splitEventDrag=F(hs),this.splitEventResize=F(hs),this.rowRefs=new We}render(){let{props:e,context:n}=this,o=e.cells.length,r=this.splitBusinessHourSegs(e.businessHourSegs,o),l=this.splitBgEventSegs(e.bgEventSegs,o),a=this.splitFgEventSegs(e.fgEventSegs,o),s=this.splitDateSelectionSegs(e.dateSelectionSegs,o),d=this.splitEventDrag(e.eventDrag,o),f=this.splitEventResize(e.eventResize,o),u=o>=7&&e.clientWidth?e.clientWidth/n.options.aspectRatio/6:null;return E(pn,{unit:"day"},(m,p)=>E(re,null,e.cells.map((c,_)=>E(ws,{ref:this.rowRefs.createRef(_),key:c.length?c[0].date.toISOString():_,showDayNumbers:o>1,showWeekNumbers:e.showWeekNumbers,todayRange:p,dateProfile:e.dateProfile,cells:c,renderIntro:e.renderRowIntro,businessHourSegs:r[_],eventSelection:e.eventSelection,bgEventSegs:l[_].filter(o3),fgEventSegs:a[_],dateSelectionSegs:s[_],eventDrag:d[_],eventResize:f[_],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:u,forPrint:e.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const e=this.rowRefs.currentMap[0].getCellEls()[0],n=e?e.closest(".fc-daygrid-body"):null;n&&(this.rootEl=n,this.context.registerInteractiveComponent(this,{el:n,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new qt(this.rootEl,this.rowRefs.collect().map(e=>e.getCellEls()[0]),!1,!0),this.colPositions=new qt(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,n){let{colPositions:o,rowPositions:r}=this,l=o.leftToIndex(e),a=r.topToIndex(n);if(a!=null&&l!=null){let s=this.props.cells[a][l];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(a,l),allDay:!0},s.extraDateSpan),dayEl:this.getCellEl(a,l),rect:{left:o.lefts[l],right:o.rights[l],top:r.tops[a],bottom:r.bottoms[a]},layer:0}}return null}getCellEl(e,n){return this.rowRefs.currentMap[e].getCellEls()[n]}getCellRange(e,n){let o=this.props.cells[e][n].date,r=ye(o,1);return{start:o,end:r}}}function o3(t){return t.eventRange.def.allDay}class r3 extends Le{constructor(){super(...arguments),this.elRef=be(),this.needsScrollReset=!1}render(){let{props:e}=this,{dayMaxEventRows:n,dayMaxEvents:o,expandRows:r}=e,l=o===!0||n===!0;l&&!r&&(l=!1,n=null,o=null);let a=["fc-daygrid-body",l?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",r?"":"fc-daygrid-body-natural"];return E("div",{ref:this.elRef,className:a.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},E("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:r?e.clientHeight:""}},e.colGroupNode,E("tbody",{role:"presentation"},E(i3,{dateProfile:e.dateProfile,cells:e.cells,renderRowIntro:e.renderRowIntro,showWeekNumbers:e.showWeekNumbers,clientWidth:e.clientWidth,clientHeight:e.clientHeight,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,dayMaxEvents:o,dayMaxEventRows:n,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const e=l3(this.elRef.current,this.props.dateProfile);if(e){const n=e.closest(".fc-daygrid-body"),o=n.closest(".fc-scroller"),r=e.getBoundingClientRect().top-n.getBoundingClientRect().top;o.scrollTop=r?r+1:0}this.needsScrollReset=!1}}}function l3(t,e){let n;return e.currentRangeUnit.match(/year|month/)&&(n=t.querySelector(`[data-date="${Qp(e.currentDate)}-01"]`)),n||(n=t.querySelector(`[data-date="${Ki(e.currentDate)}"]`)),n}class a3 extends za{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,n){return n.sliceRange(e)}}class Cs extends Le{constructor(){super(...arguments),this.slicer=new a3,this.tableRef=be()}render(){let{props:e,context:n}=this;return E(r3,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,n,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))}}class s3 extends j0{constructor(){super(...arguments),this.buildDayTableModel=F(c3),this.headerRef=be(),this.tableRef=be()}render(){let{options:e,dateProfileGenerator:n}=this.context,{props:o}=this,r=this.buildDayTableModel(o.dateProfile,n),l=e.dayHeaders&&E(Oa,{ref:this.headerRef,dateProfile:o.dateProfile,dates:r.headerDates,datesRepDistinctDays:r.rowCnt===1}),a=s=>E(Cs,{ref:this.tableRef,dateProfile:o.dateProfile,dayTableModel:r,businessHours:o.businessHours,dateSelection:o.dateSelection,eventStore:o.eventStore,eventUiBases:o.eventUiBases,eventSelection:o.eventSelection,eventDrag:o.eventDrag,eventResize:o.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:s.tableColGroupNode,tableMinWidth:s.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!o.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:s.clientWidth,clientHeight:s.clientHeight,forPrint:o.forPrint});return e.dayMinWidth?this.renderHScrollLayout(l,a,r.colCnt,e.dayMinWidth):this.renderSimpleLayout(l,a)}}function c3(t,e){let n=new Ma(t.renderRange,e);return new La(n,/year|month|week/.test(t.currentRangeUnit))}class d3 extends ta{buildRenderRange(e,n,o){let r=super.buildRenderRange(e,n,o),{props:l}=this;return u3({currentRange:r,snapToWeek:/^(year|month)$/.test(n),fixedWeekCount:l.fixedWeekCount,dateEnv:l.dateEnv})}}function u3(t){let{dateEnv:e,currentRange:n}=t,{start:o,end:r}=n,l;if(t.snapToWeek&&(o=e.startOfWeek(o),l=e.startOfWeek(r),l.valueOf()!==r.valueOf()&&(r=Bl(l,1))),t.fixedWeekCount){let a=e.startOfWeek(e.startOfMonth(ye(n.end,-1))),s=Math.ceil(zp(a,r));r=Bl(r,6-s)}return{start:o,end:r}}var f3=':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}';$i(f3);var ks=Ge({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:s3,dateProfileGeneratorClass:d3},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}}}}),p3='.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}';$i(p3);class h3 extends Rm{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){return e.allDay?["allDay"]:["timed"]}getKeysForEventDef(e){return e.allDay?cm(e)?["timed","allDay"]:["allDay"]:["timed"]}}const m3=de({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function vs(t){let e=["fc-timegrid-slot","fc-timegrid-slot-label",t.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return E(He.Consumer,null,n=>{if(!t.isLabeled)return E("td",{className:e.join(" "),"data-time":t.isoTimeStr});let{dateEnv:o,options:r,viewApi:l}=n,a=r.slotLabelFormat==null?m3:Array.isArray(r.slotLabelFormat)?de(r.slotLabelFormat[0]):de(r.slotLabelFormat),s={level:0,time:t.time,date:o.toDate(t.date),view:l,text:o.format(t.date,a)};return E(Se,{elTag:"td",elClasses:e,elAttrs:{"data-time":t.isoTimeStr},renderProps:s,generatorName:"slotLabelContent",customGenerator:r.slotLabelContent,defaultGenerator:g3,classNameGenerator:r.slotLabelClassNames,didMount:r.slotLabelDidMount,willUnmount:r.slotLabelWillUnmount},d=>E("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},E(d,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]})))})}function g3(t){return t.text}class _3 extends J{render(){return this.props.slatMetas.map(e=>E("tr",{key:e.key},E(vs,Object.assign({},e))))}}const y3=de({week:"short"}),b3=5;class E3 extends Le{constructor(){super(...arguments),this.allDaySplitter=new h3,this.headerElRef=be(),this.rootElRef=be(),this.scrollerElRef=be(),this.state={slatCoords:null},this.handleScrollTopRequest=e=>{let n=this.scrollerElRef.current;n&&(n.scrollTop=e)},this.renderHeadAxis=(e,n="")=>{let{options:o}=this.context,{dateProfile:r}=this.props,l=r.renderRange,s=yt(l.start,l.end)===1?ii(this.context,l.start,"week"):{};return o.weekNumbers&&e==="day"?E(qa,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:l.start,defaultFormat:y3},d=>E("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:n}},E(d,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:s}))):E("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},E("div",{className:"fc-timegrid-axis-frame",style:{height:n}}))},this.renderTableRowAxis=e=>{let{options:n,viewApi:o}=this.context,r={text:n.allDayText,view:o};return E(Se,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:r,generatorName:"allDayContent",customGenerator:n.allDayContent,defaultGenerator:w3,classNameGenerator:n.allDayClassNames,didMount:n.allDayDidMount,willUnmount:n.allDayWillUnmount},l=>E("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",e==null?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:e}},E(l,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]})))},this.handleSlatCoords=e=>{this.setState({slatCoords:e})}}renderSimpleLayout(e,n,o){let{context:r,props:l}=this,a=[],s=ai(r.options);return e&&a.push({type:"header",key:"header",isSticky:s,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),n&&(a.push({type:"body",key:"all-day",chunk:{content:n}}),a.push({type:"body",key:"all-day-divider",outerContent:E("tr",{role:"presentation",className:"fc-scrollgrid-section"},E("td",{className:"fc-timegrid-divider "+r.theme.getClass("tableCellShaded")}))})),a.push({type:"body",key:"body",liquid:!0,expandRows:!!r.options.expandRows,chunk:{scrollerElRef:this.scrollerElRef,content:o}}),E(Qn,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:r.viewSpec},E(Io,{liquid:!l.isHeightAuto&&!l.forPrint,collapsibleWidth:l.forPrint,cols:[{width:"shrink"}],sections:a}))}renderHScrollLayout(e,n,o,r,l,a,s){let d=this.context.pluginHooks.scrollGridImpl;if(!d)throw new Error("No ScrollGrid implementation");let{context:f,props:u}=this,m=!u.forPrint&&ai(f.options),p=!u.forPrint&&ja(f.options),c=[];e&&c.push({type:"header",key:"header",isSticky:m,syncRowHeights:!0,chunks:[{key:"axis",rowContent:g=>E("tr",{role:"presentation"},this.renderHeadAxis("day",g.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),n&&(c.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:g=>E("tr",{role:"presentation"},this.renderTableRowAxis(g.rowSyncHeights[0]))},{key:"cols",content:n}]}),c.push({key:"all-day-divider",type:"body",outerContent:E("tr",{role:"presentation",className:"fc-scrollgrid-section"},E("td",{colSpan:2,className:"fc-timegrid-divider "+f.theme.getClass("tableCellShaded")}))}));let _=f.options.nowIndicator;return c.push({type:"body",key:"body",liquid:!0,expandRows:!!f.options.expandRows,chunks:[{key:"axis",content:g=>E("div",{className:"fc-timegrid-axis-chunk"},E("table",{"aria-hidden":!0,style:{height:g.expandRows?g.clientHeight:""}},g.tableColGroupNode,E("tbody",null,E(_3,{slatMetas:a}))),E("div",{className:"fc-timegrid-now-indicator-container"},E(pn,{unit:_?"minute":"day"},h=>{let b=_&&s&&s.safeComputeTop(h);return typeof b=="number"?E(Oo,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:b},isAxis:!0,date:h}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:o}]}),p&&c.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:Ro},{key:"cols",content:Ro}]}),E(Qn,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:f.viewSpec},E(d,{liquid:!u.isHeightAuto&&!u.forPrint,forPrint:u.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:r,minWidth:l}]}],sections:c}))}getAllDayMaxEventProps(){let{dayMaxEvents:e,dayMaxEventRows:n}=this.context.options;return(e===!0||n===!0)&&(e=void 0,n=b3),{dayMaxEvents:e,dayMaxEventRows:n}}}function w3(t){return t.text}class C3{constructor(e,n,o){this.positions=e,this.dateProfile=n,this.slotDuration=o}safeComputeTop(e){let{dateProfile:n}=this;if(Ue(n.currentRange,e)){let o=ie(e),r=e.valueOf()-o.valueOf();if(r>=Te(n.slotMinTime)&&r<Te(n.slotMaxTime))return this.computeTimeTop(Q(r))}return null}computeDateTop(e,n){return n||(n=ie(e)),this.computeTimeTop(Q(e.valueOf()-n.valueOf()))}computeTimeTop(e){let{positions:n,dateProfile:o}=this,r=n.els.length,l=(e.milliseconds-Te(o.slotMinTime))/Te(this.slotDuration),a,s;return l=Math.max(0,l),l=Math.min(r,l),a=Math.floor(l),a=Math.min(a,r-1),s=l-a,n.tops[a]+n.getHeight(a)*s}}class k3 extends J{render(){let{props:e,context:n}=this,{options:o}=n,{slatElRefs:r}=e;return E("tbody",null,e.slatMetas.map((l,a)=>{let s={time:l.time,date:n.dateEnv.toDate(l.date),view:n.viewApi};return E("tr",{key:l.key,ref:r.createRef(l.key)},e.axis&&E(vs,Object.assign({},l)),E(Se,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!l.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":l.isoTimeStr},renderProps:s,generatorName:"slotLaneContent",customGenerator:o.slotLaneContent,classNameGenerator:o.slotLaneClassNames,didMount:o.slotLaneDidMount,willUnmount:o.slotLaneWillUnmount}))}))}}class v3 extends J{constructor(){super(...arguments),this.rootElRef=be(),this.slatElRefs=new We}render(){let{props:e,context:n}=this;return E("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},E("table",{"aria-hidden":!0,className:n.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,E(k3,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:e,props:n}=this;n.onCoords&&n.clientWidth!==null&&this.rootElRef.current.offsetHeight&&n.onCoords(new C3(new qt(this.rootElRef.current,S3(this.slatElRefs.currentMap,n.slatMetas),!1,!0),this.props.dateProfile,e.options.slotDuration))}}function S3(t,e){return e.map(n=>t[n.key])}function hn(t,e){let n=[],o;for(o=0;o<e;o+=1)n.push([]);if(t)for(o=0;o<t.length;o+=1)n[t[o].col].push(t[o]);return n}function Ss(t,e){let n=[];if(t){for(let o=0;o<e;o+=1)n[o]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(let o of t.segs)n[o.col].segs.push(o)}else for(let o=0;o<e;o+=1)n[o]=null;return n}class A3 extends J{render(){let{props:e}=this;return E(Ya,{elClasses:["fc-timegrid-more-link"],elStyle:{top:e.top,bottom:e.bottom},allDayDate:null,moreCnt:e.hiddenSegs.length,allSegs:e.hiddenSegs,hiddenSegs:e.hiddenSegs,extraDateSpan:e.extraDateSpan,dateProfile:e.dateProfile,todayRange:e.todayRange,popoverContent:()=>Ns(e.hiddenSegs,e),defaultGenerator:D3,forceTimed:!0},n=>E(n,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}}function D3(t){return t.shortText}function x3(t,e,n){let o=new Va;e!=null&&(o.strictOrder=e),n!=null&&(o.maxStackCnt=n);let r=o.addSegs(t),l=Wm(r),a=N3(o);return a=I3(a,1),{segRects:B3(a),hiddenGroups:l}}function N3(t){const{entriesByLevel:e}=t,n=Ho((o,r)=>o+":"+r,(o,r)=>{let l=R3(t,o,r),a=As(l,n),s=e[o][r];return[Object.assign(Object.assign({},s),{nextLevelNodes:a[0]}),s.thickness+a[1]]});return As(e.length?{level:0,lateralStart:0,lateralEnd:e[0].length}:null,n)[0]}function As(t,e){if(!t)return[[],0];let{level:n,lateralStart:o,lateralEnd:r}=t,l=o,a=[];for(;l<r;)a.push(e(n,l)),l+=1;return a.sort(T3),[a.map(V3),a[0][1]]}function T3(t,e){return e[1]-t[1]}function V3(t){return t[0]}function R3(t,e,n){let{levelCoords:o,entriesByLevel:r}=t,l=r[e][n],a=o[e]+l.thickness,s=o.length,d=e;for(;d<s&&o[d]<a;d+=1);for(;d<s;d+=1){let f=r[d],u,m=No(f,l.span.start,Ao),p=m[0]+m[1],c=p;for(;(u=f[c])&&u.span.start<l.span.end;)c+=1;if(p<c)return{level:d,lateralStart:p,lateralEnd:c}}return null}function I3(t,e){const n=Ho((o,r,l)=>At(o),(o,r,l)=>{let{nextLevelNodes:a,thickness:s}=o,d=s+l,f=s/d,u,m=[];if(!a.length)u=e;else for(let c of a)if(u===void 0){let _=n(c,r,d);u=_[0],m.push(_[1])}else{let _=n(c,u,0);m.push(_[1])}let p=(u-r)*f;return[u-p,Object.assign(Object.assign({},o),{thickness:p,nextLevelNodes:m})]});return t.map(o=>n(o,0,0)[1])}function B3(t){let e=[];const n=Ho((r,l,a)=>At(r),(r,l,a)=>{let s=Object.assign(Object.assign({},r),{levelCoord:l,stackDepth:a,stackForward:0});return e.push(s),s.stackForward=o(r.nextLevelNodes,l+r.thickness,a+1)+1});function o(r,l,a){let s=0;for(let d of r)s=Math.max(n(d,l,a),s);return s}return o(t,0,0),e}function Ho(t,e){const n={};return(...o)=>{let r=t(...o);return r in n?n[r]:n[r]=e(...o)}}function Ds(t,e,n=null,o=0){let r=[];if(n)for(let l=0;l<t.length;l+=1){let a=t[l],s=n.computeDateTop(a.start,e),d=Math.max(s+(o||0),n.computeDateTop(a.end,e));r.push({start:Math.round(s),end:Math.round(d)})}return r}function O3(t,e,n,o){let r=[],l=[];for(let f=0;f<t.length;f+=1){let u=e[f];u?r.push({index:f,thickness:1,span:u}):l.push(t[f])}let{segRects:a,hiddenGroups:s}=x3(r,n,o),d=[];for(let f of a)d.push({seg:t[f.index],rect:f});for(let f of l)d.push({seg:f,rect:null});return{segPlacements:d,hiddenGroups:s}}const M3=de({hour:"numeric",minute:"2-digit",meridiem:!1});class xs extends J{render(){return E(Ua,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:M3}))}}class L3 extends J{constructor(){super(...arguments),this.sortEventSegs=F(ba)}render(){let{props:e,context:n}=this,{options:o}=n,r=o.selectMirror,l=e.eventDrag&&e.eventDrag.segs||e.eventResize&&e.eventResize.segs||r&&e.dateSelectionSegs||[],a=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{},s=this.sortEventSegs(e.fgEventSegs,o.eventOrder);return E(Mo,{elTag:"td",elRef:e.elRef,elClasses:["fc-timegrid-col",...e.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},e.extraDataAttrs),date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraRenderProps:e.extraRenderProps},d=>E("div",{className:"fc-timegrid-col-frame"},E("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(e.dateSelectionSegs,"highlight")),E("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(s,a,!1,!1,!1)),E("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(l,{},!!e.eventDrag,!!e.eventResize,!!r,"mirror")),E("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(e.nowIndicatorSegs)),Lo(o)&&E(d,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(e,n,o,r,l,a){let{props:s}=this;return s.forPrint?Ns(e,s):this.renderPositionedFgSegs(e,n,o,r,l,a)}renderPositionedFgSegs(e,n,o,r,l,a){let{eventMaxStack:s,eventShortHeight:d,eventOrderStrict:f,eventMinHeight:u}=this.context.options,{date:m,slatCoords:p,eventSelection:c,todayRange:_,nowDate:g}=this.props,h=o||r||l,b=Ds(e,m,p,u),{segPlacements:y,hiddenGroups:C}=O3(e,b,f,s);return E(re,null,this.renderHiddenGroups(C,e),y.map(k=>{let{seg:B,rect:S}=k,x=B.eventRange.instance.instanceId,w=h||!!(!n[x]&&S),N=jo(S&&S.span),D=!h&&S?this.computeSegHStyle(S):{left:0,right:0},O=!!S&&S.stackForward>0,V=!!S&&S.span.end-S.span.start<d;return E("div",{className:"fc-timegrid-event-harness"+(O?" fc-timegrid-event-harness-inset":""),key:a||x,style:Object.assign(Object.assign({visibility:w?"":"hidden"},N),D)},E(xs,Object.assign({seg:B,isDragging:o,isResizing:r,isDateSelecting:l,isSelected:x===c,isShort:V},ot(B,_,g))))}))}renderHiddenGroups(e,n){let{extraDateSpan:o,dateProfile:r,todayRange:l,nowDate:a,eventSelection:s,eventDrag:d,eventResize:f}=this.props;return E(re,null,e.map(u=>{let m=jo(u.span),p=z3(u.entries,n);return E(A3,{key:zl(Za(p)),hiddenSegs:p,top:m.top,bottom:m.bottom,extraDateSpan:o,dateProfile:r,todayRange:l,nowDate:a,eventSelection:s,eventDrag:d,eventResize:f})}))}renderFillSegs(e,n){let{props:o,context:r}=this,a=Ds(e,o.date,o.slatCoords,r.options.eventMinHeight).map((s,d)=>{let f=e[d];return E("div",{key:wa(f.eventRange),className:"fc-timegrid-bg-harness",style:jo(s)},n==="bg-event"?E(Wa,Object.assign({seg:f},ot(f,o.todayRange,o.nowDate))):Ga(n))});return E(re,null,a)}renderNowIndicator(e){let{slatCoords:n,date:o}=this.props;return n?e.map((r,l)=>E(Oo,{key:l,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:n.computeDateTop(r.start,o)},isAxis:!1,date:o})):null}computeSegHStyle(e){let{isRtl:n,options:o}=this.context,r=o.slotEventOverlap,l=e.levelCoord,a=e.levelCoord+e.thickness,s,d;r&&(a=Math.min(1,l+(a-l)*2)),n?(s=1-a,d=l):(s=l,d=1-a);let f={zIndex:e.stackDepth+1,left:s*100+"%",right:d*100+"%"};return r&&!e.stackForward&&(f[n?"marginLeft":"marginRight"]=10*2),f}}function Ns(t,{todayRange:e,nowDate:n,eventSelection:o,eventDrag:r,eventResize:l}){let a=(r?r.affectedInstances:null)||(l?l.affectedInstances:null)||{};return E(re,null,t.map(s=>{let d=s.eventRange.instance.instanceId;return E("div",{key:d,style:{visibility:a[d]?"hidden":""}},E(xs,Object.assign({seg:s,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:d===o,isShort:!1},ot(s,e,n))))}))}function jo(t){return t?{top:t.start,bottom:-t.end}:{top:"",bottom:""}}function z3(t,e){return t.map(n=>e[n.index])}class P3 extends J{constructor(){super(...arguments),this.splitFgEventSegs=F(hn),this.splitBgEventSegs=F(hn),this.splitBusinessHourSegs=F(hn),this.splitNowIndicatorSegs=F(hn),this.splitDateSelectionSegs=F(hn),this.splitEventDrag=F(Ss),this.splitEventResize=F(Ss),this.rootElRef=be(),this.cellElRefs=new We}render(){let{props:e,context:n}=this,o=n.options.nowIndicator&&e.slatCoords&&e.slatCoords.safeComputeTop(e.nowDate),r=e.cells.length,l=this.splitFgEventSegs(e.fgEventSegs,r),a=this.splitBgEventSegs(e.bgEventSegs,r),s=this.splitBusinessHourSegs(e.businessHourSegs,r),d=this.splitNowIndicatorSegs(e.nowIndicatorSegs,r),f=this.splitDateSelectionSegs(e.dateSelectionSegs,r),u=this.splitEventDrag(e.eventDrag,r),m=this.splitEventResize(e.eventResize,r);return E("div",{className:"fc-timegrid-cols",ref:this.rootElRef},E("table",{role:"presentation",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,E("tbody",{role:"presentation"},E("tr",{role:"row"},e.axis&&E("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},E("div",{className:"fc-timegrid-col-frame"},E("div",{className:"fc-timegrid-now-indicator-container"},typeof o=="number"&&E(Oo,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:o},isAxis:!0,date:e.nowDate})))),e.cells.map((p,c)=>E(L3,{key:p.key,elRef:this.cellElRefs.createRef(p.key),dateProfile:e.dateProfile,date:p.date,nowDate:e.nowDate,todayRange:e.todayRange,extraRenderProps:p.extraRenderProps,extraDataAttrs:p.extraDataAttrs,extraClassNames:p.extraClassNames,extraDateSpan:p.extraDateSpan,fgEventSegs:l[c],bgEventSegs:a[c],businessHourSegs:s[c],nowIndicatorSegs:d[c],dateSelectionSegs:f[c],eventDrag:u[c],eventResize:m[c],slatCoords:e.slatCoords,eventSelection:e.eventSelection,forPrint:e.forPrint}))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:e}=this;e.onColCoords&&e.clientWidth!==null&&e.onColCoords(new qt(this.rootElRef.current,F3(this.cellElRefs.currentMap,e.cells),!0,!1))}}function F3(t,e){return e.map(n=>t[n.key])}class $3 extends Le{constructor(){super(...arguments),this.processSlotOptions=F(H3),this.state={slatCoords:null},this.handleRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=e=>{let{onScrollTopRequest:n}=this.props,{slatCoords:o}=this.state;if(n&&o){if(e.time){let r=o.computeTimeTop(e.time);r=Math.ceil(r),r&&(r+=1),n(r)}return!0}return!1},this.handleColCoords=e=>{this.colCoords=e},this.handleSlatCoords=e=>{this.setState({slatCoords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)}}render(){let{props:e,state:n}=this;return E("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},E(v3,{axis:e.axis,dateProfile:e.dateProfile,slatMetas:e.slatMetas,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,tableColGroupNode:e.axis?e.tableColGroupNode:null,onCoords:this.handleSlatCoords}),E(P3,{cells:e.cells,axis:e.axis,dateProfile:e.dateProfile,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange,nowDate:e.nowDate,nowIndicatorSegs:e.nowIndicatorSegs,clientWidth:e.clientWidth,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,slatCoords:n.slatCoords,onColCoords:this.handleColCoords,forPrint:e.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(e,n){let{dateEnv:o,options:r}=this.context,{colCoords:l}=this,{dateProfile:a}=this.props,{slatCoords:s}=this.state,{snapDuration:d,snapsPerSlot:f}=this.processSlotOptions(this.props.slotDuration,r.snapDuration),u=l.leftToIndex(e),m=s.positions.topToIndex(n);if(u!=null&&m!=null){let p=this.props.cells[u],c=s.positions.tops[m],_=s.positions.getHeight(m),g=(n-c)/_,h=Math.floor(g*f),b=m*f+h,y=this.props.cells[u].date,C=qi(a.slotMinTime,Bp(d,b)),k=o.add(y,C),B=o.add(k,d);return{dateProfile:a,dateSpan:Object.assign({range:{start:k,end:B},allDay:!1},p.extraDateSpan),dayEl:l.els[u],rect:{left:l.lefts[u],right:l.rights[u],top:c,bottom:c+_},layer:0}}return null}}function H3(t,e){let n=e||t,o=Yi(t,n);return o===null&&(n=t,o=1),{snapDuration:n,snapsPerSlot:o}}class j3 extends za{sliceRange(e,n){let o=[];for(let r=0;r<n.length;r+=1){let l=kt(e,n[r]);l&&o.push({start:l.start,end:l.end,isStart:l.start.valueOf()===e.start.valueOf(),isEnd:l.end.valueOf()===e.end.valueOf(),col:r})}return o}}class U3 extends Le{constructor(){super(...arguments),this.buildDayRanges=F(W3),this.slicer=new j3,this.timeColsRef=be()}render(){let{props:e,context:n}=this,{dateProfile:o,dayTableModel:r}=e,{nowIndicator:l,nextDayThreshold:a}=n.options,s=this.buildDayRanges(r,o,n.dateEnv);return E(pn,{unit:l?"minute":"day"},(d,f)=>E($3,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(e,o,null,n,s),{forPrint:e.forPrint,axis:e.axis,dateProfile:o,slatMetas:e.slatMetas,slotDuration:e.slotDuration,cells:r.cells[0],tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,clientWidth:e.clientWidth,clientHeight:e.clientHeight,expandRows:e.expandRows,nowDate:d,nowIndicatorSegs:l&&this.slicer.sliceNowDate(d,o,a,n,s),todayRange:f,onScrollTopRequest:e.onScrollTopRequest,onSlatCoords:e.onSlatCoords})))}}function W3(t,e,n){let o=[];for(let r of t.headerDates)o.push({start:n.add(r,e.slotMinTime),end:n.add(r,e.slotMaxTime)});return o}const Ts=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function G3(t,e,n,o,r){let l=new Date(0),a=t,s=Q(0),d=n||q3(o),f=[];for(;Te(a)<Te(e);){let u=r.add(l,a),m=Yi(s,d)!==null;f.push({date:u,time:a,key:u.toISOString(),isoTimeStr:Zp(u),isLabeled:m}),a=qi(a,o),s=qi(s,o)}return f}function q3(t){let e,n,o;for(e=Ts.length-1;e>=0;e-=1)if(n=Q(Ts[e]),o=Yi(n,t),o!==null&&o>1)return n;return t}class Y3 extends E3{constructor(){super(...arguments),this.buildTimeColsModel=F(Q3),this.buildSlatMetas=F(G3)}render(){let{options:e,dateEnv:n,dateProfileGenerator:o}=this.context,{props:r}=this,{dateProfile:l}=r,a=this.buildTimeColsModel(l,o),s=this.allDaySplitter.splitProps(r),d=this.buildSlatMetas(l.slotMinTime,l.slotMaxTime,e.slotLabelInterval,e.slotDuration,n),{dayMinWidth:f}=e,u=!f,m=f,p=e.dayHeaders&&E(Oa,{dates:a.headerDates,dateProfile:l,datesRepDistinctDays:!0,renderIntro:u?this.renderHeadAxis:null}),c=e.allDaySlot!==!1&&(g=>E(Cs,Object.assign({},s.allDay,{dateProfile:l,dayTableModel:a,nextDayThreshold:e.nextDayThreshold,tableMinWidth:g.tableMinWidth,colGroupNode:g.tableColGroupNode,renderRowIntro:u?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:g.clientWidth,clientHeight:g.clientHeight,forPrint:r.forPrint},this.getAllDayMaxEventProps()))),_=g=>E(U3,Object.assign({},s.timed,{dayTableModel:a,dateProfile:l,axis:u,slotDuration:e.slotDuration,slatMetas:d,forPrint:r.forPrint,tableColGroupNode:g.tableColGroupNode,tableMinWidth:g.tableMinWidth,clientWidth:g.clientWidth,clientHeight:g.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:g.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return m?this.renderHScrollLayout(p,c,_,a.colCnt,f,d,this.state.slatCoords):this.renderSimpleLayout(p,c,_)}}function Q3(t,e){let n=new Ma(t.renderRange,e);return new La(n,!1)}var Vs=Ge({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:Y3,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});To.touchMouseIgnoreWait=500;let Uo=0,di=0,Wo=!1;class Rs{constructor(e){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=n=>{if(!this.shouldIgnoreMouse()&&Z3(n)&&this.tryStart(n)){let o=this.createEventFromMouse(n,!0);this.emitter.trigger("pointerdown",o),this.initScrollWatch(o),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=n=>{let o=this.createEventFromMouse(n);this.recordCoords(o),this.emitter.trigger("pointermove",o)},this.handleMouseUp=n=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(n)),this.cleanup()},this.handleTouchStart=n=>{if(this.tryStart(n)){this.isTouchDragging=!0;let o=this.createEventFromTouch(n,!0);this.emitter.trigger("pointerdown",o),this.initScrollWatch(o);let r=n.target;this.shouldIgnoreMove||r.addEventListener("touchmove",this.handleTouchMove),r.addEventListener("touchend",this.handleTouchEnd),r.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=n=>{let o=this.createEventFromTouch(n);this.recordCoords(o),this.emitter.trigger("pointermove",o)},this.handleTouchEnd=n=>{if(this.isDragging){let o=n.target;o.removeEventListener("touchmove",this.handleTouchMove),o.removeEventListener("touchend",this.handleTouchEnd),o.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(n)),this.cleanup(),this.isTouchDragging=!1,K3()}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=n=>{if(!this.shouldIgnoreMove){let o=window.pageXOffset-this.prevScrollX+this.prevPageX,r=window.pageYOffset-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:n,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:o,pageY:r,deltaX:o-this.origPageX,deltaY:r-this.origPageY})}},this.containerEl=e,this.emitter=new ti,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),X3()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),J3()}tryStart(e){let n=this.querySubjectEl(e),o=e.target;return n&&(!this.handleSelector||_e(o,this.handleSelector))?(this.subjectEl=n,this.isDragging=!0,this.wasTouchScroll=!1,!0):!1}cleanup(){Wo=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?_e(e.target,this.selector):this.containerEl}shouldIgnoreMouse(){return Uo||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(Wo=!0)}initScrollWatch(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.pageXOffset,this.prevScrollY=window.pageYOffset)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(e,n){let o=0,r=0;return n?(this.origPageX=e.pageX,this.origPageY=e.pageY):(o=e.pageX-this.origPageX,r=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:o,deltaY:r}}createEventFromTouch(e,n){let o=e.touches,r,l,a=0,s=0;return o&&o.length?(r=o[0].pageX,l=o[0].pageY):(r=e.pageX,l=e.pageY),n?(this.origPageX=r,this.origPageY=l):(a=r-this.origPageX,s=l-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:r,pageY:l,deltaX:a,deltaY:s}}}function Z3(t){return t.button===0&&!t.ctrlKey}function K3(){Uo+=1,setTimeout(()=>{Uo-=1},To.touchMouseIgnoreWait)}function X3(){di+=1,di===1&&window.addEventListener("touchmove",Is,{passive:!1})}function J3(){di-=1,di||window.removeEventListener("touchmove",Is,{passive:!1})}function Is(t){Wo&&t.preventDefault()}class e_{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(e,n,o){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=n-window.pageXOffset,this.origScreenY=o-window.pageYOffset,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(e,n){this.deltaX=e-window.pageXOffset-this.origScreenX,this.deltaY=n-window.pageYOffset-this.origScreenY,this.updateElPosition()}setIsVisible(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)}stop(e,n){let o=()=>{this.cleanup(),n()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(o,this.revertDuration):setTimeout(o,0)}doRevertAnimation(e,n){let o=this.mirrorEl,r=this.sourceEl.getBoundingClientRect();o.style.transition="top "+n+"ms,left "+n+"ms",an(o,{left:r.left,top:r.top}),bp(o,()=>{o.style.transition="",e()})}cleanup(){this.mirrorEl&&(Ui(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&an(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let e=this.sourceElRect,n=this.mirrorEl;return n||(n=this.mirrorEl=this.sourceEl.cloneNode(!0),n.style.userSelect="none",n.style.webkitUserSelect="none",n.classList.add("fc-event-dragging"),an(n,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(n)),n}}class Bs extends So{constructor(e,n){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=e,this.doesListening=n,this.scrollTop=this.origScrollTop=e.getScrollTop(),this.scrollLeft=this.origScrollLeft=e.getScrollLeft(),this.scrollWidth=e.getScrollWidth(),this.scrollHeight=e.getScrollHeight(),this.clientWidth=e.getClientWidth(),this.clientHeight=e.getClientHeight(),this.clientRect=this.computeClientRect(),this.doesListening&&this.getEventTarget().addEventListener("scroll",this.handleScroll)}destroy(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)}getScrollTop(){return this.scrollTop}getScrollLeft(){return this.scrollLeft}setScrollTop(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}}class Os extends Bs{constructor(e,n){super(new jm(e),n)}getEventTarget(){return this.scrollController.el}computeClientRect(){return $m(this.scrollController.el)}}class t_ extends Bs{constructor(e){super(new Um,e)}getEventTarget(){return window}computeClientRect(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}}handleScrollChange(){this.clientRect=this.computeClientRect()}}const Ms=typeof performance=="function"?performance.now:Date.now;class n_{constructor(){this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=()=>{if(this.isAnimating){let e=this.computeBestEdge(this.pointerScreenX+window.pageXOffset,this.pointerScreenY+window.pageYOffset);if(e){let n=Ms();this.handleSide(e,(n-this.msSinceRequest)/1e3),this.requestAnimation(n)}else this.isAnimating=!1}}}start(e,n,o){this.isEnabled&&(this.scrollCaches=this.buildCaches(o),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,n))}handleMove(e,n){if(this.isEnabled){let o=e-window.pageXOffset,r=n-window.pageYOffset,l=this.pointerScreenY===null?0:r-this.pointerScreenY,a=this.pointerScreenX===null?0:o-this.pointerScreenX;l<0?this.everMovedUp=!0:l>0&&(this.everMovedDown=!0),a<0?this.everMovedLeft=!0:a>0&&(this.everMovedRight=!0),this.pointerScreenX=o,this.pointerScreenY=r,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(Ms()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let e of this.scrollCaches)e.destroy();this.scrollCaches=null}}requestAnimation(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)}handleSide(e,n){let{scrollCache:o}=e,{edgeThreshold:r}=this,l=r-e.distance,a=l*l/(r*r)*this.maxVelocity*n,s=1;switch(e.name){case"left":s=-1;case"right":o.setScrollLeft(o.getScrollLeft()+a*s);break;case"top":s=-1;case"bottom":o.setScrollTop(o.getScrollTop()+a*s);break}}computeBestEdge(e,n){let{edgeThreshold:o}=this,r=null,l=this.scrollCaches||[];for(let a of l){let s=a.clientRect,d=e-s.left,f=s.right-e,u=n-s.top,m=s.bottom-n;d>=0&&f>=0&&u>=0&&m>=0&&(u<=o&&this.everMovedUp&&a.canScrollUp()&&(!r||r.distance>u)&&(r={scrollCache:a,name:"top",distance:u}),m<=o&&this.everMovedDown&&a.canScrollDown()&&(!r||r.distance>m)&&(r={scrollCache:a,name:"bottom",distance:m}),d<=o&&this.everMovedLeft&&a.canScrollLeft()&&(!r||r.distance>d)&&(r={scrollCache:a,name:"left",distance:d}),f<=o&&this.everMovedRight&&a.canScrollRight()&&(!r||r.distance>f)&&(r={scrollCache:a,name:"right",distance:f}))}return r}buildCaches(e){return this.queryScrollEls(e).map(n=>n===window?new t_(!1):new Os(n,!1))}queryScrollEls(e){let n=[];for(let o of this.scrollQuery)typeof o=="object"?n.push(o):n.push(...Array.prototype.slice.call(e.getRootNode().querySelectorAll(o)));return n}}class mn extends qm{constructor(e,n){super(e),this.containerEl=e,this.delay=null,this.minDistance=0,this.touchScrollAllowed=!0,this.mirrorNeedsRevert=!1,this.isInteracting=!1,this.isDragging=!1,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.delayTimeoutId=null,this.onPointerDown=r=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,Ep(document.body),Cp(document.body),r.isTouch||r.origEvent.preventDefault(),this.emitter.trigger("pointerdown",r),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(r.subjectEl,r.pageX,r.pageY),this.startDelay(r),this.minDistance||this.handleDistanceSurpassed(r)))},this.onPointerMove=r=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",r),!this.isDistanceSurpassed){let l=this.minDistance,a,{deltaX:s,deltaY:d}=r;a=s*s+d*d,a>=l*l&&this.handleDistanceSurpassed(r)}this.isDragging&&(r.origEvent.type!=="scroll"&&(this.mirror.handleMove(r.pageX,r.pageY),this.autoScroller.handleMove(r.pageX,r.pageY)),this.emitter.trigger("dragmove",r))}},this.onPointerUp=r=>{this.isInteracting&&(this.isInteracting=!1,wp(document.body),kp(document.body),this.emitter.trigger("pointerup",r),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(r)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let o=this.pointer=new Rs(e);o.emitter.on("pointerdown",this.onPointerDown),o.emitter.on("pointermove",this.onPointerMove),o.emitter.on("pointerup",this.onPointerUp),n&&(o.selector=n),this.mirror=new e_,this.autoScroller=new n_}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(e){typeof this.delay=="number"?this.delayTimeoutId=setTimeout(()=>{this.delayTimeoutId=null,this.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)}handleDelayEnd(e){this.isDelayEnded=!0,this.tryStartDrag(e)}handleDistanceSurpassed(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)}tryStartDrag(e){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),this.touchScrollAllowed===!1&&this.pointer.cancelTouchScroll())}tryStopDrag(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))}stopDrag(e){this.isDragging=!1,this.emitter.trigger("dragend",e)}setIgnoreMove(e){this.pointer.shouldIgnoreMove=e}setMirrorIsVisible(e){this.mirror.setIsVisible(e)}setMirrorNeedsRevert(e){this.mirrorNeedsRevert=e}setAutoScrollEnabled(e){this.autoScroller.isEnabled=e}}class i_{constructor(e){this.origRect=vo(e),this.scrollCaches=Ta(e).map(n=>new Os(n,!0))}destroy(){for(let e of this.scrollCaches)e.destroy()}computeLeft(){let e=this.origRect.left;for(let n of this.scrollCaches)e+=n.origScrollLeft-n.getScrollLeft();return e}computeTop(){let e=this.origRect.top;for(let n of this.scrollCaches)e+=n.origScrollTop-n.getScrollTop();return e}isWithinClipping(e,n){let o={left:e,top:n};for(let r of this.scrollCaches)if(!o_(r.getEventTarget())&&!xm(o,r.clientRect))return!1;return!0}}function o_(t){let e=t.tagName;return e==="HTML"||e==="BODY"}class ui{constructor(e,n){this.useSubjectCenter=!1,this.requireInitial=!0,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=o=>{let{dragging:r}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(o),this.initialHit||!this.requireInitial?(r.setIgnoreMove(!1),this.emitter.trigger("pointerdown",o)):r.setIgnoreMove(!0)},this.handleDragStart=o=>{this.emitter.trigger("dragstart",o),this.handleMove(o,!0)},this.handleDragMove=o=>{this.emitter.trigger("dragmove",o),this.handleMove(o)},this.handlePointerUp=o=>{this.releaseHits(),this.emitter.trigger("pointerup",o)},this.handleDragEnd=o=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,o),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",o)},this.droppableStore=n,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new ti}processFirstCoord(e){let n={left:e.pageX,top:e.pageY},o=n,r=e.subjectEl,l;r instanceof HTMLElement&&(l=vo(r),o=Nm(o,l));let a=this.initialHit=this.queryHitForOffset(o.left,o.top);if(a){if(this.useSubjectCenter&&l){let s=Da(l,a.rect);s&&(o=Tm(s))}this.coordAdjust=Vm(o,n)}else this.coordAdjust={left:0,top:0}}handleMove(e,n){let o=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);(n||!fi(this.movingHit,o))&&(this.movingHit=o,this.emitter.trigger("hitupdate",o,!1,e))}prepareHits(){this.offsetTrackers=$e(this.droppableStore,e=>(e.component.prepareHits(),new i_(e.el)))}releaseHits(){let{offsetTrackers:e}=this;for(let n in e)e[n].destroy();this.offsetTrackers={}}queryHitForOffset(e,n){let{droppableStore:o,offsetTrackers:r}=this,l=null;for(let a in o){let s=o[a].component,d=r[a];if(d&&d.isWithinClipping(e,n)){let f=d.computeLeft(),u=d.computeTop(),m=e-f,p=n-u,{origRect:c}=d,_=c.right-c.left,g=c.bottom-c.top;if(m>=0&&m<_&&p>=0&&p<g){let h=s.queryHit(m,p,_,g);h&&Zn(h.dateProfile.activeRange,h.dateSpan.range)&&(!l||h.layer>l.layer)&&(h.componentId=a,h.context=s.context,h.rect.left+=f,h.rect.right+=f,h.rect.top+=u,h.rect.bottom+=u,l=h)}}}return l}}function fi(t,e){return!t&&!e?!0:!!t!=!!e?!1:ym(t.dateSpan,e.dateSpan)}function Ls(t,e){let n={};for(let o of e.pluginHooks.datePointTransforms)Object.assign(n,o(t,e));return Object.assign(n,r_(t,e.dateEnv)),n}function r_(t,e){return{date:e.toDate(t.range.start),dateStr:e.formatIso(t.range.start,{omitTime:t.allDay}),allDay:t.allDay}}class l_ extends Gt{constructor(e){super(e),this.handlePointerDown=o=>{let{dragging:r}=this,l=o.origEvent.target;r.setIgnoreMove(!this.component.isValidDateDownEl(l))},this.handleDragEnd=o=>{let{component:r}=this,{pointer:l}=this.dragging;if(!l.wasTouchScroll){let{initialHit:a,finalHit:s}=this.hitDragging;if(a&&s&&fi(a,s)){let{context:d}=r,f=Object.assign(Object.assign({},Ls(a.dateSpan,d)),{dayEl:a.dayEl,jsEvent:o.origEvent,view:d.viewApi||d.calendarApi.view});d.emitter.trigger("dateClick",f)}}},this.dragging=new mn(e.el),this.dragging.autoScroller.isEnabled=!1;let n=this.hitDragging=new ui(this.dragging,yo(e));n.emitter.on("pointerdown",this.handlePointerDown),n.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class a_ extends Gt{constructor(e){super(e),this.dragSelection=null,this.handlePointerDown=a=>{let{component:s,dragging:d}=this,{options:f}=s.context,u=f.selectable&&s.isValidDateDownEl(a.origEvent.target);d.setIgnoreMove(!u),d.delay=a.isTouch?s_(s):null},this.handleDragStart=a=>{this.component.context.calendarApi.unselect(a)},this.handleHitUpdate=(a,s)=>{let{context:d}=this.component,f=null,u=!1;if(a){let m=this.hitDragging.initialHit;a.componentId===m.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(m,a)||(f=c_(m,a,d.pluginHooks.dateSelectionTransformers)),(!f||!Jm(f,a.dateProfile,d))&&(u=!0,f=null)}f?d.dispatch({type:"SELECT_DATES",selection:f}):s||d.dispatch({type:"UNSELECT_DATES"}),u?Wi():Gi(),s||(this.dragSelection=f)},this.handlePointerUp=a=>{this.dragSelection&&(pa(this.dragSelection,a,this.component.context),this.dragSelection=null)};let{component:n}=e,{options:o}=n.context,r=this.dragging=new mn(e.el);r.touchScrollAllowed=!1,r.minDistance=o.selectMinDistance||0,r.autoScroller.isEnabled=o.dragScroll;let l=this.hitDragging=new ui(this.dragging,yo(e));l.emitter.on("pointerdown",this.handlePointerDown),l.emitter.on("dragstart",this.handleDragStart),l.emitter.on("hitupdate",this.handleHitUpdate),l.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}}function s_(t){let{options:e}=t.context,n=e.selectLongPressDelay;return n==null&&(n=e.longPressDelay),n}function c_(t,e,n){let o=t.dateSpan,r=e.dateSpan,l=[o.range.start,o.range.end,r.range.start,r.range.end];l.sort(xp);let a={};for(let s of n){let d=s(t,e);if(d===!1)return null;d&&Object.assign(a,d)}return a.range={start:l[0],end:l[3]},a.allDay=o.allDay,a}class gn extends Gt{constructor(e){super(e),this.subjectEl=null,this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=a=>{let s=a.origEvent.target,{component:d,dragging:f}=this,{mirror:u}=f,{options:m}=d.context,p=d.context;this.subjectEl=a.subjectEl;let c=this.subjectSeg=Wt(a.subjectEl),g=(this.eventRange=c.eventRange).instance.instanceId;this.relevantEvents=po(p.getCurrentData().eventStore,g),f.minDistance=a.isTouch?0:m.eventDragMinDistance,f.delay=a.isTouch&&g!==d.props.eventSelection?u_(d):null,m.fixedMirrorParent?u.parentNode=m.fixedMirrorParent:u.parentNode=_e(s,".fc"),u.revertDuration=m.dragRevertDuration;let h=d.isValidSegDownEl(s)&&!_e(s,".fc-event-resizer");f.setIgnoreMove(!h),this.isDragging=h&&a.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=a=>{let s=this.component.context,d=this.eventRange,f=d.instance.instanceId;a.isTouch?f!==this.component.props.eventSelection&&s.dispatch({type:"SELECT_EVENT",eventInstanceId:f}):s.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(s.calendarApi.unselect(a),s.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new se(s,d.def,d.instance),jsEvent:a.origEvent,view:s.viewApi}))},this.handleHitUpdate=(a,s)=>{if(!this.isDragging)return;let d=this.relevantEvents,f=this.hitDragging.initialHit,u=this.component.context,m=null,p=null,c=null,_=!1,g={affectedEvents:d,mutatedEvents:Ae(),isEvent:!0};if(a){m=a.context;let h=m.options;u===m||h.editable&&h.droppable?(p=d_(f,a,m.getCurrentData().pluginHooks.eventDragMutationMassagers),p&&(c=go(d,m.getCurrentData().eventUiBases,p,m),g.mutatedEvents=c,Pa(g,a.dateProfile,m)||(_=!0,p=null,c=null,g.mutatedEvents=Ae()))):m=null}this.displayDrag(m,g),_?Wi():Gi(),s||(u===m&&fi(f,a)&&(p=null),this.dragging.setMirrorNeedsRevert(!p),this.dragging.setMirrorIsVisible(!a||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=m,this.validMutation=p,this.mutatedRelevantEvents=c)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=a=>{if(this.isDragging){let s=this.component.context,d=s.viewApi,{receivingContext:f,validMutation:u}=this,m=this.eventRange.def,p=this.eventRange.instance,c=new se(s,m,p),_=this.relevantEvents,g=this.mutatedRelevantEvents,{finalHit:h}=this.hitDragging;if(this.clearDrag(),s.emitter.trigger("eventDragStop",{el:this.subjectEl,event:c,jsEvent:a.origEvent,view:d}),u){if(f===s){let b=new se(s,g.defs[m.defId],p?g.instances[p.instanceId]:null);s.dispatch({type:"MERGE_EVENTS",eventStore:g});let y={oldEvent:c,event:b,relatedEvents:St(g,s,p),revert(){s.dispatch({type:"MERGE_EVENTS",eventStore:_})}},C={};for(let k of s.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(C,k(u,s));s.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},y),C),{el:a.subjectEl,delta:u.datesDelta,jsEvent:a.origEvent,view:d})),s.emitter.trigger("eventChange",y)}else if(f){let b={event:c,relatedEvents:St(_,s,p),revert(){s.dispatch({type:"MERGE_EVENTS",eventStore:_})}};s.emitter.trigger("eventLeave",Object.assign(Object.assign({},b),{draggedEl:a.subjectEl,view:d})),s.dispatch({type:"REMOVE_EVENTS",eventStore:_}),s.emitter.trigger("eventRemove",b);let y=g.defs[m.defId],C=g.instances[p.instanceId],k=new se(f,y,C);f.dispatch({type:"MERGE_EVENTS",eventStore:g});let B={event:k,relatedEvents:St(g,f,C),revert(){f.dispatch({type:"REMOVE_EVENTS",eventStore:g})}};f.emitter.trigger("eventAdd",B),a.isTouch&&f.dispatch({type:"SELECT_EVENT",eventInstanceId:p.instanceId}),f.emitter.trigger("drop",Object.assign(Object.assign({},Ls(h.dateSpan,f)),{draggedEl:a.subjectEl,jsEvent:a.origEvent,view:h.context.viewApi})),f.emitter.trigger("eventReceive",Object.assign(Object.assign({},B),{draggedEl:a.subjectEl,view:h.context.viewApi}))}}else s.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:n}=this,{options:o}=n.context,r=this.dragging=new mn(e.el);r.pointer.selector=gn.SELECTOR,r.touchScrollAllowed=!1,r.autoScroller.isEnabled=o.dragScroll;let l=this.hitDragging=new ui(this.dragging,bo);l.useSubjectCenter=e.useEventCenter,l.emitter.on("pointerdown",this.handlePointerDown),l.emitter.on("dragstart",this.handleDragStart),l.emitter.on("hitupdate",this.handleHitUpdate),l.emitter.on("pointerup",this.handlePointerUp),l.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(e,n){let o=this.component.context,r=this.receivingContext;r&&r!==e&&(r===o?r.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:n.affectedEvents,mutatedEvents:Ae(),isEvent:!0}}):r.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:n})}clearDrag(){let e=this.component.context,{receivingContext:n}=this;n&&n.dispatch({type:"UNSET_EVENT_DRAG"}),e!==n&&e.dispatch({type:"UNSET_EVENT_DRAG"})}cleanup(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null}}gn.SELECTOR=".fc-event-draggable, .fc-event-resizable";function d_(t,e,n){let o=t.dateSpan,r=e.dateSpan,l=o.range.start,a=r.range.start,s={};o.allDay!==r.allDay&&(s.allDay=r.allDay,s.hasEnd=e.context.options.allDayMaintainDuration,r.allDay&&(l=ie(l)));let d=jt(l,a,t.context.dateEnv,t.componentId===e.componentId?t.largeUnit:null);d.milliseconds&&(s.allDay=!1);let f={datesDelta:d,standardProps:s};for(let u of n)u(f,t,e);return f}function u_(t){let{options:e}=t.context,n=e.eventLongPressDelay;return n==null&&(n=e.longPressDelay),n}class f_ extends Gt{constructor(e){super(e),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=l=>{let{component:a}=this,s=this.querySegEl(l),d=Wt(s),f=this.eventRange=d.eventRange;this.dragging.minDistance=a.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(l.origEvent.target)||l.isTouch&&this.component.props.eventSelection!==f.instance.instanceId)},this.handleDragStart=l=>{let{context:a}=this.component,s=this.eventRange;this.relevantEvents=po(a.getCurrentData().eventStore,this.eventRange.instance.instanceId);let d=this.querySegEl(l);this.draggingSegEl=d,this.draggingSeg=Wt(d),a.calendarApi.unselect(),a.emitter.trigger("eventResizeStart",{el:d,event:new se(a,s.def,s.instance),jsEvent:l.origEvent,view:a.viewApi})},this.handleHitUpdate=(l,a,s)=>{let{context:d}=this.component,f=this.relevantEvents,u=this.hitDragging.initialHit,m=this.eventRange.instance,p=null,c=null,_=!1,g={affectedEvents:f,mutatedEvents:Ae(),isEvent:!0};l&&(l.componentId===u.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(u,l)||(p=p_(u,l,s.subjectEl.classList.contains("fc-event-resizer-start"),m.range))),p&&(c=go(f,d.getCurrentData().eventUiBases,p,d),g.mutatedEvents=c,Pa(g,l.dateProfile,d)||(_=!0,p=null,c=null,g.mutatedEvents=null)),c?d.dispatch({type:"SET_EVENT_RESIZE",state:g}):d.dispatch({type:"UNSET_EVENT_RESIZE"}),_?Wi():Gi(),a||(p&&fi(u,l)&&(p=null),this.validMutation=p,this.mutatedRelevantEvents=c)},this.handleDragEnd=l=>{let{context:a}=this.component,s=this.eventRange.def,d=this.eventRange.instance,f=new se(a,s,d),u=this.relevantEvents,m=this.mutatedRelevantEvents;if(a.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:f,jsEvent:l.origEvent,view:a.viewApi}),this.validMutation){let p=new se(a,m.defs[s.defId],d?m.instances[d.instanceId]:null);a.dispatch({type:"MERGE_EVENTS",eventStore:m});let c={oldEvent:f,event:p,relatedEvents:St(m,a,d),revert(){a.dispatch({type:"MERGE_EVENTS",eventStore:u})}};a.emitter.trigger("eventResize",Object.assign(Object.assign({},c),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||Q(0),endDelta:this.validMutation.endDelta||Q(0),jsEvent:l.origEvent,view:a.viewApi})),a.emitter.trigger("eventChange",c)}else a.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:n}=e,o=this.dragging=new mn(e.el);o.pointer.selector=".fc-event-resizer",o.touchScrollAllowed=!1,o.autoScroller.isEnabled=n.context.options.dragScroll;let r=this.hitDragging=new ui(this.dragging,yo(e));r.emitter.on("pointerdown",this.handlePointerDown),r.emitter.on("dragstart",this.handleDragStart),r.emitter.on("hitupdate",this.handleHitUpdate),r.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(e){return _e(e.subjectEl,".fc-event")}}function p_(t,e,n,o){let r=t.context.dateEnv,l=t.dateSpan.range.start,a=e.dateSpan.range.start,s=jt(l,a,r,t.largeUnit);if(n){if(r.add(o.start,s)<o.end)return{startDelta:s}}else if(r.add(o.end,s)>o.start)return{endDelta:s};return null}class h_{constructor(e){this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=o=>{o.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=o=>{let r=this.context.options.unselectCancel,l=Sl(o.origEvent);this.matchesCancel=!!_e(l,r),this.matchesEvent=!!_e(l,gn.SELECTOR)},this.onDocumentPointerUp=o=>{let{context:r}=this,{documentPointer:l}=this,a=r.getCurrentData();if(!l.wasTouchScroll){if(a.dateSelection&&!this.isRecentPointerDateSelect){let s=r.options.unselectAuto;s&&(!s||!this.matchesCancel)&&r.calendarApi.unselect(o)}a.eventSelection&&!this.matchesEvent&&r.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let n=this.documentPointer=new Rs(document);n.shouldIgnoreMove=!0,n.shouldWatchScroll=!1,n.emitter.on("pointerdown",this.onDocumentPointerDown),n.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}const m_={fixedMirrorParent:v},g_={dateClick:v,eventDragStart:v,eventDragStop:v,eventDrop:v,eventResizeStart:v,eventResizeStop:v,eventResize:v,drop:v,eventReceive:v,eventLeave:v};To.dataAttrPrefix="";var zs=Ge({name:"@fullcalendar/interaction",componentInteractions:[l_,a_,gn,f_],calendarInteractions:[h_],elementDraggingImpl:mn,optionRefiners:m_,listenerRefiners:g_});let __=0,y_=new Date().toISOString().replace(/T.*$/,"");const b_=[{id:E_(),title:"All-day event",start:y_}];function E_(){return String(__++)}const _n=t=>(i.pushScopeId("data-v-f8cb3591"),t=t(),i.popScopeId(),t),w_={class:"demo-app"},C_={class:"demo-app-main"},k_={class:"title-line"},v_=["title","onClick"],S_={key:0,style:{width:"90%"}},A_=_n(()=>i.createElementVNode("span",{class:"to"},"至",-1)),D_={key:1,style:{width:"90%"}},x_=_n(()=>i.createElementVNode("span",{class:"to"},"至",-1)),N_={key:2,style:{width:"90%",display:"flex","align-items":"center","justify-content":"space-between"}},T_={key:0,style:{"margin-left":"2%"}},V_=_n(()=>i.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),R_={key:1},I_=_n(()=>i.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),B_={key:0,class:"placeholder"},O_={class:"info"},M_=_n(()=>i.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)),L_={class:"dialog-footer"},z_={name:"IkApprovalProcess"},P_=i.defineComponent({...z_,props:{dataList:{type:Array,default:()=>[]},defaultNodeType:{type:Object,default:()=>({})},defaultFieldMap:{type:Object,default:()=>({})},statusWithoutApprover:{type:Object,default:()=>({})}},emits:["delete","success"],setup(t,{emit:e}){const n=e,o=g=>{if(s.selectInfo=g,l(),g.view.type=="dayGridMonth"){let b=g.end.getTime()-864e5;s.timeType="month",s.form.startDate=z.ikDate.toYMD(g.start),s.form.endDate=z.ikDate.toYMD(new Date(b))}else g.view.type=="timeGridWeek"?(s.timeType="week",s.form.startDate=z.ikDate.toYMDHM(g.start),s.form.endDate=z.ikDate.toYMDHM(g.end)):g.view.type=="timeGridDay"&&(s.timeType="day",s.form.startDate=z.ikDate.toYMD(g.start),s.form.endDate=z.ikDate.toYMD(g.start),s.form.startTime=z.ikDate.toDateTime(g.start),s.form.endTime=z.ikDate.toDateTime(g.end));g.view.calendar.unselect(),i.nextTick(()=>{s.title="新建日程",s.dialogVisible=!0})},r=(g,h)=>{s.title="修改日程",s.dialogVisible=!0},l=g=>{fetch("http://192.168.2.45:6002/component/pick/mix",{method:"POST",body:JSON.stringify({parentDepartmentId:g||"",name:""}),headers:{Authorization:"Bearer iking","Content-Type":"application/json"}}).then(y=>{y.json().then(C=>{const{success:k,data:B}=C;if(!k)return;const{departments:S,users:x,roles:w,posts:N}=B;s.depList=S,s.userList=x,s.roleList=w,s.postList=N})}).catch(y=>{console.info("error: ",y)})},a=g=>{s.currentEvents=g},s=i.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:Mr,plugins:[ks,Vs,zs],headerToolbar:{left:"prev,next today",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay"},firstDay:1,initialView:"dayGridMonth",initialEvents:b_,editable:!0,selectable:!0,selectMirror:!0,dayMaxEvents:!0,weekends:!0,select:o,eventClick:g=>r(),eventsSet:a},currentEvents:[]}),d=()=>{var g;(g=s.formRef)==null||g.resetFields(),s.form={title:"",type:1,startDate:"",endDate:"",startTime:"",endTime:"",personList:[],location:""},s.dialogVisible=!1},f=async()=>{var b,y,C,k;let g=(y=(b=s.selectInfo)==null?void 0:b.view)==null?void 0:y.calendar,h={id:new Date().getTime(),title:s.form.title,start:(C=s.selectInfo)==null?void 0:C.startStr,end:(k=s.selectInfo)==null?void 0:k.endStr,allDay:s.allDay};await g.addEvent(h),n("success",h),d()},u=g=>{A.ElMessageBox.confirm(`你确定删除事件'${g.event.title}'?`,"Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(()=>{A.ElMessage({type:"success",message:"删除成功"}),g.event.remove(),n("delete",g.event)})},m=g=>{s.handList=g.list,s.form.personList=g.list},p=()=>{s.isShow=!0},c=g=>{l(g==null?void 0:g.elementId)},_=g=>{s.form.personList.splice(g,1),s.handList=s.form.personList};return(g,h)=>{const b=i.resolveComponent("el-checkbox");return i.openBlock(),i.createElementBlock("div",w_,[i.createElementVNode("div",C_,[i.createVNode(i.unref(ps),{class:"demo-app-calendar",options:s.calendarOptions},{eventContent:i.withCtx(y=>[i.createElementVNode("div",k_,[i.createElementVNode("span",{class:"title",title:y.event.title,onClick:i.withModifiers(C=>r(),["stop"])},i.toDisplayString(y.event.title),9,v_),i.createVNode(i.unref(A.ElIcon),{size:16,onClick:i.withModifiers(C=>u(y),["stop"])},{default:i.withCtx(()=>[i.createVNode(i.unref(Vr))]),_:2},1032,["onClick"])])]),_:1},8,["options"])]),i.createCommentVNode(" 新建日程 "),i.createVNode(i.unref(A.ElDialog),{modelValue:s.dialogVisible,"onUpdate:modelValue":h[12]||(h[12]=y=>s.dialogVisible=y),title:s.title,width:"30%",ref:"formRef",onClose:d},{footer:i.withCtx(()=>[i.createElementVNode("span",L_,[i.createVNode(i.unref(A.ElButton),{onClick:d},{default:i.withCtx(()=>[i.createTextVNode("取消")]),_:1}),i.createVNode(i.unref(A.ElButton),{type:"primary",onClick:f},{default:i.withCtx(()=>[i.createTextVNode("确定")]),_:1})])]),default:i.withCtx(()=>[i.createVNode(i.unref(A.ElForm),{model:s.form},{default:i.withCtx(()=>[i.createVNode(i.unref(A.ElFormItem),null,{default:i.withCtx(()=>[i.createVNode(i.unref(A.ElIcon),{class:"icon"},{default:i.withCtx(()=>[i.createVNode(i.unref(Dr))]),_:1}),i.createVNode(i.unref(A.ElInput),{modelValue:s.form.title,"onUpdate:modelValue":h[0]||(h[0]=y=>s.form.title=y),placeholder:`添加${s.form.type==1?"会议":"活动"}标题`,style:{width:"70%"},clearable:""},null,8,["modelValue","placeholder"]),i.createVNode(i.unref(A.ElSelect),{modelValue:s.form.type,"onUpdate:modelValue":h[1]||(h[1]=y=>s.form.type=y),style:{width:"20%"}},{default:i.withCtx(()=>[i.createVNode(i.unref(A.ElOption),{label:"会议",value:1}),i.createVNode(i.unref(A.ElOption),{label:"活动",value:2})]),_:1},8,["modelValue"])]),_:1}),i.createVNode(i.unref(A.ElFormItem),null,{default:i.withCtx(()=>[i.createVNode(i.unref(A.ElIcon),{class:"icon"},{default:i.withCtx(()=>[i.createVNode(i.unref(Nr))]),_:1}),s.timeType=="month"?(i.openBlock(),i.createElementBlock("div",S_,[i.createVNode(i.unref(A.ElDatePicker),{modelValue:s.form.startDate,"onUpdate:modelValue":h[2]||(h[2]=y=>s.form.startDate=y),type:"date",placeholder:"开始日期",style:{width:"48%"}},null,8,["modelValue"]),A_,i.createVNode(i.unref(A.ElDatePicker),{modelValue:s.form.endDate,"onUpdate:modelValue":h[3]||(h[3]=y=>s.form.endDate=y),type:"date",placeholder:"结束日期",style:{width:"48%"}},null,8,["modelValue"])])):i.createCommentVNode("v-if",!0),s.timeType=="week"?(i.openBlock(),i.createElementBlock("div",D_,[i.createVNode(i.unref(A.ElDatePicker),{modelValue:s.form.startDate,"onUpdate:modelValue":h[4]||(h[4]=y=>s.form.startDate=y),type:"datetime",placeholder:"开始日期",style:{width:"48%"},format:"YYYY-MM-DD HH:mm"},null,8,["modelValue"]),x_,i.createVNode(i.unref(A.ElDatePicker),{modelValue:s.form.endDate,"onUpdate:modelValue":h[5]||(h[5]=y=>s.form.endDate=y),type:"datetime",placeholder:"结束日期",style:{width:"48%"},format:"YYYY-MM-DD HH:mm"},null,8,["modelValue"])])):i.createCommentVNode("v-if",!0),s.timeType=="day"?(i.openBlock(),i.createElementBlock("div",N_,[i.createVNode(i.unref(A.ElDatePicker),{modelValue:s.form.startDate,"onUpdate:modelValue":h[6]||(h[6]=y=>s.form.startDate=y),type:"date",placeholder:"开始日期",style:i.normalizeStyle({width:s.allDay?"45%":"90%"})},null,8,["modelValue","style"]),s.allDay?(i.openBlock(),i.createElementBlock("div",R_,[I_,i.createVNode(i.unref(A.ElDatePicker),{modelValue:s.form.endDate,"onUpdate:modelValue":h[9]||(h[9]=y=>s.form.endDate=y),type:"date",placeholder:"结束日期",style:{width:"90%"}},null,8,["modelValue"])])):(i.openBlock(),i.createElementBlock("div",T_,[i.createVNode(i.unref(A.ElTimePicker),{modelValue:s.form.startTime,"onUpdate:modelValue":h[7]||(h[7]=y=>s.form.startTime=y),type:"datetime",placeholder:"开始日期",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"]),V_,i.createVNode(i.unref(A.ElTimePicker),{modelValue:s.form.endTime,"onUpdate:modelValue":h[8]||(h[8]=y=>s.form.endTime=y),type:"datetime",placeholder:"结束日期",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"])])),i.createVNode(b,{modelValue:s.allDay,"onUpdate:modelValue":h[10]||(h[10]=y=>s.allDay=y),label:"全天",style:{"margin-left":"2%"}},null,8,["modelValue"])])):i.createCommentVNode("v-if",!0)]),_:1}),i.createVNode(i.unref(A.ElFormItem),null,{default:i.withCtx(()=>[i.createVNode(i.unref(A.ElIcon),{class:"icon"},{default:i.withCtx(()=>[i.createVNode(i.unref(Qd))]),_:1}),i.createElementVNode("div",{class:"personBlock",onClick:i.withModifiers(p,["stop"])},[s.form.personList.length?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(s.form.personList,(y,C)=>(i.openBlock(),i.createElementBlock("div",{key:C,class:"nameBlock"},[i.createElementVNode("div",O_,[M_,i.createElementVNode("div",null,i.toDisplayString(y.elementName),1)]),i.createVNode(i.unref(A.ElIcon),{class:"close",onClick:i.withModifiers(k=>_(C),["stop"])},{default:i.withCtx(()=>[i.createVNode(i.unref(Tr))]),_:2},1032,["onClick"])]))),128)):(i.openBlock(),i.createElementBlock("span",B_,"添加参与人"))])]),_:1}),i.createVNode(i.unref(A.ElFormItem),null,{default:i.withCtx(()=>[i.createVNode(i.unref(A.ElIcon),{class:"icon"},{default:i.withCtx(()=>[i.createVNode(i.unref(Od))]),_:1}),i.createVNode(i.unref(A.ElInput),{modelValue:s.form.location,"onUpdate:modelValue":h[11]||(h[11]=y=>s.form.location=y),placeholder:"添加地点",style:{width:"90%"},clearable:""},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),i.createCommentVNode(" 选人组件 "),i.createVNode(i.unref(En),{modelValue:s.handList,"onUpdate:modelValue":h[13]||(h[13]=y=>s.handList=y),show:s.isShow,"onUpdate:show":h[14]||(h[14]=y=>s.isShow=y),onOk:m,multiple:!0,"type-option":{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},"dep-list":s.depList,"user-list":s.userList,"prop-option":{name:"elementName",id:"elementId",type:"elementType",avatar:"avatar"},chooseType:["user"],onHandChild:c},null,8,["modelValue","show","dep-list","user-list"])])}}}),C4="",F_=oe(K(P_,[["__scopeId","data-v-f8cb3591"]])),$_={class:"ik-hor-step-content"},H_={class:"flex"},j_=["onClick"],U_=["id","onClick"],W_=i.defineComponent({__name:"IKHorizontalStepBar",props:{spaceNum:{type:String,default:"58px"},active:{type:Number,default:null},activeColor:{type:String,default:""},needClick:{type:Boolean,default:!1},list:{type:Array,default:()=>[]},propsField:{type:Object,default:()=>({title:"title",value:"value"})}},emits:["click","update:active"],setup(t,{emit:e}){const n=t,o=e,r=i.ref(!1),l=i.ref(),a=i.ref(),s=i.ref(!1);i.watch(()=>n.active,g=>{let h=document.getElementById("stepItemContent"),b=document.getElementById(`stepItem${g}`),y=document.getElementById("stepItem0");const C=b&&y?(b==null?void 0:b.offsetLeft)-(y==null?void 0:y.offsetLeft):0;h&&b&&(h.scrollLeft=C>(h==null?void 0:h.clientWidth)?C-(h==null?void 0:h.offsetLeft):0)}),i.onMounted(()=>{i.nextTick(()=>{let h=document.getElementById("stepItemContent"),b=(h==null?void 0:h.scrollWidth)>(h==null?void 0:h.clientWidth);r.value=b,window.addEventListener("resize",g,!0)});const g=()=>{let h=document.getElementById("stepItemContent"),b=(h==null?void 0:h.scrollWidth)>(h==null?void 0:h.clientWidth);r.value=b}});const d=(g,h)=>{if(!n.needClick)return;o("update:active",h),o("click",g);let b=document.getElementById("stepItemContent"),y=document.getElementById(`stepItem${h}`),C=document.getElementById("stepItem0");const k=y&&C?(y==null?void 0:y.offsetLeft)-(C==null?void 0:C.offsetLeft):0;b&&y&&(b.scrollLeft=k>(b==null?void 0:b.clientWidth)?k-(b==null?void 0:b.offsetLeft):0)},f=()=>{let g=document.getElementById("stepItemContent");g&&(g.scrollLeft=g.scrollLeft-20)},u=()=>{let g=document.getElementById("stepItemContent");g&&(g.scrollLeft=g.scrollLeft+20)},m=()=>{clearInterval(a.value);let g=document.getElementById("stepItemContent");s.value=!1,a.value=setInterval(()=>{s.value=!0,g&&(g.scrollLeft=g.scrollLeft-20)},100)},p=()=>{clearInterval(a.value),s.value||f()},c=()=>{clearInterval(l.value);let g=document.getElementById("stepItemContent");s.value=!1,l.value=setInterval(()=>{s.value=!0,g&&(g.scrollLeft=g.scrollLeft+20)},100)},_=()=>{clearInterval(l.value),s.value||u()};return(g,h)=>{const b=i.resolveComponent("el-icon");return i.openBlock(),i.createElementBlock("div",$_,[i.createElementVNode("div",H_,[r.value?(i.openBlock(),i.createElementBlock("div",{key:0,class:"icon-left",onMousedown:m,onMouseup:p,onClick:f},[i.createVNode(b,{class:"operation-icon"},{default:i.withCtx(()=>[i.createVNode(i.unref(Sr),{size:"26px"})]),_:1})],32)):i.createCommentVNode("v-if",!0),i.createElementVNode("div",{class:"step-item-content",id:"stepItemContent",style:i.normalizeStyle({justifyContent:r.value?"flex-start":"center"})},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.list,(y,C)=>(i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(`step-item ${C<=t.active?"step-item-active":""}`),key:C},[C!=0?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(`step-border ${C<=t.active?"step-border-greater-than":""}`),style:i.normalizeStyle({width:`${t.spaceNum.indexOf("px")!=-1?t.spaceNum:`${t.spaceNum}px`}`})},null,6)):i.createCommentVNode("v-if",!0),i.createElementVNode("span",{class:i.normalizeClass(`step-num ${C===t.active?"step-num-active":C<t.active?"step-num-greater-than":""}`),onClick:k=>d(y,C),style:i.normalizeStyle({backgroundColor:C===t.active&&t.activeColor?t.activeColor:"",cursor:y&&y.disabled?"not-allowed":t.needClick?"pointer":"context-menu"})},[i.renderSlot(g.$slots,"icon",{data:{item:y,index:C}},()=>[i.createTextVNode(i.toDisplayString(C+1),1)],!0)],14,j_),i.createElementVNode("span",{id:`stepItem${C}`,class:i.normalizeClass(`step-label ${t.active===C?"step-label-active":C<t.active?"step-label-greater-than":""} step-item-${C}`),style:i.normalizeStyle({color:C===t.active&&t.activeColor?t.activeColor:"",cursor:y&&y.disabled?"not-allowed":t.needClick?"pointer":"context-menu"}),onClick:k=>d(y,C)},i.toDisplayString(y[t.propsField.title]),15,U_)],2))),128))],4),r.value?(i.openBlock(),i.createElementBlock("div",{key:1,class:"icon-right",onMousedown:c,onMouseup:_,onClick:u},[i.createVNode(b,{class:"operation-icon"},{default:i.withCtx(()=>[i.createVNode(i.unref(Ar))]),_:1})],32)):i.createCommentVNode("v-if",!0)])])}}}),v4="",G_=oe(K(W_,[["__scopeId","data-v-c8da17cd"]])),q_=typeof btoa=="function",Go=typeof Buffer=="function";typeof TextDecoder=="function"&&new TextDecoder;const Ps=typeof TextEncoder=="function"?new TextEncoder:void 0,Y_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",yn=Array.prototype.slice.call(Y_);(t=>{let e={};return t.forEach((n,o)=>e[n]=o),e})(yn);const ze=String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);const Q_=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),Fs=q_?t=>btoa(t):Go?t=>Buffer.from(t,"binary").toString("base64"):t=>{let e,n,o,r,l="";const a=t.length%3;for(let s=0;s<t.length;){if((n=t.charCodeAt(s++))>255||(o=t.charCodeAt(s++))>255||(r=t.charCodeAt(s++))>255)throw new TypeError("invalid character found");e=n<<16|o<<8|r,l+=yn[e>>18&63]+yn[e>>12&63]+yn[e>>6&63]+yn[e&63]}return a?l.slice(0,a-3)+"===".substring(a):l},Z_=Go?t=>Buffer.from(t).toString("base64"):t=>{let n=[];for(let o=0,r=t.length;o<r;o+=4096)n.push(ze.apply(null,t.subarray(o,o+4096)));return Fs(n.join(""))},K_=t=>{if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?ze(192|e>>>6)+ze(128|e&63):ze(224|e>>>12&15)+ze(128|e>>>6&63)+ze(128|e&63)}else{var e=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return ze(240|e>>>18&7)+ze(128|e>>>12&63)+ze(128|e>>>6&63)+ze(128|e&63)}},X_=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,J_=t=>t.replace(X_,K_),$s=Go?t=>Buffer.from(t,"utf8").toString("base64"):Ps?t=>Z_(Ps.encode(t)):t=>Fs(J_(t)),e6=(t,e=!1)=>e?Q_($s(t)):$s(t),t6=["src"],Hs=i.defineComponent({__name:"IKPreviewFile",props:{modelValue:{type:Boolean,default:!1},kkUrl:{required:!0,type:String,default:""},url:{required:!0,type:String,default:""},loadUrl:{type:String,default:""},fileName:{type:String,default:""}},setup(t){const e=t,n=i.ref(null),o=i.computed(()=>!e.kkUrl||!e.url?"":`${e.kkUrl}${encodeURIComponent(e6(`${e.loadUrl}${e.url}${e.fileName?`&fullfilename=${e.fileName}`:""}`))}`),r=i.ref(e.modelValue);return i.watch(()=>e.modelValue,l=>{r.value=l}),(l,a)=>(i.openBlock(),i.createBlock(i.unref(A.ElDialog),{fullscreen:"",modelValue:r.value,"onUpdate:modelValue":a[0]||(a[0]=s=>r.value=s),"destroy-on-close":"","append-to-body":"","modal-class":"ik-file-preview-modal",onClose:a[1]||(a[1]=s=>l.$emit("update:modelValue",!1)),class:"ik-file-preview"},{default:i.withCtx(()=>[i.createElementVNode("iframe",{ref_key:"freamRef",ref:n,"cross-origin":"",src:o.value,frameborder:"0",allowfullscreen:"",seamless:""},null,8,t6)]),_:1},8,["modelValue"]))}}),D4="",n6=oe(Hs),i6={key:0,t:"1686300037564",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7515",width:"200",height:"200"},o6=[i.createElementVNode("path",{d:"M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",fill:"#029EF7","p-id":"7516"},null,-1),i.createElementVNode("path",{d:"M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",fill:"#64b5ed","p-id":"7517"},null,-1),i.createElementVNode("path",{d:"M384 499.2c0-25.6 5.12-46.08 10.24-58.88 5.12-12.8 15.36-25.6 28.16-35.84 12.8-12.8 25.6-20.48 43.52-25.6 15.36-5.12 30.72-7.68 48.64-7.68 35.84 0 64 10.24 89.6 30.72C627.2 422.4 640 448 640 481.28c0 15.36-5.12 28.16-10.24 40.96s-17.92 28.16-38.4 46.08-28.16 30.72-35.84 38.4c-7.68 7.68-10.24 17.92-15.36 28.16-5.12 10.24-2.56 17.92-2.56 43.52h-51.2c0-25.6 2.56-38.4 5.12-51.2s7.68-23.04 15.36-33.28 15.36-23.04 33.28-40.96c17.92-17.92 30.72-30.72 35.84-38.4 5.12-7.68 10.24-20.48 10.24-38.4s-7.68-30.72-20.48-43.52-30.72-20.48-53.76-20.48c-51.2 0-76.8 35.84-76.8 87.04h-51.2z m153.6 281.6h-51.2v-51.2h51.2v51.2z",fill:"#FFFFFF","p-id":"7518"},null,-1)],r6={key:1,t:"1686300059786",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7671",width:"200",height:"200"},l6=[i.createElementVNode("path",{d:"M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",fill:"#50CD89","p-id":"7672"},null,-1),i.createElementVNode("path",{d:"M258.528 742.0672L351.8336 604.928a14.5024 14.5024 0 0 1 22.1696-2.1824l61.664 60.416 135.296-212.064a14.5024 14.5024 0 0 1 24.8064 0.5568l168.1024 291.328a14.5024 14.5024 0 0 1-12.5696 21.7664H270.528a14.5024 14.5024 0 0 1-12.0064-22.6816z",fill:"#FFF7F7","p-id":"7673"},null,-1),i.createElementVNode("path",{d:"M359.616 431.5456m-73.1456 0a73.1456 73.1456 0 1 0 146.2912 0 73.1456 73.1456 0 1 0-146.2912 0Z",fill:"#FFFFFF","p-id":"7674"},null,-1),i.createElementVNode("path",{d:"M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",fill:"#a9f6cc","p-id":"7675"},null,-1)],a6={key:2,t:"1686301531714",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9067",width:"200",height:"200"},s6=[i.createElementVNode("path",{d:"M409.6 0v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133334H409.6v68.266666h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133334s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333h68.266666c20.48 0 34.133333-13.653333 34.133334-34.133333V477.866667h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133334S532.48 409.6 512 409.6H477.866667V341.333333h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 273.066667 512 273.066667H477.866667V204.8h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 136.533333 512 136.533333H477.866667V0h204.8l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0h204.8z m0 682.666667h68.266667v68.266666H409.6v-68.266666z m-34.133333-68.266667c-20.48 0-34.133333 13.653333-34.133334 34.133333v136.533334c0 20.48 13.653333 34.133333 34.133334 34.133333h136.533333c20.48 0 34.133333-13.653333 34.133333-34.133333v-136.533334c0-20.48-13.653333-34.133333-34.133333-34.133333h-136.533333z",fill:"#FFA621","p-id":"9068"},null,-1),i.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"9069"},null,-1)],c6={key:3,t:"1686300141125",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8137",width:"200",height:"200"},d6=[i.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m204.8 546.133333V443.733333h204.8v136.533334H409.6V546.133333z m0 102.4h204.8c40.96 0 68.266667-27.306667 68.266667-68.266666v-136.533334c0-40.96-27.306667-68.266667-68.266667-68.266666H409.6c-40.96 0-68.266667 27.306667-68.266667 68.266666V819.2c0 20.48 13.653333 34.133333 34.133334 34.133333s34.133333-13.653333 34.133333-34.133333V648.533333z",fill:"#F1416C","p-id":"8138"},null,-1),i.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f78cbc","p-id":"8139"},null,-1)],u6={key:4,t:"1686300157181",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8292",width:"200",height:"200"},f6=[i.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 607.573333l68.266667 191.146667c13.653333 27.306667 54.613333 27.306667 61.44 0l102.4-273.066667c6.826667-20.48 0-34.133333-20.48-40.96s-34.133333 0-40.96 13.653334l-68.266667 191.146666-68.266667-191.146666c-13.653333-27.306667-54.613333-27.306667-68.266666 0l-68.266667 191.146666-68.266667-191.146666c-6.826667-13.653333-27.306667-27.306667-47.786666-20.48s-27.306667 27.306667-20.48 47.786666l102.4 273.066667c13.653333 27.306667 54.613333 27.306667 61.44 0l75.093333-191.146667z",fill:"#029EF7","p-id":"8293"},null,-1),i.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#64b5ed","p-id":"8294"},null,-1)],p6={key:5,t:"1686300180947",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8447",width:"200",height:"200"},h6=[i.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m477.866667 730.453333c20.48 0 68.266667 0 68.266666-47.786666 0-20.48-6.826667-47.786667-68.266666-47.786667-27.306667 0-54.613333 6.826667-81.92 6.826667-34.133333-27.306667-68.266667-61.44-88.746667-102.4 20.48-75.093333 20.48-122.88 6.826667-150.186667-6.826667-6.826667-20.48-13.653333-34.133334-13.653333-20.48 0-34.133333 6.826667-40.96 20.48-20.48 40.96 13.653333 116.053333 27.306667 150.186666-20.48 54.613333-40.96 109.226667-68.266667 163.84C273.066667 764.586667 273.066667 798.72 273.066667 812.373333c0 13.653333 6.826667 27.306667 20.48 34.133334 6.826667 6.826667 13.653333 6.826667 20.48 6.826666 34.133333 0 68.266667-34.133333 116.053333-109.226666 54.613333-20.48 102.4-40.96 157.013333-47.786667 27.306667 20.48 61.44 34.133333 95.573334 34.133333zM491.52 416.426667c6.826667 20.48 6.826667 47.786667 0 68.266666-13.653333-20.48-13.653333-40.96-13.653333-68.266666h13.653333z m-177.493333 395.946666c13.653333-20.48 27.306667-27.306667 47.786666-40.96-13.653333 20.48-27.306667 34.133333-47.786666 40.96z m184.32-204.8c13.653333 20.48 34.133333 47.786667 54.613333 68.266667H546.133333c-27.306667 6.826667-61.44 13.653333-88.746666 27.306667 13.653333-34.133333 27.306667-61.44 40.96-95.573334z m177.493333 68.266667c27.306667 0 34.133333 6.826667 34.133333 13.653333-6.826667 0-20.48 6.826667-27.306666 0-13.653333 0-27.306667-6.826667-40.96-13.653333h34.133333z",fill:"#F1416C","p-id":"8448"},null,-1),i.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f78cbc","p-id":"8449"},null,-1)],m6={key:6,t:"1686300195363",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8602",width:"200",height:"200"},g6=[i.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m341.333333 512h136.533334c20.48 0 34.133333-13.653333 34.133333-34.133333s-13.653333-34.133333-34.133333-34.133334H341.333333c-20.48 0-34.133333 13.653333-34.133333 34.133334s13.653333 34.133333 34.133333 34.133333h136.533334V819.2c0 20.48 13.653333 34.133333 34.133333 34.133333s34.133333-13.653333 34.133333-34.133333V512z",fill:"#029EF7","p-id":"8603"},null,-1),i.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#64b5ed","p-id":"8604"},null,-1)],_6={key:7,t:"1686300209288",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8757",width:"200",height:"200"},y6=[i.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m464.213333 375.466667l-232.106666 61.44c-27.306667 13.653333-47.786667 34.133333-47.786667 61.44v218.453333s-20.48-13.653333-54.613333-6.826667c-47.786667 6.826667-95.573333 47.786667-95.573334 88.746667 0 40.96 47.786667 61.44 95.573334 54.613333 54.613333-6.826667 95.573333-40.96 95.573333-81.92V559.786667c0-13.653333 27.306667-27.306667 27.306667-27.306667L655.36 477.866667s20.48-6.826667 20.48 13.653333v170.666667s-20.48-13.653333-54.613333-6.826667c-54.613333 6.826667-95.573333 40.96-95.573334 81.92s47.786667 68.266667 95.573334 61.44 95.573333-40.96 95.573333-81.92V409.6c0-27.306667-27.306667-40.96-47.786667-34.133333z",fill:"#FFA621","p-id":"8758"},null,-1),i.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"8759"},null,-1)],b6={key:8,t:"1686300225262",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8912",width:"200",height:"200"},E6=[i.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 853.333333c150.186667 0 273.066667-122.88 273.066667-273.066666s-122.88-273.066667-273.066667-273.066667-273.066667 122.88-273.066667 273.066667 122.88 273.066667 273.066667 273.066666z m0-68.266666c-116.053333 0-204.8-88.746667-204.8-204.8s88.746667-204.8 204.8-204.8 204.8 88.746667 204.8 204.8-88.746667 204.8-204.8 204.8zM614.4 600.746667l6.826667-6.826667c6.826667-13.653333 6.826667-27.306667-6.826667-34.133333L484.693333 471.04s-6.826667-6.826667-13.653333-6.826667c-13.653333 0-27.306667 13.653333-27.306667 27.306667v170.666667c0 6.826667 0 13.653333 6.826667 13.653333 6.826667 13.653333 27.306667 13.653333 40.96 6.826667L614.4 600.746667z",fill:"#FFA621","p-id":"8913"},null,-1),i.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"8914"},null,-1)],w6={key:9,t:"1692251753690",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4336",width:"200",height:"200"},C6=[i.createElementVNode("path",{d:"M192 0h448.170667l319.829333 320V896a128 128 0 0 1-128 128H192a128 128 0 0 1-128-128V128A128 128 0 0 1 192 0z",fill:"#00BD76","p-id":"4337"},null,-1),i.createElementVNode("path",{d:"M388.5056 631.261867H307.541333v54.852266h95.095467v33.8944H265.3184v-204.765866h136.977067v34.167466H307.5072v48.810667h80.9984v33.041067z m112.093867-45.397334l38.4-70.621866h48.503466l-59.630933 101.546666 61.201067 103.2192h-49.117867l-39.355733-71.714133-39.389867 71.68h-49.0496l61.166933-103.185067-59.630933-101.546666h48.503467l38.4 70.587733z m266.922666 65.9456c-0.648533 9.898667-3.037867 19.592533-7.0656 28.672-3.7888 8.533333-9.352533 16.1792-16.315733 22.4256-6.929067 6.2464-15.36 11.127467-25.258667 14.6432-9.864533 3.4816-21.128533 5.256533-33.792 5.256534-13.1072 0-24.917333-2.286933-35.362133-6.826667a72.260267 72.260267 0 0 1-26.555733-19.626667 89.019733 89.019733 0 0 1-16.725334-30.993066 133.597867 133.597867 0 0 1-5.870933-40.8576v-13.482667c0-15.121067 2.048-28.740267 6.0416-40.925867 4.061867-12.1856 9.728-22.528 17.1008-31.061333 7.338667-8.533333 16.4864-15.2576 26.794667-19.694933 10.478933-4.608 22.186667-6.894933 35.157333-6.894934 12.731733 0 24.029867 1.809067 33.792 5.393067 9.8304 3.618133 18.1248 8.635733 24.9856 15.0528 6.826667 6.485333 12.288 14.267733 16.042667 22.9376 3.822933 8.874667 6.2464 18.466133 7.304533 28.8768h-42.1888a63.829333 63.829333 0 0 0-3.1744-16.145067 31.744 31.744 0 0 0-7.099733-11.810133 29.354667 29.354667 0 0 0-11.946667-7.2704 55.944533 55.944533 0 0 0-17.749333-2.4576c-14.2336 0-24.849067 5.188267-31.812267 15.5648-6.997333 10.3424-10.478933 26.385067-10.478933 48.128v13.789867c0 10.581333 0.750933 19.899733 2.321066 27.8528 1.536 7.953067 3.959467 14.609067 7.304534 19.968a32.221867 32.221867 0 0 0 12.970666 12.014933c5.256533 2.696533 11.639467 4.027733 19.182934 4.027733 6.656 0 12.3904-0.750933 17.2032-2.2528a30.549333 30.549333 0 0 0 12.0832-6.826666 30.685867 30.685867 0 0 0 7.509333-11.4688c1.809067-4.573867 2.935467-9.898667 3.413333-16.042667h42.154667z",fill:"#FFFFFF",opacity:".9","p-id":"4338"},null,-1),i.createElementVNode("path",{d:"M640 0l320 320H768a128 128 0 0 1-128-128V0z",fill:"#19EA9C","p-id":"4339"},null,-1)],js=i.defineComponent({__name:"FileIcon",props:{type:{type:String,default:"unknow"}},setup(t){return(e,n)=>t.type==="unknow"?(i.openBlock(),i.createElementBlock("svg",i6,o6)):t.type==="image"?(i.openBlock(),i.createElementBlock("svg",r6,l6)):t.type==="zip"?(i.openBlock(),i.createElementBlock("svg",a6,s6)):t.type==="ppt"?(i.openBlock(),i.createElementBlock("svg",c6,d6)):t.type==="word"?(i.openBlock(),i.createElementBlock("svg",u6,f6)):t.type==="pdf"?(i.openBlock(),i.createElementBlock("svg",p6,h6)):t.type==="txt"?(i.openBlock(),i.createElementBlock("svg",m6,g6)):t.type==="audio"?(i.openBlock(),i.createElementBlock("svg",_6,y6)):t.type==="video"?(i.openBlock(),i.createElementBlock("svg",b6,E6)):t.type==="excal"?(i.openBlock(),i.createElementBlock("svg",w6,C6)):i.createCommentVNode("v-if",!0)}}),qo=t=>t%1===0?t.toString():t.toFixed(2),me=(t,e)=>{var r,l,a,s,d;const n=(r=t==null?void 0:t.response)!=null&&r.data?Us((a=(l=t==null?void 0:t.response)==null?void 0:l.data)==null?void 0:a.suffix):((s=t.raw)==null?void 0:s.type)||Us(t[e.suffix]),o=((d=t.raw)==null?void 0:d.name)||t[e.name];return n!=null&&n.includes("sheet")||n==="excal"?"excal":n!=null&&n.includes("zip")||n==="zip"||n==="application/x-compressed"?"zip":n!=null&&n.includes("image")||n==="image"?"image":n!=null&&n.includes("video")||n==="video"?"video":n!=null&&n.includes("audio")||n==="audio"?"audio":n!=null&&n.includes("pdf")||n==="pdf"?"pdf":n!=null&&n.includes("text")||n==="txt"?"txt":n!=null&&n.includes("word")||n==="word"?"word":o!=null&&o.includes("ppt")||n==="ppt"?"ppt":"unknow"},Us=t=>{const e=t==null?void 0:t.toLocaleLowerCase();switch(e!=null&&e.startsWith(".")?e:`.${e}`){case".doc":case".docx":case".docxf":case".docm":case".dot":case".dotm":case".dotx":case".epub":case".fodt":case".htm":case".html":case".mht":case".odt":case".ott":case".rtf":case".txt":case".djvu":case".oxps":case".oform":case".fb2":case".xml":case".xps":return"word";case".csv":case".xls":case".xlsx":case".fods":case".ods":case".ots":case".xlsb":case".xlsm":case".xlt":case".xltm":case".xltx":return"excal";case".fodp":case".odp":case".otp":case".pot":case".potm":case".potx":case".pps":case".ppsm":case".ppsx":case".ppt":case".pptm":case".pptx":return"ppt";case".zip":case".rar":case".7z":case".apz":case".ar":case".bz":case".car":case".dar":case".cpgz":case".f":case".ha":case".hbc":case".hbc2":case".hbe":case".hpk":case".hyp":return"zip";case".png":case".jpg":case".jpeg":case".bmp":case".gif":case".webp":case".psd":case".svg":case".tiff":return"image";case".avi":case".wmv":case".mpeg":case".mp4":case".mpm4v":case".mov":case".asf":case".flv":case".f4v":case".rmvb":case".rm":case".3gp":case".vob":return"video";case"audio":return"audio";case".txt":return"txt";case".pdf":return"pdf";case t:case"":return"unknow"}},k6={class:"ik-flie-list"},v6={class:"name"},S6={key:1},A6=["src"],D6={class:"file-icon"},x6={class:"file-name-loading"},N6={class:"file-name"},T6={key:0},V6={key:0,class:"file-size"},R6={class:"name"},I6={class:"file-name-loading"},B6={class:"file-name"},O6={class:"file-size"},M6={class:"operate-btn"},L6={class:"card"},z6={class:"title"},P6={class:"ik-flie-list"},F6={class:"name"},$6={key:1},H6=["src"],j6={class:"file-icon"},U6={class:"file-name-loading"},W6={class:"file-name"},G6={key:0},q6={key:0,class:"file-size"},Y6=i.defineComponent({__name:"index",props:{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:""},modelValue:{type:Array,default:()=>[]},defaultFileds:{type:Object,default:()=>({name:"name",url:"url",suffix:"suffix"})},preview:{type:Boolean,default:!1},customIconData:{type:Object,default:()=>({})},customIconFields:{type:Object,default:()=>({type:"type",icon:"icon"})},onlinePreviewUrl:{type:String,default:""}},emits:["delete","exceed","success","error","outSize"],setup(t,{emit:e}){const n=t,o=e,l={...{name:"name",url:"url",suffix:"suffix"},...n.defaultFileds},a=i.computed(()=>n.size),s=i.ref(null),d=i.ref(null),f=i.ref(n.modelValue);i.watch(()=>n.modelValue,D=>{f.value=D},{deep:!0});const u=i.ref([]),m=i.ref(!1),p=i.ref(!1),c=i.ref(null),_=(D,O)=>{f.value=z._.cloneDeep(O)},g=D=>{const O=D.size/1024/1024;if(!(O<a.value)){o("outSize"),A.ElMessage({message:`上传文件大小(${O.toFixed(4)}MB)超出允许最大值(${n.size}MB),请重新选择`,type:"warning",showClose:!0,duration:5e3});const L=f.value.findIndex(H=>H.uid===D.uid);return f.value.splice(L,1),!1}return!0},h=()=>!1,b=(D,O)=>{var V,L;D.status="ready",O!==void 0&&u.value.splice(O,1),(V=s.value)==null||V.handleStart(D.raw),(L=s.value)==null||L.submit()},y=(D,O)=>{var I,ee;const V=f.value.length,L=n.limit-V;let H=0;for(;H<L&&H<D.length;)(I=s.value)==null||I.handleStart(D[H]),(ee=s.value)==null||ee.submit(),H++;A.ElMessage({message:(n==null?void 0:n.limitText)||`最大可上传${n.limit}个文件,已忽略超出文件`,type:"warning",showClose:!0,duration:5e3}),o("exceed",D)},C=(D,O,V)=>{o("success",D,O,V)},k=(D,O,V)=>{u.value.push(O),o("error",D,O,V)},B=D=>{D&&me(D,l)==="video"||D&&me(D,l)==="image"?(c.value={...D,url:D[l.url].startsWith("http")?D[l.url]:`${n.loadUrl}${D[l.url]}`},p.value=!0):window.open(n.loadUrl+D[l.url])},S=D=>{z.ikFile.downloadByOnlineUrl(D[l.url],D[l.name])},x=(D,O=!1)=>{var V;(V=s.value)==null||V.abort(D)},w=D=>{var O;D.status!=="success"&&x(D),(O=s.value)==null||O.handleRemove(D),f.value=f.value.filter(V=>V.uid!==D.uid),o("delete",D)},N=(D,O)=>{u.value.splice(O,1)};return(D,O)=>{var L,H;const V=i.resolveComponent("el-image-viewer");return i.openBlock(),i.createElementBlock(i.Fragment,null,[t.preview?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[t.type==="button"?(i.openBlock(),i.createBlock(i.unref(A.ElUpload),i.mergeProps({key:0,"file-list":f.value,"onUpdate:fileList":O[0]||(O[0]=I=>f.value=I),class:"ik-file-upload"},D.$attrs,{accept:t.accept,action:t.action,ref_key:"refUpload",ref:s,"on-change":_,"before-upload":g,"before-remove":h,"on-exceed":y,multiple:t.multiple,headers:t.headers,limit:t.limit,"on-success":C,"on-error":k}),{trigger:i.withCtx(()=>[D.$slots.trigger?i.renderSlot(D.$slots,"trigger",{key:0},void 0,!0):(i.openBlock(),i.createBlock(i.unref(A.ElButton),{key:1,type:"primary",disabled:f.value.length===t.limit,icon:i.unref(qd)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(t.title),1)]),_:1},8,["disabled","icon"]))]),file:i.withCtx(({file:I})=>[i.createElementVNode("div",k6,[i.createElementVNode("div",v6,[!D.$slots.fileIcon&&(!t.customIconData[i.unref(me)(I,l)]||!t.customIconData[i.unref(me)(I,l)][t.customIconFields.icon])?(i.openBlock(),i.createBlock(js,{key:0,type:i.unref(me)(I,l)},null,8,["type"])):!D.$slots.fileIcon&&t.customIconData[i.unref(me)(I,l)]&&t.customIconData[i.unref(me)(I,l)][t.customIconFields.icon]?(i.openBlock(),i.createElementBlock("div",S6,[t.customIconData[i.unref(me)(I,l)][t.customIconFields.type]==="img"?(i.openBlock(),i.createElementBlock("img",{key:0,src:t.customIconData[i.unref(me)(I,l)][t.customIconFields.icon],alt:"",class:"file-img-icon"},null,8,A6)):(i.openBlock(),i.createElementBlock("span",{key:1,class:i.normalizeClass([t.customIconData[i.unref(me)(I,l)][t.customIconFields.icon],"file-icon-size"])},null,2))])):i.createCommentVNode("v-if",!0),i.createElementVNode("div",D6,[i.renderSlot(D.$slots,"fileIcon",{file:I},void 0,!0)]),i.createElementVNode("div",x6,[i.createElementVNode("p",N6,[i.createTextVNode(i.toDisplayString(I[l.name]||I.name)+" ",1),I.percentage&&I.percentage!==100?(i.openBlock(),i.createElementBlock("span",T6,"("+i.toDisplayString(I.percentage)+"%)",1)):i.createCommentVNode("v-if",!0)]),I.percentage===100?(i.openBlock(),i.createElementBlock("p",V6,i.toDisplayString(i.unref(qo)(I.size/1024/1024))+"MB ",1)):i.createCommentVNode("v-if",!0),I.percentage&&I.percentage!==100?(i.openBlock(),i.createBlock(i.unref(A.ElProgress),{key:1,"text-inside":"",percentage:I.percentage,color:"var(--el-color-primary)","striped-flow":"",striped:"","show-text":!1},null,8,["percentage"])):i.createCommentVNode("v-if",!0)])]),t.preview?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[t.preview||I.percentage===100?(i.openBlock(),i.createBlock(i.unref(A.ElIcon),{key:0,title:"预览",class:"primary"},{default:i.withCtx(()=>[i.createVNode(i.unref(Ir),{onClick:ee=>B(I)},null,8,["onClick"])]),_:2},1024)):i.createCommentVNode("v-if",!0),i.createVNode(i.unref(A.ElIcon),{title:"下载",class:"primary"},{default:i.withCtx(()=>[i.createVNode(i.unref(Vi),{onClick:ee=>S(I)},null,8,["onClick"])]),_:2},1024)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[I.status==="success"?(i.openBlock(),i.createBlock(i.unref(A.ElIcon),{key:0,title:"删除",class:"error"},{default:i.withCtx(()=>[i.createVNode(i.unref(on),{onClick:ee=>w(I)},null,8,["onClick"])]),_:2},1024)):(i.openBlock(),i.createBlock(i.unref(A.ElIcon),{key:1,title:"取消上传"},{default:i.withCtx(()=>[i.createVNode(i.unref(xr),{onClick:ee=>w(I)},null,8,["onClick"])]),_:2},1024))],64))])]),default:i.withCtx(()=>{var I;return[!t.preview&&t.tip?(i.openBlock(),i.createBlock(i.unref(A.ElTooltip),{key:0,effect:"dark",content:n.tipText||"","popper-class":"_ik_web_ui_file-help-tooltip"},{default:i.withCtx(()=>[i.createVNode(i.unref(A.ElIcon),{size:23,class:"_ik_web_ui_file_help_icon"},{default:i.withCtx(()=>[i.createVNode(i.unref(Fd))]),_:1})]),_:1},8,["content"])):i.createCommentVNode("v-if",!0),(I=u.value)!=null&&I.length?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(u.value,(ee,ke)=>(i.openBlock(),i.createElementBlock("div",{class:"ik-error-flie-list",key:ee.uid},[i.createElementVNode("div",R6,[i.createVNode(i.unref(A.ElIcon),{size:32,class:"info",style:{"vertical-align":"middle"}},{default:i.withCtx(()=>[i.createVNode(i.unref(Xd))]),_:1}),i.createElementVNode("div",I6,[i.createElementVNode("p",B6,i.toDisplayString(ee[l.name]||ee.name),1),i.createElementVNode("p",O6,i.toDisplayString(i.unref(qo)(ee.size/1024/1024))+"MB ",1)])]),i.withDirectives(i.createElementVNode("div",M6,[i.createVNode(i.unref(A.ElIcon),{style:{"vertical-align":"middle"},onClick:Ot=>b(ee,ke),title:"重新上传",class:"primary"},{default:i.withCtx(()=>[i.createVNode(i.unref(Ri))]),_:2},1032,["onClick"]),i.createVNode(i.unref(A.ElIcon),{class:"error",onClick:Ot=>N(ee,ke),title:"删除"},{default:i.withCtx(()=>[i.createVNode(i.unref(on))]),_:2},1032,["onClick"])],512),[[i.vShow,(ee==null?void 0:ee.status)==="fail"]])]))),128)):i.createCommentVNode("v-if",!0)]}),_:3},16,["file-list","accept","action","multiple","headers","limit"])):(i.openBlock(),i.createBlock(i.unref(A.ElUpload),i.mergeProps({key:1,"file-list":f.value,"onUpdate:fileList":O[1]||(O[1]=I=>f.value=I),class:"ik-file-pload-card"},D.$attrs,{accept:t.accept,action:t.action,ref_key:"refUpload",ref:s,"on-change":_,"before-upload":g,"before-remove":h,"on-exceed":y,multiple:t.multiple,headers:t.headers,limit:t.limit,"on-success":C,"on-error":k}),{file:i.withCtx(({file:I})=>[i.createElementVNode("div",P6,[i.createElementVNode("div",F6,[!D.$slots.fileIcon&&(!t.customIconData[i.unref(me)(I,l)]||!t.customIconData[i.unref(me)(I,l)][t.customIconFields.icon])?(i.openBlock(),i.createBlock(js,{key:0,type:i.unref(me)(I,l)},null,8,["type"])):!D.$slots.fileIcon&&t.customIconData[i.unref(me)(I,l)]&&t.customIconData[i.unref(me)(I,l)][t.customIconFields.icon]?(i.openBlock(),i.createElementBlock("div",$6,[t.customIconData[i.unref(me)(I,l)][t.customIconFields.type]==="img"?(i.openBlock(),i.createElementBlock("img",{key:0,src:t.customIconData[i.unref(me)(I,l)][t.customIconFields.icon],alt:"",class:"file-img-icon"},null,8,H6)):(i.openBlock(),i.createElementBlock("span",{key:1,class:i.normalizeClass([t.customIconData[i.unref(me)(I,l)][t.customIconFields.icon],"file-icon-size"])},null,2))])):i.createCommentVNode("v-if",!0),i.createElementVNode("div",j6,[i.renderSlot(D.$slots,"fileIcon",{file:I},void 0,!0)]),i.createElementVNode("div",U6,[i.createElementVNode("p",W6,[i.createTextVNode(i.toDisplayString(I[l.name]||I.name)+" ",1),I.percentage&&I.percentage!==100?(i.openBlock(),i.createElementBlock("span",G6,"("+i.toDisplayString(I.percentage)+"%)",1)):i.createCommentVNode("v-if",!0)]),I.percentage===100?(i.openBlock(),i.createElementBlock("p",q6,i.toDisplayString(i.unref(qo)(I.size/1024/1024))+"MB ",1)):i.createCommentVNode("v-if",!0),I.percentage&&I.percentage!==100?(i.openBlock(),i.createBlock(i.unref(A.ElProgress),{key:1,"text-inside":"",percentage:I.percentage,color:"var(--el-color-primary)","striped-flow":"",striped:"","show-text":!1},null,8,["percentage"])):i.createCommentVNode("v-if",!0)])]),t.preview?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[t.preview||I.percentage===100?(i.openBlock(),i.createBlock(i.unref(A.ElIcon),{key:0,title:"预览",class:"primary"},{default:i.withCtx(()=>[i.createVNode(i.unref(Ir),{onClick:ee=>B(I)},null,8,["onClick"])]),_:2},1024)):i.createCommentVNode("v-if",!0),i.createVNode(i.unref(A.ElIcon),{title:"下载",class:"primary"},{default:i.withCtx(()=>[i.createVNode(i.unref(Vi),{onClick:ee=>S(I)},null,8,["onClick"])]),_:2},1024)],64)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[I.status==="success"?(i.openBlock(),i.createBlock(i.unref(A.ElIcon),{key:0,title:"删除",class:"error"},{default:i.withCtx(()=>[i.createVNode(i.unref(on),{onClick:ee=>w(I)},null,8,["onClick"])]),_:2},1024)):(i.openBlock(),i.createBlock(i.unref(A.ElIcon),{key:1,title:"取消上传"},{default:i.withCtx(()=>[i.createVNode(i.unref(xr),{onClick:ee=>w(I)},null,8,["onClick"])]),_:2},1024))],64))])]),default:i.withCtx(()=>[i.createElementVNode("div",L6,[i.createElementVNode("div",z6,[i.createVNode(i.unref(fe),{name:"iksvg_yidong",bg:"",size:40}),i.createElementVNode("span",null,i.toDisplayString(t.title),1)]),i.createVNode(i.unref(fe),{name:"iksvg_daoru",bg:"",size:40,padding:"8px"})])]),_:3},16,["file-list","accept","action","multiple","headers","limit"]))],64)),i.createVNode(Hs,{visible:m.value,"onUpdate:visible":O[2]||(O[2]=I=>m.value=I),file:c.value,fileType:c.value&&i.unref(me)(c.value,l),defaultFields:l},null,8,["visible","file","fileType"]),(L=c.value)!=null&&L.url&&p.value?(i.openBlock(),i.createBlock(V,{key:1,onClose:O[3]||(O[3]=I=>(c.value=null,p.value=!1)),ref_key:"previewImgRef",ref:d,"url-list":[(H=c.value)==null?void 0:H.url]},null,8,["url-list"])):i.createCommentVNode("v-if",!0)],64)}}}),X4="",J4="",Q6=oe(K(Y6,[["__scopeId","data-v-1a531f1e"]])),Z6={},K6={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"},X6=[i.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),i.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),i.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),i.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),i.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),i.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),i.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),i.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 J6(t,e){return i.openBlock(),i.createElementBlock("svg",K6,X6)}const e1=K(Z6,[["render",J6]]),Ws=t=>(i.pushScopeId("data-v-b6b97c2a"),t=t(),i.popScopeId(),t),t1={key:1,class:"upload-btn"},n1={class:"tip"},i1={class:"loading-statu"},o1={class:"operate-btn"},r1={key:0},l1={class:"el-upload-list el-upload-list--picture-card",style:{float:"left"}},a1=["onClick"],s1=Ws(()=>i.createElementVNode("span",{class:"error"},"上传错误",-1)),c1=Ws(()=>i.createElementVNode("p",null,"点击重新上传",-1)),d1=["src"],u1={class:"demo-image__preview"},f1=i.defineComponent({__name:"index",props:{title:{type:String,default:"上传图片"},loadUrl:{type:String,default:""},action:{type:String,default:""},limit:{type:Number,default:5},size:{type:Number,default:50},accept:{type:String,default:"image/*"},fit:{type:String,default:"contain"},preview:{type:Boolean,default:!1},multiple:{type:Boolean,default:!0},tip:{type:Boolean,default:!1},tipText:{type:String,default:""},modelValue:{type:Array,default:()=>[]}},emits:["delete","success"],setup(t,{emit:e}){const n=t;i.watch(()=>n.modelValue,x=>{a.value=x.map(w=>{var N;return{...w,__url:(N=w.url)!=null&&N.startsWith("http")?w.url:`${n.loadUrl}${w.url}`}})},{deep:!0});const o=e,r=i.computed(()=>n.size),l=i.ref(null),a=i.ref(n.modelValue.map(x=>{var w;return{...x,__url:(w=x.url)!=null&&w.startsWith("http")?x.url:`${n.loadUrl}${x.url}`}})),s=i.ref([]),d=i.ref(!1),f=i.ref(0),u=i.computed(()=>n.tipText||`最多可上传${n.limit}张图片, 每张图片不能超过${n.size}MB`),m=(x,w)=>{a.value=z._.cloneDeep(w.map(N=>{var D,O;return{...N,__url:(D=N.url)!=null&&D.startsWith("http")||(O=N.url)!=null&&O.startsWith("blob:")?N.url:`${n.loadUrl}${N.url}`}})),console.log("fileList.value: ",a.value)},p=x=>!(!(x.type==="image/jpeg"||x.type==="image/png")||!(x.size/1024/1024<r.value)),c=()=>!1,_=(x,w)=>{var N,D;x.status="ready",w!==void 0&&s.value.splice(w,1),(N=l.value)==null||N.handleStart(x.raw),(D=l.value)==null||D.submit()},g=(x,w)=>{var V,L;const N=a.value.length,D=n.limit-N;let O=0;for(;O<D&&O<x.length;)(V=l.value)==null||V.handleStart(x[O]),(L=l.value)==null||L.submit(),O++},h=(x,w,N)=>{o("success",x,w,N)},b=(x,w,N)=>{s.value.push({...w,__url:w.url})},y=x=>{d.value=!0,f.value=a.value.findIndex(w=>w.url===x.url)},C=x=>{z.ikFile.downloadByOnlineUrl(x.__url||x.url,x.name)},k=x=>{var w;(w=l.value)==null||w.abort(x)},B=x=>{var w;x.status!=="success"&&k(x),(w=l.value)==null||w.handleRemove(x),a.value=a.value.filter(N=>N.uid!==x.uid),o("delete",x)},S=(x,w)=>{s.value.splice(w,1)};return(x,w)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createVNode(i.unref(A.ElUpload),{class:i.normalizeClass(["ik-image-upload",{preview:t.preview}]),ref_key:"refUpload",ref:l,"list-type":"picture-card",accept:t.accept,action:t.action,"file-list":a.value,"onUpdate:fileList":w[0]||(w[0]=N=>a.value=N),multiple:t.multiple,limit:t.limit,"on-change":m,"before-upload":p,"before-remove":c,"on-exceed":g,"on-success":h,"on-error":b,drag:""},i.createSlots({trigger:i.withCtx(()=>[x.$slots.trigger?i.renderSlot(x.$slots,"trigger",{key:0},void 0,!0):(i.openBlock(),i.createElementBlock("div",t1,[i.createVNode(i.unref(A.ElIcon),null,{default:i.withCtx(()=>[i.createVNode(i.unref(zd))]),_:1}),i.createElementVNode("span",null,i.toDisplayString(t.title),1)]))]),file:i.withCtx(({file:N})=>[i.createElementVNode("div",{class:i.normalizeClass(["load-list",{loading:N.status==="uploading"}]),"element-loading-background":"var(--ik-upload-bg)"},[i.withDirectives(i.createElementVNode("div",i1,[i.createVNode(e1),i.createTextVNode(" 上传"+i.toDisplayString(N.percentage)+"% ",1)],512),[[i.vShow,N.status==="uploading"]]),i.createCommentVNode(` <img :src="file.url" alt="" :style="{ 'object-fit': fit }" /> `),i.createVNode(i.unref(A.ElImage),{style:{width:"100%",height:"100%"},src:N.__url||N.url,"zoom-rate":1.2,"initial-index":0,fit:"contain"},null,8,["src"]),i.createElementVNode("span",o1,[i.createElementVNode("span",null,[i.createVNode(i.unref(A.ElIcon),{onClick:D=>y(N)},{default:i.withCtx(()=>[i.createVNode(i.unref(eu))]),_:2},1032,["onClick"])]),i.createElementVNode("span",null,[i.createVNode(i.unref(A.ElIcon),{onClick:D=>C(N)},{default:i.withCtx(()=>[i.createVNode(i.unref(Vi))]),_:2},1032,["onClick"])]),t.preview?i.createCommentVNode("v-if",!0):(i.openBlock(),i.createElementBlock("span",r1,[i.createVNode(i.unref(A.ElIcon),{onClick:D=>B(N)},{default:i.withCtx(()=>[i.createVNode(i.unref(on))]),_:2},1032,["onClick"])]))])],2)]),default:i.withCtx(()=>[i.createElementVNode("ul",l1,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.value,(N,D)=>(i.openBlock(),i.createElementBlock("li",{class:"el-upload-list__item",key:N.uid},[i.createElementVNode("span",null,[i.createVNode(i.unref(A.ElIcon),{onClick:O=>S(N,D)},{default:i.withCtx(()=>[i.createVNode(i.unref(Tr))]),_:2},1032,["onClick"])]),i.createElementVNode("div",{class:i.normalizeClass(["load-list",{loading:N.status==="uploading",fail:N.status==="fail"}]),"element-loading-background":"var(--ik-upload-bg)"},[i.withDirectives(i.createElementVNode("div",{class:"loading-statu",onClick:O=>_(N,D)},[i.createVNode(i.unref(A.ElIcon),{size:24},{default:i.withCtx(()=>[i.createVNode(i.unref(Ri))]),_:1}),s1,c1],8,a1),[[i.vShow,N.status==="fail"]]),i.createElementVNode("img",{src:N.__url,alt:"",style:i.normalizeStyle({"object-fit":t.fit})},null,12,d1)],2)]))),128))])]),_:2},[t.tip?{name:"tip",fn:i.withCtx(()=>[i.createElementVNode("span",n1,i.toDisplayString(u.value),1)]),key:"0"}:void 0]),1032,["class","accept","action","file-list","multiple","limit"]),i.createCommentVNode(" 文件预览 "),i.createElementVNode("div",u1,[d.value?(i.openBlock(),i.createBlock(i.unref(A.ElImageViewer),{key:0,"hide-on-click-modal":"",onClose:w[1]||(w[1]=()=>{d.value=!1}),"url-list":a.value.map(N=>N.__url),"initial-index":f.value},null,8,["url-list","initial-index"])):i.createCommentVNode("v-if",!0)])],64))}}),cw="",p1=oe(K(f1,[["__scopeId","data-v-b6b97c2a"]])),h1=["src"],m1={name:"IkPrintConfig"},g1=i.defineComponent({...m1,props:{id:{},srcPrefix:{default:""},token:{}},emits:["created"],setup(t,{emit:e}){const n=t,o=e,r=i.computed(()=>!!n.id),l=i.reactive({currentId:n.id,loading:!0,src:""}),a=async()=>{fetch(`${n.srcPrefix??""}/jmreport/save`,{method:"POST",body:JSON.stringify({}),headers:{"Content-Type":"application/json",Authorization:n.token??""}}).then(d=>d.json()).then(({code:d,result:f})=>{if(d===200){const u=f.id;l.currentId=u,l.src=`${n.srcPrefix??""}/jmreport/index/${l.currentId}?token=${n.token}&menuType=printinfo`,o("created",l.currentId)}}).catch(d=>{console.error(d)})},s=()=>{if(!r.value){a();return}l.src=`${n.srcPrefix??""}/jmreport/index/${l.currentId}?token=${n.token}`};return i.onMounted(()=>{s()}),(d,f)=>l.src?(i.openBlock(),i.createElementBlock("iframe",{key:0,width:"100%",height:"100%",src:l.src,frameborder:"0"},null,8,h1)):i.createCommentVNode("v-if",!0)}}),_1=oe(g1),y1=["src"],b1={name:"IkPrintView"},E1=i.defineComponent({...b1,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(t,{emit:e}){const n=t,o=e,r=i.computed({get:()=>n.modelValue,set:s=>{o("update:modelValue",s)}}),l=i.reactive({src:"",showIframe:!1}),a=()=>{l.showIframe=!1,l.src=`${n.srcPrefix}/jmreport/view/${n.templateId}?token=${n.token??""}&${n.idKey}=${n.dataId}`,setTimeout(()=>{l.showIframe=!0},300)};return i.watch(()=>r.value,s=>{s&&a()}),i.onMounted(()=>{r.value&&a()}),(s,d)=>{const f=i.resolveComponent("el-dialog");return i.openBlock(),i.createBlock(f,{modelValue:r.value,"onUpdate:modelValue":d[0]||(d[0]=u=>r.value=u),fullscreen:"",title:"预览"},{default:i.withCtx(()=>[i.createElementVNode("div",{style:i.normalizeStyle({width:n.width,height:n.height})},[l.showIframe?(i.openBlock(),i.createElementBlock("iframe",{key:0,width:"100%",height:"100%",src:l.src,frameborder:"0"},null,8,y1)):i.createCommentVNode("v-if",!0)],4)]),_:1},8,["modelValue"])}}}),w1=oe(E1),C1={class:"ik-full-calendar"},k1=["onClick"],v1={key:0,class:"event-title allday"},S1={key:0,class:"event-title-time"},A1={key:1,class:"event-title no-allday"},D1={class:"event-title-time"},x1={class:"event-title-text"},N1={name:"IkFullCalendar"},T1=i.defineComponent({...N1,props:{options:{default:{}},removable:{type:Boolean,default:!0},modelValue:{default:[]},tooltipFieldName:{default:"remark"}},emits:["added","deleted","update:modelValue","eventClick","deleteClick","dateSelect"],setup(t,{expose:e,emit:n}){const o=t,r=i.computed({get:()=>o.modelValue,set:y=>l("update:modelValue",y)}),l=n,a=i.ref(null),s=y=>{},d=i.ref("dayGridMonth"),f=y=>{l("dateSelect",y)},u=y=>{l("eventClick",y)},m=y=>{l("deleteClick",y)},p=()=>({locale:Mr,plugins:[ks,zs,Vs],headerToolbar:{left:"dayGridMonth,timeGridWeek,timeGridDay prev,today,next",center:"title",right:""},firstDay:1,initialView:"dayGridMonth",weekends:!0,editable:!0,selectable:!0,selectMirror:!0,dateClick:s,select:f,...o.options,events:r.value}),c=i.reactive({timeType:"month",options:p()}),_=i.ref(null),g=()=>{var y;c.options=p(),(y=a.value)==null||y.buildOptions(c.options)};e({...{prev:()=>{var y;(y=_.value)==null||y.prev()},next:()=>{var y;(y=_.value)==null||y.next()},today:()=>{var y;(y=_.value)==null||y.today()},changeView:y=>{var C;(C=_.value)==null||C.changeView(y),d.value=y},getDate:()=>{var y;return(y=_.value)==null?void 0:y.getDate()},getView:()=>{var y;return(y=_.value)==null?void 0:y.view},unselect:()=>{var y;return(y=_.value)==null?void 0:y.unselect()}}}),i.watch(()=>r.value,()=>{g()});const b=()=>{var y;_.value=(y=a.value)==null?void 0:y.getApi()};return i.onMounted(()=>{b()}),(y,C)=>{const k=i.resolveComponent("el-tooltip"),B=i.resolveComponent("el-icon");return i.openBlock(),i.createElementBlock("div",C1,[i.createVNode(i.unref(ps),{ref_key:"_ref",ref:a,options:c.options,style:{height:"100%"}},{eventContent:i.withCtx(S=>[i.createElementVNode("div",{class:"title-line",onClick:x=>u(S)},[i.createVNode(k,null,{content:i.withCtx(()=>{var x,w;return[i.createCommentVNode(" {{arg}} "),i.createTextVNode(" "+i.toDisplayString((w=(x=S.event)==null?void 0:x.extendedProps)==null?void 0:w[o.tooltipFieldName]),1)]}),default:i.withCtx(()=>[S.event.allDay?(i.openBlock(),i.createElementBlock("span",v1,[d.value==="dayGridMonth"?(i.openBlock(),i.createElementBlock("span",S1,i.toDisplayString("(全天)"))):i.createCommentVNode("v-if",!0),i.createElementVNode("span",null,i.toDisplayString(S.event.title),1)])):(i.openBlock(),i.createElementBlock("span",A1,[i.createElementVNode("span",D1,i.toDisplayString(i.unref(z.ikDate).toDateTime(S.event.startStr,"HH:mm")),1),i.createElementVNode("span",x1,i.toDisplayString(S.event.title),1)]))]),_:2},1024),o.removable?(i.openBlock(),i.createBlock(B,{key:0,size:16,onClick:i.withModifiers(x=>m(S),["stop"])},{default:i.withCtx(()=>[i.createVNode(i.unref(Vr))]),_:2},1032,["onClick"])):i.createCommentVNode("v-if",!0)],8,k1)]),_:1},8,["options"])])}}}),uw="",V1=K(T1,[["__scopeId","data-v-f0925ff8"]]);class R1{constructor(){Pt(this,"id",new Date().getTime());Pt(this,"title","");Pt(this,"start","");Pt(this,"end","");Pt(this,"allDay",!1);Pt(this,"extendedProps",{})}}const Gs=oe(V1),I1={class:"inline-block ik-svg-icon ik-icon line-height-[0] inline-flex justify-center"},B1={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},O1=["xlink:href"],M1=["src"],L1={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},z1=["xlink:href"],P1=["src"],fe=oe(i.defineComponent({name:"IkSvgIcon",__name:"index",props:{name:{},flip:{},rotate:{},color:{},opacity:{default:.5},size:{default:""},bg:{type:Boolean,default:!1},showBg:{type:Boolean,default:!1},padding:{default:"0"},warning:{type:Boolean},notip:{type:Boolean,default:!1},title:{}},setup(t){const e=t,n=i.computed(()=>{var r;return/^http?:\/\//.test(e.name)?"img":/i-[^:]+:[^:]+/.test(e.name)?"unocss":e.name.startsWith("iksig")?"iksig":(r=e.name)!=null&&r.includes(":")?"iconify":"svg"}),o=i.computed(()=>{const r=[];if(e.flip)switch(e.flip){case"horizontal":r.push("rotateY(180deg)");break;case"vertical":r.push("rotateX(180deg)");break;case"both":r.push("rotateX(180deg)"),r.push("rotateY(180deg)");break}return e.rotate&&r.push(`rotate(${e.rotate%360}deg)`),{...e.color&&{color:e.color},...e.size&&{fontSize:typeof e.size=="number"?`${e.size}px`:e.size},...r.length&&{transform:r.join(" ")},padding:e.padding,...e.color&&n.value!=="iksig"?{"--ik-color-icon-dark":e.color,"--ik-color-icon-light":z.ikColor.setOpacity(e.color,e.opacity||.4)}:{}}});return(r,l)=>{const a=i.resolveComponent("el-tooltip");return i.openBlock(),i.createElementBlock("span",I1,[r.notip||!r.title?(i.openBlock(),i.createElementBlock("i",{key:0,class:i.normalizeClass(["relative h-[1em] w-[1em] flex-inline items-center justify-center fill-current leading-[1em] transition",{[r.name]:n.value==="unocss","show-bg":r.showBg||r.bg,default:r.size==="default",small:r.size==="small",big:r.size==="big",warning:r.warning}]),style:i.normalizeStyle(o.value)},[n.value==="iksig"?(i.openBlock(),i.createElementBlock("i",{key:0,class:i.normalizeClass(`iksig ${r.name}`),style:i.normalizeStyle(o.value)},null,6)):n.value==="svg"?(i.openBlock(),i.createElementBlock("svg",B1,[i.createElementVNode("use",{"xlink:href":`#${r.name}`},null,8,O1)])):n.value==="img"?(i.openBlock(),i.createElementBlock("img",{key:2,src:r.name,class:"h-[1em] w-[1em]"},null,8,M1)):i.createCommentVNode("v-if",!0)],6)):(i.openBlock(),i.createBlock(a,{key:1,content:r.title},{default:i.withCtx(()=>[i.createElementVNode("i",{class:i.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] flex-inline items-center justify-center fill-current leading-[1em] transition",{[r.name]:n.value==="unocss","show-bg":r.showBg||r.bg,default:r.size==="default",small:r.size==="small",big:r.size==="big",warning:r.warning}]),style:i.normalizeStyle(o.value)},[n.value==="iksig"?(i.openBlock(),i.createElementBlock("i",{key:0,class:i.normalizeClass(`iksig ${r.name}`),style:i.normalizeStyle(o.value)},null,6)):n.value==="svg"?(i.openBlock(),i.createElementBlock("svg",L1,[i.createElementVNode("use",{"xlink:href":`#${r.name}`},null,8,z1)])):n.value==="img"?(i.openBlock(),i.createElementBlock("img",{key:2,src:r.name,class:"h-[1em] w-[1em]"},null,8,P1)):i.createCommentVNode("v-if",!0)],6)]),_:1},8,["content"]))])}}})),Yo=t=>(i.pushScopeId("data-v-e308f501"),t=t(),i.popScopeId(),t),F1={class:"ik-schedule"},$1={class:"ik-schedule__left"},H1={class:"ik-schedule__header"},j1={class:"ik-schedule__title"},U1=Yo(()=>i.createElementVNode("div",{class:"ik-schedule__header-right"},null,-1)),W1={class:"ik-schedule__body"},G1={style:{"font-size":"18px"}},q1={key:0},Y1={style:{width:"90%",display:"flex","align-items":"center","justify-content":"space-between"}},Q1={key:0,style:{"margin-left":"2%"}},Z1=Yo(()=>i.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),K1={key:1},X1=Yo(()=>i.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),J1={class:"dialog-footer"},ey={name:"IkSchedule"},ty=i.defineComponent({...ey,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(t,{expose:e,emit:n}){var x;const o=t,r=n,l=!!i.useSlots().form,a=i.computed({get:()=>o.modelValue,set:w=>{r("update:modelValue",w)}}),s=i.computed(()=>({...o.options,headerToolbar:!1})),d=i.reactive({currentView:(x=o.options)==null?void 0:x.initialView,viewTitle:"",rightLabel:"今日",timeType:"month",currentDate:null}),f=i.ref(null),u=w=>{var N;(N=f.value)==null||N.changeView(w),d.currentView=w,m()},m=()=>{var N;const w=(N=f.value)==null?void 0:N.getView();d.viewTitle=w==null?void 0:w.title},p=()=>{var w;(w=f.value)==null||w.prev(),m()},c=()=>{var w;(w=f.value)==null||w.next(),m()},_=()=>{var w;(w=f.value)==null||w.today(),m()},g=w=>d.currentView===w,h=i.ref(null),b={createDefaultForm:()=>({title:"",allDay:!1,type:1,startDate:"",endDate:"",startTime:"",endTime:"",location:"",remark:""}),close:()=>{C.value=!1},customSubmit:w=>{var D,O;let N={...w,id:void 0,allDay:y.form.allDay,start:(D=y.selectInfo)==null?void 0:D.startStr,end:(O=y.selectInfo)==null?void 0:O.endStr};b.operation(N),b.close()},operation:w=>{var N;y.operation==="add"?r("submitAdd",w):(w.id=(N=y.editEvent)==null?void 0:N.id,r("submitUpdate",w))},submit:async()=>{var N,D;if(l){r("submit");return}if(!y.form.title){A.ElMessage.info("标题不能为空");return}if(!y.form.allDay&&(!y.form.startTime||!y.form.endTime)){A.ElMessage.info("时间不能为空");return}let w={id:void 0,title:y.form.title,allDay:y.form.allDay,start:(N=y.selectInfo)==null?void 0:N.startStr,end:(D=y.selectInfo)==null?void 0:D.endStr,extendedProps:{...y.form}};if(w.allDay)w.start=z.ikDate.toDate(y.form.startDate),w.end=z.ikDate.toDate(y.form.endDate);else{const O=z.ikDate.toDate(y.form.startDate),V=z.ikDate.toDateTime(y.form.startTime).substring(10),L=z.ikDate.toDateTime(y.form.endTime).substring(10);w.start=`${O}${V}`,w.end=`${O}${L}`,w.extendedProps.startTime=w.start,w.extendedProps.endTime=w.end}b.operation(w),b.close()},reset:()=>{var w;y.form=b.createDefaultForm(),(w=h.value)==null||w.clearValidate()},edit:()=>{y.editable=!0,y.title="编辑日程"},cancelEdit:()=>{y.editable=!1,y.title="日程信息"},del:()=>{S(y.clickInfo)}},y=i.reactive({operation:"update",selectInfo:{},editEvent:void 0,title:"",visible:!1,allDay:!1,form:b.createDefaultForm(),editable:!1,clickInfo:null}),C=i.computed({get:()=>y.visible,set:w=>{y.visible=w}}),k=w=>{var N;if(y.form.allDay=w.allDay,y.selectInfo=w,b.reset(),w.view.type=="dayGridMonth"){let D=w.end.getTime()-864e5;d.timeType="month",y.form.startDate=z.ikDate.toYMD(w.start),y.form.endDate=z.ikDate.toYMD(new Date(D)),y.form.allDay=!0}else w.view.type=="timeGridWeek"?d.timeType="week":w.view.type=="timeGridDay"&&(d.timeType="day"),y.form.startDate=z.ikDate.toYMD(w.start),y.form.endDate=z.ikDate.toYMD(w.start),y.form.startTime=z.ikDate.toDateTime(w.start),y.form.endTime=z.ikDate.toDateTime(w.end);(N=f.value)==null||N.unselect(),i.nextTick(()=>{y.title="新建日程",y.operation="add",y.editable=!0,C.value=!0,r("editOpen",JSON.parse(JSON.stringify(y)))})},B=w=>{y.title="日程信息",y.operation="update",y.clickInfo=w,y.editEvent=w.event;debugger;y.editEvent.allDay?(y.form.startDate=y.editEvent.startStr,y.form.endDate=y.editEvent.startStr):(y.form.startDate=y.editEvent.startStr,y.form.startTime=y.editEvent.start,y.form.endTime=y.editEvent.end),y.form.title=y.editEvent.title,y.form.allDay=y.editEvent.allDay,gd.copyValue(y.form,y.editEvent.extendedProps),b.cancelEdit(),C.value=!0,r("editOpen",JSON.parse(JSON.stringify(y)))},S=w=>{A.ElMessageBox.confirm(`你确定删除事件 ${w.event.title} ?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{b.close(),r("submitDelete",w.event.id)})};return e({customSubmit:w=>b.customSubmit(w)}),i.onMounted(()=>{m()}),(w,N)=>{const D=i.resolveComponent("el-button"),O=i.resolveComponent("el-button-group"),V=i.resolveComponent("el-icon"),L=i.resolveComponent("el-space"),H=i.resolveComponent("el-input"),I=i.resolveComponent("el-form-item"),ee=i.resolveComponent("el-date-picker"),ke=i.resolveComponent("el-time-picker"),Ot=i.resolveComponent("el-checkbox"),Nn=i.resolveComponent("el-form"),Mt=i.resolveComponent("el-dialog");return i.openBlock(),i.createElementBlock("div",F1,[i.createElementVNode("div",$1,[i.createElementVNode("div",H1,[i.createVNode(L,{style:{"flex-shrink":"0"},size:24},{default:i.withCtx(()=>[i.createVNode(O,null,{default:i.withCtx(()=>[i.createVNode(D,{onClick:N[0]||(N[0]=ce=>u("dayGridMonth")),type:g("dayGridMonth")?"primary":""},{default:i.withCtx(()=>[i.createTextVNode("月")]),_:1},8,["type"]),i.createVNode(D,{onClick:N[1]||(N[1]=ce=>u("timeGridWeek")),type:g("timeGridWeek")?"primary":""},{default:i.withCtx(()=>[i.createTextVNode("周")]),_:1},8,["type"]),i.createVNode(D,{onClick:N[2]||(N[2]=ce=>u("timeGridDay")),type:g("timeGridDay")?"primary":""},{default:i.withCtx(()=>[i.createTextVNode("日")]),_:1},8,["type"])]),_:1}),i.createElementVNode("span",j1,i.toDisplayString(d.viewTitle),1),i.createVNode(O,{style:{"flex-shrink":"0"}},{default:i.withCtx(()=>[i.createVNode(D,{onClick:p},{default:i.withCtx(()=>[i.createVNode(V,null,{default:i.withCtx(()=>[i.createVNode(i.unref(Sr))]),_:1})]),_:1}),i.createVNode(D,{onClick:_},{default:i.withCtx(()=>[i.createTextVNode("今天")]),_:1}),i.createVNode(D,{onClick:c},{default:i.withCtx(()=>[i.createVNode(V,null,{default:i.withCtx(()=>[i.createVNode(i.unref(Ar))]),_:1})]),_:1})]),_:1})]),_:1}),U1]),i.createElementVNode("div",W1,[i.createVNode(i.unref(Gs),{removable:w.removable,onDateSelect:k,onDeleteClick:S,onEventClick:B,ref_key:"_refCalendar",ref:f,options:s.value,modelValue:a.value,"onUpdate:modelValue":N[3]||(N[3]=ce=>a.value=ce)},null,8,["removable","options","modelValue"])])]),i.createCommentVNode(" 新建/修改对话框 "),i.createVNode(Mt,{width:"700px",modelValue:C.value,"onUpdate:modelValue":N[11]||(N[11]=ce=>C.value=ce)},{header:i.withCtx(()=>[i.createElementVNode("div",null,[i.createElementVNode("span",G1,i.toDisplayString(y.title),1),y.operation==="update"?(i.openBlock(),i.createElementBlock("span",q1,[y.editable?(i.openBlock(),i.createBlock(i.unref(fe),{key:1,style:{"margin-left":"4px"},name:"iksvg_qiehuan-daohang",onClick:b.cancelEdit},null,8,["onClick"])):(i.openBlock(),i.createBlock(i.unref(fe),{key:0,style:{"margin-left":"4px"},name:"iksvg_xiugai",onClick:b.edit},null,8,["onClick"]))])):i.createCommentVNode("v-if",!0)])]),footer:i.withCtx(()=>[i.createElementVNode("span",J1,[i.renderSlot(w.$slots,"form-footer",{},()=>[i.createElementVNode("span",null,[i.createVNode(D,{onClick:b.close},{default:i.withCtx(()=>[i.createTextVNode("取消")]),_:1},8,["onClick"]),i.createVNode(D,{onClick:b.del},{default:i.withCtx(()=>[i.createTextVNode("删除")]),_:1},8,["onClick"]),i.createVNode(D,{type:"primary",onClick:b.submit},{default:i.withCtx(()=>[i.createTextVNode("确定")]),_:1},8,["onClick"])])],!0)])]),default:i.withCtx(()=>[i.renderSlot(w.$slots,"form",{},()=>[i.createVNode(Nn,{ref_key:"_editFormRef",ref:h,model:y.form,disabled:!y.editable},{default:i.withCtx(()=>[i.createVNode(I,null,{default:i.withCtx(()=>[i.createVNode(V,{class:"icon"},{default:i.withCtx(()=>[i.createVNode(i.unref(Dr))]),_:1}),i.createVNode(H,{modelValue:y.form.title,"onUpdate:modelValue":N[4]||(N[4]=ce=>y.form.title=ce),placeholder:"请输入标题",style:{width:"90%"},clearable:""},null,8,["modelValue"])]),_:1}),i.createVNode(I,null,{default:i.withCtx(()=>[i.createVNode(V,{class:"icon"},{default:i.withCtx(()=>[i.createVNode(i.unref(Nr))]),_:1}),i.createElementVNode("div",Y1,[i.createVNode(ee,{disabled:"",modelValue:y.form.startDate,"onUpdate:modelValue":N[5]||(N[5]=ce=>y.form.startDate=ce),type:"date",placeholder:"开始日期",style:i.normalizeStyle({width:y.form.allDay?"45%":"90%"})},null,8,["modelValue","style"]),y.form.allDay?(i.openBlock(),i.createElementBlock("div",K1,[X1,i.createVNode(ee,{disabled:"",modelValue:y.form.endDate,"onUpdate:modelValue":N[8]||(N[8]=ce=>y.form.endDate=ce),type:"date",placeholder:"结束日期",style:{width:"90%"}},null,8,["modelValue"])])):(i.openBlock(),i.createElementBlock("div",Q1,[i.createVNode(ke,{modelValue:y.form.startTime,"onUpdate:modelValue":N[6]||(N[6]=ce=>y.form.startTime=ce),type:"datetime",placeholder:"开始时间",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"]),Z1,i.createVNode(ke,{modelValue:y.form.endTime,"onUpdate:modelValue":N[7]||(N[7]=ce=>y.form.endTime=ce),type:"datetime",placeholder:"结束时间",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"])])),i.createVNode(Ot,{modelValue:y.form.allDay,"onUpdate:modelValue":N[9]||(N[9]=ce=>y.form.allDay=ce),label:"全天",style:{"margin-left":"2%"}},null,8,["modelValue"])])]),_:1}),i.createVNode(I,null,{default:i.withCtx(()=>[i.createVNode(V,{class:"icon"},{default:i.withCtx(()=>[i.createVNode(i.unref(Rd))]),_:1}),i.createVNode(H,{type:"textarea",modelValue:y.form.remark,"onUpdate:modelValue":N[10]||(N[10]=ce=>y.form.remark=ce),placeholder:"描述",style:{width:"90%"},clearable:""},null,8,["modelValue"])]),_:1})]),_:1},8,["model","disabled"])],!0)]),_:3},8,["modelValue"])])}}}),pw="",ny=oe(K(ty,[["__scopeId","data-v-e308f501"]])),iy={key:0,class:"ik-tabs-split overflow-overlay gl-padding"},oy=i.defineComponent({__name:"IkPageTabs",props:i.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:i.mergeModels(["tabClick","search"],["update:modelValue"]),setup(t,{emit:e}){const n=t,o=e,r=i.useModel(t,"modelValue"),l=i.ref(new Map);for(const s of n.tabs)l.value.set(s.id,n.lazyTab?s.id!==r.value:!1);const a=s=>{r.value=s.paneName,l.value.get(s.paneName)||o("tabClick",s.paneName,s),l.value.set(s.paneName,!1)};return(s,d)=>{const f=i.resolveComponent("el-tab-pane"),u=i.resolveComponent("el-tabs");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createCommentVNode(' <div class="flex-1 contents"> '),i.createVNode(u,{modelValue:r.value,"onUpdate:modelValue":d[0]||(d[0]=m=>r.value=m),class:i.normalizeClass(["ik-tabs",{"is-default":s.$slots.default,"split gl-padding gl-container":t.split}]),onTabClick:a},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.tabs,m=>(i.openBlock(),i.createBlock(f,{key:m.id,disabled:m==null?void 0:m.disabled,name:m.id},{label:i.withCtx(()=>[i.createElementVNode("span",null,i.toDisplayString(m.label),1)]),default:i.withCtx(()=>[!s.$slots.default&&!l.value.get(m.id)&&!t.split?i.renderSlot(s.$slots,m.id,{key:0},void 0,!0):i.createCommentVNode("v-if",!0)]),_:2},1032,["disabled","name"]))),128)),i.createCommentVNode(" 当存在默认slot且需要展示默认slot时 "),s.$slots.default&&t.defaultSlot&&!t.split?i.renderSlot(s.$slots,"default",{key:0},void 0,!0):i.createCommentVNode("v-if",!0)]),_:3},8,["modelValue","class"]),t.split?(i.openBlock(),i.createElementBlock("div",iy,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.tabs,m=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[!s.$slots.default&&!l.value.get(m.id)?i.renderSlot(s.$slots,m.id,{key:0},void 0,!0):i.createCommentVNode("v-if",!0)],64))),256)),s.$slots.default&&t.defaultSlot?i.renderSlot(s.$slots,"default",{key:0},void 0,!0):i.createCommentVNode("v-if",!0)])):i.createCommentVNode("v-if",!0),i.createCommentVNode(" </div> ")],64)}}}),mw="",ry=oe(K(oy,[["__scopeId","data-v-e282a7f2"]]));var qe=(t=>(t.input="input",t.area="area",t.number="number",t.select="select",t.date="date",t.datetime="datetime",t.checkbox="checkbox",t.radio="radio",t.treeselect="treeselect",t.choosePerson="choosePerson",t))(qe||{}),Dt=(t=>(t.year="year",t.month="month",t.date="date",t.dates="dates",t.datetime="datetime",t.week="week",t.datetimerange="datetimerange",t.daterange="daterange",t.monthrange="monthrange",t))(Dt||{});function qs(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!i.isVNode(t)}const ly=i.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(t,{emit:e,expose:n}){const o=i.ref(),r={},l=i.ref({}),a=i.ref([]),s=i.ref({...l.value});i.watch(a,(R,Y)=>{const U=Y.filter($=>!R.includes($));if(U.length){let $=!1;U.forEach(G=>{s.value[G]!==void 0&&($=!0),s.value[G]=void 0}),$&&e("search",s.value)}});const d=()=>{a.value=[],t.list.forEach(R=>{var Y,U;l.value[R.key]=l.value[R.value],r[R.key]=r[R.value],a.value.push(R.key),(Y=s.value)[U=R.key]??(Y[U]=R.value||null)})};d(),i.watch(()=>t.list,()=>{d()});const f=i.computed(()=>a.value.map(R=>t.list.find(Y=>Y.key===R))),u=()=>{var R;s.value.page=1,(R=t.search)==null||R.call(t,s.value),e("search",s.value)};n({resetForm:()=>{var R,Y;(Y=(R=o.value)==null?void 0:R.resetFields)==null||Y.call(R),u()},reRequest:()=>{u()}});const c=()=>{var R;e("search",s.value),(R=t.search)==null||R.call(t,s.value)},_=R=>{R.key==="Enter"&&u()},g=()=>{var R;(R=o.value)==null||R.resetFields(),u()};t.immediate&&u();const h=({maxlength:R,minlength:Y,key:U,disabled:$,placeholder:G,formProp:le={},value:ae,label:te})=>i.createVNode(A.ElInput,i.mergeProps({modelValue:s.value[U],"onUpdate:modelValue":[ne=>s.value[U]=ne,ne=>s.value[U]=ne],clearable:!0,maxlength:R,minlength:Y,disabled:$,onBlur:()=>c()},le,{placeholder:(le==null?void 0:le.placeholder)||G||`请输入${te||""}`}),null),b=({key:R,placeholder:Y,max:U,min:$,disabled:G,precision:le,step:ae=1,label:te,formProp:ne={}})=>i.createVNode(A.ElInputNumber,i.mergeProps({modelValue:s.value[R],"onUpdate:modelValue":Qe=>s.value[R]=Qe,clearable:!0,max:U,min:$,disabled:G,precision:le,step:ae,onChange:()=>c()},ne,{placeholder:(ne==null?void 0:ne.placeholder)||Y||`请输入${te||""}`}),null),y=({key:R,placeholder:Y,disabled:U,options:$,label:G,multiple:le=!1,filterable:ae=!0,formProp:te={}})=>i.createVNode(A.ElSelect,i.mergeProps({modelValue:s.value[R],"onUpdate:modelValue":ne=>s.value[R]=ne,clearable:!0,disabled:U,multiple:le,filterable:ae,onChange:()=>c()},te,{placeholder:(te==null?void 0:te.placeholder)||Y||`请选择${G||""}`}),{default:()=>[$==null?void 0:$.map(ne=>i.createVNode(A.ElOption,{key:ne.value,label:ne.label,value:ne.value},null))]}),C=({key:R,disabled:Y,options:U,formProp:$={}})=>i.createVNode(A.ElRadioGroup,i.mergeProps({modelValue:s.value[R],"onUpdate:modelValue":G=>s.value[R]=G,disabled:Y,onChange:()=>c()},$),{default:()=>[U==null?void 0:U.map(G=>($==null?void 0:$.radioType)==="button"?i.createVNode(A.ElRadioButton,{key:G.value,label:G.value,name:G.label},null):i.createVNode(A.ElRadio,{key:G.value,label:G.value,name:G.label},null))]}),k=({key:R,disabled:Y,options:U,min:$,max:G,formProp:le={}})=>i.createVNode(A.ElCheckboxGroup,i.mergeProps({modelValue:s.value[R],"onUpdate:modelValue":ae=>s.value[R]=ae,disabled:Y,max:G,min:$,onChange:()=>c()},le),{default:()=>[U==null?void 0:U.map(ae=>i.createVNode(A.ElCheckbox,{key:ae.value,label:ae.label,value:ae.value},null))]}),B=({key:R,label:Y,formProp:U={},placeholder:$})=>i.createVNode(A.ElDatePicker,i.mergeProps({modelValue:s.value[R],"onUpdate:modelValue":G=>s.value[R]=G,onChange:()=>c()},U,{placeholder:(U==null?void 0:U.placeholder)||$||`请选择${Y}时间`}),null),S=({key:R,disabled:Y,editable:U=!0,startPlaceholder:$="开始日期",endplaceholder:G="结束日期",dateType:le=Dt.date,format:ae,placeholder:te="请选择日期",popperclass:ne,rangeSeparator:Qe="-",defaultValue:Lt,defaultTime:nn,valueFormat:Tn,disabledDate:zt=()=>!1,formProp:ht={}})=>{let De=ae;if(De)switch(le){case Dt.date:case Dt.dates:De="YYYY-MM-DD";break;case Dt.year:De="YYYY";break;case Dt.month:De="YYYY-MM";break;case Dt.week:De="YYYY-MM-DD";break;default:De=""}return i.createVNode(A.ElDatePicker,i.mergeProps({modelValue:s.value[R],"onUpdate:modelValue":mt=>s.value[R]=mt,onChange:()=>c(),disabled:Y,type:le,editable:U,startPlaceholder:$,endPlaceholder:G,rangeSeparator:Qe,format:De,popperClass:ne,defaultValue:Lt,defaultTime:nn,valueFormat:Tn,disabledDate:zt},ht,{placeholder:(ht==null?void 0:ht.placeholder)||te||"请选择日期"}),null)},x=({key:R,options:Y,multiple:U=!1,filterable:$=!0,nodeKey:G="id",props:le,highlightCurrent:ae=!0,defaultExpandAll:te=!1,expandOnClickNode:ne=!1,placeholder:Qe="全部",checkOnClickNode:Lt=!1,showCheckbox:nn=!1,checkStrictly:Tn=!0,defaultCheckedKeys:zt=[],currentNodeKey:ht="",accordion:De=!1,formProp:mt={},label:T})=>i.createVNode(A.ElTreeSelect,i.mergeProps({modelValue:s.value[R],"onUpdate:modelValue":M=>s.value[R]=M,data:Y,onChange:()=>c(),clearable:!0,multiple:U,props:le,placeholder:Qe,filterable:$,nodeKey:G,highlightCurrent:ae,defaultExpandAll:te,expandOnClickNode:ne,checkOnClickNode:Lt,showCheckbox:nn,checkStrictly:Tn,defaultCheckedKeys:zt,currentNodeKey:ht,accordion:De},mt,{placeholder:(mt==null?void 0:mt.placeholder)||Qe||`请选择${T||""}`}),null),w=({key:R,selectKey:Y,placeholder:U,disabled:$,options:G,multiple:le=!1,filterable:ae=!0,formProp:te={}})=>i.createVNode(A.ElInput,i.mergeProps({disabled:$,modelValue:s.value[R],"onUpdate:modelValue":ne=>s.value[R]=ne,onBlur:()=>c()},te,{placeholder:(te==null?void 0:te.placeholder)||U||"全部"}),{prepend:()=>i.createVNode(A.ElSelect,i.mergeProps({disabled:$,multiple:le,filterable:ae,modelValue:s.value[Y],"onUpdate:modelValue":ne=>s.value[Y]=ne,onChange:()=>c()},te),{default:()=>[G==null?void 0:G.map(ne=>i.createVNode(A.ElOption,{key:ne.value,label:ne.label,value:ne.value},null))]})}),N="",D="iking",O=i.ref(null),V=i.ref([]),L=i.ref(!1),H=i.ref(""),I=new Map,ee=R=>{L.value=!0,V.value=I.has(R)?I.get(R):s.value[R],H.value=R},ke=()=>{I.set(H.value,[]),H.value="",c()},Ot=R=>{var Y,U;s.value[H.value]=(Y=R.list.map($=>$.elementName))==null?void 0:Y.join(","),I.set(H.value,R.list),e("search",s.value),e("pickerChange",R),(U=t.search)==null||U.call(t,s.value)},Nn=({key:R,placeholder:Y,typeOption:U,_list:$,maxlength:G,minlength:le,disabled:ae,formProp:te})=>i.createVNode(A.ElInput,i.mergeProps({modelValue:s.value[R],"onUpdate:modelValue":ne=>s.value[R]=ne,clearable:!0,maxlength:G,minlength:le,disabled:ae},te,{onClick:()=>ee(R),onClear:()=>ke(),placeholder:(te==null?void 0:te.placeholder)||Y||`点击选择${label||"人员"}`}),null),Mt=R=>{switch(R.type){case"":case void 0:case qe.input:case"el-input":return h(R);case qe.number:case"el-input-number":return b(R);case qe.select:case"el-select":return y(R);case qe.checkbox:case"el-checkbox":return k(R);case qe.radio:case"el-radio-group":case"el-radio":return C(R);case qe.date:case"el-date-picker":return S(R);case"el-time-select":return B(R);case qe.treeselect:case"el-tree-select":return x(R);case qe.choosePerson:return Nn(R);case"select-input":return w(R);default:return i.createVNode(i.Fragment,null,null)}},ce=i.computed(()=>{var U;const R=[],Y=f.value.length-1;return(U=f.value)==null||U.forEach(($,G)=>{let le,ae;if(!$)return[];const te=$.col||1;R.push(i.createVNode(A.ElCol,{xl:{span:te*6},lg:{span:te*6},md:{span:te*12},sm:{span:te*24}},{default:()=>[G===Y?i.createVNode("div",{class:"last-form"},[i.createVNode(A.ElFormItem,{label:$.type==="select-input"?"":$.label,prop:$.key},qs(le=Mt($))?le:{default:()=>[le]}),i.createVNode(fe,{name:"icon-sousuo1",pop:!0,title:"搜索",size:"big","show-bg":!0,width:40,onClick:()=>c()},null),i.createVNode(fe,{name:"icon-zhongzhi",pop:!0,title:"重置并搜索",size:"big","show-bg":!0,width:40,onClick:()=>g()},null)]):i.createVNode(A.ElFormItem,{label:$.type==="select-input"?"":$.label,prop:$.key},qs(ae=Mt($))?ae:{default:()=>[ae]})]}))}),R});return()=>i.createVNode(i.Fragment,null,[i.createVNode(A.ElCard,{class:"gl-search-card",shadow:t.shadow},{default:()=>[i.createVNode(A.ElForm,{class:"auto-search-form",onKeyup:_,ref:o,model:s.value},{default:()=>[i.createVNode(A.ElRow,{gutter:16},{default:()=>[ce.value]})]})]}),i.createVNode(En,{ref:O.value,modelValue:V.value,"onUpdate:modelValue":R=>V.value=R,show:L.value,"onUpdate:show":R=>L.value=R,"append-to-body":!0,api:{methods:"post",url:`${N}/server/component/pick/mix`,headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:D}},tabs:["group","role","post"],chooseType:["user"],typeOption:{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},propOption:{name:"elementName",id:"elementId",type:"elementType"},onOk:R=>Ot(R)},null)])}}),ay={class:"header-left"},sy={class:"title"},cy={class:"flex items-center"},dy=i.defineComponent({__name:"IkPageHead",props:i.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(t){i.useCssVars(f=>({"59e2b6b4":d}));const e=t,n=i.useModel(t,"modelValue"),o=i.ref(e.defaultShow),r=()=>{o.value=!o.value},l=i.computed(()=>e.fields.filter(f=>!f.onlyForm)),a=i.computed(()=>{var f;return(f=e.fields)==null?void 0:f.filter(u=>u.search)}),s=i.computed(()=>a.value.length),d=`${e.headerHeight}px`;return(f,u)=>{const m=i.resolveComponent("el-card");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ik-page-header",{"show-search":o.value}])},[i.createElementVNode("div",{class:"header",style:i.normalizeStyle({borderColor:t.headerBorder?"var(--ik-border-color)":"transparent",marginBottom:t.headerBorder?"8px":"0"})},[i.createElementVNode("div",ay,[i.createCommentVNode(' 左侧标题、tab页或自定义内容 v-if="!$slots.headerLeft" '),i.createElementVNode("span",sy,i.toDisplayString(t.headerTitle),1),i.renderSlot(f.$slots,"headerLeft",{},void 0,!0)]),i.createCommentVNode(" 默认按钮 "),i.createElementVNode("div",cy,[i.createCommentVNode(" 右侧操作或自定义内容 "),i.renderSlot(f.$slots,"headerRight",{},void 0,!0),t.exportBtn?(i.openBlock(),i.createBlock(i.unref(fe),{key:0,name:"iksvg_xiazai",type:"primary",title:"导出","show-bg":"",size:"default"})):i.createCommentVNode("v-if",!0),s.value?(i.openBlock(),i.createBlock(i.unref(fe),{key:1,name:"iksvg_shaixuan1",size:"default",title:o.value?"收起筛选条件":"展开筛选条件","show-bg":"",onClick:r},null,8,["title"])):i.createCommentVNode("v-if",!0),t.refreshBtn?(i.openBlock(),i.createBlock(i.unref(fe),{key:2,name:"iksvg_zhongzhi1",title:"保留搜索条件刷新","show-bg":"",size:"default",onClick:t.search},null,8,["onClick"])):i.createCommentVNode("v-if",!0),i.createCommentVNode(` <IkSvgIcon\r
|
|
34
|
+
></i> `),(_=y[t.propsField.children])!=null&&_.length&&y.show?(r.openBlock(),r.createBlock(r.unref(pe),{key:1,class:"ikapprove",onClick:b=>g(y,m),name:"iksvg_shouqi"},null,8,["onClick"])):r.createCommentVNode("v-if",!0)],14,Es)]),r.createElementVNode("ul",{class:r.normalizeClass(d(m))},[r.createElementVNode("div",{id:`children${m}`},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(y[t.propsField.children],(b,C)=>(r.openBlock(),r.createElementBlock("li",{class:r.normalizeClass(f(m,C)),style:r.normalizeStyle(t.needClick?"cursor: pointer;":""),key:C,onClick:v=>u(b,m+1+"-"+(C+1))},r.toDisplayString(b.name),15,Cs))),128))],8,ks)],2)])}),128))]))}}),v6="",ws=ae(X(vs,[["__scopeId","data-v-240cff4f"]])),A6="",Dn=t=>(r.pushScopeId("data-v-41886e6b"),t=t(),r.popScopeId(),t),As={class:"approveProcess",id:"approveProcess"},Ss=["id"],Ds={class:"topBlock"},xs={class:"left"},Ns={class:"nodeBg"},Ts=["src"],Bs={class:"right"},Vs={class:"topInfo"},Rs={key:0},Is={key:0,class:"main-text"},Ms={class:"name"},Os={key:0},Ls={key:0},Fs={key:1},Hs=Dn(()=>r.createElementVNode("span",{class:"red",style:{margin:"0px 5px"}},"退回至",-1)),Ps={key:0},zs={key:0},$s={key:1},Us={key:1},js=Dn(()=>r.createElementVNode("div",{class:"main-text"},"抄送人员",-1)),Ws={class:"name"},Gs={key:0},Ys={style:{color:"#000"}},qs={class:"blue",style:{"margin-left":"5px","font-size":"12px"}},Qs={key:1},Zs={key:0,class:"blue",style:{"font-size":"12px"}},Xs={key:1},Ks={key:0,class:"blue",style:{"font-size":"12px"}},Js={key:1,class:"blue",style:{"font-size":"12px"}},ec={class:"time"},tc={key:0},nc={key:1},rc=["onClick"],lc=["onClick"],oc={key:0,class:"opinion"},ac={key:0},ic={key:1},sc=Dn(()=>r.createElementVNode("span",null,"添加审批人",-1)),cc={style:{color:"var(--el-text-color-primary)","margin-left":"8px"}},dc={key:1,class:"annex"},uc=["onClick"],fc={class:"text"},pc={class:"fileName"},hc={class:"size"},mc={key:2,class:"annexImage"},gc={key:3,class:"approveList"},yc={class:"nodeBg-list"},bc=["src"],_c={key:1,class:"ikapprove ikapprove-duihao2 green read"},Ec=["title"],kc={name:"IkingApprovalProcessDetail"},Cc=r.defineComponent({...kc,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:""}},emits:["preview"],setup(t,{emit:e}){const n=t,l=r.reactive({nodeType:{发起人节点:"1",审批节点:"2",办理节点:"3",抄送节点:"4",...n.defaultNodeType},statusOption:{发起:"1",等待:"2",同意:"3",拒绝:"4",转交:"5",加签:"6",退回:"7",撤销:"8",评论:"9",...n.defaultStatus},listData:[],defaultFile:{id:"id",nodeId:"nodeId",nodeType:"nodeType",nodeTypeName:"nodeTypeName",approveStatus:"approveStatus",approveStatusName:"approveStatusName",originator:"originator",operationTime:"operationTime",approveType:"approveType",approveTypeName:"approveTypeName",multiExecutorTypeName:"multiExecutorTypeName",approveOpinion:"approveOpinion",countersignPer:"countersignPer",backToRecordNodeName:"backToRecordNodeName",attachment:"attachment",attachmentParam:{id:"id",originName:"originName",url:"url",suffix:"suffix",size:"size"},attachmentImg:"attachmentImg",returnNode:"returnNode",returnNodeName:"returnNodeName",lineType:"lineType",allRead:"allRead",read:"read",approvePersonList:[{id:"id",name:"name",approveState:"approveState",approveTime:"approveTime",approveOpinion:"approveOpinion",userAvatar:"userAvatar",accomplish:"accomplish"}],...n.defaultFieldMap}});r.watch(()=>n.dataList,c=>{c&&(r.nextTick(()=>{l.listData=c}),setTimeout(()=>{n.returnNode.length&&o()},500))},{deep:!0}),r.onMounted(()=>{n.dataList.length&&(l.listData=n.dataList,setTimeout(()=>{n.returnNode.length&&o()},500))});const o=()=>{let c=null;if(n!=null&&n.returnNode)for(c of n==null?void 0:n.returnNode){if(isNaN(c[1]))return;let y=Array.from(new Array(c[1]+1).keys()).slice(c[0]);r.nextTick(()=>{a(y)})}},a=c=>{var v,I,N;let y=document.createElement("div"),m=document.getElementById("approveProcess"),p=0,_=(v=document.getElementById(`${c[0]}`))==null?void 0:v.offsetWidth,b=(I=document.getElementById(`${c[0]}`))==null?void 0:I.offsetLeft,C=(N=document.getElementById(`${c[0]}`))==null?void 0:N.offsetTop;c.forEach(x=>{let k=document.getElementById(`${x}`);p+=k.offsetHeight}),setTimeout(()=>{y.style.width=_+32+"px",y.style.height=p+"px",y.style.background="#f9f9f9",y.style.position="absolute",y.style.top=C-16+"px",y.style.left=b-16+"px",y.style.zIndex=-1,m==null||m.appendChild(y)})},i=(c,y)=>{var _;let m=(_=l.listData)==null?void 0:_.findIndex(b=>b.lineType=="dashed"),p="";switch(c){case l.statusOption.发起:p="ikapprove-duihao2 green";break;case l.statusOption.等待:p=m==y?"ikapprove-dengdai orange":"";break;case l.statusOption.同意:p="ikapprove-duihao2 green";break;case l.statusOption.拒绝:p="ikapprove-jujue red";break;case l.statusOption.转交:p="ikapprove-zhuanjiao blue";break;case l.statusOption.加签:p="ikapprove-tianjia blue";break;case l.statusOption.退回:p="ikapprove-s_fanhui2 red";break;case l.statusOption.评论:p="ikapprove-pinglun1 blue";break}return`ikapprove ${p}`},s=(c,y)=>{let m="";switch(c){case l.nodeType.发起人节点:m="ikapprove-ziyuan";break;case l.nodeType.审批节点:y&&y.length==1?m="ikapprove-ziyuan":m="ikapprove-shenpi";break;case l.nodeType.办理节点:m="ikapprove-bianji";break;case l.nodeType.抄送节点:m="ikapprove-chaosong";break;default:m="ikapprove-ziyuan"}return`ikapprove ${m}`},d=c=>{let y="";return c=="jpg"||c=="jpeg"||c=="png"?y="ikapprove-tupian":c=="doc"||c=="docx"?y="ikapprove-WORD":c=="xls"||c=="xlsx"?y="ikapprove-EXCEL":c=="ppt"||c=="pptx"?y="ikapprove-pptcopy":c=="pdf"?y="ikapprove-PDF":c=="rar"||c=="zip"?y="ikapprove-fujian":c=="txt"||c=="zip"?y="ikapprove-TXTCopy":c=="mp3"||c=="wma"||c=="m4a"?y="ikapprove-yinpinwenjian":(c=="avi"||c=="wmv"||c=="mp4"||c=="mov")&&(y="ikapprove-shipinwenjian"),`icon ikapprove ${y}`},f=e,u=c=>{f("preview",c),n.local||window.open(h(c[l.defaultFile.attachmentParam.url]))},g=(c,y)=>{c.show=!c.show;let m=document.getElementById(`${c[l.defaultFile.nodeId]}`),p=Array.from(m==null?void 0:m.getElementsByClassName("approveList"));for(let _ of p)_.style.display=y},h=c=>{let y="";return c.includes("http")||c.includes("https")?y=c:y=n.fileUrl+c,y};return(c,y)=>{const m=r.resolveComponent("el-image");return r.openBlock(),r.createElementBlock("div",As,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(l.listData,(p,_)=>{var b,C,v,I,N,x,k,D,S,M;return r.openBlock(),r.createElementBlock("div",{class:"approveBlock",id:p[l.defaultFile.nodeId],key:p[l.defaultFile.nodeId]},[r.createElementVNode("div",Ds,[r.createElementVNode("div",xs,[r.createElementVNode("span",Ns,[r.createCommentVNode(' 用户列表长度等于1, :src="formatUrl(it)"并且存在头像 '),((b=p[l.defaultFile.approvePersonList])==null?void 0:b.length)==1&&p[l.defaultFile.approvePersonList][0].userAvatar?(r.openBlock(),r.createElementBlock("img",{key:0,style:{width:"100%",height:"100%","border-radius":"50%"},src:h(p[l.defaultFile.approvePersonList][0].userAvatar),alt:""},null,8,Ts)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createCommentVNode(" 否则显示对应节点 "),r.createElementVNode("i",{class:r.normalizeClass(s(p[l.defaultFile.nodeType],p[l.defaultFile.approvePersonList]))},null,2)],2112)),r.createCommentVNode(" 审批状态图标 "),r.createElementVNode("i",{class:r.normalizeClass(i(p[l.defaultFile.approveStatus],_))},null,2)])]),r.createElementVNode("div",Bs,[r.createElementVNode("div",Vs,[r.createElementVNode("div",null,[r.createCommentVNode(" 不是抄送节点 "),p[l.defaultFile.nodeType]!=l.nodeType.抄送节点?(r.openBlock(),r.createElementBlock("div",Rs,[r.createCommentVNode(" 撤销,评论不显示节点名称 "),p[l.defaultFile.approveStatus]!=l.statusOption.撤销&&p[l.defaultFile.approveStatus]!=l.statusOption.评论?(r.openBlock(),r.createElementBlock("div",Is,r.toDisplayString(p[l.defaultFile.nodeTypeName]),1)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" 名字+审批状态 "),r.createElementVNode("div",Ms,[r.createCommentVNode(" 已审批节点文本 "),p[l.defaultFile.lineType]=="solid"?(r.openBlock(),r.createElementBlock("div",Os,[r.createElementVNode("span",{style:r.normalizeStyle({color:p[l.defaultFile.approveStatus]==l.statusOption.评论?"#000":""})},r.toDisplayString(p[l.defaultFile.originator]),5),r.createCommentVNode(" 发起,退回不显示状态 "),p[l.defaultFile.approveStatusName]&&p[l.defaultFile.approveStatus]!=l.statusOption.发起&&p[l.defaultFile.approveStatus]!=l.statusOption.退回?(r.openBlock(),r.createElementBlock("span",Ls,r.toDisplayString(p[l.defaultFile.approveStatus]==l.statusOption.评论?" 添加了评论":"("+p[l.defaultFile.approveStatusName]+")"),1)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" 退回状态显示 "),p[l.defaultFile.approveStatus]==l.statusOption.退回?(r.openBlock(),r.createElementBlock("span",Fs,[Hs,r.createTextVNode(r.toDisplayString(p[l.defaultFile.backToRecordNodeName]),1)])):r.createCommentVNode("v-if",!0)])):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createCommentVNode(" 待审批节点 "),r.createElementVNode("div",null,[((C=p[l.defaultFile.approvePersonList])==null?void 0:C.length)==1?(r.openBlock(),r.createElementBlock("span",Ps,[r.createTextVNode(r.toDisplayString(p[l.defaultFile.originator])+" ",1),p[l.defaultFile.approveStatus]==l.statusOption.等待?(r.openBlock(),r.createElementBlock("span",zs,r.toDisplayString(`(${p[l.defaultFile.approveStatusName]})`),1)):r.createCommentVNode("v-if",!0)])):(r.openBlock(),r.createElementBlock("span",$s,r.toDisplayString(((v=p[l.defaultFile.approvePersonList])==null?void 0:v.length)+"人"+p[l.defaultFile.approveTypeName]),1))])],2112))])])):(r.openBlock(),r.createElementBlock("div",Us,[js,r.createElementVNode("div",Ws,[r.createCommentVNode(" 抄送一人时 "),((I=p[l.defaultFile.approvePersonList])==null?void 0:I.length)==1?(r.openBlock(),r.createElementBlock("span",Gs,[r.createElementVNode("span",null,[r.createTextVNode("已抄送给 "),r.createElementVNode("span",Ys,r.toDisplayString(p[l.defaultFile.approvePersonList][0].userName),1)]),r.createElementVNode("span",qs,r.toDisplayString(p[l.defaultFile.approvePersonList][0].status==="END"?"已读":"未读"),1)])):r.createCommentVNode("v-if",!0),r.createCommentVNode(" 抄送多人时 "),((N=p[l.defaultFile.approvePersonList])==null?void 0:N.length)>1?(r.openBlock(),r.createElementBlock("span",Qs,[r.createTextVNode(r.toDisplayString(`已抄送${(x=p[l.defaultFile.approvePersonList])==null?void 0:x.length}人`)+" ",1),p[l.defaultFile.allRead]?(r.openBlock(),r.createElementBlock("span",Zs," 全部已读 ")):(r.openBlock(),r.createElementBlock("span",Xs,[p[l.defaultFile.read]?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createElementBlock("span",Ks," 全部未读 ")),p[l.defaultFile.read]?(r.openBlock(),r.createElementBlock("span",Js,r.toDisplayString(p[l.defaultFile.read])+"人已读 ",1)):r.createCommentVNode("v-if",!0)]))])):r.createCommentVNode("v-if",!0)])]))]),r.createElementVNode("div",ec,[r.createCommentVNode(" 不是抄送节点,展示时间 "),p[l.defaultFile.nodeType]!=l.nodeType.抄送节点?(r.openBlock(),r.createElementBlock("span",tc,r.toDisplayString(p[l.defaultFile.operationTime]),1)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" 是抄送节点,并且抄送人员大于1时,展示图标 "),p[l.defaultFile.nodeType]==l.nodeType.抄送节点&&((k=p[l.defaultFile.approvePersonList])==null?void 0:k.length)>1?(r.openBlock(),r.createElementBlock("span",nc,[p!=null&&p.show?(r.openBlock(),r.createElementBlock("i",{key:0,class:"ikapprove ikapprove-a-putongjiantouzhankai",onClick:B=>g(p,"grid")},null,8,rc)):(r.openBlock(),r.createElementBlock("i",{key:1,onClick:B=>g(p,"none"),class:"ikapprove ikapprove-a-putongjiantoushouqi"},null,8,lc))])):r.createCommentVNode("v-if",!0)])])])]),r.createElementVNode("div",{class:"bottomBlock",style:r.normalizeStyle({borderLeft:_==l.listData.length-1?"":`2px ${p[l.defaultFile.lineType]} var(--el-border-color)`})},[r.createCommentVNode(" 审批意见 "),p[l.defaultFile.approveOpinion]||p[l.defaultFile.approveStatus]==l.statusOption.加签?(r.openBlock(),r.createElementBlock("div",oc,[p[l.defaultFile.approveOpinion]?(r.openBlock(),r.createElementBlock("span",ac,r.toDisplayString(p[l.defaultFile.approveOpinion]),1)):r.createCommentVNode("v-if",!0),p[l.defaultFile.approveStatus]==l.statusOption.加签?(r.openBlock(),r.createElementBlock("span",ic,[sc,(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(p[l.defaultFile.countersignPer],(B,L)=>(r.openBlock(),r.createElementBlock("span",cc,r.toDisplayString(B==null?void 0:B.userName)+r.toDisplayString(L<p[l.defaultFile.countersignPer].length-1?"、":""),1))),256))])):r.createCommentVNode("v-if",!0)])):r.createCommentVNode("v-if",!0),r.createCommentVNode(" 附件 "),(D=p[l.defaultFile.attachment])!=null&&D.length?(r.openBlock(),r.createElementBlock("div",dc,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(p[l.defaultFile.attachment],(B,L)=>(r.openBlock(),r.createElementBlock("div",{class:"file-card",key:L,onClick:$=>u(B)},[r.createElementVNode("div",{class:r.normalizeClass(d(B[l.defaultFile.attachmentParam.suffix]))},null,2),r.createElementVNode("div",fc,[r.createElementVNode("div",pc,r.toDisplayString(B[l.defaultFile.attachmentParam.originName]),1),r.createElementVNode("div",hc,r.toDisplayString((B[l.defaultFile.attachmentParam.size]/1024/1024).toFixed(3))+"MB ",1)])],8,uc))),128))])):r.createCommentVNode("v-if",!0),r.createCommentVNode(" 附件图片 "),(S=p[l.defaultFile.attachmentImg])!=null&&S.length?(r.openBlock(),r.createElementBlock("div",mc,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(p[l.defaultFile.attachmentImg],(B,L)=>(r.openBlock(),r.createElementBlock("div",{class:"image",key:L},[r.createVNode(m,{src:h(B),fit:"cover","z-index":"9999","zoom-rate":1.2,alt:h(B)},null,8,["src","alt"])]))),128))])):r.createCommentVNode("v-if",!0),r.createCommentVNode(" 抄送节点或是等待审批状态并且列表长度大于1 "),(p[l.defaultFile.nodeType]==l.nodeType.抄送节点||p[l.defaultFile.approveStatus]==l.statusOption.等待)&&((M=p[l.defaultFile.approvePersonList])==null?void 0:M.length)>1?(r.openBlock(),r.createElementBlock("div",gc,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(p[l.defaultFile.approvePersonList],B=>(r.openBlock(),r.createElementBlock("div",{class:"perBlock",key:B.userName},[r.createElementVNode("span",yc,[B.userAvatar?(r.openBlock(),r.createElementBlock("img",{key:0,style:{width:"100%",height:"100%","border-radius":"50%"},src:h(B.userAvatar),alt:""},null,8,bc)):r.createCommentVNode("v-if",!0),r.createElementVNode("span",null,r.toDisplayString(B.userName.slice(-2)),1),B.status==="END"?(r.openBlock(),r.createElementBlock("i",_c)):r.createCommentVNode("v-if",!0)]),r.createElementVNode("div",{class:"main-text",title:B.userName},r.toDisplayString(B.userName),9,Ec)]))),128))])):r.createCommentVNode("v-if",!0)],4)],8,Ss)}),128))])}}}),S6="",vc=ae(X(Cc,[["__scopeId","data-v-41886e6b"]])),wc=t=>(r.pushScopeId("data-v-04ec002f"),t=t(),r.popScopeId(),t),Ac={class:"approveProcess",id:"approveProcess"},Sc={class:"node"},Dc={class:"nodeBg"},xc={class:"info"},Nc={class:"explain"},Tc={key:0},Bc={key:0},Vc={key:1},Rc={key:0},Ic={key:1},Mc={class:"personlist"},Oc={style:{width:"58px"}},Lc={class:"avatar"},Fc=["src"],Hc={key:1,class:"nodeBg"},Pc=["onClick"],zc=["title"],$c={key:0,class:"sign"},Uc={key:0},jc=["onClick"],Wc={key:0,class:"required"},Gc=wc(()=>r.createElementVNode("i",{class:"ikapprove ikapprove-xinzeng"},null,-1)),Yc={name:"IkApprovalProcess"},qc=r.defineComponent({...Yc,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(t,{expose:e}){const n=t,l=H.ikStore.local.getItem("token")||"Bearer iking",o=r.reactive({nodeType:{发起人节点:"INITIATOR",审批节点:"APPROVE",抄送节点:"CARBON_COPY",办理节点:"DISPOSE",分支节点:"BRANCH",条件节点:"CONDITION",结束节点:"END",...n.defaultNodeType},statusWithoutApprover:{自动通过:"AUTO_PASS",自动拒绝:"AUTO_REJECT",自动转交管理员:"TRANSMIT_TO_MANAGER",指定人员审批:"SPECIFIED_USER",...n.statusWithoutApprover},defaultFile:{id:"id",nodeId:"sortOrder",nodeType:"type",nodeTypeName:"name",approveType:"approveType",multiExecutorType:"multiExecutorType",approveTypeName:"approveTypeName",multiExecutorTypeName:"multiExecutorTypeName",approvalCategory:"approvalCategory",isShowAdd:"initiatorSpecify",isShowAddCopy:"initiatorSpecifyCarbonCopy",executorEmpty:"executorEmpty",executorEmptyStrategy:"executorEmptyStrategy",reserveExecutorUsers:"reserveExecutorUsers",approvePersonList:"executorUsers",initiatorSpecifiedScope:"initiatorSpecifiedScope",initiatorSpecifiedScopeType:"initiatorSpecifiedScopeType",singleApproval:"singleApproval",...n.defaultFieldMap},multiple:!1,chooseType:[]}),a=async g=>{var h;if(g.multiple=!g[o.defaultFile.singleApproval]||g[o.defaultFile.isShowAddCopy],g.handList=g[o.defaultFile.approvePersonList]?g[o.defaultFile.approvePersonList]:[],g[o.defaultFile.nodeType]===o.nodeType.抄送节点)g.handList.forEach(c=>{c.elementName||(c.elementName=c.userName,c.elementId=c.userId,c.avatar=c.userAvatar),c.elementType="USER",c.disabled=!0}),g.chooseType=["user"],g.userList=[],g.depList=[];else switch(g[o.defaultFile.initiatorSpecifiedScopeType]){case"ALL":g.chooseType=["dep_user"],g.userList=[],g.depList=[];break;default:g.chooseType=["user"],g.userList=g.userList?g.userList:(h=g[o.defaultFile.initiatorSpecifiedScope])==null?void 0:h.map(c=>({...c,elementName:(c==null?void 0:c.executorName)||(c==null?void 0:c.userName),elementId:(c==null?void 0:c.executorId)||(c==null?void 0:c.userId),avatar:((c==null?void 0:c.executorAvatar)||(c==null?void 0:c.userAvatar))&&i((c==null?void 0:c.executorAvatar)||(c==null?void 0:c.userAvatar))||"",elementType:"USER"}))}r.nextTick(()=>{g.isShow=!0})},i=g=>{let h="";return g.includes("http")||g.includes("https")?h=g:h=n.loadUrl?`${n.loadUrl}${g}`:`${location.origin+location.pathname}server/oss/download?fileUrl=${g}`,h},s=g=>{let h="";switch(g){case o.nodeType.审批节点:h="ikapprove-shenpi";break;case o.nodeType.办理节点:h="ikapprove-bianji";break;case o.nodeType.抄送节点:h="ikapprove-chaosong";break;default:h="ikapprove-ziyuan"}return`ikapprove ${h}`},d=(g,h)=>{n.dataList[h].handList=g.list;let y=(n.dataList[h][o.defaultFile.approvePersonList]||[]).filter(p=>!p.canDele),m=g.list.map(p=>({...p,userName:p.elementName,userAvatar:p.avatar,canDele:!0}));n.dataList[h][o.defaultFile.approvePersonList]=y.concat(m)},f=(g,h)=>{n.dataList[g][o.defaultFile.approvePersonList].splice(h,1),n.dataList[g].handList=n.dataList[g][o.defaultFile.approvePersonList]};return e({requiredVerification:()=>{let g=!0;return n.dataList.forEach(h=>{var c;h.required=!1,h[o.defaultFile.nodeType]==o.nodeType.审批节点&&h[o.defaultFile.isShowAdd]&&((c=h[o.defaultFile.approvePersonList])!=null&&c.length||(g=!1,h.required=!0))}),g}}),(g,h)=>(r.openBlock(),r.createElementBlock("div",Ac,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.dataList,(c,y)=>{var m,p,_,b;return r.openBlock(),r.createElementBlock("div",{class:"content",key:c.id},[r.createCommentVNode(" 审批节点类型 "),r.createElementVNode("div",Sc,[r.createElementVNode("span",Dc,[r.createElementVNode("i",{class:r.normalizeClass(s(c[o.defaultFile.nodeType]))},null,2)]),r.createElementVNode("div",{class:"line",style:r.normalizeStyle({"border-left":y===n.dataList.length-1?"":"2px solid var(--el-border-color)"})},null,4)]),r.createElementVNode("div",xc,[r.createElementVNode("div",null,[r.createElementVNode("div",null,r.toDisplayString(c[o.defaultFile.nodeTypeName]),1),r.createElementVNode("div",Nc,[r.createCommentVNode(" 抄送节点 "),c[o.defaultFile.nodeType]==o.nodeType.抄送节点?(r.openBlock(),r.createElementBlock("span",Tc,[c[o.defaultFile.approvePersonList].length?(r.openBlock(),r.createElementBlock("span",Bc,r.toDisplayString(`抄送${c[o.defaultFile.approvePersonList].length}人`),1)):r.createCommentVNode("v-if",!0),c[o.defaultFile.isShowAdd]?(r.openBlock(),r.createElementBlock("span",Vc,",可添加抄送人")):r.createCommentVNode("v-if",!0)])):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createCommentVNode(" 审批节点 "),r.createElementVNode("span",null,[r.createCommentVNode(" 存在审批人时 "),(m=c[o.defaultFile.approvePersonList])!=null&&m.length?(r.openBlock(),r.createElementBlock("span",Rc,r.toDisplayString(((p=c[o.defaultFile.approvePersonList])==null?void 0:p.length)==1?"1人审批":`${(_=c[o.defaultFile.approvePersonList])==null?void 0:_.length}人${c[o.defaultFile.multiExecutorTypeName]}`),1)):[o.statusWithoutApprover.自动通过,o.statusWithoutApprover.自动拒绝].includes(c[o.defaultFile.approveType])?(r.openBlock(),r.createElementBlock("span",Ic,r.toDisplayString(c[o.defaultFile.approveTypeName]),1)):c[o.defaultFile.executorEmptyStrategy]&&c[o.defaultFile.executorEmpty]?(r.openBlock(),r.createElementBlock(r.Fragment,{key:2},[r.createCommentVNode(" 没有审批人,并且有指定默认审批方式 "),r.createElementVNode("span",null,[r.createTextVNode(" 未找到审批人,"),r.createElementVNode("span",null,r.toDisplayString(c[o.defaultFile.executorEmptyStrategy]==o.statusWithoutApprover.自动通过?"将自动通过":c[o.defaultFile.executorEmptyStrategy]==o.statusWithoutApprover.自动转交管理员?"自动转交给管理员":c[o.defaultFile.executorEmptyStrategy]==o.statusWithoutApprover.指定人员审批?`将自动转给指定成员${c[o.defaultFile.reserveExecutorUsers]&&c[o.defaultFile.reserveExecutorUsers][0].userName}`:""),1)])],2112)):(r.openBlock(),r.createElementBlock("span",{key:3,class:r.normalizeClass(c.required?"warn":"")},"请选择"+r.toDisplayString(c[o.defaultFile.nodeType]===o.nodeType.办理节点?"办理人":"审批人"),3))])],2112))])]),r.createElementVNode("div",Mc,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c[o.defaultFile.approvePersonList],(C,v)=>{var I;return r.openBlock(),r.createElementBlock("div",{class:"list",key:C.userId},[r.createElementVNode("div",Oc,[r.createElementVNode("div",Lc,[C.userAvatar?(r.openBlock(),r.createElementBlock("img",{key:0,src:i(C.userAvatar),alt:""},null,8,Fc)):(r.openBlock(),r.createElementBlock("div",Hc,[r.createElementVNode("span",null,r.toDisplayString(C.userName.slice(-2)),1)])),C.canDele?(r.openBlock(),r.createElementBlock("i",{key:2,onClick:N=>f(y,v),class:"ikapprove ikapprove-shanchu1"},null,8,Pc)):r.createCommentVNode("v-if",!0)]),r.createElementVNode("div",{class:"name",title:C.userName},r.toDisplayString(C.userName),9,zc)]),r.createCommentVNode(" 显示添加人按钮,不是单选且已选中一个人的情况,显示图标 "),c[o.defaultFile.isShowAdd]&&!(c[o.defaultFile.singleApproval]&&((I=c[o.defaultFile.approvePersonList])==null?void 0:I.length)==1)?(r.openBlock(),r.createElementBlock("span",$c,[r.createCommentVNode(" 抄送默认 "),c[o.defaultFile.nodeType]==o.nodeType.抄送节点?(r.openBlock(),r.createElementBlock("span",Uc,"+")):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createCommentVNode(" 审批 "),r.createElementVNode("span",null,r.toDisplayString(c[o.defaultFile.multiExecutorType]=="ANY"?"/":c[o.defaultFile.multiExecutorType]=="ALL"?"+":">"),1)],2112))])):r.createCommentVNode("v-if",!0)])}),128)),r.createCommentVNode(" 显示添加人按钮,不是单选且已选中一个人的情况,显示按钮 "),c[o.defaultFile.isShowAdd]&&!(c[o.defaultFile.singleApproval]&&((b=c[o.defaultFile.approvePersonList])==null?void 0:b.length)==1)||c[o.defaultFile.isShowAddCopy]?(r.openBlock(),r.createElementBlock("span",{key:0,class:"addBg",onClick:C=>a(c)},[c[o.defaultFile.nodeType]==o.nodeType.审批节点?(r.openBlock(),r.createElementBlock("span",Wc)):r.createCommentVNode("v-if",!0),Gc],8,jc)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" 添加人组件 "),r.createVNode(r.unref(Ft),{modelValue:c.handList,"onUpdate:modelValue":C=>c.handList=C,show:c.isShow,"onUpdate:show":C=>c.isShow=C,onOk:C=>d(C,y),multiple:c.multiple,"type-option":{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},api:{methods:"post",url:t.pickerUrl,headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:r.unref(l)}},"dep-list":c.depList,"user-list":c.userList,"organization-list":c.organizationList,"prop-option":{name:"elementName",id:"elementId",type:"elementType",avatar:"avatar"},chooseType:c.chooseType},null,8,["modelValue","onUpdate:modelValue","show","onUpdate:show","onOk","multiple","api","dep-list","user-list","organization-list","chooseType"])])])])}),128))]))}}),x6="",Qc=ae(X(qc,[["__scopeId","data-v-04ec002f"]]));var nl={code:"zh-cn",week:{dow:1,doy:4},buttonText:{prev:"上月",next:"下月",today:"今天",year:"年",month:"月",week:"周",day:"日",list:"日程"},weekText:"周",allDayText:"全天",moreLinkText(t){return"另外 "+t+" 个"},noEventsText:"没有事件显示"},zt,F,rl,ll,ft,qe,ol,al,il,$t={},sl=[],Zc=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function He(t,e){for(var n in e)t[n]=e[n];return t}function cl(t){var e=t.parentNode;e&&e.removeChild(t)}function E(t,e,n){var l,o,a,i={};for(a in e)a=="key"?l=e[a]:a=="ref"?o=e[a]:i[a]=e[a];if(arguments.length>2&&(i.children=arguments.length>3?zt.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(a in t.defaultProps)i[a]===void 0&&(i[a]=t.defaultProps[a]);return Ut(t,i,l,o,null)}function Ut(t,e,n,l,o){var a={type:t,props:e,key:n,ref:l,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o??++rl};return o==null&&F.vnode!=null&&F.vnode(a),a}function he(){return{current:null}}function re(t){return t.children}function Xc(t,e,n,l,o){var a;for(a in n)a==="children"||a==="key"||a in e||jt(t,a,null,n[a],l);for(a in e)o&&typeof e[a]!="function"||a==="children"||a==="key"||a==="value"||a==="checked"||n[a]===e[a]||jt(t,a,e[a],n[a],l)}function dl(t,e,n){e[0]==="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||Zc.test(e)?n:n+"px"}function jt(t,e,n,l,o){var a;e:if(e==="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof l=="string"&&(t.style.cssText=l=""),l)for(e in l)n&&e in n||dl(t.style,e,"");if(n)for(e in n)l&&n[e]===l[e]||dl(t.style,e,n[e])}else if(e[0]==="o"&&e[1]==="n")a=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+a]=n,n?l||t.addEventListener(e,a?fl:ul,a):t.removeEventListener(e,a?fl:ul,a);else if(e!=="dangerouslySetInnerHTML"){if(o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="width"&&e!=="height"&&e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in t)try{t[e]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&e.indexOf("-")==-1?t.removeAttribute(e):t.setAttribute(e,n))}}function ul(t){ft=!0;try{return this.l[t.type+!1](F.event?F.event(t):t)}finally{ft=!1}}function fl(t){ft=!0;try{return this.l[t.type+!0](F.event?F.event(t):t)}finally{ft=!1}}function ye(t,e){this.props=t,this.context=e}function vt(t,e){if(e==null)return t.__?vt(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?vt(t):null}function pl(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=t.__c.base=n.__e;break}return pl(t)}}function Kc(t){ft?setTimeout(t):al(t)}function xn(t){(!t.__d&&(t.__d=!0)&&qe.push(t)&&!Wt.__r++||ol!==F.debounceRendering)&&((ol=F.debounceRendering)||Kc)(Wt)}function Wt(){var t,e,n,l,o,a,i,s;for(qe.sort(function(d,f){return d.__v.__b-f.__v.__b});t=qe.shift();)t.__d&&(e=qe.length,l=void 0,o=void 0,i=(a=(n=t).__v).__e,(s=n.__P)&&(l=[],(o=He({},a)).__v=a.__v+1,Nn(s,a,o,n.__n,s.ownerSVGElement!==void 0,a.__h!=null?[i]:null,l,i??vt(a),a.__h),bl(l,a),a.__e!=i&&pl(a)),qe.length>e&&qe.sort(function(d,f){return d.__v.__b-f.__v.__b}));Wt.__r=0}function hl(t,e,n,l,o,a,i,s,d,f){var u,g,h,c,y,m,p,_=l&&l.__k||sl,b=_.length;for(n.__k=[],u=0;u<e.length;u++)if((c=n.__k[u]=(c=e[u])==null||typeof c=="boolean"?null:typeof c=="string"||typeof c=="number"||typeof c=="bigint"?Ut(null,c,null,null,c):Array.isArray(c)?Ut(re,{children:c},null,null,null):c.__b>0?Ut(c.type,c.props,c.key,c.ref?c.ref:null,c.__v):c)!=null){if(c.__=n,c.__b=n.__b+1,(h=_[u])===null||h&&c.key==h.key&&c.type===h.type)_[u]=void 0;else for(g=0;g<b;g++){if((h=_[g])&&c.key==h.key&&c.type===h.type){_[g]=void 0;break}h=null}Nn(t,c,h=h||$t,o,a,i,s,d,f),y=c.__e,(g=c.ref)&&h.ref!=g&&(p||(p=[]),h.ref&&p.push(h.ref,null,c),p.push(g,c.__c||y,c)),y!=null?(m==null&&(m=y),typeof c.type=="function"&&c.__k===h.__k?c.__d=d=ml(c,d,t):d=gl(t,c,h,_,y,d),typeof n.type=="function"&&(n.__d=d)):d&&h.__e==d&&d.parentNode!=t&&(d=vt(h))}for(n.__e=m,u=b;u--;)_[u]!=null&&(typeof n.type=="function"&&_[u].__e!=null&&_[u].__e==n.__d&&(n.__d=yl(l).nextSibling),El(_[u],_[u]));if(p)for(u=0;u<p.length;u++)_l(p[u],p[++u],p[++u])}function ml(t,e,n){for(var l,o=t.__k,a=0;o&&a<o.length;a++)(l=o[a])&&(l.__=t,e=typeof l.type=="function"?ml(l,e,n):gl(n,l,l,o,l.__e,e));return e}function Gt(t,e){return e=e||[],t==null||typeof t=="boolean"||(Array.isArray(t)?t.some(function(n){Gt(n,e)}):e.push(t)),e}function gl(t,e,n,l,o,a){var i,s,d;if(e.__d!==void 0)i=e.__d,e.__d=void 0;else if(n==null||o!=a||o.parentNode==null)e:if(a==null||a.parentNode!==t)t.appendChild(o),i=null;else{for(s=a,d=0;(s=s.nextSibling)&&d<l.length;d+=1)if(s==o)break e;t.insertBefore(o,a),i=a}return i!==void 0?i:o.nextSibling}function yl(t){var e,n,l;if(t.type==null||typeof t.type=="string")return t.__e;if(t.__k){for(e=t.__k.length-1;e>=0;e--)if((n=t.__k[e])&&(l=yl(n)))return l}return null}function Nn(t,e,n,l,o,a,i,s,d){var f,u,g,h,c,y,m,p,_,b,C,v,I,N,x,k=e.type;if(e.constructor!==void 0)return null;n.__h!=null&&(d=n.__h,s=e.__e=n.__e,e.__h=null,a=[s]),(f=F.__b)&&f(e);try{e:if(typeof k=="function"){if(p=e.props,_=(f=k.contextType)&&l[f.__c],b=f?_?_.props.value:f.__:l,n.__c?m=(u=e.__c=n.__c).__=u.__E:("prototype"in k&&k.prototype.render?e.__c=u=new k(p,b):(e.__c=u=new ye(p,b),u.constructor=k,u.render=ed),_&&_.sub(u),u.props=p,u.state||(u.state={}),u.context=b,u.__n=l,g=u.__d=!0,u.__h=[],u._sb=[]),u.__s==null&&(u.__s=u.state),k.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=He({},u.__s)),He(u.__s,k.getDerivedStateFromProps(p,u.__s))),h=u.props,c=u.state,u.__v=e,g)k.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(k.getDerivedStateFromProps==null&&p!==h&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(p,b),!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(p,u.__s,b)===!1||e.__v===n.__v){for(e.__v!==n.__v&&(u.props=p,u.state=u.__s,u.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(D){D&&(D.__=e)}),C=0;C<u._sb.length;C++)u.__h.push(u._sb[C]);u._sb=[],u.__h.length&&i.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(p,u.__s,b),u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(h,c,y)})}if(u.context=b,u.props=p,u.__P=t,v=F.__r,I=0,"prototype"in k&&k.prototype.render){for(u.state=u.__s,u.__d=!1,v&&v(e),f=u.render(u.props,u.state,u.context),N=0;N<u._sb.length;N++)u.__h.push(u._sb[N]);u._sb=[]}else do u.__d=!1,v&&v(e),f=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++I<25);u.state=u.__s,u.getChildContext!=null&&(l=He(He({},l),u.getChildContext())),g||u.getSnapshotBeforeUpdate==null||(y=u.getSnapshotBeforeUpdate(h,c)),x=f!=null&&f.type===re&&f.key==null?f.props.children:f,hl(t,Array.isArray(x)?x:[x],e,n,l,o,a,i,s,d),u.base=e.__e,e.__h=null,u.__h.length&&i.push(u),m&&(u.__E=u.__=null),u.__e=!1}else a==null&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=Jc(n.__e,e,n,l,o,a,i,d);(f=F.diffed)&&f(e)}catch(D){e.__v=null,(d||a!=null)&&(e.__e=s,e.__h=!!d,a[a.indexOf(s)]=null),F.__e(D,e,n)}}function bl(t,e){F.__c&&F.__c(e,t),t.some(function(n){try{t=n.__h,n.__h=[],t.some(function(l){l.call(n)})}catch(l){F.__e(l,n.__v)}})}function Jc(t,e,n,l,o,a,i,s){var d,f,u,g=n.props,h=e.props,c=e.type,y=0;if(c==="svg"&&(o=!0),a!=null){for(;y<a.length;y++)if((d=a[y])&&"setAttribute"in d==!!c&&(c?d.localName===c:d.nodeType===3)){t=d,a[y]=null;break}}if(t==null){if(c===null)return document.createTextNode(h);t=o?document.createElementNS("http://www.w3.org/2000/svg",c):document.createElement(c,h.is&&h),a=null,s=!1}if(c===null)g===h||s&&t.data===h||(t.data=h);else{if(a=a&&zt.call(t.childNodes),f=(g=n.props||$t).dangerouslySetInnerHTML,u=h.dangerouslySetInnerHTML,!s){if(a!=null)for(g={},y=0;y<t.attributes.length;y++)g[t.attributes[y].name]=t.attributes[y].value;(u||f)&&(u&&(f&&u.__html==f.__html||u.__html===t.innerHTML)||(t.innerHTML=u&&u.__html||""))}if(Xc(t,h,g,o,s),u)e.__k=[];else if(y=e.props.children,hl(t,Array.isArray(y)?y:[y],e,n,l,o&&c!=="foreignObject",a,i,a?a[0]:n.__k&&vt(n,0),s),a!=null)for(y=a.length;y--;)a[y]!=null&&cl(a[y]);s||("value"in h&&(y=h.value)!==void 0&&(y!==t.value||c==="progress"&&!y||c==="option"&&y!==g.value)&&jt(t,"value",y,g.value,!1),"checked"in h&&(y=h.checked)!==void 0&&y!==t.checked&&jt(t,"checked",y,g.checked,!1))}return t}function _l(t,e,n){try{typeof t=="function"?t(e):t.current=e}catch(l){F.__e(l,n)}}function El(t,e,n){var l,o;if(F.unmount&&F.unmount(t),(l=t.ref)&&(l.current&&l.current!==t.__e||_l(l,null,e)),(l=t.__c)!=null){if(l.componentWillUnmount)try{l.componentWillUnmount()}catch(a){F.__e(a,e)}l.base=l.__P=null,t.__c=void 0}if(l=t.__k)for(o=0;o<l.length;o++)l[o]&&El(l[o],e,n||typeof t.type!="function");n||t.__e==null||cl(t.__e),t.__=t.__e=t.__d=void 0}function ed(t,e,n){return this.constructor(t,n)}function wt(t,e,n){var l,o,a;F.__&&F.__(t,e),o=(l=typeof n=="function")?null:n&&n.__k||e.__k,a=[],Nn(e,t=(!l&&n||e).__k=E(re,null,[t]),o||$t,$t,e.ownerSVGElement!==void 0,!l&&n?[n]:o?null:e.firstChild?zt.call(e.childNodes):null,a,!l&&n?n:o?o.__e:e.firstChild,l),bl(a,t)}function td(t,e){var n={__c:e="__cC"+il++,__:t,Consumer:function(l,o){return l.children(o)},Provider:function(l){var o,a;return this.getChildContext||(o=[],(a={})[e]=this,this.getChildContext=function(){return a},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&o.some(function(s){s.__e=!0,xn(s)})},this.sub=function(i){o.push(i);var s=i.componentWillUnmount;i.componentWillUnmount=function(){o.splice(o.indexOf(i),1),s&&s.call(i)}}),l.children}};return n.Provider.__=n.Consumer.contextType=n}zt=sl.slice,F={__e:function(t,e,n,l){for(var o,a,i;e=e.__;)if((o=e.__c)&&!o.__)try{if((a=o.constructor)&&a.getDerivedStateFromError!=null&&(o.setState(a.getDerivedStateFromError(t)),i=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(t,l||{}),i=o.__d),i)return o.__E=o}catch(s){t=s}throw t}},rl=0,ll=function(t){return t!=null&&t.constructor===void 0},ft=!1,ye.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=He({},this.state),typeof t=="function"&&(t=t(He({},n),this.props)),t&&He(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),xn(this))},ye.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),xn(this))},ye.prototype.render=re,qe=[],al=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Wt.__r=0,il=0;var we,Tn,kl,Cl=[],Bn=[],vl=F.__b,wl=F.__r,Al=F.diffed,Sl=F.__c,Dl=F.unmount;function nd(){for(var t;t=Cl.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Yt),t.__H.__h.forEach(Vn),t.__H.__h=[]}catch(e){t.__H.__h=[],F.__e(e,t.__v)}}F.__b=function(t){we=null,vl&&vl(t)},F.__r=function(t){wl&&wl(t);var e=(we=t.__c).__H;e&&(Tn===we?(e.__h=[],we.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Bn,n.__N=n.i=void 0})):(e.__h.forEach(Yt),e.__h.forEach(Vn),e.__h=[])),Tn=we},F.diffed=function(t){Al&&Al(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(Cl.push(e)!==1&&kl===F.requestAnimationFrame||((kl=F.requestAnimationFrame)||rd)(nd)),e.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Bn&&(n.__=n.__V),n.i=void 0,n.__V=Bn})),Tn=we=null},F.__c=function(t,e){e.some(function(n){try{n.__h.forEach(Yt),n.__h=n.__h.filter(function(l){return!l.__||Vn(l)})}catch(l){e.some(function(o){o.__h&&(o.__h=[])}),e=[],F.__e(l,n.__v)}}),Sl&&Sl(t,e)},F.unmount=function(t){Dl&&Dl(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(l){try{Yt(l)}catch(o){e=o}}),n.__H=void 0,e&&F.__e(e,n.__v))};var xl=typeof requestAnimationFrame=="function";function rd(t){var e,n=function(){clearTimeout(l),xl&&cancelAnimationFrame(e),setTimeout(t)},l=setTimeout(n,100);xl&&(e=requestAnimationFrame(n))}function Yt(t){var e=we,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),we=e}function Vn(t){var e=we;t.__c=t.__(),we=e}function ld(t,e){for(var n in e)t[n]=e[n];return t}function Nl(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var l in e)if(l!=="__source"&&t[l]!==e[l])return!0;return!1}function Tl(t){this.props=t}(Tl.prototype=new ye).isPureReactComponent=!0,Tl.prototype.shouldComponentUpdate=function(t,e){return Nl(this.props,t)||Nl(this.state,e)};var Bl=F.__b;F.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Bl&&Bl(t)};var od=F.__e;F.__e=function(t,e,n,l){if(t.then){for(var o,a=e;a=a.__;)if((o=a.__c)&&o.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),o.__c(t,e)}od(t,e,n,l)};var Vl=F.unmount;function Rl(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(l){typeof l.__c=="function"&&l.__c()}),t.__c.__H=null),(t=ld({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(l){return Rl(l,e,n)})),t}function Il(t,e,n){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(l){return Il(l,e,n)}),t.__c&&t.__c.__P===e&&(t.__e&&n.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=n)),t}function Rn(){this.__u=0,this.t=null,this.__b=null}function Ml(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function qt(){this.u=null,this.o=null}F.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),Vl&&Vl(t)},(Rn.prototype=new ye).__c=function(t,e){var n=e.__c,l=this;l.t==null&&(l.t=[]),l.t.push(n);var o=Ml(l.__v),a=!1,i=function(){a||(a=!0,n.__R=null,o?o(s):s())};n.__R=i;var s=function(){if(!--l.__u){if(l.state.__a){var f=l.state.__a;l.__v.__k[0]=Il(f,f.__c.__P,f.__c.__O)}var u;for(l.setState({__a:l.__b=null});u=l.t.pop();)u.forceUpdate()}},d=e.__h===!0;l.__u++||d||l.setState({__a:l.__b=l.__v.__k[0]}),t.then(i,i)},Rn.prototype.componentWillUnmount=function(){this.t=[]},Rn.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),l=this.__v.__k[0].__c;this.__v.__k[0]=Rl(this.__b,n,l.__O=l.__P)}this.__b=null}var o=e.__a&&E(re,null,t.fallback);return o&&(o.__h=null),[E(re,null,e.__a?null:t.children),o]};var Ol=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.u=n=n[2]}};function ad(t){return this.getChildContext=function(){return t.context},t.children}function id(t){var e=this,n=t.i;e.componentWillUnmount=function(){wt(null,e.l),e.l=null,e.i=null},e.i&&e.i!==n&&e.componentWillUnmount(),t.__v?(e.l||(e.i=n,e.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(l){this.childNodes.push(l),e.i.appendChild(l)},insertBefore:function(l,o){this.childNodes.push(l),e.i.appendChild(l)},removeChild:function(l){this.childNodes.splice(this.childNodes.indexOf(l)>>>1,1),e.i.removeChild(l)}}),wt(E(ad,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function sd(t,e){var n=E(id,{__v:t,i:e});return n.containerInfo=e,n}(qt.prototype=new ye).__a=function(t){var e=this,n=Ml(e.__v),l=e.o.get(t);return l[0]++,function(o){var a=function(){e.props.revealOrder?(l.push(o),Ol(e,t,l)):o()};n?n(a):a()}},qt.prototype.render=function(t){this.u=null,this.o=new Map;var e=Gt(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},qt.prototype.componentDidUpdate=qt.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){Ol(t,n,e)})};var cd=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,dd=/^(?: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]/,ud=typeof document<"u",fd=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};ye.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(ye.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var Ll=F.event;function pd(){}function hd(){return this.cancelBubble}function md(){return this.defaultPrevented}F.event=function(t){return Ll&&(t=Ll(t)),t.persist=pd,t.isPropagationStopped=hd,t.isDefaultPrevented=md,t.nativeEvent=t};var Fl={configurable:!0,get:function(){return this.class}},Hl=F.vnode;F.vnode=function(t){var e=t.type,n=t.props,l=n;if(typeof e=="string"){var o=e.indexOf("-")===-1;for(var a in l={},n){var i=n[a];ud&&a==="children"&&e==="noscript"||a==="value"&&"defaultValue"in n&&i==null||(a==="defaultValue"&&"value"in n&&n.value==null?a="value":a==="download"&&i===!0?i="":/ondoubleclick/i.test(a)?a="ondblclick":/^onchange(textarea|input)/i.test(a+e)&&!fd(n.type)?a="oninput":/^onfocus$/i.test(a)?a="onfocusin":/^onblur$/i.test(a)?a="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(a)?a=a.toLowerCase():o&&dd.test(a)?a=a.replace(/[A-Z0-9]/g,"-$&").toLowerCase():i===null&&(i=void 0),/^oninput$/i.test(a)&&(a=a.toLowerCase(),l[a]&&(a="oninputCapture")),l[a]=i)}e=="select"&&l.multiple&&Array.isArray(l.value)&&(l.value=Gt(n.children).forEach(function(s){s.props.selected=l.value.indexOf(s.props.value)!=-1})),e=="select"&&l.defaultValue!=null&&(l.value=Gt(n.children).forEach(function(s){s.props.selected=l.multiple?l.defaultValue.indexOf(s.props.value)!=-1:l.defaultValue==s.props.value})),t.props=l,n.class!=n.className&&(Fl.enumerable="className"in n,n.className!=null&&(l.class=n.className),Object.defineProperty(l,"className",Fl))}t.$$typeof=cd,Hl&&Hl(t)};var Pl=F.__r;F.__r=function(t){Pl&&Pl(t),t.__c};const zl=[],In=new Map;function Mn(t){zl.push(t),In.forEach(e=>{Ul(e,t)})}function gd(t){t.isConnected&&$l(t.getRootNode())}function $l(t){let e=In.get(t);if(!e||!e.isConnected){if(e=t.querySelector("style[data-fullcalendar]"),!e){e=document.createElement("style"),e.setAttribute("data-fullcalendar","");const n=bd();n&&(e.nonce=n);const l=t===document?document.head:t,o=t===document?l.querySelector("script,link[rel=stylesheet],link[as=style],style"):l.firstChild;l.insertBefore(e,o)}In.set(t,e),yd(e)}}function yd(t){for(const e of zl)Ul(t,e)}function Ul(t,e){const{sheet:n}=t,l=n.cssRules.length;e.split("}").forEach((o,a)=>{o=o.trim(),o&&n.insertRule(o+"}",l+a)})}let On;function bd(){return On===void 0&&(On=_d()),On}function _d(){const t=document.querySelector('meta[name="csp-nonce"]');if(t&&t.hasAttribute("content"))return t.getAttribute("content");const e=document.querySelector("script[nonce]");return e&&e.nonce||""}typeof document<"u"&&$l(document);var Ed=':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}';Mn(Ed);class Ln{constructor(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),e==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))}pause(e=""){let{pauseDepths:n}=this;n[e]=(n[e]||0)+1,this.clearTimeout()}resume(e="",n){let{pauseDepths:l}=this;e in l&&(n?delete l[e]:(l[e]-=1,l[e]<=0&&delete l[e]),this.tryDrain())}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}function Fn(t){t.parentNode&&t.parentNode.removeChild(t)}function ue(t,e){if(t.closest)return t.closest(e);if(!document.documentElement.contains(t))return null;do{if(kd(t,e))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===1);return null}function kd(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector).call(t,e)}function Cd(t,e){let n=t instanceof HTMLElement?[t]:t,l=[];for(let o=0;o<n.length;o+=1){let a=n[o].querySelectorAll(e);for(let i=0;i<a.length;i+=1)l.push(a[i])}return l}const vd=/(top|left|right|bottom|width|height)$/i;function At(t,e){for(let n in e)jl(t,n,e[n])}function jl(t,e,n){n==null?t.style[e]="":typeof n=="number"&&vd.test(e)?t.style[e]=`${n}px`:t.style[e]=n}function Wl(t){var e,n;return(n=(e=t.composedPath)===null||e===void 0?void 0:e.call(t)[0])!==null&&n!==void 0?n:t.target}let Gl=0;function Qt(){return Gl+=1,"fc-dom-"+Gl}function Zt(t){t.preventDefault()}function wd(t,e){return n=>{let l=ue(n.target,t);l&&e.call(l,n,l)}}function Yl(t,e,n,l){let o=wd(n,l);return t.addEventListener(e,o),()=>{t.removeEventListener(e,o)}}function Ad(t,e,n,l){let o;return Yl(t,"mouseover",e,(a,i)=>{if(i!==o){o=i,n(a,i);let s=d=>{o=null,l(d,i),i.removeEventListener("mouseleave",s)};i.addEventListener("mouseleave",s)}})}const ql=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function Sd(t,e){let n=l=>{e(l),ql.forEach(o=>{t.removeEventListener(o,n)})};ql.forEach(l=>{t.addEventListener(l,n)})}function Ql(t){return Object.assign({onClick:t},Zl(t))}function Zl(t){return{tabIndex:0,onKeyDown(e){(e.key==="Enter"||e.key===" ")&&(t(e),e.preventDefault())}}}let Xl=0;function Qe(){return Xl+=1,String(Xl)}function Hn(){document.body.classList.add("fc-not-allowed")}function Pn(){document.body.classList.remove("fc-not-allowed")}function Dd(t){t.style.userSelect="none",t.style.webkitUserSelect="none",t.addEventListener("selectstart",Zt)}function xd(t){t.style.userSelect="",t.style.webkitUserSelect="",t.removeEventListener("selectstart",Zt)}function Nd(t){t.addEventListener("contextmenu",Zt)}function Td(t){t.removeEventListener("contextmenu",Zt)}function Bd(t){let e=[],n=[],l,o;for(typeof t=="string"?n=t.split(/\s*,\s*/):typeof t=="function"?n=[t]:Array.isArray(t)&&(n=t),l=0;l<n.length;l+=1)o=n[l],typeof o=="string"?e.push(o.charAt(0)==="-"?{field:o.substring(1),order:-1}:{field:o,order:1}):typeof o=="function"&&e.push({func:o});return e}function Vd(t,e,n){let l,o;for(l=0;l<n.length;l+=1)if(o=Rd(t,e,n[l]),o)return o;return 0}function Rd(t,e,n){return n.func?n.func(t,e):Id(t[n.field],e[n.field])*(n.order||1)}function Id(t,e){return!t&&!e?0:e==null?-1:t==null?1:typeof t=="string"||typeof e=="string"?String(t).localeCompare(String(e)):t-e}function pt(t,e){let n=String(t);return"000".substr(0,e-n.length)+n}function St(t,e,n){return typeof t=="function"?t(...e):typeof t=="string"?e.reduce((l,o,a)=>l.replace("$"+a,o||""),t):n}function Md(t,e){return t-e}function Xt(t){return t%1===0}function Od(t){let e=t.querySelector(".fc-scrollgrid-shrink-frame"),n=t.querySelector(".fc-scrollgrid-shrink-cushion");if(!e)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return t.getBoundingClientRect().width-e.getBoundingClientRect().width+n.getBoundingClientRect().width}const Kl=["years","months","days","milliseconds"],Ld=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function Q(t,e){return typeof t=="string"?Fd(t):typeof t=="object"&&t?Jl(t):typeof t=="number"?Jl({[e||"milliseconds"]:t}):null}function Fd(t){let e=Ld.exec(t);if(e){let n=e[1]?-1:1;return{years:0,months:0,days:n*(e[2]?parseInt(e[2],10):0),milliseconds:n*((e[3]?parseInt(e[3],10):0)*60*60*1e3+(e[4]?parseInt(e[4],10):0)*60*1e3+(e[5]?parseInt(e[5],10):0)*1e3+(e[6]?parseInt(e[6],10):0))}}return null}function Jl(t){let e={years:t.years||t.year||0,months:t.months||t.month||0,days:t.days||t.day||0,milliseconds:(t.hours||t.hour||0)*60*60*1e3+(t.minutes||t.minute||0)*60*1e3+(t.seconds||t.second||0)*1e3+(t.milliseconds||t.millisecond||t.ms||0)},n=t.weeks||t.week;return n&&(e.days+=n*7,e.specifiedWeeks=!0),e}function Hd(t,e){return t.years===e.years&&t.months===e.months&&t.days===e.days&&t.milliseconds===e.milliseconds}function zn(t,e){return{years:t.years+e.years,months:t.months+e.months,days:t.days+e.days,milliseconds:t.milliseconds+e.milliseconds}}function Pd(t,e){return{years:t.years-e.years,months:t.months-e.months,days:t.days-e.days,milliseconds:t.milliseconds-e.milliseconds}}function zd(t,e){return{years:t.years*e,months:t.months*e,days:t.days*e,milliseconds:t.milliseconds*e}}function $d(t){return ht(t)/365}function Ud(t){return ht(t)/30}function ht(t){return Ce(t)/864e5}function Ce(t){return t.years*(365*864e5)+t.months*(30*864e5)+t.days*864e5+t.milliseconds}function $n(t,e){let n=null;for(let l=0;l<Kl.length;l+=1){let o=Kl[l];if(e[o]){let a=t[o]/e[o];if(!Xt(a)||n!==null&&n!==a)return null;n=a}else if(t[o])return null}return n}function Un(t){let e=t.milliseconds;if(e){if(e%1e3!==0)return{unit:"millisecond",value:e};if(e%(1e3*60)!==0)return{unit:"second",value:e/1e3};if(e%(1e3*60*60)!==0)return{unit:"minute",value:e/(1e3*60)};if(e)return{unit:"hour",value:e/(1e3*60*60)}}return t.days?t.specifiedWeeks&&t.days%7===0?{unit:"week",value:t.days/7}:{unit:"day",value:t.days}:t.months?{unit:"month",value:t.months}:t.years?{unit:"year",value:t.years}:{unit:"millisecond",value:0}}function Pe(t,e,n){if(t===e)return!0;let l=t.length,o;if(l!==e.length)return!1;for(o=0;o<l;o+=1)if(!(n?n(t[o],e[o]):t[o]===e[o]))return!1;return!0}const jd=["sun","mon","tue","wed","thu","fri","sat"];function eo(t,e){let n=$e(t);return n[2]+=e*7,me(n)}function fe(t,e){let n=$e(t);return n[2]+=e,me(n)}function ze(t,e){let n=$e(t);return n[6]+=e,me(n)}function Wd(t,e){return Ze(t,e)/7}function Ze(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60*24)}function Gd(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60)}function Yd(t,e){return(e.valueOf()-t.valueOf())/(1e3*60)}function qd(t,e){return(e.valueOf()-t.valueOf())/1e3}function Qd(t,e){let n=ne(t),l=ne(e);return{years:0,months:0,days:Math.round(Ze(n,l)),milliseconds:e.valueOf()-l.valueOf()-(t.valueOf()-n.valueOf())}}function Zd(t,e){let n=Kt(t,e);return n!==null&&n%7===0?n/7:null}function Kt(t,e){return Ue(t)===Ue(e)?Math.round(Ze(t,e)):null}function ne(t){return me([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()])}function Xd(t){return me([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours()])}function Kd(t){return me([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes()])}function Jd(t){return me([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()])}function eu(t,e,n){let l=t.getUTCFullYear(),o=jn(t,l,e,n);if(o<1)return jn(t,l-1,e,n);let a=jn(t,l+1,e,n);return a>=1?Math.min(o,a):o}function jn(t,e,n,l){let o=me([e,0,1+tu(e,n,l)]),a=ne(t),i=Math.round(Ze(o,a));return Math.floor(i/7)+1}function tu(t,e,n){let l=7+e-n;return-((7+me([t,0,l]).getUTCDay()-e)%7)+l-1}function to(t){return[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()]}function no(t){return new Date(t[0],t[1]||0,t[2]==null?1:t[2],t[3]||0,t[4]||0,t[5]||0)}function $e(t){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()]}function me(t){return t.length===1&&(t=t.concat([0])),new Date(Date.UTC(...t))}function ro(t){return!isNaN(t.valueOf())}function Ue(t){return t.getUTCHours()*1e3*60*60+t.getUTCMinutes()*1e3*60+t.getUTCSeconds()*1e3+t.getUTCMilliseconds()}function lo(t,e,n=!1){let l=t.toISOString();return l=l.replace(".000",""),n&&(l=l.replace("T00:00:00Z","")),l.length>10&&(e==null?l=l.replace("Z",""):e!==0&&(l=l.replace("Z",Gn(e,!0)))),l}function Wn(t){return t.toISOString().replace(/T.*$/,"")}function nu(t){return t.toISOString().match(/^\d{4}-\d{2}/)[0]}function ru(t){return pt(t.getUTCHours(),2)+":"+pt(t.getUTCMinutes(),2)+":"+pt(t.getUTCSeconds(),2)}function Gn(t,e=!1){let n=t<0?"-":"+",l=Math.abs(t),o=Math.floor(l/60),a=Math.round(l%60);return e?`${n+pt(o,2)}:${pt(a,2)}`:`GMT${n}${o}${a?`:${pt(a,2)}`:""}`}function P(t,e,n){let l,o;return function(...a){if(!l)o=t.apply(this,a);else if(!Pe(l,a)){n&&n(o);let i=t.apply(this,a);(!e||!e(i,o))&&(o=i)}return l=a,o}}function Jt(t,e,n){let l,o;return a=>{if(!l)o=t.call(this,a);else if(!Ae(l,a)){n&&n(o);let i=t.call(this,a);(!e||!e(i,o))&&(o=i)}return l=a,o}}const oo={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},en={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},tn=/\s*([ap])\.?m\.?/i,lu=/,/g,ou=/\s+/g,au=/\u200e/g,iu=/UTC|GMT/;class su{constructor(e){let n={},l={},o=0;for(let a in e)a in oo?(l[a]=e[a],o=Math.max(oo[a],o)):(n[a]=e[a],a in en&&(o=Math.max(en[a],o)));this.standardDateProps=n,this.extendedSettings=l,this.severity=o,this.buildFormattingFunc=P(ao)}format(e,n){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,n)(e)}formatRange(e,n,l,o){let{standardDateProps:a,extendedSettings:i}=this,s=hu(e.marker,n.marker,l.calendarSystem);if(!s)return this.format(e,l);let d=s;d>1&&(a.year==="numeric"||a.year==="2-digit")&&(a.month==="numeric"||a.month==="2-digit")&&(a.day==="numeric"||a.day==="2-digit")&&(d=1);let f=this.format(e,l),u=this.format(n,l);if(f===u)return f;let g=mu(a,d),h=ao(g,i,l),c=h(e),y=h(n),m=gu(f,c,u,y),p=i.separator||o||l.defaultSeparator||"";return m?m.before+c+p+y+m.after:f+p+u}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 ao(t,e,n){let l=Object.keys(t).length;return l===1&&t.timeZoneName==="short"?o=>Gn(o.timeZoneOffset):l===0&&e.week?o=>pu(n.computeWeekNumber(o.marker),n.weekText,n.weekTextLong,n.locale,e.week):cu(t,e,n)}function cu(t,e,n){t=Object.assign({},t),e=Object.assign({},e),du(t,e),t.timeZone="UTC";let l=new Intl.DateTimeFormat(n.locale.codes,t),o;if(e.omitZeroMinute){let a=Object.assign({},t);delete a.minute,o=new Intl.DateTimeFormat(n.locale.codes,a)}return a=>{let{marker:i}=a,s;o&&!i.getUTCMinutes()?s=o:s=l;let d=s.format(i);return uu(d,a,t,e,n)}}function du(t,e){t.timeZoneName&&(t.hour||(t.hour="2-digit"),t.minute||(t.minute="2-digit")),t.timeZoneName==="long"&&(t.timeZoneName="short"),e.omitZeroMinute&&(t.second||t.millisecond)&&delete e.omitZeroMinute}function uu(t,e,n,l,o){return t=t.replace(au,""),n.timeZoneName==="short"&&(t=fu(t,o.timeZone==="UTC"||e.timeZoneOffset==null?"UTC":Gn(e.timeZoneOffset))),l.omitCommas&&(t=t.replace(lu,"").trim()),l.omitZeroMinute&&(t=t.replace(":00","")),l.meridiem===!1?t=t.replace(tn,"").trim():l.meridiem==="narrow"?t=t.replace(tn,(a,i)=>i.toLocaleLowerCase()):l.meridiem==="short"?t=t.replace(tn,(a,i)=>`${i.toLocaleLowerCase()}m`):l.meridiem==="lowercase"&&(t=t.replace(tn,a=>a.toLocaleLowerCase())),t=t.replace(ou," "),t=t.trim(),t}function fu(t,e){let n=!1;return t=t.replace(iu,()=>(n=!0,e)),n||(t+=` ${e}`),t}function pu(t,e,n,l,o){let a=[];return o==="long"?a.push(n):(o==="short"||o==="narrow")&&a.push(e),(o==="long"||o==="short")&&a.push(" "),a.push(l.simpleNumberFormat.format(t)),l.options.direction==="rtl"&&a.reverse(),a.join("")}function hu(t,e,n){return n.getMarkerYear(t)!==n.getMarkerYear(e)?5:n.getMarkerMonth(t)!==n.getMarkerMonth(e)?4:n.getMarkerDay(t)!==n.getMarkerDay(e)?2:Ue(t)!==Ue(e)?1:0}function mu(t,e){let n={};for(let l in t)(!(l in en)||en[l]<=e)&&(n[l]=t[l]);return n}function gu(t,e,n,l){let o=0;for(;o<t.length;){let a=t.indexOf(e,o);if(a===-1)break;let i=t.substr(0,a);o=a+e.length;let s=t.substr(o),d=0;for(;d<n.length;){let f=n.indexOf(l,d);if(f===-1)break;let u=n.substr(0,f);d=f+l.length;let g=n.substr(d);if(i===u&&s===g)return{before:i,after:s}}}return null}function io(t,e){let n=e.markerToArray(t.marker);return{marker:t.marker,timeZoneOffset:t.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}function nn(t,e,n,l){let o=io(t,n.calendarSystem),a=e?io(e,n.calendarSystem):null;return{date:o,start:o,end:a,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:l||n.defaultSeparator}}class yu{constructor(e){this.cmdStr=e}format(e,n,l){return n.cmdFormatter(this.cmdStr,nn(e,null,n,l))}formatRange(e,n,l,o){return l.cmdFormatter(this.cmdStr,nn(e,n,l,o))}}class bu{constructor(e){this.func=e}format(e,n,l){return this.func(nn(e,null,n,l))}formatRange(e,n,l,o){return this.func(nn(e,n,l,o))}}function ce(t){return typeof t=="object"&&t?new su(t):typeof t=="string"?new yu(t):typeof t=="function"?new bu(t):null}const so={navLinkDayClick:w,navLinkWeekClick:w,duration:Q,bootstrapFontAwesome:w,buttonIcons:w,customButtons:w,defaultAllDayEventDuration:Q,defaultTimedEventDuration:Q,nextDayThreshold:Q,scrollTime:Q,scrollTimeReset:Boolean,slotMinTime:Q,slotMaxTime:Q,dayPopoverFormat:ce,slotDuration:Q,snapDuration:Q,headerToolbar:w,footerToolbar:w,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:ce,dayHeaderClassNames:w,dayHeaderContent:w,dayHeaderDidMount:w,dayHeaderWillUnmount:w,dayCellClassNames:w,dayCellContent:w,dayCellDidMount:w,dayCellWillUnmount:w,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:w,weekNumbers:Boolean,weekNumberClassNames:w,weekNumberContent:w,weekNumberDidMount:w,weekNumberWillUnmount:w,editable:Boolean,viewClassNames:w,viewDidMount:w,viewWillUnmount:w,nowIndicator:Boolean,nowIndicatorClassNames:w,nowIndicatorContent:w,nowIndicatorDidMount:w,nowIndicatorWillUnmount:w,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:w,locale:w,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:w,eventOrder:Bd,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:w,contentHeight:w,direction:String,weekNumberFormat:ce,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:w,initialDate:w,now:w,eventDataTransform:w,stickyHeaderDates:w,stickyFooterScrollbar:w,viewHeight:w,defaultAllDay:Boolean,eventSourceFailure:w,eventSourceSuccess:w,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:w,eventConstraint:w,eventAllow:w,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:w,eventContent:w,eventDidMount:w,eventWillUnmount:w,selectConstraint:w,selectOverlap:w,selectAllow:w,droppable:Boolean,unselectCancel:String,slotLabelFormat:w,slotLaneClassNames:w,slotLaneContent:w,slotLaneDidMount:w,slotLaneWillUnmount:w,slotLabelClassNames:w,slotLabelContent:w,slotLabelDidMount:w,slotLabelWillUnmount:w,dayMaxEvents:w,dayMaxEventRows:w,dayMinWidth:Number,slotLabelInterval:Q,allDayText:String,allDayClassNames:w,allDayContent:w,allDayDidMount:w,allDayWillUnmount:w,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:ce,rerenderDelay:Number,moreLinkText:w,moreLinkHint:w,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:w,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:Q,hiddenDays:w,fixedWeekCount:Boolean,validRange:w,visibleRange:w,titleFormat:w,eventInteractive:Boolean,noEventsText:String,viewHint:w,navLinkHint:w,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:w,moreLinkClassNames:w,moreLinkContent:w,moreLinkDidMount:w,moreLinkWillUnmount:w,monthStartFormat:ce,handleCustomRendering:w,customRenderingMetaMap:w,customRenderingReplaces:Boolean},Dt={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"}},co={datesSet:w,eventsSet:w,eventAdd:w,eventChange:w,eventRemove:w,windowResize:w,eventClick:w,eventMouseEnter:w,eventMouseLeave:w,select:w,unselect:w,loading:w,_unmount:w,_beforeprint:w,_afterprint:w,_noEventDrop:w,_noEventResize:w,_resize:w,_scrollRequest:w},uo={buttonText:w,buttonHints:w,views:w,plugins:w,initialEvents:w,events:w,eventSources:w},Xe={headerToolbar:Ke,footerToolbar:Ke,buttonText:Ke,buttonHints:Ke,buttonIcons:Ke,dateIncrement:Ke,plugins:rn,events:rn,eventSources:rn,resources:rn};function Ke(t,e){return typeof t=="object"&&typeof e=="object"&&t&&e?Ae(t,e):t===e}function rn(t,e){return Array.isArray(t)&&Array.isArray(e)?Pe(t,e):t===e}const _u={type:String,component:w,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:w,usesMinMaxTime:Boolean,classNames:w,content:w,didMount:w,willUnmount:w};function Yn(t){return Qn(t,Xe)}function qn(t,e){let n={},l={};for(let o in e)o in t&&(n[o]=e[o](t[o]));for(let o in t)o in e||(l[o]=t[o]);return{refined:n,extra:l}}function w(t){return t}const{hasOwnProperty:ln}=Object.prototype;function Qn(t,e){let n={};if(e){for(let l in e)if(e[l]===Ke){let o=[];for(let a=t.length-1;a>=0;a-=1){let i=t[a][l];if(typeof i=="object"&&i)o.unshift(i);else if(i!==void 0){n[l]=i;break}}o.length&&(n[l]=Qn(o))}}for(let l=t.length-1;l>=0;l-=1){let o=t[l];for(let a in o)a in n||(n[a]=o[a])}return n}function Je(t,e){let n={};for(let l in t)e(t[l],l)&&(n[l]=t[l]);return n}function xe(t,e){let n={};for(let l in t)n[l]=e(t[l],l);return n}function fo(t){let e={};for(let n of t)e[n]=!0;return e}function Zn(t){let e=[];for(let n in t)e.push(t[n]);return e}function Ae(t,e){if(t===e)return!0;for(let n in t)if(ln.call(t,n)&&!(n in e))return!1;for(let n in e)if(ln.call(e,n)&&t[n]!==e[n])return!1;return!0}const Eu=/^on[A-Z]/;function ku(t,e){const n=Xn(t,e);for(let l of n)if(!Eu.test(l))return!1;return!0}function Xn(t,e){let n=[];for(let l in t)ln.call(t,l)&&(l in e||n.push(l));for(let l in e)ln.call(e,l)&&t[l]!==e[l]&&n.push(l);return n}function Kn(t,e,n={}){if(t===e)return!0;for(let l in e)if(!(l in t&&Cu(t[l],e[l],n[l])))return!1;for(let l in t)if(!(l in e))return!1;return!0}function Cu(t,e,n){return t===e||n===!0?!0:n?n(t,e):!1}function vu(t,e=0,n,l=1){let o=[];n==null&&(n=Object.keys(t).length);for(let a=e;a<n;a+=l){let i=t[a];i!==void 0&&o.push(i)}return o}let po={};function wu(t,e){po[t]=e}function Au(t){return new po[t]}class Su{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return me(e)}markerToArray(e){return $e(e)}}wu("gregory",Su);const Du=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function xu(t){let e=Du.exec(t);if(e){let n=new Date(Date.UTC(Number(e[1]),e[3]?Number(e[3])-1:0,Number(e[5]||1),Number(e[7]||0),Number(e[8]||0),Number(e[10]||0),e[12]?+`0.${e[12]}`*1e3:0));if(ro(n)){let l=null;return e[13]&&(l=(e[15]==="-"?-1:1)*(Number(e[16]||0)*60+Number(e[18]||0))),{marker:n,isTimeUnspecified:!e[6],timeZoneOffset:l}}}return null}class Nu{constructor(e){let n=this.timeZone=e.timeZone,l=n!=="local"&&n!=="UTC";e.namedTimeZoneImpl&&l&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(n)),this.canComputeOffset=!!(!l||this.namedTimeZoneImpl),this.calendarSystem=Au(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,e.weekNumberCalculation==="ISO"&&(this.weekDow=1,this.weekDoy=4),typeof e.firstDay=="number"&&(this.weekDow=e.firstDay),typeof e.weekNumberCalculation=="function"&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=e.weekText!=null?e.weekText:e.locale.options.weekText,this.weekTextLong=(e.weekTextLong!=null?e.weekTextLong:e.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}createMarker(e){let n=this.createMarkerMeta(e);return n===null?null:n.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker(new Date().valueOf()):me(to(new Date))}createMarkerMeta(e){if(typeof e=="string")return this.parse(e);let n=null;return typeof e=="number"?n=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(n=this.timestampToMarker(e))):Array.isArray(e)&&(n=me(e)),n===null||!ro(n)?null:{marker:n,isTimeUnspecified:!1,forcedTzo:null}}parse(e){let n=xu(e);if(n===null)return null;let{marker:l}=n,o=null;return n.timeZoneOffset!==null&&(this.canComputeOffset?l=this.timestampToMarker(l.valueOf()-n.timeZoneOffset*60*1e3):o=n.timeZoneOffset),{marker:l,isTimeUnspecified:n.isTimeUnspecified,forcedTzo:o}}getYear(e){return this.calendarSystem.getMarkerYear(e)}getMonth(e){return this.calendarSystem.getMarkerMonth(e)}getDay(e){return this.calendarSystem.getMarkerDay(e)}add(e,n){let l=this.calendarSystem.markerToArray(e);return l[0]+=n.years,l[1]+=n.months,l[2]+=n.days,l[6]+=n.milliseconds,this.calendarSystem.arrayToMarker(l)}subtract(e,n){let l=this.calendarSystem.markerToArray(e);return l[0]-=n.years,l[1]-=n.months,l[2]-=n.days,l[6]-=n.milliseconds,this.calendarSystem.arrayToMarker(l)}addYears(e,n){let l=this.calendarSystem.markerToArray(e);return l[0]+=n,this.calendarSystem.arrayToMarker(l)}addMonths(e,n){let l=this.calendarSystem.markerToArray(e);return l[1]+=n,this.calendarSystem.arrayToMarker(l)}diffWholeYears(e,n){let{calendarSystem:l}=this;return Ue(e)===Ue(n)&&l.getMarkerDay(e)===l.getMarkerDay(n)&&l.getMarkerMonth(e)===l.getMarkerMonth(n)?l.getMarkerYear(n)-l.getMarkerYear(e):null}diffWholeMonths(e,n){let{calendarSystem:l}=this;return Ue(e)===Ue(n)&&l.getMarkerDay(e)===l.getMarkerDay(n)?l.getMarkerMonth(n)-l.getMarkerMonth(e)+(l.getMarkerYear(n)-l.getMarkerYear(e))*12:null}greatestWholeUnit(e,n){let l=this.diffWholeYears(e,n);return l!==null?{unit:"year",value:l}:(l=this.diffWholeMonths(e,n),l!==null?{unit:"month",value:l}:(l=Zd(e,n),l!==null?{unit:"week",value:l}:(l=Kt(e,n),l!==null?{unit:"day",value:l}:(l=Gd(e,n),Xt(l)?{unit:"hour",value:l}:(l=Yd(e,n),Xt(l)?{unit:"minute",value:l}:(l=qd(e,n),Xt(l)?{unit:"second",value:l}:{unit:"millisecond",value:n.valueOf()-e.valueOf()}))))))}countDurationsBetween(e,n,l){let o;return l.years&&(o=this.diffWholeYears(e,n),o!==null)?o/$d(l):l.months&&(o=this.diffWholeMonths(e,n),o!==null)?o/Ud(l):l.days&&(o=Kt(e,n),o!==null)?o/ht(l):(n.valueOf()-e.valueOf())/Ce(l)}startOf(e,n){return n==="year"?this.startOfYear(e):n==="month"?this.startOfMonth(e):n==="week"?this.startOfWeek(e):n==="day"?ne(e):n==="hour"?Xd(e):n==="minute"?Kd(e):n==="second"?Jd(e):null}startOfYear(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])}startOfMonth(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])}startOfWeek(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):eu(e,this.weekDow,this.weekDoy)}format(e,n,l={}){return n.format({marker:e,timeZoneOffset:l.forcedTzo!=null?l.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,n,l,o={}){return o.isEndExclusive&&(n=ze(n,-1)),l.formatRange({marker:e,timeZoneOffset:o.forcedStartTzo!=null?o.forcedStartTzo:this.offsetForMarker(e)},{marker:n,timeZoneOffset:o.forcedEndTzo!=null?o.forcedEndTzo:this.offsetForMarker(n)},this,o.defaultSeparator)}formatIso(e,n={}){let l=null;return n.omitTimeZoneOffset||(n.forcedTzo!=null?l=n.forcedTzo:l=this.offsetForMarker(e)),lo(e,l,n.omitTime)}timestampToMarker(e){return this.timeZone==="local"?me(to(new Date(e))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(e):me(this.namedTimeZoneImpl.timestampToArray(e))}offsetForMarker(e){return this.timeZone==="local"?-no($e(e)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray($e(e)):null}toDate(e,n){return this.timeZone==="local"?no($e(e)):this.timeZone==="UTC"?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-this.namedTimeZoneImpl.offsetForArray($e(e))*1e3*60):new Date(e.valueOf()-(n||0))}}class xt{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let n,l;if(typeof e=="object"&&e){n=Object.assign({},this.iconClasses);for(l in e)n[l]=this.applyIconOverridePrefix(e[l]);this.iconClasses=n}else e===!1&&(this.iconClasses={})}applyIconOverridePrefix(e){let n=this.iconOverridePrefix;return n&&e.indexOf(n)!==0&&(e=n+e),e}getClass(e){return this.classes[e]||""}getIconClass(e,n){let l;return n&&this.rtlIconClasses?l=this.rtlIconClasses[e]||this.iconClasses[e]:l=this.iconClasses[e],l?`${this.baseIconClass} ${l}`:""}getCustomButtonIconClass(e){let n;return this.iconOverrideCustomButtonOption&&(n=e[this.iconOverrideCustomButtonOption],n)?`${this.baseIconClass} ${this.applyIconOverridePrefix(n)}`:""}}xt.prototype.classes={},xt.prototype.iconClasses={},xt.prototype.baseIconClass="",xt.prototype.iconOverridePrefix="";function ho(t){t();let e=F.debounceRendering,n=[];function l(o){n.push(o)}for(F.debounceRendering=l,wt(E(Tu,{}),document.createElement("div"));n.length;)n.shift()();F.debounceRendering=e}class Tu extends ye{render(){return E("div",{})}componentDidMount(){this.setState({})}}function mo(t){let e=td(t),n=e.Provider;return e.Provider=function(){let l=!this.getChildContext,o=n.apply(this,arguments);if(l){let a=[];this.shouldComponentUpdate=i=>{this.props.value!==i.value&&a.forEach(s=>{s.context=i.value,s.forceUpdate()})},this.sub=i=>{a.push(i);let s=i.componentWillUnmount;i.componentWillUnmount=()=>{a.splice(a.indexOf(i),1),s&&s.call(i)}}}return o},e}class Bu{constructor(e,n,l,o){this.execFunc=e,this.emitter=n,this.scrollTime=l,this.scrollTimeReset=o,this.handleScrollRequest=a=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},a),this.drain()},n.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const Ne=mo({});function Vu(t,e,n,l,o,a,i,s,d,f,u,g,h){return{dateEnv:o,options:n,pluginHooks:i,emitter:f,dispatch:s,getCurrentData:d,calendarApi:u,viewSpec:t,viewApi:e,dateProfileGenerator:l,theme:a,isRtl:n.direction==="rtl",addResizeHandler(c){f.on("_resize",c)},removeResizeHandler(c){f.off("_resize",c)},createScrollResponder(c){return new Bu(c,f,Q(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:g,unregisterInteractiveComponent:h}}class et extends ye{shouldComponentUpdate(e,n){return this.debug&&console.log(Xn(e,this.props),Xn(n,this.state)),!Kn(this.props,e,this.propEquality)||!Kn(this.state,n,this.stateEquality)}safeSetState(e){Kn(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}et.addPropsEquality=Ru,et.addStateEquality=Iu,et.contextType=Ne,et.prototype.propEquality={},et.prototype.stateEquality={};class K extends et{}K.contextType=Ne;function Ru(t){let e=Object.create(this.prototype.propEquality);Object.assign(e,t),this.prototype.propEquality=e}function Iu(t){let e=Object.create(this.prototype.stateEquality);Object.assign(e,t),this.prototype.stateEquality=e}function Te(t,e){typeof t=="function"?t(e):t&&(t.current=e)}class Jn extends K{constructor(){super(...arguments),this.id=Qe(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{const{options:n}=this.context,{generatorName:l}=this.props;(!n.customRenderingReplaces||!er(l,n))&&this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&Te(this.props.elRef,e)}}render(){const{props:e,context:n}=this,{options:l}=n,{customGenerator:o,defaultGenerator:a,renderProps:i}=e,s=go(e,[],this.handleEl);let d=!1,f,u=[],g;if(o!=null){const h=typeof o=="function"?o(i,E):o;if(h===!0)d=!0;else{const c=h&&typeof h=="object";c&&"html"in h?s.dangerouslySetInnerHTML={__html:h.html}:c&&"domNodes"in h?u=Array.prototype.slice.call(h.domNodes):(c?ll(h):typeof h!="function")?f=h:g=h}}else d=!er(e.generatorName,l);return d&&a&&(f=a(i)),this.queuedDomNodes=u,this.currentGeneratorMeta=g,E(e.elTag,s,f)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var n;const{props:l,context:o}=this,{handleCustomRendering:a,customRenderingMetaMap:i}=o.options;if(a){const s=(n=this.currentGeneratorMeta)!==null&&n!==void 0?n:i==null?void 0:i[l.generatorName];s&&a(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:s},l),{elClasses:(l.elClasses||[]).filter(Mu)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:n}=this,l=this.base;if(!Pe(e,n)){n.forEach(Fn);for(let o of e)l.appendChild(o);this.currentDomNodes=e}}}Jn.addPropsEquality({elClasses:Pe,elStyle:Ae,elAttrs:ku,renderProps:Ae});function er(t,e){var n;return!!(e.handleCustomRendering&&t&&(!((n=e.customRenderingMetaMap)===null||n===void 0)&&n[t]))}function go(t,e,n){const l=Object.assign(Object.assign({},t.elAttrs),{ref:n});return(t.elClasses||e)&&(l.className=(t.elClasses||[]).concat(e||[]).concat(l.className||[]).filter(Boolean).join(" ")),t.elStyle&&(l.style=t.elStyle),l}function Mu(t){return!!t}const yo=mo(0);class be extends ye{constructor(){super(...arguments),this.InnerContent=Ou.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(Te(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:e}=this,n=Lu(e.classNameGenerator,e.renderProps);if(e.children){const l=go(e,n,this.handleEl),o=e.children(this.InnerContent,e.renderProps,l);return e.elTag?E(e.elTag,l,o):o}else return E(Jn,Object.assign(Object.assign({},e),{elRef:this.handleEl,elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(n),renderId:this.context}))}componentDidMount(){var e,n;this.el?(n=(e=this.props).didMount)===null||n===void 0||n.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var e,n;(n=(e=this.props).willUnmount)===null||n===void 0||n.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}be.contextType=yo;function Ou(t,e){const n=t.props;return E(Jn,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:t.context},e))}function Lu(t,e){const n=typeof t=="function"?t(e):t||[];return typeof n=="string"?[n]:n}class on extends K{render(){let{props:e,context:n}=this,{options:l}=n,o={view:n.viewApi};return E(be,Object.assign({},e,{elTag:e.elTag||"div",elClasses:[...bo(e.viewSpec),...e.elClasses||[]],renderProps:o,classNameGenerator:l.viewClassNames,generatorName:void 0,didMount:l.viewDidMount,willUnmount:l.viewWillUnmount}),()=>e.children)}}function bo(t){return[`fc-${t.type}-view`,"fc-view"]}function Fu(t,e){let n=null,l=null;return t.start&&(n=e.createMarker(t.start)),t.end&&(l=e.createMarker(t.end)),!n&&!l||n&&l&&l<n?null:{start:n,end:l}}function _o(t,e){let n=[],{start:l}=e,o,a;for(t.sort(Hu),o=0;o<t.length;o+=1)a=t[o],a.start>l&&n.push({start:l,end:a.start}),a.end>l&&(l=a.end);return l<e.end&&n.push({start:l,end:e.end}),n}function Hu(t,e){return t.start.valueOf()-e.start.valueOf()}function tt(t,e){let{start:n,end:l}=t,o=null;return e.start!==null&&(n===null?n=e.start:n=new Date(Math.max(n.valueOf(),e.start.valueOf()))),e.end!=null&&(l===null?l=e.end:l=new Date(Math.min(l.valueOf(),e.end.valueOf()))),(n===null||l===null||n<l)&&(o={start:n,end:l}),o}function Pu(t,e){return(t.start===null?null:t.start.valueOf())===(e.start===null?null:e.start.valueOf())&&(t.end===null?null:t.end.valueOf())===(e.end===null?null:e.end.valueOf())}function tr(t,e){return(t.end===null||e.start===null||t.end>e.start)&&(t.start===null||e.end===null||t.start<e.end)}function an(t,e){return(t.start===null||e.start!==null&&e.start>=t.start)&&(t.end===null||e.end!==null&&e.end<=t.end)}function Be(t,e){return(t.start===null||e>=t.start)&&(t.end===null||e<t.end)}function zu(t,e){return e.start!=null&&t<e.start?e.start:e.end!=null&&t>=e.end?new Date(e.end.valueOf()-1):t}function Eo(t){let e=Math.floor(Ze(t.start,t.end))||1,n=ne(t.start),l=fe(n,e);return{start:n,end:l}}function ko(t,e=Q(0)){let n=null,l=null;if(t.end){l=ne(t.end);let o=t.end.valueOf()-l.valueOf();o&&o>=Ce(e)&&(l=fe(l,1))}return t.start&&(n=ne(t.start),l&&l<=n&&(l=fe(n,1))),{start:n,end:l}}function mt(t,e,n,l){return l==="year"?Q(n.diffWholeYears(t,e),"year"):l==="month"?Q(n.diffWholeMonths(t,e),"month"):Qd(t,e)}function $u(t,e){switch(e.type){case"CHANGE_DATE":return e.dateMarker;default:return t}}function Uu(t,e){let n=t.initialDate;return n!=null?e.createMarker(n):Nt(t.now,e)}function Nt(t,e){return typeof t=="function"&&(t=t()),t==null?e.createNowMarker():e.createMarker(t)}class Co{constructor(e){this.props=e,this.nowDate=Nt(e.nowInput,e.dateEnv),this.initHiddenDays()}buildPrev(e,n,l){let{dateEnv:o}=this.props,a=o.subtract(o.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(a,-1,l)}buildNext(e,n,l){let{dateEnv:o}=this.props,a=o.add(o.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(a,1,l)}build(e,n,l=!0){let{props:o}=this,a,i,s,d,f,u;return a=this.buildValidRange(),a=this.trimHiddenDays(a),l&&(e=zu(e,a)),i=this.buildCurrentRangeInfo(e,n),s=/^(year|month|week|day)$/.test(i.unit),d=this.buildRenderRange(this.trimHiddenDays(i.range),i.unit,s),d=this.trimHiddenDays(d),f=d,o.showNonCurrentDates||(f=tt(f,i.range)),f=this.adjustActiveRange(f),f=tt(f,a),u=tr(i.range,a),Be(d,e)||(e=d.start),{currentDate:e,validRange:a,currentRange:i.range,currentRangeUnit:i.unit,isRangeAllDay:s,activeRange:f,renderRange:d,slotMinTime:o.slotMinTime,slotMaxTime:o.slotMaxTime,isValid:u,dateIncrement:this.buildDateIncrement(i.duration)}}buildValidRange(){let e=this.props.validRangeInput,n=typeof e=="function"?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(n)||{start:null,end:null}}buildCurrentRangeInfo(e,n){let{props:l}=this,o=null,a=null,i=null,s;return l.duration?(o=l.duration,a=l.durationUnit,i=this.buildRangeFromDuration(e,n,o,a)):(s=this.props.dayCount)?(a="day",i=this.buildRangeFromDayCount(e,n,s)):(i=this.buildCustomVisibleRange(e))?a=l.dateEnv.greatestWholeUnit(i.start,i.end).unit:(o=this.getFallbackDuration(),a=Un(o).unit,i=this.buildRangeFromDuration(e,n,o,a)),{duration:o,unit:a,range:i}}getFallbackDuration(){return Q({day:1})}adjustActiveRange(e){let{dateEnv:n,usesMinMaxTime:l,slotMinTime:o,slotMaxTime:a}=this.props,{start:i,end:s}=e;return l&&(ht(o)<0&&(i=ne(i),i=n.add(i,o)),ht(a)>1&&(s=ne(s),s=fe(s,-1),s=n.add(s,a))),{start:i,end:s}}buildRangeFromDuration(e,n,l,o){let{dateEnv:a,dateAlignment:i}=this.props,s,d,f;if(!i){let{dateIncrement:g}=this.props;g&&Ce(g)<Ce(l)?i=Un(g).unit:i=o}ht(l)<=1&&this.isHiddenDay(s)&&(s=this.skipHiddenDays(s,n),s=ne(s));function u(){s=a.startOf(e,i),d=a.add(s,l),f={start:s,end:d}}return u(),this.trimHiddenDays(f)||(e=this.skipHiddenDays(e,n),u()),f}buildRangeFromDayCount(e,n,l){let{dateEnv:o,dateAlignment:a}=this.props,i=0,s=e,d;a&&(s=o.startOf(s,a)),s=ne(s),s=this.skipHiddenDays(s,n),d=s;do d=fe(d,1),this.isHiddenDay(d)||(i+=1);while(i<l);return{start:s,end:d}}buildCustomVisibleRange(e){let{props:n}=this,l=n.visibleRangeInput,o=typeof l=="function"?l.call(n.calendarApi,n.dateEnv.toDate(e)):l,a=this.refineRange(o);return a&&(a.start==null||a.end==null)?null:a}buildRenderRange(e,n,l){return e}buildDateIncrement(e){let{dateIncrement:n}=this.props,l;return n||((l=this.props.dateAlignment)?Q(1,l):e||Q({days:1}))}refineRange(e){if(e){let n=Fu(e,this.props.dateEnv);return n&&(n=ko(n)),n}return null}initHiddenDays(){let e=this.props.hiddenDays||[],n=[],l=0,o;for(this.props.weekends===!1&&e.push(0,6),o=0;o<7;o+=1)(n[o]=e.indexOf(o)!==-1)||(l+=1);if(!l)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n}trimHiddenDays(e){let{start:n,end:l}=e;return n&&(n=this.skipHiddenDays(n)),l&&(l=this.skipHiddenDays(l,-1,!0)),n==null||l==null||n<l?{start:n,end:l}:null}isHiddenDay(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]}skipHiddenDays(e,n=1,l=!1){for(;this.isHiddenDayHash[(e.getUTCDay()+(l?n:0)+7)%7];)e=fe(e,n);return e}}function nr(t,e,n,l){return{instanceId:Qe(),defId:t,range:e,forcedStartTzo:n??null,forcedEndTzo:l??null}}function ju(t,e,n,l){for(let o=0;o<l.length;o+=1){let a=l[o].parse(t,n);if(a){let{allDay:i}=t;return i==null&&(i=e,i==null&&(i=a.allDayGuess,i==null&&(i=!1))),{allDay:i,duration:a.duration,typeData:a.typeData,typeId:o}}}return null}function nt(t,e,n){let{dateEnv:l,pluginHooks:o,options:a}=n,{defs:i,instances:s}=t;s=Je(s,d=>!i[d.defId].recurringDef);for(let d in i){let f=i[d];if(f.recurringDef){let{duration:u}=f.recurringDef;u||(u=f.allDay?a.defaultAllDayEventDuration:a.defaultTimedEventDuration);let g=Wu(f,u,e,l,o.recurringTypes);for(let h of g){let c=nr(d,{start:h,end:l.add(h,u)});s[c.instanceId]=c}}}return{defs:i,instances:s}}function Wu(t,e,n,l,o){let i=o[t.recurringDef.typeId].expand(t.recurringDef.typeData,{start:l.subtract(n.start,e),end:n.end},l);return t.allDay&&(i=i.map(ne)),i}const sn={id:String,groupId:String,title:String,url:String,interactive:Boolean},vo={start:w,end:w,date:w,allDay:Boolean},Gu=Object.assign(Object.assign(Object.assign({},sn),vo),{extendedProps:w});function wo(t,e,n,l,o=rr(n),a,i){let{refined:s,extra:d}=Ao(t,n,o),f=qu(e,n),u=ju(s,f,n.dateEnv,n.pluginHooks.recurringTypes);if(u){let h=lr(s,d,e?e.sourceId:"",u.allDay,!!u.duration,n,a);return h.recurringDef={typeId:u.typeId,typeData:u.typeData,duration:u.duration},{def:h,instance:null}}let g=Yu(s,f,n,l);if(g){let h=lr(s,d,e?e.sourceId:"",g.allDay,g.hasEnd,n,a),c=nr(h.defId,g.range,g.forcedStartTzo,g.forcedEndTzo);return i&&h.publicId&&i[h.publicId]&&(c.instanceId=i[h.publicId]),{def:h,instance:c}}return null}function Ao(t,e,n=rr(e)){return qn(t,n)}function rr(t){return Object.assign(Object.assign(Object.assign({},dn),Gu),t.pluginHooks.eventRefiners)}function lr(t,e,n,l,o,a,i){let s={title:t.title||"",groupId:t.groupId||"",publicId:t.id||"",url:t.url||"",recurringDef:null,defId:(i&&t.id?i[t.id]:"")||Qe(),sourceId:n,allDay:l,hasEnd:o,interactive:t.interactive,ui:un(t,a),extendedProps:Object.assign(Object.assign({},t.extendedProps||{}),e)};for(let d of a.pluginHooks.eventDefMemberAdders)Object.assign(s,d(t));return Object.freeze(s.ui.classNames),Object.freeze(s.extendedProps),s}function Yu(t,e,n,l){let{allDay:o}=t,a,i=null,s=!1,d,f=null,u=t.start!=null?t.start:t.date;if(a=n.dateEnv.createMarkerMeta(u),a)i=a.marker;else if(!l)return null;return t.end!=null&&(d=n.dateEnv.createMarkerMeta(t.end)),o==null&&(e!=null?o=e:o=(!a||a.isTimeUnspecified)&&(!d||d.isTimeUnspecified)),o&&i&&(i=ne(i)),d&&(f=d.marker,o&&(f=ne(f)),i&&f<=i&&(f=null)),f?s=!0:l||(s=n.options.forceEventDuration||!1,f=n.dateEnv.add(i,o?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:o,hasEnd:s,range:{start:i,end:f},forcedStartTzo:a?a.forcedTzo:null,forcedEndTzo:d?d.forcedTzo:null}}function qu(t,e){let n=null;return t&&(n=t.defaultAllDay),n==null&&(n=e.options.defaultAllDay),n}function Tt(t,e,n,l,o,a){let i=_e(),s=rr(n);for(let d of t){let f=wo(d,e,n,l,s,o,a);f&&or(f,i)}return i}function or(t,e=_e()){return e.defs[t.def.defId]=t.def,t.instance&&(e.instances[t.instance.instanceId]=t.instance),e}function ar(t,e){let n=t.instances[e];if(n){let l=t.defs[n.defId],o=cn(t,a=>Qu(l,a));return o.defs[l.defId]=l,o.instances[n.instanceId]=n,o}return _e()}function Qu(t,e){return!!(t.groupId&&t.groupId===e.groupId)}function _e(){return{defs:{},instances:{}}}function ir(t,e){return{defs:Object.assign(Object.assign({},t.defs),e.defs),instances:Object.assign(Object.assign({},t.instances),e.instances)}}function cn(t,e){let n=Je(t.defs,e),l=Je(t.instances,o=>n[o.defId]);return{defs:n,instances:l}}function Zu(t,e){let{defs:n,instances:l}=t,o={},a={};for(let i in n)e.defs[i]||(o[i]=n[i]);for(let i in l)!e.instances[i]&&o[l[i].defId]&&(a[i]=l[i]);return{defs:o,instances:a}}function Xu(t,e){return Array.isArray(t)?Tt(t,null,e,!0):typeof t=="object"&&t?Tt([t],null,e,!0):t!=null?String(t):null}function So(t){return Array.isArray(t)?t:typeof t=="string"?t.split(/\s+/):[]}const dn={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:w,overlap:w,allow:w,className:So,classNames:So,color:String,backgroundColor:String,borderColor:String,textColor:String},Ku={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function un(t,e){let n=Xu(t.constraint,e);return{display:t.display||null,startEditable:t.startEditable!=null?t.startEditable:t.editable,durationEditable:t.durationEditable!=null?t.durationEditable:t.editable,constraints:n!=null?[n]:[],overlap:t.overlap!=null?t.overlap:null,allows:t.allow!=null?[t.allow]:[],backgroundColor:t.backgroundColor||t.color||"",borderColor:t.borderColor||t.color||"",textColor:t.textColor||"",classNames:(t.className||[]).concat(t.classNames||[])}}function Do(t){return t.reduce(Ju,Ku)}function Ju(t,e){return{display:e.display!=null?e.display:t.display,startEditable:e.startEditable!=null?e.startEditable:t.startEditable,durationEditable:e.durationEditable!=null?e.durationEditable:t.durationEditable,constraints:t.constraints.concat(e.constraints),overlap:typeof e.overlap=="boolean"?e.overlap:t.overlap,allows:t.allows.concat(e.allows),backgroundColor:e.backgroundColor||t.backgroundColor,borderColor:e.borderColor||t.borderColor,textColor:e.textColor||t.textColor,classNames:t.classNames.concat(e.classNames)}}const ef={id:String,defaultAllDay:Boolean,url:String,format:String,events:w,eventDataTransform:w,success:w,failure:w};function xo(t,e,n=No(e)){let l;if(typeof t=="string"?l={url:t}:typeof t=="function"||Array.isArray(t)?l={events:t}:typeof t=="object"&&t&&(l=t),l){let{refined:o,extra:a}=qn(l,n),i=tf(o,e);if(i)return{_raw:t,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:o.defaultAllDay,eventDataTransform:o.eventDataTransform,success:o.success,failure:o.failure,publicId:o.id||"",sourceId:Qe(),sourceDefId:i.sourceDefId,meta:i.meta,ui:un(o,e),extendedProps:a}}return null}function No(t){return Object.assign(Object.assign(Object.assign({},dn),ef),t.pluginHooks.eventSourceRefiners)}function tf(t,e){let n=e.pluginHooks.eventSourceDefs;for(let l=n.length-1;l>=0;l-=1){let a=n[l].parseMeta(t);if(a)return{sourceDefId:l,meta:a}}return null}function nf(t,e,n,l,o){switch(e.type){case"RECEIVE_EVENTS":return rf(t,n[e.sourceId],e.fetchId,e.fetchRange,e.rawEvents,o);case"RESET_RAW_EVENTS":return lf(t,n[e.sourceId],e.rawEvents,l.activeRange,o);case"ADD_EVENTS":return of(t,e.eventStore,l?l.activeRange:null,o);case"RESET_EVENTS":return e.eventStore;case"MERGE_EVENTS":return ir(t,e.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return l?nt(t,l.activeRange,o):t;case"REMOVE_EVENTS":return Zu(t,e.eventStore);case"REMOVE_EVENT_SOURCE":return Ro(t,e.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return cn(t,a=>!a.sourceId);case"REMOVE_ALL_EVENTS":return _e();default:return t}}function rf(t,e,n,l,o,a){if(e&&n===e.latestFetchId){let i=Tt(To(o,e,a),e,a);return l&&(i=nt(i,l,a)),ir(Ro(t,e.sourceId),i)}return t}function lf(t,e,n,l,o){const{defIdMap:a,instanceIdMap:i}=sf(t);let s=Tt(To(n,e,o),e,o,!1,a,i);return nt(s,l,o)}function To(t,e,n){let l=n.options.eventDataTransform,o=e?e.eventDataTransform:null;return o&&(t=Bo(t,o)),l&&(t=Bo(t,l)),t}function Bo(t,e){let n;if(!e)n=t;else{n=[];for(let l of t){let o=e(l);o?n.push(o):o==null&&n.push(l)}}return n}function of(t,e,n,l){return n&&(e=nt(e,n,l)),ir(t,e)}function Vo(t,e,n){let{defs:l}=t,o=xe(t.instances,a=>l[a.defId].allDay?a:Object.assign(Object.assign({},a),{range:{start:n.createMarker(e.toDate(a.range.start,a.forcedStartTzo)),end:n.createMarker(e.toDate(a.range.end,a.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:a.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:a.forcedEndTzo}));return{defs:l,instances:o}}function Ro(t,e){return cn(t,n=>n.sourceId!==e)}function af(t,e){return{defs:t.defs,instances:Je(t.instances,n=>!e[n.instanceId])}}function sf(t){const{defs:e,instances:n}=t,l={},o={};for(let a in e){const i=e[a],{publicId:s}=i;s&&(l[s]=a)}for(let a in n){const i=n[a],s=e[i.defId],{publicId:d}=s;d&&(o[d]=a)}return{defIdMap:l,instanceIdMap:o}}class fn{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,n){cf(this.handlers,e,n)}off(e,n){df(this.handlers,e,n)}trigger(e,...n){let l=this.handlers[e]||[],o=this.options&&this.options[e],a=[].concat(o||[],l);for(let i of a)i.apply(this.thisContext,n)}hasHandlers(e){return!!(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}function cf(t,e,n){(t[e]||(t[e]=[])).push(n)}function df(t,e,n){n?t[e]&&(t[e]=t[e].filter(l=>l!==n)):delete t[e]}const uf={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function ff(t,e){return Tt(pf(t),null,e)}function pf(t){let e;return t===!0?e=[{}]:Array.isArray(t)?e=t.filter(n=>n.daysOfWeek):typeof t=="object"&&t?e=[t]:e=[],e=e.map(n=>Object.assign(Object.assign({},uf),n)),e}function Io(t,e,n){n.emitter.trigger("select",Object.assign(Object.assign({},sr(t,n)),{jsEvent:e?e.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function hf(t,e){e.emitter.trigger("unselect",{jsEvent:t?t.origEvent:null,view:e.viewApi||e.calendarApi.view})}function sr(t,e){let n={};for(let l of e.pluginHooks.dateSpanTransforms)Object.assign(n,l(t,e));return Object.assign(n,xf(t,e.dateEnv)),n}function Mo(t,e,n){let{dateEnv:l,options:o}=n,a=e;return t?(a=ne(a),a=l.add(a,o.defaultAllDayEventDuration)):a=l.add(a,o.defaultTimedEventDuration),a}function cr(t,e,n,l){let o=pn(t.defs,e),a=_e();for(let i in t.defs){let s=t.defs[i];a.defs[i]=mf(s,o[i],n,l)}for(let i in t.instances){let s=t.instances[i],d=a.defs[s.defId];a.instances[i]=gf(s,d,o[s.defId],n,l)}return a}function mf(t,e,n,l){let o=n.standardProps||{};o.hasEnd==null&&e.durationEditable&&(n.startDelta||n.endDelta)&&(o.hasEnd=!0);let a=Object.assign(Object.assign(Object.assign({},t),o),{ui:Object.assign(Object.assign({},t.ui),o.ui)});n.extendedProps&&(a.extendedProps=Object.assign(Object.assign({},a.extendedProps),n.extendedProps));for(let i of l.pluginHooks.eventDefMutationAppliers)i(a,n,l);return!a.hasEnd&&l.options.forceEventDuration&&(a.hasEnd=!0),a}function gf(t,e,n,l,o){let{dateEnv:a}=o,i=l.standardProps&&l.standardProps.allDay===!0,s=l.standardProps&&l.standardProps.hasEnd===!1,d=Object.assign({},t);return i&&(d.range=Eo(d.range)),l.datesDelta&&n.startEditable&&(d.range={start:a.add(d.range.start,l.datesDelta),end:a.add(d.range.end,l.datesDelta)}),l.startDelta&&n.durationEditable&&(d.range={start:a.add(d.range.start,l.startDelta),end:d.range.end}),l.endDelta&&n.durationEditable&&(d.range={start:d.range.start,end:a.add(d.range.end,l.endDelta)}),s&&(d.range={start:d.range.start,end:Mo(e.allDay,d.range.start,o)}),e.allDay&&(d.range={start:ne(d.range.start),end:ne(d.range.end)}),d.range.end<d.range.start&&(d.range.end=Mo(e.allDay,d.range.start,o)),d}class gt{constructor(e,n){this.context=e,this.internalEventSource=n}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 ie{constructor(e,n,l){this._context=e,this._def=n,this._instance=l||null}setProp(e,n){if(e in vo)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(e==="id")n=sn[e](n),this.mutate({standardProps:{publicId:n}});else if(e in sn)n=sn[e](n),this.mutate({standardProps:{[e]:n}});else if(e in dn){let l=dn[e](n);e==="color"?l={backgroundColor:n,borderColor:n}:e==="editable"?l={startEditable:n,durationEditable:n}:l={[e]:n},this.mutate({standardProps:{ui:l}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,n){this.mutate({extendedProps:{[e]:n}})}setStart(e,n={}){let{dateEnv:l}=this._context,o=l.createMarker(e);if(o&&this._instance){let a=this._instance.range,i=mt(a.start,o,l,n.granularity);n.maintainDuration?this.mutate({datesDelta:i}):this.mutate({startDelta:i})}}setEnd(e,n={}){let{dateEnv:l}=this._context,o;if(!(e!=null&&(o=l.createMarker(e),!o))&&this._instance)if(o){let a=mt(this._instance.range.end,o,l,n.granularity);this.mutate({endDelta:a})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,n,l={}){let{dateEnv:o}=this._context,a={allDay:l.allDay},i=o.createMarker(e),s;if(i&&!(n!=null&&(s=o.createMarker(n),!s))&&this._instance){let d=this._instance.range;l.allDay===!0&&(d=Eo(d));let f=mt(d.start,i,o,l.granularity);if(s){let u=mt(d.end,s,o,l.granularity);Hd(f,u)?this.mutate({datesDelta:f,standardProps:a}):this.mutate({startDelta:f,endDelta:u,standardProps:a})}else a.hasEnd=!1,this.mutate({datesDelta:f,standardProps:a})}}moveStart(e){let n=Q(e);n&&this.mutate({startDelta:n})}moveEnd(e){let n=Q(e);n&&this.mutate({endDelta:n})}moveDates(e){let n=Q(e);n&&this.mutate({datesDelta:n})}setAllDay(e,n={}){let l={allDay:e},{maintainDuration:o}=n;o==null&&(o=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(l.hasEnd=o),this.mutate({standardProps:l})}formatRange(e){let{dateEnv:n}=this._context,l=this._instance,o=ce(e);return this._def.hasEnd?n.formatRange(l.range.start,l.range.end,o,{forcedStartTzo:l.forcedStartTzo,forcedEndTzo:l.forcedEndTzo}):n.format(l.range.start,o,{forcedTzo:l.forcedStartTzo})}mutate(e){let n=this._instance;if(n){let l=this._def,o=this._context,{eventStore:a}=o.getCurrentData(),i=ar(a,n.instanceId);i=cr(i,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,o);let d=new ie(o,l,n);this._def=i.defs[l.defId],this._instance=i.instances[n.instanceId],o.dispatch({type:"MERGE_EVENTS",eventStore:i}),o.emitter.trigger("eventChange",{oldEvent:d,event:this,relatedEvents:rt(i,o,n),revert(){o.dispatch({type:"RESET_EVENTS",eventStore:a})}})}}remove(){let e=this._context,n=Oo(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:n}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:n})}})}get source(){let{sourceId:e}=this._def;return e?new gt(this._context,this._context.getCurrentData().eventSources[e]):null}get start(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null}get end(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null}get startStr(){let e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""}get endStr(){let e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo}):""}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||"auto"}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(e={}){let n=this._def,{ui:l}=n,{startStr:o,endStr:a}=this,i={allDay:n.allDay};return n.title&&(i.title=n.title),o&&(i.start=o),a&&(i.end=a),n.publicId&&(i.id=n.publicId),n.groupId&&(i.groupId=n.groupId),n.url&&(i.url=n.url),l.display&&l.display!=="auto"&&(i.display=l.display),e.collapseColor&&l.backgroundColor&&l.backgroundColor===l.borderColor?i.color=l.backgroundColor:(l.backgroundColor&&(i.backgroundColor=l.backgroundColor),l.borderColor&&(i.borderColor=l.borderColor)),l.textColor&&(i.textColor=l.textColor),l.classNames.length&&(i.classNames=l.classNames),Object.keys(n.extendedProps).length&&(e.collapseExtendedProps?Object.assign(i,n.extendedProps):i.extendedProps=n.extendedProps),i}toJSON(){return this.toPlainObject()}}function Oo(t){let e=t._def,n=t._instance;return{defs:{[e.defId]:e},instances:n?{[n.instanceId]:n}:{}}}function rt(t,e,n){let{defs:l,instances:o}=t,a=[],i=n?n.instanceId:"";for(let s in o){let d=o[s],f=l[d.defId];d.instanceId!==i&&a.push(new ie(e,f,d))}return a}function Lo(t,e,n,l){let o={},a={},i={},s=[],d=[],f=pn(t.defs,e);for(let u in t.defs){let g=t.defs[u];f[g.defId].display==="inverse-background"&&(g.groupId?(o[g.groupId]=[],i[g.groupId]||(i[g.groupId]=g)):a[u]=[])}for(let u in t.instances){let g=t.instances[u],h=t.defs[g.defId],c=f[h.defId],y=g.range,m=!h.allDay&&l?ko(y,l):y,p=tt(m,n);p&&(c.display==="inverse-background"?h.groupId?o[h.groupId].push(p):a[g.defId].push(p):c.display!=="none"&&(c.display==="background"?s:d).push({def:h,ui:c,instance:g,range:p,isStart:m.start&&m.start.valueOf()===p.start.valueOf(),isEnd:m.end&&m.end.valueOf()===p.end.valueOf()}))}for(let u in o){let g=o[u],h=_o(g,n);for(let c of h){let y=i[u],m=f[y.defId];s.push({def:y,ui:m,instance:null,range:c,isStart:!1,isEnd:!1})}}for(let u in a){let g=a[u],h=_o(g,n);for(let c of h)s.push({def:t.defs[u],ui:f[u],instance:null,range:c,isStart:!1,isEnd:!1})}return{bg:s,fg:d}}function yf(t){return t.ui.display==="background"||t.ui.display==="inverse-background"}function Fo(t,e){t.fcSeg=e}function yt(t){return t.fcSeg||t.parentNode.fcSeg||null}function pn(t,e){return xe(t,n=>Ho(n,e))}function Ho(t,e){let n=[];return e[""]&&n.push(e[""]),e[t.defId]&&n.push(e[t.defId]),n.push(t.ui),Do(n)}function Po(t,e){let n=t.map(bf);return n.sort((l,o)=>Vd(l,o,e)),n.map(l=>l._seg)}function bf(t){let{eventRange:e}=t,n=e.def,l=e.instance?e.instance.range:e.range,o=l.start?l.start.valueOf():0,a=l.end?l.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:o,end:a,duration:a-o,allDay:Number(n.allDay),_seg:t})}function _f(t,e){let{pluginHooks:n}=e,l=n.isDraggableTransformers,{def:o,ui:a}=t.eventRange,i=a.startEditable;for(let s of l)i=s(i,o,a,e);return i}function Ef(t,e){return t.isStart&&t.eventRange.ui.durationEditable&&e.options.eventResizableFromStart}function kf(t,e){return t.isEnd&&t.eventRange.ui.durationEditable}function zo(t,e,n,l,o,a,i){let{dateEnv:s,options:d}=n,{displayEventTime:f,displayEventEnd:u}=d,g=t.eventRange.def,h=t.eventRange.instance;f==null&&(f=l!==!1),u==null&&(u=o!==!1);let c=h.range.start,y=h.range.end,m=a||t.start||t.eventRange.range.start,p=i||t.end||t.eventRange.range.end,_=ne(c).valueOf()===ne(m).valueOf(),b=ne(ze(y,-1)).valueOf()===ne(ze(p,-1)).valueOf();return f&&!g.allDay&&(_||b)?(m=_?c:m,p=b?y:p,u&&g.hasEnd?s.formatRange(m,p,e,{forcedStartTzo:a?null:h.forcedStartTzo,forcedEndTzo:i?null:h.forcedEndTzo}):s.format(m,e,{forcedTzo:a?null:h.forcedStartTzo})):""}function je(t,e,n){let l=t.eventRange.range;return{isPast:l.end<(n||e.start),isFuture:l.start>=(n||e.end),isToday:e&&Be(e,l.start)}}function Cf(t){let e=["fc-event"];return t.isMirror&&e.push("fc-event-mirror"),t.isDraggable&&e.push("fc-event-draggable"),(t.isStartResizable||t.isEndResizable)&&e.push("fc-event-resizable"),t.isDragging&&e.push("fc-event-dragging"),t.isResizing&&e.push("fc-event-resizing"),t.isSelected&&e.push("fc-event-selected"),t.isStart&&e.push("fc-event-start"),t.isEnd&&e.push("fc-event-end"),t.isPast&&e.push("fc-event-past"),t.isToday&&e.push("fc-event-today"),t.isFuture&&e.push("fc-event-future"),e}function $o(t){return t.instance?t.instance.instanceId:`${t.def.defId}:${t.range.start.toISOString()}`}function Uo(t,e){let{def:n,instance:l}=t.eventRange,{url:o}=n;if(o)return{href:o};let{emitter:a,options:i}=e,{eventInteractive:s}=i;return s==null&&(s=n.interactive,s==null&&(s=!!a.hasHandlers("eventClick"))),s?Zl(d=>{a.trigger("eventClick",{el:d.target,event:new ie(e,n,l),jsEvent:d,view:e.viewApi})}):{}}const vf={start:w,end:w,allDay:Boolean};function wf(t,e,n){let l=Af(t,e),{range:o}=l;if(!o.start)return null;if(!o.end){if(n==null)return null;o.end=e.add(o.start,n)}return l}function Af(t,e){let{refined:n,extra:l}=qn(t,vf),o=n.start?e.createMarkerMeta(n.start):null,a=n.end?e.createMarkerMeta(n.end):null,{allDay:i}=n;return i==null&&(i=o&&o.isTimeUnspecified&&(!a||a.isTimeUnspecified)),Object.assign({range:{start:o?o.marker:null,end:a?a.marker:null},allDay:i},l)}function Sf(t,e){return Pu(t.range,e.range)&&t.allDay===e.allDay&&Df(t,e)}function Df(t,e){for(let n in e)if(n!=="range"&&n!=="allDay"&&t[n]!==e[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}function xf(t,e){return Object.assign(Object.assign({},Wo(t.range,e,t.allDay)),{allDay:t.allDay})}function jo(t,e,n){return Object.assign(Object.assign({},Wo(t,e,n)),{timeZone:e.timeZone})}function Wo(t,e,n){return{start:e.toDate(t.start),end:e.toDate(t.end),startStr:e.formatIso(t.start,{omitTime:n}),endStr:e.formatIso(t.end,{omitTime:n})}}function Nf(t,e,n){let l=Ao({editable:!1},n),o=lr(l.refined,l.extra,"",t.allDay,!0,n);return{def:o,ui:Ho(o,e),instance:nr(o.defId,t.range),range:t.range,isStart:!0,isEnd:!0}}function Tf(t,e,n){let l=!1,o=function(s){l||(l=!0,e(s))},a=function(s){l||(l=!0,n(s))},i=t(o,a);i&&typeof i.then=="function"&&i.then(o,a)}class Go extends Error{constructor(e,n){super(e),this.response=n}}function Bf(t,e,n){t=t.toUpperCase();const l={method:t};return t==="GET"?e+=(e.indexOf("?")===-1?"?":"&")+new URLSearchParams(n):(l.body=new URLSearchParams(n),l.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(e,l).then(o=>{if(o.ok)return o.json().then(a=>[a,o],()=>{throw new Go("Failure parsing JSON",o)});throw new Go("Request failed",o)})}let dr;function Yo(){return dr==null&&(dr=Vf()),dr}function Vf(){if(typeof document>"u")return!0;let t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.innerHTML="<table><tr><td><div></div></td></tr></table>",t.querySelector("table").style.height="100px",t.querySelector("div").style.height="100%",document.body.appendChild(t);let n=t.querySelector("div").offsetHeight>0;return document.body.removeChild(t),n}class Rf extends K{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{this.setState({forPrint:!0})},this.handleAfterPrint=()=>{this.setState({forPrint:!1})}}render(){let{props:e}=this,{options:n}=e,{forPrint:l}=this.state,o=l||n.height==="auto"||n.contentHeight==="auto",a=!o&&n.height!=null?n.height:"",i=["fc",l?"fc-media-print":"fc-media-screen",`fc-direction-${n.direction}`,e.theme.getClass("root")];return Yo()||i.push("fc-liquid-hack"),e.children(i,a,o,l)}componentDidMount(){let{emitter:e}=this.props;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)}}class bt{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function If(t,e){return{component:t,el:e.el,useEventCenter:e.useEventCenter!=null?e.useEventCenter:!0,isHitComboAllowed:e.isHitComboAllowed||null}}function ur(t){return{[t.component.uid]:t}}const fr={};class Mf{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){this.trigger("_resize",!0)}setOption(e,n){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:n})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,n){let{currentDataManager:l}=this;l.currentCalendarOptionsRefiners[e]?l.emitter.on(e,n):console.warn(`Unknown listener name '${e}'`)}off(e,n){this.currentDataManager.emitter.off(e,n)}trigger(e,...n){this.currentDataManager.emitter.trigger(e,...n)}changeView(e,n){this.batchRendering(()=>{if(this.unselect(),n)if(n.start&&n.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:n});else{let{dateEnv:l}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:l.createMarker(n)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})})}zoomTo(e,n){let l=this.getCurrentData(),o;n=n||"day",o=l.viewSpecs[n]||this.getUnitViewSpec(n),this.unselect(),o?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:o.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let{viewSpecs:n,toolbarConfig:l}=this.getCurrentData(),o=[].concat(l.header?l.header.viewsWithButtons:[],l.footer?l.footer.viewsWithButtons:[]),a,i;for(let s in n)o.push(s);for(a=0;a<o.length;a+=1)if(i=n[o[a]],i&&i.singleUnit===e)return i;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})}nextYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})}today(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:Nt(e.calendarOptions.now,e.dateEnv)})}gotoDate(e){let n=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.createMarker(e)})}incrementDate(e){let n=this.getCurrentData(),l=Q(e);l&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.add(n.currentDate,l)}))}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,n){let{dateEnv:l}=this.getCurrentData();return l.format(l.createMarker(e),ce(n))}formatRange(e,n,l){let{dateEnv:o}=this.getCurrentData();return o.formatRange(o.createMarker(e),o.createMarker(n),ce(l),l)}formatIso(e,n){let{dateEnv:l}=this.getCurrentData();return l.formatIso(l.createMarker(e),{omitTime:n})}select(e,n){let l;n==null?e.start!=null?l=e:l={start:e,end:null}:l={start:e,end:n};let o=this.getCurrentData(),a=wf(l,o.dateEnv,Q({days:1}));a&&(this.dispatch({type:"SELECT_DATES",selection:a}),Io(a,null,o))}unselect(e){let n=this.getCurrentData();n.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),hf(e,n))}addEvent(e,n){if(e instanceof ie){let i=e._def,s=e._instance;return this.getCurrentData().eventStore.defs[i.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:or({def:i,instance:s})}),this.triggerEventAdd(e)),e}let l=this.getCurrentData(),o;if(n instanceof gt)o=n.internalEventSource;else if(typeof n=="boolean")n&&([o]=Zn(l.eventSources));else if(n!=null){let i=this.getEventSourceById(n);if(!i)return console.warn(`Could not find an event source with ID "${n}"`),null;o=i.internalEventSource}let a=wo(e,o,l,!1);if(a){let i=new ie(l,a.def,a.def.recurringDef?null:a.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:or(a)}),this.triggerEventAdd(i),i}return null}triggerEventAdd(e){let{emitter:n}=this.getCurrentData();n.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:Oo(e)})}})}getEventById(e){let n=this.getCurrentData(),{defs:l,instances:o}=n.eventStore;e=String(e);for(let a in l){let i=l[a];if(i.publicId===e){if(i.recurringDef)return new ie(n,i,null);for(let s in o){let d=o[s];if(d.defId===i.defId)return new ie(n,i,d)}}}return null}getEvents(){let e=this.getCurrentData();return rt(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),n=e.eventSources,l=[];for(let o in n)l.push(new gt(e,n[o]));return l}getEventSourceById(e){let n=this.getCurrentData(),l=n.eventSources;e=String(e);for(let o in l)if(l[o].publicId===e)return new gt(n,l[o]);return null}addEventSource(e){let n=this.getCurrentData();if(e instanceof gt)return n.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let l=xo(e,n);return l?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[l]}),new gt(n,l)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let n=Q(e);n&&this.trigger("_scrollRequest",{time:n})}}function Of(t,e){return t.left>=e.left&&t.left<e.right&&t.top>=e.top&&t.top<e.bottom}function qo(t,e){let n={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)};return n.left<n.right&&n.top<n.bottom?n:!1}function Lf(t,e){return{left:Math.min(Math.max(t.left,e.left),e.right),top:Math.min(Math.max(t.top,e.top),e.bottom)}}function Ff(t){return{left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}}function Hf(t,e){return{left:t.left-e.left,top:t.top-e.top}}const pr=_e();class Pf{constructor(){this.getKeysForEventDefs=P(this._getKeysForEventDefs),this.splitDateSelection=P(this._splitDateSpan),this.splitEventStore=P(this._splitEventStore),this.splitIndividualUi=P(this._splitIndividualUi),this.splitEventDrag=P(this._splitInteraction),this.splitEventResize=P(this._splitInteraction),this.eventUiBuilders={}}splitProps(e){let n=this.getKeyInfo(e),l=this.getKeysForEventDefs(e.eventStore),o=this.splitDateSelection(e.dateSelection),a=this.splitIndividualUi(e.eventUiBases,l),i=this.splitEventStore(e.eventStore,l),s=this.splitEventDrag(e.eventDrag),d=this.splitEventResize(e.eventResize),f={};this.eventUiBuilders=xe(n,(u,g)=>this.eventUiBuilders[g]||P(zf));for(let u in n){let g=n[u],h=i[u]||pr,c=this.eventUiBuilders[u];f[u]={businessHours:g.businessHours||e.businessHours,dateSelection:o[u]||null,eventStore:h,eventUiBases:c(e.eventUiBases[""],g.ui,a[u]),eventSelection:h.instances[e.eventSelection]?e.eventSelection:"",eventDrag:s[u]||null,eventResize:d[u]||null}}return f}_splitDateSpan(e){let n={};if(e){let l=this.getKeysForDateSpan(e);for(let o of l)n[o]=e}return n}_getKeysForEventDefs(e){return xe(e.defs,n=>this.getKeysForEventDef(n))}_splitEventStore(e,n){let{defs:l,instances:o}=e,a={};for(let i in l)for(let s of n[i])a[s]||(a[s]=_e()),a[s].defs[i]=l[i];for(let i in o){let s=o[i];for(let d of n[s.defId])a[d]&&(a[d].instances[i]=s)}return a}_splitIndividualUi(e,n){let l={};for(let o in e)if(o)for(let a of n[o])l[a]||(l[a]={}),l[a][o]=e[o];return l}_splitInteraction(e){let n={};if(e){let l=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),o=this._getKeysForEventDefs(e.mutatedEvents),a=this._splitEventStore(e.mutatedEvents,o),i=s=>{n[s]||(n[s]={affectedEvents:l[s]||pr,mutatedEvents:a[s]||pr,isEvent:e.isEvent})};for(let s in l)i(s);for(let s in a)i(s)}return n}}function zf(t,e,n){let l=[];t&&l.push(t),e&&l.push(e);let o={"":Do(l)};return n&&Object.assign(o,n),o}function Qo(t,e,n,l){return{dow:t.getUTCDay(),isDisabled:!!(l&&!Be(l.activeRange,t)),isOther:!!(l&&!Be(l.currentRange,t)),isToday:!!(e&&Be(e,t)),isPast:!!(n?t<n:e&&t<e.start),isFuture:!!(n?t>n:e&&t>=e.end)}}function hr(t,e){let n=["fc-day",`fc-day-${jd[t.dow]}`];return t.isDisabled?n.push("fc-day-disabled"):(t.isToday&&(n.push("fc-day-today"),n.push(e.getClass("today"))),t.isPast&&n.push("fc-day-past"),t.isFuture&&n.push("fc-day-future"),t.isOther&&n.push("fc-day-other")),n}const $f=ce({year:"numeric",month:"long",day:"numeric"}),Uf=ce({week:"long"});function hn(t,e,n="day",l=!0){const{dateEnv:o,options:a,calendarApi:i}=t;let s=o.format(e,n==="week"?Uf:$f);if(a.navLinks){let d=o.toDate(e);const f=u=>{let g=n==="day"?a.navLinkDayClick:n==="week"?a.navLinkWeekClick:null;typeof g=="function"?g.call(i,o.toDate(e),u):(typeof g=="string"&&(n=g),i.zoomTo(e,n))};return Object.assign({title:St(a.navLinkHint,[s,d],s),"data-navlink":""},l?Ql(f):{onClick:f})}return{"aria-label":s}}let mr=null;function jf(){return mr===null&&(mr=Wf()),mr}function Wf(){let t=document.createElement("div");At(t,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),t.innerHTML="<div></div>",document.body.appendChild(t);let n=t.firstChild.getBoundingClientRect().left>t.getBoundingClientRect().left;return Fn(t),n}let gr;function Gf(){return gr||(gr=Yf()),gr}function Yf(){let t=document.createElement("div");t.style.overflow="scroll",t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t);let e=Zo(t);return document.body.removeChild(t),e}function Zo(t){return{x:t.offsetHeight-t.clientHeight,y:t.offsetWidth-t.clientWidth}}function qf(t,e=!1){let n=window.getComputedStyle(t),l=parseInt(n.borderLeftWidth,10)||0,o=parseInt(n.borderRightWidth,10)||0,a=parseInt(n.borderTopWidth,10)||0,i=parseInt(n.borderBottomWidth,10)||0,s=Zo(t),d=s.y-l-o,f=s.x-a-i,u={borderLeft:l,borderRight:o,borderTop:a,borderBottom:i,scrollbarBottom:f,scrollbarLeft:0,scrollbarRight:0};return jf()&&n.direction==="rtl"?u.scrollbarLeft=d:u.scrollbarRight=d,e&&(u.paddingLeft=parseInt(n.paddingLeft,10)||0,u.paddingRight=parseInt(n.paddingRight,10)||0,u.paddingTop=parseInt(n.paddingTop,10)||0,u.paddingBottom=parseInt(n.paddingBottom,10)||0),u}function Qf(t,e=!1,n){let l=n?t.getBoundingClientRect():yr(t),o=qf(t,e),a={left:l.left+o.borderLeft+o.scrollbarLeft,right:l.right-o.borderRight-o.scrollbarRight,top:l.top+o.borderTop,bottom:l.bottom-o.borderBottom-o.scrollbarBottom};return e&&(a.left+=o.paddingLeft,a.right-=o.paddingRight,a.top+=o.paddingTop,a.bottom-=o.paddingBottom),a}function yr(t){let e=t.getBoundingClientRect();return{left:e.left+window.pageXOffset,top:e.top+window.pageYOffset,right:e.right+window.pageXOffset,bottom:e.bottom+window.pageYOffset}}function Zf(t){let e=Xo(t),n=t.getBoundingClientRect();for(let l of e){let o=qo(n,l.getBoundingClientRect());if(o)n=o;else return null}return n}function Xo(t){let e=[];for(;t instanceof HTMLElement;){let n=window.getComputedStyle(t);if(n.position==="fixed")break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&e.push(t),t=t.parentNode}return e}class _t{constructor(e,n,l,o){this.els=n;let a=this.originClientRect=e.getBoundingClientRect();l&&this.buildElHorizontals(a.left),o&&this.buildElVerticals(a.top)}buildElHorizontals(e){let n=[],l=[];for(let o of this.els){let a=o.getBoundingClientRect();n.push(a.left-e),l.push(a.right-e)}this.lefts=n,this.rights=l}buildElVerticals(e){let n=[],l=[];for(let o of this.els){let a=o.getBoundingClientRect();n.push(a.top-e),l.push(a.bottom-e)}this.tops=n,this.bottoms=l}leftToIndex(e){let{lefts:n,rights:l}=this,o=n.length,a;for(a=0;a<o;a+=1)if(e>=n[a]&&e<l[a])return a}topToIndex(e){let{tops:n,bottoms:l}=this,o=n.length,a;for(a=0;a<o;a+=1)if(e>=n[a]&&e<l[a])return a}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return mn(this.tops||[],e.tops||[])&&mn(this.bottoms||[],e.bottoms||[])&&mn(this.lefts||[],e.lefts||[])&&mn(this.rights||[],e.rights||[])}}function mn(t,e){const n=t.length;if(n!==e.length)return!1;for(let l=0;l<n;l++)if(Math.round(t[l])!==Math.round(e[l]))return!1;return!0}class br{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 Xf extends br{constructor(e){super(),this.el=e}getScrollTop(){return this.el.scrollTop}getScrollLeft(){return this.el.scrollLeft}setScrollTop(e){this.el.scrollTop=e}setScrollLeft(e){this.el.scrollLeft=e}getScrollWidth(){return this.el.scrollWidth}getScrollHeight(){return this.el.scrollHeight}getClientHeight(){return this.el.clientHeight}getClientWidth(){return this.el.clientWidth}}class Kf extends br{getScrollTop(){return window.pageYOffset}getScrollLeft(){return window.pageXOffset}setScrollTop(e){window.scroll(window.pageXOffset,e)}setScrollLeft(e){window.scroll(e,window.pageYOffset)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class Se extends K{constructor(){super(...arguments),this.uid=Qe()}prepareHits(){}queryHit(e,n,l,o){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!ue(e,".fc-event-mirror")}isValidDateDownEl(e){return!ue(e,".fc-event:not(.fc-bg-event)")&&!ue(e,".fc-more-link")&&!ue(e,"a[data-navlink]")&&!ue(e,".fc-popover")}}class Ko{constructor(e=n=>n.thickness){this.getEntryThickness=e,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(e){let n=[];for(let l of e)this.insertEntry(l,n);return n}insertEntry(e,n){let l=this.findInsertion(e);return this.isInsertionValid(l,e)?(this.insertEntryAt(e,l),1):this.handleInvalidInsertion(l,e,n)}isInsertionValid(e,n){return(this.maxCoord===-1||e.levelCoord+this.getEntryThickness(n)<=this.maxCoord)&&(this.maxStackCnt===-1||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,n,l){return this.allowReslicing&&e.touchingEntry?this.splitEntry(n,e.touchingEntry,l):(l.push(n),0)}splitEntry(e,n,l){let o=0,a=[],i=e.span,s=n.span;return i.start<s.start&&(o+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:i.start,end:s.start}},a)),i.end>s.end&&(o+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:s.end,end:i.end}},a)),o?(l.push({index:e.index,thickness:e.thickness,span:Er(s,i)},...a),o):(l.push(e),0)}insertEntryAt(e,n){let{entriesByLevel:l,levelCoords:o}=this;n.lateral===-1?(kr(o,n.level,n.levelCoord),kr(l,n.level,[e])):kr(l[n.level],n.lateral,e),this.stackCnts[lt(e)]=n.stackCnt}findInsertion(e){let{levelCoords:n,entriesByLevel:l,strictOrder:o,stackCnts:a}=this,i=n.length,s=0,d=-1,f=-1,u=null,g=0;for(let y=0;y<i;y+=1){let m=n[y];if(!o&&m>=s+this.getEntryThickness(e))break;let p=l[y],_,b=Cr(p,e.span.start,_r),C=b[0]+b[1];for(;(_=p[C])&&_.span.start<e.span.end;){let v=m+this.getEntryThickness(_);v>s&&(s=v,u=_,d=y,f=C),v===s&&(g=Math.max(g,a[lt(_)]+1)),C+=1}}let h=0;if(u)for(h=d+1;h<i&&n[h]<s;)h+=1;let c=-1;return h<i&&n[h]===s&&(c=Cr(l[h],e.span.end,_r)[0]),{touchingLevel:d,touchingLateral:f,touchingEntry:u,stackCnt:g,levelCoord:s,level:h,lateral:c}}toRects(){let{entriesByLevel:e,levelCoords:n}=this,l=e.length,o=[];for(let a=0;a<l;a+=1){let i=e[a],s=n[a];for(let d of i)o.push(Object.assign(Object.assign({},d),{thickness:this.getEntryThickness(d),levelCoord:s}))}return o}}function _r(t){return t.span.end}function lt(t){return t.index+":"+t.span.start}function Jf(t){let e=[];for(let n of t){let l=[],o={span:n.span,entries:[n]};for(let a of e)Er(a.span,o.span)?o={entries:a.entries.concat(o.entries),span:ep(a.span,o.span)}:l.push(a);l.push(o),e=l}return e}function ep(t,e){return{start:Math.min(t.start,e.start),end:Math.max(t.end,e.end)}}function Er(t,e){let n=Math.max(t.start,e.start),l=Math.min(t.end,e.end);return n<l?{start:n,end:l}:null}function kr(t,e,n){t.splice(e,0,n)}function Cr(t,e,n){let l=0,o=t.length;if(!o||e<n(t[l]))return[0,0];if(e>n(t[o-1]))return[o,0];for(;l<o;){let a=Math.floor(l+(o-l)/2),i=n(t[a]);if(e<i)o=a;else if(e>i)l=a+1;else return[a,1]}return[l,0]}class tp{constructor(e,n){this.emitter=new fn}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}}const vr={};function np(t,e){return!t||e>10?ce({weekday:"short"}):e>1?ce({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):ce({weekday:"long"})}const Jo="fc-col-header-cell";function ea(t){return t.text}class rp extends K{render(){let{dateEnv:e,options:n,theme:l,viewApi:o}=this.context,{props:a}=this,{date:i,dateProfile:s}=a,d=Qo(i,a.todayRange,null,s),f=[Jo].concat(hr(d,l)),u=e.format(i,a.dayHeaderFormat),g=!d.isDisabled&&a.colCnt>1?hn(this.context,i):{},h=Object.assign(Object.assign(Object.assign({date:e.toDate(i),view:o},a.extraRenderProps),{text:u}),d);return E(be,{elTag:"th",elClasses:f,elAttrs:Object.assign({role:"columnheader",colSpan:a.colSpan,"data-date":d.isDisabled?void 0:Wn(i)},a.extraDataAttrs),renderProps:h,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:ea,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},c=>E("div",{className:"fc-scrollgrid-sync-inner"},!d.isDisabled&&E(c,{elTag:"a",elAttrs:g,elClasses:["fc-col-header-cell-cushion",a.isSticky&&"fc-sticky"]})))}}const lp=ce({weekday:"long"});class op extends K{render(){let{props:e}=this,{dateEnv:n,theme:l,viewApi:o,options:a}=this.context,i=fe(new Date(2592e5),e.dow),s={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},d=n.format(i,e.dayHeaderFormat),f=Object.assign(Object.assign(Object.assign(Object.assign({date:i},s),{view:o}),e.extraRenderProps),{text:d});return E(be,{elTag:"th",elClasses:[Jo,...hr(s,l),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:f,generatorName:"dayHeaderContent",customGenerator:a.dayHeaderContent,defaultGenerator:ea,classNameGenerator:a.dayHeaderClassNames,didMount:a.dayHeaderDidMount,willUnmount:a.dayHeaderWillUnmount},u=>E("div",{className:"fc-scrollgrid-sync-inner"},E(u,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":n.format(i,lp)}})))}}class Bt extends ye{constructor(e,n){super(e,n),this.initialNowDate=Nt(n.options.now,n.dateEnv),this.initialNowQueriedMs=new Date().valueOf(),this.state=this.computeTiming().currentState}render(){let{props:e,state:n}=this;return e.children(n.nowDate,n.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:e,context:n}=this,l=ze(this.initialNowDate,new Date().valueOf()-this.initialNowQueriedMs),o=n.dateEnv.startOf(l,e.unit),a=n.dateEnv.add(o,Q(1,e.unit)),i=a.valueOf()-l.valueOf();return i=Math.min(1e3*60*60*24,i),{currentState:{nowDate:o,todayRange:ta(o)},nextState:{nowDate:a,todayRange:ta(a)},waitMs:i}}setTimeout(){let{nextState:e,waitMs:n}=this.computeTiming();this.timeoutId=setTimeout(()=>{this.setState(e,()=>{this.setTimeout()})},n)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}Bt.contextType=Ne;function ta(t){let e=ne(t),n=fe(e,1);return{start:e,end:n}}class na extends K{constructor(){super(...arguments),this.createDayHeaderFormatter=P(ap)}render(){let{context:e}=this,{dates:n,dateProfile:l,datesRepDistinctDays:o,renderIntro:a}=this.props,i=this.createDayHeaderFormatter(e.options.dayHeaderFormat,o,n.length);return E(Bt,{unit:"day"},(s,d)=>E("tr",{role:"row"},a&&a("day"),n.map(f=>o?E(rp,{key:f.toISOString(),date:f,dateProfile:l,todayRange:d,colCnt:n.length,dayHeaderFormat:i}):E(op,{key:f.getUTCDay(),dow:f.getUTCDay(),dayHeaderFormat:i}))))}}function ap(t,e,n){return t||np(e,n)}class ra{constructor(e,n){let l=e.start,{end:o}=e,a=[],i=[],s=-1;for(;l<o;)n.isHiddenDay(l)?a.push(s+.5):(s+=1,a.push(s),i.push(l)),l=fe(l,1);this.dates=i,this.indices=a,this.cnt=i.length}sliceRange(e){let n=this.getDateDayIndex(e.start),l=this.getDateDayIndex(fe(e.end,-1)),o=Math.max(0,n),a=Math.min(this.cnt-1,l);return o=Math.ceil(o),a=Math.floor(a),o<=a?{firstIndex:o,lastIndex:a,isStart:n===o,isEnd:l===a}:null}getDateDayIndex(e){let{indices:n}=this,l=Math.floor(Ze(this.dates[0],e));return l<0?n[0]-1:l>=n.length?n[n.length-1]+1:n[l]}}class la{constructor(e,n){let{dates:l}=e,o,a,i;if(n){for(a=l[0].getUTCDay(),o=1;o<l.length&&l[o].getUTCDay()!==a;o+=1);i=Math.ceil(l.length/o)}else i=1,o=l.length;this.rowCnt=i,this.colCnt=o,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];for(let n=0;n<this.rowCnt;n+=1){let l=[];for(let o=0;o<this.colCnt;o+=1)l.push(this.buildCell(n,o));e.push(l)}return e}buildCell(e,n){let l=this.daySeries.dates[e*this.colCnt+n];return{key:l.toISOString(),date:l}}buildHeaderDates(){let e=[];for(let n=0;n<this.colCnt;n+=1)e.push(this.cells[0][n].date);return e}sliceRange(e){let{colCnt:n}=this,l=this.daySeries.sliceRange(e),o=[];if(l){let{firstIndex:a,lastIndex:i}=l,s=a;for(;s<=i;){let d=Math.floor(s/n),f=Math.min((d+1)*n,i+1);o.push({row:d,firstCol:s%n,lastCol:(f-1)%n,isStart:l.isStart&&s===a,isEnd:l.isEnd&&f-1===i}),s=f}}return o}}class oa{constructor(){this.sliceBusinessHours=P(this._sliceBusinessHours),this.sliceDateSelection=P(this._sliceDateSpan),this.sliceEventStore=P(this._sliceEventStore),this.sliceEventDrag=P(this._sliceInteraction),this.sliceEventResize=P(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,n,l,o,...a){let{eventUiBases:i}=e,s=this.sliceEventStore(e.eventStore,i,n,l,...a);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,n,l,i,o,...a),businessHourSegs:this.sliceBusinessHours(e.businessHours,n,l,o,...a),fgEventSegs:s.fg,bgEventSegs:s.bg,eventDrag:this.sliceEventDrag(e.eventDrag,i,n,l,...a),eventResize:this.sliceEventResize(e.eventResize,i,n,l,...a),eventSelection:e.eventSelection}}sliceNowDate(e,n,l,o,...a){return this._sliceDateSpan({range:{start:e,end:ze(e,1)},allDay:!1},n,l,{},o,...a)}_sliceBusinessHours(e,n,l,o,...a){return e?this._sliceEventStore(nt(e,gn(n,!!l),o),{},n,l,...a).bg:[]}_sliceEventStore(e,n,l,o,...a){if(e){let i=Lo(e,n,gn(l,!!o),o);return{bg:this.sliceEventRanges(i.bg,a),fg:this.sliceEventRanges(i.fg,a)}}return{bg:[],fg:[]}}_sliceInteraction(e,n,l,o,...a){if(!e)return null;let i=Lo(e.mutatedEvents,n,gn(l,!!o),o);return{segs:this.sliceEventRanges(i.fg,a),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,n,l,o,a,...i){if(!e)return[];let s=gn(n,!!l),d=tt(e.range,s);if(d){e=Object.assign(Object.assign({},e),{range:d});let f=Nf(e,o,a),u=this.sliceRange(e.range,...i);for(let g of u)g.eventRange=f;return u}return[]}sliceEventRanges(e,n){let l=[];for(let o of e)l.push(...this.sliceEventRange(o,n));return l}sliceEventRange(e,n){let l=e.range;this.forceDayIfListItem&&e.ui.display==="list-item"&&(l={start:l.start,end:fe(l.start,1)});let o=this.sliceRange(l,...n);for(let a of o)a.eventRange=e,a.isStart=e.isStart&&a.isStart,a.isEnd=e.isEnd&&a.isEnd;return o}}function gn(t,e){let n=t.activeRange;return e?n:{start:ze(n.start,t.slotMinTime.milliseconds),end:ze(n.end,t.slotMaxTime.milliseconds-864e5)}}function aa(t,e,n){let{instances:l}=t.mutatedEvents;for(let o in l)if(!an(e.validRange,l[o].range))return!1;return ia({eventDrag:t},n)}function ip(t,e,n){return an(e.validRange,t.range)?ia({dateSelection:t},n):!1}function ia(t,e){let n=e.getCurrentData(),l=Object.assign({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},t);return(e.pluginHooks.isPropsValid||sp)(l,e)}function sp(t,e,n={},l){return!(t.eventDrag&&!cp(t,e,n,l)||t.dateSelection&&!dp(t,e,n,l))}function cp(t,e,n,l){let o=e.getCurrentData(),a=t.eventDrag,i=a.mutatedEvents,s=i.defs,d=i.instances,f=pn(s,a.isEvent?t.eventUiBases:{"":o.selectionConfig});l&&(f=xe(f,l));let u=af(t.eventStore,a.affectedEvents.instances),g=u.defs,h=u.instances,c=pn(g,t.eventUiBases);for(let y in d){let m=d[y],p=m.range,_=f[m.defId],b=s[m.defId];if(!sa(_.constraints,p,u,t.businessHours,e))return!1;let{eventOverlap:C}=e.options,v=typeof C=="function"?C:null;for(let N in h){let x=h[N];if(tr(p,x.range)&&(c[x.defId].overlap===!1&&a.isEvent||_.overlap===!1||v&&!v(new ie(e,g[x.defId],x),new ie(e,b,m))))return!1}let I=o.eventStore;for(let N of _.allows){let x=Object.assign(Object.assign({},n),{range:m.range,allDay:b.allDay}),k=I.defs[b.defId],D=I.instances[y],S;if(k?S=new ie(e,k,D):S=new ie(e,b),!N(sr(x,e),S))return!1}}return!0}function dp(t,e,n,l){let o=t.eventStore,a=o.defs,i=o.instances,s=t.dateSelection,d=s.range,{selectionConfig:f}=e.getCurrentData();if(l&&(f=l(f)),!sa(f.constraints,d,o,t.businessHours,e))return!1;let{selectOverlap:u}=e.options,g=typeof u=="function"?u:null;for(let h in i){let c=i[h];if(tr(d,c.range)&&(f.overlap===!1||g&&!g(new ie(e,a[c.defId],c),null)))return!1}for(let h of f.allows){let c=Object.assign(Object.assign({},n),s);if(!h(sr(c,e),null))return!1}return!0}function sa(t,e,n,l,o){for(let a of t)if(!fp(up(a,e,n,l,o),e))return!1;return!0}function up(t,e,n,l,o){return t==="businessHours"?wr(nt(l,e,o)):typeof t=="string"?wr(cn(n,a=>a.groupId===t)):typeof t=="object"&&t?wr(nt(t,e,o)):[]}function wr(t){let{instances:e}=t,n=[];for(let l in e)n.push(e[l].range);return n}function fp(t,e){for(let n of t)if(an(n,e))return!0;return!1}const yn=/^(visible|hidden)$/;class pp extends K{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,Te(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:n,liquidIsAbsolute:l}=e,o=n&&l,a=["fc-scroller"];return n&&(l?a.push("fc-scroller-liquid-absolute"):a.push("fc-scroller-liquid")),E("div",{ref:this.handleEl,className:a.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:o&&-(e.overcomeLeft||0)||"",right:o&&-(e.overcomeRight||0)||"",bottom:o&&-(e.overcomeBottom||0)||"",marginLeft:!o&&-(e.overcomeLeft||0)||"",marginRight:!o&&-(e.overcomeRight||0)||"",marginBottom:!o&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)}needsXScrolling(){if(yn.test(this.props.overflowX))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:l}=e;for(let o=0;o<l.length;o+=1)if(l[o].getBoundingClientRect().width>n)return!0;return!1}needsYScrolling(){if(yn.test(this.props.overflowY))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:l}=e;for(let o=0;o<l.length;o+=1)if(l[o].getBoundingClientRect().height>n)return!0;return!1}getXScrollbarWidth(){return yn.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return yn.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class Ve{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(n,l)=>{let{depths:o,currentMap:a}=this,i=!1,s=!1;n!==null?(i=l in a,a[l]=n,o[l]=(o[l]||0)+1,s=!0):(o[l]-=1,o[l]||(delete a[l],delete this.callbackMap[l],i=!0)),this.masterCallback&&(i&&this.masterCallback(null,String(l)),s&&this.masterCallback(n,String(l)))}}createRef(e){let n=this.callbackMap[e];return n||(n=this.callbackMap[e]=l=>{this.handleValue(l,String(e))}),n}collect(e,n,l){return vu(this.currentMap,e,n,l)}getAll(){return Zn(this.currentMap)}}function hp(t){let e=Cd(t,".fc-scrollgrid-shrink"),n=0;for(let l of e)n=Math.max(n,Od(l));return Math.ceil(n)}function ca(t,e){return t.liquid&&e.liquid}function mp(t,e){return e.maxHeight!=null||ca(t,e)}function gp(t,e,n,l){let{expandRows:o}=n;return typeof e.content=="function"?e.content(n):E("table",{role:"presentation",className:[e.tableClassName,t.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:o?n.clientHeight:""}},n.tableColGroupNode,E(l?"thead":"tbody",{role:"presentation"},typeof e.rowContent=="function"?e.rowContent(n):e.rowContent))}function yp(t,e){return Pe(t,e,Ae)}function bp(t,e){let n=[];for(let l of t){let o=l.span||1;for(let a=0;a<o;a+=1)n.push(E("col",{style:{width:l.width==="shrink"?_p(e):l.width||"",minWidth:l.minWidth||""}}))}return E("colgroup",{},...n)}function _p(t){return t??4}function Ep(t){for(let e of t)if(e.width==="shrink")return!0;return!1}function kp(t,e){let n=["fc-scrollgrid",e.theme.getClass("table")];return t&&n.push("fc-scrollgrid-liquid"),n}function Cp(t,e){let n=["fc-scrollgrid-section",`fc-scrollgrid-section-${t.type}`,t.className];return e&&t.liquid&&t.maxHeight==null&&n.push("fc-scrollgrid-section-liquid"),t.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function Ar(t){return E("div",{className:"fc-scrollgrid-sticky-shim",style:{width:t.clientWidth,minWidth:t.tableMinWidth}})}function bn(t){let{stickyHeaderDates:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}function da(t){let{stickyFooterScrollbar:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}class Sr extends K{constructor(){super(...arguments),this.processCols=P(e=>e,yp),this.renderMicroColGroup=P(bp),this.scrollerRefs=new Ve,this.scrollerElRefs=new Ve(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:e,state:n,context:l}=this,o=e.sections||[],a=this.processCols(e.cols),i=this.renderMicroColGroup(a,n.shrinkWidth),s=kp(e.liquid,l);e.collapsibleWidth&&s.push("fc-scrollgrid-collapsible");let d=o.length,f=0,u,g=[],h=[],c=[];for(;f<d&&(u=o[f]).type==="header";)g.push(this.renderSection(u,i,!0)),f+=1;for(;f<d&&(u=o[f]).type==="body";)h.push(this.renderSection(u,i,!1)),f+=1;for(;f<d&&(u=o[f]).type==="footer";)c.push(this.renderSection(u,i,!0)),f+=1;let y=!Yo();const m={role:"rowgroup"};return E("table",{role:"grid",className:s.join(" "),style:{height:e.height}},!!(!y&&g.length)&&E("thead",m,...g),!!(!y&&h.length)&&E("tbody",m,...h),!!(!y&&c.length)&&E("tfoot",m,...c),y&&E("tbody",m,...g,...h,...c))}renderSection(e,n,l){return"outerContent"in e?E(re,{key:e.key},e.outerContent):E("tr",{key:e.key,role:"presentation",className:Cp(e,this.props.liquid).join(" ")},this.renderChunkTd(e,n,e.chunk,l))}renderChunkTd(e,n,l,o){if("outerContent"in l)return l.outerContent;let{props:a}=this,{forceYScrollbars:i,scrollerClientWidths:s,scrollerClientHeights:d}=this.state,f=mp(a,e),u=ca(a,e),g=a.liquid?i?"scroll":f?"auto":"hidden":"visible",h=e.key,c=gp(e,l,{tableColGroupNode:n,tableMinWidth:"",clientWidth:!a.collapsibleWidth&&s[h]!==void 0?s[h]:null,clientHeight:d[h]!==void 0?d[h]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},o);return E(o?"th":"td",{ref:l.elRef,role:"presentation"},E("div",{className:`fc-scroller-harness${u?" fc-scroller-harness-liquid":""}`},E(pp,{ref:this.scrollerRefs.createRef(h),elRef:this.scrollerElRefs.createRef(h),overflowY:g,overflowX:a.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:u,liquidIsAbsolute:!0},c)))}_handleScrollerEl(e,n){let l=vp(this.props.sections,n);l&&Te(l.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return Ep(this.props.cols)?hp(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=Gf(),{scrollerRefs:n,scrollerElRefs:l}=this,o=!1,a={},i={};for(let s in n.currentMap){let d=n.currentMap[s];if(d&&d.needsYScrolling()){o=!0;break}}for(let s of this.props.sections){let d=s.key,f=l.currentMap[d];if(f){let u=f.parentNode;a[d]=Math.floor(u.getBoundingClientRect().width-(o?e.y:0)),i[d]=Math.floor(u.getBoundingClientRect().height)}}return{forceYScrollbars:o,scrollerClientWidths:a,scrollerClientHeights:i}}}Sr.addStateEquality({scrollerClientWidths:Ae,scrollerClientHeights:Ae});function vp(t,e){for(let n of t)if(n.key===e)return n;return null}class Dr extends K{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,e&&Fo(e,this.props.seg)}}render(){const{props:e,context:n}=this,{options:l}=n,{seg:o}=e,{eventRange:a}=o,{ui:i}=a,s={event:new ie(n,a.def,a.instance),view:n.viewApi,timeText:e.timeText,textColor:i.textColor,backgroundColor:i.backgroundColor,borderColor:i.borderColor,isDraggable:!e.disableDragging&&_f(o,n),isStartResizable:!e.disableResizing&&Ef(o,n),isEndResizable:!e.disableResizing&&kf(o),isMirror:!!(e.isDragging||e.isResizing||e.isDateSelecting),isStart:!!o.isStart,isEnd:!!o.isEnd,isPast:!!e.isPast,isFuture:!!e.isFuture,isToday:!!e.isToday,isSelected:!!e.isSelected,isDragging:!!e.isDragging,isResizing:!!e.isResizing};return E(be,Object.assign({},e,{elRef:this.handleEl,elClasses:[...Cf(s),...o.eventRange.ui.classNames,...e.elClasses||[]],renderProps:s,generatorName:"eventContent",customGenerator:l.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:l.eventClassNames,didMount:l.eventDidMount,willUnmount:l.eventWillUnmount}))}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&Fo(this.el,this.props.seg)}}class ua extends K{render(){let{props:e,context:n}=this,{options:l}=n,{seg:o}=e,{ui:a}=o.eventRange,i=l.eventTimeFormat||e.defaultTimeFormat,s=zo(o,i,n,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return E(Dr,Object.assign({},e,{elTag:"a",elStyle:{borderColor:a.borderColor,backgroundColor:a.backgroundColor},elAttrs:Uo(o,n),defaultGenerator:wp,timeText:s}),(d,f)=>E(re,null,E(d,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:f.textColor}}),!!f.isStartResizable&&E("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!f.isEndResizable&&E("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function wp(t){return E("div",{className:"fc-event-main-frame"},t.timeText&&E("div",{className:"fc-event-time"},t.timeText),E("div",{className:"fc-event-title-container"},E("div",{className:"fc-event-title fc-sticky"},t.event.title||E(re,null," "))))}const xr=t=>E(Ne.Consumer,null,e=>{let{options:n}=e,l={isAxis:t.isAxis,date:e.dateEnv.toDate(t.date),view:e.viewApi};return E(be,Object.assign({},t,{elTag:t.elTag||"div",renderProps:l,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount}))}),Ap=ce({day:"numeric"});class Nr extends K{constructor(){super(...arguments),this.refineRenderProps=Jt(Sp)}render(){let{props:e,context:n}=this,{options:l}=n,o=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:n.viewApi,dateEnv:n.dateEnv,monthStartFormat:l.monthStartFormat});return E(be,Object.assign({},e,{elClasses:[...hr(o,n.theme),...e.elClasses||[]],elAttrs:Object.assign(Object.assign({},e.elAttrs),o.isDisabled?{}:{"data-date":Wn(e.date)}),renderProps:o,generatorName:"dayCellContent",customGenerator:l.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:o.isDisabled?void 0:l.dayCellClassNames,didMount:l.dayCellDidMount,willUnmount:l.dayCellWillUnmount}))}}function Tr(t){return!!(t.dayCellContent||er("dayCellContent",t))}function Sp(t){let{date:e,dateEnv:n,dateProfile:l,isMonthStart:o}=t,a=Qo(e,t.todayRange,null,l),i=t.showDayNumber?n.format(e,o?t.monthStartFormat:Ap):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(e),view:t.viewApi},a),{isMonthStart:o,dayNumberText:i}),t.extraRenderProps)}class fa extends K{render(){let{props:e}=this,{seg:n}=e;return E(Dr,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:n.eventRange.ui.backgroundColor},defaultGenerator:Dp,seg:n,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}}function Dp(t){let{title:e}=t.event;return e&&E("div",{className:"fc-event-title"},t.event.title)}function pa(t){return E("div",{className:`fc-${t}`})}const ha=t=>E(Ne.Consumer,null,e=>{let{dateEnv:n,options:l}=e,{date:o}=t,a=l.weekNumberFormat||t.defaultFormat,i=n.computeWeekNumber(o),s=n.format(o,a);return E(be,Object.assign({},t,{renderProps:{num:i,text:s,date:o},generatorName:"weekNumberContent",customGenerator:l.weekNumberContent,defaultGenerator:xp,classNameGenerator:l.weekNumberClassNames,didMount:l.weekNumberDidMount,willUnmount:l.weekNumberWillUnmount}))});function xp(t){return t.text}const Br=10;class Np extends K{constructor(){super(...arguments),this.state={titleId:Qt()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&Te(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const n=Wl(e);this.rootEl.contains(n)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{e.key==="Escape"&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:n}=this.context,{props:l,state:o}=this,a=["fc-popover",e.getClass("popover")].concat(l.extraClassNames||[]);return sd(E("div",Object.assign({},l.extraAttrs,{id:l.id,className:a.join(" "),"aria-labelledby":o.titleId,ref:this.handleRootEl}),E("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},E("span",{className:"fc-popover-title",id:o.titleId},l.title),E("span",{className:"fc-popover-close "+e.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),E("div",{className:"fc-popover-body "+e.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:e}=this.context,{alignmentEl:n,alignGridTop:l}=this.props,{rootEl:o}=this,a=Zf(n);if(a){let i=o.getBoundingClientRect(),s=l?ue(n,".fc-scrollgrid").getBoundingClientRect().top:a.top,d=e?a.right-i.width:a.left;s=Math.max(s,Br),d=Math.min(d,document.documentElement.clientWidth-Br-i.width),d=Math.max(d,Br);let f=o.offsetParent.getBoundingClientRect();At(o,{top:s-f.top,left:d-f.left})}}}class Tp extends Se{constructor(){super(...arguments),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:e,dateEnv:n}=this.context,{props:l}=this,{startDate:o,todayRange:a,dateProfile:i}=l,s=n.format(o,e.dayPopoverFormat);return E(Nr,{elRef:this.handleRootEl,date:o,dateProfile:i,todayRange:a},(d,f,u)=>E(Np,{elRef:u.ref,id:l.id,title:s,extraClassNames:["fc-more-popover"].concat(u.className||[]),extraAttrs:u,parentEl:l.parentEl,alignmentEl:l.alignmentEl,alignGridTop:l.alignGridTop,onClose:l.onClose},Tr(e)&&E(d,{elTag:"div",elClasses:["fc-more-popover-misc"]}),l.children))}queryHit(e,n,l,o){let{rootEl:a,props:i}=this;return e>=0&&e<l&&n>=0&&n<o?{dateProfile:i.dateProfile,dateSpan:Object.assign({allDay:!i.forceTimed,range:{start:i.startDate,end:i.endDate}},i.extraDateSpan),dayEl:a,rect:{left:0,top:0,right:l,bottom:o},layer:1}:null}}class ma extends K{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:Qt()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&Te(this.props.elRef,e)},this.handleClick=e=>{let{props:n,context:l}=this,{moreLinkClick:o}=l.options,a=ga(n).start;function i(s){let{def:d,instance:f,range:u}=s.eventRange;return{event:new ie(l,d,f),start:l.dateEnv.toDate(u.start),end:l.dateEnv.toDate(u.end),isStart:s.isStart,isEnd:s.isEnd}}typeof o=="function"&&(o=o({date:a,allDay:!!n.allDayDate,allSegs:n.allSegs.map(i),hiddenSegs:n.hiddenSegs.map(i),jsEvent:e,view:l.viewApi})),!o||o==="popover"?this.setState({isPopoverOpen:!0}):typeof o=="string"&&l.calendarApi.zoomTo(a,o)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:n}=this;return E(Ne.Consumer,null,l=>{let{viewApi:o,options:a,calendarApi:i}=l,{moreLinkText:s}=a,{moreCnt:d}=e,f=ga(e),u=typeof s=="function"?s.call(i,d):`+${d} ${s}`,g=St(a.moreLinkHint,[d],u),h={num:d,shortText:`+${d}`,text:u,view:o};return E(re,null,!!e.moreCnt&&E(be,{elTag:e.elTag||"a",elRef:this.handleLinkEl,elClasses:[...e.elClasses||[],"fc-more-link"],elStyle:e.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},e.elAttrs),Ql(this.handleClick)),{title:g,"aria-expanded":n.isPopoverOpen,"aria-controls":n.isPopoverOpen?n.popoverId:""}),renderProps:h,generatorName:"moreLinkContent",customGenerator:a.moreLinkContent,defaultGenerator:e.defaultGenerator||Bp,classNameGenerator:a.moreLinkClassNames,didMount:a.moreLinkDidMount,willUnmount:a.moreLinkWillUnmount},e.children),n.isPopoverOpen&&E(Tp,{id:n.popoverId,startDate:f.start,endDate:f.end,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:e.extraDateSpan,parentEl:this.parentEl,alignmentEl:e.alignmentElRef?e.alignmentElRef.current:this.linkEl,alignGridTop:e.alignGridTop,forceTimed:e.forceTimed,onClose:this.handlePopoverClose},e.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=ue(this.linkEl,".fc-view-harness"))}}function Bp(t){return t.text}function ga(t){if(t.allDayDate)return{start:t.allDayDate,end:fe(t.allDayDate,1)};let{hiddenSegs:e}=t;return{start:ya(e),end:Rp(e)}}function ya(t){return t.reduce(Vp).eventRange.range.start}function Vp(t,e){return t.eventRange.range.start<e.eventRange.range.start?t:e}function Rp(t){return t.reduce(Ip).eventRange.range.end}function Ip(t,e){return t.eventRange.range.end>e.eventRange.range.end?t:e}class Mp{constructor(){this.handlers=[]}set(e){this.currentValue=e;for(let n of this.handlers)n(e)}subscribe(e){this.handlers.push(e),this.currentValue!==void 0&&e(this.currentValue)}}class Op extends Mp{constructor(){super(...arguments),this.map=new Map}handle(e){const{map:n}=this;let l=!1;e.isActive?(n.set(e.id,e),l=!0):n.has(e.id)&&(n.delete(e.id),l=!0),l&&this.set(n)}}const Lp=[],ba={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"},_a=Object.assign(Object.assign({},ba),{buttonHints:{prev:"Previous $0",next:"Next $0",today(t,e){return e==="day"?"Today":`This ${t}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(t){return`Show ${t} more event${t===1?"":"s"}`}});function Fp(t){let e=t.length>0?t[0].code:"en",n=Lp.concat(t),l={en:_a};for(let o of n)l[o.code]=o;return{map:l,defaultCode:e}}function Ea(t,e){return typeof t=="object"&&!Array.isArray(t)?ka(t.code,[t.code],t):Hp(t,e)}function Hp(t,e){let n=[].concat(t||[]),l=Pp(n,e)||_a;return ka(t,n,l)}function Pp(t,e){for(let n=0;n<t.length;n+=1){let l=t[n].toLocaleLowerCase().split("-");for(let o=l.length;o>0;o-=1){let a=l.slice(0,o).join("-");if(e[a])return e[a]}}return null}function ka(t,e,n){let l=Qn([ba,n],["buttonText"]);delete l.code;let{week:o}=l;return delete l.week,{codeArg:t,codes:e,week:o,simpleNumberFormat:new Intl.NumberFormat(t),options:l}}function Re(t){return{id:Qe(),name:t.name,premiumReleaseDate:t.premiumReleaseDate?new Date(t.premiumReleaseDate):void 0,deps:t.deps||[],reducers:t.reducers||[],isLoadingFuncs:t.isLoadingFuncs||[],contextInit:[].concat(t.contextInit||[]),eventRefiners:t.eventRefiners||{},eventDefMemberAdders:t.eventDefMemberAdders||[],eventSourceRefiners:t.eventSourceRefiners||{},isDraggableTransformers:t.isDraggableTransformers||[],eventDragMutationMassagers:t.eventDragMutationMassagers||[],eventDefMutationAppliers:t.eventDefMutationAppliers||[],dateSelectionTransformers:t.dateSelectionTransformers||[],datePointTransforms:t.datePointTransforms||[],dateSpanTransforms:t.dateSpanTransforms||[],views:t.views||{},viewPropsTransformers:t.viewPropsTransformers||[],isPropsValid:t.isPropsValid||null,externalDefTransforms:t.externalDefTransforms||[],viewContainerAppends:t.viewContainerAppends||[],eventDropTransformers:t.eventDropTransformers||[],componentInteractions:t.componentInteractions||[],calendarInteractions:t.calendarInteractions||[],themeClasses:t.themeClasses||{},eventSourceDefs:t.eventSourceDefs||[],cmdFormatter:t.cmdFormatter,recurringTypes:t.recurringTypes||[],namedTimeZonedImpl:t.namedTimeZonedImpl,initialView:t.initialView||"",elementDraggingImpl:t.elementDraggingImpl,optionChangeHandlers:t.optionChangeHandlers||{},scrollGridImpl:t.scrollGridImpl||null,listenerRefiners:t.listenerRefiners||{},optionRefiners:t.optionRefiners||{},propSetHandlers:t.propSetHandlers||{}}}function zp(t,e){let n={},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 o(a){for(let i of a){const s=i.name,d=n[s];d===void 0?(n[s]=i.id,o(i.deps),l=Up(l,i)):d!==i.id&&console.warn(`Duplicate plugin '${s}'`)}}return t&&o(t),o(e),l}function $p(){let t=[],e=[],n;return(l,o)=>((!n||!Pe(l,t)||!Pe(o,e))&&(n=zp(l,o)),t=l,e=o,n)}function Up(t,e){return{premiumReleaseDate:jp(t.premiumReleaseDate,e.premiumReleaseDate),reducers:t.reducers.concat(e.reducers),isLoadingFuncs:t.isLoadingFuncs.concat(e.isLoadingFuncs),contextInit:t.contextInit.concat(e.contextInit),eventRefiners:Object.assign(Object.assign({},t.eventRefiners),e.eventRefiners),eventDefMemberAdders:t.eventDefMemberAdders.concat(e.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},t.eventSourceRefiners),e.eventSourceRefiners),isDraggableTransformers:t.isDraggableTransformers.concat(e.isDraggableTransformers),eventDragMutationMassagers:t.eventDragMutationMassagers.concat(e.eventDragMutationMassagers),eventDefMutationAppliers:t.eventDefMutationAppliers.concat(e.eventDefMutationAppliers),dateSelectionTransformers:t.dateSelectionTransformers.concat(e.dateSelectionTransformers),datePointTransforms:t.datePointTransforms.concat(e.datePointTransforms),dateSpanTransforms:t.dateSpanTransforms.concat(e.dateSpanTransforms),views:Object.assign(Object.assign({},t.views),e.views),viewPropsTransformers:t.viewPropsTransformers.concat(e.viewPropsTransformers),isPropsValid:e.isPropsValid||t.isPropsValid,externalDefTransforms:t.externalDefTransforms.concat(e.externalDefTransforms),viewContainerAppends:t.viewContainerAppends.concat(e.viewContainerAppends),eventDropTransformers:t.eventDropTransformers.concat(e.eventDropTransformers),calendarInteractions:t.calendarInteractions.concat(e.calendarInteractions),componentInteractions:t.componentInteractions.concat(e.componentInteractions),themeClasses:Object.assign(Object.assign({},t.themeClasses),e.themeClasses),eventSourceDefs:t.eventSourceDefs.concat(e.eventSourceDefs),cmdFormatter:e.cmdFormatter||t.cmdFormatter,recurringTypes:t.recurringTypes.concat(e.recurringTypes),namedTimeZonedImpl:e.namedTimeZonedImpl||t.namedTimeZonedImpl,initialView:t.initialView||e.initialView,elementDraggingImpl:t.elementDraggingImpl||e.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},t.optionChangeHandlers),e.optionChangeHandlers),scrollGridImpl:e.scrollGridImpl||t.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},t.listenerRefiners),e.listenerRefiners),optionRefiners:Object.assign(Object.assign({},t.optionRefiners),e.optionRefiners),propSetHandlers:Object.assign(Object.assign({},t.propSetHandlers),e.propSetHandlers)}}function jp(t,e){return t===void 0?e:e===void 0?t:new Date(Math.max(t.valueOf(),e.valueOf()))}class We extends xt{}We.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},We.prototype.baseIconClass="fc-icon",We.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"},We.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},We.prototype.iconOverrideOption="buttonIcons",We.prototype.iconOverrideCustomButtonOption="icon",We.prototype.iconOverridePrefix="fc-icon-";function Wp(t,e){let n={},l;for(l in t)Vr(l,n,t,e);for(l in e)Vr(l,n,t,e);return n}function Vr(t,e,n,l){if(e[t])return e[t];let o=Gp(t,e,n,l);return o&&(e[t]=o),o}function Gp(t,e,n,l){let o=n[t],a=l[t],i=u=>o&&o[u]!==null?o[u]:a&&a[u]!==null?a[u]:null,s=i("component"),d=i("superType"),f=null;if(d){if(d===t)throw new Error("Can't have a custom view type that references itself");f=Vr(d,e,n,l)}return!s&&f&&(s=f.component),s?{type:t,component:s,defaults:Object.assign(Object.assign({},f?f.defaults:{}),o?o.rawOptions:{}),overrides:Object.assign(Object.assign({},f?f.overrides:{}),a?a.rawOptions:{})}:null}function Ca(t){return xe(t,Yp)}function Yp(t){let e=typeof t=="function"?{component:t}:t,{component:n}=e;return e.content?n=va(e):n&&!(n.prototype instanceof K)&&(n=va(Object.assign(Object.assign({},e),{content:n}))),{superType:e.type,component:n,rawOptions:e}}function va(t){return e=>E(Ne.Consumer,null,n=>E(be,{elTag:"div",elClasses:bo(n.viewSpec),renderProps:Object.assign(Object.assign({},e),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,customGenerator:t.content,classNameGenerator:t.classNames,didMount:t.didMount,willUnmount:t.willUnmount}))}function qp(t,e,n,l){let o=Ca(t),a=Ca(e.views),i=Wp(o,a);return xe(i,s=>Qp(s,a,e,n,l))}function Qp(t,e,n,l,o){let a=t.overrides.duration||t.defaults.duration||l.duration||n.duration,i=null,s="",d="",f={};if(a&&(i=Zp(a),i)){let h=Un(i);s=h.unit,h.value===1&&(d=s,f=e[s]?e[s].rawOptions:{})}let u=h=>{let c=h.buttonText||{},y=t.defaults.buttonTextKey;return y!=null&&c[y]!=null?c[y]:c[t.type]!=null?c[t.type]:c[d]!=null?c[d]:null},g=h=>{let c=h.buttonHints||{},y=t.defaults.buttonTextKey;return y!=null&&c[y]!=null?c[y]:c[t.type]!=null?c[t.type]:c[d]!=null?c[d]:null};return{type:t.type,component:t.component,duration:i,durationUnit:s,singleUnit:d,optionDefaults:t.defaults,optionOverrides:Object.assign(Object.assign({},f),t.overrides),buttonTextOverride:u(l)||u(n)||t.overrides.buttonText,buttonTextDefault:u(o)||t.defaults.buttonText||u(Dt)||t.type,buttonTitleOverride:g(l)||g(n)||t.overrides.buttonHint,buttonTitleDefault:g(o)||t.defaults.buttonHint||g(Dt)}}let wa={};function Zp(t){let e=JSON.stringify(t),n=wa[e];return n===void 0&&(n=Q(t),wa[e]=n),n}function Xp(t,e){switch(e.type){case"CHANGE_VIEW_TYPE":t=e.viewType}return t}function Kp(t,e){switch(e.type){case"SET_OPTION":return Object.assign(Object.assign({},t),{[e.optionName]:e.rawOptionValue});default:return t}}function Jp(t,e,n,l){let o;switch(e.type){case"CHANGE_VIEW_TYPE":return l.build(e.dateMarker||n);case"CHANGE_DATE":return l.build(e.dateMarker);case"PREV":if(o=l.buildPrev(t,n),o.isValid)return o;break;case"NEXT":if(o=l.buildNext(t,n),o.isValid)return o;break}return t}function eh(t,e,n){let l=e?e.activeRange:null;return Sa({},ih(t,n),l,n)}function th(t,e,n,l){let o=n?n.activeRange:null;switch(e.type){case"ADD_EVENT_SOURCES":return Sa(t,e.sources,o,l);case"REMOVE_EVENT_SOURCE":return rh(t,e.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?Da(t,o,l):t;case"FETCH_EVENT_SOURCES":return Rr(t,e.sourceIds?fo(e.sourceIds):xa(t,l),o,e.isRefetch||!1,l);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return ah(t,e.sourceId,e.fetchId,e.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return t}}function nh(t,e,n){let l=e?e.activeRange:null;return Rr(t,xa(t,n),l,!0,n)}function Aa(t){for(let e in t)if(t[e].isFetching)return!0;return!1}function Sa(t,e,n,l){let o={};for(let a of e)o[a.sourceId]=a;return n&&(o=Da(o,n,l)),Object.assign(Object.assign({},t),o)}function rh(t,e){return Je(t,n=>n.sourceId!==e)}function Da(t,e,n){return Rr(t,Je(t,l=>lh(l,e,n)),e,!1,n)}function lh(t,e,n){return Na(t,n)?!n.options.lazyFetching||!t.fetchRange||t.isFetching||e.start<t.fetchRange.start||e.end>t.fetchRange.end:!t.latestFetchId}function Rr(t,e,n,l,o){let a={};for(let i in t){let s=t[i];e[i]?a[i]=oh(s,n,l,o):a[i]=s}return a}function oh(t,e,n,l){let{options:o,calendarApi:a}=l,i=l.pluginHooks.eventSourceDefs[t.sourceDefId],s=Qe();return i.fetch({eventSource:t,range:e,isRefetch:n,context:l},d=>{let{rawEvents:f}=d;o.eventSourceSuccess&&(f=o.eventSourceSuccess.call(a,f,d.response)||f),t.success&&(f=t.success.call(a,f,d.response)||f),l.dispatch({type:"RECEIVE_EVENTS",sourceId:t.sourceId,fetchId:s,fetchRange:e,rawEvents:f})},d=>{let f=!1;o.eventSourceFailure&&(o.eventSourceFailure.call(a,d),f=!0),t.failure&&(t.failure(d),f=!0),f||console.warn(d.message,d),l.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:t.sourceId,fetchId:s,fetchRange:e,error:d})}),Object.assign(Object.assign({},t),{isFetching:!0,latestFetchId:s})}function ah(t,e,n,l){let o=t[e];return o&&n===o.latestFetchId?Object.assign(Object.assign({},t),{[e]:Object.assign(Object.assign({},o),{isFetching:!1,fetchRange:l})}):t}function xa(t,e){return Je(t,n=>Na(n,e))}function ih(t,e){let n=No(e),l=[].concat(t.eventSources||[]),o=[];t.initialEvents&&l.unshift(t.initialEvents),t.events&&l.unshift(t.events);for(let a of l){let i=xo(a,e,n);i&&o.push(i)}return o}function Na(t,e){return!e.pluginHooks.eventSourceDefs[t.sourceDefId].ignoreRange}function sh(t,e){switch(e.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return e.selection;default:return t}}function ch(t,e){switch(e.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return e.eventInstanceId;default:return t}}function dh(t,e){let n;switch(e.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=e.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function uh(t,e){let n;switch(e.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=e.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function fh(t,e,n,l,o){let a=t.headerToolbar?Ta(t.headerToolbar,t,e,n,l,o):null,i=t.footerToolbar?Ta(t.footerToolbar,t,e,n,l,o):null;return{header:a,footer:i}}function Ta(t,e,n,l,o,a){let i={},s=[],d=!1;for(let f in t){let u=t[f],g=ph(u,e,n,l,o,a);i[f]=g.widgets,s.push(...g.viewsWithButtons),d=d||g.hasTitle}return{sectionWidgets:i,viewsWithButtons:s,hasTitle:d}}function ph(t,e,n,l,o,a){let i=e.direction==="rtl",s=e.customButtons||{},d=n.buttonText||{},f=e.buttonText||{},u=n.buttonHints||{},g=e.buttonHints||{},h=t?t.split(" "):[],c=[],y=!1;return{widgets:h.map(p=>p.split(",").map(_=>{if(_==="title")return y=!0,{buttonName:_};let b,C,v,I,N,x;if(b=s[_])v=k=>{b.click&&b.click.call(k.target,k,k.target)},(I=l.getCustomButtonIconClass(b))||(I=l.getIconClass(_,i))||(N=b.text),x=b.hint||b.text;else if(C=o[_]){c.push(_),v=()=>{a.changeView(_)},(N=C.buttonTextOverride)||(I=l.getIconClass(_,i))||(N=C.buttonTextDefault);let k=C.buttonTextOverride||C.buttonTextDefault;x=St(C.buttonTitleOverride||C.buttonTitleDefault||e.viewHint,[k,_],k)}else if(a[_])if(v=()=>{a[_]()},(N=d[_])||(I=l.getIconClass(_,i))||(N=f[_]),_==="prevYear"||_==="nextYear"){let k=_==="prevYear"?"prev":"next";x=St(u[k]||g[k],[f.year||"year","year"],f[_])}else x=k=>St(u[_]||g[_],[f[k]||k,k],f[_]);return{buttonName:_,buttonClick:v,buttonIcon:I,buttonText:N,buttonHint:x}})),viewsWithButtons:c,hasTitle:y}}class hh{constructor(e,n,l){this.type=e,this.getCurrentData=n,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(e){return this.getCurrentData().options[e]}}const mh=Re({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta(t){return Array.isArray(t.events)?t.events:null},fetch(t,e){e({rawEvents:t.eventSource.meta})}}]}),gh=Re({name:"func-event-source",eventSourceDefs:[{parseMeta(t){return typeof t.events=="function"?t.events:null},fetch(t,e,n){const{dateEnv:l}=t.context,o=t.eventSource.meta;Tf(o.bind(null,jo(t.range,l)),a=>e({rawEvents:a}),n)}}]}),yh=Re({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:w,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta(t){return t.url&&(t.format==="json"||!t.format)?{url:t.url,format:"json",method:(t.method||"GET").toUpperCase(),extraParams:t.extraParams,startParam:t.startParam,endParam:t.endParam,timeZoneParam:t.timeZoneParam}:null},fetch(t,e,n){const{meta:l}=t.eventSource,o=bh(l,t.range,t.context);Bf(l.method,l.url,o).then(([a,i])=>{e({rawEvents:a,response:i})},n)}}]});function bh(t,e,n){let{dateEnv:l,options:o}=n,a,i,s,d,f={};return a=t.startParam,a==null&&(a=o.startParam),i=t.endParam,i==null&&(i=o.endParam),s=t.timeZoneParam,s==null&&(s=o.timeZoneParam),typeof t.extraParams=="function"?d=t.extraParams():d=t.extraParams||{},Object.assign(f,d),f[a]=l.formatIso(e.start),f[i]=l.formatIso(e.end),l.timeZone!=="local"&&(f[s]=l.timeZone),f}const _h=Re({name:"simple-recurring-event",recurringTypes:[{parse(t,e){if(t.daysOfWeek||t.startTime||t.endTime||t.startRecur||t.endRecur){let n={daysOfWeek:t.daysOfWeek||null,startTime:t.startTime||null,endTime:t.endTime||null,startRecur:t.startRecur?e.createMarker(t.startRecur):null,endRecur:t.endRecur?e.createMarker(t.endRecur):null},l;return t.duration&&(l=t.duration),!l&&t.startTime&&t.endTime&&(l=Pd(t.endTime,t.startTime)),{allDayGuess:!t.startTime&&!t.endTime,duration:l,typeData:n}}return null},expand(t,e,n){let l=tt(e,{start:t.startRecur,end:t.endRecur});return l?Eh(t.daysOfWeek,t.startTime,l,n):[]}}],eventRefiners:{daysOfWeek:w,startTime:Q,endTime:Q,duration:Q,startRecur:w,endRecur:w}});function Eh(t,e,n,l){let o=t?fo(t):null,a=ne(n.start),i=n.end,s=[];for(;a<i;){let d;(!o||o[a.getUTCDay()])&&(e?d=l.add(a,e):d=a,s.push(d)),a=fe(a,1)}return s}const kh=Re({name:"change-handler",optionChangeHandlers:{events(t,e){Ba([t],e)},eventSources:Ba}});function Ba(t,e){let n=Zn(e.getCurrentData().eventSources);if(n.length===1&&t.length===1&&Array.isArray(n[0]._raw)&&Array.isArray(t[0])){e.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:t[0]});return}let l=[];for(let o of t){let a=!1;for(let i=0;i<n.length;i+=1)if(n[i]._raw===o){n.splice(i,1),a=!0;break}a||l.push(o)}for(let o of n)e.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:o.sourceId});for(let o of l)e.calendarApi.addEventSource(o)}function Ch(t,e){e.emitter.trigger("datesSet",Object.assign(Object.assign({},jo(t.activeRange,e.dateEnv)),{view:e.viewApi}))}function vh(t,e){let{emitter:n}=e;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",rt(t,e))}const wh=[mh,gh,yh,_h,kh,Re({name:"misc",isLoadingFuncs:[t=>Aa(t.eventSources)],propSetHandlers:{dateProfile:Ch,eventStore:vh}})];class Ah{constructor(e,n){this.runTaskOption=e,this.drainedOption=n,this.queue=[],this.delayedRunner=new Ln(this.drain.bind(this))}request(e,n){this.queue.push(e),this.delayedRunner.request(n)}pause(e){this.delayedRunner.pause(e)}resume(e,n){this.delayedRunner.resume(e,n)}drain(){let{queue:e}=this;for(;e.length;){let n=[],l;for(;l=e.shift();)this.runTask(l),n.push(l);this.drained(n)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}}function Sh(t,e,n){let l;return/^(year|month)$/.test(t.currentRangeUnit)?l=t.currentRange:l=t.activeRange,n.formatRange(l.start,l.end,ce(e.titleFormat||Dh(t)),{isEndExclusive:t.isRangeAllDay,defaultSeparator:e.titleRangeSeparator})}function Dh(t){let{currentRangeUnit:e}=t;if(e==="year")return{year:"numeric"};if(e==="month")return{year:"numeric",month:"long"};let n=Kt(t.currentRange.start,t.currentRange.end);return n!==null&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class xh{constructor(e){this.computeCurrentViewData=P(this._computeCurrentViewData),this.organizeRawLocales=P(Fp),this.buildLocale=P(Ea),this.buildPluginHooks=$p(),this.buildDateEnv=P(Nh),this.buildTheme=P(Th),this.parseToolbars=P(fh),this.buildViewSpecs=P(qp),this.buildDateProfileGenerator=Jt(Bh),this.buildViewApi=P(Vh),this.buildViewUiProps=Jt(Mh),this.buildEventUiBySource=P(Rh,Ae),this.buildEventUiBases=P(Ih),this.parseContextBusinessHours=Jt(Oh),this.buildTitle=P(Sh),this.emitter=new fn,this.actionRunner=new Ah(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=h=>{this.actionRunner.request(h)},this.props=e,this.actionRunner.pause();let n={},l=this.computeOptionsData(e.optionOverrides,n,e.calendarApi),o=l.calendarOptions.initialView||l.pluginHooks.initialView,a=this.computeCurrentViewData(o,l,e.optionOverrides,n);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(a.options);let i=Uu(l.calendarOptions,l.dateEnv),s=a.dateProfileGenerator.build(i);Be(s.activeRange,i)||(i=s.currentRange.start);let d={dateEnv:l.dateEnv,options:l.calendarOptions,pluginHooks:l.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let h of l.pluginHooks.contextInit)h(d);let f=eh(l.calendarOptions,s,d),u={dynamicOptionOverrides:n,currentViewType:o,currentDate:i,dateProfile:s,businessHours:this.parseContextBusinessHours(d),eventSources:f,eventUiBases:{},eventStore:_e(),renderableEventStore:_e(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(d).selectionConfig},g=Object.assign(Object.assign({},d),u);for(let h of l.pluginHooks.reducers)Object.assign(u,h(null,null,g));Ir(u,d)&&this.emitter.trigger("loading",!0),this.state=u,this.updateData(),this.actionRunner.resume()}resetOptions(e,n){let{props:l}=this;n===void 0?l.optionOverrides=e:(l.optionOverrides=Object.assign(Object.assign({},l.optionOverrides||{}),e),this.optionsForRefining.push(...n)),(n===void 0||n.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:n,state:l,emitter:o}=this,a=Kp(l.dynamicOptionOverrides,e),i=this.computeOptionsData(n.optionOverrides,a,n.calendarApi),s=Xp(l.currentViewType,e),d=this.computeCurrentViewData(s,i,n.optionOverrides,a);n.calendarApi.currentDataManager=this,o.setThisContext(n.calendarApi),o.setOptions(d.options);let f={dateEnv:i.dateEnv,options:i.calendarOptions,pluginHooks:i.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:o,getCurrentData:this.getCurrentData},{currentDate:u,dateProfile:g}=l;this.data&&this.data.dateProfileGenerator!==d.dateProfileGenerator&&(g=d.dateProfileGenerator.build(u)),u=$u(u,e),g=Jp(g,e,u,d.dateProfileGenerator),(e.type==="PREV"||e.type==="NEXT"||!Be(g.currentRange,u))&&(u=g.currentRange.start);let h=th(l.eventSources,e,g,f),c=nf(l.eventStore,e,h,g,f),m=Aa(h)&&!d.options.progressiveEventRendering&&l.renderableEventStore||c,{eventUiSingleBase:p,selectionConfig:_}=this.buildViewUiProps(f),b=this.buildEventUiBySource(h),C=this.buildEventUiBases(m.defs,p,b),v={dynamicOptionOverrides:a,currentViewType:s,currentDate:u,dateProfile:g,eventSources:h,eventStore:c,renderableEventStore:m,selectionConfig:_,eventUiBases:C,businessHours:this.parseContextBusinessHours(f),dateSelection:sh(l.dateSelection,e),eventSelection:ch(l.eventSelection,e),eventDrag:dh(l.eventDrag,e),eventResize:uh(l.eventResize,e)},I=Object.assign(Object.assign({},f),v);for(let k of i.pluginHooks.reducers)Object.assign(v,k(l,e,I));let N=Ir(l,f),x=Ir(v,f);!N&&x?o.trigger("loading",!0):N&&!x&&o.trigger("loading",!1),this.state=v,n.onAction&&n.onAction(e)}updateData(){let{props:e,state:n}=this,l=this.data,o=this.computeOptionsData(e.optionOverrides,n.dynamicOptionOverrides,e.calendarApi),a=this.computeCurrentViewData(n.currentViewType,o,e.optionOverrides,n.dynamicOptionOverrides),i=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(n.dateProfile,a.options,o.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},o),a),n),s=o.pluginHooks.optionChangeHandlers,d=l&&l.calendarOptions,f=o.calendarOptions;if(d&&d!==f){d.timeZone!==f.timeZone&&(n.eventSources=i.eventSources=nh(i.eventSources,n.dateProfile,i),n.eventStore=i.eventStore=Vo(i.eventStore,l.dateEnv,i.dateEnv),n.renderableEventStore=i.renderableEventStore=Vo(i.renderableEventStore,l.dateEnv,i.dateEnv));for(let u in s)(this.optionsForHandling.indexOf(u)!==-1||d[u]!==f[u])&&s[u](f[u],i)}this.optionsForHandling=[],e.onData&&e.onData(i)}computeOptionsData(e,n,l){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&n===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:o,pluginHooks:a,localeDefaults:i,availableLocaleData:s,extra:d}=this.processRawCalendarOptions(e,n);Va(d);let f=this.buildDateEnv(o.timeZone,o.locale,o.weekNumberCalculation,o.firstDay,o.weekText,a,s,o.defaultRangeSeparator),u=this.buildViewSpecs(a.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,i),g=this.buildTheme(o,a),h=this.parseToolbars(o,this.stableOptionOverrides,g,u,l);return this.stableCalendarOptionsData={calendarOptions:o,pluginHooks:a,dateEnv:f,viewSpecs:u,theme:g,toolbarConfig:h,localeDefaults:i,availableRawLocales:s.map}}processRawCalendarOptions(e,n){let{locales:l,locale:o}=Yn([Dt,e,n]),a=this.organizeRawLocales(l),i=a.map,s=this.buildLocale(o||a.defaultCode,i).options,d=this.buildPluginHooks(e.plugins||[],wh),f=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},so),co),uo),d.listenerRefiners),d.optionRefiners),u={},g=Yn([Dt,s,e,n]),h={},c=this.currentCalendarOptionsInput,y=this.currentCalendarOptionsRefined,m=!1;for(let p in g)this.optionsForRefining.indexOf(p)===-1&&(g[p]===c[p]||Xe[p]&&p in c&&Xe[p](c[p],g[p]))?h[p]=y[p]:f[p]?(h[p]=f[p](g[p]),m=!0):u[p]=c[p];return m&&(this.currentCalendarOptionsInput=g,this.currentCalendarOptionsRefined=h,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=n),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:d,availableLocaleData:a,localeDefaults:s,extra:u}}_computeCurrentViewData(e,n,l,o){let a=n.viewSpecs[e];if(!a)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:i,extra:s}=this.processRawViewOptions(a,n.pluginHooks,n.localeDefaults,l,o);Va(s);let d=this.buildDateProfileGenerator({dateProfileGeneratorClass:a.optionDefaults.dateProfileGeneratorClass,duration:a.duration,durationUnit:a.durationUnit,usesMinMaxTime:a.optionDefaults.usesMinMaxTime,dateEnv:n.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:i.slotMinTime,slotMaxTime:i.slotMaxTime,showNonCurrentDates:i.showNonCurrentDates,dayCount:i.dayCount,dateAlignment:i.dateAlignment,dateIncrement:i.dateIncrement,hiddenDays:i.hiddenDays,weekends:i.weekends,nowInput:i.now,validRangeInput:i.validRange,visibleRangeInput:i.visibleRange,fixedWeekCount:i.fixedWeekCount}),f=this.buildViewApi(e,this.getCurrentData,n.dateEnv);return{viewSpec:a,options:i,dateProfileGenerator:d,viewApi:f}}processRawViewOptions(e,n,l,o,a){let i=Yn([Dt,e.optionDefaults,l,o,e.optionOverrides,a]),s=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},so),co),uo),_u),n.listenerRefiners),n.optionRefiners),d={},f=this.currentViewOptionsInput,u=this.currentViewOptionsRefined,g=!1,h={};for(let c in i)i[c]===f[c]||Xe[c]&&Xe[c](i[c],f[c])?d[c]=u[c]:(i[c]===this.currentCalendarOptionsInput[c]||Xe[c]&&Xe[c](i[c],this.currentCalendarOptionsInput[c])?c in this.currentCalendarOptionsRefined&&(d[c]=this.currentCalendarOptionsRefined[c]):s[c]?d[c]=s[c](i[c]):h[c]=i[c],g=!0);return g&&(this.currentViewOptionsInput=i,this.currentViewOptionsRefined=d),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:h}}}function Nh(t,e,n,l,o,a,i,s){let d=Ea(e||i.defaultCode,i.map);return new Nu({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:a.namedTimeZonedImpl,locale:d,weekNumberCalculation:n,firstDay:l,weekText:o,cmdFormatter:a.cmdFormatter,defaultSeparator:s})}function Th(t,e){let n=e.themeClasses[t.themeSystem]||We;return new n(t)}function Bh(t){let e=t.dateProfileGeneratorClass||Co;return new e(t)}function Vh(t,e,n){return new hh(t,e,n)}function Rh(t){return xe(t,e=>e.ui)}function Ih(t,e,n){let l={"":e};for(let o in t){let a=t[o];a.sourceId&&n[a.sourceId]&&(l[o]=n[a.sourceId])}return l}function Mh(t){let{options:e}=t;return{eventUiSingleBase:un({display:e.eventDisplay,editable:e.editable,startEditable:e.eventStartEditable,durationEditable:e.eventDurationEditable,constraint:e.eventConstraint,overlap:typeof e.eventOverlap=="boolean"?e.eventOverlap:void 0,allow:e.eventAllow,backgroundColor:e.eventBackgroundColor,borderColor:e.eventBorderColor,textColor:e.eventTextColor,color:e.eventColor},t),selectionConfig:un({constraint:e.selectConstraint,overlap:typeof e.selectOverlap=="boolean"?e.selectOverlap:void 0,allow:e.selectAllow},t)}}function Ir(t,e){for(let n of e.pluginHooks.isLoadingFuncs)if(n(t))return!0;return!1}function Oh(t){return ff(t.options.businessHours,t)}function Va(t,e){for(let n in t)console.warn(`Unknown option '${n}'`+(e?` for view '${e}'`:""))}class Lh extends K{render(){let e=this.props.widgetGroups.map(n=>this.renderWidgetGroup(n));return E("div",{className:"fc-toolbar-chunk"},...e)}renderWidgetGroup(e){let{props:n}=this,{theme:l}=this.context,o=[],a=!0;for(let i of e){let{buttonName:s,buttonClick:d,buttonText:f,buttonIcon:u,buttonHint:g}=i;if(s==="title")a=!1,o.push(E("h2",{className:"fc-toolbar-title",id:n.titleId},n.title));else{let h=s===n.activeButton,c=!n.isTodayEnabled&&s==="today"||!n.isPrevEnabled&&s==="prev"||!n.isNextEnabled&&s==="next",y=[`fc-${s}-button`,l.getClass("button")];h&&y.push(l.getClass("buttonActive")),o.push(E("button",{type:"button",title:typeof g=="function"?g(n.navUnit):g,disabled:c,"aria-pressed":h,className:y.join(" "),onClick:d},f||(u?E("span",{className:u,role:"img"}):"")))}}if(o.length>1){let i=a&&l.getClass("buttonGroup")||"";return E("div",{className:i},...o)}return o[0]}}class Ra extends K{render(){let{model:e,extraClassName:n}=this.props,l=!1,o,a,i=e.sectionWidgets,s=i.center;return i.left?(l=!0,o=i.left):o=i.start,i.right?(l=!0,a=i.right):a=i.end,E("div",{className:[n||"","fc-toolbar",l?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",o||[]),this.renderSection("center",s||[]),this.renderSection("end",a||[]))}renderSection(e,n){let{props:l}=this;return E(Lh,{key:e,widgetGroups:n,title:l.title,navUnit:l.navUnit,activeButton:l.activeButton,isTodayEnabled:l.isTodayEnabled,isPrevEnabled:l.isPrevEnabled,isNextEnabled:l.isNextEnabled,titleId:l.titleId})}}class Fh extends K{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,Te(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:n}=this,{aspectRatio:l}=e,o=["fc-view-harness",l||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],a="",i="";return l?n.availableWidth!==null?a=n.availableWidth/l:i=`${1/l*100}%`:a=e.height||"",E("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:o.join(" "),style:{height:a,paddingBottom:i}},e.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class Hh extends bt{constructor(e){super(e),this.handleSegClick=(n,l)=>{let{component:o}=this,{context:a}=o,i=yt(l);if(i&&o.isValidSegDownEl(n.target)){let s=ue(n.target,".fc-event-forced-url"),d=s?s.querySelector("a[href]").href:"";a.emitter.trigger("eventClick",{el:l,event:new ie(o.context,i.eventRange.def,i.eventRange.instance),jsEvent:n,view:a.viewApi}),d&&!n.defaultPrevented&&(window.location.href=d)}},this.destroy=Yl(e.el,"click",".fc-event",this.handleSegClick)}}class Ph extends bt{constructor(e){super(e),this.handleEventElRemove=n=>{n===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(n,l)=>{yt(l)&&(this.currentSegEl=l,this.triggerEvent("eventMouseEnter",n,l))},this.handleSegLeave=(n,l)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",n,l))},this.removeHoverListeners=Ad(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,n,l){let{component:o}=this,{context:a}=o,i=yt(l);(!n||o.isValidSegDownEl(n.target))&&a.emitter.trigger(e,{el:l,event:new ie(a,i.eventRange.def,i.eventRange.instance),jsEvent:n,view:a.viewApi})}}class zh extends et{constructor(){super(...arguments),this.buildViewContext=P(Vu),this.buildViewPropTransformers=P(Uh),this.buildToolbarProps=P($h),this.headerRef=he(),this.footerRef=he(),this.interactionsStore={},this.state={viewLabelId:Qt()},this.registerInteractiveComponent=(e,n)=>{let l=If(e,n),i=[Hh,Ph].concat(this.props.pluginHooks.componentInteractions).map(s=>new s(l));this.interactionsStore[e.uid]=i,fr[e.uid]=l},this.unregisterInteractiveComponent=e=>{let n=this.interactionsStore[e.uid];if(n){for(let l of n)l.destroy();delete this.interactionsStore[e.uid]}delete fr[e.uid]},this.resizeRunner=new Ln(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=e=>{let{options:n}=this.props;n.handleWindowResize&&e.target===window&&this.resizeRunner.request(n.windowResizeDelay)}}render(){let{props:e}=this,{toolbarConfig:n,options:l}=e,o=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,Nt(e.options.now,e.dateEnv),e.viewTitle),a=!1,i="",s;e.isHeightAuto||e.forPrint?i="":l.height!=null?a=!0:l.contentHeight!=null?i=l.contentHeight:s=Math.max(l.aspectRatio,.5);let d=this.buildViewContext(e.viewSpec,e.viewApi,e.options,e.dateProfileGenerator,e.dateEnv,e.theme,e.pluginHooks,e.dispatch,e.getCurrentData,e.emitter,e.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),f=n.header&&n.header.hasTitle?this.state.viewLabelId:"";return E(Ne.Provider,{value:d},n.header&&E(Ra,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:f},o)),E(Fh,{liquid:a,height:i,aspectRatio:s,labeledById:f},this.renderView(e),this.buildAppendContent()),n.footer&&E(Ra,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},o)))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(l=>new l(e)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:n}=e.pluginHooks;for(let l in n)n[l](e[l],e)}componentDidUpdate(e){let{props:n}=this,{propSetHandlers:l}=n.pluginHooks;for(let o in l)n[o]!==e[o]&&l[o](n[o],n)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this,n=e.pluginHooks.viewContainerAppends.map(l=>l(e));return E(re,{},...n)}renderView(e){let{pluginHooks:n}=e,{viewSpec:l}=e,o={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},a=this.buildViewPropTransformers(n.viewPropsTransformers);for(let s of a)Object.assign(o,s.transform(o,e));let i=l.component;return E(i,Object.assign({},o))}}function $h(t,e,n,l,o,a){let i=n.build(o,void 0,!1),s=n.buildPrev(e,l,!1),d=n.buildNext(e,l,!1);return{title:a,activeButton:t.type,navUnit:t.singleUnit,isTodayEnabled:i.isValid&&!Be(e.currentRange,o),isPrevEnabled:s.isValid,isNextEnabled:d.isValid}}function Uh(t){return t.map(e=>new e)}let jh=class extends Mf{constructor(e,n={}){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;ho(()=>{wt(E(Rf,{options:l.calendarOptions,theme:l.theme,emitter:l.emitter},(o,a,i,s)=>(this.setClassNames(o),this.setHeight(a),E(yo.Provider,{value:this.customContentRenderId},E(zh,Object.assign({isHeightAuto:i,forPrint:s},l))))),this.el)})}else this.isRendered&&(this.isRendered=!1,wt(null,this.el),this.setClassNames([]),this.setHeight(""))},gd(e),this.el=e,this.renderRunner=new Ln(this.handleRenderRequest),new xh({optionOverrides:n,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){ho(()=>{super.updateSize()})}batchRendering(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(e,n){this.currentDataManager.resetOptions(e,n)}setClassNames(e){if(!Pe(e,this.currentClassNames)){let{classList:n}=this.el;for(let l of this.currentClassNames)n.remove(l);for(let l of e)n.add(l);this.currentClassNames=e}}setHeight(e){jl(this.el,"height",e)}};const Wh={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0},Ia=r.defineComponent({props:{options:Object},data(){return{renderId:0,customRenderingMap:new Map}},methods:{getApi(){return this.calendar},buildOptions(t){return{...t,customRenderingMetaMap:qh(this.$slots),handleCustomRendering:this.handleCustomRendering}}},render(){const t=[];for(const e of this.customRenderingMap.values())t.push(r.h(Gh,{key:e.id,customRendering:e}));return r.h("div",{attrs:{"data-fc-render-id":this.renderId}},r.h(r.Fragment,t))},mounted(){const t=new Op;this.handleCustomRendering=t.handle.bind(t);const e=this.buildOptions(this.options),n=new jh(this.$el,e);this.calendar=n,n.render(),t.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:Yh()}),Gh=r.defineComponent({props:{customRendering:Object},render(){const t=this.customRendering,e=typeof t.generatorMeta=="function"?t.generatorMeta(t.renderProps):t.generatorMeta;return r.h(r.Teleport,{to:t.containerEl},e)}});function L6(t){return t}function Yh(){let t={options:{deep:!0,handler(e){let n=this.getApi();n.pauseRendering();let l=this.buildOptions(e);n.resetOptions(l),this.renderId++}}};for(let e in Wh)t[`options.${e}`]={deep:!0,handler(n){if(n!==void 0){let l=this.getApi();l.pauseRendering(),l.resetOptions({[e]:n},[e]),this.renderId++}}};return t}function qh(t){const e={};for(const n in t)e[Qh(n)]=t[n];return e}function Qh(t){return t.split("-").map((e,n)=>n?Zh(e):e).join("")}function Zh(t){return t.charAt(0).toUpperCase()+t.slice(1)}class Xh extends Se{constructor(){super(...arguments),this.headerElRef=he()}renderSimpleLayout(e,n){let{props:l,context:o}=this,a=[],i=bn(o.options);return e&&a.push({type:"header",key:"header",isSticky:i,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),a.push({type:"body",key:"body",liquid:!0,chunk:{content:n}}),E(on,{elClasses:["fc-daygrid"],viewSpec:o.viewSpec},E(Sr,{liquid:!l.isHeightAuto&&!l.forPrint,collapsibleWidth:l.forPrint,cols:[],sections:a}))}renderHScrollLayout(e,n,l,o){let a=this.context.pluginHooks.scrollGridImpl;if(!a)throw new Error("No ScrollGrid implementation");let{props:i,context:s}=this,d=!i.forPrint&&bn(s.options),f=!i.forPrint&&da(s.options),u=[];return e&&u.push({type:"header",key:"header",isSticky:d,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),u.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:n}]}),f&&u.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:Ar}]}),E(on,{elClasses:["fc-daygrid"],viewSpec:s.viewSpec},E(a,{liquid:!i.isHeightAuto&&!i.forPrint,forPrint:i.forPrint,collapsibleWidth:i.forPrint,colGroups:[{cols:[{span:l,minWidth:o}]}],sections:u}))}}function _n(t,e){let n=[];for(let l=0;l<e;l+=1)n[l]=[];for(let l of t)n[l.row].push(l);return n}function En(t,e){let n=[];for(let l=0;l<e;l+=1)n[l]=[];for(let l of t)n[l.firstCol].push(l);return n}function Ma(t,e){let n=[];if(t){for(let l=0;l<e;l+=1)n[l]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(let l of t.segs)n[l.row].segs.push(l)}else for(let l=0;l<e;l+=1)n[l]=null;return n}const Oa=ce({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function La(t){let{display:e}=t.eventRange.ui;return e==="list-item"||e==="auto"&&!t.eventRange.def.allDay&&t.firstCol===t.lastCol&&t.isStart&&t.isEnd}class Fa extends K{render(){let{props:e}=this;return E(ua,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:Oa,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}}class Ha extends K{render(){let{props:e,context:n}=this,{options:l}=n,{seg:o}=e,a=l.eventTimeFormat||Oa,i=zo(o,a,n,!0,e.defaultDisplayEventEnd);return E(Dr,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:Uo(e.seg,n),defaultGenerator:Kh,timeText:i,isResizing:!1,isDateSelecting:!1}))}}function Kh(t){return E(re,null,E("div",{className:"fc-daygrid-event-dot",style:{borderColor:t.borderColor||t.backgroundColor}}),t.timeText&&E("div",{className:"fc-event-time"},t.timeText),E("div",{className:"fc-event-title"},t.event.title||E(re,null," ")))}class Jh extends K{constructor(){super(...arguments),this.compileSegs=P(em)}render(){let{props:e}=this,{allSegs:n,invisibleSegs:l}=this.compileSegs(e.singlePlacements);return E(ma,{elClasses:["fc-daygrid-more-link"],dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:n,hiddenSegs:l,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:()=>{let o=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return E(re,null,n.map(a=>{let i=a.eventRange.instance.instanceId;return E("div",{className:"fc-daygrid-event-harness",key:i,style:{visibility:o[i]?"hidden":""}},La(a)?E(Ha,Object.assign({seg:a,isDragging:!1,isSelected:i===e.eventSelection,defaultDisplayEventEnd:!1},je(a,e.todayRange))):E(Fa,Object.assign({seg:a,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:i===e.eventSelection,defaultDisplayEventEnd:!1},je(a,e.todayRange))))}))}})}}function em(t){let e=[],n=[];for(let l of t)e.push(l.seg),l.isVisible||n.push(l.seg);return{allSegs:e,invisibleSegs:n}}const tm=ce({week:"narrow"});class nm extends Se{constructor(){super(...arguments),this.rootElRef=he(),this.state={dayNumberId:Qt()},this.handleRootEl=e=>{Te(this.rootElRef,e),Te(this.props.elRef,e)}}render(){let{context:e,props:n,state:l,rootElRef:o}=this,{options:a,dateEnv:i}=e,{date:s,dateProfile:d}=n;const f=n.showDayNumber&&lm(s,d.currentRange,i);return E(Nr,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...n.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},n.extraDataAttrs),n.showDayNumber?{"aria-labelledby":l.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:rm,date:s,dateProfile:d,todayRange:n.todayRange,showDayNumber:n.showDayNumber,isMonthStart:f,extraRenderProps:n.extraRenderProps},(u,g)=>E("div",{ref:n.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:n.minHeight}},n.showWeekNumber&&E(ha,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:hn(e,s,"week"),date:s,defaultFormat:tm}),!g.isDisabled&&(n.showDayNumber||Tr(a)||n.forceDayTop)?E("div",{className:"fc-daygrid-day-top"},E(u,{elTag:"a",elClasses:["fc-daygrid-day-number",f&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},hn(e,s)),{id:l.dayNumberId})})):n.showDayNumber?E("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},E("a",{className:"fc-daygrid-day-number"}," ")):void 0,E("div",{className:"fc-daygrid-day-events",ref:n.fgContentElRef},n.fgContent,E("div",{className:"fc-daygrid-day-bottom",style:{marginTop:n.moreMarginTop}},E(Jh,{allDayDate:s,singlePlacements:n.singlePlacements,moreCnt:n.moreCnt,alignmentElRef:o,alignGridTop:!n.showDayNumber,extraDateSpan:n.extraDateSpan,dateProfile:n.dateProfile,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,todayRange:n.todayRange}))),E("div",{className:"fc-daygrid-day-bg"},n.bgContent)))}}function rm(t){return t.dayNumberText||E(re,null," ")}function lm(t,e,n){const{start:l,end:o}=e,a=ze(o,-1),i=n.getYear(l),s=n.getMonth(l),d=n.getYear(a),f=n.getMonth(a);return!(i===d&&s===f)&&(t.valueOf()===l.valueOf()||n.getDay(t)===1&&t.valueOf()<o.valueOf())}function Pa(t){return t.eventRange.instance.instanceId+":"+t.firstCol}function za(t){return Pa(t)+":"+t.lastCol}function om(t,e,n,l,o,a,i){let s=new sm(_=>{let b=t[_.index].eventRange.instance.instanceId+":"+_.span.start+":"+(_.span.end-1);return o[b]});s.allowReslicing=!0,s.strictOrder=l,e===!0||n===!0?(s.maxCoord=a,s.hiddenConsumes=!0):typeof e=="number"?s.maxStackCnt=e:typeof n=="number"&&(s.maxStackCnt=n,s.hiddenConsumes=!0);let d=[],f=[];for(let _=0;_<t.length;_+=1){let b=t[_],C=za(b);o[C]!=null?d.push({index:_,span:{start:b.firstCol,end:b.lastCol+1}}):f.push(b)}let u=s.addSegs(d),g=s.toRects(),{singleColPlacements:h,multiColPlacements:c,leftoverMargins:y}=am(g,t,i),m=[],p=[];for(let _ of f){c[_.firstCol].push({seg:_,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let b=_.firstCol;b<=_.lastCol;b+=1)h[b].push({seg:Et(_,b,b+1,i),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let _=0;_<i.length;_+=1)m.push(0);for(let _ of u){let b=t[_.index],C=_.span;c[C.start].push({seg:Et(b,C.start,C.end,i),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let v=C.start;v<C.end;v+=1)m[v]+=1,h[v].push({seg:Et(b,v,v+1,i),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let _=0;_<i.length;_+=1)p.push(y[_]);return{singleColPlacements:h,multiColPlacements:c,moreCnts:m,moreMarginTops:p}}function am(t,e,n){let l=im(t,n.length),o=[],a=[],i=[];for(let s=0;s<n.length;s+=1){let d=l[s],f=[],u=0,g=0;for(let c of d){let y=e[c.index];f.push({seg:Et(y,s,s+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:c.levelCoord,marginTop:c.levelCoord-u}),u=c.levelCoord+c.thickness}let h=[];u=0,g=0;for(let c of d){let y=e[c.index],m=c.span.end-c.span.start>1,p=c.span.start===s;g+=c.levelCoord-u,u=c.levelCoord+c.thickness,m?(g+=c.thickness,p&&h.push({seg:Et(y,c.span.start,c.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:c.levelCoord,marginTop:0})):p&&(h.push({seg:Et(y,c.span.start,c.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:c.levelCoord,marginTop:g}),g=0)}o.push(f),a.push(h),i.push(g)}return{singleColPlacements:o,multiColPlacements:a,leftoverMargins:i}}function im(t,e){let n=[];for(let l=0;l<e;l+=1)n.push([]);for(let l of t)for(let o=l.span.start;o<l.span.end;o+=1)n[o].push(l);return n}function Et(t,e,n,l){if(t.firstCol===e&&t.lastCol===n-1)return t;let o=t.eventRange,a=o.range,i=tt(a,{start:l[e].date,end:fe(l[n-1].date,1)});return Object.assign(Object.assign({},t),{firstCol:e,lastCol:n-1,eventRange:{def:o.def,ui:Object.assign(Object.assign({},o.ui),{durationEditable:!1}),instance:o.instance,range:i},isStart:t.isStart&&i.start.valueOf()===a.start.valueOf(),isEnd:t.isEnd&&i.end.valueOf()===a.end.valueOf()})}class sm extends Ko{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){const n=super.addSegs(e),{entriesByLevel:l}=this,o=a=>!this.forceHidden[lt(a)];for(let a=0;a<l.length;a+=1)l[a]=l[a].filter(o);return n}handleInvalidInsertion(e,n,l){const{entriesByLevel:o,forceHidden:a}=this,{touchingEntry:i,touchingLevel:s,touchingLateral:d}=e;if(this.hiddenConsumes&&i){const f=lt(i);if(!a[f])if(this.allowReslicing){const u=Object.assign(Object.assign({},i),{span:Er(i.span,n.span)}),g=lt(u);a[g]=!0,o[s][d]=u,this.splitEntry(i,n,l)}else a[f]=!0,l.push(i)}return super.handleInvalidInsertion(e,n,l)}}class $a extends Se{constructor(){super(...arguments),this.cellElRefs=new Ve,this.frameElRefs=new Ve,this.fgElRefs=new Ve,this.segHarnessRefs=new Ve,this.rootElRef=he(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=e=>{e&&this.updateSizing(!0)}}render(){let{props:e,state:n,context:l}=this,{options:o}=l,a=e.cells.length,i=En(e.businessHourSegs,a),s=En(e.bgEventSegs,a),d=En(this.getHighlightSegs(),a),f=En(this.getMirrorSegs(),a),{singleColPlacements:u,multiColPlacements:g,moreCnts:h,moreMarginTops:c}=om(Po(e.fgEventSegs,o.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,o.eventOrderStrict,n.segHeights,n.maxContentHeight,e.cells),y=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return E("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map((m,p)=>{let _=this.renderFgSegs(p,e.forPrint?u[p]:g[p],e.todayRange,y),b=this.renderFgSegs(p,cm(f[p],g),e.todayRange,{},!!e.eventDrag,!!e.eventResize,!1);return E(nm,{key:m.key,elRef:this.cellElRefs.createRef(m.key),innerElRef:this.frameElRefs.createRef(m.key),dateProfile:e.dateProfile,date:m.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&p===0,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:m.extraRenderProps,extraDataAttrs:m.extraDataAttrs,extraClassNames:m.extraClassNames,extraDateSpan:m.extraDateSpan,moreCnt:h[p],moreMarginTop:c[p],singlePlacements:u[p],fgContentElRef:this.fgElRefs.createRef(m.key),fgContent:E(re,null,E(re,null,_),E(re,null,b)),bgContent:E(re,null,this.renderFillSegs(d[p],"highlight"),this.renderFillSegs(i[p],"non-business"),this.renderFillSegs(s[p],"bg-event")),minHeight:e.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,n){let l=this.props;this.updateSizing(!Ae(e,l))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:e}=this;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs}getMirrorSegs(){let{props:e}=this;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}renderFgSegs(e,n,l,o,a,i,s){let{context:d}=this,{eventSelection:f}=this.props,{framePositions:u}=this.state,g=this.props.cells.length===1,h=a||i||s,c=[];if(u)for(let y of n){let{seg:m}=y,{instanceId:p}=m.eventRange.instance,_=y.isVisible&&!o[p],b=y.isAbsolute,C="",v="";b&&(d.isRtl?(v=0,C=u.lefts[m.lastCol]-u.lefts[m.firstCol]):(C=0,v=u.rights[m.firstCol]-u.rights[m.lastCol])),c.push(E("div",{className:"fc-daygrid-event-harness"+(b?" fc-daygrid-event-harness-abs":""),key:Pa(m),ref:h?null:this.segHarnessRefs.createRef(za(m)),style:{visibility:_?"":"hidden",marginTop:b?"":y.marginTop,top:b?y.absoluteTop:"",left:C,right:v}},La(m)?E(Ha,Object.assign({seg:m,isDragging:a,isSelected:p===f,defaultDisplayEventEnd:g},je(m,l))):E(Fa,Object.assign({seg:m,isDragging:a,isResizing:i,isDateSelecting:s,isSelected:p===f,defaultDisplayEventEnd:g},je(m,l)))))}return c}renderFillSegs(e,n){let{isRtl:l}=this.context,{todayRange:o}=this.props,{framePositions:a}=this.state,i=[];if(a)for(let s of e){let d=l?{right:0,left:a.lefts[s.lastCol]-a.lefts[s.firstCol]}:{left:0,right:a.rights[s.firstCol]-a.rights[s.lastCol]};i.push(E("div",{key:$o(s.eventRange),className:"fc-daygrid-bg-harness",style:d},n==="bg-event"?E(fa,Object.assign({seg:s},je(s,o))):pa(n)))}return E(re,{},...i)}updateSizing(e){let{props:n,state:l,frameElRefs:o}=this;if(!n.forPrint&&n.clientWidth!==null){if(e){let d=n.cells.map(f=>o.currentMap[f.key]);if(d.length){let f=this.rootElRef.current,u=new _t(f,d,!0,!1);(!l.framePositions||!l.framePositions.similarTo(u))&&this.setState({framePositions:new _t(f,d,!0,!1)})}}const a=this.state.segHeights,i=this.querySegHeights(),s=n.dayMaxEvents===!0||n.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},a),i),maxContentHeight:s?this.computeMaxContentHeight():null})}}querySegHeights(){let e=this.segHarnessRefs.currentMap,n={};for(let l in e){let o=Math.round(e[l].getBoundingClientRect().height);n[l]=Math.max(n[l]||0,o)}return n}computeMaxContentHeight(){let e=this.props.cells[0].key,n=this.cellElRefs.currentMap[e],l=this.fgElRefs.currentMap[e];return n.getBoundingClientRect().bottom-l.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map(n=>e[n.key])}}$a.addStateEquality({segHeights:Ae});function cm(t,e){if(!t.length)return[];let n=dm(e);return t.map(l=>({seg:l,isVisible:!0,isAbsolute:!0,absoluteTop:n[l.eventRange.instance.instanceId],marginTop:0}))}function dm(t){let e={};for(let n of t)for(let l of n)e[l.seg.eventRange.instance.instanceId]=l.absoluteTop;return e}class um extends Se{constructor(){super(...arguments),this.splitBusinessHourSegs=P(_n),this.splitBgEventSegs=P(_n),this.splitFgEventSegs=P(_n),this.splitDateSelectionSegs=P(_n),this.splitEventDrag=P(Ma),this.splitEventResize=P(Ma),this.rowRefs=new Ve}render(){let{props:e,context:n}=this,l=e.cells.length,o=this.splitBusinessHourSegs(e.businessHourSegs,l),a=this.splitBgEventSegs(e.bgEventSegs,l),i=this.splitFgEventSegs(e.fgEventSegs,l),s=this.splitDateSelectionSegs(e.dateSelectionSegs,l),d=this.splitEventDrag(e.eventDrag,l),f=this.splitEventResize(e.eventResize,l),u=l>=7&&e.clientWidth?e.clientWidth/n.options.aspectRatio/6:null;return E(Bt,{unit:"day"},(g,h)=>E(re,null,e.cells.map((c,y)=>E($a,{ref:this.rowRefs.createRef(y),key:c.length?c[0].date.toISOString():y,showDayNumbers:l>1,showWeekNumbers:e.showWeekNumbers,todayRange:h,dateProfile:e.dateProfile,cells:c,renderIntro:e.renderRowIntro,businessHourSegs:o[y],eventSelection:e.eventSelection,bgEventSegs:a[y].filter(fm),fgEventSegs:i[y],dateSelectionSegs:s[y],eventDrag:d[y],eventResize:f[y],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:u,forPrint:e.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const e=this.rowRefs.currentMap[0].getCellEls()[0],n=e?e.closest(".fc-daygrid-body"):null;n&&(this.rootEl=n,this.context.registerInteractiveComponent(this,{el:n,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new _t(this.rootEl,this.rowRefs.collect().map(e=>e.getCellEls()[0]),!1,!0),this.colPositions=new _t(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,n){let{colPositions:l,rowPositions:o}=this,a=l.leftToIndex(e),i=o.topToIndex(n);if(i!=null&&a!=null){let s=this.props.cells[i][a];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(i,a),allDay:!0},s.extraDateSpan),dayEl:this.getCellEl(i,a),rect:{left:l.lefts[a],right:l.rights[a],top:o.tops[i],bottom:o.bottoms[i]},layer:0}}return null}getCellEl(e,n){return this.rowRefs.currentMap[e].getCellEls()[n]}getCellRange(e,n){let l=this.props.cells[e][n].date,o=fe(l,1);return{start:l,end:o}}}function fm(t){return t.eventRange.def.allDay}class pm extends Se{constructor(){super(...arguments),this.elRef=he(),this.needsScrollReset=!1}render(){let{props:e}=this,{dayMaxEventRows:n,dayMaxEvents:l,expandRows:o}=e,a=l===!0||n===!0;a&&!o&&(a=!1,n=null,l=null);let i=["fc-daygrid-body",a?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",o?"":"fc-daygrid-body-natural"];return E("div",{ref:this.elRef,className:i.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},E("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:o?e.clientHeight:""}},e.colGroupNode,E("tbody",{role:"presentation"},E(um,{dateProfile:e.dateProfile,cells:e.cells,renderRowIntro:e.renderRowIntro,showWeekNumbers:e.showWeekNumbers,clientWidth:e.clientWidth,clientHeight:e.clientHeight,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,dayMaxEvents:l,dayMaxEventRows:n,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const e=hm(this.elRef.current,this.props.dateProfile);if(e){const n=e.closest(".fc-daygrid-body"),l=n.closest(".fc-scroller"),o=e.getBoundingClientRect().top-n.getBoundingClientRect().top;l.scrollTop=o?o+1:0}this.needsScrollReset=!1}}}function hm(t,e){let n;return e.currentRangeUnit.match(/year|month/)&&(n=t.querySelector(`[data-date="${nu(e.currentDate)}-01"]`)),n||(n=t.querySelector(`[data-date="${Wn(e.currentDate)}"]`)),n}class mm extends oa{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,n){return n.sliceRange(e)}}class Ua extends Se{constructor(){super(...arguments),this.slicer=new mm,this.tableRef=he()}render(){let{props:e,context:n}=this;return E(pm,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,n,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))}}class gm extends Xh{constructor(){super(...arguments),this.buildDayTableModel=P(ym),this.headerRef=he(),this.tableRef=he()}render(){let{options:e,dateProfileGenerator:n}=this.context,{props:l}=this,o=this.buildDayTableModel(l.dateProfile,n),a=e.dayHeaders&&E(na,{ref:this.headerRef,dateProfile:l.dateProfile,dates:o.headerDates,datesRepDistinctDays:o.rowCnt===1}),i=s=>E(Ua,{ref:this.tableRef,dateProfile:l.dateProfile,dayTableModel:o,businessHours:l.businessHours,dateSelection:l.dateSelection,eventStore:l.eventStore,eventUiBases:l.eventUiBases,eventSelection:l.eventSelection,eventDrag:l.eventDrag,eventResize:l.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:s.tableColGroupNode,tableMinWidth:s.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!l.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:s.clientWidth,clientHeight:s.clientHeight,forPrint:l.forPrint});return e.dayMinWidth?this.renderHScrollLayout(a,i,o.colCnt,e.dayMinWidth):this.renderSimpleLayout(a,i)}}function ym(t,e){let n=new ra(t.renderRange,e);return new la(n,/year|month|week/.test(t.currentRangeUnit))}class bm extends Co{buildRenderRange(e,n,l){let o=super.buildRenderRange(e,n,l),{props:a}=this;return _m({currentRange:o,snapToWeek:/^(year|month)$/.test(n),fixedWeekCount:a.fixedWeekCount,dateEnv:a.dateEnv})}}function _m(t){let{dateEnv:e,currentRange:n}=t,{start:l,end:o}=n,a;if(t.snapToWeek&&(l=e.startOfWeek(l),a=e.startOfWeek(o),a.valueOf()!==o.valueOf()&&(o=eo(a,1))),t.fixedWeekCount){let i=e.startOfWeek(e.startOfMonth(fe(n.end,-1))),s=Math.ceil(Wd(i,o));o=eo(o,6-s)}return{start:l,end:o}}var Em=':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}';Mn(Em);var ja=Re({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:gm,dateProfileGeneratorClass:bm},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}}}}),km='.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}';Mn(km);class Cm extends Pf{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){return e.allDay?["allDay"]:["timed"]}getKeysForEventDef(e){return e.allDay?yf(e)?["timed","allDay"]:["allDay"]:["timed"]}}const vm=ce({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function Wa(t){let e=["fc-timegrid-slot","fc-timegrid-slot-label",t.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return E(Ne.Consumer,null,n=>{if(!t.isLabeled)return E("td",{className:e.join(" "),"data-time":t.isoTimeStr});let{dateEnv:l,options:o,viewApi:a}=n,i=o.slotLabelFormat==null?vm:Array.isArray(o.slotLabelFormat)?ce(o.slotLabelFormat[0]):ce(o.slotLabelFormat),s={level:0,time:t.time,date:l.toDate(t.date),view:a,text:l.format(t.date,i)};return E(be,{elTag:"td",elClasses:e,elAttrs:{"data-time":t.isoTimeStr},renderProps:s,generatorName:"slotLabelContent",customGenerator:o.slotLabelContent,defaultGenerator:wm,classNameGenerator:o.slotLabelClassNames,didMount:o.slotLabelDidMount,willUnmount:o.slotLabelWillUnmount},d=>E("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},E(d,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]})))})}function wm(t){return t.text}class Am extends K{render(){return this.props.slatMetas.map(e=>E("tr",{key:e.key},E(Wa,Object.assign({},e))))}}const Sm=ce({week:"short"}),Dm=5;class xm extends Se{constructor(){super(...arguments),this.allDaySplitter=new Cm,this.headerElRef=he(),this.rootElRef=he(),this.scrollerElRef=he(),this.state={slatCoords:null},this.handleScrollTopRequest=e=>{let n=this.scrollerElRef.current;n&&(n.scrollTop=e)},this.renderHeadAxis=(e,n="")=>{let{options:l}=this.context,{dateProfile:o}=this.props,a=o.renderRange,s=Ze(a.start,a.end)===1?hn(this.context,a.start,"week"):{};return l.weekNumbers&&e==="day"?E(ha,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:a.start,defaultFormat:Sm},d=>E("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:n}},E(d,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:s}))):E("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},E("div",{className:"fc-timegrid-axis-frame",style:{height:n}}))},this.renderTableRowAxis=e=>{let{options:n,viewApi:l}=this.context,o={text:n.allDayText,view:l};return E(be,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:o,generatorName:"allDayContent",customGenerator:n.allDayContent,defaultGenerator:Nm,classNameGenerator:n.allDayClassNames,didMount:n.allDayDidMount,willUnmount:n.allDayWillUnmount},a=>E("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",e==null?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:e}},E(a,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]})))},this.handleSlatCoords=e=>{this.setState({slatCoords:e})}}renderSimpleLayout(e,n,l){let{context:o,props:a}=this,i=[],s=bn(o.options);return e&&i.push({type:"header",key:"header",isSticky:s,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),n&&(i.push({type:"body",key:"all-day",chunk:{content:n}}),i.push({type:"body",key:"all-day-divider",outerContent:E("tr",{role:"presentation",className:"fc-scrollgrid-section"},E("td",{className:"fc-timegrid-divider "+o.theme.getClass("tableCellShaded")}))})),i.push({type:"body",key:"body",liquid:!0,expandRows:!!o.options.expandRows,chunk:{scrollerElRef:this.scrollerElRef,content:l}}),E(on,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:o.viewSpec},E(Sr,{liquid:!a.isHeightAuto&&!a.forPrint,collapsibleWidth:a.forPrint,cols:[{width:"shrink"}],sections:i}))}renderHScrollLayout(e,n,l,o,a,i,s){let d=this.context.pluginHooks.scrollGridImpl;if(!d)throw new Error("No ScrollGrid implementation");let{context:f,props:u}=this,g=!u.forPrint&&bn(f.options),h=!u.forPrint&&da(f.options),c=[];e&&c.push({type:"header",key:"header",isSticky:g,syncRowHeights:!0,chunks:[{key:"axis",rowContent:m=>E("tr",{role:"presentation"},this.renderHeadAxis("day",m.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),n&&(c.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:m=>E("tr",{role:"presentation"},this.renderTableRowAxis(m.rowSyncHeights[0]))},{key:"cols",content:n}]}),c.push({key:"all-day-divider",type:"body",outerContent:E("tr",{role:"presentation",className:"fc-scrollgrid-section"},E("td",{colSpan:2,className:"fc-timegrid-divider "+f.theme.getClass("tableCellShaded")}))}));let y=f.options.nowIndicator;return c.push({type:"body",key:"body",liquid:!0,expandRows:!!f.options.expandRows,chunks:[{key:"axis",content:m=>E("div",{className:"fc-timegrid-axis-chunk"},E("table",{"aria-hidden":!0,style:{height:m.expandRows?m.clientHeight:""}},m.tableColGroupNode,E("tbody",null,E(Am,{slatMetas:i}))),E("div",{className:"fc-timegrid-now-indicator-container"},E(Bt,{unit:y?"minute":"day"},p=>{let _=y&&s&&s.safeComputeTop(p);return typeof _=="number"?E(xr,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:_},isAxis:!0,date:p}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:l}]}),h&&c.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:Ar},{key:"cols",content:Ar}]}),E(on,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:f.viewSpec},E(d,{liquid:!u.isHeightAuto&&!u.forPrint,forPrint:u.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:o,minWidth:a}]}],sections:c}))}getAllDayMaxEventProps(){let{dayMaxEvents:e,dayMaxEventRows:n}=this.context.options;return(e===!0||n===!0)&&(e=void 0,n=Dm),{dayMaxEvents:e,dayMaxEventRows:n}}}function Nm(t){return t.text}class Tm{constructor(e,n,l){this.positions=e,this.dateProfile=n,this.slotDuration=l}safeComputeTop(e){let{dateProfile:n}=this;if(Be(n.currentRange,e)){let l=ne(e),o=e.valueOf()-l.valueOf();if(o>=Ce(n.slotMinTime)&&o<Ce(n.slotMaxTime))return this.computeTimeTop(Q(o))}return null}computeDateTop(e,n){return n||(n=ne(e)),this.computeTimeTop(Q(e.valueOf()-n.valueOf()))}computeTimeTop(e){let{positions:n,dateProfile:l}=this,o=n.els.length,a=(e.milliseconds-Ce(l.slotMinTime))/Ce(this.slotDuration),i,s;return a=Math.max(0,a),a=Math.min(o,a),i=Math.floor(a),i=Math.min(i,o-1),s=a-i,n.tops[i]+n.getHeight(i)*s}}class Bm extends K{render(){let{props:e,context:n}=this,{options:l}=n,{slatElRefs:o}=e;return E("tbody",null,e.slatMetas.map((a,i)=>{let s={time:a.time,date:n.dateEnv.toDate(a.date),view:n.viewApi};return E("tr",{key:a.key,ref:o.createRef(a.key)},e.axis&&E(Wa,Object.assign({},a)),E(be,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!a.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":a.isoTimeStr},renderProps:s,generatorName:"slotLaneContent",customGenerator:l.slotLaneContent,classNameGenerator:l.slotLaneClassNames,didMount:l.slotLaneDidMount,willUnmount:l.slotLaneWillUnmount}))}))}}class Vm extends K{constructor(){super(...arguments),this.rootElRef=he(),this.slatElRefs=new Ve}render(){let{props:e,context:n}=this;return E("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},E("table",{"aria-hidden":!0,className:n.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,E(Bm,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:e,props:n}=this;n.onCoords&&n.clientWidth!==null&&this.rootElRef.current.offsetHeight&&n.onCoords(new Tm(new _t(this.rootElRef.current,Rm(this.slatElRefs.currentMap,n.slatMetas),!1,!0),this.props.dateProfile,e.options.slotDuration))}}function Rm(t,e){return e.map(n=>t[n.key])}function Vt(t,e){let n=[],l;for(l=0;l<e;l+=1)n.push([]);if(t)for(l=0;l<t.length;l+=1)n[t[l].col].push(t[l]);return n}function Ga(t,e){let n=[];if(t){for(let l=0;l<e;l+=1)n[l]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(let l of t.segs)n[l.col].segs.push(l)}else for(let l=0;l<e;l+=1)n[l]=null;return n}class Im extends K{render(){let{props:e}=this;return E(ma,{elClasses:["fc-timegrid-more-link"],elStyle:{top:e.top,bottom:e.bottom},allDayDate:null,moreCnt:e.hiddenSegs.length,allSegs:e.hiddenSegs,hiddenSegs:e.hiddenSegs,extraDateSpan:e.extraDateSpan,dateProfile:e.dateProfile,todayRange:e.todayRange,popoverContent:()=>Za(e.hiddenSegs,e),defaultGenerator:Mm,forceTimed:!0},n=>E(n,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}}function Mm(t){return t.shortText}function Om(t,e,n){let l=new Ko;e!=null&&(l.strictOrder=e),n!=null&&(l.maxStackCnt=n);let o=l.addSegs(t),a=Jf(o),i=Lm(l);return i=zm(i,1),{segRects:$m(i),hiddenGroups:a}}function Lm(t){const{entriesByLevel:e}=t,n=Mr((l,o)=>l+":"+o,(l,o)=>{let a=Pm(t,l,o),i=Ya(a,n),s=e[l][o];return[Object.assign(Object.assign({},s),{nextLevelNodes:i[0]}),s.thickness+i[1]]});return Ya(e.length?{level:0,lateralStart:0,lateralEnd:e[0].length}:null,n)[0]}function Ya(t,e){if(!t)return[[],0];let{level:n,lateralStart:l,lateralEnd:o}=t,a=l,i=[];for(;a<o;)i.push(e(n,a)),a+=1;return i.sort(Fm),[i.map(Hm),i[0][1]]}function Fm(t,e){return e[1]-t[1]}function Hm(t){return t[0]}function Pm(t,e,n){let{levelCoords:l,entriesByLevel:o}=t,a=o[e][n],i=l[e]+a.thickness,s=l.length,d=e;for(;d<s&&l[d]<i;d+=1);for(;d<s;d+=1){let f=o[d],u,g=Cr(f,a.span.start,_r),h=g[0]+g[1],c=h;for(;(u=f[c])&&u.span.start<a.span.end;)c+=1;if(h<c)return{level:d,lateralStart:h,lateralEnd:c}}return null}function zm(t,e){const n=Mr((l,o,a)=>lt(l),(l,o,a)=>{let{nextLevelNodes:i,thickness:s}=l,d=s+a,f=s/d,u,g=[];if(!i.length)u=e;else for(let c of i)if(u===void 0){let y=n(c,o,d);u=y[0],g.push(y[1])}else{let y=n(c,u,0);g.push(y[1])}let h=(u-o)*f;return[u-h,Object.assign(Object.assign({},l),{thickness:h,nextLevelNodes:g})]});return t.map(l=>n(l,0,0)[1])}function $m(t){let e=[];const n=Mr((o,a,i)=>lt(o),(o,a,i)=>{let s=Object.assign(Object.assign({},o),{levelCoord:a,stackDepth:i,stackForward:0});return e.push(s),s.stackForward=l(o.nextLevelNodes,a+o.thickness,i+1)+1});function l(o,a,i){let s=0;for(let d of o)s=Math.max(n(d,a,i),s);return s}return l(t,0,0),e}function Mr(t,e){const n={};return(...l)=>{let o=t(...l);return o in n?n[o]:n[o]=e(...l)}}function qa(t,e,n=null,l=0){let o=[];if(n)for(let a=0;a<t.length;a+=1){let i=t[a],s=n.computeDateTop(i.start,e),d=Math.max(s+(l||0),n.computeDateTop(i.end,e));o.push({start:Math.round(s),end:Math.round(d)})}return o}function Um(t,e,n,l){let o=[],a=[];for(let f=0;f<t.length;f+=1){let u=e[f];u?o.push({index:f,thickness:1,span:u}):a.push(t[f])}let{segRects:i,hiddenGroups:s}=Om(o,n,l),d=[];for(let f of i)d.push({seg:t[f.index],rect:f});for(let f of a)d.push({seg:f,rect:null});return{segPlacements:d,hiddenGroups:s}}const jm=ce({hour:"numeric",minute:"2-digit",meridiem:!1});class Qa extends K{render(){return E(ua,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:jm}))}}class Wm extends K{constructor(){super(...arguments),this.sortEventSegs=P(Po)}render(){let{props:e,context:n}=this,{options:l}=n,o=l.selectMirror,a=e.eventDrag&&e.eventDrag.segs||e.eventResize&&e.eventResize.segs||o&&e.dateSelectionSegs||[],i=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{},s=this.sortEventSegs(e.fgEventSegs,l.eventOrder);return E(Nr,{elTag:"td",elRef:e.elRef,elClasses:["fc-timegrid-col",...e.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},e.extraDataAttrs),date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraRenderProps:e.extraRenderProps},d=>E("div",{className:"fc-timegrid-col-frame"},E("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(e.dateSelectionSegs,"highlight")),E("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(s,i,!1,!1,!1)),E("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(a,{},!!e.eventDrag,!!e.eventResize,!!o,"mirror")),E("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(e.nowIndicatorSegs)),Tr(l)&&E(d,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(e,n,l,o,a,i){let{props:s}=this;return s.forPrint?Za(e,s):this.renderPositionedFgSegs(e,n,l,o,a,i)}renderPositionedFgSegs(e,n,l,o,a,i){let{eventMaxStack:s,eventShortHeight:d,eventOrderStrict:f,eventMinHeight:u}=this.context.options,{date:g,slatCoords:h,eventSelection:c,todayRange:y,nowDate:m}=this.props,p=l||o||a,_=qa(e,g,h,u),{segPlacements:b,hiddenGroups:C}=Um(e,_,f,s);return E(re,null,this.renderHiddenGroups(C,e),b.map(v=>{let{seg:I,rect:N}=v,x=I.eventRange.instance.instanceId,k=p||!!(!n[x]&&N),D=Or(N&&N.span),S=!p&&N?this.computeSegHStyle(N):{left:0,right:0},M=!!N&&N.stackForward>0,B=!!N&&N.span.end-N.span.start<d;return E("div",{className:"fc-timegrid-event-harness"+(M?" fc-timegrid-event-harness-inset":""),key:i||x,style:Object.assign(Object.assign({visibility:k?"":"hidden"},D),S)},E(Qa,Object.assign({seg:I,isDragging:l,isResizing:o,isDateSelecting:a,isSelected:x===c,isShort:B},je(I,y,m))))}))}renderHiddenGroups(e,n){let{extraDateSpan:l,dateProfile:o,todayRange:a,nowDate:i,eventSelection:s,eventDrag:d,eventResize:f}=this.props;return E(re,null,e.map(u=>{let g=Or(u.span),h=Gm(u.entries,n);return E(Im,{key:lo(ya(h)),hiddenSegs:h,top:g.top,bottom:g.bottom,extraDateSpan:l,dateProfile:o,todayRange:a,nowDate:i,eventSelection:s,eventDrag:d,eventResize:f})}))}renderFillSegs(e,n){let{props:l,context:o}=this,i=qa(e,l.date,l.slatCoords,o.options.eventMinHeight).map((s,d)=>{let f=e[d];return E("div",{key:$o(f.eventRange),className:"fc-timegrid-bg-harness",style:Or(s)},n==="bg-event"?E(fa,Object.assign({seg:f},je(f,l.todayRange,l.nowDate))):pa(n))});return E(re,null,i)}renderNowIndicator(e){let{slatCoords:n,date:l}=this.props;return n?e.map((o,a)=>E(xr,{key:a,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:n.computeDateTop(o.start,l)},isAxis:!1,date:l})):null}computeSegHStyle(e){let{isRtl:n,options:l}=this.context,o=l.slotEventOverlap,a=e.levelCoord,i=e.levelCoord+e.thickness,s,d;o&&(i=Math.min(1,a+(i-a)*2)),n?(s=1-i,d=a):(s=a,d=1-i);let f={zIndex:e.stackDepth+1,left:s*100+"%",right:d*100+"%"};return o&&!e.stackForward&&(f[n?"marginLeft":"marginRight"]=10*2),f}}function Za(t,{todayRange:e,nowDate:n,eventSelection:l,eventDrag:o,eventResize:a}){let i=(o?o.affectedInstances:null)||(a?a.affectedInstances:null)||{};return E(re,null,t.map(s=>{let d=s.eventRange.instance.instanceId;return E("div",{key:d,style:{visibility:i[d]?"hidden":""}},E(Qa,Object.assign({seg:s,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:d===l,isShort:!1},je(s,e,n))))}))}function Or(t){return t?{top:t.start,bottom:-t.end}:{top:"",bottom:""}}function Gm(t,e){return t.map(n=>e[n.index])}class Ym extends K{constructor(){super(...arguments),this.splitFgEventSegs=P(Vt),this.splitBgEventSegs=P(Vt),this.splitBusinessHourSegs=P(Vt),this.splitNowIndicatorSegs=P(Vt),this.splitDateSelectionSegs=P(Vt),this.splitEventDrag=P(Ga),this.splitEventResize=P(Ga),this.rootElRef=he(),this.cellElRefs=new Ve}render(){let{props:e,context:n}=this,l=n.options.nowIndicator&&e.slatCoords&&e.slatCoords.safeComputeTop(e.nowDate),o=e.cells.length,a=this.splitFgEventSegs(e.fgEventSegs,o),i=this.splitBgEventSegs(e.bgEventSegs,o),s=this.splitBusinessHourSegs(e.businessHourSegs,o),d=this.splitNowIndicatorSegs(e.nowIndicatorSegs,o),f=this.splitDateSelectionSegs(e.dateSelectionSegs,o),u=this.splitEventDrag(e.eventDrag,o),g=this.splitEventResize(e.eventResize,o);return E("div",{className:"fc-timegrid-cols",ref:this.rootElRef},E("table",{role:"presentation",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,E("tbody",{role:"presentation"},E("tr",{role:"row"},e.axis&&E("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},E("div",{className:"fc-timegrid-col-frame"},E("div",{className:"fc-timegrid-now-indicator-container"},typeof l=="number"&&E(xr,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:l},isAxis:!0,date:e.nowDate})))),e.cells.map((h,c)=>E(Wm,{key:h.key,elRef:this.cellElRefs.createRef(h.key),dateProfile:e.dateProfile,date:h.date,nowDate:e.nowDate,todayRange:e.todayRange,extraRenderProps:h.extraRenderProps,extraDataAttrs:h.extraDataAttrs,extraClassNames:h.extraClassNames,extraDateSpan:h.extraDateSpan,fgEventSegs:a[c],bgEventSegs:i[c],businessHourSegs:s[c],nowIndicatorSegs:d[c],dateSelectionSegs:f[c],eventDrag:u[c],eventResize:g[c],slatCoords:e.slatCoords,eventSelection:e.eventSelection,forPrint:e.forPrint}))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:e}=this;e.onColCoords&&e.clientWidth!==null&&e.onColCoords(new _t(this.rootElRef.current,qm(this.cellElRefs.currentMap,e.cells),!0,!1))}}function qm(t,e){return e.map(n=>t[n.key])}class Qm extends Se{constructor(){super(...arguments),this.processSlotOptions=P(Zm),this.state={slatCoords:null},this.handleRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=e=>{let{onScrollTopRequest:n}=this.props,{slatCoords:l}=this.state;if(n&&l){if(e.time){let o=l.computeTimeTop(e.time);o=Math.ceil(o),o&&(o+=1),n(o)}return!0}return!1},this.handleColCoords=e=>{this.colCoords=e},this.handleSlatCoords=e=>{this.setState({slatCoords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)}}render(){let{props:e,state:n}=this;return E("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},E(Vm,{axis:e.axis,dateProfile:e.dateProfile,slatMetas:e.slatMetas,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,tableColGroupNode:e.axis?e.tableColGroupNode:null,onCoords:this.handleSlatCoords}),E(Ym,{cells:e.cells,axis:e.axis,dateProfile:e.dateProfile,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange,nowDate:e.nowDate,nowIndicatorSegs:e.nowIndicatorSegs,clientWidth:e.clientWidth,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,slatCoords:n.slatCoords,onColCoords:this.handleColCoords,forPrint:e.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(e,n){let{dateEnv:l,options:o}=this.context,{colCoords:a}=this,{dateProfile:i}=this.props,{slatCoords:s}=this.state,{snapDuration:d,snapsPerSlot:f}=this.processSlotOptions(this.props.slotDuration,o.snapDuration),u=a.leftToIndex(e),g=s.positions.topToIndex(n);if(u!=null&&g!=null){let h=this.props.cells[u],c=s.positions.tops[g],y=s.positions.getHeight(g),m=(n-c)/y,p=Math.floor(m*f),_=g*f+p,b=this.props.cells[u].date,C=zn(i.slotMinTime,zd(d,_)),v=l.add(b,C),I=l.add(v,d);return{dateProfile:i,dateSpan:Object.assign({range:{start:v,end:I},allDay:!1},h.extraDateSpan),dayEl:a.els[u],rect:{left:a.lefts[u],right:a.rights[u],top:c,bottom:c+y},layer:0}}return null}}function Zm(t,e){let n=e||t,l=$n(t,n);return l===null&&(n=t,l=1),{snapDuration:n,snapsPerSlot:l}}class Xm extends oa{sliceRange(e,n){let l=[];for(let o=0;o<n.length;o+=1){let a=tt(e,n[o]);a&&l.push({start:a.start,end:a.end,isStart:a.start.valueOf()===e.start.valueOf(),isEnd:a.end.valueOf()===e.end.valueOf(),col:o})}return l}}class Km extends Se{constructor(){super(...arguments),this.buildDayRanges=P(Jm),this.slicer=new Xm,this.timeColsRef=he()}render(){let{props:e,context:n}=this,{dateProfile:l,dayTableModel:o}=e,{nowIndicator:a,nextDayThreshold:i}=n.options,s=this.buildDayRanges(o,l,n.dateEnv);return E(Bt,{unit:a?"minute":"day"},(d,f)=>E(Qm,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(e,l,null,n,s),{forPrint:e.forPrint,axis:e.axis,dateProfile:l,slatMetas:e.slatMetas,slotDuration:e.slotDuration,cells:o.cells[0],tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,clientWidth:e.clientWidth,clientHeight:e.clientHeight,expandRows:e.expandRows,nowDate:d,nowIndicatorSegs:a&&this.slicer.sliceNowDate(d,l,i,n,s),todayRange:f,onScrollTopRequest:e.onScrollTopRequest,onSlatCoords:e.onSlatCoords})))}}function Jm(t,e,n){let l=[];for(let o of t.headerDates)l.push({start:n.add(o,e.slotMinTime),end:n.add(o,e.slotMaxTime)});return l}const Xa=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function eg(t,e,n,l,o){let a=new Date(0),i=t,s=Q(0),d=n||tg(l),f=[];for(;Ce(i)<Ce(e);){let u=o.add(a,i),g=$n(s,d)!==null;f.push({date:u,time:i,key:u.toISOString(),isoTimeStr:ru(u),isLabeled:g}),i=zn(i,l),s=zn(s,l)}return f}function tg(t){let e,n,l;for(e=Xa.length-1;e>=0;e-=1)if(n=Q(Xa[e]),l=$n(n,t),l!==null&&l>1)return n;return t}class ng extends xm{constructor(){super(...arguments),this.buildTimeColsModel=P(rg),this.buildSlatMetas=P(eg)}render(){let{options:e,dateEnv:n,dateProfileGenerator:l}=this.context,{props:o}=this,{dateProfile:a}=o,i=this.buildTimeColsModel(a,l),s=this.allDaySplitter.splitProps(o),d=this.buildSlatMetas(a.slotMinTime,a.slotMaxTime,e.slotLabelInterval,e.slotDuration,n),{dayMinWidth:f}=e,u=!f,g=f,h=e.dayHeaders&&E(na,{dates:i.headerDates,dateProfile:a,datesRepDistinctDays:!0,renderIntro:u?this.renderHeadAxis:null}),c=e.allDaySlot!==!1&&(m=>E(Ua,Object.assign({},s.allDay,{dateProfile:a,dayTableModel:i,nextDayThreshold:e.nextDayThreshold,tableMinWidth:m.tableMinWidth,colGroupNode:m.tableColGroupNode,renderRowIntro:u?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:m.clientWidth,clientHeight:m.clientHeight,forPrint:o.forPrint},this.getAllDayMaxEventProps()))),y=m=>E(Km,Object.assign({},s.timed,{dayTableModel:i,dateProfile:a,axis:u,slotDuration:e.slotDuration,slatMetas:d,forPrint:o.forPrint,tableColGroupNode:m.tableColGroupNode,tableMinWidth:m.tableMinWidth,clientWidth:m.clientWidth,clientHeight:m.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:m.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return g?this.renderHScrollLayout(h,c,y,i.colCnt,f,d,this.state.slatCoords):this.renderSimpleLayout(h,c,y)}}function rg(t,e){let n=new ra(t.renderRange,e);return new la(n,!1)}var Ka=Re({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:ng,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});vr.touchMouseIgnoreWait=500;let Lr=0,kn=0,Fr=!1;class Ja{constructor(e){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=n=>{if(!this.shouldIgnoreMouse()&&lg(n)&&this.tryStart(n)){let l=this.createEventFromMouse(n,!0);this.emitter.trigger("pointerdown",l),this.initScrollWatch(l),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=n=>{let l=this.createEventFromMouse(n);this.recordCoords(l),this.emitter.trigger("pointermove",l)},this.handleMouseUp=n=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(n)),this.cleanup()},this.handleTouchStart=n=>{if(this.tryStart(n)){this.isTouchDragging=!0;let l=this.createEventFromTouch(n,!0);this.emitter.trigger("pointerdown",l),this.initScrollWatch(l);let o=n.target;this.shouldIgnoreMove||o.addEventListener("touchmove",this.handleTouchMove),o.addEventListener("touchend",this.handleTouchEnd),o.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=n=>{let l=this.createEventFromTouch(n);this.recordCoords(l),this.emitter.trigger("pointermove",l)},this.handleTouchEnd=n=>{if(this.isDragging){let l=n.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(n)),this.cleanup(),this.isTouchDragging=!1,og()}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=n=>{if(!this.shouldIgnoreMove){let l=window.pageXOffset-this.prevScrollX+this.prevPageX,o=window.pageYOffset-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:n,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:l,pageY:o,deltaX:l-this.origPageX,deltaY:o-this.origPageY})}},this.containerEl=e,this.emitter=new fn,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),ag()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),ig()}tryStart(e){let n=this.querySubjectEl(e),l=e.target;return n&&(!this.handleSelector||ue(l,this.handleSelector))?(this.subjectEl=n,this.isDragging=!0,this.wasTouchScroll=!1,!0):!1}cleanup(){Fr=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?ue(e.target,this.selector):this.containerEl}shouldIgnoreMouse(){return Lr||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(Fr=!0)}initScrollWatch(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.pageXOffset,this.prevScrollY=window.pageYOffset)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(e,n){let l=0,o=0;return n?(this.origPageX=e.pageX,this.origPageY=e.pageY):(l=e.pageX-this.origPageX,o=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:l,deltaY:o}}createEventFromTouch(e,n){let l=e.touches,o,a,i=0,s=0;return l&&l.length?(o=l[0].pageX,a=l[0].pageY):(o=e.pageX,a=e.pageY),n?(this.origPageX=o,this.origPageY=a):(i=o-this.origPageX,s=a-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:o,pageY:a,deltaX:i,deltaY:s}}}function lg(t){return t.button===0&&!t.ctrlKey}function og(){Lr+=1,setTimeout(()=>{Lr-=1},vr.touchMouseIgnoreWait)}function ag(){kn+=1,kn===1&&window.addEventListener("touchmove",ei,{passive:!1})}function ig(){kn-=1,kn||window.removeEventListener("touchmove",ei,{passive:!1})}function ei(t){Fr&&t.preventDefault()}class sg{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(e,n,l){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=n-window.pageXOffset,this.origScreenY=l-window.pageYOffset,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(e,n){this.deltaX=e-window.pageXOffset-this.origScreenX,this.deltaY=n-window.pageYOffset-this.origScreenY,this.updateElPosition()}setIsVisible(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)}stop(e,n){let l=()=>{this.cleanup(),n()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(l,this.revertDuration):setTimeout(l,0)}doRevertAnimation(e,n){let l=this.mirrorEl,o=this.sourceEl.getBoundingClientRect();l.style.transition="top "+n+"ms,left "+n+"ms",At(l,{left:o.left,top:o.top}),Sd(l,()=>{l.style.transition="",e()})}cleanup(){this.mirrorEl&&(Fn(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&At(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let e=this.sourceElRect,n=this.mirrorEl;return n||(n=this.mirrorEl=this.sourceEl.cloneNode(!0),n.style.userSelect="none",n.style.webkitUserSelect="none",n.classList.add("fc-event-dragging"),At(n,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(n)),n}}class ti extends br{constructor(e,n){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=e,this.doesListening=n,this.scrollTop=this.origScrollTop=e.getScrollTop(),this.scrollLeft=this.origScrollLeft=e.getScrollLeft(),this.scrollWidth=e.getScrollWidth(),this.scrollHeight=e.getScrollHeight(),this.clientWidth=e.getClientWidth(),this.clientHeight=e.getClientHeight(),this.clientRect=this.computeClientRect(),this.doesListening&&this.getEventTarget().addEventListener("scroll",this.handleScroll)}destroy(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)}getScrollTop(){return this.scrollTop}getScrollLeft(){return this.scrollLeft}setScrollTop(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}}class ni extends ti{constructor(e,n){super(new Xf(e),n)}getEventTarget(){return this.scrollController.el}computeClientRect(){return Qf(this.scrollController.el)}}class cg extends ti{constructor(e){super(new Kf,e)}getEventTarget(){return window}computeClientRect(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}}handleScrollChange(){this.clientRect=this.computeClientRect()}}const ri=typeof performance=="function"?performance.now:Date.now;class dg{constructor(){this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=()=>{if(this.isAnimating){let e=this.computeBestEdge(this.pointerScreenX+window.pageXOffset,this.pointerScreenY+window.pageYOffset);if(e){let n=ri();this.handleSide(e,(n-this.msSinceRequest)/1e3),this.requestAnimation(n)}else this.isAnimating=!1}}}start(e,n,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(e,n))}handleMove(e,n){if(this.isEnabled){let l=e-window.pageXOffset,o=n-window.pageYOffset,a=this.pointerScreenY===null?0:o-this.pointerScreenY,i=this.pointerScreenX===null?0:l-this.pointerScreenX;a<0?this.everMovedUp=!0:a>0&&(this.everMovedDown=!0),i<0?this.everMovedLeft=!0:i>0&&(this.everMovedRight=!0),this.pointerScreenX=l,this.pointerScreenY=o,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(ri()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let e of this.scrollCaches)e.destroy();this.scrollCaches=null}}requestAnimation(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)}handleSide(e,n){let{scrollCache:l}=e,{edgeThreshold:o}=this,a=o-e.distance,i=a*a/(o*o)*this.maxVelocity*n,s=1;switch(e.name){case"left":s=-1;case"right":l.setScrollLeft(l.getScrollLeft()+i*s);break;case"top":s=-1;case"bottom":l.setScrollTop(l.getScrollTop()+i*s);break}}computeBestEdge(e,n){let{edgeThreshold:l}=this,o=null,a=this.scrollCaches||[];for(let i of a){let s=i.clientRect,d=e-s.left,f=s.right-e,u=n-s.top,g=s.bottom-n;d>=0&&f>=0&&u>=0&&g>=0&&(u<=l&&this.everMovedUp&&i.canScrollUp()&&(!o||o.distance>u)&&(o={scrollCache:i,name:"top",distance:u}),g<=l&&this.everMovedDown&&i.canScrollDown()&&(!o||o.distance>g)&&(o={scrollCache:i,name:"bottom",distance:g}),d<=l&&this.everMovedLeft&&i.canScrollLeft()&&(!o||o.distance>d)&&(o={scrollCache:i,name:"left",distance:d}),f<=l&&this.everMovedRight&&i.canScrollRight()&&(!o||o.distance>f)&&(o={scrollCache:i,name:"right",distance:f}))}return o}buildCaches(e){return this.queryScrollEls(e).map(n=>n===window?new cg(!1):new ni(n,!1))}queryScrollEls(e){let n=[];for(let l of this.scrollQuery)typeof l=="object"?n.push(l):n.push(...Array.prototype.slice.call(e.getRootNode().querySelectorAll(l)));return n}}class Rt extends tp{constructor(e,n){super(e),this.containerEl=e,this.delay=null,this.minDistance=0,this.touchScrollAllowed=!0,this.mirrorNeedsRevert=!1,this.isInteracting=!1,this.isDragging=!1,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.delayTimeoutId=null,this.onPointerDown=o=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,Dd(document.body),Nd(document.body),o.isTouch||o.origEvent.preventDefault(),this.emitter.trigger("pointerdown",o),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(o.subjectEl,o.pageX,o.pageY),this.startDelay(o),this.minDistance||this.handleDistanceSurpassed(o)))},this.onPointerMove=o=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",o),!this.isDistanceSurpassed){let a=this.minDistance,i,{deltaX:s,deltaY:d}=o;i=s*s+d*d,i>=a*a&&this.handleDistanceSurpassed(o)}this.isDragging&&(o.origEvent.type!=="scroll"&&(this.mirror.handleMove(o.pageX,o.pageY),this.autoScroller.handleMove(o.pageX,o.pageY)),this.emitter.trigger("dragmove",o))}},this.onPointerUp=o=>{this.isInteracting&&(this.isInteracting=!1,xd(document.body),Td(document.body),this.emitter.trigger("pointerup",o),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(o)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let l=this.pointer=new Ja(e);l.emitter.on("pointerdown",this.onPointerDown),l.emitter.on("pointermove",this.onPointerMove),l.emitter.on("pointerup",this.onPointerUp),n&&(l.selector=n),this.mirror=new sg,this.autoScroller=new dg}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(e){typeof this.delay=="number"?this.delayTimeoutId=setTimeout(()=>{this.delayTimeoutId=null,this.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)}handleDelayEnd(e){this.isDelayEnded=!0,this.tryStartDrag(e)}handleDistanceSurpassed(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)}tryStartDrag(e){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),this.touchScrollAllowed===!1&&this.pointer.cancelTouchScroll())}tryStopDrag(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))}stopDrag(e){this.isDragging=!1,this.emitter.trigger("dragend",e)}setIgnoreMove(e){this.pointer.shouldIgnoreMove=e}setMirrorIsVisible(e){this.mirror.setIsVisible(e)}setMirrorNeedsRevert(e){this.mirrorNeedsRevert=e}setAutoScrollEnabled(e){this.autoScroller.isEnabled=e}}class ug{constructor(e){this.origRect=yr(e),this.scrollCaches=Xo(e).map(n=>new ni(n,!0))}destroy(){for(let e of this.scrollCaches)e.destroy()}computeLeft(){let e=this.origRect.left;for(let n of this.scrollCaches)e+=n.origScrollLeft-n.getScrollLeft();return e}computeTop(){let e=this.origRect.top;for(let n of this.scrollCaches)e+=n.origScrollTop-n.getScrollTop();return e}isWithinClipping(e,n){let l={left:e,top:n};for(let o of this.scrollCaches)if(!fg(o.getEventTarget())&&!Of(l,o.clientRect))return!1;return!0}}function fg(t){let e=t.tagName;return e==="HTML"||e==="BODY"}class Cn{constructor(e,n){this.useSubjectCenter=!1,this.requireInitial=!0,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=l=>{let{dragging:o}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(l),this.initialHit||!this.requireInitial?(o.setIgnoreMove(!1),this.emitter.trigger("pointerdown",l)):o.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=n,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new fn}processFirstCoord(e){let n={left:e.pageX,top:e.pageY},l=n,o=e.subjectEl,a;o instanceof HTMLElement&&(a=yr(o),l=Lf(l,a));let i=this.initialHit=this.queryHitForOffset(l.left,l.top);if(i){if(this.useSubjectCenter&&a){let s=qo(a,i.rect);s&&(l=Ff(s))}this.coordAdjust=Hf(l,n)}else this.coordAdjust={left:0,top:0}}handleMove(e,n){let l=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);(n||!vn(this.movingHit,l))&&(this.movingHit=l,this.emitter.trigger("hitupdate",l,!1,e))}prepareHits(){this.offsetTrackers=xe(this.droppableStore,e=>(e.component.prepareHits(),new ug(e.el)))}releaseHits(){let{offsetTrackers:e}=this;for(let n in e)e[n].destroy();this.offsetTrackers={}}queryHitForOffset(e,n){let{droppableStore:l,offsetTrackers:o}=this,a=null;for(let i in l){let s=l[i].component,d=o[i];if(d&&d.isWithinClipping(e,n)){let f=d.computeLeft(),u=d.computeTop(),g=e-f,h=n-u,{origRect:c}=d,y=c.right-c.left,m=c.bottom-c.top;if(g>=0&&g<y&&h>=0&&h<m){let p=s.queryHit(g,h,y,m);p&&an(p.dateProfile.activeRange,p.dateSpan.range)&&(!a||p.layer>a.layer)&&(p.componentId=i,p.context=s.context,p.rect.left+=f,p.rect.right+=f,p.rect.top+=u,p.rect.bottom+=u,a=p)}}}return a}}function vn(t,e){return!t&&!e?!0:!!t!=!!e?!1:Sf(t.dateSpan,e.dateSpan)}function li(t,e){let n={};for(let l of e.pluginHooks.datePointTransforms)Object.assign(n,l(t,e));return Object.assign(n,pg(t,e.dateEnv)),n}function pg(t,e){return{date:e.toDate(t.range.start),dateStr:e.formatIso(t.range.start,{omitTime:t.allDay}),allDay:t.allDay}}class hg extends bt{constructor(e){super(e),this.handlePointerDown=l=>{let{dragging:o}=this,a=l.origEvent.target;o.setIgnoreMove(!this.component.isValidDateDownEl(a))},this.handleDragEnd=l=>{let{component:o}=this,{pointer:a}=this.dragging;if(!a.wasTouchScroll){let{initialHit:i,finalHit:s}=this.hitDragging;if(i&&s&&vn(i,s)){let{context:d}=o,f=Object.assign(Object.assign({},li(i.dateSpan,d)),{dayEl:i.dayEl,jsEvent:l.origEvent,view:d.viewApi||d.calendarApi.view});d.emitter.trigger("dateClick",f)}}},this.dragging=new Rt(e.el),this.dragging.autoScroller.isEnabled=!1;let n=this.hitDragging=new Cn(this.dragging,ur(e));n.emitter.on("pointerdown",this.handlePointerDown),n.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class mg extends bt{constructor(e){super(e),this.dragSelection=null,this.handlePointerDown=i=>{let{component:s,dragging:d}=this,{options:f}=s.context,u=f.selectable&&s.isValidDateDownEl(i.origEvent.target);d.setIgnoreMove(!u),d.delay=i.isTouch?gg(s):null},this.handleDragStart=i=>{this.component.context.calendarApi.unselect(i)},this.handleHitUpdate=(i,s)=>{let{context:d}=this.component,f=null,u=!1;if(i){let g=this.hitDragging.initialHit;i.componentId===g.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(g,i)||(f=yg(g,i,d.pluginHooks.dateSelectionTransformers)),(!f||!ip(f,i.dateProfile,d))&&(u=!0,f=null)}f?d.dispatch({type:"SELECT_DATES",selection:f}):s||d.dispatch({type:"UNSELECT_DATES"}),u?Hn():Pn(),s||(this.dragSelection=f)},this.handlePointerUp=i=>{this.dragSelection&&(Io(this.dragSelection,i,this.component.context),this.dragSelection=null)};let{component:n}=e,{options:l}=n.context,o=this.dragging=new Rt(e.el);o.touchScrollAllowed=!1,o.minDistance=l.selectMinDistance||0,o.autoScroller.isEnabled=l.dragScroll;let a=this.hitDragging=new Cn(this.dragging,ur(e));a.emitter.on("pointerdown",this.handlePointerDown),a.emitter.on("dragstart",this.handleDragStart),a.emitter.on("hitupdate",this.handleHitUpdate),a.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}}function gg(t){let{options:e}=t.context,n=e.selectLongPressDelay;return n==null&&(n=e.longPressDelay),n}function yg(t,e,n){let l=t.dateSpan,o=e.dateSpan,a=[l.range.start,l.range.end,o.range.start,o.range.end];a.sort(Md);let i={};for(let s of n){let d=s(t,e);if(d===!1)return null;d&&Object.assign(i,d)}return i.range={start:a[0],end:a[3]},i.allDay=l.allDay,i}class It extends bt{constructor(e){super(e),this.subjectEl=null,this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=i=>{let s=i.origEvent.target,{component:d,dragging:f}=this,{mirror:u}=f,{options:g}=d.context,h=d.context;this.subjectEl=i.subjectEl;let c=this.subjectSeg=yt(i.subjectEl),m=(this.eventRange=c.eventRange).instance.instanceId;this.relevantEvents=ar(h.getCurrentData().eventStore,m),f.minDistance=i.isTouch?0:g.eventDragMinDistance,f.delay=i.isTouch&&m!==d.props.eventSelection?_g(d):null,g.fixedMirrorParent?u.parentNode=g.fixedMirrorParent:u.parentNode=ue(s,".fc"),u.revertDuration=g.dragRevertDuration;let p=d.isValidSegDownEl(s)&&!ue(s,".fc-event-resizer");f.setIgnoreMove(!p),this.isDragging=p&&i.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=i=>{let s=this.component.context,d=this.eventRange,f=d.instance.instanceId;i.isTouch?f!==this.component.props.eventSelection&&s.dispatch({type:"SELECT_EVENT",eventInstanceId:f}):s.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(s.calendarApi.unselect(i),s.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new ie(s,d.def,d.instance),jsEvent:i.origEvent,view:s.viewApi}))},this.handleHitUpdate=(i,s)=>{if(!this.isDragging)return;let d=this.relevantEvents,f=this.hitDragging.initialHit,u=this.component.context,g=null,h=null,c=null,y=!1,m={affectedEvents:d,mutatedEvents:_e(),isEvent:!0};if(i){g=i.context;let p=g.options;u===g||p.editable&&p.droppable?(h=bg(f,i,g.getCurrentData().pluginHooks.eventDragMutationMassagers),h&&(c=cr(d,g.getCurrentData().eventUiBases,h,g),m.mutatedEvents=c,aa(m,i.dateProfile,g)||(y=!0,h=null,c=null,m.mutatedEvents=_e()))):g=null}this.displayDrag(g,m),y?Hn():Pn(),s||(u===g&&vn(f,i)&&(h=null),this.dragging.setMirrorNeedsRevert(!h),this.dragging.setMirrorIsVisible(!i||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=g,this.validMutation=h,this.mutatedRelevantEvents=c)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=i=>{if(this.isDragging){let s=this.component.context,d=s.viewApi,{receivingContext:f,validMutation:u}=this,g=this.eventRange.def,h=this.eventRange.instance,c=new ie(s,g,h),y=this.relevantEvents,m=this.mutatedRelevantEvents,{finalHit:p}=this.hitDragging;if(this.clearDrag(),s.emitter.trigger("eventDragStop",{el:this.subjectEl,event:c,jsEvent:i.origEvent,view:d}),u){if(f===s){let _=new ie(s,m.defs[g.defId],h?m.instances[h.instanceId]:null);s.dispatch({type:"MERGE_EVENTS",eventStore:m});let b={oldEvent:c,event:_,relatedEvents:rt(m,s,h),revert(){s.dispatch({type:"MERGE_EVENTS",eventStore:y})}},C={};for(let v of s.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(C,v(u,s));s.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},b),C),{el:i.subjectEl,delta:u.datesDelta,jsEvent:i.origEvent,view:d})),s.emitter.trigger("eventChange",b)}else if(f){let _={event:c,relatedEvents:rt(y,s,h),revert(){s.dispatch({type:"MERGE_EVENTS",eventStore:y})}};s.emitter.trigger("eventLeave",Object.assign(Object.assign({},_),{draggedEl:i.subjectEl,view:d})),s.dispatch({type:"REMOVE_EVENTS",eventStore:y}),s.emitter.trigger("eventRemove",_);let b=m.defs[g.defId],C=m.instances[h.instanceId],v=new ie(f,b,C);f.dispatch({type:"MERGE_EVENTS",eventStore:m});let I={event:v,relatedEvents:rt(m,f,C),revert(){f.dispatch({type:"REMOVE_EVENTS",eventStore:m})}};f.emitter.trigger("eventAdd",I),i.isTouch&&f.dispatch({type:"SELECT_EVENT",eventInstanceId:h.instanceId}),f.emitter.trigger("drop",Object.assign(Object.assign({},li(p.dateSpan,f)),{draggedEl:i.subjectEl,jsEvent:i.origEvent,view:p.context.viewApi})),f.emitter.trigger("eventReceive",Object.assign(Object.assign({},I),{draggedEl:i.subjectEl,view:p.context.viewApi}))}}else s.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:n}=this,{options:l}=n.context,o=this.dragging=new Rt(e.el);o.pointer.selector=It.SELECTOR,o.touchScrollAllowed=!1,o.autoScroller.isEnabled=l.dragScroll;let a=this.hitDragging=new Cn(this.dragging,fr);a.useSubjectCenter=e.useEventCenter,a.emitter.on("pointerdown",this.handlePointerDown),a.emitter.on("dragstart",this.handleDragStart),a.emitter.on("hitupdate",this.handleHitUpdate),a.emitter.on("pointerup",this.handlePointerUp),a.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(e,n){let l=this.component.context,o=this.receivingContext;o&&o!==e&&(o===l?o.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:n.affectedEvents,mutatedEvents:_e(),isEvent:!0}}):o.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:n})}clearDrag(){let e=this.component.context,{receivingContext:n}=this;n&&n.dispatch({type:"UNSET_EVENT_DRAG"}),e!==n&&e.dispatch({type:"UNSET_EVENT_DRAG"})}cleanup(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null}}It.SELECTOR=".fc-event-draggable, .fc-event-resizable";function bg(t,e,n){let l=t.dateSpan,o=e.dateSpan,a=l.range.start,i=o.range.start,s={};l.allDay!==o.allDay&&(s.allDay=o.allDay,s.hasEnd=e.context.options.allDayMaintainDuration,o.allDay&&(a=ne(a)));let d=mt(a,i,t.context.dateEnv,t.componentId===e.componentId?t.largeUnit:null);d.milliseconds&&(s.allDay=!1);let f={datesDelta:d,standardProps:s};for(let u of n)u(f,t,e);return f}function _g(t){let{options:e}=t.context,n=e.eventLongPressDelay;return n==null&&(n=e.longPressDelay),n}class Eg extends bt{constructor(e){super(e),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=a=>{let{component:i}=this,s=this.querySegEl(a),d=yt(s),f=this.eventRange=d.eventRange;this.dragging.minDistance=i.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(a.origEvent.target)||a.isTouch&&this.component.props.eventSelection!==f.instance.instanceId)},this.handleDragStart=a=>{let{context:i}=this.component,s=this.eventRange;this.relevantEvents=ar(i.getCurrentData().eventStore,this.eventRange.instance.instanceId);let d=this.querySegEl(a);this.draggingSegEl=d,this.draggingSeg=yt(d),i.calendarApi.unselect(),i.emitter.trigger("eventResizeStart",{el:d,event:new ie(i,s.def,s.instance),jsEvent:a.origEvent,view:i.viewApi})},this.handleHitUpdate=(a,i,s)=>{let{context:d}=this.component,f=this.relevantEvents,u=this.hitDragging.initialHit,g=this.eventRange.instance,h=null,c=null,y=!1,m={affectedEvents:f,mutatedEvents:_e(),isEvent:!0};a&&(a.componentId===u.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(u,a)||(h=kg(u,a,s.subjectEl.classList.contains("fc-event-resizer-start"),g.range))),h&&(c=cr(f,d.getCurrentData().eventUiBases,h,d),m.mutatedEvents=c,aa(m,a.dateProfile,d)||(y=!0,h=null,c=null,m.mutatedEvents=null)),c?d.dispatch({type:"SET_EVENT_RESIZE",state:m}):d.dispatch({type:"UNSET_EVENT_RESIZE"}),y?Hn():Pn(),i||(h&&vn(u,a)&&(h=null),this.validMutation=h,this.mutatedRelevantEvents=c)},this.handleDragEnd=a=>{let{context:i}=this.component,s=this.eventRange.def,d=this.eventRange.instance,f=new ie(i,s,d),u=this.relevantEvents,g=this.mutatedRelevantEvents;if(i.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:f,jsEvent:a.origEvent,view:i.viewApi}),this.validMutation){let h=new ie(i,g.defs[s.defId],d?g.instances[d.instanceId]:null);i.dispatch({type:"MERGE_EVENTS",eventStore:g});let c={oldEvent:f,event:h,relatedEvents:rt(g,i,d),revert(){i.dispatch({type:"MERGE_EVENTS",eventStore:u})}};i.emitter.trigger("eventResize",Object.assign(Object.assign({},c),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||Q(0),endDelta:this.validMutation.endDelta||Q(0),jsEvent:a.origEvent,view:i.viewApi})),i.emitter.trigger("eventChange",c)}else i.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:n}=e,l=this.dragging=new Rt(e.el);l.pointer.selector=".fc-event-resizer",l.touchScrollAllowed=!1,l.autoScroller.isEnabled=n.context.options.dragScroll;let o=this.hitDragging=new Cn(this.dragging,ur(e));o.emitter.on("pointerdown",this.handlePointerDown),o.emitter.on("dragstart",this.handleDragStart),o.emitter.on("hitupdate",this.handleHitUpdate),o.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(e){return ue(e.subjectEl,".fc-event")}}function kg(t,e,n,l){let o=t.context.dateEnv,a=t.dateSpan.range.start,i=e.dateSpan.range.start,s=mt(a,i,o,t.largeUnit);if(n){if(o.add(l.start,s)<l.end)return{startDelta:s}}else if(o.add(l.end,s)>l.start)return{endDelta:s};return null}class Cg{constructor(e){this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=l=>{l.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=l=>{let o=this.context.options.unselectCancel,a=Wl(l.origEvent);this.matchesCancel=!!ue(a,o),this.matchesEvent=!!ue(a,It.SELECTOR)},this.onDocumentPointerUp=l=>{let{context:o}=this,{documentPointer:a}=this,i=o.getCurrentData();if(!a.wasTouchScroll){if(i.dateSelection&&!this.isRecentPointerDateSelect){let s=o.options.unselectAuto;s&&(!s||!this.matchesCancel)&&o.calendarApi.unselect(l)}i.eventSelection&&!this.matchesEvent&&o.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let n=this.documentPointer=new Ja(document);n.shouldIgnoreMove=!0,n.shouldWatchScroll=!1,n.emitter.on("pointerdown",this.onDocumentPointerDown),n.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}const vg={fixedMirrorParent:w},wg={dateClick:w,eventDragStart:w,eventDragStop:w,eventDrop:w,eventResizeStart:w,eventResizeStop:w,eventResize:w,drop:w,eventReceive:w,eventLeave:w};vr.dataAttrPrefix="";var oi=Re({name:"@fullcalendar/interaction",componentInteractions:[hg,mg,It,Eg],calendarInteractions:[Cg],elementDraggingImpl:Rt,optionRefiners:vg,listenerRefiners:wg});let Ag=0,Sg=new Date().toISOString().replace(/T.*$/,"");const Dg=[{id:xg(),title:"All-day event",start:Sg}];function xg(){return String(Ag++)}const Mt=t=>(r.pushScopeId("data-v-f8cb3591"),t=t(),r.popScopeId(),t),Ng={class:"demo-app"},Tg={class:"demo-app-main"},Bg={class:"title-line"},Vg=["title","onClick"],Rg={key:0,style:{width:"90%"}},Ig=Mt(()=>r.createElementVNode("span",{class:"to"},"至",-1)),Mg={key:1,style:{width:"90%"}},Og=Mt(()=>r.createElementVNode("span",{class:"to"},"至",-1)),Lg={key:2,style:{width:"90%",display:"flex","align-items":"center","justify-content":"space-between"}},Fg={key:0,style:{"margin-left":"2%"}},Hg=Mt(()=>r.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),Pg={key:1},zg=Mt(()=>r.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),$g={key:0,class:"placeholder"},Ug={class:"info"},jg=Mt(()=>r.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)),Wg={class:"dialog-footer"},Gg={name:"IkApprovalProcess"},Yg=r.defineComponent({...Gg,props:{dataList:{type:Array,default:()=>[]},defaultNodeType:{type:Object,default:()=>({})},defaultFieldMap:{type:Object,default:()=>({})},statusWithoutApprover:{type:Object,default:()=>({})}},emits:["delete","success"],setup(t,{emit:e}){const n=e,l=m=>{if(s.selectInfo=m,a(),m.view.type=="dayGridMonth"){let _=m.end.getTime()-864e5;s.timeType="month",s.form.startDate=H.ikDate.toYMD(m.start),s.form.endDate=H.ikDate.toYMD(new Date(_))}else m.view.type=="timeGridWeek"?(s.timeType="week",s.form.startDate=H.ikDate.toYMDHM(m.start),s.form.endDate=H.ikDate.toYMDHM(m.end)):m.view.type=="timeGridDay"&&(s.timeType="day",s.form.startDate=H.ikDate.toYMD(m.start),s.form.endDate=H.ikDate.toYMD(m.start),s.form.startTime=H.ikDate.toDateTime(m.start),s.form.endTime=H.ikDate.toDateTime(m.end));m.view.calendar.unselect(),r.nextTick(()=>{s.title="新建日程",s.dialogVisible=!0})},o=(m,p)=>{s.title="修改日程",s.dialogVisible=!0},a=m=>{fetch("http://192.168.2.45:6002/component/pick/mix",{method:"POST",body:JSON.stringify({parentDepartmentId:m||"",name:""}),headers:{Authorization:"Bearer iking","Content-Type":"application/json"}}).then(b=>{b.json().then(C=>{const{success:v,data:I}=C;if(!v)return;const{departments:N,users:x,roles:k,posts:D}=I;s.depList=N,s.userList=x,s.roleList=k,s.postList=D})}).catch(b=>{console.info("error: ",b)})},i=m=>{s.currentEvents=m},s=r.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:nl,plugins:[ja,Ka,oi],headerToolbar:{left:"prev,next today",center:"title",right:"dayGridMonth,timeGridWeek,timeGridDay"},firstDay:1,initialView:"dayGridMonth",initialEvents:Dg,editable:!0,selectable:!0,selectMirror:!0,dayMaxEvents:!0,weekends:!0,select:l,eventClick:m=>o(),eventsSet:i},currentEvents:[]}),d=()=>{var m;(m=s.formRef)==null||m.resetFields(),s.form={title:"",type:1,startDate:"",endDate:"",startTime:"",endTime:"",personList:[],location:""},s.dialogVisible=!1},f=async()=>{var _,b,C,v;let m=(b=(_=s.selectInfo)==null?void 0:_.view)==null?void 0:b.calendar,p={id:new Date().getTime(),title:s.form.title,start:(C=s.selectInfo)==null?void 0:C.startStr,end:(v=s.selectInfo)==null?void 0:v.endStr,allDay:s.allDay};await m.addEvent(p),n("success",p),d()},u=m=>{A.ElMessageBox.confirm(`你确定删除事件'${m.event.title}'?`,"Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(()=>{A.ElMessage({type:"success",message:"删除成功"}),m.event.remove(),n("delete",m.event)})},g=m=>{s.handList=m.list,s.form.personList=m.list},h=()=>{s.isShow=!0},c=m=>{a(m==null?void 0:m.elementId)},y=m=>{s.form.personList.splice(m,1),s.handList=s.form.personList};return(m,p)=>{const _=r.resolveComponent("el-checkbox");return r.openBlock(),r.createElementBlock("div",Ng,[r.createElementVNode("div",Tg,[r.createVNode(r.unref(Ia),{class:"demo-app-calendar",options:s.calendarOptions},{eventContent:r.withCtx(b=>[r.createElementVNode("div",Bg,[r.createElementVNode("span",{class:"title",title:b.event.title,onClick:r.withModifiers(C=>o(),["stop"])},r.toDisplayString(b.event.title),9,Vg),r.createVNode(r.unref(A.ElIcon),{size:16,onClick:r.withModifiers(C=>u(b),["stop"])},{default:r.withCtx(()=>[r.createVNode(r.unref(Xr))]),_:2},1032,["onClick"])])]),_:1},8,["options"])]),r.createCommentVNode(" 新建日程 "),r.createVNode(r.unref(A.ElDialog),{modelValue:s.dialogVisible,"onUpdate:modelValue":p[12]||(p[12]=b=>s.dialogVisible=b),title:s.title,width:"30%",ref:"formRef",onClose:d},{footer:r.withCtx(()=>[r.createElementVNode("span",Wg,[r.createVNode(r.unref(A.ElButton),{onClick:d},{default:r.withCtx(()=>[r.createTextVNode("取消")]),_:1}),r.createVNode(r.unref(A.ElButton),{type:"primary",onClick:f},{default:r.withCtx(()=>[r.createTextVNode("确定")]),_:1})])]),default:r.withCtx(()=>[r.createVNode(r.unref(A.ElForm),{model:s.form},{default:r.withCtx(()=>[r.createVNode(r.unref(A.ElFormItem),null,{default:r.withCtx(()=>[r.createVNode(r.unref(A.ElIcon),{class:"icon"},{default:r.withCtx(()=>[r.createVNode(r.unref(Yr))]),_:1}),r.createVNode(r.unref(A.ElInput),{modelValue:s.form.title,"onUpdate:modelValue":p[0]||(p[0]=b=>s.form.title=b),placeholder:`添加${s.form.type==1?"会议":"活动"}标题`,style:{width:"70%"},clearable:""},null,8,["modelValue","placeholder"]),r.createVNode(r.unref(A.ElSelect),{modelValue:s.form.type,"onUpdate:modelValue":p[1]||(p[1]=b=>s.form.type=b),style:{width:"20%"}},{default:r.withCtx(()=>[r.createVNode(r.unref(A.ElOption),{label:"会议",value:1}),r.createVNode(r.unref(A.ElOption),{label:"活动",value:2})]),_:1},8,["modelValue"])]),_:1}),r.createVNode(r.unref(A.ElFormItem),null,{default:r.withCtx(()=>[r.createVNode(r.unref(A.ElIcon),{class:"icon"},{default:r.withCtx(()=>[r.createVNode(r.unref(Qr))]),_:1}),s.timeType=="month"?(r.openBlock(),r.createElementBlock("div",Rg,[r.createVNode(r.unref(A.ElDatePicker),{modelValue:s.form.startDate,"onUpdate:modelValue":p[2]||(p[2]=b=>s.form.startDate=b),type:"date",placeholder:"开始日期",style:{width:"48%"}},null,8,["modelValue"]),Ig,r.createVNode(r.unref(A.ElDatePicker),{modelValue:s.form.endDate,"onUpdate:modelValue":p[3]||(p[3]=b=>s.form.endDate=b),type:"date",placeholder:"结束日期",style:{width:"48%"}},null,8,["modelValue"])])):r.createCommentVNode("v-if",!0),s.timeType=="week"?(r.openBlock(),r.createElementBlock("div",Mg,[r.createVNode(r.unref(A.ElDatePicker),{modelValue:s.form.startDate,"onUpdate:modelValue":p[4]||(p[4]=b=>s.form.startDate=b),type:"datetime",placeholder:"开始日期",style:{width:"48%"},format:"YYYY-MM-DD HH:mm"},null,8,["modelValue"]),Og,r.createVNode(r.unref(A.ElDatePicker),{modelValue:s.form.endDate,"onUpdate:modelValue":p[5]||(p[5]=b=>s.form.endDate=b),type:"datetime",placeholder:"结束日期",style:{width:"48%"},format:"YYYY-MM-DD HH:mm"},null,8,["modelValue"])])):r.createCommentVNode("v-if",!0),s.timeType=="day"?(r.openBlock(),r.createElementBlock("div",Lg,[r.createVNode(r.unref(A.ElDatePicker),{modelValue:s.form.startDate,"onUpdate:modelValue":p[6]||(p[6]=b=>s.form.startDate=b),type:"date",placeholder:"开始日期",style:r.normalizeStyle({width:s.allDay?"45%":"90%"})},null,8,["modelValue","style"]),s.allDay?(r.openBlock(),r.createElementBlock("div",Pg,[zg,r.createVNode(r.unref(A.ElDatePicker),{modelValue:s.form.endDate,"onUpdate:modelValue":p[9]||(p[9]=b=>s.form.endDate=b),type:"date",placeholder:"结束日期",style:{width:"90%"}},null,8,["modelValue"])])):(r.openBlock(),r.createElementBlock("div",Fg,[r.createVNode(r.unref(A.ElTimePicker),{modelValue:s.form.startTime,"onUpdate:modelValue":p[7]||(p[7]=b=>s.form.startTime=b),type:"datetime",placeholder:"开始日期",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"]),Hg,r.createVNode(r.unref(A.ElTimePicker),{modelValue:s.form.endTime,"onUpdate:modelValue":p[8]||(p[8]=b=>s.form.endTime=b),type:"datetime",placeholder:"结束日期",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"])])),r.createVNode(_,{modelValue:s.allDay,"onUpdate:modelValue":p[10]||(p[10]=b=>s.allDay=b),label:"全天",style:{"margin-left":"2%"}},null,8,["modelValue"])])):r.createCommentVNode("v-if",!0)]),_:1}),r.createVNode(r.unref(A.ElFormItem),null,{default:r.withCtx(()=>[r.createVNode(r.unref(A.ElIcon),{class:"icon"},{default:r.withCtx(()=>[r.createVNode(r.unref(rs))]),_:1}),r.createElementVNode("div",{class:"personBlock",onClick:r.withModifiers(h,["stop"])},[s.form.personList.length?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:1},r.renderList(s.form.personList,(b,C)=>(r.openBlock(),r.createElementBlock("div",{key:C,class:"nameBlock"},[r.createElementVNode("div",Ug,[jg,r.createElementVNode("div",null,r.toDisplayString(b.elementName),1)]),r.createVNode(r.unref(A.ElIcon),{class:"close",onClick:r.withModifiers(v=>y(C),["stop"])},{default:r.withCtx(()=>[r.createVNode(r.unref(Zr))]),_:2},1032,["onClick"])]))),128)):(r.openBlock(),r.createElementBlock("span",$g,"添加参与人"))])]),_:1}),r.createVNode(r.unref(A.ElFormItem),null,{default:r.withCtx(()=>[r.createVNode(r.unref(A.ElIcon),{class:"icon"},{default:r.withCtx(()=>[r.createVNode(r.unref(Ui))]),_:1}),r.createVNode(r.unref(A.ElInput),{modelValue:s.form.location,"onUpdate:modelValue":p[11]||(p[11]=b=>s.form.location=b),placeholder:"添加地点",style:{width:"90%"},clearable:""},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),r.createCommentVNode(" 选人组件 "),r.createVNode(r.unref(Ft),{modelValue:s.handList,"onUpdate:modelValue":p[13]||(p[13]=b=>s.handList=b),show:s.isShow,"onUpdate:show":p[14]||(p[14]=b=>s.isShow=b),onOk:g,multiple:!0,"type-option":{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},"dep-list":s.depList,"user-list":s.userList,"prop-option":{name:"elementName",id:"elementId",type:"elementType",avatar:"avatar"},chooseType:["user"],onHandChild:c},null,8,["modelValue","show","dep-list","user-list"])])}}}),H6="",qg=ae(X(Yg,[["__scopeId","data-v-f8cb3591"]])),Qg={class:"ik-hor-step-content"},Zg={class:"flex"},Xg=["onClick"],Kg=["id","onClick"],Jg=r.defineComponent({__name:"IKHorizontalStepBar",props:{spaceNum:{type:String,default:"58px"},active:{type:Number,default:null},activeColor:{type:String,default:""},needClick:{type:Boolean,default:!1},list:{type:Array,default:()=>[]},propsField:{type:Object,default:()=>({title:"title",value:"value"})}},emits:["click","update:active"],setup(t,{emit:e}){const n=t,l=e,o=r.ref(!1),a=r.ref(),i=r.ref(),s=r.ref(!1);r.watch(()=>n.active,m=>{let p=document.getElementById("stepItemContent"),_=document.getElementById(`stepItem${m}`),b=document.getElementById("stepItem0");const C=_&&b?(_==null?void 0:_.offsetLeft)-(b==null?void 0:b.offsetLeft):0;p&&_&&(p.scrollLeft=C>(p==null?void 0:p.clientWidth)?C-(p==null?void 0:p.offsetLeft):0)}),r.onMounted(()=>{r.nextTick(()=>{let p=document.getElementById("stepItemContent"),_=(p==null?void 0:p.scrollWidth)>(p==null?void 0:p.clientWidth);o.value=_,window.addEventListener("resize",m,!0)});const m=()=>{let p=document.getElementById("stepItemContent"),_=(p==null?void 0:p.scrollWidth)>(p==null?void 0:p.clientWidth);o.value=_}});const d=(m,p)=>{if(!n.needClick)return;l("update:active",p),l("click",m);let _=document.getElementById("stepItemContent"),b=document.getElementById(`stepItem${p}`),C=document.getElementById("stepItem0");const v=b&&C?(b==null?void 0:b.offsetLeft)-(C==null?void 0:C.offsetLeft):0;_&&b&&(_.scrollLeft=v>(_==null?void 0:_.clientWidth)?v-(_==null?void 0:_.offsetLeft):0)},f=()=>{let m=document.getElementById("stepItemContent");m&&(m.scrollLeft=m.scrollLeft-20)},u=()=>{let m=document.getElementById("stepItemContent");m&&(m.scrollLeft=m.scrollLeft+20)},g=()=>{clearInterval(i.value);let m=document.getElementById("stepItemContent");s.value=!1,i.value=setInterval(()=>{s.value=!0,m&&(m.scrollLeft=m.scrollLeft-20)},100)},h=()=>{clearInterval(i.value),s.value||f()},c=()=>{clearInterval(a.value);let m=document.getElementById("stepItemContent");s.value=!1,a.value=setInterval(()=>{s.value=!0,m&&(m.scrollLeft=m.scrollLeft+20)},100)},y=()=>{clearInterval(a.value),s.value||u()};return(m,p)=>{const _=r.resolveComponent("el-icon");return r.openBlock(),r.createElementBlock("div",Qg,[r.createElementVNode("div",Zg,[o.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:"icon-left",onMousedown:g,onMouseup:h,onClick:f},[r.createVNode(_,{class:"operation-icon"},{default:r.withCtx(()=>[r.createVNode(r.unref(Wr),{size:"26px"})]),_:1})],32)):r.createCommentVNode("v-if",!0),r.createElementVNode("div",{class:"step-item-content",id:"stepItemContent",style:r.normalizeStyle({justifyContent:o.value?"flex-start":"center"})},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.list,(b,C)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(`step-item ${C<=t.active?"step-item-active":""}`),key:C},[C!=0?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(`step-border ${C<=t.active?"step-border-greater-than":""}`),style:r.normalizeStyle({width:`${t.spaceNum.indexOf("px")!=-1?t.spaceNum:`${t.spaceNum}px`}`})},null,6)):r.createCommentVNode("v-if",!0),r.createElementVNode("span",{class:r.normalizeClass(`step-num ${C===t.active?"step-num-active":C<t.active?"step-num-greater-than":""}`),onClick:v=>d(b,C),style:r.normalizeStyle({backgroundColor:C===t.active&&t.activeColor?t.activeColor:"",cursor:b&&b.disabled?"not-allowed":t.needClick?"pointer":"context-menu"})},[r.renderSlot(m.$slots,"icon",{data:{item:b,index:C}},()=>[r.createTextVNode(r.toDisplayString(C+1),1)],!0)],14,Xg),r.createElementVNode("span",{id:`stepItem${C}`,class:r.normalizeClass(`step-label ${t.active===C?"step-label-active":C<t.active?"step-label-greater-than":""} step-item-${C}`),style:r.normalizeStyle({color:C===t.active&&t.activeColor?t.activeColor:"",cursor:b&&b.disabled?"not-allowed":t.needClick?"pointer":"context-menu"}),onClick:v=>d(b,C)},r.toDisplayString(b[t.propsField.title]),15,Kg)],2))),128))],4),o.value?(r.openBlock(),r.createElementBlock("div",{key:1,class:"icon-right",onMousedown:c,onMouseup:y,onClick:u},[r.createVNode(_,{class:"operation-icon"},{default:r.withCtx(()=>[r.createVNode(r.unref(Gr))]),_:1})],32)):r.createCommentVNode("v-if",!0)])])}}}),z6="",e0=ae(X(Jg,[["__scopeId","data-v-c8da17cd"]])),t0=typeof btoa=="function",Hr=typeof Buffer=="function";typeof TextDecoder=="function"&&new TextDecoder;const ai=typeof TextEncoder=="function"?new TextEncoder:void 0,n0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Ot=Array.prototype.slice.call(n0);(t=>{let e={};return t.forEach((n,l)=>e[n]=l),e})(Ot);const De=String.fromCharCode.bind(String);typeof Uint8Array.from=="function"&&Uint8Array.from.bind(Uint8Array);const r0=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),ii=t0?t=>btoa(t):Hr?t=>Buffer.from(t,"binary").toString("base64"):t=>{let e,n,l,o,a="";const i=t.length%3;for(let s=0;s<t.length;){if((n=t.charCodeAt(s++))>255||(l=t.charCodeAt(s++))>255||(o=t.charCodeAt(s++))>255)throw new TypeError("invalid character found");e=n<<16|l<<8|o,a+=Ot[e>>18&63]+Ot[e>>12&63]+Ot[e>>6&63]+Ot[e&63]}return i?a.slice(0,i-3)+"===".substring(i):a},l0=Hr?t=>Buffer.from(t).toString("base64"):t=>{let n=[];for(let l=0,o=t.length;l<o;l+=4096)n.push(De.apply(null,t.subarray(l,l+4096)));return ii(n.join(""))},o0=t=>{if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?De(192|e>>>6)+De(128|e&63):De(224|e>>>12&15)+De(128|e>>>6&63)+De(128|e&63)}else{var e=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return De(240|e>>>18&7)+De(128|e>>>12&63)+De(128|e>>>6&63)+De(128|e&63)}},a0=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,i0=t=>t.replace(a0,o0),si=Hr?t=>Buffer.from(t,"utf8").toString("base64"):ai?t=>l0(ai.encode(t)):t=>ii(i0(t)),s0=(t,e=!1)=>e?r0(si(t)):si(t),c0=["src"],ci=r.defineComponent({__name:"IKPreviewFile",props:{modelValue:{type:Boolean,default:!1},kkUrl:{required:!0,type:String,default:""},url:{required:!0,type:String,default:""},loadUrl:{type:String,default:""},fileName:{type:String,default:""}},setup(t){const e=t,n=r.ref(null),l=r.computed(()=>!e.kkUrl||!e.url?"":`${e.kkUrl}${encodeURIComponent(s0(`${e.loadUrl}${e.url}${e.fileName?`&fullfilename=${e.fileName}`:""}`))}`),o=r.ref(e.modelValue);return r.watch(()=>e.modelValue,a=>{o.value=a}),(a,i)=>(r.openBlock(),r.createBlock(r.unref(A.ElDialog),{fullscreen:"",modelValue:o.value,"onUpdate:modelValue":i[0]||(i[0]=s=>o.value=s),"destroy-on-close":"","append-to-body":"","modal-class":"ik-file-preview-modal",onClose:i[1]||(i[1]=s=>a.$emit("update:modelValue",!1)),class:"ik-file-preview"},{default:r.withCtx(()=>[r.createElementVNode("iframe",{ref_key:"freamRef",ref:n,"cross-origin":"",src:l.value,frameborder:"0",allowfullscreen:"",seamless:""},null,8,c0)]),_:1},8,["modelValue"]))}}),j6="",d0=ae(ci),u0={key:0,t:"1686300037564",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7515",width:"200",height:"200"},f0=[r.createElementVNode("path",{d:"M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",fill:"#029EF7","p-id":"7516"},null,-1),r.createElementVNode("path",{d:"M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",fill:"#64b5ed","p-id":"7517"},null,-1),r.createElementVNode("path",{d:"M384 499.2c0-25.6 5.12-46.08 10.24-58.88 5.12-12.8 15.36-25.6 28.16-35.84 12.8-12.8 25.6-20.48 43.52-25.6 15.36-5.12 30.72-7.68 48.64-7.68 35.84 0 64 10.24 89.6 30.72C627.2 422.4 640 448 640 481.28c0 15.36-5.12 28.16-10.24 40.96s-17.92 28.16-38.4 46.08-28.16 30.72-35.84 38.4c-7.68 7.68-10.24 17.92-15.36 28.16-5.12 10.24-2.56 17.92-2.56 43.52h-51.2c0-25.6 2.56-38.4 5.12-51.2s7.68-23.04 15.36-33.28 15.36-23.04 33.28-40.96c17.92-17.92 30.72-30.72 35.84-38.4 5.12-7.68 10.24-20.48 10.24-38.4s-7.68-30.72-20.48-43.52-30.72-20.48-53.76-20.48c-51.2 0-76.8 35.84-76.8 87.04h-51.2z m153.6 281.6h-51.2v-51.2h51.2v51.2z",fill:"#FFFFFF","p-id":"7518"},null,-1)],p0={key:1,t:"1686300059786",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7671",width:"200",height:"200"},h0=[r.createElementVNode("path",{d:"M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",fill:"#50CD89","p-id":"7672"},null,-1),r.createElementVNode("path",{d:"M258.528 742.0672L351.8336 604.928a14.5024 14.5024 0 0 1 22.1696-2.1824l61.664 60.416 135.296-212.064a14.5024 14.5024 0 0 1 24.8064 0.5568l168.1024 291.328a14.5024 14.5024 0 0 1-12.5696 21.7664H270.528a14.5024 14.5024 0 0 1-12.0064-22.6816z",fill:"#FFF7F7","p-id":"7673"},null,-1),r.createElementVNode("path",{d:"M359.616 431.5456m-73.1456 0a73.1456 73.1456 0 1 0 146.2912 0 73.1456 73.1456 0 1 0-146.2912 0Z",fill:"#FFFFFF","p-id":"7674"},null,-1),r.createElementVNode("path",{d:"M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",fill:"#a9f6cc","p-id":"7675"},null,-1)],m0={key:2,t:"1686301531714",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9067",width:"200",height:"200"},g0=[r.createElementVNode("path",{d:"M409.6 0v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133334H409.6v68.266666h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133334s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333h68.266666c20.48 0 34.133333-13.653333 34.133334-34.133333V477.866667h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133334S532.48 409.6 512 409.6H477.866667V341.333333h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 273.066667 512 273.066667H477.866667V204.8h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 136.533333 512 136.533333H477.866667V0h204.8l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0h204.8z m0 682.666667h68.266667v68.266666H409.6v-68.266666z m-34.133333-68.266667c-20.48 0-34.133333 13.653333-34.133334 34.133333v136.533334c0 20.48 13.653333 34.133333 34.133334 34.133333h136.533333c20.48 0 34.133333-13.653333 34.133333-34.133333v-136.533334c0-20.48-13.653333-34.133333-34.133333-34.133333h-136.533333z",fill:"#FFA621","p-id":"9068"},null,-1),r.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"9069"},null,-1)],y0={key:3,t:"1686300141125",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8137",width:"200",height:"200"},b0=[r.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m204.8 546.133333V443.733333h204.8v136.533334H409.6V546.133333z m0 102.4h204.8c40.96 0 68.266667-27.306667 68.266667-68.266666v-136.533334c0-40.96-27.306667-68.266667-68.266667-68.266666H409.6c-40.96 0-68.266667 27.306667-68.266667 68.266666V819.2c0 20.48 13.653333 34.133333 34.133334 34.133333s34.133333-13.653333 34.133333-34.133333V648.533333z",fill:"#F1416C","p-id":"8138"},null,-1),r.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f78cbc","p-id":"8139"},null,-1)],_0={key:4,t:"1686300157181",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8292",width:"200",height:"200"},E0=[r.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 607.573333l68.266667 191.146667c13.653333 27.306667 54.613333 27.306667 61.44 0l102.4-273.066667c6.826667-20.48 0-34.133333-20.48-40.96s-34.133333 0-40.96 13.653334l-68.266667 191.146666-68.266667-191.146666c-13.653333-27.306667-54.613333-27.306667-68.266666 0l-68.266667 191.146666-68.266667-191.146666c-6.826667-13.653333-27.306667-27.306667-47.786666-20.48s-27.306667 27.306667-20.48 47.786666l102.4 273.066667c13.653333 27.306667 54.613333 27.306667 61.44 0l75.093333-191.146667z",fill:"#029EF7","p-id":"8293"},null,-1),r.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#64b5ed","p-id":"8294"},null,-1)],k0={key:5,t:"1686300180947",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8447",width:"200",height:"200"},C0=[r.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m477.866667 730.453333c20.48 0 68.266667 0 68.266666-47.786666 0-20.48-6.826667-47.786667-68.266666-47.786667-27.306667 0-54.613333 6.826667-81.92 6.826667-34.133333-27.306667-68.266667-61.44-88.746667-102.4 20.48-75.093333 20.48-122.88 6.826667-150.186667-6.826667-6.826667-20.48-13.653333-34.133334-13.653333-20.48 0-34.133333 6.826667-40.96 20.48-20.48 40.96 13.653333 116.053333 27.306667 150.186666-20.48 54.613333-40.96 109.226667-68.266667 163.84C273.066667 764.586667 273.066667 798.72 273.066667 812.373333c0 13.653333 6.826667 27.306667 20.48 34.133334 6.826667 6.826667 13.653333 6.826667 20.48 6.826666 34.133333 0 68.266667-34.133333 116.053333-109.226666 54.613333-20.48 102.4-40.96 157.013333-47.786667 27.306667 20.48 61.44 34.133333 95.573334 34.133333zM491.52 416.426667c6.826667 20.48 6.826667 47.786667 0 68.266666-13.653333-20.48-13.653333-40.96-13.653333-68.266666h13.653333z m-177.493333 395.946666c13.653333-20.48 27.306667-27.306667 47.786666-40.96-13.653333 20.48-27.306667 34.133333-47.786666 40.96z m184.32-204.8c13.653333 20.48 34.133333 47.786667 54.613333 68.266667H546.133333c-27.306667 6.826667-61.44 13.653333-88.746666 27.306667 13.653333-34.133333 27.306667-61.44 40.96-95.573334z m177.493333 68.266667c27.306667 0 34.133333 6.826667 34.133333 13.653333-6.826667 0-20.48 6.826667-27.306666 0-13.653333 0-27.306667-6.826667-40.96-13.653333h34.133333z",fill:"#F1416C","p-id":"8448"},null,-1),r.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f78cbc","p-id":"8449"},null,-1)],v0={key:6,t:"1686300195363",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8602",width:"200",height:"200"},w0=[r.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m341.333333 512h136.533334c20.48 0 34.133333-13.653333 34.133333-34.133333s-13.653333-34.133333-34.133333-34.133334H341.333333c-20.48 0-34.133333 13.653333-34.133333 34.133334s13.653333 34.133333 34.133333 34.133333h136.533334V819.2c0 20.48 13.653333 34.133333 34.133333 34.133333s34.133333-13.653333 34.133333-34.133333V512z",fill:"#029EF7","p-id":"8603"},null,-1),r.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#64b5ed","p-id":"8604"},null,-1)],A0={key:7,t:"1686300209288",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8757",width:"200",height:"200"},S0=[r.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m464.213333 375.466667l-232.106666 61.44c-27.306667 13.653333-47.786667 34.133333-47.786667 61.44v218.453333s-20.48-13.653333-54.613333-6.826667c-47.786667 6.826667-95.573333 47.786667-95.573334 88.746667 0 40.96 47.786667 61.44 95.573334 54.613333 54.613333-6.826667 95.573333-40.96 95.573333-81.92V559.786667c0-13.653333 27.306667-27.306667 27.306667-27.306667L655.36 477.866667s20.48-6.826667 20.48 13.653333v170.666667s-20.48-13.653333-54.613333-6.826667c-54.613333 6.826667-95.573333 40.96-95.573334 81.92s47.786667 68.266667 95.573334 61.44 95.573333-40.96 95.573333-81.92V409.6c0-27.306667-27.306667-40.96-47.786667-34.133333z",fill:"#FFA621","p-id":"8758"},null,-1),r.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"8759"},null,-1)],D0={key:8,t:"1686300225262",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8912",width:"200",height:"200"},x0=[r.createElementVNode("path",{d:"M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 853.333333c150.186667 0 273.066667-122.88 273.066667-273.066666s-122.88-273.066667-273.066667-273.066667-273.066667 122.88-273.066667 273.066667 122.88 273.066667 273.066667 273.066666z m0-68.266666c-116.053333 0-204.8-88.746667-204.8-204.8s88.746667-204.8 204.8-204.8 204.8 88.746667 204.8 204.8-88.746667 204.8-204.8 204.8zM614.4 600.746667l6.826667-6.826667c6.826667-13.653333 6.826667-27.306667-6.826667-34.133333L484.693333 471.04s-6.826667-6.826667-13.653333-6.826667c-13.653333 0-27.306667 13.653333-27.306667 27.306667v170.666667c0 6.826667 0 13.653333 6.826667 13.653333 6.826667 13.653333 27.306667 13.653333 40.96 6.826667L614.4 600.746667z",fill:"#FFA621","p-id":"8913"},null,-1),r.createElementVNode("path",{d:"M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",fill:"#f5d37b","p-id":"8914"},null,-1)],N0={key:9,t:"1692251753690",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4336",width:"200",height:"200"},T0=[r.createElementVNode("path",{d:"M192 0h448.170667l319.829333 320V896a128 128 0 0 1-128 128H192a128 128 0 0 1-128-128V128A128 128 0 0 1 192 0z",fill:"#00BD76","p-id":"4337"},null,-1),r.createElementVNode("path",{d:"M388.5056 631.261867H307.541333v54.852266h95.095467v33.8944H265.3184v-204.765866h136.977067v34.167466H307.5072v48.810667h80.9984v33.041067z m112.093867-45.397334l38.4-70.621866h48.503466l-59.630933 101.546666 61.201067 103.2192h-49.117867l-39.355733-71.714133-39.389867 71.68h-49.0496l61.166933-103.185067-59.630933-101.546666h48.503467l38.4 70.587733z m266.922666 65.9456c-0.648533 9.898667-3.037867 19.592533-7.0656 28.672-3.7888 8.533333-9.352533 16.1792-16.315733 22.4256-6.929067 6.2464-15.36 11.127467-25.258667 14.6432-9.864533 3.4816-21.128533 5.256533-33.792 5.256534-13.1072 0-24.917333-2.286933-35.362133-6.826667a72.260267 72.260267 0 0 1-26.555733-19.626667 89.019733 89.019733 0 0 1-16.725334-30.993066 133.597867 133.597867 0 0 1-5.870933-40.8576v-13.482667c0-15.121067 2.048-28.740267 6.0416-40.925867 4.061867-12.1856 9.728-22.528 17.1008-31.061333 7.338667-8.533333 16.4864-15.2576 26.794667-19.694933 10.478933-4.608 22.186667-6.894933 35.157333-6.894934 12.731733 0 24.029867 1.809067 33.792 5.393067 9.8304 3.618133 18.1248 8.635733 24.9856 15.0528 6.826667 6.485333 12.288 14.267733 16.042667 22.9376 3.822933 8.874667 6.2464 18.466133 7.304533 28.8768h-42.1888a63.829333 63.829333 0 0 0-3.1744-16.145067 31.744 31.744 0 0 0-7.099733-11.810133 29.354667 29.354667 0 0 0-11.946667-7.2704 55.944533 55.944533 0 0 0-17.749333-2.4576c-14.2336 0-24.849067 5.188267-31.812267 15.5648-6.997333 10.3424-10.478933 26.385067-10.478933 48.128v13.789867c0 10.581333 0.750933 19.899733 2.321066 27.8528 1.536 7.953067 3.959467 14.609067 7.304534 19.968a32.221867 32.221867 0 0 0 12.970666 12.014933c5.256533 2.696533 11.639467 4.027733 19.182934 4.027733 6.656 0 12.3904-0.750933 17.2032-2.2528a30.549333 30.549333 0 0 0 12.0832-6.826666 30.685867 30.685867 0 0 0 7.509333-11.4688c1.809067-4.573867 2.935467-9.898667 3.413333-16.042667h42.154667z",fill:"#FFFFFF",opacity:".9","p-id":"4338"},null,-1),r.createElementVNode("path",{d:"M640 0l320 320H768a128 128 0 0 1-128-128V0z",fill:"#19EA9C","p-id":"4339"},null,-1)],di=r.defineComponent({__name:"FileIcon",props:{type:{type:String,default:"unknow"}},setup(t){return(e,n)=>t.type==="unknow"?(r.openBlock(),r.createElementBlock("svg",u0,f0)):t.type==="image"?(r.openBlock(),r.createElementBlock("svg",p0,h0)):t.type==="zip"?(r.openBlock(),r.createElementBlock("svg",m0,g0)):t.type==="ppt"?(r.openBlock(),r.createElementBlock("svg",y0,b0)):t.type==="word"?(r.openBlock(),r.createElementBlock("svg",_0,E0)):t.type==="pdf"?(r.openBlock(),r.createElementBlock("svg",k0,C0)):t.type==="txt"?(r.openBlock(),r.createElementBlock("svg",v0,w0)):t.type==="audio"?(r.openBlock(),r.createElementBlock("svg",A0,S0)):t.type==="video"?(r.openBlock(),r.createElementBlock("svg",D0,x0)):t.type==="excal"?(r.openBlock(),r.createElementBlock("svg",N0,T0)):r.createCommentVNode("v-if",!0)}}),Pr=t=>t%1===0?t.toString():t.toFixed(2),de=(t,e)=>{var o,a,i,s,d;const n=(o=t==null?void 0:t.response)!=null&&o.data?ui((i=(a=t==null?void 0:t.response)==null?void 0:a.data)==null?void 0:i.suffix):((s=t.raw)==null?void 0:s.type)||ui(t[e.suffix]),l=((d=t.raw)==null?void 0:d.name)||t[e.name];return n!=null&&n.includes("sheet")||n==="excal"?"excal":n!=null&&n.includes("zip")||n==="zip"||n==="application/x-compressed"?"zip":n!=null&&n.includes("image")||n==="image"?"image":n!=null&&n.includes("video")||n==="video"?"video":n!=null&&n.includes("audio")||n==="audio"?"audio":n!=null&&n.includes("pdf")||n==="pdf"?"pdf":n!=null&&n.includes("text")||n==="txt"?"txt":n!=null&&n.includes("word")||n==="word"?"word":l!=null&&l.includes("ppt")||n==="ppt"?"ppt":"unknow"},ui=t=>{const e=t==null?void 0:t.toLocaleLowerCase();switch(e!=null&&e.startsWith(".")?e:`.${e}`){case".doc":case".docx":case".docxf":case".docm":case".dot":case".dotm":case".dotx":case".epub":case".fodt":case".htm":case".html":case".mht":case".odt":case".ott":case".rtf":case".txt":case".djvu":case".oxps":case".oform":case".fb2":case".xml":case".xps":return"word";case".csv":case".xls":case".xlsx":case".fods":case".ods":case".ots":case".xlsb":case".xlsm":case".xlt":case".xltm":case".xltx":return"excal";case".fodp":case".odp":case".otp":case".pot":case".potm":case".potx":case".pps":case".ppsm":case".ppsx":case".ppt":case".pptm":case".pptx":return"ppt";case".zip":case".rar":case".7z":case".apz":case".ar":case".bz":case".car":case".dar":case".cpgz":case".f":case".ha":case".hbc":case".hbc2":case".hbe":case".hpk":case".hyp":return"zip";case".png":case".jpg":case".jpeg":case".bmp":case".gif":case".webp":case".psd":case".svg":case".tiff":return"image";case".avi":case".wmv":case".mpeg":case".mp4":case".mpm4v":case".mov":case".asf":case".flv":case".f4v":case".rmvb":case".rm":case".3gp":case".vob":return"video";case"audio":return"audio";case".txt":return"txt";case".pdf":return"pdf";case t:case"":return"unknow"}},B0={class:"ik-flie-list"},V0={class:"name"},R0={key:1},I0=["src"],M0={class:"file-icon"},O0={class:"file-name-loading"},L0={class:"file-name"},F0={key:0},H0={key:0,class:"file-size"},P0={class:"name"},z0={class:"file-name-loading"},$0={class:"file-name"},U0={class:"file-size"},j0={class:"operate-btn"},W0={class:"card"},G0={class:"title"},Y0={class:"ik-flie-list"},q0={class:"name"},Q0={key:1},Z0=["src"],X0={class:"file-icon"},K0={class:"file-name-loading"},J0={class:"file-name"},e3={key:0},t3={key:0,class:"file-size"},n3=r.defineComponent({__name:"index",props:{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:""},modelValue:{type:Array,default:()=>[]},defaultFileds:{type:Object,default:()=>({name:"name",url:"url",suffix:"suffix"})},preview:{type:Boolean,default:!1},customIconData:{type:Object,default:()=>({})},customIconFields:{type:Object,default:()=>({type:"type",icon:"icon"})},onlinePreviewUrl:{type:String,default:""}},emits:["delete","exceed","success","error","outSize"],setup(t,{emit:e}){const n=t,l=e,a={...{name:"name",url:"url",suffix:"suffix"},...n.defaultFileds},i=r.computed(()=>n.size),s=r.ref(null),d=r.ref(null),f=r.ref(n.modelValue);r.watch(()=>n.modelValue,S=>{f.value=S},{deep:!0});const u=r.ref([]),g=r.ref(!1),h=r.ref(!1),c=r.ref(null),y=(S,M)=>{f.value=H._.cloneDeep(M)},m=S=>{const M=S.size/1024/1024;if(!(M<i.value)){l("outSize"),A.ElMessage({message:`上传文件大小(${M.toFixed(4)}MB)超出允许最大值(${n.size}MB),请重新选择`,type:"warning",showClose:!0,duration:5e3});const L=f.value.findIndex($=>$.uid===S.uid);return f.value.splice(L,1),!1}return!0},p=()=>!1,_=(S,M)=>{var B,L;S.status="ready",M!==void 0&&u.value.splice(M,1),(B=s.value)==null||B.handleStart(S.raw),(L=s.value)==null||L.submit()},b=(S,M)=>{var R,J;const B=f.value.length,L=n.limit-B;let $=0;for(;$<L&&$<S.length;)(R=s.value)==null||R.handleStart(S[$]),(J=s.value)==null||J.submit(),$++;A.ElMessage({message:(n==null?void 0:n.limitText)||`最大可上传${n.limit}个文件,已忽略超出文件`,type:"warning",showClose:!0,duration:5e3}),l("exceed",S)},C=(S,M,B)=>{l("success",S,M,B)},v=(S,M,B)=>{u.value.push(M),l("error",S,M,B)},I=S=>{S&&de(S,a)==="video"||S&&de(S,a)==="image"?(c.value={...S,url:S[a.url].startsWith("http")?S[a.url]:`${n.loadUrl}${S[a.url]}`},h.value=!0):window.open(n.loadUrl+S[a.url])},N=S=>{H.ikFile.downloadByOnlineUrl(S[a.url],S[a.name])},x=(S,M=!1)=>{var B;(B=s.value)==null||B.abort(S)},k=S=>{var M;S.status!=="success"&&x(S),(M=s.value)==null||M.handleRemove(S),f.value=f.value.filter(B=>B.uid!==S.uid),l("delete",S)},D=(S,M)=>{u.value.splice(M,1)};return(S,M)=>{var L,$;const B=r.resolveComponent("el-image-viewer");return r.openBlock(),r.createElementBlock(r.Fragment,null,[t.preview?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[t.type==="button"?(r.openBlock(),r.createBlock(r.unref(A.ElUpload),r.mergeProps({key:0,"file-list":f.value,"onUpdate:fileList":M[0]||(M[0]=R=>f.value=R),class:"ik-file-upload"},S.$attrs,{accept:t.accept,action:t.action,ref_key:"refUpload",ref:s,"on-change":y,"before-upload":m,"before-remove":p,"on-exceed":b,multiple:t.multiple,headers:t.headers,limit:t.limit,"on-success":C,"on-error":v}),{trigger:r.withCtx(()=>[S.$slots.trigger?r.renderSlot(S.$slots,"trigger",{key:0},void 0,!0):(r.openBlock(),r.createBlock(r.unref(A.ElButton),{key:1,type:"primary",disabled:f.value.length===t.limit,icon:r.unref(ts)},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(t.title),1)]),_:1},8,["disabled","icon"]))]),file:r.withCtx(({file:R})=>[r.createElementVNode("div",B0,[r.createElementVNode("div",V0,[!S.$slots.fileIcon&&(!t.customIconData[r.unref(de)(R,a)]||!t.customIconData[r.unref(de)(R,a)][t.customIconFields.icon])?(r.openBlock(),r.createBlock(di,{key:0,type:r.unref(de)(R,a)},null,8,["type"])):!S.$slots.fileIcon&&t.customIconData[r.unref(de)(R,a)]&&t.customIconData[r.unref(de)(R,a)][t.customIconFields.icon]?(r.openBlock(),r.createElementBlock("div",R0,[t.customIconData[r.unref(de)(R,a)][t.customIconFields.type]==="img"?(r.openBlock(),r.createElementBlock("img",{key:0,src:t.customIconData[r.unref(de)(R,a)][t.customIconFields.icon],alt:"",class:"file-img-icon"},null,8,I0)):(r.openBlock(),r.createElementBlock("span",{key:1,class:r.normalizeClass([t.customIconData[r.unref(de)(R,a)][t.customIconFields.icon],"file-icon-size"])},null,2))])):r.createCommentVNode("v-if",!0),r.createElementVNode("div",M0,[r.renderSlot(S.$slots,"fileIcon",{file:R},void 0,!0)]),r.createElementVNode("div",O0,[r.createElementVNode("p",L0,[r.createTextVNode(r.toDisplayString(R[a.name]||R.name)+" ",1),R.percentage&&R.percentage!==100?(r.openBlock(),r.createElementBlock("span",F0,"("+r.toDisplayString(R.percentage)+"%)",1)):r.createCommentVNode("v-if",!0)]),R.percentage===100?(r.openBlock(),r.createElementBlock("p",H0,r.toDisplayString(r.unref(Pr)(R.size/1024/1024))+"MB ",1)):r.createCommentVNode("v-if",!0),R.percentage&&R.percentage!==100?(r.openBlock(),r.createBlock(r.unref(A.ElProgress),{key:1,"text-inside":"",percentage:R.percentage,color:"var(--el-color-primary)","striped-flow":"",striped:"","show-text":!1},null,8,["percentage"])):r.createCommentVNode("v-if",!0)])]),t.preview?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[t.preview||R.percentage===100?(r.openBlock(),r.createBlock(r.unref(A.ElIcon),{key:0,title:"预览",class:"primary"},{default:r.withCtx(()=>[r.createVNode(r.unref(Jr),{onClick:J=>I(R)},null,8,["onClick"])]),_:2},1024)):r.createCommentVNode("v-if",!0),r.createVNode(r.unref(A.ElIcon),{title:"下载",class:"primary"},{default:r.withCtx(()=>[r.createVNode(r.unref(An),{onClick:J=>N(R)},null,8,["onClick"])]),_:2},1024)],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[R.status==="success"?(r.openBlock(),r.createBlock(r.unref(A.ElIcon),{key:0,title:"删除",class:"error"},{default:r.withCtx(()=>[r.createVNode(r.unref(Ct),{onClick:J=>k(R)},null,8,["onClick"])]),_:2},1024)):(r.openBlock(),r.createBlock(r.unref(A.ElIcon),{key:1,title:"取消上传"},{default:r.withCtx(()=>[r.createVNode(r.unref(qr),{onClick:J=>k(R)},null,8,["onClick"])]),_:2},1024))],64))])]),default:r.withCtx(()=>{var R;return[!t.preview&&t.tip?(r.openBlock(),r.createBlock(r.unref(A.ElTooltip),{key:0,effect:"dark",content:n.tipText||"","popper-class":"_ik_web_ui_file-help-tooltip"},{default:r.withCtx(()=>[r.createVNode(r.unref(A.ElIcon),{size:23,class:"_ik_web_ui_file_help_icon"},{default:r.withCtx(()=>[r.createVNode(r.unref(qi))]),_:1})]),_:1},8,["content"])):r.createCommentVNode("v-if",!0),(R=u.value)!=null&&R.length?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:1},r.renderList(u.value,(J,ge)=>(r.openBlock(),r.createElementBlock("div",{class:"ik-error-flie-list",key:J.uid},[r.createElementVNode("div",P0,[r.createVNode(r.unref(A.ElIcon),{size:32,class:"info",style:{"vertical-align":"middle"}},{default:r.withCtx(()=>[r.createVNode(r.unref(as))]),_:1}),r.createElementVNode("div",z0,[r.createElementVNode("p",$0,r.toDisplayString(J[a.name]||J.name),1),r.createElementVNode("p",U0,r.toDisplayString(r.unref(Pr)(J.size/1024/1024))+"MB ",1)])]),r.withDirectives(r.createElementVNode("div",j0,[r.createVNode(r.unref(A.ElIcon),{style:{"vertical-align":"middle"},onClick:it=>_(J,ge),title:"重新上传",class:"primary"},{default:r.withCtx(()=>[r.createVNode(r.unref(Sn))]),_:2},1032,["onClick"]),r.createVNode(r.unref(A.ElIcon),{class:"error",onClick:it=>D(J,ge),title:"删除"},{default:r.withCtx(()=>[r.createVNode(r.unref(Ct))]),_:2},1032,["onClick"])],512),[[r.vShow,(J==null?void 0:J.status)==="fail"]])]))),128)):r.createCommentVNode("v-if",!0)]}),_:3},16,["file-list","accept","action","multiple","headers","limit"])):(r.openBlock(),r.createBlock(r.unref(A.ElUpload),r.mergeProps({key:1,"file-list":f.value,"onUpdate:fileList":M[1]||(M[1]=R=>f.value=R),class:"ik-file-pload-card"},S.$attrs,{accept:t.accept,action:t.action,ref_key:"refUpload",ref:s,"on-change":y,"before-upload":m,"before-remove":p,"on-exceed":b,multiple:t.multiple,headers:t.headers,limit:t.limit,"on-success":C,"on-error":v}),{file:r.withCtx(({file:R})=>[r.createElementVNode("div",Y0,[r.createElementVNode("div",q0,[!S.$slots.fileIcon&&(!t.customIconData[r.unref(de)(R,a)]||!t.customIconData[r.unref(de)(R,a)][t.customIconFields.icon])?(r.openBlock(),r.createBlock(di,{key:0,type:r.unref(de)(R,a)},null,8,["type"])):!S.$slots.fileIcon&&t.customIconData[r.unref(de)(R,a)]&&t.customIconData[r.unref(de)(R,a)][t.customIconFields.icon]?(r.openBlock(),r.createElementBlock("div",Q0,[t.customIconData[r.unref(de)(R,a)][t.customIconFields.type]==="img"?(r.openBlock(),r.createElementBlock("img",{key:0,src:t.customIconData[r.unref(de)(R,a)][t.customIconFields.icon],alt:"",class:"file-img-icon"},null,8,Z0)):(r.openBlock(),r.createElementBlock("span",{key:1,class:r.normalizeClass([t.customIconData[r.unref(de)(R,a)][t.customIconFields.icon],"file-icon-size"])},null,2))])):r.createCommentVNode("v-if",!0),r.createElementVNode("div",X0,[r.renderSlot(S.$slots,"fileIcon",{file:R},void 0,!0)]),r.createElementVNode("div",K0,[r.createElementVNode("p",J0,[r.createTextVNode(r.toDisplayString(R[a.name]||R.name)+" ",1),R.percentage&&R.percentage!==100?(r.openBlock(),r.createElementBlock("span",e3,"("+r.toDisplayString(R.percentage)+"%)",1)):r.createCommentVNode("v-if",!0)]),R.percentage===100?(r.openBlock(),r.createElementBlock("p",t3,r.toDisplayString(r.unref(Pr)(R.size/1024/1024))+"MB ",1)):r.createCommentVNode("v-if",!0),R.percentage&&R.percentage!==100?(r.openBlock(),r.createBlock(r.unref(A.ElProgress),{key:1,"text-inside":"",percentage:R.percentage,color:"var(--el-color-primary)","striped-flow":"",striped:"","show-text":!1},null,8,["percentage"])):r.createCommentVNode("v-if",!0)])]),t.preview?(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[t.preview||R.percentage===100?(r.openBlock(),r.createBlock(r.unref(A.ElIcon),{key:0,title:"预览",class:"primary"},{default:r.withCtx(()=>[r.createVNode(r.unref(Jr),{onClick:J=>I(R)},null,8,["onClick"])]),_:2},1024)):r.createCommentVNode("v-if",!0),r.createVNode(r.unref(A.ElIcon),{title:"下载",class:"primary"},{default:r.withCtx(()=>[r.createVNode(r.unref(An),{onClick:J=>N(R)},null,8,["onClick"])]),_:2},1024)],64)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[R.status==="success"?(r.openBlock(),r.createBlock(r.unref(A.ElIcon),{key:0,title:"删除",class:"error"},{default:r.withCtx(()=>[r.createVNode(r.unref(Ct),{onClick:J=>k(R)},null,8,["onClick"])]),_:2},1024)):(r.openBlock(),r.createBlock(r.unref(A.ElIcon),{key:1,title:"取消上传"},{default:r.withCtx(()=>[r.createVNode(r.unref(qr),{onClick:J=>k(R)},null,8,["onClick"])]),_:2},1024))],64))])]),default:r.withCtx(()=>[r.createElementVNode("div",W0,[r.createElementVNode("div",G0,[r.createVNode(r.unref(pe),{name:"iksvg_yidong",bg:"",size:40}),r.createElementVNode("span",null,r.toDisplayString(t.title),1)]),r.createVNode(r.unref(pe),{name:"iksvg_daoru",bg:"",size:40,padding:"8px"})])]),_:3},16,["file-list","accept","action","multiple","headers","limit"]))],64)),r.createVNode(ci,{visible:g.value,"onUpdate:visible":M[2]||(M[2]=R=>g.value=R),file:c.value,fileType:c.value&&r.unref(de)(c.value,a),defaultFields:a},null,8,["visible","file","fileType"]),(L=c.value)!=null&&L.url&&h.value?(r.openBlock(),r.createBlock(B,{key:1,onClose:M[3]||(M[3]=R=>(c.value=null,h.value=!1)),ref_key:"previewImgRef",ref:d,"url-list":[($=c.value)==null?void 0:$.url]},null,8,["url-list"])):r.createCommentVNode("v-if",!0)],64)}}}),m2="",g2="",r3=ae(X(n3,[["__scopeId","data-v-1a531f1e"]])),l3={},o3={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"},a3=[r.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),r.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),r.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),r.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),r.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),r.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),r.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),r.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 i3(t,e){return r.openBlock(),r.createElementBlock("svg",o3,a3)}const s3=X(l3,[["render",i3]]),fi=t=>(r.pushScopeId("data-v-b6b97c2a"),t=t(),r.popScopeId(),t),c3={key:1,class:"upload-btn"},d3={class:"tip"},u3={class:"loading-statu"},f3={class:"operate-btn"},p3={key:0},h3={class:"el-upload-list el-upload-list--picture-card",style:{float:"left"}},m3=["onClick"],g3=fi(()=>r.createElementVNode("span",{class:"error"},"上传错误",-1)),y3=fi(()=>r.createElementVNode("p",null,"点击重新上传",-1)),b3=["src"],_3={class:"demo-image__preview"},E3=r.defineComponent({__name:"index",props:{title:{type:String,default:"上传图片"},loadUrl:{type:String,default:""},action:{type:String,default:""},limit:{type:Number,default:5},size:{type:Number,default:50},accept:{type:String,default:"image/*"},fit:{type:String,default:"contain"},preview:{type:Boolean,default:!1},multiple:{type:Boolean,default:!0},tip:{type:Boolean,default:!1},tipText:{type:String,default:""},modelValue:{type:Array,default:()=>[]}},emits:["delete","success"],setup(t,{emit:e}){const n=t;r.watch(()=>n.modelValue,x=>{i.value=x.map(k=>{var D;return{...k,__url:(D=k.url)!=null&&D.startsWith("http")?k.url:`${n.loadUrl}${k.url}`}})},{deep:!0});const l=e,o=r.computed(()=>n.size),a=r.ref(null),i=r.ref(n.modelValue.map(x=>{var k;return{...x,__url:(k=x.url)!=null&&k.startsWith("http")?x.url:`${n.loadUrl}${x.url}`}})),s=r.ref([]),d=r.ref(!1),f=r.ref(0),u=r.computed(()=>n.tipText||`最多可上传${n.limit}张图片, 每张图片不能超过${n.size}MB`),g=(x,k)=>{i.value=H._.cloneDeep(k.map(D=>{var S,M;return{...D,__url:(S=D.url)!=null&&S.startsWith("http")||(M=D.url)!=null&&M.startsWith("blob:")?D.url:`${n.loadUrl}${D.url}`}})),console.log("fileList.value: ",i.value)},h=x=>!(!(x.type==="image/jpeg"||x.type==="image/png")||!(x.size/1024/1024<o.value)),c=()=>!1,y=(x,k)=>{var D,S;x.status="ready",k!==void 0&&s.value.splice(k,1),(D=a.value)==null||D.handleStart(x.raw),(S=a.value)==null||S.submit()},m=(x,k)=>{var B,L;const D=i.value.length,S=n.limit-D;let M=0;for(;M<S&&M<x.length;)(B=a.value)==null||B.handleStart(x[M]),(L=a.value)==null||L.submit(),M++},p=(x,k,D)=>{l("success",x,k,D)},_=(x,k,D)=>{s.value.push({...k,__url:k.url})},b=x=>{d.value=!0,f.value=i.value.findIndex(k=>k.url===x.url)},C=x=>{H.ikFile.downloadByOnlineUrl(x.__url||x.url,x.name)},v=x=>{var k;(k=a.value)==null||k.abort(x)},I=x=>{var k;x.status!=="success"&&v(x),(k=a.value)==null||k.handleRemove(x),i.value=i.value.filter(D=>D.uid!==x.uid),l("delete",x)},N=(x,k)=>{s.value.splice(k,1)};return(x,k)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(r.unref(A.ElUpload),{class:r.normalizeClass(["ik-image-upload",{preview:t.preview}]),ref_key:"refUpload",ref:a,"list-type":"picture-card",accept:t.accept,action:t.action,"file-list":i.value,"onUpdate:fileList":k[0]||(k[0]=D=>i.value=D),multiple:t.multiple,limit:t.limit,"on-change":g,"before-upload":h,"before-remove":c,"on-exceed":m,"on-success":p,"on-error":_,drag:""},r.createSlots({trigger:r.withCtx(()=>[x.$slots.trigger?r.renderSlot(x.$slots,"trigger",{key:0},void 0,!0):(r.openBlock(),r.createElementBlock("div",c3,[r.createVNode(r.unref(A.ElIcon),null,{default:r.withCtx(()=>[r.createVNode(r.unref(Gi))]),_:1}),r.createElementVNode("span",null,r.toDisplayString(t.title),1)]))]),file:r.withCtx(({file:D})=>[r.createElementVNode("div",{class:r.normalizeClass(["load-list",{loading:D.status==="uploading"}]),"element-loading-background":"var(--ik-upload-bg)"},[r.withDirectives(r.createElementVNode("div",u3,[r.createVNode(s3),r.createTextVNode(" 上传"+r.toDisplayString(D.percentage)+"% ",1)],512),[[r.vShow,D.status==="uploading"]]),r.createCommentVNode(` <img :src="file.url" alt="" :style="{ 'object-fit': fit }" /> `),r.createVNode(r.unref(A.ElImage),{style:{width:"100%",height:"100%"},src:D.__url||D.url,"zoom-rate":1.2,"initial-index":0,fit:"contain"},null,8,["src"]),r.createElementVNode("span",f3,[r.createElementVNode("span",null,[r.createVNode(r.unref(A.ElIcon),{onClick:S=>b(D)},{default:r.withCtx(()=>[r.createVNode(r.unref(ss))]),_:2},1032,["onClick"])]),r.createElementVNode("span",null,[r.createVNode(r.unref(A.ElIcon),{onClick:S=>C(D)},{default:r.withCtx(()=>[r.createVNode(r.unref(An))]),_:2},1032,["onClick"])]),t.preview?r.createCommentVNode("v-if",!0):(r.openBlock(),r.createElementBlock("span",p3,[r.createVNode(r.unref(A.ElIcon),{onClick:S=>I(D)},{default:r.withCtx(()=>[r.createVNode(r.unref(Ct))]),_:2},1032,["onClick"])]))])],2)]),default:r.withCtx(()=>[r.createElementVNode("ul",h3,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(s.value,(D,S)=>(r.openBlock(),r.createElementBlock("li",{class:"el-upload-list__item",key:D.uid},[r.createElementVNode("span",null,[r.createVNode(r.unref(A.ElIcon),{onClick:M=>N(D,S)},{default:r.withCtx(()=>[r.createVNode(r.unref(Zr))]),_:2},1032,["onClick"])]),r.createElementVNode("div",{class:r.normalizeClass(["load-list",{loading:D.status==="uploading",fail:D.status==="fail"}]),"element-loading-background":"var(--ik-upload-bg)"},[r.withDirectives(r.createElementVNode("div",{class:"loading-statu",onClick:M=>y(D,S)},[r.createVNode(r.unref(A.ElIcon),{size:24},{default:r.withCtx(()=>[r.createVNode(r.unref(Sn))]),_:1}),g3,y3],8,m3),[[r.vShow,D.status==="fail"]]),r.createElementVNode("img",{src:D.__url,alt:"",style:r.normalizeStyle({"object-fit":t.fit})},null,12,b3)],2)]))),128))])]),_:2},[t.tip?{name:"tip",fn:r.withCtx(()=>[r.createElementVNode("span",d3,r.toDisplayString(u.value),1)]),key:"0"}:void 0]),1032,["class","accept","action","file-list","multiple","limit"]),r.createCommentVNode(" 文件预览 "),r.createElementVNode("div",_3,[d.value?(r.openBlock(),r.createBlock(r.unref(A.ElImageViewer),{key:0,"hide-on-click-modal":"",onClose:k[1]||(k[1]=()=>{d.value=!1}),"url-list":i.value.map(D=>D.__url),"initial-index":f.value},null,8,["url-list","initial-index"])):r.createCommentVNode("v-if",!0)])],64))}}),S2="",k3=ae(X(E3,[["__scopeId","data-v-b6b97c2a"]])),C3=["src"],v3={name:"IkPrintConfig"},w3=r.defineComponent({...v3,props:{id:{},srcPrefix:{default:""},token:{}},emits:["created"],setup(t,{emit:e}){const n=t,l=e,o=r.computed(()=>!!n.id),a=r.reactive({currentId:n.id,loading:!0,src:""}),i=async()=>{fetch(`${n.srcPrefix??""}/jmreport/save`,{method:"POST",body:JSON.stringify({}),headers:{"Content-Type":"application/json",Authorization:n.token??""}}).then(d=>d.json()).then(({code:d,result:f})=>{if(d===200){const u=f.id;a.currentId=u,a.src=`${n.srcPrefix??""}/jmreport/index/${a.currentId}?token=${n.token}&menuType=printinfo`,l("created",a.currentId)}}).catch(d=>{console.error(d)})},s=()=>{if(!o.value){i();return}a.src=`${n.srcPrefix??""}/jmreport/index/${a.currentId}?token=${n.token}`};return r.onMounted(()=>{s()}),(d,f)=>a.src?(r.openBlock(),r.createElementBlock("iframe",{key:0,width:"100%",height:"100%",src:a.src,frameborder:"0"},null,8,C3)):r.createCommentVNode("v-if",!0)}}),A3=ae(w3),S3=["src"],D3={name:"IkPrintView"},x3=r.defineComponent({...D3,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(t,{emit:e}){const n=t,l=e,o=r.computed({get:()=>n.modelValue,set:s=>{l("update:modelValue",s)}}),a=r.reactive({src:"",showIframe:!1}),i=()=>{a.showIframe=!1,a.src=`${n.srcPrefix}/jmreport/view/${n.templateId}?token=${n.token??""}&${n.idKey}=${n.dataId}`,setTimeout(()=>{a.showIframe=!0},300)};return r.watch(()=>o.value,s=>{s&&i()}),r.onMounted(()=>{o.value&&i()}),(s,d)=>{const f=r.resolveComponent("el-dialog");return r.openBlock(),r.createBlock(f,{modelValue:o.value,"onUpdate:modelValue":d[0]||(d[0]=u=>o.value=u),fullscreen:"",title:"预览"},{default:r.withCtx(()=>[r.createElementVNode("div",{style:r.normalizeStyle({width:n.width,height:n.height})},[a.showIframe?(r.openBlock(),r.createElementBlock("iframe",{key:0,width:"100%",height:"100%",src:a.src,frameborder:"0"},null,8,S3)):r.createCommentVNode("v-if",!0)],4)]),_:1},8,["modelValue"])}}}),N3=ae(x3),T3={class:"ik-full-calendar"},B3=["onClick"],V3={key:0,class:"event-title allday"},R3={key:0,class:"event-title-time"},I3={key:1,class:"event-title no-allday"},M3={class:"event-title-time"},O3={class:"event-title-text"},L3={name:"IkFullCalendar"},F3=r.defineComponent({...L3,props:{options:{default:{}},removable:{type:Boolean,default:!0},modelValue:{default:[]},tooltipFieldName:{default:"remark"}},emits:["added","deleted","update:modelValue","eventClick","deleteClick","dateSelect"],setup(t,{expose:e,emit:n}){const l=t,o=r.computed({get:()=>l.modelValue,set:b=>a("update:modelValue",b)}),a=n,i=r.ref(null),s=b=>{},d=r.ref("dayGridMonth"),f=b=>{a("dateSelect",b)},u=b=>{a("eventClick",b)},g=b=>{a("deleteClick",b)},h=()=>({locale:nl,plugins:[ja,oi,Ka],headerToolbar:{left:"dayGridMonth,timeGridWeek,timeGridDay prev,today,next",center:"title",right:""},firstDay:1,initialView:"dayGridMonth",weekends:!0,editable:!0,selectable:!0,selectMirror:!0,dateClick:s,select:f,...l.options,events:o.value}),c=r.reactive({timeType:"month",options:h()}),y=r.ref(null),m=()=>{var b;c.options=h(),(b=i.value)==null||b.buildOptions(c.options)};e({...{prev:()=>{var b;(b=y.value)==null||b.prev()},next:()=>{var b;(b=y.value)==null||b.next()},today:()=>{var b;(b=y.value)==null||b.today()},changeView:b=>{var C;(C=y.value)==null||C.changeView(b),d.value=b},getDate:()=>{var b;return(b=y.value)==null?void 0:b.getDate()},getView:()=>{var b;return(b=y.value)==null?void 0:b.view},unselect:()=>{var b;return(b=y.value)==null?void 0:b.unselect()}}}),r.watch(()=>o.value,()=>{m()});const _=()=>{var b;y.value=(b=i.value)==null?void 0:b.getApi()};return r.onMounted(()=>{_()}),(b,C)=>{const v=r.resolveComponent("el-tooltip"),I=r.resolveComponent("el-icon");return r.openBlock(),r.createElementBlock("div",T3,[r.createVNode(r.unref(Ia),{ref_key:"_ref",ref:i,options:c.options,style:{height:"100%"}},{eventContent:r.withCtx(N=>[r.createElementVNode("div",{class:"title-line",onClick:x=>u(N)},[r.createVNode(v,null,{content:r.withCtx(()=>{var x,k;return[r.createCommentVNode(" {{arg}} "),r.createTextVNode(" "+r.toDisplayString((k=(x=N.event)==null?void 0:x.extendedProps)==null?void 0:k[l.tooltipFieldName]),1)]}),default:r.withCtx(()=>[N.event.allDay?(r.openBlock(),r.createElementBlock("span",V3,[d.value==="dayGridMonth"?(r.openBlock(),r.createElementBlock("span",R3,r.toDisplayString("(全天)"))):r.createCommentVNode("v-if",!0),r.createElementVNode("span",null,r.toDisplayString(N.event.title),1)])):(r.openBlock(),r.createElementBlock("span",I3,[r.createElementVNode("span",M3,r.toDisplayString(r.unref(H.ikDate).toDateTime(N.event.startStr,"HH:mm")),1),r.createElementVNode("span",O3,r.toDisplayString(N.event.title),1)]))]),_:2},1024),l.removable?(r.openBlock(),r.createBlock(I,{key:0,size:16,onClick:r.withModifiers(x=>g(N),["stop"])},{default:r.withCtx(()=>[r.createVNode(r.unref(Xr))]),_:2},1032,["onClick"])):r.createCommentVNode("v-if",!0)],8,B3)]),_:1},8,["options"])])}}}),x2="",H3=X(F3,[["__scopeId","data-v-f0925ff8"]]);class P3{constructor(){ut(this,"id",new Date().getTime());ut(this,"title","");ut(this,"start","");ut(this,"end","");ut(this,"allDay",!1);ut(this,"extendedProps",{})}}const pi=ae(H3),z3={class:"inline-block ik-svg-icon ik-icon line-height-[0] inline-flex justify-center"},$3={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},U3=["xlink:href"],j3=["src"],W3={key:1,class:"h-[1em] w-[1em]","aria-hidden":"true"},G3=["xlink:href"],Y3=["src"],pe=ae(r.defineComponent({name:"IkSvgIcon",__name:"index",props:{name:{},flip:{},rotate:{},color:{},opacity:{default:.5},size:{default:""},bg:{type:Boolean,default:!1},showBg:{type:Boolean,default:!1},padding:{default:"0"},warning:{type:Boolean},notip:{type:Boolean,default:!1},title:{}},setup(t){const e=t,n=r.computed(()=>{var o;return/^http?:\/\//.test(e.name)?"img":/i-[^:]+:[^:]+/.test(e.name)?"unocss":e.name.startsWith("iksig")?"iksig":(o=e.name)!=null&&o.includes(":")?"iconify":"svg"}),l=r.computed(()=>{const o=[];if(e.flip)switch(e.flip){case"horizontal":o.push("rotateY(180deg)");break;case"vertical":o.push("rotateX(180deg)");break;case"both":o.push("rotateX(180deg)"),o.push("rotateY(180deg)");break}return e.rotate&&o.push(`rotate(${e.rotate%360}deg)`),{...e.color&&{color:e.color},...e.size&&{fontSize:typeof e.size=="number"?`${e.size}px`:e.size},...o.length&&{transform:o.join(" ")},padding:e.padding,...e.color&&n.value!=="iksig"?{"--ik-color-icon-dark":e.color,"--ik-color-icon-light":H.ikColor.setOpacity(e.color,e.opacity||.4)}:{}}});return(o,a)=>{const i=r.resolveComponent("el-tooltip");return r.openBlock(),r.createElementBlock("span",z3,[o.notip||!o.title?(r.openBlock(),r.createElementBlock("i",{key:0,class:r.normalizeClass(["relative h-[1em] w-[1em] flex-inline items-center justify-center fill-current leading-[1em] transition",{[o.name]:n.value==="unocss","show-bg":o.showBg||o.bg,default:o.size==="default",small:o.size==="small",big:o.size==="big",warning:o.warning}]),style:r.normalizeStyle(l.value)},[n.value==="iksig"?(r.openBlock(),r.createElementBlock("i",{key:0,class:r.normalizeClass(`iksig ${o.name}`),style:r.normalizeStyle(l.value)},null,6)):n.value==="svg"?(r.openBlock(),r.createElementBlock("svg",$3,[r.createElementVNode("use",{"xlink:href":`#${o.name}`},null,8,U3)])):n.value==="img"?(r.openBlock(),r.createElementBlock("img",{key:2,src:o.name,class:"h-[1em] w-[1em]"},null,8,j3)):r.createCommentVNode("v-if",!0)],6)):(r.openBlock(),r.createBlock(i,{key:1,content:o.title},{default:r.withCtx(()=>[r.createElementVNode("i",{class:r.normalizeClass(["ik-svg-icon ik-icon relative h-[1em] w-[1em] flex-inline items-center justify-center fill-current leading-[1em] transition",{[o.name]:n.value==="unocss","show-bg":o.showBg||o.bg,default:o.size==="default",small:o.size==="small",big:o.size==="big",warning:o.warning}]),style:r.normalizeStyle(l.value)},[n.value==="iksig"?(r.openBlock(),r.createElementBlock("i",{key:0,class:r.normalizeClass(`iksig ${o.name}`),style:r.normalizeStyle(l.value)},null,6)):n.value==="svg"?(r.openBlock(),r.createElementBlock("svg",W3,[r.createElementVNode("use",{"xlink:href":`#${o.name}`},null,8,G3)])):n.value==="img"?(r.openBlock(),r.createElementBlock("img",{key:2,src:o.name,class:"h-[1em] w-[1em]"},null,8,Y3)):r.createCommentVNode("v-if",!0)],6)]),_:1},8,["content"]))])}}})),zr=t=>(r.pushScopeId("data-v-e308f501"),t=t(),r.popScopeId(),t),q3={class:"ik-schedule"},Q3={class:"ik-schedule__left"},Z3={class:"ik-schedule__header"},X3={class:"ik-schedule__title"},K3=zr(()=>r.createElementVNode("div",{class:"ik-schedule__header-right"},null,-1)),J3={class:"ik-schedule__body"},ey={style:{"font-size":"18px"}},ty={key:0},ny={style:{width:"90%",display:"flex","align-items":"center","justify-content":"space-between"}},ry={key:0,style:{"margin-left":"2%"}},ly=zr(()=>r.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),oy={key:1},ay=zr(()=>r.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),iy={class:"dialog-footer"},sy={name:"IkSchedule"},cy=r.defineComponent({...sy,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(t,{expose:e,emit:n}){var x;const l=t,o=n,a=!!r.useSlots().form,i=r.computed({get:()=>l.modelValue,set:k=>{o("update:modelValue",k)}}),s=r.computed(()=>({...l.options,headerToolbar:!1})),d=r.reactive({currentView:(x=l.options)==null?void 0:x.initialView,viewTitle:"",rightLabel:"今日",timeType:"month",currentDate:null}),f=r.ref(null),u=k=>{var D;(D=f.value)==null||D.changeView(k),d.currentView=k,g()},g=()=>{var D;const k=(D=f.value)==null?void 0:D.getView();d.viewTitle=k==null?void 0:k.title},h=()=>{var k;(k=f.value)==null||k.prev(),g()},c=()=>{var k;(k=f.value)==null||k.next(),g()},y=()=>{var k;(k=f.value)==null||k.today(),g()},m=k=>d.currentView===k,p=r.ref(null),_={createDefaultForm:()=>({title:"",allDay:!1,type:1,startDate:"",endDate:"",startTime:"",endTime:"",location:"",remark:""}),close:()=>{C.value=!1},customSubmit:k=>{var S,M;let D={...k,id:void 0,allDay:b.form.allDay,start:(S=b.selectInfo)==null?void 0:S.startStr,end:(M=b.selectInfo)==null?void 0:M.endStr};_.operation(D),_.close()},operation:k=>{var D;b.operation==="add"?o("submitAdd",k):(k.id=(D=b.editEvent)==null?void 0:D.id,o("submitUpdate",k))},submit:async()=>{var D,S;if(a){o("submit");return}if(!b.form.title){A.ElMessage.info("标题不能为空");return}if(!b.form.allDay&&(!b.form.startTime||!b.form.endTime)){A.ElMessage.info("时间不能为空");return}let k={id:void 0,title:b.form.title,allDay:b.form.allDay,start:(D=b.selectInfo)==null?void 0:D.startStr,end:(S=b.selectInfo)==null?void 0:S.endStr,extendedProps:{...b.form}};if(k.allDay)k.start=H.ikDate.toDate(b.form.startDate),k.end=H.ikDate.toDate(b.form.endDate);else{const M=H.ikDate.toDate(b.form.startDate),B=H.ikDate.toDateTime(b.form.startTime).substring(10),L=H.ikDate.toDateTime(b.form.endTime).substring(10);k.start=`${M}${B}`,k.end=`${M}${L}`,k.extendedProps.startTime=k.start,k.extendedProps.endTime=k.end}_.operation(k),_.close()},reset:()=>{var k;b.form=_.createDefaultForm(),(k=p.value)==null||k.clearValidate()},edit:()=>{b.editable=!0,b.title="编辑日程"},cancelEdit:()=>{b.editable=!1,b.title="日程信息"},del:()=>{N(b.clickInfo)}},b=r.reactive({operation:"update",selectInfo:{},editEvent:void 0,title:"",visible:!1,allDay:!1,form:_.createDefaultForm(),editable:!1,clickInfo:null}),C=r.computed({get:()=>b.visible,set:k=>{b.visible=k}}),v=k=>{var D;if(b.form.allDay=k.allDay,b.selectInfo=k,_.reset(),k.view.type=="dayGridMonth"){let S=k.end.getTime()-864e5;d.timeType="month",b.form.startDate=H.ikDate.toYMD(k.start),b.form.endDate=H.ikDate.toYMD(new Date(S)),b.form.allDay=!0}else k.view.type=="timeGridWeek"?d.timeType="week":k.view.type=="timeGridDay"&&(d.timeType="day"),b.form.startDate=H.ikDate.toYMD(k.start),b.form.endDate=H.ikDate.toYMD(k.start),b.form.startTime=H.ikDate.toDateTime(k.start),b.form.endTime=H.ikDate.toDateTime(k.end);(D=f.value)==null||D.unselect(),r.nextTick(()=>{b.title="新建日程",b.operation="add",b.editable=!0,C.value=!0,o("editOpen",JSON.parse(JSON.stringify(b)))})},I=k=>{b.title="日程信息",b.operation="update",b.clickInfo=k,b.editEvent=k.event;debugger;b.editEvent.allDay?(b.form.startDate=b.editEvent.startStr,b.form.endDate=b.editEvent.startStr):(b.form.startDate=b.editEvent.startStr,b.form.startTime=b.editEvent.start,b.form.endTime=b.editEvent.end),b.form.title=b.editEvent.title,b.form.allDay=b.editEvent.allDay,wi.copyValue(b.form,b.editEvent.extendedProps),_.cancelEdit(),C.value=!0,o("editOpen",JSON.parse(JSON.stringify(b)))},N=k=>{A.ElMessageBox.confirm(`你确定删除事件 ${k.event.title} ?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{_.close(),o("submitDelete",k.event.id)})};return e({customSubmit:k=>_.customSubmit(k)}),r.onMounted(()=>{g()}),(k,D)=>{const S=r.resolveComponent("el-button"),M=r.resolveComponent("el-button-group"),B=r.resolveComponent("el-icon"),L=r.resolveComponent("el-space"),$=r.resolveComponent("el-input"),R=r.resolveComponent("el-form-item"),J=r.resolveComponent("el-date-picker"),ge=r.resolveComponent("el-time-picker"),it=r.resolveComponent("el-checkbox"),Ht=r.resolveComponent("el-form"),st=r.resolveComponent("el-dialog");return r.openBlock(),r.createElementBlock("div",q3,[r.createElementVNode("div",Q3,[r.createElementVNode("div",Z3,[r.createVNode(L,{style:{"flex-shrink":"0"},size:24},{default:r.withCtx(()=>[r.createVNode(M,null,{default:r.withCtx(()=>[r.createVNode(S,{onClick:D[0]||(D[0]=se=>u("dayGridMonth")),type:m("dayGridMonth")?"primary":""},{default:r.withCtx(()=>[r.createTextVNode("月")]),_:1},8,["type"]),r.createVNode(S,{onClick:D[1]||(D[1]=se=>u("timeGridWeek")),type:m("timeGridWeek")?"primary":""},{default:r.withCtx(()=>[r.createTextVNode("周")]),_:1},8,["type"]),r.createVNode(S,{onClick:D[2]||(D[2]=se=>u("timeGridDay")),type:m("timeGridDay")?"primary":""},{default:r.withCtx(()=>[r.createTextVNode("日")]),_:1},8,["type"])]),_:1}),r.createElementVNode("span",X3,r.toDisplayString(d.viewTitle),1),r.createVNode(M,{style:{"flex-shrink":"0"}},{default:r.withCtx(()=>[r.createVNode(S,{onClick:h},{default:r.withCtx(()=>[r.createVNode(B,null,{default:r.withCtx(()=>[r.createVNode(r.unref(Wr))]),_:1})]),_:1}),r.createVNode(S,{onClick:y},{default:r.withCtx(()=>[r.createTextVNode("今天")]),_:1}),r.createVNode(S,{onClick:c},{default:r.withCtx(()=>[r.createVNode(B,null,{default:r.withCtx(()=>[r.createVNode(r.unref(Gr))]),_:1})]),_:1})]),_:1})]),_:1}),K3]),r.createElementVNode("div",J3,[r.createVNode(r.unref(pi),{removable:k.removable,onDateSelect:v,onDeleteClick:N,onEventClick:I,ref_key:"_refCalendar",ref:f,options:s.value,modelValue:i.value,"onUpdate:modelValue":D[3]||(D[3]=se=>i.value=se)},null,8,["removable","options","modelValue"])])]),r.createCommentVNode(" 新建/修改对话框 "),r.createVNode(st,{width:"700px",modelValue:C.value,"onUpdate:modelValue":D[11]||(D[11]=se=>C.value=se)},{header:r.withCtx(()=>[r.createElementVNode("div",null,[r.createElementVNode("span",ey,r.toDisplayString(b.title),1),b.operation==="update"?(r.openBlock(),r.createElementBlock("span",ty,[b.editable?(r.openBlock(),r.createBlock(r.unref(pe),{key:1,style:{"margin-left":"4px"},name:"iksvg_qiehuan-daohang",onClick:_.cancelEdit},null,8,["onClick"])):(r.openBlock(),r.createBlock(r.unref(pe),{key:0,style:{"margin-left":"4px"},name:"iksvg_xiugai",onClick:_.edit},null,8,["onClick"]))])):r.createCommentVNode("v-if",!0)])]),footer:r.withCtx(()=>[r.createElementVNode("span",iy,[r.renderSlot(k.$slots,"form-footer",{},()=>[r.createElementVNode("span",null,[r.createVNode(S,{onClick:_.close},{default:r.withCtx(()=>[r.createTextVNode("取消")]),_:1},8,["onClick"]),r.createVNode(S,{onClick:_.del},{default:r.withCtx(()=>[r.createTextVNode("删除")]),_:1},8,["onClick"]),r.createVNode(S,{type:"primary",onClick:_.submit},{default:r.withCtx(()=>[r.createTextVNode("确定")]),_:1},8,["onClick"])])],!0)])]),default:r.withCtx(()=>[r.renderSlot(k.$slots,"form",{},()=>[r.createVNode(Ht,{ref_key:"_editFormRef",ref:p,model:b.form,disabled:!b.editable},{default:r.withCtx(()=>[r.createVNode(R,null,{default:r.withCtx(()=>[r.createVNode(B,{class:"icon"},{default:r.withCtx(()=>[r.createVNode(r.unref(Yr))]),_:1}),r.createVNode($,{modelValue:b.form.title,"onUpdate:modelValue":D[4]||(D[4]=se=>b.form.title=se),placeholder:"请输入标题",style:{width:"90%"},clearable:""},null,8,["modelValue"])]),_:1}),r.createVNode(R,null,{default:r.withCtx(()=>[r.createVNode(B,{class:"icon"},{default:r.withCtx(()=>[r.createVNode(r.unref(Qr))]),_:1}),r.createElementVNode("div",ny,[r.createVNode(J,{disabled:"",modelValue:b.form.startDate,"onUpdate:modelValue":D[5]||(D[5]=se=>b.form.startDate=se),type:"date",placeholder:"开始日期",style:r.normalizeStyle({width:b.form.allDay?"45%":"90%"})},null,8,["modelValue","style"]),b.form.allDay?(r.openBlock(),r.createElementBlock("div",oy,[ay,r.createVNode(J,{disabled:"",modelValue:b.form.endDate,"onUpdate:modelValue":D[8]||(D[8]=se=>b.form.endDate=se),type:"date",placeholder:"结束日期",style:{width:"90%"}},null,8,["modelValue"])])):(r.openBlock(),r.createElementBlock("div",ry,[r.createVNode(ge,{modelValue:b.form.startTime,"onUpdate:modelValue":D[6]||(D[6]=se=>b.form.startTime=se),type:"datetime",placeholder:"开始时间",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"]),ly,r.createVNode(ge,{modelValue:b.form.endTime,"onUpdate:modelValue":D[7]||(D[7]=se=>b.form.endTime=se),type:"datetime",placeholder:"结束时间",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"])])),r.createVNode(it,{modelValue:b.form.allDay,"onUpdate:modelValue":D[9]||(D[9]=se=>b.form.allDay=se),label:"全天",style:{"margin-left":"2%"}},null,8,["modelValue"])])]),_:1}),r.createVNode(R,null,{default:r.withCtx(()=>[r.createVNode(B,{class:"icon"},{default:r.withCtx(()=>[r.createVNode(r.unref(Pi))]),_:1}),r.createVNode($,{type:"textarea",modelValue:b.form.remark,"onUpdate:modelValue":D[10]||(D[10]=se=>b.form.remark=se),placeholder:"描述",style:{width:"90%"},clearable:""},null,8,["modelValue"])]),_:1})]),_:1},8,["model","disabled"])],!0)]),_:3},8,["modelValue"])])}}}),T2="",dy=ae(X(cy,[["__scopeId","data-v-e308f501"]])),uy={key:0,class:"ik-tabs-split overflow-overlay gl-padding"},fy=r.defineComponent({__name:"IkPageTabs",props:r.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:r.mergeModels(["tabClick","search"],["update:modelValue"]),setup(t,{emit:e}){const n=t,l=e,o=r.useModel(t,"modelValue"),a=r.ref(new Map);for(const s of n.tabs)a.value.set(s.id,n.lazyTab?s.id!==o.value:!1);const i=s=>{o.value=s.paneName,a.value.get(s.paneName)||l("tabClick",s.paneName,s),a.value.set(s.paneName,!1)};return(s,d)=>{const f=r.resolveComponent("el-tab-pane"),u=r.resolveComponent("el-tabs");return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createCommentVNode(' <div class="flex-1 contents"> '),r.createVNode(u,{modelValue:o.value,"onUpdate:modelValue":d[0]||(d[0]=g=>o.value=g),class:r.normalizeClass(["ik-tabs",{"is-default":s.$slots.default,"split gl-padding gl-container":t.split}]),onTabClick:i},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.tabs,g=>(r.openBlock(),r.createBlock(f,{key:g.id,disabled:g==null?void 0:g.disabled,name:g.id},{label:r.withCtx(()=>[r.createElementVNode("span",null,r.toDisplayString(g.label),1)]),default:r.withCtx(()=>[!s.$slots.default&&!a.value.get(g.id)&&!t.split?r.renderSlot(s.$slots,g.id,{key:0},void 0,!0):r.createCommentVNode("v-if",!0)]),_:2},1032,["disabled","name"]))),128)),r.createCommentVNode(" 当存在默认slot且需要展示默认slot时 "),s.$slots.default&&t.defaultSlot&&!t.split?r.renderSlot(s.$slots,"default",{key:0},void 0,!0):r.createCommentVNode("v-if",!0)]),_:3},8,["modelValue","class"]),t.split?(r.openBlock(),r.createElementBlock("div",uy,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.tabs,g=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[!s.$slots.default&&!a.value.get(g.id)?r.renderSlot(s.$slots,g.id,{key:0},void 0,!0):r.createCommentVNode("v-if",!0)],64))),256)),s.$slots.default&&t.defaultSlot?r.renderSlot(s.$slots,"default",{key:0},void 0,!0):r.createCommentVNode("v-if",!0)])):r.createCommentVNode("v-if",!0),r.createCommentVNode(" </div> ")],64)}}}),V2="",py=ae(X(fy,[["__scopeId","data-v-e282a7f2"]]));var Ie=(t=>(t.input="input",t.area="area",t.number="number",t.select="select",t.date="date",t.datetime="datetime",t.checkbox="checkbox",t.radio="radio",t.treeselect="treeselect",t.choosePerson="choosePerson",t))(Ie||{}),ot=(t=>(t.year="year",t.month="month",t.date="date",t.dates="dates",t.datetime="datetime",t.week="week",t.datetimerange="datetimerange",t.daterange="daterange",t.monthrange="monthrange",t))(ot||{});function hi(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!r.isVNode(t)}const hy=r.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(t,{emit:e,expose:n}){const l=r.ref(),o={},a=r.ref({}),i=r.ref([]),s=r.ref({...a.value});r.watch(i,(V,q)=>{const j=q.filter(z=>!V.includes(z));if(j.length){let z=!1;j.forEach(G=>{s.value[G]!==void 0&&(z=!0),s.value[G]=void 0}),z&&e("search",s.value)}});const d=()=>{i.value=[],t.list.forEach(V=>{var q,j;a.value[V.key]=a.value[V.value],o[V.key]=o[V.value],i.value.push(V.key),(q=s.value)[j=V.key]??(q[j]=V.value||null)})};d(),r.watch(()=>t.list,()=>{d()});const f=r.computed(()=>i.value.map(V=>t.list.find(q=>q.key===V))),u=()=>{var V;s.value.page=1,(V=t.search)==null||V.call(t,s.value),e("search",s.value)};n({resetForm:()=>{var V,q;(q=(V=l.value)==null?void 0:V.resetFields)==null||q.call(V),u()},reRequest:()=>{u()}});const c=()=>{var V;e("search",s.value),(V=t.search)==null||V.call(t,s.value)},y=V=>{V.key==="Enter"&&u()},m=()=>{var V;(V=l.value)==null||V.resetFields(),u()};t.immediate&&u();const p=({maxlength:V,minlength:q,key:j,disabled:z,placeholder:G,formProp:le={},value:oe,label:ee})=>r.createVNode(A.ElInput,r.mergeProps({modelValue:s.value[j],"onUpdate:modelValue":[te=>s.value[j]=te,te=>s.value[j]=te],clearable:!0,maxlength:V,minlength:q,disabled:z,onBlur:()=>c()},le,{placeholder:(le==null?void 0:le.placeholder)||G||`请输入${ee||""}`}),null),_=({key:V,placeholder:q,max:j,min:z,disabled:G,precision:le,step:oe=1,label:ee,formProp:te={}})=>r.createVNode(A.ElInputNumber,r.mergeProps({modelValue:s.value[V],"onUpdate:modelValue":Me=>s.value[V]=Me,clearable:!0,max:j,min:z,disabled:G,precision:le,step:oe,onChange:()=>c()},te,{placeholder:(te==null?void 0:te.placeholder)||q||`请输入${ee||""}`}),null),b=({key:V,placeholder:q,disabled:j,options:z,label:G,multiple:le=!1,filterable:oe=!0,formProp:ee={}})=>r.createVNode(A.ElSelect,r.mergeProps({modelValue:s.value[V],"onUpdate:modelValue":te=>s.value[V]=te,clearable:!0,disabled:j,multiple:le,filterable:oe,onChange:()=>c()},ee,{placeholder:(ee==null?void 0:ee.placeholder)||q||`请选择${G||""}`}),{default:()=>[z==null?void 0:z.map(te=>r.createVNode(A.ElOption,{key:te.value,label:te.label,value:te.value},null))]}),C=({key:V,disabled:q,options:j,formProp:z={}})=>r.createVNode(A.ElRadioGroup,r.mergeProps({modelValue:s.value[V],"onUpdate:modelValue":G=>s.value[V]=G,disabled:q,onChange:()=>c()},z),{default:()=>[j==null?void 0:j.map(G=>(z==null?void 0:z.radioType)==="button"?r.createVNode(A.ElRadioButton,{key:G.value,label:G.value,name:G.label},null):r.createVNode(A.ElRadio,{key:G.value,label:G.value,name:G.label},null))]}),v=({key:V,disabled:q,options:j,min:z,max:G,formProp:le={}})=>r.createVNode(A.ElCheckboxGroup,r.mergeProps({modelValue:s.value[V],"onUpdate:modelValue":oe=>s.value[V]=oe,disabled:q,max:G,min:z,onChange:()=>c()},le),{default:()=>[j==null?void 0:j.map(oe=>r.createVNode(A.ElCheckbox,{key:oe.value,label:oe.label,value:oe.value},null))]}),I=({key:V,label:q,formProp:j={},placeholder:z})=>r.createVNode(A.ElDatePicker,r.mergeProps({modelValue:s.value[V],"onUpdate:modelValue":G=>s.value[V]=G,onChange:()=>c()},j,{placeholder:(j==null?void 0:j.placeholder)||z||`请选择${q}时间`}),null),N=({key:V,disabled:q,editable:j=!0,startPlaceholder:z="开始日期",endplaceholder:G="结束日期",dateType:le=ot.date,format:oe,placeholder:ee="请选择日期",popperclass:te,rangeSeparator:Me="-",defaultValue:ct,defaultTime:kt,valueFormat:Pt,disabledDate:dt=()=>!1,formProp:Ge={}})=>{let Ee=oe;if(Ee)switch(le){case ot.date:case ot.dates:Ee="YYYY-MM-DD";break;case ot.year:Ee="YYYY";break;case ot.month:Ee="YYYY-MM";break;case ot.week:Ee="YYYY-MM-DD";break;default:Ee=""}return r.createVNode(A.ElDatePicker,r.mergeProps({modelValue:s.value[V],"onUpdate:modelValue":Ye=>s.value[V]=Ye,onChange:()=>c(),disabled:q,type:le,editable:j,startPlaceholder:z,endPlaceholder:G,rangeSeparator:Me,format:Ee,popperClass:te,defaultValue:ct,defaultTime:kt,valueFormat:Pt,disabledDate:dt},Ge,{placeholder:(Ge==null?void 0:Ge.placeholder)||ee||"请选择日期"}),null)},x=({key:V,options:q,multiple:j=!1,filterable:z=!0,nodeKey:G="id",props:le,highlightCurrent:oe=!0,defaultExpandAll:ee=!1,expandOnClickNode:te=!1,placeholder:Me="全部",checkOnClickNode:ct=!1,showCheckbox:kt=!1,checkStrictly:Pt=!0,defaultCheckedKeys:dt=[],currentNodeKey:Ge="",accordion:Ee=!1,formProp:Ye={},label:T})=>r.createVNode(A.ElTreeSelect,r.mergeProps({modelValue:s.value[V],"onUpdate:modelValue":O=>s.value[V]=O,data:q,onChange:()=>c(),clearable:!0,multiple:j,props:le,placeholder:Me,filterable:z,nodeKey:G,highlightCurrent:oe,defaultExpandAll:ee,expandOnClickNode:te,checkOnClickNode:ct,showCheckbox:kt,checkStrictly:Pt,defaultCheckedKeys:dt,currentNodeKey:Ge,accordion:Ee},Ye,{placeholder:(Ye==null?void 0:Ye.placeholder)||Me||`请选择${T||""}`}),null),k=({key:V,selectKey:q,placeholder:j,disabled:z,options:G,multiple:le=!1,filterable:oe=!0,formProp:ee={}})=>r.createVNode(A.ElInput,r.mergeProps({disabled:z,modelValue:s.value[V],"onUpdate:modelValue":te=>s.value[V]=te,onBlur:()=>c()},ee,{placeholder:(ee==null?void 0:ee.placeholder)||j||"全部"}),{prepend:()=>r.createVNode(A.ElSelect,r.mergeProps({disabled:z,multiple:le,filterable:oe,modelValue:s.value[q],"onUpdate:modelValue":te=>s.value[q]=te,onChange:()=>c()},ee),{default:()=>[G==null?void 0:G.map(te=>r.createVNode(A.ElOption,{key:te.value,label:te.label,value:te.value},null))]})}),D="",S="iking",M=r.ref(null),B=r.ref([]),L=r.ref(!1),$=r.ref(""),R=new Map,J=V=>{L.value=!0,B.value=R.has(V)?R.get(V):s.value[V],$.value=V},ge=()=>{R.set($.value,[]),$.value="",c()},it=V=>{var q,j;s.value[$.value]=(q=V.list.map(z=>z.elementName))==null?void 0:q.join(","),R.set($.value,V.list),e("search",s.value),e("pickerChange",V),(j=t.search)==null||j.call(t,s.value)},Ht=({key:V,placeholder:q,typeOption:j,_list:z,maxlength:G,minlength:le,disabled:oe,formProp:ee})=>r.createVNode(A.ElInput,r.mergeProps({modelValue:s.value[V],"onUpdate:modelValue":te=>s.value[V]=te,clearable:!0,maxlength:G,minlength:le,disabled:oe},ee,{onClick:()=>J(V),onClear:()=>ge(),placeholder:(ee==null?void 0:ee.placeholder)||q||`点击选择${label||"人员"}`}),null),st=V=>{switch(V.type){case"":case void 0:case Ie.input:case"el-input":return p(V);case Ie.number:case"el-input-number":return _(V);case Ie.select:case"el-select":return b(V);case Ie.checkbox:case"el-checkbox":return v(V);case Ie.radio:case"el-radio-group":case"el-radio":return C(V);case Ie.date:case"el-date-picker":return N(V);case"el-time-select":return I(V);case Ie.treeselect:case"el-tree-select":return x(V);case Ie.choosePerson:return Ht(V);case"select-input":return k(V);default:return r.createVNode(r.Fragment,null,null)}},se=r.computed(()=>{var j;const V=[],q=f.value.length-1;return(j=f.value)==null||j.forEach((z,G)=>{let le,oe;if(!z)return[];const ee=z.col||1;V.push(r.createVNode(A.ElCol,{xl:{span:ee*6},lg:{span:ee*6},md:{span:ee*12},sm:{span:ee*24}},{default:()=>[G===q?r.createVNode("div",{class:"last-form"},[r.createVNode(A.ElFormItem,{label:z.type==="select-input"?"":z.label,prop:z.key},hi(le=st(z))?le:{default:()=>[le]}),r.createVNode(pe,{name:"icon-sousuo1",pop:!0,title:"搜索",size:"big","show-bg":!0,width:40,onClick:()=>c()},null),r.createVNode(pe,{name:"icon-zhongzhi",pop:!0,title:"重置并搜索",size:"big","show-bg":!0,width:40,onClick:()=>m()},null)]):r.createVNode(A.ElFormItem,{label:z.type==="select-input"?"":z.label,prop:z.key},hi(oe=st(z))?oe:{default:()=>[oe]})]}))}),V});return()=>r.createVNode(r.Fragment,null,[r.createVNode(A.ElCard,{class:"gl-search-card",shadow:t.shadow},{default:()=>[r.createVNode(A.ElForm,{class:"auto-search-form",onKeyup:y,ref:l,model:s.value},{default:()=>[r.createVNode(A.ElRow,{gutter:16},{default:()=>[se.value]})]})]}),r.createVNode(Ft,{ref:M.value,modelValue:B.value,"onUpdate:modelValue":V=>B.value=V,show:L.value,"onUpdate:show":V=>L.value=V,"append-to-body":!0,api:{methods:"post",url:`${D}/server/component/pick/mix`,headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:S}},tabs:["group","role","post"],chooseType:["user"],typeOption:{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},propOption:{name:"elementName",id:"elementId",type:"elementType"},onOk:V=>it(V)},null)])}}),my={class:"header-left"},gy={class:"title"},yy={class:"flex items-center"},by=r.defineComponent({__name:"IkPageHead",props:r.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(t){r.useCssVars(f=>({"59e2b6b4":d}));const e=t,n=r.useModel(t,"modelValue"),l=r.ref(e.defaultShow),o=()=>{l.value=!l.value},a=r.computed(()=>e.fields.filter(f=>!f.onlyForm)),i=r.computed(()=>{var f;return(f=e.fields)==null?void 0:f.filter(u=>u.search)}),s=r.computed(()=>i.value.length),d=`${e.headerHeight}px`;return(f,u)=>{const g=r.resolveComponent("el-card");return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(["ik-page-header",{"show-search":l.value}])},[r.createElementVNode("div",{class:"header",style:r.normalizeStyle({borderColor:t.headerBorder?"var(--ik-border-color)":"transparent",marginBottom:t.headerBorder?"8px":"0"})},[r.createElementVNode("div",my,[r.createCommentVNode(' 左侧标题、tab页或自定义内容 v-if="!$slots.headerLeft" '),r.createElementVNode("span",gy,r.toDisplayString(t.headerTitle),1),r.renderSlot(f.$slots,"headerLeft",{},void 0,!0)]),r.createCommentVNode(" 默认按钮 "),r.createElementVNode("div",yy,[r.createCommentVNode(" 右侧操作或自定义内容 "),r.renderSlot(f.$slots,"headerRight",{},void 0,!0),t.exportBtn?(r.openBlock(),r.createBlock(r.unref(pe),{key:0,name:"iksvg_xiazai",type:"primary",title:"导出","show-bg":"",size:"default"})):r.createCommentVNode("v-if",!0),s.value?(r.openBlock(),r.createBlock(r.unref(pe),{key:1,name:"iksvg_shaixuan1",size:"default",title:l.value?"收起筛选条件":"展开筛选条件","show-bg":"",onClick:o},null,8,["title"])):r.createCommentVNode("v-if",!0),t.refreshBtn?(r.openBlock(),r.createBlock(r.unref(pe),{key:2,name:"iksvg_zhongzhi1",title:"保留搜索条件刷新","show-bg":"",size:"default",onClick:t.search},null,8,["onClick"])):r.createCommentVNode("v-if",!0),r.createCommentVNode(` <IkSvgIcon\r
|
|
35
35
|
name="icon-shezhi"\r
|
|
36
36
|
show-bg\r
|
|
37
37
|
:width="40"\r
|
|
38
38
|
size="small"\r
|
|
39
|
-
/> `),
|
|
39
|
+
/> `),r.createVNode(r.unref(yi),{modelValue:n.value,"onUpdate:modelValue":u[0]||(u[0]=h=>n.value=h),title:"设置表格字段",list:a.value,tab:t.tabId},null,8,["modelValue","list","tab"])])],4),r.createVNode(g,{shadow:"always",class:"search-form"},{default:r.withCtx(()=>[r.createVNode(r.unref(hy),{list:i.value,search:t.search,loading:t.loading},null,8,["list","search","loading"]),r.createElementVNode("span",{class:"hide-serch",onClick:o},[r.createVNode(r.unref(pe),{title:"收起",rotate:"180",name:"icon-shouqi"})])]),_:1})],2)}}}),M2="",_y=X(by,[["__scopeId","data-v-659625f1"]]),mi={headerTitle:{type:String,default:""},headerBorder:{type:Boolean,default:!1},tabs:{type:Array,default:()=>[]},fields:{required:!0,type:Array,default:()=>[]},tableData:{type:Array,default:()=>[]},immediate:{type:Boolean,default:!0},total:{type:Number,default:0},search:{type:Function,default:null},selection:{type:Boolean,default:!1},serial:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},tabId:{type:Number||String,default:0},exportBtn:{type:Boolean,default:!1},refreshBtn:{type:Boolean,default:!0},settingBtn:{type:Boolean,default:!0},chooseLen:{type:Number,default:0},current:{type:Number,default:1},defaultShow:{type:Boolean,default:!1},dialogSize:{type:String,default:"l"},title:{type:String,default:""},role:{type:String,default:""},formKey:{type:Object,default:()=>({})},dialogProp:{type:Object,default:()=>{}},headerHeight:{type:Number,default:66}},Ey={class:"total"},ky={class:"num"},Cy=r.defineComponent({__name:"IkPage",props:{total:{type:Number,default:0},mini:{type:Boolean,default:!1},search:{type:Function,default:null},current:{type:Number,default:0}},emits:["currentChange","sizeChange"],setup(t,{emit:e}){const n=t,l=e,o=r.ref(1);r.watch(()=>n.current,f=>{o.value=f});const a=[15,30,60,100,200,500],i=r.ref(a[0]),s=f=>{l("sizeChange",f),n==null||n.search({page:o.value,rows:i.value})},d=f=>{l("currentChange",f),n==null||n.search({page:o.value,rows:i.value})};return(f,u)=>{const g=r.resolveComponent("el-pagination");return r.openBlock(),r.createBlock(g,r.mergeProps({"current-page":o.value,"onUpdate:currentPage":u[0]||(u[0]=h=>o.value=h),"page-size":i.value,"onUpdate:pageSize":u[1]||(u[1]=h=>i.value=h)},f.$attrs,{layout:"slot, ->, sizes, prev, pager, next, jumper",small:t.mini,total:t.total,"page-sizes":a,class:"ik-pagin-action",onSizeChange:s,onCurrentChange:d}),{default:r.withCtx(()=>[r.createElementVNode("span",Ey,[r.createTextVNode(" 共"),r.createElementVNode("span",ky,r.toDisplayString(t.total),1),r.createTextVNode(" 项数据 ")])]),_:1},16,["current-page","page-size","small","total"])}}}),O2="",vy=X(Cy,[["__scopeId","data-v-e7b4fc6e"]]),wy=r.defineComponent({__name:"IkPageTable",props:mi,emits:["selection-change","page-change"],setup(t,{expose:e,emit:n}){var h;const l=t,o=n,{attrs:a}=r.getCurrentInstance(),i=r.ref({page:((h=a.page)==null?void 0:h.page)||1,rows:15}),s=r.computed(()=>{const{page:c,rows:y}=(a==null?void 0:a.page)||i.value,m=H._.cloneDeep(l.tableData);return m.forEach((p,_)=>{p.__index=c===1?_+1:(c-1)*y+_+1}),m}),d=c=>{i.value=c,o("page-change",c),l.search()},f=r.ref([]),u=c=>{f.value=c,o("selection-change",c)},g=r.ref();return e({table:g}),(c,y)=>{var b,C,v;const m=r.resolveComponent("el-table-column"),p=r.resolveComponent("el-table"),_=r.resolveDirective("loading");return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createCommentVNode(" 自定义表格 "),(b=c.$slots)!=null&&b.table?r.renderSlot(c.$slots,"table",{key:0},void 0,!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createCommentVNode(" 默认表格 "),r.createVNode(r.Transition,{name:"el-zoom-in-center"},{default:r.withCtx(()=>[r.withDirectives((r.openBlock(),r.createBlock(p,r.mergeProps({ref_key:"refTable",ref:g},{...c.$attrs,...l},{data:s.value,style:{width:"100%"},onSelectionChange:u}),{default:r.withCtx(()=>[c.selection?(r.openBlock(),r.createBlock(m,{key:0,type:"selection",align:"center",width:"56"})):r.createCommentVNode("v-if",!0),c.serial?(r.openBlock(),r.createBlock(m,{key:1,prop:"__index",label:"序号",width:60,align:"center"})):r.createCommentVNode("v-if",!0),r.renderSlot(c.$slots,"default",{},void 0,!0)]),_:3},16,["data"])),[[_,c.loading]])]),_:3})],64)),r.createCommentVNode(" 分页 "),c.total?(r.openBlock(),r.createBlock(vy,{key:2,current:((v=(C=c.$attrs)==null?void 0:C.page)==null?void 0:v.page)||1,total:c.total,search:d},null,8,["current","total"])):r.createCommentVNode("v-if",!0)],64)}}}),L2="",Ay=X(wy,[["__scopeId","data-v-20be6a37"]]),Sy={class:"choose"},Dy={class:"btn"},xy=r.defineComponent({__name:"index",props:r.mergeModels(mi,{modelValue:{type:Object,default:()=>({page:1,rows:15})},modelModifiers:{}}),emits:r.mergeModels(["selection-change","delete","download","addFunction"],["update:modelValue"]),setup(t,{expose:e,emit:n}){const l=t,o=n,a=r.useModel(t,"modelValue"),i=()=>{var N;(N=a==null?void 0:a.value)!=null&&N.page&&(a.value={page:1,rows:15})};i();const s=N=>{a.value={...a.value,...N}},d=N=>{var k;i();const x=(N==null?void 0:N.type)==="click"?{}:N;a.value={...a.value,...x},(k=l==null?void 0:l.search)==null||k.call(l,{...a.value})},f=r.ref([]),u=N=>{f.value=N,o("selection-change",N)},g=r.computed(()=>f.value.length||l.chooseLen),h=r.ref(l.fields),c=r.computed(()=>"light"),y=r.ref(),m=r.ref(),p=r.ref(),_=r.ref(!1),b=r.ref(void 0),C=r.ref(l.title||""),v=N=>{b.value=N?{...N}:null,l.title?l.title.includes("新增")||l.title.includes("修改")?C.value=N?l.title.replace(/新增/g,"修改"):l.title.replace(/修改/g,"新增"):C.value=N?`修改${l.title}`:`新增${l.title}`:C.value=N?"修改":"新增",_.value=!0},I=r.computed(()=>l.fields.find(N=>N.isEdit));return e({table:y,header:m,chooseList:f,srotFields:h,pageData:a,dialog:p,handAdd:v}),(N,x)=>{const k=r.resolveComponent("el-button"),D=r.resolveComponent("IkNumberDuration"),S=r.resolveComponent("el-table-column"),M=r.resolveDirective("role");return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createCommentVNode(" 标题 + 搜索表单 "),r.createVNode(_y,r.mergeProps({ref_key:"refHeader",ref:m},{...N.$attrs,...l},{modelValue:h.value,"onUpdate:modelValue":x[1]||(x[1]=B=>h.value=B),loading:N.loading,search:d,"tab-id":N.tabId}),{headerLeft:r.withCtx(()=>[r.renderSlot(N.$slots,"headerLeft",{},void 0,!0)]),headerRight:r.withCtx(()=>[r.renderSlot(N.$slots,"headerRight",{},()=>[I.value?r.withDirectives((r.openBlock(),r.createBlock(k,{key:0,type:"primary",onClick:x[0]||(x[0]=B=>v(null))},{default:r.withCtx(()=>[r.createTextVNode(" 新增 ")]),_:1})),[[M,N.role]]):r.createCommentVNode("v-if",!0)],!0)]),_:3},16,["modelValue","loading","tab-id"]),r.createCommentVNode(" 选中表格项 "),N.selection?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["hand-selection",{select:g.value}])},[r.createElementVNode("p",Sy,[r.createTextVNode(" 已选 "),r.createElementVNode("span",null,[r.createVNode(D,{value:g.value},null,8,["value"])]),r.createTextVNode(" 条 ")]),r.createElementVNode("div",Dy,[N.$slots.selectionRight?r.renderSlot(N.$slots,"selectionRight",{key:1},void 0,!0):(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createVNode(r.unref(pe),{name:"icon-shanchu","show-bg":"",size:"default",onClick:x[2]||(x[2]=B=>N.$emit("delete",f.value))}),r.createVNode(r.unref(pe),{ize:"default",name:"icon-xiazai","show-bg":"",onClick:x[3]||(x[3]=B=>N.$emit("download",f.value))})],64))])],2)):r.createCommentVNode("v-if",!0),r.createCommentVNode(" 自定义表格 "),r.renderSlot(N.$slots,"table",{},()=>[r.createVNode(Ay,r.mergeProps({ref_key:"refTable",ref:y,page:a.value},{...N.$attrs,...l},{onPageChange:s,onSelectionChange:u}),{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(h.value,B=>(r.openBlock(),r.createElementBlock(r.Fragment,{key:B.key},[B.show?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[B.tableSlot?(r.openBlock(),r.createBlock(S,r.mergeProps({key:1,align:B.align,width:B.width,"min-width":B.minWidth,"show-overflow-tooltip":{effect:c.value??"light"}},{...B,...N.$attrs,...l}),{default:r.withCtx(L=>[r.renderSlot(N.$slots,B.tableSlot,{data:L},void 0,!0)]),_:2},1040,["align","width","min-width","show-overflow-tooltip"])):(r.openBlock(),r.createBlock(S,r.mergeProps({key:0,prop:B.key,width:B.width,"min-width":B.minWidth,align:B.align,"show-overflow-tooltip":{effect:c.value??"light"},"show-arrow":!1},{...B,...N.$attrs,...l}),null,16,["prop","width","min-width","align","show-overflow-tooltip"]))],64)):r.createCommentVNode("v-if",!0)],64))),128))]),_:3},16,["page"])],!0),r.createCommentVNode(" 新增修改 "),r.createCommentVNode(` <IkDialog\r
|
|
40
40
|
v-if="needAutoForm"\r
|
|
41
41
|
ref="refIkDialog"\r
|
|
42
42
|
v-bind="{ ...dialogProp }"\r
|
|
@@ -47,8 +47,4 @@
|
|
|
47
47
|
:form-key="formKey"\r
|
|
48
48
|
:edit-data="editData"\r
|
|
49
49
|
@addFunction="sureAdd"\r
|
|
50
|
-
/> `)],64)}}}),ww="",wy=oe(K(Ey,[["__scopeId","data-v-a4dd744c"]])),Cy={},ky={t:"1672194715727",class:"icon",viewBox:"0 0 1024 1024",version:"1.1","p-id":"2667"},vy=[i.createElementVNode("path",{d:"M809.246403 771.926938 777.737782 803.458071 924.965961 950.667831 956.476629 919.157163Z",fill:"#5D5D5D","p-id":"2668"},null,-1),i.createElementVNode("path",{d:"M454.878536 70.285786C239.51556 70.285786 64.93236 244.847497 64.93236 460.231963c0 215.341486 174.583201 389.945153 389.945153 389.945153 215.362976 0 389.9472-174.603667 389.9472-389.945153C844.825736 244.847497 670.241512 70.285786 454.878536 70.285786zM454.878536 805.611108c-190.750415 0-345.381192-154.626683-345.381192-345.379145 0-190.751439 154.629753-345.380168 345.381192-345.380168 190.752462 0 345.382215 154.62873 345.382215 345.380168C800.259728 650.983401 645.630998 805.611108 454.878536 805.611108z",fill:"#5D5D5D","p-id":"2669"},null,-1)];function Sy(t,e){return i.openBlock(),i.createElementBlock("svg",ky,vy)}const Ay=K(Cy,[["render",Sy]]),Dy={},xy={t:"1710907270798",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8420",width:"200",height:"200"},Ny=[i.createElementVNode("path",{d:"M512 1024A512 512 0 1 0 512 0a512 512 0 0 0 0 1024z",fill:"var(--ik-color-icon-dark)","p-id":"8421"},null,-1),i.createElementVNode("path",{d:"M655.701333 327.082667a41.216 41.216 0 0 1 57.002667-1.194667 39.082667 39.082667 0 0 1 1.109333 56.490667l-145.237333 145.92 145.237333 146.005333c13.824 13.909333 15.189333 35.072 4.266667 50.346667l-5.376 6.144a41.216 41.216 0 0 1-57.002667-1.109334L511.914667 585.130667 368.298667 729.685333a40.96 40.96 0 0 1-42.24 9.557334l-7.68-3.242667-7.082667-5.12a39.082667 39.082667 0 0 1-1.109333-56.576l145.066666-146.005333-145.066666-145.92a39.082667 39.082667 0 0 1-4.266667-50.346667l5.376-6.144a41.216 41.216 0 0 1 57.002667 1.194667L512 471.381333z",fill:"#FFFFFF","p-id":"8422"},null,-1)];function Ty(t,e){return i.openBlock(),i.createElementBlock("svg",xy,Ny)}const Vy=K(Dy,[["render",Ty]]),Ry={},Iy={t:"1710904463698",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7124",width:"200",height:"200"},By=[i.createElementVNode("path",{d:"M512 512a235.392 235.392 0 0 0 235.2-235.52A235.392 235.392 0 0 0 512 40.96a235.392 235.392 0 0 0-235.2 235.52A235.392 235.392 0 0 0 512 512z",fill:"var(--ik-color-icon-light-hover)","p-id":"7125"},null,-1),i.createElementVNode("path",{d:"M41.984 901.12c0 57.408 46.784 103.872 104.512 103.872h731.52c57.664 0 104.448-46.464 104.448-103.808v-51.968c0-143.36-116.992-259.648-261.248-259.648H303.232c-144.256 0-261.248 116.224-261.248 259.648v51.968z",fill:"var(--ik-color-tag-primary)","p-id":"7126"},null,-1)];function Oy(t,e){return i.openBlock(),i.createElementBlock("svg",Iy,By)}const My=K(Ry,[["render",Oy]]),Ly={},zy={t:"1710904436436",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6989",width:"200",height:"200"},Py=[i.createElementVNode("path",{d:"M421.952281 288.898297a42.687867 42.687867 0 0 0-42.111868 31.167903l-122.367618 461.694557a49.919844 49.919844 0 0 0 19.19994 52.223837l232.319274 173.503458a57.59982 57.59982 0 0 0 67.45579 0.447998l234.175268-169.59947a49.983844 49.983844 0 0 0 19.967937-52.351836l-118.783628-465.598545a42.623867 42.623867 0 0 0-41.919869-31.487902H421.952281z",fill:"var(--ik-color-tag-primary)","p-id":"6990"},null,-1),i.createElementVNode("path",{d:"M354.048494 0.0032a44.67186 44.67186 0 0 0-36.479886 18.175943 39.103878 39.103878 0 0 0-4.223987 38.59188L377.792419 206.722554c6.591979 15.359952 22.39993 25.47192 40.127875 25.407921h255.487202c17.919944 0 33.919894-10.431967 40.319874-26.239918L774.39918 56.003025a39.167878 39.167878 0 0 0-4.863985-38.079881A44.67186 44.67186 0 0 0 733.439308 0.0032H354.048494z",fill:"var(--ik-color-icon-light-hover)","p-id":"6991"},null,-1)];function Fy(t,e){return i.openBlock(),i.createElementBlock("svg",zy,Py)}const $y=K(Ly,[["render",Fy]]),Hy={},jy={t:"1710904287393",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6854",width:"200",height:"200"},Uy=[i.createElementVNode("path",{d:"M512 271.296c27.264 0 49.792 22.336 51.136 50.816l0.064 2.688v147.072H832c62.272 0 113.28 51.776 115.2 116.8v103.872c0 28.992-22.144 52.736-49.92 53.44-27.776 0.768-51.008-21.76-52.416-50.752l-0.064-2.688V592.256a13.184 13.184 0 0 0-11.328-13.312L832 578.88H563.2v113.664c0 28.992-22.144 52.736-49.92 53.44-27.776 0.768-51.008-21.76-52.416-50.752L460.8 692.48V578.88H192a12.992 12.992 0 0 0-12.736 11.776l-0.064 1.6v100.288c0 28.992-22.144 52.736-49.92 53.44-27.776 0.768-51.008-21.76-52.416-50.752L76.8 692.48V592.256c0-65.088 49.536-118.4 111.808-120.32H460.8v-147.2c0-29.504 22.912-53.44 51.2-53.44z",fill:"var(--ik-color-icon-light-hover)","p-id":"6855"},null,-1),i.createElementVNode("path",{d:"M204.8 692.48c13.568 0 26.624 5.696 36.224 15.744 9.6 9.984 14.976 23.616 14.976 37.76v160.512c0 29.568-22.912 53.504-51.2 53.504H51.2c-28.288 0-51.2-23.936-51.2-53.504v-160.448c0-29.568 22.912-53.504 51.2-53.504h153.6zM588.8 692.48c13.568 0 26.624 5.696 36.224 15.744 9.6 9.984 14.976 23.616 14.976 37.76v160.512c0 29.568-22.912 53.504-51.2 53.504H435.2c-28.288 0-51.2-23.936-51.2-53.504v-160.448c0-29.568 22.912-53.504 51.2-53.504h153.6zM972.8 692.48c13.568 0 26.624 5.696 36.224 15.744 9.6 9.984 14.976 23.616 14.976 37.76v160.512c0 29.568-22.912 53.504-51.2 53.504h-153.6c-28.288 0-51.2-23.936-51.2-53.504v-160.448c0-29.568 22.912-53.504 51.2-53.504h153.6zM665.6 64c28.288 0 51.2 23.936 51.2 53.504v213.952c0 29.568-22.912 53.504-51.2 53.504H358.4c-28.288 0-51.2-23.936-51.2-53.504V117.504c0-29.568 22.912-53.504 51.2-53.504h307.2z",fill:"var(--ik-color-tag-primary)","p-id":"6856"},null,-1)];function Wy(t,e){return i.openBlock(),i.createElementBlock("svg",jy,Uy)}const Gy=K(Hy,[["render",Wy]]),qy={class:"avatar"},Yy={key:3,class:"user_box"},Qy={key:1,class:"avatar_name"},Zy=i.defineComponent({__name:"Avatar",props:{fixPropOpt:{type:Object,default:()=>{}},fixTypeOpt:{type:Object,default:()=>{}},element:{type:Object,default:()=>{}},imageBaseUrl:{type:String,default:""}},setup(t){const e=t,n=`${e.imageBaseUrl}/server/oss/download?fileUrl=`||`${location.origin}/server/oss/download?fileUrl=`,o=r=>r?r.startsWith("http")?r:`${n}${r}`:"";return(r,l)=>{const a=i.resolveComponent("el-avatar");return i.openBlock(),i.createElementBlock("div",qy,[e.fixTypeOpt.group===t.element[e.fixPropOpt.type]?(i.openBlock(),i.createBlock(Gy,{key:0})):e.fixTypeOpt.role===t.element[e.fixPropOpt.type]?(i.openBlock(),i.createBlock(My,{key:1})):e.fixTypeOpt.post===t.element[e.fixPropOpt.type]?(i.openBlock(),i.createBlock($y,{key:2})):e.fixTypeOpt.user===t.element[e.fixPropOpt.type]?(i.openBlock(),i.createElementBlock("div",Yy,[t.element[t.fixPropOpt.avatar]?(i.openBlock(),i.createBlock(a,{key:0,shape:"square",src:o(t.fixPropOpt.avatar?t.element[t.fixPropOpt.avatar]:"")},null,8,["src"])):(i.openBlock(),i.createElementBlock("div",Qy,i.toDisplayString(t.element[t.fixPropOpt.name].slice(-2)),1))])):i.createCommentVNode("v-if",!0)])}}}),Iw="",xt=K(Zy,[["__scopeId","data-v-bc7cca29"]]),Qo="data:image/webp;base64,UklGRogSAABXRUJQVlA4WAoAAAAwAAAAxwAAzQAASUNDUMgBAAAAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADZBTFBI4gsAAAXwh21/2rb//yncJGWGwWvMXFi6wpNh8GRmZmZmZmYeMzMzlobdnuvw+SynSVvbKiTx4ViWHcly/nodz4hw4LaNIylb5mbLeTIl2S+A/+u0//zH3hUlGHLVu1GC0Ze+HyUoKPo0SnClc0aU4Ontu6IEfzzWFiVYeGWU2Ede90qU4LMfj0YH3FOvihLnl/atiQ6k/RgtzlPfPxwduCXj0yiR0j1+Sygq0Pfr6/iosA/6/M6G6PC98+5t3qiw33j5fVEhL3W81/Z2CKfi02lG/c2Q/8YX2PQh54cv1htzKe6VuBewtxW/8NBpQy5Z757y4VasjFcynoJGXLJcdef0GSJOR//Pf11kyMvKbVcu/rMDp8P+5Ogn6w241POu3Gnzglghlzz+w2IDno6Tb/T/thsrxHzp/du/gozNpZBIX3npNdkrZ+LWRlPK2POHrPuVkawOO3tWmfdX7d/fSW8yllyVtXneWfyY+I2v3HKExbE4dJ8TgI7dm7fsFMgz8OIisHXRP4YxqR77Ev0DYfWCpa0Rg13LJ0xIP7Z6W6cBLA64ebTyYqWEzllflxERWjAh13F8+44mw1nlsvan4kSsf7oqcuLv3VXWYUzL9ZTFJpyI4JcvdBt3hv/2K3gVWybyxgo+XC6/BC9j+WTjPiXv64OXcd1c495GbknAsnIiMG47Z5UDxylpVBi4XTvLjKF6CDByu+1Xq5IZNwNDtytmxiiYvBwYu3lm9kaoz5a+IQzekj6+3QpA7crftxsWJNPna/qd+DH2mcdAlLD5Vxs9mMdu744SvP9LTZTgxVUVUYJHKlQeNA30xNWfOtVkwDi7gkrc+R6PJwX4kgDgT6HWbLyv6+Mp9IxEkqQwODmc4l+8hkjMOI/Hk4XoUKBFW7viX1oMixxPoWcM8vWAJxKdbYp/8RkJtlGFHg+a3KlDQnSr4l/8rJPm8RTmumRRGiHZAL986+5dTGIZVujxDECURQDxplSNDbFG4niPpyBeVhcp5NvzwI9sUfDrELOsT494B7EVDzaVSvpIQaFJPz7AEpOXAh0Tyi9jaF2pHE4QGq3aVSgyw12/AoLQadbvzKShx3ronMZBrITiF94HJKHTsK8fY4OUmgTdExi3nwk+f4KkRuik1LQt54gsfNUccbDQR7dMZ4DpNzEx1moHt+uesXvNbEz+T57VPWsvYGQt7h51ROdcvIqZGL/uQn1jLhvNTtJ17Txdc+tfDOXAZ4byOiamujc7BLc8WaVjnv4EsHL3xvmLGnXdrs8u78sCXevmL2rRf+Oyi4qKRlr0TMeaeUv9zEyZ+MKioglWvVKwBzBmZWP1ymgdLyqZRfYjlRrS3t35LDJsVOfeM/S45GMRwj1vq6eLOzwM8tJtHZCf8zOtL4kRi0QBQrjjbfUvk2L2uOsNCKEAf15MB+u6AdIu2+sH1Nh4DnP8b7MJwfsQnfTi7o8lzch24HXV9PF85vhrotR+ZJszlwbugwmSaLTw4X4VVl3MGnkbOyA6In1PtVPglZelXXGqfkdlYi+Zwhrrx4cdgBaXUEjA0447ws5XVHyt0rJFlzPGxGXhjlT4oPWlNuJ8+VinJFlJzQcii6Tem35kVhswV4yQ2o8prJ5Pmr5H7J3yKFII/7WSQRIXZXDc8Sf42/8QOwQMbW+3EmbGjaAT4n6e+TTEHt9cznEcP3f20V5hcKdNC8kydp9JRi4oVtp9zDFuLc9xPOc7/TIQpSdxG/d5M1HWXgAkUOcr7qtYFmCM1fnyznVNdIQJNx/jg/a1JNPxi1YDALrCmrHCK1azxcXLkJ3rPwggSEVcby49QoycvVkyUGUTfuNYwlw2HNlduSYFWCfUTSXG73cAJdgeWHSaJW6eFuDk6jwnAECUIo/a9n2AEJbadARJsoruubUMYa/uE5DPprGSCuUB15vcDyFCXL4IKMELX3uYIR7/AiBkS/MKOUgOwK91wlTtsUs9j0ZBanH31c1hAGXoPZYmwwsjLAhdAtpyKX6hPijbQQh/ghK14l+QGZZNAiDIcbw4CCAEOKkf8U6oJZUUbS9URaH+z05WGHAMyPAcHGFWorL9u4AQJWscMt2yZqzwQ2uZ+fHamzJydUpvFF6QriqSO5l1xAJX7ssD4+JjQ6jXfc28IAiQP70lwAqmf7MQ5LQuPttutdkCEDk1+QUeCpCrqiLbGuvMiw5mdkC48DOMIgZAw41gR0ASCfk+601xFTkQwtc30WpPLP93pwrM/PjpXhSpqKzYI06FUHhjE70WHWcU2/MXxsdnIonEiUaO5/lT2wumQgjf2EiRLoEt8POt8HHfeRz30jZUhYc2NZ0QLmAJtXVjwu8c/6KSaYKBUn3pKVV4DgcUqHKiA8LFH+NxZaanXz0hOcGsNwRvc0NtS1NTU1NDA1TyBxdGMbrlW95aTwM0gpyAEC5/H8HRIycnJyszXvFdkpCcEW/VCx3eZq+A1dFaV1tbe7a2q+h3jntpK0rRnxDCd1fTAI0gNQKEq9/N7tOnd68Mk7pzU1OdzpgYEz3QnMvb7OU0Kgo1WCa2+55XLPGlv0EIP1xOAcXC+3eXaPaecWqW5cywiqYYp9NFa0AEvM3etoh0pYwMBCt3twS6Ic/1e4bn4FfzKJE9avRLYijoP6xJmeI1qXEiEAGwulwuogNCjq5+X0tbSAyJYd3aSR0RCNY0oBrShocCcNOSmqPtBEFn4ai8senAVhwMBbn9qvpUlps0i+QB5Gh2ulxu9QGhdaS2tfhaQ6hc+T7tl9KHBYKnalEyhgWDwdrTQDxbWbY/QAx7flGuAxmwnlAw2FEe1hhRpVv2geQJxB12l9vtjGxAiO0+nz+EyMQcwyIkIZrIHBII/nMGJWdQMBhsrEE0cDvXVBOh96QSt0KCLUMMiaHGSHW6U8ySD7AOMbncsW6bKmjD/T5/AKNPRayoLa1MEEOCYuLGxYui2OHH5Dezd4uRMvz60RRW0xQn1hOoBIc7NtZlwgcmv9/fjdemdqSwaBz+7nREZN2bR2Al0tZjicpK/Eg1u2PjYm1yYPL7WzuBrAmrKiwCK4VKpPh+XQRceF8MGuBoVDqUTlH1U0ycydcJtExENSmUGvvtKs3ccDOxQKpxEpmUTtFwxEnQdrsMrbj3hNaLBa/QzQisSXYNHR2ZELwqak1d87VGPhsg52dUK+MBlXNYCPmGYv7nSY0skBdpypWJtsjHsQYpdNn/ska+60k1ZVaEFykYa/KTLCQiX1Js5fcrtD79GNXcXxmxEyyEH6DLsec1J0aPXqSHzRTrVHiIxPto7ydf82tv+43Xm3VRGW/G+Unhy4iE0Gvehu87IhE1+KE+uqh0x2h5Rnfnmt+rItRlLr2uhy4qY830niH0wVGxtFwk0Iu5E8ea9VApBWOcnxQSlL5UEUOjpnrnVi8picmlxQPoF+wuk8b3qbqVeE564uihAxxZpWkFuSPstCtdNoWfMN5SfTTsVmLNkHP1/Udqz9SG6PTkkFHDB1jpVkorP/YZDUf5PmLdf+zA/uoA5VE5YNDAgWkRqY50sXJa9PDMwV1Hj0vX9GHx/fr06dXDTmnBjAGRPUD164Zin2b07JmTlZVsIi43xhJ2muaQRS5506U5MjPS09LT0hLNBCulAaT5AVK6X61URW/DIjE5OTkxMT4hMcUduUSHGes0hS8Jwt/WBRixjB+sBCpt+Pcpj6SaNWcqYMZuuJnEqLGZqIWsusdUslCdD+1X8kiIs1ql91E5Cy+cBBpNp2vOy2OIeNlqwryU5E1vHQY6MiKdfP8lRNRZMCu/DKGr754GrFnJg7FEMj2LifB5w48CYM8SbruQSGSWNpLnf38qB2xavxsKTCQqzcT25jlrpWSOWetzZZGNRMFE5C9OLt1Ir6SXTPaC83pHvskRLNI1fsdaaXU0AOtdMr5XpLIjrdm7rawbGIWl544ZFkeFUE1FeXUQMGUkZl+vYQP79bSQxF9TXX0UAqLGVH7Ru2ePntnpjkg7v7m+/uypU35A3lgMaempCQmJ8S6n02mzWCymYDAQ7BIEgW/z+XwtjYwviNHc/vMfAFZQOCCwBAAA8CoAnQEqyADOAD5tNpRGpD+iISw1STvwDYlpbuDAdGXYW5+xX+E/B79IvqhdnLddJLmGi5paMwD+h8p7UC/h/9K6qXoHfpyR4P/Uv3L6q0mh/qXmCC5XUh/6l+4p6WqP3L5qDkPaVIRPowOQa5RsItEnpv2qi+aEGdI5VaSY7+i3fjzySZVTfInmLOji/1JNDhsggr75HlBnTop05IyqW9k6rgDx4oGKuZLsiDqTspeWt1TThs95rEvc3BAQ2Cmm/WHPEgITWp1jDj8fnYpacUKlA2fv4bDkY96yZXMjIrnu/KsBeRwGc1mPgGXhZDn5J8bFFYquI/e5SRB/fGWHrUWxTd/6ZFoE99q2r5vdSogeBKsvZRRnOJo1DhTmQzfK+jKPl1XB61eCyIzI2T0HdI/htEFcLySPEI1rIA1ptHGDrClKq1Cj6yIjq1T8SCl5GneZHHtrpmpD/1L9y+qqAAD+ysAAAACruyAAa6B+sspLlClJkLWAAlhaOsmcS18eCdW/9MiovfLi9lIdZV4K9C2nq4XL6pGljxoATLaWY+Fdf+yp8QqRmQOm17DSnKGoocmxvW4jXk3K6solfHw92MfxE9PKbpV6k390KRXwxMKUkfODCBPOGu7AVxFQQDv/surrkKoki8usn4RG7CzImZDOrpVMMa1nuR8WstZYVtabVbc37OMP2Y5Z5xioxwALBSridUAAe2PyFxopohDSWVP/M2RAZ43b7JOT7vDiWAukTn7gZKAljHmig+HiisRYSOsqxzRcwtHuA0ihG2zggPceBgQoJ9OrQn4+9SynodSjUnN3S1msttzAbtHUyHt0dqPI8MmNPuuX8oNYGSrMU/jq1/tuwVAcRYjFSmiVtRyf52fqt8XWRriSR73+gAIbwbhZMdATlGZy0CGP2PPNUcp2aE5oBbmSjStpYBFxz4bcqxQSVdwMV0UOCxRcyEWqPkw7ZCJO8qXyf/uEHIyBNR1plTtcMWPXcI1Dmkhi0cBoqF2quLyff3S3y9RMN/xM9oPh7cT8+rNF9azivisDh4AIyAlaYTSsoJ6JFmrxFP//iZ//3US//7kyGHqb0JWaRZPd5LjuIc4b3Pdxeirqg3w8ux5nlN/CW5YYPR8ygYwahr/iqudOg0NhFAVNXbgNGCTQRj2YmxoT259SWlnA1dtgjuRe2cZOmxqn+mvuyGdvAd9XjPSV4VVEAnROrjCwrgbhyKFpb8s12Za8/F4cSrPOSuadvlSXDEdhrb27ok+DnCnJqOg8Kj9Gqlca2xL+KvTh1u+NuUBnWJWF2Y9f3+xrM9KPN55AGLwUs8yRaGNKw9ngyAAfv8bf7tO4JOhTqKsM4JbfTtFKmlQhMS77J/ZyxsS7I+u5WO0/gjo83E7/80LOn4Ple50oLNP3yW4yTSnlNCwg+COLMFER8MfaIeAHTLvnkH3eDLow61YfoXxUp6SIMiBAHJ75Y1CrZeW1DvEoWdfnDhpz06KBs12oE7Ob6wCwc+FXeaKHfhDxAz/7xTqCDxZf++IGd1QQAB/TN8qRAl4EZQF8tbRrVQIKm2g8cbO8potBMoXyVFfUtI4r31krwmWYxDz2AAAAAAAA",Zo={list:{type:Array,default:()=>[]},handList:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},max:{type:Number,default:0},fixPropOpt:{type:Object,default:()=>{}},fixTypeOpt:{type:Object,default:()=>{}},height:{type:String,default:"404px"},imageBaseUrl:{type:String,default:""},emptyText:{type:String,default:"暂无数据"},children:{type:Boolean,default:!0}},Ky=t=>(i.pushScopeId("data-v-9d063943"),t=t(),i.popScopeId(),t),Xy={class:"left-pick-list"},Jy={key:1,class:"post-view-list"},e2={class:"checkText"},t2={class:"iconBox"},n2={key:0,class:"userCount"},i2=["onClick"],o2={class:"ik-picker-single"},r2={class:"iconBox"},l2={key:0,class:"userCount"},a2={key:2,class:"empty"},s2=Ky(()=>i.createElementVNode("img",{src:Qo,alt:""},null,-1)),c2=i.defineComponent({__name:"GroupList",props:Zo,emits:["change","check","handChild"],setup(t,{emit:e}){var p,c;const n=t,o=i.computed(()=>{var _,g;return((_=n.handList)==null?void 0:_.length)===((g=n.list)==null?void 0:g.length)}),r=i.computed(()=>{var h,b,y,C;const _=(h=n.handList)==null?void 0:h.length,g=(b=n.list)==null?void 0:b.length;return n.multiple?l.value=n.handList.map(k=>k[n.fixPropOpt.id]):a.value=(C=(y=n.handList)==null?void 0:y[0])==null?void 0:C[n.fixPropOpt.id],_>0&&_<g}),l=i.ref(n.handList.map(_=>_[n.fixPropOpt.id])),a=i.ref((c=(p=n.handList)==null?void 0:p[0])==null?void 0:c[n.fixPropOpt.id]),s=e,d=_=>{const g=_?n.list.map(h=>h[n.fixPropOpt.id]):[];s("change",g,_?n.list:[])},f=_=>{s("change",_,n.list)},u=_=>{s("change",_,n.list)},m=(_,g)=>{g||s("handChild",_)};return(_,g)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createCommentVNode(" 遍历list多选 "),i.createElementVNode("div",Xy,[_.multiple?(i.openBlock(),i.createBlock(i.unref(A.ElCheckbox),{key:0,modelValue:o.value,"onUpdate:modelValue":g[0]||(g[0]=h=>o.value=h),indeterminate:r.value,onChange:d},{default:i.withCtx(()=>[i.createTextVNode("全选")]),_:1},8,["modelValue","indeterminate"])):i.createCommentVNode("v-if",!0),_.list&&_.list.length?(i.openBlock(),i.createElementBlock("ul",Jy,[_.multiple?(i.openBlock(),i.createBlock(i.unref(A.ElCheckboxGroup),{key:0,modelValue:l.value,"onUpdate:modelValue":g[1]||(g[1]=h=>l.value=h),onChange:f},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(_.list,h=>(i.openBlock(),i.createElementBlock("li",{key:h[n.fixPropOpt.id]},[i.createVNode(i.unref(A.ElCheckbox),{label:h[n.fixPropOpt.id]},{default:i.withCtx(()=>[i.createElementVNode("div",e2,[i.createElementVNode("div",t2,[i.createVNode(xt,{fixTypeOpt:n.fixTypeOpt,fixPropOpt:n.fixPropOpt,element:h,imageBaseUrl:n.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),i.createElementVNode("p",null,[i.createElementVNode("span",null,i.toDisplayString(h[n.fixPropOpt.name]),1),h[n.fixPropOpt.type]===n.fixTypeOpt.group?(i.openBlock(),i.createElementBlock("span",n2,"("+i.toDisplayString(h.userCount)+")",1)):i.createCommentVNode("v-if",!0)])])]),_:2},1032,["label"]),h[n.fixPropOpt.type]===n.fixTypeOpt.group&&n.children?(i.openBlock(),i.createElementBlock("span",{key:0,class:i.normalizeClass(["nextLevel",{"is-disabled":l.value.find(b=>b===h[n.fixPropOpt.id])}]),onClick:b=>m(h,l.value.find(y=>y===h[n.fixPropOpt.id]))}," 下级",10,i2)):i.createCommentVNode("v-if",!0)]))),128))]),_:1},8,["modelValue"])):(i.openBlock(),i.createBlock(i.unref(A.ElRadioGroup),{key:1,isIndeterminate:r.value,modelValue:a.value,"onUpdate:modelValue":g[2]||(g[2]=h=>a.value=h),onChange:u},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(_.list,h=>(i.openBlock(),i.createElementBlock("li",{class:"w-full",key:h[n.fixPropOpt.id]},[i.createVNode(i.unref(A.ElRadio),{label:h[n.fixPropOpt.id]},{default:i.withCtx(()=>[i.createElementVNode("div",o2,[i.createElementVNode("div",r2,[i.createVNode(xt,{fixTypeOpt:n.fixTypeOpt,fixPropOpt:n.fixPropOpt,element:h,imageBaseUrl:n.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),i.createElementVNode("p",null,[i.createElementVNode("span",null,i.toDisplayString(h[n.fixPropOpt.name]),1),h[n.fixPropOpt.type]===n.fixTypeOpt.group?(i.openBlock(),i.createElementBlock("span",l2,"("+i.toDisplayString(h.userCount)+")",1)):i.createCommentVNode("v-if",!0)])])]),_:2},1032,["label"])]))),128))]),_:1},8,["isIndeterminate","modelValue"]))])):(i.openBlock(),i.createElementBlock("div",a2,[s2,i.createElementVNode("div",null,i.toDisplayString(n.emptyText),1)]))])],2112))}}),Bw="",d2=K(c2,[["__scopeId","data-v-9d063943"]]),u2=t=>(i.pushScopeId("data-v-361d2758"),t=t(),i.popScopeId(),t),f2={class:"left-pick-list"},p2={key:1,class:"post-view-list"},h2={class:"iconBox"},m2={class:"ik-picker-single"},g2={class:"iconBox"},_2={key:2,class:"empty"},y2=u2(()=>i.createElementVNode("img",{src:Qo,alt:""},null,-1)),b2=i.defineComponent({__name:"PostList",props:Zo,emits:["change","check"],setup(t,{emit:e}){var m,p;const n=t,o=i.computed(()=>{var c,_;return((c=n.handList)==null?void 0:c.length)===((_=n.list)==null?void 0:_.length)}),r=i.computed(()=>{var g,h,b,y;const c=(g=n.handList)==null?void 0:g.length,_=(h=n.list)==null?void 0:h.length;return n.multiple?l.value=n.handList.map(C=>C[n.fixPropOpt.id]):a.value=(y=(b=n.handList)==null?void 0:b[0])==null?void 0:y[n.fixPropOpt.id],c>0&&c<_}),l=i.ref(n.handList.map(c=>c[n.fixPropOpt.id])),a=i.ref((p=(m=n.handList)==null?void 0:m[0])==null?void 0:p[n.fixPropOpt.id]),s=e,d=c=>{const _=c?n.list.map(g=>g[n.fixPropOpt.id]):[];s("change",_,c?n.list:[])},f=c=>{s("change",c,n.list)},u=c=>{s("change",c,n.list)};return(c,_)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createCommentVNode(" 遍历list多选 "),i.createElementVNode("div",f2,[c.multiple?(i.openBlock(),i.createBlock(i.unref(A.ElCheckbox),{key:0,modelValue:o.value,"onUpdate:modelValue":_[0]||(_[0]=g=>o.value=g),indeterminate:r.value,onChange:d},{default:i.withCtx(()=>[i.createTextVNode("全选")]),_:1},8,["modelValue","indeterminate"])):i.createCommentVNode("v-if",!0),c.list&&c.list.length?(i.openBlock(),i.createElementBlock("ul",p2,[c.multiple?(i.openBlock(),i.createBlock(i.unref(A.ElCheckboxGroup),{key:0,modelValue:l.value,"onUpdate:modelValue":_[1]||(_[1]=g=>l.value=g),onChange:f},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(c.list,g=>(i.openBlock(),i.createElementBlock("li",{key:g[n.fixPropOpt.id]},[i.createVNode(i.unref(A.ElCheckbox),{label:g[n.fixPropOpt.id]},{default:i.withCtx(()=>[i.createElementVNode("div",h2,[i.createVNode(xt,{fixTypeOpt:n.fixTypeOpt,fixPropOpt:n.fixPropOpt,element:g,imageBaseUrl:n.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),i.createElementVNode("p",null,i.toDisplayString(g[n.fixPropOpt.name]),1)]),_:2},1032,["label"])]))),128))]),_:1},8,["modelValue"])):(i.openBlock(),i.createBlock(i.unref(A.ElRadioGroup),{key:1,isIndeterminate:r.value,modelValue:a.value,"onUpdate:modelValue":_[2]||(_[2]=g=>a.value=g),onChange:u},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(c.list,g=>(i.openBlock(),i.createElementBlock("li",{class:"w-full",key:g[n.fixPropOpt.id]},[i.createVNode(i.unref(A.ElRadio),{label:g[n.fixPropOpt.id]},{default:i.withCtx(()=>[i.createElementVNode("div",m2,[i.createElementVNode("div",g2,[i.createVNode(xt,{fixTypeOpt:n.fixTypeOpt,fixPropOpt:n.fixPropOpt,element:g,imageBaseUrl:n.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),i.createElementVNode("p",null,i.toDisplayString(g[n.fixPropOpt.name]),1)])]),_:2},1032,["label"])]))),128))]),_:1},8,["isIndeterminate","modelValue"]))])):(i.openBlock(),i.createElementBlock("div",_2,[y2,i.createElementVNode("div",null,i.toDisplayString(n.emptyText),1)]))])],2112))}}),Ow="",E2=K(b2,[["__scopeId","data-v-361d2758"]]),w2=t=>(i.pushScopeId("data-v-24145e87"),t=t(),i.popScopeId(),t),C2={class:"left-pick-list"},k2={key:1,class:"role-view-list"},v2={class:"iconBox"},S2=["title"],A2={class:"ik-picker-single"},D2={class:"iconBox"},x2=["title"],N2={key:2,class:"empty"},T2=w2(()=>i.createElementVNode("img",{src:Qo,alt:""},null,-1)),V2=i.defineComponent({__name:"RoleList",props:Zo,emits:["change","check"],setup(t,{emit:e}){var m,p;const n=t,o=i.computed(()=>{var c,_;return((c=n.handList)==null?void 0:c.length)===((_=n.list)==null?void 0:_.length)}),r=i.computed(()=>{var g,h,b,y;const c=(g=n.handList)==null?void 0:g.length,_=(h=n.list)==null?void 0:h.length;return n.multiple?l.value=n.handList.map(C=>C[n.fixPropOpt.id]):a.value=(y=(b=n.handList)==null?void 0:b[0])==null?void 0:y[n.fixPropOpt.id],c>0&&c<_}),l=i.ref(n.handList.map(c=>c[n.fixPropOpt.id])),a=i.ref((p=(m=n.handList)==null?void 0:m[0])==null?void 0:p[n.fixPropOpt.id]),s=e,d=c=>{const _=c?n.list.map(g=>g[n.fixPropOpt.id]):[];s("change",_,c?n.list:[])},f=c=>{s("change",c,n.list)},u=c=>{s("change",c,n.list)};return(c,_)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createCommentVNode(" 遍历list多选 "),i.createElementVNode("div",C2,[c.multiple?(i.openBlock(),i.createBlock(i.unref(A.ElCheckbox),{key:0,modelValue:o.value,"onUpdate:modelValue":_[0]||(_[0]=g=>o.value=g),indeterminate:r.value,onChange:d},{default:i.withCtx(()=>[i.createTextVNode("全选")]),_:1},8,["modelValue","indeterminate"])):i.createCommentVNode("v-if",!0),c.list&&c.list.length?(i.openBlock(),i.createElementBlock("ul",k2,[c.multiple?(i.openBlock(),i.createBlock(i.unref(A.ElCheckboxGroup),{key:0,modelValue:l.value,"onUpdate:modelValue":_[1]||(_[1]=g=>l.value=g),onChange:f},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(c.list,g=>(i.openBlock(),i.createElementBlock("li",{key:g[c.fixPropOpt.id]},[i.createVNode(i.unref(A.ElCheckbox),{label:g[c.fixPropOpt.id],value:g[c.fixPropOpt.id],disabled:g.disabled},{default:i.withCtx(()=>[i.createElementVNode("div",v2,[i.createVNode(xt,{fixTypeOpt:n.fixTypeOpt,fixPropOpt:n.fixPropOpt,element:g,imageBaseUrl:n.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),i.createElementVNode("p",{title:g[c.fixPropOpt.name]},i.toDisplayString(g[c.fixPropOpt.name]),9,S2)]),_:2},1032,["label","value","disabled"])]))),128))]),_:1},8,["modelValue"])):(i.openBlock(),i.createBlock(i.unref(A.ElRadioGroup),{key:1,indeterminate:r.value,modelValue:a.value,"onUpdate:modelValue":_[2]||(_[2]=g=>a.value=g),onChange:u},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(c.list,g=>(i.openBlock(),i.createElementBlock("li",{class:"w-full",key:g[c.fixPropOpt.id]},[i.createVNode(i.unref(A.ElRadio),{label:g[c.fixPropOpt.id],value:g[c.fixPropOpt.id],disabled:g.disabled},{default:i.withCtx(()=>[i.createElementVNode("div",A2,[i.createElementVNode("div",D2,[i.createVNode(xt,{fixTypeOpt:n.fixTypeOpt,fixPropOpt:n.fixPropOpt,element:g,imageBaseUrl:n.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),i.createElementVNode("p",{title:g[c.fixPropOpt.name]},i.toDisplayString(g[c.fixPropOpt.name]),9,x2)])]),_:2},1032,["label","value","disabled"])]))),128))]),_:1},8,["indeterminate","modelValue"]))])):(i.openBlock(),i.createElementBlock("div",N2,[T2,i.createElementVNode("div",null,i.toDisplayString(n.emptyText),1)]))])],2112))}}),Mw="",R2=K(V2,[["__scopeId","data-v-24145e87"]]);var bn=(t=>(t.group="group",t.role="role",t.post="post",t))(bn||{});const I2={children:{type:Boolean,default:!0},topLink:{type:Boolean,default:!0},modelValue:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},orgPid:{type:String,default:""},org:{type:Object,default:()=>null},immediate:{type:Boolean,default:!1},show:{type:Boolean,default:!1,required:!0},width:{type:String,default:"685px"},height:{type:String,default:"580px"},title:{type:String,default:"选择人员"},groupList:{type:Array,default:()=>[]},userList:{type:Array,default:()=>[]},roleList:{type:Array,default:()=>[]},postList:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},max:{type:Number,default:0},tabs:{type:Array,validator:t=>{if(t===void 0)return!0;if(Array.isArray(t)){if(!(t!=null&&t.length))return!1}else return console.error("IkingPicker参数错误:tabs必须是Array类型"),!1;return!0},default:()=>["group","role","post"]},chooseType:{type:Array,default:()=>["dep"]},api:{type:Object,default:()=>({methods:"post",headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:"Bearer 9aa65e31e86f4232ac4e4136fb1d3413"},url:`${location.origin}${location.pathname}/serve/component/pick/mix`,param:null,paramKey:"type"})},typeOption:{type:Object,default:()=>{}},propOption:{type:Object,default:()=>null},search:{type:Boolean,default:!0},lazy:{type:Boolean,default:!0},imageBaseUrl:{type:String,default:""},placeholder:{type:String,default:"请输入"},emptyText:{type:String,default:"暂无数据"}},Qs=t=>{const e=window.location.search;return new URLSearchParams(e).get(t)},B2=t=>{const e=z.ikStore.local.getItem("x_domain");e&&(t["X-DOMAIN"]=e)},O2=t=>{var o;const e=Qs("domain");if(e){t["X-DOMAIN"]=e;const r=Qs("code");e==="APPLICATION"&&(t["X-APP"]=r)}else B2(t);const n=(o=z.ikStore.local.getItem("tenant"))==null?void 0:o.code;n&&(t["X-TENANT"]=n)},M2=(t,e)=>{const n=i.ref([]),o=async(l,a)=>{var x,w;const{url:s,methods:d,headers:f,param:u}=t.value||{},m={...u||{},parentDepartmentId:l||"",name:a||""},p={method:d,url:s,headers:{"Content-Type":"application/json;charset=UTF-8",...f},data:JSON.stringify(m)};O2(p.headers);const c=await pd(p),{success:_,data:g}=c.data;if(!_)return{groupList:[],roleList:[],postList:[],userList:[],rootOrganization:{},rootDepartment:{}};const{departments:h,roles:b,posts:y,users:C,rootOrganization:k,rootDepartment:B}=g,S=k||B;return n.value.length===0&&(n.value[0]=e.org?{...e.org,id:e.elementId,elementType:(w=(x=e.org)==null?void 0:x.elementType)==null?void 0:w.toLocaleUpperCase()}:{...S,id:S.elementId}),{groupList:z._.cloneDeep(h),roleList:z._.cloneDeep(b),postList:z._.cloneDeep(y),userList:z._.cloneDeep(C),rootOrganization:k,rootDepartment:B}};return{handData:o,handSetChild:(l,a)=>{o(l==null?void 0:l.elementId,a)},bannerList:n}},L2={shadow:"hover",class:"sel-list"},z2={key:0},P2=i.createElementVNode("div",{class:"split-div"},null,-1),F2={class:"choose-list"},$2={class:"choose-item"},H2=i.createElementVNode("div",null,"已选",-1),j2={class:"choose-box"},U2={class:"list-group-item"},W2={class:""},G2={class:"avatar_box"},q2={class:"dialog-footer"},Y2=i.defineComponent({__name:"picker",props:I2,emits:["handChild","update:show","update:modelValue","ok","search"],setup(t,{expose:e,emit:n}){i.useCssVars(T=>({"6abbdda2":Qe.value}));const o=t,r=i.ref(""),l=i.ref(""),a=i.ref([]),s=i.ref([]),d=i.ref([]),f=i.ref([]),u=i.ref(!1),m=i.computed(()=>s.value.concat(a.value));i.watch(()=>o.api,()=>{o.show&&x("")});const p=i.computed(()=>({name:"name",type:"type",id:"id",avatar:"avatar",...o.propOption})),c=i.computed(()=>({user:"USER",role:"ROLE",post:"POST",group:"DEPT",...o.typeOption})),_=i.ref([]),g=M2(i.toRef(o,"api"),o),h=g.handData,b=g.bannerList;o.immediate&&h(l.value,r.value);const y=T=>(T.forEach(M=>{var W,q;M.disabled=((q=(W=o.modelValue)==null?void 0:W.find(X=>X[p.value.id]===M[p.value.id]))==null?void 0:q.disabled)||!1}),T),C=async()=>{var T,M,W,q,X,Ze,vr,fd;u.value=!0;try{if((T=o.groupList)!=null&&T.length||(M=o.userList)!=null&&M.length||(W=o.roleList)!=null&&W.length||(q=o.postList)!=null&&q.length){a.value=(X=o.userList)==null?void 0:X.filter(Ke=>Ke[p.value.name].includes(r.value)),s.value=(Ze=o.groupList)==null?void 0:Ze.filter(Ke=>Ke[p.value.name].includes(r.value)),d.value=(vr=o.roleList)==null?void 0:vr.filter(Ke=>Ke[p.value.name].includes(r.value)),f.value=(fd=o.postList)==null?void 0:fd.filter(Ke=>Ke[p.value.name].includes(r.value)),H(),u.value=!1;return}const xe=await h(l.value,r.value);try{a.value=y((xe==null?void 0:xe.userList)||[]),s.value=y((xe==null?void 0:xe.groupList)||[]),d.value=y((xe==null?void 0:xe.roleList)||[]),f.value=y((xe==null?void 0:xe.postList)||[])}catch(Ke){u.value=!1,console.info("error: ",Ke)}H(),u.value=!1}catch{u.value=!1}},k=i.reactive({group:new Map,user:new Map,role:new Map,post:new Map,trans:[],single:""}),B=i.reactive({indeterminate:!1,checkAll:0}),S=T=>k.group.has(T)||k.user.has(T)||k.role.has(T)||k.post.has(T),x=z.ikEvent.debounce(C,300),w=i.computed(()=>{const T=Array.from(k.group.values()),M=Array.from(k.role.values()),W=Array.from(k.user.values()),q=Array.from(k.post.values());return _.value=[...M,...q,...W,...T],{list:[...M,...W,...q,...T],role:{list:M,len:M.length},user:{list:W,len:W.length},post:{list:q,len:q.length},groups:{list:T,len:T.length}}}),N=i.computed(()=>[...o.chooseType.map(W=>W.toLocaleLowerCase())]),D=i.ref([]),O=T=>{D.value=T,D.value.forEach(M=>{M.readonly=M==null?void 0:M.disabled})},V=n,L=i.ref(!1),H=(T=!1)=>{var W;const M=(W=o==null?void 0:o.userList)!=null&&W.length?z._.cloneDeep([...o==null?void 0:o.userList,...o==null?void 0:o.groupList]):[...s.value,...a.value];return!T&&O(M),M};i.watch(()=>o.show,async T=>{var M;if(L.value=T,T){l.value=((M=o.org)==null?void 0:M.elementId)||o.orgPid,!o.userList.length&&!o.groupList.length&&!o.roleList.length&&!o.postList.length?await C():(a.value=o.userList,s.value=o.groupList,d.value=o.roleList,f.value=o.postList),k.trans=[],B.checkAll=0,B.indeterminate=!1;const W=H(!0);for(const X of W)S(X[p.value.id])&&k.trans.push(X[p.value.id]);const q=W.length===k.trans.length;B.indeterminate=!!(W.length&&!q),B.checkAll=Number(W.length&&q),i.nextTick(()=>{var X;(X=o.modelValue)!=null&&X.length?o.modelValue.forEach(Ze=>{ke(Ze),o.multiple?k.trans.push(Ze[p.value.id]):k.single=Ze[p.value.id]}):G()})}else G()}),i.watchEffect(()=>{let T;T=D.value.length;const M=k.trans.length;B.indeterminate=k.trans.length?M!==T:!1,B.checkAll=+(T!==0&&M===T)});const I=T=>{if(T){if(k.single="",T[p.value.id]){const M=k.trans.findIndex(W=>W===T[p.value.id]);M!==-1&&k.trans.splice(M,1)}switch(T[p.value.type]){case c.value.user:return k.user.delete(T[p.value.id]);case c.value.role:return k.role.delete(T[p.value.id]);case c.value.post:return k.post.delete(T[p.value.id]);case c.value.group:return k.group.delete(T[p.value.id]);default:return}}},ee=T=>{I(T)},ke=T=>{if(!S(T[p.value.id])){const M={...T};switch(T[p.value.type]){case c.value.user:return k.group.set(T[p.value.id],M);case c.value.role:return k.role.set(T[p.value.id],M);case c.value.post:return k.post.set(T[p.value.id],M);case c.value.group:return k.group.set(T[p.value.id],M);default:return}}},Ot=T=>[c.value.group].includes(T[p.value.type])?T.hasOwnProperty("disabled"):!1;i.watch(()=>k.trans,T=>{if(!T.length)D.value.forEach(M=>{M.disabled=!1;try{o.multiple&&I(M)}catch{}});else{const M=D.value.filter(q=>!T.includes(q[p.value.id]));for(const q of M)q.disabled=!1,o.multiple&&I(q);const W=D.value.filter(q=>T.includes(q[p.value.id]));for(const q of W)q.disabled=Ot(q),ke(q)}},{deep:!0}),i.watch(()=>k.single,T=>{if(T){const M=D.value.find(W=>W[p.value.id]===T);M&&(k.user.clear(),k.role.clear(),k.post.clear(),k.group.clear(),k.trans=[],i.nextTick(()=>{ke(M)}))}});const Nn=T=>{l.value=T==null?void 0:T.elementId,C(),b.value.push(T)},Mt=i.computed(()=>b.value.length),ce=(T,M)=>{!M&&!o.topLink||M!==Mt.value-1&&(l.value=T==null?void 0:T.elementId,C(),b.value.splice(M+1))},R=i.computed(()=>o.chooseType.includes("role")&&o.chooseType.length===1),Y=i.computed(()=>o.chooseType.includes("post")&&o.chooseType.length===1),U=i.ref(o.tabs[0]),$=i.ref(o.tabs[0]);i.watchEffect(()=>($.value=R.value?o.tabs[1]:Y.value?o.tabs[2]:U.value,$.value));const G=()=>{k.user.clear(),k.role.clear(),k.post.clear(),k.group.clear(),k.trans=[],zt.value=[],De.value=[],U.value=o.tabs[0],$.value=o.tabs[0],r.value="",l.value=o.orgPid,b.value.splice(1,b.value.length),k.single="",_.value=[]},le=()=>{var T;V("ok",z._.cloneDeep({...w.value,sort:_.value})),V("update:modelValue",z._.cloneDeep(((T=w.value)==null?void 0:T.list)||[])),V("update:show",!1),G()},ae=()=>{V("update:show",!1),G()};e({handClear:G,handRomeve:ee,handDelete:I});const te=i.computed(()=>{const T=N.value;return!!((T.includes("post")||T.includes("role"))&&T.length>1)}),ne=i.computed(()=>[{name:"group",label:"组织架构"},{name:"role",label:"角色列表"},{name:"post",label:"岗位列表"}].filter(T=>o.tabs.includes(T.name))),Qe=i.computed(()=>`${typeof o.height=="string"?Number.parseInt(o.height):o.height}px`),Lt=()=>{o.multiple||(k.post.clear(),k.role.clear(),k.user.clear(),k.group.clear(),k.single="")},nn=i.ref([]),Tn=(T,M)=>{o.multiple||(k.single="");const W=o.multiple?T:[T];if(!W.length){k.group.clear();return}Lt(),M.forEach(q=>{W!=null&&W.includes(q[p.value.id])?ke(q):I(q)})};i.watch(()=>w.value.groups.len,T=>{nn.value=z._.cloneDeep(w.value.groups.list)});const zt=i.ref([]),ht=(T,M)=>{o.multiple||(k.single="");const W=o.multiple?T:[T];if(!W.length){k.role.clear();return}Lt(),M.forEach(q=>{W!=null&&W.includes(q[p.value.id])?ke(q):I(q)})};i.watch(()=>w.value.role.len,T=>{zt.value=z._.cloneDeep(w.value.role.list)});const De=i.ref([]),mt=(T,M)=>{o.multiple||(k.single="");const W=o.multiple?T:[T];if(!W.length){k.post.clear();return}Lt(),M.forEach(q=>{W!=null&&W.includes(q[p.value.id])?ke(q):I(q)})};return i.watch(()=>w.value.post.len,T=>{De.value=z._.cloneDeep(w.value.post.list)}),i.watch(()=>r.value,T=>{x("")}),(T,M)=>{const W=i.resolveComponent("el-tab-pane"),q=i.resolveComponent("el-tabs");return i.openBlock(),i.createBlock(i.unref(A.ElDialog),{modelValue:L.value,"onUpdate:modelValue":M[2]||(M[2]=X=>L.value=X),title:T.title,"destroy-on-close":"","close-on-click-modal":!1,"close-on-click-escape":!1,draggable:"","align-center":"",width:typeof T.width=="string"?T.width:`${T.width}%`,class:"p_p_picker-dialog","modal-class":"p_p_picker-dialog-modal-user",onClose:ae},{footer:i.withCtx(()=>[i.createElementVNode("span",q2,[i.createVNode(i.unref(A.ElButton),{onClick:i.withModifiers(ae,["stop"])},{default:i.withCtx(()=>[i.createTextVNode("取消")]),_:1}),i.createVNode(i.unref(A.ElButton),{type:"primary",onClick:i.withModifiers(le,["stop"])},{default:i.withCtx(()=>[i.createTextVNode(" 确定 ")]),_:1})])]),default:i.withCtx(()=>[i.createElementVNode("div",{class:"dep-use-picker",style:i.normalizeStyle({height:Qe.value})},[i.createElementVNode("div",L2,[i.createElementVNode("div",null,[i.createVNode(i.unref(A.ElInput),{modelValue:r.value,"onUpdate:modelValue":M[0]||(M[0]=X=>r.value=X),clearable:"",placeholder:T.placeholder,"suffix-icon":Ay},null,8,["modelValue","placeholder"]),te.value?(i.openBlock(),i.createBlock(q,{key:0,modelValue:U.value,"onUpdate:modelValue":M[1]||(M[1]=X=>U.value=X),class:"ik-picker-tab"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(ne.value,X=>(i.openBlock(),i.createBlock(W,{label:X.label,name:X.name,key:X.label},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])):i.createCommentVNode("v-if",!0)]),i.createCommentVNode(" 过滤 "),$.value===i.unref(bn).group?(i.openBlock(),i.createElementBlock("div",z2,[i.createCommentVNode(" 面包屑 全选 "),i.createVNode(i.unref(A.ElBreadcrumb),{separator:">",class:i.normalizeClass(["banner",{"top-unlink":!T.topLink}])},{default:i.withCtx(()=>[Mt.value?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(i.unref(b),(X,Ze)=>(i.openBlock(),i.createBlock(i.unref(A.ElBreadcrumbItem),{key:X[p.value.id],onClick:i.withModifiers(vr=>ce(X,Ze),["stop"])},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(X[p.value.name]),1)]),_:2},1032,["onClick"]))),128)):i.createCommentVNode("v-if",!0)]),_:1},8,["class"])])):i.createCommentVNode("v-if",!0),i.createCommentVNode(" 左侧列表 "),i.createCommentVNode(" 组织架构 "),$.value===i.unref(bn).group?i.withDirectives((i.openBlock(),i.createBlock(d2,{key:1,fixPropOpt:p.value,fixTypeOpt:c.value,list:m.value,max:T.max,multiple:T.multiple,"hand-list":nn.value,imageBaseUrl:o.imageBaseUrl,emptyText:o.emptyText,children:o.children,onHandChild:Nn,onChange:Tn},null,8,["fixPropOpt","fixTypeOpt","list","max","multiple","hand-list","imageBaseUrl","emptyText","children"])),[[i.unref(A.vLoading),u.value]]):$.value===i.unref(bn).role?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createCommentVNode(" 角色 "),i.withDirectives(i.createVNode(R2,{fixPropOpt:p.value,fixTypeOpt:c.value,list:d.value,max:T.max,multiple:T.multiple,"hand-list":zt.value,imageBaseUrl:o.imageBaseUrl,emptyText:o.emptyText,onChange:ht},null,8,["fixPropOpt","fixTypeOpt","list","max","multiple","hand-list","imageBaseUrl","emptyText"]),[[i.unref(A.vLoading),u.value]])],64)):$.value===i.unref(bn).post?(i.openBlock(),i.createElementBlock(i.Fragment,{key:3},[i.createCommentVNode(" 岗位 "),i.withDirectives(i.createVNode(E2,{fixPropOpt:p.value,fixTypeOpt:c.value,list:f.value,max:T.max,multiple:T.multiple,"hand-list":De.value,imageBaseUrl:o.imageBaseUrl,emptyText:o.emptyText,onChange:mt},null,8,["fixPropOpt","fixTypeOpt","list","max","multiple","hand-list","imageBaseUrl","emptyText"]),[[i.unref(A.vLoading),u.value]])],64)):i.createCommentVNode("v-if",!0)]),P2,i.createCommentVNode(" 已选列表 "),i.createElementVNode("div",F2,[i.createElementVNode("div",$2,[H2,i.createVNode(i.unref(A.ElButton),{type:"primary",link:"",onClick:i.withModifiers(G,["stop"])},{default:i.withCtx(()=>[i.createTextVNode("清空")]),_:1})]),i.createElementVNode("ul",j2,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(_.value,X=>(i.openBlock(),i.createElementBlock("li",U2,[i.createElementVNode("div",W2,[i.createCommentVNode(" icon前缀 "),i.createElementVNode("div",G2,[i.createVNode(xt,{fixTypeOpt:c.value,fixPropOpt:p.value,element:X,imageBaseUrl:o.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),i.createElementVNode("span",null,i.toDisplayString(X[p.value.name]),1)]),i.withDirectives(i.createVNode(Vy,{class:"close",onClick:i.withModifiers(Ze=>ee(X),["stop"])},null,8,["onClick"]),[[i.vShow,!(X!=null&&X.readonly)]])]))),256))])])],4)]),_:1},8,["modelValue","title","width"])}}}),Lw="",En=oe(Y2),zw="",Q2=oe(i.defineComponent({name:"IkBtnContent",components:{MoreFilled:Rr},props:{num:{type:Number,default:3},trigger:{type:String,default:"click"},placement:{type:String,default:"bottom"}},setup(t,{slots:e,attrs:n}){const o=i.ref(null),r=i.ref(0),l=a=>a==null?void 0:a.filter(s=>typeof s.children!="string");return i.watchEffect(()=>{var a,s,d;o.value=(s=(a=e.default)==null?void 0:a.call(e))==null?void 0:s.filter(f=>typeof f.children!="string"),r.value=((d=o.value)==null?void 0:d.length)||0}),()=>{var a,s;return i.createVNode("div",{class:"flex"},[(s=l((a=e.default)==null?void 0:a.call(e)))==null?void 0:s.map((d,f)=>f+1>t.num?null:d),r.value>t.num?i.createVNode(i.resolveComponent("el-dropdown"),{trigger:t.trigger,"popper-class":"gl-btn-content"},{default:()=>i.createVNode(i.resolveComponent("el-icon"),{title:"更多",class:"ml-[12px] more-operate"},{default:()=>[i.createVNode(Rr,null,null)]}),dropdown:()=>i.createVNode(i.resolveComponent("el-dropdown-menu"),null,{default:()=>{var d,f;return[r.value>t.num?(f=l((d=e.default)==null?void 0:d.call(e)))==null?void 0:f.map((u,m)=>m<t.num?null:i.createVNode(i.resolveComponent("el-dropdown-item"),null,{default:()=>{var p,c;return[i.withDirectives(i.createVNode(i.resolveComponent("el-button"),i.mergeProps(u==null?void 0:u.props,{link:!0}),{default:()=>{var _,g;return[((_=u==null?void 0:u.props)==null?void 0:_.title)||((g=u==null?void 0:u.props)==null?void 0:g.label)]}}),[[i.resolveDirective("role"),(c=(p=u==null?void 0:u.dirs)==null?void 0:p[0])==null?void 0:c.value]])]}})):null]}})}):null])}}})),Z2=i.defineComponent({__name:"index",props:{title:{type:String,default:""},type:{type:String,default:"success"},color:{type:String,default:""},background:{type:String,default:""},effect:{type:String,default:"light"},circle:{type:Boolean,default:!1},circleW:{type:Number,default:8},circleH:{type:Number,default:8},borderWidth:{type:Number,default:1},borderType:{type:String,default:"solid"}},setup(t){const e=t,n=i.computed(()=>e.type?"":{color:e.color,backgroundColor:e.background,borderColor:e.color});return(o,r)=>{const l=i.resolveComponent("el-tag");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createCommentVNode(' <div :style="{ border: `${borderWidth}px ${borderType} ${comColor}` }">\r\n <span :style="{ backgroundColor: comColor }"></span>\r\n <p>{{ title }}</p>\r\n </div> '),i.createVNode(l,{effect:t.effect,class:"ik-statu-tag",type:t.type,style:i.normalizeStyle(n.value)},{default:i.withCtx(()=>[t.circle?(i.openBlock(),i.createElementBlock("span",{key:0,class:"inline-block rounded-full",style:i.normalizeStyle({backgroundColor:`var(--el-color-${t.type})`,width:`${t.circleW}px`,height:`${t.circleH}px`})},null,4)):i.createCommentVNode("v-if",!0),i.createTextVNode(" "+i.toDisplayString(t.title),1)]),_:1},8,["effect","type","style"])],2112)}}}),$w="",K2=oe(K(Z2,[["__scopeId","data-v-241ac18b"]])),X2=oe(i.defineComponent({__name:"index",props:{effect:{type:String,default:"dark"},content:{type:String,default:""},placement:{type:String,default:"bottom-start"}},setup(t){const e=t,n=i.computed(()=>e.effect);return(o,r)=>{const l=i.resolveComponent("el-tooltip");return i.openBlock(),i.createBlock(l,{class:"gl-tooltip",effect:n.value,content:t.content,placement:t.placement,enterable:!1},{default:i.withCtx(()=>[i.renderSlot(o.$slots,"default")]),_:3},8,["effect","content","placement"])}}})),J2=(t=>(i.pushScopeId("data-v-eb2bacf7"),t=t(),i.popScopeId(),t))(()=>i.createElementVNode("i",{class:"ik ik-shezhi"},null,-1)),eb={class:"check-right"},tb={class:"dialog-footer"},nb=i.defineComponent({__name:"IkBtnSetting",props:i.mergeModels({list:{type:Array,default:()=>[]},tab:{type:[String,Number],default:""},type:{type:String,default:"primary"},btnType:{type:String,default:"icon"},circle:{type:Boolean,default:!0},inline:{type:Boolean,default:!1},role:{type:String,default:""},config:{type:Object,default:()=>({t:t=>t,dialog:{l:"700px",sl:"600px"},path:"user_0",user:{id:"111"}})}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:i.mergeModels(["sort"],["update:modelValue"]),setup(t,{emit:e}){const n=t,o=e,r=i.useModel(t,"modelValue"),{t:l,dialog:a,path:s,user:d}=n.config,f=i.computed(()=>`${d==null?void 0:d.id}_${s}${n.tab!==""?`_${n.tab}`:""}`),u=i.ref([]),m=i.ref([]),p=i.ref([]),c=new Map,_=i.ref(!1),g=i.computed(()=>{const x=m.value.length&&m.value.length!==n.list.length;return!x&&m.value.length&&(_.value=!0),!!x}),h=x=>{var N;const w=z._.cloneDeep(p.value);w==null||w.forEach(D=>{var O;if(!m.value.length)p.value=[];else if(!m.value.includes(D==null?void 0:D.key)){const V=(O=p.value)==null?void 0:O.findIndex(L=>L.key===D.key);V!==-1&&p.value.splice(V,1),D.show=!1,c.set(D.key,D)}}),m.value.forEach(D=>{var V;if(((V=p.value)==null?void 0:V.findIndex(L=>(L==null?void 0:L.key)===D))===-1){const L=c.get(D);L&&(L.show=!0,p.value.push(L))}}),(N=p.value)!=null&&N.length||(p.value=z._.cloneDeep(n.list)),x===!0&&(o("sort",z._.cloneDeep(p.value)),r.value=z._.cloneDeep(p.value))},b=x=>{if(x)m.value=n.list.map(w=>w.key);else{const w=n.list.find(N=>!N.key||N.label==="操作");m.value=w?[w.key]:[]}h()},y=()=>{const x=z.ikStore.local.getItem(f.value);try{const w=z._.cloneDeep(n==null?void 0:n.list);if((!x||!(x!=null&&x.length))&&z.ikStore.local.setItem(f.value,w.map(({show:N,type:D,key:O,label:V,width:L,minWidth:H,align:I})=>({show:N,key:O,type:D,label:V,width:L,minWidth:H,align:I}))),u.value=[...(w==null?void 0:w.map(N=>(c.set(N.key,N),{...N,show:N.show||!1})))||[]],x){const N=x.filter(D=>D.show).map(D=>D.key);m.value=[...N]}else{const N=u.value.filter(D=>D.show);m.value=N.map(D=>D.key)}h(!0)}catch(w){console.info("error: ",w)}};y(),i.watch(()=>n.list,()=>{y()},{deep:!0});const C=i.ref(!1),k=()=>{C.value=!0},B=x=>{p.value=x},S=()=>{C.value=!1,z.ikStore.local.setItem(f.value,p.value.map(({show:x,key:w,label:N,value:D,width:O,minWidth:V,align:L})=>({show:x,key:w,label:N,value:D,width:O,minWidth:V,align:L}))),console.log("sortList ",p),o("sort",z._.cloneDeep(p.value)),r.value=z._.cloneDeep(p.value)};return(x,w)=>{const N=i.resolveComponent("el-button"),D=i.resolveComponent("el-checkbox"),O=i.resolveComponent("el-checkbox-group"),V=i.resolveComponent("el-dialog"),L=i.resolveDirective("role");return i.openBlock(),i.createElementBlock(i.Fragment,null,[t.btnType==="button"?i.withDirectives((i.openBlock(),i.createBlock(N,i.mergeProps({key:0},x.$attrs,{circle:t.circle,type:t.type,style:{minWidth:t.circle?"40px":"",minHeight:t.circle?"40px":""},onClick:k}),i.createSlots({icon:i.withCtx(()=>[J2]),_:2},[t.circle?void 0:{name:"default",fn:i.withCtx(()=>[i.createCommentVNode(' {{ t("action.setting") }} '),i.createTextVNode(" "+i.toDisplayString(i.unref(l)("设置")),1)]),key:"0"}]),1040,["circle","type","style"])),[[L,x.$props.role]]):i.createCommentVNode("v-if",!0),t.btnType==="icon"?i.withDirectives((i.openBlock(),i.createBlock(i.unref(fe),i.mergeProps({key:1,name:"iksvg_shezhi-daohang","show-bg":"",size:"default"},x.$attrs,{onClick:k}),null,16)),[[L,x.$props.role]]):i.createCommentVNode("v-if",!0),i.createVNode(V,{modelValue:C.value,"onUpdate:modelValue":w[3]||(w[3]=H=>C.value=H),draggable:"",width:t.inline?i.unref(a).l:i.unref(a).sl,"close-on-click-modal":!1,"close-on-press-escape":!1,title:"显示字段","append-to-body":"",onOpen:y},{footer:i.withCtx(()=>[i.createElementVNode("div",tb,[i.createVNode(N,{onClick:w[2]||(w[2]=H=>C.value=!1)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(l)("关闭"))+" ",1),i.createCommentVNode(' {{ t("action.close") }} ')]),_:1}),i.createVNode(N,{type:"primary",disabled:p.value.length<2,onClick:S},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(p.value.length<2?"至少选择一个字段":i.unref(l)("确定")),1)]),_:1},8,["disabled"])])]),default:i.withCtx(()=>[i.createElementVNode("div",{class:i.normalizeClass(["view-fields",[t.inline?null:"un-inline"]])},[i.createElementVNode("div",{style:i.normalizeStyle({flex:t.inline?2:1})},[i.createVNode(D,{modelValue:_.value,"onUpdate:modelValue":w[0]||(w[0]=H=>_.value=H),class:"single-line",indeterminate:g.value,onChange:b},{default:i.withCtx(()=>[i.createTextVNode(" 全选 ")]),_:1},8,["modelValue","indeterminate"]),i.createVNode(O,{modelValue:m.value,"onUpdate:modelValue":w[1]||(w[1]=H=>m.value=H),onChange:h},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(u.value,H=>(i.openBlock(),i.createBlock(D,{key:H.key,disabled:!H.key,label:H.key},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(H.label),1)]),_:2},1032,["disabled","label"]))),128))]),_:1},8,["modelValue"])],4),i.createElementVNode("div",eb,[i.createVNode(i.unref(Xs),{list:p.value,"item-style":{bottom:4},onChange:B},null,8,["list"])])],2)]),_:1},8,["modelValue","width"])],64)}}}),Ww="",Zs=oe(K(nb,[["__scopeId","data-v-eb2bacf7"]])),Ks={animation:200,group:"gl",disabled:!1,ghostClass:"ghost",sort:!0,delay:100,showIcon:!0,itemStyle:{radius:4,bottom:8,background:"var(--ik-sub-sidebar-menu-bg)"}},ib={list:{required:!0,type:Array,default:[]},group:{type:String,default:"draggable"},sort:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},delay:{type:Number,default:0},touchStartThreshold:{type:Number,default:0},disabled:{type:Boolean,default:!1},animation:{type:Number,default:200},handle:{type:String,default:".mover"},filter:{type:String,default:".unmover"},draggable:{type:String,default:".item"},ghostClass:{type:String,default:"ghost"},chosenClass:{type:String,default:"chosen"},dragClass:{type:String,default:"drag"},forceFallback:{type:Boolean,default:!1},fallbackClass:{type:String,default:"fallback"},fallbackOnBody:{type:Boolean,default:!1},fallbackTolerance:{type:Number,default:8},scroll:{type:Boolean,default:!0},scrollFn:{type:Function,default:()=>{}},scrollFensitivity:{type:Number,default:30},scrollSpeed:{type:Number,default:30},itemClass:{type:String,default:""},groupClass:{type:String,default:""},itemStyle:{type:Object,default:()=>({radius:{type:Number,default:30},bottom:{type:Number,default:8},background:{type:String,default:"var(--ik-sub-sidebar-menu-bg)"}})}},ob=i.defineComponent({__name:"IkDragList",props:ib,emits:["change"],setup(t,{emit:e}){const n=t,o=e,r=i.ref([]);i.watch(()=>n.list,f=>{r.value=z._.cloneDeep(f)},{immediate:!0,deep:!0});const l=i.computed(()=>({...Ks,...n,itemStyle:{...Ks.itemStyle,...n.itemStyle}})),a=i.ref(!1),s=()=>{a.value=!0},d=f=>{a.value=!1;const u=n.list[f.oldIndex];o("change",r.value,{...u,oldIndex:f.oldIndex,newIndex:f.newIndex})};return(f,u)=>{const m=i.resolveComponent("el-icon");return i.openBlock(),i.createBlock(i.unref(hd),{modelValue:r.value,"onUpdate:modelValue":u[0]||(u[0]=p=>r.value=p),class:i.normalizeClass(["list-group",[l.value.groupClass]]),tag:"ul",attrs:l.value,animation:l.value.animation,group:l.value.group,disabled:l.value.disabled,"ghost-class":l.value.ghostClass,"force-fallback":l.value.ghostClass,"item-key":"order",onStart:s,onEnd:d},{item:i.withCtx(({element:p})=>[i.createVNode(i.Transition,{type:"transition",name:"flip-list"},{default:i.withCtx(()=>[f.$slots.item?i.renderSlot(f.$slots,"item",{key:0,item:p},void 0,!0):(i.openBlock(),i.createElementBlock("li",{key:1,class:i.normalizeClass(["list-group-item",[l.value.itemClass]]),style:i.normalizeStyle({borderRadius:`${l.value.itemStyle.radius}px`,marginBottom:`${l.value.itemStyle.bottom}px`,backgroundColor:`${l.value.itemStyle.background}`})},[l.value.showIcon&&!f.$slots.icon?(i.openBlock(),i.createBlock(m,{key:0},{default:i.withCtx(()=>[i.createVNode(i.unref(xd))]),_:1})):i.renderSlot(f.$slots,"icon",{key:1},void 0,!0),i.createTextVNode(" "+i.toDisplayString(p.label),1)],6))]),_:2},1024)]),_:3},8,["modelValue","class","attrs","animation","group","disabled","ghost-class","force-fallback"])}}}),qw="",Xs=oe(K(ob,[["__scopeId","data-v-3716c05e"]])),Js={id:"4383166",name:"中台-双色图标",font_family:"iconfont",css_prefix_text:"iksvg_",description:"",glyphs:[{icon_id:"39724789",name:"停用",font_class:"tingyong2",unicode:"e6d8",unicode_decimal:59096},{icon_id:"39724779",name:"编辑",font_class:"bianji1",unicode:"e6d9",unicode_decimal:59097},{icon_id:"39724780",name:"移动",font_class:"yidong",unicode:"e6da",unicode_decimal:59098},{icon_id:"39724778",name:"下载",font_class:"xiazai2",unicode:"e6db",unicode_decimal:59099},{icon_id:"39720820",name:"关闭弹窗",font_class:"guanbidanchuang",unicode:"e6cd",unicode_decimal:59085},{icon_id:"705695",name:"眼睛",font_class:"yanjing",unicode:"e62b",unicode_decimal:58923},{icon_id:"1511006",name:"星星",font_class:"xingxing",unicode:"e602",unicode_decimal:58882},{icon_id:"9591222",name:"收藏",font_class:"shoucang",unicode:"e601",unicode_decimal:58881},{icon_id:"15640548",name:"取消收藏",font_class:"quxiaoshoucang",unicode:"e621",unicode_decimal:58913},{icon_id:"35556399",name:"取消固定",font_class:"quxiaoguding",unicode:"e6f6",unicode_decimal:59126},{icon_id:"36537322",name:"固定",font_class:"guding",unicode:"e6c7",unicode_decimal:59079},{icon_id:"27732960",name:"月亮",font_class:"yueliang",unicode:"e689",unicode_decimal:59017},{icon_id:"38956241",name:"消息模板",font_class:"xiaoximoban",unicode:"e6d7",unicode_decimal:59095},{icon_id:"38953952",name:"组织管理",font_class:"zuzhiguanli",unicode:"e6d6",unicode_decimal:59094},{icon_id:"38921721",name:"流程表单",font_class:"liuchengbiaodan",unicode:"e6ce",unicode_decimal:59086},{icon_id:"38153077",name:"设备管理 2",font_class:"a-shebeiguanli2",unicode:"e750",unicode_decimal:59216},{icon_id:"38153087",name:"巡线系统",font_class:"xunxianxitong",unicode:"e751",unicode_decimal:59217},{icon_id:"38153082",name:"隐患报表",font_class:"yinhuanbaobiao",unicode:"e752",unicode_decimal:59218},{icon_id:"38153079",name:"第三方施工管理",font_class:"disanfangshigongguanli",unicode:"e753",unicode_decimal:59219},{icon_id:"38153080",name:"考勤规则",font_class:"kaoqinguize",unicode:"e754",unicode_decimal:59220},{icon_id:"38153074",name:"人员监控",font_class:"renyuanjiankong",unicode:"e755",unicode_decimal:59221},{icon_id:"38153081",name:"应急预案管理",font_class:"yingjiyuanguanli",unicode:"e756",unicode_decimal:59222},{icon_id:"38153078",name:"维护保养",font_class:"weihubaoyang",unicode:"e757",unicode_decimal:59223},{icon_id:"38153075",name:"事故管理",font_class:"shiguguanli",unicode:"e758",unicode_decimal:59224},{icon_id:"38153076",name:"审批配置、巡线计划",font_class:"xunxianjihua1",unicode:"e759",unicode_decimal:59225},{icon_id:"38153073",name:"考勤统计",font_class:"kaoqintongji",unicode:"e75a",unicode_decimal:59226},{icon_id:"38153097",name:"隐患管理",font_class:"yinhuanguanli1",unicode:"e742",unicode_decimal:59202},{icon_id:"38153096",name:"型号管理",font_class:"xinghaoguanli",unicode:"e743",unicode_decimal:59203},{icon_id:"38153095",name:"设备管理",font_class:"shebeiguanli1",unicode:"e744",unicode_decimal:59204},{icon_id:"38153092",name:"证照管理",font_class:"zhengzhaoguanli",unicode:"e745",unicode_decimal:59205},{icon_id:"38153094",name:"SCAD场站监控",font_class:"SCADchangzhanjiankong",unicode:"e746",unicode_decimal:59206},{icon_id:"38153093",name:"巡线报表",font_class:"xunxianbaobiao",unicode:"e747",unicode_decimal:59207},{icon_id:"38153085",name:"视频管理",font_class:"shipinguanli",unicode:"e748",unicode_decimal:59208},{icon_id:"38153090",name:"证件管理",font_class:"zhengjianguanli",unicode:"e749",unicode_decimal:59209},{icon_id:"38153091",name:"维护报表",font_class:"weihubaobiao",unicode:"e74a",unicode_decimal:59210},{icon_id:"38153084",name:"视频配置",font_class:"shipinpeizhi",unicode:"e74b",unicode_decimal:59211},{icon_id:"38153089",name:"推送记录、预案管理",font_class:"yuanguanli",unicode:"e74c",unicode_decimal:59212},{icon_id:"38153088",name:"视频监控",font_class:"shipinjiankong",unicode:"e74d",unicode_decimal:59213},{icon_id:"38153083",name:"GIS管网系统",font_class:"GISguanwangxitong",unicode:"e74e",unicode_decimal:59214},{icon_id:"38153086",name:"车辆轨迹",font_class:"cheliangguiji",unicode:"e74f",unicode_decimal:59215},{icon_id:"37811065",name:"停用",font_class:"tingyong1",unicode:"e776",unicode_decimal:59254},{icon_id:"37810944",name:"停用",font_class:"tingyong",unicode:"e775",unicode_decimal:59253},{icon_id:"37809704",name:"启用",font_class:"qiyong",unicode:"e772",unicode_decimal:59250},{icon_id:"37768743",name:"复制",font_class:"fuzhi",unicode:"e741",unicode_decimal:59201},{icon_id:"37648812",name:"隐藏",font_class:"yincang",unicode:"e740",unicode_decimal:59200},{icon_id:"37428721",name:"知识库",font_class:"zhishiku",unicode:"e739",unicode_decimal:59193},{icon_id:"37428720",name:"巡线计划",font_class:"xunxianjihua",unicode:"e73a",unicode_decimal:59194},{icon_id:"37428719",name:"维保管理",font_class:"weibaoguanli",unicode:"e73b",unicode_decimal:59195},{icon_id:"37428718",name:"系统管理",font_class:"xitongguanli1",unicode:"e73c",unicode_decimal:59196},{icon_id:"37428717",name:"隐患管理",font_class:"yinhuanguanli",unicode:"e73d",unicode_decimal:59197},{icon_id:"37428716",name:"设备管理",font_class:"shebeiguanli",unicode:"e73e",unicode_decimal:59198},{icon_id:"37428715",name:"考勤管理",font_class:"kaoqinguanli",unicode:"e73f",unicode_decimal:59199},{icon_id:"37033301",name:"卡片",font_class:"kapian",unicode:"e738",unicode_decimal:59192},{icon_id:"37033317",name:"功能设计",font_class:"gongnengsheji",unicode:"e72c",unicode_decimal:59180},{icon_id:"37033319",name:"用户管理",font_class:"yonghuguanli",unicode:"e72d",unicode_decimal:59181},{icon_id:"37033316",name:"审批列表",font_class:"shenpiliebiao",unicode:"e72e",unicode_decimal:59182},{icon_id:"37033311",name:"菜单管理",font_class:"caidanguanli",unicode:"e72f",unicode_decimal:59183},{icon_id:"37033313",name:"参数管理",font_class:"canshuguanli",unicode:"e730",unicode_decimal:59184},{icon_id:"37033314",name:"日志管理",font_class:"rizhiguanli",unicode:"e731",unicode_decimal:59185},{icon_id:"37033315",name:"数据源管理",font_class:"shujuyuanguanli",unicode:"e732",unicode_decimal:59186},{icon_id:"37033310",name:"审批中心",font_class:"shenpizhongxin",unicode:"e733",unicode_decimal:59187},{icon_id:"37033312",name:"角色管理",font_class:"jiaoseguanli",unicode:"e734",unicode_decimal:59188},{icon_id:"37033304",name:"二维码",font_class:"erweima",unicode:"e735",unicode_decimal:59189},{icon_id:"37033303",name:"地址",font_class:"dizhi",unicode:"e736",unicode_decimal:59190},{icon_id:"37033302",name:"GIS",font_class:"GIS",unicode:"e737",unicode_decimal:59191},{icon_id:"37033323",name:"开发工具",font_class:"kaifagongju",unicode:"e6aa",unicode_decimal:59050},{icon_id:"37033324",name:"字典管理",font_class:"zidianguanli",unicode:"e6ae",unicode_decimal:59054},{icon_id:"37033325",name:"租户管理",font_class:"zuhuguanli",unicode:"e6bc",unicode_decimal:59068},{icon_id:"37033322",name:"岗位管理",font_class:"gangweiguanli",unicode:"e728",unicode_decimal:59176},{icon_id:"37033321",name:"系统管理",font_class:"xitongguanli",unicode:"e729",unicode_decimal:59177},{icon_id:"37033320",name:"部门管理",font_class:"bumenguanli",unicode:"e72a",unicode_decimal:59178},{icon_id:"37033318",name:"设置",font_class:"shenpipeizhi",unicode:"e72b",unicode_decimal:59179},{icon_id:"37012624",name:"通用2",font_class:"tongyong2",unicode:"e723",unicode_decimal:59171},{icon_id:"37012622",name:"通用1",font_class:"tongyong1",unicode:"e724",unicode_decimal:59172},{icon_id:"37012623",name:"通用3",font_class:"tongyong3",unicode:"e725",unicode_decimal:59173},{icon_id:"37012621",name:"通用5",font_class:"tongyong5",unicode:"e726",unicode_decimal:59174},{icon_id:"37012620",name:"通用4",font_class:"tongyong4",unicode:"e727",unicode_decimal:59175},{icon_id:"1268",name:"减",font_class:"jian",unicode:"e600",unicode_decimal:58880},{icon_id:"36715193",name:"减-copy",font_class:"jian-copy",unicode:"e722",unicode_decimal:59170},{icon_id:"36651388",name:"评论",font_class:"pinglun",unicode:"e717",unicode_decimal:59159},{icon_id:"36651387",name:"拒绝",font_class:"jujue",unicode:"e718",unicode_decimal:59160},{icon_id:"36651383",name:"同意",font_class:"tongyi",unicode:"e719",unicode_decimal:59161},{icon_id:"36651384",name:"发起",font_class:"faqi",unicode:"e71a",unicode_decimal:59162},{icon_id:"36651382",name:"退回",font_class:"tuihui",unicode:"e71b",unicode_decimal:59163},{icon_id:"36651385",name:"加签",font_class:"jiaqian",unicode:"e71c",unicode_decimal:59164},{icon_id:"36651386",name:"转交",font_class:"zhuanjiao",unicode:"e71d",unicode_decimal:59165},{icon_id:"36651381",name:"等待",font_class:"dengdai",unicode:"e71e",unicode_decimal:59166},{icon_id:"36649809",name:"中英文-导航",font_class:"zhongyingwen-daohang",unicode:"e6d5",unicode_decimal:59093},{icon_id:"36649527",name:"全屏-导航",font_class:"quanping-daohang",unicode:"e6d0",unicode_decimal:59088},{icon_id:"36649526",name:"消息-导航",font_class:"xiaoxi-daohang",unicode:"e6d1",unicode_decimal:59089},{icon_id:"36649523",name:"搜索-导航",font_class:"sousuo-daohang",unicode:"e6d2",unicode_decimal:59090},{icon_id:"36649524",name:"刷新-导航",font_class:"shuaxin-daohang",unicode:"e6d3",unicode_decimal:59091},{icon_id:"36649525",name:"切换-导航",font_class:"qiehuan-daohang",unicode:"e6d4",unicode_decimal:59092},{icon_id:"36649529",name:"太阳-导航",font_class:"taiyang-daohang",unicode:"e679",unicode_decimal:59001},{icon_id:"36649528",name:"设置-导航",font_class:"shezhi-daohang",unicode:"e6cf",unicode_decimal:59087},{icon_id:"36058666",name:"更多",font_class:"gengduo1",unicode:"e6be",unicode_decimal:59070},{icon_id:"36058667",name:"上移",font_class:"shangyi",unicode:"e6bf",unicode_decimal:59071},{icon_id:"36058668",name:"关闭备份",font_class:"guanbibeifen",unicode:"e6c0",unicode_decimal:59072},{icon_id:"36058669",name:"下移",font_class:"xiayi",unicode:"e6c1",unicode_decimal:59073},{icon_id:"36058670",name:"右移",font_class:"youyi",unicode:"e6c2",unicode_decimal:59074},{icon_id:"36058671",name:"展开",font_class:"zhankai",unicode:"e6c3",unicode_decimal:59075},{icon_id:"36058672",name:"返回",font_class:"fanhui",unicode:"e6c4",unicode_decimal:59076},{icon_id:"36058673",name:"关闭",font_class:"guanbi",unicode:"e6c5",unicode_decimal:59077},{icon_id:"36058674",name:"左移",font_class:"zuoyi",unicode:"e6c6",unicode_decimal:59078},{icon_id:"36058676",name:"菜单展开",font_class:"caidanzhankai",unicode:"e6c8",unicode_decimal:59080},{icon_id:"36058677",name:"刷新",font_class:"shuaxin2",unicode:"e6c9",unicode_decimal:59081},{icon_id:"36058678",name:"菜单收起",font_class:"caidanshouqi",unicode:"e6ca",unicode_decimal:59082},{icon_id:"36058679",name:"重置",font_class:"zhongzhi1",unicode:"e6cb",unicode_decimal:59083},{icon_id:"36058680",name:"行高设置",font_class:"hanggaoshezhi",unicode:"e6cc",unicode_decimal:59084},{icon_id:"36058554",name:"电脑",font_class:"diannao",unicode:"e6b6",unicode_decimal:59062},{icon_id:"36058392",name:"时间",font_class:"shijian",unicode:"e6a8",unicode_decimal:59048},{icon_id:"36058393",name:"日历",font_class:"rili1",unicode:"e6a9",unicode_decimal:59049},{icon_id:"36058395",name:"解锁",font_class:"jiesuo",unicode:"e6ab",unicode_decimal:59051},{icon_id:"36058396",name:"全屏",font_class:"quanping",unicode:"e6ac",unicode_decimal:59052},{icon_id:"36058397",name:"汽车",font_class:"qiche",unicode:"e6ad",unicode_decimal:59053},{icon_id:"36058399",name:"列表",font_class:"liebiao",unicode:"e6af",unicode_decimal:59055},{icon_id:"36058400",name:"播放",font_class:"bofang",unicode:"e6b0",unicode_decimal:59056},{icon_id:"36058401",name:"暂停",font_class:"zanting",unicode:"e6b1",unicode_decimal:59057},{icon_id:"36058402",name:"返回顶部",font_class:"fanhuidingbu",unicode:"e6b2",unicode_decimal:59058},{icon_id:"36058403",name:"锁屏",font_class:"suoping",unicode:"e6b3",unicode_decimal:59059},{icon_id:"36058404",name:"归档",font_class:"guidang",unicode:"e6b4",unicode_decimal:59060},{icon_id:"36058405",name:"飞机",font_class:"feiji",unicode:"e6b5",unicode_decimal:59061},{icon_id:"36058407",name:"足迹",font_class:"zuji",unicode:"e6b7",unicode_decimal:59063},{icon_id:"36058408",name:"退出全屏",font_class:"tuichuquanping",unicode:"e6b8",unicode_decimal:59064},{icon_id:"36058409",name:"审核",font_class:"shenhe",unicode:"e6b9",unicode_decimal:59065},{icon_id:"36058410",name:"电话",font_class:"dianhua",unicode:"e6ba",unicode_decimal:59066},{icon_id:"36058411",name:"个人消息、信息",font_class:"xinxi1",unicode:"e6bb",unicode_decimal:59067},{icon_id:"36058413",name:"手机",font_class:"shouji",unicode:"e6bd",unicode_decimal:59069},{icon_id:"36058296",name:"登出",font_class:"dengchu1",unicode:"e6a7",unicode_decimal:59047},{icon_id:"36057796",name:"消息通知",font_class:"xiaoxitongzhi",unicode:"e68f",unicode_decimal:59023},{icon_id:"36057797",name:"详情",font_class:"xiangqing",unicode:"e690",unicode_decimal:59024},{icon_id:"36057798",name:"用户",font_class:"yonghu1",unicode:"e691",unicode_decimal:59025},{icon_id:"36057799",name:"表单",font_class:"biaodan",unicode:"e692",unicode_decimal:59026},{icon_id:"36057800",name:"主页",font_class:"zhuye",unicode:"e693",unicode_decimal:59027},{icon_id:"36057801",name:"成功",font_class:"chenggong",unicode:"e694",unicode_decimal:59028},{icon_id:"36057802",name:"登录",font_class:"denglu",unicode:"e695",unicode_decimal:59029},{icon_id:"36057803",name:"仪表盘",font_class:"yibiaopan",unicode:"e696",unicode_decimal:59030},{icon_id:"36057804",name:"校验码",font_class:"xiaoyanma",unicode:"e697",unicode_decimal:59031},{icon_id:"36057805",name:"文本",font_class:"wenben",unicode:"e698",unicode_decimal:59032},{icon_id:"36057806",name:"警告",font_class:"jinggao",unicode:"e699",unicode_decimal:59033},{icon_id:"36057807",name:"未知文件",font_class:"weizhiwenjian",unicode:"e69a",unicode_decimal:59034},{icon_id:"36057808",name:"登出",font_class:"dengchu",unicode:"e69b",unicode_decimal:59035},{icon_id:"36057809",name:"excel",font_class:"excel",unicode:"e69c",unicode_decimal:59036},{icon_id:"36057810",name:"图片",font_class:"tupian",unicode:"e69d",unicode_decimal:59037},{icon_id:"36057811",name:"失败",font_class:"shibai",unicode:"e69e",unicode_decimal:59038},{icon_id:"36057812",name:"ppt",font_class:"ppt",unicode:"e69f",unicode_decimal:59039},{icon_id:"36057813",name:"音乐",font_class:"yinle",unicode:"e6a0",unicode_decimal:59040},{icon_id:"36057814",name:"压缩包",font_class:"yasuobao",unicode:"e6a1",unicode_decimal:59041},{icon_id:"36057815",name:"word",font_class:"word",unicode:"e6a2",unicode_decimal:59042},{icon_id:"36057816",name:"mov",font_class:"mov",unicode:"e6a3",unicode_decimal:59043},{icon_id:"36057817",name:"zip",font_class:"zip",unicode:"e6a4",unicode_decimal:59044},{icon_id:"36057818",name:"密码",font_class:"mima",unicode:"e6a5",unicode_decimal:59045},{icon_id:"36057819",name:"pdf",font_class:"pdf",unicode:"e6a6",unicode_decimal:59046},{icon_id:"36057137",name:"点赞",font_class:"dianzan",unicode:"e674",unicode_decimal:58996},{icon_id:"36057139",name:"文件夹",font_class:"wenjianjia",unicode:"e67a",unicode_decimal:59002},{icon_id:"36057140",name:"删除",font_class:"shanchu1",unicode:"e67b",unicode_decimal:59003},{icon_id:"36057141",name:"分享",font_class:"fenxiang",unicode:"e67c",unicode_decimal:59004},{icon_id:"36057143",name:"下载",font_class:"xiazai1",unicode:"e67e",unicode_decimal:59006},{icon_id:"36057145",name:"查询",font_class:"chaxun",unicode:"e680",unicode_decimal:59008},{icon_id:"36057146",name:"上传",font_class:"shangchuan",unicode:"e681",unicode_decimal:59009},{icon_id:"36057147",name:"关注",font_class:"guanzhu",unicode:"e682",unicode_decimal:59010},{icon_id:"36057148",name:"功能导航",font_class:"gongnengdaohang",unicode:"e683",unicode_decimal:59011},{icon_id:"36057150",name:"提示说明",font_class:"tishishuoming",unicode:"e685",unicode_decimal:59013},{icon_id:"36057151",name:"统计分析",font_class:"tongjifenxi",unicode:"e686",unicode_decimal:59014},{icon_id:"36057152",name:"导出",font_class:"daochu",unicode:"e687",unicode_decimal:59015},{icon_id:"36057153",name:"预览",font_class:"yulan",unicode:"e688",unicode_decimal:59016},{icon_id:"36057155",name:"导入",font_class:"daoru",unicode:"e68a",unicode_decimal:59018},{icon_id:"36057156",name:"修改",font_class:"xiugai",unicode:"e68b",unicode_decimal:59019},{icon_id:"36057157",name:"显示字段",font_class:"xianshiziduan",unicode:"e68c",unicode_decimal:59020},{icon_id:"36057158",name:"帮助",font_class:"bangzhu",unicode:"e68d",unicode_decimal:59021},{icon_id:"36057159",name:"筛选",font_class:"shaixuan1",unicode:"e68e",unicode_decimal:59022},{icon_id:"35654050",name:"日历",font_class:"rili",unicode:"e672",unicode_decimal:58994},{icon_id:"35653603",name:"更多",font_class:"gengduo",unicode:"e673",unicode_decimal:58995},{icon_id:"35653605",name:"信息提示",font_class:"xinxitishi",unicode:"e675",unicode_decimal:58997},{icon_id:"35653606",name:"删除",font_class:"shanchu",unicode:"e676",unicode_decimal:58998},{icon_id:"35653607",name:"刷新",font_class:"shuaxin1",unicode:"e677",unicode_decimal:58999},{icon_id:"35653608",name:"编辑",font_class:"bianji",unicode:"e678",unicode_decimal:59e3},{icon_id:"35653535",name:"筛选",font_class:"shaixuan",unicode:"e66a",unicode_decimal:58986},{icon_id:"35653536",name:"搜索",font_class:"sousuo1",unicode:"e66b",unicode_decimal:58987},{icon_id:"35653537",name:"重置",font_class:"zhongzhi",unicode:"e66c",unicode_decimal:58988},{icon_id:"35653538",name:"收起",font_class:"shouqi1",unicode:"e66d",unicode_decimal:58989},{icon_id:"35653539",name:"新增",font_class:"xinzeng",unicode:"e66e",unicode_decimal:58990},{icon_id:"35653540",name:"行高",font_class:"hanggao",unicode:"e66f",unicode_decimal:58991},{icon_id:"35653541",name:"设置",font_class:"shezhi1",unicode:"e670",unicode_decimal:58992},{icon_id:"35653542",name:"刷新",font_class:"shuaxin",unicode:"e671",unicode_decimal:58993},{icon_id:"35649462",name:"下载",font_class:"xiazai",unicode:"e669",unicode_decimal:58985},{icon_id:"35649230",name:"动态设置",font_class:"dongtaishezhi",unicode:"e65a",unicode_decimal:58970},{icon_id:"35649231",name:"收起",font_class:"shouqi",unicode:"e65b",unicode_decimal:58971},{icon_id:"35649233",name:"排序",font_class:"paixu",unicode:"e65d",unicode_decimal:58973},{icon_id:"35649235",name:"消息模板、信息",font_class:"xinxi",unicode:"e65f",unicode_decimal:58975},{icon_id:"35649236",name:"用户",font_class:"yonghu",unicode:"e660",unicode_decimal:58976},{icon_id:"35649237",name:"白天",font_class:"baitian",unicode:"e661",unicode_decimal:58977},{icon_id:"35649238",name:"数据",font_class:"shuju",unicode:"e662",unicode_decimal:58978},{icon_id:"35649241",name:"关闭-页面标签",font_class:"guanbi-yemianbiaoqian",unicode:"e665",unicode_decimal:58981},{icon_id:"35649242",name:"资源列表",font_class:"ziyuanliebiao",unicode:"e666",unicode_decimal:58982},{icon_id:"35649243",name:"设置",font_class:"shezhi",unicode:"e667",unicode_decimal:58983},{icon_id:"35649244",name:"展开-导航",font_class:"zhankai-daohang",unicode:"e668",unicode_decimal:58984}]},ec={id:"4383216",name:"中台-单色图标",font_family:"iconfont",css_prefix_text:"iksig_",description:"",glyphs:[{icon_id:"39081266",name:"对勾",font_class:"duigou",unicode:"e6ae",unicode_decimal:59054},{icon_id:"39017971",name:"分页更多",font_class:"diandian",unicode:"e78f",unicode_decimal:59279},{icon_id:"38921765",name:"更多",font_class:"gengduo",unicode:"e6aa",unicode_decimal:59050},{icon_id:"38825218",name:"向左",font_class:"a-shouqibeifen2",unicode:"e6a8",unicode_decimal:59048},{icon_id:"38824809",name:"向右、更多",font_class:"a-shouqibeifen3",unicode:"e6a7",unicode_decimal:59047},{icon_id:"38761726",name:"分栏",font_class:"fenlan",unicode:"e6a6",unicode_decimal:59046},{icon_id:"38757737",name:"时间范围",font_class:"shijianfanwei1",unicode:"e6a5",unicode_decimal:59045},{icon_id:"38660326",name:"大纲",font_class:"dagang",unicode:"e789",unicode_decimal:59273},{icon_id:"38660327",name:"物料",font_class:"wuliao",unicode:"e78a",unicode_decimal:59274},{icon_id:"38660325",name:"数据源",font_class:"shujuyuan",unicode:"e78b",unicode_decimal:59275},{icon_id:"38660101",name:"电脑",font_class:"diannao1",unicode:"e784",unicode_decimal:59268},{icon_id:"38660097",name:"手机",font_class:"shouji1",unicode:"e785",unicode_decimal:59269},{icon_id:"38660099",name:"右侧面板向左关闭",font_class:"youcemianbanxiangzuoguanbi",unicode:"e786",unicode_decimal:59270},{icon_id:"38660100",name:"帮助",font_class:"bangzhu1",unicode:"e787",unicode_decimal:59271},{icon_id:"38660098",name:"左侧面板向左关闭",font_class:"zuocemianbanxiangzuoguanbi",unicode:"e788",unicode_decimal:59272},{icon_id:"38659549",name:"级联选项",font_class:"jilianxuanxiang",unicode:"e77a",unicode_decimal:59258},{icon_id:"38659548",name:"计数器",font_class:"jishuqi",unicode:"e77b",unicode_decimal:59259},{icon_id:"38659545",name:"单行文本",font_class:"danhangwenben1",unicode:"e77c",unicode_decimal:59260},{icon_id:"38659542",name:"下拉",font_class:"xiala1",unicode:"e77d",unicode_decimal:59261},{icon_id:"38659547",name:"日期范围",font_class:"shijianfanwei",unicode:"e77e",unicode_decimal:59262},{icon_id:"38659546",name:"单选",font_class:"danxuan1",unicode:"e77f",unicode_decimal:59263},{icon_id:"38659540",name:"多行文本",font_class:"duohangwenben1",unicode:"e780",unicode_decimal:59264},{icon_id:"38659543",name:"时间",font_class:"shijian2",unicode:"e781",unicode_decimal:59265},{icon_id:"38659544",name:"开关",font_class:"kaiguan1",unicode:"e782",unicode_decimal:59266},{icon_id:"38659541",name:"多选",font_class:"duoxuan1",unicode:"e783",unicode_decimal:59267},{icon_id:"38659943",name:"HTML",font_class:"HTML",unicode:"e76c",unicode_decimal:59244},{icon_id:"38659942",name:"按钮",font_class:"anniu",unicode:"e76d",unicode_decimal:59245},{icon_id:"38659941",name:"滑块",font_class:"huakuai1",unicode:"e76e",unicode_decimal:59246},{icon_id:"38659937",name:"树形选择",font_class:"shuxingxuanze",unicode:"e76f",unicode_decimal:59247},{icon_id:"38659939",name:"颜色选择器",font_class:"yansexuanzeqi",unicode:"e770",unicode_decimal:59248},{icon_id:"38659940",name:"分隔线",font_class:"fengexian",unicode:"e771",unicode_decimal:59249},{icon_id:"38659938",name:"文件上传",font_class:"wenjianshangchuan",unicode:"e777",unicode_decimal:59255},{icon_id:"38659936",name:"评分",font_class:"pingfen1",unicode:"e778",unicode_decimal:59256},{icon_id:"38659935",name:"图片",font_class:"tupian2",unicode:"e779",unicode_decimal:59257},{icon_id:"38660004",name:"查询表格页",font_class:"chaxunbiaogeye",unicode:"e769",unicode_decimal:59241},{icon_id:"38660003",name:"富文本",font_class:"fuwenben",unicode:"e76a",unicode_decimal:59242},{icon_id:"38659989",name:"静态文字",font_class:"jingtaiwenzi",unicode:"e76b",unicode_decimal:59243},{icon_id:"38660011",name:"审批对话框",font_class:"shenpiduihuakuang",unicode:"e762",unicode_decimal:59234},{icon_id:"38660010",name:"人员",font_class:"renyuan",unicode:"e763",unicode_decimal:59235},{icon_id:"38660009",name:"单位",font_class:"danwei",unicode:"e764",unicode_decimal:59236},{icon_id:"38660008",name:"详情页",font_class:"xiangqingye",unicode:"e765",unicode_decimal:59237},{icon_id:"38660006",name:"职务",font_class:"zhiwu",unicode:"e766",unicode_decimal:59238},{icon_id:"38660007",name:"组织",font_class:"zuzhi",unicode:"e767",unicode_decimal:59239},{icon_id:"38660005",name:"角色",font_class:"jiaose",unicode:"e768",unicode_decimal:59240},{icon_id:"38659449",name:"数据表格",font_class:"shujubiaoge",unicode:"e75c",unicode_decimal:59228},{icon_id:"38659453",name:"弹出窗口",font_class:"danchuchuangkou",unicode:"e75d",unicode_decimal:59229},{icon_id:"38659454",name:"侧滑抽屉",font_class:"cehuachouti",unicode:"e75e",unicode_decimal:59230},{icon_id:"38659452",name:"栅格",font_class:"zhage",unicode:"e75f",unicode_decimal:59231},{icon_id:"38659451",name:"卡片",font_class:"kapian1",unicode:"e760",unicode_decimal:59232},{icon_id:"38659450",name:"表单",font_class:"biaodan1",unicode:"e761",unicode_decimal:59233},{icon_id:"38659455",name:"单行子表单",font_class:"danhangzibiaodan",unicode:"e75b",unicode_decimal:59227},{icon_id:"35104115",name:"箭头下",font_class:"jiantouxia",unicode:"e607",unicode_decimal:58887},{icon_id:"35104157",name:"箭头上",font_class:"jiantoushang",unicode:"e608",unicode_decimal:58888},{icon_id:"35104165",name:"缩小",font_class:"suoxiao",unicode:"e60a",unicode_decimal:58890},{icon_id:"36714058",name:"箭头下-copy",font_class:"jiantouyou-copy",unicode:"e720",unicode_decimal:59168},{icon_id:"36714060",name:"箭头上-copy",font_class:"jiantouzuo-copy",unicode:"e721",unicode_decimal:59169},{icon_id:"36651222",name:"售后工单",font_class:"shouhougongdan",unicode:"e705",unicode_decimal:59141},{icon_id:"36651223",name:"离职交接",font_class:"lizhijiaojie",unicode:"e706",unicode_decimal:59142},{icon_id:"36651206",name:"活动经费",font_class:"huodongjingfei",unicode:"e707",unicode_decimal:59143},{icon_id:"36651220",name:"绩效自评备份",font_class:"jixiaozipingbeifen",unicode:"e708",unicode_decimal:59144},{icon_id:"36651221",name:"请假",font_class:"qingjia",unicode:"e709",unicode_decimal:59145},{icon_id:"36651208",name:"抄送人",font_class:"chaosongren",unicode:"e70a",unicode_decimal:59146},{icon_id:"36651216",name:"设备巡查",font_class:"shebeixuncha",unicode:"e70b",unicode_decimal:59147},{icon_id:"36651219",name:"付款",font_class:"fukuan",unicode:"e70c",unicode_decimal:59148},{icon_id:"36651204",name:"工作流测试",font_class:"gongzuoliuceshi",unicode:"e70d",unicode_decimal:59149},{icon_id:"36651217",name:"离职",font_class:"lizhi",unicode:"e70e",unicode_decimal:59150},{icon_id:"36651214",name:"采购",font_class:"caigou",unicode:"e70f",unicode_decimal:59151},{icon_id:"36651203",name:"报销",font_class:"baoxiao",unicode:"e710",unicode_decimal:59152},{icon_id:"36651215",name:"加班",font_class:"jiaban",unicode:"e711",unicode_decimal:59153},{icon_id:"36651210",name:"会议室预定",font_class:"huiyishiyuding",unicode:"e712",unicode_decimal:59154},{icon_id:"36651213",name:"库存盘点",font_class:"kucunpandian",unicode:"e713",unicode_decimal:59155},{icon_id:"36651205",name:"出差",font_class:"chucha",unicode:"e714",unicode_decimal:59156},{icon_id:"36651209",name:"合同审批",font_class:"hetongshenpi",unicode:"e715",unicode_decimal:59157},{icon_id:"36651207",name:"调岗",font_class:"tiaogang",unicode:"e716",unicode_decimal:59158},{icon_id:"36651235",name:"转正",font_class:"zhuanzheng",unicode:"e6f5",unicode_decimal:59125},{icon_id:"36651234",name:"物品领用",font_class:"wupinlingyong",unicode:"e6f6",unicode_decimal:59126},{icon_id:"36651202",name:"补卡",font_class:"buka",unicode:"e6f7",unicode_decimal:59127},{icon_id:"36651233",name:"办理/立项申请",font_class:"lixiangshenqing",unicode:"e6f8",unicode_decimal:59128},{icon_id:"36651231",name:"外出",font_class:"waichu",unicode:"e6f9",unicode_decimal:59129},{icon_id:"36651218",name:"公文流转",font_class:"gongwenliuzhuan",unicode:"e6fa",unicode_decimal:59130},{icon_id:"36651227",name:"发起人/入职",font_class:"ruzhi",unicode:"e6fb",unicode_decimal:59131},{icon_id:"36651232",name:"用车",font_class:"yongche",unicode:"e6fc",unicode_decimal:59132},{icon_id:"36651229",name:"设备维修",font_class:"shebeiweixiu",unicode:"e6fd",unicode_decimal:59133},{icon_id:"36651230",name:"审批",font_class:"shenpi",unicode:"e6fe",unicode_decimal:59134},{icon_id:"36651224",name:"条件分支",font_class:"tiaojianfenzhi",unicode:"e6ff",unicode_decimal:59135},{icon_id:"36651228",name:"绩效自评",font_class:"jixiaoziping",unicode:"e700",unicode_decimal:59136},{icon_id:"36651226",name:"招聘要求",font_class:"zhaopinyaoqiu",unicode:"e701",unicode_decimal:59137},{icon_id:"36651225",name:"用章",font_class:"yongzhang",unicode:"e702",unicode_decimal:59138},{icon_id:"36651212",name:"换班",font_class:"huanban",unicode:"e703",unicode_decimal:59139},{icon_id:"36651211",name:"费用申请",font_class:"feiyongshenqing",unicode:"e704",unicode_decimal:59140},{icon_id:"36650753",name:"开关",font_class:"kaiguan",unicode:"e6f0",unicode_decimal:59120},{icon_id:"36650761",name:"说明",font_class:"shuoming",unicode:"e6f1",unicode_decimal:59121},{icon_id:"36650757",name:"滑块",font_class:"huakuai",unicode:"e6f2",unicode_decimal:59122},{icon_id:"36650755",name:"收款账号",font_class:"shoukuanzhanghao",unicode:"e6f3",unicode_decimal:59123},{icon_id:"36650754",name:"金额",font_class:"jine",unicode:"e6f4",unicode_decimal:59124},{icon_id:"36650775",name:"评分",font_class:"pingfen",unicode:"e6e2",unicode_decimal:59106},{icon_id:"36650773",name:"日期",font_class:"shijian1",unicode:"e6e3",unicode_decimal:59107},{icon_id:"36650764",name:"省市区",font_class:"shengshiqu",unicode:"e6e4",unicode_decimal:59108},{icon_id:"36650769",name:"位置",font_class:"weizhi",unicode:"e6e5",unicode_decimal:59109},{icon_id:"36650768",name:"电话",font_class:"dianhua1",unicode:"e6e6",unicode_decimal:59110},{icon_id:"36650758",name:"单选",font_class:"danxuan",unicode:"e6e7",unicode_decimal:59111},{icon_id:"36650766",name:"多行文本",font_class:"duohangwenben",unicode:"e6e8",unicode_decimal:59112},{icon_id:"36650767",name:"邮箱",font_class:"youxiang",unicode:"e6e9",unicode_decimal:59113},{icon_id:"36650763",name:"附件",font_class:"fujian",unicode:"e6ea",unicode_decimal:59114},{icon_id:"36650765",name:"手写签名",font_class:"shouxieqianming",unicode:"e6eb",unicode_decimal:59115},{icon_id:"36650760",name:"多选",font_class:"duoxuan",unicode:"e6ec",unicode_decimal:59116},{icon_id:"36650762",name:"计算公式",font_class:"jisuangongshi",unicode:"e6ef",unicode_decimal:59119},{icon_id:"36650771",name:"明细",font_class:"mingxi",unicode:"e6e0",unicode_decimal:59104},{icon_id:"36650770",name:"单行文本",font_class:"danhangwenben",unicode:"e6e1",unicode_decimal:59105},{icon_id:"36650781",name:"联系人",font_class:"lianxiren",unicode:"e6d6",unicode_decimal:59094},{icon_id:"36650772",name:"部门",font_class:"bumen",unicode:"e6d7",unicode_decimal:59095},{icon_id:"36650783",name:"图片",font_class:"tupian1",unicode:"e6d8",unicode_decimal:59096},{icon_id:"36650782",name:"下拉",font_class:"xiala",unicode:"e6d9",unicode_decimal:59097},{icon_id:"36650780",name:"关联",font_class:"guanlian",unicode:"e6da",unicode_decimal:59098},{icon_id:"36650778",name:"分类",font_class:"fenlei",unicode:"e6dc",unicode_decimal:59100},{icon_id:"36650774",name:"身份证",font_class:"shenfenzheng",unicode:"e6dd",unicode_decimal:59101},{icon_id:"36650777",name:"颜色",font_class:"yanse",unicode:"e6de",unicode_decimal:59102},{icon_id:"36650776",name:"数字",font_class:"shuzi",unicode:"e6df",unicode_decimal:59103},{icon_id:"36649735",name:"固定",font_class:"guding",unicode:"e6ce",unicode_decimal:59086},{icon_id:"36649523",name:"搜索-导航",font_class:"sousuo-daohang",unicode:"e6d2",unicode_decimal:59090},{icon_id:"36058668",name:"关闭备份",font_class:"guanbibeifen",unicode:"e6c0",unicode_decimal:59072},{icon_id:"36058671",name:"展开",font_class:"zhankai",unicode:"e6c3",unicode_decimal:59075},{icon_id:"36058675",name:"收起",font_class:"shouqi2",unicode:"e6c7",unicode_decimal:59079},{icon_id:"36057144",name:"收藏",font_class:"shoucang",unicode:"e67f",unicode_decimal:59007},{icon_id:"35649231",name:"收起",font_class:"shouqi",unicode:"e65b",unicode_decimal:58971},{icon_id:"35649233",name:"排序",font_class:"paixu",unicode:"e65d",unicode_decimal:58973},{icon_id:"35649234",name:"展开-页面标签",font_class:"zhankai-yemianbiaoqian",unicode:"e65e",unicode_decimal:58974},{icon_id:"35649241",name:"关闭-页面标签",font_class:"guanbi-yemianbiaoqian",unicode:"e665",unicode_decimal:58981}]},aC="";var tc;const nc=typeof window<"u",rb=t=>typeof t=="string",ic=()=>{},lb=nc&&((tc=window==null?void 0:window.navigator)==null?void 0:tc.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function oc(t){return typeof t=="function"?t():i.unref(t)}function ab(t){return t}function sb(t){return i.getCurrentScope()?(i.onScopeDispose(t),!0):!1}function wn(t){var e;const n=oc(t);return(e=n==null?void 0:n.$el)!=null?e:n}const rc=nc?window:void 0;function Ko(...t){let e,n,o,r;if(rb(t[0])||Array.isArray(t[0])?([n,o,r]=t,e=rc):[e,n,o,r]=t,!e)return ic;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const l=[],a=()=>{l.forEach(u=>u()),l.length=0},s=(u,m,p,c)=>(u.addEventListener(m,p,c),()=>u.removeEventListener(m,p,c)),d=i.watch(()=>[wn(e),oc(r)],([u,m])=>{a(),u&&l.push(...n.flatMap(p=>o.map(c=>s(u,p,c,m))))},{immediate:!0,flush:"post"}),f=()=>{d(),a()};return sb(f),f}let lc=!1;function cb(t,e,n={}){const{window:o=rc,ignore:r=[],capture:l=!0,detectIframe:a=!1}=n;if(!o)return;lb&&!lc&&(lc=!0,Array.from(o.document.body.children).forEach(p=>p.addEventListener("click",ic)));let s=!0;const d=p=>r.some(c=>{if(typeof c=="string")return Array.from(o.document.querySelectorAll(c)).some(_=>_===p.target||p.composedPath().includes(_));{const _=wn(c);return _&&(p.target===_||p.composedPath().includes(_))}}),u=[Ko(o,"click",p=>{const c=wn(t);if(!(!c||c===p.target||p.composedPath().includes(c))){if(p.detail===0&&(s=!d(p)),!s){s=!0;return}e(p)}},{passive:!0,capture:l}),Ko(o,"pointerdown",p=>{const c=wn(t);c&&(s=!p.composedPath().includes(c)&&!d(p))},{passive:!0}),a&&Ko(o,"blur",p=>{var c;const _=wn(t);((c=o.document.activeElement)==null?void 0:c.tagName)==="IFRAME"&&!(_!=null&&_.contains(o.document.activeElement))&&e(p)})].filter(Boolean);return()=>u.forEach(p=>p())}const ac=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},sc="__vueuse_ssr_handlers__";ac[sc]=ac[sc]||{};var cc;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(cc||(cc={}));var db=Object.defineProperty,dc=Object.getOwnPropertySymbols,ub=Object.prototype.hasOwnProperty,fb=Object.prototype.propertyIsEnumerable,uc=(t,e,n)=>e in t?db(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,pb=(t,e)=>{for(var n in e||(e={}))ub.call(e,n)&&uc(t,n,e[n]);if(dc)for(var n of dc(e))fb.call(e,n)&&uc(t,n,e[n]);return t};pb({linear:ab},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function hb(t,e){const n=new Set(t.split(","));return e?o=>n.has(o.toLowerCase()):o=>n.has(o)}const lt=process.env.NODE_ENV!=="production"?Object.freeze({}):{};process.env.NODE_ENV!=="production"&&Object.freeze([]);const Nt=()=>{},mb=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Pe=Object.assign,gb=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},_b=Object.prototype.hasOwnProperty,pe=(t,e)=>_b.call(t,e),ue=Array.isArray,Qt=t=>hi(t)==="[object Map]",yb=t=>hi(t)==="[object Set]",ge=t=>typeof t=="function",Ve=t=>typeof t=="string",pi=t=>typeof t=="symbol",Re=t=>t!==null&&typeof t=="object",bb=t=>(Re(t)||ge(t))&&ge(t.then)&&ge(t.catch),Eb=Object.prototype.toString,hi=t=>Eb.call(t),fc=t=>hi(t).slice(8,-1),wb=t=>hi(t)==="[object Object]",Xo=t=>Ve(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Cb=(t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))})(t=>t.charAt(0).toUpperCase()+t.slice(1)),at=(t,e)=>!Object.is(t,e),kb=(t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})};let pc;const hc=()=>pc||(pc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Jo(t){if(ue(t)){const e={};for(let n=0;n<t.length;n++){const o=t[n],r=Ve(o)?Db(o):Jo(o);if(r)for(const l in r)e[l]=r[l]}return e}else if(Ve(t)||Re(t))return t}const vb=/;(?![^(]*\))/g,Sb=/:([^]+)/,Ab=/\/\*[^]*?\*\//g;function Db(t){const e={};return t.replace(Ab,"").split(vb).forEach(n=>{if(n){const o=n.split(Sb);o.length>1&&(e[o[0].trim()]=o[1].trim())}}),e}function er(t){let e="";if(Ve(t))e=t;else if(ue(t))for(let n=0;n<t.length;n++){const o=er(t[n]);o&&(e+=o+" ")}else if(Re(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}function mc(t,...e){console.warn(`[Vue warn] ${t}`,...e)}let gc;function xb(t,e=gc){e&&e.active&&e.effects.push(t)}function Nb(){return gc}let Tt;class _c{constructor(e,n,o,r){this.fn=e,this.trigger=n,this.scheduler=o,this.active=!0,this.deps=[],this._dirtyLevel=3,this._trackId=0,this._runnings=0,this._queryings=0,this._depsLength=0,xb(this,r)}get dirty(){if(this._dirtyLevel===1){this._dirtyLevel=0,this._queryings++,nr();for(const e of this.deps)if(e.computed&&(Tb(e.computed),this._dirtyLevel>=2))break;ir(),this._queryings--}return this._dirtyLevel>=2}set dirty(e){this._dirtyLevel=e?3:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=st,n=Tt;try{return st=!0,Tt=this,this._runnings++,yc(this),this.fn()}finally{bc(this),this._runnings--,Tt=n,st=e}}stop(){var e;this.active&&(yc(this),bc(this),(e=this.onStop)==null||e.call(this),this.active=!1)}}function Tb(t){return t.value}function yc(t){t._trackId++,t._depsLength=0}function bc(t){if(t.deps&&t.deps.length>t._depsLength){for(let e=t._depsLength;e<t.deps.length;e++)Ec(t.deps[e],t);t.deps.length=t._depsLength}}function Ec(t,e){const n=t.get(e);n!==void 0&&e._trackId!==n&&(t.delete(e),t.size===0&&t.cleanup())}let st=!0,tr=0;const wc=[];function nr(){wc.push(st),st=!1}function ir(){const t=wc.pop();st=t===void 0?!0:t}function or(){tr++}function rr(){for(tr--;!tr&&lr.length;)lr.shift()()}function Cc(t,e,n){var o;if(e.get(t)!==t._trackId){e.set(t,t._trackId);const r=t.deps[t._depsLength];r!==e?(r&&Ec(r,t),t.deps[t._depsLength++]=e):t._depsLength++,process.env.NODE_ENV!=="production"&&((o=t.onTrack)==null||o.call(t,Pe({effect:t},n)))}}const lr=[];function kc(t,e,n){var o;or();for(const r of t.keys())if(!(!r.allowRecurse&&r._runnings)&&r._dirtyLevel<e&&(!r._runnings||e!==2)){const l=r._dirtyLevel;r._dirtyLevel=e,l===0&&(!r._queryings||e!==2)&&(process.env.NODE_ENV!=="production"&&((o=r.onTrigger)==null||o.call(r,Pe({effect:r},n))),r.trigger(),r.scheduler&&lr.push(r.scheduler))}rr()}const vc=(t,e)=>{const n=new Map;return n.cleanup=t,n.computed=e,n},ar=new WeakMap,Vt=Symbol(process.env.NODE_ENV!=="production"?"iterate":""),sr=Symbol(process.env.NODE_ENV!=="production"?"Map key iterate":"");function Ce(t,e,n){if(st&&Tt){let o=ar.get(t);o||ar.set(t,o=new Map);let r=o.get(n);r||o.set(n,r=vc(()=>o.delete(n))),Cc(Tt,r,process.env.NODE_ENV!=="production"?{target:t,type:e,key:n}:void 0)}}function ct(t,e,n,o,r,l){const a=ar.get(t);if(!a)return;let s=[];if(e==="clear")s=[...a.values()];else if(n==="length"&&ue(t)){const d=Number(o);a.forEach((f,u)=>{(u==="length"||!pi(u)&&u>=d)&&s.push(f)})}else switch(n!==void 0&&s.push(a.get(n)),e){case"add":ue(t)?Xo(n)&&s.push(a.get("length")):(s.push(a.get(Vt)),Qt(t)&&s.push(a.get(sr)));break;case"delete":ue(t)||(s.push(a.get(Vt)),Qt(t)&&s.push(a.get(sr)));break;case"set":Qt(t)&&s.push(a.get(Vt));break}or();for(const d of s)d&&kc(d,3,process.env.NODE_ENV!=="production"?{target:t,type:e,key:n,newValue:o,oldValue:r,oldTarget:l}:void 0);rr()}const Vb=hb("__proto__,__v_isRef,__isVue"),Sc=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(pi)),Ac=Rb();function Rb(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const o=Z(this);for(let l=0,a=this.length;l<a;l++)Ce(o,"get",l+"");const r=o[e](...n);return r===-1||r===!1?o[e](...n.map(Z)):r}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...n){nr(),or();const o=Z(this)[e].apply(this,n);return rr(),ir(),o}}),t}function Ib(t){const e=Z(this);return Ce(e,"has",t),e.hasOwnProperty(t)}class Dc{constructor(e=!1,n=!1){this._isReadonly=e,this._shallow=n}get(e,n,o){const r=this._isReadonly,l=this._shallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return l;if(n==="__v_raw")return o===(r?l?Mc:Oc:l?Gb:Bc).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(o)?e:void 0;const a=ue(e);if(!r){if(a&&pe(Ac,n))return Reflect.get(Ac,n,o);if(n==="hasOwnProperty")return Ib}const s=Reflect.get(e,n,o);return(pi(n)?Sc.has(n):Vb(n))||(r||Ce(e,"get",n),l)?s:Ne(s)?a&&Xo(n)?s:s.value:Re(s)?r?zc(s):Lc(s):s}}class Bb extends Dc{constructor(e=!1){super(!1,e)}set(e,n,o,r){let l=e[n];if(!this._shallow){const d=Kt(l);if(!Xt(o)&&!Kt(o)&&(l=Z(l),o=Z(o)),!ue(e)&&Ne(l)&&!Ne(o))return d?!1:(l.value=o,!0)}const a=ue(e)&&Xo(n)?Number(n)<e.length:pe(e,n),s=Reflect.set(e,n,o,r);return e===Z(r)&&(a?at(o,l)&&ct(e,"set",n,o,l):ct(e,"add",n,o)),s}deleteProperty(e,n){const o=pe(e,n),r=e[n],l=Reflect.deleteProperty(e,n);return l&&o&&ct(e,"delete",n,void 0,r),l}has(e,n){const o=Reflect.has(e,n);return(!pi(n)||!Sc.has(n))&&Ce(e,"has",n),o}ownKeys(e){return Ce(e,"iterate",ue(e)?"length":Vt),Reflect.ownKeys(e)}}class xc extends Dc{constructor(e=!1){super(!0,e)}set(e,n){return process.env.NODE_ENV!=="production"&&mc(`Set operation on key "${String(n)}" failed: target is readonly.`,e),!0}deleteProperty(e,n){return process.env.NODE_ENV!=="production"&&mc(`Delete operation on key "${String(n)}" failed: target is readonly.`,e),!0}}const Ob=new Bb,Mb=new xc,Lb=new xc(!0),cr=t=>t,mi=t=>Reflect.getPrototypeOf(t);function gi(t,e,n=!1,o=!1){t=t.__v_raw;const r=Z(t),l=Z(e);n||(at(e,l)&&Ce(r,"get",e),Ce(r,"get",l));const{has:a}=mi(r),s=o?cr:n?pr:Cn;if(a.call(r,e))return s(t.get(e));if(a.call(r,l))return s(t.get(l));t!==r&&t.get(e)}function _i(t,e=!1){const n=this.__v_raw,o=Z(n),r=Z(t);return e||(at(t,r)&&Ce(o,"has",t),Ce(o,"has",r)),t===r?n.has(t):n.has(t)||n.has(r)}function yi(t,e=!1){return t=t.__v_raw,!e&&Ce(Z(t),"iterate",Vt),Reflect.get(t,"size",t)}function Nc(t){t=Z(t);const e=Z(this);return mi(e).has.call(e,t)||(e.add(t),ct(e,"add",t,t)),this}function Tc(t,e){e=Z(e);const n=Z(this),{has:o,get:r}=mi(n);let l=o.call(n,t);l?process.env.NODE_ENV!=="production"&&Ic(n,o,t):(t=Z(t),l=o.call(n,t));const a=r.call(n,t);return n.set(t,e),l?at(e,a)&&ct(n,"set",t,e,a):ct(n,"add",t,e),this}function Vc(t){const e=Z(this),{has:n,get:o}=mi(e);let r=n.call(e,t);r?process.env.NODE_ENV!=="production"&&Ic(e,n,t):(t=Z(t),r=n.call(e,t));const l=o?o.call(e,t):void 0,a=e.delete(t);return r&&ct(e,"delete",t,void 0,l),a}function Rc(){const t=Z(this),e=t.size!==0,n=process.env.NODE_ENV!=="production"?Qt(t)?new Map(t):new Set(t):void 0,o=t.clear();return e&&ct(t,"clear",void 0,void 0,n),o}function bi(t,e){return function(o,r){const l=this,a=l.__v_raw,s=Z(a),d=e?cr:t?pr:Cn;return!t&&Ce(s,"iterate",Vt),a.forEach((f,u)=>o.call(r,d(f),d(u),l))}}function Ei(t,e,n){return function(...o){const r=this.__v_raw,l=Z(r),a=Qt(l),s=t==="entries"||t===Symbol.iterator&&a,d=t==="keys"&&a,f=r[t](...o),u=n?cr:e?pr:Cn;return!e&&Ce(l,"iterate",d?sr:Vt),{next(){const{value:m,done:p}=f.next();return p?{value:m,done:p}:{value:s?[u(m[0]),u(m[1])]:u(m),done:p}},[Symbol.iterator](){return this}}}}function dt(t){return function(...e){if(process.env.NODE_ENV!=="production"){const n=e[0]?`on key "${e[0]}" `:"";console.warn(`${Cb(t)} operation ${n}failed: target is readonly.`,Z(this))}return t==="delete"?!1:t==="clear"?void 0:this}}function zb(){const t={get(l){return gi(this,l)},get size(){return yi(this)},has:_i,add:Nc,set:Tc,delete:Vc,clear:Rc,forEach:bi(!1,!1)},e={get(l){return gi(this,l,!1,!0)},get size(){return yi(this)},has:_i,add:Nc,set:Tc,delete:Vc,clear:Rc,forEach:bi(!1,!0)},n={get(l){return gi(this,l,!0)},get size(){return yi(this,!0)},has(l){return _i.call(this,l,!0)},add:dt("add"),set:dt("set"),delete:dt("delete"),clear:dt("clear"),forEach:bi(!0,!1)},o={get(l){return gi(this,l,!0,!0)},get size(){return yi(this,!0)},has(l){return _i.call(this,l,!0)},add:dt("add"),set:dt("set"),delete:dt("delete"),clear:dt("clear"),forEach:bi(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(l=>{t[l]=Ei(l,!1,!1),n[l]=Ei(l,!0,!1),e[l]=Ei(l,!1,!0),o[l]=Ei(l,!0,!0)}),[t,n,e,o]}const[Pb,Fb,$b,Hb]=zb();function dr(t,e){const n=e?t?Hb:$b:t?Fb:Pb;return(o,r,l)=>r==="__v_isReactive"?!t:r==="__v_isReadonly"?t:r==="__v_raw"?o:Reflect.get(pe(n,r)&&r in o?n:o,r,l)}const jb={get:dr(!1,!1)},Ub={get:dr(!0,!1)},Wb={get:dr(!0,!0)};function Ic(t,e,n){const o=Z(n);if(o!==n&&e.call(t,o)){const r=fc(t);console.warn(`Reactive ${r} contains both the raw and reactive versions of the same object${r==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const Bc=new WeakMap,Gb=new WeakMap,Oc=new WeakMap,Mc=new WeakMap;function qb(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Yb(t){return t.__v_skip||!Object.isExtensible(t)?0:qb(fc(t))}function Lc(t){return Kt(t)?t:ur(t,!1,Ob,jb,Bc)}function zc(t){return ur(t,!0,Mb,Ub,Oc)}function wi(t){return ur(t,!0,Lb,Wb,Mc)}function ur(t,e,n,o,r){if(!Re(t))return process.env.NODE_ENV!=="production"&&console.warn(`value cannot be made reactive: ${String(t)}`),t;if(t.__v_raw&&!(e&&t.__v_isReactive))return t;const l=r.get(t);if(l)return l;const a=Yb(t);if(a===0)return t;const s=new Proxy(t,a===2?o:n);return r.set(t,s),s}function Zt(t){return Kt(t)?Zt(t.__v_raw):!!(t&&t.__v_isReactive)}function Kt(t){return!!(t&&t.__v_isReadonly)}function Xt(t){return!!(t&&t.__v_isShallow)}function fr(t){return Zt(t)||Kt(t)}function Z(t){const e=t&&t.__v_raw;return e?Z(e):t}function Qb(t){return kb(t,"__v_skip",!0),t}const Cn=t=>Re(t)?Lc(t):t,pr=t=>Re(t)?zc(t):t;class Zb{constructor(e,n,o,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new _c(()=>e(this._value),()=>hr(this,1)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=o}get value(){const e=Z(this);return Pc(e),(!e._cacheable||e.effect.dirty)&&at(e._value,e._value=e.effect.run())&&hr(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function Pc(t){st&&Tt&&(t=Z(t),Cc(Tt,t.dep||(t.dep=vc(()=>t.dep=void 0,t instanceof Zb?t:void 0)),process.env.NODE_ENV!=="production"?{target:t,type:"get",key:"value"}:void 0))}function hr(t,e=3,n){t=Z(t);const o=t.dep;o&&kc(o,e,process.env.NODE_ENV!=="production"?{target:t,type:"set",key:"value",newValue:n}:void 0)}function Ne(t){return!!(t&&t.__v_isRef===!0)}function kn(t){return Kb(t,!1)}function Kb(t,e){return Ne(t)?t:new Xb(t,e)}class Xb{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:Z(e),this._value=n?e:Cn(e)}get value(){return Pc(this),this._value}set value(e){const n=this.__v_isShallow||Xt(e)||Kt(e);e=n?e:Z(e),at(e,this._rawValue)&&(this._rawValue=e,this._value=n?e:Cn(e),hr(this,3,e))}}function Jb(t){return Ne(t)?t.value:t}const eE={get:(t,e,n)=>Jb(Reflect.get(t,e,n)),set:(t,e,n,o)=>{const r=t[e];return Ne(r)&&!Ne(n)?(r.value=n,!0):Reflect.set(t,e,n,o)}};function tE(t){return Zt(t)?t:new Proxy(t,eE)}const Rt=[];function nE(t){Rt.push(t)}function iE(){Rt.pop()}function he(t,...e){nr();const n=Rt.length?Rt[Rt.length-1].component:null,o=n&&n.appContext.config.warnHandler,r=oE();if(o)It(o,n,11,[t+e.join(""),n&&n.proxy,r.map(({vnode:l})=>`at <${dd(n,l.type)}>`).join(`
|
|
51
|
-
`),r]);else{const l=[`[Vue warn]: ${t}`,...e];r.length&&l.push(`
|
|
52
|
-
`,...rE(r)),console.warn(...l)}ir()}function oE(){let t=Rt[Rt.length-1];if(!t)return[];const e=[];for(;t;){const n=e[0];n&&n.vnode===t?n.recurseCount++:e.push({vnode:t,recurseCount:0});const o=t.component&&t.component.parent;t=o&&o.vnode}return e}function rE(t){const e=[];return t.forEach((n,o)=>{e.push(...o===0?[]:[`
|
|
53
|
-
`],...lE(n))}),e}function lE({vnode:t,recurseCount:e}){const n=e>0?`... (${e} recursive calls)`:"",o=t.component?t.component.parent==null:!1,r=` at <${dd(t.component,t.type,o)}`,l=">"+n;return t.props?[r,...aE(t.props),l]:[r+l]}function aE(t){const e=[],n=Object.keys(t);return n.slice(0,3).forEach(o=>{e.push(...Fc(o,t[o]))}),n.length>3&&e.push(" ..."),e}function Fc(t,e,n){return Ve(e)?(e=JSON.stringify(e),n?e:[`${t}=${e}`]):typeof e=="number"||typeof e=="boolean"||e==null?n?e:[`${t}=${e}`]:Ne(e)?(e=Fc(t,Z(e.value),!0),n?e:[`${t}=Ref<`,e,">"]):ge(e)?[`${t}=fn${e.name?`<${e.name}>`:""}`]:(e=Z(e),n?e:[`${t}=`,e])}const $c={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function It(t,e,n,o){let r;try{r=o?t(...o):t()}catch(l){mr(l,e,n)}return r}function Ci(t,e,n,o){if(ge(t)){const l=It(t,e,n,o);return l&&bb(l)&&l.catch(a=>{mr(a,e,n)}),l}const r=[];for(let l=0;l<t.length;l++)r.push(Ci(t[l],e,n,o));return r}function mr(t,e,n,o=!0){const r=e?e.vnode:null;if(e){let l=e.parent;const a=e.proxy,s=process.env.NODE_ENV!=="production"?$c[n]:`https://vuejs.org/errors/#runtime-${n}`;for(;l;){const f=l.ec;if(f){for(let u=0;u<f.length;u++)if(f[u](t,a,s)===!1)return}l=l.parent}const d=e.appContext.config.errorHandler;if(d){It(d,null,10,[t,a,s]);return}}sE(t,n,r,o)}function sE(t,e,n,o=!0){if(process.env.NODE_ENV!=="production"){const r=$c[e];if(n&&nE(n),he(`Unhandled error${r?` during execution of ${r}`:""}`),n&&iE(),o)throw t;console.error(t)}else console.error(t)}let ki=!1,gr=!1;const Ie=[];let ut=0;const Jt=[];let Fe=null,ft=0;const Hc=Promise.resolve();let _r=null;const cE=100;function dE(t){const e=_r||Hc;return t?e.then(this?t.bind(this):t):e}function uE(t){let e=ut+1,n=Ie.length;for(;e<n;){const o=e+n>>>1,r=Ie[o],l=vn(r);l<t||l===t&&r.pre?e=o+1:n=o}return e}function yr(t){(!Ie.length||!Ie.includes(t,ki&&t.allowRecurse?ut+1:ut))&&(t.id==null?Ie.push(t):Ie.splice(uE(t.id),0,t),jc())}function jc(){!ki&&!gr&&(gr=!0,_r=Hc.then(Wc))}function Uc(t){ue(t)?Jt.push(...t):(!Fe||!Fe.includes(t,t.allowRecurse?ft+1:ft))&&Jt.push(t),jc()}function fE(t){if(Jt.length){const e=[...new Set(Jt)];if(Jt.length=0,Fe){Fe.push(...e);return}for(Fe=e,process.env.NODE_ENV!=="production"&&(t=t||new Map),Fe.sort((n,o)=>vn(n)-vn(o)),ft=0;ft<Fe.length;ft++)process.env.NODE_ENV!=="production"&&Gc(t,Fe[ft])||Fe[ft]();Fe=null,ft=0}}const vn=t=>t.id==null?1/0:t.id,pE=(t,e)=>{const n=vn(t)-vn(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function Wc(t){gr=!1,ki=!0,process.env.NODE_ENV!=="production"&&(t=t||new Map),Ie.sort(pE);const e=process.env.NODE_ENV!=="production"?n=>Gc(t,n):Nt;try{for(ut=0;ut<Ie.length;ut++){const n=Ie[ut];if(n&&n.active!==!1){if(process.env.NODE_ENV!=="production"&&e(n))continue;It(n,null,14)}}}finally{ut=0,Ie.length=0,fE(t),ki=!1,_r=null,(Ie.length||Jt.length)&&Wc(t)}}function Gc(t,e){if(!t.has(e))t.set(e,1);else{const n=t.get(e);if(n>cE){const o=e.ownerInstance,r=o&&cd(o.type);return mr(`Maximum recursive updates exceeded${r?` in component <${r}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}else t.set(e,n+1)}}const Sn=new Set;process.env.NODE_ENV!=="production"&&(hc().__VUE_HMR_RUNTIME__={createRecord:br(hE),rerender:br(mE),reload:br(gE)});const vi=new Map;function hE(t,e){return vi.has(t)?!1:(vi.set(t,{initialDef:An(e),instances:new Set}),!0)}function An(t){return ud(t)?t.__vccOpts:t}function mE(t,e){const n=vi.get(t);n&&(n.initialDef.render=e,[...n.instances].forEach(o=>{e&&(o.render=e,An(o.type).render=e),o.renderCache=[],o.effect.dirty=!0,o.update()}))}function gE(t,e){const n=vi.get(t);if(!n)return;e=An(e),qc(n.initialDef,e);const o=[...n.instances];for(const r of o){const l=An(r.type);Sn.has(l)||(l!==n.initialDef&&qc(l,e),Sn.add(l)),r.appContext.propsCache.delete(r.type),r.appContext.emitsCache.delete(r.type),r.appContext.optionsCache.delete(r.type),r.ceReload?(Sn.add(l),r.ceReload(e.styles),Sn.delete(l)):r.parent?(r.parent.effect.dirty=!0,yr(r.parent.update)):r.appContext.reload?r.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}Uc(()=>{for(const r of o)Sn.delete(An(r.type))})}function qc(t,e){Pe(t,e);for(const n in t)n!=="__file"&&!(n in e)&&delete t[n]}function br(t){return(e,n)=>{try{return t(e,n)}catch(o){console.error(o),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let en,Si=[];function Yc(t,e){var n,o;en=t,en?(en.enabled=!0,Si.forEach(({event:r,args:l})=>en.emit(r,...l)),Si=[]):typeof window<"u"&&window.HTMLElement&&!((o=(n=window.navigator)==null?void 0:n.userAgent)!=null&&o.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(l=>{Yc(l,e)}),setTimeout(()=>{en||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Si=[])},3e3)):Si=[]}let Ye=null,_E=null;function dC(){}const yE=Symbol.for("v-ndc"),bE=t=>t.__isSuspense;function EE(t,e){e&&e.pendingBranch?ue(t)?e.effects.push(...t):e.effects.push(t):Uc(t)}const wE=Symbol.for("v-scx"),CE=()=>{{const t=RE(wE);return t||process.env.NODE_ENV!=="production"&&he("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),t}},Ai={};function kE(t,e,n){return process.env.NODE_ENV!=="production"&&!ge(e)&&he("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),Qc(t,e,n)}function Qc(t,e,{immediate:n,deep:o,flush:r,once:l,onTrack:a,onTrigger:s}=lt){var d;if(e&&l){const S=e;e=(...x)=>{S(...x),B()}}process.env.NODE_ENV!=="production"&&!e&&(n!==void 0&&he('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),o!==void 0&&he('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),l!==void 0&&he('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const f=S=>{he("Invalid watch source: ",S,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},u=Nb()===((d=Bt)==null?void 0:d.scope)?Bt:null;let m,p=!1,c=!1;if(Ne(t)?(m=()=>t.value,p=Xt(t)):Zt(t)?(m=Xt(t)||o===!1?()=>pt(t,1):()=>pt(t),p=!0):ue(t)?(c=!0,p=t.some(S=>Zt(S)||Xt(S)),m=()=>t.map(S=>{if(Ne(S))return S.value;if(Zt(S))return pt(S,Xt(S)||o===!1?1:void 0);if(ge(S))return It(S,u,2);process.env.NODE_ENV!=="production"&&f(S)})):ge(t)?e?m=()=>It(t,u,2):m=()=>{if(!(u&&u.isUnmounted))return _&&_(),Ci(t,u,3,[g])}:(m=Nt,process.env.NODE_ENV!=="production"&&f(t)),e&&o){const S=m;m=()=>pt(S())}let _,g=S=>{_=k.onStop=()=>{It(S,u,4),_=k.onStop=void 0}},h;if(sd)if(g=Nt,e?n&&Ci(e,u,3,[m(),c?[]:void 0,g]):m(),r==="sync"){const S=CE();h=S.__watcherHandles||(S.__watcherHandles=[])}else return Nt;let b=c?new Array(t.length).fill(Ai):Ai;const y=()=>{if(!(!k.active||!k.dirty))if(e){const S=k.run();(o||p||(c?S.some((x,w)=>at(x,b[w])):at(S,b)))&&(_&&_(),Ci(e,u,3,[S,b===Ai?void 0:c&&b[0]===Ai?[]:b,g]),b=S)}else k.run()};y.allowRecurse=!!e;let C;r==="sync"?C=y:r==="post"?C=()=>td(y,u&&u.suspense):(y.pre=!0,u&&(y.id=u.uid),C=()=>yr(y));const k=new _c(m,Nt,C),B=()=>{k.stop(),u&&u.scope&&gb(u.scope.effects,k)};return process.env.NODE_ENV!=="production"&&(k.onTrack=a,k.onTrigger=s),e?n?y():b=k.run():r==="post"?td(k.run.bind(k),u&&u.suspense):k.run(),h&&h.push(B),B}function vE(t,e,n){const o=this.proxy,r=Ve(t)?t.includes(".")?SE(o,t):()=>o[t]:t.bind(o,o);let l;ge(e)?l=e:(l=e.handler,n=e);const a=Bt;ad(this);const s=Qc(r,l.bind(o),n);return a?ad(a):jE(),s}function SE(t,e){const n=e.split(".");return()=>{let o=t;for(let r=0;r<n.length&&o;r++)o=o[n[r]];return o}}function pt(t,e,n=0,o){if(!Re(t)||t.__v_skip)return t;if(e&&e>0){if(n>=e)return t;n++}if(o=o||new Set,o.has(t))return t;if(o.add(t),Ne(t))pt(t.value,e,n,o);else if(ue(t))for(let r=0;r<t.length;r++)pt(t[r],e,n,o);else if(yb(t)||Qt(t))t.forEach(r=>{pt(r,e,n,o)});else if(wb(t))for(const r in t)pt(t[r],e,n,o);return t}const Er=t=>t?UE(t)?WE(t)||t.proxy:Er(t.parent):null,Dn=Pe(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>process.env.NODE_ENV!=="production"?wi(t.props):t.props,$attrs:t=>process.env.NODE_ENV!=="production"?wi(t.attrs):t.attrs,$slots:t=>process.env.NODE_ENV!=="production"?wi(t.slots):t.slots,$refs:t=>process.env.NODE_ENV!=="production"?wi(t.refs):t.refs,$parent:t=>Er(t.parent),$root:t=>Er(t.root),$emit:t=>t.emit,$options:t=>xE(t),$forceUpdate:t=>t.f||(t.f=()=>{t.effect.dirty=!0,yr(t.update)}),$nextTick:t=>t.n||(t.n=dE.bind(t.proxy)),$watch:t=>vE.bind(t)}),AE=t=>t==="_"||t==="$",wr=(t,e)=>t!==lt&&!t.__isScriptSetup&&pe(t,e),DE={get({_:t},e){const{ctx:n,setupState:o,data:r,props:l,accessCache:a,type:s,appContext:d}=t;if(process.env.NODE_ENV!=="production"&&e==="__isVue")return!0;let f;if(e[0]!=="$"){const c=a[e];if(c!==void 0)switch(c){case 1:return o[e];case 2:return r[e];case 4:return n[e];case 3:return l[e]}else{if(wr(o,e))return a[e]=1,o[e];if(r!==lt&&pe(r,e))return a[e]=2,r[e];if((f=t.propsOptions[0])&&pe(f,e))return a[e]=3,l[e];if(n!==lt&&pe(n,e))return a[e]=4,n[e];a[e]=0}}const u=Dn[e];let m,p;if(u)return e==="$attrs"?(Ce(t,"get",e),process.env.NODE_ENV!=="production"&&void 0):process.env.NODE_ENV!=="production"&&e==="$slots"&&Ce(t,"get",e),u(t);if((m=s.__cssModules)&&(m=m[e]))return m;if(n!==lt&&pe(n,e))return a[e]=4,n[e];if(p=d.config.globalProperties,pe(p,e))return p[e];process.env.NODE_ENV!=="production"&&Ye&&(!Ve(e)||e.indexOf("__v")!==0)&&(r!==lt&&AE(e[0])&&pe(r,e)?he(`Property ${JSON.stringify(e)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):t===Ye&&he(`Property ${JSON.stringify(e)} was accessed during render but is not defined on instance.`))},set({_:t},e,n){const{data:o,setupState:r,ctx:l}=t;return wr(r,e)?(r[e]=n,!0):process.env.NODE_ENV!=="production"&&r.__isScriptSetup&&pe(r,e)?(he(`Cannot mutate <script setup> binding "${e}" from Options API.`),!1):o!==lt&&pe(o,e)?(o[e]=n,!0):pe(t.props,e)?(process.env.NODE_ENV!=="production"&&he(`Attempting to mutate prop "${e}". Props are readonly.`),!1):e[0]==="$"&&e.slice(1)in t?(process.env.NODE_ENV!=="production"&&he(`Attempting to mutate public property "${e}". Properties starting with $ are reserved and readonly.`),!1):(process.env.NODE_ENV!=="production"&&e in t.appContext.config.globalProperties?Object.defineProperty(l,e,{enumerable:!0,configurable:!0,value:n}):l[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:o,appContext:r,propsOptions:l}},a){let s;return!!n[a]||t!==lt&&pe(t,a)||wr(e,a)||(s=l[0])&&pe(s,a)||pe(o,a)||pe(Dn,a)||pe(r.config.globalProperties,a)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:pe(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};process.env.NODE_ENV!=="production"&&(DE.ownKeys=t=>(he("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(t)));function Zc(t){return ue(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}function xE(t){const e=t.type,{mixins:n,extends:o}=e,{mixins:r,optionsCache:l,config:{optionMergeStrategies:a}}=t.appContext,s=l.get(e);let d;return s?d=s:!r.length&&!n&&!o?d=e:(d={},r.length&&r.forEach(f=>Di(d,f,a,!0)),Di(d,e,a)),Re(e)&&l.set(e,d),d}function Di(t,e,n,o=!1){const{mixins:r,extends:l}=e;l&&Di(t,l,n,!0),r&&r.forEach(a=>Di(t,a,n,!0));for(const a in e)if(o&&a==="expose")process.env.NODE_ENV!=="production"&&he('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const s=NE[a]||n&&n[a];t[a]=s?s(t[a],e[a]):e[a]}return t}const NE={data:Kc,props:Jc,emits:Jc,methods:xn,computed:xn,beforeCreate:Ee,created:Ee,beforeMount:Ee,mounted:Ee,beforeUpdate:Ee,updated:Ee,beforeDestroy:Ee,beforeUnmount:Ee,destroyed:Ee,unmounted:Ee,activated:Ee,deactivated:Ee,errorCaptured:Ee,serverPrefetch:Ee,components:xn,directives:xn,watch:VE,provide:Kc,inject:TE};function Kc(t,e){return e?t?function(){return Pe(ge(t)?t.call(this,this):t,ge(e)?e.call(this,this):e)}:e:t}function TE(t,e){return xn(Xc(t),Xc(e))}function Xc(t){if(ue(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function Ee(t,e){return t?[...new Set([].concat(t,e))]:e}function xn(t,e){return t?Pe(Object.create(null),t,e):e}function Jc(t,e){return t?ue(t)&&ue(e)?[...new Set([...t,...e])]:Pe(Object.create(null),Zc(t),Zc(e??{})):e}function VE(t,e){if(!t)return e;if(!e)return t;const n=Pe(Object.create(null),t);for(const o in e)n[o]=Ee(t[o],e[o]);return n}let ed=null;function RE(t,e,n=!1){const o=Bt||Ye;if(o||ed){const r=o?o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:ed._context.provides;if(r&&t in r)return r[t];if(arguments.length>1)return n&&ge(e)?e.call(o&&o.proxy):e;process.env.NODE_ENV!=="production"&&he(`injection "${String(t)}" not found.`)}else process.env.NODE_ENV!=="production"&&he("inject() can only be used inside setup() or functional components.")}const td=EE,IE=t=>t.__isTeleport,nd=Symbol.for("v-fgt"),BE=Symbol.for("v-txt"),OE=Symbol.for("v-cmt");let tn=null;function ME(t){return t?t.__v_isVNode===!0:!1}const LE=(...t)=>rd(...t),id="__vInternal",od=({key:t})=>t??null,xi=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?Ve(t)||Ne(t)||ge(t)?{i:Ye,r:t,k:e,f:!!n}:t:null);function zE(t,e=null,n=null,o=0,r=null,l=t===nd?0:1,a=!1,s=!1){const d={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&od(e),ref:e&&xi(e),scopeId:_E,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Ye};return s?(Cr(d,n),l&128&&t.normalize(d)):n&&(d.shapeFlag|=Ve(n)?8:16),process.env.NODE_ENV!=="production"&&d.key!==d.key&&he("VNode created with invalid key (NaN). VNode type:",d.type),!a&&tn&&(d.patchFlag>0||l&6)&&d.patchFlag!==32&&tn.push(d),d}const PE=process.env.NODE_ENV!=="production"?LE:rd;function rd(t,e=null,n=null,o=0,r=null,l=!1){if((!t||t===yE)&&(process.env.NODE_ENV!=="production"&&!t&&he(`Invalid vnode type when creating vnode: ${t}.`),t=OE),ME(t)){const s=Ni(t,e,!0);return n&&Cr(s,n),!l&&tn&&(s.shapeFlag&6?tn[tn.indexOf(t)]=s:tn.push(s)),s.patchFlag|=-2,s}if(ud(t)&&(t=t.__vccOpts),e){e=FE(e);let{class:s,style:d}=e;s&&!Ve(s)&&(e.class=er(s)),Re(d)&&(fr(d)&&!ue(d)&&(d=Pe({},d)),e.style=Jo(d))}const a=Ve(t)?1:bE(t)?128:IE(t)?64:Re(t)?4:ge(t)?2:0;return process.env.NODE_ENV!=="production"&&a&4&&fr(t)&&(t=Z(t),he("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
|
|
54
|
-
Component that was made reactive: `,t)),zE(t,e,n,o,r,a,l,!0)}function FE(t){return t?fr(t)||id in t?Pe({},t):t:null}function Ni(t,e,n=!1){const{props:o,ref:r,patchFlag:l,children:a}=t,s=e?HE(o||{},e):o;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:s,key:s&&od(s),ref:e&&e.ref?n&&r?ue(r)?r.concat(xi(e)):[r,xi(e)]:xi(e):r,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:process.env.NODE_ENV!=="production"&&l===-1&&ue(a)?a.map(ld):a,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==nd?l===-1?16:l|16:l,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Ni(t.ssContent),ssFallback:t.ssFallback&&Ni(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function ld(t){const e=Ni(t);return ue(t.children)&&(e.children=t.children.map(ld)),e}function $E(t=" ",e=0){return PE(BE,null,t,e)}function Cr(t,e){let n=0;const{shapeFlag:o}=t;if(e==null)e=null;else if(ue(e))n=16;else if(typeof e=="object")if(o&65){const r=e.default;r&&(r._c&&(r._d=!1),Cr(t,r()),r._c&&(r._d=!0));return}else{n=32;const r=e._;!r&&!(id in e)?e._ctx=Ye:r===3&&Ye&&(Ye.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else ge(e)?(e={default:e,_ctx:Ye},n=32):(e=String(e),o&64?(n=16,e=[$E(e)]):n=8);t.children=e,t.shapeFlag|=n}function HE(...t){const e={};for(let n=0;n<t.length;n++){const o=t[n];for(const r in o)if(r==="class")e.class!==o.class&&(e.class=er([e.class,o.class]));else if(r==="style")e.style=Jo([e.style,o.style]);else if(mb(r)){const l=e[r],a=o[r];a&&l!==a&&!(ue(l)&&l.includes(a))&&(e[r]=l?[].concat(l,a):a)}else r!==""&&(e[r]=o[r])}return e}let Bt=null,kr;{const t=hc(),e=(n,o)=>{let r;return(r=t[n])||(r=t[n]=[]),r.push(o),l=>{r.length>1?r.forEach(a=>a(l)):r[0](l)}};kr=e("__VUE_INSTANCE_SETTERS__",n=>Bt=n),e("__VUE_SSR_SETTERS__",n=>sd=n)}const ad=t=>{kr(t),t.scope.on()},jE=()=>{Bt&&Bt.scope.off(),kr(null)};function UE(t){return t.vnode.shapeFlag&4}let sd=!1;function WE(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(tE(Qb(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Dn)return Dn[n](t)},has(e,n){return n in e||n in Dn}}))}const GE=/(?:^|[-_])(\w)/g,qE=t=>t.replace(GE,e=>e.toUpperCase()).replace(/[-_]/g,"");function cd(t,e=!0){return ge(t)?t.displayName||t.name:t.name||e&&t.__name}function dd(t,e,n=!1){let o=cd(e);if(!o&&e.__file){const r=e.__file.match(/([^/\\]+)\.\w+$/);r&&(o=r[1])}if(!o&&t&&t.parent){const r=l=>{for(const a in l)if(l[a]===e)return a};o=r(t.components||t.parent.type.components)||r(t.appContext.components)}return o?qE(o):n?"App":"Anonymous"}function ud(t){return ge(t)&&"__vccOpts"in t}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;const YE=i.defineComponent({__name:"index",props:{modelValue:{type:String,default:""},modelModifiers:{}},emits:["update:modelValue"],setup(t){const e=i.useModel(t,"modelValue"),n=kn(!1);let o={};const r=kn({}),l=kn(null);cb(l,p=>{var c,_,g,h;try{if(((c=p==null?void 0:p.target)==null?void 0:c.className)==="icon-list"||((_=p==null?void 0:p.target)==null?void 0:_.nodeName)==="INPUT"||(h=(g=p==null?void 0:p.target)==null?void 0:g.className)!=null&&h.includes("el-tabs__item"))return;n.value=!1}catch{}}),function(){o={double:Js.glyphs.map(c=>({...c,class:`${Js.css_prefix_text}${c.font_class}`})),single:ec.glyphs.map(c=>({...c,class:`${ec.css_prefix_text}${c.font_class}`}))},r.value=z._.cloneDeep(o)}();function a(p){e.value=p.class}function s(){e.value=""}const d=kn("");kE(d,p=>{r.value={single:o.single.filter(c=>{var _;return(_=c.name)==null?void 0:_.includes(p)}),double:o.double.filter(c=>{var _;return(_=c.name)==null?void 0:_.includes(p)})}});const f=()=>{n.value=!0},u=()=>{n.value=!1},m=kn("double");return(p,c)=>{const _=i.resolveComponent("el-input"),g=i.resolveComponent("el-tab-pane"),h=i.resolveComponent("el-tabs"),b=i.resolveComponent("el-popover");return i.openBlock(),i.createBlock(b,{title:"",visible:i.unref(n),ref_key:"target",ref:l,"popper-class":"icon-picker-pop",width:400,trigger:"click"},{reference:i.withCtx(()=>[i.createElementVNode("div",{class:"icon-picker-header line-height-[0] font-size-[var(--ik-margin-m-28)]",onClick:f},[e.value?(i.openBlock(),i.createBlock(i.unref(fe),{key:0,name:e.value},null,8,["name"])):(i.openBlock(),i.createBlock(i.unref(fe),{key:1,name:"iksvg_guanbibeifen",size:14})),e.value?(i.openBlock(),i.createBlock(i.unref(fe),{key:2,title:"删除图标",onClick:i.withModifiers(s,["stop"]),name:"iksvg_guanbi",warning:"",class:"icon-delete"})):i.createCommentVNode("v-if",!0)])]),default:i.withCtx(()=>[i.createVNode(_,{modelValue:i.unref(d),"onUpdate:modelValue":c[0]||(c[0]=y=>i.isRef(d)?d.value=y:null),clearable:"",placeholder:"输入图标名称检索"},{suffix:i.withCtx(()=>[i.createVNode(i.unref(fe),{name:"iksvg_sousuo-daohang"})]),_:1},8,["modelValue"]),i.createVNode(h,{modelValue:i.unref(m),"onUpdate:modelValue":c[1]||(c[1]=y=>i.isRef(m)?m.value=y:null)},{default:i.withCtx(()=>[i.createVNode(g,{label:"双色图标",name:"double"},{default:i.withCtx(()=>[i.createElementVNode("div",{class:"icon-list",onClick:i.withModifiers(u,["stop"])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(r).double,y=>(i.openBlock(),i.createBlock(i.unref(fe),{size:20,title:y.name,key:y.name,name:y.class,onClick:C=>a(y)},null,8,["title","name","onClick"]))),128))])]),_:1}),i.createVNode(g,{label:"单色图标",name:"single"},{default:i.withCtx(()=>[i.createElementVNode("div",{class:"icon-list",onClick:i.withModifiers(u,["stop"])},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(i.unref(r).single,y=>(i.openBlock(),i.createBlock(i.unref(fe),{size:20,title:y.name,key:y.name,name:y.class,onClick:C=>a(y)},null,8,["title","name","onClick"]))),128))])]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["visible"])}}}),uC="",fC="",QE=oe(K(YE,[["__scopeId","data-v-5ab84aea"]])),ZE=i.defineComponent({__name:"index",props:i.mergeModels({list:{type:Array},isButton:{type:Boolean,default:!0}},{modelValue:{type:String,default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=i.useModel(t,"modelValue");return(n,o)=>{const r=i.resolveComponent("el-radio-button"),l=i.resolveComponent("el-radio-group");return i.openBlock(),i.createBlock(l,{modelValue:e.value,"onUpdate:modelValue":o[0]||(o[0]=a=>e.value=a),class:"ik-radio-btn"},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(t.list,(a,s)=>(i.openBlock(),i.createBlock(r,{key:s,label:a.value},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(a.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])}}}),hC="",KE=oe(K(ZE,[["__scopeId","data-v-186a428a"]]));j.EAlign=Br,j.EDateType=Xe,j.EType=Be,j.Event=R1,j.IKApprovalProcess=Hf,j.IKApprovalProcessDetail=gf,j.IKCalendar=F_,j.IKHorizontalStepBar=G_,j.IKSearch=su,j.IKSearchHead=cu,j.IKVerticalStepBar=gu,j.IkBtnContent=Q2,j.IkBtnSetting=Zs,j.IkDragList=Xs,j.IkFullCalendar=Gs,j.IkIconPicker=QE,j.IkPageFull=wy,j.IkPageTabs=ry,j.IkPreviewFile=n6,j.IkPrintConfig=_1,j.IkPrintView=w1,j.IkRadioGroup=KE,j.IkSchedule=ny,j.IkStatu=K2,j.IkSvgIcon=fe,j.IkTooltip=X2,j.IkUploadFile=Q6,j.IkUploadImage=p1,j.IkingPickerUser=En,Object.defineProperty(j,Symbol.toStringTag,{value:"Module"})});
|
|
50
|
+
/> `)],64)}}}),F2="",Ny=ae(X(xy,[["__scopeId","data-v-a4dd744c"]])),Ty={},By={t:"1672194715727",class:"icon",viewBox:"0 0 1024 1024",version:"1.1","p-id":"2667"},Vy=[r.createElementVNode("path",{d:"M809.246403 771.926938 777.737782 803.458071 924.965961 950.667831 956.476629 919.157163Z",fill:"#5D5D5D","p-id":"2668"},null,-1),r.createElementVNode("path",{d:"M454.878536 70.285786C239.51556 70.285786 64.93236 244.847497 64.93236 460.231963c0 215.341486 174.583201 389.945153 389.945153 389.945153 215.362976 0 389.9472-174.603667 389.9472-389.945153C844.825736 244.847497 670.241512 70.285786 454.878536 70.285786zM454.878536 805.611108c-190.750415 0-345.381192-154.626683-345.381192-345.379145 0-190.751439 154.629753-345.380168 345.381192-345.380168 190.752462 0 345.382215 154.62873 345.382215 345.380168C800.259728 650.983401 645.630998 805.611108 454.878536 805.611108z",fill:"#5D5D5D","p-id":"2669"},null,-1)];function Ry(t,e){return r.openBlock(),r.createElementBlock("svg",By,Vy)}const Iy=X(Ty,[["render",Ry]]),My={},Oy={t:"1710907270798",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8420",width:"200",height:"200"},Ly=[r.createElementVNode("path",{d:"M512 1024A512 512 0 1 0 512 0a512 512 0 0 0 0 1024z",fill:"var(--ik-color-icon-dark)","p-id":"8421"},null,-1),r.createElementVNode("path",{d:"M655.701333 327.082667a41.216 41.216 0 0 1 57.002667-1.194667 39.082667 39.082667 0 0 1 1.109333 56.490667l-145.237333 145.92 145.237333 146.005333c13.824 13.909333 15.189333 35.072 4.266667 50.346667l-5.376 6.144a41.216 41.216 0 0 1-57.002667-1.109334L511.914667 585.130667 368.298667 729.685333a40.96 40.96 0 0 1-42.24 9.557334l-7.68-3.242667-7.082667-5.12a39.082667 39.082667 0 0 1-1.109333-56.576l145.066666-146.005333-145.066666-145.92a39.082667 39.082667 0 0 1-4.266667-50.346667l5.376-6.144a41.216 41.216 0 0 1 57.002667 1.194667L512 471.381333z",fill:"#FFFFFF","p-id":"8422"},null,-1)];function Fy(t,e){return r.openBlock(),r.createElementBlock("svg",Oy,Ly)}const Hy=X(My,[["render",Fy]]),Py={},zy={t:"1710904463698",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7124",width:"200",height:"200"},$y=[r.createElementVNode("path",{d:"M512 512a235.392 235.392 0 0 0 235.2-235.52A235.392 235.392 0 0 0 512 40.96a235.392 235.392 0 0 0-235.2 235.52A235.392 235.392 0 0 0 512 512z",fill:"var(--ik-color-icon-light-hover)","p-id":"7125"},null,-1),r.createElementVNode("path",{d:"M41.984 901.12c0 57.408 46.784 103.872 104.512 103.872h731.52c57.664 0 104.448-46.464 104.448-103.808v-51.968c0-143.36-116.992-259.648-261.248-259.648H303.232c-144.256 0-261.248 116.224-261.248 259.648v51.968z",fill:"var(--ik-color-tag-primary)","p-id":"7126"},null,-1)];function Uy(t,e){return r.openBlock(),r.createElementBlock("svg",zy,$y)}const jy=X(Py,[["render",Uy]]),Wy={},Gy={t:"1710904436436",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6989",width:"200",height:"200"},Yy=[r.createElementVNode("path",{d:"M421.952281 288.898297a42.687867 42.687867 0 0 0-42.111868 31.167903l-122.367618 461.694557a49.919844 49.919844 0 0 0 19.19994 52.223837l232.319274 173.503458a57.59982 57.59982 0 0 0 67.45579 0.447998l234.175268-169.59947a49.983844 49.983844 0 0 0 19.967937-52.351836l-118.783628-465.598545a42.623867 42.623867 0 0 0-41.919869-31.487902H421.952281z",fill:"var(--ik-color-tag-primary)","p-id":"6990"},null,-1),r.createElementVNode("path",{d:"M354.048494 0.0032a44.67186 44.67186 0 0 0-36.479886 18.175943 39.103878 39.103878 0 0 0-4.223987 38.59188L377.792419 206.722554c6.591979 15.359952 22.39993 25.47192 40.127875 25.407921h255.487202c17.919944 0 33.919894-10.431967 40.319874-26.239918L774.39918 56.003025a39.167878 39.167878 0 0 0-4.863985-38.079881A44.67186 44.67186 0 0 0 733.439308 0.0032H354.048494z",fill:"var(--ik-color-icon-light-hover)","p-id":"6991"},null,-1)];function qy(t,e){return r.openBlock(),r.createElementBlock("svg",Gy,Yy)}const Qy=X(Wy,[["render",qy]]),Zy={},Xy={t:"1710904287393",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6854",width:"200",height:"200"},Ky=[r.createElementVNode("path",{d:"M512 271.296c27.264 0 49.792 22.336 51.136 50.816l0.064 2.688v147.072H832c62.272 0 113.28 51.776 115.2 116.8v103.872c0 28.992-22.144 52.736-49.92 53.44-27.776 0.768-51.008-21.76-52.416-50.752l-0.064-2.688V592.256a13.184 13.184 0 0 0-11.328-13.312L832 578.88H563.2v113.664c0 28.992-22.144 52.736-49.92 53.44-27.776 0.768-51.008-21.76-52.416-50.752L460.8 692.48V578.88H192a12.992 12.992 0 0 0-12.736 11.776l-0.064 1.6v100.288c0 28.992-22.144 52.736-49.92 53.44-27.776 0.768-51.008-21.76-52.416-50.752L76.8 692.48V592.256c0-65.088 49.536-118.4 111.808-120.32H460.8v-147.2c0-29.504 22.912-53.44 51.2-53.44z",fill:"var(--ik-color-icon-light-hover)","p-id":"6855"},null,-1),r.createElementVNode("path",{d:"M204.8 692.48c13.568 0 26.624 5.696 36.224 15.744 9.6 9.984 14.976 23.616 14.976 37.76v160.512c0 29.568-22.912 53.504-51.2 53.504H51.2c-28.288 0-51.2-23.936-51.2-53.504v-160.448c0-29.568 22.912-53.504 51.2-53.504h153.6zM588.8 692.48c13.568 0 26.624 5.696 36.224 15.744 9.6 9.984 14.976 23.616 14.976 37.76v160.512c0 29.568-22.912 53.504-51.2 53.504H435.2c-28.288 0-51.2-23.936-51.2-53.504v-160.448c0-29.568 22.912-53.504 51.2-53.504h153.6zM972.8 692.48c13.568 0 26.624 5.696 36.224 15.744 9.6 9.984 14.976 23.616 14.976 37.76v160.512c0 29.568-22.912 53.504-51.2 53.504h-153.6c-28.288 0-51.2-23.936-51.2-53.504v-160.448c0-29.568 22.912-53.504 51.2-53.504h153.6zM665.6 64c28.288 0 51.2 23.936 51.2 53.504v213.952c0 29.568-22.912 53.504-51.2 53.504H358.4c-28.288 0-51.2-23.936-51.2-53.504V117.504c0-29.568 22.912-53.504 51.2-53.504h307.2z",fill:"var(--ik-color-tag-primary)","p-id":"6856"},null,-1)];function Jy(t,e){return r.openBlock(),r.createElementBlock("svg",Xy,Ky)}const e1=X(Zy,[["render",Jy]]),t1={class:"avatar"},n1={key:3,class:"user_box"},r1={key:1,class:"avatar_name"},l1=r.defineComponent({__name:"Avatar",props:{fixPropOpt:{type:Object,default:()=>{}},fixTypeOpt:{type:Object,default:()=>{}},element:{type:Object,default:()=>{}},imageBaseUrl:{type:String,default:""}},setup(t){const e=t,n=`${e.imageBaseUrl}/server/oss/download?fileUrl=`||`${location.origin}/server/oss/download?fileUrl=`,l=o=>o?o.startsWith("http")?o:`${n}${o}`:"";return(o,a)=>{const i=r.resolveComponent("el-avatar");return r.openBlock(),r.createElementBlock("div",t1,[e.fixTypeOpt.group===t.element[e.fixPropOpt.type]?(r.openBlock(),r.createBlock(e1,{key:0})):e.fixTypeOpt.role===t.element[e.fixPropOpt.type]?(r.openBlock(),r.createBlock(jy,{key:1})):e.fixTypeOpt.post===t.element[e.fixPropOpt.type]?(r.openBlock(),r.createBlock(Qy,{key:2})):e.fixTypeOpt.user===t.element[e.fixPropOpt.type]?(r.openBlock(),r.createElementBlock("div",n1,[t.element[t.fixPropOpt.avatar]?(r.openBlock(),r.createBlock(i,{key:0,shape:"square",src:l(t.fixPropOpt.avatar?t.element[t.fixPropOpt.avatar]:"")},null,8,["src"])):(r.openBlock(),r.createElementBlock("div",r1,r.toDisplayString(t.element[t.fixPropOpt.name].slice(-2)),1))])):r.createCommentVNode("v-if",!0)])}}}),Z2="",at=X(l1,[["__scopeId","data-v-bc7cca29"]]),$r="data:image/webp;base64,UklGRogSAABXRUJQVlA4WAoAAAAwAAAAxwAAzQAASUNDUMgBAAAAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADZBTFBI4gsAAAXwh21/2rb//yncJGWGwWvMXFi6wpNh8GRmZmZmZmYeMzMzlobdnuvw+SynSVvbKiTx4ViWHcly/nodz4hw4LaNIylb5mbLeTIl2S+A/+u0//zH3hUlGHLVu1GC0Ze+HyUoKPo0SnClc0aU4Ontu6IEfzzWFiVYeGWU2Ede90qU4LMfj0YH3FOvihLnl/atiQ6k/RgtzlPfPxwduCXj0yiR0j1+Sygq0Pfr6/iosA/6/M6G6PC98+5t3qiw33j5fVEhL3W81/Z2CKfi02lG/c2Q/8YX2PQh54cv1htzKe6VuBewtxW/8NBpQy5Z757y4VasjFcynoJGXLJcdef0GSJOR//Pf11kyMvKbVcu/rMDp8P+5Ogn6w241POu3Gnzglghlzz+w2IDno6Tb/T/thsrxHzp/du/gozNpZBIX3npNdkrZ+LWRlPK2POHrPuVkawOO3tWmfdX7d/fSW8yllyVtXneWfyY+I2v3HKExbE4dJ8TgI7dm7fsFMgz8OIisHXRP4YxqR77Ev0DYfWCpa0Rg13LJ0xIP7Z6W6cBLA64ebTyYqWEzllflxERWjAh13F8+44mw1nlsvan4kSsf7oqcuLv3VXWYUzL9ZTFJpyI4JcvdBt3hv/2K3gVWybyxgo+XC6/BC9j+WTjPiXv64OXcd1c495GbknAsnIiMG47Z5UDxylpVBi4XTvLjKF6CDByu+1Xq5IZNwNDtytmxiiYvBwYu3lm9kaoz5a+IQzekj6+3QpA7crftxsWJNPna/qd+DH2mcdAlLD5Vxs9mMdu744SvP9LTZTgxVUVUYJHKlQeNA30xNWfOtVkwDi7gkrc+R6PJwX4kgDgT6HWbLyv6+Mp9IxEkqQwODmc4l+8hkjMOI/Hk4XoUKBFW7viX1oMixxPoWcM8vWAJxKdbYp/8RkJtlGFHg+a3KlDQnSr4l/8rJPm8RTmumRRGiHZAL986+5dTGIZVujxDECURQDxplSNDbFG4niPpyBeVhcp5NvzwI9sUfDrELOsT494B7EVDzaVSvpIQaFJPz7AEpOXAh0Tyi9jaF2pHE4QGq3aVSgyw12/AoLQadbvzKShx3ronMZBrITiF94HJKHTsK8fY4OUmgTdExi3nwk+f4KkRuik1LQt54gsfNUccbDQR7dMZ4DpNzEx1moHt+uesXvNbEz+T57VPWsvYGQt7h51ROdcvIqZGL/uQn1jLhvNTtJ17Txdc+tfDOXAZ4byOiamujc7BLc8WaVjnv4EsHL3xvmLGnXdrs8u78sCXevmL2rRf+Oyi4qKRlr0TMeaeUv9zEyZ+MKioglWvVKwBzBmZWP1ymgdLyqZRfYjlRrS3t35LDJsVOfeM/S45GMRwj1vq6eLOzwM8tJtHZCf8zOtL4kRi0QBQrjjbfUvk2L2uOsNCKEAf15MB+u6AdIu2+sH1Nh4DnP8b7MJwfsQnfTi7o8lzch24HXV9PF85vhrotR+ZJszlwbugwmSaLTw4X4VVl3MGnkbOyA6In1PtVPglZelXXGqfkdlYi+Zwhrrx4cdgBaXUEjA0447ws5XVHyt0rJFlzPGxGXhjlT4oPWlNuJ8+VinJFlJzQcii6Tem35kVhswV4yQ2o8prJ5Pmr5H7J3yKFII/7WSQRIXZXDc8Sf42/8QOwQMbW+3EmbGjaAT4n6e+TTEHt9cznEcP3f20V5hcKdNC8kydp9JRi4oVtp9zDFuLc9xPOc7/TIQpSdxG/d5M1HWXgAkUOcr7qtYFmCM1fnyznVNdIQJNx/jg/a1JNPxi1YDALrCmrHCK1azxcXLkJ3rPwggSEVcby49QoycvVkyUGUTfuNYwlw2HNlduSYFWCfUTSXG73cAJdgeWHSaJW6eFuDk6jwnAECUIo/a9n2AEJbadARJsoruubUMYa/uE5DPprGSCuUB15vcDyFCXL4IKMELX3uYIR7/AiBkS/MKOUgOwK91wlTtsUs9j0ZBanH31c1hAGXoPZYmwwsjLAhdAtpyKX6hPijbQQh/ghK14l+QGZZNAiDIcbw4CCAEOKkf8U6oJZUUbS9URaH+z05WGHAMyPAcHGFWorL9u4AQJWscMt2yZqzwQ2uZ+fHamzJydUpvFF6QriqSO5l1xAJX7ssD4+JjQ6jXfc28IAiQP70lwAqmf7MQ5LQuPttutdkCEDk1+QUeCpCrqiLbGuvMiw5mdkC48DOMIgZAw41gR0ASCfk+601xFTkQwtc30WpPLP93pwrM/PjpXhSpqKzYI06FUHhjE70WHWcU2/MXxsdnIonEiUaO5/lT2wumQgjf2EiRLoEt8POt8HHfeRz30jZUhYc2NZ0QLmAJtXVjwu8c/6KSaYKBUn3pKVV4DgcUqHKiA8LFH+NxZaanXz0hOcGsNwRvc0NtS1NTU1NDA1TyBxdGMbrlW95aTwM0gpyAEC5/H8HRIycnJyszXvFdkpCcEW/VCx3eZq+A1dFaV1tbe7a2q+h3jntpK0rRnxDCd1fTAI0gNQKEq9/N7tOnd68Mk7pzU1OdzpgYEz3QnMvb7OU0Kgo1WCa2+55XLPGlv0EIP1xOAcXC+3eXaPaecWqW5cywiqYYp9NFa0AEvM3etoh0pYwMBCt3twS6Ic/1e4bn4FfzKJE9avRLYijoP6xJmeI1qXEiEAGwulwuogNCjq5+X0tbSAyJYd3aSR0RCNY0oBrShocCcNOSmqPtBEFn4ai8senAVhwMBbn9qvpUlps0i+QB5Gh2ulxu9QGhdaS2tfhaQ6hc+T7tl9KHBYKnalEyhgWDwdrTQDxbWbY/QAx7flGuAxmwnlAw2FEe1hhRpVv2geQJxB12l9vtjGxAiO0+nz+EyMQcwyIkIZrIHBII/nMGJWdQMBhsrEE0cDvXVBOh96QSt0KCLUMMiaHGSHW6U8ySD7AOMbncsW6bKmjD/T5/AKNPRayoLa1MEEOCYuLGxYui2OHH5Dezd4uRMvz60RRW0xQn1hOoBIc7NtZlwgcmv9/fjdemdqSwaBz+7nREZN2bR2Al0tZjicpK/Eg1u2PjYm1yYPL7WzuBrAmrKiwCK4VKpPh+XQRceF8MGuBoVDqUTlH1U0ycydcJtExENSmUGvvtKs3ccDOxQKpxEpmUTtFwxEnQdrsMrbj3hNaLBa/QzQisSXYNHR2ZELwqak1d87VGPhsg52dUK+MBlXNYCPmGYv7nSY0skBdpypWJtsjHsQYpdNn/ska+60k1ZVaEFykYa/KTLCQiX1Js5fcrtD79GNXcXxmxEyyEH6DLsec1J0aPXqSHzRTrVHiIxPto7ydf82tv+43Xm3VRGW/G+Unhy4iE0Gvehu87IhE1+KE+uqh0x2h5Rnfnmt+rItRlLr2uhy4qY830niH0wVGxtFwk0Iu5E8ea9VApBWOcnxQSlL5UEUOjpnrnVi8picmlxQPoF+wuk8b3qbqVeE564uihAxxZpWkFuSPstCtdNoWfMN5SfTTsVmLNkHP1/Udqz9SG6PTkkFHDB1jpVkorP/YZDUf5PmLdf+zA/uoA5VE5YNDAgWkRqY50sXJa9PDMwV1Hj0vX9GHx/fr06dXDTmnBjAGRPUD164Zin2b07JmTlZVsIi43xhJ2muaQRS5506U5MjPS09LT0hLNBCulAaT5AVK6X61URW/DIjE5OTkxMT4hMcUduUSHGes0hS8Jwt/WBRixjB+sBCpt+Pcpj6SaNWcqYMZuuJnEqLGZqIWsusdUslCdD+1X8kiIs1ql91E5Cy+cBBpNp2vOy2OIeNlqwryU5E1vHQY6MiKdfP8lRNRZMCu/DKGr754GrFnJg7FEMj2LifB5w48CYM8SbruQSGSWNpLnf38qB2xavxsKTCQqzcT25jlrpWSOWetzZZGNRMFE5C9OLt1Ir6SXTPaC83pHvskRLNI1fsdaaXU0AOtdMr5XpLIjrdm7rawbGIWl544ZFkeFUE1FeXUQMGUkZl+vYQP79bSQxF9TXX0UAqLGVH7Ru2ePntnpjkg7v7m+/uypU35A3lgMaempCQmJ8S6n02mzWCymYDAQ7BIEgW/z+XwtjYwviNHc/vMfAFZQOCCwBAAA8CoAnQEqyADOAD5tNpRGpD+iISw1STvwDYlpbuDAdGXYW5+xX+E/B79IvqhdnLddJLmGi5paMwD+h8p7UC/h/9K6qXoHfpyR4P/Uv3L6q0mh/qXmCC5XUh/6l+4p6WqP3L5qDkPaVIRPowOQa5RsItEnpv2qi+aEGdI5VaSY7+i3fjzySZVTfInmLOji/1JNDhsggr75HlBnTop05IyqW9k6rgDx4oGKuZLsiDqTspeWt1TThs95rEvc3BAQ2Cmm/WHPEgITWp1jDj8fnYpacUKlA2fv4bDkY96yZXMjIrnu/KsBeRwGc1mPgGXhZDn5J8bFFYquI/e5SRB/fGWHrUWxTd/6ZFoE99q2r5vdSogeBKsvZRRnOJo1DhTmQzfK+jKPl1XB61eCyIzI2T0HdI/htEFcLySPEI1rIA1ptHGDrClKq1Cj6yIjq1T8SCl5GneZHHtrpmpD/1L9y+qqAAD+ysAAAACruyAAa6B+sspLlClJkLWAAlhaOsmcS18eCdW/9MiovfLi9lIdZV4K9C2nq4XL6pGljxoATLaWY+Fdf+yp8QqRmQOm17DSnKGoocmxvW4jXk3K6solfHw92MfxE9PKbpV6k390KRXwxMKUkfODCBPOGu7AVxFQQDv/surrkKoki8usn4RG7CzImZDOrpVMMa1nuR8WstZYVtabVbc37OMP2Y5Z5xioxwALBSridUAAe2PyFxopohDSWVP/M2RAZ43b7JOT7vDiWAukTn7gZKAljHmig+HiisRYSOsqxzRcwtHuA0ihG2zggPceBgQoJ9OrQn4+9SynodSjUnN3S1msttzAbtHUyHt0dqPI8MmNPuuX8oNYGSrMU/jq1/tuwVAcRYjFSmiVtRyf52fqt8XWRriSR73+gAIbwbhZMdATlGZy0CGP2PPNUcp2aE5oBbmSjStpYBFxz4bcqxQSVdwMV0UOCxRcyEWqPkw7ZCJO8qXyf/uEHIyBNR1plTtcMWPXcI1Dmkhi0cBoqF2quLyff3S3y9RMN/xM9oPh7cT8+rNF9azivisDh4AIyAlaYTSsoJ6JFmrxFP//iZ//3US//7kyGHqb0JWaRZPd5LjuIc4b3Pdxeirqg3w8ux5nlN/CW5YYPR8ygYwahr/iqudOg0NhFAVNXbgNGCTQRj2YmxoT259SWlnA1dtgjuRe2cZOmxqn+mvuyGdvAd9XjPSV4VVEAnROrjCwrgbhyKFpb8s12Za8/F4cSrPOSuadvlSXDEdhrb27ok+DnCnJqOg8Kj9Gqlca2xL+KvTh1u+NuUBnWJWF2Y9f3+xrM9KPN55AGLwUs8yRaGNKw9ngyAAfv8bf7tO4JOhTqKsM4JbfTtFKmlQhMS77J/ZyxsS7I+u5WO0/gjo83E7/80LOn4Ple50oLNP3yW4yTSnlNCwg+COLMFER8MfaIeAHTLvnkH3eDLow61YfoXxUp6SIMiBAHJ75Y1CrZeW1DvEoWdfnDhpz06KBs12oE7Ob6wCwc+FXeaKHfhDxAz/7xTqCDxZf++IGd1QQAB/TN8qRAl4EZQF8tbRrVQIKm2g8cbO8potBMoXyVFfUtI4r31krwmWYxDz2AAAAAAAA",Ur={list:{type:Array,default:()=>[]},handList:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},max:{type:Number,default:0},fixPropOpt:{type:Object,default:()=>{}},fixTypeOpt:{type:Object,default:()=>{}},height:{type:String,default:"404px"},imageBaseUrl:{type:String,default:""},emptyText:{type:String,default:"暂无数据"},children:{type:Boolean,default:!0}},o1=t=>(r.pushScopeId("data-v-9d063943"),t=t(),r.popScopeId(),t),a1={class:"left-pick-list"},i1={key:1,class:"post-view-list"},s1={class:"checkText"},c1={class:"iconBox"},d1={key:0,class:"userCount"},u1=["onClick"],f1={class:"ik-picker-single"},p1={class:"iconBox"},h1={key:0,class:"userCount"},m1={key:2,class:"empty"},g1=o1(()=>r.createElementVNode("img",{src:$r,alt:""},null,-1)),y1=r.defineComponent({__name:"GroupList",props:Ur,emits:["change","check","handChild"],setup(t,{emit:e}){var h,c;const n=t,l=r.computed(()=>{var y,m;return((y=n.handList)==null?void 0:y.length)===((m=n.list)==null?void 0:m.length)}),o=r.computed(()=>{var p,_,b,C;const y=(p=n.handList)==null?void 0:p.length,m=(_=n.list)==null?void 0:_.length;return n.multiple?a.value=n.handList.map(v=>v[n.fixPropOpt.id]):i.value=(C=(b=n.handList)==null?void 0:b[0])==null?void 0:C[n.fixPropOpt.id],y>0&&y<m}),a=r.ref(n.handList.map(y=>y[n.fixPropOpt.id])),i=r.ref((c=(h=n.handList)==null?void 0:h[0])==null?void 0:c[n.fixPropOpt.id]),s=e,d=y=>{const m=y?n.list.map(p=>p[n.fixPropOpt.id]):[];s("change",m,y?n.list:[])},f=y=>{s("change",y,n.list)},u=y=>{s("change",y,n.list)},g=(y,m)=>{m||s("handChild",y)};return(y,m)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createCommentVNode(" 遍历list多选 "),r.createElementVNode("div",a1,[y.multiple?(r.openBlock(),r.createBlock(r.unref(A.ElCheckbox),{key:0,modelValue:l.value,"onUpdate:modelValue":m[0]||(m[0]=p=>l.value=p),indeterminate:o.value,onChange:d},{default:r.withCtx(()=>[r.createTextVNode("全选")]),_:1},8,["modelValue","indeterminate"])):r.createCommentVNode("v-if",!0),y.list&&y.list.length?(r.openBlock(),r.createElementBlock("ul",i1,[y.multiple?(r.openBlock(),r.createBlock(r.unref(A.ElCheckboxGroup),{key:0,modelValue:a.value,"onUpdate:modelValue":m[1]||(m[1]=p=>a.value=p),onChange:f},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(y.list,p=>(r.openBlock(),r.createElementBlock("li",{key:p[n.fixPropOpt.id]},[r.createVNode(r.unref(A.ElCheckbox),{label:p[n.fixPropOpt.id]},{default:r.withCtx(()=>[r.createElementVNode("div",s1,[r.createElementVNode("div",c1,[r.createVNode(at,{fixTypeOpt:n.fixTypeOpt,fixPropOpt:n.fixPropOpt,element:p,imageBaseUrl:n.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),r.createElementVNode("p",null,[r.createElementVNode("span",null,r.toDisplayString(p[n.fixPropOpt.name]),1),p[n.fixPropOpt.type]===n.fixTypeOpt.group?(r.openBlock(),r.createElementBlock("span",d1,"("+r.toDisplayString(p.userCount)+")",1)):r.createCommentVNode("v-if",!0)])])]),_:2},1032,["label"]),p[n.fixPropOpt.type]===n.fixTypeOpt.group&&n.children?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(["nextLevel",{"is-disabled":a.value.find(_=>_===p[n.fixPropOpt.id])}]),onClick:_=>g(p,a.value.find(b=>b===p[n.fixPropOpt.id]))}," 下级",10,u1)):r.createCommentVNode("v-if",!0)]))),128))]),_:1},8,["modelValue"])):(r.openBlock(),r.createBlock(r.unref(A.ElRadioGroup),{key:1,isIndeterminate:o.value,modelValue:i.value,"onUpdate:modelValue":m[2]||(m[2]=p=>i.value=p),onChange:u},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(y.list,p=>(r.openBlock(),r.createElementBlock("li",{class:"w-full",key:p[n.fixPropOpt.id]},[r.createVNode(r.unref(A.ElRadio),{label:p[n.fixPropOpt.id]},{default:r.withCtx(()=>[r.createElementVNode("div",f1,[r.createElementVNode("div",p1,[r.createVNode(at,{fixTypeOpt:n.fixTypeOpt,fixPropOpt:n.fixPropOpt,element:p,imageBaseUrl:n.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),r.createElementVNode("p",null,[r.createElementVNode("span",null,r.toDisplayString(p[n.fixPropOpt.name]),1),p[n.fixPropOpt.type]===n.fixTypeOpt.group?(r.openBlock(),r.createElementBlock("span",h1,"("+r.toDisplayString(p.userCount)+")",1)):r.createCommentVNode("v-if",!0)])])]),_:2},1032,["label"])]))),128))]),_:1},8,["isIndeterminate","modelValue"]))])):(r.openBlock(),r.createElementBlock("div",m1,[g1,r.createElementVNode("div",null,r.toDisplayString(n.emptyText),1)]))])],2112))}}),X2="",b1=X(y1,[["__scopeId","data-v-9d063943"]]),_1=t=>(r.pushScopeId("data-v-361d2758"),t=t(),r.popScopeId(),t),E1={class:"left-pick-list"},k1={key:1,class:"post-view-list"},C1={class:"iconBox"},v1={class:"ik-picker-single"},w1={class:"iconBox"},A1={key:2,class:"empty"},S1=_1(()=>r.createElementVNode("img",{src:$r,alt:""},null,-1)),D1=r.defineComponent({__name:"PostList",props:Ur,emits:["change","check"],setup(t,{emit:e}){var g,h;const n=t,l=r.computed(()=>{var c,y;return((c=n.handList)==null?void 0:c.length)===((y=n.list)==null?void 0:y.length)}),o=r.computed(()=>{var m,p,_,b;const c=(m=n.handList)==null?void 0:m.length,y=(p=n.list)==null?void 0:p.length;return n.multiple?a.value=n.handList.map(C=>C[n.fixPropOpt.id]):i.value=(b=(_=n.handList)==null?void 0:_[0])==null?void 0:b[n.fixPropOpt.id],c>0&&c<y}),a=r.ref(n.handList.map(c=>c[n.fixPropOpt.id])),i=r.ref((h=(g=n.handList)==null?void 0:g[0])==null?void 0:h[n.fixPropOpt.id]),s=e,d=c=>{const y=c?n.list.map(m=>m[n.fixPropOpt.id]):[];s("change",y,c?n.list:[])},f=c=>{s("change",c,n.list)},u=c=>{s("change",c,n.list)};return(c,y)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createCommentVNode(" 遍历list多选 "),r.createElementVNode("div",E1,[c.multiple?(r.openBlock(),r.createBlock(r.unref(A.ElCheckbox),{key:0,modelValue:l.value,"onUpdate:modelValue":y[0]||(y[0]=m=>l.value=m),indeterminate:o.value,onChange:d},{default:r.withCtx(()=>[r.createTextVNode("全选")]),_:1},8,["modelValue","indeterminate"])):r.createCommentVNode("v-if",!0),c.list&&c.list.length?(r.openBlock(),r.createElementBlock("ul",k1,[c.multiple?(r.openBlock(),r.createBlock(r.unref(A.ElCheckboxGroup),{key:0,modelValue:a.value,"onUpdate:modelValue":y[1]||(y[1]=m=>a.value=m),onChange:f},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.list,m=>(r.openBlock(),r.createElementBlock("li",{key:m[n.fixPropOpt.id]},[r.createVNode(r.unref(A.ElCheckbox),{label:m[n.fixPropOpt.id]},{default:r.withCtx(()=>[r.createElementVNode("div",C1,[r.createVNode(at,{fixTypeOpt:n.fixTypeOpt,fixPropOpt:n.fixPropOpt,element:m,imageBaseUrl:n.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),r.createElementVNode("p",null,r.toDisplayString(m[n.fixPropOpt.name]),1)]),_:2},1032,["label"])]))),128))]),_:1},8,["modelValue"])):(r.openBlock(),r.createBlock(r.unref(A.ElRadioGroup),{key:1,isIndeterminate:o.value,modelValue:i.value,"onUpdate:modelValue":y[2]||(y[2]=m=>i.value=m),onChange:u},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.list,m=>(r.openBlock(),r.createElementBlock("li",{class:"w-full",key:m[n.fixPropOpt.id]},[r.createVNode(r.unref(A.ElRadio),{label:m[n.fixPropOpt.id]},{default:r.withCtx(()=>[r.createElementVNode("div",v1,[r.createElementVNode("div",w1,[r.createVNode(at,{fixTypeOpt:n.fixTypeOpt,fixPropOpt:n.fixPropOpt,element:m,imageBaseUrl:n.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),r.createElementVNode("p",null,r.toDisplayString(m[n.fixPropOpt.name]),1)])]),_:2},1032,["label"])]))),128))]),_:1},8,["isIndeterminate","modelValue"]))])):(r.openBlock(),r.createElementBlock("div",A1,[S1,r.createElementVNode("div",null,r.toDisplayString(n.emptyText),1)]))])],2112))}}),K2="",x1=X(D1,[["__scopeId","data-v-361d2758"]]),N1=t=>(r.pushScopeId("data-v-24145e87"),t=t(),r.popScopeId(),t),T1={class:"left-pick-list"},B1={key:1,class:"role-view-list"},V1={class:"iconBox"},R1=["title"],I1={class:"ik-picker-single"},M1={class:"iconBox"},O1=["title"],L1={key:2,class:"empty"},F1=N1(()=>r.createElementVNode("img",{src:$r,alt:""},null,-1)),H1=r.defineComponent({__name:"RoleList",props:Ur,emits:["change","check"],setup(t,{emit:e}){var g,h;const n=t,l=r.computed(()=>{var c,y;return((c=n.handList)==null?void 0:c.length)===((y=n.list)==null?void 0:y.length)}),o=r.computed(()=>{var m,p,_,b;const c=(m=n.handList)==null?void 0:m.length,y=(p=n.list)==null?void 0:p.length;return n.multiple?a.value=n.handList.map(C=>C[n.fixPropOpt.id]):i.value=(b=(_=n.handList)==null?void 0:_[0])==null?void 0:b[n.fixPropOpt.id],c>0&&c<y}),a=r.ref(n.handList.map(c=>c[n.fixPropOpt.id])),i=r.ref((h=(g=n.handList)==null?void 0:g[0])==null?void 0:h[n.fixPropOpt.id]),s=e,d=c=>{const y=c?n.list.map(m=>m[n.fixPropOpt.id]):[];s("change",y,c?n.list:[])},f=c=>{s("change",c,n.list)},u=c=>{s("change",c,n.list)};return(c,y)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createCommentVNode(" 遍历list多选 "),r.createElementVNode("div",T1,[c.multiple?(r.openBlock(),r.createBlock(r.unref(A.ElCheckbox),{key:0,modelValue:l.value,"onUpdate:modelValue":y[0]||(y[0]=m=>l.value=m),indeterminate:o.value,onChange:d},{default:r.withCtx(()=>[r.createTextVNode("全选")]),_:1},8,["modelValue","indeterminate"])):r.createCommentVNode("v-if",!0),c.list&&c.list.length?(r.openBlock(),r.createElementBlock("ul",B1,[c.multiple?(r.openBlock(),r.createBlock(r.unref(A.ElCheckboxGroup),{key:0,modelValue:a.value,"onUpdate:modelValue":y[1]||(y[1]=m=>a.value=m),onChange:f},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.list,m=>(r.openBlock(),r.createElementBlock("li",{key:m[c.fixPropOpt.id]},[r.createVNode(r.unref(A.ElCheckbox),{label:m[c.fixPropOpt.id],value:m[c.fixPropOpt.id],disabled:m.disabled},{default:r.withCtx(()=>[r.createElementVNode("div",V1,[r.createVNode(at,{fixTypeOpt:n.fixTypeOpt,fixPropOpt:n.fixPropOpt,element:m,imageBaseUrl:n.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),r.createElementVNode("p",{title:m[c.fixPropOpt.name]},r.toDisplayString(m[c.fixPropOpt.name]),9,R1)]),_:2},1032,["label","value","disabled"])]))),128))]),_:1},8,["modelValue"])):(r.openBlock(),r.createBlock(r.unref(A.ElRadioGroup),{key:1,indeterminate:o.value,modelValue:i.value,"onUpdate:modelValue":y[2]||(y[2]=m=>i.value=m),onChange:u},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.list,m=>(r.openBlock(),r.createElementBlock("li",{class:"w-full",key:m[c.fixPropOpt.id]},[r.createVNode(r.unref(A.ElRadio),{label:m[c.fixPropOpt.id],value:m[c.fixPropOpt.id],disabled:m.disabled},{default:r.withCtx(()=>[r.createElementVNode("div",I1,[r.createElementVNode("div",M1,[r.createVNode(at,{fixTypeOpt:n.fixTypeOpt,fixPropOpt:n.fixPropOpt,element:m,imageBaseUrl:n.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),r.createElementVNode("p",{title:m[c.fixPropOpt.name]},r.toDisplayString(m[c.fixPropOpt.name]),9,O1)])]),_:2},1032,["label","value","disabled"])]))),128))]),_:1},8,["indeterminate","modelValue"]))])):(r.openBlock(),r.createElementBlock("div",L1,[F1,r.createElementVNode("div",null,r.toDisplayString(n.emptyText),1)]))])],2112))}}),J2="",P1=X(H1,[["__scopeId","data-v-24145e87"]]);var Lt=(t=>(t.group="group",t.role="role",t.post="post",t))(Lt||{});const z1={children:{type:Boolean,default:!0},topLink:{type:Boolean,default:!0},modelValue:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},orgPid:{type:String,default:""},org:{type:Object,default:()=>null},immediate:{type:Boolean,default:!1},show:{type:Boolean,default:!1,required:!0},width:{type:String,default:"685px"},height:{type:String,default:"580px"},title:{type:String,default:"选择人员"},groupList:{type:Array,default:()=>[]},userList:{type:Array,default:()=>[]},roleList:{type:Array,default:()=>[]},postList:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},max:{type:Number,default:0},tabs:{type:Array,validator:t=>{if(t===void 0)return!0;if(Array.isArray(t)){if(!(t!=null&&t.length))return!1}else return console.error("IkingPicker参数错误:tabs必须是Array类型"),!1;return!0},default:()=>["group","role","post"]},chooseType:{type:Array,default:()=>["dep"]},api:{type:Object,default:()=>({methods:"post",headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:"Bearer 9aa65e31e86f4232ac4e4136fb1d3413"},url:`${location.origin}${location.pathname}/serve/component/pick/mix`,param:null,paramKey:"type"})},typeOption:{type:Object,default:()=>{}},propOption:{type:Object,default:()=>null},search:{type:Boolean,default:!0},lazy:{type:Boolean,default:!0},imageBaseUrl:{type:String,default:""},placeholder:{type:String,default:"请输入"},emptyText:{type:String,default:"暂无数据"}},gi=t=>{const e=window.location.search;return new URLSearchParams(e).get(t)},$1=t=>{const e=H.ikStore.local.getItem("x_domain");e&&(t["X-DOMAIN"]=e)},U1=t=>{var l;const e=gi("domain");if(e){t["X-DOMAIN"]=e;const o=gi("code");e==="APPLICATION"&&(t["X-APP"]=o)}else $1(t);const n=(l=H.ikStore.local.getItem("tenant"))==null?void 0:l.code;n&&(t["X-TENANT"]=n)},j1=(t,e)=>{const n=r.ref([]),l=async(a,i)=>{var x,k;const{url:s,methods:d,headers:f,param:u}=t.value||{},g={...u||{},parentDepartmentId:a||"",name:i||""},h={method:d,url:s,headers:{"Content-Type":"application/json;charset=UTF-8",...f},data:JSON.stringify(g)};U1(h.headers);const c=await ki(h),{success:y,data:m}=c.data;if(!y)return{groupList:[],roleList:[],postList:[],userList:[],rootOrganization:{},rootDepartment:{}};const{departments:p,roles:_,posts:b,users:C,rootOrganization:v,rootDepartment:I}=m,N=v||I;return n.value.length===0&&(n.value[0]=e.org?{...e.org,id:e.elementId,elementType:(k=(x=e.org)==null?void 0:x.elementType)==null?void 0:k.toLocaleUpperCase()}:{...N,id:N.elementId}),{groupList:H._.cloneDeep(p),roleList:H._.cloneDeep(_),postList:H._.cloneDeep(b),userList:H._.cloneDeep(C),rootOrganization:v,rootDepartment:I}};return{handData:l,handSetChild:(a,i)=>{l(a==null?void 0:a.elementId,i)},bannerList:n}},W1={shadow:"hover",class:"sel-list"},G1={key:0},Y1=r.createElementVNode("div",{class:"split-div"},null,-1),q1={class:"choose-list"},Q1={class:"choose-item"},Z1=r.createElementVNode("div",null,"已选",-1),X1={class:"choose-box"},K1={class:"list-group-item"},J1={class:""},e6={class:"avatar_box"},t6={class:"dialog-footer"},n6=r.defineComponent({__name:"picker",props:z1,emits:["handChild","update:show","update:modelValue","ok","search"],setup(t,{expose:e,emit:n}){r.useCssVars(T=>({"6abbdda2":Me.value}));const l=t,o=r.ref(""),a=r.ref(""),i=r.ref([]),s=r.ref([]),d=r.ref([]),f=r.ref([]),u=r.ref(!1),g=r.computed(()=>s.value.concat(i.value));r.watch(()=>l.api,()=>{l.show&&x("")});const h=r.computed(()=>({name:"name",type:"type",id:"id",avatar:"avatar",...l.propOption})),c=r.computed(()=>({user:"USER",role:"ROLE",post:"POST",group:"DEPT",...l.typeOption})),y=r.ref([]),m=j1(r.toRef(l,"api"),l),p=m.handData,_=m.bannerList;l.immediate&&p(a.value,o.value);const b=T=>(T.forEach(O=>{var W,Y;O.disabled=((Y=(W=l.modelValue)==null?void 0:W.find(Z=>Z[h.value.id]===O[h.value.id]))==null?void 0:Y.disabled)||!1}),T),C=async()=>{var T,O,W,Y,Z,Oe,jr,Ei;u.value=!0;try{if((T=l.groupList)!=null&&T.length||(O=l.userList)!=null&&O.length||(W=l.roleList)!=null&&W.length||(Y=l.postList)!=null&&Y.length){i.value=(Z=l.userList)==null?void 0:Z.filter(Le=>Le[h.value.name].includes(o.value)),s.value=(Oe=l.groupList)==null?void 0:Oe.filter(Le=>Le[h.value.name].includes(o.value)),d.value=(jr=l.roleList)==null?void 0:jr.filter(Le=>Le[h.value.name].includes(o.value)),f.value=(Ei=l.postList)==null?void 0:Ei.filter(Le=>Le[h.value.name].includes(o.value)),$(),u.value=!1;return}const ke=await p(a.value,o.value);try{i.value=b((ke==null?void 0:ke.userList)||[]),s.value=b((ke==null?void 0:ke.groupList)||[]),d.value=b((ke==null?void 0:ke.roleList)||[]),f.value=b((ke==null?void 0:ke.postList)||[])}catch(Le){u.value=!1,console.info("error: ",Le)}$(),u.value=!1}catch{u.value=!1}},v=r.reactive({group:new Map,user:new Map,role:new Map,post:new Map,trans:[],single:""}),I=r.reactive({indeterminate:!1,checkAll:0}),N=T=>v.group.has(T)||v.user.has(T)||v.role.has(T)||v.post.has(T),x=H.ikEvent.debounce(C,300),k=r.computed(()=>{const T=Array.from(v.group.values()),O=Array.from(v.role.values()),W=Array.from(v.user.values()),Y=Array.from(v.post.values());return y.value=[...O,...Y,...W,...T],{list:[...O,...W,...Y,...T],role:{list:O,len:O.length},user:{list:W,len:W.length},post:{list:Y,len:Y.length},groups:{list:T,len:T.length}}}),D=r.computed(()=>[...l.chooseType.map(W=>W.toLocaleLowerCase())]),S=r.ref([]),M=T=>{S.value=T,S.value.forEach(O=>{O.readonly=O==null?void 0:O.disabled})},B=n,L=r.ref(!1),$=(T=!1)=>{var W;const O=(W=l==null?void 0:l.userList)!=null&&W.length?H._.cloneDeep([...l==null?void 0:l.userList,...l==null?void 0:l.groupList]):[...s.value,...i.value];return!T&&M(O),O};r.watch(()=>l.show,async T=>{var O;if(L.value=T,T){a.value=((O=l.org)==null?void 0:O.elementId)||l.orgPid,!l.userList.length&&!l.groupList.length&&!l.roleList.length&&!l.postList.length?await C():(i.value=l.userList,s.value=l.groupList,d.value=l.roleList,f.value=l.postList),v.trans=[],I.checkAll=0,I.indeterminate=!1;const W=$(!0);for(const Z of W)N(Z[h.value.id])&&v.trans.push(Z[h.value.id]);const Y=W.length===v.trans.length;I.indeterminate=!!(W.length&&!Y),I.checkAll=Number(W.length&&Y),r.nextTick(()=>{var Z;(Z=l.modelValue)!=null&&Z.length?l.modelValue.forEach(Oe=>{ge(Oe),l.multiple?v.trans.push(Oe[h.value.id]):v.single=Oe[h.value.id]}):G()})}else G()}),r.watchEffect(()=>{let T;T=S.value.length;const O=v.trans.length;I.indeterminate=v.trans.length?O!==T:!1,I.checkAll=+(T!==0&&O===T)});const R=T=>{if(T){if(v.single="",T[h.value.id]){const O=v.trans.findIndex(W=>W===T[h.value.id]);O!==-1&&v.trans.splice(O,1)}switch(T[h.value.type]){case c.value.user:return v.user.delete(T[h.value.id]);case c.value.role:return v.role.delete(T[h.value.id]);case c.value.post:return v.post.delete(T[h.value.id]);case c.value.group:return v.group.delete(T[h.value.id]);default:return}}},J=T=>{R(T)},ge=T=>{if(!N(T[h.value.id])){const O={...T};switch(T[h.value.type]){case c.value.user:return v.group.set(T[h.value.id],O);case c.value.role:return v.role.set(T[h.value.id],O);case c.value.post:return v.post.set(T[h.value.id],O);case c.value.group:return v.group.set(T[h.value.id],O);default:return}}},it=T=>[c.value.group].includes(T[h.value.type])?T.hasOwnProperty("disabled"):!1;r.watch(()=>v.trans,T=>{if(!T.length)S.value.forEach(O=>{O.disabled=!1;try{l.multiple&&R(O)}catch{}});else{const O=S.value.filter(Y=>!T.includes(Y[h.value.id]));for(const Y of O)Y.disabled=!1,l.multiple&&R(Y);const W=S.value.filter(Y=>T.includes(Y[h.value.id]));for(const Y of W)Y.disabled=it(Y),ge(Y)}},{deep:!0}),r.watch(()=>v.single,T=>{if(T){const O=S.value.find(W=>W[h.value.id]===T);O&&(v.user.clear(),v.role.clear(),v.post.clear(),v.group.clear(),v.trans=[],r.nextTick(()=>{ge(O)}))}});const Ht=T=>{a.value=T==null?void 0:T.elementId,C(),_.value.push(T)},st=r.computed(()=>_.value.length),se=(T,O)=>{!O&&!l.topLink||O!==st.value-1&&(a.value=T==null?void 0:T.elementId,C(),_.value.splice(O+1))},V=r.computed(()=>l.chooseType.includes("role")&&l.chooseType.length===1),q=r.computed(()=>l.chooseType.includes("post")&&l.chooseType.length===1),j=r.ref(l.tabs[0]),z=r.ref(l.tabs[0]);r.watchEffect(()=>(z.value=V.value?l.tabs[1]:q.value?l.tabs[2]:j.value,z.value));const G=()=>{v.user.clear(),v.role.clear(),v.post.clear(),v.group.clear(),v.trans=[],dt.value=[],Ee.value=[],j.value=l.tabs[0],z.value=l.tabs[0],o.value="",a.value=l.orgPid,_.value.splice(1,_.value.length),v.single="",y.value=[]},le=()=>{var T;B("ok",H._.cloneDeep({...k.value,sort:y.value})),B("update:modelValue",H._.cloneDeep(((T=k.value)==null?void 0:T.list)||[])),B("update:show",!1),G()},oe=()=>{B("update:show",!1),G()};e({handClear:G,handRomeve:J,handDelete:R});const ee=r.computed(()=>{const T=D.value;return!!((T.includes("post")||T.includes("role"))&&T.length>1)}),te=r.computed(()=>[{name:"group",label:"组织架构"},{name:"role",label:"角色列表"},{name:"post",label:"岗位列表"}].filter(T=>l.tabs.includes(T.name))),Me=r.computed(()=>`${typeof l.height=="string"?Number.parseInt(l.height):l.height}px`),ct=()=>{l.multiple||(v.post.clear(),v.role.clear(),v.user.clear(),v.group.clear(),v.single="")},kt=r.ref([]),Pt=(T,O)=>{l.multiple||(v.single="");const W=l.multiple?T:[T];if(!W.length){v.group.clear();return}ct(),O.forEach(Y=>{W!=null&&W.includes(Y[h.value.id])?ge(Y):R(Y)})};r.watch(()=>k.value.groups.len,T=>{kt.value=H._.cloneDeep(k.value.groups.list)});const dt=r.ref([]),Ge=(T,O)=>{l.multiple||(v.single="");const W=l.multiple?T:[T];if(!W.length){v.role.clear();return}ct(),O.forEach(Y=>{W!=null&&W.includes(Y[h.value.id])?ge(Y):R(Y)})};r.watch(()=>k.value.role.len,T=>{dt.value=H._.cloneDeep(k.value.role.list)});const Ee=r.ref([]),Ye=(T,O)=>{l.multiple||(v.single="");const W=l.multiple?T:[T];if(!W.length){v.post.clear();return}ct(),O.forEach(Y=>{W!=null&&W.includes(Y[h.value.id])?ge(Y):R(Y)})};return r.watch(()=>k.value.post.len,T=>{Ee.value=H._.cloneDeep(k.value.post.list)}),r.watch(()=>o.value,T=>{x("")}),(T,O)=>{const W=r.resolveComponent("el-tab-pane"),Y=r.resolveComponent("el-tabs");return r.openBlock(),r.createBlock(r.unref(A.ElDialog),{modelValue:L.value,"onUpdate:modelValue":O[2]||(O[2]=Z=>L.value=Z),title:T.title,"destroy-on-close":"","close-on-click-modal":!1,"close-on-click-escape":!1,draggable:"","align-center":"",width:typeof T.width=="string"?T.width:`${T.width}%`,class:"p_p_picker-dialog","modal-class":"p_p_picker-dialog-modal-user",onClose:oe},{footer:r.withCtx(()=>[r.createElementVNode("span",t6,[r.createVNode(r.unref(A.ElButton),{onClick:r.withModifiers(oe,["stop"])},{default:r.withCtx(()=>[r.createTextVNode("取消")]),_:1}),r.createVNode(r.unref(A.ElButton),{type:"primary",onClick:r.withModifiers(le,["stop"])},{default:r.withCtx(()=>[r.createTextVNode(" 确定 ")]),_:1})])]),default:r.withCtx(()=>[r.createElementVNode("div",{class:"dep-use-picker",style:r.normalizeStyle({height:Me.value})},[r.createElementVNode("div",W1,[r.createElementVNode("div",null,[r.createVNode(r.unref(A.ElInput),{modelValue:o.value,"onUpdate:modelValue":O[0]||(O[0]=Z=>o.value=Z),clearable:"",placeholder:T.placeholder,"suffix-icon":Iy},null,8,["modelValue","placeholder"]),ee.value?(r.openBlock(),r.createBlock(Y,{key:0,modelValue:j.value,"onUpdate:modelValue":O[1]||(O[1]=Z=>j.value=Z),class:"ik-picker-tab"},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(te.value,Z=>(r.openBlock(),r.createBlock(W,{label:Z.label,name:Z.name,key:Z.label},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])):r.createCommentVNode("v-if",!0)]),r.createCommentVNode(" 过滤 "),z.value===r.unref(Lt).group?(r.openBlock(),r.createElementBlock("div",G1,[r.createCommentVNode(" 面包屑 全选 "),r.createVNode(r.unref(A.ElBreadcrumb),{separator:">",class:r.normalizeClass(["banner",{"top-unlink":!T.topLink}])},{default:r.withCtx(()=>[st.value?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList(r.unref(_),(Z,Oe)=>(r.openBlock(),r.createBlock(r.unref(A.ElBreadcrumbItem),{key:Z[h.value.id],onClick:r.withModifiers(jr=>se(Z,Oe),["stop"])},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(Z[h.value.name]),1)]),_:2},1032,["onClick"]))),128)):r.createCommentVNode("v-if",!0)]),_:1},8,["class"])])):r.createCommentVNode("v-if",!0),r.createCommentVNode(" 左侧列表 "),r.createCommentVNode(" 组织架构 "),z.value===r.unref(Lt).group?r.withDirectives((r.openBlock(),r.createBlock(b1,{key:1,fixPropOpt:h.value,fixTypeOpt:c.value,list:g.value,max:T.max,multiple:T.multiple,"hand-list":kt.value,imageBaseUrl:l.imageBaseUrl,emptyText:l.emptyText,children:l.children,onHandChild:Ht,onChange:Pt},null,8,["fixPropOpt","fixTypeOpt","list","max","multiple","hand-list","imageBaseUrl","emptyText","children"])),[[r.unref(A.vLoading),u.value]]):z.value===r.unref(Lt).role?(r.openBlock(),r.createElementBlock(r.Fragment,{key:2},[r.createCommentVNode(" 角色 "),r.withDirectives(r.createVNode(P1,{fixPropOpt:h.value,fixTypeOpt:c.value,list:d.value,max:T.max,multiple:T.multiple,"hand-list":dt.value,imageBaseUrl:l.imageBaseUrl,emptyText:l.emptyText,onChange:Ge},null,8,["fixPropOpt","fixTypeOpt","list","max","multiple","hand-list","imageBaseUrl","emptyText"]),[[r.unref(A.vLoading),u.value]])],64)):z.value===r.unref(Lt).post?(r.openBlock(),r.createElementBlock(r.Fragment,{key:3},[r.createCommentVNode(" 岗位 "),r.withDirectives(r.createVNode(x1,{fixPropOpt:h.value,fixTypeOpt:c.value,list:f.value,max:T.max,multiple:T.multiple,"hand-list":Ee.value,imageBaseUrl:l.imageBaseUrl,emptyText:l.emptyText,onChange:Ye},null,8,["fixPropOpt","fixTypeOpt","list","max","multiple","hand-list","imageBaseUrl","emptyText"]),[[r.unref(A.vLoading),u.value]])],64)):r.createCommentVNode("v-if",!0)]),Y1,r.createCommentVNode(" 已选列表 "),r.createElementVNode("div",q1,[r.createElementVNode("div",Q1,[Z1,r.createVNode(r.unref(A.ElButton),{type:"primary",link:"",onClick:r.withModifiers(G,["stop"])},{default:r.withCtx(()=>[r.createTextVNode("清空")]),_:1})]),r.createElementVNode("ul",X1,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(y.value,Z=>(r.openBlock(),r.createElementBlock("li",K1,[r.createElementVNode("div",J1,[r.createCommentVNode(" icon前缀 "),r.createElementVNode("div",e6,[r.createVNode(at,{fixTypeOpt:c.value,fixPropOpt:h.value,element:Z,imageBaseUrl:l.imageBaseUrl},null,8,["fixTypeOpt","fixPropOpt","element","imageBaseUrl"])]),r.createElementVNode("span",null,r.toDisplayString(Z[h.value.name]),1)]),r.withDirectives(r.createVNode(Hy,{class:"close",onClick:r.withModifiers(Oe=>J(Z),["stop"])},null,8,["onClick"]),[[r.vShow,!(Z!=null&&Z.readonly)]])]))),256))])])],4)]),_:1},8,["modelValue","title","width"])}}}),eb="",Ft=ae(n6),tb="",r6=ae(r.defineComponent({name:"IkBtnContent",components:{MoreFilled:Kr},props:{num:{type:Number,default:3},trigger:{type:String,default:"click"},placement:{type:String,default:"bottom"}},setup(t,{slots:e,attrs:n}){const l=r.ref(null),o=r.ref(0),a=i=>i==null?void 0:i.filter(s=>typeof s.children!="string");return r.watchEffect(()=>{var i,s,d;l.value=(s=(i=e.default)==null?void 0:i.call(e))==null?void 0:s.filter(f=>typeof f.children!="string"),o.value=((d=l.value)==null?void 0:d.length)||0}),()=>{var i,s;return r.createVNode("div",{class:"flex"},[(s=a((i=e.default)==null?void 0:i.call(e)))==null?void 0:s.map((d,f)=>f+1>t.num?null:d),o.value>t.num?r.createVNode(r.resolveComponent("el-dropdown"),{trigger:t.trigger,"popper-class":"gl-btn-content"},{default:()=>r.createVNode(r.resolveComponent("el-icon"),{title:"更多",class:"ml-[12px] more-operate"},{default:()=>[r.createVNode(Kr,null,null)]}),dropdown:()=>r.createVNode(r.resolveComponent("el-dropdown-menu"),null,{default:()=>{var d,f;return[o.value>t.num?(f=a((d=e.default)==null?void 0:d.call(e)))==null?void 0:f.map((u,g)=>g<t.num?null:r.createVNode(r.resolveComponent("el-dropdown-item"),null,{default:()=>{var h,c;return[r.withDirectives(r.createVNode(r.resolveComponent("el-button"),r.mergeProps(u==null?void 0:u.props,{link:!0}),{default:()=>{var y,m;return[((y=u==null?void 0:u.props)==null?void 0:y.title)||((m=u==null?void 0:u.props)==null?void 0:m.label)]}}),[[r.resolveDirective("role"),(c=(h=u==null?void 0:u.dirs)==null?void 0:h[0])==null?void 0:c.value]])]}})):null]}})}):null])}}})),l6=r.defineComponent({__name:"index",props:{title:{type:String,default:""},type:{type:String,default:"success"},color:{type:String,default:""},background:{type:String,default:""},effect:{type:String,default:"light"},circle:{type:Boolean,default:!1},circleW:{type:Number,default:8},circleH:{type:Number,default:8},borderWidth:{type:Number,default:1},borderType:{type:String,default:"solid"}},setup(t){const e=t,n=r.computed(()=>e.type?"":{color:e.color,backgroundColor:e.background,borderColor:e.color});return(l,o)=>{const a=r.resolveComponent("el-tag");return r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createCommentVNode(' <div :style="{ border: `${borderWidth}px ${borderType} ${comColor}` }">\r\n <span :style="{ backgroundColor: comColor }"></span>\r\n <p>{{ title }}</p>\r\n </div> '),r.createVNode(a,{effect:t.effect,class:"ik-statu-tag",type:t.type,style:r.normalizeStyle(n.value)},{default:r.withCtx(()=>[t.circle?(r.openBlock(),r.createElementBlock("span",{key:0,class:"inline-block rounded-full",style:r.normalizeStyle({backgroundColor:`var(--el-color-${t.type})`,width:`${t.circleW}px`,height:`${t.circleH}px`})},null,4)):r.createCommentVNode("v-if",!0),r.createTextVNode(" "+r.toDisplayString(t.title),1)]),_:1},8,["effect","type","style"])],2112)}}}),lb="",o6=ae(X(l6,[["__scopeId","data-v-241ac18b"]])),a6=ae(r.defineComponent({__name:"index",props:{effect:{type:String,default:"dark"},content:{type:String,default:""},placement:{type:String,default:"bottom-start"}},setup(t){const e=t,n=r.computed(()=>e.effect);return(l,o)=>{const a=r.resolveComponent("el-tooltip");return r.openBlock(),r.createBlock(a,{class:"gl-tooltip",effect:n.value,content:t.content,placement:t.placement,enterable:!1},{default:r.withCtx(()=>[r.renderSlot(l.$slots,"default")]),_:3},8,["effect","content","placement"])}}})),i6=(t=>(r.pushScopeId("data-v-eb2bacf7"),t=t(),r.popScopeId(),t))(()=>r.createElementVNode("i",{class:"ik ik-shezhi"},null,-1)),s6={class:"check-right"},c6={class:"dialog-footer"},d6=r.defineComponent({__name:"IkBtnSetting",props:r.mergeModels({list:{type:Array,default:()=>[]},tab:{type:[String,Number],default:""},type:{type:String,default:"primary"},btnType:{type:String,default:"icon"},circle:{type:Boolean,default:!0},inline:{type:Boolean,default:!1},role:{type:String,default:""},config:{type:Object,default:()=>({t:t=>t,dialog:{l:"700px",sl:"600px"},path:"user_0",user:{id:"111"}})}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:r.mergeModels(["sort"],["update:modelValue"]),setup(t,{emit:e}){const n=t,l=e,o=r.useModel(t,"modelValue"),{t:a,dialog:i,path:s,user:d}=n.config,f=r.computed(()=>`${d==null?void 0:d.id}_${s}${n.tab!==""?`_${n.tab}`:""}`),u=r.ref([]),g=r.ref([]),h=r.ref([]),c=new Map,y=r.ref(!1),m=r.computed(()=>{const x=g.value.length&&g.value.length!==n.list.length;return!x&&g.value.length&&(y.value=!0),!!x}),p=x=>{var D;const k=H._.cloneDeep(h.value);k==null||k.forEach(S=>{var M;if(!g.value.length)h.value=[];else if(!g.value.includes(S==null?void 0:S.key)){const B=(M=h.value)==null?void 0:M.findIndex(L=>L.key===S.key);B!==-1&&h.value.splice(B,1),S.show=!1,c.set(S.key,S)}}),g.value.forEach(S=>{var B;if(((B=h.value)==null?void 0:B.findIndex(L=>(L==null?void 0:L.key)===S))===-1){const L=c.get(S);L&&(L.show=!0,h.value.push(L))}}),(D=h.value)!=null&&D.length||(h.value=H._.cloneDeep(n.list)),x===!0&&(l("sort",H._.cloneDeep(h.value)),o.value=H._.cloneDeep(h.value))},_=x=>{if(x)g.value=n.list.map(k=>k.key);else{const k=n.list.find(D=>!D.key||D.label==="操作");g.value=k?[k.key]:[]}p()},b=()=>{const x=H.ikStore.local.getItem(f.value);try{const k=H._.cloneDeep(n==null?void 0:n.list);if((!x||!(x!=null&&x.length))&&H.ikStore.local.setItem(f.value,k.map(({show:D,type:S,key:M,label:B,width:L,minWidth:$,align:R})=>({show:D,key:M,type:S,label:B,width:L,minWidth:$,align:R}))),u.value=[...(k==null?void 0:k.map(D=>(c.set(D.key,D),{...D,show:D.show||!1})))||[]],x){const D=x.filter(S=>S.show).map(S=>S.key);g.value=[...D]}else{const D=u.value.filter(S=>S.show);g.value=D.map(S=>S.key)}p(!0)}catch(k){console.info("error: ",k)}};b(),r.watch(()=>n.list,()=>{b()},{deep:!0});const C=r.ref(!1),v=()=>{C.value=!0},I=x=>{h.value=x},N=()=>{C.value=!1,H.ikStore.local.setItem(f.value,h.value.map(({show:x,key:k,label:D,value:S,width:M,minWidth:B,align:L})=>({show:x,key:k,label:D,value:S,width:M,minWidth:B,align:L}))),console.log("sortList ",h),l("sort",H._.cloneDeep(h.value)),o.value=H._.cloneDeep(h.value)};return(x,k)=>{const D=r.resolveComponent("el-button"),S=r.resolveComponent("el-checkbox"),M=r.resolveComponent("el-checkbox-group"),B=r.resolveComponent("el-dialog"),L=r.resolveDirective("role");return r.openBlock(),r.createElementBlock(r.Fragment,null,[t.btnType==="button"?r.withDirectives((r.openBlock(),r.createBlock(D,r.mergeProps({key:0},x.$attrs,{circle:t.circle,type:t.type,style:{minWidth:t.circle?"40px":"",minHeight:t.circle?"40px":""},onClick:v}),r.createSlots({icon:r.withCtx(()=>[i6]),_:2},[t.circle?void 0:{name:"default",fn:r.withCtx(()=>[r.createCommentVNode(' {{ t("action.setting") }} '),r.createTextVNode(" "+r.toDisplayString(r.unref(a)("设置")),1)]),key:"0"}]),1040,["circle","type","style"])),[[L,x.$props.role]]):r.createCommentVNode("v-if",!0),t.btnType==="icon"?r.withDirectives((r.openBlock(),r.createBlock(r.unref(pe),r.mergeProps({key:1,name:"iksvg_shezhi-daohang","show-bg":"",size:"default"},x.$attrs,{onClick:v}),null,16)),[[L,x.$props.role]]):r.createCommentVNode("v-if",!0),r.createVNode(B,{modelValue:C.value,"onUpdate:modelValue":k[3]||(k[3]=$=>C.value=$),draggable:"",width:t.inline?r.unref(i).l:r.unref(i).sl,"close-on-click-modal":!1,"close-on-press-escape":!1,title:"显示字段","append-to-body":"",onOpen:b},{footer:r.withCtx(()=>[r.createElementVNode("div",c6,[r.createVNode(D,{onClick:k[2]||(k[2]=$=>C.value=!1)},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(r.unref(a)("关闭"))+" ",1),r.createCommentVNode(' {{ t("action.close") }} ')]),_:1}),r.createVNode(D,{type:"primary",disabled:h.value.length<2,onClick:N},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(h.value.length<2?"至少选择一个字段":r.unref(a)("确定")),1)]),_:1},8,["disabled"])])]),default:r.withCtx(()=>[r.createElementVNode("div",{class:r.normalizeClass(["view-fields",[t.inline?null:"un-inline"]])},[r.createElementVNode("div",{style:r.normalizeStyle({flex:t.inline?2:1})},[r.createVNode(S,{modelValue:y.value,"onUpdate:modelValue":k[0]||(k[0]=$=>y.value=$),class:"single-line",indeterminate:m.value,onChange:_},{default:r.withCtx(()=>[r.createTextVNode(" 全选 ")]),_:1},8,["modelValue","indeterminate"]),r.createVNode(M,{modelValue:g.value,"onUpdate:modelValue":k[1]||(k[1]=$=>g.value=$),onChange:p},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.value,$=>(r.openBlock(),r.createBlock(S,{key:$.key,disabled:!$.key,label:$.key},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString($.label),1)]),_:2},1032,["disabled","label"]))),128))]),_:1},8,["modelValue"])],4),r.createElementVNode("div",s6,[r.createVNode(r.unref(_i),{list:h.value,"item-style":{bottom:4},onChange:I},null,8,["list"])])],2)]),_:1},8,["modelValue","width"])],64)}}}),sb="",yi=ae(X(d6,[["__scopeId","data-v-eb2bacf7"]])),bi={animation:200,group:"gl",disabled:!1,ghostClass:"ghost",sort:!0,delay:100,showIcon:!0,itemStyle:{radius:4,bottom:8,background:"var(--ik-sub-sidebar-menu-bg)"}},u6={list:{required:!0,type:Array,default:[]},group:{type:String,default:"draggable"},sort:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},delay:{type:Number,default:0},touchStartThreshold:{type:Number,default:0},disabled:{type:Boolean,default:!1},animation:{type:Number,default:200},handle:{type:String,default:".mover"},filter:{type:String,default:".unmover"},draggable:{type:String,default:".item"},ghostClass:{type:String,default:"ghost"},chosenClass:{type:String,default:"chosen"},dragClass:{type:String,default:"drag"},forceFallback:{type:Boolean,default:!1},fallbackClass:{type:String,default:"fallback"},fallbackOnBody:{type:Boolean,default:!1},fallbackTolerance:{type:Number,default:8},scroll:{type:Boolean,default:!0},scrollFn:{type:Function,default:()=>{}},scrollFensitivity:{type:Number,default:30},scrollSpeed:{type:Number,default:30},itemClass:{type:String,default:""},groupClass:{type:String,default:""},itemStyle:{type:Object,default:()=>({radius:{type:Number,default:30},bottom:{type:Number,default:8},background:{type:String,default:"var(--ik-sub-sidebar-menu-bg)"}})}},f6=r.defineComponent({__name:"IkDragList",props:u6,emits:["change"],setup(t,{emit:e}){const n=t,l=e,o=r.ref([]);r.watch(()=>n.list,f=>{o.value=H._.cloneDeep(f)},{immediate:!0,deep:!0});const a=r.computed(()=>({...bi,...n,itemStyle:{...bi.itemStyle,...n.itemStyle}})),i=r.ref(!1),s=()=>{i.value=!0},d=f=>{i.value=!1;const u=n.list[f.oldIndex];l("change",o.value,{...u,oldIndex:f.oldIndex,newIndex:f.newIndex})};return(f,u)=>{const g=r.resolveComponent("el-icon");return r.openBlock(),r.createBlock(r.unref(Ci),{modelValue:o.value,"onUpdate:modelValue":u[0]||(u[0]=h=>o.value=h),class:r.normalizeClass(["list-group",[a.value.groupClass]]),tag:"ul",attrs:a.value,animation:a.value.animation,group:a.value.group,disabled:a.value.disabled,"ghost-class":a.value.ghostClass,"force-fallback":a.value.ghostClass,"item-key":"order",onStart:s,onEnd:d},{item:r.withCtx(({element:h})=>[r.createVNode(r.Transition,{type:"transition",name:"flip-list"},{default:r.withCtx(()=>[f.$slots.item?r.renderSlot(f.$slots,"item",{key:0,item:h},void 0,!0):(r.openBlock(),r.createElementBlock("li",{key:1,class:r.normalizeClass(["list-group-item",[a.value.itemClass]]),style:r.normalizeStyle({borderRadius:`${a.value.itemStyle.radius}px`,marginBottom:`${a.value.itemStyle.bottom}px`,backgroundColor:`${a.value.itemStyle.background}`})},[a.value.showIcon&&!f.$slots.icon?(r.openBlock(),r.createBlock(g,{key:0},{default:r.withCtx(()=>[r.createVNode(r.unref(Oi))]),_:1})):r.renderSlot(f.$slots,"icon",{key:1},void 0,!0),r.createTextVNode(" "+r.toDisplayString(h.label),1)],6))]),_:2},1024)]),_:3},8,["modelValue","class","attrs","animation","group","disabled","ghost-class","force-fallback"])}}}),db="",_i=ae(X(f6,[["__scopeId","data-v-3716c05e"]])),p6=r.defineComponent({__name:"index",props:r.mergeModels({list:{type:Array},isButton:{type:Boolean,default:!0}},{modelValue:{type:String,default:""},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=r.useModel(t,"modelValue");return(n,l)=>{const o=r.resolveComponent("el-radio-button"),a=r.resolveComponent("el-radio-group");return r.openBlock(),r.createBlock(a,{modelValue:e.value,"onUpdate:modelValue":l[0]||(l[0]=i=>e.value=i),class:"ik-radio-btn"},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.list,(i,s)=>(r.openBlock(),r.createBlock(o,{key:s,label:i.value},{default:r.withCtx(()=>[r.createTextVNode(r.toDisplayString(i.label),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])}}}),fb="",h6=ae(X(p6,[["__scopeId","data-v-186a428a"]]));U.EAlign=el,U.EDateType=Fe,U.EType=ve,U.Event=P3,U.IKApprovalProcess=Qc,U.IKApprovalProcessDetail=vc,U.IKCalendar=qg,U.IKHorizontalStepBar=e0,U.IKSearch=gs,U.IKSearchHead=ys,U.IKVerticalStepBar=ws,U.IkBtnContent=r6,U.IkBtnSetting=yi,U.IkDragList=_i,U.IkFullCalendar=pi,U.IkPageFull=Ny,U.IkPageTabs=py,U.IkPreviewFile=d0,U.IkPrintConfig=A3,U.IkPrintView=N3,U.IkRadioGroup=h6,U.IkSchedule=dy,U.IkStatu=o6,U.IkSvgIcon=pe,U.IkTooltip=a6,U.IkUploadFile=r3,U.IkUploadImage=k3,U.IkingPickerUser=Ft,Object.defineProperty(U,Symbol.toStringTag,{value:"Module"})});
|