@timum/booking 1.5.2 → 1.5.3

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.
@@ -318,7 +318,7 @@ LAST-MODIFIED:`+n[1].replace(/[^\w_\-:,;=+/<br>]/g,"").replace(/<br>/g,`\r
318
318
  0%, 100% {
319
319
  transform: translateX(0);
320
320
  }
321
- `;function lN({userName:e,doOnSuccess:t}){const{t:n}=Xn(),{enqueueSnackbar:r}=vw(),i=Nw({defaultValues:Y4(vS),resolver:w5(zp().shape(q4(vS)))}),o=Ec(),a=Me(p=>tt(p,"host")),[s,l]=oe.useState(),[c,{isLoading:d,isError:f}]=Fq(),g=async p=>{const m=await c({body:{userName:e,password:p.password}});m.error?(l(!0),setTimeout(()=>{l(!1)},1e3)):(t&&t(),o(Rk({pathToProp:"auth2",newValue:m.data.auth2})),r(n("login.success"),{variant:"success"}))};return k.jsxs(Oi,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[k.jsx(Ype,{sx:{m:1,bgcolor:"secondary.main"},children:k.jsx(sN,{})}),k.jsx(Ge,{variant:"h2",children:n("login.sign_in")}),k.jsx(Ge,{variant:"subtitle2",textAlign:"center",mt:1,children:k.jsxs(Lee,{t:n,i18nKey:"login.explanation",children:["Ein Benutzer mit dieser E-Mail existiert bereits. ",k.jsx("br",{})," Sie müssen sich authentifizieren, bevor Sie buchen können."]})}),k.jsx(Oi,{borderBottom:"1px solid #ddd",width:"80%",mt:2,mb:2}),k.jsxs(Oi,{component:"form",onSubmit:i.handleSubmit(g),noValidate:!0,sx:{mt:1},children:[k.jsx(Ge,{variant:"body1",textAlign:"center",children:e}),k.jsx(vv,{fields:vS,disableEmptyErrorText:!0,rhfProps:{control:i.control},containerProps:{spacing:0},textFieldProps:{sx:{animation:s?`${m4e} 500ms linear 1`:""}}}),f&&k.jsx(Ge,{color:"error.main",variant:"body1",textAlign:"center",children:n("login.failed")}),k.jsx(a1,{type:"submit",loading:d,fullWidth:!0,variant:"contained",sx:{mt:3,mb:2},children:n("login.sign_in")}),k.jsx(O5,{href:`${a}/auth/reset`,display:"block",variant:"body2",textAlign:"center",target:"_blank",children:n("login.forgot_password")})]})]})}lN.propTypes={};function $v({onResourceSelected:e,headerVariant:t="h4",height:n,HeadlineProps:r={},ListProps:i={},ListItemProps:o={},ListItemButtonProps:a={}}){const s=Ec(),{t:l}=Xn(),c=Me(Ix),d=Me(Hl);if(c)return k.jsx(Wc,{dense:!0,...i,subheader:k.jsx(QO,{sx:{marginBottom:"24px"},children:k.jsx(Ge,{variant:t,component:"h2",color:"text.primary",...r,children:l("resource_selection_headline")})}),sx:[{maxHeight:n,overflowY:"auto",paddingRight:"8px"},{...i.sx}],children:Object.entries(c).map(([,f])=>{var g;return k.jsx(Er,{...o,disablePadding:!0,sx:[{mx:"auto",marginBottom:"8px",minHeight:"36.5px"},{...o.sx}],children:k.jsx(n1,{selected:d&&(d==null?void 0:d.resource.uuid)===(f==null?void 0:f.resource.uuid),onClick:()=>{s(up(f)),e&&e(f)},...a,children:k.jsx(Qn,{primary:(g=f==null?void 0:f.resource)==null?void 0:g.name,primaryTypographyProps:{variant:"body2"}})})},f==null?void 0:f.ref)})})}$v.displayName="ResourceSelector",$v.propTypes={onProductSelected:Je.func};const Cv={setBookables:"setBookables",setProducts:"setProducts",resetBookables:"resetBookables",resetProducts:"resetProducts"};function v4e(e,{type:t,payload:n}){switch(t){case Cv.setBookables:return{...e,bookables:n};case Cv.setProducts:return{...e,products:n};case Cv.resetBookables:return{...e,products:void 0};case Cv.resetProducts:return{...e,products:void 0};default:throw new Error(`Unsupported type: ${t}`)}}function yS({calendarComponent:e,customerData:t,isIdentifyingCustomer:n,identificationFailed:r,reducer:i=v4e,bookables:o,products:a}){var zy,Du,By,Pu,Hy,Uy,Wy,Vh,Gh,qh,Vy;const{current:s}=oe.useRef({bookables:void 0,products:void 0}),[l,c]=oe.useReducer(i,s),d=Ec(),f=Me(wm),g=Me(wY),p=Me(Hl),m=Me(Ix),{height:v}=bJ(),w=jo(we=>we.breakpoints.down("sm")),x=o!=null,b=a!=null,S=x?o:l.bookables,$=b?a:l.products,{t:E}=Xn(),{enqueueSnackbar:T}=vw(),A=Me(we=>tt(we,"channelKey")),R=Me(we=>tt(we,"cancelableAppointment.appointmentUuid")),I=Me(we=>tt(we,"height")),_=Me(we=>tt(we,"allowCloseOnBooking")),L=Me(we=>tt(we,"hideTimumFooter")),B=v&&v<I?v:I,U=Me(we=>tt(we,"cancelableAppointment.authToken")),V=Me(we=>tt(we,"callbacks.fetchingProductsFailed")),P=Me(we=>tt(we,"callbacks.fetchingBookablesFailed")),z=Me(we=>tt(we,"callbacks.fetchingProductsSucceeded")),q=Me(we=>tt(we,"callbacks.fetchingBookablesSucceeded")),H=Me(we=>tt(we,"callbacks.fetchingPublicDataSucceeded")),[Z,K]=oe.useState(!1),[J,ge]=oe.useState(!1),[ve,he]=oe.useState(!1),[xe,ae]=oe.useState(!1),[$e,Ae]=oe.useState(!1),[Fe,Xe]=oe.useState(!1),[Ie,Ve]=oe.useState(!1),[St,ct]=oe.useState(!1),[G,te]=oe.useState(),[ee,me]=oe.useState(),[Ce,ce]=oe.useState(),[be,it]=oe.useState(),[Ye,Pt]=oe.useState(),[Ut,Hn]=oe.useState(),An=Me(we=>tt(we,"interfaces.ResourcePage")),st=Me(we=>tt(we,"interfaces.UnkownBookingPage")),fe=Me(we=>tt(we,"interfaces.IdentifiedBookingPage")),$t=Me(we=>tt(we,"interfaces.ConfirmationPage")),tn=Me(we=>tt(we,"interfaces.LoginPage")),Rn=Me(we=>tt(we,"interfaces.CancelPage")),Bi=Me(we=>tt(we,"interfaces.ProductPage")),pl=Me(we=>tt(we,"interfaces.ErrorDialog")),hl=we=>{if(!we)return{};const et=JSON.parse(JSON.stringify(we));delete et.public_visible;for(const[vr,na]of Object.entries(et)){et[vr]=[];for(const Mu of na)et[vr].push(Ir(Mu))}return et},Ir=O.useCallback(we=>{var vr,na;const et=JSON.parse(JSON.stringify(we));return et.isCancelable=R&&et.appointment_uuid===R,et.appointmentUuid=et.appointment_uuid,et.uuid=et.timeslot_uuid,et.start=je.fromISO(et.start),(vr=et.kind)!=null&&vr.toLowerCase().includes("bookable")&&(f!=null&&f.minDuration)?et.end=je.fromISO(et.start).plus({minutes:f.minDuration}):(na=et.kind)!=null&&na.toLowerCase().includes("bookable")&&(f!=null&&f.maxDuration)?et.end=je.fromISO(et.start).plus({minutes:f.maxDuration}):et.end=je.fromISO(et.end),et}),[Ru,{data:ht,error:Ga,reset:Ou}]=Mq(),[Ry]=Nq(),[Oy,{data:_y,error:Ud,isFetching:c9,isLoading:d9,isUninitialized:Iy}]=Oq(),[f9,{data:Wd,error:Vd,isLoading:Wh}]=Iq(),p9=()=>{Ve(!0)},_u=()=>{Ve(!1)},Dy=()=>{K(!0)},Py=()=>{K(!1)},h9=we=>{ce(we),Xe(!0)},My=()=>{ce(void 0),Xe(!1)},g9=we=>{ge(!0),te(we)},Iu=()=>{var we,et;ge(!1),zn.isNil(Ga)&&ht&&Ry({channelOrResourceId:p==null?void 0:p.ref,body:{placeholder_id:(we=ht==null?void 0:ht.participation)==null?void 0:we.customer_uuid,appointment_id:(et=ht==null?void 0:ht.participation)==null?void 0:et.appointment_uuid}}),setTimeout(()=>{te(void 0)},150)},Ny=()=>{ct(!0)},m9=()=>{ct(!1),it(void 0),Pt(void 0),Hn(void 0)},Ly=we=>{he(!0),me(we)},Fy=()=>{he(!1),setTimeout(()=>{me(void 0)},150)},jy=()=>{d(Rk({pathToProp:"cancelableAppointment",newValue:void 0})),Fy()},v9=()=>{Ae(!0)},y9=()=>{Ae(!1)};O.useEffect(()=>{(async()=>{!x&&p&&Oy({channelOrResourceId:p==null?void 0:p.ref,params:{channelKey:A},headers:U?{"X-SIGNED-APP-CUSTOMER":U}:void 0})})()},[p,x]),O.useEffect(()=>{!x&&!Ud&&c({type:"setBookables",payload:_y})},[_y,x]),O.useEffect(()=>{(async()=>{!b&&p&&f9({channelOrResourceId:p==null?void 0:p.ref,params:{channelKey:A}})})()},[p,b]),O.useEffect(()=>{!b&&!Vd&&c({type:"setProducts",payload:Wd==null?void 0:Wd.products})},[Wd,x]),O.useEffect(()=>{G&&Ru({channelOrResourceId:p==null?void 0:p.ref,body:{timeslotUuid:G==null?void 0:G.timeslot_uuid,appointmentUuid:G==null?void 0:G.appointment_uuid,productUuid:f.uuid,from:G.start.set({milliseconds:0}).toUTC(0,{keepLocalTime:!0}).toISO({suppressMilliseconds:!0}),to:G.end.set({milliseconds:0}).toUTC(0,{keepLocalTime:!0}).toISO({suppressMilliseconds:!0})},params:{channelKey:A}})},[G]),O.useMemo(()=>{Ga&&(v9(),Iu())},[Ga]),O.useMemo(()=>{if(!ve&&!xe&&S&&R&&U){let we;for(const et of Object.values(S))!zn.isBoolean(et)&&!we&&(we=et.find(vr=>vr.appointment_uuid===R));we&&(me(Ir(we)),he(!0),ae(!0))}},[ve,xe,S,R,U]),O.useMemo(()=>{Vd&&V&&V(Vd)},[Vd,V]),O.useMemo(()=>{Ud&&P&&P(Ud)},[Ud,P]),O.useMemo(()=>{$&&z&&z({...$})},[$,z]),O.useMemo(()=>{S&&q&&q({...S})},[S,q]),O.useMemo(()=>{p&&H&&z({...p})},[p,H]),O.useMemo(()=>{!f&&($==null?void 0:$.length)===1?d(xm($[0])):!f&&!Z&&($==null?void 0:$.length)>1&&Dy()},[f,$,Z]),O.useMemo(()=>{f&&$&&($.find(et=>et.uuid===f.uuid)||(d(xm(void 0)),T(E("product_unavailable_for_resource_warning"),{autoHideDuration:6e3,variant:"warning"})))},[$,f]);const b9=()=>Wh||c9||J&&n;return k.jsxs(Oi,{sx:{display:"flex"},children:[k.jsxs(Ne,{container:!0,sx:{flexGrow:1,boxSizing:"border-box",overflowY:"hidden"},children:[k.jsxs(An,{mobileOpen:Ie,mobileOnClose:_u,publicDataMap:m,publicData:p,shouldDisplay:m&&Object.keys(m).length>1,height:B-36,children:[w&&k.jsx($v,{onResourceSelected:()=>{_u()},height:B-40,HeadlineProps:{variant:"h2"},ListItemProps:{sx:{mx:"auto",borderWidth:"1px",borderStyle:"solid",borderColor:"grey.300",marginBottom:"16px",minHeight:"58px"}},ListItemButtonProps:{sx:{position:"absolute",width:"100%",height:"100%",zIndex:0}}}),!w&&k.jsx($v,{onResourceSelected:()=>{_u()},height:B-36,ListProps:{sx:{maxWidth:"240px"}},ListItemProps:{},ListItemButtonProps:{}})]}),k.jsx(Ne,{item:!0,xs:!0,children:k.jsx(K4,{visible:b9(),children:e({bookablesQueried:x||!d9&&!Iy,bookables:hl(S),product:f,products:$,resource:g,publicDataMap:m,publicData:p,height:B-36,openResourcePage:p9,openProductPage:Dy,openBookingPage:we=>{we.isCancelable?Ly(we):g9(we)}})})}),!L&&k.jsx(Ne,{item:!0,xs:12,children:k.jsx(RM,{})})]}),Z&&!ve&&k.jsx(Bi,{open:Z&&!ve,onClose:Py,children:k.jsx(RA,{onProductSelected:Py,products:$})}),J&&r&&!n&&k.jsx(st,{open:J&&r&&!n,onClose:Iu,children:k.jsx(TM,{timeslot:(()=>{var we,et;return G&&G.uuid!==((we=ht==null?void 0:ht.participation)==null?void 0:we.timeslot_uuid)&&(G.uuid=(et=ht==null?void 0:ht.participation)==null?void 0:et.timeslot_uuid),G})(),productName:G!=null&&G.product_name?G.product_name:f==null?void 0:f.name,productMinDuration:f==null?void 0:f.minDuration,resourceName:(zy=p==null?void 0:p.resource)==null?void 0:zy.name,placeholderId:(Du=ht==null?void 0:ht.participation)==null?void 0:Du.customer_uuid,bookingProcess:(By=p==null?void 0:p.channel)==null?void 0:By.bookingProcess,onBookingSuccessfull:({timeslot:we,response:et,data:vr})=>{Ou(),Iu(),Ny(),Pt(et),it(we),Hn(vr)},onBookingFailed:({response:we,data:et})=>{var vr,na,Mu;((Mu=(na=(vr=we==null?void 0:we.error)==null?void 0:vr.data)==null?void 0:na.errors[0])==null?void 0:Mu.errorCode)==="300"&&h9(et.email)}})}),J&&!r&&!n&&k.jsx(fe,{open:J&&!r&&!n,onClose:Iu,children:k.jsx(AM,{timeslot:(()=>{var we,et;return G&&G.uuid!==((we=ht==null?void 0:ht.participation)==null?void 0:we.timeslot_uuid)&&(G.uuid=(et=ht==null?void 0:ht.participation)==null?void 0:et.timeslot_uuid),G})(),productName:G!=null&&G.product_name?G.product_name:f==null?void 0:f.name,productMinDuration:f==null?void 0:f.minDuration,resourceName:(Pu=p==null?void 0:p.resource)==null?void 0:Pu.name,placeholderId:(Hy=ht==null?void 0:ht.participation)==null?void 0:Hy.customer_uuid,onBookingSuccessfull:({timeslot:we,response:et,data:vr})=>{Ou(),Iu(),Ny(),Pt(et),it(we),Hn(vr)},bookingProcess:(Uy=p==null?void 0:p.channel)==null?void 0:Uy.bookingProcess,customerData:t})}),ve&&k.jsx(Rn,{open:ve,onClose:Fy,timeslot:ee,productName:ee!=null&&ee.product_name?ee.product_name:f==null?void 0:f.name,resourceName:(Wy=p==null?void 0:p.resource)==null?void 0:Wy.name,onCancelSuccess:jy,children:k.jsx(aN,{timeslot:ee,productName:ee!=null&&ee.product_name?ee.product_name:f==null?void 0:f.name,resourceName:(Vh=p==null?void 0:p.resource)==null?void 0:Vh.name,onCancelSuccess:jy})}),St&&k.jsx($t,{open:St,onClose:m9,allowCloseOnBooking:_,timeslot:be,productName:be!=null&&be.product_name?be.product_name:f==null?void 0:f.name,productDescription:f==null?void 0:f.description,resourceName:(Gh=p==null?void 0:p.resource)==null?void 0:Gh.name,providerName:p!=null&&p.provider.isThemingAllowed?(qh=p==null?void 0:p.provider)==null?void 0:qh.name:void 0,customerMail:t?t.email:Ut==null?void 0:Ut.email,contactChannel:Ye==null?void 0:Ye.contact_channel,bookingProcess:(Vy=p==null?void 0:p.channel)==null?void 0:Vy.bookingProcess,children:we=>k.jsx(oN,{...we})}),Fe&&k.jsx(tn,{open:Fe,onClose:My,children:k.jsx(lN,{userName:Ce,doOnSuccess:My})}),$e&&k.jsx(pl,{open:$e,onClose:y9})]})}var bS={},y4e=er;Object.defineProperty(bS,"__esModule",{value:!0});var uN=bS.default=void 0,b4e=y4e(tr()),x4e=k,w4e=(0,b4e.default)((0,x4e.jsx)("path",{d:"M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"}),"Phone");uN=bS.default=w4e;var xS={},S4e=er;Object.defineProperty(xS,"__esModule",{value:!0});var cN=xS.default=void 0,$4e=S4e(tr()),C4e=k,E4e=(0,$4e.default)((0,C4e.jsx)("path",{d:"M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1zm-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm4.5-4H7V4h9v14z"}),"PhoneIphone");cN=xS.default=E4e;var wS={},k4e=er;Object.defineProperty(wS,"__esModule",{value:!0});var dN=wS.default=void 0,T4e=k4e(tr()),A4e=k,R4e=(0,T4e.default)((0,A4e.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z"}),"Email");dN=wS.default=R4e;var SS={},O4e=er;Object.defineProperty(SS,"__esModule",{value:!0});var ph=SS.default=void 0,_4e=O4e(tr()),I4e=k,D4e=(0,_4e.default)((0,I4e.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");ph=SS.default=D4e;var $S={},P4e=er;Object.defineProperty($S,"__esModule",{value:!0});var fN=$S.default=void 0,M4e=P4e(tr()),N4e=k,L4e=(0,M4e.default)((0,N4e.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");fN=$S.default=L4e;const F4e=(e,t,n)=>{var i;let r=!1;return n&&e.product_uuid===(n==null?void 0:n.uuid)&&(r=!0),t&&(r||(i=e==null?void 0:e.products)!=null&&i.find(a=>a.uuid===(n==null?void 0:n.uuid))&&(r=!0)),r};function pN({bookables:e,products:t,selectedProduct:n}){return O.useMemo(()=>{if(e){let r;r=Object.entries(e),r=r.filter(i=>(i[1].forEach(o=>{o.supportsProduct=F4e(o,t,n)}),i[1]=i[1].filter(o=>o.isCancelable?!0:!o.products||o.products.length===0?!(n!=null&&n.exclusive):!!o.supportsProduct),!!i[1].length));for(const[,i]of r)i.sort((o,a)=>o.start<a.start?-1:o.start===a.start?0:1);for(const[,i]of r)for(const o of i)o.isCancelable?o.renderAsCancelable=!0:o.capacity_left>0||o.kind==="models.Bookable"?o.renderAsBookable=!0:o.renderAsBlocker=!0;return r=r.sort((i,o)=>{const a=je.fromFormat(i[0],"yyyy-MM-dd"),s=je.fromFormat(o[0],"yyyy-MM-dd");return a<s?-1:a===s?0:1}),r}return[]},[e,t,n])}function j4e(){const{t:e}=Xn();return k.jsx(Er,{sx:{pointerEvents:"none",marginBottom:"8px"},children:k.jsx(Qn,{sx:{width:"100%",textAlign:"center",py:{xs:0,sm:0,md:0}},children:k.jsx(Ge,{variant:"body2",color:"text.disabled",children:`${e("appoinment_at_capacity")}`})})})}function z4e({timeslot:e,productName:t,openBookingPage:n}){var r;return k.jsxs(Er,{disablePadding:!0,sx:{borderWidth:"1px",borderStyle:"solid",borderColor:"grey.300",marginBottom:"8px"},children:[k.jsx(Qn,{sx:{py:{xs:2,sm:2,md:3}}}),k.jsx(n1,{sx:{position:"absolute",width:"100%",height:"100%",zIndex:0},onClick:()=>{n(e)},children:k.jsx(Ge,{variant:"body2",color:"text.secondary",px:{xs:0,sm:0,md:0},children:`${(r=e==null?void 0:e.start)==null?void 0:r.toLocaleString(je.TIME_SIMPLE)} - ${t||" "}`})})]})}function B4e({timeslot:e,openBookingPage:t}){var r;const{t:n}=Xn();return k.jsxs(Er,{disablePadding:!0,sx:{borderWidth:"1px",borderStyle:"solid",borderColor:"secondary.main",marginBottom:"8px"},children:[k.jsx(Qn,{sx:{py:{xs:2,sm:2,md:3}}}),k.jsx(n1,{sx:{position:"absolute",width:"100%",height:"100%",zIndex:0},onClick:()=>{t(e)},children:k.jsx(Ge,{variant:"body2",color:"secondary.main",px:{xs:2,sm:2,md:3},children:`${(r=e==null?void 0:e.start)==null?void 0:r.toLocaleString(je.TIME_SIMPLE)} - ${n("cancellation.cancellable_appointment_highlight")}`})})]})}function Ev({bookables:e,product:t,products:n,resource:r,publicDataMap:i,openResourcePage:o,openProductPage:a,openBookingPage:s,height:l}){const{t:c}=Xn(),d=jo(b=>b.breakpoints.down("sm")),[f,g]=qc(void 0,"outer"),[p,m]=qc(void 0,"outer"),v=pN({bookables:e,products:n,selectedProduct:t}),w=O.useCallback(()=>o&&d&&i&&Object.keys(i).length>1),x=(g==null?void 0:g.height)+(m==null?void 0:m.height);return k.jsx(Oi,{sx:{width:"100%"},children:k.jsxs(Ne,{container:!0,rowSpacing:1,m:0,children:[w()&&k.jsx(Ne,{item:!0,xs:12,children:k.jsx(Ls,{ref:p,variant:"outlined",fullWidth:!0,onClick:o,startIcon:k.jsx(U1,{fontSize:"small"}),endIcon:k.jsx(ph,{fontSize:"10px"}),children:(r==null?void 0:r.name)||c("resource_selection_headline")})}),a&&k.jsx(Ne,{item:!0,xs:12,children:k.jsx(Ls,{ref:f,variant:"outlined",fullWidth:!0,onClick:a,startIcon:k.jsx(ud,{fontSize:"small"}),endIcon:k.jsx(ph,{fontSize:"10px"}),children:(t==null?void 0:t.name)||c("product_selection_headline")})}),k.jsx(Ne,{item:!0,xs:!0,children:k.jsxs(Wc,{sx:{"& ul":{padding:0},position:"relative",height:l-(x+16)||"500px",overflowY:"auto",overflowX:"hidden"},subheader:k.jsx("li",{}),children:[!(v!=null&&v.length)&&k.jsx(Oi,{height:a?`calc(100% - ${x}px)`:"100%",width:"100%",children:k.jsx(Ge,{variant:"body2",color:"text.secondary",sx:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)"},children:c("noEventsMessage")})}),(v==null?void 0:v.length)>0&&v.map(([b,S])=>k.jsx("li",{children:k.jsxs("ul",{children:[k.jsx(QO,{children:k.jsxs(Ne,{container:!0,justifyContent:"space-between",alignItems:"center",sx:{height:"48px"},children:[k.jsx(Ne,{item:!0,children:k.jsx(Ge,{variant:"body2",color:"primary",children:je.fromISO(b).toLocaleString(je.DATE_FULL)})}),k.jsx(Ne,{item:!0,children:k.jsx(Ge,{variant:"body2",color:"text.secondary",children:je.fromISO(b).weekdayLong})})]})}),S.map($=>{if($.renderAsCancelable)return k.jsx(B4e,{timeslot:$,openBookingPage:s},`${$.start.toISO()}-${$.uuid}`);if($.renderAsBookable){let E=t==null?void 0:t.name;return!$.hasSelectedProduct&&$.kind!=="models.Bookable"&&(E=$.product_name),k.jsx(z4e,{timeslot:$,productName:E,openBookingPage:s},`${$.start.toISO()}-${$.uuid}`)}else if($.renderAsBlocker)return k.jsx(j4e,{},`${$.start.toISO()}-${$.uuid}`)})]})},b))]})})]})})}Ev.propTypes={bookables:Je.object.isRequired,product:Je.object,products:Je.array,openProductPage:Je.func,openBookingPage:Je.func,height:Je.number};const H4e=de(e=>{const{...t}=e;return k.jsx(M1,{...t})})(({theme:e,expand:t})=>({transform:t?"rotate(180deg)":"rotate(0deg)",margin:"auto",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest})}));function U4e({bookables:e,product:t,products:n,publicData:r,publicDataMap:i,openResourcePage:o,openProductPage:a,openBookingPage:s,height:l}){const{t:c}=Xn(),[d,f]=qc(),[g,p]=qc(),m=jo(A=>A.breakpoints.down("sm")),[v,w]=oe.useState(!m),x=()=>{w(!v)},b=O.useCallback(()=>{var A,R,I,_;return((A=r==null?void 0:r.contact)==null?void 0:A.name)||((R=r==null?void 0:r.contact)==null?void 0:R.email)||((I=r==null?void 0:r.contact)==null?void 0:I.mobile)||((_=r==null?void 0:r.contact)==null?void 0:_.phone)}),S=O.useCallback(()=>{var A;return o&&m&&i&&((A=Object.keys(i))==null?void 0:A.length)>1}),$=()=>{var A,R,I,_,L,B,U,V,P,z,q,H,Z;return k.jsxs(k.Fragment,{children:[k.jsxs(Ne,{item:!0,container:!0,xs:"auto",columnSpacing:1,alignItems:"center",wrap:"nowrap",children:[k.jsx(Ne,{item:!0,xs:!0,zeroMinWidth:!0,children:k.jsx(Ge,{variant:"h4",component:"h2",children:(A=r==null?void 0:r.resource)==null?void 0:A.name})}),S()&&k.jsx(Ne,{item:!0,xs:"auto",children:k.jsx(Ls,{size:"small",onClick:o,color:"primary",variant:"outlined",sx:{padding:"1px 0",minWidth:"44px",float:"right"},children:k.jsx(fN,{})})})]}),k.jsxs(Ne,{item:!0,xs:m?"12":"auto",children:[(n==null?void 0:n.length)>1&&k.jsx(Ls,{variant:"outlined",fullWidth:!0,onClick:a,startIcon:k.jsx(ud,{fontSize:"small"}),endIcon:k.jsx(ph,{fontSize:"10px"}),children:(t==null?void 0:t.name)||c("product_selection_headline")}),(n==null?void 0:n.length)===1&&k.jsxs(Er,{disableGutters:!0,disablePadding:!0,children:[k.jsx(Ho,{sx:{minWidth:"30px"},children:k.jsx(ud,{fontSize:"small"})}),k.jsx(Qn,{children:k.jsx(Ge,{variant:"body1",color:"text.secondary",children:(t==null?void 0:t.name)||((R=n[0])==null?void 0:R.name)})})]})]}),b()&&k.jsx(Ne,{item:!0,sx:{mb:{xs:(I=r==null?void 0:r.resource)!=null&&I.description?0:1}},children:k.jsx(t_,{elevation:0,children:k.jsx(n_,{sx:{pt:"0!important",pb:"0!important"},children:k.jsxs(Wc,{dense:!0,sx:{p:0},children:[((_=r==null?void 0:r.contact)==null?void 0:_.name)&&k.jsx(Er,{sx:{py:0},disableGutters:!0,children:k.jsx(Qn,{primary:(L=r==null?void 0:r.contact)==null?void 0:L.name})}),((B=r==null?void 0:r.contact)==null?void 0:B.email)&&k.jsxs(Er,{sx:{py:0},disableGutters:!0,children:[k.jsx(Ho,{sx:{minWidth:"30px"},children:k.jsx(dN,{fontSize:"small"})}),k.jsx(Qn,{primary:(U=r==null?void 0:r.contact)==null?void 0:U.email})]}),((V=r==null?void 0:r.contact)==null?void 0:V.phone)&&k.jsxs(Er,{sx:{py:0},disableGutters:!0,children:[k.jsx(Ho,{sx:{minWidth:"30px"},children:k.jsx(uN,{fontSize:"small"})}),k.jsx(Qn,{primary:(P=r==null?void 0:r.contact)==null?void 0:P.phone})]}),((z=r==null?void 0:r.contact)==null?void 0:z.mobile)&&k.jsxs(Er,{sx:{py:0},disableGutters:!0,children:[k.jsx(Ho,{sx:{minWidth:"30px"},children:k.jsx(cN,{fontSize:"small"})}),k.jsx(Qn,{primary:(q=r==null?void 0:r.contact)==null?void 0:q.mobile})]})]})})})}),((H=r==null?void 0:r.resource)==null?void 0:H.description)&&k.jsx(Ne,{item:!0,xs:!0,flexShrink:3,sx:{mb:{xs:1}},children:k.jsxs(t_,{elevation:0,children:[k.jsx(che,{disableRipple:(f==null?void 0:f.height)<=74,onClick:()=>{(f==null?void 0:f.height)>74&&x()},children:k.jsx(YT,{in:v,collapsedSize:"72px",children:k.jsx(n_,{sx:{pb:"0!important"},children:k.jsx(Oi,{ref:d,children:k.jsx(wd,{overrides:{h1:{component:Ge,props:{variant:"h3",gutterBottom:!0}},h2:{component:Ge,props:{variant:"h4",gutterBottom:!0}},h3:{component:Ge,props:{variant:"h5",gutterBottom:!0}},h4:{component:Ge,props:{variant:"h6",gutterBottom:!0}},h5:{component:Ge,props:{variant:"body1",gutterBottom:!0,color:"text.secondary"}},h6:{component:Ge,props:{variant:"body1",gutterBottom:!0,color:"text.secondary"}},p:{component:Ge,props:{variant:"body2",gutterBottom:!0}},span:{component:Ge,props:{variant:"body2",gutterBottom:!0}}},children:(Z=r==null?void 0:r.resource)==null?void 0:Z.description})})})})}),(f==null?void 0:f.height)>74&&k.jsx(ghe,{sx:{py:0},children:k.jsx(H4e,{expand:v,onClick:x,children:k.jsx(ph,{})})})]})})]})},E=()=>k.jsxs(Ne,{container:!0,columnSpacing:4,rowSpacing:0,children:[k.jsx(Ne,{xs:6,container:!0,item:!0,direction:"column",wrap:"nowrap",spacing:3,sx:{overflowY:"auto",maxHeight:`${l}px`},children:$()}),k.jsxs(Ne,{container:!0,item:!0,xs:6,direction:"column",children:[k.jsx(Ne,{item:!0,xs:!0,children:k.jsx(Ge,{ref:g,variant:"h4",component:"h2",children:c("detailsListView.chose_date_and_time")})}),k.jsx(Ne,{item:!0,container:!0,xs:!0,children:k.jsx(Ev,{product:t,products:n,bookables:e,openBookingPage:s,height:p?l-p.height:l})})]})]}),T=()=>k.jsxs(Ne,{container:!0,direction:"column",columnSpacing:1,rowSpacing:1,children:[k.jsx(Ne,{container:!0,item:!0,direction:"column",wrap:"nowrap",spacing:1,xs:"auto",children:$()}),k.jsxs(Ne,{container:!0,item:!0,xs:6,direction:"column",children:[k.jsx(Ne,{item:!0,xs:!0,children:k.jsx(Ge,{ref:g,variant:"h4",component:"h2",children:c("detailsListView.chose_date_and_time")})}),k.jsx(Ne,{item:!0,container:!0,xs:!0,children:k.jsx(Ev,{product:t,products:n,bookables:e,openBookingPage:s,height:p?l-p.height:l})})]})]});return m?T():E()}var kv,qe,hN,hh,gN,mN,Tv={},vN=[],W4e=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Xs(e,t){for(var n in t)e[n]=t[n];return e}function yN(e){var t=e.parentNode;t&&t.removeChild(e)}function F(e,t,n){var r,i,o,a={};for(o in t)o=="key"?r=t[o]:o=="ref"?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?kv.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)a[o]===void 0&&(a[o]=e.defaultProps[o]);return Av(e,a,r,i,null)}function Av(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++hN};return i==null&&qe.vnode!=null&&qe.vnode(o),o}function Pn(){return{current:null}}function ut(e){return e.children}function fi(e,t){this.props=e,this.context=t}function gh(e,t){if(t==null)return e.__?gh(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?gh(e):null}function bN(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return bN(e)}}function CS(e){(!e.__d&&(e.__d=!0)&&hh.push(e)&&!Rv.__r++||gN!==qe.debounceRendering)&&((gN=qe.debounceRendering)||setTimeout)(Rv)}function Rv(){for(var e;Rv.__r=hh.length;)e=hh.sort(function(t,n){return t.__v.__b-n.__v.__b}),hh=[],e.some(function(t){var n,r,i,o,a,s;t.__d&&(a=(o=(n=t).__v).__e,(s=n.__P)&&(r=[],(i=Xs({},o)).__v=o.__v+1,ES(s,o,i,n.__n,s.ownerSVGElement!==void 0,o.__h!=null?[a]:null,r,a??gh(o),o.__h),kN(r,o),o.__e!=a&&bN(o)))})}function xN(e,t,n,r,i,o,a,s,l,c){var d,f,g,p,m,v,w,x=r&&r.__k||vN,b=x.length;for(n.__k=[],d=0;d<t.length;d++)if((p=n.__k[d]=(p=t[d])==null||typeof p=="boolean"?null:typeof p=="string"||typeof p=="number"||typeof p=="bigint"?Av(null,p,null,null,p):Array.isArray(p)?Av(ut,{children:p},null,null,null):p.__b>0?Av(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(g=x[d])===null||g&&p.key==g.key&&p.type===g.type)x[d]=void 0;else for(f=0;f<b;f++){if((g=x[f])&&p.key==g.key&&p.type===g.type){x[f]=void 0;break}g=null}ES(e,p,g=g||Tv,i,o,a,s,l,c),m=p.__e,(f=p.ref)&&g.ref!=f&&(w||(w=[]),g.ref&&w.push(g.ref,null,p),w.push(f,p.__c||m,p)),m!=null?(v==null&&(v=m),typeof p.type=="function"&&p.__k===g.__k?p.__d=l=wN(p,l,e):l=SN(e,p,g,x,m,l),typeof n.type=="function"&&(n.__d=l)):l&&g.__e==l&&l.parentNode!=e&&(l=gh(g))}for(n.__e=v,d=b;d--;)x[d]!=null&&AN(x[d],x[d]);if(w)for(d=0;d<w.length;d++)TN(w[d],w[++d],w[++d])}function wN(e,t,n){for(var r,i=e.__k,o=0;i&&o<i.length;o++)(r=i[o])&&(r.__=e,t=typeof r.type=="function"?wN(r,t,n):SN(n,r,r,i,r.__e,t));return t}function Ov(e,t){return t=t||[],e==null||typeof e=="boolean"||(Array.isArray(e)?e.some(function(n){Ov(n,t)}):t.push(e)),t}function SN(e,t,n,r,i,o){var a,s,l;if(t.__d!==void 0)a=t.__d,t.__d=void 0;else if(n==null||i!=o||i.parentNode==null)e:if(o==null||o.parentNode!==e)e.appendChild(i),a=null;else{for(s=o,l=0;(s=s.nextSibling)&&l<r.length;l+=1)if(s==i)break e;e.insertBefore(i,o),a=o}return a!==void 0?a:i.nextSibling}function V4e(e,t,n,r,i){var o;for(o in n)o==="children"||o==="key"||o in t||_v(e,o,null,n[o],r);for(o in t)i&&typeof t[o]!="function"||o==="children"||o==="key"||o==="value"||o==="checked"||n[o]===t[o]||_v(e,o,t[o],n[o],r)}function $N(e,t,n){t[0]==="-"?e.setProperty(t,n):e[t]=n==null?"":typeof n!="number"||W4e.test(t)?n:n+"px"}function _v(e,t,n,r,i){var o;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||$N(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||$N(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r||e.addEventListener(t,o?EN:CN,o):e.removeEventListener(t,o?EN:CN,o);else if(t!=="dangerouslySetInnerHTML"){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t.indexOf("-")==-1?e.removeAttribute(t):e.setAttribute(t,n))}}function CN(e){this.l[e.type+!1](qe.event?qe.event(e):e)}function EN(e){this.l[e.type+!0](qe.event?qe.event(e):e)}function ES(e,t,n,r,i,o,a,s,l){var c,d,f,g,p,m,v,w,x,b,S,$,E,T,A,R=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(l=n.__h,s=t.__e=n.__e,t.__h=null,o=[s]),(c=qe.__b)&&c(t);try{e:if(typeof R=="function"){if(w=t.props,x=(c=R.contextType)&&r[c.__c],b=c?x?x.props.value:c.__:r,n.__c?v=(d=t.__c=n.__c).__=d.__E:("prototype"in R&&R.prototype.render?t.__c=d=new R(w,b):(t.__c=d=new fi(w,b),d.constructor=R,d.render=q4e),x&&x.sub(d),d.props=w,d.state||(d.state={}),d.context=b,d.__n=r,f=d.__d=!0,d.__h=[],d._sb=[]),d.__s==null&&(d.__s=d.state),R.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=Xs({},d.__s)),Xs(d.__s,R.getDerivedStateFromProps(w,d.__s))),g=d.props,p=d.state,f)R.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(R.getDerivedStateFromProps==null&&w!==g&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(w,b),!d.__e&&d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(w,d.__s,b)===!1||t.__v===n.__v){for(d.props=w,d.state=d.__s,t.__v!==n.__v&&(d.__d=!1),d.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(I){I&&(I.__=t)}),S=0;S<d._sb.length;S++)d.__h.push(d._sb[S]);d._sb=[],d.__h.length&&a.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(w,d.__s,b),d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(g,p,m)})}if(d.context=b,d.props=w,d.__v=t,d.__P=e,$=qe.__r,E=0,"prototype"in R&&R.prototype.render){for(d.state=d.__s,d.__d=!1,$&&$(t),c=d.render(d.props,d.state,d.context),T=0;T<d._sb.length;T++)d.__h.push(d._sb[T]);d._sb=[]}else do d.__d=!1,$&&$(t),c=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++E<25);d.state=d.__s,d.getChildContext!=null&&(r=Xs(Xs({},r),d.getChildContext())),f||d.getSnapshotBeforeUpdate==null||(m=d.getSnapshotBeforeUpdate(g,p)),A=c!=null&&c.type===ut&&c.key==null?c.props.children:c,xN(e,Array.isArray(A)?A:[A],t,n,r,i,o,a,s,l),d.base=t.__e,t.__h=null,d.__h.length&&a.push(d),v&&(d.__E=d.__=null),d.__e=!1}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=G4e(n.__e,t,n,r,i,o,a,l);(c=qe.diffed)&&c(t)}catch(I){t.__v=null,(l||o!=null)&&(t.__e=s,t.__h=!!l,o[o.indexOf(s)]=null),qe.__e(I,t,n)}}function kN(e,t){qe.__c&&qe.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(r){r.call(n)})}catch(r){qe.__e(r,n.__v)}})}function G4e(e,t,n,r,i,o,a,s){var l,c,d,f=n.props,g=t.props,p=t.type,m=0;if(p==="svg"&&(i=!0),o!=null){for(;m<o.length;m++)if((l=o[m])&&"setAttribute"in l==!!p&&(p?l.localName===p:l.nodeType===3)){e=l,o[m]=null;break}}if(e==null){if(p===null)return document.createTextNode(g);e=i?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,g.is&&g),o=null,s=!1}if(p===null)f===g||s&&e.data===g||(e.data=g);else{if(o=o&&kv.call(e.childNodes),c=(f=n.props||Tv).dangerouslySetInnerHTML,d=g.dangerouslySetInnerHTML,!s){if(o!=null)for(f={},m=0;m<e.attributes.length;m++)f[e.attributes[m].name]=e.attributes[m].value;(d||c)&&(d&&(c&&d.__html==c.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(V4e(e,g,f,i,s),d)t.__k=[];else if(m=t.props.children,xN(e,Array.isArray(m)?m:[m],t,n,r,i&&p!=="foreignObject",o,a,o?o[0]:n.__k&&gh(n,0),s),o!=null)for(m=o.length;m--;)o[m]!=null&&yN(o[m]);s||("value"in g&&(m=g.value)!==void 0&&(m!==e.value||p==="progress"&&!m||p==="option"&&m!==f.value)&&_v(e,"value",m,f.value,!1),"checked"in g&&(m=g.checked)!==void 0&&m!==e.checked&&_v(e,"checked",m,f.checked,!1))}return e}function TN(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){qe.__e(r,n)}}function AN(e,t,n){var r,i;if(qe.unmount&&qe.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||TN(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){qe.__e(o,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&AN(r[i],t,n||typeof e.type!="function");n||e.__e==null||yN(e.__e),e.__=e.__e=e.__d=void 0}function q4e(e,t,n){return this.constructor(e,n)}function mh(e,t,n){var r,i,o;qe.__&&qe.__(e,t),i=(r=typeof n=="function")?null:n&&n.__k||t.__k,o=[],ES(t,e=(!r&&n||t).__k=F(ut,null,[e]),i||Tv,Tv,t.ownerSVGElement!==void 0,!r&&n?[n]:i?null:t.firstChild?kv.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r),kN(o,e)}function Y4e(e,t){var n={__c:t="__cC"+mN++,__:e,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,o;return this.getChildContext||(i=[],(o={})[t]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(a){this.props.value!==a.value&&i.some(CS)},this.sub=function(a){i.push(a);var s=a.componentWillUnmount;a.componentWillUnmount=function(){i.splice(i.indexOf(a),1),s&&s.call(a)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}kv=vN.slice,qe={__e:function(e,t,n,r){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),a=i.__d),a)return i.__E=i}catch(s){e=s}throw e}},hN=0,fi.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Xs({},this.state),typeof e=="function"&&(e=e(Xs({},n),this.props)),e&&Xs(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),CS(this))},fi.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),CS(this))},fi.prototype.render=ut,hh=[],Rv.__r=0,mN=0;var Uo,kS,RN,ON=[],TS=[],_N=qe.__b,IN=qe.__r,DN=qe.diffed,PN=qe.__c,MN=qe.unmount;function K4e(){for(var e;e=ON.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Iv),e.__H.__h.forEach(AS),e.__H.__h=[]}catch(t){e.__H.__h=[],qe.__e(t,e.__v)}}qe.__b=function(e){Uo=null,_N&&_N(e)},qe.__r=function(e){IN&&IN(e);var t=(Uo=e.__c).__H;t&&(kS===Uo?(t.__h=[],Uo.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=TS,n.__N=n.i=void 0})):(t.__h.forEach(Iv),t.__h.forEach(AS),t.__h=[])),kS=Uo},qe.diffed=function(e){DN&&DN(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(ON.push(t)!==1&&RN===qe.requestAnimationFrame||((RN=qe.requestAnimationFrame)||Z4e)(K4e)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==TS&&(n.__=n.__V),n.i=void 0,n.__V=TS})),kS=Uo=null},qe.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Iv),n.__h=n.__h.filter(function(r){return!r.__||AS(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],qe.__e(r,n.__v)}}),PN&&PN(e,t)},qe.unmount=function(e){MN&&MN(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Iv(r)}catch(i){t=i}}),n.__H=void 0,t&&qe.__e(t,n.__v))};var NN=typeof requestAnimationFrame=="function";function Z4e(e){var t,n=function(){clearTimeout(r),NN&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);NN&&(t=requestAnimationFrame(n))}function Iv(e){var t=Uo,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Uo=t}function AS(e){var t=Uo;e.__c=e.__(),Uo=t}function Q4e(e,t){for(var n in t)e[n]=t[n];return e}function LN(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function FN(e){this.props=e}(FN.prototype=new fi).isPureReactComponent=!0,FN.prototype.shouldComponentUpdate=function(e,t){return LN(this.props,e)||LN(this.state,t)};var jN=qe.__b;qe.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),jN&&jN(e)};var X4e=qe.__e;qe.__e=function(e,t,n,r){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}X4e(e,t,n,r)};var zN=qe.unmount;function BN(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=Q4e({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return BN(r,t,n)})),e}function HN(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return HN(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function RS(){this.__u=0,this.t=null,this.__b=null}function UN(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Dv(){this.u=null,this.o=null}qe.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),zN&&zN(e)},(RS.prototype=new fi).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var i=UN(r.__v),o=!1,a=function(){o||(o=!0,n.__R=null,i?i(s):s())};n.__R=a;var s=function(){if(!--r.__u){if(r.state.__a){var c=r.state.__a;r.__v.__k[0]=HN(c,c.__c.__P,c.__c.__O)}var d;for(r.setState({__a:r.__b=null});d=r.t.pop();)d.forceUpdate()}},l=t.__h===!0;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},RS.prototype.componentWillUnmount=function(){this.t=[]},RS.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=BN(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&F(ut,null,e.fallback);return i&&(i.__h=null),[F(ut,null,t.__a?null:e.children),i]};var WN=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function J4e(e){return this.getChildContext=function(){return e.context},e.children}function eSe(e){var t=this,n=e.i;t.componentWillUnmount=function(){mh(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,i){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),mh(F(J4e,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function tSe(e,t){var n=F(eSe,{__v:e,i:t});return n.containerInfo=t,n}(Dv.prototype=new fi).__a=function(e){var t=this,n=UN(t.__v),r=t.o.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),WN(t,e,r)):i()};n?n(o):o()}},Dv.prototype.render=function(e){this.u=null,this.o=new Map;var t=Ov(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Dv.prototype.componentDidUpdate=Dv.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){WN(e,n,t)})};var nSe=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,rSe=/^(?: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]/,iSe=typeof document<"u",oSe=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(e)};fi.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(fi.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var VN=qe.event;function aSe(){}function sSe(){return this.cancelBubble}function lSe(){return this.defaultPrevented}qe.event=function(e){return VN&&(e=VN(e)),e.persist=aSe,e.isPropagationStopped=sSe,e.isDefaultPrevented=lSe,e.nativeEvent=e};var GN={configurable:!0,get:function(){return this.class}},qN=qe.vnode;qe.vnode=function(e){var t=e.type,n=e.props,r=n;if(typeof t=="string"){var i=t.indexOf("-")===-1;for(var o in r={},n){var a=n[o];iSe&&o==="children"&&t==="noscript"||o==="value"&&"defaultValue"in n&&a==null||(o==="defaultValue"&&"value"in n&&n.value==null?o="value":o==="download"&&a===!0?a="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!oSe(n.type)?o="oninput":/^onfocus$/i.test(o)?o="onfocusin":/^onblur$/i.test(o)?o="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(o)?o=o.toLowerCase():i&&rSe.test(o)?o=o.replace(/[A-Z0-9]/g,"-$&").toLowerCase():a===null&&(a=void 0),/^oninput$/i.test(o)&&(o=o.toLowerCase(),r[o]&&(o="oninputCapture")),r[o]=a)}t=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=Ov(n.children).forEach(function(s){s.props.selected=r.value.indexOf(s.props.value)!=-1})),t=="select"&&r.defaultValue!=null&&(r.value=Ov(n.children).forEach(function(s){s.props.selected=r.multiple?r.defaultValue.indexOf(s.props.value)!=-1:r.defaultValue==s.props.value})),e.props=r,n.class!=n.className&&(GN.enumerable="className"in n,n.className!=null&&(r.class=n.className),Object.defineProperty(r,"className",GN))}e.$$typeof=nSe,qN&&qN(e)};var YN=qe.__r;qe.__r=function(e){YN&&YN(e),e.__c};const KN=[],OS=new WeakMap;typeof document<"u"&&OS.set(document,!0);function vh(e){e&&typeof document<"u"&&KN.push(ZN(document.head,e))}function uSe(e){const t=e.getRootNode();if(!OS.get(t)){OS.set(t,!0);for(const n of KN)ZN(t,n.innerText)}}function ZN(e,t){const n=document.createElement("style"),r=cSe();return r&&(n.nonce=r),n.innerText=t,e.appendChild(n),n}let _S;function cSe(){return _S===void 0&&(_S=dSe()),_S}function dSe(){const e=document.querySelector('meta[name="csp-nonce"]');if(e&&e.hasAttribute("content"))return e.getAttribute("content");const t=document.querySelector("script[nonce]");return t&&t.nonce||""}class IS{constructor(t){this.drainedOption=t,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(t){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),t==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),t))}pause(t=""){let{pauseDepths:n}=this;n[t]=(n[t]||0)+1,this.clearTimeout()}resume(t="",n){let{pauseDepths:r}=this;t in r&&(n?delete r[t]:(r[t]-=1,r[t]<=0&&delete r[t]),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 fSe(e){e.parentNode&&e.parentNode.removeChild(e)}function La(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(pSe(e,t))return e;e=e.parentElement||e.parentNode}while(e!==null&&e.nodeType===1);return null}function pSe(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector).call(e,t)}function hSe(e,t){let n=e instanceof HTMLElement?[e]:e,r=[];for(let i=0;i<n.length;i+=1){let o=n[i].querySelectorAll(t);for(let a=0;a<o.length;a+=1)r.push(o[a])}return r}const gSe=/(top|left|right|bottom|width|height)$/i;function mSe(e,t){for(let n in t)QN(e,n,t[n])}function QN(e,t,n){n==null?e.style[t]="":typeof n=="number"&&gSe.test(t)?e.style[t]=`${n}px`:e.style[t]=n}function vSe(e){var t,n;return(n=(t=e.composedPath)===null||t===void 0?void 0:t.call(e)[0])!==null&&n!==void 0?n:e.target}let XN=0;function Wo(){return XN+=1,"fc-dom-"+XN}function ySe(e,t){return n=>{let r=La(n.target,e);r&&t.call(r,n,r)}}function JN(e,t,n,r){let i=ySe(n,r);return e.addEventListener(t,i),()=>{e.removeEventListener(t,i)}}function bSe(e,t,n,r){let i;return JN(e,"mouseover",t,(o,a)=>{if(a!==i){i=a,n(o,a);let s=l=>{i=null,r(l,a),a.removeEventListener("mouseleave",s)};a.addEventListener("mouseleave",s)}})}function eL(e){return Object.assign({onClick:e},tL(e))}function tL(e){return{tabIndex:0,onKeyDown(t){(t.key==="Enter"||t.key===" ")&&(e(t),t.preventDefault())}}}let nL=0;function vu(){return nL+=1,String(nL)}function xSe(e){let t=[],n=[],r,i;for(typeof e=="string"?n=e.split(/\s*,\s*/):typeof e=="function"?n=[e]:Array.isArray(e)&&(n=e),r=0;r<n.length;r+=1)i=n[r],typeof i=="string"?t.push(i.charAt(0)==="-"?{field:i.substring(1),order:-1}:{field:i,order:1}):typeof i=="function"&&t.push({func:i});return t}function wSe(e,t,n){let r,i;for(r=0;r<n.length;r+=1)if(i=SSe(e,t,n[r]),i)return i;return 0}function SSe(e,t,n){return n.func?n.func(e,t):$Se(e[n.field],t[n.field])*(n.order||1)}function $Se(e,t){return!e&&!t?0:t==null?-1:e==null?1:typeof e=="string"||typeof t=="string"?String(e).localeCompare(String(t)):e-t}function Ed(e,t){let n=String(e);return"000".substr(0,t-n.length)+n}function yh(e,t,n){return typeof e=="function"?e(...t):typeof e=="string"?t.reduce((r,i,o)=>r.replace("$"+o,i||""),e):n}function Pv(e){return e%1===0}function CSe(e){let t=e.querySelector(".fc-scrollgrid-shrink-frame"),n=e.querySelector(".fc-scrollgrid-shrink-cushion");if(!t)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return e.getBoundingClientRect().width-t.getBoundingClientRect().width+n.getBoundingClientRect().width}const rL=["years","months","days","milliseconds"],ESe=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function yt(e,t){return typeof e=="string"?kSe(e):typeof e=="object"&&e?iL(e):typeof e=="number"?iL({[t||"milliseconds"]:e}):null}function kSe(e){let t=ESe.exec(e);if(t){let n=t[1]?-1:1;return{years:0,months:0,days:n*(t[2]?parseInt(t[2],10):0),milliseconds:n*((t[3]?parseInt(t[3],10):0)*60*60*1e3+(t[4]?parseInt(t[4],10):0)*60*1e3+(t[5]?parseInt(t[5],10):0)*1e3+(t[6]?parseInt(t[6],10):0))}}return null}function iL(e){let t={years:e.years||e.year||0,months:e.months||e.month||0,days:e.days||e.day||0,milliseconds:(e.hours||e.hour||0)*60*60*1e3+(e.minutes||e.minute||0)*60*1e3+(e.seconds||e.second||0)*1e3+(e.milliseconds||e.millisecond||e.ms||0)},n=e.weeks||e.week;return n&&(t.days+=n*7,t.specifiedWeeks=!0),t}function TSe(e,t){return e.years===t.years&&e.months===t.months&&e.days===t.days&&e.milliseconds===t.milliseconds}function DS(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function ASe(e,t){return{years:e.years-t.years,months:e.months-t.months,days:e.days-t.days,milliseconds:e.milliseconds-t.milliseconds}}function RSe(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}function OSe(e){return kd(e)/365}function _Se(e){return kd(e)/30}function kd(e){return vo(e)/864e5}function vo(e){return e.years*(365*864e5)+e.months*(30*864e5)+e.days*864e5+e.milliseconds}function PS(e,t){let n=null;for(let r=0;r<rL.length;r+=1){let i=rL[r];if(t[i]){let o=e[i]/t[i];if(!Pv(o)||n!==null&&n!==o)return null;n=o}else if(e[i])return null}return n}function MS(e){let t=e.milliseconds;if(t){if(t%1e3!==0)return{unit:"millisecond",value:t};if(t%(1e3*60)!==0)return{unit:"second",value:t/1e3};if(t%(1e3*60*60)!==0)return{unit:"minute",value:t/(1e3*60)};if(t)return{unit:"hour",value:t/(1e3*60*60)}}return e.days?e.specifiedWeeks&&e.days%7===0?{unit:"week",value:e.days/7}:{unit:"day",value:e.days}:e.months?{unit:"month",value:e.months}:e.years?{unit:"year",value:e.years}:{unit:"millisecond",value:0}}function Js(e,t,n){if(e===t)return!0;let r=e.length,i;if(r!==t.length)return!1;for(i=0;i<r;i+=1)if(!(n?n(e[i],t[i]):e[i]===t[i]))return!1;return!0}const ISe=["sun","mon","tue","wed","thu","fri","sat"];function Mv(e,t){let n=nl(e);return n[2]+=t*7,Wr(n)}function xn(e,t){let n=nl(e);return n[2]+=t,Wr(n)}function el(e,t){let n=nl(e);return n[6]+=t,Wr(n)}function oL(e,t){return tl(e,t)/7}function tl(e,t){return(t.valueOf()-e.valueOf())/(1e3*60*60*24)}function DSe(e,t){return(t.valueOf()-e.valueOf())/(1e3*60*60)}function PSe(e,t){return(t.valueOf()-e.valueOf())/(1e3*60)}function MSe(e,t){return(t.valueOf()-e.valueOf())/1e3}function NSe(e,t){let n=Bt(e),r=Bt(t);return{years:0,months:0,days:Math.round(tl(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}function LSe(e,t){let n=Nv(e,t);return n!==null&&n%7===0?n/7:null}function Nv(e,t){return rl(e)===rl(t)?Math.round(tl(e,t)):null}function Bt(e){return Wr([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function FSe(e){return Wr([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}function jSe(e){return Wr([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}function zSe(e){return Wr([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}function BSe(e,t,n){let r=e.getUTCFullYear(),i=NS(e,r,t,n);if(i<1)return NS(e,r-1,t,n);let o=NS(e,r+1,t,n);return o>=1?Math.min(i,o):i}function NS(e,t,n,r){let i=Wr([t,0,1+HSe(t,n,r)]),o=Bt(e),a=Math.round(tl(i,o));return Math.floor(a/7)+1}function HSe(e,t,n){let r=7+t-n;return-((7+Wr([e,0,r]).getUTCDay()-t)%7)+r-1}function aL(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function sL(e){return new Date(e[0],e[1]||0,e[2]==null?1:e[2],e[3]||0,e[4]||0,e[5]||0)}function nl(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function Wr(e){return e.length===1&&(e=e.concat([0])),new Date(Date.UTC(...e))}function lL(e){return!isNaN(e.valueOf())}function rl(e){return e.getUTCHours()*1e3*60*60+e.getUTCMinutes()*1e3*60+e.getUTCSeconds()*1e3+e.getUTCMilliseconds()}function uL(e,t,n=!1){let r=e.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(t==null?r=r.replace("Z",""):t!==0&&(r=r.replace("Z",FS(t,!0)))),r}function bh(e){return e.toISOString().replace(/T.*$/,"")}function LS(e){return e.toISOString().match(/^\d{4}-\d{2}/)[0]}function USe(e){return Ed(e.getUTCHours(),2)+":"+Ed(e.getUTCMinutes(),2)+":"+Ed(e.getUTCSeconds(),2)}function FS(e,t=!1){let n=e<0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=Math.round(r%60);return t?`${n+Ed(i,2)}:${Ed(o,2)}`:`GMT${n}${i}${o?`:${Ed(o,2)}`:""}`}function Le(e,t,n){let r,i;return function(...o){if(!r)i=e.apply(this,o);else if(!Js(r,o)){n&&n(i);let a=e.apply(this,o);(!t||!t(a,i))&&(i=a)}return r=o,i}}function Lv(e,t,n){let r,i;return o=>{if(!r)i=e.call(this,o);else if(!pi(r,o)){n&&n(i);let a=e.call(this,o);(!t||!t(a,i))&&(i=a)}return r=o,i}}const cL={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Fv={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},jv=/\s*([ap])\.?m\.?/i,WSe=/,/g,VSe=/\s+/g,GSe=/\u200e/g,qSe=/UTC|GMT/;class YSe{constructor(t){let n={},r={},i=0;for(let o in t)o in cL?(r[o]=t[o],i=Math.max(cL[o],i)):(n[o]=t[o],o in Fv&&(i=Math.max(Fv[o],i)));this.standardDateProps=n,this.extendedSettings=r,this.severity=i,this.buildFormattingFunc=Le(dL)}format(t,n){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,n)(t)}formatRange(t,n,r,i){let{standardDateProps:o,extendedSettings:a}=this,s=e8e(t.marker,n.marker,r.calendarSystem);if(!s)return this.format(t,r);let l=s;l>1&&(o.year==="numeric"||o.year==="2-digit")&&(o.month==="numeric"||o.month==="2-digit")&&(o.day==="numeric"||o.day==="2-digit")&&(l=1);let c=this.format(t,r),d=this.format(n,r);if(c===d)return c;let f=t8e(o,l),g=dL(f,a,r),p=g(t),m=g(n),v=n8e(c,p,d,m),w=a.separator||i||r.defaultSeparator||"";return v?v.before+p+w+m+v.after:c+w+d}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 dL(e,t,n){let r=Object.keys(e).length;return r===1&&e.timeZoneName==="short"?i=>FS(i.timeZoneOffset):r===0&&t.week?i=>JSe(n.computeWeekNumber(i.marker),n.weekText,n.weekTextLong,n.locale,t.week):KSe(e,t,n)}function KSe(e,t,n){e=Object.assign({},e),t=Object.assign({},t),ZSe(e,t),e.timeZone="UTC";let r=new Intl.DateTimeFormat(n.locale.codes,e),i;if(t.omitZeroMinute){let o=Object.assign({},e);delete o.minute,i=new Intl.DateTimeFormat(n.locale.codes,o)}return o=>{let{marker:a}=o,s;i&&!a.getUTCMinutes()?s=i:s=r;let l=s.format(a);return QSe(l,o,e,t,n)}}function ZSe(e,t){e.timeZoneName&&(e.hour||(e.hour="2-digit"),e.minute||(e.minute="2-digit")),e.timeZoneName==="long"&&(e.timeZoneName="short"),t.omitZeroMinute&&(e.second||e.millisecond)&&delete t.omitZeroMinute}function QSe(e,t,n,r,i){return e=e.replace(GSe,""),n.timeZoneName==="short"&&(e=XSe(e,i.timeZone==="UTC"||t.timeZoneOffset==null?"UTC":FS(t.timeZoneOffset))),r.omitCommas&&(e=e.replace(WSe,"").trim()),r.omitZeroMinute&&(e=e.replace(":00","")),r.meridiem===!1?e=e.replace(jv,"").trim():r.meridiem==="narrow"?e=e.replace(jv,(o,a)=>a.toLocaleLowerCase()):r.meridiem==="short"?e=e.replace(jv,(o,a)=>`${a.toLocaleLowerCase()}m`):r.meridiem==="lowercase"&&(e=e.replace(jv,o=>o.toLocaleLowerCase())),e=e.replace(VSe," "),e=e.trim(),e}function XSe(e,t){let n=!1;return e=e.replace(qSe,()=>(n=!0,t)),n||(e+=` ${t}`),e}function JSe(e,t,n,r,i){let o=[];return i==="long"?o.push(n):(i==="short"||i==="narrow")&&o.push(t),(i==="long"||i==="short")&&o.push(" "),o.push(r.simpleNumberFormat.format(e)),r.options.direction==="rtl"&&o.reverse(),o.join("")}function e8e(e,t,n){return n.getMarkerYear(e)!==n.getMarkerYear(t)?5:n.getMarkerMonth(e)!==n.getMarkerMonth(t)?4:n.getMarkerDay(e)!==n.getMarkerDay(t)?2:rl(e)!==rl(t)?1:0}function t8e(e,t){let n={};for(let r in e)(!(r in Fv)||Fv[r]<=t)&&(n[r]=e[r]);return n}function n8e(e,t,n,r){let i=0;for(;i<e.length;){let o=e.indexOf(t,i);if(o===-1)break;let a=e.substr(0,o);i=o+t.length;let s=e.substr(i),l=0;for(;l<n.length;){let c=n.indexOf(r,l);if(c===-1)break;let d=n.substr(0,c);l=c+r.length;let f=n.substr(l);if(a===d&&s===f)return{before:a,after:s}}}return null}function fL(e,t){let n=t.markerToArray(e.marker);return{marker:e.marker,timeZoneOffset:e.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 zv(e,t,n,r){let i=fL(e,n.calendarSystem),o=t?fL(t,n.calendarSystem):null;return{date:i,start:i,end:o,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}class r8e{constructor(t){this.cmdStr=t}format(t,n,r){return n.cmdFormatter(this.cmdStr,zv(t,null,n,r))}formatRange(t,n,r,i){return r.cmdFormatter(this.cmdStr,zv(t,n,r,i))}}class i8e{constructor(t){this.func=t}format(t,n,r){return this.func(zv(t,null,n,r))}formatRange(t,n,r,i){return this.func(zv(t,n,r,i))}}function Ot(e){return typeof e=="object"&&e?new YSe(e):typeof e=="string"?new r8e(e):typeof e=="function"?new i8e(e):null}const pL={navLinkDayClick:re,navLinkWeekClick:re,duration:yt,bootstrapFontAwesome:re,buttonIcons:re,customButtons:re,defaultAllDayEventDuration:yt,defaultTimedEventDuration:yt,nextDayThreshold:yt,scrollTime:yt,scrollTimeReset:Boolean,slotMinTime:yt,slotMaxTime:yt,dayPopoverFormat:Ot,slotDuration:yt,snapDuration:yt,headerToolbar:re,footerToolbar:re,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:Ot,dayHeaderClassNames:re,dayHeaderContent:re,dayHeaderDidMount:re,dayHeaderWillUnmount:re,dayCellClassNames:re,dayCellContent:re,dayCellDidMount:re,dayCellWillUnmount:re,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:re,weekNumbers:Boolean,weekNumberClassNames:re,weekNumberContent:re,weekNumberDidMount:re,weekNumberWillUnmount:re,editable:Boolean,viewClassNames:re,viewDidMount:re,viewWillUnmount:re,nowIndicator:Boolean,nowIndicatorClassNames:re,nowIndicatorContent:re,nowIndicatorDidMount:re,nowIndicatorWillUnmount:re,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:re,locale:re,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:re,eventOrder:xSe,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:re,contentHeight:re,direction:String,weekNumberFormat:Ot,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:re,initialDate:re,now:re,eventDataTransform:re,stickyHeaderDates:re,stickyFooterScrollbar:re,viewHeight:re,defaultAllDay:Boolean,eventSourceFailure:re,eventSourceSuccess:re,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:re,eventConstraint:re,eventAllow:re,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:re,eventContent:re,eventDidMount:re,eventWillUnmount:re,selectConstraint:re,selectOverlap:re,selectAllow:re,droppable:Boolean,unselectCancel:String,slotLabelFormat:re,slotLaneClassNames:re,slotLaneContent:re,slotLaneDidMount:re,slotLaneWillUnmount:re,slotLabelClassNames:re,slotLabelContent:re,slotLabelDidMount:re,slotLabelWillUnmount:re,dayMaxEvents:re,dayMaxEventRows:re,dayMinWidth:Number,slotLabelInterval:yt,allDayText:String,allDayClassNames:re,allDayContent:re,allDayDidMount:re,allDayWillUnmount:re,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:Ot,rerenderDelay:Number,moreLinkText:re,moreLinkHint:re,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:re,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:yt,hiddenDays:re,fixedWeekCount:Boolean,validRange:re,visibleRange:re,titleFormat:re,eventInteractive:Boolean,noEventsText:String,viewHint:re,navLinkHint:re,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:re,moreLinkClassNames:re,moreLinkContent:re,moreLinkDidMount:re,moreLinkWillUnmount:re,monthStartFormat:Ot,handleCustomRendering:re,customRenderingMetaMap:re,customRenderingReplacesEl:Boolean},xh={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"}},hL={datesSet:re,eventsSet:re,eventAdd:re,eventChange:re,eventRemove:re,windowResize:re,eventClick:re,eventMouseEnter:re,eventMouseLeave:re,select:re,unselect:re,loading:re,_unmount:re,_beforeprint:re,_afterprint:re,_noEventDrop:re,_noEventResize:re,_resize:re,_scrollRequest:re},gL={buttonText:re,buttonHints:re,views:re,plugins:re,initialEvents:re,events:re,eventSources:re},yu={headerToolbar:bu,footerToolbar:bu,buttonText:bu,buttonHints:bu,buttonIcons:bu,dateIncrement:bu,plugins:Bv,events:Bv,eventSources:Bv,resources:Bv};function bu(e,t){return typeof e=="object"&&typeof t=="object"&&e&&t?pi(e,t):e===t}function Bv(e,t){return Array.isArray(e)&&Array.isArray(t)?Js(e,t):e===t}const o8e={type:String,component:re,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:re,usesMinMaxTime:Boolean,classNames:re,content:re,didMount:re,willUnmount:re};function jS(e){return BS(e,yu)}function zS(e,t){let n={},r={};for(let i in t)i in e&&(n[i]=t[i](e[i]));for(let i in e)i in t||(r[i]=e[i]);return{refined:n,extra:r}}function re(e){return e}const{hasOwnProperty:Hv}=Object.prototype;function BS(e,t){let n={};if(t){for(let r in t)if(t[r]===bu){let i=[];for(let o=e.length-1;o>=0;o-=1){let a=e[o][r];if(typeof a=="object"&&a)i.unshift(a);else if(a!==void 0){n[r]=a;break}}i.length&&(n[r]=BS(i))}}for(let r=e.length-1;r>=0;r-=1){let i=e[r];for(let o in i)o in n||(n[o]=i[o])}return n}function Td(e,t){let n={};for(let r in e)t(e[r],r)&&(n[r]=e[r]);return n}function xu(e,t){let n={};for(let r in e)n[r]=t(e[r],r);return n}function mL(e){let t={};for(let n of e)t[n]=!0;return t}function HS(e){let t=[];for(let n in e)t.push(e[n]);return t}function pi(e,t){if(e===t)return!0;for(let n in e)if(Hv.call(e,n)&&!(n in t))return!1;for(let n in t)if(Hv.call(t,n)&&e[n]!==t[n])return!1;return!0}const a8e=/^on[A-Z]/;function s8e(e,t){const n=US(e,t);for(let r of n)if(!a8e.test(r))return!1;return!0}function US(e,t){let n=[];for(let r in e)Hv.call(e,r)&&(r in t||n.push(r));for(let r in t)Hv.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}function WS(e,t,n={}){if(e===t)return!0;for(let r in t)if(!(r in e&&l8e(e[r],t[r],n[r])))return!1;for(let r in e)if(!(r in t))return!1;return!0}function l8e(e,t,n){return e===t||n===!0?!0:n?n(e,t):!1}function u8e(e,t=0,n,r=1){let i=[];n==null&&(n=Object.keys(e).length);for(let o=t;o<n;o+=r){let a=e[o];a!==void 0&&i.push(a)}return i}let vL={};function c8e(e,t){vL[e]=t}function d8e(e){return new vL[e]}class f8e{getMarkerYear(t){return t.getUTCFullYear()}getMarkerMonth(t){return t.getUTCMonth()}getMarkerDay(t){return t.getUTCDate()}arrayToMarker(t){return Wr(t)}markerToArray(t){return nl(t)}}c8e("gregory",f8e);const p8e=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function h8e(e){let t=p8e.exec(e);if(t){let n=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?+`0.${t[12]}`*1e3:0));if(lL(n)){let r=null;return t[13]&&(r=(t[15]==="-"?-1:1)*(Number(t[16]||0)*60+Number(t[18]||0))),{marker:n,isTimeUnspecified:!t[6],timeZoneOffset:r}}}return null}class g8e{constructor(t){let n=this.timeZone=t.timeZone,r=n!=="local"&&n!=="UTC";t.namedTimeZoneImpl&&r&&(this.namedTimeZoneImpl=new t.namedTimeZoneImpl(n)),this.canComputeOffset=!!(!r||this.namedTimeZoneImpl),this.calendarSystem=d8e(t.calendarSystem),this.locale=t.locale,this.weekDow=t.locale.week.dow,this.weekDoy=t.locale.week.doy,t.weekNumberCalculation==="ISO"&&(this.weekDow=1,this.weekDoy=4),typeof t.firstDay=="number"&&(this.weekDow=t.firstDay),typeof t.weekNumberCalculation=="function"&&(this.weekNumberFunc=t.weekNumberCalculation),this.weekText=t.weekText!=null?t.weekText:t.locale.options.weekText,this.weekTextLong=(t.weekTextLong!=null?t.weekTextLong:t.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=t.cmdFormatter,this.defaultSeparator=t.defaultSeparator}createMarker(t){let n=this.createMarkerMeta(t);return n===null?null:n.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker(new Date().valueOf()):Wr(aL(new Date))}createMarkerMeta(t){if(typeof t=="string")return this.parse(t);let n=null;return typeof t=="number"?n=this.timestampToMarker(t):t instanceof Date?(t=t.valueOf(),isNaN(t)||(n=this.timestampToMarker(t))):Array.isArray(t)&&(n=Wr(t)),n===null||!lL(n)?null:{marker:n,isTimeUnspecified:!1,forcedTzo:null}}parse(t){let n=h8e(t);if(n===null)return null;let{marker:r}=n,i=null;return n.timeZoneOffset!==null&&(this.canComputeOffset?r=this.timestampToMarker(r.valueOf()-n.timeZoneOffset*60*1e3):i=n.timeZoneOffset),{marker:r,isTimeUnspecified:n.isTimeUnspecified,forcedTzo:i}}getYear(t){return this.calendarSystem.getMarkerYear(t)}getMonth(t){return this.calendarSystem.getMarkerMonth(t)}add(t,n){let r=this.calendarSystem.markerToArray(t);return r[0]+=n.years,r[1]+=n.months,r[2]+=n.days,r[6]+=n.milliseconds,this.calendarSystem.arrayToMarker(r)}subtract(t,n){let r=this.calendarSystem.markerToArray(t);return r[0]-=n.years,r[1]-=n.months,r[2]-=n.days,r[6]-=n.milliseconds,this.calendarSystem.arrayToMarker(r)}addYears(t,n){let r=this.calendarSystem.markerToArray(t);return r[0]+=n,this.calendarSystem.arrayToMarker(r)}addMonths(t,n){let r=this.calendarSystem.markerToArray(t);return r[1]+=n,this.calendarSystem.arrayToMarker(r)}diffWholeYears(t,n){let{calendarSystem:r}=this;return rl(t)===rl(n)&&r.getMarkerDay(t)===r.getMarkerDay(n)&&r.getMarkerMonth(t)===r.getMarkerMonth(n)?r.getMarkerYear(n)-r.getMarkerYear(t):null}diffWholeMonths(t,n){let{calendarSystem:r}=this;return rl(t)===rl(n)&&r.getMarkerDay(t)===r.getMarkerDay(n)?r.getMarkerMonth(n)-r.getMarkerMonth(t)+(r.getMarkerYear(n)-r.getMarkerYear(t))*12:null}greatestWholeUnit(t,n){let r=this.diffWholeYears(t,n);return r!==null?{unit:"year",value:r}:(r=this.diffWholeMonths(t,n),r!==null?{unit:"month",value:r}:(r=LSe(t,n),r!==null?{unit:"week",value:r}:(r=Nv(t,n),r!==null?{unit:"day",value:r}:(r=DSe(t,n),Pv(r)?{unit:"hour",value:r}:(r=PSe(t,n),Pv(r)?{unit:"minute",value:r}:(r=MSe(t,n),Pv(r)?{unit:"second",value:r}:{unit:"millisecond",value:n.valueOf()-t.valueOf()}))))))}countDurationsBetween(t,n,r){let i;return r.years&&(i=this.diffWholeYears(t,n),i!==null)?i/OSe(r):r.months&&(i=this.diffWholeMonths(t,n),i!==null)?i/_Se(r):r.days&&(i=Nv(t,n),i!==null)?i/kd(r):(n.valueOf()-t.valueOf())/vo(r)}startOf(t,n){return n==="year"?this.startOfYear(t):n==="month"?this.startOfMonth(t):n==="week"?this.startOfWeek(t):n==="day"?Bt(t):n==="hour"?FSe(t):n==="minute"?jSe(t):n==="second"?zSe(t):null}startOfYear(t){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(t)])}startOfMonth(t){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(t),this.calendarSystem.getMarkerMonth(t)])}startOfWeek(t){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(t),this.calendarSystem.getMarkerMonth(t),t.getUTCDate()-(t.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(t){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(t)):BSe(t,this.weekDow,this.weekDoy)}format(t,n,r={}){return n.format({marker:t,timeZoneOffset:r.forcedTzo!=null?r.forcedTzo:this.offsetForMarker(t)},this)}formatRange(t,n,r,i={}){return i.isEndExclusive&&(n=el(n,-1)),r.formatRange({marker:t,timeZoneOffset:i.forcedStartTzo!=null?i.forcedStartTzo:this.offsetForMarker(t)},{marker:n,timeZoneOffset:i.forcedEndTzo!=null?i.forcedEndTzo:this.offsetForMarker(n)},this,i.defaultSeparator)}formatIso(t,n={}){let r=null;return n.omitTimeZoneOffset||(n.forcedTzo!=null?r=n.forcedTzo:r=this.offsetForMarker(t)),uL(t,r,n.omitTime)}timestampToMarker(t){return this.timeZone==="local"?Wr(aL(new Date(t))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(t):Wr(this.namedTimeZoneImpl.timestampToArray(t))}offsetForMarker(t){return this.timeZone==="local"?-sL(nl(t)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(nl(t)):null}toDate(t,n){return this.timeZone==="local"?sL(nl(t)):this.timeZone==="UTC"?new Date(t.valueOf()):this.namedTimeZoneImpl?new Date(t.valueOf()-this.namedTimeZoneImpl.offsetForArray(nl(t))*1e3*60):new Date(t.valueOf()-(n||0))}}class wh{constructor(t){this.iconOverrideOption&&this.setIconOverride(t[this.iconOverrideOption])}setIconOverride(t){let n,r;if(typeof t=="object"&&t){n=Object.assign({},this.iconClasses);for(r in t)n[r]=this.applyIconOverridePrefix(t[r]);this.iconClasses=n}else t===!1&&(this.iconClasses={})}applyIconOverridePrefix(t){let n=this.iconOverridePrefix;return n&&t.indexOf(n)!==0&&(t=n+t),t}getClass(t){return this.classes[t]||""}getIconClass(t,n){let r;return n&&this.rtlIconClasses?r=this.rtlIconClasses[t]||this.iconClasses[t]:r=this.iconClasses[t],r?`${this.baseIconClass} ${r}`:""}getCustomButtonIconClass(t){let n;return this.iconOverrideCustomButtonOption&&(n=t[this.iconOverrideCustomButtonOption],n)?`${this.baseIconClass} ${this.applyIconOverridePrefix(n)}`:""}}wh.prototype.classes={},wh.prototype.iconClasses={},wh.prototype.baseIconClass="",wh.prototype.iconOverridePrefix="";function yL(e){e();let t=qe.debounceRendering,n=[];function r(i){n.push(i)}for(qe.debounceRendering=r,mh(F(m8e,{}),document.createElement("div"));n.length;)n.shift()();qe.debounceRendering=t}class m8e extends fi{render(){return F("div",{})}componentDidMount(){this.setState({})}}function bL(e){let t=Y4e(e),n=t.Provider;return t.Provider=function(){let r=!this.getChildContext,i=n.apply(this,arguments);if(r){let o=[];this.shouldComponentUpdate=a=>{this.props.value!==a.value&&o.forEach(s=>{s.context=a.value,s.forceUpdate()})},this.sub=a=>{o.push(a);let s=a.componentWillUnmount;a.componentWillUnmount=()=>{o.splice(o.indexOf(a),1),s&&s.call(a)}}}return i},t}class v8e{constructor(t,n,r,i){this.execFunc=t,this.emitter=n,this.scrollTime=r,this.scrollTimeReset=i,this.handleScrollRequest=o=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},o),this.drain()},n.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(t){t&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const Fa=bL({});function y8e(e,t,n,r,i,o,a,s,l,c,d,f,g){return{dateEnv:i,options:n,pluginHooks:a,emitter:c,dispatch:s,getCurrentData:l,calendarApi:d,viewSpec:e,viewApi:t,dateProfileGenerator:r,theme:o,isRtl:n.direction==="rtl",addResizeHandler(p){c.on("_resize",p)},removeResizeHandler(p){c.off("_resize",p)},createScrollResponder(p){return new v8e(p,c,yt(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:f,unregisterInteractiveComponent:g}}class wu extends fi{shouldComponentUpdate(t,n){return this.debug&&console.log(US(t,this.props),US(n,this.state)),!WS(this.props,t,this.propEquality)||!WS(this.state,n,this.stateEquality)}safeSetState(t){WS(this.state,Object.assign(Object.assign({},this.state),t),this.stateEquality)||this.setState(t)}}wu.addPropsEquality=b8e,wu.addStateEquality=x8e,wu.contextType=Fa,wu.prototype.propEquality={},wu.prototype.stateEquality={};class bt extends wu{}bt.contextType=Fa;function b8e(e){let t=Object.create(this.prototype.propEquality);Object.assign(t,e),this.prototype.propEquality=t}function x8e(e){let t=Object.create(this.prototype.stateEquality);Object.assign(t,e),this.prototype.stateEquality=t}function Vo(e,t){typeof e=="function"?e(t):e&&(e.current=t)}class VS extends bt{constructor(){super(...arguments),this.id=vu(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=t=>{this.props.elRef&&Vo(this.props.elRef,t)}}render(){const{props:t,context:n}=this,{options:r}=n,{customGenerator:i,defaultGenerator:o,renderProps:a}=t,s=wL(t);let l=!1,c,d=[],f;if(i!=null){const g=typeof i=="function"?i(a,F):i;if(g===!0)l=!0;else if(r.handleCustomRendering)f=g;else{const p=typeof g=="object";p&&"html"in g?s.dangerouslySetInnerHTML={__html:g.html}:p&&"domNodes"in g?d=Array.prototype.slice.call(g.domNodes):c=g}}else l=!xL(t.generatorName,r);return l&&o&&(c=o(a)),this.queuedDomNodes=d,this.currentGeneratorMeta=f,F(t.elTag,s,c)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(t){var n;const{props:r,context:i}=this,{handleCustomRendering:o,customRenderingMetaMap:a}=i.options;if(o){const s=(n=this.currentGeneratorMeta)!==null&&n!==void 0?n:a==null?void 0:a[r.generatorName];s&&o(Object.assign({id:this.id,isActive:t,containerEl:this.base,reportNewContainerEl:this.handleEl,generatorMeta:s},r))}}applyQueueudDomNodes(){const{queuedDomNodes:t,currentDomNodes:n}=this,r=this.base;if(!Js(t,n)){n.forEach(fSe);for(let i of t)r.appendChild(i);this.currentDomNodes=t}}}VS.addPropsEquality({elClasses:Js,elStyle:pi,elAttrs:s8e,renderProps:pi});function xL(e,t){var n;return!!(t.handleCustomRendering&&e&&(!((n=t.customRenderingMetaMap)===null||n===void 0)&&n[e]))}function wL(e,t){const n=Object.assign(Object.assign({},e.elAttrs),{ref:e.elRef});return(e.elClasses||t)&&(n.className=(e.elClasses||[]).concat(t||[]).concat(n.className||[]).filter(Boolean).join(" ")),e.elStyle&&(n.style=e.elStyle),n}const SL=bL(0);class hr extends fi{constructor(){super(...arguments),this.InnerContent=w8e.bind(void 0,this)}render(){const{props:t}=this,n=S8e(t.classNameGenerator,t.renderProps);if(t.children){const r=wL(t,n),i=t.children(this.InnerContent,t.renderProps,r);return t.elTag?F(t.elTag,r,i):i}else return F(VS,Object.assign(Object.assign({},t),{elTag:t.elTag||"div",elClasses:(t.elClasses||[]).concat(n),renderId:this.context}))}componentDidMount(){var t,n;(n=(t=this.props).didMount)===null||n===void 0||n.call(t,Object.assign(Object.assign({},this.props.renderProps),{el:this.base}))}componentWillUnmount(){var t,n;(n=(t=this.props).willUnmount)===null||n===void 0||n.call(t,Object.assign(Object.assign({},this.props.renderProps),{el:this.base}))}}hr.contextType=SL;function w8e(e,t){const n=e.props;return F(VS,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:e.context},t))}function S8e(e,t){const n=typeof e=="function"?e(t):e||[];return typeof n=="string"?[n]:n}class Ad extends bt{render(){let{props:t,context:n}=this,{options:r}=n,i={view:n.viewApi};return F(hr,Object.assign({},t,{elTag:t.elTag||"div",elClasses:[...$L(t.viewSpec),...t.elClasses||[]],renderProps:i,classNameGenerator:r.viewClassNames,generatorName:void 0,didMount:r.viewDidMount,willUnmount:r.viewWillUnmount}),()=>t.children)}}function $L(e){return[`fc-${e.type}-view`,"fc-view"]}function $8e(e,t){let n=null,r=null;return e.start&&(n=t.createMarker(e.start)),e.end&&(r=t.createMarker(e.end)),!n&&!r||n&&r&&r<n?null:{start:n,end:r}}function CL(e,t){let n=[],{start:r}=t,i,o;for(e.sort(C8e),i=0;i<e.length;i+=1)o=e[i],o.start>r&&n.push({start:r,end:o.start}),o.end>r&&(r=o.end);return r<t.end&&n.push({start:r,end:t.end}),n}function C8e(e,t){return e.start.valueOf()-t.start.valueOf()}function Go(e,t){let{start:n,end:r}=e,i=null;return t.start!==null&&(n===null?n=t.start:n=new Date(Math.max(n.valueOf(),t.start.valueOf()))),t.end!=null&&(r===null?r=t.end:r=new Date(Math.min(r.valueOf(),t.end.valueOf()))),(n===null||r===null||n<r)&&(i={start:n,end:r}),i}function E8e(e,t){return(e.end===null||t.start===null||e.end>t.start)&&(e.start===null||t.end===null||e.start<t.end)}function ja(e,t){return(e.start===null||t>=e.start)&&(e.end===null||t<e.end)}function k8e(e,t){return t.start!=null&&e<t.start?t.start:t.end!=null&&e>=t.end?new Date(t.end.valueOf()-1):e}function EL(e){let t=Math.floor(tl(e.start,e.end))||1,n=Bt(e.start),r=xn(n,t);return{start:n,end:r}}function GS(e,t=yt(0)){let n=null,r=null;if(e.end){r=Bt(e.end);let i=e.end.valueOf()-r.valueOf();i&&i>=vo(t)&&(r=xn(r,1))}return e.start&&(n=Bt(e.start),r&&r<=n&&(r=xn(n,1))),{start:n,end:r}}function T8e(e){let t=GS(e);return tl(t.start,t.end)>1}function Uv(e,t,n,r){return r==="year"?yt(n.diffWholeYears(e,t),"year"):r==="month"?yt(n.diffWholeMonths(e,t),"month"):NSe(e,t)}function A8e(e,t){switch(t.type){case"CHANGE_DATE":return t.dateMarker;default:return e}}function R8e(e,t){let n=e.initialDate;return n!=null?t.createMarker(n):Sh(e.now,t)}function Sh(e,t){return typeof e=="function"&&(e=e()),e==null?t.createNowMarker():t.createMarker(e)}class qS{constructor(t){this.props=t,this.nowDate=Sh(t.nowInput,t.dateEnv),this.initHiddenDays()}buildPrev(t,n,r){let{dateEnv:i}=this.props,o=i.subtract(i.startOf(n,t.currentRangeUnit),t.dateIncrement);return this.build(o,-1,r)}buildNext(t,n,r){let{dateEnv:i}=this.props,o=i.add(i.startOf(n,t.currentRangeUnit),t.dateIncrement);return this.build(o,1,r)}build(t,n,r=!0){let{props:i}=this,o,a,s,l,c,d;return o=this.buildValidRange(),o=this.trimHiddenDays(o),r&&(t=k8e(t,o)),a=this.buildCurrentRangeInfo(t,n),s=/^(year|month|week|day)$/.test(a.unit),l=this.buildRenderRange(this.trimHiddenDays(a.range),a.unit,s),l=this.trimHiddenDays(l),c=l,i.showNonCurrentDates||(c=Go(c,a.range)),c=this.adjustActiveRange(c),c=Go(c,o),d=E8e(a.range,o),ja(l,t)||(t=l.start),{currentDate:t,validRange:o,currentRange:a.range,currentRangeUnit:a.unit,isRangeAllDay:s,activeRange:c,renderRange:l,slotMinTime:i.slotMinTime,slotMaxTime:i.slotMaxTime,isValid:d,dateIncrement:this.buildDateIncrement(a.duration)}}buildValidRange(){let t=this.props.validRangeInput,n=typeof t=="function"?t.call(this.props.calendarApi,this.nowDate):t;return this.refineRange(n)||{start:null,end:null}}buildCurrentRangeInfo(t,n){let{props:r}=this,i=null,o=null,a=null,s;return r.duration?(i=r.duration,o=r.durationUnit,a=this.buildRangeFromDuration(t,n,i,o)):(s=this.props.dayCount)?(o="day",a=this.buildRangeFromDayCount(t,n,s)):(a=this.buildCustomVisibleRange(t))?o=r.dateEnv.greatestWholeUnit(a.start,a.end).unit:(i=this.getFallbackDuration(),o=MS(i).unit,a=this.buildRangeFromDuration(t,n,i,o)),{duration:i,unit:o,range:a}}getFallbackDuration(){return yt({day:1})}adjustActiveRange(t){let{dateEnv:n,usesMinMaxTime:r,slotMinTime:i,slotMaxTime:o}=this.props,{start:a,end:s}=t;return r&&(kd(i)<0&&(a=Bt(a),a=n.add(a,i)),kd(o)>1&&(s=Bt(s),s=xn(s,-1),s=n.add(s,o))),{start:a,end:s}}buildRangeFromDuration(t,n,r,i){let{dateEnv:o,dateAlignment:a}=this.props,s,l,c;if(!a){let{dateIncrement:f}=this.props;f&&vo(f)<vo(r)?a=MS(f).unit:a=i}kd(r)<=1&&this.isHiddenDay(s)&&(s=this.skipHiddenDays(s,n),s=Bt(s));function d(){s=o.startOf(t,a),l=o.add(s,r),c={start:s,end:l}}return d(),this.trimHiddenDays(c)||(t=this.skipHiddenDays(t,n),d()),c}buildRangeFromDayCount(t,n,r){let{dateEnv:i,dateAlignment:o}=this.props,a=0,s=t,l;o&&(s=i.startOf(s,o)),s=Bt(s),s=this.skipHiddenDays(s,n),l=s;do l=xn(l,1),this.isHiddenDay(l)||(a+=1);while(a<r);return{start:s,end:l}}buildCustomVisibleRange(t){let{props:n}=this,r=n.visibleRangeInput,i=typeof r=="function"?r.call(n.calendarApi,n.dateEnv.toDate(t)):r,o=this.refineRange(i);return o&&(o.start==null||o.end==null)?null:o}buildRenderRange(t,n,r){return t}buildDateIncrement(t){let{dateIncrement:n}=this.props,r;return n||((r=this.props.dateAlignment)?yt(1,r):t||yt({days:1}))}refineRange(t){if(t){let n=$8e(t,this.props.dateEnv);return n&&(n=GS(n)),n}return null}initHiddenDays(){let t=this.props.hiddenDays||[],n=[],r=0,i;for(this.props.weekends===!1&&t.push(0,6),i=0;i<7;i+=1)(n[i]=t.indexOf(i)!==-1)||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n}trimHiddenDays(t){let{start:n,end:r}=t;return n&&(n=this.skipHiddenDays(n)),r&&(r=this.skipHiddenDays(r,-1,!0)),n==null||r==null||n<r?{start:n,end:r}:null}isHiddenDay(t){return t instanceof Date&&(t=t.getUTCDay()),this.isHiddenDayHash[t]}skipHiddenDays(t,n=1,r=!1){for(;this.isHiddenDayHash[(t.getUTCDay()+(r?n:0)+7)%7];)t=xn(t,n);return t}}function YS(e,t,n,r){return{instanceId:vu(),defId:e,range:t,forcedStartTzo:n??null,forcedEndTzo:r??null}}function O8e(e,t,n,r){for(let i=0;i<r.length;i+=1){let o=r[i].parse(e,n);if(o){let{allDay:a}=e;return a==null&&(a=t,a==null&&(a=o.allDayGuess,a==null&&(a=!1))),{allDay:a,duration:o.duration,typeData:o.typeData,typeId:i}}}return null}function $h(e,t,n){let{dateEnv:r,pluginHooks:i,options:o}=n,{defs:a,instances:s}=e;s=Td(s,l=>!a[l.defId].recurringDef);for(let l in a){let c=a[l];if(c.recurringDef){let{duration:d}=c.recurringDef;d||(d=c.allDay?o.defaultAllDayEventDuration:o.defaultTimedEventDuration);let f=_8e(c,d,t,r,i.recurringTypes);for(let g of f){let p=YS(l,{start:g,end:r.add(g,d)});s[p.instanceId]=p}}}return{defs:a,instances:s}}function _8e(e,t,n,r,i){let a=i[e.recurringDef.typeId].expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(a=a.map(Bt)),a}const Wv={id:String,groupId:String,title:String,url:String,interactive:Boolean},kL={start:re,end:re,date:re,allDay:Boolean},I8e=Object.assign(Object.assign(Object.assign({},Wv),kL),{extendedProps:re});function TL(e,t,n,r,i=KS(n),o,a){let{refined:s,extra:l}=AL(e,n,i),c=P8e(t,n),d=O8e(s,c,n.dateEnv,n.pluginHooks.recurringTypes);if(d){let g=ZS(s,l,t?t.sourceId:"",d.allDay,!!d.duration,n,o);return g.recurringDef={typeId:d.typeId,typeData:d.typeData,duration:d.duration},{def:g,instance:null}}let f=D8e(s,c,n,r);if(f){let g=ZS(s,l,t?t.sourceId:"",f.allDay,f.hasEnd,n,o),p=YS(g.defId,f.range,f.forcedStartTzo,f.forcedEndTzo);return a&&g.publicId&&a[g.publicId]&&(p.instanceId=a[g.publicId]),{def:g,instance:p}}return null}function AL(e,t,n=KS(t)){return zS(e,n)}function KS(e){return Object.assign(Object.assign(Object.assign({},Vv),I8e),e.pluginHooks.eventRefiners)}function ZS(e,t,n,r,i,o,a){let s={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:(a&&e.id?a[e.id]:"")||vu(),sourceId:n,allDay:r,hasEnd:i,interactive:e.interactive,ui:Gv(e,o),extendedProps:Object.assign(Object.assign({},e.extendedProps||{}),t)};for(let l of o.pluginHooks.eventDefMemberAdders)Object.assign(s,l(e));return Object.freeze(s.ui.classNames),Object.freeze(s.extendedProps),s}function D8e(e,t,n,r){let{allDay:i}=e,o,a=null,s=!1,l,c=null,d=e.start!=null?e.start:e.date;if(o=n.dateEnv.createMarkerMeta(d),o)a=o.marker;else if(!r)return null;return e.end!=null&&(l=n.dateEnv.createMarkerMeta(e.end)),i==null&&(t!=null?i=t:i=(!o||o.isTimeUnspecified)&&(!l||l.isTimeUnspecified)),i&&a&&(a=Bt(a)),l&&(c=l.marker,i&&(c=Bt(c)),a&&c<=a&&(c=null)),c?s=!0:r||(s=n.options.forceEventDuration||!1,c=n.dateEnv.add(a,i?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:i,hasEnd:s,range:{start:a,end:c},forcedStartTzo:o?o.forcedTzo:null,forcedEndTzo:l?l.forcedTzo:null}}function P8e(e,t){let n=null;return e&&(n=e.defaultAllDay),n==null&&(n=t.options.defaultAllDay),n}function Ch(e,t,n,r,i,o){let a=za(),s=KS(n);for(let l of e){let c=TL(l,t,n,r,s,i,o);c&&QS(c,a)}return a}function QS(e,t=za()){return t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function M8e(e,t){let n=e.instances[t];if(n){let r=e.defs[n.defId],i=JS(e,o=>N8e(r,o));return i.defs[r.defId]=r,i.instances[n.instanceId]=n,i}return za()}function N8e(e,t){return!!(e.groupId&&e.groupId===t.groupId)}function za(){return{defs:{},instances:{}}}function XS(e,t){return{defs:Object.assign(Object.assign({},e.defs),t.defs),instances:Object.assign(Object.assign({},e.instances),t.instances)}}function JS(e,t){let n=Td(e.defs,t),r=Td(e.instances,i=>n[i.defId]);return{defs:n,instances:r}}function L8e(e,t){let{defs:n,instances:r}=e,i={},o={};for(let a in n)t.defs[a]||(i[a]=n[a]);for(let a in r)!t.instances[a]&&i[r[a].defId]&&(o[a]=r[a]);return{defs:i,instances:o}}function F8e(e,t){return Array.isArray(e)?Ch(e,null,t,!0):typeof e=="object"&&e?Ch([e],null,t,!0):e!=null?String(e):null}function RL(e){return Array.isArray(e)?e:typeof e=="string"?e.split(/\s+/):[]}const Vv={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:re,overlap:re,allow:re,className:RL,classNames:RL,color:String,backgroundColor:String,borderColor:String,textColor:String},j8e={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function Gv(e,t){let n=F8e(e.constraint,t);return{display:e.display||null,startEditable:e.startEditable!=null?e.startEditable:e.editable,durationEditable:e.durationEditable!=null?e.durationEditable:e.editable,constraints:n!=null?[n]:[],overlap:e.overlap!=null?e.overlap:null,allows:e.allow!=null?[e.allow]:[],backgroundColor:e.backgroundColor||e.color||"",borderColor:e.borderColor||e.color||"",textColor:e.textColor||"",classNames:(e.className||[]).concat(e.classNames||[])}}function OL(e){return e.reduce(z8e,j8e)}function z8e(e,t){return{display:t.display!=null?t.display:e.display,startEditable:t.startEditable!=null?t.startEditable:e.startEditable,durationEditable:t.durationEditable!=null?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:typeof t.overlap=="boolean"?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}const B8e={id:String,defaultAllDay:Boolean,url:String,format:String,events:re,eventDataTransform:re,success:re,failure:re};function _L(e,t,n=IL(t)){let r;if(typeof e=="string"?r={url:e}:typeof e=="function"||Array.isArray(e)?r={events:e}:typeof e=="object"&&e&&(r=e),r){let{refined:i,extra:o}=zS(r,n),a=H8e(i,t);if(a)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||"",sourceId:vu(),sourceDefId:a.sourceDefId,meta:a.meta,ui:Gv(i,t),extendedProps:o}}return null}function IL(e){return Object.assign(Object.assign(Object.assign({},Vv),B8e),e.pluginHooks.eventSourceRefiners)}function H8e(e,t){let n=t.pluginHooks.eventSourceDefs;for(let r=n.length-1;r>=0;r-=1){let o=n[r].parseMeta(e);if(o)return{sourceDefId:r,meta:o}}return null}function U8e(e,t,n,r,i){switch(t.type){case"RECEIVE_EVENTS":return W8e(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,i);case"RESET_RAW_EVENTS":return V8e(e,n[t.sourceId],t.rawEvents,i);case"ADD_EVENTS":return G8e(e,t.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return XS(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?$h(e,r.activeRange,i):e;case"REMOVE_EVENTS":return L8e(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return ML(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return JS(e,o=>!o.sourceId);case"REMOVE_ALL_EVENTS":return za();default:return e}}function W8e(e,t,n,r,i,o){if(t&&n===t.latestFetchId){let a=Ch(DL(i,t,o),t,o);return r&&(a=$h(a,r,o)),XS(ML(e,t.sourceId),a)}return e}function V8e(e,t,n,r){const{defIdMap:i,instanceIdMap:o}=Y8e(e);let a=Ch(DL(n,t,r),t,r,!1,i,o);return t.fetchRange&&(a=$h(a,t.fetchRange,r)),a}function DL(e,t,n){let r=n.options.eventDataTransform,i=t?t.eventDataTransform:null;return i&&(e=PL(e,i)),r&&(e=PL(e,r)),e}function PL(e,t){let n;if(!t)n=e;else{n=[];for(let r of e){let i=t(r);i?n.push(i):i==null&&n.push(r)}}return n}function G8e(e,t,n,r){return n&&(t=$h(t,n,r)),XS(e,t)}function q8e(e,t,n){let{defs:r}=e,i=xu(e.instances,o=>{let a=r[o.defId];return a.allDay||a.recurringDef?o:Object.assign(Object.assign({},o),{range:{start:n.createMarker(t.toDate(o.range.start,o.forcedStartTzo)),end:n.createMarker(t.toDate(o.range.end,o.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:o.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:o.forcedEndTzo})});return{defs:r,instances:i}}function ML(e,t){return JS(e,n=>n.sourceId!==t)}function Y8e(e){const{defs:t,instances:n}=e,r={},i={};for(let o in t){const a=t[o],{publicId:s}=a;s&&(r[s]=o)}for(let o in n){const a=n[o],s=t[a.defId],{publicId:l}=s;l&&(i[l]=o)}return{defIdMap:r,instanceIdMap:i}}class K8e{constructor(){this.handlers={},this.thisContext=null}setThisContext(t){this.thisContext=t}setOptions(t){this.options=t}on(t,n){Z8e(this.handlers,t,n)}off(t,n){Q8e(this.handlers,t,n)}trigger(t,...n){let r=this.handlers[t]||[],i=this.options&&this.options[t],o=[].concat(i||[],r);for(let a of o)a.apply(this.thisContext,n)}hasHandlers(t){return!!(this.handlers[t]&&this.handlers[t].length||this.options&&this.options[t])}}function Z8e(e,t,n){(e[t]||(e[t]=[])).push(n)}function Q8e(e,t,n){n?e[t]&&(e[t]=e[t].filter(r=>r!==n)):delete e[t]}const X8e={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function J8e(e,t){return Ch(e9e(e),null,t)}function e9e(e){let t;return e===!0?t=[{}]:Array.isArray(e)?t=e.filter(n=>n.daysOfWeek):typeof e=="object"&&e?t=[e]:t=[],t=t.map(n=>Object.assign(Object.assign({},X8e),n)),t}function t9e(e,t,n){n.emitter.trigger("select",Object.assign(Object.assign({},r9e(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function n9e(e,t){t.emitter.trigger("unselect",{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view})}function r9e(e,t){let n={};for(let r of t.pluginHooks.dateSpanTransforms)Object.assign(n,r(e,t));return Object.assign(n,m9e(e,t.dateEnv)),n}function NL(e,t,n){let{dateEnv:r,options:i}=n,o=t;return e?(o=Bt(o),o=r.add(o,i.defaultAllDayEventDuration)):o=r.add(o,i.defaultTimedEventDuration),o}function i9e(e,t,n,r){let i=jL(e.defs,t),o=za();for(let a in e.defs){let s=e.defs[a];o.defs[a]=o9e(s,i[a],n,r)}for(let a in e.instances){let s=e.instances[a],l=o.defs[s.defId];o.instances[a]=a9e(s,l,i[s.defId],n,r)}return o}function o9e(e,t,n,r){let i=n.standardProps||{};i.hasEnd==null&&t.durationEditable&&(n.startDelta||n.endDelta)&&(i.hasEnd=!0);let o=Object.assign(Object.assign(Object.assign({},e),i),{ui:Object.assign(Object.assign({},e.ui),i.ui)});n.extendedProps&&(o.extendedProps=Object.assign(Object.assign({},o.extendedProps),n.extendedProps));for(let a of r.pluginHooks.eventDefMutationAppliers)a(o,n,r);return!o.hasEnd&&r.options.forceEventDuration&&(o.hasEnd=!0),o}function a9e(e,t,n,r,i){let{dateEnv:o}=i,a=r.standardProps&&r.standardProps.allDay===!0,s=r.standardProps&&r.standardProps.hasEnd===!1,l=Object.assign({},e);return a&&(l.range=EL(l.range)),r.datesDelta&&n.startEditable&&(l.range={start:o.add(l.range.start,r.datesDelta),end:o.add(l.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(l.range={start:o.add(l.range.start,r.startDelta),end:l.range.end}),r.endDelta&&n.durationEditable&&(l.range={start:l.range.start,end:o.add(l.range.end,r.endDelta)}),s&&(l.range={start:l.range.start,end:NL(t.allDay,l.range.start,i)}),t.allDay&&(l.range={start:Bt(l.range.start),end:Bt(l.range.end)}),l.range.end<l.range.start&&(l.range.end=NL(t.allDay,l.range.start,i)),l}class Rd{constructor(t,n){this.context=t,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 ji{constructor(t,n,r){this._context=t,this._def=n,this._instance=r||null}setProp(t,n){if(t in kL)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(t==="id")n=Wv[t](n),this.mutate({standardProps:{publicId:n}});else if(t in Wv)n=Wv[t](n),this.mutate({standardProps:{[t]:n}});else if(t in Vv){let r=Vv[t](n);t==="color"?r={backgroundColor:n,borderColor:n}:t==="editable"?r={startEditable:n,durationEditable:n}:r={[t]:n},this.mutate({standardProps:{ui:r}})}else console.warn(`Could not set prop '${t}'. Use setExtendedProp instead.`)}setExtendedProp(t,n){this.mutate({extendedProps:{[t]:n}})}setStart(t,n={}){let{dateEnv:r}=this._context,i=r.createMarker(t);if(i&&this._instance){let o=this._instance.range,a=Uv(o.start,i,r,n.granularity);n.maintainDuration?this.mutate({datesDelta:a}):this.mutate({startDelta:a})}}setEnd(t,n={}){let{dateEnv:r}=this._context,i;if(!(t!=null&&(i=r.createMarker(t),!i))&&this._instance)if(i){let o=Uv(this._instance.range.end,i,r,n.granularity);this.mutate({endDelta:o})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(t,n,r={}){let{dateEnv:i}=this._context,o={allDay:r.allDay},a=i.createMarker(t),s;if(a&&!(n!=null&&(s=i.createMarker(n),!s))&&this._instance){let l=this._instance.range;r.allDay===!0&&(l=EL(l));let c=Uv(l.start,a,i,r.granularity);if(s){let d=Uv(l.end,s,i,r.granularity);TSe(c,d)?this.mutate({datesDelta:c,standardProps:o}):this.mutate({startDelta:c,endDelta:d,standardProps:o})}else o.hasEnd=!1,this.mutate({datesDelta:c,standardProps:o})}}moveStart(t){let n=yt(t);n&&this.mutate({startDelta:n})}moveEnd(t){let n=yt(t);n&&this.mutate({endDelta:n})}moveDates(t){let n=yt(t);n&&this.mutate({datesDelta:n})}setAllDay(t,n={}){let r={allDay:t},{maintainDuration:i}=n;i==null&&(i=this._context.options.allDayMaintainDuration),this._def.allDay!==t&&(r.hasEnd=i),this.mutate({standardProps:r})}formatRange(t){let{dateEnv:n}=this._context,r=this._instance,i=Ot(t);return this._def.hasEnd?n.formatRange(r.range.start,r.range.end,i,{forcedStartTzo:r.forcedStartTzo,forcedEndTzo:r.forcedEndTzo}):n.format(r.range.start,i,{forcedTzo:r.forcedStartTzo})}mutate(t){let n=this._instance;if(n){let r=this._def,i=this._context,{eventStore:o}=i.getCurrentData(),a=M8e(o,n.instanceId);a=i9e(a,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},t,i);let l=new ji(i,r,n);this._def=a.defs[r.defId],this._instance=a.instances[n.instanceId],i.dispatch({type:"MERGE_EVENTS",eventStore:a}),i.emitter.trigger("eventChange",{oldEvent:l,event:this,relatedEvents:e8(a,i,n),revert(){i.dispatch({type:"RESET_EVENTS",eventStore:o})}})}}remove(){let t=this._context,n=LL(this);t.dispatch({type:"REMOVE_EVENTS",eventStore:n}),t.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:n})}})}get source(){let{sourceId:t}=this._def;return t?new Rd(this._context,this._context.getCurrentData().eventSources[t]):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 t=this._instance;return t?this._context.dateEnv.formatIso(t.range.start,{omitTime:this._def.allDay,forcedTzo:t.forcedStartTzo}):""}get endStr(){let t=this._instance;return t&&this._def.hasEnd?this._context.dateEnv.formatIso(t.range.end,{omitTime:this._def.allDay,forcedTzo:t.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(t={}){let n=this._def,{ui:r}=n,{startStr:i,endStr:o}=this,a={allDay:n.allDay};return n.title&&(a.title=n.title),i&&(a.start=i),o&&(a.end=o),n.publicId&&(a.id=n.publicId),n.groupId&&(a.groupId=n.groupId),n.url&&(a.url=n.url),r.display&&r.display!=="auto"&&(a.display=r.display),t.collapseColor&&r.backgroundColor&&r.backgroundColor===r.borderColor?a.color=r.backgroundColor:(r.backgroundColor&&(a.backgroundColor=r.backgroundColor),r.borderColor&&(a.borderColor=r.borderColor)),r.textColor&&(a.textColor=r.textColor),r.classNames.length&&(a.classNames=r.classNames),Object.keys(n.extendedProps).length&&(t.collapseExtendedProps?Object.assign(a,n.extendedProps):a.extendedProps=n.extendedProps),a}toJSON(){return this.toPlainObject()}}function LL(e){let t=e._def,n=e._instance;return{defs:{[t.defId]:t},instances:n?{[n.instanceId]:n}:{}}}function e8(e,t,n){let{defs:r,instances:i}=e,o=[],a=n?n.instanceId:"";for(let s in i){let l=i[s],c=r[l.defId];l.instanceId!==a&&o.push(new ji(t,c,l))}return o}function t8(e,t,n,r){let i={},o={},a={},s=[],l=[],c=jL(e.defs,t);for(let d in e.defs){let f=e.defs[d];c[f.defId].display==="inverse-background"&&(f.groupId?(i[f.groupId]=[],a[f.groupId]||(a[f.groupId]=f)):o[d]=[])}for(let d in e.instances){let f=e.instances[d],g=e.defs[f.defId],p=c[g.defId],m=f.range,v=!g.allDay&&r?GS(m,r):m,w=Go(v,n);w&&(p.display==="inverse-background"?g.groupId?i[g.groupId].push(w):o[f.defId].push(w):p.display!=="none"&&(p.display==="background"?s:l).push({def:g,ui:p,instance:f,range:w,isStart:v.start&&v.start.valueOf()===w.start.valueOf(),isEnd:v.end&&v.end.valueOf()===w.end.valueOf()}))}for(let d in i){let f=i[d],g=CL(f,n);for(let p of g){let m=a[d],v=c[m.defId];s.push({def:m,ui:v,instance:null,range:p,isStart:!1,isEnd:!1})}}for(let d in o){let f=o[d],g=CL(f,n);for(let p of g)s.push({def:e.defs[d],ui:c[d],instance:null,range:p,isStart:!1,isEnd:!1})}return{bg:s,fg:l}}function s9e(e){return e.ui.display==="background"||e.ui.display==="inverse-background"}function FL(e,t){e.fcSeg=t}function n8(e){return e.fcSeg||e.parentNode.fcSeg||null}function jL(e,t){return xu(e,n=>zL(n,t))}function zL(e,t){let n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),OL(n)}function qv(e,t){let n=e.map(l9e);return n.sort((r,i)=>wSe(r,i,t)),n.map(r=>r._seg)}function l9e(e){let{eventRange:t}=e,n=t.def,r=t.instance?t.instance.range:t.range,i=r.start?r.start.valueOf():0,o=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:i,end:o,duration:o-i,allDay:Number(n.allDay),_seg:e})}function u9e(e,t){let{pluginHooks:n}=t,r=n.isDraggableTransformers,{def:i,ui:o}=e.eventRange,a=o.startEditable;for(let s of r)a=s(a,i,o,t);return a}function c9e(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function d9e(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function Od(e,t,n,r,i,o,a){let{dateEnv:s,options:l}=n,{displayEventTime:c,displayEventEnd:d}=l,f=e.eventRange.def,g=e.eventRange.instance;c==null&&(c=r!==!1),d==null&&(d=i!==!1);let p=g.range.start,m=g.range.end,v=o||e.start||e.eventRange.range.start,w=a||e.end||e.eventRange.range.end,x=Bt(p).valueOf()===Bt(v).valueOf(),b=Bt(el(m,-1)).valueOf()===Bt(el(w,-1)).valueOf();return c&&!f.allDay&&(x||b)?(v=x?p:v,w=b?m:w,d&&f.hasEnd?s.formatRange(v,w,t,{forcedStartTzo:o?null:g.forcedStartTzo,forcedEndTzo:a?null:g.forcedEndTzo}):s.format(v,t,{forcedTzo:o?null:g.forcedStartTzo})):""}function Vr(e,t,n){let r=e.eventRange.range;return{isPast:r.end<(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&ja(t,r.start)}}function f9e(e){let t=["fc-event"];return e.isMirror&&t.push("fc-event-mirror"),e.isDraggable&&t.push("fc-event-draggable"),(e.isStartResizable||e.isEndResizable)&&t.push("fc-event-resizable"),e.isDragging&&t.push("fc-event-dragging"),e.isResizing&&t.push("fc-event-resizing"),e.isSelected&&t.push("fc-event-selected"),e.isStart&&t.push("fc-event-start"),e.isEnd&&t.push("fc-event-end"),e.isPast&&t.push("fc-event-past"),e.isToday&&t.push("fc-event-today"),e.isFuture&&t.push("fc-event-future"),t}function r8(e){return e.instance?e.instance.instanceId:`${e.def.defId}:${e.range.start.toISOString()}`}function Yv(e,t){let{def:n,instance:r}=e.eventRange,{url:i}=n;if(i)return{href:i};let{emitter:o,options:a}=t,{eventInteractive:s}=a;return s==null&&(s=n.interactive,s==null&&(s=!!o.hasHandlers("eventClick"))),s?tL(l=>{o.trigger("eventClick",{el:l.target,event:new ji(t,n,r),jsEvent:l,view:t.viewApi})}):{}}const p9e={start:re,end:re,allDay:Boolean};function h9e(e,t,n){let r=g9e(e,t),{range:i}=r;if(!i.start)return null;if(!i.end){if(n==null)return null;i.end=t.add(i.start,n)}return r}function g9e(e,t){let{refined:n,extra:r}=zS(e,p9e),i=n.start?t.createMarkerMeta(n.start):null,o=n.end?t.createMarkerMeta(n.end):null,{allDay:a}=n;return a==null&&(a=i&&i.isTimeUnspecified&&(!o||o.isTimeUnspecified)),Object.assign({range:{start:i?i.marker:null,end:o?o.marker:null},allDay:a},r)}function m9e(e,t){return Object.assign(Object.assign({},HL(e.range,t,e.allDay)),{allDay:e.allDay})}function BL(e,t,n){return Object.assign(Object.assign({},HL(e,t,n)),{timeZone:t.timeZone})}function HL(e,t,n){return{start:t.toDate(e.start),end:t.toDate(e.end),startStr:t.formatIso(e.start,{omitTime:n}),endStr:t.formatIso(e.end,{omitTime:n})}}function v9e(e,t,n){let r=AL({editable:!1},n),i=ZS(r.refined,r.extra,"",e.allDay,!0,n);return{def:i,ui:zL(i,t),instance:YS(i.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}function y9e(e,t,n){let r=!1,i=function(s){r||(r=!0,t(s))},o=function(s){r||(r=!0,n(s))},a=e(i,o);a&&typeof a.then=="function"&&a.then(i,o)}class UL extends Error{constructor(t,n){super(t),this.response=n}}function b9e(e,t,n){e=e.toUpperCase();const r={method:e};return e==="GET"?t+=(t.indexOf("?")===-1?"?":"&")+new URLSearchParams(n):(r.body=new URLSearchParams(n),r.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(t,r).then(i=>{if(i.ok)return i.json().then(o=>[o,i],()=>{throw new UL("Failure parsing JSON",i)});throw new UL("Request failed",i)})}let i8;function WL(){return i8==null&&(i8=x9e()),i8}function x9e(){if(typeof document>"u")return!0;let e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.innerHTML="<table><tr><td><div></div></td></tr></table>",e.querySelector("table").style.height="100px",e.querySelector("div").style.height="100%",document.body.appendChild(e);let n=e.querySelector("div").offsetHeight>0;return document.body.removeChild(e),n}class w9e extends bt{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{this.setState({forPrint:!0})},this.handleAfterPrint=()=>{this.setState({forPrint:!1})}}render(){let{props:t}=this,{options:n}=t,{forPrint:r}=this.state,i=r||n.height==="auto"||n.contentHeight==="auto",o=!i&&n.height!=null?n.height:"",a=["fc",r?"fc-media-print":"fc-media-screen",`fc-direction-${n.direction}`,t.theme.getClass("root")];return WL()||a.push("fc-liquid-hack"),t.children(a,o,i,r)}componentDidMount(){let{emitter:t}=this.props;t.on("_beforeprint",this.handleBeforePrint),t.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:t}=this.props;t.off("_beforeprint",this.handleBeforePrint),t.off("_afterprint",this.handleAfterPrint)}}class VL{constructor(t){this.component=t.component,this.isHitComboAllowed=t.isHitComboAllowed||null}destroy(){}}function S9e(e,t){return{component:e,el:t.el,useEventCenter:t.useEventCenter!=null?t.useEventCenter:!0,isHitComboAllowed:t.isHitComboAllowed||null}}const GL={};class $9e{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(t){this.currentDataManager.dispatch(t)}get view(){return this.getCurrentData().viewApi}batchRendering(t){t()}updateSize(){this.trigger("_resize",!0)}setOption(t,n){this.dispatch({type:"SET_OPTION",optionName:t,rawOptionValue:n})}getOption(t){return this.currentDataManager.currentCalendarOptionsInput[t]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(t,n){let{currentDataManager:r}=this;r.currentCalendarOptionsRefiners[t]?r.emitter.on(t,n):console.warn(`Unknown listener name '${t}'`)}off(t,n){this.currentDataManager.emitter.off(t,n)}trigger(t,...n){this.currentDataManager.emitter.trigger(t,...n)}changeView(t,n){this.batchRendering(()=>{if(this.unselect(),n)if(n.start&&n.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:t}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:n});else{let{dateEnv:r}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:t,dateMarker:r.createMarker(n)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:t})})}zoomTo(t,n){let r=this.getCurrentData(),i;n=n||"day",i=r.viewSpecs[n]||this.getUnitViewSpec(n),this.unselect(),i?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:i.type,dateMarker:t}):this.dispatch({type:"CHANGE_DATE",dateMarker:t})}getUnitViewSpec(t){let{viewSpecs:n,toolbarConfig:r}=this.getCurrentData(),i=[].concat(r.header?r.header.viewsWithButtons:[],r.footer?r.footer.viewsWithButtons:[]),o,a;for(let s in n)i.push(s);for(o=0;o<i.length;o+=1)if(a=n[i[o]],a&&a.singleUnit===t)return a;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.addYears(t.currentDate,-1)})}nextYear(){let t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.addYears(t.currentDate,1)})}today(){let t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:Sh(t.calendarOptions.now,t.dateEnv)})}gotoDate(t){let n=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.createMarker(t)})}incrementDate(t){let n=this.getCurrentData(),r=yt(t);r&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.add(n.currentDate,r)}))}getDate(){let t=this.getCurrentData();return t.dateEnv.toDate(t.currentDate)}formatDate(t,n){let{dateEnv:r}=this.getCurrentData();return r.format(r.createMarker(t),Ot(n))}formatRange(t,n,r){let{dateEnv:i}=this.getCurrentData();return i.formatRange(i.createMarker(t),i.createMarker(n),Ot(r),r)}formatIso(t,n){let{dateEnv:r}=this.getCurrentData();return r.formatIso(r.createMarker(t),{omitTime:n})}select(t,n){let r;n==null?t.start!=null?r=t:r={start:t,end:null}:r={start:t,end:n};let i=this.getCurrentData(),o=h9e(r,i.dateEnv,yt({days:1}));o&&(this.dispatch({type:"SELECT_DATES",selection:o}),t9e(o,null,i))}unselect(t){let n=this.getCurrentData();n.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),n9e(t,n))}addEvent(t,n){if(t instanceof ji){let a=t._def,s=t._instance;return this.getCurrentData().eventStore.defs[a.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:QS({def:a,instance:s})}),this.triggerEventAdd(t)),t}let r=this.getCurrentData(),i;if(n instanceof Rd)i=n.internalEventSource;else if(typeof n=="boolean")n&&([i]=HS(r.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;i=a.internalEventSource}let o=TL(t,i,r,!1);if(o){let a=new ji(r,o.def,o.def.recurringDef?null:o.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:QS(o)}),this.triggerEventAdd(a),a}return null}triggerEventAdd(t){let{emitter:n}=this.getCurrentData();n.trigger("eventAdd",{event:t,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:LL(t)})}})}getEventById(t){let n=this.getCurrentData(),{defs:r,instances:i}=n.eventStore;t=String(t);for(let o in r){let a=r[o];if(a.publicId===t){if(a.recurringDef)return new ji(n,a,null);for(let s in i){let l=i[s];if(l.defId===a.defId)return new ji(n,a,l)}}}return null}getEvents(){let t=this.getCurrentData();return e8(t.eventStore,t)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let t=this.getCurrentData(),n=t.eventSources,r=[];for(let i in n)r.push(new Rd(t,n[i]));return r}getEventSourceById(t){let n=this.getCurrentData(),r=n.eventSources;t=String(t);for(let i in r)if(r[i].publicId===t)return new Rd(n,r[i]);return null}addEventSource(t){let n=this.getCurrentData();if(t instanceof Rd)return n.eventSources[t.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[t.internalEventSource]}),t;let r=_L(t,n);return r?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[r]}),new Rd(n,r)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(t){let n=yt(t);n&&this.trigger("_scrollRequest",{time:n})}}function C9e(e,t){let n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.left<n.right&&n.top<n.bottom?n:!1}const o8=za();class E9e{constructor(){this.getKeysForEventDefs=Le(this._getKeysForEventDefs),this.splitDateSelection=Le(this._splitDateSpan),this.splitEventStore=Le(this._splitEventStore),this.splitIndividualUi=Le(this._splitIndividualUi),this.splitEventDrag=Le(this._splitInteraction),this.splitEventResize=Le(this._splitInteraction),this.eventUiBuilders={}}splitProps(t){let n=this.getKeyInfo(t),r=this.getKeysForEventDefs(t.eventStore),i=this.splitDateSelection(t.dateSelection),o=this.splitIndividualUi(t.eventUiBases,r),a=this.splitEventStore(t.eventStore,r),s=this.splitEventDrag(t.eventDrag),l=this.splitEventResize(t.eventResize),c={};this.eventUiBuilders=xu(n,(d,f)=>this.eventUiBuilders[f]||Le(k9e));for(let d in n){let f=n[d],g=a[d]||o8,p=this.eventUiBuilders[d];c[d]={businessHours:f.businessHours||t.businessHours,dateSelection:i[d]||null,eventStore:g,eventUiBases:p(t.eventUiBases[""],f.ui,o[d]),eventSelection:g.instances[t.eventSelection]?t.eventSelection:"",eventDrag:s[d]||null,eventResize:l[d]||null}}return c}_splitDateSpan(t){let n={};if(t){let r=this.getKeysForDateSpan(t);for(let i of r)n[i]=t}return n}_getKeysForEventDefs(t){return xu(t.defs,n=>this.getKeysForEventDef(n))}_splitEventStore(t,n){let{defs:r,instances:i}=t,o={};for(let a in r)for(let s of n[a])o[s]||(o[s]=za()),o[s].defs[a]=r[a];for(let a in i){let s=i[a];for(let l of n[s.defId])o[l]&&(o[l].instances[a]=s)}return o}_splitIndividualUi(t,n){let r={};for(let i in t)if(i)for(let o of n[i])r[o]||(r[o]={}),r[o][i]=t[i];return r}_splitInteraction(t){let n={};if(t){let r=this._splitEventStore(t.affectedEvents,this._getKeysForEventDefs(t.affectedEvents)),i=this._getKeysForEventDefs(t.mutatedEvents),o=this._splitEventStore(t.mutatedEvents,i),a=s=>{n[s]||(n[s]={affectedEvents:r[s]||o8,mutatedEvents:o[s]||o8,isEvent:t.isEvent})};for(let s in r)a(s);for(let s in o)a(s)}return n}}function k9e(e,t,n){let r=[];e&&r.push(e),t&&r.push(t);let i={"":OL(r)};return n&&Object.assign(i,n),i}function a8(e,t,n,r){return{dow:e.getUTCDay(),isDisabled:!!(r&&!ja(r.activeRange,e)),isOther:!!(r&&!ja(r.currentRange,e)),isToday:!!(t&&ja(t,e)),isPast:!!(n?e<n:t&&e<t.start),isFuture:!!(n?e>n:t&&e>=t.end)}}function Kv(e,t){let n=["fc-day",`fc-day-${ISe[e.dow]}`];return e.isDisabled?n.push("fc-day-disabled"):(e.isToday&&(n.push("fc-day-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-day-past"),e.isFuture&&n.push("fc-day-future"),e.isOther&&n.push("fc-day-other")),n}const T9e=Ot({year:"numeric",month:"long",day:"numeric"}),A9e=Ot({week:"long"});function il(e,t,n="day",r=!0){const{dateEnv:i,options:o,calendarApi:a}=e;let s=i.format(t,n==="week"?A9e:T9e);if(o.navLinks){let l=i.toDate(t);const c=d=>{let f=n==="day"?o.navLinkDayClick:n==="week"?o.navLinkWeekClick:null;typeof f=="function"?f.call(a,i.toDate(t),d):(typeof f=="string"&&(n=f),a.zoomTo(t,n))};return Object.assign({title:yh(o.navLinkHint,[s,l],s),"data-navlink":""},r?eL(c):{onClick:c})}return{"aria-label":s}}let s8;function R9e(){return s8||(s8=O9e()),s8}function O9e(){let e=document.createElement("div");e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e);let t=_9e(e);return document.body.removeChild(e),t}function _9e(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function I9e(e){let t=D9e(e),n=e.getBoundingClientRect();for(let r of t){let i=C9e(n,r.getBoundingClientRect());if(i)n=i;else return null}return n}function D9e(e){let t=[];for(;e instanceof HTMLElement;){let n=window.getComputedStyle(e);if(n.position==="fixed")break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}class qo{constructor(t,n,r,i){this.els=n;let o=this.originClientRect=t.getBoundingClientRect();r&&this.buildElHorizontals(o.left),i&&this.buildElVerticals(o.top)}buildElHorizontals(t){let n=[],r=[];for(let i of this.els){let o=i.getBoundingClientRect();n.push(o.left-t),r.push(o.right-t)}this.lefts=n,this.rights=r}buildElVerticals(t){let n=[],r=[];for(let i of this.els){let o=i.getBoundingClientRect();n.push(o.top-t),r.push(o.bottom-t)}this.tops=n,this.bottoms=r}leftToIndex(t){let{lefts:n,rights:r}=this,i=n.length,o;for(o=0;o<i;o+=1)if(t>=n[o]&&t<r[o])return o}topToIndex(t){let{tops:n,bottoms:r}=this,i=n.length,o;for(o=0;o<i;o+=1)if(t>=n[o]&&t<r[o])return o}getWidth(t){return this.rights[t]-this.lefts[t]}getHeight(t){return this.bottoms[t]-this.tops[t]}similarTo(t){return Zv(this.tops||[],t.tops||[])&&Zv(this.bottoms||[],t.bottoms||[])&&Zv(this.lefts||[],t.lefts||[])&&Zv(this.rights||[],t.rights||[])}}function Zv(e,t){const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(Math.round(e[r])!==Math.round(t[r]))return!1;return!0}class gr extends bt{constructor(){super(...arguments),this.uid=vu()}prepareHits(){}queryHit(t,n,r,i){return null}isValidSegDownEl(t){return!this.props.eventDrag&&!this.props.eventResize&&!La(t,".fc-event-mirror")}isValidDateDownEl(t){return!La(t,".fc-event:not(.fc-bg-event)")&&!La(t,".fc-more-link")&&!La(t,"a[data-navlink]")&&!La(t,".fc-popover")}}class l8{constructor(){this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(t){let n=[];for(let r of t)this.insertEntry(r,n);return n}insertEntry(t,n){let r=this.findInsertion(t);return this.isInsertionValid(r,t)?(this.insertEntryAt(t,r),1):this.handleInvalidInsertion(r,t,n)}isInsertionValid(t,n){return(this.maxCoord===-1||t.levelCoord+n.thickness<=this.maxCoord)&&(this.maxStackCnt===-1||t.stackCnt<this.maxStackCnt)}handleInvalidInsertion(t,n,r){return this.allowReslicing&&t.touchingEntry?this.splitEntry(n,t.touchingEntry,r):(r.push(n),0)}splitEntry(t,n,r){let i=0,o=[],a=t.span,s=n.span;return a.start<s.start&&(i+=this.insertEntry({index:t.index,thickness:t.thickness,span:{start:a.start,end:s.start}},o)),a.end>s.end&&(i+=this.insertEntry({index:t.index,thickness:t.thickness,span:{start:s.end,end:a.end}},o)),i?(r.push({index:t.index,thickness:t.thickness,span:Qv(s,a)},...o),i):(r.push(t),0)}insertEntryAt(t,n){let{entriesByLevel:r,levelCoords:i}=this;n.lateral===-1?(c8(i,n.level,n.levelCoord),c8(r,n.level,[t])):c8(r[n.level],n.lateral,t),this.stackCnts[Yo(t)]=n.stackCnt}findInsertion(t){let{levelCoords:n,entriesByLevel:r,strictOrder:i,stackCnts:o}=this,a=n.length,s=0,l=-1,c=-1,d=null,f=0;for(let m=0;m<a;m+=1){let v=n[m];if(!i&&v>=s+t.thickness)break;let w=r[m],x,b=d8(w,t.span.start,u8),S=b[0]+b[1];for(;(x=w[S])&&x.span.start<t.span.end;){let $=v+x.thickness;$>s&&(s=$,d=x,l=m,c=S),$===s&&(f=Math.max(f,o[Yo(x)]+1)),S+=1}}let g=0;if(d)for(g=l+1;g<a&&n[g]<s;)g+=1;let p=-1;return g<a&&n[g]===s&&(p=d8(r[g],t.span.end,u8)[0]),{touchingLevel:l,touchingLateral:c,touchingEntry:d,stackCnt:f,levelCoord:s,level:g,lateral:p}}toRects(){let{entriesByLevel:t,levelCoords:n}=this,r=t.length,i=[];for(let o=0;o<r;o+=1){let a=t[o],s=n[o];for(let l of a)i.push(Object.assign(Object.assign({},l),{levelCoord:s}))}return i}}function u8(e){return e.span.end}function Yo(e){return e.index+":"+e.span.start}function P9e(e){let t=[];for(let n of e){let r=[],i={span:n.span,entries:[n]};for(let o of t)Qv(o.span,i.span)?i={entries:o.entries.concat(i.entries),span:M9e(o.span,i.span)}:r.push(o);r.push(i),t=r}return t}function M9e(e,t){return{start:Math.min(e.start,t.start),end:Math.max(e.end,t.end)}}function Qv(e,t){let n=Math.max(e.start,t.start),r=Math.min(e.end,t.end);return n<r?{start:n,end:r}:null}function c8(e,t,n){e.splice(t,0,n)}function d8(e,t,n){let r=0,i=e.length;if(!i||t<n(e[r]))return[0,0];if(t>n(e[i-1]))return[i,0];for(;r<i;){let o=Math.floor(r+(i-r)/2),a=n(e[o]);if(t<a)i=o;else if(t>a)r=o+1;else return[o,1]}return[r,0]}function N9e(e,t){return!e||t>10?Ot({weekday:"short"}):t>1?Ot({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):Ot({weekday:"long"})}const qL="fc-col-header-cell";function YL(e){return e.text}class L9e extends bt{render(){let{dateEnv:t,options:n,theme:r,viewApi:i}=this.context,{props:o}=this,{date:a,dateProfile:s}=o,l=a8(a,o.todayRange,null,s),c=[qL].concat(Kv(l,r)),d=t.format(a,o.dayHeaderFormat),f=!l.isDisabled&&o.colCnt>1?il(this.context,a):{},g=Object.assign(Object.assign(Object.assign({date:t.toDate(a),view:i},o.extraRenderProps),{text:d}),l);return F(hr,{elTag:"th",elClasses:c,elAttrs:Object.assign({role:"columnheader",colSpan:o.colSpan,"data-date":l.isDisabled?void 0:bh(a)},o.extraDataAttrs),renderProps:g,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:YL,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},p=>F("div",{className:"fc-scrollgrid-sync-inner"},!l.isDisabled&&F(p,{elTag:"a",elAttrs:f,elClasses:["fc-col-header-cell-cushion",o.isSticky&&"fc-sticky"]})))}}const F9e=Ot({weekday:"long"});class j9e extends bt{render(){let{props:t}=this,{dateEnv:n,theme:r,viewApi:i,options:o}=this.context,a=xn(new Date(2592e5),t.dow),s={dow:t.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},l=n.format(a,t.dayHeaderFormat),c=Object.assign(Object.assign(Object.assign(Object.assign({date:a},s),{view:i}),t.extraRenderProps),{text:l});return F(hr,{elTag:"th",elClasses:[qL,...Kv(s,r),...t.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:t.colSpan},t.extraDataAttrs),renderProps:c,generatorName:"dayHeaderContent",customGenerator:o.dayHeaderContent,defaultGenerator:YL,classNameGenerator:o.dayHeaderClassNames,didMount:o.dayHeaderDidMount,willUnmount:o.dayHeaderWillUnmount},d=>F("div",{className:"fc-scrollgrid-sync-inner"},F(d,{elTag:"a",elClasses:["fc-col-header-cell-cushion",t.isSticky&&"fc-sticky"],elAttrs:{"aria-label":n.format(a,F9e)}})))}}class Su extends fi{constructor(t,n){super(t,n),this.initialNowDate=Sh(n.options.now,n.dateEnv),this.initialNowQueriedMs=new Date().valueOf(),this.state=this.computeTiming().currentState}render(){let{props:t,state:n}=this;return t.children(n.nowDate,n.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(t){t.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:t,context:n}=this,r=el(this.initialNowDate,new Date().valueOf()-this.initialNowQueriedMs),i=n.dateEnv.startOf(r,t.unit),o=n.dateEnv.add(i,yt(1,t.unit)),a=o.valueOf()-r.valueOf();return a=Math.min(1e3*60*60*24,a),{currentState:{nowDate:i,todayRange:KL(i)},nextState:{nowDate:o,todayRange:KL(o)},waitMs:a}}setTimeout(){let{nextState:t,waitMs:n}=this.computeTiming();this.timeoutId=setTimeout(()=>{this.setState(t,()=>{this.setTimeout()})},n)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}Su.contextType=Fa;function KL(e){let t=Bt(e),n=xn(t,1);return{start:t,end:n}}class f8 extends bt{constructor(){super(...arguments),this.createDayHeaderFormatter=Le(z9e)}render(){let{context:t}=this,{dates:n,dateProfile:r,datesRepDistinctDays:i,renderIntro:o}=this.props,a=this.createDayHeaderFormatter(t.options.dayHeaderFormat,i,n.length);return F(Su,{unit:"day"},(s,l)=>F("tr",{role:"row"},o&&o("day"),n.map(c=>i?F(L9e,{key:c.toISOString(),date:c,dateProfile:r,todayRange:l,colCnt:n.length,dayHeaderFormat:a}):F(j9e,{key:c.getUTCDay(),dow:c.getUTCDay(),dayHeaderFormat:a}))))}}function z9e(e,t,n){return e||N9e(t,n)}class p8{constructor(t,n){let r=t.start,{end:i}=t,o=[],a=[],s=-1;for(;r<i;)n.isHiddenDay(r)?o.push(s+.5):(s+=1,o.push(s),a.push(r)),r=xn(r,1);this.dates=a,this.indices=o,this.cnt=a.length}sliceRange(t){let n=this.getDateDayIndex(t.start),r=this.getDateDayIndex(xn(t.end,-1)),i=Math.max(0,n),o=Math.min(this.cnt-1,r);return i=Math.ceil(i),o=Math.floor(o),i<=o?{firstIndex:i,lastIndex:o,isStart:n===i,isEnd:r===o}:null}getDateDayIndex(t){let{indices:n}=this,r=Math.floor(tl(this.dates[0],t));return r<0?n[0]-1:r>=n.length?n[n.length-1]+1:n[r]}}class h8{constructor(t,n){let{dates:r}=t,i,o,a;if(n){for(o=r[0].getUTCDay(),i=1;i<r.length&&r[i].getUTCDay()!==o;i+=1);a=Math.ceil(r.length/i)}else a=1,i=r.length;this.rowCnt=a,this.colCnt=i,this.daySeries=t,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let t=[];for(let n=0;n<this.rowCnt;n+=1){let r=[];for(let i=0;i<this.colCnt;i+=1)r.push(this.buildCell(n,i));t.push(r)}return t}buildCell(t,n){let r=this.daySeries.dates[t*this.colCnt+n];return{key:r.toISOString(),date:r}}buildHeaderDates(){let t=[];for(let n=0;n<this.colCnt;n+=1)t.push(this.cells[0][n].date);return t}sliceRange(t){let{colCnt:n}=this,r=this.daySeries.sliceRange(t),i=[];if(r){let{firstIndex:o,lastIndex:a}=r,s=o;for(;s<=a;){let l=Math.floor(s/n),c=Math.min((l+1)*n,a+1);i.push({row:l,firstCol:s%n,lastCol:(c-1)%n,isStart:r.isStart&&s===o,isEnd:r.isEnd&&c-1===a}),s=c}}return i}}class g8{constructor(){this.sliceBusinessHours=Le(this._sliceBusinessHours),this.sliceDateSelection=Le(this._sliceDateSpan),this.sliceEventStore=Le(this._sliceEventStore),this.sliceEventDrag=Le(this._sliceInteraction),this.sliceEventResize=Le(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(t,n,r,i,...o){let{eventUiBases:a}=t,s=this.sliceEventStore(t.eventStore,a,n,r,...o);return{dateSelectionSegs:this.sliceDateSelection(t.dateSelection,n,r,a,i,...o),businessHourSegs:this.sliceBusinessHours(t.businessHours,n,r,i,...o),fgEventSegs:s.fg,bgEventSegs:s.bg,eventDrag:this.sliceEventDrag(t.eventDrag,a,n,r,...o),eventResize:this.sliceEventResize(t.eventResize,a,n,r,...o),eventSelection:t.eventSelection}}sliceNowDate(t,n,r,i,...o){return this._sliceDateSpan({range:{start:t,end:el(t,1)},allDay:!1},n,r,{},i,...o)}_sliceBusinessHours(t,n,r,i,...o){return t?this._sliceEventStore($h(t,Xv(n,!!r),i),{},n,r,...o).bg:[]}_sliceEventStore(t,n,r,i,...o){if(t){let a=t8(t,n,Xv(r,!!i),i);return{bg:this.sliceEventRanges(a.bg,o),fg:this.sliceEventRanges(a.fg,o)}}return{bg:[],fg:[]}}_sliceInteraction(t,n,r,i,...o){if(!t)return null;let a=t8(t.mutatedEvents,n,Xv(r,!!i),i);return{segs:this.sliceEventRanges(a.fg,o),affectedInstances:t.affectedEvents.instances,isEvent:t.isEvent}}_sliceDateSpan(t,n,r,i,o,...a){if(!t)return[];let s=Xv(n,!!r),l=Go(t.range,s);if(l){t=Object.assign(Object.assign({},t),{range:l});let c=v9e(t,i,o),d=this.sliceRange(t.range,...a);for(let f of d)f.eventRange=c;return d}return[]}sliceEventRanges(t,n){let r=[];for(let i of t)r.push(...this.sliceEventRange(i,n));return r}sliceEventRange(t,n){let r=t.range;this.forceDayIfListItem&&t.ui.display==="list-item"&&(r={start:r.start,end:xn(r.start,1)});let i=this.sliceRange(r,...n);for(let o of i)o.eventRange=t,o.isStart=t.isStart&&o.isStart,o.isEnd=t.isEnd&&o.isEnd;return i}}function Xv(e,t){let n=e.activeRange;return t?n:{start:el(n.start,e.slotMinTime.milliseconds),end:el(n.end,e.slotMaxTime.milliseconds-864e5)}}const Jv=/^(visible|hidden)$/;class ZL extends bt{constructor(){super(...arguments),this.handleEl=t=>{this.el=t,Vo(this.props.elRef,t)}}render(){let{props:t}=this,{liquid:n,liquidIsAbsolute:r}=t,i=n&&r,o=["fc-scroller"];return n&&(r?o.push("fc-scroller-liquid-absolute"):o.push("fc-scroller-liquid")),F("div",{ref:this.handleEl,className:o.join(" "),style:{overflowX:t.overflowX,overflowY:t.overflowY,left:i&&-(t.overcomeLeft||0)||"",right:i&&-(t.overcomeRight||0)||"",bottom:i&&-(t.overcomeBottom||0)||"",marginLeft:!i&&-(t.overcomeLeft||0)||"",marginRight:!i&&-(t.overcomeRight||0)||"",marginBottom:!i&&-(t.overcomeBottom||0)||"",maxHeight:t.maxHeight||""}},t.children)}needsXScrolling(){if(Jv.test(this.props.overflowX))return!1;let{el:t}=this,n=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:r}=t;for(let i=0;i<r.length;i+=1)if(r[i].getBoundingClientRect().width>n)return!0;return!1}needsYScrolling(){if(Jv.test(this.props.overflowY))return!1;let{el:t}=this,n=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:r}=t;for(let i=0;i<r.length;i+=1)if(r[i].getBoundingClientRect().height>n)return!0;return!1}getXScrollbarWidth(){return Jv.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return Jv.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class Gr{constructor(t){this.masterCallback=t,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(n,r)=>{let{depths:i,currentMap:o}=this,a=!1,s=!1;n!==null?(a=r in o,o[r]=n,i[r]=(i[r]||0)+1,s=!0):(i[r]-=1,i[r]||(delete o[r],delete this.callbackMap[r],a=!0)),this.masterCallback&&(a&&this.masterCallback(null,String(r)),s&&this.masterCallback(n,String(r)))}}createRef(t){let n=this.callbackMap[t];return n||(n=this.callbackMap[t]=r=>{this.handleValue(r,String(t))}),n}collect(t,n,r){return u8e(this.currentMap,t,n,r)}getAll(){return HS(this.currentMap)}}function B9e(e){let t=hSe(e,".fc-scrollgrid-shrink"),n=0;for(let r of t)n=Math.max(n,CSe(r));return Math.ceil(n)}function QL(e,t){return e.liquid&&t.liquid}function H9e(e,t){return t.maxHeight!=null||QL(e,t)}function U9e(e,t,n,r){let{expandRows:i}=n;return typeof t.content=="function"?t.content(n):F("table",{role:"presentation",className:[t.tableClassName,e.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:i?n.clientHeight:""}},n.tableColGroupNode,F(r?"thead":"tbody",{role:"presentation"},typeof t.rowContent=="function"?t.rowContent(n):t.rowContent))}function W9e(e,t){return Js(e,t,pi)}function V9e(e,t){let n=[];for(let r of e){let i=r.span||1;for(let o=0;o<i;o+=1)n.push(F("col",{style:{width:r.width==="shrink"?G9e(t):r.width||"",minWidth:r.minWidth||""}}))}return F("colgroup",{},...n)}function G9e(e){return e??4}function q9e(e){for(let t of e)if(t.width==="shrink")return!0;return!1}function Y9e(e,t){let n=["fc-scrollgrid",t.theme.getClass("table")];return e&&n.push("fc-scrollgrid-liquid"),n}function K9e(e,t){let n=["fc-scrollgrid-section",`fc-scrollgrid-section-${e.type}`,e.className];return t&&e.liquid&&e.maxHeight==null&&n.push("fc-scrollgrid-section-liquid"),e.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function m8(e){return F("div",{className:"fc-scrollgrid-sticky-shim",style:{width:e.clientWidth,minWidth:e.tableMinWidth}})}function ey(e){let{stickyHeaderDates:t}=e;return(t==null||t==="auto")&&(t=e.height==="auto"||e.viewHeight==="auto"),t}function XL(e){let{stickyFooterScrollbar:t}=e;return(t==null||t==="auto")&&(t=e.height==="auto"||e.viewHeight==="auto"),t}class v8 extends bt{constructor(){super(...arguments),this.processCols=Le(t=>t,W9e),this.renderMicroColGroup=Le(V9e),this.scrollerRefs=new Gr,this.scrollerElRefs=new Gr(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:t,state:n,context:r}=this,i=t.sections||[],o=this.processCols(t.cols),a=this.renderMicroColGroup(o,n.shrinkWidth),s=Y9e(t.liquid,r);t.collapsibleWidth&&s.push("fc-scrollgrid-collapsible");let l=i.length,c=0,d,f=[],g=[],p=[];for(;c<l&&(d=i[c]).type==="header";)f.push(this.renderSection(d,a,!0)),c+=1;for(;c<l&&(d=i[c]).type==="body";)g.push(this.renderSection(d,a,!1)),c+=1;for(;c<l&&(d=i[c]).type==="footer";)p.push(this.renderSection(d,a,!0)),c+=1;let m=!WL();const v={role:"rowgroup"};return F("table",{role:"grid",className:s.join(" "),style:{height:t.height}},!!(!m&&f.length)&&F("thead",v,...f),!!(!m&&g.length)&&F("tbody",v,...g),!!(!m&&p.length)&&F("tfoot",v,...p),m&&F("tbody",v,...f,...g,...p))}renderSection(t,n,r){return"outerContent"in t?F(ut,{key:t.key},t.outerContent):F("tr",{key:t.key,role:"presentation",className:K9e(t,this.props.liquid).join(" ")},this.renderChunkTd(t,n,t.chunk,r))}renderChunkTd(t,n,r,i){if("outerContent"in r)return r.outerContent;let{props:o}=this,{forceYScrollbars:a,scrollerClientWidths:s,scrollerClientHeights:l}=this.state,c=H9e(o,t),d=QL(o,t),f=o.liquid?a?"scroll":c?"auto":"hidden":"visible",g=t.key,p=U9e(t,r,{tableColGroupNode:n,tableMinWidth:"",clientWidth:!o.collapsibleWidth&&s[g]!==void 0?s[g]:null,clientHeight:l[g]!==void 0?l[g]:null,expandRows:t.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},i);return F(i?"th":"td",{ref:r.elRef,role:"presentation"},F("div",{className:`fc-scroller-harness${d?" fc-scroller-harness-liquid":""}`},F(ZL,{ref:this.scrollerRefs.createRef(g),elRef:this.scrollerElRefs.createRef(g),overflowY:f,overflowX:o.liquid?"hidden":"visible",maxHeight:t.maxHeight,liquid:d,liquidIsAbsolute:!0},p)))}_handleScrollerEl(t,n){let r=Z9e(this.props.sections,n);r&&Vo(r.chunk.scrollerElRef,t)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return q9e(this.props.cols)?B9e(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let t=R9e(),{scrollerRefs:n,scrollerElRefs:r}=this,i=!1,o={},a={};for(let s in n.currentMap){let l=n.currentMap[s];if(l&&l.needsYScrolling()){i=!0;break}}for(let s of this.props.sections){let l=s.key,c=r.currentMap[l];if(c){let d=c.parentNode;o[l]=Math.floor(d.getBoundingClientRect().width-(i?t.y:0)),a[l]=Math.floor(d.getBoundingClientRect().height)}}return{forceYScrollbars:i,scrollerClientWidths:o,scrollerClientHeights:a}}}v8.addStateEquality({scrollerClientWidths:pi,scrollerClientHeights:pi});function Z9e(e,t){for(let n of e)if(n.key===t)return n;return null}class Eh extends bt{constructor(){super(...arguments),this.handleEl=t=>{this.el=t,t&&FL(t,this.props.seg)}}render(){const{props:t,context:n}=this,{options:r}=n,{seg:i}=t,{eventRange:o}=i,{ui:a}=o,s={event:new ji(n,o.def,o.instance),view:n.viewApi,timeText:t.timeText,textColor:a.textColor,backgroundColor:a.backgroundColor,borderColor:a.borderColor,isDraggable:!t.disableDragging&&u9e(i,n),isStartResizable:!t.disableResizing&&c9e(i,n),isEndResizable:!t.disableResizing&&d9e(i),isMirror:!!(t.isDragging||t.isResizing||t.isDateSelecting),isStart:!!i.isStart,isEnd:!!i.isEnd,isPast:!!t.isPast,isFuture:!!t.isFuture,isToday:!!t.isToday,isSelected:!!t.isSelected,isDragging:!!t.isDragging,isResizing:!!t.isResizing};return F(hr,Object.assign({},t,{elRef:this.handleEl,elClasses:[...f9e(s),...i.eventRange.ui.classNames,...t.elClasses||[]],renderProps:s,generatorName:"eventContent",customGenerator:r.eventContent,defaultGenerator:t.defaultGenerator,classNameGenerator:r.eventClassNames,didMount:r.eventDidMount,willUnmount:r.eventWillUnmount}))}componentDidUpdate(t){this.el&&this.props.seg!==t.seg&&FL(this.el,this.props.seg)}}class y8 extends bt{render(){let{props:t,context:n}=this,{options:r}=n,{seg:i}=t,{ui:o}=i.eventRange,a=r.eventTimeFormat||t.defaultTimeFormat,s=Od(i,a,n,t.defaultDisplayEventTime,t.defaultDisplayEventEnd);return F(Eh,Object.assign({},t,{elTag:"a",elStyle:{borderColor:o.borderColor,backgroundColor:o.backgroundColor},elAttrs:Yv(i,n),defaultGenerator:Q9e,timeText:s}),(l,c)=>F(ut,null,F(l,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:c.textColor}}),!!c.isStartResizable&&F("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!c.isEndResizable&&F("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function Q9e(e){return F("div",{className:"fc-event-main-frame"},e.timeText&&F("div",{className:"fc-event-time"},e.timeText),F("div",{className:"fc-event-title-container"},F("div",{className:"fc-event-title fc-sticky"},e.event.title||F(ut,null," "))))}const b8=e=>F(Fa.Consumer,null,t=>{let{options:n}=t,r={isAxis:e.isAxis,date:t.dateEnv.toDate(e.date),view:t.viewApi};return F(hr,Object.assign({},e,{elTag:e.elTag||"div",renderProps:r,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount}))}),X9e=Ot({day:"numeric"});class ty extends bt{constructor(){super(...arguments),this.refineRenderProps=Lv(J9e)}render(){let{props:t,context:n}=this,{options:r}=n,i=this.refineRenderProps({date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,isMonthStart:t.isMonthStart||!1,showDayNumber:t.showDayNumber,extraRenderProps:t.extraRenderProps,viewApi:n.viewApi,dateEnv:n.dateEnv,monthStartFormat:r.monthStartFormat});return F(hr,Object.assign({},t,{elClasses:[...Kv(i,n.theme),...t.elClasses||[]],elAttrs:Object.assign(Object.assign({},t.elAttrs),i.isDisabled?{}:{"data-date":bh(t.date)}),renderProps:i,generatorName:"dayCellContent",customGenerator:r.dayCellContent,defaultGenerator:t.defaultGenerator,classNameGenerator:i.isDisabled?void 0:r.dayCellClassNames,didMount:r.dayCellDidMount,willUnmount:r.dayCellWillUnmount}))}}function ny(e){return!!(e.dayCellContent||xL("dayCellContent",e))}function J9e(e){let{date:t,dateEnv:n,dateProfile:r,isMonthStart:i}=e,o=a8(t,e.todayRange,null,r),a=e.showDayNumber?n.format(t,i?e.monthStartFormat:X9e):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(t),view:e.viewApi},o),{isMonthStart:i,dayNumberText:a}),e.extraRenderProps)}class x8 extends bt{render(){let{props:t}=this,{seg:n}=t;return F(Eh,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:n.eventRange.ui.backgroundColor},defaultGenerator:e$e,seg:n,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:t.isPast,isFuture:t.isFuture,isToday:t.isToday,disableDragging:!0,disableResizing:!0})}}function e$e(e){let{title:t}=e.event;return t&&F("div",{className:"fc-event-title"},e.event.title)}function w8(e){return F("div",{className:`fc-${e}`})}const S8=e=>F(Fa.Consumer,null,t=>{let{dateEnv:n,options:r}=t,{date:i}=e,o=r.weekNumberFormat||e.defaultFormat,a=n.computeWeekNumber(i),s=n.format(i,o);return F(hr,Object.assign({},e,{renderProps:{num:a,text:s,date:i},generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:t$e,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount}))});function t$e(e){return e.text}const $8=10;class n$e extends bt{constructor(){super(...arguments),this.state={titleId:Wo()},this.handleRootEl=t=>{this.rootEl=t,this.props.elRef&&Vo(this.props.elRef,t)},this.handleDocumentMouseDown=t=>{const n=vSe(t);this.rootEl.contains(n)||this.handleCloseClick()},this.handleDocumentKeyDown=t=>{t.key==="Escape"&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:t}=this.props;t&&t()}}render(){let{theme:t,options:n}=this.context,{props:r,state:i}=this,o=["fc-popover",t.getClass("popover")].concat(r.extraClassNames||[]);return tSe(F("div",Object.assign({},r.extraAttrs,{id:r.id,className:o.join(" "),"aria-labelledby":i.titleId,ref:this.handleRootEl}),F("div",{className:"fc-popover-header "+t.getClass("popoverHeader")},F("span",{className:"fc-popover-title",id:i.titleId},r.title),F("span",{className:"fc-popover-close "+t.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),F("div",{className:"fc-popover-body "+t.getClass("popoverContent")},r.children)),r.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:t}=this.context,{alignmentEl:n,alignGridTop:r}=this.props,{rootEl:i}=this,o=I9e(n);if(o){let a=i.getBoundingClientRect(),s=r?La(n,".fc-scrollgrid").getBoundingClientRect().top:o.top,l=t?o.right-a.width:o.left;s=Math.max(s,$8),l=Math.min(l,document.documentElement.clientWidth-$8-a.width),l=Math.max(l,$8);let c=i.offsetParent.getBoundingClientRect();mSe(i,{top:s-c.top,left:l-c.left})}}}class r$e extends gr{constructor(){super(...arguments),this.handleRootEl=t=>{this.rootEl=t,t?this.context.registerInteractiveComponent(this,{el:t,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:t,dateEnv:n}=this.context,{props:r}=this,{startDate:i,todayRange:o,dateProfile:a}=r,s=n.format(i,t.dayPopoverFormat);return F(ty,{elRef:this.handleRootEl,date:i,dateProfile:a,todayRange:o},(l,c,d)=>F(n$e,{elRef:d.ref,id:r.id,title:s,extraClassNames:["fc-more-popover"].concat(d.className||[]),extraAttrs:d,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},ny(t)&&F(l,{elTag:"div",elClasses:["fc-more-popover-misc"]}),r.children))}queryHit(t,n,r,i){let{rootEl:o,props:a}=this;return t>=0&&t<r&&n>=0&&n<i?{dateProfile:a.dateProfile,dateSpan:Object.assign({allDay:!0,range:{start:a.startDate,end:a.endDate}},a.extraDateSpan),dayEl:o,rect:{left:0,top:0,right:r,bottom:i},layer:1}:null}}class C8 extends bt{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:Wo()},this.handleLinkEl=t=>{this.linkEl=t,this.props.elRef&&Vo(this.props.elRef,t)},this.handleClick=t=>{let{props:n,context:r}=this,{moreLinkClick:i}=r.options,o=JL(n).start;function a(s){let{def:l,instance:c,range:d}=s.eventRange;return{event:new ji(r,l,c),start:r.dateEnv.toDate(d.start),end:r.dateEnv.toDate(d.end),isStart:s.isStart,isEnd:s.isEnd}}typeof i=="function"&&(i=i({date:o,allDay:!!n.allDayDate,allSegs:n.allSegs.map(a),hiddenSegs:n.hiddenSegs.map(a),jsEvent:t,view:r.viewApi})),!i||i==="popover"?this.setState({isPopoverOpen:!0}):typeof i=="string"&&r.calendarApi.zoomTo(o,i)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:t,state:n}=this;return F(Fa.Consumer,null,r=>{let{viewApi:i,options:o,calendarApi:a}=r,{moreLinkText:s}=o,{moreCnt:l}=t,c=JL(t),d=typeof s=="function"?s.call(a,l):`+${l} ${s}`,f=yh(o.moreLinkHint,[l],d),g={num:l,shortText:`+${l}`,text:d,view:i};return F(ut,null,!!t.moreCnt&&F(hr,{elTag:t.elTag||"a",elRef:this.handleLinkEl,elClasses:[...t.elClasses||[],"fc-more-link"],elStyle:t.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},t.elAttrs),eL(this.handleClick)),{title:f,"aria-expanded":n.isPopoverOpen,"aria-controls":n.isPopoverOpen?n.popoverId:""}),renderProps:g,generatorName:"moreLinkContent",customGenerator:o.moreLinkContent,defaultGenerator:t.defaultGenerator||i$e,classNameGenerator:o.moreLinkClassNames,didMount:o.moreLinkDidMount,willUnmount:o.moreLinkWillUnmount},t.children),n.isPopoverOpen&&F(r$e,{id:n.popoverId,startDate:c.start,endDate:c.end,dateProfile:t.dateProfile,todayRange:t.todayRange,extraDateSpan:t.extraDateSpan,parentEl:this.parentEl,alignmentEl:t.alignmentElRef?t.alignmentElRef.current:this.linkEl,alignGridTop:t.alignGridTop,onClose:this.handlePopoverClose},t.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=La(this.linkEl,".fc-view-harness"))}}function i$e(e){return e.text}function JL(e){if(e.allDayDate)return{start:e.allDayDate,end:xn(e.allDayDate,1)};let{hiddenSegs:t}=e;return{start:eF(t),end:a$e(t)}}function eF(e){return e.reduce(o$e).eventRange.range.start}function o$e(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function a$e(e){return e.reduce(s$e).eventRange.range.end}function s$e(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}class l$e{constructor(){this.handlers=[]}set(t){this.currentValue=t;for(let n of this.handlers)n(t)}subscribe(t){this.handlers.push(t),this.currentValue!==void 0&&t(this.currentValue)}}class u$e extends l$e{constructor(){super(...arguments),this.map=new Map}handle(t){const{map:n}=this;let r=!1;t.isActive?(n.set(t.id,t),r=!0):n.has(t.id)&&(n.delete(t.id),r=!0),r&&this.set(n)}}var c$e=':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-unselectable{-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;-moz-user-select:none;user-select:none}.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::-moz-focus-inner{border-style:none;padding:0}.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)}';vh(c$e);const d$e=[],tF={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"},nF=Object.assign(Object.assign({},tF),{buttonHints:{prev:"Previous $0",next:"Next $0",today(e,t){return t==="day"?"Today":`This ${e}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(e){return`Show ${e} more event${e===1?"":"s"}`}});function f$e(e){let t=e.length>0?e[0].code:"en",n=d$e.concat(e),r={en:nF};for(let i of n)r[i.code]=i;return{map:r,defaultCode:t}}function rF(e,t){return typeof e=="object"&&!Array.isArray(e)?iF(e.code,[e.code],e):p$e(e,t)}function p$e(e,t){let n=[].concat(e||[]),r=h$e(n,t)||nF;return iF(e,n,r)}function h$e(e,t){for(let n=0;n<e.length;n+=1){let r=e[n].toLocaleLowerCase().split("-");for(let i=r.length;i>0;i-=1){let o=r.slice(0,i).join("-");if(t[o])return t[o]}}return null}function iF(e,t,n){let r=BS([tF,n],["buttonText"]);delete r.code;let{week:i}=r;return delete r.week,{codeArg:e,codes:t,week:i,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}function Ko(e){return{id:vu(),name:e.name,premiumReleaseDate:e.premiumReleaseDate?new Date(e.premiumReleaseDate):void 0,deps:e.deps||[],reducers:e.reducers||[],isLoadingFuncs:e.isLoadingFuncs||[],contextInit:[].concat(e.contextInit||[]),eventRefiners:e.eventRefiners||{},eventDefMemberAdders:e.eventDefMemberAdders||[],eventSourceRefiners:e.eventSourceRefiners||{},isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],viewContainerAppends:e.viewContainerAppends||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,initialView:e.initialView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{},scrollGridImpl:e.scrollGridImpl||null,listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}function g$e(e,t){let n={},r={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function i(o){for(let a of o){const s=a.name,l=n[s];l===void 0?(n[s]=a.id,i(a.deps),r=v$e(r,a)):l!==a.id&&console.warn(`Duplicate plugin '${s}'`)}}return e&&i(e),i(t),r}function m$e(){let e=[],t=[],n;return(r,i)=>((!n||!Js(r,e)||!Js(i,t))&&(n=g$e(r,i)),e=r,t=i,n)}function v$e(e,t){return{premiumReleaseDate:y$e(e.premiumReleaseDate,t.premiumReleaseDate),reducers:e.reducers.concat(t.reducers),isLoadingFuncs:e.isLoadingFuncs.concat(t.isLoadingFuncs),contextInit:e.contextInit.concat(t.contextInit),eventRefiners:Object.assign(Object.assign({},e.eventRefiners),t.eventRefiners),eventDefMemberAdders:e.eventDefMemberAdders.concat(t.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},e.eventSourceRefiners),t.eventSourceRefiners),isDraggableTransformers:e.isDraggableTransformers.concat(t.isDraggableTransformers),eventDragMutationMassagers:e.eventDragMutationMassagers.concat(t.eventDragMutationMassagers),eventDefMutationAppliers:e.eventDefMutationAppliers.concat(t.eventDefMutationAppliers),dateSelectionTransformers:e.dateSelectionTransformers.concat(t.dateSelectionTransformers),datePointTransforms:e.datePointTransforms.concat(t.datePointTransforms),dateSpanTransforms:e.dateSpanTransforms.concat(t.dateSpanTransforms),views:Object.assign(Object.assign({},e.views),t.views),viewPropsTransformers:e.viewPropsTransformers.concat(t.viewPropsTransformers),isPropsValid:t.isPropsValid||e.isPropsValid,externalDefTransforms:e.externalDefTransforms.concat(t.externalDefTransforms),viewContainerAppends:e.viewContainerAppends.concat(t.viewContainerAppends),eventDropTransformers:e.eventDropTransformers.concat(t.eventDropTransformers),calendarInteractions:e.calendarInteractions.concat(t.calendarInteractions),componentInteractions:e.componentInteractions.concat(t.componentInteractions),themeClasses:Object.assign(Object.assign({},e.themeClasses),t.themeClasses),eventSourceDefs:e.eventSourceDefs.concat(t.eventSourceDefs),cmdFormatter:t.cmdFormatter||e.cmdFormatter,recurringTypes:e.recurringTypes.concat(t.recurringTypes),namedTimeZonedImpl:t.namedTimeZonedImpl||e.namedTimeZonedImpl,initialView:e.initialView||t.initialView,elementDraggingImpl:e.elementDraggingImpl||t.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},e.optionChangeHandlers),t.optionChangeHandlers),scrollGridImpl:t.scrollGridImpl||e.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},e.listenerRefiners),t.listenerRefiners),optionRefiners:Object.assign(Object.assign({},e.optionRefiners),t.optionRefiners),propSetHandlers:Object.assign(Object.assign({},e.propSetHandlers),t.propSetHandlers)}}function y$e(e,t){return e===void 0?t:t===void 0?e:new Date(Math.max(e.valueOf(),t.valueOf()))}class ol extends wh{}ol.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},ol.prototype.baseIconClass="fc-icon",ol.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"},ol.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},ol.prototype.iconOverrideOption="buttonIcons",ol.prototype.iconOverrideCustomButtonOption="icon",ol.prototype.iconOverridePrefix="fc-icon-";function b$e(e,t){let n={},r;for(r in e)E8(r,n,e,t);for(r in t)E8(r,n,e,t);return n}function E8(e,t,n,r){if(t[e])return t[e];let i=x$e(e,t,n,r);return i&&(t[e]=i),i}function x$e(e,t,n,r){let i=n[e],o=r[e],a=d=>i&&i[d]!==null?i[d]:o&&o[d]!==null?o[d]:null,s=a("component"),l=a("superType"),c=null;if(l){if(l===e)throw new Error("Can't have a custom view type that references itself");c=E8(l,t,n,r)}return!s&&c&&(s=c.component),s?{type:e,component:s,defaults:Object.assign(Object.assign({},c?c.defaults:{}),i?i.rawOptions:{}),overrides:Object.assign(Object.assign({},c?c.overrides:{}),o?o.rawOptions:{})}:null}function oF(e){return xu(e,w$e)}function w$e(e){let t=typeof e=="function"?{component:e}:e,{component:n}=t;return t.content&&(n=S$e(t)),{superType:t.type,component:n,rawOptions:t}}function S$e(e){return t=>F(Fa.Consumer,null,n=>F(hr,{elTag:"div",elClasses:$L(n.viewSpec),renderProps:Object.assign(Object.assign({},t),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,customGenerator:e.content,classNameGenerator:e.classNames,didMount:e.didMount,willUnmount:e.willUnmount}))}function $$e(e,t,n,r){let i=oF(e),o=oF(t.views),a=b$e(i,o);return xu(a,s=>C$e(s,o,t,n,r))}function C$e(e,t,n,r,i){let o=e.overrides.duration||e.defaults.duration||r.duration||n.duration,a=null,s="",l="",c={};if(o&&(a=E$e(o),a)){let g=MS(a);s=g.unit,g.value===1&&(l=s,c=t[s]?t[s].rawOptions:{})}let d=g=>{let p=g.buttonText||{},m=e.defaults.buttonTextKey;return m!=null&&p[m]!=null?p[m]:p[e.type]!=null?p[e.type]:p[l]!=null?p[l]:null},f=g=>{let p=g.buttonHints||{},m=e.defaults.buttonTextKey;return m!=null&&p[m]!=null?p[m]:p[e.type]!=null?p[e.type]:p[l]!=null?p[l]:null};return{type:e.type,component:e.component,duration:a,durationUnit:s,singleUnit:l,optionDefaults:e.defaults,optionOverrides:Object.assign(Object.assign({},c),e.overrides),buttonTextOverride:d(r)||d(n)||e.overrides.buttonText,buttonTextDefault:d(i)||e.defaults.buttonText||d(xh)||e.type,buttonTitleOverride:f(r)||f(n)||e.overrides.buttonHint,buttonTitleDefault:f(i)||e.defaults.buttonHint||f(xh)}}let aF={};function E$e(e){let t=JSON.stringify(e),n=aF[t];return n===void 0&&(n=yt(e),aF[t]=n),n}function k$e(e,t){switch(t.type){case"CHANGE_VIEW_TYPE":e=t.viewType}return e}function T$e(e,t){switch(t.type){case"SET_OPTION":return Object.assign(Object.assign({},e),{[t.optionName]:t.rawOptionValue});default:return e}}function A$e(e,t,n,r){let i;switch(t.type){case"CHANGE_VIEW_TYPE":return r.build(t.dateMarker||n);case"CHANGE_DATE":return r.build(t.dateMarker);case"PREV":if(i=r.buildPrev(e,n),i.isValid)return i;break;case"NEXT":if(i=r.buildNext(e,n),i.isValid)return i;break}return e}function R$e(e,t,n){let r=t?t.activeRange:null;return lF({},N$e(e,n),r,n)}function O$e(e,t,n,r){let i=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return lF(e,t.sources,i,r);case"REMOVE_EVENT_SOURCE":return I$e(e,t.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?uF(e,i,r):e;case"FETCH_EVENT_SOURCES":return k8(e,t.sourceIds?mL(t.sourceIds):cF(e,r),i,t.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return M$e(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}}function _$e(e,t,n){let r=t?t.activeRange:null;return k8(e,cF(e,n),r,!0,n)}function sF(e){for(let t in e)if(e[t].isFetching)return!0;return!1}function lF(e,t,n,r){let i={};for(let o of t)i[o.sourceId]=o;return n&&(i=uF(i,n,r)),Object.assign(Object.assign({},e),i)}function I$e(e,t){return Td(e,n=>n.sourceId!==t)}function uF(e,t,n){return k8(e,Td(e,r=>D$e(r,t,n)),t,!1,n)}function D$e(e,t,n){return dF(e,n)?!n.options.lazyFetching||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end:!e.latestFetchId}function k8(e,t,n,r,i){let o={};for(let a in e){let s=e[a];t[a]?o[a]=P$e(s,n,r,i):o[a]=s}return o}function P$e(e,t,n,r){let{options:i,calendarApi:o}=r,a=r.pluginHooks.eventSourceDefs[e.sourceDefId],s=vu();return a.fetch({eventSource:e,range:t,isRefetch:n,context:r},l=>{let{rawEvents:c}=l;i.eventSourceSuccess&&(c=i.eventSourceSuccess.call(o,c,l.response)||c),e.success&&(c=e.success.call(o,c,l.response)||c),r.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:s,fetchRange:t,rawEvents:c})},l=>{let c=!1;i.eventSourceFailure&&(i.eventSourceFailure.call(o,l),c=!0),e.failure&&(e.failure(l),c=!0),c||console.warn(l.message,l),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:s,fetchRange:t,error:l})}),Object.assign(Object.assign({},e),{isFetching:!0,latestFetchId:s})}function M$e(e,t,n,r){let i=e[t];return i&&n===i.latestFetchId?Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},i),{isFetching:!1,fetchRange:r})}):e}function cF(e,t){return Td(e,n=>dF(n,t))}function N$e(e,t){let n=IL(t),r=[].concat(e.eventSources||[]),i=[];e.initialEvents&&r.unshift(e.initialEvents),e.events&&r.unshift(e.events);for(let o of r){let a=_L(o,t,n);a&&i.push(a)}return i}function dF(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function L$e(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function F$e(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function j$e(e,t){let n;switch(t.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function z$e(e,t){let n;switch(t.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function B$e(e,t,n,r,i){let o=e.headerToolbar?fF(e.headerToolbar,e,t,n,r,i):null,a=e.footerToolbar?fF(e.footerToolbar,e,t,n,r,i):null;return{header:o,footer:a}}function fF(e,t,n,r,i,o){let a={},s=[],l=!1;for(let c in e){let d=e[c],f=H$e(d,t,n,r,i,o);a[c]=f.widgets,s.push(...f.viewsWithButtons),l=l||f.hasTitle}return{sectionWidgets:a,viewsWithButtons:s,hasTitle:l}}function H$e(e,t,n,r,i,o){let a=t.direction==="rtl",s=t.customButtons||{},l=n.buttonText||{},c=t.buttonText||{},d=n.buttonHints||{},f=t.buttonHints||{},g=e?e.split(" "):[],p=[],m=!1;return{widgets:g.map(w=>w.split(",").map(x=>{if(x==="title")return m=!0,{buttonName:x};let b,S,$,E,T,A;if(b=s[x])$=R=>{b.click&&b.click.call(R.target,R,R.target)},(E=r.getCustomButtonIconClass(b))||(E=r.getIconClass(x,a))||(T=b.text),A=b.hint||b.text;else if(S=i[x]){p.push(x),$=()=>{o.changeView(x)},(T=S.buttonTextOverride)||(E=r.getIconClass(x,a))||(T=S.buttonTextDefault);let R=S.buttonTextOverride||S.buttonTextDefault;A=yh(S.buttonTitleOverride||S.buttonTitleDefault||t.viewHint,[R,x],R)}else if(o[x])if($=()=>{o[x]()},(T=l[x])||(E=r.getIconClass(x,a))||(T=c[x]),x==="prevYear"||x==="nextYear"){let R=x==="prevYear"?"prev":"next";A=yh(d[R]||f[R],[c.year||"year","year"],c[x])}else A=R=>yh(d[x]||f[x],[c[R]||R,R],c[x]);return{buttonName:x,buttonClick:$,buttonIcon:E,buttonText:T,buttonHint:A}})),viewsWithButtons:p,hasTitle:m}}class U$e{constructor(t,n,r){this.type=t,this.getCurrentData=n,this.dateEnv=r}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(t){return this.getCurrentData().options[t]}}const W$e=Ko({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta(e){return Array.isArray(e.events)?e.events:null},fetch(e,t){t({rawEvents:e.eventSource.meta})}}]}),V$e=Ko({name:"func-event-source",eventSourceDefs:[{parseMeta(e){return typeof e.events=="function"?e.events:null},fetch(e,t,n){const{dateEnv:r}=e.context,i=e.eventSource.meta;y9e(i.bind(null,BL(e.range,r)),o=>t({rawEvents:o}),n)}}]}),G$e=Ko({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:re,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta(e){return e.url&&(e.format==="json"||!e.format)?{url:e.url,format:"json",method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}:null},fetch(e,t,n){const{meta:r}=e.eventSource,i=q$e(r,e.range,e.context);b9e(r.method,r.url,i).then(([o,a])=>{t({rawEvents:o,response:a})},n)}}]});function q$e(e,t,n){let{dateEnv:r,options:i}=n,o,a,s,l,c={};return o=e.startParam,o==null&&(o=i.startParam),a=e.endParam,a==null&&(a=i.endParam),s=e.timeZoneParam,s==null&&(s=i.timeZoneParam),typeof e.extraParams=="function"?l=e.extraParams():l=e.extraParams||{},Object.assign(c,l),c[o]=r.formatIso(t.start),c[a]=r.formatIso(t.end),r.timeZone!=="local"&&(c[s]=r.timeZone),c}const Y$e=Ko({name:"simple-recurring-event",recurringTypes:[{parse(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){let n={daysOfWeek:e.daysOfWeek||null,startTime:e.startTime||null,endTime:e.endTime||null,startRecur:e.startRecur?t.createMarker(e.startRecur):null,endRecur:e.endRecur?t.createMarker(e.endRecur):null},r;return e.duration&&(r=e.duration),!r&&e.startTime&&e.endTime&&(r=ASe(e.endTime,e.startTime)),{allDayGuess:!e.startTime&&!e.endTime,duration:r,typeData:n}}return null},expand(e,t,n){let r=Go(t,{start:e.startRecur,end:e.endRecur});return r?K$e(e.daysOfWeek,e.startTime,r,n):[]}}],eventRefiners:{daysOfWeek:re,startTime:yt,endTime:yt,duration:yt,startRecur:re,endRecur:re}});function K$e(e,t,n,r){let i=e?mL(e):null,o=Bt(n.start),a=n.end,s=[];for(;o<a;){let l;(!i||i[o.getUTCDay()])&&(t?l=r.add(o,t):l=o,s.push(l)),o=xn(o,1)}return s}const Z$e=Ko({name:"change-handler",optionChangeHandlers:{events(e,t){pF([e],t)},eventSources:pF}});function pF(e,t){let n=HS(t.getCurrentData().eventSources);n.length===1&&e.length===1&&Array.isArray(n[0]._raw)&&Array.isArray(e[0])&&t.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:e[0]});let r=[];for(let i of e){let o=!1;for(let a=0;a<n.length;a+=1)if(n[a]._raw===i){n.splice(a,1),o=!0;break}o||r.push(i)}for(let i of n)t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:i.sourceId});for(let i of r)t.calendarApi.addEventSource(i)}function Q$e(e,t){t.emitter.trigger("datesSet",Object.assign(Object.assign({},BL(e.activeRange,t.dateEnv)),{view:t.viewApi}))}function X$e(e,t){let{emitter:n}=t;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",e8(e,t))}const J$e=[W$e,V$e,G$e,Y$e,Z$e,Ko({name:"misc",isLoadingFuncs:[e=>sF(e.eventSources)],propSetHandlers:{dateProfile:Q$e,eventStore:X$e}})];class eCe{constructor(t,n){this.runTaskOption=t,this.drainedOption=n,this.queue=[],this.delayedRunner=new IS(this.drain.bind(this))}request(t,n){this.queue.push(t),this.delayedRunner.request(n)}pause(t){this.delayedRunner.pause(t)}resume(t,n){this.delayedRunner.resume(t,n)}drain(){let{queue:t}=this;for(;t.length;){let n=[],r;for(;r=t.shift();)this.runTask(r),n.push(r);this.drained(n)}}runTask(t){this.runTaskOption&&this.runTaskOption(t)}drained(t){this.drainedOption&&this.drainedOption(t)}}function tCe(e,t,n){let r;return/^(year|month)$/.test(e.currentRangeUnit)?r=e.currentRange:r=e.activeRange,n.formatRange(r.start,r.end,Ot(t.titleFormat||nCe(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}function nCe(e){let{currentRangeUnit:t}=e;if(t==="year")return{year:"numeric"};if(t==="month")return{year:"numeric",month:"long"};let n=Nv(e.currentRange.start,e.currentRange.end);return n!==null&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class rCe{constructor(t){this.computeCurrentViewData=Le(this._computeCurrentViewData),this.organizeRawLocales=Le(f$e),this.buildLocale=Le(rF),this.buildPluginHooks=m$e(),this.buildDateEnv=Le(iCe),this.buildTheme=Le(oCe),this.parseToolbars=Le(B$e),this.buildViewSpecs=Le($$e),this.buildDateProfileGenerator=Lv(aCe),this.buildViewApi=Le(sCe),this.buildViewUiProps=Lv(cCe),this.buildEventUiBySource=Le(lCe,pi),this.buildEventUiBases=Le(uCe),this.parseContextBusinessHours=Lv(dCe),this.buildTitle=Le(tCe),this.emitter=new K8e,this.actionRunner=new eCe(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=g=>{this.actionRunner.request(g)},this.props=t,this.actionRunner.pause();let n={},r=this.computeOptionsData(t.optionOverrides,n,t.calendarApi),i=r.calendarOptions.initialView||r.pluginHooks.initialView,o=this.computeCurrentViewData(i,r,t.optionOverrides,n);t.calendarApi.currentDataManager=this,this.emitter.setThisContext(t.calendarApi),this.emitter.setOptions(o.options);let a=R8e(r.calendarOptions,r.dateEnv),s=o.dateProfileGenerator.build(a);ja(s.activeRange,a)||(a=s.currentRange.start);let l={dateEnv:r.dateEnv,options:r.calendarOptions,pluginHooks:r.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let g of r.pluginHooks.contextInit)g(l);let c=R$e(r.calendarOptions,s,l),d={dynamicOptionOverrides:n,currentViewType:i,currentDate:a,dateProfile:s,businessHours:this.parseContextBusinessHours(l),eventSources:c,eventUiBases:{},eventStore:za(),renderableEventStore:za(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(l).selectionConfig},f=Object.assign(Object.assign({},l),d);for(let g of r.pluginHooks.reducers)Object.assign(d,g(null,null,f));T8(d,l)&&this.emitter.trigger("loading",!0),this.state=d,this.updateData(),this.actionRunner.resume()}resetOptions(t,n){let{props:r}=this;n===void 0?r.optionOverrides=t:(r.optionOverrides=Object.assign(Object.assign({},r.optionOverrides||{}),t),this.optionsForRefining.push(...n)),(n===void 0||n.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(t){let{props:n,state:r,emitter:i}=this,o=T$e(r.dynamicOptionOverrides,t),a=this.computeOptionsData(n.optionOverrides,o,n.calendarApi),s=k$e(r.currentViewType,t),l=this.computeCurrentViewData(s,a,n.optionOverrides,o);n.calendarApi.currentDataManager=this,i.setThisContext(n.calendarApi),i.setOptions(l.options);let c={dateEnv:a.dateEnv,options:a.calendarOptions,pluginHooks:a.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:i,getCurrentData:this.getCurrentData},{currentDate:d,dateProfile:f}=r;this.data&&this.data.dateProfileGenerator!==l.dateProfileGenerator&&(f=l.dateProfileGenerator.build(d)),d=A8e(d,t),f=A$e(f,t,d,l.dateProfileGenerator),(t.type==="PREV"||t.type==="NEXT"||!ja(f.currentRange,d))&&(d=f.currentRange.start);let g=O$e(r.eventSources,t,f,c),p=U8e(r.eventStore,t,g,f,c),v=sF(g)&&!l.options.progressiveEventRendering&&r.renderableEventStore||p,{eventUiSingleBase:w,selectionConfig:x}=this.buildViewUiProps(c),b=this.buildEventUiBySource(g),S=this.buildEventUiBases(v.defs,w,b),$={dynamicOptionOverrides:o,currentViewType:s,currentDate:d,dateProfile:f,eventSources:g,eventStore:p,renderableEventStore:v,selectionConfig:x,eventUiBases:S,businessHours:this.parseContextBusinessHours(c),dateSelection:L$e(r.dateSelection,t),eventSelection:F$e(r.eventSelection,t),eventDrag:j$e(r.eventDrag,t),eventResize:z$e(r.eventResize,t)},E=Object.assign(Object.assign({},c),$);for(let R of a.pluginHooks.reducers)Object.assign($,R(r,t,E));let T=T8(r,c),A=T8($,c);!T&&A?i.trigger("loading",!0):T&&!A&&i.trigger("loading",!1),this.state=$,n.onAction&&n.onAction(t)}updateData(){let{props:t,state:n}=this,r=this.data,i=this.computeOptionsData(t.optionOverrides,n.dynamicOptionOverrides,t.calendarApi),o=this.computeCurrentViewData(n.currentViewType,i,t.optionOverrides,n.dynamicOptionOverrides),a=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(n.dateProfile,o.options,i.dateEnv),calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},i),o),n),s=i.pluginHooks.optionChangeHandlers,l=r&&r.calendarOptions,c=i.calendarOptions;if(l&&l!==c){l.timeZone!==c.timeZone&&(n.eventSources=a.eventSources=_$e(a.eventSources,n.dateProfile,a),n.eventStore=a.eventStore=q8e(a.eventStore,r.dateEnv,a.dateEnv));for(let d in s)(this.optionsForHandling.indexOf(d)!==-1||l[d]!==c[d])&&s[d](c[d],a)}this.optionsForHandling=[],t.onData&&t.onData(a)}computeOptionsData(t,n,r){if(!this.optionsForRefining.length&&t===this.stableOptionOverrides&&n===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:i,pluginHooks:o,localeDefaults:a,availableLocaleData:s,extra:l}=this.processRawCalendarOptions(t,n);hF(l);let c=this.buildDateEnv(i.timeZone,i.locale,i.weekNumberCalculation,i.firstDay,i.weekText,o,s,i.defaultRangeSeparator),d=this.buildViewSpecs(o.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,a),f=this.buildTheme(i,o),g=this.parseToolbars(i,this.stableOptionOverrides,f,d,r);return this.stableCalendarOptionsData={calendarOptions:i,pluginHooks:o,dateEnv:c,viewSpecs:d,theme:f,toolbarConfig:g,localeDefaults:a,availableRawLocales:s.map}}processRawCalendarOptions(t,n){let{locales:r,locale:i}=jS([xh,t,n]),o=this.organizeRawLocales(r),a=o.map,s=this.buildLocale(i||o.defaultCode,a).options,l=this.buildPluginHooks(t.plugins||[],J$e),c=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},pL),hL),gL),l.listenerRefiners),l.optionRefiners),d={},f=jS([xh,s,t,n]),g={},p=this.currentCalendarOptionsInput,m=this.currentCalendarOptionsRefined,v=!1;for(let w in f)this.optionsForRefining.indexOf(w)===-1&&(f[w]===p[w]||yu[w]&&w in p&&yu[w](p[w],f[w]))?g[w]=m[w]:c[w]?(g[w]=c[w](f[w]),v=!0):d[w]=p[w];return v&&(this.currentCalendarOptionsInput=f,this.currentCalendarOptionsRefined=g,this.stableOptionOverrides=t,this.stableDynamicOptionOverrides=n),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:l,availableLocaleData:o,localeDefaults:s,extra:d}}_computeCurrentViewData(t,n,r,i){let o=n.viewSpecs[t];if(!o)throw new Error(`viewType "${t}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:a,extra:s}=this.processRawViewOptions(o,n.pluginHooks,n.localeDefaults,r,i);hF(s);let l=this.buildDateProfileGenerator({dateProfileGeneratorClass:o.optionDefaults.dateProfileGeneratorClass,duration:o.duration,durationUnit:o.durationUnit,usesMinMaxTime:o.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}),c=this.buildViewApi(t,this.getCurrentData,n.dateEnv);return{viewSpec:o,options:a,dateProfileGenerator:l,viewApi:c}}processRawViewOptions(t,n,r,i,o){let a=jS([xh,t.optionDefaults,r,i,t.optionOverrides,o]),s=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},pL),hL),gL),o8e),n.listenerRefiners),n.optionRefiners),l={},c=this.currentViewOptionsInput,d=this.currentViewOptionsRefined,f=!1,g={};for(let p in a)a[p]===c[p]||yu[p]&&yu[p](a[p],c[p])?l[p]=d[p]:(a[p]===this.currentCalendarOptionsInput[p]||yu[p]&&yu[p](a[p],this.currentCalendarOptionsInput[p])?p in this.currentCalendarOptionsRefined&&(l[p]=this.currentCalendarOptionsRefined[p]):s[p]?l[p]=s[p](a[p]):g[p]=a[p],f=!0);return f&&(this.currentViewOptionsInput=a,this.currentViewOptionsRefined=l),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:g}}}function iCe(e,t,n,r,i,o,a,s){let l=rF(t||a.defaultCode,a.map);return new g8e({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:o.namedTimeZonedImpl,locale:l,weekNumberCalculation:n,firstDay:r,weekText:i,cmdFormatter:o.cmdFormatter,defaultSeparator:s})}function oCe(e,t){let n=t.themeClasses[e.themeSystem]||ol;return new n(e)}function aCe(e){let t=e.dateProfileGeneratorClass||qS;return new t(e)}function sCe(e,t,n){return new U$e(e,t,n)}function lCe(e){return xu(e,t=>t.ui)}function uCe(e,t,n){let r={"":t};for(let i in e){let o=e[i];o.sourceId&&n[o.sourceId]&&(r[i]=n[o.sourceId])}return r}function cCe(e){let{options:t}=e;return{eventUiSingleBase:Gv({display:t.eventDisplay,editable:t.editable,startEditable:t.eventStartEditable,durationEditable:t.eventDurationEditable,constraint:t.eventConstraint,overlap:typeof t.eventOverlap=="boolean"?t.eventOverlap:void 0,allow:t.eventAllow,backgroundColor:t.eventBackgroundColor,borderColor:t.eventBorderColor,textColor:t.eventTextColor,color:t.eventColor},e),selectionConfig:Gv({constraint:t.selectConstraint,overlap:typeof t.selectOverlap=="boolean"?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function T8(e,t){for(let n of t.pluginHooks.isLoadingFuncs)if(n(e))return!0;return!1}function dCe(e){return J8e(e.options.businessHours,e)}function hF(e,t){for(let n in e)console.warn(`Unknown option '${n}'`+(t?` for view '${t}'`:""))}class fCe extends bt{render(){let t=this.props.widgetGroups.map(n=>this.renderWidgetGroup(n));return F("div",{className:"fc-toolbar-chunk"},...t)}renderWidgetGroup(t){let{props:n}=this,{theme:r}=this.context,i=[],o=!0;for(let a of t){let{buttonName:s,buttonClick:l,buttonText:c,buttonIcon:d,buttonHint:f}=a;if(s==="title")o=!1,i.push(F("h2",{className:"fc-toolbar-title",id:n.titleId},n.title));else{let g=s===n.activeButton,p=!n.isTodayEnabled&&s==="today"||!n.isPrevEnabled&&s==="prev"||!n.isNextEnabled&&s==="next",m=[`fc-${s}-button`,r.getClass("button")];g&&m.push(r.getClass("buttonActive")),i.push(F("button",{type:"button",title:typeof f=="function"?f(n.navUnit):f,disabled:p,"aria-pressed":g,className:m.join(" "),onClick:l},c||(d?F("span",{className:d}):"")))}}if(i.length>1){let a=o&&r.getClass("buttonGroup")||"";return F("div",{className:a},...i)}return i[0]}}class gF extends bt{render(){let{model:t,extraClassName:n}=this.props,r=!1,i,o,a=t.sectionWidgets,s=a.center;return a.left?(r=!0,i=a.left):i=a.start,a.right?(r=!0,o=a.right):o=a.end,F("div",{className:[n||"","fc-toolbar",r?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",i||[]),this.renderSection("center",s||[]),this.renderSection("end",o||[]))}renderSection(t,n){let{props:r}=this;return F(fCe,{key:t,widgetGroups:n,title:r.title,navUnit:r.navUnit,activeButton:r.activeButton,isTodayEnabled:r.isTodayEnabled,isPrevEnabled:r.isPrevEnabled,isNextEnabled:r.isNextEnabled,titleId:r.titleId})}}class pCe extends bt{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=t=>{this.el=t,Vo(this.props.elRef,t),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:t,state:n}=this,{aspectRatio:r}=t,i=["fc-view-harness",r||t.liquid||t.height?"fc-view-harness-active":"fc-view-harness-passive"],o="",a="";return r?n.availableWidth!==null?o=n.availableWidth/r:a=`${1/r*100}%`:o=t.height||"",F("div",{"aria-labelledby":t.labeledById,ref:this.handleEl,className:i.join(" "),style:{height:o,paddingBottom:a}},t.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 hCe extends VL{constructor(t){super(t),this.handleSegClick=(n,r)=>{let{component:i}=this,{context:o}=i,a=n8(r);if(a&&i.isValidSegDownEl(n.target)){let s=La(n.target,".fc-event-forced-url"),l=s?s.querySelector("a[href]").href:"";o.emitter.trigger("eventClick",{el:r,event:new ji(i.context,a.eventRange.def,a.eventRange.instance),jsEvent:n,view:o.viewApi}),l&&!n.defaultPrevented&&(window.location.href=l)}},this.destroy=JN(t.el,"click",".fc-event",this.handleSegClick)}}class gCe extends VL{constructor(t){super(t),this.handleEventElRemove=n=>{n===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(n,r)=>{n8(r)&&(this.currentSegEl=r,this.triggerEvent("eventMouseEnter",n,r))},this.handleSegLeave=(n,r)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",n,r))},this.removeHoverListeners=bSe(t.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(t,n,r){let{component:i}=this,{context:o}=i,a=n8(r);(!n||i.isValidSegDownEl(n.target))&&o.emitter.trigger(t,{el:r,event:new ji(o,a.eventRange.def,a.eventRange.instance),jsEvent:n,view:o.viewApi})}}class mCe extends wu{constructor(){super(...arguments),this.buildViewContext=Le(y8e),this.buildViewPropTransformers=Le(yCe),this.buildToolbarProps=Le(vCe),this.headerRef=Pn(),this.footerRef=Pn(),this.interactionsStore={},this.state={viewLabelId:Wo()},this.registerInteractiveComponent=(t,n)=>{let r=S9e(t,n),a=[hCe,gCe].concat(this.props.pluginHooks.componentInteractions).map(s=>new s(r));this.interactionsStore[t.uid]=a,GL[t.uid]=r},this.unregisterInteractiveComponent=t=>{let n=this.interactionsStore[t.uid];if(n){for(let r of n)r.destroy();delete this.interactionsStore[t.uid]}delete GL[t.uid]},this.resizeRunner=new IS(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=t=>{let{options:n}=this.props;n.handleWindowResize&&t.target===window&&this.resizeRunner.request(n.windowResizeDelay)}}render(){let{props:t}=this,{toolbarConfig:n,options:r}=t,i=this.buildToolbarProps(t.viewSpec,t.dateProfile,t.dateProfileGenerator,t.currentDate,Sh(t.options.now,t.dateEnv),t.viewTitle),o=!1,a="",s;t.isHeightAuto||t.forPrint?a="":r.height!=null?o=!0:r.contentHeight!=null?a=r.contentHeight:s=Math.max(r.aspectRatio,.5);let l=this.buildViewContext(t.viewSpec,t.viewApi,t.options,t.dateProfileGenerator,t.dateEnv,t.theme,t.pluginHooks,t.dispatch,t.getCurrentData,t.emitter,t.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),c=n.header&&n.header.hasTitle?this.state.viewLabelId:"";return F(Fa.Provider,{value:l},n.header&&F(gF,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:c},i)),F(pCe,{liquid:o,height:a,aspectRatio:s,labeledById:c},this.renderView(t),this.buildAppendContent()),n.footer&&F(gF,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},i)))}componentDidMount(){let{props:t}=this;this.calendarInteractions=t.pluginHooks.calendarInteractions.map(r=>new r(t)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:n}=t.pluginHooks;for(let r in n)n[r](t[r],t)}componentDidUpdate(t){let{props:n}=this,{propSetHandlers:r}=n.pluginHooks;for(let i in r)n[i]!==t[i]&&r[i](n[i],n)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let t of this.calendarInteractions)t.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:t}=this,n=t.pluginHooks.viewContainerAppends.map(r=>r(t));return F(ut,{},...n)}renderView(t){let{pluginHooks:n}=t,{viewSpec:r}=t,i={dateProfile:t.dateProfile,businessHours:t.businessHours,eventStore:t.renderableEventStore,eventUiBases:t.eventUiBases,dateSelection:t.dateSelection,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,isHeightAuto:t.isHeightAuto,forPrint:t.forPrint},o=this.buildViewPropTransformers(n.viewPropsTransformers);for(let s of o)Object.assign(i,s.transform(i,t));let a=r.component;return F(a,Object.assign({},i))}}function vCe(e,t,n,r,i,o){let a=n.build(i,void 0,!1),s=n.buildPrev(t,r,!1),l=n.buildNext(t,r,!1);return{title:o,activeButton:e.type,navUnit:e.singleUnit,isTodayEnabled:a.isValid&&!ja(t.currentRange,i),isPrevEnabled:s.isValid,isNextEnabled:l.isValid}}function yCe(e){return e.map(t=>new t)}class bCe extends $9e{constructor(t,n={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=r=>{switch(r.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=r=>{this.currentData=r,this.renderRunner.request(r.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:r}=this;yL(()=>{mh(F(w9e,{options:r.calendarOptions,theme:r.theme,emitter:r.emitter},(i,o,a,s)=>(this.setClassNames(i),this.setHeight(o),F(SL.Provider,{value:this.customContentRenderId},F(mCe,Object.assign({isHeightAuto:a,forPrint:s},r))))),this.el)})}else this.isRendered&&(this.isRendered=!1,mh(null,this.el),this.setClassNames([]),this.setHeight(""))},uSe(t),this.el=t,this.renderRunner=new IS(this.handleRenderRequest),new rCe({optionOverrides:n,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let t=this.isRendering;t?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),t&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){yL(()=>{super.updateSize()})}batchRendering(t){this.renderRunner.pause("batchRendering"),t(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(t,n){this.currentDataManager.resetOptions(t,n)}setClassNames(t){if(!Js(t,this.currentClassNames)){let{classList:n}=this.el;for(let r of this.currentClassNames)n.remove(r);for(let r of t)n.add(r);this.currentClassNames=t}}setHeight(t){QN(this.el,"height",t)}}class ry extends O.Component{constructor(){super(...arguments),this.elRef=O.createRef(),this.needsCustomRenderingResize=!1,this.isInitialRender=!0,this.state={customRenderingMap:new Map}}render(){const t=[];for(const n of this.state.customRenderingMap.values()){const{generatorMeta:r}=n,i=typeof r=="function"?r(n.renderProps):r;t.push(Ss.createPortal(i,n.containerEl,n.id))}return oe.createElement("div",{ref:this.elRef},t)}componentDidMount(){const t=new u$e;this.handleCustomRendering=t.handle.bind(t),this.calendar=new bCe(this.elRef.current,Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.calendar.render(),t.subscribe(n=>{this.isInitialRender?this.doCustomRendering(n):this.requestCustomRendering(n)})}requestCustomRendering(t){this.cancelCustomRendering(),this.customRenderingRequestId=requestAnimationFrame(()=>{ry.act(()=>{this.doCustomRendering(t)})})}doCustomRendering(t){this.needsCustomRenderingResize=!0,this.setState({customRenderingMap:t})}cancelCustomRendering(){this.customRenderingRequestId&&(cancelAnimationFrame(this.customRenderingRequestId),this.customRenderingRequestId=void 0)}componentDidUpdate(){this.isInitialRender=!1,this.calendar.resetOptions(Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.needsCustomRenderingResize&&(this.needsCustomRenderingResize=!1,this.calendar.updateSize())}componentWillUnmount(){this.calendar.destroy(),this.cancelCustomRendering()}getApi(){return this.calendar}}ry.act=e=>{e()};class xCe extends bt{constructor(){super(...arguments),this.state={textId:Wo()}}render(){let{theme:t,dateEnv:n,options:r,viewApi:i}=this.context,{cellId:o,dayDate:a,todayRange:s}=this.props,{textId:l}=this.state,c=a8(a,s),d=r.listDayFormat?n.format(a,r.listDayFormat):"",f=r.listDaySideFormat?n.format(a,r.listDaySideFormat):"",g=Object.assign({date:n.toDate(a),view:i,textId:l,text:d,sideText:f,navLinkAttrs:il(this.context,a),sideNavLinkAttrs:il(this.context,a,"day",!1)},c);return F(hr,{elTag:"tr",elClasses:["fc-list-day",...Kv(c,t)],elAttrs:{"data-date":bh(a)},renderProps:g,generatorName:"dayHeaderContent",customGenerator:r.dayHeaderContent,defaultGenerator:wCe,classNameGenerator:r.dayHeaderClassNames,didMount:r.dayHeaderDidMount,willUnmount:r.dayHeaderWillUnmount},p=>F("th",{scope:"colgroup",colSpan:3,id:o,"aria-labelledby":l},F(p,{elTag:"div",elClasses:["fc-list-day-cushion",t.getClass("tableCellShaded")]})))}}function wCe(e){return F(ut,null,e.text&&F("a",Object.assign({id:e.textId,className:"fc-list-day-text"},e.navLinkAttrs),e.text),e.sideText&&F("a",Object.assign({"aria-hidden":!0,className:"fc-list-day-side-text"},e.sideNavLinkAttrs),e.sideText))}const SCe=Ot({hour:"numeric",minute:"2-digit",meridiem:"short"});class $Ce extends bt{render(){let{props:t,context:n}=this,{options:r}=n,{seg:i,timeHeaderId:o,eventHeaderId:a,dateHeaderId:s}=t,l=r.eventTimeFormat||SCe;return F(Eh,Object.assign({},t,{elTag:"tr",elClasses:["fc-list-event",i.eventRange.def.url&&"fc-event-forced-url"],defaultGenerator:()=>CCe(i,n),seg:i,timeText:"",disableDragging:!0,disableResizing:!0}),(c,d)=>F(ut,null,ECe(i,l,n,o,s),F("td",{"aria-hidden":!0,className:"fc-list-event-graphic"},F("span",{className:"fc-list-event-dot",style:{borderColor:d.borderColor||d.backgroundColor}})),F(c,{elTag:"td",elClasses:["fc-list-event-title"],elAttrs:{headers:`${a} ${s}`}})))}}function CCe(e,t){let n=Yv(e,t);return F("a",Object.assign({},n),e.eventRange.def.title)}function ECe(e,t,n,r,i){let{options:o}=n;if(o.displayEventTime!==!1){let a=e.eventRange.def,s=e.eventRange.instance,l=!1,c;if(a.allDay?l=!0:T8e(e.eventRange.range)?e.isStart?c=Od(e,t,n,null,null,s.range.start,e.end):e.isEnd?c=Od(e,t,n,null,null,e.start,s.range.end):l=!0:c=Od(e,t,n),l){let d={text:n.options.allDayText,view:n.viewApi};return F(hr,{elTag:"td",elClasses:["fc-list-event-time"],elAttrs:{headers:`${r} ${i}`},renderProps:d,generatorName:"allDayContent",customGenerator:o.allDayContent,defaultGenerator:kCe,classNameGenerator:o.allDayClassNames,didMount:o.allDayDidMount,willUnmount:o.allDayWillUnmount})}return F("td",{className:"fc-list-event-time"},c)}return null}function kCe(e){return e.text}class TCe extends gr{constructor(){super(...arguments),this.computeDateVars=Le(RCe),this.eventStoreToSegs=Le(this._eventStoreToSegs),this.state={timeHeaderId:Wo(),eventHeaderId:Wo(),dateHeaderIdRoot:Wo()},this.setRootEl=t=>{t?this.context.registerInteractiveComponent(this,{el:t}):this.context.unregisterInteractiveComponent(this)}}render(){let{props:t,context:n}=this,{dayDates:r,dayRanges:i}=this.computeDateVars(t.dateProfile),o=this.eventStoreToSegs(t.eventStore,t.eventUiBases,i);return F(Ad,{elRef:this.setRootEl,elClasses:["fc-list",n.theme.getClass("table"),n.options.stickyHeaderDates!==!1?"fc-list-sticky":""],viewSpec:n.viewSpec},F(ZL,{liquid:!t.isHeightAuto,overflowX:t.isHeightAuto?"visible":"hidden",overflowY:t.isHeightAuto?"visible":"auto"},o.length>0?this.renderSegList(o,r):this.renderEmptyMessage()))}renderEmptyMessage(){let{options:t,viewApi:n}=this.context,r={text:t.noEventsText,view:n};return F(hr,{elTag:"div",elClasses:["fc-list-empty"],renderProps:r,generatorName:"noEventsContent",customGenerator:t.noEventsContent,defaultGenerator:ACe,classNameGenerator:t.noEventsClassNames,didMount:t.noEventsDidMount,willUnmount:t.noEventsWillUnmount},i=>F(i,{elTag:"div",elClasses:["fc-list-empty-cushion"]}))}renderSegList(t,n){let{theme:r,options:i}=this.context,{timeHeaderId:o,eventHeaderId:a,dateHeaderIdRoot:s}=this.state,l=OCe(t);return F(Su,{unit:"day"},(c,d)=>{let f=[];for(let g=0;g<l.length;g+=1){let p=l[g];if(p){let m=bh(n[g]),v=s+"-"+m;f.push(F(xCe,{key:m,cellId:v,dayDate:n[g],todayRange:d})),p=qv(p,i.eventOrder);for(let w of p)f.push(F($Ce,Object.assign({key:m+":"+w.eventRange.instance.instanceId,seg:w,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,timeHeaderId:o,eventHeaderId:a,dateHeaderId:v},Vr(w,d,c))))}}return F("table",{className:"fc-list-table "+r.getClass("table")},F("thead",null,F("tr",null,F("th",{scope:"col",id:o},i.timeHint),F("th",{scope:"col","aria-hidden":!0}),F("th",{scope:"col",id:a},i.eventHint))),F("tbody",null,f))})}_eventStoreToSegs(t,n,r){return this.eventRangesToSegs(t8(t,n,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,r)}eventRangesToSegs(t,n){let r=[];for(let i of t)r.push(...this.eventRangeToSegs(i,n));return r}eventRangeToSegs(t,n){let{dateEnv:r}=this.context,{nextDayThreshold:i}=this.context.options,o=t.range,a=t.def.allDay,s,l,c,d=[];for(s=0;s<n.length;s+=1)if(l=Go(o,n[s]),l&&(c={component:this,eventRange:t,start:l.start,end:l.end,isStart:t.isStart&&l.start.valueOf()===o.start.valueOf(),isEnd:t.isEnd&&l.end.valueOf()===o.end.valueOf(),dayIndex:s},d.push(c),!c.isEnd&&!a&&s+1<n.length&&o.end<r.add(n[s+1].start,i))){c.end=o.end,c.isEnd=!0;break}return d}}function ACe(e){return e.text}function RCe(e){let t=Bt(e.renderRange.start),n=e.renderRange.end,r=[],i=[];for(;t<n;)r.push(t),i.push({start:t,end:xn(t,1)}),t=xn(t,1);return{dayDates:r,dayRanges:i}}function OCe(e){let t=[],n,r;for(n=0;n<e.length;n+=1)r=e[n],(t[r.dayIndex]||(t[r.dayIndex]=[])).push(r);return t}const _Ce={listDayFormat:mF,listDaySideFormat:mF,noEventsClassNames:re,noEventsContent:re,noEventsDidMount:re,noEventsWillUnmount:re};function mF(e){return e===!1?null:Ot(e)}var ICe=':root{--fc-list-event-dot-width:10px;--fc-list-event-hover-bg-color:#f5f5f5}.fc-theme-standard .fc-list{border:1px solid var(--fc-border-color)}.fc .fc-list-empty{align-items:center;background-color:var(--fc-neutral-bg-color);display:flex;height:100%;justify-content:center}.fc .fc-list-empty-cushion{margin:5em 0}.fc .fc-list-table{border-style:hidden;width:100%}.fc .fc-list-table tr>*{border-left:0;border-right:0}.fc .fc-list-sticky .fc-list-day>*{background:var(--fc-page-bg-color);position:sticky;top:0}.fc .fc-list-table thead{left:-10000px;position:absolute}.fc .fc-list-table tbody>tr:first-child th{border-top:0}.fc .fc-list-table th{padding:0}.fc .fc-list-day-cushion,.fc .fc-list-table td{padding:8px 14px}.fc .fc-list-day-cushion:after{clear:both;content:"";display:table}.fc-theme-standard .fc-list-day-cushion{background-color:var(--fc-neutral-bg-color)}.fc-direction-ltr .fc-list-day-text,.fc-direction-rtl .fc-list-day-side-text{float:left}.fc-direction-ltr .fc-list-day-side-text,.fc-direction-rtl .fc-list-day-text{float:right}.fc-direction-ltr .fc-list-table .fc-list-event-graphic{padding-right:0}.fc-direction-rtl .fc-list-table .fc-list-event-graphic{padding-left:0}.fc .fc-list-event.fc-event-forced-url{cursor:pointer}.fc .fc-list-event:hover td{background-color:var(--fc-list-event-hover-bg-color)}.fc .fc-list-event-graphic,.fc .fc-list-event-time{white-space:nowrap;width:1px}.fc .fc-list-event-dot{border:calc(var(--fc-list-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-list-event-dot-width)/2);box-sizing:content-box;display:inline-block;height:0;width:0}.fc .fc-list-event-title a{color:inherit;text-decoration:none}.fc .fc-list-event.fc-event-forced-url:hover a{text-decoration:underline}';vh(ICe);var DCe=Ko({name:"@fullcalendar/list",optionRefiners:_Ce,views:{list:{component:TCe,buttonTextKey:"list",listDayFormat:{month:"long",day:"numeric",year:"numeric"}},listDay:{type:"list",duration:{days:1},listDayFormat:{weekday:"long"}},listWeek:{type:"list",duration:{weeks:1},listDayFormat:{weekday:"long"},listDaySideFormat:{month:"long",day:"numeric",year:"numeric"}},listMonth:{type:"list",duration:{month:1},listDaySideFormat:{weekday:"long"}},listYear:{type:"list",duration:{year:1},listDaySideFormat:{weekday:"long"}}}});class PCe extends gr{constructor(){super(...arguments),this.headerElRef=Pn()}renderSimpleLayout(t,n){let{props:r,context:i}=this,o=[],a=ey(i.options);return t&&o.push({type:"header",key:"header",isSticky:a,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}}),o.push({type:"body",key:"body",liquid:!0,chunk:{content:n}}),F(Ad,{elClasses:["fc-daygrid"],viewSpec:i.viewSpec},F(v8,{liquid:!r.isHeightAuto&&!r.forPrint,collapsibleWidth:r.forPrint,cols:[],sections:o}))}renderHScrollLayout(t,n,r,i){let o=this.context.pluginHooks.scrollGridImpl;if(!o)throw new Error("No ScrollGrid implementation");let{props:a,context:s}=this,l=!a.forPrint&&ey(s.options),c=!a.forPrint&&XL(s.options),d=[];return t&&d.push({type:"header",key:"header",isSticky:l,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}]}),d.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:n}]}),c&&d.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:m8}]}),F(Ad,{elClasses:["fc-daygrid"],viewSpec:s.viewSpec},F(o,{liquid:!a.isHeightAuto&&!a.forPrint,collapsibleWidth:a.forPrint,colGroups:[{cols:[{span:r,minWidth:i}]}],sections:d}))}}function iy(e,t){let n=[];for(let r=0;r<t;r+=1)n[r]=[];for(let r of e)n[r.row].push(r);return n}function oy(e,t){let n=[];for(let r=0;r<t;r+=1)n[r]=[];for(let r of e)n[r.firstCol].push(r);return n}function vF(e,t){let n=[];if(e){for(let r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(let r of e.segs)n[r.row].segs.push(r)}else for(let r=0;r<t;r+=1)n[r]=null;return n}const yF=Ot({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function bF(e){let{display:t}=e.eventRange.ui;return t==="list-item"||t==="auto"&&!e.eventRange.def.allDay&&e.firstCol===e.lastCol&&e.isStart&&e.isEnd}let xF=class extends bt{render(){let{props:t}=this;return F(y8,Object.assign({},t,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:yF,defaultDisplayEventEnd:t.defaultDisplayEventEnd,disableResizing:!t.seg.eventRange.def.allDay}))}},wF=class extends bt{render(){let{props:t,context:n}=this,{options:r}=n,{seg:i}=t,o=r.eventTimeFormat||yF,a=Od(i,o,n,!0,t.defaultDisplayEventEnd);return F(Eh,Object.assign({},t,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:Yv(t.seg,n),defaultGenerator:MCe,timeText:a,isResizing:!1,isDateSelecting:!1}))}};function MCe(e){return F(ut,null,F("div",{className:"fc-daygrid-event-dot",style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&F("div",{className:"fc-event-time"},e.timeText),F("div",{className:"fc-event-title"},e.event.title||F(ut,null," ")))}let NCe=class extends bt{constructor(){super(...arguments),this.compileSegs=Le(LCe)}render(){let{props:t}=this,{allSegs:n,invisibleSegs:r}=this.compileSegs(t.singlePlacements);return F(C8,{elClasses:["fc-daygrid-more-link"],dateProfile:t.dateProfile,todayRange:t.todayRange,allDayDate:t.allDayDate,moreCnt:t.moreCnt,allSegs:n,hiddenSegs:r,alignmentElRef:t.alignmentElRef,alignGridTop:t.alignGridTop,extraDateSpan:t.extraDateSpan,popoverContent:()=>{let i=(t.eventDrag?t.eventDrag.affectedInstances:null)||(t.eventResize?t.eventResize.affectedInstances:null)||{};return F(ut,null,n.map(o=>{let a=o.eventRange.instance.instanceId;return F("div",{className:"fc-daygrid-event-harness",key:a,style:{visibility:i[a]?"hidden":""}},bF(o)?F(wF,Object.assign({seg:o,isDragging:!1,isSelected:a===t.eventSelection,defaultDisplayEventEnd:!1},Vr(o,t.todayRange))):F(xF,Object.assign({seg:o,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:a===t.eventSelection,defaultDisplayEventEnd:!1},Vr(o,t.todayRange))))}))}})}};function LCe(e){let t=[],n=[];for(let r of e)t.push(r.seg),r.isVisible||n.push(r.seg);return{allSegs:t,invisibleSegs:n}}const FCe=Ot({week:"narrow"});let jCe=class extends gr{constructor(){super(...arguments),this.rootElRef=Pn(),this.state={dayNumberId:Wo()},this.handleRootEl=t=>{Vo(this.rootElRef,t),Vo(this.props.elRef,t)}}render(){let{context:t,props:n,state:r,rootElRef:i}=this,{options:o}=t,{date:a,dateProfile:s}=n,l=n.showDayNumber&&s.currentRangeUnit!=="month"&&(s.currentRange.start.valueOf()===a.valueOf()||a.getUTCDate()===1);return F(ty,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...n.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},n.extraDataAttrs),n.showDayNumber?{"aria-labelledby":r.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:zCe,date:a,dateProfile:s,todayRange:n.todayRange,showDayNumber:n.showDayNumber,isMonthStart:l,extraRenderProps:n.extraRenderProps},(c,d)=>F("div",{ref:n.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:n.minHeight}},n.showWeekNumber&&F(S8,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:il(t,a,"week"),date:a,defaultFormat:FCe}),!d.isDisabled&&(n.showDayNumber||ny(o)||n.forceDayTop)?F("div",{className:"fc-daygrid-day-top"},F(c,{elTag:"a",elClasses:["fc-daygrid-day-number",l&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},il(t,a)),{id:r.dayNumberId})})):n.showDayNumber?F("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},F("a",{className:"fc-daygrid-day-number"}," ")):void 0,F("div",{className:"fc-daygrid-day-events",ref:n.fgContentElRef},n.fgContent,F("div",{className:"fc-daygrid-day-bottom",style:{marginTop:n.moreMarginTop}},F(NCe,{allDayDate:a,singlePlacements:n.singlePlacements,moreCnt:n.moreCnt,alignmentElRef:i,alignGridTop:!n.showDayNumber,extraDateSpan:n.extraDateSpan,dateProfile:n.dateProfile,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,todayRange:n.todayRange}))),F("div",{className:"fc-daygrid-day-bg"},n.bgContent)))}};function zCe(e){return e.dayNumberText||F(ut,null," ")}function BCe(e,t,n,r,i,o,a){let s=new WCe;s.allowReslicing=!0,s.strictOrder=r,t===!0||n===!0?(s.maxCoord=o,s.hiddenConsumes=!0):typeof t=="number"?s.maxStackCnt=t:typeof n=="number"&&(s.maxStackCnt=n,s.hiddenConsumes=!0);let l=[],c=[];for(let x=0;x<e.length;x+=1){let b=e[x],{instanceId:S}=b.eventRange.instance,$=i[S];$!=null?l.push({index:x,thickness:$,span:{start:b.firstCol,end:b.lastCol+1}}):c.push(b)}let d=s.addSegs(l),f=s.toRects(),{singleColPlacements:g,multiColPlacements:p,leftoverMargins:m}=HCe(f,e,a),v=[],w=[];for(let x of c){p[x.firstCol].push({seg:x,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let b=x.firstCol;b<=x.lastCol;b+=1)g[b].push({seg:_d(x,b,b+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let x=0;x<a.length;x+=1)v.push(0);for(let x of d){let b=e[x.index],S=x.span;p[S.start].push({seg:_d(b,S.start,S.end,a),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let $=S.start;$<S.end;$+=1)v[$]+=1,g[$].push({seg:_d(b,$,$+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let x=0;x<a.length;x+=1)w.push(m[x]);return{singleColPlacements:g,multiColPlacements:p,moreCnts:v,moreMarginTops:w}}function HCe(e,t,n){let r=UCe(e,n.length),i=[],o=[],a=[];for(let s=0;s<n.length;s+=1){let l=r[s],c=[],d=0,f=0;for(let p of l){let m=t[p.index];c.push({seg:_d(m,s,s+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:p.levelCoord,marginTop:p.levelCoord-d}),d=p.levelCoord+p.thickness}let g=[];d=0,f=0;for(let p of l){let m=t[p.index],v=p.span.end-p.span.start>1,w=p.span.start===s;f+=p.levelCoord-d,d=p.levelCoord+p.thickness,v?(f+=p.thickness,w&&g.push({seg:_d(m,p.span.start,p.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:p.levelCoord,marginTop:0})):w&&(g.push({seg:_d(m,p.span.start,p.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:p.levelCoord,marginTop:f}),f=0)}i.push(c),o.push(g),a.push(f)}return{singleColPlacements:i,multiColPlacements:o,leftoverMargins:a}}function UCe(e,t){let n=[];for(let r=0;r<t;r+=1)n.push([]);for(let r of e)for(let i=r.span.start;i<r.span.end;i+=1)n[i].push(r);return n}function _d(e,t,n,r){if(e.firstCol===t&&e.lastCol===n-1)return e;let i=e.eventRange,o=i.range,a=Go(o,{start:r[t].date,end:xn(r[n-1].date,1)});return Object.assign(Object.assign({},e),{firstCol:t,lastCol:n-1,eventRange:{def:i.def,ui:Object.assign(Object.assign({},i.ui),{durationEditable:!1}),instance:i.instance,range:a},isStart:e.isStart&&a.start.valueOf()===o.start.valueOf(),isEnd:e.isEnd&&a.end.valueOf()===o.end.valueOf()})}let WCe=class extends l8{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(t){const n=super.addSegs(t),{entriesByLevel:r}=this,i=o=>!this.forceHidden[Yo(o)];for(let o=0;o<r.length;o+=1)r[o]=r[o].filter(i);return n}handleInvalidInsertion(t,n,r){const{entriesByLevel:i,forceHidden:o}=this,{touchingEntry:a,touchingLevel:s,touchingLateral:l}=t;if(this.hiddenConsumes&&a){const c=Yo(a);if(!o[c])if(this.allowReslicing){const d=Object.assign(Object.assign({},a),{span:Qv(a.span,n.span)}),f=Yo(d);o[f]=!0,i[s][l]=d,this.splitEntry(a,n,r)}else o[c]=!0,r.push(a)}return super.handleInvalidInsertion(t,n,r)}},SF=class extends gr{constructor(){super(...arguments),this.cellElRefs=new Gr,this.frameElRefs=new Gr,this.fgElRefs=new Gr,this.segHarnessRefs=new Gr,this.rootElRef=Pn(),this.state={framePositions:null,maxContentHeight:null,eventInstanceHeights:{}},this.handleResize=t=>{t&&this.updateSizing(!0)}}render(){let{props:t,state:n,context:r}=this,{options:i}=r,o=t.cells.length,a=oy(t.businessHourSegs,o),s=oy(t.bgEventSegs,o),l=oy(this.getHighlightSegs(),o),c=oy(this.getMirrorSegs(),o),{singleColPlacements:d,multiColPlacements:f,moreCnts:g,moreMarginTops:p}=BCe(qv(t.fgEventSegs,i.eventOrder),t.dayMaxEvents,t.dayMaxEventRows,i.eventOrderStrict,n.eventInstanceHeights,n.maxContentHeight,t.cells),m=t.eventDrag&&t.eventDrag.affectedInstances||t.eventResize&&t.eventResize.affectedInstances||{};return F("tr",{ref:this.rootElRef,role:"row"},t.renderIntro&&t.renderIntro(),t.cells.map((v,w)=>{let x=this.renderFgSegs(w,t.forPrint?d[w]:f[w],t.todayRange,m),b=this.renderFgSegs(w,VCe(c[w],f),t.todayRange,{},!!t.eventDrag,!!t.eventResize,!1);return F(jCe,{key:v.key,elRef:this.cellElRefs.createRef(v.key),innerElRef:this.frameElRefs.createRef(v.key),dateProfile:t.dateProfile,date:v.date,showDayNumber:t.showDayNumbers,showWeekNumber:t.showWeekNumbers&&w===0,forceDayTop:t.showWeekNumbers,todayRange:t.todayRange,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,extraRenderProps:v.extraRenderProps,extraDataAttrs:v.extraDataAttrs,extraClassNames:v.extraClassNames,extraDateSpan:v.extraDateSpan,moreCnt:g[w],moreMarginTop:p[w],singlePlacements:d[w],fgContentElRef:this.fgElRefs.createRef(v.key),fgContent:F(ut,null,F(ut,null,x),F(ut,null,b)),bgContent:F(ut,null,this.renderFillSegs(l[w],"highlight"),this.renderFillSegs(a[w],"non-business"),this.renderFillSegs(s[w],"bg-event")),minHeight:t.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(t,n){let r=this.props;this.updateSizing(!pi(t,r))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:t}=this;return t.eventDrag&&t.eventDrag.segs.length?t.eventDrag.segs:t.eventResize&&t.eventResize.segs.length?t.eventResize.segs:t.dateSelectionSegs}getMirrorSegs(){let{props:t}=this;return t.eventResize&&t.eventResize.segs.length?t.eventResize.segs:[]}renderFgSegs(t,n,r,i,o,a,s){let{context:l}=this,{eventSelection:c}=this.props,{framePositions:d}=this.state,f=this.props.cells.length===1,g=o||a||s,p=[];if(d)for(let m of n){let{seg:v}=m,{instanceId:w}=v.eventRange.instance,x=w+":"+t,b=m.isVisible&&!i[w],S=m.isAbsolute,$="",E="";S&&(l.isRtl?(E=0,$=d.lefts[v.lastCol]-d.lefts[v.firstCol]):($=0,E=d.rights[v.firstCol]-d.rights[v.lastCol])),p.push(F("div",{className:"fc-daygrid-event-harness"+(S?" fc-daygrid-event-harness-abs":""),key:x,ref:g?null:this.segHarnessRefs.createRef(x),style:{visibility:b?"":"hidden",marginTop:S?"":m.marginTop,top:S?m.absoluteTop:"",left:$,right:E}},bF(v)?F(wF,Object.assign({seg:v,isDragging:o,isSelected:w===c,defaultDisplayEventEnd:f},Vr(v,r))):F(xF,Object.assign({seg:v,isDragging:o,isResizing:a,isDateSelecting:s,isSelected:w===c,defaultDisplayEventEnd:f},Vr(v,r)))))}return p}renderFillSegs(t,n){let{isRtl:r}=this.context,{todayRange:i}=this.props,{framePositions:o}=this.state,a=[];if(o)for(let s of t){let l=r?{right:0,left:o.lefts[s.lastCol]-o.lefts[s.firstCol]}:{left:0,right:o.rights[s.firstCol]-o.rights[s.lastCol]};a.push(F("div",{key:r8(s.eventRange),className:"fc-daygrid-bg-harness",style:l},n==="bg-event"?F(x8,Object.assign({seg:s},Vr(s,i))):w8(n)))}return F(ut,{},...a)}updateSizing(t){let{props:n,state:r,frameElRefs:i}=this;if(!n.forPrint&&n.clientWidth!==null){if(t){let l=n.cells.map(c=>i.currentMap[c.key]);if(l.length){let c=this.rootElRef.current,d=new qo(c,l,!0,!1);(!r.framePositions||!r.framePositions.similarTo(d))&&this.setState({framePositions:new qo(c,l,!0,!1)})}}const o=this.state.eventInstanceHeights,a=this.queryEventInstanceHeights(),s=n.dayMaxEvents===!0||n.dayMaxEventRows===!0;this.safeSetState({eventInstanceHeights:Object.assign(Object.assign({},o),a),maxContentHeight:s?this.computeMaxContentHeight():null})}}queryEventInstanceHeights(){let t=this.segHarnessRefs.currentMap,n={};for(let r in t){let i=Math.round(t[r].getBoundingClientRect().height),o=r.split(":")[0];n[o]=Math.max(n[o]||0,i)}return n}computeMaxContentHeight(){let t=this.props.cells[0].key,n=this.cellElRefs.currentMap[t],r=this.fgElRefs.currentMap[t];return n.getBoundingClientRect().bottom-r.getBoundingClientRect().top}getCellEls(){let t=this.cellElRefs.currentMap;return this.props.cells.map(n=>t[n.key])}};SF.addStateEquality({eventInstanceHeights:pi});function VCe(e,t){if(!e.length)return[];let n=GCe(t);return e.map(r=>({seg:r,isVisible:!0,isAbsolute:!0,absoluteTop:n[r.eventRange.instance.instanceId],marginTop:0}))}function GCe(e){let t={};for(let n of e)for(let r of n)t[r.seg.eventRange.instance.instanceId]=r.absoluteTop;return t}let qCe=class extends gr{constructor(){super(...arguments),this.splitBusinessHourSegs=Le(iy),this.splitBgEventSegs=Le(iy),this.splitFgEventSegs=Le(iy),this.splitDateSelectionSegs=Le(iy),this.splitEventDrag=Le(vF),this.splitEventResize=Le(vF),this.rowRefs=new Gr}render(){let{props:t,context:n}=this,r=t.cells.length,i=this.splitBusinessHourSegs(t.businessHourSegs,r),o=this.splitBgEventSegs(t.bgEventSegs,r),a=this.splitFgEventSegs(t.fgEventSegs,r),s=this.splitDateSelectionSegs(t.dateSelectionSegs,r),l=this.splitEventDrag(t.eventDrag,r),c=this.splitEventResize(t.eventResize,r),d=r>=7&&t.clientWidth?t.clientWidth/n.options.aspectRatio/6:null;return F(Su,{unit:"day"},(f,g)=>F(ut,null,t.cells.map((p,m)=>F(SF,{ref:this.rowRefs.createRef(m),key:p.length?p[0].date.toISOString():m,showDayNumbers:r>1,showWeekNumbers:t.showWeekNumbers,todayRange:g,dateProfile:t.dateProfile,cells:p,renderIntro:t.renderRowIntro,businessHourSegs:i[m],eventSelection:t.eventSelection,bgEventSegs:o[m].filter(YCe),fgEventSegs:a[m],dateSelectionSegs:s[m],eventDrag:l[m],eventResize:c[m],dayMaxEvents:t.dayMaxEvents,dayMaxEventRows:t.dayMaxEventRows,clientWidth:t.clientWidth,clientHeight:t.clientHeight,cellMinHeight:d,forPrint:t.forPrint}))))}componentDidMount(){const t=this.rowRefs.currentMap[0].getCellEls()[0];this.rootEl=t?t.closest(".fc-daygrid-body"):null,this.rootEl&&this.context.registerInteractiveComponent(this,{el:this.rootEl,isHitComboAllowed:this.props.isHitComboAllowed})}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new qo(this.rootEl,this.rowRefs.collect().map(t=>t.getCellEls()[0]),!1,!0),this.colPositions=new qo(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(t,n){let{colPositions:r,rowPositions:i}=this,o=r.leftToIndex(t),a=i.topToIndex(n);if(a!=null&&o!=null){let s=this.props.cells[a][o];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(a,o),allDay:!0},s.extraDateSpan),dayEl:this.getCellEl(a,o),rect:{left:r.lefts[o],right:r.rights[o],top:i.tops[a],bottom:i.bottoms[a]},layer:0}}return null}getCellEl(t,n){return this.rowRefs.currentMap[t].getCellEls()[n]}getCellRange(t,n){let r=this.props.cells[t][n].date,i=xn(r,1);return{start:r,end:i}}};function YCe(e){return e.eventRange.def.allDay}class KCe extends gr{constructor(){super(...arguments),this.elRef=Pn(),this.needsScrollReset=!1}render(){let{props:t}=this,{dayMaxEventRows:n,dayMaxEvents:r,expandRows:i}=t,o=r===!0||n===!0;o&&!i&&(o=!1,n=null,r=null);let a=["fc-daygrid-body",o?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",i?"":"fc-daygrid-body-natural"];return F("div",{ref:this.elRef,className:a.join(" "),style:{width:t.clientWidth,minWidth:t.tableMinWidth}},F("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:t.clientWidth,minWidth:t.tableMinWidth,height:i?t.clientHeight:""}},t.colGroupNode,F("tbody",{role:"presentation"},F(qCe,{dateProfile:t.dateProfile,cells:t.cells,renderRowIntro:t.renderRowIntro,showWeekNumbers:t.showWeekNumbers,clientWidth:t.clientWidth,clientHeight:t.clientHeight,businessHourSegs:t.businessHourSegs,bgEventSegs:t.bgEventSegs,fgEventSegs:t.fgEventSegs,dateSelectionSegs:t.dateSelectionSegs,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,dayMaxEvents:r,dayMaxEventRows:n,forPrint:t.forPrint,isHitComboAllowed:t.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(t){t.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const t=ZCe(this.elRef.current,this.props.dateProfile);if(t){const n=t.closest(".fc-daygrid-body"),r=n.closest(".fc-scroller"),i=t.getBoundingClientRect().top-n.getBoundingClientRect().top;r.scrollTop=i?i+1:0}this.needsScrollReset=!1}}}function ZCe(e,t){let n;return t.currentRangeUnit.match(/year|month/)&&(n=e.querySelector(`[data-date="${LS(t.currentDate)}-01"]`)),n||(n=e.querySelector(`[data-date="${bh(t.currentDate)}"]`)),n}let QCe=class extends g8{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(t,n){return n.sliceRange(t)}};class $F extends gr{constructor(){super(...arguments),this.slicer=new QCe,this.tableRef=Pn()}render(){let{props:t,context:n}=this;return F(KCe,Object.assign({ref:this.tableRef},this.slicer.sliceProps(t,t.dateProfile,t.nextDayThreshold,n,t.dayTableModel),{dateProfile:t.dateProfile,cells:t.dayTableModel.cells,colGroupNode:t.colGroupNode,tableMinWidth:t.tableMinWidth,renderRowIntro:t.renderRowIntro,dayMaxEvents:t.dayMaxEvents,dayMaxEventRows:t.dayMaxEventRows,showWeekNumbers:t.showWeekNumbers,expandRows:t.expandRows,headerAlignElRef:t.headerAlignElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:t.forPrint}))}}class XCe extends PCe{constructor(){super(...arguments),this.buildDayTableModel=Le(JCe),this.headerRef=Pn(),this.tableRef=Pn()}render(){let{options:t,dateProfileGenerator:n}=this.context,{props:r}=this,i=this.buildDayTableModel(r.dateProfile,n),o=t.dayHeaders&&F(f8,{ref:this.headerRef,dateProfile:r.dateProfile,dates:i.headerDates,datesRepDistinctDays:i.rowCnt===1}),a=s=>F($F,{ref:this.tableRef,dateProfile:r.dateProfile,dayTableModel:i,businessHours:r.businessHours,dateSelection:r.dateSelection,eventStore:r.eventStore,eventUiBases:r.eventUiBases,eventSelection:r.eventSelection,eventDrag:r.eventDrag,eventResize:r.eventResize,nextDayThreshold:t.nextDayThreshold,colGroupNode:s.tableColGroupNode,tableMinWidth:s.tableMinWidth,dayMaxEvents:t.dayMaxEvents,dayMaxEventRows:t.dayMaxEventRows,showWeekNumbers:t.weekNumbers,expandRows:!r.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:s.clientWidth,clientHeight:s.clientHeight,forPrint:r.forPrint});return t.dayMinWidth?this.renderHScrollLayout(o,a,i.colCnt,t.dayMinWidth):this.renderSimpleLayout(o,a)}}function JCe(e,t){let n=new p8(e.renderRange,t);return new h8(n,/year|month|week/.test(e.currentRangeUnit))}let e6e=class extends qS{buildRenderRange(t,n,r){let i=super.buildRenderRange(t,n,r),{props:o}=this;return t6e({currentRange:i,snapToWeek:/^(year|month)$/.test(n),fixedWeekCount:o.fixedWeekCount,dateEnv:o.dateEnv})}};function t6e(e){let{dateEnv:t,currentRange:n}=e,{start:r,end:i}=n,o;if(e.snapToWeek&&(r=t.startOfWeek(r),o=t.startOfWeek(i),o.valueOf()!==i.valueOf()&&(i=Mv(o,1))),e.fixedWeekCount){let a=t.startOfWeek(t.startOfMonth(xn(n.end,-1))),s=Math.ceil(oL(a,i));i=Mv(i,6-s)}return{start:r,end:i}}class n6e extends E9e{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(t){return t.allDay?["allDay"]:["timed"]}getKeysForEventDef(t){return t.allDay?s9e(t)?["timed","allDay"]:["allDay"]:["timed"]}}const r6e=Ot({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function CF(e){let t=["fc-timegrid-slot","fc-timegrid-slot-label",e.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return F(Fa.Consumer,null,n=>{if(!e.isLabeled)return F("td",{className:t.join(" "),"data-time":e.isoTimeStr});let{dateEnv:r,options:i,viewApi:o}=n,a=i.slotLabelFormat==null?r6e:Array.isArray(i.slotLabelFormat)?Ot(i.slotLabelFormat[0]):Ot(i.slotLabelFormat),s={level:0,time:e.time,date:r.toDate(e.date),view:o,text:r.format(e.date,a)};return F(hr,{elTag:"td",elClasses:t,elAttrs:{"data-time":e.isoTimeStr},renderProps:s,generatorName:"slotLabelContent",customGenerator:i.slotLabelContent,defaultGenerator:i6e,classNameGenerator:i.slotLabelClassNames,didMount:i.slotLabelDidMount,willUnmount:i.slotLabelWillUnmount},l=>F("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},F(l,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]})))})}function i6e(e){return e.text}class o6e extends bt{render(){return this.props.slatMetas.map(t=>F("tr",{key:t.key},F(CF,Object.assign({},t))))}}const a6e=Ot({week:"short"}),s6e=5;class l6e extends gr{constructor(){super(...arguments),this.allDaySplitter=new n6e,this.headerElRef=Pn(),this.rootElRef=Pn(),this.scrollerElRef=Pn(),this.state={slatCoords:null},this.handleScrollTopRequest=t=>{let n=this.scrollerElRef.current;n&&(n.scrollTop=t)},this.renderHeadAxis=(t,n="")=>{let{options:r}=this.context,{dateProfile:i}=this.props,o=i.renderRange,s=tl(o.start,o.end)===1?il(this.context,o.start,"week"):{};return r.weekNumbers&&t==="day"?F(S8,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:o.start,defaultFormat:a6e},l=>F("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:n}},F(l,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:s}))):F("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},F("div",{className:"fc-timegrid-axis-frame",style:{height:n}}))},this.renderTableRowAxis=t=>{let{options:n,viewApi:r}=this.context,i={text:n.allDayText,view:r};return F(hr,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:i,generatorName:"allDayContent",customGenerator:n.allDayContent,defaultGenerator:u6e,classNameGenerator:n.allDayClassNames,didMount:n.allDayDidMount,willUnmount:n.allDayWillUnmount},o=>F("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",t==null?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:t}},F(o,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]})))},this.handleSlatCoords=t=>{this.setState({slatCoords:t})}}renderSimpleLayout(t,n,r){let{context:i,props:o}=this,a=[],s=ey(i.options);return t&&a.push({type:"header",key:"header",isSticky:s,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}}),n&&(a.push({type:"body",key:"all-day",chunk:{content:n}}),a.push({type:"body",key:"all-day-divider",outerContent:F("tr",{role:"presentation",className:"fc-scrollgrid-section"},F("td",{className:"fc-timegrid-divider "+i.theme.getClass("tableCellShaded")}))})),a.push({type:"body",key:"body",liquid:!0,expandRows:!!i.options.expandRows,chunk:{scrollerElRef:this.scrollerElRef,content:r}}),F(Ad,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:i.viewSpec},F(v8,{liquid:!o.isHeightAuto&&!o.forPrint,collapsibleWidth:o.forPrint,cols:[{width:"shrink"}],sections:a}))}renderHScrollLayout(t,n,r,i,o,a,s){let l=this.context.pluginHooks.scrollGridImpl;if(!l)throw new Error("No ScrollGrid implementation");let{context:c,props:d}=this,f=!d.forPrint&&ey(c.options),g=!d.forPrint&&XL(c.options),p=[];t&&p.push({type:"header",key:"header",isSticky:f,syncRowHeights:!0,chunks:[{key:"axis",rowContent:v=>F("tr",{role:"presentation"},this.renderHeadAxis("day",v.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}]}),n&&(p.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:v=>F("tr",{role:"presentation"},this.renderTableRowAxis(v.rowSyncHeights[0]))},{key:"cols",content:n}]}),p.push({key:"all-day-divider",type:"body",outerContent:F("tr",{role:"presentation",className:"fc-scrollgrid-section"},F("td",{colSpan:2,className:"fc-timegrid-divider "+c.theme.getClass("tableCellShaded")}))}));let m=c.options.nowIndicator;return p.push({type:"body",key:"body",liquid:!0,expandRows:!!c.options.expandRows,chunks:[{key:"axis",content:v=>F("div",{className:"fc-timegrid-axis-chunk"},F("table",{"aria-hidden":!0,style:{height:v.expandRows?v.clientHeight:""}},v.tableColGroupNode,F("tbody",null,F(o6e,{slatMetas:a}))),F("div",{className:"fc-timegrid-now-indicator-container"},F(Su,{unit:m?"minute":"day"},w=>{let x=m&&s&&s.safeComputeTop(w);return typeof x=="number"?F(b8,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:x},isAxis:!0,date:w}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:r}]}),g&&p.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:m8},{key:"cols",content:m8}]}),F(Ad,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:c.viewSpec},F(l,{liquid:!d.isHeightAuto&&!d.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:i,minWidth:o}]}],sections:p}))}getAllDayMaxEventProps(){let{dayMaxEvents:t,dayMaxEventRows:n}=this.context.options;return(t===!0||n===!0)&&(t=void 0,n=s6e),{dayMaxEvents:t,dayMaxEventRows:n}}}function u6e(e){return e.text}class c6e{constructor(t,n,r){this.positions=t,this.dateProfile=n,this.slotDuration=r}safeComputeTop(t){let{dateProfile:n}=this;if(ja(n.currentRange,t)){let r=Bt(t),i=t.valueOf()-r.valueOf();if(i>=vo(n.slotMinTime)&&i<vo(n.slotMaxTime))return this.computeTimeTop(yt(i))}return null}computeDateTop(t,n){return n||(n=Bt(t)),this.computeTimeTop(yt(t.valueOf()-n.valueOf()))}computeTimeTop(t){let{positions:n,dateProfile:r}=this,i=n.els.length,o=(t.milliseconds-vo(r.slotMinTime))/vo(this.slotDuration),a,s;return o=Math.max(0,o),o=Math.min(i,o),a=Math.floor(o),a=Math.min(a,i-1),s=o-a,n.tops[a]+n.getHeight(a)*s}}class d6e extends bt{render(){let{props:t,context:n}=this,{options:r}=n,{slatElRefs:i}=t;return F("tbody",null,t.slatMetas.map((o,a)=>{let s={time:o.time,date:n.dateEnv.toDate(o.date),view:n.viewApi};return F("tr",{key:o.key,ref:i.createRef(o.key)},t.axis&&F(CF,Object.assign({},o)),F(hr,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!o.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":o.isoTimeStr},renderProps:s,generatorName:"slotLaneContent",customGenerator:r.slotLaneContent,classNameGenerator:r.slotLaneClassNames,didMount:r.slotLaneDidMount,willUnmount:r.slotLaneWillUnmount}))}))}}class f6e extends bt{constructor(){super(...arguments),this.rootElRef=Pn(),this.slatElRefs=new Gr}render(){let{props:t,context:n}=this;return F("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},F("table",{"aria-hidden":!0,className:n.theme.getClass("table"),style:{minWidth:t.tableMinWidth,width:t.clientWidth,height:t.minHeight}},t.tableColGroupNode,F(d6e,{slatElRefs:this.slatElRefs,axis:t.axis,slatMetas:t.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:t,props:n}=this;n.onCoords&&n.clientWidth!==null&&this.rootElRef.current.offsetHeight&&n.onCoords(new c6e(new qo(this.rootElRef.current,p6e(this.slatElRefs.currentMap,n.slatMetas),!1,!0),this.props.dateProfile,t.options.slotDuration))}}function p6e(e,t){return t.map(n=>e[n.key])}function kh(e,t){let n=[],r;for(r=0;r<t;r+=1)n.push([]);if(e)for(r=0;r<e.length;r+=1)n[e[r].col].push(e[r]);return n}function EF(e,t){let n=[];if(e){for(let r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(let r of e.segs)n[r.col].segs.push(r)}else for(let r=0;r<t;r+=1)n[r]=null;return n}class h6e extends bt{render(){let{props:t}=this;return F(C8,{elClasses:["fc-timegrid-more-link"],elStyle:{top:t.top,bottom:t.bottom},allDayDate:null,moreCnt:t.hiddenSegs.length,allSegs:t.hiddenSegs,hiddenSegs:t.hiddenSegs,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,todayRange:t.todayRange,popoverContent:()=>RF(t.hiddenSegs,t),defaultGenerator:g6e},n=>F(n,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}}function g6e(e){return e.shortText}function m6e(e,t,n){let r=new l8;t!=null&&(r.strictOrder=t),n!=null&&(r.maxStackCnt=n);let i=r.addSegs(e),o=P9e(i),a=v6e(r);return a=w6e(a,1),{segRects:S6e(a),hiddenGroups:o}}function v6e(e){const{entriesByLevel:t}=e,n=A8((r,i)=>r+":"+i,(r,i)=>{let o=x6e(e,r,i),a=kF(o,n),s=t[r][i];return[Object.assign(Object.assign({},s),{nextLevelNodes:a[0]}),s.thickness+a[1]]});return kF(t.length?{level:0,lateralStart:0,lateralEnd:t[0].length}:null,n)[0]}function kF(e,t){if(!e)return[[],0];let{level:n,lateralStart:r,lateralEnd:i}=e,o=r,a=[];for(;o<i;)a.push(t(n,o)),o+=1;return a.sort(y6e),[a.map(b6e),a[0][1]]}function y6e(e,t){return t[1]-e[1]}function b6e(e){return e[0]}function x6e(e,t,n){let{levelCoords:r,entriesByLevel:i}=e,o=i[t][n],a=r[t]+o.thickness,s=r.length,l=t;for(;l<s&&r[l]<a;l+=1);for(;l<s;l+=1){let c=i[l],d,f=d8(c,o.span.start,u8),g=f[0]+f[1],p=g;for(;(d=c[p])&&d.span.start<o.span.end;)p+=1;if(g<p)return{level:l,lateralStart:g,lateralEnd:p}}return null}function w6e(e,t){const n=A8((r,i,o)=>Yo(r),(r,i,o)=>{let{nextLevelNodes:a,thickness:s}=r,l=s+o,c=s/l,d,f=[];if(!a.length)d=t;else for(let p of a)if(d===void 0){let m=n(p,i,l);d=m[0],f.push(m[1])}else{let m=n(p,d,0);f.push(m[1])}let g=(d-i)*c;return[d-g,Object.assign(Object.assign({},r),{thickness:g,nextLevelNodes:f})]});return e.map(r=>n(r,0,0)[1])}function S6e(e){let t=[];const n=A8((i,o,a)=>Yo(i),(i,o,a)=>{let s=Object.assign(Object.assign({},i),{levelCoord:o,stackDepth:a,stackForward:0});return t.push(s),s.stackForward=r(i.nextLevelNodes,o+i.thickness,a+1)+1});function r(i,o,a){let s=0;for(let l of i)s=Math.max(n(l,o,a),s);return s}return r(e,0,0),t}function A8(e,t){const n={};return(...r)=>{let i=e(...r);return i in n?n[i]:n[i]=t(...r)}}function TF(e,t,n=null,r=0){let i=[];if(n)for(let o=0;o<e.length;o+=1){let a=e[o],s=n.computeDateTop(a.start,t),l=Math.max(s+(r||0),n.computeDateTop(a.end,t));i.push({start:Math.round(s),end:Math.round(l)})}return i}function $6e(e,t,n,r){let i=[],o=[];for(let c=0;c<e.length;c+=1){let d=t[c];d?i.push({index:c,thickness:1,span:d}):o.push(e[c])}let{segRects:a,hiddenGroups:s}=m6e(i,n,r),l=[];for(let c of a)l.push({seg:e[c.index],rect:c});for(let c of o)l.push({seg:c,rect:null});return{segPlacements:l,hiddenGroups:s}}const C6e=Ot({hour:"numeric",minute:"2-digit",meridiem:!1});class AF extends bt{render(){return F(y8,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:C6e}))}}class E6e extends bt{constructor(){super(...arguments),this.sortEventSegs=Le(qv)}render(){let{props:t,context:n}=this,{options:r}=n,i=r.selectMirror,o=t.eventDrag&&t.eventDrag.segs||t.eventResize&&t.eventResize.segs||i&&t.dateSelectionSegs||[],a=t.eventDrag&&t.eventDrag.affectedInstances||t.eventResize&&t.eventResize.affectedInstances||{},s=this.sortEventSegs(t.fgEventSegs,r.eventOrder);return F(ty,{elTag:"td",elRef:t.elRef,elClasses:["fc-timegrid-col",...t.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},t.extraDataAttrs),date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,extraRenderProps:t.extraRenderProps},l=>F("div",{className:"fc-timegrid-col-frame"},F("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(t.businessHourSegs,"non-business"),this.renderFillSegs(t.bgEventSegs,"bg-event"),this.renderFillSegs(t.dateSelectionSegs,"highlight")),F("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(s,a,!1,!1,!1)),F("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(o,{},!!t.eventDrag,!!t.eventResize,!!i)),F("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(t.nowIndicatorSegs)),ny(r)&&F(l,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(t,n,r,i,o){let{props:a}=this;return a.forPrint?RF(t,a):this.renderPositionedFgSegs(t,n,r,i,o)}renderPositionedFgSegs(t,n,r,i,o){let{eventMaxStack:a,eventShortHeight:s,eventOrderStrict:l,eventMinHeight:c}=this.context.options,{date:d,slatCoords:f,eventSelection:g,todayRange:p,nowDate:m}=this.props,v=r||i||o,w=TF(t,d,f,c),{segPlacements:x,hiddenGroups:b}=$6e(t,w,l,a);return F(ut,null,this.renderHiddenGroups(b,t),x.map(S=>{let{seg:$,rect:E}=S,T=$.eventRange.instance.instanceId,A=v||!!(!n[T]&&E),R=R8(E&&E.span),I=!v&&E?this.computeSegHStyle(E):{left:0,right:0},_=!!E&&E.stackForward>0,L=!!E&&E.span.end-E.span.start<s;return F("div",{className:"fc-timegrid-event-harness"+(_?" fc-timegrid-event-harness-inset":""),key:T,style:Object.assign(Object.assign({visibility:A?"":"hidden"},R),I)},F(AF,Object.assign({seg:$,isDragging:r,isResizing:i,isDateSelecting:o,isSelected:T===g,isShort:L},Vr($,p,m))))}))}renderHiddenGroups(t,n){let{extraDateSpan:r,dateProfile:i,todayRange:o,nowDate:a,eventSelection:s,eventDrag:l,eventResize:c}=this.props;return F(ut,null,t.map(d=>{let f=R8(d.span),g=k6e(d.entries,n);return F(h6e,{key:uL(eF(g)),hiddenSegs:g,top:f.top,bottom:f.bottom,extraDateSpan:r,dateProfile:i,todayRange:o,nowDate:a,eventSelection:s,eventDrag:l,eventResize:c})}))}renderFillSegs(t,n){let{props:r,context:i}=this,a=TF(t,r.date,r.slatCoords,i.options.eventMinHeight).map((s,l)=>{let c=t[l];return F("div",{key:r8(c.eventRange),className:"fc-timegrid-bg-harness",style:R8(s)},n==="bg-event"?F(x8,Object.assign({seg:c},Vr(c,r.todayRange,r.nowDate))):w8(n))});return F(ut,null,a)}renderNowIndicator(t){let{slatCoords:n,date:r}=this.props;return n?t.map((i,o)=>F(b8,{key:o,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:n.computeDateTop(i.start,r)},isAxis:!1,date:r})):null}computeSegHStyle(t){let{isRtl:n,options:r}=this.context,i=r.slotEventOverlap,o=t.levelCoord,a=t.levelCoord+t.thickness,s,l;i&&(a=Math.min(1,o+(a-o)*2)),n?(s=1-a,l=o):(s=o,l=1-a);let c={zIndex:t.stackDepth+1,left:s*100+"%",right:l*100+"%"};return i&&!t.stackForward&&(c[n?"marginLeft":"marginRight"]=10*2),c}}function RF(e,{todayRange:t,nowDate:n,eventSelection:r,eventDrag:i,eventResize:o}){let a=(i?i.affectedInstances:null)||(o?o.affectedInstances:null)||{};return F(ut,null,e.map(s=>{let l=s.eventRange.instance.instanceId;return F("div",{key:l,style:{visibility:a[l]?"hidden":""}},F(AF,Object.assign({seg:s,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:l===r,isShort:!1},Vr(s,t,n))))}))}function R8(e){return e?{top:e.start,bottom:-e.end}:{top:"",bottom:""}}function k6e(e,t){return e.map(n=>t[n.index])}class T6e extends bt{constructor(){super(...arguments),this.splitFgEventSegs=Le(kh),this.splitBgEventSegs=Le(kh),this.splitBusinessHourSegs=Le(kh),this.splitNowIndicatorSegs=Le(kh),this.splitDateSelectionSegs=Le(kh),this.splitEventDrag=Le(EF),this.splitEventResize=Le(EF),this.rootElRef=Pn(),this.cellElRefs=new Gr}render(){let{props:t,context:n}=this,r=n.options.nowIndicator&&t.slatCoords&&t.slatCoords.safeComputeTop(t.nowDate),i=t.cells.length,o=this.splitFgEventSegs(t.fgEventSegs,i),a=this.splitBgEventSegs(t.bgEventSegs,i),s=this.splitBusinessHourSegs(t.businessHourSegs,i),l=this.splitNowIndicatorSegs(t.nowIndicatorSegs,i),c=this.splitDateSelectionSegs(t.dateSelectionSegs,i),d=this.splitEventDrag(t.eventDrag,i),f=this.splitEventResize(t.eventResize,i);return F("div",{className:"fc-timegrid-cols",ref:this.rootElRef},F("table",{role:"presentation",style:{minWidth:t.tableMinWidth,width:t.clientWidth}},t.tableColGroupNode,F("tbody",{role:"presentation"},F("tr",{role:"row"},t.axis&&F("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},F("div",{className:"fc-timegrid-col-frame"},F("div",{className:"fc-timegrid-now-indicator-container"},typeof r=="number"&&F(b8,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:r},isAxis:!0,date:t.nowDate})))),t.cells.map((g,p)=>F(E6e,{key:g.key,elRef:this.cellElRefs.createRef(g.key),dateProfile:t.dateProfile,date:g.date,nowDate:t.nowDate,todayRange:t.todayRange,extraRenderProps:g.extraRenderProps,extraDataAttrs:g.extraDataAttrs,extraClassNames:g.extraClassNames,extraDateSpan:g.extraDateSpan,fgEventSegs:o[p],bgEventSegs:a[p],businessHourSegs:s[p],nowIndicatorSegs:l[p],dateSelectionSegs:c[p],eventDrag:d[p],eventResize:f[p],slatCoords:t.slatCoords,eventSelection:t.eventSelection,forPrint:t.forPrint}))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:t}=this;t.onColCoords&&t.clientWidth!==null&&t.onColCoords(new qo(this.rootElRef.current,A6e(this.cellElRefs.currentMap,t.cells),!0,!1))}}function A6e(e,t){return t.map(n=>e[n.key])}class R6e extends gr{constructor(){super(...arguments),this.processSlotOptions=Le(O6e),this.state={slatCoords:null},this.handleRootEl=t=>{t?this.context.registerInteractiveComponent(this,{el:t,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=t=>{let{onScrollTopRequest:n}=this.props,{slatCoords:r}=this.state;if(n&&r){if(t.time){let i=r.computeTimeTop(t.time);i=Math.ceil(i),i&&(i+=1),n(i)}return!0}return!1},this.handleColCoords=t=>{this.colCoords=t},this.handleSlatCoords=t=>{this.setState({slatCoords:t}),this.props.onSlatCoords&&this.props.onSlatCoords(t)}}render(){let{props:t,state:n}=this;return F("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:t.clientWidth,minWidth:t.tableMinWidth}},F(f6e,{axis:t.axis,dateProfile:t.dateProfile,slatMetas:t.slatMetas,clientWidth:t.clientWidth,minHeight:t.expandRows?t.clientHeight:"",tableMinWidth:t.tableMinWidth,tableColGroupNode:t.axis?t.tableColGroupNode:null,onCoords:this.handleSlatCoords}),F(T6e,{cells:t.cells,axis:t.axis,dateProfile:t.dateProfile,businessHourSegs:t.businessHourSegs,bgEventSegs:t.bgEventSegs,fgEventSegs:t.fgEventSegs,dateSelectionSegs:t.dateSelectionSegs,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange,nowDate:t.nowDate,nowIndicatorSegs:t.nowIndicatorSegs,clientWidth:t.clientWidth,tableMinWidth:t.tableMinWidth,tableColGroupNode:t.tableColGroupNode,slatCoords:n.slatCoords,onColCoords:this.handleColCoords,forPrint:t.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(t){this.scrollResponder.update(t.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(t,n){let{dateEnv:r,options:i}=this.context,{colCoords:o}=this,{dateProfile:a}=this.props,{slatCoords:s}=this.state,{snapDuration:l,snapsPerSlot:c}=this.processSlotOptions(this.props.slotDuration,i.snapDuration),d=o.leftToIndex(t),f=s.positions.topToIndex(n);if(d!=null&&f!=null){let g=this.props.cells[d],p=s.positions.tops[f],m=s.positions.getHeight(f),v=(n-p)/m,w=Math.floor(v*c),x=f*c+w,b=this.props.cells[d].date,S=DS(a.slotMinTime,RSe(l,x)),$=r.add(b,S),E=r.add($,l);return{dateProfile:a,dateSpan:Object.assign({range:{start:$,end:E},allDay:!1},g.extraDateSpan),dayEl:o.els[d],rect:{left:o.lefts[d],right:o.rights[d],top:p,bottom:p+m},layer:0}}return null}}function O6e(e,t){let n=t||e,r=PS(e,n);return r===null&&(n=e,r=1),{snapDuration:n,snapsPerSlot:r}}class _6e extends g8{sliceRange(t,n){let r=[];for(let i=0;i<n.length;i+=1){let o=Go(t,n[i]);o&&r.push({start:o.start,end:o.end,isStart:o.start.valueOf()===t.start.valueOf(),isEnd:o.end.valueOf()===t.end.valueOf(),col:i})}return r}}class I6e extends gr{constructor(){super(...arguments),this.buildDayRanges=Le(D6e),this.slicer=new _6e,this.timeColsRef=Pn()}render(){let{props:t,context:n}=this,{dateProfile:r,dayTableModel:i}=t,{nowIndicator:o,nextDayThreshold:a}=n.options,s=this.buildDayRanges(i,r,n.dateEnv);return F(Su,{unit:o?"minute":"day"},(l,c)=>F(R6e,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(t,r,null,n,s),{forPrint:t.forPrint,axis:t.axis,dateProfile:r,slatMetas:t.slatMetas,slotDuration:t.slotDuration,cells:i.cells[0],tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,expandRows:t.expandRows,nowDate:l,nowIndicatorSegs:o&&this.slicer.sliceNowDate(l,r,a,n,s),todayRange:c,onScrollTopRequest:t.onScrollTopRequest,onSlatCoords:t.onSlatCoords})))}}function D6e(e,t,n){let r=[];for(let i of e.headerDates)r.push({start:n.add(i,t.slotMinTime),end:n.add(i,t.slotMaxTime)});return r}const OF=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function P6e(e,t,n,r,i){let o=new Date(0),a=e,s=yt(0),l=n||M6e(r),c=[];for(;vo(a)<vo(t);){let d=i.add(o,a),f=PS(s,l)!==null;c.push({date:d,time:a,key:d.toISOString(),isoTimeStr:USe(d),isLabeled:f}),a=DS(a,r),s=DS(s,r)}return c}function M6e(e){let t,n,r;for(t=OF.length-1;t>=0;t-=1)if(n=yt(OF[t]),r=PS(n,e),r!==null&&r>1)return n;return e}class N6e extends l6e{constructor(){super(...arguments),this.buildTimeColsModel=Le(L6e),this.buildSlatMetas=Le(P6e)}render(){let{options:t,dateEnv:n,dateProfileGenerator:r}=this.context,{props:i}=this,{dateProfile:o}=i,a=this.buildTimeColsModel(o,r),s=this.allDaySplitter.splitProps(i),l=this.buildSlatMetas(o.slotMinTime,o.slotMaxTime,t.slotLabelInterval,t.slotDuration,n),{dayMinWidth:c}=t,d=!c,f=c,g=t.dayHeaders&&F(f8,{dates:a.headerDates,dateProfile:o,datesRepDistinctDays:!0,renderIntro:d?this.renderHeadAxis:null}),p=t.allDaySlot!==!1&&(v=>F($F,Object.assign({},s.allDay,{dateProfile:o,dayTableModel:a,nextDayThreshold:t.nextDayThreshold,tableMinWidth:v.tableMinWidth,colGroupNode:v.tableColGroupNode,renderRowIntro:d?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:v.clientWidth,clientHeight:v.clientHeight,forPrint:i.forPrint},this.getAllDayMaxEventProps()))),m=v=>F(I6e,Object.assign({},s.timed,{dayTableModel:a,dateProfile:o,axis:d,slotDuration:t.slotDuration,slatMetas:l,forPrint:i.forPrint,tableColGroupNode:v.tableColGroupNode,tableMinWidth:v.tableMinWidth,clientWidth:v.clientWidth,clientHeight:v.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:v.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return f?this.renderHScrollLayout(g,p,m,a.colCnt,c,l,this.state.slatCoords):this.renderSimpleLayout(g,p,m)}}function L6e(e,t){let n=new p8(e.renderRange,t);return new h8(n,!1)}const F6e={allDaySlot:Boolean};var j6e='.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}';vh(j6e);var z6e=Ko({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:F6e,views:{timeGrid:{component:N6e,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}}),B6e=':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}';vh(B6e);var H6e=Ko({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:XCe,dateProfileGeneratorClass:e6e},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}}}});function ay(e,t){let n=[];for(let r=0;r<t;r+=1)n[r]=[];for(let r of e)n[r.row].push(r);return n}function sy(e,t){let n=[];for(let r=0;r<t;r+=1)n[r]=[];for(let r of e)n[r.firstCol].push(r);return n}function _F(e,t){let n=[];if(e){for(let r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(let r of e.segs)n[r.row].segs.push(r)}else for(let r=0;r<t;r+=1)n[r]=null;return n}const IF=Ot({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function DF(e){let{display:t}=e.eventRange.ui;return t==="list-item"||t==="auto"&&!e.eventRange.def.allDay&&e.firstCol===e.lastCol&&e.isStart&&e.isEnd}class PF extends bt{render(){let{props:t}=this;return F(y8,Object.assign({},t,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:IF,defaultDisplayEventEnd:t.defaultDisplayEventEnd,disableResizing:!t.seg.eventRange.def.allDay}))}}class MF extends bt{render(){let{props:t,context:n}=this,{options:r}=n,{seg:i}=t,o=r.eventTimeFormat||IF,a=Od(i,o,n,!0,t.defaultDisplayEventEnd);return F(Eh,Object.assign({},t,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:Yv(t.seg,n),defaultGenerator:U6e,timeText:a,isResizing:!1,isDateSelecting:!1}))}}function U6e(e){return F(ut,null,F("div",{className:"fc-daygrid-event-dot",style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&F("div",{className:"fc-event-time"},e.timeText),F("div",{className:"fc-event-title"},e.event.title||F(ut,null," ")))}class W6e extends bt{constructor(){super(...arguments),this.compileSegs=Le(V6e)}render(){let{props:t}=this,{allSegs:n,invisibleSegs:r}=this.compileSegs(t.singlePlacements);return F(C8,{elClasses:["fc-daygrid-more-link"],dateProfile:t.dateProfile,todayRange:t.todayRange,allDayDate:t.allDayDate,moreCnt:t.moreCnt,allSegs:n,hiddenSegs:r,alignmentElRef:t.alignmentElRef,alignGridTop:t.alignGridTop,extraDateSpan:t.extraDateSpan,popoverContent:()=>{let i=(t.eventDrag?t.eventDrag.affectedInstances:null)||(t.eventResize?t.eventResize.affectedInstances:null)||{};return F(ut,null,n.map(o=>{let a=o.eventRange.instance.instanceId;return F("div",{className:"fc-daygrid-event-harness",key:a,style:{visibility:i[a]?"hidden":""}},DF(o)?F(MF,Object.assign({seg:o,isDragging:!1,isSelected:a===t.eventSelection,defaultDisplayEventEnd:!1},Vr(o,t.todayRange))):F(PF,Object.assign({seg:o,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:a===t.eventSelection,defaultDisplayEventEnd:!1},Vr(o,t.todayRange))))}))}})}}function V6e(e){let t=[],n=[];for(let r of e)t.push(r.seg),r.isVisible||n.push(r.seg);return{allSegs:t,invisibleSegs:n}}const G6e=Ot({week:"narrow"});class q6e extends gr{constructor(){super(...arguments),this.rootElRef=Pn(),this.state={dayNumberId:Wo()},this.handleRootEl=t=>{Vo(this.rootElRef,t),Vo(this.props.elRef,t)}}render(){let{context:t,props:n,state:r,rootElRef:i}=this,{options:o,dateEnv:a}=t,{date:s,dateProfile:l}=n;const c=n.showDayNumber&&K6e(s,l.currentRange,a);return F(ty,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...n.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},n.extraDataAttrs),n.showDayNumber?{"aria-labelledby":r.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:Y6e,date:s,dateProfile:l,todayRange:n.todayRange,showDayNumber:n.showDayNumber,isMonthStart:c,extraRenderProps:n.extraRenderProps},(d,f)=>F("div",{ref:n.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:n.minHeight}},n.showWeekNumber&&F(S8,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:il(t,s,"week"),date:s,defaultFormat:G6e}),!f.isDisabled&&(n.showDayNumber||ny(o)||n.forceDayTop)?F("div",{className:"fc-daygrid-day-top"},F(d,{elTag:"a",elClasses:["fc-daygrid-day-number",c&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},il(t,s)),{id:r.dayNumberId})})):n.showDayNumber?F("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},F("a",{className:"fc-daygrid-day-number"}," ")):void 0,F("div",{className:"fc-daygrid-day-events",ref:n.fgContentElRef},n.fgContent,F("div",{className:"fc-daygrid-day-bottom",style:{marginTop:n.moreMarginTop}},F(W6e,{allDayDate:s,singlePlacements:n.singlePlacements,moreCnt:n.moreCnt,alignmentElRef:i,alignGridTop:!n.showDayNumber,extraDateSpan:n.extraDateSpan,dateProfile:n.dateProfile,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,todayRange:n.todayRange}))),F("div",{className:"fc-daygrid-day-bg"},n.bgContent)))}}function Y6e(e){return e.dayNumberText||F(ut,null," ")}function K6e(e,t,n){const{start:r,end:i}=t,o=el(i,-1),a=n.getYear(r),s=n.getMonth(r),l=n.getYear(o),c=n.getMonth(o);return!(a===l&&s===c)&&(e.valueOf()===r.valueOf()||n.getDay(e)===1&&e.valueOf()<i.valueOf())}function Z6e(e,t,n,r,i,o,a){let s=new J6e;s.allowReslicing=!0,s.strictOrder=r,t===!0||n===!0?(s.maxCoord=o,s.hiddenConsumes=!0):typeof t=="number"?s.maxStackCnt=t:typeof n=="number"&&(s.maxStackCnt=n,s.hiddenConsumes=!0);let l=[],c=[];for(let x=0;x<e.length;x+=1){let b=e[x],{instanceId:S}=b.eventRange.instance,$=i[S];$!=null?l.push({index:x,thickness:$,span:{start:b.firstCol,end:b.lastCol+1}}):c.push(b)}let d=s.addSegs(l),f=s.toRects(),{singleColPlacements:g,multiColPlacements:p,leftoverMargins:m}=Q6e(f,e,a),v=[],w=[];for(let x of c){p[x.firstCol].push({seg:x,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let b=x.firstCol;b<=x.lastCol;b+=1)g[b].push({seg:Id(x,b,b+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let x=0;x<a.length;x+=1)v.push(0);for(let x of d){let b=e[x.index],S=x.span;p[S.start].push({seg:Id(b,S.start,S.end,a),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let $=S.start;$<S.end;$+=1)v[$]+=1,g[$].push({seg:Id(b,$,$+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let x=0;x<a.length;x+=1)w.push(m[x]);return{singleColPlacements:g,multiColPlacements:p,moreCnts:v,moreMarginTops:w}}function Q6e(e,t,n){let r=X6e(e,n.length),i=[],o=[],a=[];for(let s=0;s<n.length;s+=1){let l=r[s],c=[],d=0,f=0;for(let p of l){let m=t[p.index];c.push({seg:Id(m,s,s+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:p.levelCoord,marginTop:p.levelCoord-d}),d=p.levelCoord+p.thickness}let g=[];d=0,f=0;for(let p of l){let m=t[p.index],v=p.span.end-p.span.start>1,w=p.span.start===s;f+=p.levelCoord-d,d=p.levelCoord+p.thickness,v?(f+=p.thickness,w&&g.push({seg:Id(m,p.span.start,p.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:p.levelCoord,marginTop:0})):w&&(g.push({seg:Id(m,p.span.start,p.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:p.levelCoord,marginTop:f}),f=0)}i.push(c),o.push(g),a.push(f)}return{singleColPlacements:i,multiColPlacements:o,leftoverMargins:a}}function X6e(e,t){let n=[];for(let r=0;r<t;r+=1)n.push([]);for(let r of e)for(let i=r.span.start;i<r.span.end;i+=1)n[i].push(r);return n}function Id(e,t,n,r){if(e.firstCol===t&&e.lastCol===n-1)return e;let i=e.eventRange,o=i.range,a=Go(o,{start:r[t].date,end:xn(r[n-1].date,1)});return Object.assign(Object.assign({},e),{firstCol:t,lastCol:n-1,eventRange:{def:i.def,ui:Object.assign(Object.assign({},i.ui),{durationEditable:!1}),instance:i.instance,range:a},isStart:e.isStart&&a.start.valueOf()===o.start.valueOf(),isEnd:e.isEnd&&a.end.valueOf()===o.end.valueOf()})}class J6e extends l8{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(t){const n=super.addSegs(t),{entriesByLevel:r}=this,i=o=>!this.forceHidden[Yo(o)];for(let o=0;o<r.length;o+=1)r[o]=r[o].filter(i);return n}handleInvalidInsertion(t,n,r){const{entriesByLevel:i,forceHidden:o}=this,{touchingEntry:a,touchingLevel:s,touchingLateral:l}=t;if(this.hiddenConsumes&&a){const c=Yo(a);if(!o[c])if(this.allowReslicing){const d=Object.assign(Object.assign({},a),{span:Qv(a.span,n.span)}),f=Yo(d);o[f]=!0,i[s][l]=d,this.splitEntry(a,n,r)}else o[c]=!0,r.push(a)}return super.handleInvalidInsertion(t,n,r)}}class NF extends gr{constructor(){super(...arguments),this.cellElRefs=new Gr,this.frameElRefs=new Gr,this.fgElRefs=new Gr,this.segHarnessRefs=new Gr,this.rootElRef=Pn(),this.state={framePositions:null,maxContentHeight:null,eventInstanceHeights:{}},this.handleResize=t=>{t&&this.updateSizing(!0)}}render(){let{props:t,state:n,context:r}=this,{options:i}=r,o=t.cells.length,a=sy(t.businessHourSegs,o),s=sy(t.bgEventSegs,o),l=sy(this.getHighlightSegs(),o),c=sy(this.getMirrorSegs(),o),{singleColPlacements:d,multiColPlacements:f,moreCnts:g,moreMarginTops:p}=Z6e(qv(t.fgEventSegs,i.eventOrder),t.dayMaxEvents,t.dayMaxEventRows,i.eventOrderStrict,n.eventInstanceHeights,n.maxContentHeight,t.cells),m=t.eventDrag&&t.eventDrag.affectedInstances||t.eventResize&&t.eventResize.affectedInstances||{};return F("tr",{ref:this.rootElRef,role:"row"},t.renderIntro&&t.renderIntro(),t.cells.map((v,w)=>{let x=this.renderFgSegs(w,t.forPrint?d[w]:f[w],t.todayRange,m),b=this.renderFgSegs(w,e7e(c[w],f),t.todayRange,{},!!t.eventDrag,!!t.eventResize,!1);return F(q6e,{key:v.key,elRef:this.cellElRefs.createRef(v.key),innerElRef:this.frameElRefs.createRef(v.key),dateProfile:t.dateProfile,date:v.date,showDayNumber:t.showDayNumbers,showWeekNumber:t.showWeekNumbers&&w===0,forceDayTop:t.showWeekNumbers,todayRange:t.todayRange,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,extraRenderProps:v.extraRenderProps,extraDataAttrs:v.extraDataAttrs,extraClassNames:v.extraClassNames,extraDateSpan:v.extraDateSpan,moreCnt:g[w],moreMarginTop:p[w],singlePlacements:d[w],fgContentElRef:this.fgElRefs.createRef(v.key),fgContent:F(ut,null,F(ut,null,x),F(ut,null,b)),bgContent:F(ut,null,this.renderFillSegs(l[w],"highlight"),this.renderFillSegs(a[w],"non-business"),this.renderFillSegs(s[w],"bg-event")),minHeight:t.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(t,n){let r=this.props;this.updateSizing(!pi(t,r))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:t}=this;return t.eventDrag&&t.eventDrag.segs.length?t.eventDrag.segs:t.eventResize&&t.eventResize.segs.length?t.eventResize.segs:t.dateSelectionSegs}getMirrorSegs(){let{props:t}=this;return t.eventResize&&t.eventResize.segs.length?t.eventResize.segs:[]}renderFgSegs(t,n,r,i,o,a,s){let{context:l}=this,{eventSelection:c}=this.props,{framePositions:d}=this.state,f=this.props.cells.length===1,g=o||a||s,p=[];if(d)for(let m of n){let{seg:v}=m,{instanceId:w}=v.eventRange.instance,x=w+":"+t,b=m.isVisible&&!i[w],S=m.isAbsolute,$="",E="";S&&(l.isRtl?(E=0,$=d.lefts[v.lastCol]-d.lefts[v.firstCol]):($=0,E=d.rights[v.firstCol]-d.rights[v.lastCol])),p.push(F("div",{className:"fc-daygrid-event-harness"+(S?" fc-daygrid-event-harness-abs":""),key:x,ref:g?null:this.segHarnessRefs.createRef(x),style:{visibility:b?"":"hidden",marginTop:S?"":m.marginTop,top:S?m.absoluteTop:"",left:$,right:E}},DF(v)?F(MF,Object.assign({seg:v,isDragging:o,isSelected:w===c,defaultDisplayEventEnd:f},Vr(v,r))):F(PF,Object.assign({seg:v,isDragging:o,isResizing:a,isDateSelecting:s,isSelected:w===c,defaultDisplayEventEnd:f},Vr(v,r)))))}return p}renderFillSegs(t,n){let{isRtl:r}=this.context,{todayRange:i}=this.props,{framePositions:o}=this.state,a=[];if(o)for(let s of t){let l=r?{right:0,left:o.lefts[s.lastCol]-o.lefts[s.firstCol]}:{left:0,right:o.rights[s.firstCol]-o.rights[s.lastCol]};a.push(F("div",{key:r8(s.eventRange),className:"fc-daygrid-bg-harness",style:l},n==="bg-event"?F(x8,Object.assign({seg:s},Vr(s,i))):w8(n)))}return F(ut,{},...a)}updateSizing(t){let{props:n,state:r,frameElRefs:i}=this;if(!n.forPrint&&n.clientWidth!==null){if(t){let l=n.cells.map(c=>i.currentMap[c.key]);if(l.length){let c=this.rootElRef.current,d=new qo(c,l,!0,!1);(!r.framePositions||!r.framePositions.similarTo(d))&&this.setState({framePositions:new qo(c,l,!0,!1)})}}const o=this.state.eventInstanceHeights,a=this.queryEventInstanceHeights(),s=n.dayMaxEvents===!0||n.dayMaxEventRows===!0;this.safeSetState({eventInstanceHeights:Object.assign(Object.assign({},o),a),maxContentHeight:s?this.computeMaxContentHeight():null})}}queryEventInstanceHeights(){let t=this.segHarnessRefs.currentMap,n={};for(let r in t){let i=Math.round(t[r].getBoundingClientRect().height),o=r.split(":")[0];n[o]=Math.max(n[o]||0,i)}return n}computeMaxContentHeight(){let t=this.props.cells[0].key,n=this.cellElRefs.currentMap[t],r=this.fgElRefs.currentMap[t];return n.getBoundingClientRect().bottom-r.getBoundingClientRect().top}getCellEls(){let t=this.cellElRefs.currentMap;return this.props.cells.map(n=>t[n.key])}}NF.addStateEquality({eventInstanceHeights:pi});function e7e(e,t){if(!e.length)return[];let n=t7e(t);return e.map(r=>({seg:r,isVisible:!0,isAbsolute:!0,absoluteTop:n[r.eventRange.instance.instanceId],marginTop:0}))}function t7e(e){let t={};for(let n of e)for(let r of n)t[r.seg.eventRange.instance.instanceId]=r.absoluteTop;return t}class n7e extends gr{constructor(){super(...arguments),this.splitBusinessHourSegs=Le(ay),this.splitBgEventSegs=Le(ay),this.splitFgEventSegs=Le(ay),this.splitDateSelectionSegs=Le(ay),this.splitEventDrag=Le(_F),this.splitEventResize=Le(_F),this.rowRefs=new Gr}render(){let{props:t,context:n}=this,r=t.cells.length,i=this.splitBusinessHourSegs(t.businessHourSegs,r),o=this.splitBgEventSegs(t.bgEventSegs,r),a=this.splitFgEventSegs(t.fgEventSegs,r),s=this.splitDateSelectionSegs(t.dateSelectionSegs,r),l=this.splitEventDrag(t.eventDrag,r),c=this.splitEventResize(t.eventResize,r),d=r>=7&&t.clientWidth?t.clientWidth/n.options.aspectRatio/6:null;return F(Su,{unit:"day"},(f,g)=>F(ut,null,t.cells.map((p,m)=>F(NF,{ref:this.rowRefs.createRef(m),key:p.length?p[0].date.toISOString():m,showDayNumbers:r>1,showWeekNumbers:t.showWeekNumbers,todayRange:g,dateProfile:t.dateProfile,cells:p,renderIntro:t.renderRowIntro,businessHourSegs:i[m],eventSelection:t.eventSelection,bgEventSegs:o[m].filter(r7e),fgEventSegs:a[m],dateSelectionSegs:s[m],eventDrag:l[m],eventResize:c[m],dayMaxEvents:t.dayMaxEvents,dayMaxEventRows:t.dayMaxEventRows,clientWidth:t.clientWidth,clientHeight:t.clientHeight,cellMinHeight:d,forPrint:t.forPrint}))))}componentDidMount(){const t=this.rowRefs.currentMap[0].getCellEls()[0];this.rootEl=t?t.closest(".fc-daygrid-body"):null,this.rootEl&&this.context.registerInteractiveComponent(this,{el:this.rootEl,isHitComboAllowed:this.props.isHitComboAllowed})}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new qo(this.rootEl,this.rowRefs.collect().map(t=>t.getCellEls()[0]),!1,!0),this.colPositions=new qo(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(t,n){let{colPositions:r,rowPositions:i}=this,o=r.leftToIndex(t),a=i.topToIndex(n);if(a!=null&&o!=null){let s=this.props.cells[a][o];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(a,o),allDay:!0},s.extraDateSpan),dayEl:this.getCellEl(a,o),rect:{left:r.lefts[o],right:r.rights[o],top:i.tops[a],bottom:i.bottoms[a]},layer:0}}return null}getCellEl(t,n){return this.rowRefs.currentMap[t].getCellEls()[n]}getCellRange(t,n){let r=this.props.cells[t][n].date,i=xn(r,1);return{start:r,end:i}}}function r7e(e){return e.eventRange.def.allDay}class i7e extends g8{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(t,n){return n.sliceRange(t)}}class o7e extends qS{buildRenderRange(t,n,r){let i=super.buildRenderRange(t,n,r),{props:o}=this;return LF({currentRange:i,snapToWeek:/^(year|month)$/.test(n),fixedWeekCount:o.fixedWeekCount,dateEnv:o.dateEnv})}}function LF(e){let{dateEnv:t,currentRange:n}=e,{start:r,end:i}=n,o;if(e.snapToWeek&&(r=t.startOfWeek(r),o=t.startOfWeek(i),o.valueOf()!==i.valueOf()&&(i=Mv(o,1))),e.fixedWeekCount){let a=t.startOfWeek(t.startOfMonth(xn(n.end,-1))),s=Math.ceil(oL(a,i));i=Mv(i,6-s)}return{start:r,end:i}}function a7e(e,t){let n=new p8(e.renderRange,t);return new h8(n,/year|month|week/.test(e.currentRangeUnit))}class s7e extends gr{constructor(){super(...arguments),this.buildDayTableModel=Le(a7e),this.slicer=new i7e,this.state={labelId:Wo()}}render(){const{props:t,state:n,context:r}=this,{dateProfile:i,forPrint:o}=t,{options:a}=r,s=this.buildDayTableModel(i,r.dateProfileGenerator),l=this.slicer.sliceProps(t,i,a.nextDayThreshold,r,s),c=t.tableWidth!=null?t.tableWidth/a.aspectRatio:null,d=s.cells.length,f=c!=null?c/d:null;return F("div",{ref:t.elRef,"data-date":t.isoDateStr,className:"fc-multimonth-month",style:{width:t.width},role:"grid","aria-labelledby":n.labelId},F("div",{className:"fc-multimonth-header",style:{marginBottom:f},role:"presentation"},F("div",{className:"fc-multimonth-title",id:n.labelId},r.dateEnv.format(t.dateProfile.currentRange.start,t.titleFormat)),F("table",{className:["fc-multimonth-header-table",r.theme.getClass("table")].join(" "),role:"presentation"},F("thead",{role:"rowgroup"},F(f8,{dateProfile:t.dateProfile,dates:s.headerDates,datesRepDistinctDays:!1})))),F("div",{className:["fc-multimonth-daygrid","fc-daygrid","fc-daygrid-body",!o&&"fc-daygrid-body-balanced",o&&"fc-daygrid-body-unbalanced",o&&"fc-daygrid-body-natural"].join(" "),style:{marginTop:-f}},F("table",{className:["fc-multimonth-daygrid-table",r.theme.getClass("table")].join(" "),style:{height:o?"":c},role:"presentation"},F("tbody",{role:"rowgroup"},F(n7e,Object.assign({},l,{dateProfile:i,cells:s.cells,eventSelection:t.eventSelection,dayMaxEvents:!o,dayMaxEventRows:!o,showWeekNumbers:a.weekNumbers,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:o}))))))}}class l7e extends gr{constructor(){super(...arguments),this.splitDateProfileByMonth=Le(c7e),this.buildMonthFormat=Le(p7e),this.scrollElRef=Pn(),this.firstMonthElRef=Pn(),this.needsScrollReset=!1,this.handleSizing=t=>{t&&this.updateSize()}}render(){const{context:t,props:n,state:r}=this,{options:i}=t,{clientWidth:o,clientHeight:a}=r,s=r.monthHPadding||0,l=Math.min(o!=null?Math.floor(o/(i.multiMonthMinWidth+s)):1,i.multiMonthMaxColumns)||1,c=100/l+"%",d=o==null?null:o/l-s,f=o!=null&&l===1,g=this.splitDateProfileByMonth(t.dateProfileGenerator,n.dateProfile,t.dateEnv,f?!1:i.fixedWeekCount,i.showNonCurrentDates),p=this.buildMonthFormat(i.multiMonthTitleFormat,g),m=["fc-multimonth",f?"fc-multimonth-singlecol":"fc-multimonth-multicol",d!=null&&d<400?"fc-multimonth-compact":""];return F(Ad,{elRef:this.scrollElRef,elClasses:m,viewSpec:t.viewSpec},g.map((v,w)=>{const x=LS(v.currentRange.start);return F(s7e,Object.assign({},n,{key:x,isoDateStr:x,elRef:w===0?this.firstMonthElRef:void 0,titleFormat:p,dateProfile:v,width:c,tableWidth:d,clientWidth:o,clientHeight:a}))}))}componentDidMount(){this.updateSize(),this.context.addResizeHandler(this.handleSizing),this.requestScrollReset()}componentDidUpdate(t){pi(t,this.props)||this.handleSizing(!1),t.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}updateSize(){const t=this.scrollElRef.current,n=this.firstMonthElRef.current;t&&this.setState({clientWidth:t.clientWidth,clientHeight:t.clientHeight}),n&&t&&this.state.monthHPadding==null&&this.setState({monthHPadding:t.clientWidth-n.firstChild.offsetWidth})}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.state.monthHPadding!=null){const{currentDate:t}=this.props.dateProfile,n=this.scrollElRef.current,r=n.querySelector(`[data-date="${LS(t)}"]`);n.scrollTop=r.getBoundingClientRect().top-this.firstMonthElRef.current.getBoundingClientRect().top,this.needsScrollReset=!1}}shouldComponentUpdate(){return!0}}const u7e=yt(1,"month");function c7e(e,t,n,r,i){const{start:o,end:a}=t.currentRange;let s=o;const l=[];for(;s.valueOf()<a.valueOf();){const c=n.add(s,u7e),d={start:e.skipHiddenDays(s),end:e.skipHiddenDays(c,-1,!0)};let f=LF({currentRange:d,snapToWeek:!0,fixedWeekCount:r,dateEnv:n});f={start:e.skipHiddenDays(f.start),end:e.skipHiddenDays(f.end,-1,!0)};const g=t.activeRange?Go(t.activeRange,i?f:d):null;l.push({currentDate:t.currentDate,isValid:t.isValid,validRange:t.validRange,renderRange:f,activeRange:g,currentRange:d,currentRangeUnit:"month",isRangeAllDay:!0,dateIncrement:t.dateIncrement,slotMinTime:t.slotMaxTime,slotMaxTime:t.slotMinTime}),s=c}return l}const d7e=Ot({year:"numeric",month:"long"}),f7e=Ot({month:"long"});function p7e(e,t){return e||(t[0].currentRange.start.getUTCFullYear()!==t[t.length-1].currentRange.start.getUTCFullYear()?d7e:f7e)}const h7e={multiMonthTitleFormat:Ot,multiMonthMaxColumns:Number,multiMonthMinWidth:Number};var g7e=".fc .fc-multimonth{border:1px solid var(--fc-border-color);display:flex;flex-wrap:wrap;overflow-x:hidden;overflow-y:auto}.fc .fc-multimonth-title{font-size:1.2em;font-weight:700;padding:1em 0;text-align:center}.fc .fc-multimonth-daygrid{background:var(--fc-page-bg-color)}.fc .fc-multimonth-daygrid-table,.fc .fc-multimonth-header-table{table-layout:fixed;width:100%}.fc .fc-multimonth-daygrid-table{border-top-style:hidden!important}.fc .fc-multimonth-singlecol .fc-multimonth{position:relative}.fc .fc-multimonth-singlecol .fc-multimonth-header{background:var(--fc-page-bg-color);position:relative;top:0;z-index:2}.fc .fc-multimonth-singlecol .fc-multimonth-daygrid{position:relative;z-index:1}.fc .fc-multimonth-singlecol .fc-multimonth-daygrid-table,.fc .fc-multimonth-singlecol .fc-multimonth-header-table{border-left-style:hidden;border-right-style:hidden}.fc .fc-multimonth-singlecol .fc-multimonth-month:last-child .fc-multimonth-daygrid-table{border-bottom-style:hidden}.fc .fc-multimonth-multicol{line-height:1}.fc .fc-multimonth-multicol .fc-multimonth-month{padding:0 1.2em 1.2em}.fc .fc-multimonth-multicol .fc-daygrid-more-link{border:1px solid var(--fc-event-border-color);display:block;float:none;padding:1px}.fc .fc-multimonth-compact{line-height:1}.fc .fc-multimonth-compact .fc-multimonth-daygrid-table,.fc .fc-multimonth-compact .fc-multimonth-header-table{font-size:.9em}.fc-media-screen .fc-multimonth-singlecol .fc-multimonth-header{position:sticky}.fc-media-print .fc-multimonth{overflow:visible}";vh(g7e);var m7e=Ko({name:"@fullcalendar/multimonth",initialView:"multiMonthYear",optionRefiners:h7e,views:{multiMonth:{component:l7e,dateProfileGeneratorClass:o7e,multiMonthMinWidth:350,multiMonthMaxColumns:3},multiMonthYear:{type:"multiMonth",duration:{years:1},fixedWeekCount:!0,showNonCurrentDates:!1}}}),v7e={code:"af",week:{dow:1,doy:4},buttonText:{prev:"Vorige",next:"Volgende",today:"Vandag",year:"Jaar",month:"Maand",week:"Week",day:"Dag",list:"Agenda"},allDayText:"Heeldag",moreLinkText:"Addisionele",noEventsText:"Daar is geen gebeurtenisse nie"},y7e={code:"ar-dz",week:{dow:0,doy:4},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},b7e={code:"ar-kw",week:{dow:0,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},x7e={code:"ar-ly",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},w7e={code:"ar-ma",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},S7e={code:"ar-sa",week:{dow:0,doy:6},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},$7e={code:"ar-tn",week:{dow:1,doy:4},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},C7e={code:"ar",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},E7e={code:"az",week:{dow:1,doy:4},buttonText:{prev:"Əvvəl",next:"Sonra",today:"Bu Gün",year:"Il",month:"Ay",week:"Həftə",day:"Gün",list:"Gündəm"},weekText:"Həftə",allDayText:"Bütün Gün",moreLinkText(e){return"+ daha çox "+e},noEventsText:"Göstərmək üçün hadisə yoxdur"},k7e={code:"bg",week:{dow:1,doy:7},buttonText:{prev:"назад",next:"напред",today:"днес",year:"година",month:"Месец",week:"Седмица",day:"Ден",list:"График"},allDayText:"Цял ден",moreLinkText(e){return"+още "+e},noEventsText:"Няма събития за показване"},T7e={code:"bn",week:{dow:0,doy:6},buttonText:{prev:"পেছনে",next:"সামনে",today:"আজ",year:"বছর",month:"মাস",week:"সপ্তাহ",day:"দিন",list:"তালিকা"},weekText:"সপ্তাহ",allDayText:"সারাদিন",moreLinkText(e){return"+অন্যান্য "+e},noEventsText:"কোনো ইভেন্ট নেই"},A7e={code:"bs",week:{dow:1,doy:7},buttonText:{prev:"Prošli",next:"Sljedeći",today:"Danas",year:"Godina",month:"Mjesec",week:"Sedmica",day:"Dan",list:"Raspored"},weekText:"Sed",allDayText:"Cijeli dan",moreLinkText(e){return"+ još "+e},noEventsText:"Nema događaja za prikazivanje"},R7e={code:"ca",week:{dow:1,doy:4},buttonText:{prev:"Anterior",next:"Següent",today:"Avui",year:"Curs",month:"Mes",week:"Setmana",day:"Dia",list:"Agenda"},weekText:"Set",allDayText:"Tot el dia",moreLinkText:"més",noEventsText:"No hi ha esdeveniments per mostrar"},O7e={code:"cs",week:{dow:1,doy:4},buttonText:{prev:"Dříve",next:"Později",today:"Nyní",year:"Rok",month:"Měsíc",week:"Týden",day:"Den",list:"Agenda"},weekText:"Týd",allDayText:"Celý den",moreLinkText(e){return"+další: "+e},noEventsText:"Žádné akce k zobrazení"},_7e={code:"cy",week:{dow:1,doy:4},buttonText:{prev:"Blaenorol",next:"Nesaf",today:"Heddiw",year:"Blwyddyn",month:"Mis",week:"Wythnos",day:"Dydd",list:"Rhestr"},weekText:"Wythnos",allDayText:"Trwy'r dydd",moreLinkText:"Mwy",noEventsText:"Dim digwyddiadau"},I7e={code:"da",week:{dow:1,doy:4},buttonText:{prev:"Forrige",next:"Næste",today:"I dag",year:"År",month:"Måned",week:"Uge",day:"Dag",list:"Agenda"},weekText:"Uge",allDayText:"Hele dagen",moreLinkText:"flere",noEventsText:"Ingen arrangementer at vise"};function O8(e){return e==="Tag"||e==="Monat"?"r":e==="Jahr"?"s":""}var D7e={code:"de-at",week:{dow:1,doy:4},buttonText:{prev:"Zurück",next:"Vor",today:"Heute",year:"Jahr",month:"Monat",week:"Woche",day:"Tag",list:"Terminübersicht"},weekText:"KW",weekTextLong:"Woche",allDayText:"Ganztägig",moreLinkText(e){return"+ weitere "+e},noEventsText:"Keine Ereignisse anzuzeigen",buttonHints:{prev(e){return`Vorherige${O8(e)} ${e}`},next(e){return`Nächste${O8(e)} ${e}`},today(e){return e==="Tag"?"Heute":`Diese${O8(e)} ${e}`}},viewHint(e){return e+(e==="Woche"?"n":e==="Monat"?"s":"es")+"ansicht"},navLinkHint:"Gehe zu $0",moreLinkHint(e){return"Zeige "+(e===1?"ein weiteres Ereignis":e+" weitere Ereignisse")},closeHint:"Schließen",timeHint:"Uhrzeit",eventHint:"Ereignis"};function _8(e){return e==="Tag"||e==="Monat"?"r":e==="Jahr"?"s":""}var P7e={code:"de",week:{dow:1,doy:4},buttonText:{prev:"Zurück",next:"Vor",today:"Heute",year:"Jahr",month:"Monat",week:"Woche",day:"Tag",list:"Terminübersicht"},weekText:"KW",weekTextLong:"Woche",allDayText:"Ganztägig",moreLinkText(e){return"+ weitere "+e},noEventsText:"Keine Ereignisse anzuzeigen",buttonHints:{prev(e){return`Vorherige${_8(e)} ${e}`},next(e){return`Nächste${_8(e)} ${e}`},today(e){return e==="Tag"?"Heute":`Diese${_8(e)} ${e}`}},viewHint(e){return e+(e==="Woche"?"n":e==="Monat"?"s":"es")+"ansicht"},navLinkHint:"Gehe zu $0",moreLinkHint(e){return"Zeige "+(e===1?"ein weiteres Ereignis":e+" weitere Ereignisse")},closeHint:"Schließen",timeHint:"Uhrzeit",eventHint:"Ereignis"},M7e={code:"el",week:{dow:1,doy:4},buttonText:{prev:"Προηγούμενος",next:"Επόμενος",today:"Σήμερα",year:"Ετος",month:"Μήνας",week:"Εβδομάδα",day:"Ημέρα",list:"Ατζέντα"},weekText:"Εβδ",allDayText:"Ολοήμερο",moreLinkText:"περισσότερα",noEventsText:"Δεν υπάρχουν γεγονότα προς εμφάνιση"},N7e={code:"en-au",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(e){return`Show ${e} more event${e===1?"":"s"}`}},L7e={code:"en-gb",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(e){return`Show ${e} more event${e===1?"":"s"}`}},F7e={code:"en-nz",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(e){return`Show ${e} more event${e===1?"":"s"}`}},j7e={code:"eo",week:{dow:1,doy:4},buttonText:{prev:"Antaŭa",next:"Sekva",today:"Hodiaŭ",year:"Jaro",month:"Monato",week:"Semajno",day:"Tago",list:"Tagordo"},weekText:"Sm",allDayText:"Tuta tago",moreLinkText:"pli",noEventsText:"Neniuj eventoj por montri"},z7e={code:"es",week:{dow:0,doy:6},buttonText:{prev:"Ant",next:"Sig",today:"Hoy",year:"Año",month:"Mes",week:"Semana",day:"Día",list:"Agenda"},weekText:"Sm",allDayText:"Todo el día",moreLinkText:"más",noEventsText:"No hay eventos para mostrar"},B7e={code:"es",week:{dow:1,doy:4},buttonText:{prev:"Ant",next:"Sig",today:"Hoy",year:"Año",month:"Mes",week:"Semana",day:"Día",list:"Agenda"},buttonHints:{prev:"$0 antes",next:"$0 siguiente",today(e){return e==="Día"?"Hoy":(e==="Semana"?"Esta":"Este")+" "+e.toLocaleLowerCase()}},viewHint(e){return"Vista "+(e==="Semana"?"de la":"del")+" "+e.toLocaleLowerCase()},weekText:"Sm",weekTextLong:"Semana",allDayText:"Todo el día",moreLinkText:"más",moreLinkHint(e){return`Mostrar ${e} eventos más`},noEventsText:"No hay eventos para mostrar",navLinkHint:"Ir al $0",closeHint:"Cerrar",timeHint:"La hora",eventHint:"Evento"},H7e={code:"et",week:{dow:1,doy:4},buttonText:{prev:"Eelnev",next:"Järgnev",today:"Täna",year:"Aasta",month:"Kuu",week:"Nädal",day:"Päev",list:"Päevakord"},weekText:"näd",allDayText:"Kogu päev",moreLinkText(e){return"+ veel "+e},noEventsText:"Kuvamiseks puuduvad sündmused"},U7e={code:"eu",week:{dow:1,doy:7},buttonText:{prev:"Aur",next:"Hur",today:"Gaur",year:"Urtea",month:"Hilabetea",week:"Astea",day:"Eguna",list:"Agenda"},weekText:"As",allDayText:"Egun osoa",moreLinkText:"gehiago",noEventsText:"Ez dago ekitaldirik erakusteko"},W7e={code:"fa",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"قبلی",next:"بعدی",today:"امروز",year:"سال",month:"ماه",week:"هفته",day:"روز",list:"برنامه"},weekText:"هف",allDayText:"تمام روز",moreLinkText(e){return"بیش از "+e},noEventsText:"هیچ رویدادی به نمایش"},V7e={code:"fi",week:{dow:1,doy:4},buttonText:{prev:"Edellinen",next:"Seuraava",today:"Tänään",year:"Vuosi",month:"Kuukausi",week:"Viikko",day:"Päivä",list:"Tapahtumat"},weekText:"Vk",allDayText:"Koko päivä",moreLinkText:"lisää",noEventsText:"Ei näytettäviä tapahtumia"},G7e={code:"fr",buttonText:{prev:"Précédent",next:"Suivant",today:"Aujourd'hui",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Mon planning"},weekText:"Sem.",allDayText:"Toute la journée",moreLinkText:"en plus",noEventsText:"Aucun évènement à afficher"},q7e={code:"fr-ch",week:{dow:1,doy:4},buttonText:{prev:"Précédent",next:"Suivant",today:"Courant",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Mon planning"},weekText:"Sm",allDayText:"Toute la journée",moreLinkText:"en plus",noEventsText:"Aucun évènement à afficher"},Y7e={code:"fr",week:{dow:1,doy:4},buttonText:{prev:"Précédent",next:"Suivant",today:"Aujourd'hui",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Planning"},weekText:"Sem.",weekTextLong:"Semaine",allDayText:"Toute la journée",moreLinkText:"en plus",noEventsText:"Aucun évènement à afficher"},K7e={code:"gl",week:{dow:1,doy:4},buttonText:{prev:"Ant",next:"Seg",today:"Hoxe",year:"Ano",month:"Mes",week:"Semana",day:"Día",list:"Axenda"},buttonHints:{prev:"$0 antes",next:"$0 seguinte",today(e){return e==="Día"?"Hoxe":(e==="Semana"?"Esta":"Este")+" "+e.toLocaleLowerCase()}},viewHint(e){return"Vista "+(e==="Semana"?"da":"do")+" "+e.toLocaleLowerCase()},weekText:"Sm",weekTextLong:"Semana",allDayText:"Todo o día",moreLinkText:"máis",moreLinkHint(e){return`Amosar ${e} eventos máis`},noEventsText:"Non hai eventos para amosar",navLinkHint:"Ir ao $0",closeHint:"Pechar",timeHint:"A hora",eventHint:"Evento"},Z7e={code:"he",direction:"rtl",buttonText:{prev:"הקודם",next:"הבא",today:"היום",year:"שנה",month:"חודש",week:"שבוע",day:"יום",list:"סדר יום"},allDayText:"כל היום",moreLinkText:"אחר",noEventsText:"אין אירועים להצגה",weekText:"שבוע"},Q7e={code:"hi",week:{dow:0,doy:6},buttonText:{prev:"पिछला",next:"अगला",today:"आज",year:"वर्ष",month:"महीना",week:"सप्ताह",day:"दिन",list:"कार्यसूची"},weekText:"हफ्ता",allDayText:"सभी दिन",moreLinkText(e){return"+अधिक "+e},noEventsText:"कोई घटनाओं को प्रदर्शित करने के लिए"},X7e={code:"hr",week:{dow:1,doy:7},buttonText:{prev:"Prijašnji",next:"Sljedeći",today:"Danas",year:"Godina",month:"Mjesec",week:"Tjedan",day:"Dan",list:"Raspored"},weekText:"Tje",allDayText:"Cijeli dan",moreLinkText(e){return"+ još "+e},noEventsText:"Nema događaja za prikaz"},J7e={code:"hu",week:{dow:1,doy:4},buttonText:{prev:"vissza",next:"előre",today:"ma",year:"Év",month:"Hónap",week:"Hét",day:"Nap",list:"Lista"},weekText:"Hét",allDayText:"Egész nap",moreLinkText:"további",noEventsText:"Nincs megjeleníthető esemény"},eEe={code:"hy-am",week:{dow:1,doy:4},buttonText:{prev:"Նախորդ",next:"Հաջորդ",today:"Այսօր",year:"Տարի",month:"Ամիս",week:"Շաբաթ",day:"Օր",list:"Օրվա ցուցակ"},weekText:"Շաբ",allDayText:"Ամբողջ օր",moreLinkText(e){return"+ ևս "+e},noEventsText:"Բացակայում է իրադարձությունը ցուցադրելու"},tEe={code:"id",week:{dow:1,doy:7},buttonText:{prev:"mundur",next:"maju",today:"hari ini",year:"Tahun",month:"Bulan",week:"Minggu",day:"Hari",list:"Agenda"},weekText:"Mg",allDayText:"Sehari penuh",moreLinkText:"lebih",noEventsText:"Tidak ada acara untuk ditampilkan"},nEe={code:"is",week:{dow:1,doy:4},buttonText:{prev:"Fyrri",next:"Næsti",today:"Í dag",year:"Ár",month:"Mánuður",week:"Vika",day:"Dagur",list:"Dagskrá"},weekText:"Vika",allDayText:"Allan daginn",moreLinkText:"meira",noEventsText:"Engir viðburðir til að sýna"},rEe={code:"it",week:{dow:1,doy:4},buttonText:{prev:"Prec",next:"Succ",today:"Oggi",year:"Anno",month:"Mese",week:"Settimana",day:"Giorno",list:"Agenda"},weekText:"Sm",allDayText:"Tutto il giorno",moreLinkText(e){return"+altri "+e},noEventsText:"Non ci sono eventi da visualizzare"},iEe={code:"ja",buttonText:{prev:"前",next:"次",today:"今日",year:"年",month:"月",week:"週",day:"日",list:"予定リスト"},weekText:"週",allDayText:"終日",moreLinkText(e){return"他 "+e+" 件"},noEventsText:"表示する予定はありません"},oEe={code:"ka",week:{dow:1,doy:7},buttonText:{prev:"წინა",next:"შემდეგი",today:"დღეს",year:"წელიწადი",month:"თვე",week:"კვირა",day:"დღე",list:"დღის წესრიგი"},weekText:"კვ",allDayText:"მთელი დღე",moreLinkText(e){return"+ კიდევ "+e},noEventsText:"ღონისძიებები არ არის"},aEe={code:"kk",week:{dow:1,doy:7},buttonText:{prev:"Алдыңғы",next:"Келесі",today:"Бүгін",year:"Жыл",month:"Ай",week:"Апта",day:"Күн",list:"Күн тәртібі"},weekText:"Не",allDayText:"Күні бойы",moreLinkText(e){return"+ тағы "+e},noEventsText:"Көрсету үшін оқиғалар жоқ"},sEe={code:"km",week:{dow:1,doy:4},buttonText:{prev:"មុន",next:"បន្ទាប់",today:"ថ្ងៃនេះ",year:"ឆ្នាំ",month:"ខែ",week:"សប្តាហ៍",day:"ថ្ងៃ",list:"បញ្ជី"},weekText:"សប្តាហ៍",allDayText:"ពេញមួយថ្ងៃ",moreLinkText:"ច្រើនទៀត",noEventsText:"គ្មានព្រឹត្តិការណ៍ត្រូវបង្ហាញ"},lEe={code:"ko",buttonText:{prev:"이전달",next:"다음달",today:"오늘",year:"년도",month:"월",week:"주",day:"일",list:"일정목록"},weekText:"주",allDayText:"종일",moreLinkText:"개",noEventsText:"일정이 없습니다"},uEe={code:"ku",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"پێشتر",next:"دواتر",today:"ئەمڕو",year:"ساڵ",month:"مانگ",week:"هەفتە",day:"ڕۆژ",list:"بەرنامە"},weekText:"هەفتە",allDayText:"هەموو ڕۆژەکە",moreLinkText:"زیاتر",noEventsText:"هیچ ڕووداوێك نیە"},cEe={code:"lb",week:{dow:1,doy:4},buttonText:{prev:"Zréck",next:"Weider",today:"Haut",year:"Joer",month:"Mount",week:"Woch",day:"Dag",list:"Terminiwwersiicht"},weekText:"W",allDayText:"Ganzen Dag",moreLinkText:"méi",noEventsText:"Nee Evenementer ze affichéieren"},dEe={code:"lt",week:{dow:1,doy:4},buttonText:{prev:"Atgal",next:"Pirmyn",today:"Šiandien",year:"Metai",month:"Mėnuo",week:"Savaitė",day:"Diena",list:"Darbotvarkė"},weekText:"SAV",allDayText:"Visą dieną",moreLinkText:"daugiau",noEventsText:"Nėra įvykių rodyti"},fEe={code:"lv",week:{dow:1,doy:4},buttonText:{prev:"Iepr.",next:"Nāk.",today:"Šodien",year:"Gads",month:"Mēnesis",week:"Nedēļa",day:"Diena",list:"Dienas kārtība"},weekText:"Ned.",allDayText:"Visu dienu",moreLinkText(e){return"+vēl "+e},noEventsText:"Nav notikumu"},pEe={code:"mk",buttonText:{prev:"претходно",next:"следно",today:"Денес",year:"година",month:"Месец",week:"Недела",day:"Ден",list:"График"},weekText:"Сед",allDayText:"Цел ден",moreLinkText(e){return"+повеќе "+e},noEventsText:"Нема настани за прикажување"},hEe={code:"ms",week:{dow:1,doy:7},buttonText:{prev:"Sebelum",next:"Selepas",today:"hari ini",year:"Tahun",month:"Bulan",week:"Minggu",day:"Hari",list:"Agenda"},weekText:"Mg",allDayText:"Sepanjang hari",moreLinkText(e){return"masih ada "+e+" acara"},noEventsText:"Tiada peristiwa untuk dipaparkan"},gEe={code:"nb",week:{dow:1,doy:4},buttonText:{prev:"Forrige",next:"Neste",today:"I dag",year:"År",month:"Måned",week:"Uke",day:"Dag",list:"Agenda"},weekText:"Uke",weekTextLong:"Uke",allDayText:"Hele dagen",moreLinkText:"til",noEventsText:"Ingen hendelser å vise",buttonHints:{prev:"Forrige $0",next:"Neste $0",today:"Nåværende $0"},viewHint:"$0 visning",navLinkHint:"Gå til $0",moreLinkHint(e){return`Vis ${e} flere hendelse${e===1?"":"r"}`}},mEe={code:"ne",week:{dow:7,doy:1},buttonText:{prev:"अघिल्लो",next:"अर्को",today:"आज",year:"वर्ष",month:"महिना",week:"हप्ता",day:"दिन",list:"सूची"},weekText:"हप्ता",allDayText:"दिनभरि",moreLinkText:"थप लिंक",noEventsText:"देखाउनको लागि कुनै घटनाहरू छैनन्"},vEe={code:"nl",week:{dow:1,doy:4},buttonText:{prev:"Vorige",next:"Volgende",today:"Vandaag",year:"Jaar",month:"Maand",week:"Week",day:"Dag",list:"Agenda"},allDayText:"Hele dag",moreLinkText:"extra",noEventsText:"Geen evenementen om te laten zien"},yEe={code:"nn",week:{dow:1,doy:4},buttonText:{prev:"Førre",next:"Neste",today:"I dag",year:"År",month:"Månad",week:"Veke",day:"Dag",list:"Agenda"},weekText:"Veke",allDayText:"Heile dagen",moreLinkText:"til",noEventsText:"Ingen hendelser å vise"},bEe={code:"pl",week:{dow:1,doy:4},buttonText:{prev:"Poprzedni",next:"Następny",today:"Dziś",year:"Rok",month:"Miesiąc",week:"Tydzień",day:"Dzień",list:"Plan dnia"},weekText:"Tydz",allDayText:"Cały dzień",moreLinkText:"więcej",noEventsText:"Brak wydarzeń do wyświetlenia"},xEe={code:"pt-br",buttonText:{prev:"Anterior",next:"Próximo",prevYear:"Ano anterior",nextYear:"Próximo ano",year:"Ano",today:"Hoje",month:"Mês",week:"Semana",day:"Dia",list:"Lista"},buttonHints:{prev:"$0 Anterior",next:"Próximo $0",today(e){return e==="Dia"?"Hoje":(e==="Semana"?"Esta":"Este")+" "+e.toLocaleLowerCase()}},viewHint(e){return"Visualizar "+(e==="Semana"?"a":"o")+" "+e.toLocaleLowerCase()},weekText:"Sm",weekTextLong:"Semana",allDayText:"dia inteiro",moreLinkText(e){return"mais +"+e},moreLinkHint(e){return`Mostrar mais ${e} eventos`},noEventsText:"Não há eventos para mostrar",navLinkHint:"Ir para $0",closeHint:"Fechar",timeHint:"A hora",eventHint:"Evento"},wEe={code:"pt",week:{dow:1,doy:4},buttonText:{prev:"Anterior",next:"Seguinte",today:"Hoje",year:"Ano",month:"Mês",week:"Semana",day:"Dia",list:"Agenda"},weekText:"Sem",allDayText:"Todo o dia",moreLinkText:"mais",noEventsText:"Não há eventos para mostrar"},SEe={code:"ro",week:{dow:1,doy:7},buttonText:{prev:"precedentă",next:"următoare",today:"Azi",year:"An",month:"Lună",week:"Săptămână",day:"Zi",list:"Agendă"},weekText:"Săpt",allDayText:"Toată ziua",moreLinkText(e){return"+alte "+e},noEventsText:"Nu există evenimente de afișat"},$Ee={code:"ru",week:{dow:1,doy:4},buttonText:{prev:"Пред",next:"След",today:"Сегодня",year:"Год",month:"Месяц",week:"Неделя",day:"День",list:"Повестка дня"},weekText:"Нед",allDayText:"Весь день",moreLinkText(e){return"+ ещё "+e},noEventsText:"Нет событий для отображения"},CEe={code:"si-lk",week:{dow:1,doy:4},buttonText:{prev:"පෙර",next:"පසු",today:"අද",year:"අවුරුදු",month:"මාසය",week:"සතිය",day:"දවස",list:"ලැයිස්තුව"},weekText:"සති",allDayText:"සියලු",moreLinkText:"තවත්",noEventsText:"මුකුත් නැත"},EEe={code:"sk",week:{dow:1,doy:4},buttonText:{prev:"Predchádzajúci",next:"Nasledujúci",today:"Dnes",year:"Rok",month:"Mesiac",week:"Týždeň",day:"Deň",list:"Rozvrh"},weekText:"Ty",allDayText:"Celý deň",moreLinkText(e){return"+ďalšie: "+e},noEventsText:"Žiadne akcie na zobrazenie"},kEe={code:"sl",week:{dow:1,doy:7},buttonText:{prev:"Prejšnji",next:"Naslednji",today:"Trenutni",year:"Leto",month:"Mesec",week:"Teden",day:"Dan",list:"Dnevni red"},weekText:"Teden",allDayText:"Ves dan",moreLinkText:"več",noEventsText:"Ni dogodkov za prikaz"},TEe={code:"sm",buttonText:{prev:"Talu ai",next:"Mulimuli atu",today:"Aso nei",year:"Tausaga",month:"Masina",week:"Vaiaso",day:"Aso",list:"Faasologa"},weekText:"Vaiaso",allDayText:"Aso atoa",moreLinkText:"sili atu",noEventsText:"Leai ni mea na tutupu"},AEe={code:"sq",week:{dow:1,doy:4},buttonText:{prev:"mbrapa",next:"Përpara",today:"Sot",year:"Viti",month:"Muaj",week:"Javë",day:"Ditë",list:"Listë"},weekText:"Ja",allDayText:"Gjithë ditën",moreLinkText(e){return"+më tepër "+e},noEventsText:"Nuk ka evente për të shfaqur"},REe={code:"sr-cyrl",week:{dow:1,doy:7},buttonText:{prev:"Претходна",next:"следећи",today:"Данас",year:"Година",month:"Месец",week:"Недеља",day:"Дан",list:"Планер"},weekText:"Сед",allDayText:"Цео дан",moreLinkText(e){return"+ још "+e},noEventsText:"Нема догађаја за приказ"},OEe={code:"sr",week:{dow:1,doy:7},buttonText:{prev:"Prethodna",next:"Sledeći",today:"Danas",year:"Godina",month:"Mеsеc",week:"Nеdеlja",day:"Dan",list:"Planеr"},weekText:"Sed",allDayText:"Cеo dan",moreLinkText(e){return"+ još "+e},noEventsText:"Nеma događaja za prikaz"},_Ee={code:"sv",week:{dow:1,doy:4},buttonText:{prev:"Förra",next:"Nästa",today:"Idag",year:"År",month:"Månad",week:"Vecka",day:"Dag",list:"Program"},buttonHints:{prev(e){return`Föregående ${e.toLocaleLowerCase()}`},next(e){return`Nästa ${e.toLocaleLowerCase()}`},today(e){return(e==="Program"?"Detta":"Denna")+" "+e.toLocaleLowerCase()}},viewHint:"$0 vy",navLinkHint:"Gå till $0",moreLinkHint(e){return`Visa ytterligare ${e} händelse${e===1?"":"r"}`},weekText:"v.",weekTextLong:"Vecka",allDayText:"Heldag",moreLinkText:"till",noEventsText:"Inga händelser att visa",closeHint:"Stäng",timeHint:"Klockan",eventHint:"Händelse"},IEe={code:"ta-in",week:{dow:1,doy:4},buttonText:{prev:"முந்தைய",next:"அடுத்தது",today:"இன்று",year:"ஆண்டு",month:"மாதம்",week:"வாரம்",day:"நாள்",list:"தினசரி அட்டவணை"},weekText:"வாரம்",allDayText:"நாள் முழுவதும்",moreLinkText(e){return"+ மேலும் "+e},noEventsText:"காண்பிக்க நிகழ்வுகள் இல்லை"},DEe={code:"th",week:{dow:1,doy:4},buttonText:{prev:"ก่อนหน้า",next:"ถัดไป",prevYear:"ปีก่อนหน้า",nextYear:"ปีถัดไป",year:"ปี",today:"วันนี้",month:"เดือน",week:"สัปดาห์",day:"วัน",list:"กำหนดการ"},weekText:"สัปดาห์",allDayText:"ตลอดวัน",moreLinkText:"เพิ่มเติม",noEventsText:"ไม่มีกิจกรรมที่จะแสดง"},PEe={code:"tr",week:{dow:1,doy:7},buttonText:{prev:"geri",next:"ileri",today:"bugün",year:"Yıl",month:"Ay",week:"Hafta",day:"Gün",list:"Ajanda"},weekText:"Hf",allDayText:"Tüm gün",moreLinkText:"daha fazla",noEventsText:"Gösterilecek etkinlik yok"},MEe={code:"ug",buttonText:{prev:"ئالدىنقى",next:"كېيىنكى",today:"بۈگۈن",year:"يىل",month:"ئاي",week:"ھەپتە",day:"كۈن",list:"كۈنتەرتىپ"},allDayText:"پۈتۈن كۈن"},NEe={code:"uk",week:{dow:1,doy:7},buttonText:{prev:"Попередній",next:"далі",today:"Сьогодні",year:"рік",month:"Місяць",week:"Тиждень",day:"День",list:"Порядок денний"},weekText:"Тиж",allDayText:"Увесь день",moreLinkText(e){return"+ще "+e+"..."},noEventsText:"Немає подій для відображення"},LEe={code:"uz-cy",week:{dow:1,doy:4},buttonText:{prev:"Олин",next:"Кейин",today:"Бугун",month:"Ой",week:"Ҳафта",day:"Кун",list:"Кун тартиби"},weekText:"Ҳафта",allDayText:"Кун бўйича",moreLinkText(e){return"+ яна "+e},noEventsText:"Кўрсатиш учун воқеалар йўқ"},FEe={code:"uz",week:{dow:1,doy:4},buttonText:{prev:"Oldingi",next:"Keyingi",today:"Bugun",year:"Yil",month:"Oy",week:"Xafta",day:"Kun",list:"Kun tartibi"},allDayText:"Kun bo'yi",moreLinkText(e){return"+ yana "+e},noEventsText:"Ko'rsatish uchun voqealar yo'q"},jEe={code:"vi",week:{dow:1,doy:4},buttonText:{prev:"Trước",next:"Tiếp",today:"Hôm nay",year:"Năm",month:"Tháng",week:"Tuần",day:"Ngày",list:"Lịch biểu"},weekText:"Tu",allDayText:"Cả ngày",moreLinkText(e){return"+ thêm "+e},noEventsText:"Không có sự kiện để hiển thị"},zEe={code:"zh-cn",week:{dow:1,doy:4},buttonText:{prev:"上月",next:"下月",today:"今天",year:"年",month:"月",week:"周",day:"日",list:"日程"},weekText:"周",allDayText:"全天",moreLinkText(e){return"另外 "+e+" 个"},noEventsText:"没有事件显示"},BEe={code:"zh-tw",buttonText:{prev:"上月",next:"下月",today:"今天",year:"年",month:"月",week:"週",day:"天",list:"活動列表"},weekText:"周",allDayText:"整天",moreLinkText:"顯示更多",noEventsText:"没有任何活動"},HEe=[v7e,y7e,b7e,x7e,w7e,S7e,$7e,C7e,E7e,k7e,T7e,A7e,R7e,O7e,_7e,I7e,D7e,P7e,M7e,N7e,L7e,F7e,j7e,z7e,B7e,H7e,U7e,W7e,V7e,G7e,q7e,Y7e,K7e,Z7e,Q7e,X7e,J7e,eEe,tEe,nEe,rEe,iEe,oEe,aEe,sEe,lEe,uEe,cEe,dEe,fEe,pEe,hEe,gEe,mEe,vEe,yEe,bEe,xEe,wEe,SEe,$Ee,CEe,EEe,kEe,TEe,AEe,REe,OEe,_Ee,IEe,DEe,PEe,MEe,NEe,LEe,FEe,jEe,zEe,BEe];function ly(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ym(e,t)}function Th(e,t){if(t&&(dr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xa(e)}function Zo(e){return Zo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Zo(e)}function UEe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function WEe(e){return CA(e)||UEe(e)||kA(e)||TA()}function FF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FF(Object(n),!0).forEach(function(r){oi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FF(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var VEe={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,n){console&&console[t]&&console[t].apply(console,n)}},GEe=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ii(this,e),this.init(t,n)}return Di(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||VEe,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(n,r,i,o){return o&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(i).concat(this.prefix," ").concat(n[0])),this.logger[r](n))}},{key:"create",value:function(n){return new e(this.logger,jF(jF({},{prefix:"".concat(this.prefix,":").concat(n,":")}),this.options))}},{key:"clone",value:function(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new e(this.logger,n)}}]),e}(),Qo=new GEe,al=function(){function e(){Ii(this,e),this.observers={}}return Di(e,[{key:"on",value:function(n,r){var i=this;return n.split(" ").forEach(function(o){i.observers[o]=i.observers[o]||[],i.observers[o].push(r)}),this}},{key:"off",value:function(n,r){if(this.observers[n]){if(!r){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(function(i){return i!==r})}}},{key:"emit",value:function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];if(this.observers[n]){var a=[].concat(this.observers[n]);a.forEach(function(l){l.apply(void 0,i)})}if(this.observers["*"]){var s=[].concat(this.observers["*"]);s.forEach(function(l){l.apply(l,[n].concat(i))})}}}]),e}();function Ah(){var e,t,n=new Promise(function(r,i){e=r,t=i});return n.resolve=e,n.reject=t,n}function zF(e){return e==null?"":""+e}function qEe(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function I8(e,t,n){function r(s){return s&&s.indexOf("###")>-1?s.replace(/###/g,"."):s}function i(){return!e||typeof e=="string"}for(var o=typeof t!="string"?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={}}return i()?{}:{obj:e,k:r(o.shift())}}function BF(e,t,n){var r=I8(e,t,Object),i=r.obj,o=r.k;i[o]=n}function YEe(e,t,n,r){var i=I8(e,t,Object),o=i.obj,a=i.k;o[a]=o[a]||[],r&&(o[a]=o[a].concat(n)),r||o[a].push(n)}function uy(e,t){var n=I8(e,t),r=n.obj,i=n.k;if(r)return r[i]}function HF(e,t,n){var r=uy(e,n);return r!==void 0?r:uy(t,n)}function UF(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):UF(e[r],t[r],n):e[r]=t[r]);return e}function Dd(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var KEe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function ZEe(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return KEe[t]}):e}var cy=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,QEe=[" ",",","?","!",";"];function XEe(e,t,n){t=t||"",n=n||"";var r=QEe.filter(function(s){return t.indexOf(s)<0&&n.indexOf(s)<0});if(r.length===0)return!0;var i=new RegExp("(".concat(r.map(function(s){return s==="?"?"\\?":s}).join("|"),")")),o=!i.test(e);if(!o){var a=e.indexOf(n);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}function WF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function dy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WF(Object(n),!0).forEach(function(r){oi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WF(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function JEe(e){var t=eke();return function(){var r=Zo(e),i;if(t){var o=Zo(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Th(this,i)}}function eke(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function VF(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,o=0;o<r.length;++o){if(!i||typeof i[r[o]]=="string"&&o+1<r.length)return;if(i[r[o]]===void 0){for(var a=2,s=r.slice(o,o+a).join(n),l=i[s];l===void 0&&r.length>o+a;)a++,s=r.slice(o,o+a).join(n),l=i[s];if(l===void 0)return;if(l===null)return null;if(t.endsWith(s)){if(typeof l=="string")return l;if(s&&typeof l[s]=="string")return l[s]}var c=r.slice(o+a).join(n);return c?VF(l,c,n):void 0}i=i[r[o]]}return i}}var tke=function(e){ly(n,e);var t=JEe(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Ii(this,n),i=t.call(this),cy&&al.call(xa(i)),i.data=r||{},i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return Di(n,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}},{key:"getResource",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,c=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure,d=[i,o];a&&typeof a!="string"&&(d=d.concat(a)),a&&typeof a=="string"&&(d=d.concat(l?a.split(l):a)),i.indexOf(".")>-1&&(d=i.split("."));var f=uy(this.data,d);return f||!c||typeof a!="string"?f:VF(this.data&&this.data[i]&&this.data[i][o],a,l)}},{key:"addResource",value:function(i,o,a,s){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},c=this.options.keySeparator;c===void 0&&(c=".");var d=[i,o];a&&(d=d.concat(c?a.split(c):a)),i.indexOf(".")>-1&&(d=i.split("."),s=o,o=d[1]),this.addNamespaces(o),BF(this.data,d,s),l.silent||this.emit("added",i,o,a,s)}},{key:"addResources",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var l in a)(typeof a[l]=="string"||Object.prototype.toString.apply(a[l])==="[object Array]")&&this.addResource(i,o,l,a[l],{silent:!0});s.silent||this.emit("added",i,o,a)}},{key:"addResourceBundle",value:function(i,o,a,s,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},d=[i,o];i.indexOf(".")>-1&&(d=i.split("."),s=a,a=o,o=d[1]),this.addNamespaces(o);var f=uy(this.data,d)||{};s?UF(f,a,l):f=dy(dy({},f),a),BF(this.data,d,f),c.silent||this.emit("added",i,o,a)}},{key:"removeResourceBundle",value:function(i,o){this.hasResourceBundle(i,o)&&delete this.data[i][o],this.removeNamespaces(o),this.emit("removed",i,o)}},{key:"hasResourceBundle",value:function(i,o){return this.getResource(i,o)!==void 0}},{key:"getResourceBundle",value:function(i,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?dy(dy({},{}),this.getResource(i,o)):this.getResource(i,o)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var o=this.getDataByLanguage(i),a=o&&Object.keys(o)||[];return!!a.find(function(s){return o[s]&&Object.keys(o[s]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(al),GF={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,n,r,i,o){var a=this;return t.forEach(function(s){a.processors[s]&&(n=a.processors[s].process(n,r,i,o))}),n}};function qF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Or(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qF(Object(n),!0).forEach(function(r){oi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qF(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nke(e){var t=rke();return function(){var r=Zo(e),i;if(t){var o=Zo(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Th(this,i)}}function rke(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var YF={},KF=function(e){ly(n,e);var t=nke(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Ii(this,n),i=t.call(this),cy&&al.call(xa(i)),qEe(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,xa(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=Qo.create("translator"),i}return Di(n,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var a=this.resolve(i,o);return a&&a.res!==void 0}},{key:"extractFromKey",value:function(i,o){var a=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");var s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,l=o.ns||this.options.defaultNS||[],c=a&&i.indexOf(a)>-1,d=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!XEe(i,a,s);if(c&&!d){var f=i.match(this.interpolator.nestingRegexp);if(f&&f.length>0)return{key:i,namespaces:l};var g=i.split(a);(a!==s||a===s&&this.options.ns.indexOf(g[0])>-1)&&(l=g.shift()),i=g.join(s)}return typeof l=="string"&&(l=[l]),{key:i,namespaces:l}}},{key:"translate",value:function(i,o,a){var s=this;if(dr(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var l=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,c=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,d=this.extractFromKey(i[i.length-1],o),f=d.key,g=d.namespaces,p=g[g.length-1],m=o.lng||this.language,v=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(m&&m.toLowerCase()==="cimode"){if(v){var w=o.nsSeparator||this.options.nsSeparator;return l?(x.res="".concat(p).concat(w).concat(f),x):"".concat(p).concat(w).concat(f)}return l?(x.res=f,x):f}var x=this.resolve(i,o),b=x&&x.res,S=x&&x.usedKey||f,$=x&&x.exactUsedKey||f,E=Object.prototype.toString.apply(b),T=["[object Number]","[object Function]","[object RegExp]"],A=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,R=!this.i18nFormat||this.i18nFormat.handleAsObject,I=typeof b!="string"&&typeof b!="boolean"&&typeof b!="number";if(R&&b&&I&&T.indexOf(E)<0&&!(typeof A=="string"&&E==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var _=this.options.returnedObjectHandler?this.options.returnedObjectHandler(S,b,Or(Or({},o),{},{ns:g})):"key '".concat(f," (").concat(this.language,")' returned an object instead of string.");return l?(x.res=_,x):_}if(c){var L=E==="[object Array]",B=L?[]:{},U=L?$:S;for(var V in b)if(Object.prototype.hasOwnProperty.call(b,V)){var P="".concat(U).concat(c).concat(V);B[V]=this.translate(P,Or(Or({},o),{joinArrays:!1,ns:g})),B[V]===P&&(B[V]=b[V])}b=B}}else if(R&&typeof A=="string"&&E==="[object Array]")b=b.join(A),b&&(b=this.extendTranslation(b,i,o,a));else{var z=!1,q=!1,H=o.count!==void 0&&typeof o.count!="string",Z=n.hasDefaultValue(o),K=H?this.pluralResolver.getSuffix(m,o.count,o):"",J=o["defaultValue".concat(K)]||o.defaultValue;!this.isValidLookup(b)&&Z&&(z=!0,b=J),this.isValidLookup(b)||(q=!0,b=f);var ge=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,ve=ge&&q?void 0:b,he=Z&&J!==b&&this.options.updateMissing;if(q||z||he){if(this.logger.log(he?"updateKey":"missingKey",m,p,f,he?J:b),c){var xe=this.resolve(f,Or(Or({},o),{},{keySeparator:!1}));xe&&xe.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var ae=[],$e=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&$e&&$e[0])for(var Ae=0;Ae<$e.length;Ae++)ae.push($e[Ae]);else this.options.saveMissingTo==="all"?ae=this.languageUtils.toResolveHierarchy(o.lng||this.language):ae.push(o.lng||this.language);var Fe=function(Ie,Ve,St){var ct=Z&&St!==b?St:ve;s.options.missingKeyHandler?s.options.missingKeyHandler(Ie,p,Ve,ct,he,o):s.backendConnector&&s.backendConnector.saveMissing&&s.backendConnector.saveMissing(Ie,p,Ve,ct,he,o),s.emit("missingKey",Ie,p,Ve,b)};this.options.saveMissing&&(this.options.saveMissingPlurals&&H?ae.forEach(function(Xe){s.pluralResolver.getSuffixes(Xe,o).forEach(function(Ie){Fe([Xe],f+Ie,o["defaultValue".concat(Ie)]||J)})}):Fe(ae,f,J))}b=this.extendTranslation(b,i,o,x,a),q&&b===f&&this.options.appendNamespaceToMissingKey&&(b="".concat(p,":").concat(f)),(q||z)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?b=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(p,":").concat(f):f,z?b:void 0):b=this.options.parseMissingKeyHandler(b))}return l?(x.res=b,x):b}},{key:"extendTranslation",value:function(i,o,a,s,l){var c=this;if(this.i18nFormat&&this.i18nFormat.parse)i=this.i18nFormat.parse(i,Or(Or({},this.options.interpolation.defaultVariables),a),s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init(Or(Or({},a),{interpolation:Or(Or({},this.options.interpolation),a.interpolation)}));var d=typeof i=="string"&&(a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),f;if(d){var g=i.match(this.interpolator.nestingRegexp);f=g&&g.length}var p=a.replace&&typeof a.replace!="string"?a.replace:a;if(this.options.interpolation.defaultVariables&&(p=Or(Or({},this.options.interpolation.defaultVariables),p)),i=this.interpolator.interpolate(i,p,a.lng||this.language,a),d){var m=i.match(this.interpolator.nestingRegexp),v=m&&m.length;f<v&&(a.nest=!1)}a.nest!==!1&&(i=this.interpolator.nest(i,function(){for(var b=arguments.length,S=new Array(b),$=0;$<b;$++)S[$]=arguments[$];return l&&l[0]===S[0]&&!a.context?(c.logger.warn("It seems you are nesting recursively key: ".concat(S[0]," in key: ").concat(o[0])),null):c.translate.apply(c,S.concat([o]))},a)),a.interpolation&&this.interpolator.reset()}var w=a.postProcess||this.options.postProcess,x=typeof w=="string"?[w]:w;return i!=null&&x&&x.length&&a.applyPostProcessor!==!1&&(i=GF.handle(x,i,o,this.options&&this.options.postProcessPassResolved?Or({i18nResolved:s},a):a,this)),i}},{key:"resolve",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,l,c,d,f;return typeof i=="string"&&(i=[i]),i.forEach(function(g){if(!o.isValidLookup(s)){var p=o.extractFromKey(g,a),m=p.key;l=m;var v=p.namespaces;o.options.fallbackNS&&(v=v.concat(o.options.fallbackNS));var w=a.count!==void 0&&typeof a.count!="string",x=w&&!a.ordinal&&a.count===0&&o.pluralResolver.shouldUseIntlApi(),b=a.context!==void 0&&(typeof a.context=="string"||typeof a.context=="number")&&a.context!=="",S=a.lngs?a.lngs:o.languageUtils.toResolveHierarchy(a.lng||o.language,a.fallbackLng);v.forEach(function($){o.isValidLookup(s)||(f=$,!YF["".concat(S[0],"-").concat($)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(f)&&(YF["".concat(S[0],"-").concat($)]=!0,o.logger.warn('key "'.concat(l,'" for languages "').concat(S.join(", "),`" won't get resolved as namespace "`).concat(f,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),S.forEach(function(E){if(!o.isValidLookup(s)){d=E;var T=[m];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(T,m,E,$,a);else{var A;w&&(A=o.pluralResolver.getSuffix(E,a.count,a));var R="".concat(o.options.pluralSeparator,"zero");if(w&&(T.push(m+A),x&&T.push(m+R)),b){var I="".concat(m).concat(o.options.contextSeparator).concat(a.context);T.push(I),w&&(T.push(I+A),x&&T.push(I+R))}}for(var _;_=T.pop();)o.isValidLookup(s)||(c=_,s=o.getResource(E,$,_,a))}}))})}}),{res:s,usedKey:l,exactUsedKey:c,usedLng:d,usedNS:f}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,a,s):this.resourceStore.getResource(i,o,a,s)}}],[{key:"hasDefaultValue",value:function(i){var o="defaultValue";for(var a in i)if(Object.prototype.hasOwnProperty.call(i,a)&&o===a.substring(0,o.length)&&i[a]!==void 0)return!0;return!1}}]),n}(al);function D8(e){return e.charAt(0).toUpperCase()+e.slice(1)}var ike=function(){function e(t){Ii(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Qo.create("languageUtils")}return Di(e,[{key:"getScriptPartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return null;var r=n.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}},{key:"getLanguagePartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return n;var r=n.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],i=n.split("-");return this.options.lowerCaseLng?i=i.map(function(o){return o.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=D8(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=D8(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=D8(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}},{key:"isSupportedCode",value:function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}},{key:"getBestMatchFromCodes",value:function(n){var r=this;if(!n)return null;var i;return n.forEach(function(o){if(!i){var a=r.formatLanguageCode(o);(!r.options.supportedLngs||r.isSupportedCode(a))&&(i=a)}}),!i&&this.options.supportedLngs&&n.forEach(function(o){if(!i){var a=r.getLanguagePartFromCode(o);if(r.isSupportedCode(a))return i=a;i=r.options.supportedLngs.find(function(s){if(s.indexOf(a)===0)return s})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(n,r){if(!n)return[];if(typeof n=="function"&&(n=n(r)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!r)return n.default||[];var i=n[r];return i||(i=n[this.getScriptPartFromCode(r)]),i||(i=n[this.formatLanguageCode(r)]),i||(i=n[this.getLanguagePartFromCode(r)]),i||(i=n.default),i||[]}},{key:"toResolveHierarchy",value:function(n,r){var i=this,o=this.getFallbackCodes(r||this.options.fallbackLng||[],n),a=[],s=function(c){c&&(i.isSupportedCode(c)?a.push(c):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(c)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(n))):typeof n=="string"&&s(this.formatLanguageCode(n)),o.forEach(function(l){a.indexOf(l)<0&&s(i.formatLanguageCode(l))}),a}}]),e}(),oke=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],ake={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}},ske=["v1","v2","v3"],ZF={zero:0,one:1,two:2,few:3,many:4,other:5};function lke(){var e={};return oke.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:ake[t.fc]}})}),e}var uke=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ii(this,e),this.languageUtils=t,this.options=n,this.logger=Qo.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=lke()}return Di(e,[{key:"addRule",value:function(n,r){this.rules[n]=r}},{key:"getRule",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(n,r);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,i).map(function(o){return"".concat(r).concat(o)})}},{key:"getSuffixes",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(a,s){return ZF[a]-ZF[s]}).map(function(a){return"".concat(r.options.prepend).concat(a)}):o.numbers.map(function(a){return r.getSuffix(n,a,i)}):[]}},{key:"getSuffix",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(r)):this.getSuffixRetroCompatible(o,r):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,r){var i=this,o=n.noAbs?n.plurals(r):n.plurals(Math.abs(r)),a=n.numbers[o];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var s=function(){return i.options.prepend&&a.toString()?i.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?s():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!ske.includes(this.options.compatibilityJSON)}}]),e}();function QF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function yo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QF(Object(n),!0).forEach(function(r){oi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QF(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var cke=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ii(this,e),this.logger=Qo.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return Di(e,[{key:"init",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var r=n.interpolation;this.escape=r.escape!==void 0?r.escape:ZEe,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?Dd(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?Dd(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?Dd(r.nestingPrefix):r.nestingPrefixEscaped||Dd("$t("),this.nestingSuffix=r.nestingSuffix?Dd(r.nestingSuffix):r.nestingSuffixEscaped||Dd(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(n,r,i,o){var a=this,s,l,c,d=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function f(w){return w.replace(/\$/g,"$$$$")}var g=function(x){if(x.indexOf(a.formatSeparator)<0){var b=HF(r,d,x);return a.alwaysFormat?a.format(b,void 0,i,yo(yo(yo({},o),r),{},{interpolationkey:x})):b}var S=x.split(a.formatSeparator),$=S.shift().trim(),E=S.join(a.formatSeparator).trim();return a.format(HF(r,d,$),E,i,yo(yo(yo({},o),r),{},{interpolationkey:$}))};this.resetRegExp();var p=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,m=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,v=[{regex:this.regexpUnescape,safeValue:function(x){return f(x)}},{regex:this.regexp,safeValue:function(x){return a.escapeValue?f(a.escape(x)):f(x)}}];return v.forEach(function(w){for(c=0;s=w.regex.exec(n);){var x=s[1].trim();if(l=g(x),l===void 0)if(typeof p=="function"){var b=p(n,s,o);l=typeof b=="string"?b:""}else if(o&&o.hasOwnProperty(x))l="";else if(m){l=s[0];continue}else a.logger.warn("missed to pass in variable ".concat(x," for interpolating ").concat(n)),l="";else typeof l!="string"&&!a.useRawValueToEscape&&(l=zF(l));var S=w.safeValue(l);if(n=n.replace(s[0],S),m?(w.regex.lastIndex+=l.length,w.regex.lastIndex-=s[0].length):w.regex.lastIndex=0,c++,c>=a.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,s,l=yo({},o);l.applyPostProcessor=!1,delete l.defaultValue;function c(p,m){var v=this.nestingOptionsSeparator;if(p.indexOf(v)<0)return p;var w=p.split(new RegExp("".concat(v,"[ ]*{"))),x="{".concat(w[1]);p=w[0],x=this.interpolate(x,l);var b=x.match(/'/g),S=x.match(/"/g);(b&&b.length%2===0&&!S||S.length%2!==0)&&(x=x.replace(/'/g,'"'));try{l=JSON.parse(x),m&&(l=yo(yo({},m),l))}catch($){return this.logger.warn("failed parsing options string in nesting for key ".concat(p),$),"".concat(p).concat(v).concat(x)}return delete l.defaultValue,p}for(;a=this.nestingRegexp.exec(n);){var d=[],f=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){var g=a[1].split(this.formatSeparator).map(function(p){return p.trim()});a[1]=g.shift(),d=g,f=!0}if(s=r(c.call(this,a[1].trim(),l),l),s&&a[0]===n&&typeof s!="string")return s;typeof s!="string"&&(s=zF(s)),s||(this.logger.warn("missed to resolve ".concat(a[1]," for nesting ").concat(n)),s=""),f&&(s=d.reduce(function(p,m){return i.format(p,m,o.lng,yo(yo({},o),{},{interpolationkey:a[1].trim()}))},s.trim())),n=n.replace(a[0],s),this.regexp.lastIndex=0}return n}}]),e}();function XF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function sl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XF(Object(n),!0).forEach(function(r){oi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XF(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dke(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);if(t==="currency"&&i.indexOf(":")<0)n.currency||(n.currency=i.trim());else if(t==="relativetime"&&i.indexOf(":")<0)n.range||(n.range=i.trim());else{var o=i.split(";");o.forEach(function(a){if(a){var s=a.split(":"),l=WEe(s),c=l[0],d=l.slice(1),f=d.join(":").trim().replace(/^'+|'+$/g,"");n[c.trim()]||(n[c.trim()]=f),f==="false"&&(n[c.trim()]=!1),f==="true"&&(n[c.trim()]=!0),isNaN(f)||(n[c.trim()]=parseInt(f,10))}})}}return{formatName:t,formatOptions:n}}function Pd(e){var t={};return function(r,i,o){var a=i+JSON.stringify(o),s=t[a];return s||(s=e(i,o),t[a]=s),s(r)}}var fke=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ii(this,e),this.logger=Qo.create("formatter"),this.options=t,this.formats={number:Pd(function(n,r){var i=new Intl.NumberFormat(n,r);return function(o){return i.format(o)}}),currency:Pd(function(n,r){var i=new Intl.NumberFormat(n,sl(sl({},r),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:Pd(function(n,r){var i=new Intl.DateTimeFormat(n,sl({},r));return function(o){return i.format(o)}}),relativetime:Pd(function(n,r){var i=new Intl.RelativeTimeFormat(n,sl({},r));return function(o){return i.format(o,r.range||"day")}}),list:Pd(function(n,r){var i=new Intl.ListFormat(n,sl({},r));return function(o){return i.format(o)}})},this.init(t)}return Di(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=r.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(n,r){this.formats[n.toLowerCase().trim()]=r}},{key:"addCached",value:function(n,r){this.formats[n.toLowerCase().trim()]=Pd(r)}},{key:"format",value:function(n,r,i,o){var a=this,s=r.split(this.formatSeparator),l=s.reduce(function(c,d){var f=dke(d),g=f.formatName,p=f.formatOptions;if(a.formats[g]){var m=c;try{var v=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},w=v.locale||v.lng||o.locale||o.lng||i;m=a.formats[g](c,w,sl(sl(sl({},p),o),v))}catch(x){a.logger.warn(x)}return m}else a.logger.warn("there was no format function for ".concat(g));return c},n);return l}}]),e}();function JF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ej(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JF(Object(n),!0).forEach(function(r){oi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JF(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pke(e){var t=hke();return function(){var r=Zo(e),i;if(t){var o=Zo(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Th(this,i)}}function hke(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function gke(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var mke=function(e){ly(n,e);var t=pke(n);function n(r,i,o){var a,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Ii(this,n),a=t.call(this),cy&&al.call(xa(a)),a.backend=r,a.store=i,a.services=o,a.languageUtils=o.languageUtils,a.options=s,a.logger=Qo.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=s.maxParallelReads||10,a.readingCalls=0,a.maxRetries=s.maxRetries>=0?s.maxRetries:5,a.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(o,s.backend,s),a}return Di(n,[{key:"queueLoad",value:function(i,o,a,s){var l=this,c={},d={},f={},g={};return i.forEach(function(p){var m=!0;o.forEach(function(v){var w="".concat(p,"|").concat(v);!a.reload&&l.store.hasResourceBundle(p,v)?l.state[w]=2:l.state[w]<0||(l.state[w]===1?d[w]===void 0&&(d[w]=!0):(l.state[w]=1,m=!1,d[w]===void 0&&(d[w]=!0),c[w]===void 0&&(c[w]=!0),g[v]===void 0&&(g[v]=!0)))}),m||(f[p]=!0)}),(Object.keys(c).length||Object.keys(d).length)&&this.queue.push({pending:d,pendingCount:Object.keys(d).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(c),pending:Object.keys(d),toLoadLanguages:Object.keys(f),toLoadNamespaces:Object.keys(g)}}},{key:"loaded",value:function(i,o,a){var s=i.split("|"),l=s[0],c=s[1];o&&this.emit("failedLoading",l,c,o),a&&this.store.addResourceBundle(l,c,a),this.state[i]=o?-1:2;var d={};this.queue.forEach(function(f){YEe(f.loaded,[l],c),gke(f,i),o&&f.errors.push(o),f.pendingCount===0&&!f.done&&(Object.keys(f.loaded).forEach(function(g){d[g]||(d[g]={});var p=f.loaded[g];p.length&&p.forEach(function(m){d[g][m]===void 0&&(d[g][m]=!0)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",d),this.queue=this.queue.filter(function(f){return!f.done})}},{key:"read",value:function(i,o,a){var s=this,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,d=arguments.length>5?arguments[5]:void 0;if(!i.length)return d(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:a,tried:l,wait:c,callback:d});return}return this.readingCalls++,this.backend[a](i,o,function(f,g){if(s.readingCalls--,s.waitingReads.length>0){var p=s.waitingReads.shift();s.read(p.lng,p.ns,p.fcName,p.tried,p.wait,p.callback)}if(f&&g&&l<s.maxRetries){setTimeout(function(){s.read.call(s,i,o,a,l+1,c*2,d)},c);return}d(f,g)})}},{key:"prepareLoading",value:function(i,o){var a=this,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),l&&l();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);var c=this.queueLoad(i,o,s,l);if(!c.toLoad.length)return c.pending.length||l(),null;c.toLoad.forEach(function(d){a.loadOne(d)})}},{key:"load",value:function(i,o,a){this.prepareLoading(i,o,{},a)}},{key:"reload",value:function(i,o,a){this.prepareLoading(i,o,{reload:!0},a)}},{key:"loadOne",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=i.split("|"),l=s[0],c=s[1];this.read(l,c,"read",void 0,void 0,function(d,f){d&&o.logger.warn("".concat(a,"loading namespace ").concat(c," for language ").concat(l," failed"),d),!d&&f&&o.logger.log("".concat(a,"loaded namespace ").concat(c," for language ").concat(l),f),o.loaded(i,d,f)})}},{key:"saveMissing",value:function(i,o,a,s,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn('did not save key "'.concat(a,'" as the namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}a==null||a===""||(this.backend&&this.backend.create&&this.backend.create(i,o,a,s,null,ej(ej({},c),{},{isUpdate:l})),!(!i||!i[0])&&this.store.addResource(i[0],o,a,s))}}]),n}(al);function vke(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var n={};if(dr(t[1])==="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),dr(t[2])==="object"||dr(t[3])==="object"){var r=t[3]||t[2];Object.keys(r).forEach(function(i){n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:function(t,n,r,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function tj(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function nj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Xo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nj(Object(n),!0).forEach(function(r){oi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yke(e){var t=bke();return function(){var r=Zo(e),i;if(t){var o=Zo(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Th(this,i)}}function bke(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function fy(){}function xke(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(n){typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}var py=function(e){ly(n,e);var t=yke(n);function n(){var r,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(Ii(this,n),r=t.call(this),cy&&al.call(xa(r)),r.options=tj(i),r.services={},r.logger=Qo,r.modules={external:[]},xke(xa(r)),o&&!r.isInitialized&&!i.isClone){if(!r.options.initImmediate)return r.init(i,o),Th(r,xa(r));setTimeout(function(){r.init(i,o)},0)}return r}return Di(n,[{key:"init",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(a=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));var s=vke();this.options=Xo(Xo(Xo({},s),this.options),tj(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Xo(Xo({},s.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function l(x){return x?typeof x=="function"?new x:x:null}if(!this.options.isClone){this.modules.logger?Qo.init(l(this.modules.logger),this.options):Qo.init(null,this.options);var c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=fke);var d=new ike(this.options);this.store=new tke(this.options.resources,this.options);var f=this.services;f.logger=Qo,f.resourceStore=this.store,f.languageUtils=d,f.pluralResolver=new uke(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(f.formatter=l(c),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new cke(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new mke(l(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(x){for(var b=arguments.length,S=new Array(b>1?b-1:0),$=1;$<b;$++)S[$-1]=arguments[$];i.emit.apply(i,[x].concat(S))}),this.modules.languageDetector&&(f.languageDetector=l(this.modules.languageDetector),f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=l(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new KF(this.services,this.options),this.translator.on("*",function(x){for(var b=arguments.length,S=new Array(b>1?b-1:0),$=1;$<b;$++)S[$-1]=arguments[$];i.emit.apply(i,[x].concat(S))}),this.modules.external.forEach(function(x){x.init&&x.init(i)})}if(this.format=this.options.interpolation.format,a||(a=fy),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.length>0&&g[0]!=="dev"&&(this.options.lng=g[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var p=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];p.forEach(function(x){i[x]=function(){var b;return(b=i.store)[x].apply(b,arguments)}});var m=["addResource","addResources","addResourceBundle","removeResourceBundle"];m.forEach(function(x){i[x]=function(){var b;return(b=i.store)[x].apply(b,arguments),i}});var v=Ah(),w=function(){var b=function($,E){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),v.resolve(E),a($,E)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return b(null,i.t.bind(i));i.changeLanguage(i.options.lng,b)};return this.options.resources||!this.options.initImmediate?w():setTimeout(w,0),v}},{key:"loadResources",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fy,s=a,l=typeof i=="string"?i:this.language;if(typeof i=="function"&&(s=i),!this.options.resources||this.options.partialBundledLanguages){if(l&&l.toLowerCase()==="cimode")return s();var c=[],d=function(p){if(p){var m=o.services.languageUtils.toResolveHierarchy(p);m.forEach(function(v){c.indexOf(v)<0&&c.push(v)})}};if(l)d(l);else{var f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.forEach(function(g){return d(g)})}this.options.preload&&this.options.preload.forEach(function(g){return d(g)}),this.services.backendConnector.load(c,this.options.ns,function(g){!g&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),s(g)})}else s(null)}},{key:"reloadResources",value:function(i,o,a){var s=Ah();return i||(i=this.languages),o||(o=this.options.ns),a||(a=fy),this.services.backendConnector.reload(i,o,function(l){s.resolve(),a(l)}),s}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&GF.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var o=0;o<this.languages.length;o++){var a=this.languages[o];if(!(["cimode","dev"].indexOf(a)>-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}}},{key:"changeLanguage",value:function(i,o){var a=this;this.isLanguageChangingTo=i;var s=Ah();this.emit("languageChanging",i);var l=function(g){a.language=g,a.languages=a.services.languageUtils.toResolveHierarchy(g),a.resolvedLanguage=void 0,a.setResolvedLanguage(g)},c=function(g,p){p?(l(p),a.translator.changeLanguage(p),a.isLanguageChangingTo=void 0,a.emit("languageChanged",p),a.logger.log("languageChanged",p)):a.isLanguageChangingTo=void 0,s.resolve(function(){return a.t.apply(a,arguments)}),o&&o(g,function(){return a.t.apply(a,arguments)})},d=function(g){!i&&!g&&a.services.languageDetector&&(g=[]);var p=typeof g=="string"?g:a.services.languageUtils.getBestMatchFromCodes(g);p&&(a.language||l(p),a.translator.language||a.translator.changeLanguage(p),a.services.languageDetector&&a.services.languageDetector.cacheUserLanguage(p)),a.loadResources(p,function(m){c(m,p)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?d(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(d):d(i),s}},{key:"getFixedT",value:function(i,o,a){var s=this,l=function c(d,f){var g;if(dr(f)!=="object"){for(var p=arguments.length,m=new Array(p>2?p-2:0),v=2;v<p;v++)m[v-2]=arguments[v];g=s.options.overloadTranslationOptionHandler([d,f].concat(m))}else g=Xo({},f);g.lng=g.lng||c.lng,g.lngs=g.lngs||c.lngs,g.ns=g.ns||c.ns,g.keyPrefix=g.keyPrefix||a||c.keyPrefix;var w=s.options.keySeparator||".",x=g.keyPrefix?"".concat(g.keyPrefix).concat(w).concat(d):d;return s.t(x,g)};return typeof i=="string"?l.lng=i:l.lngs=i,l.ns=o,l.keyPrefix=a,l}},{key:"t",value:function(){var i;return this.translator&&(i=this.translator).translate.apply(i,arguments)}},{key:"exists",value:function(){var i;return this.translator&&(i=this.translator).exists.apply(i,arguments)}},{key:"setDefaultNamespace",value:function(i){this.options.defaultNS=i}},{key:"hasLoadedNamespace",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var s=this.resolvedLanguage||this.languages[0],l=this.options?this.options.fallbackLng:!1,c=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;var d=function(p,m){var v=o.services.backendConnector.state["".concat(p,"|").concat(m)];return v===-1||v===2};if(a.precheck){var f=a.precheck(this,d);if(f!==void 0)return f}return!!(this.hasResourceBundle(s,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||d(s,i)&&(!l||d(c,i)))}},{key:"loadNamespaces",value:function(i,o){var a=this,s=Ah();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(l){a.options.ns.indexOf(l)<0&&a.options.ns.push(l)}),this.loadResources(function(l){s.resolve(),o&&o(l)}),s):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(i,o){var a=Ah();typeof i=="string"&&(i=[i]);var s=this.options.preload||[],l=i.filter(function(c){return s.indexOf(c)<0});return l.length?(this.options.preload=s.concat(l),this.loadResources(function(c){a.resolve(),o&&o(c)}),a):(o&&o(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"];return o.indexOf(this.services.languageUtils.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fy,s=Xo(Xo(Xo({},this.options),o),{isClone:!0}),l=new n(s);(o.debug!==void 0||o.prefix!==void 0)&&(l.logger=l.logger.clone(o));var c=["store","services","language"];return c.forEach(function(d){l[d]=i[d]}),l.services=Xo({},this.services),l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l.translator=new KF(l.services,l.options),l.translator.on("*",function(d){for(var f=arguments.length,g=new Array(f>1?f-1:0),p=1;p<f;p++)g[p-1]=arguments[p];l.emit.apply(l,[d].concat(g))}),l.init(s,a),l.translator.options=l.options,l.translator.backendConnector.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(al);oi(py,"createInstance",function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new py(e,t)});var Ht=py.createInstance();Ht.createInstance=py.createInstance;var wke=Ht.createInstance,Ske=Ht.init,$ke=Ht.loadResources,Cke=Ht.reloadResources,Eke=Ht.use,kke=Ht.changeLanguage,Tke=Ht.getFixedT,Ake=Ht.t,Rke=Ht.exists,Oke=Ht.setDefaultNamespace,_ke=Ht.hasLoadedNamespace,Ike=Ht.loadNamespaces,Dke=Ht.loadLanguages;const Pke=Object.freeze(Object.defineProperty({__proto__:null,changeLanguage:kke,createInstance:wke,default:Ht,exists:Rke,getFixedT:Tke,hasLoadedNamespace:_ke,init:Ske,loadLanguages:Dke,loadNamespaces:Ike,loadResources:$ke,reloadResources:Cke,setDefaultNamespace:Oke,t:Ake,use:Eke},Symbol.toStringTag,{value:"Module"})),Mke=function(e,t){if(!e)return[];const n=[];for(const[,r]of e)for(const i of r){let o;i.renderAsCancelable?o={start:i.start.toISO({suppressMilliseconds:!0}),end:i.end.toISO({suppressMilliseconds:!0}),title:t("cancellation.cancellable_appointment_highlight"),extendedProps:i,borderColor:"#000"}:i.renderAsBookable?o={start:i.start.toISO({suppressMilliseconds:!0}),end:i.end.toISO({suppressMilliseconds:!0}),title:"",extendedProps:i}:i.renderAsBlocker&&(o={title:t("appoinment_at_capacity"),display:"background",backgroundColor:"#ccc",start:i.start.toISO({suppressMilliseconds:!0}),end:i.end.toISO({suppressMilliseconds:!0}),extendedProps:i}),n.push(o)}return n};function Nke({bookables:e,products:t,product:n,resource:r,publicDataMap:i,openResourcePage:o,openProductPage:a,openBookingPage:s,height:l}){const{t:c}=Xn(),d=Me($=>bY($)),f=oe.useRef(null),[g,{width:p}]=qc(),m=jo($=>$.breakpoints.down("sm")),[v,w]=oe.useState(!1),x=pN({bookables:e,products:t,selectedProduct:n}),b=Mke(x,c);O.useEffect(()=>{!v&&(b==null?void 0:b.length)>0&&(f.current.getApi().gotoDate(je.fromISO(b[0].start).toISODate()),w(!0))},[b]);const S=O.useCallback(()=>o&&m&&i&&Object.keys(i).length>1);return k.jsx(LZ,{ref:g,children:k.jsx(ry,{ref:f,locales:HEe,locale:Ht.resolvedLanguage,height:l,timeZone:"utc",plugins:[DCe,z6e,H6e,m7e],customButtons:{productSelection:{text:(n==null?void 0:n.name)??"Produkt wählen",click:()=>{a()}},resourceSelection:{text:(r==null?void 0:r.name)??"Resource wählen",click:()=>{o()}}},headerToolbar:{left:S()?"resourceSelection productSelection":"productSelection",right:"today prev,next"},noEventsText:c("noEventsMessage"),events:b,eventClick:$=>{const E={...$.event.extendedProps};E.capacity_left===0&&!E.isCancelable||(E.start=je.fromISO($.event.startStr),E.end=je.fromISO($.event.endStr),s(E))},windowResize:()=>{var $,E,T,A;d.smallView&&d.largeView&&(p<601?(E=($=f==null?void 0:f.current)==null?void 0:$.getApi())==null||E.changeView(d.smallView):(A=(T=f==null?void 0:f.current)==null?void 0:T.getApi())==null||A.changeView(d.largeView))},...d})})}const Lke=mp`
321
+ `;function lN({userName:e,doOnSuccess:t}){const{t:n}=Xn(),{enqueueSnackbar:r}=vw(),i=Nw({defaultValues:Y4(vS),resolver:w5(zp().shape(q4(vS)))}),o=Ec(),a=Me(p=>tt(p,"host")),[s,l]=oe.useState(),[c,{isLoading:d,isError:f}]=Fq(),g=async p=>{const m=await c({body:{userName:e,password:p.password}});m.error?(l(!0),setTimeout(()=>{l(!1)},1e3)):(t&&t(),o(Rk({pathToProp:"auth2",newValue:m.data.auth2})),r(n("login.success"),{variant:"success"}))};return k.jsxs(Oi,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[k.jsx(Ype,{sx:{m:1,bgcolor:"secondary.main"},children:k.jsx(sN,{})}),k.jsx(Ge,{variant:"h2",children:n("login.sign_in")}),k.jsx(Ge,{variant:"subtitle2",textAlign:"center",mt:1,children:k.jsxs(Lee,{t:n,i18nKey:"login.explanation",children:["Ein Benutzer mit dieser E-Mail existiert bereits. ",k.jsx("br",{})," Sie müssen sich authentifizieren, bevor Sie buchen können."]})}),k.jsx(Oi,{borderBottom:"1px solid #ddd",width:"80%",mt:2,mb:2}),k.jsxs(Oi,{component:"form",onSubmit:i.handleSubmit(g),noValidate:!0,sx:{mt:1},children:[k.jsx(Ge,{variant:"body1",textAlign:"center",children:e}),k.jsx(vv,{fields:vS,disableEmptyErrorText:!0,rhfProps:{control:i.control},containerProps:{spacing:0},textFieldProps:{sx:{animation:s?`${m4e} 500ms linear 1`:""}}}),f&&k.jsx(Ge,{color:"error.main",variant:"body1",textAlign:"center",children:n("login.failed")}),k.jsx(a1,{type:"submit",loading:d,fullWidth:!0,variant:"contained",sx:{mt:3,mb:2},children:n("login.sign_in")}),k.jsx(O5,{href:`${a}/auth/reset`,display:"block",variant:"body2",textAlign:"center",target:"_blank",children:n("login.forgot_password")})]})]})}lN.propTypes={};function $v({onResourceSelected:e,headerVariant:t="h4",height:n,HeadlineProps:r={},ListProps:i={},ListItemProps:o={},ListItemButtonProps:a={}}){const s=Ec(),{t:l}=Xn(),c=Me(Ix),d=Me(Hl);if(c)return k.jsx(Wc,{dense:!0,...i,subheader:k.jsx(QO,{sx:{marginBottom:"24px"},children:k.jsx(Ge,{variant:t,component:"h2",color:"text.primary",...r,children:l("resource_selection_headline")})}),sx:[{maxHeight:n,overflowY:"auto",paddingRight:"8px"},{...i.sx}],children:Object.entries(c).map(([,f])=>{var g;return k.jsx(Er,{...o,disablePadding:!0,sx:[{mx:"auto",marginBottom:"8px",minHeight:"36.5px"},{...o.sx}],children:k.jsx(n1,{selected:d&&(d==null?void 0:d.resource.uuid)===(f==null?void 0:f.resource.uuid),onClick:()=>{s(up(f)),e&&e(f)},...a,children:k.jsx(Qn,{primary:(g=f==null?void 0:f.resource)==null?void 0:g.name,primaryTypographyProps:{variant:"body2"}})})},f==null?void 0:f.ref)})})}$v.displayName="ResourceSelector",$v.propTypes={onProductSelected:Je.func};const Cv={setBookables:"setBookables",setProducts:"setProducts",resetBookables:"resetBookables",resetProducts:"resetProducts"};function v4e(e,{type:t,payload:n}){switch(t){case Cv.setBookables:return{...e,bookables:n};case Cv.setProducts:return{...e,products:n};case Cv.resetBookables:return{...e,products:void 0};case Cv.resetProducts:return{...e,products:void 0};default:throw new Error(`Unsupported type: ${t}`)}}function yS({calendarComponent:e,customerData:t,isIdentifyingCustomer:n,identificationFailed:r,reducer:i=v4e,bookables:o,products:a}){var zy,Du,By,Pu,Hy,Uy,Wy,Vh,Gh,qh,Vy;const{current:s}=oe.useRef({bookables:void 0,products:void 0}),[l,c]=oe.useReducer(i,s),d=Ec(),f=Me(wm),g=Me(wY),p=Me(Hl),m=Me(Ix),{height:v}=bJ(),w=jo(we=>we.breakpoints.down("sm")),x=o!=null,b=a!=null,S=x?o:l.bookables,$=b?a:l.products,{t:E}=Xn(),{enqueueSnackbar:T}=vw(),A=Me(we=>tt(we,"channelKey")),R=Me(we=>tt(we,"cancelableAppointment.appointmentUuid")),I=Me(we=>tt(we,"height")),_=Me(we=>tt(we,"allowCloseOnBooking")),L=Me(we=>tt(we,"hideTimumFooter")),B=v&&v<I?v:I,U=Me(we=>tt(we,"cancelableAppointment.authToken")),V=Me(we=>tt(we,"callbacks.fetchingProductsFailed")),P=Me(we=>tt(we,"callbacks.fetchingBookablesFailed")),z=Me(we=>tt(we,"callbacks.fetchingProductsSucceeded")),q=Me(we=>tt(we,"callbacks.fetchingBookablesSucceeded")),H=Me(we=>tt(we,"callbacks.fetchingPublicDataSucceeded")),[Z,K]=oe.useState(!1),[J,ge]=oe.useState(!1),[ve,he]=oe.useState(!1),[xe,ae]=oe.useState(!1),[$e,Ae]=oe.useState(!1),[Fe,Xe]=oe.useState(!1),[Ie,Ve]=oe.useState(!1),[St,ct]=oe.useState(!1),[G,te]=oe.useState(),[ee,me]=oe.useState(),[Ce,ce]=oe.useState(),[be,it]=oe.useState(),[Ye,Pt]=oe.useState(),[Ut,Hn]=oe.useState(),An=Me(we=>tt(we,"interfaces.ResourcePage")),st=Me(we=>tt(we,"interfaces.UnkownBookingPage")),fe=Me(we=>tt(we,"interfaces.IdentifiedBookingPage")),$t=Me(we=>tt(we,"interfaces.ConfirmationPage")),tn=Me(we=>tt(we,"interfaces.LoginPage")),Rn=Me(we=>tt(we,"interfaces.CancelPage")),Bi=Me(we=>tt(we,"interfaces.ProductPage")),pl=Me(we=>tt(we,"interfaces.ErrorDialog")),hl=we=>{if(!we)return{};const et=JSON.parse(JSON.stringify(we));delete et.public_visible;for(const[vr,na]of Object.entries(et)){et[vr]=[];for(const Mu of na)et[vr].push(Ir(Mu))}return et},Ir=O.useCallback(we=>{var vr,na;const et=JSON.parse(JSON.stringify(we));return et.isCancelable=R&&et.appointment_uuid===R,et.appointmentUuid=et.appointment_uuid,et.uuid=et.timeslot_uuid,et.start=je.fromISO(et.start),(vr=et.kind)!=null&&vr.toLowerCase().includes("bookable")&&(f!=null&&f.minDuration)?et.end=je.fromISO(et.start).plus({minutes:f.minDuration}):(na=et.kind)!=null&&na.toLowerCase().includes("bookable")&&(f!=null&&f.maxDuration)?et.end=je.fromISO(et.start).plus({minutes:f.maxDuration}):et.end=je.fromISO(et.end),et}),[Ru,{data:ht,error:Ga,reset:Ou}]=Mq(),[Ry]=Nq(),[Oy,{data:_y,error:Ud,isFetching:c9,isLoading:d9,isUninitialized:Iy}]=Oq(),[f9,{data:Wd,error:Vd,isLoading:Wh}]=Iq(),p9=()=>{Ve(!0)},_u=()=>{Ve(!1)},Dy=()=>{K(!0)},Py=()=>{K(!1)},h9=we=>{ce(we),Xe(!0)},My=()=>{ce(void 0),Xe(!1)},g9=we=>{ge(!0),te(we)},Iu=()=>{var we,et;ge(!1),zn.isNil(Ga)&&ht&&Ry({channelOrResourceId:p==null?void 0:p.ref,body:{placeholder_id:(we=ht==null?void 0:ht.participation)==null?void 0:we.customer_uuid,appointment_id:(et=ht==null?void 0:ht.participation)==null?void 0:et.appointment_uuid}}),setTimeout(()=>{te(void 0)},150)},Ny=()=>{ct(!0)},m9=()=>{ct(!1),it(void 0),Pt(void 0),Hn(void 0)},Ly=we=>{he(!0),me(we)},Fy=()=>{he(!1),setTimeout(()=>{me(void 0)},150)},jy=()=>{d(Rk({pathToProp:"cancelableAppointment",newValue:void 0})),Fy()},v9=()=>{Ae(!0)},y9=()=>{Ae(!1)};O.useEffect(()=>{(async()=>{!x&&p&&Oy({channelOrResourceId:p==null?void 0:p.ref,params:{channelKey:A},headers:U?{"X-SIGNED-APP-CUSTOMER":U}:void 0})})()},[p,x]),O.useEffect(()=>{!x&&!Ud&&c({type:"setBookables",payload:_y})},[_y,x]),O.useEffect(()=>{(async()=>{!b&&p&&f9({channelOrResourceId:p==null?void 0:p.ref,params:{channelKey:A}})})()},[p,b]),O.useEffect(()=>{!b&&!Vd&&c({type:"setProducts",payload:Wd==null?void 0:Wd.products})},[Wd,x]),O.useEffect(()=>{G&&Ru({channelOrResourceId:p==null?void 0:p.ref,body:{timeslotUuid:G==null?void 0:G.timeslot_uuid,appointmentUuid:G==null?void 0:G.appointment_uuid,productUuid:f.uuid,from:G.start.set({milliseconds:0}).toUTC(0,{keepLocalTime:!0}).toISO({suppressMilliseconds:!0}),to:G.end.set({milliseconds:0}).toUTC(0,{keepLocalTime:!0}).toISO({suppressMilliseconds:!0})},params:{channelKey:A}})},[G]),O.useMemo(()=>{Ga&&(v9(),Iu())},[Ga]),O.useMemo(()=>{if(!ve&&!xe&&S&&R&&U){let we;for(const et of Object.values(S))!zn.isBoolean(et)&&!we&&(we=et.find(vr=>vr.appointment_uuid===R));we&&(me(Ir(we)),he(!0),ae(!0))}},[ve,xe,S,R,U]),O.useMemo(()=>{Vd&&V&&V(Vd)},[Vd,V]),O.useMemo(()=>{Ud&&P&&P(Ud)},[Ud,P]),O.useMemo(()=>{$&&z&&z({...$})},[$,z]),O.useMemo(()=>{S&&q&&q({...S})},[S,q]),O.useMemo(()=>{p&&H&&z({...p})},[p,H]),O.useMemo(()=>{!f&&($==null?void 0:$.length)===1?d(xm($[0])):!f&&!Z&&($==null?void 0:$.length)>1&&Dy()},[f,$,Z]),O.useMemo(()=>{f&&$&&($.find(et=>et.uuid===f.uuid)||(d(xm(void 0)),T(E("product_unavailable_for_resource_warning"),{autoHideDuration:6e3,variant:"warning"})))},[$,f]);const b9=()=>Wh||c9||J&&n;return k.jsxs(Oi,{sx:{display:"flex"},children:[k.jsxs(Ne,{container:!0,sx:{flexGrow:1,boxSizing:"border-box",overflowY:"hidden"},children:[k.jsxs(An,{mobileOpen:Ie,mobileOnClose:_u,publicDataMap:m,publicData:p,shouldDisplay:m&&Object.keys(m).length>1,height:B-36,children:[w&&k.jsx($v,{onResourceSelected:()=>{_u()},height:B-40,HeadlineProps:{variant:"h2"},ListItemProps:{sx:{mx:"auto",borderWidth:"1px",borderStyle:"solid",borderColor:"grey.300",marginBottom:"16px",minHeight:"58px"}},ListItemButtonProps:{sx:{position:"absolute",width:"100%",height:"100%",zIndex:0}}}),!w&&k.jsx($v,{onResourceSelected:()=>{_u()},height:B-36,ListProps:{sx:{maxWidth:"240px"}},ListItemProps:{},ListItemButtonProps:{}})]}),k.jsx(Ne,{item:!0,xs:!0,children:k.jsx(K4,{visible:b9(),children:e({bookablesQueried:x||!d9&&!Iy,bookables:hl(S),product:f,products:$,resource:g,publicDataMap:m,publicData:p,height:B-36,openResourcePage:p9,openProductPage:Dy,openBookingPage:we=>{we.isCancelable?Ly(we):g9(we)}})})}),!L&&k.jsx(Ne,{item:!0,xs:12,children:k.jsx(RM,{})})]}),Z&&!ve&&k.jsx(Bi,{open:Z&&!ve,onClose:Py,children:k.jsx(RA,{onProductSelected:Py,products:$})}),J&&r&&!n&&k.jsx(st,{open:J&&r&&!n,onClose:Iu,children:k.jsx(TM,{timeslot:(()=>{var we,et;return G&&G.uuid!==((we=ht==null?void 0:ht.participation)==null?void 0:we.timeslot_uuid)&&(G.uuid=(et=ht==null?void 0:ht.participation)==null?void 0:et.timeslot_uuid),G})(),productName:G!=null&&G.product_name?G.product_name:f==null?void 0:f.name,productMinDuration:f==null?void 0:f.minDuration,resourceName:(zy=p==null?void 0:p.resource)==null?void 0:zy.name,placeholderId:(Du=ht==null?void 0:ht.participation)==null?void 0:Du.customer_uuid,bookingProcess:(By=p==null?void 0:p.channel)==null?void 0:By.bookingProcess,onBookingSuccessfull:({timeslot:we,response:et,data:vr})=>{Ou(),Iu(),Ny(),Pt(et),it(we),Hn(vr)},onBookingFailed:({response:we,data:et})=>{var vr,na,Mu;((Mu=(na=(vr=we==null?void 0:we.error)==null?void 0:vr.data)==null?void 0:na.errors[0])==null?void 0:Mu.errorCode)==="300"&&h9(et.email)}})}),J&&!r&&!n&&k.jsx(fe,{open:J&&!r&&!n,onClose:Iu,children:k.jsx(AM,{timeslot:(()=>{var we,et;return G&&G.uuid!==((we=ht==null?void 0:ht.participation)==null?void 0:we.timeslot_uuid)&&(G.uuid=(et=ht==null?void 0:ht.participation)==null?void 0:et.timeslot_uuid),G})(),productName:G!=null&&G.product_name?G.product_name:f==null?void 0:f.name,productMinDuration:f==null?void 0:f.minDuration,resourceName:(Pu=p==null?void 0:p.resource)==null?void 0:Pu.name,placeholderId:(Hy=ht==null?void 0:ht.participation)==null?void 0:Hy.customer_uuid,onBookingSuccessfull:({timeslot:we,response:et,data:vr})=>{Ou(),Iu(),Ny(),Pt(et),it(we),Hn(vr)},bookingProcess:(Uy=p==null?void 0:p.channel)==null?void 0:Uy.bookingProcess,customerData:t})}),ve&&k.jsx(Rn,{open:ve,onClose:Fy,timeslot:ee,productName:ee!=null&&ee.product_name?ee.product_name:f==null?void 0:f.name,resourceName:(Wy=p==null?void 0:p.resource)==null?void 0:Wy.name,onCancelSuccess:jy,children:k.jsx(aN,{timeslot:ee,productName:ee!=null&&ee.product_name?ee.product_name:f==null?void 0:f.name,resourceName:(Vh=p==null?void 0:p.resource)==null?void 0:Vh.name,onCancelSuccess:jy})}),St&&k.jsx($t,{open:St,onClose:m9,allowCloseOnBooking:_,timeslot:be,productName:be!=null&&be.product_name?be.product_name:f==null?void 0:f.name,productDescription:f==null?void 0:f.description,resourceName:(Gh=p==null?void 0:p.resource)==null?void 0:Gh.name,providerName:p!=null&&p.provider.isThemingAllowed?(qh=p==null?void 0:p.provider)==null?void 0:qh.name:void 0,customerMail:t?t.email:Ut==null?void 0:Ut.email,contactChannel:Ye==null?void 0:Ye.contact_channel,bookingProcess:(Vy=p==null?void 0:p.channel)==null?void 0:Vy.bookingProcess,children:we=>k.jsx(oN,{...we})}),Fe&&k.jsx(tn,{open:Fe,onClose:My,children:k.jsx(lN,{userName:Ce,doOnSuccess:My})}),$e&&k.jsx(pl,{open:$e,onClose:y9})]})}var bS={},y4e=er;Object.defineProperty(bS,"__esModule",{value:!0});var uN=bS.default=void 0,b4e=y4e(tr()),x4e=k,w4e=(0,b4e.default)((0,x4e.jsx)("path",{d:"M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"}),"Phone");uN=bS.default=w4e;var xS={},S4e=er;Object.defineProperty(xS,"__esModule",{value:!0});var cN=xS.default=void 0,$4e=S4e(tr()),C4e=k,E4e=(0,$4e.default)((0,C4e.jsx)("path",{d:"M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1zm-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm4.5-4H7V4h9v14z"}),"PhoneIphone");cN=xS.default=E4e;var wS={},k4e=er;Object.defineProperty(wS,"__esModule",{value:!0});var dN=wS.default=void 0,T4e=k4e(tr()),A4e=k,R4e=(0,T4e.default)((0,A4e.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z"}),"Email");dN=wS.default=R4e;var SS={},O4e=er;Object.defineProperty(SS,"__esModule",{value:!0});var ph=SS.default=void 0,_4e=O4e(tr()),I4e=k,D4e=(0,_4e.default)((0,I4e.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");ph=SS.default=D4e;var $S={},P4e=er;Object.defineProperty($S,"__esModule",{value:!0});var fN=$S.default=void 0,M4e=P4e(tr()),N4e=k,L4e=(0,M4e.default)((0,N4e.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");fN=$S.default=L4e;const F4e=(e,t,n)=>{var i;let r=!1;return n&&e.product_uuid===(n==null?void 0:n.uuid)&&(r=!0),t&&(r||(i=e==null?void 0:e.products)!=null&&i.find(a=>a.uuid===(n==null?void 0:n.uuid))&&(r=!0)),r};function pN({bookables:e,products:t,selectedProduct:n}){return O.useMemo(()=>{if(e){let r;r=Object.entries(e),r=r.filter(i=>(i[1].forEach(o=>{o.supportsProduct=F4e(o,t,n)}),i[1]=i[1].filter(o=>o.isCancelable?!0:!o.products||o.products.length===0?!(n!=null&&n.exclusive):!!o.supportsProduct),!!i[1].length));for(const[,i]of r)i.sort((o,a)=>o.start<a.start?-1:o.start===a.start?0:1);for(const[,i]of r)for(const o of i)o.isCancelable?o.renderAsCancelable=!0:o.capacity_left>0||o.kind==="models.Bookable"?o.renderAsBookable=!0:o.renderAsBlocker=!0;return r=r.sort((i,o)=>{const a=je.fromFormat(i[0],"yyyy-MM-dd"),s=je.fromFormat(o[0],"yyyy-MM-dd");return a<s?-1:a===s?0:1}),r}return[]},[e,t,n])}function j4e(){const{t:e}=Xn();return k.jsx(Er,{sx:{pointerEvents:"none",marginBottom:"8px"},children:k.jsx(Qn,{sx:{width:"100%",textAlign:"center",py:{xs:0,sm:0,md:0}},children:k.jsx(Ge,{variant:"body2",color:"text.disabled",children:`${e("appoinment_at_capacity")}`})})})}function z4e({timeslot:e,productName:t,openBookingPage:n}){var r;return k.jsxs(Er,{disablePadding:!0,sx:{borderWidth:"1px",borderStyle:"solid",borderColor:"grey.300",marginBottom:"8px"},children:[k.jsx(Qn,{sx:{py:{xs:2,sm:2,md:3}}}),k.jsx(n1,{sx:{position:"absolute",width:"100%",height:"100%",zIndex:0},onClick:()=>{n(e)},children:k.jsx(Ge,{variant:"body2",color:"text.secondary",px:{xs:0,sm:0,md:0},children:`${(r=e==null?void 0:e.start)==null?void 0:r.toLocaleString(je.TIME_SIMPLE)} - ${t||" "}`})})]})}function B4e({timeslot:e,openBookingPage:t}){var r;const{t:n}=Xn();return k.jsxs(Er,{disablePadding:!0,sx:{borderWidth:"1px",borderStyle:"solid",borderColor:"secondary.main",marginBottom:"8px"},children:[k.jsx(Qn,{sx:{py:{xs:2,sm:2,md:3}}}),k.jsx(n1,{sx:{position:"absolute",width:"100%",height:"100%",zIndex:0},onClick:()=>{t(e)},children:k.jsx(Ge,{variant:"body2",color:"secondary.main",px:{xs:2,sm:2,md:3},children:`${(r=e==null?void 0:e.start)==null?void 0:r.toLocaleString(je.TIME_SIMPLE)} - ${n("cancellation.cancellable_appointment_highlight")}`})})]})}function Ev({bookables:e,product:t,products:n,resource:r,publicDataMap:i,openResourcePage:o,openProductPage:a,openBookingPage:s,height:l}){const{t:c}=Xn(),d=jo(b=>b.breakpoints.down("sm")),[f,g]=qc(void 0,"outer"),[p,m]=qc(void 0,"outer"),v=pN({bookables:e,products:n,selectedProduct:t}),w=O.useCallback(()=>o&&d&&i&&Object.keys(i).length>1),x=(g==null?void 0:g.height)+(m==null?void 0:m.height);return k.jsx(Oi,{sx:{width:"100%"},children:k.jsxs(Ne,{container:!0,rowSpacing:1,m:0,direction:"column",children:[w()&&k.jsx(Ne,{item:!0,xs:12,children:k.jsx(Ls,{ref:p,variant:"outlined",fullWidth:!0,onClick:o,startIcon:k.jsx(U1,{fontSize:"small"}),endIcon:k.jsx(ph,{fontSize:"10px"}),children:(r==null?void 0:r.name)||c("resource_selection_headline")})}),a&&k.jsx(Ne,{item:!0,xs:12,children:k.jsx(Ls,{ref:f,variant:"outlined",fullWidth:!0,onClick:a,startIcon:k.jsx(ud,{fontSize:"small"}),endIcon:k.jsx(ph,{fontSize:"10px"}),children:(t==null?void 0:t.name)||c("product_selection_headline")})}),k.jsx(Ne,{item:!0,xs:12,children:k.jsxs(Wc,{sx:{"& ul":{padding:0},position:"relative",height:l-(x+16)||"500px",overflowY:"auto",overflowX:"hidden"},subheader:k.jsx("li",{}),children:[!(v!=null&&v.length)&&k.jsx(Oi,{height:a?`calc(100% - ${x}px)`:"100%",width:"100%",children:k.jsx(Ge,{variant:"body2",color:"text.secondary",sx:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)"},children:c("noEventsMessage")})}),(v==null?void 0:v.length)>0&&v.map(([b,S])=>k.jsx("li",{children:k.jsxs("ul",{children:[k.jsx(QO,{children:k.jsxs(Ne,{container:!0,justifyContent:"space-between",alignItems:"center",sx:{height:"48px"},children:[k.jsx(Ne,{item:!0,children:k.jsx(Ge,{variant:"body2",color:"primary",children:je.fromISO(b).toLocaleString(je.DATE_FULL)})}),k.jsx(Ne,{item:!0,children:k.jsx(Ge,{variant:"body2",color:"text.secondary",children:je.fromISO(b).weekdayLong})})]})}),S.map($=>{if($.renderAsCancelable)return k.jsx(B4e,{timeslot:$,openBookingPage:s},`${$.start.toISO()}-${$.uuid}`);if($.renderAsBookable){let E=t==null?void 0:t.name;return!$.hasSelectedProduct&&$.kind!=="models.Bookable"&&(E=$.product_name),k.jsx(z4e,{timeslot:$,productName:E,openBookingPage:s},`${$.start.toISO()}-${$.uuid}`)}else if($.renderAsBlocker)return k.jsx(j4e,{},`${$.start.toISO()}-${$.uuid}`)})]})},b))]})})]})})}Ev.propTypes={bookables:Je.object.isRequired,product:Je.object,products:Je.array,openProductPage:Je.func,openBookingPage:Je.func,height:Je.number};const H4e=de(e=>{const{...t}=e;return k.jsx(M1,{...t})})(({theme:e,expand:t})=>({transform:t?"rotate(180deg)":"rotate(0deg)",margin:"auto",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest})}));function U4e({bookables:e,product:t,products:n,publicData:r,publicDataMap:i,openResourcePage:o,openProductPage:a,openBookingPage:s,height:l}){const{t:c}=Xn(),[d,f]=qc(),[g,p]=qc(),m=jo(A=>A.breakpoints.down("sm")),[v,w]=oe.useState(!m),x=()=>{w(!v)},b=O.useCallback(()=>{var A,R,I,_;return((A=r==null?void 0:r.contact)==null?void 0:A.name)||((R=r==null?void 0:r.contact)==null?void 0:R.email)||((I=r==null?void 0:r.contact)==null?void 0:I.mobile)||((_=r==null?void 0:r.contact)==null?void 0:_.phone)}),S=O.useCallback(()=>{var A;return o&&m&&i&&((A=Object.keys(i))==null?void 0:A.length)>1}),$=()=>{var A,R,I,_,L,B,U,V,P,z,q,H,Z;return k.jsxs(k.Fragment,{children:[k.jsxs(Ne,{item:!0,container:!0,xs:"auto",columnSpacing:1,alignItems:"center",wrap:"nowrap",children:[k.jsx(Ne,{item:!0,xs:!0,zeroMinWidth:!0,children:k.jsx(Ge,{variant:"h4",component:"h2",children:(A=r==null?void 0:r.resource)==null?void 0:A.name})}),S()&&k.jsx(Ne,{item:!0,xs:"auto",children:k.jsx(Ls,{size:"small",onClick:o,color:"primary",variant:"outlined",sx:{padding:"1px 0",minWidth:"44px",float:"right"},children:k.jsx(fN,{})})})]}),k.jsxs(Ne,{item:!0,xs:m?"12":"auto",children:[(n==null?void 0:n.length)>1&&k.jsx(Ls,{variant:"outlined",fullWidth:!0,onClick:a,startIcon:k.jsx(ud,{fontSize:"small"}),endIcon:k.jsx(ph,{fontSize:"10px"}),children:(t==null?void 0:t.name)||c("product_selection_headline")}),(n==null?void 0:n.length)===1&&k.jsxs(Er,{disableGutters:!0,disablePadding:!0,children:[k.jsx(Ho,{sx:{minWidth:"30px"},children:k.jsx(ud,{fontSize:"small"})}),k.jsx(Qn,{children:k.jsx(Ge,{variant:"body1",color:"text.secondary",children:(t==null?void 0:t.name)||((R=n[0])==null?void 0:R.name)})})]})]}),b()&&k.jsx(Ne,{item:!0,sx:{mb:{xs:(I=r==null?void 0:r.resource)!=null&&I.description?0:1}},children:k.jsx(t_,{elevation:0,children:k.jsx(n_,{sx:{pt:"0!important",pb:"0!important"},children:k.jsxs(Wc,{dense:!0,sx:{p:0},children:[((_=r==null?void 0:r.contact)==null?void 0:_.name)&&k.jsx(Er,{sx:{py:0},disableGutters:!0,children:k.jsx(Qn,{primary:(L=r==null?void 0:r.contact)==null?void 0:L.name})}),((B=r==null?void 0:r.contact)==null?void 0:B.email)&&k.jsxs(Er,{sx:{py:0},disableGutters:!0,children:[k.jsx(Ho,{sx:{minWidth:"30px"},children:k.jsx(dN,{fontSize:"small"})}),k.jsx(Qn,{primary:(U=r==null?void 0:r.contact)==null?void 0:U.email})]}),((V=r==null?void 0:r.contact)==null?void 0:V.phone)&&k.jsxs(Er,{sx:{py:0},disableGutters:!0,children:[k.jsx(Ho,{sx:{minWidth:"30px"},children:k.jsx(uN,{fontSize:"small"})}),k.jsx(Qn,{primary:(P=r==null?void 0:r.contact)==null?void 0:P.phone})]}),((z=r==null?void 0:r.contact)==null?void 0:z.mobile)&&k.jsxs(Er,{sx:{py:0},disableGutters:!0,children:[k.jsx(Ho,{sx:{minWidth:"30px"},children:k.jsx(cN,{fontSize:"small"})}),k.jsx(Qn,{primary:(q=r==null?void 0:r.contact)==null?void 0:q.mobile})]})]})})})}),((H=r==null?void 0:r.resource)==null?void 0:H.description)&&k.jsx(Ne,{item:!0,xs:!0,flexShrink:3,sx:{mb:{xs:1}},children:k.jsxs(t_,{elevation:0,children:[k.jsx(che,{disableRipple:(f==null?void 0:f.height)<=74,onClick:()=>{(f==null?void 0:f.height)>74&&x()},children:k.jsx(YT,{in:v,collapsedSize:"72px",children:k.jsx(n_,{sx:{pb:"0!important"},children:k.jsx(Oi,{ref:d,children:k.jsx(wd,{overrides:{h1:{component:Ge,props:{variant:"h3",gutterBottom:!0}},h2:{component:Ge,props:{variant:"h4",gutterBottom:!0}},h3:{component:Ge,props:{variant:"h5",gutterBottom:!0}},h4:{component:Ge,props:{variant:"h6",gutterBottom:!0}},h5:{component:Ge,props:{variant:"body1",gutterBottom:!0,color:"text.secondary"}},h6:{component:Ge,props:{variant:"body1",gutterBottom:!0,color:"text.secondary"}},p:{component:Ge,props:{variant:"body2",gutterBottom:!0}},span:{component:Ge,props:{variant:"body2",gutterBottom:!0}}},children:(Z=r==null?void 0:r.resource)==null?void 0:Z.description})})})})}),(f==null?void 0:f.height)>74&&k.jsx(ghe,{sx:{py:0},children:k.jsx(H4e,{expand:v,onClick:x,children:k.jsx(ph,{})})})]})})]})},E=()=>k.jsxs(Ne,{container:!0,columnSpacing:4,rowSpacing:0,children:[k.jsx(Ne,{xs:6,container:!0,item:!0,direction:"column",wrap:"nowrap",spacing:3,sx:{overflowY:"auto",maxHeight:`${l}px`},children:$()}),k.jsxs(Ne,{container:!0,item:!0,xs:6,direction:"column",children:[k.jsx(Ne,{item:!0,xs:!0,children:k.jsx(Ge,{ref:g,variant:"h4",component:"h2",children:c("detailsListView.chose_date_and_time")})}),k.jsx(Ne,{item:!0,container:!0,xs:!0,children:k.jsx(Ev,{product:t,products:n,bookables:e,openBookingPage:s,height:p?l-p.height:l})})]})]}),T=()=>k.jsxs(Ne,{container:!0,direction:"column",columnSpacing:1,rowSpacing:1,children:[k.jsx(Ne,{container:!0,item:!0,direction:"column",wrap:"nowrap",spacing:1,xs:"auto",children:$()}),k.jsxs(Ne,{container:!0,item:!0,xs:6,direction:"column",children:[k.jsx(Ne,{item:!0,xs:!0,children:k.jsx(Ge,{ref:g,variant:"h4",component:"h2",children:c("detailsListView.chose_date_and_time")})}),k.jsx(Ne,{item:!0,container:!0,xs:!0,children:k.jsx(Ev,{product:t,products:n,bookables:e,openBookingPage:s,height:p?l-p.height:l})})]})]});return m?T():E()}var kv,qe,hN,hh,gN,mN,Tv={},vN=[],W4e=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Xs(e,t){for(var n in t)e[n]=t[n];return e}function yN(e){var t=e.parentNode;t&&t.removeChild(e)}function F(e,t,n){var r,i,o,a={};for(o in t)o=="key"?r=t[o]:o=="ref"?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?kv.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)a[o]===void 0&&(a[o]=e.defaultProps[o]);return Av(e,a,r,i,null)}function Av(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++hN};return i==null&&qe.vnode!=null&&qe.vnode(o),o}function Pn(){return{current:null}}function ut(e){return e.children}function fi(e,t){this.props=e,this.context=t}function gh(e,t){if(t==null)return e.__?gh(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?gh(e):null}function bN(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return bN(e)}}function CS(e){(!e.__d&&(e.__d=!0)&&hh.push(e)&&!Rv.__r++||gN!==qe.debounceRendering)&&((gN=qe.debounceRendering)||setTimeout)(Rv)}function Rv(){for(var e;Rv.__r=hh.length;)e=hh.sort(function(t,n){return t.__v.__b-n.__v.__b}),hh=[],e.some(function(t){var n,r,i,o,a,s;t.__d&&(a=(o=(n=t).__v).__e,(s=n.__P)&&(r=[],(i=Xs({},o)).__v=o.__v+1,ES(s,o,i,n.__n,s.ownerSVGElement!==void 0,o.__h!=null?[a]:null,r,a??gh(o),o.__h),kN(r,o),o.__e!=a&&bN(o)))})}function xN(e,t,n,r,i,o,a,s,l,c){var d,f,g,p,m,v,w,x=r&&r.__k||vN,b=x.length;for(n.__k=[],d=0;d<t.length;d++)if((p=n.__k[d]=(p=t[d])==null||typeof p=="boolean"?null:typeof p=="string"||typeof p=="number"||typeof p=="bigint"?Av(null,p,null,null,p):Array.isArray(p)?Av(ut,{children:p},null,null,null):p.__b>0?Av(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(g=x[d])===null||g&&p.key==g.key&&p.type===g.type)x[d]=void 0;else for(f=0;f<b;f++){if((g=x[f])&&p.key==g.key&&p.type===g.type){x[f]=void 0;break}g=null}ES(e,p,g=g||Tv,i,o,a,s,l,c),m=p.__e,(f=p.ref)&&g.ref!=f&&(w||(w=[]),g.ref&&w.push(g.ref,null,p),w.push(f,p.__c||m,p)),m!=null?(v==null&&(v=m),typeof p.type=="function"&&p.__k===g.__k?p.__d=l=wN(p,l,e):l=SN(e,p,g,x,m,l),typeof n.type=="function"&&(n.__d=l)):l&&g.__e==l&&l.parentNode!=e&&(l=gh(g))}for(n.__e=v,d=b;d--;)x[d]!=null&&AN(x[d],x[d]);if(w)for(d=0;d<w.length;d++)TN(w[d],w[++d],w[++d])}function wN(e,t,n){for(var r,i=e.__k,o=0;i&&o<i.length;o++)(r=i[o])&&(r.__=e,t=typeof r.type=="function"?wN(r,t,n):SN(n,r,r,i,r.__e,t));return t}function Ov(e,t){return t=t||[],e==null||typeof e=="boolean"||(Array.isArray(e)?e.some(function(n){Ov(n,t)}):t.push(e)),t}function SN(e,t,n,r,i,o){var a,s,l;if(t.__d!==void 0)a=t.__d,t.__d=void 0;else if(n==null||i!=o||i.parentNode==null)e:if(o==null||o.parentNode!==e)e.appendChild(i),a=null;else{for(s=o,l=0;(s=s.nextSibling)&&l<r.length;l+=1)if(s==i)break e;e.insertBefore(i,o),a=o}return a!==void 0?a:i.nextSibling}function V4e(e,t,n,r,i){var o;for(o in n)o==="children"||o==="key"||o in t||_v(e,o,null,n[o],r);for(o in t)i&&typeof t[o]!="function"||o==="children"||o==="key"||o==="value"||o==="checked"||n[o]===t[o]||_v(e,o,t[o],n[o],r)}function $N(e,t,n){t[0]==="-"?e.setProperty(t,n):e[t]=n==null?"":typeof n!="number"||W4e.test(t)?n:n+"px"}function _v(e,t,n,r,i){var o;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||$N(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||$N(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r||e.addEventListener(t,o?EN:CN,o):e.removeEventListener(t,o?EN:CN,o);else if(t!=="dangerouslySetInnerHTML"){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t.indexOf("-")==-1?e.removeAttribute(t):e.setAttribute(t,n))}}function CN(e){this.l[e.type+!1](qe.event?qe.event(e):e)}function EN(e){this.l[e.type+!0](qe.event?qe.event(e):e)}function ES(e,t,n,r,i,o,a,s,l){var c,d,f,g,p,m,v,w,x,b,S,$,E,T,A,R=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(l=n.__h,s=t.__e=n.__e,t.__h=null,o=[s]),(c=qe.__b)&&c(t);try{e:if(typeof R=="function"){if(w=t.props,x=(c=R.contextType)&&r[c.__c],b=c?x?x.props.value:c.__:r,n.__c?v=(d=t.__c=n.__c).__=d.__E:("prototype"in R&&R.prototype.render?t.__c=d=new R(w,b):(t.__c=d=new fi(w,b),d.constructor=R,d.render=q4e),x&&x.sub(d),d.props=w,d.state||(d.state={}),d.context=b,d.__n=r,f=d.__d=!0,d.__h=[],d._sb=[]),d.__s==null&&(d.__s=d.state),R.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=Xs({},d.__s)),Xs(d.__s,R.getDerivedStateFromProps(w,d.__s))),g=d.props,p=d.state,f)R.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(R.getDerivedStateFromProps==null&&w!==g&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(w,b),!d.__e&&d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(w,d.__s,b)===!1||t.__v===n.__v){for(d.props=w,d.state=d.__s,t.__v!==n.__v&&(d.__d=!1),d.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(I){I&&(I.__=t)}),S=0;S<d._sb.length;S++)d.__h.push(d._sb[S]);d._sb=[],d.__h.length&&a.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(w,d.__s,b),d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(g,p,m)})}if(d.context=b,d.props=w,d.__v=t,d.__P=e,$=qe.__r,E=0,"prototype"in R&&R.prototype.render){for(d.state=d.__s,d.__d=!1,$&&$(t),c=d.render(d.props,d.state,d.context),T=0;T<d._sb.length;T++)d.__h.push(d._sb[T]);d._sb=[]}else do d.__d=!1,$&&$(t),c=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++E<25);d.state=d.__s,d.getChildContext!=null&&(r=Xs(Xs({},r),d.getChildContext())),f||d.getSnapshotBeforeUpdate==null||(m=d.getSnapshotBeforeUpdate(g,p)),A=c!=null&&c.type===ut&&c.key==null?c.props.children:c,xN(e,Array.isArray(A)?A:[A],t,n,r,i,o,a,s,l),d.base=t.__e,t.__h=null,d.__h.length&&a.push(d),v&&(d.__E=d.__=null),d.__e=!1}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=G4e(n.__e,t,n,r,i,o,a,l);(c=qe.diffed)&&c(t)}catch(I){t.__v=null,(l||o!=null)&&(t.__e=s,t.__h=!!l,o[o.indexOf(s)]=null),qe.__e(I,t,n)}}function kN(e,t){qe.__c&&qe.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(r){r.call(n)})}catch(r){qe.__e(r,n.__v)}})}function G4e(e,t,n,r,i,o,a,s){var l,c,d,f=n.props,g=t.props,p=t.type,m=0;if(p==="svg"&&(i=!0),o!=null){for(;m<o.length;m++)if((l=o[m])&&"setAttribute"in l==!!p&&(p?l.localName===p:l.nodeType===3)){e=l,o[m]=null;break}}if(e==null){if(p===null)return document.createTextNode(g);e=i?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,g.is&&g),o=null,s=!1}if(p===null)f===g||s&&e.data===g||(e.data=g);else{if(o=o&&kv.call(e.childNodes),c=(f=n.props||Tv).dangerouslySetInnerHTML,d=g.dangerouslySetInnerHTML,!s){if(o!=null)for(f={},m=0;m<e.attributes.length;m++)f[e.attributes[m].name]=e.attributes[m].value;(d||c)&&(d&&(c&&d.__html==c.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(V4e(e,g,f,i,s),d)t.__k=[];else if(m=t.props.children,xN(e,Array.isArray(m)?m:[m],t,n,r,i&&p!=="foreignObject",o,a,o?o[0]:n.__k&&gh(n,0),s),o!=null)for(m=o.length;m--;)o[m]!=null&&yN(o[m]);s||("value"in g&&(m=g.value)!==void 0&&(m!==e.value||p==="progress"&&!m||p==="option"&&m!==f.value)&&_v(e,"value",m,f.value,!1),"checked"in g&&(m=g.checked)!==void 0&&m!==e.checked&&_v(e,"checked",m,f.checked,!1))}return e}function TN(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){qe.__e(r,n)}}function AN(e,t,n){var r,i;if(qe.unmount&&qe.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||TN(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){qe.__e(o,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&AN(r[i],t,n||typeof e.type!="function");n||e.__e==null||yN(e.__e),e.__=e.__e=e.__d=void 0}function q4e(e,t,n){return this.constructor(e,n)}function mh(e,t,n){var r,i,o;qe.__&&qe.__(e,t),i=(r=typeof n=="function")?null:n&&n.__k||t.__k,o=[],ES(t,e=(!r&&n||t).__k=F(ut,null,[e]),i||Tv,Tv,t.ownerSVGElement!==void 0,!r&&n?[n]:i?null:t.firstChild?kv.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r),kN(o,e)}function Y4e(e,t){var n={__c:t="__cC"+mN++,__:e,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,o;return this.getChildContext||(i=[],(o={})[t]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(a){this.props.value!==a.value&&i.some(CS)},this.sub=function(a){i.push(a);var s=a.componentWillUnmount;a.componentWillUnmount=function(){i.splice(i.indexOf(a),1),s&&s.call(a)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}kv=vN.slice,qe={__e:function(e,t,n,r){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),a=i.__d),a)return i.__E=i}catch(s){e=s}throw e}},hN=0,fi.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Xs({},this.state),typeof e=="function"&&(e=e(Xs({},n),this.props)),e&&Xs(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),CS(this))},fi.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),CS(this))},fi.prototype.render=ut,hh=[],Rv.__r=0,mN=0;var Uo,kS,RN,ON=[],TS=[],_N=qe.__b,IN=qe.__r,DN=qe.diffed,PN=qe.__c,MN=qe.unmount;function K4e(){for(var e;e=ON.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Iv),e.__H.__h.forEach(AS),e.__H.__h=[]}catch(t){e.__H.__h=[],qe.__e(t,e.__v)}}qe.__b=function(e){Uo=null,_N&&_N(e)},qe.__r=function(e){IN&&IN(e);var t=(Uo=e.__c).__H;t&&(kS===Uo?(t.__h=[],Uo.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=TS,n.__N=n.i=void 0})):(t.__h.forEach(Iv),t.__h.forEach(AS),t.__h=[])),kS=Uo},qe.diffed=function(e){DN&&DN(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(ON.push(t)!==1&&RN===qe.requestAnimationFrame||((RN=qe.requestAnimationFrame)||Z4e)(K4e)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==TS&&(n.__=n.__V),n.i=void 0,n.__V=TS})),kS=Uo=null},qe.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Iv),n.__h=n.__h.filter(function(r){return!r.__||AS(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],qe.__e(r,n.__v)}}),PN&&PN(e,t)},qe.unmount=function(e){MN&&MN(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Iv(r)}catch(i){t=i}}),n.__H=void 0,t&&qe.__e(t,n.__v))};var NN=typeof requestAnimationFrame=="function";function Z4e(e){var t,n=function(){clearTimeout(r),NN&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);NN&&(t=requestAnimationFrame(n))}function Iv(e){var t=Uo,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Uo=t}function AS(e){var t=Uo;e.__c=e.__(),Uo=t}function Q4e(e,t){for(var n in t)e[n]=t[n];return e}function LN(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function FN(e){this.props=e}(FN.prototype=new fi).isPureReactComponent=!0,FN.prototype.shouldComponentUpdate=function(e,t){return LN(this.props,e)||LN(this.state,t)};var jN=qe.__b;qe.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),jN&&jN(e)};var X4e=qe.__e;qe.__e=function(e,t,n,r){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}X4e(e,t,n,r)};var zN=qe.unmount;function BN(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=Q4e({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return BN(r,t,n)})),e}function HN(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return HN(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function RS(){this.__u=0,this.t=null,this.__b=null}function UN(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Dv(){this.u=null,this.o=null}qe.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),zN&&zN(e)},(RS.prototype=new fi).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var i=UN(r.__v),o=!1,a=function(){o||(o=!0,n.__R=null,i?i(s):s())};n.__R=a;var s=function(){if(!--r.__u){if(r.state.__a){var c=r.state.__a;r.__v.__k[0]=HN(c,c.__c.__P,c.__c.__O)}var d;for(r.setState({__a:r.__b=null});d=r.t.pop();)d.forceUpdate()}},l=t.__h===!0;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},RS.prototype.componentWillUnmount=function(){this.t=[]},RS.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=BN(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&F(ut,null,e.fallback);return i&&(i.__h=null),[F(ut,null,t.__a?null:e.children),i]};var WN=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function J4e(e){return this.getChildContext=function(){return e.context},e.children}function eSe(e){var t=this,n=e.i;t.componentWillUnmount=function(){mh(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,i){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),mh(F(J4e,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function tSe(e,t){var n=F(eSe,{__v:e,i:t});return n.containerInfo=t,n}(Dv.prototype=new fi).__a=function(e){var t=this,n=UN(t.__v),r=t.o.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),WN(t,e,r)):i()};n?n(o):o()}},Dv.prototype.render=function(e){this.u=null,this.o=new Map;var t=Ov(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Dv.prototype.componentDidUpdate=Dv.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){WN(e,n,t)})};var nSe=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,rSe=/^(?: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]/,iSe=typeof document<"u",oSe=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(e)};fi.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(fi.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var VN=qe.event;function aSe(){}function sSe(){return this.cancelBubble}function lSe(){return this.defaultPrevented}qe.event=function(e){return VN&&(e=VN(e)),e.persist=aSe,e.isPropagationStopped=sSe,e.isDefaultPrevented=lSe,e.nativeEvent=e};var GN={configurable:!0,get:function(){return this.class}},qN=qe.vnode;qe.vnode=function(e){var t=e.type,n=e.props,r=n;if(typeof t=="string"){var i=t.indexOf("-")===-1;for(var o in r={},n){var a=n[o];iSe&&o==="children"&&t==="noscript"||o==="value"&&"defaultValue"in n&&a==null||(o==="defaultValue"&&"value"in n&&n.value==null?o="value":o==="download"&&a===!0?a="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!oSe(n.type)?o="oninput":/^onfocus$/i.test(o)?o="onfocusin":/^onblur$/i.test(o)?o="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(o)?o=o.toLowerCase():i&&rSe.test(o)?o=o.replace(/[A-Z0-9]/g,"-$&").toLowerCase():a===null&&(a=void 0),/^oninput$/i.test(o)&&(o=o.toLowerCase(),r[o]&&(o="oninputCapture")),r[o]=a)}t=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=Ov(n.children).forEach(function(s){s.props.selected=r.value.indexOf(s.props.value)!=-1})),t=="select"&&r.defaultValue!=null&&(r.value=Ov(n.children).forEach(function(s){s.props.selected=r.multiple?r.defaultValue.indexOf(s.props.value)!=-1:r.defaultValue==s.props.value})),e.props=r,n.class!=n.className&&(GN.enumerable="className"in n,n.className!=null&&(r.class=n.className),Object.defineProperty(r,"className",GN))}e.$$typeof=nSe,qN&&qN(e)};var YN=qe.__r;qe.__r=function(e){YN&&YN(e),e.__c};const KN=[],OS=new WeakMap;typeof document<"u"&&OS.set(document,!0);function vh(e){e&&typeof document<"u"&&KN.push(ZN(document.head,e))}function uSe(e){const t=e.getRootNode();if(!OS.get(t)){OS.set(t,!0);for(const n of KN)ZN(t,n.innerText)}}function ZN(e,t){const n=document.createElement("style"),r=cSe();return r&&(n.nonce=r),n.innerText=t,e.appendChild(n),n}let _S;function cSe(){return _S===void 0&&(_S=dSe()),_S}function dSe(){const e=document.querySelector('meta[name="csp-nonce"]');if(e&&e.hasAttribute("content"))return e.getAttribute("content");const t=document.querySelector("script[nonce]");return t&&t.nonce||""}class IS{constructor(t){this.drainedOption=t,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(t){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),t==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),t))}pause(t=""){let{pauseDepths:n}=this;n[t]=(n[t]||0)+1,this.clearTimeout()}resume(t="",n){let{pauseDepths:r}=this;t in r&&(n?delete r[t]:(r[t]-=1,r[t]<=0&&delete r[t]),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 fSe(e){e.parentNode&&e.parentNode.removeChild(e)}function La(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(pSe(e,t))return e;e=e.parentElement||e.parentNode}while(e!==null&&e.nodeType===1);return null}function pSe(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector).call(e,t)}function hSe(e,t){let n=e instanceof HTMLElement?[e]:e,r=[];for(let i=0;i<n.length;i+=1){let o=n[i].querySelectorAll(t);for(let a=0;a<o.length;a+=1)r.push(o[a])}return r}const gSe=/(top|left|right|bottom|width|height)$/i;function mSe(e,t){for(let n in t)QN(e,n,t[n])}function QN(e,t,n){n==null?e.style[t]="":typeof n=="number"&&gSe.test(t)?e.style[t]=`${n}px`:e.style[t]=n}function vSe(e){var t,n;return(n=(t=e.composedPath)===null||t===void 0?void 0:t.call(e)[0])!==null&&n!==void 0?n:e.target}let XN=0;function Wo(){return XN+=1,"fc-dom-"+XN}function ySe(e,t){return n=>{let r=La(n.target,e);r&&t.call(r,n,r)}}function JN(e,t,n,r){let i=ySe(n,r);return e.addEventListener(t,i),()=>{e.removeEventListener(t,i)}}function bSe(e,t,n,r){let i;return JN(e,"mouseover",t,(o,a)=>{if(a!==i){i=a,n(o,a);let s=l=>{i=null,r(l,a),a.removeEventListener("mouseleave",s)};a.addEventListener("mouseleave",s)}})}function eL(e){return Object.assign({onClick:e},tL(e))}function tL(e){return{tabIndex:0,onKeyDown(t){(t.key==="Enter"||t.key===" ")&&(e(t),t.preventDefault())}}}let nL=0;function vu(){return nL+=1,String(nL)}function xSe(e){let t=[],n=[],r,i;for(typeof e=="string"?n=e.split(/\s*,\s*/):typeof e=="function"?n=[e]:Array.isArray(e)&&(n=e),r=0;r<n.length;r+=1)i=n[r],typeof i=="string"?t.push(i.charAt(0)==="-"?{field:i.substring(1),order:-1}:{field:i,order:1}):typeof i=="function"&&t.push({func:i});return t}function wSe(e,t,n){let r,i;for(r=0;r<n.length;r+=1)if(i=SSe(e,t,n[r]),i)return i;return 0}function SSe(e,t,n){return n.func?n.func(e,t):$Se(e[n.field],t[n.field])*(n.order||1)}function $Se(e,t){return!e&&!t?0:t==null?-1:e==null?1:typeof e=="string"||typeof t=="string"?String(e).localeCompare(String(t)):e-t}function Ed(e,t){let n=String(e);return"000".substr(0,t-n.length)+n}function yh(e,t,n){return typeof e=="function"?e(...t):typeof e=="string"?t.reduce((r,i,o)=>r.replace("$"+o,i||""),e):n}function Pv(e){return e%1===0}function CSe(e){let t=e.querySelector(".fc-scrollgrid-shrink-frame"),n=e.querySelector(".fc-scrollgrid-shrink-cushion");if(!t)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return e.getBoundingClientRect().width-t.getBoundingClientRect().width+n.getBoundingClientRect().width}const rL=["years","months","days","milliseconds"],ESe=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function yt(e,t){return typeof e=="string"?kSe(e):typeof e=="object"&&e?iL(e):typeof e=="number"?iL({[t||"milliseconds"]:e}):null}function kSe(e){let t=ESe.exec(e);if(t){let n=t[1]?-1:1;return{years:0,months:0,days:n*(t[2]?parseInt(t[2],10):0),milliseconds:n*((t[3]?parseInt(t[3],10):0)*60*60*1e3+(t[4]?parseInt(t[4],10):0)*60*1e3+(t[5]?parseInt(t[5],10):0)*1e3+(t[6]?parseInt(t[6],10):0))}}return null}function iL(e){let t={years:e.years||e.year||0,months:e.months||e.month||0,days:e.days||e.day||0,milliseconds:(e.hours||e.hour||0)*60*60*1e3+(e.minutes||e.minute||0)*60*1e3+(e.seconds||e.second||0)*1e3+(e.milliseconds||e.millisecond||e.ms||0)},n=e.weeks||e.week;return n&&(t.days+=n*7,t.specifiedWeeks=!0),t}function TSe(e,t){return e.years===t.years&&e.months===t.months&&e.days===t.days&&e.milliseconds===t.milliseconds}function DS(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function ASe(e,t){return{years:e.years-t.years,months:e.months-t.months,days:e.days-t.days,milliseconds:e.milliseconds-t.milliseconds}}function RSe(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}function OSe(e){return kd(e)/365}function _Se(e){return kd(e)/30}function kd(e){return vo(e)/864e5}function vo(e){return e.years*(365*864e5)+e.months*(30*864e5)+e.days*864e5+e.milliseconds}function PS(e,t){let n=null;for(let r=0;r<rL.length;r+=1){let i=rL[r];if(t[i]){let o=e[i]/t[i];if(!Pv(o)||n!==null&&n!==o)return null;n=o}else if(e[i])return null}return n}function MS(e){let t=e.milliseconds;if(t){if(t%1e3!==0)return{unit:"millisecond",value:t};if(t%(1e3*60)!==0)return{unit:"second",value:t/1e3};if(t%(1e3*60*60)!==0)return{unit:"minute",value:t/(1e3*60)};if(t)return{unit:"hour",value:t/(1e3*60*60)}}return e.days?e.specifiedWeeks&&e.days%7===0?{unit:"week",value:e.days/7}:{unit:"day",value:e.days}:e.months?{unit:"month",value:e.months}:e.years?{unit:"year",value:e.years}:{unit:"millisecond",value:0}}function Js(e,t,n){if(e===t)return!0;let r=e.length,i;if(r!==t.length)return!1;for(i=0;i<r;i+=1)if(!(n?n(e[i],t[i]):e[i]===t[i]))return!1;return!0}const ISe=["sun","mon","tue","wed","thu","fri","sat"];function Mv(e,t){let n=nl(e);return n[2]+=t*7,Wr(n)}function xn(e,t){let n=nl(e);return n[2]+=t,Wr(n)}function el(e,t){let n=nl(e);return n[6]+=t,Wr(n)}function oL(e,t){return tl(e,t)/7}function tl(e,t){return(t.valueOf()-e.valueOf())/(1e3*60*60*24)}function DSe(e,t){return(t.valueOf()-e.valueOf())/(1e3*60*60)}function PSe(e,t){return(t.valueOf()-e.valueOf())/(1e3*60)}function MSe(e,t){return(t.valueOf()-e.valueOf())/1e3}function NSe(e,t){let n=Bt(e),r=Bt(t);return{years:0,months:0,days:Math.round(tl(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}function LSe(e,t){let n=Nv(e,t);return n!==null&&n%7===0?n/7:null}function Nv(e,t){return rl(e)===rl(t)?Math.round(tl(e,t)):null}function Bt(e){return Wr([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function FSe(e){return Wr([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}function jSe(e){return Wr([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}function zSe(e){return Wr([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}function BSe(e,t,n){let r=e.getUTCFullYear(),i=NS(e,r,t,n);if(i<1)return NS(e,r-1,t,n);let o=NS(e,r+1,t,n);return o>=1?Math.min(i,o):i}function NS(e,t,n,r){let i=Wr([t,0,1+HSe(t,n,r)]),o=Bt(e),a=Math.round(tl(i,o));return Math.floor(a/7)+1}function HSe(e,t,n){let r=7+t-n;return-((7+Wr([e,0,r]).getUTCDay()-t)%7)+r-1}function aL(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function sL(e){return new Date(e[0],e[1]||0,e[2]==null?1:e[2],e[3]||0,e[4]||0,e[5]||0)}function nl(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function Wr(e){return e.length===1&&(e=e.concat([0])),new Date(Date.UTC(...e))}function lL(e){return!isNaN(e.valueOf())}function rl(e){return e.getUTCHours()*1e3*60*60+e.getUTCMinutes()*1e3*60+e.getUTCSeconds()*1e3+e.getUTCMilliseconds()}function uL(e,t,n=!1){let r=e.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(t==null?r=r.replace("Z",""):t!==0&&(r=r.replace("Z",FS(t,!0)))),r}function bh(e){return e.toISOString().replace(/T.*$/,"")}function LS(e){return e.toISOString().match(/^\d{4}-\d{2}/)[0]}function USe(e){return Ed(e.getUTCHours(),2)+":"+Ed(e.getUTCMinutes(),2)+":"+Ed(e.getUTCSeconds(),2)}function FS(e,t=!1){let n=e<0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=Math.round(r%60);return t?`${n+Ed(i,2)}:${Ed(o,2)}`:`GMT${n}${i}${o?`:${Ed(o,2)}`:""}`}function Le(e,t,n){let r,i;return function(...o){if(!r)i=e.apply(this,o);else if(!Js(r,o)){n&&n(i);let a=e.apply(this,o);(!t||!t(a,i))&&(i=a)}return r=o,i}}function Lv(e,t,n){let r,i;return o=>{if(!r)i=e.call(this,o);else if(!pi(r,o)){n&&n(i);let a=e.call(this,o);(!t||!t(a,i))&&(i=a)}return r=o,i}}const cL={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Fv={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},jv=/\s*([ap])\.?m\.?/i,WSe=/,/g,VSe=/\s+/g,GSe=/\u200e/g,qSe=/UTC|GMT/;class YSe{constructor(t){let n={},r={},i=0;for(let o in t)o in cL?(r[o]=t[o],i=Math.max(cL[o],i)):(n[o]=t[o],o in Fv&&(i=Math.max(Fv[o],i)));this.standardDateProps=n,this.extendedSettings=r,this.severity=i,this.buildFormattingFunc=Le(dL)}format(t,n){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,n)(t)}formatRange(t,n,r,i){let{standardDateProps:o,extendedSettings:a}=this,s=e8e(t.marker,n.marker,r.calendarSystem);if(!s)return this.format(t,r);let l=s;l>1&&(o.year==="numeric"||o.year==="2-digit")&&(o.month==="numeric"||o.month==="2-digit")&&(o.day==="numeric"||o.day==="2-digit")&&(l=1);let c=this.format(t,r),d=this.format(n,r);if(c===d)return c;let f=t8e(o,l),g=dL(f,a,r),p=g(t),m=g(n),v=n8e(c,p,d,m),w=a.separator||i||r.defaultSeparator||"";return v?v.before+p+w+m+v.after:c+w+d}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 dL(e,t,n){let r=Object.keys(e).length;return r===1&&e.timeZoneName==="short"?i=>FS(i.timeZoneOffset):r===0&&t.week?i=>JSe(n.computeWeekNumber(i.marker),n.weekText,n.weekTextLong,n.locale,t.week):KSe(e,t,n)}function KSe(e,t,n){e=Object.assign({},e),t=Object.assign({},t),ZSe(e,t),e.timeZone="UTC";let r=new Intl.DateTimeFormat(n.locale.codes,e),i;if(t.omitZeroMinute){let o=Object.assign({},e);delete o.minute,i=new Intl.DateTimeFormat(n.locale.codes,o)}return o=>{let{marker:a}=o,s;i&&!a.getUTCMinutes()?s=i:s=r;let l=s.format(a);return QSe(l,o,e,t,n)}}function ZSe(e,t){e.timeZoneName&&(e.hour||(e.hour="2-digit"),e.minute||(e.minute="2-digit")),e.timeZoneName==="long"&&(e.timeZoneName="short"),t.omitZeroMinute&&(e.second||e.millisecond)&&delete t.omitZeroMinute}function QSe(e,t,n,r,i){return e=e.replace(GSe,""),n.timeZoneName==="short"&&(e=XSe(e,i.timeZone==="UTC"||t.timeZoneOffset==null?"UTC":FS(t.timeZoneOffset))),r.omitCommas&&(e=e.replace(WSe,"").trim()),r.omitZeroMinute&&(e=e.replace(":00","")),r.meridiem===!1?e=e.replace(jv,"").trim():r.meridiem==="narrow"?e=e.replace(jv,(o,a)=>a.toLocaleLowerCase()):r.meridiem==="short"?e=e.replace(jv,(o,a)=>`${a.toLocaleLowerCase()}m`):r.meridiem==="lowercase"&&(e=e.replace(jv,o=>o.toLocaleLowerCase())),e=e.replace(VSe," "),e=e.trim(),e}function XSe(e,t){let n=!1;return e=e.replace(qSe,()=>(n=!0,t)),n||(e+=` ${t}`),e}function JSe(e,t,n,r,i){let o=[];return i==="long"?o.push(n):(i==="short"||i==="narrow")&&o.push(t),(i==="long"||i==="short")&&o.push(" "),o.push(r.simpleNumberFormat.format(e)),r.options.direction==="rtl"&&o.reverse(),o.join("")}function e8e(e,t,n){return n.getMarkerYear(e)!==n.getMarkerYear(t)?5:n.getMarkerMonth(e)!==n.getMarkerMonth(t)?4:n.getMarkerDay(e)!==n.getMarkerDay(t)?2:rl(e)!==rl(t)?1:0}function t8e(e,t){let n={};for(let r in e)(!(r in Fv)||Fv[r]<=t)&&(n[r]=e[r]);return n}function n8e(e,t,n,r){let i=0;for(;i<e.length;){let o=e.indexOf(t,i);if(o===-1)break;let a=e.substr(0,o);i=o+t.length;let s=e.substr(i),l=0;for(;l<n.length;){let c=n.indexOf(r,l);if(c===-1)break;let d=n.substr(0,c);l=c+r.length;let f=n.substr(l);if(a===d&&s===f)return{before:a,after:s}}}return null}function fL(e,t){let n=t.markerToArray(e.marker);return{marker:e.marker,timeZoneOffset:e.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 zv(e,t,n,r){let i=fL(e,n.calendarSystem),o=t?fL(t,n.calendarSystem):null;return{date:i,start:i,end:o,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}class r8e{constructor(t){this.cmdStr=t}format(t,n,r){return n.cmdFormatter(this.cmdStr,zv(t,null,n,r))}formatRange(t,n,r,i){return r.cmdFormatter(this.cmdStr,zv(t,n,r,i))}}class i8e{constructor(t){this.func=t}format(t,n,r){return this.func(zv(t,null,n,r))}formatRange(t,n,r,i){return this.func(zv(t,n,r,i))}}function Ot(e){return typeof e=="object"&&e?new YSe(e):typeof e=="string"?new r8e(e):typeof e=="function"?new i8e(e):null}const pL={navLinkDayClick:re,navLinkWeekClick:re,duration:yt,bootstrapFontAwesome:re,buttonIcons:re,customButtons:re,defaultAllDayEventDuration:yt,defaultTimedEventDuration:yt,nextDayThreshold:yt,scrollTime:yt,scrollTimeReset:Boolean,slotMinTime:yt,slotMaxTime:yt,dayPopoverFormat:Ot,slotDuration:yt,snapDuration:yt,headerToolbar:re,footerToolbar:re,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:Ot,dayHeaderClassNames:re,dayHeaderContent:re,dayHeaderDidMount:re,dayHeaderWillUnmount:re,dayCellClassNames:re,dayCellContent:re,dayCellDidMount:re,dayCellWillUnmount:re,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:re,weekNumbers:Boolean,weekNumberClassNames:re,weekNumberContent:re,weekNumberDidMount:re,weekNumberWillUnmount:re,editable:Boolean,viewClassNames:re,viewDidMount:re,viewWillUnmount:re,nowIndicator:Boolean,nowIndicatorClassNames:re,nowIndicatorContent:re,nowIndicatorDidMount:re,nowIndicatorWillUnmount:re,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:re,locale:re,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:re,eventOrder:xSe,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:re,contentHeight:re,direction:String,weekNumberFormat:Ot,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:re,initialDate:re,now:re,eventDataTransform:re,stickyHeaderDates:re,stickyFooterScrollbar:re,viewHeight:re,defaultAllDay:Boolean,eventSourceFailure:re,eventSourceSuccess:re,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:re,eventConstraint:re,eventAllow:re,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:re,eventContent:re,eventDidMount:re,eventWillUnmount:re,selectConstraint:re,selectOverlap:re,selectAllow:re,droppable:Boolean,unselectCancel:String,slotLabelFormat:re,slotLaneClassNames:re,slotLaneContent:re,slotLaneDidMount:re,slotLaneWillUnmount:re,slotLabelClassNames:re,slotLabelContent:re,slotLabelDidMount:re,slotLabelWillUnmount:re,dayMaxEvents:re,dayMaxEventRows:re,dayMinWidth:Number,slotLabelInterval:yt,allDayText:String,allDayClassNames:re,allDayContent:re,allDayDidMount:re,allDayWillUnmount:re,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:Ot,rerenderDelay:Number,moreLinkText:re,moreLinkHint:re,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:re,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:yt,hiddenDays:re,fixedWeekCount:Boolean,validRange:re,visibleRange:re,titleFormat:re,eventInteractive:Boolean,noEventsText:String,viewHint:re,navLinkHint:re,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:re,moreLinkClassNames:re,moreLinkContent:re,moreLinkDidMount:re,moreLinkWillUnmount:re,monthStartFormat:Ot,handleCustomRendering:re,customRenderingMetaMap:re,customRenderingReplacesEl:Boolean},xh={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"}},hL={datesSet:re,eventsSet:re,eventAdd:re,eventChange:re,eventRemove:re,windowResize:re,eventClick:re,eventMouseEnter:re,eventMouseLeave:re,select:re,unselect:re,loading:re,_unmount:re,_beforeprint:re,_afterprint:re,_noEventDrop:re,_noEventResize:re,_resize:re,_scrollRequest:re},gL={buttonText:re,buttonHints:re,views:re,plugins:re,initialEvents:re,events:re,eventSources:re},yu={headerToolbar:bu,footerToolbar:bu,buttonText:bu,buttonHints:bu,buttonIcons:bu,dateIncrement:bu,plugins:Bv,events:Bv,eventSources:Bv,resources:Bv};function bu(e,t){return typeof e=="object"&&typeof t=="object"&&e&&t?pi(e,t):e===t}function Bv(e,t){return Array.isArray(e)&&Array.isArray(t)?Js(e,t):e===t}const o8e={type:String,component:re,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:re,usesMinMaxTime:Boolean,classNames:re,content:re,didMount:re,willUnmount:re};function jS(e){return BS(e,yu)}function zS(e,t){let n={},r={};for(let i in t)i in e&&(n[i]=t[i](e[i]));for(let i in e)i in t||(r[i]=e[i]);return{refined:n,extra:r}}function re(e){return e}const{hasOwnProperty:Hv}=Object.prototype;function BS(e,t){let n={};if(t){for(let r in t)if(t[r]===bu){let i=[];for(let o=e.length-1;o>=0;o-=1){let a=e[o][r];if(typeof a=="object"&&a)i.unshift(a);else if(a!==void 0){n[r]=a;break}}i.length&&(n[r]=BS(i))}}for(let r=e.length-1;r>=0;r-=1){let i=e[r];for(let o in i)o in n||(n[o]=i[o])}return n}function Td(e,t){let n={};for(let r in e)t(e[r],r)&&(n[r]=e[r]);return n}function xu(e,t){let n={};for(let r in e)n[r]=t(e[r],r);return n}function mL(e){let t={};for(let n of e)t[n]=!0;return t}function HS(e){let t=[];for(let n in e)t.push(e[n]);return t}function pi(e,t){if(e===t)return!0;for(let n in e)if(Hv.call(e,n)&&!(n in t))return!1;for(let n in t)if(Hv.call(t,n)&&e[n]!==t[n])return!1;return!0}const a8e=/^on[A-Z]/;function s8e(e,t){const n=US(e,t);for(let r of n)if(!a8e.test(r))return!1;return!0}function US(e,t){let n=[];for(let r in e)Hv.call(e,r)&&(r in t||n.push(r));for(let r in t)Hv.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}function WS(e,t,n={}){if(e===t)return!0;for(let r in t)if(!(r in e&&l8e(e[r],t[r],n[r])))return!1;for(let r in e)if(!(r in t))return!1;return!0}function l8e(e,t,n){return e===t||n===!0?!0:n?n(e,t):!1}function u8e(e,t=0,n,r=1){let i=[];n==null&&(n=Object.keys(e).length);for(let o=t;o<n;o+=r){let a=e[o];a!==void 0&&i.push(a)}return i}let vL={};function c8e(e,t){vL[e]=t}function d8e(e){return new vL[e]}class f8e{getMarkerYear(t){return t.getUTCFullYear()}getMarkerMonth(t){return t.getUTCMonth()}getMarkerDay(t){return t.getUTCDate()}arrayToMarker(t){return Wr(t)}markerToArray(t){return nl(t)}}c8e("gregory",f8e);const p8e=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function h8e(e){let t=p8e.exec(e);if(t){let n=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?+`0.${t[12]}`*1e3:0));if(lL(n)){let r=null;return t[13]&&(r=(t[15]==="-"?-1:1)*(Number(t[16]||0)*60+Number(t[18]||0))),{marker:n,isTimeUnspecified:!t[6],timeZoneOffset:r}}}return null}class g8e{constructor(t){let n=this.timeZone=t.timeZone,r=n!=="local"&&n!=="UTC";t.namedTimeZoneImpl&&r&&(this.namedTimeZoneImpl=new t.namedTimeZoneImpl(n)),this.canComputeOffset=!!(!r||this.namedTimeZoneImpl),this.calendarSystem=d8e(t.calendarSystem),this.locale=t.locale,this.weekDow=t.locale.week.dow,this.weekDoy=t.locale.week.doy,t.weekNumberCalculation==="ISO"&&(this.weekDow=1,this.weekDoy=4),typeof t.firstDay=="number"&&(this.weekDow=t.firstDay),typeof t.weekNumberCalculation=="function"&&(this.weekNumberFunc=t.weekNumberCalculation),this.weekText=t.weekText!=null?t.weekText:t.locale.options.weekText,this.weekTextLong=(t.weekTextLong!=null?t.weekTextLong:t.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=t.cmdFormatter,this.defaultSeparator=t.defaultSeparator}createMarker(t){let n=this.createMarkerMeta(t);return n===null?null:n.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker(new Date().valueOf()):Wr(aL(new Date))}createMarkerMeta(t){if(typeof t=="string")return this.parse(t);let n=null;return typeof t=="number"?n=this.timestampToMarker(t):t instanceof Date?(t=t.valueOf(),isNaN(t)||(n=this.timestampToMarker(t))):Array.isArray(t)&&(n=Wr(t)),n===null||!lL(n)?null:{marker:n,isTimeUnspecified:!1,forcedTzo:null}}parse(t){let n=h8e(t);if(n===null)return null;let{marker:r}=n,i=null;return n.timeZoneOffset!==null&&(this.canComputeOffset?r=this.timestampToMarker(r.valueOf()-n.timeZoneOffset*60*1e3):i=n.timeZoneOffset),{marker:r,isTimeUnspecified:n.isTimeUnspecified,forcedTzo:i}}getYear(t){return this.calendarSystem.getMarkerYear(t)}getMonth(t){return this.calendarSystem.getMarkerMonth(t)}add(t,n){let r=this.calendarSystem.markerToArray(t);return r[0]+=n.years,r[1]+=n.months,r[2]+=n.days,r[6]+=n.milliseconds,this.calendarSystem.arrayToMarker(r)}subtract(t,n){let r=this.calendarSystem.markerToArray(t);return r[0]-=n.years,r[1]-=n.months,r[2]-=n.days,r[6]-=n.milliseconds,this.calendarSystem.arrayToMarker(r)}addYears(t,n){let r=this.calendarSystem.markerToArray(t);return r[0]+=n,this.calendarSystem.arrayToMarker(r)}addMonths(t,n){let r=this.calendarSystem.markerToArray(t);return r[1]+=n,this.calendarSystem.arrayToMarker(r)}diffWholeYears(t,n){let{calendarSystem:r}=this;return rl(t)===rl(n)&&r.getMarkerDay(t)===r.getMarkerDay(n)&&r.getMarkerMonth(t)===r.getMarkerMonth(n)?r.getMarkerYear(n)-r.getMarkerYear(t):null}diffWholeMonths(t,n){let{calendarSystem:r}=this;return rl(t)===rl(n)&&r.getMarkerDay(t)===r.getMarkerDay(n)?r.getMarkerMonth(n)-r.getMarkerMonth(t)+(r.getMarkerYear(n)-r.getMarkerYear(t))*12:null}greatestWholeUnit(t,n){let r=this.diffWholeYears(t,n);return r!==null?{unit:"year",value:r}:(r=this.diffWholeMonths(t,n),r!==null?{unit:"month",value:r}:(r=LSe(t,n),r!==null?{unit:"week",value:r}:(r=Nv(t,n),r!==null?{unit:"day",value:r}:(r=DSe(t,n),Pv(r)?{unit:"hour",value:r}:(r=PSe(t,n),Pv(r)?{unit:"minute",value:r}:(r=MSe(t,n),Pv(r)?{unit:"second",value:r}:{unit:"millisecond",value:n.valueOf()-t.valueOf()}))))))}countDurationsBetween(t,n,r){let i;return r.years&&(i=this.diffWholeYears(t,n),i!==null)?i/OSe(r):r.months&&(i=this.diffWholeMonths(t,n),i!==null)?i/_Se(r):r.days&&(i=Nv(t,n),i!==null)?i/kd(r):(n.valueOf()-t.valueOf())/vo(r)}startOf(t,n){return n==="year"?this.startOfYear(t):n==="month"?this.startOfMonth(t):n==="week"?this.startOfWeek(t):n==="day"?Bt(t):n==="hour"?FSe(t):n==="minute"?jSe(t):n==="second"?zSe(t):null}startOfYear(t){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(t)])}startOfMonth(t){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(t),this.calendarSystem.getMarkerMonth(t)])}startOfWeek(t){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(t),this.calendarSystem.getMarkerMonth(t),t.getUTCDate()-(t.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(t){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(t)):BSe(t,this.weekDow,this.weekDoy)}format(t,n,r={}){return n.format({marker:t,timeZoneOffset:r.forcedTzo!=null?r.forcedTzo:this.offsetForMarker(t)},this)}formatRange(t,n,r,i={}){return i.isEndExclusive&&(n=el(n,-1)),r.formatRange({marker:t,timeZoneOffset:i.forcedStartTzo!=null?i.forcedStartTzo:this.offsetForMarker(t)},{marker:n,timeZoneOffset:i.forcedEndTzo!=null?i.forcedEndTzo:this.offsetForMarker(n)},this,i.defaultSeparator)}formatIso(t,n={}){let r=null;return n.omitTimeZoneOffset||(n.forcedTzo!=null?r=n.forcedTzo:r=this.offsetForMarker(t)),uL(t,r,n.omitTime)}timestampToMarker(t){return this.timeZone==="local"?Wr(aL(new Date(t))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(t):Wr(this.namedTimeZoneImpl.timestampToArray(t))}offsetForMarker(t){return this.timeZone==="local"?-sL(nl(t)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(nl(t)):null}toDate(t,n){return this.timeZone==="local"?sL(nl(t)):this.timeZone==="UTC"?new Date(t.valueOf()):this.namedTimeZoneImpl?new Date(t.valueOf()-this.namedTimeZoneImpl.offsetForArray(nl(t))*1e3*60):new Date(t.valueOf()-(n||0))}}class wh{constructor(t){this.iconOverrideOption&&this.setIconOverride(t[this.iconOverrideOption])}setIconOverride(t){let n,r;if(typeof t=="object"&&t){n=Object.assign({},this.iconClasses);for(r in t)n[r]=this.applyIconOverridePrefix(t[r]);this.iconClasses=n}else t===!1&&(this.iconClasses={})}applyIconOverridePrefix(t){let n=this.iconOverridePrefix;return n&&t.indexOf(n)!==0&&(t=n+t),t}getClass(t){return this.classes[t]||""}getIconClass(t,n){let r;return n&&this.rtlIconClasses?r=this.rtlIconClasses[t]||this.iconClasses[t]:r=this.iconClasses[t],r?`${this.baseIconClass} ${r}`:""}getCustomButtonIconClass(t){let n;return this.iconOverrideCustomButtonOption&&(n=t[this.iconOverrideCustomButtonOption],n)?`${this.baseIconClass} ${this.applyIconOverridePrefix(n)}`:""}}wh.prototype.classes={},wh.prototype.iconClasses={},wh.prototype.baseIconClass="",wh.prototype.iconOverridePrefix="";function yL(e){e();let t=qe.debounceRendering,n=[];function r(i){n.push(i)}for(qe.debounceRendering=r,mh(F(m8e,{}),document.createElement("div"));n.length;)n.shift()();qe.debounceRendering=t}class m8e extends fi{render(){return F("div",{})}componentDidMount(){this.setState({})}}function bL(e){let t=Y4e(e),n=t.Provider;return t.Provider=function(){let r=!this.getChildContext,i=n.apply(this,arguments);if(r){let o=[];this.shouldComponentUpdate=a=>{this.props.value!==a.value&&o.forEach(s=>{s.context=a.value,s.forceUpdate()})},this.sub=a=>{o.push(a);let s=a.componentWillUnmount;a.componentWillUnmount=()=>{o.splice(o.indexOf(a),1),s&&s.call(a)}}}return i},t}class v8e{constructor(t,n,r,i){this.execFunc=t,this.emitter=n,this.scrollTime=r,this.scrollTimeReset=i,this.handleScrollRequest=o=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},o),this.drain()},n.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(t){t&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const Fa=bL({});function y8e(e,t,n,r,i,o,a,s,l,c,d,f,g){return{dateEnv:i,options:n,pluginHooks:a,emitter:c,dispatch:s,getCurrentData:l,calendarApi:d,viewSpec:e,viewApi:t,dateProfileGenerator:r,theme:o,isRtl:n.direction==="rtl",addResizeHandler(p){c.on("_resize",p)},removeResizeHandler(p){c.off("_resize",p)},createScrollResponder(p){return new v8e(p,c,yt(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:f,unregisterInteractiveComponent:g}}class wu extends fi{shouldComponentUpdate(t,n){return this.debug&&console.log(US(t,this.props),US(n,this.state)),!WS(this.props,t,this.propEquality)||!WS(this.state,n,this.stateEquality)}safeSetState(t){WS(this.state,Object.assign(Object.assign({},this.state),t),this.stateEquality)||this.setState(t)}}wu.addPropsEquality=b8e,wu.addStateEquality=x8e,wu.contextType=Fa,wu.prototype.propEquality={},wu.prototype.stateEquality={};class bt extends wu{}bt.contextType=Fa;function b8e(e){let t=Object.create(this.prototype.propEquality);Object.assign(t,e),this.prototype.propEquality=t}function x8e(e){let t=Object.create(this.prototype.stateEquality);Object.assign(t,e),this.prototype.stateEquality=t}function Vo(e,t){typeof e=="function"?e(t):e&&(e.current=t)}class VS extends bt{constructor(){super(...arguments),this.id=vu(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=t=>{this.props.elRef&&Vo(this.props.elRef,t)}}render(){const{props:t,context:n}=this,{options:r}=n,{customGenerator:i,defaultGenerator:o,renderProps:a}=t,s=wL(t);let l=!1,c,d=[],f;if(i!=null){const g=typeof i=="function"?i(a,F):i;if(g===!0)l=!0;else if(r.handleCustomRendering)f=g;else{const p=typeof g=="object";p&&"html"in g?s.dangerouslySetInnerHTML={__html:g.html}:p&&"domNodes"in g?d=Array.prototype.slice.call(g.domNodes):c=g}}else l=!xL(t.generatorName,r);return l&&o&&(c=o(a)),this.queuedDomNodes=d,this.currentGeneratorMeta=f,F(t.elTag,s,c)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(t){var n;const{props:r,context:i}=this,{handleCustomRendering:o,customRenderingMetaMap:a}=i.options;if(o){const s=(n=this.currentGeneratorMeta)!==null&&n!==void 0?n:a==null?void 0:a[r.generatorName];s&&o(Object.assign({id:this.id,isActive:t,containerEl:this.base,reportNewContainerEl:this.handleEl,generatorMeta:s},r))}}applyQueueudDomNodes(){const{queuedDomNodes:t,currentDomNodes:n}=this,r=this.base;if(!Js(t,n)){n.forEach(fSe);for(let i of t)r.appendChild(i);this.currentDomNodes=t}}}VS.addPropsEquality({elClasses:Js,elStyle:pi,elAttrs:s8e,renderProps:pi});function xL(e,t){var n;return!!(t.handleCustomRendering&&e&&(!((n=t.customRenderingMetaMap)===null||n===void 0)&&n[e]))}function wL(e,t){const n=Object.assign(Object.assign({},e.elAttrs),{ref:e.elRef});return(e.elClasses||t)&&(n.className=(e.elClasses||[]).concat(t||[]).concat(n.className||[]).filter(Boolean).join(" ")),e.elStyle&&(n.style=e.elStyle),n}const SL=bL(0);class hr extends fi{constructor(){super(...arguments),this.InnerContent=w8e.bind(void 0,this)}render(){const{props:t}=this,n=S8e(t.classNameGenerator,t.renderProps);if(t.children){const r=wL(t,n),i=t.children(this.InnerContent,t.renderProps,r);return t.elTag?F(t.elTag,r,i):i}else return F(VS,Object.assign(Object.assign({},t),{elTag:t.elTag||"div",elClasses:(t.elClasses||[]).concat(n),renderId:this.context}))}componentDidMount(){var t,n;(n=(t=this.props).didMount)===null||n===void 0||n.call(t,Object.assign(Object.assign({},this.props.renderProps),{el:this.base}))}componentWillUnmount(){var t,n;(n=(t=this.props).willUnmount)===null||n===void 0||n.call(t,Object.assign(Object.assign({},this.props.renderProps),{el:this.base}))}}hr.contextType=SL;function w8e(e,t){const n=e.props;return F(VS,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:e.context},t))}function S8e(e,t){const n=typeof e=="function"?e(t):e||[];return typeof n=="string"?[n]:n}class Ad extends bt{render(){let{props:t,context:n}=this,{options:r}=n,i={view:n.viewApi};return F(hr,Object.assign({},t,{elTag:t.elTag||"div",elClasses:[...$L(t.viewSpec),...t.elClasses||[]],renderProps:i,classNameGenerator:r.viewClassNames,generatorName:void 0,didMount:r.viewDidMount,willUnmount:r.viewWillUnmount}),()=>t.children)}}function $L(e){return[`fc-${e.type}-view`,"fc-view"]}function $8e(e,t){let n=null,r=null;return e.start&&(n=t.createMarker(e.start)),e.end&&(r=t.createMarker(e.end)),!n&&!r||n&&r&&r<n?null:{start:n,end:r}}function CL(e,t){let n=[],{start:r}=t,i,o;for(e.sort(C8e),i=0;i<e.length;i+=1)o=e[i],o.start>r&&n.push({start:r,end:o.start}),o.end>r&&(r=o.end);return r<t.end&&n.push({start:r,end:t.end}),n}function C8e(e,t){return e.start.valueOf()-t.start.valueOf()}function Go(e,t){let{start:n,end:r}=e,i=null;return t.start!==null&&(n===null?n=t.start:n=new Date(Math.max(n.valueOf(),t.start.valueOf()))),t.end!=null&&(r===null?r=t.end:r=new Date(Math.min(r.valueOf(),t.end.valueOf()))),(n===null||r===null||n<r)&&(i={start:n,end:r}),i}function E8e(e,t){return(e.end===null||t.start===null||e.end>t.start)&&(e.start===null||t.end===null||e.start<t.end)}function ja(e,t){return(e.start===null||t>=e.start)&&(e.end===null||t<e.end)}function k8e(e,t){return t.start!=null&&e<t.start?t.start:t.end!=null&&e>=t.end?new Date(t.end.valueOf()-1):e}function EL(e){let t=Math.floor(tl(e.start,e.end))||1,n=Bt(e.start),r=xn(n,t);return{start:n,end:r}}function GS(e,t=yt(0)){let n=null,r=null;if(e.end){r=Bt(e.end);let i=e.end.valueOf()-r.valueOf();i&&i>=vo(t)&&(r=xn(r,1))}return e.start&&(n=Bt(e.start),r&&r<=n&&(r=xn(n,1))),{start:n,end:r}}function T8e(e){let t=GS(e);return tl(t.start,t.end)>1}function Uv(e,t,n,r){return r==="year"?yt(n.diffWholeYears(e,t),"year"):r==="month"?yt(n.diffWholeMonths(e,t),"month"):NSe(e,t)}function A8e(e,t){switch(t.type){case"CHANGE_DATE":return t.dateMarker;default:return e}}function R8e(e,t){let n=e.initialDate;return n!=null?t.createMarker(n):Sh(e.now,t)}function Sh(e,t){return typeof e=="function"&&(e=e()),e==null?t.createNowMarker():t.createMarker(e)}class qS{constructor(t){this.props=t,this.nowDate=Sh(t.nowInput,t.dateEnv),this.initHiddenDays()}buildPrev(t,n,r){let{dateEnv:i}=this.props,o=i.subtract(i.startOf(n,t.currentRangeUnit),t.dateIncrement);return this.build(o,-1,r)}buildNext(t,n,r){let{dateEnv:i}=this.props,o=i.add(i.startOf(n,t.currentRangeUnit),t.dateIncrement);return this.build(o,1,r)}build(t,n,r=!0){let{props:i}=this,o,a,s,l,c,d;return o=this.buildValidRange(),o=this.trimHiddenDays(o),r&&(t=k8e(t,o)),a=this.buildCurrentRangeInfo(t,n),s=/^(year|month|week|day)$/.test(a.unit),l=this.buildRenderRange(this.trimHiddenDays(a.range),a.unit,s),l=this.trimHiddenDays(l),c=l,i.showNonCurrentDates||(c=Go(c,a.range)),c=this.adjustActiveRange(c),c=Go(c,o),d=E8e(a.range,o),ja(l,t)||(t=l.start),{currentDate:t,validRange:o,currentRange:a.range,currentRangeUnit:a.unit,isRangeAllDay:s,activeRange:c,renderRange:l,slotMinTime:i.slotMinTime,slotMaxTime:i.slotMaxTime,isValid:d,dateIncrement:this.buildDateIncrement(a.duration)}}buildValidRange(){let t=this.props.validRangeInput,n=typeof t=="function"?t.call(this.props.calendarApi,this.nowDate):t;return this.refineRange(n)||{start:null,end:null}}buildCurrentRangeInfo(t,n){let{props:r}=this,i=null,o=null,a=null,s;return r.duration?(i=r.duration,o=r.durationUnit,a=this.buildRangeFromDuration(t,n,i,o)):(s=this.props.dayCount)?(o="day",a=this.buildRangeFromDayCount(t,n,s)):(a=this.buildCustomVisibleRange(t))?o=r.dateEnv.greatestWholeUnit(a.start,a.end).unit:(i=this.getFallbackDuration(),o=MS(i).unit,a=this.buildRangeFromDuration(t,n,i,o)),{duration:i,unit:o,range:a}}getFallbackDuration(){return yt({day:1})}adjustActiveRange(t){let{dateEnv:n,usesMinMaxTime:r,slotMinTime:i,slotMaxTime:o}=this.props,{start:a,end:s}=t;return r&&(kd(i)<0&&(a=Bt(a),a=n.add(a,i)),kd(o)>1&&(s=Bt(s),s=xn(s,-1),s=n.add(s,o))),{start:a,end:s}}buildRangeFromDuration(t,n,r,i){let{dateEnv:o,dateAlignment:a}=this.props,s,l,c;if(!a){let{dateIncrement:f}=this.props;f&&vo(f)<vo(r)?a=MS(f).unit:a=i}kd(r)<=1&&this.isHiddenDay(s)&&(s=this.skipHiddenDays(s,n),s=Bt(s));function d(){s=o.startOf(t,a),l=o.add(s,r),c={start:s,end:l}}return d(),this.trimHiddenDays(c)||(t=this.skipHiddenDays(t,n),d()),c}buildRangeFromDayCount(t,n,r){let{dateEnv:i,dateAlignment:o}=this.props,a=0,s=t,l;o&&(s=i.startOf(s,o)),s=Bt(s),s=this.skipHiddenDays(s,n),l=s;do l=xn(l,1),this.isHiddenDay(l)||(a+=1);while(a<r);return{start:s,end:l}}buildCustomVisibleRange(t){let{props:n}=this,r=n.visibleRangeInput,i=typeof r=="function"?r.call(n.calendarApi,n.dateEnv.toDate(t)):r,o=this.refineRange(i);return o&&(o.start==null||o.end==null)?null:o}buildRenderRange(t,n,r){return t}buildDateIncrement(t){let{dateIncrement:n}=this.props,r;return n||((r=this.props.dateAlignment)?yt(1,r):t||yt({days:1}))}refineRange(t){if(t){let n=$8e(t,this.props.dateEnv);return n&&(n=GS(n)),n}return null}initHiddenDays(){let t=this.props.hiddenDays||[],n=[],r=0,i;for(this.props.weekends===!1&&t.push(0,6),i=0;i<7;i+=1)(n[i]=t.indexOf(i)!==-1)||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n}trimHiddenDays(t){let{start:n,end:r}=t;return n&&(n=this.skipHiddenDays(n)),r&&(r=this.skipHiddenDays(r,-1,!0)),n==null||r==null||n<r?{start:n,end:r}:null}isHiddenDay(t){return t instanceof Date&&(t=t.getUTCDay()),this.isHiddenDayHash[t]}skipHiddenDays(t,n=1,r=!1){for(;this.isHiddenDayHash[(t.getUTCDay()+(r?n:0)+7)%7];)t=xn(t,n);return t}}function YS(e,t,n,r){return{instanceId:vu(),defId:e,range:t,forcedStartTzo:n??null,forcedEndTzo:r??null}}function O8e(e,t,n,r){for(let i=0;i<r.length;i+=1){let o=r[i].parse(e,n);if(o){let{allDay:a}=e;return a==null&&(a=t,a==null&&(a=o.allDayGuess,a==null&&(a=!1))),{allDay:a,duration:o.duration,typeData:o.typeData,typeId:i}}}return null}function $h(e,t,n){let{dateEnv:r,pluginHooks:i,options:o}=n,{defs:a,instances:s}=e;s=Td(s,l=>!a[l.defId].recurringDef);for(let l in a){let c=a[l];if(c.recurringDef){let{duration:d}=c.recurringDef;d||(d=c.allDay?o.defaultAllDayEventDuration:o.defaultTimedEventDuration);let f=_8e(c,d,t,r,i.recurringTypes);for(let g of f){let p=YS(l,{start:g,end:r.add(g,d)});s[p.instanceId]=p}}}return{defs:a,instances:s}}function _8e(e,t,n,r,i){let a=i[e.recurringDef.typeId].expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(a=a.map(Bt)),a}const Wv={id:String,groupId:String,title:String,url:String,interactive:Boolean},kL={start:re,end:re,date:re,allDay:Boolean},I8e=Object.assign(Object.assign(Object.assign({},Wv),kL),{extendedProps:re});function TL(e,t,n,r,i=KS(n),o,a){let{refined:s,extra:l}=AL(e,n,i),c=P8e(t,n),d=O8e(s,c,n.dateEnv,n.pluginHooks.recurringTypes);if(d){let g=ZS(s,l,t?t.sourceId:"",d.allDay,!!d.duration,n,o);return g.recurringDef={typeId:d.typeId,typeData:d.typeData,duration:d.duration},{def:g,instance:null}}let f=D8e(s,c,n,r);if(f){let g=ZS(s,l,t?t.sourceId:"",f.allDay,f.hasEnd,n,o),p=YS(g.defId,f.range,f.forcedStartTzo,f.forcedEndTzo);return a&&g.publicId&&a[g.publicId]&&(p.instanceId=a[g.publicId]),{def:g,instance:p}}return null}function AL(e,t,n=KS(t)){return zS(e,n)}function KS(e){return Object.assign(Object.assign(Object.assign({},Vv),I8e),e.pluginHooks.eventRefiners)}function ZS(e,t,n,r,i,o,a){let s={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:(a&&e.id?a[e.id]:"")||vu(),sourceId:n,allDay:r,hasEnd:i,interactive:e.interactive,ui:Gv(e,o),extendedProps:Object.assign(Object.assign({},e.extendedProps||{}),t)};for(let l of o.pluginHooks.eventDefMemberAdders)Object.assign(s,l(e));return Object.freeze(s.ui.classNames),Object.freeze(s.extendedProps),s}function D8e(e,t,n,r){let{allDay:i}=e,o,a=null,s=!1,l,c=null,d=e.start!=null?e.start:e.date;if(o=n.dateEnv.createMarkerMeta(d),o)a=o.marker;else if(!r)return null;return e.end!=null&&(l=n.dateEnv.createMarkerMeta(e.end)),i==null&&(t!=null?i=t:i=(!o||o.isTimeUnspecified)&&(!l||l.isTimeUnspecified)),i&&a&&(a=Bt(a)),l&&(c=l.marker,i&&(c=Bt(c)),a&&c<=a&&(c=null)),c?s=!0:r||(s=n.options.forceEventDuration||!1,c=n.dateEnv.add(a,i?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:i,hasEnd:s,range:{start:a,end:c},forcedStartTzo:o?o.forcedTzo:null,forcedEndTzo:l?l.forcedTzo:null}}function P8e(e,t){let n=null;return e&&(n=e.defaultAllDay),n==null&&(n=t.options.defaultAllDay),n}function Ch(e,t,n,r,i,o){let a=za(),s=KS(n);for(let l of e){let c=TL(l,t,n,r,s,i,o);c&&QS(c,a)}return a}function QS(e,t=za()){return t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function M8e(e,t){let n=e.instances[t];if(n){let r=e.defs[n.defId],i=JS(e,o=>N8e(r,o));return i.defs[r.defId]=r,i.instances[n.instanceId]=n,i}return za()}function N8e(e,t){return!!(e.groupId&&e.groupId===t.groupId)}function za(){return{defs:{},instances:{}}}function XS(e,t){return{defs:Object.assign(Object.assign({},e.defs),t.defs),instances:Object.assign(Object.assign({},e.instances),t.instances)}}function JS(e,t){let n=Td(e.defs,t),r=Td(e.instances,i=>n[i.defId]);return{defs:n,instances:r}}function L8e(e,t){let{defs:n,instances:r}=e,i={},o={};for(let a in n)t.defs[a]||(i[a]=n[a]);for(let a in r)!t.instances[a]&&i[r[a].defId]&&(o[a]=r[a]);return{defs:i,instances:o}}function F8e(e,t){return Array.isArray(e)?Ch(e,null,t,!0):typeof e=="object"&&e?Ch([e],null,t,!0):e!=null?String(e):null}function RL(e){return Array.isArray(e)?e:typeof e=="string"?e.split(/\s+/):[]}const Vv={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:re,overlap:re,allow:re,className:RL,classNames:RL,color:String,backgroundColor:String,borderColor:String,textColor:String},j8e={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function Gv(e,t){let n=F8e(e.constraint,t);return{display:e.display||null,startEditable:e.startEditable!=null?e.startEditable:e.editable,durationEditable:e.durationEditable!=null?e.durationEditable:e.editable,constraints:n!=null?[n]:[],overlap:e.overlap!=null?e.overlap:null,allows:e.allow!=null?[e.allow]:[],backgroundColor:e.backgroundColor||e.color||"",borderColor:e.borderColor||e.color||"",textColor:e.textColor||"",classNames:(e.className||[]).concat(e.classNames||[])}}function OL(e){return e.reduce(z8e,j8e)}function z8e(e,t){return{display:t.display!=null?t.display:e.display,startEditable:t.startEditable!=null?t.startEditable:e.startEditable,durationEditable:t.durationEditable!=null?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:typeof t.overlap=="boolean"?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}const B8e={id:String,defaultAllDay:Boolean,url:String,format:String,events:re,eventDataTransform:re,success:re,failure:re};function _L(e,t,n=IL(t)){let r;if(typeof e=="string"?r={url:e}:typeof e=="function"||Array.isArray(e)?r={events:e}:typeof e=="object"&&e&&(r=e),r){let{refined:i,extra:o}=zS(r,n),a=H8e(i,t);if(a)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||"",sourceId:vu(),sourceDefId:a.sourceDefId,meta:a.meta,ui:Gv(i,t),extendedProps:o}}return null}function IL(e){return Object.assign(Object.assign(Object.assign({},Vv),B8e),e.pluginHooks.eventSourceRefiners)}function H8e(e,t){let n=t.pluginHooks.eventSourceDefs;for(let r=n.length-1;r>=0;r-=1){let o=n[r].parseMeta(e);if(o)return{sourceDefId:r,meta:o}}return null}function U8e(e,t,n,r,i){switch(t.type){case"RECEIVE_EVENTS":return W8e(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,i);case"RESET_RAW_EVENTS":return V8e(e,n[t.sourceId],t.rawEvents,i);case"ADD_EVENTS":return G8e(e,t.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return XS(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?$h(e,r.activeRange,i):e;case"REMOVE_EVENTS":return L8e(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return ML(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return JS(e,o=>!o.sourceId);case"REMOVE_ALL_EVENTS":return za();default:return e}}function W8e(e,t,n,r,i,o){if(t&&n===t.latestFetchId){let a=Ch(DL(i,t,o),t,o);return r&&(a=$h(a,r,o)),XS(ML(e,t.sourceId),a)}return e}function V8e(e,t,n,r){const{defIdMap:i,instanceIdMap:o}=Y8e(e);let a=Ch(DL(n,t,r),t,r,!1,i,o);return t.fetchRange&&(a=$h(a,t.fetchRange,r)),a}function DL(e,t,n){let r=n.options.eventDataTransform,i=t?t.eventDataTransform:null;return i&&(e=PL(e,i)),r&&(e=PL(e,r)),e}function PL(e,t){let n;if(!t)n=e;else{n=[];for(let r of e){let i=t(r);i?n.push(i):i==null&&n.push(r)}}return n}function G8e(e,t,n,r){return n&&(t=$h(t,n,r)),XS(e,t)}function q8e(e,t,n){let{defs:r}=e,i=xu(e.instances,o=>{let a=r[o.defId];return a.allDay||a.recurringDef?o:Object.assign(Object.assign({},o),{range:{start:n.createMarker(t.toDate(o.range.start,o.forcedStartTzo)),end:n.createMarker(t.toDate(o.range.end,o.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:o.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:o.forcedEndTzo})});return{defs:r,instances:i}}function ML(e,t){return JS(e,n=>n.sourceId!==t)}function Y8e(e){const{defs:t,instances:n}=e,r={},i={};for(let o in t){const a=t[o],{publicId:s}=a;s&&(r[s]=o)}for(let o in n){const a=n[o],s=t[a.defId],{publicId:l}=s;l&&(i[l]=o)}return{defIdMap:r,instanceIdMap:i}}class K8e{constructor(){this.handlers={},this.thisContext=null}setThisContext(t){this.thisContext=t}setOptions(t){this.options=t}on(t,n){Z8e(this.handlers,t,n)}off(t,n){Q8e(this.handlers,t,n)}trigger(t,...n){let r=this.handlers[t]||[],i=this.options&&this.options[t],o=[].concat(i||[],r);for(let a of o)a.apply(this.thisContext,n)}hasHandlers(t){return!!(this.handlers[t]&&this.handlers[t].length||this.options&&this.options[t])}}function Z8e(e,t,n){(e[t]||(e[t]=[])).push(n)}function Q8e(e,t,n){n?e[t]&&(e[t]=e[t].filter(r=>r!==n)):delete e[t]}const X8e={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function J8e(e,t){return Ch(e9e(e),null,t)}function e9e(e){let t;return e===!0?t=[{}]:Array.isArray(e)?t=e.filter(n=>n.daysOfWeek):typeof e=="object"&&e?t=[e]:t=[],t=t.map(n=>Object.assign(Object.assign({},X8e),n)),t}function t9e(e,t,n){n.emitter.trigger("select",Object.assign(Object.assign({},r9e(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function n9e(e,t){t.emitter.trigger("unselect",{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view})}function r9e(e,t){let n={};for(let r of t.pluginHooks.dateSpanTransforms)Object.assign(n,r(e,t));return Object.assign(n,m9e(e,t.dateEnv)),n}function NL(e,t,n){let{dateEnv:r,options:i}=n,o=t;return e?(o=Bt(o),o=r.add(o,i.defaultAllDayEventDuration)):o=r.add(o,i.defaultTimedEventDuration),o}function i9e(e,t,n,r){let i=jL(e.defs,t),o=za();for(let a in e.defs){let s=e.defs[a];o.defs[a]=o9e(s,i[a],n,r)}for(let a in e.instances){let s=e.instances[a],l=o.defs[s.defId];o.instances[a]=a9e(s,l,i[s.defId],n,r)}return o}function o9e(e,t,n,r){let i=n.standardProps||{};i.hasEnd==null&&t.durationEditable&&(n.startDelta||n.endDelta)&&(i.hasEnd=!0);let o=Object.assign(Object.assign(Object.assign({},e),i),{ui:Object.assign(Object.assign({},e.ui),i.ui)});n.extendedProps&&(o.extendedProps=Object.assign(Object.assign({},o.extendedProps),n.extendedProps));for(let a of r.pluginHooks.eventDefMutationAppliers)a(o,n,r);return!o.hasEnd&&r.options.forceEventDuration&&(o.hasEnd=!0),o}function a9e(e,t,n,r,i){let{dateEnv:o}=i,a=r.standardProps&&r.standardProps.allDay===!0,s=r.standardProps&&r.standardProps.hasEnd===!1,l=Object.assign({},e);return a&&(l.range=EL(l.range)),r.datesDelta&&n.startEditable&&(l.range={start:o.add(l.range.start,r.datesDelta),end:o.add(l.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(l.range={start:o.add(l.range.start,r.startDelta),end:l.range.end}),r.endDelta&&n.durationEditable&&(l.range={start:l.range.start,end:o.add(l.range.end,r.endDelta)}),s&&(l.range={start:l.range.start,end:NL(t.allDay,l.range.start,i)}),t.allDay&&(l.range={start:Bt(l.range.start),end:Bt(l.range.end)}),l.range.end<l.range.start&&(l.range.end=NL(t.allDay,l.range.start,i)),l}class Rd{constructor(t,n){this.context=t,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 ji{constructor(t,n,r){this._context=t,this._def=n,this._instance=r||null}setProp(t,n){if(t in kL)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(t==="id")n=Wv[t](n),this.mutate({standardProps:{publicId:n}});else if(t in Wv)n=Wv[t](n),this.mutate({standardProps:{[t]:n}});else if(t in Vv){let r=Vv[t](n);t==="color"?r={backgroundColor:n,borderColor:n}:t==="editable"?r={startEditable:n,durationEditable:n}:r={[t]:n},this.mutate({standardProps:{ui:r}})}else console.warn(`Could not set prop '${t}'. Use setExtendedProp instead.`)}setExtendedProp(t,n){this.mutate({extendedProps:{[t]:n}})}setStart(t,n={}){let{dateEnv:r}=this._context,i=r.createMarker(t);if(i&&this._instance){let o=this._instance.range,a=Uv(o.start,i,r,n.granularity);n.maintainDuration?this.mutate({datesDelta:a}):this.mutate({startDelta:a})}}setEnd(t,n={}){let{dateEnv:r}=this._context,i;if(!(t!=null&&(i=r.createMarker(t),!i))&&this._instance)if(i){let o=Uv(this._instance.range.end,i,r,n.granularity);this.mutate({endDelta:o})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(t,n,r={}){let{dateEnv:i}=this._context,o={allDay:r.allDay},a=i.createMarker(t),s;if(a&&!(n!=null&&(s=i.createMarker(n),!s))&&this._instance){let l=this._instance.range;r.allDay===!0&&(l=EL(l));let c=Uv(l.start,a,i,r.granularity);if(s){let d=Uv(l.end,s,i,r.granularity);TSe(c,d)?this.mutate({datesDelta:c,standardProps:o}):this.mutate({startDelta:c,endDelta:d,standardProps:o})}else o.hasEnd=!1,this.mutate({datesDelta:c,standardProps:o})}}moveStart(t){let n=yt(t);n&&this.mutate({startDelta:n})}moveEnd(t){let n=yt(t);n&&this.mutate({endDelta:n})}moveDates(t){let n=yt(t);n&&this.mutate({datesDelta:n})}setAllDay(t,n={}){let r={allDay:t},{maintainDuration:i}=n;i==null&&(i=this._context.options.allDayMaintainDuration),this._def.allDay!==t&&(r.hasEnd=i),this.mutate({standardProps:r})}formatRange(t){let{dateEnv:n}=this._context,r=this._instance,i=Ot(t);return this._def.hasEnd?n.formatRange(r.range.start,r.range.end,i,{forcedStartTzo:r.forcedStartTzo,forcedEndTzo:r.forcedEndTzo}):n.format(r.range.start,i,{forcedTzo:r.forcedStartTzo})}mutate(t){let n=this._instance;if(n){let r=this._def,i=this._context,{eventStore:o}=i.getCurrentData(),a=M8e(o,n.instanceId);a=i9e(a,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},t,i);let l=new ji(i,r,n);this._def=a.defs[r.defId],this._instance=a.instances[n.instanceId],i.dispatch({type:"MERGE_EVENTS",eventStore:a}),i.emitter.trigger("eventChange",{oldEvent:l,event:this,relatedEvents:e8(a,i,n),revert(){i.dispatch({type:"RESET_EVENTS",eventStore:o})}})}}remove(){let t=this._context,n=LL(this);t.dispatch({type:"REMOVE_EVENTS",eventStore:n}),t.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:n})}})}get source(){let{sourceId:t}=this._def;return t?new Rd(this._context,this._context.getCurrentData().eventSources[t]):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 t=this._instance;return t?this._context.dateEnv.formatIso(t.range.start,{omitTime:this._def.allDay,forcedTzo:t.forcedStartTzo}):""}get endStr(){let t=this._instance;return t&&this._def.hasEnd?this._context.dateEnv.formatIso(t.range.end,{omitTime:this._def.allDay,forcedTzo:t.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(t={}){let n=this._def,{ui:r}=n,{startStr:i,endStr:o}=this,a={allDay:n.allDay};return n.title&&(a.title=n.title),i&&(a.start=i),o&&(a.end=o),n.publicId&&(a.id=n.publicId),n.groupId&&(a.groupId=n.groupId),n.url&&(a.url=n.url),r.display&&r.display!=="auto"&&(a.display=r.display),t.collapseColor&&r.backgroundColor&&r.backgroundColor===r.borderColor?a.color=r.backgroundColor:(r.backgroundColor&&(a.backgroundColor=r.backgroundColor),r.borderColor&&(a.borderColor=r.borderColor)),r.textColor&&(a.textColor=r.textColor),r.classNames.length&&(a.classNames=r.classNames),Object.keys(n.extendedProps).length&&(t.collapseExtendedProps?Object.assign(a,n.extendedProps):a.extendedProps=n.extendedProps),a}toJSON(){return this.toPlainObject()}}function LL(e){let t=e._def,n=e._instance;return{defs:{[t.defId]:t},instances:n?{[n.instanceId]:n}:{}}}function e8(e,t,n){let{defs:r,instances:i}=e,o=[],a=n?n.instanceId:"";for(let s in i){let l=i[s],c=r[l.defId];l.instanceId!==a&&o.push(new ji(t,c,l))}return o}function t8(e,t,n,r){let i={},o={},a={},s=[],l=[],c=jL(e.defs,t);for(let d in e.defs){let f=e.defs[d];c[f.defId].display==="inverse-background"&&(f.groupId?(i[f.groupId]=[],a[f.groupId]||(a[f.groupId]=f)):o[d]=[])}for(let d in e.instances){let f=e.instances[d],g=e.defs[f.defId],p=c[g.defId],m=f.range,v=!g.allDay&&r?GS(m,r):m,w=Go(v,n);w&&(p.display==="inverse-background"?g.groupId?i[g.groupId].push(w):o[f.defId].push(w):p.display!=="none"&&(p.display==="background"?s:l).push({def:g,ui:p,instance:f,range:w,isStart:v.start&&v.start.valueOf()===w.start.valueOf(),isEnd:v.end&&v.end.valueOf()===w.end.valueOf()}))}for(let d in i){let f=i[d],g=CL(f,n);for(let p of g){let m=a[d],v=c[m.defId];s.push({def:m,ui:v,instance:null,range:p,isStart:!1,isEnd:!1})}}for(let d in o){let f=o[d],g=CL(f,n);for(let p of g)s.push({def:e.defs[d],ui:c[d],instance:null,range:p,isStart:!1,isEnd:!1})}return{bg:s,fg:l}}function s9e(e){return e.ui.display==="background"||e.ui.display==="inverse-background"}function FL(e,t){e.fcSeg=t}function n8(e){return e.fcSeg||e.parentNode.fcSeg||null}function jL(e,t){return xu(e,n=>zL(n,t))}function zL(e,t){let n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),OL(n)}function qv(e,t){let n=e.map(l9e);return n.sort((r,i)=>wSe(r,i,t)),n.map(r=>r._seg)}function l9e(e){let{eventRange:t}=e,n=t.def,r=t.instance?t.instance.range:t.range,i=r.start?r.start.valueOf():0,o=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:i,end:o,duration:o-i,allDay:Number(n.allDay),_seg:e})}function u9e(e,t){let{pluginHooks:n}=t,r=n.isDraggableTransformers,{def:i,ui:o}=e.eventRange,a=o.startEditable;for(let s of r)a=s(a,i,o,t);return a}function c9e(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function d9e(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function Od(e,t,n,r,i,o,a){let{dateEnv:s,options:l}=n,{displayEventTime:c,displayEventEnd:d}=l,f=e.eventRange.def,g=e.eventRange.instance;c==null&&(c=r!==!1),d==null&&(d=i!==!1);let p=g.range.start,m=g.range.end,v=o||e.start||e.eventRange.range.start,w=a||e.end||e.eventRange.range.end,x=Bt(p).valueOf()===Bt(v).valueOf(),b=Bt(el(m,-1)).valueOf()===Bt(el(w,-1)).valueOf();return c&&!f.allDay&&(x||b)?(v=x?p:v,w=b?m:w,d&&f.hasEnd?s.formatRange(v,w,t,{forcedStartTzo:o?null:g.forcedStartTzo,forcedEndTzo:a?null:g.forcedEndTzo}):s.format(v,t,{forcedTzo:o?null:g.forcedStartTzo})):""}function Vr(e,t,n){let r=e.eventRange.range;return{isPast:r.end<(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&ja(t,r.start)}}function f9e(e){let t=["fc-event"];return e.isMirror&&t.push("fc-event-mirror"),e.isDraggable&&t.push("fc-event-draggable"),(e.isStartResizable||e.isEndResizable)&&t.push("fc-event-resizable"),e.isDragging&&t.push("fc-event-dragging"),e.isResizing&&t.push("fc-event-resizing"),e.isSelected&&t.push("fc-event-selected"),e.isStart&&t.push("fc-event-start"),e.isEnd&&t.push("fc-event-end"),e.isPast&&t.push("fc-event-past"),e.isToday&&t.push("fc-event-today"),e.isFuture&&t.push("fc-event-future"),t}function r8(e){return e.instance?e.instance.instanceId:`${e.def.defId}:${e.range.start.toISOString()}`}function Yv(e,t){let{def:n,instance:r}=e.eventRange,{url:i}=n;if(i)return{href:i};let{emitter:o,options:a}=t,{eventInteractive:s}=a;return s==null&&(s=n.interactive,s==null&&(s=!!o.hasHandlers("eventClick"))),s?tL(l=>{o.trigger("eventClick",{el:l.target,event:new ji(t,n,r),jsEvent:l,view:t.viewApi})}):{}}const p9e={start:re,end:re,allDay:Boolean};function h9e(e,t,n){let r=g9e(e,t),{range:i}=r;if(!i.start)return null;if(!i.end){if(n==null)return null;i.end=t.add(i.start,n)}return r}function g9e(e,t){let{refined:n,extra:r}=zS(e,p9e),i=n.start?t.createMarkerMeta(n.start):null,o=n.end?t.createMarkerMeta(n.end):null,{allDay:a}=n;return a==null&&(a=i&&i.isTimeUnspecified&&(!o||o.isTimeUnspecified)),Object.assign({range:{start:i?i.marker:null,end:o?o.marker:null},allDay:a},r)}function m9e(e,t){return Object.assign(Object.assign({},HL(e.range,t,e.allDay)),{allDay:e.allDay})}function BL(e,t,n){return Object.assign(Object.assign({},HL(e,t,n)),{timeZone:t.timeZone})}function HL(e,t,n){return{start:t.toDate(e.start),end:t.toDate(e.end),startStr:t.formatIso(e.start,{omitTime:n}),endStr:t.formatIso(e.end,{omitTime:n})}}function v9e(e,t,n){let r=AL({editable:!1},n),i=ZS(r.refined,r.extra,"",e.allDay,!0,n);return{def:i,ui:zL(i,t),instance:YS(i.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}function y9e(e,t,n){let r=!1,i=function(s){r||(r=!0,t(s))},o=function(s){r||(r=!0,n(s))},a=e(i,o);a&&typeof a.then=="function"&&a.then(i,o)}class UL extends Error{constructor(t,n){super(t),this.response=n}}function b9e(e,t,n){e=e.toUpperCase();const r={method:e};return e==="GET"?t+=(t.indexOf("?")===-1?"?":"&")+new URLSearchParams(n):(r.body=new URLSearchParams(n),r.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(t,r).then(i=>{if(i.ok)return i.json().then(o=>[o,i],()=>{throw new UL("Failure parsing JSON",i)});throw new UL("Request failed",i)})}let i8;function WL(){return i8==null&&(i8=x9e()),i8}function x9e(){if(typeof document>"u")return!0;let e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.innerHTML="<table><tr><td><div></div></td></tr></table>",e.querySelector("table").style.height="100px",e.querySelector("div").style.height="100%",document.body.appendChild(e);let n=e.querySelector("div").offsetHeight>0;return document.body.removeChild(e),n}class w9e extends bt{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{this.setState({forPrint:!0})},this.handleAfterPrint=()=>{this.setState({forPrint:!1})}}render(){let{props:t}=this,{options:n}=t,{forPrint:r}=this.state,i=r||n.height==="auto"||n.contentHeight==="auto",o=!i&&n.height!=null?n.height:"",a=["fc",r?"fc-media-print":"fc-media-screen",`fc-direction-${n.direction}`,t.theme.getClass("root")];return WL()||a.push("fc-liquid-hack"),t.children(a,o,i,r)}componentDidMount(){let{emitter:t}=this.props;t.on("_beforeprint",this.handleBeforePrint),t.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:t}=this.props;t.off("_beforeprint",this.handleBeforePrint),t.off("_afterprint",this.handleAfterPrint)}}class VL{constructor(t){this.component=t.component,this.isHitComboAllowed=t.isHitComboAllowed||null}destroy(){}}function S9e(e,t){return{component:e,el:t.el,useEventCenter:t.useEventCenter!=null?t.useEventCenter:!0,isHitComboAllowed:t.isHitComboAllowed||null}}const GL={};class $9e{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(t){this.currentDataManager.dispatch(t)}get view(){return this.getCurrentData().viewApi}batchRendering(t){t()}updateSize(){this.trigger("_resize",!0)}setOption(t,n){this.dispatch({type:"SET_OPTION",optionName:t,rawOptionValue:n})}getOption(t){return this.currentDataManager.currentCalendarOptionsInput[t]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(t,n){let{currentDataManager:r}=this;r.currentCalendarOptionsRefiners[t]?r.emitter.on(t,n):console.warn(`Unknown listener name '${t}'`)}off(t,n){this.currentDataManager.emitter.off(t,n)}trigger(t,...n){this.currentDataManager.emitter.trigger(t,...n)}changeView(t,n){this.batchRendering(()=>{if(this.unselect(),n)if(n.start&&n.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:t}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:n});else{let{dateEnv:r}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:t,dateMarker:r.createMarker(n)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:t})})}zoomTo(t,n){let r=this.getCurrentData(),i;n=n||"day",i=r.viewSpecs[n]||this.getUnitViewSpec(n),this.unselect(),i?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:i.type,dateMarker:t}):this.dispatch({type:"CHANGE_DATE",dateMarker:t})}getUnitViewSpec(t){let{viewSpecs:n,toolbarConfig:r}=this.getCurrentData(),i=[].concat(r.header?r.header.viewsWithButtons:[],r.footer?r.footer.viewsWithButtons:[]),o,a;for(let s in n)i.push(s);for(o=0;o<i.length;o+=1)if(a=n[i[o]],a&&a.singleUnit===t)return a;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.addYears(t.currentDate,-1)})}nextYear(){let t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.addYears(t.currentDate,1)})}today(){let t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:Sh(t.calendarOptions.now,t.dateEnv)})}gotoDate(t){let n=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.createMarker(t)})}incrementDate(t){let n=this.getCurrentData(),r=yt(t);r&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.add(n.currentDate,r)}))}getDate(){let t=this.getCurrentData();return t.dateEnv.toDate(t.currentDate)}formatDate(t,n){let{dateEnv:r}=this.getCurrentData();return r.format(r.createMarker(t),Ot(n))}formatRange(t,n,r){let{dateEnv:i}=this.getCurrentData();return i.formatRange(i.createMarker(t),i.createMarker(n),Ot(r),r)}formatIso(t,n){let{dateEnv:r}=this.getCurrentData();return r.formatIso(r.createMarker(t),{omitTime:n})}select(t,n){let r;n==null?t.start!=null?r=t:r={start:t,end:null}:r={start:t,end:n};let i=this.getCurrentData(),o=h9e(r,i.dateEnv,yt({days:1}));o&&(this.dispatch({type:"SELECT_DATES",selection:o}),t9e(o,null,i))}unselect(t){let n=this.getCurrentData();n.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),n9e(t,n))}addEvent(t,n){if(t instanceof ji){let a=t._def,s=t._instance;return this.getCurrentData().eventStore.defs[a.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:QS({def:a,instance:s})}),this.triggerEventAdd(t)),t}let r=this.getCurrentData(),i;if(n instanceof Rd)i=n.internalEventSource;else if(typeof n=="boolean")n&&([i]=HS(r.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;i=a.internalEventSource}let o=TL(t,i,r,!1);if(o){let a=new ji(r,o.def,o.def.recurringDef?null:o.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:QS(o)}),this.triggerEventAdd(a),a}return null}triggerEventAdd(t){let{emitter:n}=this.getCurrentData();n.trigger("eventAdd",{event:t,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:LL(t)})}})}getEventById(t){let n=this.getCurrentData(),{defs:r,instances:i}=n.eventStore;t=String(t);for(let o in r){let a=r[o];if(a.publicId===t){if(a.recurringDef)return new ji(n,a,null);for(let s in i){let l=i[s];if(l.defId===a.defId)return new ji(n,a,l)}}}return null}getEvents(){let t=this.getCurrentData();return e8(t.eventStore,t)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let t=this.getCurrentData(),n=t.eventSources,r=[];for(let i in n)r.push(new Rd(t,n[i]));return r}getEventSourceById(t){let n=this.getCurrentData(),r=n.eventSources;t=String(t);for(let i in r)if(r[i].publicId===t)return new Rd(n,r[i]);return null}addEventSource(t){let n=this.getCurrentData();if(t instanceof Rd)return n.eventSources[t.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[t.internalEventSource]}),t;let r=_L(t,n);return r?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[r]}),new Rd(n,r)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(t){let n=yt(t);n&&this.trigger("_scrollRequest",{time:n})}}function C9e(e,t){let n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.left<n.right&&n.top<n.bottom?n:!1}const o8=za();class E9e{constructor(){this.getKeysForEventDefs=Le(this._getKeysForEventDefs),this.splitDateSelection=Le(this._splitDateSpan),this.splitEventStore=Le(this._splitEventStore),this.splitIndividualUi=Le(this._splitIndividualUi),this.splitEventDrag=Le(this._splitInteraction),this.splitEventResize=Le(this._splitInteraction),this.eventUiBuilders={}}splitProps(t){let n=this.getKeyInfo(t),r=this.getKeysForEventDefs(t.eventStore),i=this.splitDateSelection(t.dateSelection),o=this.splitIndividualUi(t.eventUiBases,r),a=this.splitEventStore(t.eventStore,r),s=this.splitEventDrag(t.eventDrag),l=this.splitEventResize(t.eventResize),c={};this.eventUiBuilders=xu(n,(d,f)=>this.eventUiBuilders[f]||Le(k9e));for(let d in n){let f=n[d],g=a[d]||o8,p=this.eventUiBuilders[d];c[d]={businessHours:f.businessHours||t.businessHours,dateSelection:i[d]||null,eventStore:g,eventUiBases:p(t.eventUiBases[""],f.ui,o[d]),eventSelection:g.instances[t.eventSelection]?t.eventSelection:"",eventDrag:s[d]||null,eventResize:l[d]||null}}return c}_splitDateSpan(t){let n={};if(t){let r=this.getKeysForDateSpan(t);for(let i of r)n[i]=t}return n}_getKeysForEventDefs(t){return xu(t.defs,n=>this.getKeysForEventDef(n))}_splitEventStore(t,n){let{defs:r,instances:i}=t,o={};for(let a in r)for(let s of n[a])o[s]||(o[s]=za()),o[s].defs[a]=r[a];for(let a in i){let s=i[a];for(let l of n[s.defId])o[l]&&(o[l].instances[a]=s)}return o}_splitIndividualUi(t,n){let r={};for(let i in t)if(i)for(let o of n[i])r[o]||(r[o]={}),r[o][i]=t[i];return r}_splitInteraction(t){let n={};if(t){let r=this._splitEventStore(t.affectedEvents,this._getKeysForEventDefs(t.affectedEvents)),i=this._getKeysForEventDefs(t.mutatedEvents),o=this._splitEventStore(t.mutatedEvents,i),a=s=>{n[s]||(n[s]={affectedEvents:r[s]||o8,mutatedEvents:o[s]||o8,isEvent:t.isEvent})};for(let s in r)a(s);for(let s in o)a(s)}return n}}function k9e(e,t,n){let r=[];e&&r.push(e),t&&r.push(t);let i={"":OL(r)};return n&&Object.assign(i,n),i}function a8(e,t,n,r){return{dow:e.getUTCDay(),isDisabled:!!(r&&!ja(r.activeRange,e)),isOther:!!(r&&!ja(r.currentRange,e)),isToday:!!(t&&ja(t,e)),isPast:!!(n?e<n:t&&e<t.start),isFuture:!!(n?e>n:t&&e>=t.end)}}function Kv(e,t){let n=["fc-day",`fc-day-${ISe[e.dow]}`];return e.isDisabled?n.push("fc-day-disabled"):(e.isToday&&(n.push("fc-day-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-day-past"),e.isFuture&&n.push("fc-day-future"),e.isOther&&n.push("fc-day-other")),n}const T9e=Ot({year:"numeric",month:"long",day:"numeric"}),A9e=Ot({week:"long"});function il(e,t,n="day",r=!0){const{dateEnv:i,options:o,calendarApi:a}=e;let s=i.format(t,n==="week"?A9e:T9e);if(o.navLinks){let l=i.toDate(t);const c=d=>{let f=n==="day"?o.navLinkDayClick:n==="week"?o.navLinkWeekClick:null;typeof f=="function"?f.call(a,i.toDate(t),d):(typeof f=="string"&&(n=f),a.zoomTo(t,n))};return Object.assign({title:yh(o.navLinkHint,[s,l],s),"data-navlink":""},r?eL(c):{onClick:c})}return{"aria-label":s}}let s8;function R9e(){return s8||(s8=O9e()),s8}function O9e(){let e=document.createElement("div");e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e);let t=_9e(e);return document.body.removeChild(e),t}function _9e(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function I9e(e){let t=D9e(e),n=e.getBoundingClientRect();for(let r of t){let i=C9e(n,r.getBoundingClientRect());if(i)n=i;else return null}return n}function D9e(e){let t=[];for(;e instanceof HTMLElement;){let n=window.getComputedStyle(e);if(n.position==="fixed")break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}class qo{constructor(t,n,r,i){this.els=n;let o=this.originClientRect=t.getBoundingClientRect();r&&this.buildElHorizontals(o.left),i&&this.buildElVerticals(o.top)}buildElHorizontals(t){let n=[],r=[];for(let i of this.els){let o=i.getBoundingClientRect();n.push(o.left-t),r.push(o.right-t)}this.lefts=n,this.rights=r}buildElVerticals(t){let n=[],r=[];for(let i of this.els){let o=i.getBoundingClientRect();n.push(o.top-t),r.push(o.bottom-t)}this.tops=n,this.bottoms=r}leftToIndex(t){let{lefts:n,rights:r}=this,i=n.length,o;for(o=0;o<i;o+=1)if(t>=n[o]&&t<r[o])return o}topToIndex(t){let{tops:n,bottoms:r}=this,i=n.length,o;for(o=0;o<i;o+=1)if(t>=n[o]&&t<r[o])return o}getWidth(t){return this.rights[t]-this.lefts[t]}getHeight(t){return this.bottoms[t]-this.tops[t]}similarTo(t){return Zv(this.tops||[],t.tops||[])&&Zv(this.bottoms||[],t.bottoms||[])&&Zv(this.lefts||[],t.lefts||[])&&Zv(this.rights||[],t.rights||[])}}function Zv(e,t){const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(Math.round(e[r])!==Math.round(t[r]))return!1;return!0}class gr extends bt{constructor(){super(...arguments),this.uid=vu()}prepareHits(){}queryHit(t,n,r,i){return null}isValidSegDownEl(t){return!this.props.eventDrag&&!this.props.eventResize&&!La(t,".fc-event-mirror")}isValidDateDownEl(t){return!La(t,".fc-event:not(.fc-bg-event)")&&!La(t,".fc-more-link")&&!La(t,"a[data-navlink]")&&!La(t,".fc-popover")}}class l8{constructor(){this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(t){let n=[];for(let r of t)this.insertEntry(r,n);return n}insertEntry(t,n){let r=this.findInsertion(t);return this.isInsertionValid(r,t)?(this.insertEntryAt(t,r),1):this.handleInvalidInsertion(r,t,n)}isInsertionValid(t,n){return(this.maxCoord===-1||t.levelCoord+n.thickness<=this.maxCoord)&&(this.maxStackCnt===-1||t.stackCnt<this.maxStackCnt)}handleInvalidInsertion(t,n,r){return this.allowReslicing&&t.touchingEntry?this.splitEntry(n,t.touchingEntry,r):(r.push(n),0)}splitEntry(t,n,r){let i=0,o=[],a=t.span,s=n.span;return a.start<s.start&&(i+=this.insertEntry({index:t.index,thickness:t.thickness,span:{start:a.start,end:s.start}},o)),a.end>s.end&&(i+=this.insertEntry({index:t.index,thickness:t.thickness,span:{start:s.end,end:a.end}},o)),i?(r.push({index:t.index,thickness:t.thickness,span:Qv(s,a)},...o),i):(r.push(t),0)}insertEntryAt(t,n){let{entriesByLevel:r,levelCoords:i}=this;n.lateral===-1?(c8(i,n.level,n.levelCoord),c8(r,n.level,[t])):c8(r[n.level],n.lateral,t),this.stackCnts[Yo(t)]=n.stackCnt}findInsertion(t){let{levelCoords:n,entriesByLevel:r,strictOrder:i,stackCnts:o}=this,a=n.length,s=0,l=-1,c=-1,d=null,f=0;for(let m=0;m<a;m+=1){let v=n[m];if(!i&&v>=s+t.thickness)break;let w=r[m],x,b=d8(w,t.span.start,u8),S=b[0]+b[1];for(;(x=w[S])&&x.span.start<t.span.end;){let $=v+x.thickness;$>s&&(s=$,d=x,l=m,c=S),$===s&&(f=Math.max(f,o[Yo(x)]+1)),S+=1}}let g=0;if(d)for(g=l+1;g<a&&n[g]<s;)g+=1;let p=-1;return g<a&&n[g]===s&&(p=d8(r[g],t.span.end,u8)[0]),{touchingLevel:l,touchingLateral:c,touchingEntry:d,stackCnt:f,levelCoord:s,level:g,lateral:p}}toRects(){let{entriesByLevel:t,levelCoords:n}=this,r=t.length,i=[];for(let o=0;o<r;o+=1){let a=t[o],s=n[o];for(let l of a)i.push(Object.assign(Object.assign({},l),{levelCoord:s}))}return i}}function u8(e){return e.span.end}function Yo(e){return e.index+":"+e.span.start}function P9e(e){let t=[];for(let n of e){let r=[],i={span:n.span,entries:[n]};for(let o of t)Qv(o.span,i.span)?i={entries:o.entries.concat(i.entries),span:M9e(o.span,i.span)}:r.push(o);r.push(i),t=r}return t}function M9e(e,t){return{start:Math.min(e.start,t.start),end:Math.max(e.end,t.end)}}function Qv(e,t){let n=Math.max(e.start,t.start),r=Math.min(e.end,t.end);return n<r?{start:n,end:r}:null}function c8(e,t,n){e.splice(t,0,n)}function d8(e,t,n){let r=0,i=e.length;if(!i||t<n(e[r]))return[0,0];if(t>n(e[i-1]))return[i,0];for(;r<i;){let o=Math.floor(r+(i-r)/2),a=n(e[o]);if(t<a)i=o;else if(t>a)r=o+1;else return[o,1]}return[r,0]}function N9e(e,t){return!e||t>10?Ot({weekday:"short"}):t>1?Ot({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):Ot({weekday:"long"})}const qL="fc-col-header-cell";function YL(e){return e.text}class L9e extends bt{render(){let{dateEnv:t,options:n,theme:r,viewApi:i}=this.context,{props:o}=this,{date:a,dateProfile:s}=o,l=a8(a,o.todayRange,null,s),c=[qL].concat(Kv(l,r)),d=t.format(a,o.dayHeaderFormat),f=!l.isDisabled&&o.colCnt>1?il(this.context,a):{},g=Object.assign(Object.assign(Object.assign({date:t.toDate(a),view:i},o.extraRenderProps),{text:d}),l);return F(hr,{elTag:"th",elClasses:c,elAttrs:Object.assign({role:"columnheader",colSpan:o.colSpan,"data-date":l.isDisabled?void 0:bh(a)},o.extraDataAttrs),renderProps:g,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:YL,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},p=>F("div",{className:"fc-scrollgrid-sync-inner"},!l.isDisabled&&F(p,{elTag:"a",elAttrs:f,elClasses:["fc-col-header-cell-cushion",o.isSticky&&"fc-sticky"]})))}}const F9e=Ot({weekday:"long"});class j9e extends bt{render(){let{props:t}=this,{dateEnv:n,theme:r,viewApi:i,options:o}=this.context,a=xn(new Date(2592e5),t.dow),s={dow:t.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},l=n.format(a,t.dayHeaderFormat),c=Object.assign(Object.assign(Object.assign(Object.assign({date:a},s),{view:i}),t.extraRenderProps),{text:l});return F(hr,{elTag:"th",elClasses:[qL,...Kv(s,r),...t.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:t.colSpan},t.extraDataAttrs),renderProps:c,generatorName:"dayHeaderContent",customGenerator:o.dayHeaderContent,defaultGenerator:YL,classNameGenerator:o.dayHeaderClassNames,didMount:o.dayHeaderDidMount,willUnmount:o.dayHeaderWillUnmount},d=>F("div",{className:"fc-scrollgrid-sync-inner"},F(d,{elTag:"a",elClasses:["fc-col-header-cell-cushion",t.isSticky&&"fc-sticky"],elAttrs:{"aria-label":n.format(a,F9e)}})))}}class Su extends fi{constructor(t,n){super(t,n),this.initialNowDate=Sh(n.options.now,n.dateEnv),this.initialNowQueriedMs=new Date().valueOf(),this.state=this.computeTiming().currentState}render(){let{props:t,state:n}=this;return t.children(n.nowDate,n.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(t){t.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:t,context:n}=this,r=el(this.initialNowDate,new Date().valueOf()-this.initialNowQueriedMs),i=n.dateEnv.startOf(r,t.unit),o=n.dateEnv.add(i,yt(1,t.unit)),a=o.valueOf()-r.valueOf();return a=Math.min(1e3*60*60*24,a),{currentState:{nowDate:i,todayRange:KL(i)},nextState:{nowDate:o,todayRange:KL(o)},waitMs:a}}setTimeout(){let{nextState:t,waitMs:n}=this.computeTiming();this.timeoutId=setTimeout(()=>{this.setState(t,()=>{this.setTimeout()})},n)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}Su.contextType=Fa;function KL(e){let t=Bt(e),n=xn(t,1);return{start:t,end:n}}class f8 extends bt{constructor(){super(...arguments),this.createDayHeaderFormatter=Le(z9e)}render(){let{context:t}=this,{dates:n,dateProfile:r,datesRepDistinctDays:i,renderIntro:o}=this.props,a=this.createDayHeaderFormatter(t.options.dayHeaderFormat,i,n.length);return F(Su,{unit:"day"},(s,l)=>F("tr",{role:"row"},o&&o("day"),n.map(c=>i?F(L9e,{key:c.toISOString(),date:c,dateProfile:r,todayRange:l,colCnt:n.length,dayHeaderFormat:a}):F(j9e,{key:c.getUTCDay(),dow:c.getUTCDay(),dayHeaderFormat:a}))))}}function z9e(e,t,n){return e||N9e(t,n)}class p8{constructor(t,n){let r=t.start,{end:i}=t,o=[],a=[],s=-1;for(;r<i;)n.isHiddenDay(r)?o.push(s+.5):(s+=1,o.push(s),a.push(r)),r=xn(r,1);this.dates=a,this.indices=o,this.cnt=a.length}sliceRange(t){let n=this.getDateDayIndex(t.start),r=this.getDateDayIndex(xn(t.end,-1)),i=Math.max(0,n),o=Math.min(this.cnt-1,r);return i=Math.ceil(i),o=Math.floor(o),i<=o?{firstIndex:i,lastIndex:o,isStart:n===i,isEnd:r===o}:null}getDateDayIndex(t){let{indices:n}=this,r=Math.floor(tl(this.dates[0],t));return r<0?n[0]-1:r>=n.length?n[n.length-1]+1:n[r]}}class h8{constructor(t,n){let{dates:r}=t,i,o,a;if(n){for(o=r[0].getUTCDay(),i=1;i<r.length&&r[i].getUTCDay()!==o;i+=1);a=Math.ceil(r.length/i)}else a=1,i=r.length;this.rowCnt=a,this.colCnt=i,this.daySeries=t,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let t=[];for(let n=0;n<this.rowCnt;n+=1){let r=[];for(let i=0;i<this.colCnt;i+=1)r.push(this.buildCell(n,i));t.push(r)}return t}buildCell(t,n){let r=this.daySeries.dates[t*this.colCnt+n];return{key:r.toISOString(),date:r}}buildHeaderDates(){let t=[];for(let n=0;n<this.colCnt;n+=1)t.push(this.cells[0][n].date);return t}sliceRange(t){let{colCnt:n}=this,r=this.daySeries.sliceRange(t),i=[];if(r){let{firstIndex:o,lastIndex:a}=r,s=o;for(;s<=a;){let l=Math.floor(s/n),c=Math.min((l+1)*n,a+1);i.push({row:l,firstCol:s%n,lastCol:(c-1)%n,isStart:r.isStart&&s===o,isEnd:r.isEnd&&c-1===a}),s=c}}return i}}class g8{constructor(){this.sliceBusinessHours=Le(this._sliceBusinessHours),this.sliceDateSelection=Le(this._sliceDateSpan),this.sliceEventStore=Le(this._sliceEventStore),this.sliceEventDrag=Le(this._sliceInteraction),this.sliceEventResize=Le(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(t,n,r,i,...o){let{eventUiBases:a}=t,s=this.sliceEventStore(t.eventStore,a,n,r,...o);return{dateSelectionSegs:this.sliceDateSelection(t.dateSelection,n,r,a,i,...o),businessHourSegs:this.sliceBusinessHours(t.businessHours,n,r,i,...o),fgEventSegs:s.fg,bgEventSegs:s.bg,eventDrag:this.sliceEventDrag(t.eventDrag,a,n,r,...o),eventResize:this.sliceEventResize(t.eventResize,a,n,r,...o),eventSelection:t.eventSelection}}sliceNowDate(t,n,r,i,...o){return this._sliceDateSpan({range:{start:t,end:el(t,1)},allDay:!1},n,r,{},i,...o)}_sliceBusinessHours(t,n,r,i,...o){return t?this._sliceEventStore($h(t,Xv(n,!!r),i),{},n,r,...o).bg:[]}_sliceEventStore(t,n,r,i,...o){if(t){let a=t8(t,n,Xv(r,!!i),i);return{bg:this.sliceEventRanges(a.bg,o),fg:this.sliceEventRanges(a.fg,o)}}return{bg:[],fg:[]}}_sliceInteraction(t,n,r,i,...o){if(!t)return null;let a=t8(t.mutatedEvents,n,Xv(r,!!i),i);return{segs:this.sliceEventRanges(a.fg,o),affectedInstances:t.affectedEvents.instances,isEvent:t.isEvent}}_sliceDateSpan(t,n,r,i,o,...a){if(!t)return[];let s=Xv(n,!!r),l=Go(t.range,s);if(l){t=Object.assign(Object.assign({},t),{range:l});let c=v9e(t,i,o),d=this.sliceRange(t.range,...a);for(let f of d)f.eventRange=c;return d}return[]}sliceEventRanges(t,n){let r=[];for(let i of t)r.push(...this.sliceEventRange(i,n));return r}sliceEventRange(t,n){let r=t.range;this.forceDayIfListItem&&t.ui.display==="list-item"&&(r={start:r.start,end:xn(r.start,1)});let i=this.sliceRange(r,...n);for(let o of i)o.eventRange=t,o.isStart=t.isStart&&o.isStart,o.isEnd=t.isEnd&&o.isEnd;return i}}function Xv(e,t){let n=e.activeRange;return t?n:{start:el(n.start,e.slotMinTime.milliseconds),end:el(n.end,e.slotMaxTime.milliseconds-864e5)}}const Jv=/^(visible|hidden)$/;class ZL extends bt{constructor(){super(...arguments),this.handleEl=t=>{this.el=t,Vo(this.props.elRef,t)}}render(){let{props:t}=this,{liquid:n,liquidIsAbsolute:r}=t,i=n&&r,o=["fc-scroller"];return n&&(r?o.push("fc-scroller-liquid-absolute"):o.push("fc-scroller-liquid")),F("div",{ref:this.handleEl,className:o.join(" "),style:{overflowX:t.overflowX,overflowY:t.overflowY,left:i&&-(t.overcomeLeft||0)||"",right:i&&-(t.overcomeRight||0)||"",bottom:i&&-(t.overcomeBottom||0)||"",marginLeft:!i&&-(t.overcomeLeft||0)||"",marginRight:!i&&-(t.overcomeRight||0)||"",marginBottom:!i&&-(t.overcomeBottom||0)||"",maxHeight:t.maxHeight||""}},t.children)}needsXScrolling(){if(Jv.test(this.props.overflowX))return!1;let{el:t}=this,n=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:r}=t;for(let i=0;i<r.length;i+=1)if(r[i].getBoundingClientRect().width>n)return!0;return!1}needsYScrolling(){if(Jv.test(this.props.overflowY))return!1;let{el:t}=this,n=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:r}=t;for(let i=0;i<r.length;i+=1)if(r[i].getBoundingClientRect().height>n)return!0;return!1}getXScrollbarWidth(){return Jv.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return Jv.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class Gr{constructor(t){this.masterCallback=t,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(n,r)=>{let{depths:i,currentMap:o}=this,a=!1,s=!1;n!==null?(a=r in o,o[r]=n,i[r]=(i[r]||0)+1,s=!0):(i[r]-=1,i[r]||(delete o[r],delete this.callbackMap[r],a=!0)),this.masterCallback&&(a&&this.masterCallback(null,String(r)),s&&this.masterCallback(n,String(r)))}}createRef(t){let n=this.callbackMap[t];return n||(n=this.callbackMap[t]=r=>{this.handleValue(r,String(t))}),n}collect(t,n,r){return u8e(this.currentMap,t,n,r)}getAll(){return HS(this.currentMap)}}function B9e(e){let t=hSe(e,".fc-scrollgrid-shrink"),n=0;for(let r of t)n=Math.max(n,CSe(r));return Math.ceil(n)}function QL(e,t){return e.liquid&&t.liquid}function H9e(e,t){return t.maxHeight!=null||QL(e,t)}function U9e(e,t,n,r){let{expandRows:i}=n;return typeof t.content=="function"?t.content(n):F("table",{role:"presentation",className:[t.tableClassName,e.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:i?n.clientHeight:""}},n.tableColGroupNode,F(r?"thead":"tbody",{role:"presentation"},typeof t.rowContent=="function"?t.rowContent(n):t.rowContent))}function W9e(e,t){return Js(e,t,pi)}function V9e(e,t){let n=[];for(let r of e){let i=r.span||1;for(let o=0;o<i;o+=1)n.push(F("col",{style:{width:r.width==="shrink"?G9e(t):r.width||"",minWidth:r.minWidth||""}}))}return F("colgroup",{},...n)}function G9e(e){return e??4}function q9e(e){for(let t of e)if(t.width==="shrink")return!0;return!1}function Y9e(e,t){let n=["fc-scrollgrid",t.theme.getClass("table")];return e&&n.push("fc-scrollgrid-liquid"),n}function K9e(e,t){let n=["fc-scrollgrid-section",`fc-scrollgrid-section-${e.type}`,e.className];return t&&e.liquid&&e.maxHeight==null&&n.push("fc-scrollgrid-section-liquid"),e.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function m8(e){return F("div",{className:"fc-scrollgrid-sticky-shim",style:{width:e.clientWidth,minWidth:e.tableMinWidth}})}function ey(e){let{stickyHeaderDates:t}=e;return(t==null||t==="auto")&&(t=e.height==="auto"||e.viewHeight==="auto"),t}function XL(e){let{stickyFooterScrollbar:t}=e;return(t==null||t==="auto")&&(t=e.height==="auto"||e.viewHeight==="auto"),t}class v8 extends bt{constructor(){super(...arguments),this.processCols=Le(t=>t,W9e),this.renderMicroColGroup=Le(V9e),this.scrollerRefs=new Gr,this.scrollerElRefs=new Gr(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:t,state:n,context:r}=this,i=t.sections||[],o=this.processCols(t.cols),a=this.renderMicroColGroup(o,n.shrinkWidth),s=Y9e(t.liquid,r);t.collapsibleWidth&&s.push("fc-scrollgrid-collapsible");let l=i.length,c=0,d,f=[],g=[],p=[];for(;c<l&&(d=i[c]).type==="header";)f.push(this.renderSection(d,a,!0)),c+=1;for(;c<l&&(d=i[c]).type==="body";)g.push(this.renderSection(d,a,!1)),c+=1;for(;c<l&&(d=i[c]).type==="footer";)p.push(this.renderSection(d,a,!0)),c+=1;let m=!WL();const v={role:"rowgroup"};return F("table",{role:"grid",className:s.join(" "),style:{height:t.height}},!!(!m&&f.length)&&F("thead",v,...f),!!(!m&&g.length)&&F("tbody",v,...g),!!(!m&&p.length)&&F("tfoot",v,...p),m&&F("tbody",v,...f,...g,...p))}renderSection(t,n,r){return"outerContent"in t?F(ut,{key:t.key},t.outerContent):F("tr",{key:t.key,role:"presentation",className:K9e(t,this.props.liquid).join(" ")},this.renderChunkTd(t,n,t.chunk,r))}renderChunkTd(t,n,r,i){if("outerContent"in r)return r.outerContent;let{props:o}=this,{forceYScrollbars:a,scrollerClientWidths:s,scrollerClientHeights:l}=this.state,c=H9e(o,t),d=QL(o,t),f=o.liquid?a?"scroll":c?"auto":"hidden":"visible",g=t.key,p=U9e(t,r,{tableColGroupNode:n,tableMinWidth:"",clientWidth:!o.collapsibleWidth&&s[g]!==void 0?s[g]:null,clientHeight:l[g]!==void 0?l[g]:null,expandRows:t.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},i);return F(i?"th":"td",{ref:r.elRef,role:"presentation"},F("div",{className:`fc-scroller-harness${d?" fc-scroller-harness-liquid":""}`},F(ZL,{ref:this.scrollerRefs.createRef(g),elRef:this.scrollerElRefs.createRef(g),overflowY:f,overflowX:o.liquid?"hidden":"visible",maxHeight:t.maxHeight,liquid:d,liquidIsAbsolute:!0},p)))}_handleScrollerEl(t,n){let r=Z9e(this.props.sections,n);r&&Vo(r.chunk.scrollerElRef,t)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return q9e(this.props.cols)?B9e(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let t=R9e(),{scrollerRefs:n,scrollerElRefs:r}=this,i=!1,o={},a={};for(let s in n.currentMap){let l=n.currentMap[s];if(l&&l.needsYScrolling()){i=!0;break}}for(let s of this.props.sections){let l=s.key,c=r.currentMap[l];if(c){let d=c.parentNode;o[l]=Math.floor(d.getBoundingClientRect().width-(i?t.y:0)),a[l]=Math.floor(d.getBoundingClientRect().height)}}return{forceYScrollbars:i,scrollerClientWidths:o,scrollerClientHeights:a}}}v8.addStateEquality({scrollerClientWidths:pi,scrollerClientHeights:pi});function Z9e(e,t){for(let n of e)if(n.key===t)return n;return null}class Eh extends bt{constructor(){super(...arguments),this.handleEl=t=>{this.el=t,t&&FL(t,this.props.seg)}}render(){const{props:t,context:n}=this,{options:r}=n,{seg:i}=t,{eventRange:o}=i,{ui:a}=o,s={event:new ji(n,o.def,o.instance),view:n.viewApi,timeText:t.timeText,textColor:a.textColor,backgroundColor:a.backgroundColor,borderColor:a.borderColor,isDraggable:!t.disableDragging&&u9e(i,n),isStartResizable:!t.disableResizing&&c9e(i,n),isEndResizable:!t.disableResizing&&d9e(i),isMirror:!!(t.isDragging||t.isResizing||t.isDateSelecting),isStart:!!i.isStart,isEnd:!!i.isEnd,isPast:!!t.isPast,isFuture:!!t.isFuture,isToday:!!t.isToday,isSelected:!!t.isSelected,isDragging:!!t.isDragging,isResizing:!!t.isResizing};return F(hr,Object.assign({},t,{elRef:this.handleEl,elClasses:[...f9e(s),...i.eventRange.ui.classNames,...t.elClasses||[]],renderProps:s,generatorName:"eventContent",customGenerator:r.eventContent,defaultGenerator:t.defaultGenerator,classNameGenerator:r.eventClassNames,didMount:r.eventDidMount,willUnmount:r.eventWillUnmount}))}componentDidUpdate(t){this.el&&this.props.seg!==t.seg&&FL(this.el,this.props.seg)}}class y8 extends bt{render(){let{props:t,context:n}=this,{options:r}=n,{seg:i}=t,{ui:o}=i.eventRange,a=r.eventTimeFormat||t.defaultTimeFormat,s=Od(i,a,n,t.defaultDisplayEventTime,t.defaultDisplayEventEnd);return F(Eh,Object.assign({},t,{elTag:"a",elStyle:{borderColor:o.borderColor,backgroundColor:o.backgroundColor},elAttrs:Yv(i,n),defaultGenerator:Q9e,timeText:s}),(l,c)=>F(ut,null,F(l,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:c.textColor}}),!!c.isStartResizable&&F("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!c.isEndResizable&&F("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function Q9e(e){return F("div",{className:"fc-event-main-frame"},e.timeText&&F("div",{className:"fc-event-time"},e.timeText),F("div",{className:"fc-event-title-container"},F("div",{className:"fc-event-title fc-sticky"},e.event.title||F(ut,null," "))))}const b8=e=>F(Fa.Consumer,null,t=>{let{options:n}=t,r={isAxis:e.isAxis,date:t.dateEnv.toDate(e.date),view:t.viewApi};return F(hr,Object.assign({},e,{elTag:e.elTag||"div",renderProps:r,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount}))}),X9e=Ot({day:"numeric"});class ty extends bt{constructor(){super(...arguments),this.refineRenderProps=Lv(J9e)}render(){let{props:t,context:n}=this,{options:r}=n,i=this.refineRenderProps({date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,isMonthStart:t.isMonthStart||!1,showDayNumber:t.showDayNumber,extraRenderProps:t.extraRenderProps,viewApi:n.viewApi,dateEnv:n.dateEnv,monthStartFormat:r.monthStartFormat});return F(hr,Object.assign({},t,{elClasses:[...Kv(i,n.theme),...t.elClasses||[]],elAttrs:Object.assign(Object.assign({},t.elAttrs),i.isDisabled?{}:{"data-date":bh(t.date)}),renderProps:i,generatorName:"dayCellContent",customGenerator:r.dayCellContent,defaultGenerator:t.defaultGenerator,classNameGenerator:i.isDisabled?void 0:r.dayCellClassNames,didMount:r.dayCellDidMount,willUnmount:r.dayCellWillUnmount}))}}function ny(e){return!!(e.dayCellContent||xL("dayCellContent",e))}function J9e(e){let{date:t,dateEnv:n,dateProfile:r,isMonthStart:i}=e,o=a8(t,e.todayRange,null,r),a=e.showDayNumber?n.format(t,i?e.monthStartFormat:X9e):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(t),view:e.viewApi},o),{isMonthStart:i,dayNumberText:a}),e.extraRenderProps)}class x8 extends bt{render(){let{props:t}=this,{seg:n}=t;return F(Eh,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:n.eventRange.ui.backgroundColor},defaultGenerator:e$e,seg:n,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:t.isPast,isFuture:t.isFuture,isToday:t.isToday,disableDragging:!0,disableResizing:!0})}}function e$e(e){let{title:t}=e.event;return t&&F("div",{className:"fc-event-title"},e.event.title)}function w8(e){return F("div",{className:`fc-${e}`})}const S8=e=>F(Fa.Consumer,null,t=>{let{dateEnv:n,options:r}=t,{date:i}=e,o=r.weekNumberFormat||e.defaultFormat,a=n.computeWeekNumber(i),s=n.format(i,o);return F(hr,Object.assign({},e,{renderProps:{num:a,text:s,date:i},generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:t$e,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount}))});function t$e(e){return e.text}const $8=10;class n$e extends bt{constructor(){super(...arguments),this.state={titleId:Wo()},this.handleRootEl=t=>{this.rootEl=t,this.props.elRef&&Vo(this.props.elRef,t)},this.handleDocumentMouseDown=t=>{const n=vSe(t);this.rootEl.contains(n)||this.handleCloseClick()},this.handleDocumentKeyDown=t=>{t.key==="Escape"&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:t}=this.props;t&&t()}}render(){let{theme:t,options:n}=this.context,{props:r,state:i}=this,o=["fc-popover",t.getClass("popover")].concat(r.extraClassNames||[]);return tSe(F("div",Object.assign({},r.extraAttrs,{id:r.id,className:o.join(" "),"aria-labelledby":i.titleId,ref:this.handleRootEl}),F("div",{className:"fc-popover-header "+t.getClass("popoverHeader")},F("span",{className:"fc-popover-title",id:i.titleId},r.title),F("span",{className:"fc-popover-close "+t.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),F("div",{className:"fc-popover-body "+t.getClass("popoverContent")},r.children)),r.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:t}=this.context,{alignmentEl:n,alignGridTop:r}=this.props,{rootEl:i}=this,o=I9e(n);if(o){let a=i.getBoundingClientRect(),s=r?La(n,".fc-scrollgrid").getBoundingClientRect().top:o.top,l=t?o.right-a.width:o.left;s=Math.max(s,$8),l=Math.min(l,document.documentElement.clientWidth-$8-a.width),l=Math.max(l,$8);let c=i.offsetParent.getBoundingClientRect();mSe(i,{top:s-c.top,left:l-c.left})}}}class r$e extends gr{constructor(){super(...arguments),this.handleRootEl=t=>{this.rootEl=t,t?this.context.registerInteractiveComponent(this,{el:t,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:t,dateEnv:n}=this.context,{props:r}=this,{startDate:i,todayRange:o,dateProfile:a}=r,s=n.format(i,t.dayPopoverFormat);return F(ty,{elRef:this.handleRootEl,date:i,dateProfile:a,todayRange:o},(l,c,d)=>F(n$e,{elRef:d.ref,id:r.id,title:s,extraClassNames:["fc-more-popover"].concat(d.className||[]),extraAttrs:d,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},ny(t)&&F(l,{elTag:"div",elClasses:["fc-more-popover-misc"]}),r.children))}queryHit(t,n,r,i){let{rootEl:o,props:a}=this;return t>=0&&t<r&&n>=0&&n<i?{dateProfile:a.dateProfile,dateSpan:Object.assign({allDay:!0,range:{start:a.startDate,end:a.endDate}},a.extraDateSpan),dayEl:o,rect:{left:0,top:0,right:r,bottom:i},layer:1}:null}}class C8 extends bt{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:Wo()},this.handleLinkEl=t=>{this.linkEl=t,this.props.elRef&&Vo(this.props.elRef,t)},this.handleClick=t=>{let{props:n,context:r}=this,{moreLinkClick:i}=r.options,o=JL(n).start;function a(s){let{def:l,instance:c,range:d}=s.eventRange;return{event:new ji(r,l,c),start:r.dateEnv.toDate(d.start),end:r.dateEnv.toDate(d.end),isStart:s.isStart,isEnd:s.isEnd}}typeof i=="function"&&(i=i({date:o,allDay:!!n.allDayDate,allSegs:n.allSegs.map(a),hiddenSegs:n.hiddenSegs.map(a),jsEvent:t,view:r.viewApi})),!i||i==="popover"?this.setState({isPopoverOpen:!0}):typeof i=="string"&&r.calendarApi.zoomTo(o,i)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:t,state:n}=this;return F(Fa.Consumer,null,r=>{let{viewApi:i,options:o,calendarApi:a}=r,{moreLinkText:s}=o,{moreCnt:l}=t,c=JL(t),d=typeof s=="function"?s.call(a,l):`+${l} ${s}`,f=yh(o.moreLinkHint,[l],d),g={num:l,shortText:`+${l}`,text:d,view:i};return F(ut,null,!!t.moreCnt&&F(hr,{elTag:t.elTag||"a",elRef:this.handleLinkEl,elClasses:[...t.elClasses||[],"fc-more-link"],elStyle:t.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},t.elAttrs),eL(this.handleClick)),{title:f,"aria-expanded":n.isPopoverOpen,"aria-controls":n.isPopoverOpen?n.popoverId:""}),renderProps:g,generatorName:"moreLinkContent",customGenerator:o.moreLinkContent,defaultGenerator:t.defaultGenerator||i$e,classNameGenerator:o.moreLinkClassNames,didMount:o.moreLinkDidMount,willUnmount:o.moreLinkWillUnmount},t.children),n.isPopoverOpen&&F(r$e,{id:n.popoverId,startDate:c.start,endDate:c.end,dateProfile:t.dateProfile,todayRange:t.todayRange,extraDateSpan:t.extraDateSpan,parentEl:this.parentEl,alignmentEl:t.alignmentElRef?t.alignmentElRef.current:this.linkEl,alignGridTop:t.alignGridTop,onClose:this.handlePopoverClose},t.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=La(this.linkEl,".fc-view-harness"))}}function i$e(e){return e.text}function JL(e){if(e.allDayDate)return{start:e.allDayDate,end:xn(e.allDayDate,1)};let{hiddenSegs:t}=e;return{start:eF(t),end:a$e(t)}}function eF(e){return e.reduce(o$e).eventRange.range.start}function o$e(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function a$e(e){return e.reduce(s$e).eventRange.range.end}function s$e(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}class l$e{constructor(){this.handlers=[]}set(t){this.currentValue=t;for(let n of this.handlers)n(t)}subscribe(t){this.handlers.push(t),this.currentValue!==void 0&&t(this.currentValue)}}class u$e extends l$e{constructor(){super(...arguments),this.map=new Map}handle(t){const{map:n}=this;let r=!1;t.isActive?(n.set(t.id,t),r=!0):n.has(t.id)&&(n.delete(t.id),r=!0),r&&this.set(n)}}var c$e=':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-unselectable{-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;-moz-user-select:none;user-select:none}.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::-moz-focus-inner{border-style:none;padding:0}.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)}';vh(c$e);const d$e=[],tF={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"},nF=Object.assign(Object.assign({},tF),{buttonHints:{prev:"Previous $0",next:"Next $0",today(e,t){return t==="day"?"Today":`This ${e}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(e){return`Show ${e} more event${e===1?"":"s"}`}});function f$e(e){let t=e.length>0?e[0].code:"en",n=d$e.concat(e),r={en:nF};for(let i of n)r[i.code]=i;return{map:r,defaultCode:t}}function rF(e,t){return typeof e=="object"&&!Array.isArray(e)?iF(e.code,[e.code],e):p$e(e,t)}function p$e(e,t){let n=[].concat(e||[]),r=h$e(n,t)||nF;return iF(e,n,r)}function h$e(e,t){for(let n=0;n<e.length;n+=1){let r=e[n].toLocaleLowerCase().split("-");for(let i=r.length;i>0;i-=1){let o=r.slice(0,i).join("-");if(t[o])return t[o]}}return null}function iF(e,t,n){let r=BS([tF,n],["buttonText"]);delete r.code;let{week:i}=r;return delete r.week,{codeArg:e,codes:t,week:i,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}function Ko(e){return{id:vu(),name:e.name,premiumReleaseDate:e.premiumReleaseDate?new Date(e.premiumReleaseDate):void 0,deps:e.deps||[],reducers:e.reducers||[],isLoadingFuncs:e.isLoadingFuncs||[],contextInit:[].concat(e.contextInit||[]),eventRefiners:e.eventRefiners||{},eventDefMemberAdders:e.eventDefMemberAdders||[],eventSourceRefiners:e.eventSourceRefiners||{},isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],viewContainerAppends:e.viewContainerAppends||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,initialView:e.initialView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{},scrollGridImpl:e.scrollGridImpl||null,listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}function g$e(e,t){let n={},r={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function i(o){for(let a of o){const s=a.name,l=n[s];l===void 0?(n[s]=a.id,i(a.deps),r=v$e(r,a)):l!==a.id&&console.warn(`Duplicate plugin '${s}'`)}}return e&&i(e),i(t),r}function m$e(){let e=[],t=[],n;return(r,i)=>((!n||!Js(r,e)||!Js(i,t))&&(n=g$e(r,i)),e=r,t=i,n)}function v$e(e,t){return{premiumReleaseDate:y$e(e.premiumReleaseDate,t.premiumReleaseDate),reducers:e.reducers.concat(t.reducers),isLoadingFuncs:e.isLoadingFuncs.concat(t.isLoadingFuncs),contextInit:e.contextInit.concat(t.contextInit),eventRefiners:Object.assign(Object.assign({},e.eventRefiners),t.eventRefiners),eventDefMemberAdders:e.eventDefMemberAdders.concat(t.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},e.eventSourceRefiners),t.eventSourceRefiners),isDraggableTransformers:e.isDraggableTransformers.concat(t.isDraggableTransformers),eventDragMutationMassagers:e.eventDragMutationMassagers.concat(t.eventDragMutationMassagers),eventDefMutationAppliers:e.eventDefMutationAppliers.concat(t.eventDefMutationAppliers),dateSelectionTransformers:e.dateSelectionTransformers.concat(t.dateSelectionTransformers),datePointTransforms:e.datePointTransforms.concat(t.datePointTransforms),dateSpanTransforms:e.dateSpanTransforms.concat(t.dateSpanTransforms),views:Object.assign(Object.assign({},e.views),t.views),viewPropsTransformers:e.viewPropsTransformers.concat(t.viewPropsTransformers),isPropsValid:t.isPropsValid||e.isPropsValid,externalDefTransforms:e.externalDefTransforms.concat(t.externalDefTransforms),viewContainerAppends:e.viewContainerAppends.concat(t.viewContainerAppends),eventDropTransformers:e.eventDropTransformers.concat(t.eventDropTransformers),calendarInteractions:e.calendarInteractions.concat(t.calendarInteractions),componentInteractions:e.componentInteractions.concat(t.componentInteractions),themeClasses:Object.assign(Object.assign({},e.themeClasses),t.themeClasses),eventSourceDefs:e.eventSourceDefs.concat(t.eventSourceDefs),cmdFormatter:t.cmdFormatter||e.cmdFormatter,recurringTypes:e.recurringTypes.concat(t.recurringTypes),namedTimeZonedImpl:t.namedTimeZonedImpl||e.namedTimeZonedImpl,initialView:e.initialView||t.initialView,elementDraggingImpl:e.elementDraggingImpl||t.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},e.optionChangeHandlers),t.optionChangeHandlers),scrollGridImpl:t.scrollGridImpl||e.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},e.listenerRefiners),t.listenerRefiners),optionRefiners:Object.assign(Object.assign({},e.optionRefiners),t.optionRefiners),propSetHandlers:Object.assign(Object.assign({},e.propSetHandlers),t.propSetHandlers)}}function y$e(e,t){return e===void 0?t:t===void 0?e:new Date(Math.max(e.valueOf(),t.valueOf()))}class ol extends wh{}ol.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},ol.prototype.baseIconClass="fc-icon",ol.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"},ol.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},ol.prototype.iconOverrideOption="buttonIcons",ol.prototype.iconOverrideCustomButtonOption="icon",ol.prototype.iconOverridePrefix="fc-icon-";function b$e(e,t){let n={},r;for(r in e)E8(r,n,e,t);for(r in t)E8(r,n,e,t);return n}function E8(e,t,n,r){if(t[e])return t[e];let i=x$e(e,t,n,r);return i&&(t[e]=i),i}function x$e(e,t,n,r){let i=n[e],o=r[e],a=d=>i&&i[d]!==null?i[d]:o&&o[d]!==null?o[d]:null,s=a("component"),l=a("superType"),c=null;if(l){if(l===e)throw new Error("Can't have a custom view type that references itself");c=E8(l,t,n,r)}return!s&&c&&(s=c.component),s?{type:e,component:s,defaults:Object.assign(Object.assign({},c?c.defaults:{}),i?i.rawOptions:{}),overrides:Object.assign(Object.assign({},c?c.overrides:{}),o?o.rawOptions:{})}:null}function oF(e){return xu(e,w$e)}function w$e(e){let t=typeof e=="function"?{component:e}:e,{component:n}=t;return t.content&&(n=S$e(t)),{superType:t.type,component:n,rawOptions:t}}function S$e(e){return t=>F(Fa.Consumer,null,n=>F(hr,{elTag:"div",elClasses:$L(n.viewSpec),renderProps:Object.assign(Object.assign({},t),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,customGenerator:e.content,classNameGenerator:e.classNames,didMount:e.didMount,willUnmount:e.willUnmount}))}function $$e(e,t,n,r){let i=oF(e),o=oF(t.views),a=b$e(i,o);return xu(a,s=>C$e(s,o,t,n,r))}function C$e(e,t,n,r,i){let o=e.overrides.duration||e.defaults.duration||r.duration||n.duration,a=null,s="",l="",c={};if(o&&(a=E$e(o),a)){let g=MS(a);s=g.unit,g.value===1&&(l=s,c=t[s]?t[s].rawOptions:{})}let d=g=>{let p=g.buttonText||{},m=e.defaults.buttonTextKey;return m!=null&&p[m]!=null?p[m]:p[e.type]!=null?p[e.type]:p[l]!=null?p[l]:null},f=g=>{let p=g.buttonHints||{},m=e.defaults.buttonTextKey;return m!=null&&p[m]!=null?p[m]:p[e.type]!=null?p[e.type]:p[l]!=null?p[l]:null};return{type:e.type,component:e.component,duration:a,durationUnit:s,singleUnit:l,optionDefaults:e.defaults,optionOverrides:Object.assign(Object.assign({},c),e.overrides),buttonTextOverride:d(r)||d(n)||e.overrides.buttonText,buttonTextDefault:d(i)||e.defaults.buttonText||d(xh)||e.type,buttonTitleOverride:f(r)||f(n)||e.overrides.buttonHint,buttonTitleDefault:f(i)||e.defaults.buttonHint||f(xh)}}let aF={};function E$e(e){let t=JSON.stringify(e),n=aF[t];return n===void 0&&(n=yt(e),aF[t]=n),n}function k$e(e,t){switch(t.type){case"CHANGE_VIEW_TYPE":e=t.viewType}return e}function T$e(e,t){switch(t.type){case"SET_OPTION":return Object.assign(Object.assign({},e),{[t.optionName]:t.rawOptionValue});default:return e}}function A$e(e,t,n,r){let i;switch(t.type){case"CHANGE_VIEW_TYPE":return r.build(t.dateMarker||n);case"CHANGE_DATE":return r.build(t.dateMarker);case"PREV":if(i=r.buildPrev(e,n),i.isValid)return i;break;case"NEXT":if(i=r.buildNext(e,n),i.isValid)return i;break}return e}function R$e(e,t,n){let r=t?t.activeRange:null;return lF({},N$e(e,n),r,n)}function O$e(e,t,n,r){let i=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return lF(e,t.sources,i,r);case"REMOVE_EVENT_SOURCE":return I$e(e,t.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?uF(e,i,r):e;case"FETCH_EVENT_SOURCES":return k8(e,t.sourceIds?mL(t.sourceIds):cF(e,r),i,t.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return M$e(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}}function _$e(e,t,n){let r=t?t.activeRange:null;return k8(e,cF(e,n),r,!0,n)}function sF(e){for(let t in e)if(e[t].isFetching)return!0;return!1}function lF(e,t,n,r){let i={};for(let o of t)i[o.sourceId]=o;return n&&(i=uF(i,n,r)),Object.assign(Object.assign({},e),i)}function I$e(e,t){return Td(e,n=>n.sourceId!==t)}function uF(e,t,n){return k8(e,Td(e,r=>D$e(r,t,n)),t,!1,n)}function D$e(e,t,n){return dF(e,n)?!n.options.lazyFetching||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end:!e.latestFetchId}function k8(e,t,n,r,i){let o={};for(let a in e){let s=e[a];t[a]?o[a]=P$e(s,n,r,i):o[a]=s}return o}function P$e(e,t,n,r){let{options:i,calendarApi:o}=r,a=r.pluginHooks.eventSourceDefs[e.sourceDefId],s=vu();return a.fetch({eventSource:e,range:t,isRefetch:n,context:r},l=>{let{rawEvents:c}=l;i.eventSourceSuccess&&(c=i.eventSourceSuccess.call(o,c,l.response)||c),e.success&&(c=e.success.call(o,c,l.response)||c),r.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:s,fetchRange:t,rawEvents:c})},l=>{let c=!1;i.eventSourceFailure&&(i.eventSourceFailure.call(o,l),c=!0),e.failure&&(e.failure(l),c=!0),c||console.warn(l.message,l),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:s,fetchRange:t,error:l})}),Object.assign(Object.assign({},e),{isFetching:!0,latestFetchId:s})}function M$e(e,t,n,r){let i=e[t];return i&&n===i.latestFetchId?Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},i),{isFetching:!1,fetchRange:r})}):e}function cF(e,t){return Td(e,n=>dF(n,t))}function N$e(e,t){let n=IL(t),r=[].concat(e.eventSources||[]),i=[];e.initialEvents&&r.unshift(e.initialEvents),e.events&&r.unshift(e.events);for(let o of r){let a=_L(o,t,n);a&&i.push(a)}return i}function dF(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function L$e(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function F$e(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function j$e(e,t){let n;switch(t.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function z$e(e,t){let n;switch(t.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function B$e(e,t,n,r,i){let o=e.headerToolbar?fF(e.headerToolbar,e,t,n,r,i):null,a=e.footerToolbar?fF(e.footerToolbar,e,t,n,r,i):null;return{header:o,footer:a}}function fF(e,t,n,r,i,o){let a={},s=[],l=!1;for(let c in e){let d=e[c],f=H$e(d,t,n,r,i,o);a[c]=f.widgets,s.push(...f.viewsWithButtons),l=l||f.hasTitle}return{sectionWidgets:a,viewsWithButtons:s,hasTitle:l}}function H$e(e,t,n,r,i,o){let a=t.direction==="rtl",s=t.customButtons||{},l=n.buttonText||{},c=t.buttonText||{},d=n.buttonHints||{},f=t.buttonHints||{},g=e?e.split(" "):[],p=[],m=!1;return{widgets:g.map(w=>w.split(",").map(x=>{if(x==="title")return m=!0,{buttonName:x};let b,S,$,E,T,A;if(b=s[x])$=R=>{b.click&&b.click.call(R.target,R,R.target)},(E=r.getCustomButtonIconClass(b))||(E=r.getIconClass(x,a))||(T=b.text),A=b.hint||b.text;else if(S=i[x]){p.push(x),$=()=>{o.changeView(x)},(T=S.buttonTextOverride)||(E=r.getIconClass(x,a))||(T=S.buttonTextDefault);let R=S.buttonTextOverride||S.buttonTextDefault;A=yh(S.buttonTitleOverride||S.buttonTitleDefault||t.viewHint,[R,x],R)}else if(o[x])if($=()=>{o[x]()},(T=l[x])||(E=r.getIconClass(x,a))||(T=c[x]),x==="prevYear"||x==="nextYear"){let R=x==="prevYear"?"prev":"next";A=yh(d[R]||f[R],[c.year||"year","year"],c[x])}else A=R=>yh(d[x]||f[x],[c[R]||R,R],c[x]);return{buttonName:x,buttonClick:$,buttonIcon:E,buttonText:T,buttonHint:A}})),viewsWithButtons:p,hasTitle:m}}class U$e{constructor(t,n,r){this.type=t,this.getCurrentData=n,this.dateEnv=r}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(t){return this.getCurrentData().options[t]}}const W$e=Ko({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta(e){return Array.isArray(e.events)?e.events:null},fetch(e,t){t({rawEvents:e.eventSource.meta})}}]}),V$e=Ko({name:"func-event-source",eventSourceDefs:[{parseMeta(e){return typeof e.events=="function"?e.events:null},fetch(e,t,n){const{dateEnv:r}=e.context,i=e.eventSource.meta;y9e(i.bind(null,BL(e.range,r)),o=>t({rawEvents:o}),n)}}]}),G$e=Ko({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:re,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta(e){return e.url&&(e.format==="json"||!e.format)?{url:e.url,format:"json",method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}:null},fetch(e,t,n){const{meta:r}=e.eventSource,i=q$e(r,e.range,e.context);b9e(r.method,r.url,i).then(([o,a])=>{t({rawEvents:o,response:a})},n)}}]});function q$e(e,t,n){let{dateEnv:r,options:i}=n,o,a,s,l,c={};return o=e.startParam,o==null&&(o=i.startParam),a=e.endParam,a==null&&(a=i.endParam),s=e.timeZoneParam,s==null&&(s=i.timeZoneParam),typeof e.extraParams=="function"?l=e.extraParams():l=e.extraParams||{},Object.assign(c,l),c[o]=r.formatIso(t.start),c[a]=r.formatIso(t.end),r.timeZone!=="local"&&(c[s]=r.timeZone),c}const Y$e=Ko({name:"simple-recurring-event",recurringTypes:[{parse(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){let n={daysOfWeek:e.daysOfWeek||null,startTime:e.startTime||null,endTime:e.endTime||null,startRecur:e.startRecur?t.createMarker(e.startRecur):null,endRecur:e.endRecur?t.createMarker(e.endRecur):null},r;return e.duration&&(r=e.duration),!r&&e.startTime&&e.endTime&&(r=ASe(e.endTime,e.startTime)),{allDayGuess:!e.startTime&&!e.endTime,duration:r,typeData:n}}return null},expand(e,t,n){let r=Go(t,{start:e.startRecur,end:e.endRecur});return r?K$e(e.daysOfWeek,e.startTime,r,n):[]}}],eventRefiners:{daysOfWeek:re,startTime:yt,endTime:yt,duration:yt,startRecur:re,endRecur:re}});function K$e(e,t,n,r){let i=e?mL(e):null,o=Bt(n.start),a=n.end,s=[];for(;o<a;){let l;(!i||i[o.getUTCDay()])&&(t?l=r.add(o,t):l=o,s.push(l)),o=xn(o,1)}return s}const Z$e=Ko({name:"change-handler",optionChangeHandlers:{events(e,t){pF([e],t)},eventSources:pF}});function pF(e,t){let n=HS(t.getCurrentData().eventSources);n.length===1&&e.length===1&&Array.isArray(n[0]._raw)&&Array.isArray(e[0])&&t.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:e[0]});let r=[];for(let i of e){let o=!1;for(let a=0;a<n.length;a+=1)if(n[a]._raw===i){n.splice(a,1),o=!0;break}o||r.push(i)}for(let i of n)t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:i.sourceId});for(let i of r)t.calendarApi.addEventSource(i)}function Q$e(e,t){t.emitter.trigger("datesSet",Object.assign(Object.assign({},BL(e.activeRange,t.dateEnv)),{view:t.viewApi}))}function X$e(e,t){let{emitter:n}=t;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",e8(e,t))}const J$e=[W$e,V$e,G$e,Y$e,Z$e,Ko({name:"misc",isLoadingFuncs:[e=>sF(e.eventSources)],propSetHandlers:{dateProfile:Q$e,eventStore:X$e}})];class eCe{constructor(t,n){this.runTaskOption=t,this.drainedOption=n,this.queue=[],this.delayedRunner=new IS(this.drain.bind(this))}request(t,n){this.queue.push(t),this.delayedRunner.request(n)}pause(t){this.delayedRunner.pause(t)}resume(t,n){this.delayedRunner.resume(t,n)}drain(){let{queue:t}=this;for(;t.length;){let n=[],r;for(;r=t.shift();)this.runTask(r),n.push(r);this.drained(n)}}runTask(t){this.runTaskOption&&this.runTaskOption(t)}drained(t){this.drainedOption&&this.drainedOption(t)}}function tCe(e,t,n){let r;return/^(year|month)$/.test(e.currentRangeUnit)?r=e.currentRange:r=e.activeRange,n.formatRange(r.start,r.end,Ot(t.titleFormat||nCe(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}function nCe(e){let{currentRangeUnit:t}=e;if(t==="year")return{year:"numeric"};if(t==="month")return{year:"numeric",month:"long"};let n=Nv(e.currentRange.start,e.currentRange.end);return n!==null&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class rCe{constructor(t){this.computeCurrentViewData=Le(this._computeCurrentViewData),this.organizeRawLocales=Le(f$e),this.buildLocale=Le(rF),this.buildPluginHooks=m$e(),this.buildDateEnv=Le(iCe),this.buildTheme=Le(oCe),this.parseToolbars=Le(B$e),this.buildViewSpecs=Le($$e),this.buildDateProfileGenerator=Lv(aCe),this.buildViewApi=Le(sCe),this.buildViewUiProps=Lv(cCe),this.buildEventUiBySource=Le(lCe,pi),this.buildEventUiBases=Le(uCe),this.parseContextBusinessHours=Lv(dCe),this.buildTitle=Le(tCe),this.emitter=new K8e,this.actionRunner=new eCe(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=g=>{this.actionRunner.request(g)},this.props=t,this.actionRunner.pause();let n={},r=this.computeOptionsData(t.optionOverrides,n,t.calendarApi),i=r.calendarOptions.initialView||r.pluginHooks.initialView,o=this.computeCurrentViewData(i,r,t.optionOverrides,n);t.calendarApi.currentDataManager=this,this.emitter.setThisContext(t.calendarApi),this.emitter.setOptions(o.options);let a=R8e(r.calendarOptions,r.dateEnv),s=o.dateProfileGenerator.build(a);ja(s.activeRange,a)||(a=s.currentRange.start);let l={dateEnv:r.dateEnv,options:r.calendarOptions,pluginHooks:r.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let g of r.pluginHooks.contextInit)g(l);let c=R$e(r.calendarOptions,s,l),d={dynamicOptionOverrides:n,currentViewType:i,currentDate:a,dateProfile:s,businessHours:this.parseContextBusinessHours(l),eventSources:c,eventUiBases:{},eventStore:za(),renderableEventStore:za(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(l).selectionConfig},f=Object.assign(Object.assign({},l),d);for(let g of r.pluginHooks.reducers)Object.assign(d,g(null,null,f));T8(d,l)&&this.emitter.trigger("loading",!0),this.state=d,this.updateData(),this.actionRunner.resume()}resetOptions(t,n){let{props:r}=this;n===void 0?r.optionOverrides=t:(r.optionOverrides=Object.assign(Object.assign({},r.optionOverrides||{}),t),this.optionsForRefining.push(...n)),(n===void 0||n.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(t){let{props:n,state:r,emitter:i}=this,o=T$e(r.dynamicOptionOverrides,t),a=this.computeOptionsData(n.optionOverrides,o,n.calendarApi),s=k$e(r.currentViewType,t),l=this.computeCurrentViewData(s,a,n.optionOverrides,o);n.calendarApi.currentDataManager=this,i.setThisContext(n.calendarApi),i.setOptions(l.options);let c={dateEnv:a.dateEnv,options:a.calendarOptions,pluginHooks:a.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:i,getCurrentData:this.getCurrentData},{currentDate:d,dateProfile:f}=r;this.data&&this.data.dateProfileGenerator!==l.dateProfileGenerator&&(f=l.dateProfileGenerator.build(d)),d=A8e(d,t),f=A$e(f,t,d,l.dateProfileGenerator),(t.type==="PREV"||t.type==="NEXT"||!ja(f.currentRange,d))&&(d=f.currentRange.start);let g=O$e(r.eventSources,t,f,c),p=U8e(r.eventStore,t,g,f,c),v=sF(g)&&!l.options.progressiveEventRendering&&r.renderableEventStore||p,{eventUiSingleBase:w,selectionConfig:x}=this.buildViewUiProps(c),b=this.buildEventUiBySource(g),S=this.buildEventUiBases(v.defs,w,b),$={dynamicOptionOverrides:o,currentViewType:s,currentDate:d,dateProfile:f,eventSources:g,eventStore:p,renderableEventStore:v,selectionConfig:x,eventUiBases:S,businessHours:this.parseContextBusinessHours(c),dateSelection:L$e(r.dateSelection,t),eventSelection:F$e(r.eventSelection,t),eventDrag:j$e(r.eventDrag,t),eventResize:z$e(r.eventResize,t)},E=Object.assign(Object.assign({},c),$);for(let R of a.pluginHooks.reducers)Object.assign($,R(r,t,E));let T=T8(r,c),A=T8($,c);!T&&A?i.trigger("loading",!0):T&&!A&&i.trigger("loading",!1),this.state=$,n.onAction&&n.onAction(t)}updateData(){let{props:t,state:n}=this,r=this.data,i=this.computeOptionsData(t.optionOverrides,n.dynamicOptionOverrides,t.calendarApi),o=this.computeCurrentViewData(n.currentViewType,i,t.optionOverrides,n.dynamicOptionOverrides),a=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(n.dateProfile,o.options,i.dateEnv),calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},i),o),n),s=i.pluginHooks.optionChangeHandlers,l=r&&r.calendarOptions,c=i.calendarOptions;if(l&&l!==c){l.timeZone!==c.timeZone&&(n.eventSources=a.eventSources=_$e(a.eventSources,n.dateProfile,a),n.eventStore=a.eventStore=q8e(a.eventStore,r.dateEnv,a.dateEnv));for(let d in s)(this.optionsForHandling.indexOf(d)!==-1||l[d]!==c[d])&&s[d](c[d],a)}this.optionsForHandling=[],t.onData&&t.onData(a)}computeOptionsData(t,n,r){if(!this.optionsForRefining.length&&t===this.stableOptionOverrides&&n===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:i,pluginHooks:o,localeDefaults:a,availableLocaleData:s,extra:l}=this.processRawCalendarOptions(t,n);hF(l);let c=this.buildDateEnv(i.timeZone,i.locale,i.weekNumberCalculation,i.firstDay,i.weekText,o,s,i.defaultRangeSeparator),d=this.buildViewSpecs(o.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,a),f=this.buildTheme(i,o),g=this.parseToolbars(i,this.stableOptionOverrides,f,d,r);return this.stableCalendarOptionsData={calendarOptions:i,pluginHooks:o,dateEnv:c,viewSpecs:d,theme:f,toolbarConfig:g,localeDefaults:a,availableRawLocales:s.map}}processRawCalendarOptions(t,n){let{locales:r,locale:i}=jS([xh,t,n]),o=this.organizeRawLocales(r),a=o.map,s=this.buildLocale(i||o.defaultCode,a).options,l=this.buildPluginHooks(t.plugins||[],J$e),c=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},pL),hL),gL),l.listenerRefiners),l.optionRefiners),d={},f=jS([xh,s,t,n]),g={},p=this.currentCalendarOptionsInput,m=this.currentCalendarOptionsRefined,v=!1;for(let w in f)this.optionsForRefining.indexOf(w)===-1&&(f[w]===p[w]||yu[w]&&w in p&&yu[w](p[w],f[w]))?g[w]=m[w]:c[w]?(g[w]=c[w](f[w]),v=!0):d[w]=p[w];return v&&(this.currentCalendarOptionsInput=f,this.currentCalendarOptionsRefined=g,this.stableOptionOverrides=t,this.stableDynamicOptionOverrides=n),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:l,availableLocaleData:o,localeDefaults:s,extra:d}}_computeCurrentViewData(t,n,r,i){let o=n.viewSpecs[t];if(!o)throw new Error(`viewType "${t}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:a,extra:s}=this.processRawViewOptions(o,n.pluginHooks,n.localeDefaults,r,i);hF(s);let l=this.buildDateProfileGenerator({dateProfileGeneratorClass:o.optionDefaults.dateProfileGeneratorClass,duration:o.duration,durationUnit:o.durationUnit,usesMinMaxTime:o.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}),c=this.buildViewApi(t,this.getCurrentData,n.dateEnv);return{viewSpec:o,options:a,dateProfileGenerator:l,viewApi:c}}processRawViewOptions(t,n,r,i,o){let a=jS([xh,t.optionDefaults,r,i,t.optionOverrides,o]),s=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},pL),hL),gL),o8e),n.listenerRefiners),n.optionRefiners),l={},c=this.currentViewOptionsInput,d=this.currentViewOptionsRefined,f=!1,g={};for(let p in a)a[p]===c[p]||yu[p]&&yu[p](a[p],c[p])?l[p]=d[p]:(a[p]===this.currentCalendarOptionsInput[p]||yu[p]&&yu[p](a[p],this.currentCalendarOptionsInput[p])?p in this.currentCalendarOptionsRefined&&(l[p]=this.currentCalendarOptionsRefined[p]):s[p]?l[p]=s[p](a[p]):g[p]=a[p],f=!0);return f&&(this.currentViewOptionsInput=a,this.currentViewOptionsRefined=l),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:g}}}function iCe(e,t,n,r,i,o,a,s){let l=rF(t||a.defaultCode,a.map);return new g8e({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:o.namedTimeZonedImpl,locale:l,weekNumberCalculation:n,firstDay:r,weekText:i,cmdFormatter:o.cmdFormatter,defaultSeparator:s})}function oCe(e,t){let n=t.themeClasses[e.themeSystem]||ol;return new n(e)}function aCe(e){let t=e.dateProfileGeneratorClass||qS;return new t(e)}function sCe(e,t,n){return new U$e(e,t,n)}function lCe(e){return xu(e,t=>t.ui)}function uCe(e,t,n){let r={"":t};for(let i in e){let o=e[i];o.sourceId&&n[o.sourceId]&&(r[i]=n[o.sourceId])}return r}function cCe(e){let{options:t}=e;return{eventUiSingleBase:Gv({display:t.eventDisplay,editable:t.editable,startEditable:t.eventStartEditable,durationEditable:t.eventDurationEditable,constraint:t.eventConstraint,overlap:typeof t.eventOverlap=="boolean"?t.eventOverlap:void 0,allow:t.eventAllow,backgroundColor:t.eventBackgroundColor,borderColor:t.eventBorderColor,textColor:t.eventTextColor,color:t.eventColor},e),selectionConfig:Gv({constraint:t.selectConstraint,overlap:typeof t.selectOverlap=="boolean"?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function T8(e,t){for(let n of t.pluginHooks.isLoadingFuncs)if(n(e))return!0;return!1}function dCe(e){return J8e(e.options.businessHours,e)}function hF(e,t){for(let n in e)console.warn(`Unknown option '${n}'`+(t?` for view '${t}'`:""))}class fCe extends bt{render(){let t=this.props.widgetGroups.map(n=>this.renderWidgetGroup(n));return F("div",{className:"fc-toolbar-chunk"},...t)}renderWidgetGroup(t){let{props:n}=this,{theme:r}=this.context,i=[],o=!0;for(let a of t){let{buttonName:s,buttonClick:l,buttonText:c,buttonIcon:d,buttonHint:f}=a;if(s==="title")o=!1,i.push(F("h2",{className:"fc-toolbar-title",id:n.titleId},n.title));else{let g=s===n.activeButton,p=!n.isTodayEnabled&&s==="today"||!n.isPrevEnabled&&s==="prev"||!n.isNextEnabled&&s==="next",m=[`fc-${s}-button`,r.getClass("button")];g&&m.push(r.getClass("buttonActive")),i.push(F("button",{type:"button",title:typeof f=="function"?f(n.navUnit):f,disabled:p,"aria-pressed":g,className:m.join(" "),onClick:l},c||(d?F("span",{className:d}):"")))}}if(i.length>1){let a=o&&r.getClass("buttonGroup")||"";return F("div",{className:a},...i)}return i[0]}}class gF extends bt{render(){let{model:t,extraClassName:n}=this.props,r=!1,i,o,a=t.sectionWidgets,s=a.center;return a.left?(r=!0,i=a.left):i=a.start,a.right?(r=!0,o=a.right):o=a.end,F("div",{className:[n||"","fc-toolbar",r?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",i||[]),this.renderSection("center",s||[]),this.renderSection("end",o||[]))}renderSection(t,n){let{props:r}=this;return F(fCe,{key:t,widgetGroups:n,title:r.title,navUnit:r.navUnit,activeButton:r.activeButton,isTodayEnabled:r.isTodayEnabled,isPrevEnabled:r.isPrevEnabled,isNextEnabled:r.isNextEnabled,titleId:r.titleId})}}class pCe extends bt{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=t=>{this.el=t,Vo(this.props.elRef,t),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:t,state:n}=this,{aspectRatio:r}=t,i=["fc-view-harness",r||t.liquid||t.height?"fc-view-harness-active":"fc-view-harness-passive"],o="",a="";return r?n.availableWidth!==null?o=n.availableWidth/r:a=`${1/r*100}%`:o=t.height||"",F("div",{"aria-labelledby":t.labeledById,ref:this.handleEl,className:i.join(" "),style:{height:o,paddingBottom:a}},t.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 hCe extends VL{constructor(t){super(t),this.handleSegClick=(n,r)=>{let{component:i}=this,{context:o}=i,a=n8(r);if(a&&i.isValidSegDownEl(n.target)){let s=La(n.target,".fc-event-forced-url"),l=s?s.querySelector("a[href]").href:"";o.emitter.trigger("eventClick",{el:r,event:new ji(i.context,a.eventRange.def,a.eventRange.instance),jsEvent:n,view:o.viewApi}),l&&!n.defaultPrevented&&(window.location.href=l)}},this.destroy=JN(t.el,"click",".fc-event",this.handleSegClick)}}class gCe extends VL{constructor(t){super(t),this.handleEventElRemove=n=>{n===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(n,r)=>{n8(r)&&(this.currentSegEl=r,this.triggerEvent("eventMouseEnter",n,r))},this.handleSegLeave=(n,r)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",n,r))},this.removeHoverListeners=bSe(t.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(t,n,r){let{component:i}=this,{context:o}=i,a=n8(r);(!n||i.isValidSegDownEl(n.target))&&o.emitter.trigger(t,{el:r,event:new ji(o,a.eventRange.def,a.eventRange.instance),jsEvent:n,view:o.viewApi})}}class mCe extends wu{constructor(){super(...arguments),this.buildViewContext=Le(y8e),this.buildViewPropTransformers=Le(yCe),this.buildToolbarProps=Le(vCe),this.headerRef=Pn(),this.footerRef=Pn(),this.interactionsStore={},this.state={viewLabelId:Wo()},this.registerInteractiveComponent=(t,n)=>{let r=S9e(t,n),a=[hCe,gCe].concat(this.props.pluginHooks.componentInteractions).map(s=>new s(r));this.interactionsStore[t.uid]=a,GL[t.uid]=r},this.unregisterInteractiveComponent=t=>{let n=this.interactionsStore[t.uid];if(n){for(let r of n)r.destroy();delete this.interactionsStore[t.uid]}delete GL[t.uid]},this.resizeRunner=new IS(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=t=>{let{options:n}=this.props;n.handleWindowResize&&t.target===window&&this.resizeRunner.request(n.windowResizeDelay)}}render(){let{props:t}=this,{toolbarConfig:n,options:r}=t,i=this.buildToolbarProps(t.viewSpec,t.dateProfile,t.dateProfileGenerator,t.currentDate,Sh(t.options.now,t.dateEnv),t.viewTitle),o=!1,a="",s;t.isHeightAuto||t.forPrint?a="":r.height!=null?o=!0:r.contentHeight!=null?a=r.contentHeight:s=Math.max(r.aspectRatio,.5);let l=this.buildViewContext(t.viewSpec,t.viewApi,t.options,t.dateProfileGenerator,t.dateEnv,t.theme,t.pluginHooks,t.dispatch,t.getCurrentData,t.emitter,t.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),c=n.header&&n.header.hasTitle?this.state.viewLabelId:"";return F(Fa.Provider,{value:l},n.header&&F(gF,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:c},i)),F(pCe,{liquid:o,height:a,aspectRatio:s,labeledById:c},this.renderView(t),this.buildAppendContent()),n.footer&&F(gF,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},i)))}componentDidMount(){let{props:t}=this;this.calendarInteractions=t.pluginHooks.calendarInteractions.map(r=>new r(t)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:n}=t.pluginHooks;for(let r in n)n[r](t[r],t)}componentDidUpdate(t){let{props:n}=this,{propSetHandlers:r}=n.pluginHooks;for(let i in r)n[i]!==t[i]&&r[i](n[i],n)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let t of this.calendarInteractions)t.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:t}=this,n=t.pluginHooks.viewContainerAppends.map(r=>r(t));return F(ut,{},...n)}renderView(t){let{pluginHooks:n}=t,{viewSpec:r}=t,i={dateProfile:t.dateProfile,businessHours:t.businessHours,eventStore:t.renderableEventStore,eventUiBases:t.eventUiBases,dateSelection:t.dateSelection,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,isHeightAuto:t.isHeightAuto,forPrint:t.forPrint},o=this.buildViewPropTransformers(n.viewPropsTransformers);for(let s of o)Object.assign(i,s.transform(i,t));let a=r.component;return F(a,Object.assign({},i))}}function vCe(e,t,n,r,i,o){let a=n.build(i,void 0,!1),s=n.buildPrev(t,r,!1),l=n.buildNext(t,r,!1);return{title:o,activeButton:e.type,navUnit:e.singleUnit,isTodayEnabled:a.isValid&&!ja(t.currentRange,i),isPrevEnabled:s.isValid,isNextEnabled:l.isValid}}function yCe(e){return e.map(t=>new t)}class bCe extends $9e{constructor(t,n={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=r=>{switch(r.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=r=>{this.currentData=r,this.renderRunner.request(r.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:r}=this;yL(()=>{mh(F(w9e,{options:r.calendarOptions,theme:r.theme,emitter:r.emitter},(i,o,a,s)=>(this.setClassNames(i),this.setHeight(o),F(SL.Provider,{value:this.customContentRenderId},F(mCe,Object.assign({isHeightAuto:a,forPrint:s},r))))),this.el)})}else this.isRendered&&(this.isRendered=!1,mh(null,this.el),this.setClassNames([]),this.setHeight(""))},uSe(t),this.el=t,this.renderRunner=new IS(this.handleRenderRequest),new rCe({optionOverrides:n,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let t=this.isRendering;t?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),t&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){yL(()=>{super.updateSize()})}batchRendering(t){this.renderRunner.pause("batchRendering"),t(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(t,n){this.currentDataManager.resetOptions(t,n)}setClassNames(t){if(!Js(t,this.currentClassNames)){let{classList:n}=this.el;for(let r of this.currentClassNames)n.remove(r);for(let r of t)n.add(r);this.currentClassNames=t}}setHeight(t){QN(this.el,"height",t)}}class ry extends O.Component{constructor(){super(...arguments),this.elRef=O.createRef(),this.needsCustomRenderingResize=!1,this.isInitialRender=!0,this.state={customRenderingMap:new Map}}render(){const t=[];for(const n of this.state.customRenderingMap.values()){const{generatorMeta:r}=n,i=typeof r=="function"?r(n.renderProps):r;t.push(Ss.createPortal(i,n.containerEl,n.id))}return oe.createElement("div",{ref:this.elRef},t)}componentDidMount(){const t=new u$e;this.handleCustomRendering=t.handle.bind(t),this.calendar=new bCe(this.elRef.current,Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.calendar.render(),t.subscribe(n=>{this.isInitialRender?this.doCustomRendering(n):this.requestCustomRendering(n)})}requestCustomRendering(t){this.cancelCustomRendering(),this.customRenderingRequestId=requestAnimationFrame(()=>{ry.act(()=>{this.doCustomRendering(t)})})}doCustomRendering(t){this.needsCustomRenderingResize=!0,this.setState({customRenderingMap:t})}cancelCustomRendering(){this.customRenderingRequestId&&(cancelAnimationFrame(this.customRenderingRequestId),this.customRenderingRequestId=void 0)}componentDidUpdate(){this.isInitialRender=!1,this.calendar.resetOptions(Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.needsCustomRenderingResize&&(this.needsCustomRenderingResize=!1,this.calendar.updateSize())}componentWillUnmount(){this.calendar.destroy(),this.cancelCustomRendering()}getApi(){return this.calendar}}ry.act=e=>{e()};class xCe extends bt{constructor(){super(...arguments),this.state={textId:Wo()}}render(){let{theme:t,dateEnv:n,options:r,viewApi:i}=this.context,{cellId:o,dayDate:a,todayRange:s}=this.props,{textId:l}=this.state,c=a8(a,s),d=r.listDayFormat?n.format(a,r.listDayFormat):"",f=r.listDaySideFormat?n.format(a,r.listDaySideFormat):"",g=Object.assign({date:n.toDate(a),view:i,textId:l,text:d,sideText:f,navLinkAttrs:il(this.context,a),sideNavLinkAttrs:il(this.context,a,"day",!1)},c);return F(hr,{elTag:"tr",elClasses:["fc-list-day",...Kv(c,t)],elAttrs:{"data-date":bh(a)},renderProps:g,generatorName:"dayHeaderContent",customGenerator:r.dayHeaderContent,defaultGenerator:wCe,classNameGenerator:r.dayHeaderClassNames,didMount:r.dayHeaderDidMount,willUnmount:r.dayHeaderWillUnmount},p=>F("th",{scope:"colgroup",colSpan:3,id:o,"aria-labelledby":l},F(p,{elTag:"div",elClasses:["fc-list-day-cushion",t.getClass("tableCellShaded")]})))}}function wCe(e){return F(ut,null,e.text&&F("a",Object.assign({id:e.textId,className:"fc-list-day-text"},e.navLinkAttrs),e.text),e.sideText&&F("a",Object.assign({"aria-hidden":!0,className:"fc-list-day-side-text"},e.sideNavLinkAttrs),e.sideText))}const SCe=Ot({hour:"numeric",minute:"2-digit",meridiem:"short"});class $Ce extends bt{render(){let{props:t,context:n}=this,{options:r}=n,{seg:i,timeHeaderId:o,eventHeaderId:a,dateHeaderId:s}=t,l=r.eventTimeFormat||SCe;return F(Eh,Object.assign({},t,{elTag:"tr",elClasses:["fc-list-event",i.eventRange.def.url&&"fc-event-forced-url"],defaultGenerator:()=>CCe(i,n),seg:i,timeText:"",disableDragging:!0,disableResizing:!0}),(c,d)=>F(ut,null,ECe(i,l,n,o,s),F("td",{"aria-hidden":!0,className:"fc-list-event-graphic"},F("span",{className:"fc-list-event-dot",style:{borderColor:d.borderColor||d.backgroundColor}})),F(c,{elTag:"td",elClasses:["fc-list-event-title"],elAttrs:{headers:`${a} ${s}`}})))}}function CCe(e,t){let n=Yv(e,t);return F("a",Object.assign({},n),e.eventRange.def.title)}function ECe(e,t,n,r,i){let{options:o}=n;if(o.displayEventTime!==!1){let a=e.eventRange.def,s=e.eventRange.instance,l=!1,c;if(a.allDay?l=!0:T8e(e.eventRange.range)?e.isStart?c=Od(e,t,n,null,null,s.range.start,e.end):e.isEnd?c=Od(e,t,n,null,null,e.start,s.range.end):l=!0:c=Od(e,t,n),l){let d={text:n.options.allDayText,view:n.viewApi};return F(hr,{elTag:"td",elClasses:["fc-list-event-time"],elAttrs:{headers:`${r} ${i}`},renderProps:d,generatorName:"allDayContent",customGenerator:o.allDayContent,defaultGenerator:kCe,classNameGenerator:o.allDayClassNames,didMount:o.allDayDidMount,willUnmount:o.allDayWillUnmount})}return F("td",{className:"fc-list-event-time"},c)}return null}function kCe(e){return e.text}class TCe extends gr{constructor(){super(...arguments),this.computeDateVars=Le(RCe),this.eventStoreToSegs=Le(this._eventStoreToSegs),this.state={timeHeaderId:Wo(),eventHeaderId:Wo(),dateHeaderIdRoot:Wo()},this.setRootEl=t=>{t?this.context.registerInteractiveComponent(this,{el:t}):this.context.unregisterInteractiveComponent(this)}}render(){let{props:t,context:n}=this,{dayDates:r,dayRanges:i}=this.computeDateVars(t.dateProfile),o=this.eventStoreToSegs(t.eventStore,t.eventUiBases,i);return F(Ad,{elRef:this.setRootEl,elClasses:["fc-list",n.theme.getClass("table"),n.options.stickyHeaderDates!==!1?"fc-list-sticky":""],viewSpec:n.viewSpec},F(ZL,{liquid:!t.isHeightAuto,overflowX:t.isHeightAuto?"visible":"hidden",overflowY:t.isHeightAuto?"visible":"auto"},o.length>0?this.renderSegList(o,r):this.renderEmptyMessage()))}renderEmptyMessage(){let{options:t,viewApi:n}=this.context,r={text:t.noEventsText,view:n};return F(hr,{elTag:"div",elClasses:["fc-list-empty"],renderProps:r,generatorName:"noEventsContent",customGenerator:t.noEventsContent,defaultGenerator:ACe,classNameGenerator:t.noEventsClassNames,didMount:t.noEventsDidMount,willUnmount:t.noEventsWillUnmount},i=>F(i,{elTag:"div",elClasses:["fc-list-empty-cushion"]}))}renderSegList(t,n){let{theme:r,options:i}=this.context,{timeHeaderId:o,eventHeaderId:a,dateHeaderIdRoot:s}=this.state,l=OCe(t);return F(Su,{unit:"day"},(c,d)=>{let f=[];for(let g=0;g<l.length;g+=1){let p=l[g];if(p){let m=bh(n[g]),v=s+"-"+m;f.push(F(xCe,{key:m,cellId:v,dayDate:n[g],todayRange:d})),p=qv(p,i.eventOrder);for(let w of p)f.push(F($Ce,Object.assign({key:m+":"+w.eventRange.instance.instanceId,seg:w,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,timeHeaderId:o,eventHeaderId:a,dateHeaderId:v},Vr(w,d,c))))}}return F("table",{className:"fc-list-table "+r.getClass("table")},F("thead",null,F("tr",null,F("th",{scope:"col",id:o},i.timeHint),F("th",{scope:"col","aria-hidden":!0}),F("th",{scope:"col",id:a},i.eventHint))),F("tbody",null,f))})}_eventStoreToSegs(t,n,r){return this.eventRangesToSegs(t8(t,n,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,r)}eventRangesToSegs(t,n){let r=[];for(let i of t)r.push(...this.eventRangeToSegs(i,n));return r}eventRangeToSegs(t,n){let{dateEnv:r}=this.context,{nextDayThreshold:i}=this.context.options,o=t.range,a=t.def.allDay,s,l,c,d=[];for(s=0;s<n.length;s+=1)if(l=Go(o,n[s]),l&&(c={component:this,eventRange:t,start:l.start,end:l.end,isStart:t.isStart&&l.start.valueOf()===o.start.valueOf(),isEnd:t.isEnd&&l.end.valueOf()===o.end.valueOf(),dayIndex:s},d.push(c),!c.isEnd&&!a&&s+1<n.length&&o.end<r.add(n[s+1].start,i))){c.end=o.end,c.isEnd=!0;break}return d}}function ACe(e){return e.text}function RCe(e){let t=Bt(e.renderRange.start),n=e.renderRange.end,r=[],i=[];for(;t<n;)r.push(t),i.push({start:t,end:xn(t,1)}),t=xn(t,1);return{dayDates:r,dayRanges:i}}function OCe(e){let t=[],n,r;for(n=0;n<e.length;n+=1)r=e[n],(t[r.dayIndex]||(t[r.dayIndex]=[])).push(r);return t}const _Ce={listDayFormat:mF,listDaySideFormat:mF,noEventsClassNames:re,noEventsContent:re,noEventsDidMount:re,noEventsWillUnmount:re};function mF(e){return e===!1?null:Ot(e)}var ICe=':root{--fc-list-event-dot-width:10px;--fc-list-event-hover-bg-color:#f5f5f5}.fc-theme-standard .fc-list{border:1px solid var(--fc-border-color)}.fc .fc-list-empty{align-items:center;background-color:var(--fc-neutral-bg-color);display:flex;height:100%;justify-content:center}.fc .fc-list-empty-cushion{margin:5em 0}.fc .fc-list-table{border-style:hidden;width:100%}.fc .fc-list-table tr>*{border-left:0;border-right:0}.fc .fc-list-sticky .fc-list-day>*{background:var(--fc-page-bg-color);position:sticky;top:0}.fc .fc-list-table thead{left:-10000px;position:absolute}.fc .fc-list-table tbody>tr:first-child th{border-top:0}.fc .fc-list-table th{padding:0}.fc .fc-list-day-cushion,.fc .fc-list-table td{padding:8px 14px}.fc .fc-list-day-cushion:after{clear:both;content:"";display:table}.fc-theme-standard .fc-list-day-cushion{background-color:var(--fc-neutral-bg-color)}.fc-direction-ltr .fc-list-day-text,.fc-direction-rtl .fc-list-day-side-text{float:left}.fc-direction-ltr .fc-list-day-side-text,.fc-direction-rtl .fc-list-day-text{float:right}.fc-direction-ltr .fc-list-table .fc-list-event-graphic{padding-right:0}.fc-direction-rtl .fc-list-table .fc-list-event-graphic{padding-left:0}.fc .fc-list-event.fc-event-forced-url{cursor:pointer}.fc .fc-list-event:hover td{background-color:var(--fc-list-event-hover-bg-color)}.fc .fc-list-event-graphic,.fc .fc-list-event-time{white-space:nowrap;width:1px}.fc .fc-list-event-dot{border:calc(var(--fc-list-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-list-event-dot-width)/2);box-sizing:content-box;display:inline-block;height:0;width:0}.fc .fc-list-event-title a{color:inherit;text-decoration:none}.fc .fc-list-event.fc-event-forced-url:hover a{text-decoration:underline}';vh(ICe);var DCe=Ko({name:"@fullcalendar/list",optionRefiners:_Ce,views:{list:{component:TCe,buttonTextKey:"list",listDayFormat:{month:"long",day:"numeric",year:"numeric"}},listDay:{type:"list",duration:{days:1},listDayFormat:{weekday:"long"}},listWeek:{type:"list",duration:{weeks:1},listDayFormat:{weekday:"long"},listDaySideFormat:{month:"long",day:"numeric",year:"numeric"}},listMonth:{type:"list",duration:{month:1},listDaySideFormat:{weekday:"long"}},listYear:{type:"list",duration:{year:1},listDaySideFormat:{weekday:"long"}}}});class PCe extends gr{constructor(){super(...arguments),this.headerElRef=Pn()}renderSimpleLayout(t,n){let{props:r,context:i}=this,o=[],a=ey(i.options);return t&&o.push({type:"header",key:"header",isSticky:a,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}}),o.push({type:"body",key:"body",liquid:!0,chunk:{content:n}}),F(Ad,{elClasses:["fc-daygrid"],viewSpec:i.viewSpec},F(v8,{liquid:!r.isHeightAuto&&!r.forPrint,collapsibleWidth:r.forPrint,cols:[],sections:o}))}renderHScrollLayout(t,n,r,i){let o=this.context.pluginHooks.scrollGridImpl;if(!o)throw new Error("No ScrollGrid implementation");let{props:a,context:s}=this,l=!a.forPrint&&ey(s.options),c=!a.forPrint&&XL(s.options),d=[];return t&&d.push({type:"header",key:"header",isSticky:l,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}]}),d.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:n}]}),c&&d.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:m8}]}),F(Ad,{elClasses:["fc-daygrid"],viewSpec:s.viewSpec},F(o,{liquid:!a.isHeightAuto&&!a.forPrint,collapsibleWidth:a.forPrint,colGroups:[{cols:[{span:r,minWidth:i}]}],sections:d}))}}function iy(e,t){let n=[];for(let r=0;r<t;r+=1)n[r]=[];for(let r of e)n[r.row].push(r);return n}function oy(e,t){let n=[];for(let r=0;r<t;r+=1)n[r]=[];for(let r of e)n[r.firstCol].push(r);return n}function vF(e,t){let n=[];if(e){for(let r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(let r of e.segs)n[r.row].segs.push(r)}else for(let r=0;r<t;r+=1)n[r]=null;return n}const yF=Ot({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function bF(e){let{display:t}=e.eventRange.ui;return t==="list-item"||t==="auto"&&!e.eventRange.def.allDay&&e.firstCol===e.lastCol&&e.isStart&&e.isEnd}let xF=class extends bt{render(){let{props:t}=this;return F(y8,Object.assign({},t,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:yF,defaultDisplayEventEnd:t.defaultDisplayEventEnd,disableResizing:!t.seg.eventRange.def.allDay}))}},wF=class extends bt{render(){let{props:t,context:n}=this,{options:r}=n,{seg:i}=t,o=r.eventTimeFormat||yF,a=Od(i,o,n,!0,t.defaultDisplayEventEnd);return F(Eh,Object.assign({},t,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:Yv(t.seg,n),defaultGenerator:MCe,timeText:a,isResizing:!1,isDateSelecting:!1}))}};function MCe(e){return F(ut,null,F("div",{className:"fc-daygrid-event-dot",style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&F("div",{className:"fc-event-time"},e.timeText),F("div",{className:"fc-event-title"},e.event.title||F(ut,null," ")))}let NCe=class extends bt{constructor(){super(...arguments),this.compileSegs=Le(LCe)}render(){let{props:t}=this,{allSegs:n,invisibleSegs:r}=this.compileSegs(t.singlePlacements);return F(C8,{elClasses:["fc-daygrid-more-link"],dateProfile:t.dateProfile,todayRange:t.todayRange,allDayDate:t.allDayDate,moreCnt:t.moreCnt,allSegs:n,hiddenSegs:r,alignmentElRef:t.alignmentElRef,alignGridTop:t.alignGridTop,extraDateSpan:t.extraDateSpan,popoverContent:()=>{let i=(t.eventDrag?t.eventDrag.affectedInstances:null)||(t.eventResize?t.eventResize.affectedInstances:null)||{};return F(ut,null,n.map(o=>{let a=o.eventRange.instance.instanceId;return F("div",{className:"fc-daygrid-event-harness",key:a,style:{visibility:i[a]?"hidden":""}},bF(o)?F(wF,Object.assign({seg:o,isDragging:!1,isSelected:a===t.eventSelection,defaultDisplayEventEnd:!1},Vr(o,t.todayRange))):F(xF,Object.assign({seg:o,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:a===t.eventSelection,defaultDisplayEventEnd:!1},Vr(o,t.todayRange))))}))}})}};function LCe(e){let t=[],n=[];for(let r of e)t.push(r.seg),r.isVisible||n.push(r.seg);return{allSegs:t,invisibleSegs:n}}const FCe=Ot({week:"narrow"});let jCe=class extends gr{constructor(){super(...arguments),this.rootElRef=Pn(),this.state={dayNumberId:Wo()},this.handleRootEl=t=>{Vo(this.rootElRef,t),Vo(this.props.elRef,t)}}render(){let{context:t,props:n,state:r,rootElRef:i}=this,{options:o}=t,{date:a,dateProfile:s}=n,l=n.showDayNumber&&s.currentRangeUnit!=="month"&&(s.currentRange.start.valueOf()===a.valueOf()||a.getUTCDate()===1);return F(ty,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...n.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},n.extraDataAttrs),n.showDayNumber?{"aria-labelledby":r.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:zCe,date:a,dateProfile:s,todayRange:n.todayRange,showDayNumber:n.showDayNumber,isMonthStart:l,extraRenderProps:n.extraRenderProps},(c,d)=>F("div",{ref:n.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:n.minHeight}},n.showWeekNumber&&F(S8,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:il(t,a,"week"),date:a,defaultFormat:FCe}),!d.isDisabled&&(n.showDayNumber||ny(o)||n.forceDayTop)?F("div",{className:"fc-daygrid-day-top"},F(c,{elTag:"a",elClasses:["fc-daygrid-day-number",l&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},il(t,a)),{id:r.dayNumberId})})):n.showDayNumber?F("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},F("a",{className:"fc-daygrid-day-number"}," ")):void 0,F("div",{className:"fc-daygrid-day-events",ref:n.fgContentElRef},n.fgContent,F("div",{className:"fc-daygrid-day-bottom",style:{marginTop:n.moreMarginTop}},F(NCe,{allDayDate:a,singlePlacements:n.singlePlacements,moreCnt:n.moreCnt,alignmentElRef:i,alignGridTop:!n.showDayNumber,extraDateSpan:n.extraDateSpan,dateProfile:n.dateProfile,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,todayRange:n.todayRange}))),F("div",{className:"fc-daygrid-day-bg"},n.bgContent)))}};function zCe(e){return e.dayNumberText||F(ut,null," ")}function BCe(e,t,n,r,i,o,a){let s=new WCe;s.allowReslicing=!0,s.strictOrder=r,t===!0||n===!0?(s.maxCoord=o,s.hiddenConsumes=!0):typeof t=="number"?s.maxStackCnt=t:typeof n=="number"&&(s.maxStackCnt=n,s.hiddenConsumes=!0);let l=[],c=[];for(let x=0;x<e.length;x+=1){let b=e[x],{instanceId:S}=b.eventRange.instance,$=i[S];$!=null?l.push({index:x,thickness:$,span:{start:b.firstCol,end:b.lastCol+1}}):c.push(b)}let d=s.addSegs(l),f=s.toRects(),{singleColPlacements:g,multiColPlacements:p,leftoverMargins:m}=HCe(f,e,a),v=[],w=[];for(let x of c){p[x.firstCol].push({seg:x,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let b=x.firstCol;b<=x.lastCol;b+=1)g[b].push({seg:_d(x,b,b+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let x=0;x<a.length;x+=1)v.push(0);for(let x of d){let b=e[x.index],S=x.span;p[S.start].push({seg:_d(b,S.start,S.end,a),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let $=S.start;$<S.end;$+=1)v[$]+=1,g[$].push({seg:_d(b,$,$+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let x=0;x<a.length;x+=1)w.push(m[x]);return{singleColPlacements:g,multiColPlacements:p,moreCnts:v,moreMarginTops:w}}function HCe(e,t,n){let r=UCe(e,n.length),i=[],o=[],a=[];for(let s=0;s<n.length;s+=1){let l=r[s],c=[],d=0,f=0;for(let p of l){let m=t[p.index];c.push({seg:_d(m,s,s+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:p.levelCoord,marginTop:p.levelCoord-d}),d=p.levelCoord+p.thickness}let g=[];d=0,f=0;for(let p of l){let m=t[p.index],v=p.span.end-p.span.start>1,w=p.span.start===s;f+=p.levelCoord-d,d=p.levelCoord+p.thickness,v?(f+=p.thickness,w&&g.push({seg:_d(m,p.span.start,p.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:p.levelCoord,marginTop:0})):w&&(g.push({seg:_d(m,p.span.start,p.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:p.levelCoord,marginTop:f}),f=0)}i.push(c),o.push(g),a.push(f)}return{singleColPlacements:i,multiColPlacements:o,leftoverMargins:a}}function UCe(e,t){let n=[];for(let r=0;r<t;r+=1)n.push([]);for(let r of e)for(let i=r.span.start;i<r.span.end;i+=1)n[i].push(r);return n}function _d(e,t,n,r){if(e.firstCol===t&&e.lastCol===n-1)return e;let i=e.eventRange,o=i.range,a=Go(o,{start:r[t].date,end:xn(r[n-1].date,1)});return Object.assign(Object.assign({},e),{firstCol:t,lastCol:n-1,eventRange:{def:i.def,ui:Object.assign(Object.assign({},i.ui),{durationEditable:!1}),instance:i.instance,range:a},isStart:e.isStart&&a.start.valueOf()===o.start.valueOf(),isEnd:e.isEnd&&a.end.valueOf()===o.end.valueOf()})}let WCe=class extends l8{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(t){const n=super.addSegs(t),{entriesByLevel:r}=this,i=o=>!this.forceHidden[Yo(o)];for(let o=0;o<r.length;o+=1)r[o]=r[o].filter(i);return n}handleInvalidInsertion(t,n,r){const{entriesByLevel:i,forceHidden:o}=this,{touchingEntry:a,touchingLevel:s,touchingLateral:l}=t;if(this.hiddenConsumes&&a){const c=Yo(a);if(!o[c])if(this.allowReslicing){const d=Object.assign(Object.assign({},a),{span:Qv(a.span,n.span)}),f=Yo(d);o[f]=!0,i[s][l]=d,this.splitEntry(a,n,r)}else o[c]=!0,r.push(a)}return super.handleInvalidInsertion(t,n,r)}},SF=class extends gr{constructor(){super(...arguments),this.cellElRefs=new Gr,this.frameElRefs=new Gr,this.fgElRefs=new Gr,this.segHarnessRefs=new Gr,this.rootElRef=Pn(),this.state={framePositions:null,maxContentHeight:null,eventInstanceHeights:{}},this.handleResize=t=>{t&&this.updateSizing(!0)}}render(){let{props:t,state:n,context:r}=this,{options:i}=r,o=t.cells.length,a=oy(t.businessHourSegs,o),s=oy(t.bgEventSegs,o),l=oy(this.getHighlightSegs(),o),c=oy(this.getMirrorSegs(),o),{singleColPlacements:d,multiColPlacements:f,moreCnts:g,moreMarginTops:p}=BCe(qv(t.fgEventSegs,i.eventOrder),t.dayMaxEvents,t.dayMaxEventRows,i.eventOrderStrict,n.eventInstanceHeights,n.maxContentHeight,t.cells),m=t.eventDrag&&t.eventDrag.affectedInstances||t.eventResize&&t.eventResize.affectedInstances||{};return F("tr",{ref:this.rootElRef,role:"row"},t.renderIntro&&t.renderIntro(),t.cells.map((v,w)=>{let x=this.renderFgSegs(w,t.forPrint?d[w]:f[w],t.todayRange,m),b=this.renderFgSegs(w,VCe(c[w],f),t.todayRange,{},!!t.eventDrag,!!t.eventResize,!1);return F(jCe,{key:v.key,elRef:this.cellElRefs.createRef(v.key),innerElRef:this.frameElRefs.createRef(v.key),dateProfile:t.dateProfile,date:v.date,showDayNumber:t.showDayNumbers,showWeekNumber:t.showWeekNumbers&&w===0,forceDayTop:t.showWeekNumbers,todayRange:t.todayRange,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,extraRenderProps:v.extraRenderProps,extraDataAttrs:v.extraDataAttrs,extraClassNames:v.extraClassNames,extraDateSpan:v.extraDateSpan,moreCnt:g[w],moreMarginTop:p[w],singlePlacements:d[w],fgContentElRef:this.fgElRefs.createRef(v.key),fgContent:F(ut,null,F(ut,null,x),F(ut,null,b)),bgContent:F(ut,null,this.renderFillSegs(l[w],"highlight"),this.renderFillSegs(a[w],"non-business"),this.renderFillSegs(s[w],"bg-event")),minHeight:t.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(t,n){let r=this.props;this.updateSizing(!pi(t,r))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:t}=this;return t.eventDrag&&t.eventDrag.segs.length?t.eventDrag.segs:t.eventResize&&t.eventResize.segs.length?t.eventResize.segs:t.dateSelectionSegs}getMirrorSegs(){let{props:t}=this;return t.eventResize&&t.eventResize.segs.length?t.eventResize.segs:[]}renderFgSegs(t,n,r,i,o,a,s){let{context:l}=this,{eventSelection:c}=this.props,{framePositions:d}=this.state,f=this.props.cells.length===1,g=o||a||s,p=[];if(d)for(let m of n){let{seg:v}=m,{instanceId:w}=v.eventRange.instance,x=w+":"+t,b=m.isVisible&&!i[w],S=m.isAbsolute,$="",E="";S&&(l.isRtl?(E=0,$=d.lefts[v.lastCol]-d.lefts[v.firstCol]):($=0,E=d.rights[v.firstCol]-d.rights[v.lastCol])),p.push(F("div",{className:"fc-daygrid-event-harness"+(S?" fc-daygrid-event-harness-abs":""),key:x,ref:g?null:this.segHarnessRefs.createRef(x),style:{visibility:b?"":"hidden",marginTop:S?"":m.marginTop,top:S?m.absoluteTop:"",left:$,right:E}},bF(v)?F(wF,Object.assign({seg:v,isDragging:o,isSelected:w===c,defaultDisplayEventEnd:f},Vr(v,r))):F(xF,Object.assign({seg:v,isDragging:o,isResizing:a,isDateSelecting:s,isSelected:w===c,defaultDisplayEventEnd:f},Vr(v,r)))))}return p}renderFillSegs(t,n){let{isRtl:r}=this.context,{todayRange:i}=this.props,{framePositions:o}=this.state,a=[];if(o)for(let s of t){let l=r?{right:0,left:o.lefts[s.lastCol]-o.lefts[s.firstCol]}:{left:0,right:o.rights[s.firstCol]-o.rights[s.lastCol]};a.push(F("div",{key:r8(s.eventRange),className:"fc-daygrid-bg-harness",style:l},n==="bg-event"?F(x8,Object.assign({seg:s},Vr(s,i))):w8(n)))}return F(ut,{},...a)}updateSizing(t){let{props:n,state:r,frameElRefs:i}=this;if(!n.forPrint&&n.clientWidth!==null){if(t){let l=n.cells.map(c=>i.currentMap[c.key]);if(l.length){let c=this.rootElRef.current,d=new qo(c,l,!0,!1);(!r.framePositions||!r.framePositions.similarTo(d))&&this.setState({framePositions:new qo(c,l,!0,!1)})}}const o=this.state.eventInstanceHeights,a=this.queryEventInstanceHeights(),s=n.dayMaxEvents===!0||n.dayMaxEventRows===!0;this.safeSetState({eventInstanceHeights:Object.assign(Object.assign({},o),a),maxContentHeight:s?this.computeMaxContentHeight():null})}}queryEventInstanceHeights(){let t=this.segHarnessRefs.currentMap,n={};for(let r in t){let i=Math.round(t[r].getBoundingClientRect().height),o=r.split(":")[0];n[o]=Math.max(n[o]||0,i)}return n}computeMaxContentHeight(){let t=this.props.cells[0].key,n=this.cellElRefs.currentMap[t],r=this.fgElRefs.currentMap[t];return n.getBoundingClientRect().bottom-r.getBoundingClientRect().top}getCellEls(){let t=this.cellElRefs.currentMap;return this.props.cells.map(n=>t[n.key])}};SF.addStateEquality({eventInstanceHeights:pi});function VCe(e,t){if(!e.length)return[];let n=GCe(t);return e.map(r=>({seg:r,isVisible:!0,isAbsolute:!0,absoluteTop:n[r.eventRange.instance.instanceId],marginTop:0}))}function GCe(e){let t={};for(let n of e)for(let r of n)t[r.seg.eventRange.instance.instanceId]=r.absoluteTop;return t}let qCe=class extends gr{constructor(){super(...arguments),this.splitBusinessHourSegs=Le(iy),this.splitBgEventSegs=Le(iy),this.splitFgEventSegs=Le(iy),this.splitDateSelectionSegs=Le(iy),this.splitEventDrag=Le(vF),this.splitEventResize=Le(vF),this.rowRefs=new Gr}render(){let{props:t,context:n}=this,r=t.cells.length,i=this.splitBusinessHourSegs(t.businessHourSegs,r),o=this.splitBgEventSegs(t.bgEventSegs,r),a=this.splitFgEventSegs(t.fgEventSegs,r),s=this.splitDateSelectionSegs(t.dateSelectionSegs,r),l=this.splitEventDrag(t.eventDrag,r),c=this.splitEventResize(t.eventResize,r),d=r>=7&&t.clientWidth?t.clientWidth/n.options.aspectRatio/6:null;return F(Su,{unit:"day"},(f,g)=>F(ut,null,t.cells.map((p,m)=>F(SF,{ref:this.rowRefs.createRef(m),key:p.length?p[0].date.toISOString():m,showDayNumbers:r>1,showWeekNumbers:t.showWeekNumbers,todayRange:g,dateProfile:t.dateProfile,cells:p,renderIntro:t.renderRowIntro,businessHourSegs:i[m],eventSelection:t.eventSelection,bgEventSegs:o[m].filter(YCe),fgEventSegs:a[m],dateSelectionSegs:s[m],eventDrag:l[m],eventResize:c[m],dayMaxEvents:t.dayMaxEvents,dayMaxEventRows:t.dayMaxEventRows,clientWidth:t.clientWidth,clientHeight:t.clientHeight,cellMinHeight:d,forPrint:t.forPrint}))))}componentDidMount(){const t=this.rowRefs.currentMap[0].getCellEls()[0];this.rootEl=t?t.closest(".fc-daygrid-body"):null,this.rootEl&&this.context.registerInteractiveComponent(this,{el:this.rootEl,isHitComboAllowed:this.props.isHitComboAllowed})}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new qo(this.rootEl,this.rowRefs.collect().map(t=>t.getCellEls()[0]),!1,!0),this.colPositions=new qo(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(t,n){let{colPositions:r,rowPositions:i}=this,o=r.leftToIndex(t),a=i.topToIndex(n);if(a!=null&&o!=null){let s=this.props.cells[a][o];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(a,o),allDay:!0},s.extraDateSpan),dayEl:this.getCellEl(a,o),rect:{left:r.lefts[o],right:r.rights[o],top:i.tops[a],bottom:i.bottoms[a]},layer:0}}return null}getCellEl(t,n){return this.rowRefs.currentMap[t].getCellEls()[n]}getCellRange(t,n){let r=this.props.cells[t][n].date,i=xn(r,1);return{start:r,end:i}}};function YCe(e){return e.eventRange.def.allDay}class KCe extends gr{constructor(){super(...arguments),this.elRef=Pn(),this.needsScrollReset=!1}render(){let{props:t}=this,{dayMaxEventRows:n,dayMaxEvents:r,expandRows:i}=t,o=r===!0||n===!0;o&&!i&&(o=!1,n=null,r=null);let a=["fc-daygrid-body",o?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",i?"":"fc-daygrid-body-natural"];return F("div",{ref:this.elRef,className:a.join(" "),style:{width:t.clientWidth,minWidth:t.tableMinWidth}},F("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:t.clientWidth,minWidth:t.tableMinWidth,height:i?t.clientHeight:""}},t.colGroupNode,F("tbody",{role:"presentation"},F(qCe,{dateProfile:t.dateProfile,cells:t.cells,renderRowIntro:t.renderRowIntro,showWeekNumbers:t.showWeekNumbers,clientWidth:t.clientWidth,clientHeight:t.clientHeight,businessHourSegs:t.businessHourSegs,bgEventSegs:t.bgEventSegs,fgEventSegs:t.fgEventSegs,dateSelectionSegs:t.dateSelectionSegs,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,dayMaxEvents:r,dayMaxEventRows:n,forPrint:t.forPrint,isHitComboAllowed:t.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(t){t.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const t=ZCe(this.elRef.current,this.props.dateProfile);if(t){const n=t.closest(".fc-daygrid-body"),r=n.closest(".fc-scroller"),i=t.getBoundingClientRect().top-n.getBoundingClientRect().top;r.scrollTop=i?i+1:0}this.needsScrollReset=!1}}}function ZCe(e,t){let n;return t.currentRangeUnit.match(/year|month/)&&(n=e.querySelector(`[data-date="${LS(t.currentDate)}-01"]`)),n||(n=e.querySelector(`[data-date="${bh(t.currentDate)}"]`)),n}let QCe=class extends g8{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(t,n){return n.sliceRange(t)}};class $F extends gr{constructor(){super(...arguments),this.slicer=new QCe,this.tableRef=Pn()}render(){let{props:t,context:n}=this;return F(KCe,Object.assign({ref:this.tableRef},this.slicer.sliceProps(t,t.dateProfile,t.nextDayThreshold,n,t.dayTableModel),{dateProfile:t.dateProfile,cells:t.dayTableModel.cells,colGroupNode:t.colGroupNode,tableMinWidth:t.tableMinWidth,renderRowIntro:t.renderRowIntro,dayMaxEvents:t.dayMaxEvents,dayMaxEventRows:t.dayMaxEventRows,showWeekNumbers:t.showWeekNumbers,expandRows:t.expandRows,headerAlignElRef:t.headerAlignElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:t.forPrint}))}}class XCe extends PCe{constructor(){super(...arguments),this.buildDayTableModel=Le(JCe),this.headerRef=Pn(),this.tableRef=Pn()}render(){let{options:t,dateProfileGenerator:n}=this.context,{props:r}=this,i=this.buildDayTableModel(r.dateProfile,n),o=t.dayHeaders&&F(f8,{ref:this.headerRef,dateProfile:r.dateProfile,dates:i.headerDates,datesRepDistinctDays:i.rowCnt===1}),a=s=>F($F,{ref:this.tableRef,dateProfile:r.dateProfile,dayTableModel:i,businessHours:r.businessHours,dateSelection:r.dateSelection,eventStore:r.eventStore,eventUiBases:r.eventUiBases,eventSelection:r.eventSelection,eventDrag:r.eventDrag,eventResize:r.eventResize,nextDayThreshold:t.nextDayThreshold,colGroupNode:s.tableColGroupNode,tableMinWidth:s.tableMinWidth,dayMaxEvents:t.dayMaxEvents,dayMaxEventRows:t.dayMaxEventRows,showWeekNumbers:t.weekNumbers,expandRows:!r.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:s.clientWidth,clientHeight:s.clientHeight,forPrint:r.forPrint});return t.dayMinWidth?this.renderHScrollLayout(o,a,i.colCnt,t.dayMinWidth):this.renderSimpleLayout(o,a)}}function JCe(e,t){let n=new p8(e.renderRange,t);return new h8(n,/year|month|week/.test(e.currentRangeUnit))}let e6e=class extends qS{buildRenderRange(t,n,r){let i=super.buildRenderRange(t,n,r),{props:o}=this;return t6e({currentRange:i,snapToWeek:/^(year|month)$/.test(n),fixedWeekCount:o.fixedWeekCount,dateEnv:o.dateEnv})}};function t6e(e){let{dateEnv:t,currentRange:n}=e,{start:r,end:i}=n,o;if(e.snapToWeek&&(r=t.startOfWeek(r),o=t.startOfWeek(i),o.valueOf()!==i.valueOf()&&(i=Mv(o,1))),e.fixedWeekCount){let a=t.startOfWeek(t.startOfMonth(xn(n.end,-1))),s=Math.ceil(oL(a,i));i=Mv(i,6-s)}return{start:r,end:i}}class n6e extends E9e{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(t){return t.allDay?["allDay"]:["timed"]}getKeysForEventDef(t){return t.allDay?s9e(t)?["timed","allDay"]:["allDay"]:["timed"]}}const r6e=Ot({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function CF(e){let t=["fc-timegrid-slot","fc-timegrid-slot-label",e.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return F(Fa.Consumer,null,n=>{if(!e.isLabeled)return F("td",{className:t.join(" "),"data-time":e.isoTimeStr});let{dateEnv:r,options:i,viewApi:o}=n,a=i.slotLabelFormat==null?r6e:Array.isArray(i.slotLabelFormat)?Ot(i.slotLabelFormat[0]):Ot(i.slotLabelFormat),s={level:0,time:e.time,date:r.toDate(e.date),view:o,text:r.format(e.date,a)};return F(hr,{elTag:"td",elClasses:t,elAttrs:{"data-time":e.isoTimeStr},renderProps:s,generatorName:"slotLabelContent",customGenerator:i.slotLabelContent,defaultGenerator:i6e,classNameGenerator:i.slotLabelClassNames,didMount:i.slotLabelDidMount,willUnmount:i.slotLabelWillUnmount},l=>F("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},F(l,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]})))})}function i6e(e){return e.text}class o6e extends bt{render(){return this.props.slatMetas.map(t=>F("tr",{key:t.key},F(CF,Object.assign({},t))))}}const a6e=Ot({week:"short"}),s6e=5;class l6e extends gr{constructor(){super(...arguments),this.allDaySplitter=new n6e,this.headerElRef=Pn(),this.rootElRef=Pn(),this.scrollerElRef=Pn(),this.state={slatCoords:null},this.handleScrollTopRequest=t=>{let n=this.scrollerElRef.current;n&&(n.scrollTop=t)},this.renderHeadAxis=(t,n="")=>{let{options:r}=this.context,{dateProfile:i}=this.props,o=i.renderRange,s=tl(o.start,o.end)===1?il(this.context,o.start,"week"):{};return r.weekNumbers&&t==="day"?F(S8,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:o.start,defaultFormat:a6e},l=>F("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:n}},F(l,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:s}))):F("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},F("div",{className:"fc-timegrid-axis-frame",style:{height:n}}))},this.renderTableRowAxis=t=>{let{options:n,viewApi:r}=this.context,i={text:n.allDayText,view:r};return F(hr,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:i,generatorName:"allDayContent",customGenerator:n.allDayContent,defaultGenerator:u6e,classNameGenerator:n.allDayClassNames,didMount:n.allDayDidMount,willUnmount:n.allDayWillUnmount},o=>F("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",t==null?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:t}},F(o,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]})))},this.handleSlatCoords=t=>{this.setState({slatCoords:t})}}renderSimpleLayout(t,n,r){let{context:i,props:o}=this,a=[],s=ey(i.options);return t&&a.push({type:"header",key:"header",isSticky:s,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}}),n&&(a.push({type:"body",key:"all-day",chunk:{content:n}}),a.push({type:"body",key:"all-day-divider",outerContent:F("tr",{role:"presentation",className:"fc-scrollgrid-section"},F("td",{className:"fc-timegrid-divider "+i.theme.getClass("tableCellShaded")}))})),a.push({type:"body",key:"body",liquid:!0,expandRows:!!i.options.expandRows,chunk:{scrollerElRef:this.scrollerElRef,content:r}}),F(Ad,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:i.viewSpec},F(v8,{liquid:!o.isHeightAuto&&!o.forPrint,collapsibleWidth:o.forPrint,cols:[{width:"shrink"}],sections:a}))}renderHScrollLayout(t,n,r,i,o,a,s){let l=this.context.pluginHooks.scrollGridImpl;if(!l)throw new Error("No ScrollGrid implementation");let{context:c,props:d}=this,f=!d.forPrint&&ey(c.options),g=!d.forPrint&&XL(c.options),p=[];t&&p.push({type:"header",key:"header",isSticky:f,syncRowHeights:!0,chunks:[{key:"axis",rowContent:v=>F("tr",{role:"presentation"},this.renderHeadAxis("day",v.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}]}),n&&(p.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:v=>F("tr",{role:"presentation"},this.renderTableRowAxis(v.rowSyncHeights[0]))},{key:"cols",content:n}]}),p.push({key:"all-day-divider",type:"body",outerContent:F("tr",{role:"presentation",className:"fc-scrollgrid-section"},F("td",{colSpan:2,className:"fc-timegrid-divider "+c.theme.getClass("tableCellShaded")}))}));let m=c.options.nowIndicator;return p.push({type:"body",key:"body",liquid:!0,expandRows:!!c.options.expandRows,chunks:[{key:"axis",content:v=>F("div",{className:"fc-timegrid-axis-chunk"},F("table",{"aria-hidden":!0,style:{height:v.expandRows?v.clientHeight:""}},v.tableColGroupNode,F("tbody",null,F(o6e,{slatMetas:a}))),F("div",{className:"fc-timegrid-now-indicator-container"},F(Su,{unit:m?"minute":"day"},w=>{let x=m&&s&&s.safeComputeTop(w);return typeof x=="number"?F(b8,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:x},isAxis:!0,date:w}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:r}]}),g&&p.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:m8},{key:"cols",content:m8}]}),F(Ad,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:c.viewSpec},F(l,{liquid:!d.isHeightAuto&&!d.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:i,minWidth:o}]}],sections:p}))}getAllDayMaxEventProps(){let{dayMaxEvents:t,dayMaxEventRows:n}=this.context.options;return(t===!0||n===!0)&&(t=void 0,n=s6e),{dayMaxEvents:t,dayMaxEventRows:n}}}function u6e(e){return e.text}class c6e{constructor(t,n,r){this.positions=t,this.dateProfile=n,this.slotDuration=r}safeComputeTop(t){let{dateProfile:n}=this;if(ja(n.currentRange,t)){let r=Bt(t),i=t.valueOf()-r.valueOf();if(i>=vo(n.slotMinTime)&&i<vo(n.slotMaxTime))return this.computeTimeTop(yt(i))}return null}computeDateTop(t,n){return n||(n=Bt(t)),this.computeTimeTop(yt(t.valueOf()-n.valueOf()))}computeTimeTop(t){let{positions:n,dateProfile:r}=this,i=n.els.length,o=(t.milliseconds-vo(r.slotMinTime))/vo(this.slotDuration),a,s;return o=Math.max(0,o),o=Math.min(i,o),a=Math.floor(o),a=Math.min(a,i-1),s=o-a,n.tops[a]+n.getHeight(a)*s}}class d6e extends bt{render(){let{props:t,context:n}=this,{options:r}=n,{slatElRefs:i}=t;return F("tbody",null,t.slatMetas.map((o,a)=>{let s={time:o.time,date:n.dateEnv.toDate(o.date),view:n.viewApi};return F("tr",{key:o.key,ref:i.createRef(o.key)},t.axis&&F(CF,Object.assign({},o)),F(hr,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!o.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":o.isoTimeStr},renderProps:s,generatorName:"slotLaneContent",customGenerator:r.slotLaneContent,classNameGenerator:r.slotLaneClassNames,didMount:r.slotLaneDidMount,willUnmount:r.slotLaneWillUnmount}))}))}}class f6e extends bt{constructor(){super(...arguments),this.rootElRef=Pn(),this.slatElRefs=new Gr}render(){let{props:t,context:n}=this;return F("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},F("table",{"aria-hidden":!0,className:n.theme.getClass("table"),style:{minWidth:t.tableMinWidth,width:t.clientWidth,height:t.minHeight}},t.tableColGroupNode,F(d6e,{slatElRefs:this.slatElRefs,axis:t.axis,slatMetas:t.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:t,props:n}=this;n.onCoords&&n.clientWidth!==null&&this.rootElRef.current.offsetHeight&&n.onCoords(new c6e(new qo(this.rootElRef.current,p6e(this.slatElRefs.currentMap,n.slatMetas),!1,!0),this.props.dateProfile,t.options.slotDuration))}}function p6e(e,t){return t.map(n=>e[n.key])}function kh(e,t){let n=[],r;for(r=0;r<t;r+=1)n.push([]);if(e)for(r=0;r<e.length;r+=1)n[e[r].col].push(e[r]);return n}function EF(e,t){let n=[];if(e){for(let r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(let r of e.segs)n[r.col].segs.push(r)}else for(let r=0;r<t;r+=1)n[r]=null;return n}class h6e extends bt{render(){let{props:t}=this;return F(C8,{elClasses:["fc-timegrid-more-link"],elStyle:{top:t.top,bottom:t.bottom},allDayDate:null,moreCnt:t.hiddenSegs.length,allSegs:t.hiddenSegs,hiddenSegs:t.hiddenSegs,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,todayRange:t.todayRange,popoverContent:()=>RF(t.hiddenSegs,t),defaultGenerator:g6e},n=>F(n,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}}function g6e(e){return e.shortText}function m6e(e,t,n){let r=new l8;t!=null&&(r.strictOrder=t),n!=null&&(r.maxStackCnt=n);let i=r.addSegs(e),o=P9e(i),a=v6e(r);return a=w6e(a,1),{segRects:S6e(a),hiddenGroups:o}}function v6e(e){const{entriesByLevel:t}=e,n=A8((r,i)=>r+":"+i,(r,i)=>{let o=x6e(e,r,i),a=kF(o,n),s=t[r][i];return[Object.assign(Object.assign({},s),{nextLevelNodes:a[0]}),s.thickness+a[1]]});return kF(t.length?{level:0,lateralStart:0,lateralEnd:t[0].length}:null,n)[0]}function kF(e,t){if(!e)return[[],0];let{level:n,lateralStart:r,lateralEnd:i}=e,o=r,a=[];for(;o<i;)a.push(t(n,o)),o+=1;return a.sort(y6e),[a.map(b6e),a[0][1]]}function y6e(e,t){return t[1]-e[1]}function b6e(e){return e[0]}function x6e(e,t,n){let{levelCoords:r,entriesByLevel:i}=e,o=i[t][n],a=r[t]+o.thickness,s=r.length,l=t;for(;l<s&&r[l]<a;l+=1);for(;l<s;l+=1){let c=i[l],d,f=d8(c,o.span.start,u8),g=f[0]+f[1],p=g;for(;(d=c[p])&&d.span.start<o.span.end;)p+=1;if(g<p)return{level:l,lateralStart:g,lateralEnd:p}}return null}function w6e(e,t){const n=A8((r,i,o)=>Yo(r),(r,i,o)=>{let{nextLevelNodes:a,thickness:s}=r,l=s+o,c=s/l,d,f=[];if(!a.length)d=t;else for(let p of a)if(d===void 0){let m=n(p,i,l);d=m[0],f.push(m[1])}else{let m=n(p,d,0);f.push(m[1])}let g=(d-i)*c;return[d-g,Object.assign(Object.assign({},r),{thickness:g,nextLevelNodes:f})]});return e.map(r=>n(r,0,0)[1])}function S6e(e){let t=[];const n=A8((i,o,a)=>Yo(i),(i,o,a)=>{let s=Object.assign(Object.assign({},i),{levelCoord:o,stackDepth:a,stackForward:0});return t.push(s),s.stackForward=r(i.nextLevelNodes,o+i.thickness,a+1)+1});function r(i,o,a){let s=0;for(let l of i)s=Math.max(n(l,o,a),s);return s}return r(e,0,0),t}function A8(e,t){const n={};return(...r)=>{let i=e(...r);return i in n?n[i]:n[i]=t(...r)}}function TF(e,t,n=null,r=0){let i=[];if(n)for(let o=0;o<e.length;o+=1){let a=e[o],s=n.computeDateTop(a.start,t),l=Math.max(s+(r||0),n.computeDateTop(a.end,t));i.push({start:Math.round(s),end:Math.round(l)})}return i}function $6e(e,t,n,r){let i=[],o=[];for(let c=0;c<e.length;c+=1){let d=t[c];d?i.push({index:c,thickness:1,span:d}):o.push(e[c])}let{segRects:a,hiddenGroups:s}=m6e(i,n,r),l=[];for(let c of a)l.push({seg:e[c.index],rect:c});for(let c of o)l.push({seg:c,rect:null});return{segPlacements:l,hiddenGroups:s}}const C6e=Ot({hour:"numeric",minute:"2-digit",meridiem:!1});class AF extends bt{render(){return F(y8,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:C6e}))}}class E6e extends bt{constructor(){super(...arguments),this.sortEventSegs=Le(qv)}render(){let{props:t,context:n}=this,{options:r}=n,i=r.selectMirror,o=t.eventDrag&&t.eventDrag.segs||t.eventResize&&t.eventResize.segs||i&&t.dateSelectionSegs||[],a=t.eventDrag&&t.eventDrag.affectedInstances||t.eventResize&&t.eventResize.affectedInstances||{},s=this.sortEventSegs(t.fgEventSegs,r.eventOrder);return F(ty,{elTag:"td",elRef:t.elRef,elClasses:["fc-timegrid-col",...t.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},t.extraDataAttrs),date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,extraRenderProps:t.extraRenderProps},l=>F("div",{className:"fc-timegrid-col-frame"},F("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(t.businessHourSegs,"non-business"),this.renderFillSegs(t.bgEventSegs,"bg-event"),this.renderFillSegs(t.dateSelectionSegs,"highlight")),F("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(s,a,!1,!1,!1)),F("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(o,{},!!t.eventDrag,!!t.eventResize,!!i)),F("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(t.nowIndicatorSegs)),ny(r)&&F(l,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(t,n,r,i,o){let{props:a}=this;return a.forPrint?RF(t,a):this.renderPositionedFgSegs(t,n,r,i,o)}renderPositionedFgSegs(t,n,r,i,o){let{eventMaxStack:a,eventShortHeight:s,eventOrderStrict:l,eventMinHeight:c}=this.context.options,{date:d,slatCoords:f,eventSelection:g,todayRange:p,nowDate:m}=this.props,v=r||i||o,w=TF(t,d,f,c),{segPlacements:x,hiddenGroups:b}=$6e(t,w,l,a);return F(ut,null,this.renderHiddenGroups(b,t),x.map(S=>{let{seg:$,rect:E}=S,T=$.eventRange.instance.instanceId,A=v||!!(!n[T]&&E),R=R8(E&&E.span),I=!v&&E?this.computeSegHStyle(E):{left:0,right:0},_=!!E&&E.stackForward>0,L=!!E&&E.span.end-E.span.start<s;return F("div",{className:"fc-timegrid-event-harness"+(_?" fc-timegrid-event-harness-inset":""),key:T,style:Object.assign(Object.assign({visibility:A?"":"hidden"},R),I)},F(AF,Object.assign({seg:$,isDragging:r,isResizing:i,isDateSelecting:o,isSelected:T===g,isShort:L},Vr($,p,m))))}))}renderHiddenGroups(t,n){let{extraDateSpan:r,dateProfile:i,todayRange:o,nowDate:a,eventSelection:s,eventDrag:l,eventResize:c}=this.props;return F(ut,null,t.map(d=>{let f=R8(d.span),g=k6e(d.entries,n);return F(h6e,{key:uL(eF(g)),hiddenSegs:g,top:f.top,bottom:f.bottom,extraDateSpan:r,dateProfile:i,todayRange:o,nowDate:a,eventSelection:s,eventDrag:l,eventResize:c})}))}renderFillSegs(t,n){let{props:r,context:i}=this,a=TF(t,r.date,r.slatCoords,i.options.eventMinHeight).map((s,l)=>{let c=t[l];return F("div",{key:r8(c.eventRange),className:"fc-timegrid-bg-harness",style:R8(s)},n==="bg-event"?F(x8,Object.assign({seg:c},Vr(c,r.todayRange,r.nowDate))):w8(n))});return F(ut,null,a)}renderNowIndicator(t){let{slatCoords:n,date:r}=this.props;return n?t.map((i,o)=>F(b8,{key:o,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:n.computeDateTop(i.start,r)},isAxis:!1,date:r})):null}computeSegHStyle(t){let{isRtl:n,options:r}=this.context,i=r.slotEventOverlap,o=t.levelCoord,a=t.levelCoord+t.thickness,s,l;i&&(a=Math.min(1,o+(a-o)*2)),n?(s=1-a,l=o):(s=o,l=1-a);let c={zIndex:t.stackDepth+1,left:s*100+"%",right:l*100+"%"};return i&&!t.stackForward&&(c[n?"marginLeft":"marginRight"]=10*2),c}}function RF(e,{todayRange:t,nowDate:n,eventSelection:r,eventDrag:i,eventResize:o}){let a=(i?i.affectedInstances:null)||(o?o.affectedInstances:null)||{};return F(ut,null,e.map(s=>{let l=s.eventRange.instance.instanceId;return F("div",{key:l,style:{visibility:a[l]?"hidden":""}},F(AF,Object.assign({seg:s,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:l===r,isShort:!1},Vr(s,t,n))))}))}function R8(e){return e?{top:e.start,bottom:-e.end}:{top:"",bottom:""}}function k6e(e,t){return e.map(n=>t[n.index])}class T6e extends bt{constructor(){super(...arguments),this.splitFgEventSegs=Le(kh),this.splitBgEventSegs=Le(kh),this.splitBusinessHourSegs=Le(kh),this.splitNowIndicatorSegs=Le(kh),this.splitDateSelectionSegs=Le(kh),this.splitEventDrag=Le(EF),this.splitEventResize=Le(EF),this.rootElRef=Pn(),this.cellElRefs=new Gr}render(){let{props:t,context:n}=this,r=n.options.nowIndicator&&t.slatCoords&&t.slatCoords.safeComputeTop(t.nowDate),i=t.cells.length,o=this.splitFgEventSegs(t.fgEventSegs,i),a=this.splitBgEventSegs(t.bgEventSegs,i),s=this.splitBusinessHourSegs(t.businessHourSegs,i),l=this.splitNowIndicatorSegs(t.nowIndicatorSegs,i),c=this.splitDateSelectionSegs(t.dateSelectionSegs,i),d=this.splitEventDrag(t.eventDrag,i),f=this.splitEventResize(t.eventResize,i);return F("div",{className:"fc-timegrid-cols",ref:this.rootElRef},F("table",{role:"presentation",style:{minWidth:t.tableMinWidth,width:t.clientWidth}},t.tableColGroupNode,F("tbody",{role:"presentation"},F("tr",{role:"row"},t.axis&&F("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},F("div",{className:"fc-timegrid-col-frame"},F("div",{className:"fc-timegrid-now-indicator-container"},typeof r=="number"&&F(b8,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:r},isAxis:!0,date:t.nowDate})))),t.cells.map((g,p)=>F(E6e,{key:g.key,elRef:this.cellElRefs.createRef(g.key),dateProfile:t.dateProfile,date:g.date,nowDate:t.nowDate,todayRange:t.todayRange,extraRenderProps:g.extraRenderProps,extraDataAttrs:g.extraDataAttrs,extraClassNames:g.extraClassNames,extraDateSpan:g.extraDateSpan,fgEventSegs:o[p],bgEventSegs:a[p],businessHourSegs:s[p],nowIndicatorSegs:l[p],dateSelectionSegs:c[p],eventDrag:d[p],eventResize:f[p],slatCoords:t.slatCoords,eventSelection:t.eventSelection,forPrint:t.forPrint}))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:t}=this;t.onColCoords&&t.clientWidth!==null&&t.onColCoords(new qo(this.rootElRef.current,A6e(this.cellElRefs.currentMap,t.cells),!0,!1))}}function A6e(e,t){return t.map(n=>e[n.key])}class R6e extends gr{constructor(){super(...arguments),this.processSlotOptions=Le(O6e),this.state={slatCoords:null},this.handleRootEl=t=>{t?this.context.registerInteractiveComponent(this,{el:t,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=t=>{let{onScrollTopRequest:n}=this.props,{slatCoords:r}=this.state;if(n&&r){if(t.time){let i=r.computeTimeTop(t.time);i=Math.ceil(i),i&&(i+=1),n(i)}return!0}return!1},this.handleColCoords=t=>{this.colCoords=t},this.handleSlatCoords=t=>{this.setState({slatCoords:t}),this.props.onSlatCoords&&this.props.onSlatCoords(t)}}render(){let{props:t,state:n}=this;return F("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:t.clientWidth,minWidth:t.tableMinWidth}},F(f6e,{axis:t.axis,dateProfile:t.dateProfile,slatMetas:t.slatMetas,clientWidth:t.clientWidth,minHeight:t.expandRows?t.clientHeight:"",tableMinWidth:t.tableMinWidth,tableColGroupNode:t.axis?t.tableColGroupNode:null,onCoords:this.handleSlatCoords}),F(T6e,{cells:t.cells,axis:t.axis,dateProfile:t.dateProfile,businessHourSegs:t.businessHourSegs,bgEventSegs:t.bgEventSegs,fgEventSegs:t.fgEventSegs,dateSelectionSegs:t.dateSelectionSegs,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange,nowDate:t.nowDate,nowIndicatorSegs:t.nowIndicatorSegs,clientWidth:t.clientWidth,tableMinWidth:t.tableMinWidth,tableColGroupNode:t.tableColGroupNode,slatCoords:n.slatCoords,onColCoords:this.handleColCoords,forPrint:t.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(t){this.scrollResponder.update(t.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(t,n){let{dateEnv:r,options:i}=this.context,{colCoords:o}=this,{dateProfile:a}=this.props,{slatCoords:s}=this.state,{snapDuration:l,snapsPerSlot:c}=this.processSlotOptions(this.props.slotDuration,i.snapDuration),d=o.leftToIndex(t),f=s.positions.topToIndex(n);if(d!=null&&f!=null){let g=this.props.cells[d],p=s.positions.tops[f],m=s.positions.getHeight(f),v=(n-p)/m,w=Math.floor(v*c),x=f*c+w,b=this.props.cells[d].date,S=DS(a.slotMinTime,RSe(l,x)),$=r.add(b,S),E=r.add($,l);return{dateProfile:a,dateSpan:Object.assign({range:{start:$,end:E},allDay:!1},g.extraDateSpan),dayEl:o.els[d],rect:{left:o.lefts[d],right:o.rights[d],top:p,bottom:p+m},layer:0}}return null}}function O6e(e,t){let n=t||e,r=PS(e,n);return r===null&&(n=e,r=1),{snapDuration:n,snapsPerSlot:r}}class _6e extends g8{sliceRange(t,n){let r=[];for(let i=0;i<n.length;i+=1){let o=Go(t,n[i]);o&&r.push({start:o.start,end:o.end,isStart:o.start.valueOf()===t.start.valueOf(),isEnd:o.end.valueOf()===t.end.valueOf(),col:i})}return r}}class I6e extends gr{constructor(){super(...arguments),this.buildDayRanges=Le(D6e),this.slicer=new _6e,this.timeColsRef=Pn()}render(){let{props:t,context:n}=this,{dateProfile:r,dayTableModel:i}=t,{nowIndicator:o,nextDayThreshold:a}=n.options,s=this.buildDayRanges(i,r,n.dateEnv);return F(Su,{unit:o?"minute":"day"},(l,c)=>F(R6e,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(t,r,null,n,s),{forPrint:t.forPrint,axis:t.axis,dateProfile:r,slatMetas:t.slatMetas,slotDuration:t.slotDuration,cells:i.cells[0],tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,expandRows:t.expandRows,nowDate:l,nowIndicatorSegs:o&&this.slicer.sliceNowDate(l,r,a,n,s),todayRange:c,onScrollTopRequest:t.onScrollTopRequest,onSlatCoords:t.onSlatCoords})))}}function D6e(e,t,n){let r=[];for(let i of e.headerDates)r.push({start:n.add(i,t.slotMinTime),end:n.add(i,t.slotMaxTime)});return r}const OF=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function P6e(e,t,n,r,i){let o=new Date(0),a=e,s=yt(0),l=n||M6e(r),c=[];for(;vo(a)<vo(t);){let d=i.add(o,a),f=PS(s,l)!==null;c.push({date:d,time:a,key:d.toISOString(),isoTimeStr:USe(d),isLabeled:f}),a=DS(a,r),s=DS(s,r)}return c}function M6e(e){let t,n,r;for(t=OF.length-1;t>=0;t-=1)if(n=yt(OF[t]),r=PS(n,e),r!==null&&r>1)return n;return e}class N6e extends l6e{constructor(){super(...arguments),this.buildTimeColsModel=Le(L6e),this.buildSlatMetas=Le(P6e)}render(){let{options:t,dateEnv:n,dateProfileGenerator:r}=this.context,{props:i}=this,{dateProfile:o}=i,a=this.buildTimeColsModel(o,r),s=this.allDaySplitter.splitProps(i),l=this.buildSlatMetas(o.slotMinTime,o.slotMaxTime,t.slotLabelInterval,t.slotDuration,n),{dayMinWidth:c}=t,d=!c,f=c,g=t.dayHeaders&&F(f8,{dates:a.headerDates,dateProfile:o,datesRepDistinctDays:!0,renderIntro:d?this.renderHeadAxis:null}),p=t.allDaySlot!==!1&&(v=>F($F,Object.assign({},s.allDay,{dateProfile:o,dayTableModel:a,nextDayThreshold:t.nextDayThreshold,tableMinWidth:v.tableMinWidth,colGroupNode:v.tableColGroupNode,renderRowIntro:d?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:v.clientWidth,clientHeight:v.clientHeight,forPrint:i.forPrint},this.getAllDayMaxEventProps()))),m=v=>F(I6e,Object.assign({},s.timed,{dayTableModel:a,dateProfile:o,axis:d,slotDuration:t.slotDuration,slatMetas:l,forPrint:i.forPrint,tableColGroupNode:v.tableColGroupNode,tableMinWidth:v.tableMinWidth,clientWidth:v.clientWidth,clientHeight:v.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:v.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return f?this.renderHScrollLayout(g,p,m,a.colCnt,c,l,this.state.slatCoords):this.renderSimpleLayout(g,p,m)}}function L6e(e,t){let n=new p8(e.renderRange,t);return new h8(n,!1)}const F6e={allDaySlot:Boolean};var j6e='.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}';vh(j6e);var z6e=Ko({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:F6e,views:{timeGrid:{component:N6e,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}}),B6e=':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}';vh(B6e);var H6e=Ko({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:XCe,dateProfileGeneratorClass:e6e},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}}}});function ay(e,t){let n=[];for(let r=0;r<t;r+=1)n[r]=[];for(let r of e)n[r.row].push(r);return n}function sy(e,t){let n=[];for(let r=0;r<t;r+=1)n[r]=[];for(let r of e)n[r.firstCol].push(r);return n}function _F(e,t){let n=[];if(e){for(let r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(let r of e.segs)n[r.row].segs.push(r)}else for(let r=0;r<t;r+=1)n[r]=null;return n}const IF=Ot({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function DF(e){let{display:t}=e.eventRange.ui;return t==="list-item"||t==="auto"&&!e.eventRange.def.allDay&&e.firstCol===e.lastCol&&e.isStart&&e.isEnd}class PF extends bt{render(){let{props:t}=this;return F(y8,Object.assign({},t,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:IF,defaultDisplayEventEnd:t.defaultDisplayEventEnd,disableResizing:!t.seg.eventRange.def.allDay}))}}class MF extends bt{render(){let{props:t,context:n}=this,{options:r}=n,{seg:i}=t,o=r.eventTimeFormat||IF,a=Od(i,o,n,!0,t.defaultDisplayEventEnd);return F(Eh,Object.assign({},t,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:Yv(t.seg,n),defaultGenerator:U6e,timeText:a,isResizing:!1,isDateSelecting:!1}))}}function U6e(e){return F(ut,null,F("div",{className:"fc-daygrid-event-dot",style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&F("div",{className:"fc-event-time"},e.timeText),F("div",{className:"fc-event-title"},e.event.title||F(ut,null," ")))}class W6e extends bt{constructor(){super(...arguments),this.compileSegs=Le(V6e)}render(){let{props:t}=this,{allSegs:n,invisibleSegs:r}=this.compileSegs(t.singlePlacements);return F(C8,{elClasses:["fc-daygrid-more-link"],dateProfile:t.dateProfile,todayRange:t.todayRange,allDayDate:t.allDayDate,moreCnt:t.moreCnt,allSegs:n,hiddenSegs:r,alignmentElRef:t.alignmentElRef,alignGridTop:t.alignGridTop,extraDateSpan:t.extraDateSpan,popoverContent:()=>{let i=(t.eventDrag?t.eventDrag.affectedInstances:null)||(t.eventResize?t.eventResize.affectedInstances:null)||{};return F(ut,null,n.map(o=>{let a=o.eventRange.instance.instanceId;return F("div",{className:"fc-daygrid-event-harness",key:a,style:{visibility:i[a]?"hidden":""}},DF(o)?F(MF,Object.assign({seg:o,isDragging:!1,isSelected:a===t.eventSelection,defaultDisplayEventEnd:!1},Vr(o,t.todayRange))):F(PF,Object.assign({seg:o,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:a===t.eventSelection,defaultDisplayEventEnd:!1},Vr(o,t.todayRange))))}))}})}}function V6e(e){let t=[],n=[];for(let r of e)t.push(r.seg),r.isVisible||n.push(r.seg);return{allSegs:t,invisibleSegs:n}}const G6e=Ot({week:"narrow"});class q6e extends gr{constructor(){super(...arguments),this.rootElRef=Pn(),this.state={dayNumberId:Wo()},this.handleRootEl=t=>{Vo(this.rootElRef,t),Vo(this.props.elRef,t)}}render(){let{context:t,props:n,state:r,rootElRef:i}=this,{options:o,dateEnv:a}=t,{date:s,dateProfile:l}=n;const c=n.showDayNumber&&K6e(s,l.currentRange,a);return F(ty,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygrid-day",...n.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},n.extraDataAttrs),n.showDayNumber?{"aria-labelledby":r.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:Y6e,date:s,dateProfile:l,todayRange:n.todayRange,showDayNumber:n.showDayNumber,isMonthStart:c,extraRenderProps:n.extraRenderProps},(d,f)=>F("div",{ref:n.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:n.minHeight}},n.showWeekNumber&&F(S8,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:il(t,s,"week"),date:s,defaultFormat:G6e}),!f.isDisabled&&(n.showDayNumber||ny(o)||n.forceDayTop)?F("div",{className:"fc-daygrid-day-top"},F(d,{elTag:"a",elClasses:["fc-daygrid-day-number",c&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},il(t,s)),{id:r.dayNumberId})})):n.showDayNumber?F("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},F("a",{className:"fc-daygrid-day-number"}," ")):void 0,F("div",{className:"fc-daygrid-day-events",ref:n.fgContentElRef},n.fgContent,F("div",{className:"fc-daygrid-day-bottom",style:{marginTop:n.moreMarginTop}},F(W6e,{allDayDate:s,singlePlacements:n.singlePlacements,moreCnt:n.moreCnt,alignmentElRef:i,alignGridTop:!n.showDayNumber,extraDateSpan:n.extraDateSpan,dateProfile:n.dateProfile,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,todayRange:n.todayRange}))),F("div",{className:"fc-daygrid-day-bg"},n.bgContent)))}}function Y6e(e){return e.dayNumberText||F(ut,null," ")}function K6e(e,t,n){const{start:r,end:i}=t,o=el(i,-1),a=n.getYear(r),s=n.getMonth(r),l=n.getYear(o),c=n.getMonth(o);return!(a===l&&s===c)&&(e.valueOf()===r.valueOf()||n.getDay(e)===1&&e.valueOf()<i.valueOf())}function Z6e(e,t,n,r,i,o,a){let s=new J6e;s.allowReslicing=!0,s.strictOrder=r,t===!0||n===!0?(s.maxCoord=o,s.hiddenConsumes=!0):typeof t=="number"?s.maxStackCnt=t:typeof n=="number"&&(s.maxStackCnt=n,s.hiddenConsumes=!0);let l=[],c=[];for(let x=0;x<e.length;x+=1){let b=e[x],{instanceId:S}=b.eventRange.instance,$=i[S];$!=null?l.push({index:x,thickness:$,span:{start:b.firstCol,end:b.lastCol+1}}):c.push(b)}let d=s.addSegs(l),f=s.toRects(),{singleColPlacements:g,multiColPlacements:p,leftoverMargins:m}=Q6e(f,e,a),v=[],w=[];for(let x of c){p[x.firstCol].push({seg:x,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let b=x.firstCol;b<=x.lastCol;b+=1)g[b].push({seg:Id(x,b,b+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let x=0;x<a.length;x+=1)v.push(0);for(let x of d){let b=e[x.index],S=x.span;p[S.start].push({seg:Id(b,S.start,S.end,a),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let $=S.start;$<S.end;$+=1)v[$]+=1,g[$].push({seg:Id(b,$,$+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let x=0;x<a.length;x+=1)w.push(m[x]);return{singleColPlacements:g,multiColPlacements:p,moreCnts:v,moreMarginTops:w}}function Q6e(e,t,n){let r=X6e(e,n.length),i=[],o=[],a=[];for(let s=0;s<n.length;s+=1){let l=r[s],c=[],d=0,f=0;for(let p of l){let m=t[p.index];c.push({seg:Id(m,s,s+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:p.levelCoord,marginTop:p.levelCoord-d}),d=p.levelCoord+p.thickness}let g=[];d=0,f=0;for(let p of l){let m=t[p.index],v=p.span.end-p.span.start>1,w=p.span.start===s;f+=p.levelCoord-d,d=p.levelCoord+p.thickness,v?(f+=p.thickness,w&&g.push({seg:Id(m,p.span.start,p.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:p.levelCoord,marginTop:0})):w&&(g.push({seg:Id(m,p.span.start,p.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:p.levelCoord,marginTop:f}),f=0)}i.push(c),o.push(g),a.push(f)}return{singleColPlacements:i,multiColPlacements:o,leftoverMargins:a}}function X6e(e,t){let n=[];for(let r=0;r<t;r+=1)n.push([]);for(let r of e)for(let i=r.span.start;i<r.span.end;i+=1)n[i].push(r);return n}function Id(e,t,n,r){if(e.firstCol===t&&e.lastCol===n-1)return e;let i=e.eventRange,o=i.range,a=Go(o,{start:r[t].date,end:xn(r[n-1].date,1)});return Object.assign(Object.assign({},e),{firstCol:t,lastCol:n-1,eventRange:{def:i.def,ui:Object.assign(Object.assign({},i.ui),{durationEditable:!1}),instance:i.instance,range:a},isStart:e.isStart&&a.start.valueOf()===o.start.valueOf(),isEnd:e.isEnd&&a.end.valueOf()===o.end.valueOf()})}class J6e extends l8{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(t){const n=super.addSegs(t),{entriesByLevel:r}=this,i=o=>!this.forceHidden[Yo(o)];for(let o=0;o<r.length;o+=1)r[o]=r[o].filter(i);return n}handleInvalidInsertion(t,n,r){const{entriesByLevel:i,forceHidden:o}=this,{touchingEntry:a,touchingLevel:s,touchingLateral:l}=t;if(this.hiddenConsumes&&a){const c=Yo(a);if(!o[c])if(this.allowReslicing){const d=Object.assign(Object.assign({},a),{span:Qv(a.span,n.span)}),f=Yo(d);o[f]=!0,i[s][l]=d,this.splitEntry(a,n,r)}else o[c]=!0,r.push(a)}return super.handleInvalidInsertion(t,n,r)}}class NF extends gr{constructor(){super(...arguments),this.cellElRefs=new Gr,this.frameElRefs=new Gr,this.fgElRefs=new Gr,this.segHarnessRefs=new Gr,this.rootElRef=Pn(),this.state={framePositions:null,maxContentHeight:null,eventInstanceHeights:{}},this.handleResize=t=>{t&&this.updateSizing(!0)}}render(){let{props:t,state:n,context:r}=this,{options:i}=r,o=t.cells.length,a=sy(t.businessHourSegs,o),s=sy(t.bgEventSegs,o),l=sy(this.getHighlightSegs(),o),c=sy(this.getMirrorSegs(),o),{singleColPlacements:d,multiColPlacements:f,moreCnts:g,moreMarginTops:p}=Z6e(qv(t.fgEventSegs,i.eventOrder),t.dayMaxEvents,t.dayMaxEventRows,i.eventOrderStrict,n.eventInstanceHeights,n.maxContentHeight,t.cells),m=t.eventDrag&&t.eventDrag.affectedInstances||t.eventResize&&t.eventResize.affectedInstances||{};return F("tr",{ref:this.rootElRef,role:"row"},t.renderIntro&&t.renderIntro(),t.cells.map((v,w)=>{let x=this.renderFgSegs(w,t.forPrint?d[w]:f[w],t.todayRange,m),b=this.renderFgSegs(w,e7e(c[w],f),t.todayRange,{},!!t.eventDrag,!!t.eventResize,!1);return F(q6e,{key:v.key,elRef:this.cellElRefs.createRef(v.key),innerElRef:this.frameElRefs.createRef(v.key),dateProfile:t.dateProfile,date:v.date,showDayNumber:t.showDayNumbers,showWeekNumber:t.showWeekNumbers&&w===0,forceDayTop:t.showWeekNumbers,todayRange:t.todayRange,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,extraRenderProps:v.extraRenderProps,extraDataAttrs:v.extraDataAttrs,extraClassNames:v.extraClassNames,extraDateSpan:v.extraDateSpan,moreCnt:g[w],moreMarginTop:p[w],singlePlacements:d[w],fgContentElRef:this.fgElRefs.createRef(v.key),fgContent:F(ut,null,F(ut,null,x),F(ut,null,b)),bgContent:F(ut,null,this.renderFillSegs(l[w],"highlight"),this.renderFillSegs(a[w],"non-business"),this.renderFillSegs(s[w],"bg-event")),minHeight:t.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(t,n){let r=this.props;this.updateSizing(!pi(t,r))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:t}=this;return t.eventDrag&&t.eventDrag.segs.length?t.eventDrag.segs:t.eventResize&&t.eventResize.segs.length?t.eventResize.segs:t.dateSelectionSegs}getMirrorSegs(){let{props:t}=this;return t.eventResize&&t.eventResize.segs.length?t.eventResize.segs:[]}renderFgSegs(t,n,r,i,o,a,s){let{context:l}=this,{eventSelection:c}=this.props,{framePositions:d}=this.state,f=this.props.cells.length===1,g=o||a||s,p=[];if(d)for(let m of n){let{seg:v}=m,{instanceId:w}=v.eventRange.instance,x=w+":"+t,b=m.isVisible&&!i[w],S=m.isAbsolute,$="",E="";S&&(l.isRtl?(E=0,$=d.lefts[v.lastCol]-d.lefts[v.firstCol]):($=0,E=d.rights[v.firstCol]-d.rights[v.lastCol])),p.push(F("div",{className:"fc-daygrid-event-harness"+(S?" fc-daygrid-event-harness-abs":""),key:x,ref:g?null:this.segHarnessRefs.createRef(x),style:{visibility:b?"":"hidden",marginTop:S?"":m.marginTop,top:S?m.absoluteTop:"",left:$,right:E}},DF(v)?F(MF,Object.assign({seg:v,isDragging:o,isSelected:w===c,defaultDisplayEventEnd:f},Vr(v,r))):F(PF,Object.assign({seg:v,isDragging:o,isResizing:a,isDateSelecting:s,isSelected:w===c,defaultDisplayEventEnd:f},Vr(v,r)))))}return p}renderFillSegs(t,n){let{isRtl:r}=this.context,{todayRange:i}=this.props,{framePositions:o}=this.state,a=[];if(o)for(let s of t){let l=r?{right:0,left:o.lefts[s.lastCol]-o.lefts[s.firstCol]}:{left:0,right:o.rights[s.firstCol]-o.rights[s.lastCol]};a.push(F("div",{key:r8(s.eventRange),className:"fc-daygrid-bg-harness",style:l},n==="bg-event"?F(x8,Object.assign({seg:s},Vr(s,i))):w8(n)))}return F(ut,{},...a)}updateSizing(t){let{props:n,state:r,frameElRefs:i}=this;if(!n.forPrint&&n.clientWidth!==null){if(t){let l=n.cells.map(c=>i.currentMap[c.key]);if(l.length){let c=this.rootElRef.current,d=new qo(c,l,!0,!1);(!r.framePositions||!r.framePositions.similarTo(d))&&this.setState({framePositions:new qo(c,l,!0,!1)})}}const o=this.state.eventInstanceHeights,a=this.queryEventInstanceHeights(),s=n.dayMaxEvents===!0||n.dayMaxEventRows===!0;this.safeSetState({eventInstanceHeights:Object.assign(Object.assign({},o),a),maxContentHeight:s?this.computeMaxContentHeight():null})}}queryEventInstanceHeights(){let t=this.segHarnessRefs.currentMap,n={};for(let r in t){let i=Math.round(t[r].getBoundingClientRect().height),o=r.split(":")[0];n[o]=Math.max(n[o]||0,i)}return n}computeMaxContentHeight(){let t=this.props.cells[0].key,n=this.cellElRefs.currentMap[t],r=this.fgElRefs.currentMap[t];return n.getBoundingClientRect().bottom-r.getBoundingClientRect().top}getCellEls(){let t=this.cellElRefs.currentMap;return this.props.cells.map(n=>t[n.key])}}NF.addStateEquality({eventInstanceHeights:pi});function e7e(e,t){if(!e.length)return[];let n=t7e(t);return e.map(r=>({seg:r,isVisible:!0,isAbsolute:!0,absoluteTop:n[r.eventRange.instance.instanceId],marginTop:0}))}function t7e(e){let t={};for(let n of e)for(let r of n)t[r.seg.eventRange.instance.instanceId]=r.absoluteTop;return t}class n7e extends gr{constructor(){super(...arguments),this.splitBusinessHourSegs=Le(ay),this.splitBgEventSegs=Le(ay),this.splitFgEventSegs=Le(ay),this.splitDateSelectionSegs=Le(ay),this.splitEventDrag=Le(_F),this.splitEventResize=Le(_F),this.rowRefs=new Gr}render(){let{props:t,context:n}=this,r=t.cells.length,i=this.splitBusinessHourSegs(t.businessHourSegs,r),o=this.splitBgEventSegs(t.bgEventSegs,r),a=this.splitFgEventSegs(t.fgEventSegs,r),s=this.splitDateSelectionSegs(t.dateSelectionSegs,r),l=this.splitEventDrag(t.eventDrag,r),c=this.splitEventResize(t.eventResize,r),d=r>=7&&t.clientWidth?t.clientWidth/n.options.aspectRatio/6:null;return F(Su,{unit:"day"},(f,g)=>F(ut,null,t.cells.map((p,m)=>F(NF,{ref:this.rowRefs.createRef(m),key:p.length?p[0].date.toISOString():m,showDayNumbers:r>1,showWeekNumbers:t.showWeekNumbers,todayRange:g,dateProfile:t.dateProfile,cells:p,renderIntro:t.renderRowIntro,businessHourSegs:i[m],eventSelection:t.eventSelection,bgEventSegs:o[m].filter(r7e),fgEventSegs:a[m],dateSelectionSegs:s[m],eventDrag:l[m],eventResize:c[m],dayMaxEvents:t.dayMaxEvents,dayMaxEventRows:t.dayMaxEventRows,clientWidth:t.clientWidth,clientHeight:t.clientHeight,cellMinHeight:d,forPrint:t.forPrint}))))}componentDidMount(){const t=this.rowRefs.currentMap[0].getCellEls()[0];this.rootEl=t?t.closest(".fc-daygrid-body"):null,this.rootEl&&this.context.registerInteractiveComponent(this,{el:this.rootEl,isHitComboAllowed:this.props.isHitComboAllowed})}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new qo(this.rootEl,this.rowRefs.collect().map(t=>t.getCellEls()[0]),!1,!0),this.colPositions=new qo(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(t,n){let{colPositions:r,rowPositions:i}=this,o=r.leftToIndex(t),a=i.topToIndex(n);if(a!=null&&o!=null){let s=this.props.cells[a][o];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(a,o),allDay:!0},s.extraDateSpan),dayEl:this.getCellEl(a,o),rect:{left:r.lefts[o],right:r.rights[o],top:i.tops[a],bottom:i.bottoms[a]},layer:0}}return null}getCellEl(t,n){return this.rowRefs.currentMap[t].getCellEls()[n]}getCellRange(t,n){let r=this.props.cells[t][n].date,i=xn(r,1);return{start:r,end:i}}}function r7e(e){return e.eventRange.def.allDay}class i7e extends g8{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(t,n){return n.sliceRange(t)}}class o7e extends qS{buildRenderRange(t,n,r){let i=super.buildRenderRange(t,n,r),{props:o}=this;return LF({currentRange:i,snapToWeek:/^(year|month)$/.test(n),fixedWeekCount:o.fixedWeekCount,dateEnv:o.dateEnv})}}function LF(e){let{dateEnv:t,currentRange:n}=e,{start:r,end:i}=n,o;if(e.snapToWeek&&(r=t.startOfWeek(r),o=t.startOfWeek(i),o.valueOf()!==i.valueOf()&&(i=Mv(o,1))),e.fixedWeekCount){let a=t.startOfWeek(t.startOfMonth(xn(n.end,-1))),s=Math.ceil(oL(a,i));i=Mv(i,6-s)}return{start:r,end:i}}function a7e(e,t){let n=new p8(e.renderRange,t);return new h8(n,/year|month|week/.test(e.currentRangeUnit))}class s7e extends gr{constructor(){super(...arguments),this.buildDayTableModel=Le(a7e),this.slicer=new i7e,this.state={labelId:Wo()}}render(){const{props:t,state:n,context:r}=this,{dateProfile:i,forPrint:o}=t,{options:a}=r,s=this.buildDayTableModel(i,r.dateProfileGenerator),l=this.slicer.sliceProps(t,i,a.nextDayThreshold,r,s),c=t.tableWidth!=null?t.tableWidth/a.aspectRatio:null,d=s.cells.length,f=c!=null?c/d:null;return F("div",{ref:t.elRef,"data-date":t.isoDateStr,className:"fc-multimonth-month",style:{width:t.width},role:"grid","aria-labelledby":n.labelId},F("div",{className:"fc-multimonth-header",style:{marginBottom:f},role:"presentation"},F("div",{className:"fc-multimonth-title",id:n.labelId},r.dateEnv.format(t.dateProfile.currentRange.start,t.titleFormat)),F("table",{className:["fc-multimonth-header-table",r.theme.getClass("table")].join(" "),role:"presentation"},F("thead",{role:"rowgroup"},F(f8,{dateProfile:t.dateProfile,dates:s.headerDates,datesRepDistinctDays:!1})))),F("div",{className:["fc-multimonth-daygrid","fc-daygrid","fc-daygrid-body",!o&&"fc-daygrid-body-balanced",o&&"fc-daygrid-body-unbalanced",o&&"fc-daygrid-body-natural"].join(" "),style:{marginTop:-f}},F("table",{className:["fc-multimonth-daygrid-table",r.theme.getClass("table")].join(" "),style:{height:o?"":c},role:"presentation"},F("tbody",{role:"rowgroup"},F(n7e,Object.assign({},l,{dateProfile:i,cells:s.cells,eventSelection:t.eventSelection,dayMaxEvents:!o,dayMaxEventRows:!o,showWeekNumbers:a.weekNumbers,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:o}))))))}}class l7e extends gr{constructor(){super(...arguments),this.splitDateProfileByMonth=Le(c7e),this.buildMonthFormat=Le(p7e),this.scrollElRef=Pn(),this.firstMonthElRef=Pn(),this.needsScrollReset=!1,this.handleSizing=t=>{t&&this.updateSize()}}render(){const{context:t,props:n,state:r}=this,{options:i}=t,{clientWidth:o,clientHeight:a}=r,s=r.monthHPadding||0,l=Math.min(o!=null?Math.floor(o/(i.multiMonthMinWidth+s)):1,i.multiMonthMaxColumns)||1,c=100/l+"%",d=o==null?null:o/l-s,f=o!=null&&l===1,g=this.splitDateProfileByMonth(t.dateProfileGenerator,n.dateProfile,t.dateEnv,f?!1:i.fixedWeekCount,i.showNonCurrentDates),p=this.buildMonthFormat(i.multiMonthTitleFormat,g),m=["fc-multimonth",f?"fc-multimonth-singlecol":"fc-multimonth-multicol",d!=null&&d<400?"fc-multimonth-compact":""];return F(Ad,{elRef:this.scrollElRef,elClasses:m,viewSpec:t.viewSpec},g.map((v,w)=>{const x=LS(v.currentRange.start);return F(s7e,Object.assign({},n,{key:x,isoDateStr:x,elRef:w===0?this.firstMonthElRef:void 0,titleFormat:p,dateProfile:v,width:c,tableWidth:d,clientWidth:o,clientHeight:a}))}))}componentDidMount(){this.updateSize(),this.context.addResizeHandler(this.handleSizing),this.requestScrollReset()}componentDidUpdate(t){pi(t,this.props)||this.handleSizing(!1),t.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}updateSize(){const t=this.scrollElRef.current,n=this.firstMonthElRef.current;t&&this.setState({clientWidth:t.clientWidth,clientHeight:t.clientHeight}),n&&t&&this.state.monthHPadding==null&&this.setState({monthHPadding:t.clientWidth-n.firstChild.offsetWidth})}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.state.monthHPadding!=null){const{currentDate:t}=this.props.dateProfile,n=this.scrollElRef.current,r=n.querySelector(`[data-date="${LS(t)}"]`);n.scrollTop=r.getBoundingClientRect().top-this.firstMonthElRef.current.getBoundingClientRect().top,this.needsScrollReset=!1}}shouldComponentUpdate(){return!0}}const u7e=yt(1,"month");function c7e(e,t,n,r,i){const{start:o,end:a}=t.currentRange;let s=o;const l=[];for(;s.valueOf()<a.valueOf();){const c=n.add(s,u7e),d={start:e.skipHiddenDays(s),end:e.skipHiddenDays(c,-1,!0)};let f=LF({currentRange:d,snapToWeek:!0,fixedWeekCount:r,dateEnv:n});f={start:e.skipHiddenDays(f.start),end:e.skipHiddenDays(f.end,-1,!0)};const g=t.activeRange?Go(t.activeRange,i?f:d):null;l.push({currentDate:t.currentDate,isValid:t.isValid,validRange:t.validRange,renderRange:f,activeRange:g,currentRange:d,currentRangeUnit:"month",isRangeAllDay:!0,dateIncrement:t.dateIncrement,slotMinTime:t.slotMaxTime,slotMaxTime:t.slotMinTime}),s=c}return l}const d7e=Ot({year:"numeric",month:"long"}),f7e=Ot({month:"long"});function p7e(e,t){return e||(t[0].currentRange.start.getUTCFullYear()!==t[t.length-1].currentRange.start.getUTCFullYear()?d7e:f7e)}const h7e={multiMonthTitleFormat:Ot,multiMonthMaxColumns:Number,multiMonthMinWidth:Number};var g7e=".fc .fc-multimonth{border:1px solid var(--fc-border-color);display:flex;flex-wrap:wrap;overflow-x:hidden;overflow-y:auto}.fc .fc-multimonth-title{font-size:1.2em;font-weight:700;padding:1em 0;text-align:center}.fc .fc-multimonth-daygrid{background:var(--fc-page-bg-color)}.fc .fc-multimonth-daygrid-table,.fc .fc-multimonth-header-table{table-layout:fixed;width:100%}.fc .fc-multimonth-daygrid-table{border-top-style:hidden!important}.fc .fc-multimonth-singlecol .fc-multimonth{position:relative}.fc .fc-multimonth-singlecol .fc-multimonth-header{background:var(--fc-page-bg-color);position:relative;top:0;z-index:2}.fc .fc-multimonth-singlecol .fc-multimonth-daygrid{position:relative;z-index:1}.fc .fc-multimonth-singlecol .fc-multimonth-daygrid-table,.fc .fc-multimonth-singlecol .fc-multimonth-header-table{border-left-style:hidden;border-right-style:hidden}.fc .fc-multimonth-singlecol .fc-multimonth-month:last-child .fc-multimonth-daygrid-table{border-bottom-style:hidden}.fc .fc-multimonth-multicol{line-height:1}.fc .fc-multimonth-multicol .fc-multimonth-month{padding:0 1.2em 1.2em}.fc .fc-multimonth-multicol .fc-daygrid-more-link{border:1px solid var(--fc-event-border-color);display:block;float:none;padding:1px}.fc .fc-multimonth-compact{line-height:1}.fc .fc-multimonth-compact .fc-multimonth-daygrid-table,.fc .fc-multimonth-compact .fc-multimonth-header-table{font-size:.9em}.fc-media-screen .fc-multimonth-singlecol .fc-multimonth-header{position:sticky}.fc-media-print .fc-multimonth{overflow:visible}";vh(g7e);var m7e=Ko({name:"@fullcalendar/multimonth",initialView:"multiMonthYear",optionRefiners:h7e,views:{multiMonth:{component:l7e,dateProfileGeneratorClass:o7e,multiMonthMinWidth:350,multiMonthMaxColumns:3},multiMonthYear:{type:"multiMonth",duration:{years:1},fixedWeekCount:!0,showNonCurrentDates:!1}}}),v7e={code:"af",week:{dow:1,doy:4},buttonText:{prev:"Vorige",next:"Volgende",today:"Vandag",year:"Jaar",month:"Maand",week:"Week",day:"Dag",list:"Agenda"},allDayText:"Heeldag",moreLinkText:"Addisionele",noEventsText:"Daar is geen gebeurtenisse nie"},y7e={code:"ar-dz",week:{dow:0,doy:4},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},b7e={code:"ar-kw",week:{dow:0,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},x7e={code:"ar-ly",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},w7e={code:"ar-ma",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},S7e={code:"ar-sa",week:{dow:0,doy:6},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},$7e={code:"ar-tn",week:{dow:1,doy:4},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},C7e={code:"ar",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},E7e={code:"az",week:{dow:1,doy:4},buttonText:{prev:"Əvvəl",next:"Sonra",today:"Bu Gün",year:"Il",month:"Ay",week:"Həftə",day:"Gün",list:"Gündəm"},weekText:"Həftə",allDayText:"Bütün Gün",moreLinkText(e){return"+ daha çox "+e},noEventsText:"Göstərmək üçün hadisə yoxdur"},k7e={code:"bg",week:{dow:1,doy:7},buttonText:{prev:"назад",next:"напред",today:"днес",year:"година",month:"Месец",week:"Седмица",day:"Ден",list:"График"},allDayText:"Цял ден",moreLinkText(e){return"+още "+e},noEventsText:"Няма събития за показване"},T7e={code:"bn",week:{dow:0,doy:6},buttonText:{prev:"পেছনে",next:"সামনে",today:"আজ",year:"বছর",month:"মাস",week:"সপ্তাহ",day:"দিন",list:"তালিকা"},weekText:"সপ্তাহ",allDayText:"সারাদিন",moreLinkText(e){return"+অন্যান্য "+e},noEventsText:"কোনো ইভেন্ট নেই"},A7e={code:"bs",week:{dow:1,doy:7},buttonText:{prev:"Prošli",next:"Sljedeći",today:"Danas",year:"Godina",month:"Mjesec",week:"Sedmica",day:"Dan",list:"Raspored"},weekText:"Sed",allDayText:"Cijeli dan",moreLinkText(e){return"+ još "+e},noEventsText:"Nema događaja za prikazivanje"},R7e={code:"ca",week:{dow:1,doy:4},buttonText:{prev:"Anterior",next:"Següent",today:"Avui",year:"Curs",month:"Mes",week:"Setmana",day:"Dia",list:"Agenda"},weekText:"Set",allDayText:"Tot el dia",moreLinkText:"més",noEventsText:"No hi ha esdeveniments per mostrar"},O7e={code:"cs",week:{dow:1,doy:4},buttonText:{prev:"Dříve",next:"Později",today:"Nyní",year:"Rok",month:"Měsíc",week:"Týden",day:"Den",list:"Agenda"},weekText:"Týd",allDayText:"Celý den",moreLinkText(e){return"+další: "+e},noEventsText:"Žádné akce k zobrazení"},_7e={code:"cy",week:{dow:1,doy:4},buttonText:{prev:"Blaenorol",next:"Nesaf",today:"Heddiw",year:"Blwyddyn",month:"Mis",week:"Wythnos",day:"Dydd",list:"Rhestr"},weekText:"Wythnos",allDayText:"Trwy'r dydd",moreLinkText:"Mwy",noEventsText:"Dim digwyddiadau"},I7e={code:"da",week:{dow:1,doy:4},buttonText:{prev:"Forrige",next:"Næste",today:"I dag",year:"År",month:"Måned",week:"Uge",day:"Dag",list:"Agenda"},weekText:"Uge",allDayText:"Hele dagen",moreLinkText:"flere",noEventsText:"Ingen arrangementer at vise"};function O8(e){return e==="Tag"||e==="Monat"?"r":e==="Jahr"?"s":""}var D7e={code:"de-at",week:{dow:1,doy:4},buttonText:{prev:"Zurück",next:"Vor",today:"Heute",year:"Jahr",month:"Monat",week:"Woche",day:"Tag",list:"Terminübersicht"},weekText:"KW",weekTextLong:"Woche",allDayText:"Ganztägig",moreLinkText(e){return"+ weitere "+e},noEventsText:"Keine Ereignisse anzuzeigen",buttonHints:{prev(e){return`Vorherige${O8(e)} ${e}`},next(e){return`Nächste${O8(e)} ${e}`},today(e){return e==="Tag"?"Heute":`Diese${O8(e)} ${e}`}},viewHint(e){return e+(e==="Woche"?"n":e==="Monat"?"s":"es")+"ansicht"},navLinkHint:"Gehe zu $0",moreLinkHint(e){return"Zeige "+(e===1?"ein weiteres Ereignis":e+" weitere Ereignisse")},closeHint:"Schließen",timeHint:"Uhrzeit",eventHint:"Ereignis"};function _8(e){return e==="Tag"||e==="Monat"?"r":e==="Jahr"?"s":""}var P7e={code:"de",week:{dow:1,doy:4},buttonText:{prev:"Zurück",next:"Vor",today:"Heute",year:"Jahr",month:"Monat",week:"Woche",day:"Tag",list:"Terminübersicht"},weekText:"KW",weekTextLong:"Woche",allDayText:"Ganztägig",moreLinkText(e){return"+ weitere "+e},noEventsText:"Keine Ereignisse anzuzeigen",buttonHints:{prev(e){return`Vorherige${_8(e)} ${e}`},next(e){return`Nächste${_8(e)} ${e}`},today(e){return e==="Tag"?"Heute":`Diese${_8(e)} ${e}`}},viewHint(e){return e+(e==="Woche"?"n":e==="Monat"?"s":"es")+"ansicht"},navLinkHint:"Gehe zu $0",moreLinkHint(e){return"Zeige "+(e===1?"ein weiteres Ereignis":e+" weitere Ereignisse")},closeHint:"Schließen",timeHint:"Uhrzeit",eventHint:"Ereignis"},M7e={code:"el",week:{dow:1,doy:4},buttonText:{prev:"Προηγούμενος",next:"Επόμενος",today:"Σήμερα",year:"Ετος",month:"Μήνας",week:"Εβδομάδα",day:"Ημέρα",list:"Ατζέντα"},weekText:"Εβδ",allDayText:"Ολοήμερο",moreLinkText:"περισσότερα",noEventsText:"Δεν υπάρχουν γεγονότα προς εμφάνιση"},N7e={code:"en-au",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(e){return`Show ${e} more event${e===1?"":"s"}`}},L7e={code:"en-gb",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(e){return`Show ${e} more event${e===1?"":"s"}`}},F7e={code:"en-nz",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(e){return`Show ${e} more event${e===1?"":"s"}`}},j7e={code:"eo",week:{dow:1,doy:4},buttonText:{prev:"Antaŭa",next:"Sekva",today:"Hodiaŭ",year:"Jaro",month:"Monato",week:"Semajno",day:"Tago",list:"Tagordo"},weekText:"Sm",allDayText:"Tuta tago",moreLinkText:"pli",noEventsText:"Neniuj eventoj por montri"},z7e={code:"es",week:{dow:0,doy:6},buttonText:{prev:"Ant",next:"Sig",today:"Hoy",year:"Año",month:"Mes",week:"Semana",day:"Día",list:"Agenda"},weekText:"Sm",allDayText:"Todo el día",moreLinkText:"más",noEventsText:"No hay eventos para mostrar"},B7e={code:"es",week:{dow:1,doy:4},buttonText:{prev:"Ant",next:"Sig",today:"Hoy",year:"Año",month:"Mes",week:"Semana",day:"Día",list:"Agenda"},buttonHints:{prev:"$0 antes",next:"$0 siguiente",today(e){return e==="Día"?"Hoy":(e==="Semana"?"Esta":"Este")+" "+e.toLocaleLowerCase()}},viewHint(e){return"Vista "+(e==="Semana"?"de la":"del")+" "+e.toLocaleLowerCase()},weekText:"Sm",weekTextLong:"Semana",allDayText:"Todo el día",moreLinkText:"más",moreLinkHint(e){return`Mostrar ${e} eventos más`},noEventsText:"No hay eventos para mostrar",navLinkHint:"Ir al $0",closeHint:"Cerrar",timeHint:"La hora",eventHint:"Evento"},H7e={code:"et",week:{dow:1,doy:4},buttonText:{prev:"Eelnev",next:"Järgnev",today:"Täna",year:"Aasta",month:"Kuu",week:"Nädal",day:"Päev",list:"Päevakord"},weekText:"näd",allDayText:"Kogu päev",moreLinkText(e){return"+ veel "+e},noEventsText:"Kuvamiseks puuduvad sündmused"},U7e={code:"eu",week:{dow:1,doy:7},buttonText:{prev:"Aur",next:"Hur",today:"Gaur",year:"Urtea",month:"Hilabetea",week:"Astea",day:"Eguna",list:"Agenda"},weekText:"As",allDayText:"Egun osoa",moreLinkText:"gehiago",noEventsText:"Ez dago ekitaldirik erakusteko"},W7e={code:"fa",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"قبلی",next:"بعدی",today:"امروز",year:"سال",month:"ماه",week:"هفته",day:"روز",list:"برنامه"},weekText:"هف",allDayText:"تمام روز",moreLinkText(e){return"بیش از "+e},noEventsText:"هیچ رویدادی به نمایش"},V7e={code:"fi",week:{dow:1,doy:4},buttonText:{prev:"Edellinen",next:"Seuraava",today:"Tänään",year:"Vuosi",month:"Kuukausi",week:"Viikko",day:"Päivä",list:"Tapahtumat"},weekText:"Vk",allDayText:"Koko päivä",moreLinkText:"lisää",noEventsText:"Ei näytettäviä tapahtumia"},G7e={code:"fr",buttonText:{prev:"Précédent",next:"Suivant",today:"Aujourd'hui",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Mon planning"},weekText:"Sem.",allDayText:"Toute la journée",moreLinkText:"en plus",noEventsText:"Aucun évènement à afficher"},q7e={code:"fr-ch",week:{dow:1,doy:4},buttonText:{prev:"Précédent",next:"Suivant",today:"Courant",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Mon planning"},weekText:"Sm",allDayText:"Toute la journée",moreLinkText:"en plus",noEventsText:"Aucun évènement à afficher"},Y7e={code:"fr",week:{dow:1,doy:4},buttonText:{prev:"Précédent",next:"Suivant",today:"Aujourd'hui",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Planning"},weekText:"Sem.",weekTextLong:"Semaine",allDayText:"Toute la journée",moreLinkText:"en plus",noEventsText:"Aucun évènement à afficher"},K7e={code:"gl",week:{dow:1,doy:4},buttonText:{prev:"Ant",next:"Seg",today:"Hoxe",year:"Ano",month:"Mes",week:"Semana",day:"Día",list:"Axenda"},buttonHints:{prev:"$0 antes",next:"$0 seguinte",today(e){return e==="Día"?"Hoxe":(e==="Semana"?"Esta":"Este")+" "+e.toLocaleLowerCase()}},viewHint(e){return"Vista "+(e==="Semana"?"da":"do")+" "+e.toLocaleLowerCase()},weekText:"Sm",weekTextLong:"Semana",allDayText:"Todo o día",moreLinkText:"máis",moreLinkHint(e){return`Amosar ${e} eventos máis`},noEventsText:"Non hai eventos para amosar",navLinkHint:"Ir ao $0",closeHint:"Pechar",timeHint:"A hora",eventHint:"Evento"},Z7e={code:"he",direction:"rtl",buttonText:{prev:"הקודם",next:"הבא",today:"היום",year:"שנה",month:"חודש",week:"שבוע",day:"יום",list:"סדר יום"},allDayText:"כל היום",moreLinkText:"אחר",noEventsText:"אין אירועים להצגה",weekText:"שבוע"},Q7e={code:"hi",week:{dow:0,doy:6},buttonText:{prev:"पिछला",next:"अगला",today:"आज",year:"वर्ष",month:"महीना",week:"सप्ताह",day:"दिन",list:"कार्यसूची"},weekText:"हफ्ता",allDayText:"सभी दिन",moreLinkText(e){return"+अधिक "+e},noEventsText:"कोई घटनाओं को प्रदर्शित करने के लिए"},X7e={code:"hr",week:{dow:1,doy:7},buttonText:{prev:"Prijašnji",next:"Sljedeći",today:"Danas",year:"Godina",month:"Mjesec",week:"Tjedan",day:"Dan",list:"Raspored"},weekText:"Tje",allDayText:"Cijeli dan",moreLinkText(e){return"+ još "+e},noEventsText:"Nema događaja za prikaz"},J7e={code:"hu",week:{dow:1,doy:4},buttonText:{prev:"vissza",next:"előre",today:"ma",year:"Év",month:"Hónap",week:"Hét",day:"Nap",list:"Lista"},weekText:"Hét",allDayText:"Egész nap",moreLinkText:"további",noEventsText:"Nincs megjeleníthető esemény"},eEe={code:"hy-am",week:{dow:1,doy:4},buttonText:{prev:"Նախորդ",next:"Հաջորդ",today:"Այսօր",year:"Տարի",month:"Ամիս",week:"Շաբաթ",day:"Օր",list:"Օրվա ցուցակ"},weekText:"Շաբ",allDayText:"Ամբողջ օր",moreLinkText(e){return"+ ևս "+e},noEventsText:"Բացակայում է իրադարձությունը ցուցադրելու"},tEe={code:"id",week:{dow:1,doy:7},buttonText:{prev:"mundur",next:"maju",today:"hari ini",year:"Tahun",month:"Bulan",week:"Minggu",day:"Hari",list:"Agenda"},weekText:"Mg",allDayText:"Sehari penuh",moreLinkText:"lebih",noEventsText:"Tidak ada acara untuk ditampilkan"},nEe={code:"is",week:{dow:1,doy:4},buttonText:{prev:"Fyrri",next:"Næsti",today:"Í dag",year:"Ár",month:"Mánuður",week:"Vika",day:"Dagur",list:"Dagskrá"},weekText:"Vika",allDayText:"Allan daginn",moreLinkText:"meira",noEventsText:"Engir viðburðir til að sýna"},rEe={code:"it",week:{dow:1,doy:4},buttonText:{prev:"Prec",next:"Succ",today:"Oggi",year:"Anno",month:"Mese",week:"Settimana",day:"Giorno",list:"Agenda"},weekText:"Sm",allDayText:"Tutto il giorno",moreLinkText(e){return"+altri "+e},noEventsText:"Non ci sono eventi da visualizzare"},iEe={code:"ja",buttonText:{prev:"前",next:"次",today:"今日",year:"年",month:"月",week:"週",day:"日",list:"予定リスト"},weekText:"週",allDayText:"終日",moreLinkText(e){return"他 "+e+" 件"},noEventsText:"表示する予定はありません"},oEe={code:"ka",week:{dow:1,doy:7},buttonText:{prev:"წინა",next:"შემდეგი",today:"დღეს",year:"წელიწადი",month:"თვე",week:"კვირა",day:"დღე",list:"დღის წესრიგი"},weekText:"კვ",allDayText:"მთელი დღე",moreLinkText(e){return"+ კიდევ "+e},noEventsText:"ღონისძიებები არ არის"},aEe={code:"kk",week:{dow:1,doy:7},buttonText:{prev:"Алдыңғы",next:"Келесі",today:"Бүгін",year:"Жыл",month:"Ай",week:"Апта",day:"Күн",list:"Күн тәртібі"},weekText:"Не",allDayText:"Күні бойы",moreLinkText(e){return"+ тағы "+e},noEventsText:"Көрсету үшін оқиғалар жоқ"},sEe={code:"km",week:{dow:1,doy:4},buttonText:{prev:"មុន",next:"បន្ទាប់",today:"ថ្ងៃនេះ",year:"ឆ្នាំ",month:"ខែ",week:"សប្តាហ៍",day:"ថ្ងៃ",list:"បញ្ជី"},weekText:"សប្តាហ៍",allDayText:"ពេញមួយថ្ងៃ",moreLinkText:"ច្រើនទៀត",noEventsText:"គ្មានព្រឹត្តិការណ៍ត្រូវបង្ហាញ"},lEe={code:"ko",buttonText:{prev:"이전달",next:"다음달",today:"오늘",year:"년도",month:"월",week:"주",day:"일",list:"일정목록"},weekText:"주",allDayText:"종일",moreLinkText:"개",noEventsText:"일정이 없습니다"},uEe={code:"ku",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"پێشتر",next:"دواتر",today:"ئەمڕو",year:"ساڵ",month:"مانگ",week:"هەفتە",day:"ڕۆژ",list:"بەرنامە"},weekText:"هەفتە",allDayText:"هەموو ڕۆژەکە",moreLinkText:"زیاتر",noEventsText:"هیچ ڕووداوێك نیە"},cEe={code:"lb",week:{dow:1,doy:4},buttonText:{prev:"Zréck",next:"Weider",today:"Haut",year:"Joer",month:"Mount",week:"Woch",day:"Dag",list:"Terminiwwersiicht"},weekText:"W",allDayText:"Ganzen Dag",moreLinkText:"méi",noEventsText:"Nee Evenementer ze affichéieren"},dEe={code:"lt",week:{dow:1,doy:4},buttonText:{prev:"Atgal",next:"Pirmyn",today:"Šiandien",year:"Metai",month:"Mėnuo",week:"Savaitė",day:"Diena",list:"Darbotvarkė"},weekText:"SAV",allDayText:"Visą dieną",moreLinkText:"daugiau",noEventsText:"Nėra įvykių rodyti"},fEe={code:"lv",week:{dow:1,doy:4},buttonText:{prev:"Iepr.",next:"Nāk.",today:"Šodien",year:"Gads",month:"Mēnesis",week:"Nedēļa",day:"Diena",list:"Dienas kārtība"},weekText:"Ned.",allDayText:"Visu dienu",moreLinkText(e){return"+vēl "+e},noEventsText:"Nav notikumu"},pEe={code:"mk",buttonText:{prev:"претходно",next:"следно",today:"Денес",year:"година",month:"Месец",week:"Недела",day:"Ден",list:"График"},weekText:"Сед",allDayText:"Цел ден",moreLinkText(e){return"+повеќе "+e},noEventsText:"Нема настани за прикажување"},hEe={code:"ms",week:{dow:1,doy:7},buttonText:{prev:"Sebelum",next:"Selepas",today:"hari ini",year:"Tahun",month:"Bulan",week:"Minggu",day:"Hari",list:"Agenda"},weekText:"Mg",allDayText:"Sepanjang hari",moreLinkText(e){return"masih ada "+e+" acara"},noEventsText:"Tiada peristiwa untuk dipaparkan"},gEe={code:"nb",week:{dow:1,doy:4},buttonText:{prev:"Forrige",next:"Neste",today:"I dag",year:"År",month:"Måned",week:"Uke",day:"Dag",list:"Agenda"},weekText:"Uke",weekTextLong:"Uke",allDayText:"Hele dagen",moreLinkText:"til",noEventsText:"Ingen hendelser å vise",buttonHints:{prev:"Forrige $0",next:"Neste $0",today:"Nåværende $0"},viewHint:"$0 visning",navLinkHint:"Gå til $0",moreLinkHint(e){return`Vis ${e} flere hendelse${e===1?"":"r"}`}},mEe={code:"ne",week:{dow:7,doy:1},buttonText:{prev:"अघिल्लो",next:"अर्को",today:"आज",year:"वर्ष",month:"महिना",week:"हप्ता",day:"दिन",list:"सूची"},weekText:"हप्ता",allDayText:"दिनभरि",moreLinkText:"थप लिंक",noEventsText:"देखाउनको लागि कुनै घटनाहरू छैनन्"},vEe={code:"nl",week:{dow:1,doy:4},buttonText:{prev:"Vorige",next:"Volgende",today:"Vandaag",year:"Jaar",month:"Maand",week:"Week",day:"Dag",list:"Agenda"},allDayText:"Hele dag",moreLinkText:"extra",noEventsText:"Geen evenementen om te laten zien"},yEe={code:"nn",week:{dow:1,doy:4},buttonText:{prev:"Førre",next:"Neste",today:"I dag",year:"År",month:"Månad",week:"Veke",day:"Dag",list:"Agenda"},weekText:"Veke",allDayText:"Heile dagen",moreLinkText:"til",noEventsText:"Ingen hendelser å vise"},bEe={code:"pl",week:{dow:1,doy:4},buttonText:{prev:"Poprzedni",next:"Następny",today:"Dziś",year:"Rok",month:"Miesiąc",week:"Tydzień",day:"Dzień",list:"Plan dnia"},weekText:"Tydz",allDayText:"Cały dzień",moreLinkText:"więcej",noEventsText:"Brak wydarzeń do wyświetlenia"},xEe={code:"pt-br",buttonText:{prev:"Anterior",next:"Próximo",prevYear:"Ano anterior",nextYear:"Próximo ano",year:"Ano",today:"Hoje",month:"Mês",week:"Semana",day:"Dia",list:"Lista"},buttonHints:{prev:"$0 Anterior",next:"Próximo $0",today(e){return e==="Dia"?"Hoje":(e==="Semana"?"Esta":"Este")+" "+e.toLocaleLowerCase()}},viewHint(e){return"Visualizar "+(e==="Semana"?"a":"o")+" "+e.toLocaleLowerCase()},weekText:"Sm",weekTextLong:"Semana",allDayText:"dia inteiro",moreLinkText(e){return"mais +"+e},moreLinkHint(e){return`Mostrar mais ${e} eventos`},noEventsText:"Não há eventos para mostrar",navLinkHint:"Ir para $0",closeHint:"Fechar",timeHint:"A hora",eventHint:"Evento"},wEe={code:"pt",week:{dow:1,doy:4},buttonText:{prev:"Anterior",next:"Seguinte",today:"Hoje",year:"Ano",month:"Mês",week:"Semana",day:"Dia",list:"Agenda"},weekText:"Sem",allDayText:"Todo o dia",moreLinkText:"mais",noEventsText:"Não há eventos para mostrar"},SEe={code:"ro",week:{dow:1,doy:7},buttonText:{prev:"precedentă",next:"următoare",today:"Azi",year:"An",month:"Lună",week:"Săptămână",day:"Zi",list:"Agendă"},weekText:"Săpt",allDayText:"Toată ziua",moreLinkText(e){return"+alte "+e},noEventsText:"Nu există evenimente de afișat"},$Ee={code:"ru",week:{dow:1,doy:4},buttonText:{prev:"Пред",next:"След",today:"Сегодня",year:"Год",month:"Месяц",week:"Неделя",day:"День",list:"Повестка дня"},weekText:"Нед",allDayText:"Весь день",moreLinkText(e){return"+ ещё "+e},noEventsText:"Нет событий для отображения"},CEe={code:"si-lk",week:{dow:1,doy:4},buttonText:{prev:"පෙර",next:"පසු",today:"අද",year:"අවුරුදු",month:"මාසය",week:"සතිය",day:"දවස",list:"ලැයිස්තුව"},weekText:"සති",allDayText:"සියලු",moreLinkText:"තවත්",noEventsText:"මුකුත් නැත"},EEe={code:"sk",week:{dow:1,doy:4},buttonText:{prev:"Predchádzajúci",next:"Nasledujúci",today:"Dnes",year:"Rok",month:"Mesiac",week:"Týždeň",day:"Deň",list:"Rozvrh"},weekText:"Ty",allDayText:"Celý deň",moreLinkText(e){return"+ďalšie: "+e},noEventsText:"Žiadne akcie na zobrazenie"},kEe={code:"sl",week:{dow:1,doy:7},buttonText:{prev:"Prejšnji",next:"Naslednji",today:"Trenutni",year:"Leto",month:"Mesec",week:"Teden",day:"Dan",list:"Dnevni red"},weekText:"Teden",allDayText:"Ves dan",moreLinkText:"več",noEventsText:"Ni dogodkov za prikaz"},TEe={code:"sm",buttonText:{prev:"Talu ai",next:"Mulimuli atu",today:"Aso nei",year:"Tausaga",month:"Masina",week:"Vaiaso",day:"Aso",list:"Faasologa"},weekText:"Vaiaso",allDayText:"Aso atoa",moreLinkText:"sili atu",noEventsText:"Leai ni mea na tutupu"},AEe={code:"sq",week:{dow:1,doy:4},buttonText:{prev:"mbrapa",next:"Përpara",today:"Sot",year:"Viti",month:"Muaj",week:"Javë",day:"Ditë",list:"Listë"},weekText:"Ja",allDayText:"Gjithë ditën",moreLinkText(e){return"+më tepër "+e},noEventsText:"Nuk ka evente për të shfaqur"},REe={code:"sr-cyrl",week:{dow:1,doy:7},buttonText:{prev:"Претходна",next:"следећи",today:"Данас",year:"Година",month:"Месец",week:"Недеља",day:"Дан",list:"Планер"},weekText:"Сед",allDayText:"Цео дан",moreLinkText(e){return"+ још "+e},noEventsText:"Нема догађаја за приказ"},OEe={code:"sr",week:{dow:1,doy:7},buttonText:{prev:"Prethodna",next:"Sledeći",today:"Danas",year:"Godina",month:"Mеsеc",week:"Nеdеlja",day:"Dan",list:"Planеr"},weekText:"Sed",allDayText:"Cеo dan",moreLinkText(e){return"+ još "+e},noEventsText:"Nеma događaja za prikaz"},_Ee={code:"sv",week:{dow:1,doy:4},buttonText:{prev:"Förra",next:"Nästa",today:"Idag",year:"År",month:"Månad",week:"Vecka",day:"Dag",list:"Program"},buttonHints:{prev(e){return`Föregående ${e.toLocaleLowerCase()}`},next(e){return`Nästa ${e.toLocaleLowerCase()}`},today(e){return(e==="Program"?"Detta":"Denna")+" "+e.toLocaleLowerCase()}},viewHint:"$0 vy",navLinkHint:"Gå till $0",moreLinkHint(e){return`Visa ytterligare ${e} händelse${e===1?"":"r"}`},weekText:"v.",weekTextLong:"Vecka",allDayText:"Heldag",moreLinkText:"till",noEventsText:"Inga händelser att visa",closeHint:"Stäng",timeHint:"Klockan",eventHint:"Händelse"},IEe={code:"ta-in",week:{dow:1,doy:4},buttonText:{prev:"முந்தைய",next:"அடுத்தது",today:"இன்று",year:"ஆண்டு",month:"மாதம்",week:"வாரம்",day:"நாள்",list:"தினசரி அட்டவணை"},weekText:"வாரம்",allDayText:"நாள் முழுவதும்",moreLinkText(e){return"+ மேலும் "+e},noEventsText:"காண்பிக்க நிகழ்வுகள் இல்லை"},DEe={code:"th",week:{dow:1,doy:4},buttonText:{prev:"ก่อนหน้า",next:"ถัดไป",prevYear:"ปีก่อนหน้า",nextYear:"ปีถัดไป",year:"ปี",today:"วันนี้",month:"เดือน",week:"สัปดาห์",day:"วัน",list:"กำหนดการ"},weekText:"สัปดาห์",allDayText:"ตลอดวัน",moreLinkText:"เพิ่มเติม",noEventsText:"ไม่มีกิจกรรมที่จะแสดง"},PEe={code:"tr",week:{dow:1,doy:7},buttonText:{prev:"geri",next:"ileri",today:"bugün",year:"Yıl",month:"Ay",week:"Hafta",day:"Gün",list:"Ajanda"},weekText:"Hf",allDayText:"Tüm gün",moreLinkText:"daha fazla",noEventsText:"Gösterilecek etkinlik yok"},MEe={code:"ug",buttonText:{prev:"ئالدىنقى",next:"كېيىنكى",today:"بۈگۈن",year:"يىل",month:"ئاي",week:"ھەپتە",day:"كۈن",list:"كۈنتەرتىپ"},allDayText:"پۈتۈن كۈن"},NEe={code:"uk",week:{dow:1,doy:7},buttonText:{prev:"Попередній",next:"далі",today:"Сьогодні",year:"рік",month:"Місяць",week:"Тиждень",day:"День",list:"Порядок денний"},weekText:"Тиж",allDayText:"Увесь день",moreLinkText(e){return"+ще "+e+"..."},noEventsText:"Немає подій для відображення"},LEe={code:"uz-cy",week:{dow:1,doy:4},buttonText:{prev:"Олин",next:"Кейин",today:"Бугун",month:"Ой",week:"Ҳафта",day:"Кун",list:"Кун тартиби"},weekText:"Ҳафта",allDayText:"Кун бўйича",moreLinkText(e){return"+ яна "+e},noEventsText:"Кўрсатиш учун воқеалар йўқ"},FEe={code:"uz",week:{dow:1,doy:4},buttonText:{prev:"Oldingi",next:"Keyingi",today:"Bugun",year:"Yil",month:"Oy",week:"Xafta",day:"Kun",list:"Kun tartibi"},allDayText:"Kun bo'yi",moreLinkText(e){return"+ yana "+e},noEventsText:"Ko'rsatish uchun voqealar yo'q"},jEe={code:"vi",week:{dow:1,doy:4},buttonText:{prev:"Trước",next:"Tiếp",today:"Hôm nay",year:"Năm",month:"Tháng",week:"Tuần",day:"Ngày",list:"Lịch biểu"},weekText:"Tu",allDayText:"Cả ngày",moreLinkText(e){return"+ thêm "+e},noEventsText:"Không có sự kiện để hiển thị"},zEe={code:"zh-cn",week:{dow:1,doy:4},buttonText:{prev:"上月",next:"下月",today:"今天",year:"年",month:"月",week:"周",day:"日",list:"日程"},weekText:"周",allDayText:"全天",moreLinkText(e){return"另外 "+e+" 个"},noEventsText:"没有事件显示"},BEe={code:"zh-tw",buttonText:{prev:"上月",next:"下月",today:"今天",year:"年",month:"月",week:"週",day:"天",list:"活動列表"},weekText:"周",allDayText:"整天",moreLinkText:"顯示更多",noEventsText:"没有任何活動"},HEe=[v7e,y7e,b7e,x7e,w7e,S7e,$7e,C7e,E7e,k7e,T7e,A7e,R7e,O7e,_7e,I7e,D7e,P7e,M7e,N7e,L7e,F7e,j7e,z7e,B7e,H7e,U7e,W7e,V7e,G7e,q7e,Y7e,K7e,Z7e,Q7e,X7e,J7e,eEe,tEe,nEe,rEe,iEe,oEe,aEe,sEe,lEe,uEe,cEe,dEe,fEe,pEe,hEe,gEe,mEe,vEe,yEe,bEe,xEe,wEe,SEe,$Ee,CEe,EEe,kEe,TEe,AEe,REe,OEe,_Ee,IEe,DEe,PEe,MEe,NEe,LEe,FEe,jEe,zEe,BEe];function ly(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ym(e,t)}function Th(e,t){if(t&&(dr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xa(e)}function Zo(e){return Zo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Zo(e)}function UEe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function WEe(e){return CA(e)||UEe(e)||kA(e)||TA()}function FF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function jF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FF(Object(n),!0).forEach(function(r){oi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FF(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var VEe={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,n){console&&console[t]&&console[t].apply(console,n)}},GEe=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ii(this,e),this.init(t,n)}return Di(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||VEe,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(n,r,i,o){return o&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(i).concat(this.prefix," ").concat(n[0])),this.logger[r](n))}},{key:"create",value:function(n){return new e(this.logger,jF(jF({},{prefix:"".concat(this.prefix,":").concat(n,":")}),this.options))}},{key:"clone",value:function(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new e(this.logger,n)}}]),e}(),Qo=new GEe,al=function(){function e(){Ii(this,e),this.observers={}}return Di(e,[{key:"on",value:function(n,r){var i=this;return n.split(" ").forEach(function(o){i.observers[o]=i.observers[o]||[],i.observers[o].push(r)}),this}},{key:"off",value:function(n,r){if(this.observers[n]){if(!r){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(function(i){return i!==r})}}},{key:"emit",value:function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];if(this.observers[n]){var a=[].concat(this.observers[n]);a.forEach(function(l){l.apply(void 0,i)})}if(this.observers["*"]){var s=[].concat(this.observers["*"]);s.forEach(function(l){l.apply(l,[n].concat(i))})}}}]),e}();function Ah(){var e,t,n=new Promise(function(r,i){e=r,t=i});return n.resolve=e,n.reject=t,n}function zF(e){return e==null?"":""+e}function qEe(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function I8(e,t,n){function r(s){return s&&s.indexOf("###")>-1?s.replace(/###/g,"."):s}function i(){return!e||typeof e=="string"}for(var o=typeof t!="string"?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={}}return i()?{}:{obj:e,k:r(o.shift())}}function BF(e,t,n){var r=I8(e,t,Object),i=r.obj,o=r.k;i[o]=n}function YEe(e,t,n,r){var i=I8(e,t,Object),o=i.obj,a=i.k;o[a]=o[a]||[],r&&(o[a]=o[a].concat(n)),r||o[a].push(n)}function uy(e,t){var n=I8(e,t),r=n.obj,i=n.k;if(r)return r[i]}function HF(e,t,n){var r=uy(e,n);return r!==void 0?r:uy(t,n)}function UF(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):UF(e[r],t[r],n):e[r]=t[r]);return e}function Dd(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var KEe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function ZEe(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return KEe[t]}):e}var cy=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,QEe=[" ",",","?","!",";"];function XEe(e,t,n){t=t||"",n=n||"";var r=QEe.filter(function(s){return t.indexOf(s)<0&&n.indexOf(s)<0});if(r.length===0)return!0;var i=new RegExp("(".concat(r.map(function(s){return s==="?"?"\\?":s}).join("|"),")")),o=!i.test(e);if(!o){var a=e.indexOf(n);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}function WF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function dy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WF(Object(n),!0).forEach(function(r){oi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WF(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function JEe(e){var t=eke();return function(){var r=Zo(e),i;if(t){var o=Zo(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Th(this,i)}}function eke(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function VF(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,o=0;o<r.length;++o){if(!i||typeof i[r[o]]=="string"&&o+1<r.length)return;if(i[r[o]]===void 0){for(var a=2,s=r.slice(o,o+a).join(n),l=i[s];l===void 0&&r.length>o+a;)a++,s=r.slice(o,o+a).join(n),l=i[s];if(l===void 0)return;if(l===null)return null;if(t.endsWith(s)){if(typeof l=="string")return l;if(s&&typeof l[s]=="string")return l[s]}var c=r.slice(o+a).join(n);return c?VF(l,c,n):void 0}i=i[r[o]]}return i}}var tke=function(e){ly(n,e);var t=JEe(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Ii(this,n),i=t.call(this),cy&&al.call(xa(i)),i.data=r||{},i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.options.ignoreJSONStructure===void 0&&(i.options.ignoreJSONStructure=!0),i}return Di(n,[{key:"addNamespaces",value:function(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}},{key:"removeNamespaces",value:function(i){var o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}},{key:"getResource",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,c=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure,d=[i,o];a&&typeof a!="string"&&(d=d.concat(a)),a&&typeof a=="string"&&(d=d.concat(l?a.split(l):a)),i.indexOf(".")>-1&&(d=i.split("."));var f=uy(this.data,d);return f||!c||typeof a!="string"?f:VF(this.data&&this.data[i]&&this.data[i][o],a,l)}},{key:"addResource",value:function(i,o,a,s){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},c=this.options.keySeparator;c===void 0&&(c=".");var d=[i,o];a&&(d=d.concat(c?a.split(c):a)),i.indexOf(".")>-1&&(d=i.split("."),s=o,o=d[1]),this.addNamespaces(o),BF(this.data,d,s),l.silent||this.emit("added",i,o,a,s)}},{key:"addResources",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var l in a)(typeof a[l]=="string"||Object.prototype.toString.apply(a[l])==="[object Array]")&&this.addResource(i,o,l,a[l],{silent:!0});s.silent||this.emit("added",i,o,a)}},{key:"addResourceBundle",value:function(i,o,a,s,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},d=[i,o];i.indexOf(".")>-1&&(d=i.split("."),s=a,a=o,o=d[1]),this.addNamespaces(o);var f=uy(this.data,d)||{};s?UF(f,a,l):f=dy(dy({},f),a),BF(this.data,d,f),c.silent||this.emit("added",i,o,a)}},{key:"removeResourceBundle",value:function(i,o){this.hasResourceBundle(i,o)&&delete this.data[i][o],this.removeNamespaces(o),this.emit("removed",i,o)}},{key:"hasResourceBundle",value:function(i,o){return this.getResource(i,o)!==void 0}},{key:"getResourceBundle",value:function(i,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?dy(dy({},{}),this.getResource(i,o)):this.getResource(i,o)}},{key:"getDataByLanguage",value:function(i){return this.data[i]}},{key:"hasLanguageSomeTranslations",value:function(i){var o=this.getDataByLanguage(i),a=o&&Object.keys(o)||[];return!!a.find(function(s){return o[s]&&Object.keys(o[s]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(al),GF={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,n,r,i,o){var a=this;return t.forEach(function(s){a.processors[s]&&(n=a.processors[s].process(n,r,i,o))}),n}};function qF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Or(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qF(Object(n),!0).forEach(function(r){oi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qF(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nke(e){var t=rke();return function(){var r=Zo(e),i;if(t){var o=Zo(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Th(this,i)}}function rke(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var YF={},KF=function(e){ly(n,e);var t=nke(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Ii(this,n),i=t.call(this),cy&&al.call(xa(i)),qEe(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,xa(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=Qo.create("translator"),i}return Di(n,[{key:"changeLanguage",value:function(i){i&&(this.language=i)}},{key:"exists",value:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;var a=this.resolve(i,o);return a&&a.res!==void 0}},{key:"extractFromKey",value:function(i,o){var a=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");var s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,l=o.ns||this.options.defaultNS||[],c=a&&i.indexOf(a)>-1,d=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!XEe(i,a,s);if(c&&!d){var f=i.match(this.interpolator.nestingRegexp);if(f&&f.length>0)return{key:i,namespaces:l};var g=i.split(a);(a!==s||a===s&&this.options.ns.indexOf(g[0])>-1)&&(l=g.shift()),i=g.join(s)}return typeof l=="string"&&(l=[l]),{key:i,namespaces:l}}},{key:"translate",value:function(i,o,a){var s=this;if(dr(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);var l=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,c=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,d=this.extractFromKey(i[i.length-1],o),f=d.key,g=d.namespaces,p=g[g.length-1],m=o.lng||this.language,v=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(m&&m.toLowerCase()==="cimode"){if(v){var w=o.nsSeparator||this.options.nsSeparator;return l?(x.res="".concat(p).concat(w).concat(f),x):"".concat(p).concat(w).concat(f)}return l?(x.res=f,x):f}var x=this.resolve(i,o),b=x&&x.res,S=x&&x.usedKey||f,$=x&&x.exactUsedKey||f,E=Object.prototype.toString.apply(b),T=["[object Number]","[object Function]","[object RegExp]"],A=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,R=!this.i18nFormat||this.i18nFormat.handleAsObject,I=typeof b!="string"&&typeof b!="boolean"&&typeof b!="number";if(R&&b&&I&&T.indexOf(E)<0&&!(typeof A=="string"&&E==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var _=this.options.returnedObjectHandler?this.options.returnedObjectHandler(S,b,Or(Or({},o),{},{ns:g})):"key '".concat(f," (").concat(this.language,")' returned an object instead of string.");return l?(x.res=_,x):_}if(c){var L=E==="[object Array]",B=L?[]:{},U=L?$:S;for(var V in b)if(Object.prototype.hasOwnProperty.call(b,V)){var P="".concat(U).concat(c).concat(V);B[V]=this.translate(P,Or(Or({},o),{joinArrays:!1,ns:g})),B[V]===P&&(B[V]=b[V])}b=B}}else if(R&&typeof A=="string"&&E==="[object Array]")b=b.join(A),b&&(b=this.extendTranslation(b,i,o,a));else{var z=!1,q=!1,H=o.count!==void 0&&typeof o.count!="string",Z=n.hasDefaultValue(o),K=H?this.pluralResolver.getSuffix(m,o.count,o):"",J=o["defaultValue".concat(K)]||o.defaultValue;!this.isValidLookup(b)&&Z&&(z=!0,b=J),this.isValidLookup(b)||(q=!0,b=f);var ge=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,ve=ge&&q?void 0:b,he=Z&&J!==b&&this.options.updateMissing;if(q||z||he){if(this.logger.log(he?"updateKey":"missingKey",m,p,f,he?J:b),c){var xe=this.resolve(f,Or(Or({},o),{},{keySeparator:!1}));xe&&xe.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var ae=[],$e=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&$e&&$e[0])for(var Ae=0;Ae<$e.length;Ae++)ae.push($e[Ae]);else this.options.saveMissingTo==="all"?ae=this.languageUtils.toResolveHierarchy(o.lng||this.language):ae.push(o.lng||this.language);var Fe=function(Ie,Ve,St){var ct=Z&&St!==b?St:ve;s.options.missingKeyHandler?s.options.missingKeyHandler(Ie,p,Ve,ct,he,o):s.backendConnector&&s.backendConnector.saveMissing&&s.backendConnector.saveMissing(Ie,p,Ve,ct,he,o),s.emit("missingKey",Ie,p,Ve,b)};this.options.saveMissing&&(this.options.saveMissingPlurals&&H?ae.forEach(function(Xe){s.pluralResolver.getSuffixes(Xe,o).forEach(function(Ie){Fe([Xe],f+Ie,o["defaultValue".concat(Ie)]||J)})}):Fe(ae,f,J))}b=this.extendTranslation(b,i,o,x,a),q&&b===f&&this.options.appendNamespaceToMissingKey&&(b="".concat(p,":").concat(f)),(q||z)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?b=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(p,":").concat(f):f,z?b:void 0):b=this.options.parseMissingKeyHandler(b))}return l?(x.res=b,x):b}},{key:"extendTranslation",value:function(i,o,a,s,l){var c=this;if(this.i18nFormat&&this.i18nFormat.parse)i=this.i18nFormat.parse(i,Or(Or({},this.options.interpolation.defaultVariables),a),s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init(Or(Or({},a),{interpolation:Or(Or({},this.options.interpolation),a.interpolation)}));var d=typeof i=="string"&&(a&&a.interpolation&&a.interpolation.skipOnVariables!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),f;if(d){var g=i.match(this.interpolator.nestingRegexp);f=g&&g.length}var p=a.replace&&typeof a.replace!="string"?a.replace:a;if(this.options.interpolation.defaultVariables&&(p=Or(Or({},this.options.interpolation.defaultVariables),p)),i=this.interpolator.interpolate(i,p,a.lng||this.language,a),d){var m=i.match(this.interpolator.nestingRegexp),v=m&&m.length;f<v&&(a.nest=!1)}a.nest!==!1&&(i=this.interpolator.nest(i,function(){for(var b=arguments.length,S=new Array(b),$=0;$<b;$++)S[$]=arguments[$];return l&&l[0]===S[0]&&!a.context?(c.logger.warn("It seems you are nesting recursively key: ".concat(S[0]," in key: ").concat(o[0])),null):c.translate.apply(c,S.concat([o]))},a)),a.interpolation&&this.interpolator.reset()}var w=a.postProcess||this.options.postProcess,x=typeof w=="string"?[w]:w;return i!=null&&x&&x.length&&a.applyPostProcessor!==!1&&(i=GF.handle(x,i,o,this.options&&this.options.postProcessPassResolved?Or({i18nResolved:s},a):a,this)),i}},{key:"resolve",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,l,c,d,f;return typeof i=="string"&&(i=[i]),i.forEach(function(g){if(!o.isValidLookup(s)){var p=o.extractFromKey(g,a),m=p.key;l=m;var v=p.namespaces;o.options.fallbackNS&&(v=v.concat(o.options.fallbackNS));var w=a.count!==void 0&&typeof a.count!="string",x=w&&!a.ordinal&&a.count===0&&o.pluralResolver.shouldUseIntlApi(),b=a.context!==void 0&&(typeof a.context=="string"||typeof a.context=="number")&&a.context!=="",S=a.lngs?a.lngs:o.languageUtils.toResolveHierarchy(a.lng||o.language,a.fallbackLng);v.forEach(function($){o.isValidLookup(s)||(f=$,!YF["".concat(S[0],"-").concat($)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(f)&&(YF["".concat(S[0],"-").concat($)]=!0,o.logger.warn('key "'.concat(l,'" for languages "').concat(S.join(", "),`" won't get resolved as namespace "`).concat(f,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),S.forEach(function(E){if(!o.isValidLookup(s)){d=E;var T=[m];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(T,m,E,$,a);else{var A;w&&(A=o.pluralResolver.getSuffix(E,a.count,a));var R="".concat(o.options.pluralSeparator,"zero");if(w&&(T.push(m+A),x&&T.push(m+R)),b){var I="".concat(m).concat(o.options.contextSeparator).concat(a.context);T.push(I),w&&(T.push(I+A),x&&T.push(I+R))}}for(var _;_=T.pop();)o.isValidLookup(s)||(c=_,s=o.getResource(E,$,_,a))}}))})}}),{res:s,usedKey:l,exactUsedKey:c,usedLng:d,usedNS:f}}},{key:"isValidLookup",value:function(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}},{key:"getResource",value:function(i,o,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,a,s):this.resourceStore.getResource(i,o,a,s)}}],[{key:"hasDefaultValue",value:function(i){var o="defaultValue";for(var a in i)if(Object.prototype.hasOwnProperty.call(i,a)&&o===a.substring(0,o.length)&&i[a]!==void 0)return!0;return!1}}]),n}(al);function D8(e){return e.charAt(0).toUpperCase()+e.slice(1)}var ike=function(){function e(t){Ii(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Qo.create("languageUtils")}return Di(e,[{key:"getScriptPartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return null;var r=n.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}},{key:"getLanguagePartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return n;var r=n.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],i=n.split("-");return this.options.lowerCaseLng?i=i.map(function(o){return o.toLowerCase()}):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=D8(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),r.indexOf(i[1].toLowerCase())>-1&&(i[1]=D8(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=D8(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}},{key:"isSupportedCode",value:function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}},{key:"getBestMatchFromCodes",value:function(n){var r=this;if(!n)return null;var i;return n.forEach(function(o){if(!i){var a=r.formatLanguageCode(o);(!r.options.supportedLngs||r.isSupportedCode(a))&&(i=a)}}),!i&&this.options.supportedLngs&&n.forEach(function(o){if(!i){var a=r.getLanguagePartFromCode(o);if(r.isSupportedCode(a))return i=a;i=r.options.supportedLngs.find(function(s){if(s.indexOf(a)===0)return s})}}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}},{key:"getFallbackCodes",value:function(n,r){if(!n)return[];if(typeof n=="function"&&(n=n(r)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!r)return n.default||[];var i=n[r];return i||(i=n[this.getScriptPartFromCode(r)]),i||(i=n[this.formatLanguageCode(r)]),i||(i=n[this.getLanguagePartFromCode(r)]),i||(i=n.default),i||[]}},{key:"toResolveHierarchy",value:function(n,r){var i=this,o=this.getFallbackCodes(r||this.options.fallbackLng||[],n),a=[],s=function(c){c&&(i.isSupportedCode(c)?a.push(c):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(c)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(n))):typeof n=="string"&&s(this.formatLanguageCode(n)),o.forEach(function(l){a.indexOf(l)<0&&s(i.formatLanguageCode(l))}),a}}]),e}(),oke=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],ake={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}},ske=["v1","v2","v3"],ZF={zero:0,one:1,two:2,few:3,many:4,other:5};function lke(){var e={};return oke.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:ake[t.fc]}})}),e}var uke=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ii(this,e),this.languageUtils=t,this.options=n,this.logger=Qo.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=lke()}return Di(e,[{key:"addRule",value:function(n,r){this.rules[n]=r}},{key:"getRule",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(n,r);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,i).map(function(o){return"".concat(r).concat(o)})}},{key:"getSuffixes",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(a,s){return ZF[a]-ZF[s]}).map(function(a){return"".concat(r.options.prepend).concat(a)}):o.numbers.map(function(a){return r.getSuffix(n,a,i)}):[]}},{key:"getSuffix",value:function(n,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(n,i);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(r)):this.getSuffixRetroCompatible(o,r):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,r){var i=this,o=n.noAbs?n.plurals(r):n.plurals(Math.abs(r)),a=n.numbers[o];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var s=function(){return i.options.prepend&&a.toString()?i.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?s():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!ske.includes(this.options.compatibilityJSON)}}]),e}();function QF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function yo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QF(Object(n),!0).forEach(function(r){oi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QF(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var cke=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ii(this,e),this.logger=Qo.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return Di(e,[{key:"init",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var r=n.interpolation;this.escape=r.escape!==void 0?r.escape:ZEe,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?Dd(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?Dd(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?Dd(r.nestingPrefix):r.nestingPrefixEscaped||Dd("$t("),this.nestingSuffix=r.nestingSuffix?Dd(r.nestingSuffix):r.nestingSuffixEscaped||Dd(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var i="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(i,"g")}},{key:"interpolate",value:function(n,r,i,o){var a=this,s,l,c,d=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function f(w){return w.replace(/\$/g,"$$$$")}var g=function(x){if(x.indexOf(a.formatSeparator)<0){var b=HF(r,d,x);return a.alwaysFormat?a.format(b,void 0,i,yo(yo(yo({},o),r),{},{interpolationkey:x})):b}var S=x.split(a.formatSeparator),$=S.shift().trim(),E=S.join(a.formatSeparator).trim();return a.format(HF(r,d,$),E,i,yo(yo(yo({},o),r),{},{interpolationkey:$}))};this.resetRegExp();var p=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,m=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,v=[{regex:this.regexpUnescape,safeValue:function(x){return f(x)}},{regex:this.regexp,safeValue:function(x){return a.escapeValue?f(a.escape(x)):f(x)}}];return v.forEach(function(w){for(c=0;s=w.regex.exec(n);){var x=s[1].trim();if(l=g(x),l===void 0)if(typeof p=="function"){var b=p(n,s,o);l=typeof b=="string"?b:""}else if(o&&o.hasOwnProperty(x))l="";else if(m){l=s[0];continue}else a.logger.warn("missed to pass in variable ".concat(x," for interpolating ").concat(n)),l="";else typeof l!="string"&&!a.useRawValueToEscape&&(l=zF(l));var S=w.safeValue(l);if(n=n.replace(s[0],S),m?(w.regex.lastIndex+=l.length,w.regex.lastIndex-=s[0].length):w.regex.lastIndex=0,c++,c>=a.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,s,l=yo({},o);l.applyPostProcessor=!1,delete l.defaultValue;function c(p,m){var v=this.nestingOptionsSeparator;if(p.indexOf(v)<0)return p;var w=p.split(new RegExp("".concat(v,"[ ]*{"))),x="{".concat(w[1]);p=w[0],x=this.interpolate(x,l);var b=x.match(/'/g),S=x.match(/"/g);(b&&b.length%2===0&&!S||S.length%2!==0)&&(x=x.replace(/'/g,'"'));try{l=JSON.parse(x),m&&(l=yo(yo({},m),l))}catch($){return this.logger.warn("failed parsing options string in nesting for key ".concat(p),$),"".concat(p).concat(v).concat(x)}return delete l.defaultValue,p}for(;a=this.nestingRegexp.exec(n);){var d=[],f=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){var g=a[1].split(this.formatSeparator).map(function(p){return p.trim()});a[1]=g.shift(),d=g,f=!0}if(s=r(c.call(this,a[1].trim(),l),l),s&&a[0]===n&&typeof s!="string")return s;typeof s!="string"&&(s=zF(s)),s||(this.logger.warn("missed to resolve ".concat(a[1]," for nesting ").concat(n)),s=""),f&&(s=d.reduce(function(p,m){return i.format(p,m,o.lng,yo(yo({},o),{},{interpolationkey:a[1].trim()}))},s.trim())),n=n.replace(a[0],s),this.regexp.lastIndex=0}return n}}]),e}();function XF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function sl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XF(Object(n),!0).forEach(function(r){oi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XF(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dke(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);if(t==="currency"&&i.indexOf(":")<0)n.currency||(n.currency=i.trim());else if(t==="relativetime"&&i.indexOf(":")<0)n.range||(n.range=i.trim());else{var o=i.split(";");o.forEach(function(a){if(a){var s=a.split(":"),l=WEe(s),c=l[0],d=l.slice(1),f=d.join(":").trim().replace(/^'+|'+$/g,"");n[c.trim()]||(n[c.trim()]=f),f==="false"&&(n[c.trim()]=!1),f==="true"&&(n[c.trim()]=!0),isNaN(f)||(n[c.trim()]=parseInt(f,10))}})}}return{formatName:t,formatOptions:n}}function Pd(e){var t={};return function(r,i,o){var a=i+JSON.stringify(o),s=t[a];return s||(s=e(i,o),t[a]=s),s(r)}}var fke=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ii(this,e),this.logger=Qo.create("formatter"),this.options=t,this.formats={number:Pd(function(n,r){var i=new Intl.NumberFormat(n,r);return function(o){return i.format(o)}}),currency:Pd(function(n,r){var i=new Intl.NumberFormat(n,sl(sl({},r),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:Pd(function(n,r){var i=new Intl.DateTimeFormat(n,sl({},r));return function(o){return i.format(o)}}),relativetime:Pd(function(n,r){var i=new Intl.RelativeTimeFormat(n,sl({},r));return function(o){return i.format(o,r.range||"day")}}),list:Pd(function(n,r){var i=new Intl.ListFormat(n,sl({},r));return function(o){return i.format(o)}})},this.init(t)}return Di(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},i=r.interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}},{key:"add",value:function(n,r){this.formats[n.toLowerCase().trim()]=r}},{key:"addCached",value:function(n,r){this.formats[n.toLowerCase().trim()]=Pd(r)}},{key:"format",value:function(n,r,i,o){var a=this,s=r.split(this.formatSeparator),l=s.reduce(function(c,d){var f=dke(d),g=f.formatName,p=f.formatOptions;if(a.formats[g]){var m=c;try{var v=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},w=v.locale||v.lng||o.locale||o.lng||i;m=a.formats[g](c,w,sl(sl(sl({},p),o),v))}catch(x){a.logger.warn(x)}return m}else a.logger.warn("there was no format function for ".concat(g));return c},n);return l}}]),e}();function JF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ej(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JF(Object(n),!0).forEach(function(r){oi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JF(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pke(e){var t=hke();return function(){var r=Zo(e),i;if(t){var o=Zo(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Th(this,i)}}function hke(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function gke(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var mke=function(e){ly(n,e);var t=pke(n);function n(r,i,o){var a,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Ii(this,n),a=t.call(this),cy&&al.call(xa(a)),a.backend=r,a.store=i,a.services=o,a.languageUtils=o.languageUtils,a.options=s,a.logger=Qo.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=s.maxParallelReads||10,a.readingCalls=0,a.maxRetries=s.maxRetries>=0?s.maxRetries:5,a.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(o,s.backend,s),a}return Di(n,[{key:"queueLoad",value:function(i,o,a,s){var l=this,c={},d={},f={},g={};return i.forEach(function(p){var m=!0;o.forEach(function(v){var w="".concat(p,"|").concat(v);!a.reload&&l.store.hasResourceBundle(p,v)?l.state[w]=2:l.state[w]<0||(l.state[w]===1?d[w]===void 0&&(d[w]=!0):(l.state[w]=1,m=!1,d[w]===void 0&&(d[w]=!0),c[w]===void 0&&(c[w]=!0),g[v]===void 0&&(g[v]=!0)))}),m||(f[p]=!0)}),(Object.keys(c).length||Object.keys(d).length)&&this.queue.push({pending:d,pendingCount:Object.keys(d).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(c),pending:Object.keys(d),toLoadLanguages:Object.keys(f),toLoadNamespaces:Object.keys(g)}}},{key:"loaded",value:function(i,o,a){var s=i.split("|"),l=s[0],c=s[1];o&&this.emit("failedLoading",l,c,o),a&&this.store.addResourceBundle(l,c,a),this.state[i]=o?-1:2;var d={};this.queue.forEach(function(f){YEe(f.loaded,[l],c),gke(f,i),o&&f.errors.push(o),f.pendingCount===0&&!f.done&&(Object.keys(f.loaded).forEach(function(g){d[g]||(d[g]={});var p=f.loaded[g];p.length&&p.forEach(function(m){d[g][m]===void 0&&(d[g][m]=!0)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",d),this.queue=this.queue.filter(function(f){return!f.done})}},{key:"read",value:function(i,o,a){var s=this,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,d=arguments.length>5?arguments[5]:void 0;if(!i.length)return d(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:a,tried:l,wait:c,callback:d});return}return this.readingCalls++,this.backend[a](i,o,function(f,g){if(s.readingCalls--,s.waitingReads.length>0){var p=s.waitingReads.shift();s.read(p.lng,p.ns,p.fcName,p.tried,p.wait,p.callback)}if(f&&g&&l<s.maxRetries){setTimeout(function(){s.read.call(s,i,o,a,l+1,c*2,d)},c);return}d(f,g)})}},{key:"prepareLoading",value:function(i,o){var a=this,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),l&&l();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);var c=this.queueLoad(i,o,s,l);if(!c.toLoad.length)return c.pending.length||l(),null;c.toLoad.forEach(function(d){a.loadOne(d)})}},{key:"load",value:function(i,o,a){this.prepareLoading(i,o,{},a)}},{key:"reload",value:function(i,o,a){this.prepareLoading(i,o,{reload:!0},a)}},{key:"loadOne",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=i.split("|"),l=s[0],c=s[1];this.read(l,c,"read",void 0,void 0,function(d,f){d&&o.logger.warn("".concat(a,"loading namespace ").concat(c," for language ").concat(l," failed"),d),!d&&f&&o.logger.log("".concat(a,"loaded namespace ").concat(c," for language ").concat(l),f),o.loaded(i,d,f)})}},{key:"saveMissing",value:function(i,o,a,s,l){var c=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn('did not save key "'.concat(a,'" as the namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}a==null||a===""||(this.backend&&this.backend.create&&this.backend.create(i,o,a,s,null,ej(ej({},c),{},{isUpdate:l})),!(!i||!i[0])&&this.store.addResource(i[0],o,a,s))}}]),n}(al);function vke(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var n={};if(dr(t[1])==="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),dr(t[2])==="object"||dr(t[3])==="object"){var r=t[3]||t[2];Object.keys(r).forEach(function(i){n[i]=r[i]})}return n},interpolation:{escapeValue:!0,format:function(t,n,r,i){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function tj(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function nj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Xo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nj(Object(n),!0).forEach(function(r){oi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yke(e){var t=bke();return function(){var r=Zo(e),i;if(t){var o=Zo(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Th(this,i)}}function bke(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function fy(){}function xke(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(n){typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}var py=function(e){ly(n,e);var t=yke(n);function n(){var r,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(Ii(this,n),r=t.call(this),cy&&al.call(xa(r)),r.options=tj(i),r.services={},r.logger=Qo,r.modules={external:[]},xke(xa(r)),o&&!r.isInitialized&&!i.isClone){if(!r.options.initImmediate)return r.init(i,o),Th(r,xa(r));setTimeout(function(){r.init(i,o)},0)}return r}return Di(n,[{key:"init",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(a=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));var s=vke();this.options=Xo(Xo(Xo({},s),this.options),tj(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Xo(Xo({},s.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function l(x){return x?typeof x=="function"?new x:x:null}if(!this.options.isClone){this.modules.logger?Qo.init(l(this.modules.logger),this.options):Qo.init(null,this.options);var c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=fke);var d=new ike(this.options);this.store=new tke(this.options.resources,this.options);var f=this.services;f.logger=Qo,f.resourceStore=this.store,f.languageUtils=d,f.pluralResolver=new uke(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(f.formatter=l(c),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new cke(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new mke(l(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(x){for(var b=arguments.length,S=new Array(b>1?b-1:0),$=1;$<b;$++)S[$-1]=arguments[$];i.emit.apply(i,[x].concat(S))}),this.modules.languageDetector&&(f.languageDetector=l(this.modules.languageDetector),f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=l(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new KF(this.services,this.options),this.translator.on("*",function(x){for(var b=arguments.length,S=new Array(b>1?b-1:0),$=1;$<b;$++)S[$-1]=arguments[$];i.emit.apply(i,[x].concat(S))}),this.modules.external.forEach(function(x){x.init&&x.init(i)})}if(this.format=this.options.interpolation.format,a||(a=fy),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.length>0&&g[0]!=="dev"&&(this.options.lng=g[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var p=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];p.forEach(function(x){i[x]=function(){var b;return(b=i.store)[x].apply(b,arguments)}});var m=["addResource","addResources","addResourceBundle","removeResourceBundle"];m.forEach(function(x){i[x]=function(){var b;return(b=i.store)[x].apply(b,arguments),i}});var v=Ah(),w=function(){var b=function($,E){i.isInitialized&&!i.initializedStoreOnce&&i.logger.warn("init: i18next is already initialized. You should call init just once!"),i.isInitialized=!0,i.options.isClone||i.logger.log("initialized",i.options),i.emit("initialized",i.options),v.resolve(E),a($,E)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return b(null,i.t.bind(i));i.changeLanguage(i.options.lng,b)};return this.options.resources||!this.options.initImmediate?w():setTimeout(w,0),v}},{key:"loadResources",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fy,s=a,l=typeof i=="string"?i:this.language;if(typeof i=="function"&&(s=i),!this.options.resources||this.options.partialBundledLanguages){if(l&&l.toLowerCase()==="cimode")return s();var c=[],d=function(p){if(p){var m=o.services.languageUtils.toResolveHierarchy(p);m.forEach(function(v){c.indexOf(v)<0&&c.push(v)})}};if(l)d(l);else{var f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.forEach(function(g){return d(g)})}this.options.preload&&this.options.preload.forEach(function(g){return d(g)}),this.services.backendConnector.load(c,this.options.ns,function(g){!g&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),s(g)})}else s(null)}},{key:"reloadResources",value:function(i,o,a){var s=Ah();return i||(i=this.languages),o||(o=this.options.ns),a||(a=fy),this.services.backendConnector.reload(i,o,function(l){s.resolve(),a(l)}),s}},{key:"use",value:function(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&GF.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}},{key:"setResolvedLanguage",value:function(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(var o=0;o<this.languages.length;o++){var a=this.languages[o];if(!(["cimode","dev"].indexOf(a)>-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}}},{key:"changeLanguage",value:function(i,o){var a=this;this.isLanguageChangingTo=i;var s=Ah();this.emit("languageChanging",i);var l=function(g){a.language=g,a.languages=a.services.languageUtils.toResolveHierarchy(g),a.resolvedLanguage=void 0,a.setResolvedLanguage(g)},c=function(g,p){p?(l(p),a.translator.changeLanguage(p),a.isLanguageChangingTo=void 0,a.emit("languageChanged",p),a.logger.log("languageChanged",p)):a.isLanguageChangingTo=void 0,s.resolve(function(){return a.t.apply(a,arguments)}),o&&o(g,function(){return a.t.apply(a,arguments)})},d=function(g){!i&&!g&&a.services.languageDetector&&(g=[]);var p=typeof g=="string"?g:a.services.languageUtils.getBestMatchFromCodes(g);p&&(a.language||l(p),a.translator.language||a.translator.changeLanguage(p),a.services.languageDetector&&a.services.languageDetector.cacheUserLanguage(p)),a.loadResources(p,function(m){c(m,p)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?d(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(d):d(i),s}},{key:"getFixedT",value:function(i,o,a){var s=this,l=function c(d,f){var g;if(dr(f)!=="object"){for(var p=arguments.length,m=new Array(p>2?p-2:0),v=2;v<p;v++)m[v-2]=arguments[v];g=s.options.overloadTranslationOptionHandler([d,f].concat(m))}else g=Xo({},f);g.lng=g.lng||c.lng,g.lngs=g.lngs||c.lngs,g.ns=g.ns||c.ns,g.keyPrefix=g.keyPrefix||a||c.keyPrefix;var w=s.options.keySeparator||".",x=g.keyPrefix?"".concat(g.keyPrefix).concat(w).concat(d):d;return s.t(x,g)};return typeof i=="string"?l.lng=i:l.lngs=i,l.ns=o,l.keyPrefix=a,l}},{key:"t",value:function(){var i;return this.translator&&(i=this.translator).translate.apply(i,arguments)}},{key:"exists",value:function(){var i;return this.translator&&(i=this.translator).exists.apply(i,arguments)}},{key:"setDefaultNamespace",value:function(i){this.options.defaultNS=i}},{key:"hasLoadedNamespace",value:function(i){var o=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var s=this.resolvedLanguage||this.languages[0],l=this.options?this.options.fallbackLng:!1,c=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;var d=function(p,m){var v=o.services.backendConnector.state["".concat(p,"|").concat(m)];return v===-1||v===2};if(a.precheck){var f=a.precheck(this,d);if(f!==void 0)return f}return!!(this.hasResourceBundle(s,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||d(s,i)&&(!l||d(c,i)))}},{key:"loadNamespaces",value:function(i,o){var a=this,s=Ah();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(l){a.options.ns.indexOf(l)<0&&a.options.ns.push(l)}),this.loadResources(function(l){s.resolve(),o&&o(l)}),s):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(i,o){var a=Ah();typeof i=="string"&&(i=[i]);var s=this.options.preload||[],l=i.filter(function(c){return s.indexOf(c)<0});return l.length?(this.options.preload=s.concat(l),this.loadResources(function(c){a.resolve(),o&&o(c)}),a):(o&&o(),Promise.resolve())}},{key:"dir",value:function(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";var o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"];return o.indexOf(this.services.languageUtils.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fy,s=Xo(Xo(Xo({},this.options),o),{isClone:!0}),l=new n(s);(o.debug!==void 0||o.prefix!==void 0)&&(l.logger=l.logger.clone(o));var c=["store","services","language"];return c.forEach(function(d){l[d]=i[d]}),l.services=Xo({},this.services),l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l.translator=new KF(l.services,l.options),l.translator.on("*",function(d){for(var f=arguments.length,g=new Array(f>1?f-1:0),p=1;p<f;p++)g[p-1]=arguments[p];l.emit.apply(l,[d].concat(g))}),l.init(s,a),l.translator.options=l.options,l.translator.backendConnector.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(al);oi(py,"createInstance",function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new py(e,t)});var Ht=py.createInstance();Ht.createInstance=py.createInstance;var wke=Ht.createInstance,Ske=Ht.init,$ke=Ht.loadResources,Cke=Ht.reloadResources,Eke=Ht.use,kke=Ht.changeLanguage,Tke=Ht.getFixedT,Ake=Ht.t,Rke=Ht.exists,Oke=Ht.setDefaultNamespace,_ke=Ht.hasLoadedNamespace,Ike=Ht.loadNamespaces,Dke=Ht.loadLanguages;const Pke=Object.freeze(Object.defineProperty({__proto__:null,changeLanguage:kke,createInstance:wke,default:Ht,exists:Rke,getFixedT:Tke,hasLoadedNamespace:_ke,init:Ske,loadLanguages:Dke,loadNamespaces:Ike,loadResources:$ke,reloadResources:Cke,setDefaultNamespace:Oke,t:Ake,use:Eke},Symbol.toStringTag,{value:"Module"})),Mke=function(e,t){if(!e)return[];const n=[];for(const[,r]of e)for(const i of r){let o;i.renderAsCancelable?o={start:i.start.toISO({suppressMilliseconds:!0}),end:i.end.toISO({suppressMilliseconds:!0}),title:t("cancellation.cancellable_appointment_highlight"),extendedProps:i,borderColor:"#000"}:i.renderAsBookable?o={start:i.start.toISO({suppressMilliseconds:!0}),end:i.end.toISO({suppressMilliseconds:!0}),title:"",extendedProps:i}:i.renderAsBlocker&&(o={title:t("appoinment_at_capacity"),display:"background",backgroundColor:"#ccc",start:i.start.toISO({suppressMilliseconds:!0}),end:i.end.toISO({suppressMilliseconds:!0}),extendedProps:i}),n.push(o)}return n};function Nke({bookables:e,products:t,product:n,resource:r,publicDataMap:i,openResourcePage:o,openProductPage:a,openBookingPage:s,height:l}){const{t:c}=Xn(),d=Me($=>bY($)),f=oe.useRef(null),[g,{width:p}]=qc(),m=jo($=>$.breakpoints.down("sm")),[v,w]=oe.useState(!1),x=pN({bookables:e,products:t,selectedProduct:n}),b=Mke(x,c);O.useEffect(()=>{!v&&(b==null?void 0:b.length)>0&&(f.current.getApi().gotoDate(je.fromISO(b[0].start).toISODate()),w(!0))},[b]);const S=O.useCallback(()=>o&&m&&i&&Object.keys(i).length>1);return k.jsx(LZ,{ref:g,children:k.jsx(ry,{ref:f,locales:HEe,locale:Ht.resolvedLanguage,height:l,timeZone:"utc",plugins:[DCe,z6e,H6e,m7e],customButtons:{productSelection:{text:(n==null?void 0:n.name)??"Produkt wählen",click:()=>{a()}},resourceSelection:{text:(r==null?void 0:r.name)??"Resource wählen",click:()=>{o()}}},headerToolbar:{left:S()?"resourceSelection productSelection":"productSelection",right:"today prev,next"},noEventsText:c("noEventsMessage"),events:b,eventClick:$=>{const E={...$.event.extendedProps};E.capacity_left===0&&!E.isCancelable||(E.start=je.fromISO($.event.startStr),E.end=je.fromISO($.event.endStr),s(E))},windowResize:()=>{var $,E,T,A;d.smallView&&d.largeView&&(p<601?(E=($=f==null?void 0:f.current)==null?void 0:$.getApi())==null||E.changeView(d.smallView):(A=(T=f==null?void 0:f.current)==null?void 0:T.getApi())==null||A.changeView(d.largeView))},...d})})}const Lke=mp`
322
322
  /*!
323
323
  * @preserve
324
324
  *