@timum/booking 1.14.1 → 1.14.2

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.
@@ -360,7 +360,7 @@ LAST-MODIFIED:`+n[1].replace(/[^\w_\-:,;=+/<br>]/g,"").replace(/<br>/g,`\r
360
360
  transform: translateX(0);
361
361
  }
362
362
  `;function hV(e){const{t}=Cn(),{userName:n,doOnSuccess:r}=cs(e,T8),{enqueueSnackbar:i}=SS(),o=tC({defaultValues:y$(z$),resolver:BC(sm().shape(v$(z$)))}),s=Nh(),a=Se(g=>Fe(g,"host")),[l,u]=re.useState(),[c,{isLoading:f,isError:m}]=Lte(),p=async g=>{const v=await c({body:{userName:n,password:g.password}});v.error?(u(!0),setTimeout(()=>{u(!1)},1e3)):(r&&r(),s(W_({pathToProp:"auth2",newValue:v.data.auth2})),i(t("login.success"),{variant:"success"}))};return $.jsxs(Ut,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[$.jsx(iI,{sx:{m:1,bgcolor:"secondary.main"},children:$.jsx(pV,{})}),$.jsx(_e,{variant:"h2",children:t("login.sign_in")}),$.jsx(_e,{variant:"subtitle2",textAlign:"center",mt:1,children:$.jsxs(Ufe,{t,i18nKey:"login.explanation",children:["Ein Benutzer mit dieser E-Mail existiert bereits. ",$.jsx("br",{})," Sie müssen sich authentifizieren, bevor Sie buchen können."]})}),$.jsx(Ut,{borderBottom:"1px solid #ddd",width:"80%",mt:2,mb:2}),$.jsxs(Ut,{component:"form",onSubmit:o.handleSubmit(p),noValidate:!0,sx:{mt:1},children:[$.jsx(_e,{variant:"body1",textAlign:"center",children:n}),$.jsx(cb,{fields:z$,disableEmptyErrorText:!0,rhfProps:{control:o.control},containerProps:{spacing:0},textFieldProps:{sx:{animation:l?`${sPe} 500ms linear 1`:""}}}),m&&$.jsx(_e,{color:"error.main",variant:"body1",textAlign:"center",children:t("login.failed")}),$.jsx(C2,{type:"submit",loading:f,fullWidth:!0,variant:"contained",sx:{mt:3,mb:2},children:t("login.sign_in")}),$.jsx(ju,{href:`${a}/auth/reset`,display:"block",variant:"body2",textAlign:"center",target:"_blank",children:t("login.forgot_password")})]})]})}hV.propTypes={};function hm({utilizeProductInterface:e=!0,utilizeUnknownCustomerInterface:t=!0,utilizeIdentifiedCustomerInterface:n=!0,utilizeCancelAppointmentInterface:r=!0,utilizeConfirmationInterface:i=!0,utilizeLoginInterface:o=!0,utilizeErrorDialogInterface:s=!0}){const a=Se(C=>Fe(C,"interfaces.ProductPage")),l=Se(C=>Fe(C,"interfaces.UnkownBookingPage")),u=Se(C=>Fe(C,"interfaces.IdentifiedBookingPage")),c=Se(C=>Fe(C,"interfaces.CancelPage")),f=Se(C=>Fe(C,"interfaces.ConfirmationPage")),m=Se(C=>Fe(C,"interfaces.LoginPage")),p=Se(C=>Fe(C,"interfaces.ErrorDialog")),g=R.useContext(Qy),v=R.useContext(Jy),w=R.useContext(C8),b=R.useContext($8),y=R.useContext(T8),S=R.useContext(MN);return $.jsxs($.Fragment,{children:[e&&a&&$.jsx(a,{open:g==null?void 0:g.open,onClose:g==null?void 0:g.onClose,children:$.jsx(ZF,{onProductSelected:g==null?void 0:g.onClose})}),n&&u&&$.jsx(u,{open:v==null?void 0:v.identifiedOpen,onClose:v==null?void 0:v.onClose,children:$.jsx(IH,{...v})}),t&&l&&$.jsx(l,{open:v==null?void 0:v.unknownOpen,onClose:v==null?void 0:v.onClose,children:$.jsx(DH,{...v})}),r&&c&&$.jsx(c,{open:w==null?void 0:w.open,onClose:w==null?void 0:w.onClose,children:$.jsx(NH,{})}),i&&f&&$.jsx(f,{open:b==null?void 0:b.open,onClose:b==null?void 0:b.onClose,allowCloseOnBooking:b==null?void 0:b.allowCloseOnBooking,children:$.jsx(fV,{})}),o&&m&&$.jsx(m,{open:y==null?void 0:y.open,onClose:y==null?void 0:y.onClose,children:$.jsx(hV,{doOnSuccess:y==null?void 0:y.doOnSuccess})}),s&&p&&$.jsx(p,{open:S==null?void 0:S.open,onClose:S==null?void 0:S.onClose})]})}function B$(e){var E,A,_,O,D;const{t}=Cn(),{isLoading:n,publicDataMap:r,publicData:i,CalendarView:o,openResourcePage:s,openProductPage:a,height:l}=cs(e,N0),[u,c]=oc(),f=jd(),m=Eo(I=>I.breakpoints.down("sm")),[p,g]=re.useState(!m),v=()=>{g(!p)},w=R.useCallback(()=>{var I,j,z,V;return((I=i==null?void 0:i.contact)==null?void 0:I.name)||((j=i==null?void 0:i.contact)==null?void 0:j.email)||((z=i==null?void 0:i.contact)==null?void 0:z.mobile)||((V=i==null?void 0:i.contact)==null?void 0:V.phone)},[(E=i==null?void 0:i.contact)==null?void 0:E.email,(A=i==null?void 0:i.contact)==null?void 0:A.mobile,(_=i==null?void 0:i.contact)==null?void 0:_.name,(O=i==null?void 0:i.contact)==null?void 0:O.phone]),b=R.useCallback(()=>{var I;return s&&m&&r&&((I=Object.keys(r))==null?void 0:I.length)>1},[m,s,r]),y=R.useMemo(()=>{var I;return((I=i==null?void 0:i.resource)==null?void 0:I.uuid)!=="all-option"},[(D=i==null?void 0:i.resource)==null?void 0:D.uuid]),S=()=>{var I,j,z,V,P,B,Y,U,Z,J,ae,xe,ye,me,be,Ce,ze,Ie,Ze,st,Le;return n?$.jsx(aPe,{}):$.jsxs(ue,{container:!0,rowSpacing:1,children:[$.jsxs(ue,{item:!0,container:!0,xs:12,pb:1,children:[$.jsx(ue,{item:!0,xs:!0,zeroMinWidth:!0,alignSelf:"center",sx:{position:"sticky",top:0,background:"#fff"},children:$.jsx(_e,{variant:"h4",component:"h2",sx:{m:0},children:((I=i==null?void 0:i.resource)==null?void 0:I.name)||t("detailsView.res_name_placeholder")})}),b()&&$.jsx(ue,{item:!0,xs:"auto",pb:1,children:$.jsx(Po,{size:"small",onClick:s,color:"primary",variant:"outlined",sx:{padding:"1px 0",minWidth:"44px",float:"right"},children:$.jsx(jN,{})})})]}),((j=i==null?void 0:i.resource)==null?void 0:j.imgUrl)&&$.jsx(ue,{item:!0,container:!0,xs:12,children:$.jsx(ue,{item:!0,container:!0,xs:12,sx:{p:{xs:0,sm:0},mb:{xs:1,sm:1},minHeight:"140px",maxHeight:`${l/2}px`},children:$.jsx(KF,{src:(z=i==null?void 0:i.resource)==null?void 0:z.imgUrl,showLoading:!0,duration:1e3,fit:"scale-down",wrapperStyle:{borderRadius:()=>`${f.shape.borderRadius}px`}})})}),(((V=i==null?void 0:i.resource)==null?void 0:V.description)||((P=i==null?void 0:i.resource)==null?void 0:P.url))&&$.jsx(ue,{item:!0,container:!0,xs:12,children:$.jsxs(ue,{item:!0,container:!0,xs:12,sx:{borderWidth:"1px",borderStyle:"solid",borderColor:"grey.300",borderRadius:je=>`${je.shape.borderRadius}px`,p:{xs:1,sm:2}},children:[((B=i==null?void 0:i.resource)==null?void 0:B.description)&&$.jsx(ue,{item:!0,xs:"12",children:$.jsx(fxe,{text:(Y=i==null?void 0:i.resource)==null?void 0:Y.description,expanded:p,doOnExpand:v})}),((U=i==null?void 0:i.resource)==null?void 0:U.url)&&$.jsx(ue,{item:!0,xs:"12",pt:(Z=i==null?void 0:i.resource)!=null&&Z.description?1:0,children:$.jsxs(_e,{variant:"body2",children:[t("common.website"),":"," ",$.jsx(ju,{underline:"none",href:(J=i==null?void 0:i.resource)==null?void 0:J.url,children:t("detailsView.additional_information")})]})})]})}),w()&&$.jsx(ue,{item:!0,container:!0,xs:12,children:$.jsx(ue,{item:!0,container:!0,xs:12,sx:{borderWidth:"1px",borderStyle:"solid",borderColor:"grey.300",borderRadius:je=>`${je.shape.borderRadius}px`,p:{xs:1,sm:2}},children:$.jsx(ue,{item:!0,xs:"12",pb:1,children:$.jsx(LI,{elevation:0,children:$.jsx(FI,{sx:{p:"0 !important"},children:$.jsxs(Vu,{dense:!0,sx:{p:0},children:[((ae=i==null?void 0:i.contact)==null?void 0:ae.name)&&$.jsx(Nr,{sx:{py:0},disableGutters:!0,children:$.jsx(Lr,{primary:(xe=i==null?void 0:i.contact)==null?void 0:xe.name})}),((ye=i==null?void 0:i.contact)==null?void 0:ye.email)&&$.jsxs(Nr,{sx:{py:0},disableGutters:!0,children:[$.jsx(Gs,{sx:{minWidth:"30px"},children:$.jsx(LN,{fontSize:"small"})}),$.jsx(Lr,{primary:$.jsx(ju,{underline:"none",href:`mailto:${(me=i==null?void 0:i.contact)==null?void 0:me.email}`,children:(be=i==null?void 0:i.contact)==null?void 0:be.email})})]}),((Ce=i==null?void 0:i.contact)==null?void 0:Ce.phone)&&$.jsxs(Nr,{sx:{py:0},disableGutters:!0,children:[$.jsx(Gs,{sx:{minWidth:"30px"},children:$.jsx(IN,{fontSize:"small"})}),$.jsx(Lr,{primary:$.jsx(ju,{underline:"none",href:`tel:${(ze=i==null?void 0:i.contact)==null?void 0:ze.phone}`,children:(Ie=i==null?void 0:i.contact)==null?void 0:Ie.phone})})]}),((Ze=i==null?void 0:i.contact)==null?void 0:Ze.mobile)&&$.jsxs(Nr,{sx:{py:0},disableGutters:!0,children:[$.jsx(Gs,{sx:{minWidth:"30px"},children:$.jsx(NN,{fontSize:"small"})}),$.jsx(Lr,{primary:$.jsx(ju,{underline:"none",href:`tel:${(st=i==null?void 0:i.contact)==null?void 0:st.mobile}`,children:(Le=i==null?void 0:i.contact)==null?void 0:Le.mobile})})]})]})})})})})})]})},C=()=>$.jsxs(ue,{container:!0,columnSpacing:2,rowSpacing:0,children:[y&&$.jsx(ue,{xs:5,container:!0,item:!0,alignContent:"flex-start",sx:{overflowY:"auto",maxHeight:`${l}px`,pr:{xs:0,sm:2}},children:S()}),$.jsxs(ue,{container:!0,item:!0,xs:y?7:12,children:[$.jsx(ue,{item:!0,xs:12,mb:2,children:$.jsx(_e,{ref:u,variant:"h4",component:"h2",sx:{m:0},children:t("detailsView.chose_date_and_time")})}),$.jsx(ue,{item:!0,container:!0,xs:12,children:$.jsx(o,{suppressDefaultInterfaces:!0,openProductPage:a,openResourcePage:void 0,height:c?l-c.height:l})})]}),$.jsx(hm,{})]}),T=()=>$.jsxs(ue,{container:!0,columnSpacing:1,rowSpacing:1,children:[y&&$.jsx(ue,{container:!0,item:!0,xs:12,mb:2,children:S()}),$.jsxs(ue,{container:!0,item:!0,xs:12,children:[$.jsx(ue,{item:!0,xs:12,children:$.jsx(_e,{ref:u,variant:"h4",component:"h2",children:t("detailsView.chose_date_and_time")})}),$.jsx(ue,{item:!0,container:!0,xs:12,children:$.jsx(o,{suppressDefaultInterfaces:!0,openProductPage:a,openResourcePage:void 0,height:c?l-c.height:l})})]}),$.jsx(hm,{})]});return m?T():C()}const aPe=()=>$.jsxs(Ut,{sx:{width:"100%"},children:[$.jsx(_e,{variant:"h1",sx:{mb:1},children:$.jsx(Jn,{width:"120px"})}),$.jsx(Ut,{sx:{mb:1},children:$.jsx(Jn,{variant:"rounded",height:"250px",width:"100%"})}),$.jsx(Ut,{sx:{mb:1},children:$.jsx(Jn,{variant:"rounded",height:"250px",width:"100%"})}),$.jsx(Ut,{sx:{mb:1},children:$.jsx(Jn,{variant:"rounded",height:"250px",width:"100%"})})]});var U$={},lPe=An;Object.defineProperty(U$,"__esModule",{value:!0});var mm=U$.default=void 0,uPe=lPe(Bn()),cPe=$;mm=U$.default=(0,uPe.default)((0,cPe.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");const dPe=(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(s=>s.uuid===(n==null?void 0:n.uuid))&&(r=!0)),r};function H$({bookables:e,products:t,selectedProduct:n}){return R.useMemo(()=>{if(e){let r;r=Object.entries(e),r=r.filter(i=>(i[1].forEach(o=>{o.supportsProduct=dPe(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,s)=>o.start<s.start?-1:o.start===s.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 s=Ne.fromFormat(i[0],"yyyy-MM-dd"),a=Ne.fromFormat(o[0],"yyyy-MM-dd");return s<a?-1:s===a?0:1}),r}return[]},[e,t,n])}const mV=e=>R.useMemo(()=>{let t=[];if((e==null?void 0:e.length)>0)for(const[n,r]of e)t=[...t,n,...r];if((t==null?void 0:t.length)>0)for(let n=0;n<t.length;n++){const r=t[n];if(r.renderAsBookable)return{index:n,bookable:r,unifiedBookables:t}}return{}},[e]);function gb({openProductPage:e,products:t,product:n,buttonProps:r={},wrapperProps:i={}}){var s;const{t:o}=Cn();return $.jsxs(Ut,{...i,sx:{borderRadius:a=>`${a.shape.borderRadius}px`,...(i==null?void 0:i.sx)||{}},children:[(t==null?void 0:t.length)>1&&$.jsx(Po,{size:"small",variant:"outlined",fullWidth:!0,onClick:e,startIcon:$.jsx(am,{fontSize:"small"}),endIcon:$.jsx(mm,{fontSize:"10px"}),...r,sx:{textTransform:"inherit",...(r==null?void 0:r.sx)||{}},children:(n==null?void 0:n.name)||o("product_selection_headline")}),(t==null?void 0:t.length)===1&&$.jsxs(ue,{container:!0,justifyContent:"center",sx:{pr:1,pl:1},children:[$.jsx(ue,{item:!0,sx:{maxWidth:"20px",mr:.5},children:$.jsx(_e,{variant:"body1",color:"text.secondary",lineHeight:"100%",sx:{height:"100%"},children:$.jsx(am,{fontSize:"inherit",sx:{color:"text.secondary",lineHeight:"100%",height:"100%",width:"100%"}})})}),$.jsx(ue,{item:!0,xs:"auto",children:$.jsx(_e,{variant:"body1",color:"text.secondary",children:(n==null?void 0:n.name)||((s=t[0])==null?void 0:s.name)})})]})]})}function fPe({viewport:e}){const{t}=Cn();return $.jsx(Nr,{viewport:{root:e},sx:{pointerEvents:"none",marginBottom:"8px"},children:$.jsx(Lr,{sx:{width:"100%",textAlign:"center",py:{xs:0,sm:0,md:0}},children:$.jsx(_e,{variant:"body2",color:"text.disabled",children:`${t("appoinment_at_capacity")}`})})})}const gV=re.forwardRef(({timeslot:e,productName:t,openBookingPage:n,viewport:r},i)=>{var o;return $.jsxs(Nr,{ref:i,disablePadding:!0,viewport:{root:r},sx:{borderWidth:"1px",borderStyle:"solid",borderColor:"grey.300",marginBottom:"8px"},children:[$.jsx(Lr,{sx:{py:{xs:2,sm:2,md:3}}}),$.jsx(Oy,{sx:{position:"absolute",width:"100%",height:"100%",zIndex:0},onClick:()=>{n(e)},children:$.jsx(_e,{variant:"body2",color:"text.secondary",px:{xs:0,sm:0,md:0},children:`${(o=e==null?void 0:e.start)==null?void 0:o.toLocaleString(Ne.TIME_SIMPLE)} - ${t||" "}`})})]})});gV.displayName="Bookable";function pPe({timeslot:e,openBookingPage:t,viewport:n}){var i;const{t:r}=Cn();return $.jsxs(Nr,{disablePadding:!0,viewport:{root:n},sx:{borderWidth:"1px",borderStyle:"solid",borderColor:"secondary.main",marginBottom:"8px"},children:[$.jsx(Lr,{sx:{py:{xs:2,sm:2,md:3}}}),$.jsx(Oy,{sx:{position:"absolute",width:"100%",height:"100%",zIndex:0},onClick:()=>{t(e)},children:$.jsx(_e,{variant:"body2",color:"secondary.main",px:{xs:2,sm:2,md:3},children:`${(i=e==null?void 0:e.start)==null?void 0:i.toLocaleString(Ne.TIME_SIMPLE)} - ${r("cancellation.cancellable_appointment_highlight")}`})})]})}function hPe({date:e}){return $.jsx(WD,{sx:{mb:1},children:$.jsxs(ue,{container:!0,justifyContent:"space-between",alignItems:"center",sx:{height:"48px"},children:[$.jsx(ue,{item:!0,children:$.jsx(_e,{variant:"body2",color:"primary",children:Ne.fromISO(e).toLocaleString(Ne.DATE_FULL)})}),$.jsx(ue,{item:!0,children:$.jsx(_e,{variant:"body2",color:"text.secondary",children:Ne.fromISO(e).weekdayLong})})]})})}function V$(e){const{t}=Cn(),{isLoading:n,bookables:r,products:i,product:o,resource:s,publicDataMap:a,openResourcePage:l,openProductPage:u,openBookingPage:c,height:f,suppressDefaultInterfaces:m}=cs(e,N0),p=re.useRef(null),g=Eo(z=>z.breakpoints.down("sm")),[v,w]=re.useState(),[b,y]=re.useState(),[S,C]=oc(void 0,"outer"),[T,E]=oc(void 0,"outer"),A=H$({bookables:r,products:i,selectedProduct:o}),{index:_,unifiedBookables:O}=mV(A),D=R.useCallback(z=>{z&&v&&z.scrollIntoView({behavior:"smooth",block:"center"})},[v]);R.useMemo(()=>{_&&b!==o&&(w(_),y(o))},[_,b,o]);const I=R.useCallback(()=>l&&g&&a&&Object.keys(a).length>1,[g,l,a]),j=(C==null?void 0:C.height)+(E==null?void 0:E.height);return n?$.jsx(mPe,{}):$.jsxs(Ut,{sx:{width:"100%"},children:[$.jsxs(ue,{container:!0,rowSpacing:0,m:0,direction:"column",children:[I()&&$.jsx(ue,{item:!0,xs:12,children:$.jsx(Po,{ref:T,variant:"outlined",fullWidth:!0,onClick:l,startIcon:$.jsx(Of,{fontSize:"small"}),endIcon:$.jsx(mm,{fontSize:"10px"}),children:(s==null?void 0:s.name)||t("resource_selection_headline")})}),u&&(O==null?void 0:O.length)&&$.jsx(ue,{item:!0,xs:12,alignSelf:"flex-end",children:$.jsx(gb,{ref:S,openProductPage:u,product:o,products:i,disabled:(i==null?void 0:i.length)===1,fullWidth:g,children:(o==null?void 0:o.name)||t("product_selection_headline")})}),$.jsx(ue,{item:!0,xs:12,children:$.jsxs(Vu,{ref:p,sx:{"& ul":{padding:0},position:"relative",height:f-(j+16)||"500px",overflowY:"auto",overflowX:"hidden"},subheader:$.jsx("li",{}),children:[!(O!=null&&O.length)&&$.jsxs(Ut,{sx:{width:"100%",height:u?`calc(100% - ${j}px)`:"100%",border:"1px solid #ddd",borderRadius:z=>z.shape.borderRadius+"px",backgroundImage:"linear-gradient(45deg, #f7f7f8 25%, transparent 25%, transparent 50%, #f7f7f8 50%, #f7f7f8 75%, transparent 75%, #fff)",backgroundSize:"14px 14px"},children:[u&&$.jsx(gb,{disabled:(i==null?void 0:i.length)===1,openProductPage:u,product:o,products:i,buttonProps:{ref:S,fullWidth:g},wrapperProps:{sx:{position:"absolute",right:"8px",top:"8px",background:"#fff"}},children:(o==null?void 0:o.name)||t("product_selection_headline")}),$.jsx(_e,{variant:"body2",color:"text.secondary",sx:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",textAlign:"center"},children:t("noEventsMessage")})]}),(O==null?void 0:O.length)>0&&O.map((z,V)=>{if(ln.isString(z))return $.jsx(hPe,{date:z},z);if(ln.isObject(z)){const P=z;if(P.renderAsCancelable)return $.jsx(pPe,{viewport:p,index:V,timeslot:P,openBookingPage:c},`${P.start.toISO()}-${P.uuid}`);if(P.renderAsBookable){let B=o==null?void 0:o.name;return!P.hasSelectedProduct&&P.kind!=="models.Bookable"&&(B=P.product_name),$.jsx(gV,{ref:v===V?D:void 0,viewport:p,index:V,timeslot:P,productName:B,openBookingPage:c},`${P.start.toISO()}-${P.uuid}`)}else if(P.renderAsBlocker)return $.jsx(fPe,{index:V,viewport:p},`${P.start.toISO()}-${P.uuid}`)}})]})})]}),!m&&$.jsx(hm,{})]})}const mPe=()=>$.jsxs(Ut,{sx:{width:"100%"},children:[$.jsx(Jn,{variant:"rounded",height:"36px",width:"160px",sx:{position:"absolute",right:"0px"}}),$.jsx(_e,{variant:"subtitle1",component:"div",sx:{mb:1,mt:"44px"},children:$.jsx(Jn,{width:"100px"})}),[...Array(3)].map((e,t)=>$.jsx(Ut,{sx:{mb:1},children:$.jsx(Jn,{variant:"rounded",height:"56px",width:"100%"})},t)),$.jsx(_e,{variant:"subtitle1",component:"div",sx:{mb:1},children:$.jsx(Jn,{width:"100px"})}),[...Array(2)].map((e,t)=>$.jsx(Ut,{sx:{mb:1},children:$.jsx(Jn,{variant:"rounded",height:"56px",width:"100%"})},t))]});V$.propTypes={bookables:Ee.object.isRequired,product:Ee.object,products:Ee.array,openProductPage:Ee.func,openBookingPage:Ee.func,height:Ee.number};var vb,Qe,vV,yV,Ff,hc,bV,xV,wV,yb={},SV=[],gPe=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Nl(e,t){for(var n in t)e[n]=t[n];return e}function CV(e){var t=e.parentNode;t&&t.removeChild(e)}function H(e,t,n){var r,i,o,s={};for(o in t)o=="key"?r=t[o]:o=="ref"?i=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?vb.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)s[o]===void 0&&(s[o]=e.defaultProps[o]);return bb(e,s,r,i,null)}function bb(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??++vV};return i==null&&Qe.vnode!=null&&Qe.vnode(o),o}function pr(){return{current:null}}function Vt(e){return e.children}function vPe(e,t,n,r,i){var o;for(o in n)o==="children"||o==="key"||o in t||xb(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]||xb(e,o,t[o],n[o],r)}function $V(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||gPe.test(t)?n:n+"px"}function xb(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||$V(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||$V(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?EV:TV,o):e.removeEventListener(t,o?EV:TV,o);else if(t!=="dangerouslySetInnerHTML"){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&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 TV(e){Ff=!0;try{return this.l[e.type+!1](Qe.event?Qe.event(e):e)}finally{Ff=!1}}function EV(e){Ff=!0;try{return this.l[e.type+!0](Qe.event?Qe.event(e):e)}finally{Ff=!1}}function Ai(e,t){this.props=e,this.context=t}function gm(e,t){if(t==null)return e.__?gm(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"?gm(e):null}function kV(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 kV(e)}}function yPe(e){Ff?setTimeout(e):xV(e)}function W$(e){(!e.__d&&(e.__d=!0)&&hc.push(e)&&!wb.__r++||bV!==Qe.debounceRendering)&&((bV=Qe.debounceRendering)||yPe)(wb)}function wb(){var e,t,n,r,i,o,s,a;for(hc.sort(function(l,u){return l.__v.__b-u.__v.__b});e=hc.shift();)e.__d&&(t=hc.length,r=void 0,i=void 0,s=(o=(n=e).__v).__e,(a=n.__P)&&(r=[],(i=Nl({},o)).__v=o.__v+1,q$(a,o,i,n.__n,a.ownerSVGElement!==void 0,o.__h!=null?[s]:null,r,s??gm(o),o.__h),PV(r,o),o.__e!=s&&kV(o)),hc.length>t&&hc.sort(function(l,u){return l.__v.__b-u.__v.__b}));wb.__r=0}function AV(e,t,n,r,i,o,s,a,l,u){var c,f,m,p,g,v,w,b=r&&r.__k||SV,y=b.length;for(n.__k=[],c=0;c<t.length;c++)if((p=n.__k[c]=(p=t[c])==null||typeof p=="boolean"?null:typeof p=="string"||typeof p=="number"||typeof p=="bigint"?bb(null,p,null,null,p):Array.isArray(p)?bb(Vt,{children:p},null,null,null):p.__b>0?bb(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(m=b[c])===null||m&&p.key==m.key&&p.type===m.type)b[c]=void 0;else for(f=0;f<y;f++){if((m=b[f])&&p.key==m.key&&p.type===m.type){b[f]=void 0;break}m=null}q$(e,p,m=m||yb,i,o,s,a,l,u),g=p.__e,(f=p.ref)&&m.ref!=f&&(w||(w=[]),m.ref&&w.push(m.ref,null,p),w.push(f,p.__c||g,p)),g!=null?(v==null&&(v=g),typeof p.type=="function"&&p.__k===m.__k?p.__d=l=RV(p,l,e):l=_V(e,p,m,b,g,l),typeof n.type=="function"&&(n.__d=l)):l&&m.__e==l&&l.parentNode!=e&&(l=gm(m))}for(n.__e=v,c=y;c--;)b[c]!=null&&(typeof n.type=="function"&&b[c].__e!=null&&b[c].__e==n.__d&&(n.__d=OV(r).nextSibling),DV(b[c],b[c]));if(w)for(c=0;c<w.length;c++)MV(w[c],w[++c],w[++c])}function RV(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"?RV(r,t,n):_V(n,r,r,i,r.__e,t));return t}function Sb(e,t){return t=t||[],e==null||typeof e=="boolean"||(Array.isArray(e)?e.some(function(n){Sb(n,t)}):t.push(e)),t}function _V(e,t,n,r,i,o){var s,a,l;if(t.__d!==void 0)s=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),s=null;else{for(a=o,l=0;(a=a.nextSibling)&&l<r.length;l+=1)if(a==i)break e;e.insertBefore(i,o),s=o}return s!==void 0?s:i.nextSibling}function OV(e){var t,n,r;if(e.type==null||typeof e.type=="string")return e.__e;if(e.__k){for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(r=OV(n)))return r}return null}function q$(e,t,n,r,i,o,s,a,l){var u,c,f,m,p,g,v,w,b,y,S,C,T,E,A,_=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(l=n.__h,a=t.__e=n.__e,t.__h=null,o=[a]),(u=Qe.__b)&&u(t);try{e:if(typeof _=="function"){if(w=t.props,b=(u=_.contextType)&&r[u.__c],y=u?b?b.props.value:u.__:r,n.__c?v=(c=t.__c=n.__c).__=c.__E:("prototype"in _&&_.prototype.render?t.__c=c=new _(w,y):(t.__c=c=new Ai(w,y),c.constructor=_,c.render=xPe),b&&b.sub(c),c.props=w,c.state||(c.state={}),c.context=y,c.__n=r,f=c.__d=!0,c.__h=[],c._sb=[]),c.__s==null&&(c.__s=c.state),_.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=Nl({},c.__s)),Nl(c.__s,_.getDerivedStateFromProps(w,c.__s))),m=c.props,p=c.state,c.__v=t,f)_.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(_.getDerivedStateFromProps==null&&w!==m&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(w,y),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(w,c.__s,y)===!1||t.__v===n.__v){for(t.__v!==n.__v&&(c.props=w,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(O){O&&(O.__=t)}),S=0;S<c._sb.length;S++)c.__h.push(c._sb[S]);c._sb=[],c.__h.length&&s.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(w,c.__s,y),c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(m,p,g)})}if(c.context=y,c.props=w,c.__P=e,C=Qe.__r,T=0,"prototype"in _&&_.prototype.render){for(c.state=c.__s,c.__d=!1,C&&C(t),u=c.render(c.props,c.state,c.context),E=0;E<c._sb.length;E++)c.__h.push(c._sb[E]);c._sb=[]}else do c.__d=!1,C&&C(t),u=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++T<25);c.state=c.__s,c.getChildContext!=null&&(r=Nl(Nl({},r),c.getChildContext())),f||c.getSnapshotBeforeUpdate==null||(g=c.getSnapshotBeforeUpdate(m,p)),A=u!=null&&u.type===Vt&&u.key==null?u.props.children:u,AV(e,Array.isArray(A)?A:[A],t,n,r,i,o,s,a,l),c.base=t.__e,t.__h=null,c.__h.length&&s.push(c),v&&(c.__E=c.__=null),c.__e=!1}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=bPe(n.__e,t,n,r,i,o,s,l);(u=Qe.diffed)&&u(t)}catch(O){t.__v=null,(l||o!=null)&&(t.__e=a,t.__h=!!l,o[o.indexOf(a)]=null),Qe.__e(O,t,n)}}function PV(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 bPe(e,t,n,r,i,o,s,a){var l,u,c,f=n.props,m=t.props,p=t.type,g=0;if(p==="svg"&&(i=!0),o!=null){for(;g<o.length;g++)if((l=o[g])&&"setAttribute"in l==!!p&&(p?l.localName===p:l.nodeType===3)){e=l,o[g]=null;break}}if(e==null){if(p===null)return document.createTextNode(m);e=i?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,m.is&&m),o=null,a=!1}if(p===null)f===m||a&&e.data===m||(e.data=m);else{if(o=o&&vb.call(e.childNodes),u=(f=n.props||yb).dangerouslySetInnerHTML,c=m.dangerouslySetInnerHTML,!a){if(o!=null)for(f={},g=0;g<e.attributes.length;g++)f[e.attributes[g].name]=e.attributes[g].value;(c||u)&&(c&&(u&&c.__html==u.__html||c.__html===e.innerHTML)||(e.innerHTML=c&&c.__html||""))}if(vPe(e,m,f,i,a),c)t.__k=[];else if(g=t.props.children,AV(e,Array.isArray(g)?g:[g],t,n,r,i&&p!=="foreignObject",o,s,o?o[0]:n.__k&&gm(n,0),a),o!=null)for(g=o.length;g--;)o[g]!=null&&CV(o[g]);a||("value"in m&&(g=m.value)!==void 0&&(g!==e.value||p==="progress"&&!g||p==="option"&&g!==f.value)&&xb(e,"value",g,f.value,!1),"checked"in m&&(g=m.checked)!==void 0&&g!==e.checked&&xb(e,"checked",g,f.checked,!1))}return e}function MV(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){Qe.__e(r,n)}}function DV(e,t,n){var r,i;if(Qe.unmount&&Qe.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||MV(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]&&DV(r[i],t,n||typeof e.type!="function");n||e.__e==null||CV(e.__e),e.__=e.__e=e.__d=void 0}function xPe(e,t,n){return this.constructor(e,n)}function vm(e,t,n){var r,i,o;Qe.__&&Qe.__(e,t),i=(r=typeof n=="function")?null:n&&n.__k||t.__k,o=[],q$(t,e=(!r&&n||t).__k=H(Vt,null,[e]),i||yb,yb,t.ownerSVGElement!==void 0,!r&&n?[n]:i?null:t.firstChild?vb.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r),PV(o,e)}function wPe(e,t){var n={__c:t="__cC"+wV++,__: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(s){this.props.value!==s.value&&i.some(function(a){a.__e=!0,W$(a)})},this.sub=function(s){i.push(s);var a=s.componentWillUnmount;s.componentWillUnmount=function(){i.splice(i.indexOf(s),1),a&&a.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}vb=SV.slice,Qe={__e:function(e,t,n,r){for(var i,o,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),s=i.__d),s)return i.__E=i}catch(a){e=a}throw e}},vV=0,yV=function(e){return e!=null&&e.constructor===void 0},Ff=!1,Ai.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Nl({},this.state),typeof e=="function"&&(e=e(Nl({},n),this.props)),e&&Nl(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),W$(this))},Ai.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),W$(this))},Ai.prototype.render=Vt,hc=[],xV=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,wb.__r=0,wV=0;var ps,G$,IV,NV=[],Y$=[],LV=Qe.__b,jV=Qe.__r,FV=Qe.diffed,zV=Qe.__c,BV=Qe.unmount;function SPe(){for(var e;e=NV.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Cb),e.__H.__h.forEach(K$),e.__H.__h=[]}catch(t){e.__H.__h=[],Qe.__e(t,e.__v)}}Qe.__b=function(e){ps=null,LV&&LV(e)},Qe.__r=function(e){jV&&jV(e);var t=(ps=e.__c).__H;t&&(G$===ps?(t.__h=[],ps.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Y$,n.__N=n.i=void 0})):(t.__h.forEach(Cb),t.__h.forEach(K$),t.__h=[])),G$=ps},Qe.diffed=function(e){FV&&FV(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(NV.push(t)!==1&&IV===Qe.requestAnimationFrame||((IV=Qe.requestAnimationFrame)||CPe)(SPe)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Y$&&(n.__=n.__V),n.i=void 0,n.__V=Y$})),G$=ps=null},Qe.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Cb),n.__h=n.__h.filter(function(r){return!r.__||K$(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Qe.__e(r,n.__v)}}),zV&&zV(e,t)},Qe.unmount=function(e){BV&&BV(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Cb(r)}catch(i){t=i}}),n.__H=void 0,t&&Qe.__e(t,n.__v))};var UV=typeof requestAnimationFrame=="function";function CPe(e){var t,n=function(){clearTimeout(r),UV&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);UV&&(t=requestAnimationFrame(n))}function Cb(e){var t=ps,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),ps=t}function K$(e){var t=ps;e.__c=e.__(),ps=t}function $Pe(e,t){for(var n in t)e[n]=t[n];return e}function HV(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 VV(e){this.props=e}(VV.prototype=new Ai).isPureReactComponent=!0,VV.prototype.shouldComponentUpdate=function(e,t){return HV(this.props,e)||HV(this.state,t)};var WV=Qe.__b;Qe.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),WV&&WV(e)};var TPe=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)}TPe(e,t,n,r)};var qV=Qe.unmount;function GV(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=$Pe({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return GV(r,t,n)})),e}function YV(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return YV(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 Z$(){this.__u=0,this.t=null,this.__b=null}function KV(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function $b(){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),qV&&qV(e)},(Z$.prototype=new Ai).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var i=KV(r.__v),o=!1,s=function(){o||(o=!0,n.__R=null,i?i(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__a){var u=r.state.__a;r.__v.__k[0]=YV(u,u.__c.__P,u.__c.__O)}var c;for(r.setState({__a:r.__b=null});c=r.t.pop();)c.forceUpdate()}},l=t.__h===!0;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},Z$.prototype.componentWillUnmount=function(){this.t=[]},Z$.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]=GV(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&H(Vt,null,e.fallback);return i&&(i.__h=null),[H(Vt,null,t.__a?null:e.children),i]};var ZV=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 EPe(e){return this.getChildContext=function(){return e.context},e.children}function kPe(e){var t=this,n=e.i;t.componentWillUnmount=function(){vm(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)}}),vm(H(EPe,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function APe(e,t){var n=H(kPe,{__v:e,i:t});return n.containerInfo=t,n}($b.prototype=new Ai).__a=function(e){var t=this,n=KV(t.__v),r=t.o.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),ZV(t,e,r)):i()};n?n(o):o()}},$b.prototype.render=function(e){this.u=null,this.o=new Map;var t=Sb(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},$b.prototype.componentDidUpdate=$b.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){ZV(e,n,t)})};var RPe=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,_Pe=/^(?: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]/,OPe=typeof document<"u",PPe=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(e)};Ai.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Ai.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var QV=Qe.event;function MPe(){}function DPe(){return this.cancelBubble}function IPe(){return this.defaultPrevented}Qe.event=function(e){return QV&&(e=QV(e)),e.persist=MPe,e.isPropagationStopped=DPe,e.isDefaultPrevented=IPe,e.nativeEvent=e};var JV={configurable:!0,get:function(){return this.class}},XV=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 s=n[o];OPe&&o==="children"&&t==="noscript"||o==="value"&&"defaultValue"in n&&s==null||(o==="defaultValue"&&"value"in n&&n.value==null?o="value":o==="download"&&s===!0?s="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!PPe(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&&_Pe.test(o)?o=o.replace(/[A-Z0-9]/g,"-$&").toLowerCase():s===null&&(s=void 0),/^oninput$/i.test(o)&&(o=o.toLowerCase(),r[o]&&(o="oninputCapture")),r[o]=s)}t=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=Sb(n.children).forEach(function(a){a.props.selected=r.value.indexOf(a.props.value)!=-1})),t=="select"&&r.defaultValue!=null&&(r.value=Sb(n.children).forEach(function(a){a.props.selected=r.multiple?r.defaultValue.indexOf(a.props.value)!=-1:r.defaultValue==a.props.value})),e.props=r,n.class!=n.className&&(JV.enumerable="className"in n,n.className!=null&&(r.class=n.className),Object.defineProperty(r,"className",JV))}e.$$typeof=RPe,XV&&XV(e)};var eW=Qe.__r;Qe.__r=function(e){eW&&eW(e),e.__c};const tW=[],Q$=new Map;function ym(e){tW.push(e),Q$.forEach(t=>{rW(t,e)})}function NPe(e){e.isConnected&&e.getRootNode&&nW(e.getRootNode())}function nW(e){let t=Q$.get(e);if(!t||!t.isConnected){if(t=e.querySelector("style[data-fullcalendar]"),!t){t=document.createElement("style"),t.setAttribute("data-fullcalendar","");const n=jPe();n&&(t.nonce=n);const r=e===document?document.head:e,i=e===document?r.querySelector("script,link[rel=stylesheet],link[as=style],style"):r.firstChild;r.insertBefore(t,i)}Q$.set(e,t),LPe(t)}}function LPe(e){for(const t of tW)rW(e,t)}function rW(e,t){const{sheet:n}=e,r=n.cssRules.length;t.split("}").forEach((i,o)=>{i=i.trim(),i&&n.insertRule(i+"}",r+o)})}let J$;function jPe(){return J$===void 0&&(J$=FPe()),J$}function FPe(){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||""}typeof document<"u"&&nW(document);var zPe=':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}';ym(zPe);class X${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 BPe(e){e.parentNode&&e.parentNode.removeChild(e)}function fa(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(UPe(e,t))return e;e=e.parentElement||e.parentNode}while(e!==null&&e.nodeType===1);return null}function UPe(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector).call(e,t)}function HPe(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 s=0;s<o.length;s+=1)r.push(o[s])}return r}const VPe=/(top|left|right|bottom|width|height)$/i;function WPe(e,t){for(let n in t)iW(e,n,t[n])}function iW(e,t,n){n==null?e.style[t]="":typeof n=="number"&&VPe.test(t)?e.style[t]=`${n}px`:e.style[t]=n}function qPe(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 oW=0;function pa(){return oW+=1,"fc-dom-"+oW}function GPe(e,t){return n=>{let r=fa(n.target,e);r&&t.call(r,n,r)}}function sW(e,t,n,r){let i=GPe(n,r);return e.addEventListener(t,i),()=>{e.removeEventListener(t,i)}}function YPe(e,t,n,r){let i;return sW(e,"mouseover",t,(o,s)=>{if(s!==i){i=s,n(o,s);let a=l=>{i=null,r(l,s),s.removeEventListener("mouseleave",a)};s.addEventListener("mouseleave",a)}})}function aW(e){return Object.assign({onClick:e},lW(e))}function lW(e){return{tabIndex:0,onKeyDown(t){(t.key==="Enter"||t.key===" ")&&(e(t),t.preventDefault())}}}let uW=0;function mc(){return uW+=1,String(uW)}function KPe(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 ZPe(e,t,n){let r,i;for(r=0;r<n.length;r+=1)if(i=QPe(e,t,n[r]),i)return i;return 0}function QPe(e,t,n){return n.func?n.func(e,t):JPe(e[n.field],t[n.field])*(n.order||1)}function JPe(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 zf(e,t){let n=String(e);return"000".substr(0,t-n.length)+n}function bm(e,t,n){return typeof e=="function"?e(...t):typeof e=="string"?t.reduce((r,i,o)=>r.replace("$"+o,i||""),e):n}function Tb(e){return e%1===0}function XPe(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 cW=["years","months","days","milliseconds"],eMe=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function yt(e,t){return typeof e=="string"?tMe(e):typeof e=="object"&&e?dW(e):typeof e=="number"?dW({[t||"milliseconds"]:e}):null}function tMe(e){let t=eMe.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 dW(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 nMe(e,t){return e.years===t.years&&e.months===t.months&&e.days===t.days&&e.milliseconds===t.milliseconds}function e6(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function rMe(e,t){return{years:e.years-t.years,months:e.months-t.months,days:e.days-t.days,milliseconds:e.milliseconds-t.milliseconds}}function iMe(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}function oMe(e){return Bf(e)/365}function sMe(e){return Bf(e)/30}function Bf(e){return Lo(e)/864e5}function Lo(e){return e.years*(365*864e5)+e.months*(30*864e5)+e.days*864e5+e.milliseconds}function t6(e,t){let n=null;for(let r=0;r<cW.length;r+=1){let i=cW[r];if(t[i]){let o=e[i]/t[i];if(!Tb(o)||n!==null&&n!==o)return null;n=o}else if(e[i])return null}return n}function n6(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 Ll(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 aMe=["sun","mon","tue","wed","thu","fri","sat"];function fW(e,t){let n=zl(e);return n[2]+=t*7,ii(n)}function er(e,t){let n=zl(e);return n[2]+=t,ii(n)}function jl(e,t){let n=zl(e);return n[6]+=t,ii(n)}function lMe(e,t){return Fl(e,t)/7}function Fl(e,t){return(t.valueOf()-e.valueOf())/(1e3*60*60*24)}function uMe(e,t){return(t.valueOf()-e.valueOf())/(1e3*60*60)}function cMe(e,t){return(t.valueOf()-e.valueOf())/(1e3*60)}function dMe(e,t){return(t.valueOf()-e.valueOf())/1e3}function fMe(e,t){let n=Kt(e),r=Kt(t);return{years:0,months:0,days:Math.round(Fl(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}function pMe(e,t){let n=Eb(e,t);return n!==null&&n%7===0?n/7:null}function Eb(e,t){return Bl(e)===Bl(t)?Math.round(Fl(e,t)):null}function Kt(e){return ii([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function hMe(e){return ii([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}function mMe(e){return ii([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}function gMe(e){return ii([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}function vMe(e,t,n){let r=e.getUTCFullYear(),i=r6(e,r,t,n);if(i<1)return r6(e,r-1,t,n);let o=r6(e,r+1,t,n);return o>=1?Math.min(i,o):i}function r6(e,t,n,r){let i=ii([t,0,1+yMe(t,n,r)]),o=Kt(e),s=Math.round(Fl(i,o));return Math.floor(s/7)+1}function yMe(e,t,n){let r=7+t-n;return-((7+ii([e,0,r]).getUTCDay()-t)%7)+r-1}function pW(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function hW(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 zl(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function ii(e){return e.length===1&&(e=e.concat([0])),new Date(Date.UTC(...e))}function mW(e){return!isNaN(e.valueOf())}function Bl(e){return e.getUTCHours()*1e3*60*60+e.getUTCMinutes()*1e3*60+e.getUTCSeconds()*1e3+e.getUTCMilliseconds()}function gW(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",o6(t,!0)))),r}function xm(e){return e.toISOString().replace(/T.*$/,"")}function i6(e){return e.toISOString().match(/^\d{4}-\d{2}/)[0]}function bMe(e){return zf(e.getUTCHours(),2)+":"+zf(e.getUTCMinutes(),2)+":"+zf(e.getUTCSeconds(),2)}function o6(e,t=!1){let n=e<0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=Math.round(r%60);return t?`${n+zf(i,2)}:${zf(o,2)}`:`GMT${n}${i}${o?`:${zf(o,2)}`:""}`}function Ke(e,t,n){let r,i;return function(...o){if(!r)i=e.apply(this,o);else if(!Ll(r,o)){n&&n(i);let s=e.apply(this,o);(!t||!t(s,i))&&(i=s)}return r=o,i}}function kb(e,t,n){let r,i;return o=>{if(!r)i=e.call(this,o);else if(!jo(r,o)){n&&n(i);let s=e.call(this,o);(!t||!t(s,i))&&(i=s)}return r=o,i}}const vW={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Ab={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Rb=/\s*([ap])\.?m\.?/i,xMe=/,/g,wMe=/\s+/g,SMe=/\u200e/g,CMe=/UTC|GMT/;class $Me{constructor(t){let n={},r={},i=0;for(let o in t)o in vW?(r[o]=t[o],i=Math.max(vW[o],i)):(n[o]=t[o],o in Ab&&(i=Math.max(Ab[o],i)));this.standardDateProps=n,this.extendedSettings=r,this.severity=i,this.buildFormattingFunc=Ke(yW)}format(t,n){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,n)(t)}formatRange(t,n,r,i){let{standardDateProps:o,extendedSettings:s}=this,a=_Me(t.marker,n.marker,r.calendarSystem);if(!a)return this.format(t,r);let l=a;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 u=this.format(t,r),c=this.format(n,r);if(u===c)return u;let f=OMe(o,l),m=yW(f,s,r),p=m(t),g=m(n),v=PMe(u,p,c,g),w=s.separator||i||r.defaultSeparator||"";return v?v.before+p+w+g+v.after:u+w+c}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 yW(e,t,n){let r=Object.keys(e).length;return r===1&&e.timeZoneName==="short"?i=>o6(i.timeZoneOffset):r===0&&t.week?i=>RMe(n.computeWeekNumber(i.marker),n.weekText,n.weekTextLong,n.locale,t.week):TMe(e,t,n)}function TMe(e,t,n){e=Object.assign({},e),t=Object.assign({},t),EMe(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:s}=o,a;i&&!s.getUTCMinutes()?a=i:a=r;let l=a.format(s);return kMe(l,o,e,t,n)}}function EMe(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 kMe(e,t,n,r,i){return e=e.replace(SMe,""),n.timeZoneName==="short"&&(e=AMe(e,i.timeZone==="UTC"||t.timeZoneOffset==null?"UTC":o6(t.timeZoneOffset))),r.omitCommas&&(e=e.replace(xMe,"").trim()),r.omitZeroMinute&&(e=e.replace(":00","")),r.meridiem===!1?e=e.replace(Rb,"").trim():r.meridiem==="narrow"?e=e.replace(Rb,(o,s)=>s.toLocaleLowerCase()):r.meridiem==="short"?e=e.replace(Rb,(o,s)=>`${s.toLocaleLowerCase()}m`):r.meridiem==="lowercase"&&(e=e.replace(Rb,o=>o.toLocaleLowerCase())),e=e.replace(wMe," "),e=e.trim(),e}function AMe(e,t){let n=!1;return e=e.replace(CMe,()=>(n=!0,t)),n||(e+=` ${t}`),e}function RMe(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 _Me(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:Bl(e)!==Bl(t)?1:0}function OMe(e,t){let n={};for(let r in e)(!(r in Ab)||Ab[r]<=t)&&(n[r]=e[r]);return n}function PMe(e,t,n,r){let i=0;for(;i<e.length;){let o=e.indexOf(t,i);if(o===-1)break;let s=e.substr(0,o);i=o+t.length;let a=e.substr(i),l=0;for(;l<n.length;){let u=n.indexOf(r,l);if(u===-1)break;let c=n.substr(0,u);l=u+r.length;let f=n.substr(l);if(s===c&&a===f)return{before:s,after:a}}}return null}function bW(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 _b(e,t,n,r){let i=bW(e,n.calendarSystem),o=t?bW(t,n.calendarSystem):null;return{date:i,start:i,end:o,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}class MMe{constructor(t){this.cmdStr=t}format(t,n,r){return n.cmdFormatter(this.cmdStr,_b(t,null,n,r))}formatRange(t,n,r,i){return r.cmdFormatter(this.cmdStr,_b(t,n,r,i))}}class DMe{constructor(t){this.func=t}format(t,n,r){return this.func(_b(t,null,n,r))}formatRange(t,n,r,i){return this.func(_b(t,n,r,i))}}function Ft(e){return typeof e=="object"&&e?new $Me(e):typeof e=="string"?new MMe(e):typeof e=="function"?new DMe(e):null}const xW={navLinkDayClick:ne,navLinkWeekClick:ne,duration:yt,bootstrapFontAwesome:ne,buttonIcons:ne,customButtons:ne,defaultAllDayEventDuration:yt,defaultTimedEventDuration:yt,nextDayThreshold:yt,scrollTime:yt,scrollTimeReset:Boolean,slotMinTime:yt,slotMaxTime:yt,dayPopoverFormat:Ft,slotDuration:yt,snapDuration:yt,headerToolbar:ne,footerToolbar:ne,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:Ft,dayHeaderClassNames:ne,dayHeaderContent:ne,dayHeaderDidMount:ne,dayHeaderWillUnmount:ne,dayCellClassNames:ne,dayCellContent:ne,dayCellDidMount:ne,dayCellWillUnmount:ne,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:ne,weekNumbers:Boolean,weekNumberClassNames:ne,weekNumberContent:ne,weekNumberDidMount:ne,weekNumberWillUnmount:ne,editable:Boolean,viewClassNames:ne,viewDidMount:ne,viewWillUnmount:ne,nowIndicator:Boolean,nowIndicatorClassNames:ne,nowIndicatorContent:ne,nowIndicatorDidMount:ne,nowIndicatorWillUnmount:ne,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:ne,locale:ne,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:ne,eventOrder:KPe,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:ne,contentHeight:ne,direction:String,weekNumberFormat:Ft,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:ne,initialDate:ne,now:ne,eventDataTransform:ne,stickyHeaderDates:ne,stickyFooterScrollbar:ne,viewHeight:ne,defaultAllDay:Boolean,eventSourceFailure:ne,eventSourceSuccess:ne,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:ne,eventConstraint:ne,eventAllow:ne,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:ne,eventContent:ne,eventDidMount:ne,eventWillUnmount:ne,selectConstraint:ne,selectOverlap:ne,selectAllow:ne,droppable:Boolean,unselectCancel:String,slotLabelFormat:ne,slotLaneClassNames:ne,slotLaneContent:ne,slotLaneDidMount:ne,slotLaneWillUnmount:ne,slotLabelClassNames:ne,slotLabelContent:ne,slotLabelDidMount:ne,slotLabelWillUnmount:ne,dayMaxEvents:ne,dayMaxEventRows:ne,dayMinWidth:Number,slotLabelInterval:yt,allDayText:String,allDayClassNames:ne,allDayContent:ne,allDayDidMount:ne,allDayWillUnmount:ne,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:Ft,rerenderDelay:Number,moreLinkText:ne,moreLinkHint:ne,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:ne,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:yt,hiddenDays:ne,fixedWeekCount:Boolean,validRange:ne,visibleRange:ne,titleFormat:ne,eventInteractive:Boolean,noEventsText:String,viewHint:ne,navLinkHint:ne,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:ne,moreLinkClassNames:ne,moreLinkContent:ne,moreLinkDidMount:ne,moreLinkWillUnmount:ne,monthStartFormat:Ft,handleCustomRendering:ne,customRenderingMetaMap:ne,customRenderingReplaces:Boolean},wm={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"}},wW={datesSet:ne,eventsSet:ne,eventAdd:ne,eventChange:ne,eventRemove:ne,windowResize:ne,eventClick:ne,eventMouseEnter:ne,eventMouseLeave:ne,select:ne,unselect:ne,loading:ne,_unmount:ne,_beforeprint:ne,_afterprint:ne,_noEventDrop:ne,_noEventResize:ne,_resize:ne,_scrollRequest:ne},SW={buttonText:ne,buttonHints:ne,views:ne,plugins:ne,initialEvents:ne,events:ne,eventSources:ne},gc={headerToolbar:vc,footerToolbar:vc,buttonText:vc,buttonHints:vc,buttonIcons:vc,dateIncrement:vc,plugins:Ob,events:Ob,eventSources:Ob,resources:Ob};function vc(e,t){return typeof e=="object"&&typeof t=="object"&&e&&t?jo(e,t):e===t}function Ob(e,t){return Array.isArray(e)&&Array.isArray(t)?Ll(e,t):e===t}const IMe={type:String,component:ne,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:ne,usesMinMaxTime:Boolean,classNames:ne,content:ne,didMount:ne,willUnmount:ne};function s6(e){return l6(e,gc)}function a6(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 ne(e){return e}const{hasOwnProperty:Pb}=Object.prototype;function l6(e,t){let n={};if(t){for(let r in t)if(t[r]===vc){let i=[];for(let o=e.length-1;o>=0;o-=1){let s=e[o][r];if(typeof s=="object"&&s)i.unshift(s);else if(s!==void 0){n[r]=s;break}}i.length&&(n[r]=l6(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 Uf(e,t){let n={};for(let r in e)t(e[r],r)&&(n[r]=e[r]);return n}function yc(e,t){let n={};for(let r in e)n[r]=t(e[r],r);return n}function CW(e){let t={};for(let n of e)t[n]=!0;return t}function u6(e){let t=[];for(let n in e)t.push(e[n]);return t}function jo(e,t){if(e===t)return!0;for(let n in e)if(Pb.call(e,n)&&!(n in t))return!1;for(let n in t)if(Pb.call(t,n)&&e[n]!==t[n])return!1;return!0}const NMe=/^on[A-Z]/;function LMe(e,t){const n=c6(e,t);for(let r of n)if(!NMe.test(r))return!1;return!0}function c6(e,t){let n=[];for(let r in e)Pb.call(e,r)&&(r in t||n.push(r));for(let r in t)Pb.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}function d6(e,t,n={}){if(e===t)return!0;for(let r in t)if(!(r in e&&jMe(e[r],t[r],n[r])))return!1;for(let r in e)if(!(r in t))return!1;return!0}function jMe(e,t,n){return e===t||n===!0?!0:n?n(e,t):!1}function FMe(e,t=0,n,r=1){let i=[];n==null&&(n=Object.keys(e).length);for(let o=t;o<n;o+=r){let s=e[o];s!==void 0&&i.push(s)}return i}let $W={};function zMe(e,t){$W[e]=t}function BMe(e){return new $W[e]}class UMe{getMarkerYear(t){return t.getUTCFullYear()}getMarkerMonth(t){return t.getUTCMonth()}getMarkerDay(t){return t.getUTCDate()}arrayToMarker(t){return ii(t)}markerToArray(t){return zl(t)}}zMe("gregory",UMe);const HMe=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function VMe(e){let t=HMe.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(mW(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 WMe{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=BMe(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()):ii(pW(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=ii(t)),n===null||!mW(n)?null:{marker:n,isTimeUnspecified:!1,forcedTzo:null}}parse(t){let n=VMe(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)}getDay(t){return this.calendarSystem.getMarkerDay(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 Bl(t)===Bl(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 Bl(t)===Bl(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=pMe(t,n),r!==null?{unit:"week",value:r}:(r=Eb(t,n),r!==null?{unit:"day",value:r}:(r=uMe(t,n),Tb(r)?{unit:"hour",value:r}:(r=cMe(t,n),Tb(r)?{unit:"minute",value:r}:(r=dMe(t,n),Tb(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/oMe(r):r.months&&(i=this.diffWholeMonths(t,n),i!==null)?i/sMe(r):r.days&&(i=Eb(t,n),i!==null)?i/Bf(r):(n.valueOf()-t.valueOf())/Lo(r)}startOf(t,n){return n==="year"?this.startOfYear(t):n==="month"?this.startOfMonth(t):n==="week"?this.startOfWeek(t):n==="day"?Kt(t):n==="hour"?hMe(t):n==="minute"?mMe(t):n==="second"?gMe(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)):vMe(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=jl(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)),gW(t,r,n.omitTime)}timestampToMarker(t){return this.timeZone==="local"?ii(pW(new Date(t))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(t):ii(this.namedTimeZoneImpl.timestampToArray(t))}offsetForMarker(t){return this.timeZone==="local"?-hW(zl(t)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(zl(t)):null}toDate(t,n){return this.timeZone==="local"?hW(zl(t)):this.timeZone==="UTC"?new Date(t.valueOf()):this.namedTimeZoneImpl?new Date(t.valueOf()-this.namedTimeZoneImpl.offsetForArray(zl(t))*1e3*60):new Date(t.valueOf()-(n||0))}}class Sm{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)}`:""}}Sm.prototype.classes={},Sm.prototype.iconClasses={},Sm.prototype.baseIconClass="",Sm.prototype.iconOverridePrefix="";function Mb(e){e();let t=Qe.debounceRendering,n=[];function r(i){n.push(i)}for(Qe.debounceRendering=r,vm(H(qMe,{}),document.createElement("div"));n.length;)n.shift()();Qe.debounceRendering=t}class qMe extends Ai{render(){return H("div",{})}componentDidMount(){this.setState({})}}function TW(e){let t=wPe(e),n=t.Provider;return t.Provider=function(){let r=!this.getChildContext,i=n.apply(this,arguments);if(r){let o=[];this.shouldComponentUpdate=s=>{this.props.value!==s.value&&o.forEach(a=>{a.context=s.value,a.forceUpdate()})},this.sub=s=>{o.push(s);let a=s.componentWillUnmount;s.componentWillUnmount=()=>{o.splice(o.indexOf(s),1),a&&a.call(s)}}}return i},t}class GMe{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 ha=TW({});function YMe(e,t,n,r,i,o,s,a,l,u,c,f,m){return{dateEnv:i,options:n,pluginHooks:s,emitter:u,dispatch:a,getCurrentData:l,calendarApi:c,viewSpec:e,viewApi:t,dateProfileGenerator:r,theme:o,isRtl:n.direction==="rtl",addResizeHandler(p){u.on("_resize",p)},removeResizeHandler(p){u.off("_resize",p)},createScrollResponder(p){return new GMe(p,u,yt(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:f,unregisterInteractiveComponent:m}}class bc extends Ai{shouldComponentUpdate(t,n){return this.debug&&console.log(c6(t,this.props),c6(n,this.state)),!d6(this.props,t,this.propEquality)||!d6(this.state,n,this.stateEquality)}safeSetState(t){d6(this.state,Object.assign(Object.assign({},this.state),t),this.stateEquality)||this.setState(t)}}bc.addPropsEquality=KMe,bc.addStateEquality=ZMe,bc.contextType=ha,bc.prototype.propEquality={},bc.prototype.stateEquality={};class Ct extends bc{}Ct.contextType=ha;function KMe(e){let t=Object.create(this.prototype.propEquality);Object.assign(t,e),this.prototype.propEquality=t}function ZMe(e){let t=Object.create(this.prototype.stateEquality);Object.assign(t,e),this.prototype.stateEquality=t}function ma(e,t){typeof e=="function"?e(t):e&&(e.current=t)}class f6 extends Ct{constructor(){super(...arguments),this.id=mc(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=t=>{const{options:n}=this.context,{generatorName:r}=this.props;(!n.customRenderingReplaces||!p6(r,n))&&this.updateElRef(t)},this.updateElRef=t=>{this.props.elRef&&ma(this.props.elRef,t)}}render(){const{props:t,context:n}=this,{options:r}=n,{customGenerator:i,defaultGenerator:o,renderProps:s}=t,a=EW(t,[],this.handleEl);let l=!1,u,c=[],f;if(i!=null){const m=typeof i=="function"?i(s,H):i;if(m===!0)l=!0;else{const p=m&&typeof m=="object";p&&"html"in m?a.dangerouslySetInnerHTML={__html:m.html}:p&&"domNodes"in m?c=Array.prototype.slice.call(m.domNodes):(p?yV(m):typeof m!="function")?u=m:f=m}}else l=!p6(t.generatorName,r);return l&&o&&(u=o(s)),this.queuedDomNodes=c,this.currentGeneratorMeta=f,H(t.elTag,a,u)}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:s}=i.options;if(o){const a=(n=this.currentGeneratorMeta)!==null&&n!==void 0?n:s==null?void 0:s[r.generatorName];a&&o(Object.assign(Object.assign({id:this.id,isActive:t,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:a},r),{elClasses:(r.elClasses||[]).filter(QMe)}))}}applyQueueudDomNodes(){const{queuedDomNodes:t,currentDomNodes:n}=this,r=this.base;if(!Ll(t,n)){n.forEach(BPe);for(let i of t)r.appendChild(i);this.currentDomNodes=t}}}f6.addPropsEquality({elClasses:Ll,elStyle:jo,elAttrs:LMe,renderProps:jo});function p6(e,t){var n;return!!(t.handleCustomRendering&&e&&(!((n=t.customRenderingMetaMap)===null||n===void 0)&&n[e]))}function EW(e,t,n){const r=Object.assign(Object.assign({},e.elAttrs),{ref:n});return(e.elClasses||t)&&(r.className=(e.elClasses||[]).concat(t||[]).concat(r.className||[]).filter(Boolean).join(" ")),e.elStyle&&(r.style=e.elStyle),r}function QMe(e){return!!e}const kW=TW(0);class Tr extends Ai{constructor(){super(...arguments),this.InnerContent=JMe.bind(void 0,this),this.handleEl=t=>{this.el=t,this.props.elRef&&(ma(this.props.elRef,t),t&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:t}=this,n=XMe(t.classNameGenerator,t.renderProps);if(t.children){const r=EW(t,n,this.handleEl),i=t.children(this.InnerContent,t.renderProps,r);return t.elTag?H(t.elTag,r,i):i}else return H(f6,Object.assign(Object.assign({},t),{elRef:this.handleEl,elTag:t.elTag||"div",elClasses:(t.elClasses||[]).concat(n),renderId:this.context}))}componentDidMount(){var t,n;this.el?(n=(t=this.props).didMount)===null||n===void 0||n.call(t,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}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.el}))}}Tr.contextType=kW;function JMe(e,t){const n=e.props;return H(f6,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:e.context},t))}function XMe(e,t){const n=typeof e=="function"?e(t):e||[];return typeof n=="string"?[n]:n}class Hf extends Ct{render(){let{props:t,context:n}=this,{options:r}=n,i={view:n.viewApi};return H(Tr,Object.assign({},t,{elTag:t.elTag||"div",elClasses:[...AW(t.viewSpec),...t.elClasses||[]],renderProps:i,classNameGenerator:r.viewClassNames,generatorName:void 0,didMount:r.viewDidMount,willUnmount:r.viewWillUnmount}),()=>t.children)}}function AW(e){return[`fc-${e.type}-view`,"fc-view"]}function eDe(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 RW(e,t){let n=[],{start:r}=t,i,o;for(e.sort(tDe),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 tDe(e,t){return e.start.valueOf()-t.start.valueOf()}function ga(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 nDe(e,t){return(e.end===null||t.start===null||e.end>t.start)&&(e.start===null||t.end===null||e.start<t.end)}function va(e,t){return(e.start===null||t>=e.start)&&(e.end===null||t<e.end)}function rDe(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 _W(e){let t=Math.floor(Fl(e.start,e.end))||1,n=Kt(e.start),r=er(n,t);return{start:n,end:r}}function h6(e,t=yt(0)){let n=null,r=null;if(e.end){r=Kt(e.end);let i=e.end.valueOf()-r.valueOf();i&&i>=Lo(t)&&(r=er(r,1))}return e.start&&(n=Kt(e.start),r&&r<=n&&(r=er(n,1))),{start:n,end:r}}function iDe(e){let t=h6(e);return Fl(t.start,t.end)>1}function Db(e,t,n,r){return r==="year"?yt(n.diffWholeYears(e,t),"year"):r==="month"?yt(n.diffWholeMonths(e,t),"month"):fMe(e,t)}function oDe(e,t){switch(t.type){case"CHANGE_DATE":return t.dateMarker;default:return e}}function sDe(e,t){let n=e.initialDate;return n!=null?t.createMarker(n):Cm(e.now,t)}function Cm(e,t){return typeof e=="function"&&(e=e()),e==null?t.createNowMarker():t.createMarker(e)}class OW{constructor(t){this.props=t,this.nowDate=Cm(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,s,a,l,u,c;return o=this.buildValidRange(),o=this.trimHiddenDays(o),r&&(t=rDe(t,o)),s=this.buildCurrentRangeInfo(t,n),a=/^(year|month|week|day)$/.test(s.unit),l=this.buildRenderRange(this.trimHiddenDays(s.range),s.unit,a),l=this.trimHiddenDays(l),u=l,i.showNonCurrentDates||(u=ga(u,s.range)),u=this.adjustActiveRange(u),u=ga(u,o),c=nDe(s.range,o),va(l,t)||(t=l.start),{currentDate:t,validRange:o,currentRange:s.range,currentRangeUnit:s.unit,isRangeAllDay:a,activeRange:u,renderRange:l,slotMinTime:i.slotMinTime,slotMaxTime:i.slotMaxTime,isValid:c,dateIncrement:this.buildDateIncrement(s.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,s=null,a;return r.duration?(i=r.duration,o=r.durationUnit,s=this.buildRangeFromDuration(t,n,i,o)):(a=this.props.dayCount)?(o="day",s=this.buildRangeFromDayCount(t,n,a)):(s=this.buildCustomVisibleRange(t))?o=r.dateEnv.greatestWholeUnit(s.start,s.end).unit:(i=this.getFallbackDuration(),o=n6(i).unit,s=this.buildRangeFromDuration(t,n,i,o)),{duration:i,unit:o,range:s}}getFallbackDuration(){return yt({day:1})}adjustActiveRange(t){let{dateEnv:n,usesMinMaxTime:r,slotMinTime:i,slotMaxTime:o}=this.props,{start:s,end:a}=t;return r&&(Bf(i)<0&&(s=Kt(s),s=n.add(s,i)),Bf(o)>1&&(a=Kt(a),a=er(a,-1),a=n.add(a,o))),{start:s,end:a}}buildRangeFromDuration(t,n,r,i){let{dateEnv:o,dateAlignment:s}=this.props,a,l,u;if(!s){let{dateIncrement:f}=this.props;f&&Lo(f)<Lo(r)?s=n6(f).unit:s=i}Bf(r)<=1&&this.isHiddenDay(a)&&(a=this.skipHiddenDays(a,n),a=Kt(a));function c(){a=o.startOf(t,s),l=o.add(a,r),u={start:a,end:l}}return c(),this.trimHiddenDays(u)||(t=this.skipHiddenDays(t,n),c()),u}buildRangeFromDayCount(t,n,r){let{dateEnv:i,dateAlignment:o}=this.props,s=0,a=t,l;o&&(a=i.startOf(a,o)),a=Kt(a),a=this.skipHiddenDays(a,n),l=a;do l=er(l,1),this.isHiddenDay(l)||(s+=1);while(s<r);return{start:a,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=eDe(t,this.props.dateEnv);return n&&(n=h6(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=er(t,n);return t}}function m6(e,t,n,r){return{instanceId:mc(),defId:e,range:t,forcedStartTzo:n??null,forcedEndTzo:r??null}}function aDe(e,t,n,r){for(let i=0;i<r.length;i+=1){let o=r[i].parse(e,n);if(o){let{allDay:s}=e;return s==null&&(s=t,s==null&&(s=o.allDayGuess,s==null&&(s=!1))),{allDay:s,duration:o.duration,typeData:o.typeData,typeId:i}}}return null}function $m(e,t,n){let{dateEnv:r,pluginHooks:i,options:o}=n,{defs:s,instances:a}=e;a=Uf(a,l=>!s[l.defId].recurringDef);for(let l in s){let u=s[l];if(u.recurringDef){let{duration:c}=u.recurringDef;c||(c=u.allDay?o.defaultAllDayEventDuration:o.defaultTimedEventDuration);let f=lDe(u,c,t,r,i.recurringTypes);for(let m of f){let p=m6(l,{start:m,end:r.add(m,c)});a[p.instanceId]=p}}}return{defs:s,instances:a}}function lDe(e,t,n,r,i){let s=i[e.recurringDef.typeId].expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(s=s.map(Kt)),s}const Ib={id:String,groupId:String,title:String,url:String,interactive:Boolean},PW={start:ne,end:ne,date:ne,allDay:Boolean},uDe=Object.assign(Object.assign(Object.assign({},Ib),PW),{extendedProps:ne});function MW(e,t,n,r,i=g6(n),o,s){let{refined:a,extra:l}=DW(e,n,i),u=dDe(t,n),c=aDe(a,u,n.dateEnv,n.pluginHooks.recurringTypes);if(c){let m=v6(a,l,t?t.sourceId:"",c.allDay,!!c.duration,n,o);return m.recurringDef={typeId:c.typeId,typeData:c.typeData,duration:c.duration},{def:m,instance:null}}let f=cDe(a,u,n,r);if(f){let m=v6(a,l,t?t.sourceId:"",f.allDay,f.hasEnd,n,o),p=m6(m.defId,f.range,f.forcedStartTzo,f.forcedEndTzo);return s&&m.publicId&&s[m.publicId]&&(p.instanceId=s[m.publicId]),{def:m,instance:p}}return null}function DW(e,t,n=g6(t)){return a6(e,n)}function g6(e){return Object.assign(Object.assign(Object.assign({},Nb),uDe),e.pluginHooks.eventRefiners)}function v6(e,t,n,r,i,o,s){let a={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:(s&&e.id?s[e.id]:"")||mc(),sourceId:n,allDay:r,hasEnd:i,interactive:e.interactive,ui:Lb(e,o),extendedProps:Object.assign(Object.assign({},e.extendedProps||{}),t)};for(let l of o.pluginHooks.eventDefMemberAdders)Object.assign(a,l(e));return Object.freeze(a.ui.classNames),Object.freeze(a.extendedProps),a}function cDe(e,t,n,r){let{allDay:i}=e,o,s=null,a=!1,l,u=null,c=e.start!=null?e.start:e.date;if(o=n.dateEnv.createMarkerMeta(c),o)s=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&&s&&(s=Kt(s)),l&&(u=l.marker,i&&(u=Kt(u)),s&&u<=s&&(u=null)),u?a=!0:r||(a=n.options.forceEventDuration||!1,u=n.dateEnv.add(s,i?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:i,hasEnd:a,range:{start:s,end:u},forcedStartTzo:o?o.forcedTzo:null,forcedEndTzo:l?l.forcedTzo:null}}function dDe(e,t){let n=null;return e&&(n=e.defaultAllDay),n==null&&(n=t.options.defaultAllDay),n}function Tm(e,t,n,r,i,o){let s=ya(),a=g6(n);for(let l of e){let u=MW(l,t,n,r,a,i,o);u&&y6(u,s)}return s}function y6(e,t=ya()){return t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function fDe(e,t){let n=e.instances[t];if(n){let r=e.defs[n.defId],i=x6(e,o=>pDe(r,o));return i.defs[r.defId]=r,i.instances[n.instanceId]=n,i}return ya()}function pDe(e,t){return!!(e.groupId&&e.groupId===t.groupId)}function ya(){return{defs:{},instances:{}}}function b6(e,t){return{defs:Object.assign(Object.assign({},e.defs),t.defs),instances:Object.assign(Object.assign({},e.instances),t.instances)}}function x6(e,t){let n=Uf(e.defs,t),r=Uf(e.instances,i=>n[i.defId]);return{defs:n,instances:r}}function hDe(e,t){let{defs:n,instances:r}=e,i={},o={};for(let s in n)t.defs[s]||(i[s]=n[s]);for(let s in r)!t.instances[s]&&i[r[s].defId]&&(o[s]=r[s]);return{defs:i,instances:o}}function mDe(e,t){return Array.isArray(e)?Tm(e,null,t,!0):typeof e=="object"&&e?Tm([e],null,t,!0):e!=null?String(e):null}function IW(e){return Array.isArray(e)?e:typeof e=="string"?e.split(/\s+/):[]}const Nb={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:ne,overlap:ne,allow:ne,className:IW,classNames:IW,color:String,backgroundColor:String,borderColor:String,textColor:String},gDe={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function Lb(e,t){let n=mDe(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 NW(e){return e.reduce(vDe,gDe)}function vDe(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 yDe={id:String,defaultAllDay:Boolean,url:String,format:String,events:ne,eventDataTransform:ne,success:ne,failure:ne};function LW(e,t,n=jW(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}=a6(r,n),s=bDe(i,t);if(s)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||"",sourceId:mc(),sourceDefId:s.sourceDefId,meta:s.meta,ui:Lb(i,t),extendedProps:o}}return null}function jW(e){return Object.assign(Object.assign(Object.assign({},Nb),yDe),e.pluginHooks.eventSourceRefiners)}function bDe(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 xDe(e,t,n,r,i){switch(t.type){case"RECEIVE_EVENTS":return wDe(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,i);case"RESET_RAW_EVENTS":return SDe(e,n[t.sourceId],t.rawEvents,r.activeRange,i);case"ADD_EVENTS":return CDe(e,t.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return b6(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?$m(e,r.activeRange,i):e;case"REMOVE_EVENTS":return hDe(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return UW(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return x6(e,o=>!o.sourceId);case"REMOVE_ALL_EVENTS":return ya();default:return e}}function wDe(e,t,n,r,i,o){if(t&&n===t.latestFetchId){let s=Tm(FW(i,t,o),t,o);return r&&(s=$m(s,r,o)),b6(UW(e,t.sourceId),s)}return e}function SDe(e,t,n,r,i){const{defIdMap:o,instanceIdMap:s}=$De(e);let a=Tm(FW(n,t,i),t,i,!1,o,s);return $m(a,r,i)}function FW(e,t,n){let r=n.options.eventDataTransform,i=t?t.eventDataTransform:null;return i&&(e=zW(e,i)),r&&(e=zW(e,r)),e}function zW(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 CDe(e,t,n,r){return n&&(t=$m(t,n,r)),b6(e,t)}function BW(e,t,n){let{defs:r}=e,i=yc(e.instances,o=>r[o.defId].allDay?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 UW(e,t){return x6(e,n=>n.sourceId!==t)}function $De(e){const{defs:t,instances:n}=e,r={},i={};for(let o in t){const s=t[o],{publicId:a}=s;a&&(r[a]=o)}for(let o in n){const s=n[o],a=t[s.defId],{publicId:l}=a;l&&(i[l]=o)}return{defIdMap:r,instanceIdMap:i}}class TDe{constructor(){this.handlers={},this.thisContext=null}setThisContext(t){this.thisContext=t}setOptions(t){this.options=t}on(t,n){EDe(this.handlers,t,n)}off(t,n){kDe(this.handlers,t,n)}trigger(t,...n){let r=this.handlers[t]||[],i=this.options&&this.options[t],o=[].concat(i||[],r);for(let s of o)s.apply(this.thisContext,n)}hasHandlers(t){return!!(this.handlers[t]&&this.handlers[t].length||this.options&&this.options[t])}}function EDe(e,t,n){(e[t]||(e[t]=[])).push(n)}function kDe(e,t,n){n?e[t]&&(e[t]=e[t].filter(r=>r!==n)):delete e[t]}const ADe={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function RDe(e,t){return Tm(_De(e),null,t)}function _De(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({},ADe),n)),t}function ODe(e,t,n){n.emitter.trigger("select",Object.assign(Object.assign({},MDe(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function PDe(e,t){t.emitter.trigger("unselect",{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view})}function MDe(e,t){let n={};for(let r of t.pluginHooks.dateSpanTransforms)Object.assign(n,r(e,t));return Object.assign(n,qDe(e,t.dateEnv)),n}function HW(e,t,n){let{dateEnv:r,options:i}=n,o=t;return e?(o=Kt(o),o=r.add(o,i.defaultAllDayEventDuration)):o=r.add(o,i.defaultTimedEventDuration),o}function DDe(e,t,n,r){let i=qW(e.defs,t),o=ya();for(let s in e.defs){let a=e.defs[s];o.defs[s]=IDe(a,i[s],n,r)}for(let s in e.instances){let a=e.instances[s],l=o.defs[a.defId];o.instances[s]=NDe(a,l,i[a.defId],n,r)}return o}function IDe(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 s of r.pluginHooks.eventDefMutationAppliers)s(o,n,r);return!o.hasEnd&&r.options.forceEventDuration&&(o.hasEnd=!0),o}function NDe(e,t,n,r,i){let{dateEnv:o}=i,s=r.standardProps&&r.standardProps.allDay===!0,a=r.standardProps&&r.standardProps.hasEnd===!1,l=Object.assign({},e);return s&&(l.range=_W(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)}),a&&(l.range={start:l.range.start,end:HW(t.allDay,l.range.start,i)}),t.allDay&&(l.range={start:Kt(l.range.start),end:Kt(l.range.end)}),l.range.end<l.range.start&&(l.range.end=HW(t.allDay,l.range.start,i)),l}class Vf{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 io{constructor(t,n,r){this._context=t,this._def=n,this._instance=r||null}setProp(t,n){if(t in PW)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(t==="id")n=Ib[t](n),this.mutate({standardProps:{publicId:n}});else if(t in Ib)n=Ib[t](n),this.mutate({standardProps:{[t]:n}});else if(t in Nb){let r=Nb[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,s=Db(o.start,i,r,n.granularity);n.maintainDuration?this.mutate({datesDelta:s}):this.mutate({startDelta:s})}}setEnd(t,n={}){let{dateEnv:r}=this._context,i;if(!(t!=null&&(i=r.createMarker(t),!i))&&this._instance)if(i){let o=Db(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},s=i.createMarker(t),a;if(s&&!(n!=null&&(a=i.createMarker(n),!a))&&this._instance){let l=this._instance.range;r.allDay===!0&&(l=_W(l));let u=Db(l.start,s,i,r.granularity);if(a){let c=Db(l.end,a,i,r.granularity);nMe(u,c)?this.mutate({datesDelta:u,standardProps:o}):this.mutate({startDelta:u,endDelta:c,standardProps:o})}else o.hasEnd=!1,this.mutate({datesDelta:u,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=Ft(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(),s=fDe(o,n.instanceId);s=DDe(s,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},t,i);let l=new io(i,r,n);this._def=s.defs[r.defId],this._instance=s.instances[n.instanceId],i.dispatch({type:"MERGE_EVENTS",eventStore:s}),i.emitter.trigger("eventChange",{oldEvent:l,event:this,relatedEvents:w6(s,i,n),revert(){i.dispatch({type:"RESET_EVENTS",eventStore:o})}})}}remove(){let t=this._context,n=VW(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 Vf(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,s={allDay:n.allDay};return n.title&&(s.title=n.title),i&&(s.start=i),o&&(s.end=o),n.publicId&&(s.id=n.publicId),n.groupId&&(s.groupId=n.groupId),n.url&&(s.url=n.url),r.display&&r.display!=="auto"&&(s.display=r.display),t.collapseColor&&r.backgroundColor&&r.backgroundColor===r.borderColor?s.color=r.backgroundColor:(r.backgroundColor&&(s.backgroundColor=r.backgroundColor),r.borderColor&&(s.borderColor=r.borderColor)),r.textColor&&(s.textColor=r.textColor),r.classNames.length&&(s.classNames=r.classNames),Object.keys(n.extendedProps).length&&(t.collapseExtendedProps?Object.assign(s,n.extendedProps):s.extendedProps=n.extendedProps),s}toJSON(){return this.toPlainObject()}}function VW(e){let t=e._def,n=e._instance;return{defs:{[t.defId]:t},instances:n?{[n.instanceId]:n}:{}}}function w6(e,t,n){let{defs:r,instances:i}=e,o=[],s=n?n.instanceId:"";for(let a in i){let l=i[a],u=r[l.defId];l.instanceId!==s&&o.push(new io(t,u,l))}return o}function S6(e,t,n,r){let i={},o={},s={},a=[],l=[],u=qW(e.defs,t);for(let c in e.defs){let f=e.defs[c];u[f.defId].display==="inverse-background"&&(f.groupId?(i[f.groupId]=[],s[f.groupId]||(s[f.groupId]=f)):o[c]=[])}for(let c in e.instances){let f=e.instances[c],m=e.defs[f.defId],p=u[m.defId],g=f.range,v=!m.allDay&&r?h6(g,r):g,w=ga(v,n);w&&(p.display==="inverse-background"?m.groupId?i[m.groupId].push(w):o[f.defId].push(w):p.display!=="none"&&(p.display==="background"?a:l).push({def:m,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 c in i){let f=i[c],m=RW(f,n);for(let p of m){let g=s[c],v=u[g.defId];a.push({def:g,ui:v,instance:null,range:p,isStart:!1,isEnd:!1})}}for(let c in o){let f=o[c],m=RW(f,n);for(let p of m)a.push({def:e.defs[c],ui:u[c],instance:null,range:p,isStart:!1,isEnd:!1})}return{bg:a,fg:l}}function LDe(e){return e.ui.display==="background"||e.ui.display==="inverse-background"}function WW(e,t){e.fcSeg=t}function C6(e){return e.fcSeg||e.parentNode.fcSeg||null}function qW(e,t){return yc(e,n=>GW(n,t))}function GW(e,t){let n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),NW(n)}function $6(e,t){let n=e.map(jDe);return n.sort((r,i)=>ZPe(r,i,t)),n.map(r=>r._seg)}function jDe(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 FDe(e,t){let{pluginHooks:n}=t,r=n.isDraggableTransformers,{def:i,ui:o}=e.eventRange,s=o.startEditable;for(let a of r)s=a(s,i,o,t);return s}function zDe(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function BDe(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function Em(e,t,n,r,i,o,s){let{dateEnv:a,options:l}=n,{displayEventTime:u,displayEventEnd:c}=l,f=e.eventRange.def,m=e.eventRange.instance;u==null&&(u=r!==!1),c==null&&(c=i!==!1);let p=m.range.start,g=m.range.end,v=o||e.start||e.eventRange.range.start,w=s||e.end||e.eventRange.range.end,b=Kt(p).valueOf()===Kt(v).valueOf(),y=Kt(jl(g,-1)).valueOf()===Kt(jl(w,-1)).valueOf();return u&&!f.allDay&&(b||y)?(v=b?p:v,w=y?g:w,c&&f.hasEnd?a.formatRange(v,w,t,{forcedStartTzo:o?null:m.forcedStartTzo,forcedEndTzo:s?null:m.forcedEndTzo}):a.format(v,t,{forcedTzo:o?null:m.forcedStartTzo})):""}function ba(e,t,n){let r=e.eventRange.range;return{isPast:r.end<=(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&va(t,r.start)}}function UDe(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 YW(e){return e.instance?e.instance.instanceId:`${e.def.defId}:${e.range.start.toISOString()}`}function T6(e,t){let{def:n,instance:r}=e.eventRange,{url:i}=n;if(i)return{href:i};let{emitter:o,options:s}=t,{eventInteractive:a}=s;return a==null&&(a=n.interactive,a==null&&(a=!!o.hasHandlers("eventClick"))),a?lW(l=>{o.trigger("eventClick",{el:l.target,event:new io(t,n,r),jsEvent:l,view:t.viewApi})}):{}}const HDe={start:ne,end:ne,allDay:Boolean};function VDe(e,t,n){let r=WDe(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 WDe(e,t){let{refined:n,extra:r}=a6(e,HDe),i=n.start?t.createMarkerMeta(n.start):null,o=n.end?t.createMarkerMeta(n.end):null,{allDay:s}=n;return s==null&&(s=i&&i.isTimeUnspecified&&(!o||o.isTimeUnspecified)),Object.assign({range:{start:i?i.marker:null,end:o?o.marker:null},allDay:s},r)}function qDe(e,t){return Object.assign(Object.assign({},ZW(e.range,t,e.allDay)),{allDay:e.allDay})}function KW(e,t,n){return Object.assign(Object.assign({},ZW(e,t,n)),{timeZone:t.timeZone})}function ZW(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 GDe(e,t,n){let r=DW({editable:!1},n),i=v6(r.refined,r.extra,"",e.allDay,!0,n);return{def:i,ui:GW(i,t),instance:m6(i.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}function YDe(e,t,n){let r=!1,i=function(a){r||(r=!0,t(a))},o=function(a){r||(r=!0,n(a))},s=e(i,o);s&&typeof s.then=="function"&&s.then(i,o)}class QW extends Error{constructor(t,n){super(t),this.response=n}}function KDe(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 QW("Failure parsing JSON",i)});throw new QW("Request failed",i)})}let E6;function JW(){return E6==null&&(E6=ZDe()),E6}function ZDe(){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 QDe extends Ct{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{Mb(()=>{this.setState({forPrint:!0})})},this.handleAfterPrint=()=>{Mb(()=>{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:"",s=["fc",r?"fc-media-print":"fc-media-screen",`fc-direction-${n.direction}`,t.theme.getClass("root")];return JW()||s.push("fc-liquid-hack"),t.children(s,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 XW{constructor(t){this.component=t.component,this.isHitComboAllowed=t.isHitComboAllowed||null}destroy(){}}function JDe(e,t){return{component:e,el:t.el,useEventCenter:t.useEventCenter!=null?t.useEventCenter:!0,isHitComboAllowed:t.isHitComboAllowed||null}}const eq={};class XDe{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,s;for(let a in n)i.push(a);for(o=0;o<i.length;o+=1)if(s=n[i[o]],s&&s.singleUnit===t)return s;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:Cm(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),Ft(n))}formatRange(t,n,r){let{dateEnv:i}=this.getCurrentData();return i.formatRange(i.createMarker(t),i.createMarker(n),Ft(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=VDe(r,i.dateEnv,yt({days:1}));o&&(this.dispatch({type:"SELECT_DATES",selection:o}),ODe(o,null,i))}unselect(t){let n=this.getCurrentData();n.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),PDe(t,n))}addEvent(t,n){if(t instanceof io){let s=t._def,a=t._instance;return this.getCurrentData().eventStore.defs[s.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:y6({def:s,instance:a})}),this.triggerEventAdd(t)),t}let r=this.getCurrentData(),i;if(n instanceof Vf)i=n.internalEventSource;else if(typeof n=="boolean")n&&([i]=u6(r.eventSources));else if(n!=null){let s=this.getEventSourceById(n);if(!s)return console.warn(`Could not find an event source with ID "${n}"`),null;i=s.internalEventSource}let o=MW(t,i,r,!1);if(o){let s=new io(r,o.def,o.def.recurringDef?null:o.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:y6(o)}),this.triggerEventAdd(s),s}return null}triggerEventAdd(t){let{emitter:n}=this.getCurrentData();n.trigger("eventAdd",{event:t,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:VW(t)})}})}getEventById(t){let n=this.getCurrentData(),{defs:r,instances:i}=n.eventStore;t=String(t);for(let o in r){let s=r[o];if(s.publicId===t){if(s.recurringDef)return new io(n,s,null);for(let a in i){let l=i[a];if(l.defId===s.defId)return new io(n,s,l)}}}return null}getEvents(){let t=this.getCurrentData();return w6(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 Vf(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 Vf(n,r[i]);return null}addEventSource(t){let n=this.getCurrentData();if(t instanceof Vf)return n.eventSources[t.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[t.internalEventSource]}),t;let r=LW(t,n);return r?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[r]}),new Vf(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 eIe(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 k6=ya();class tIe{constructor(){this.getKeysForEventDefs=Ke(this._getKeysForEventDefs),this.splitDateSelection=Ke(this._splitDateSpan),this.splitEventStore=Ke(this._splitEventStore),this.splitIndividualUi=Ke(this._splitIndividualUi),this.splitEventDrag=Ke(this._splitInteraction),this.splitEventResize=Ke(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),s=this.splitEventStore(t.eventStore,r),a=this.splitEventDrag(t.eventDrag),l=this.splitEventResize(t.eventResize),u={};this.eventUiBuilders=yc(n,(c,f)=>this.eventUiBuilders[f]||Ke(nIe));for(let c in n){let f=n[c],m=s[c]||k6,p=this.eventUiBuilders[c];u[c]={businessHours:f.businessHours||t.businessHours,dateSelection:i[c]||null,eventStore:m,eventUiBases:p(t.eventUiBases[""],f.ui,o[c]),eventSelection:m.instances[t.eventSelection]?t.eventSelection:"",eventDrag:a[c]||null,eventResize:l[c]||null}}return u}_splitDateSpan(t){let n={};if(t){let r=this.getKeysForDateSpan(t);for(let i of r)n[i]=t}return n}_getKeysForEventDefs(t){return yc(t.defs,n=>this.getKeysForEventDef(n))}_splitEventStore(t,n){let{defs:r,instances:i}=t,o={};for(let s in r)for(let a of n[s])o[a]||(o[a]=ya()),o[a].defs[s]=r[s];for(let s in i){let a=i[s];for(let l of n[a.defId])o[l]&&(o[l].instances[s]=a)}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),s=a=>{n[a]||(n[a]={affectedEvents:r[a]||k6,mutatedEvents:o[a]||k6,isEvent:t.isEvent})};for(let a in r)s(a);for(let a in o)s(a)}return n}}function nIe(e,t,n){let r=[];e&&r.push(e),t&&r.push(t);let i={"":NW(r)};return n&&Object.assign(i,n),i}function A6(e,t,n,r){return{dow:e.getUTCDay(),isDisabled:!!(r&&!va(r.activeRange,e)),isOther:!!(r&&!va(r.currentRange,e)),isToday:!!(t&&va(t,e)),isPast:!!(n?e<n:t&&e<t.start),isFuture:!!(n?e>n:t&&e>=t.end)}}function jb(e,t){let n=["fc-day",`fc-day-${aMe[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 rIe=Ft({year:"numeric",month:"long",day:"numeric"}),iIe=Ft({week:"long"});function Wf(e,t,n="day",r=!0){const{dateEnv:i,options:o,calendarApi:s}=e;let a=i.format(t,n==="week"?iIe:rIe);if(o.navLinks){let l=i.toDate(t);const u=c=>{let f=n==="day"?o.navLinkDayClick:n==="week"?o.navLinkWeekClick:null;typeof f=="function"?f.call(s,i.toDate(t),c):(typeof f=="string"&&(n=f),s.zoomTo(t,n))};return Object.assign({title:bm(o.navLinkHint,[a,l],a),"data-navlink":""},r?aW(u):{onClick:u})}return{"aria-label":a}}let R6;function oIe(){return R6||(R6=sIe()),R6}function sIe(){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=aIe(e);return document.body.removeChild(e),t}function aIe(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function lIe(e){let t=uIe(e),n=e.getBoundingClientRect();for(let r of t){let i=eIe(n,r.getBoundingClientRect());if(i)n=i;else return null}return n}function uIe(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 qf{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 Fb(this.tops||[],t.tops||[])&&Fb(this.bottoms||[],t.bottoms||[])&&Fb(this.lefts||[],t.lefts||[])&&Fb(this.rights||[],t.rights||[])}}function Fb(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 Ri extends Ct{constructor(){super(...arguments),this.uid=mc()}prepareHits(){}queryHit(t,n,r,i){return null}isValidSegDownEl(t){return!this.props.eventDrag&&!this.props.eventResize&&!fa(t,".fc-event-mirror")}isValidDateDownEl(t){return!fa(t,".fc-event:not(.fc-bg-event)")&&!fa(t,".fc-more-link")&&!fa(t,"a[data-navlink]")&&!fa(t,".fc-popover")}}class tq{constructor(t=n=>n.thickness||1){this.getEntryThickness=t,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);this.isInsertionValid(r,t)?this.insertEntryAt(t,r):this.handleInvalidInsertion(r,t,n)}isInsertionValid(t,n){return(this.maxCoord===-1||t.levelCoord+this.getEntryThickness(n)<=this.maxCoord)&&(this.maxStackCnt===-1||t.stackCnt<this.maxStackCnt)}handleInvalidInsertion(t,n,r){if(this.allowReslicing&&t.touchingEntry){const i=Object.assign(Object.assign({},n),{span:O6(n.span,t.touchingEntry.span)});r.push(i),this.splitEntry(n,t.touchingEntry,r)}else r.push(n)}splitEntry(t,n,r){let i=t.span,o=n.span;i.start<o.start&&this.insertEntry({index:t.index,thickness:t.thickness,span:{start:i.start,end:o.start}},r),i.end>o.end&&this.insertEntry({index:t.index,thickness:t.thickness,span:{start:o.end,end:i.end}},r)}insertEntryAt(t,n){let{entriesByLevel:r,levelCoords:i}=this;n.lateral===-1?(P6(i,n.level,n.levelCoord),P6(r,n.level,[t])):P6(r[n.level],n.lateral,t),this.stackCnts[xc(t)]=n.stackCnt}findInsertion(t){let{levelCoords:n,entriesByLevel:r,strictOrder:i,stackCnts:o}=this,s=n.length,a=0,l=-1,u=-1,c=null,f=0;for(let g=0;g<s;g+=1){const v=n[g];if(!i&&v>=a+this.getEntryThickness(t))break;let w=r[g],b,y=M6(w,t.span.start,_6),S=y[0]+y[1];for(;(b=w[S])&&b.span.start<t.span.end;){let C=v+this.getEntryThickness(b);C>a&&(a=C,c=b,l=g,u=S),C===a&&(f=Math.max(f,o[xc(b)]+1)),S+=1}}let m=0;if(c)for(m=l+1;m<s&&n[m]<a;)m+=1;let p=-1;return m<s&&n[m]===a&&(p=M6(r[m],t.span.end,_6)[0]),{touchingLevel:l,touchingLateral:u,touchingEntry:c,stackCnt:f,levelCoord:a,level:m,lateral:p}}toRects(){let{entriesByLevel:t,levelCoords:n}=this,r=t.length,i=[];for(let o=0;o<r;o+=1){let s=t[o],a=n[o];for(let l of s)i.push(Object.assign(Object.assign({},l),{thickness:this.getEntryThickness(l),levelCoord:a}))}return i}}function _6(e){return e.span.end}function xc(e){return e.index+":"+e.span.start}function cIe(e){let t=[];for(let n of e){let r=[],i={span:n.span,entries:[n]};for(let o of t)O6(o.span,i.span)?i={entries:o.entries.concat(i.entries),span:dIe(o.span,i.span)}:r.push(o);r.push(i),t=r}return t}function dIe(e,t){return{start:Math.min(e.start,t.start),end:Math.max(e.end,t.end)}}function O6(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 P6(e,t,n){e.splice(t,0,n)}function M6(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),s=n(e[o]);if(t<s)i=o;else if(t>s)r=o+1;else return[o,1]}return[r,0]}function fIe(e,t){return!e||t>10?Ft({weekday:"short"}):t>1?Ft({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):Ft({weekday:"long"})}const nq="fc-col-header-cell";function rq(e){return e.text}class pIe extends Ct{render(){let{dateEnv:t,options:n,theme:r,viewApi:i}=this.context,{props:o}=this,{date:s,dateProfile:a}=o,l=A6(s,o.todayRange,null,a),u=[nq].concat(jb(l,r)),c=t.format(s,o.dayHeaderFormat),f=!l.isDisabled&&o.colCnt>1?Wf(this.context,s):{},m=Object.assign(Object.assign(Object.assign({date:t.toDate(s),view:i},o.extraRenderProps),{text:c}),l);return H(Tr,{elTag:"th",elClasses:u,elAttrs:Object.assign({role:"columnheader",colSpan:o.colSpan,"data-date":l.isDisabled?void 0:xm(s)},o.extraDataAttrs),renderProps:m,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:rq,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},p=>H("div",{className:"fc-scrollgrid-sync-inner"},!l.isDisabled&&H(p,{elTag:"a",elAttrs:f,elClasses:["fc-col-header-cell-cushion",o.isSticky&&"fc-sticky"]})))}}const hIe=Ft({weekday:"long"});class mIe extends Ct{render(){let{props:t}=this,{dateEnv:n,theme:r,viewApi:i,options:o}=this.context,s=er(new Date(2592e5),t.dow),a={dow:t.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},l=n.format(s,t.dayHeaderFormat),u=Object.assign(Object.assign(Object.assign(Object.assign({date:s},a),{view:i}),t.extraRenderProps),{text:l});return H(Tr,{elTag:"th",elClasses:[nq,...jb(a,r),...t.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:t.colSpan},t.extraDataAttrs),renderProps:u,generatorName:"dayHeaderContent",customGenerator:o.dayHeaderContent,defaultGenerator:rq,classNameGenerator:o.dayHeaderClassNames,didMount:o.dayHeaderDidMount,willUnmount:o.dayHeaderWillUnmount},c=>H("div",{className:"fc-scrollgrid-sync-inner"},H(c,{elTag:"a",elClasses:["fc-col-header-cell-cushion",t.isSticky&&"fc-sticky"],elAttrs:{"aria-label":n.format(s,hIe)}})))}}class Gf extends Ai{constructor(t,n){super(t,n),this.initialNowDate=Cm(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=jl(this.initialNowDate,new Date().valueOf()-this.initialNowQueriedMs),i=n.dateEnv.startOf(r,t.unit),o=n.dateEnv.add(i,yt(1,t.unit)),s=o.valueOf()-r.valueOf();return s=Math.min(1e3*60*60*24,s),{currentState:{nowDate:i,todayRange:iq(i)},nextState:{nowDate:o,todayRange:iq(o)},waitMs:s}}setTimeout(){let{nextState:t,waitMs:n}=this.computeTiming();this.timeoutId=setTimeout(()=>{this.setState(t,()=>{this.setTimeout()})},n)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}Gf.contextType=ha;function iq(e){let t=Kt(e),n=er(t,1);return{start:t,end:n}}class D6 extends Ct{constructor(){super(...arguments),this.createDayHeaderFormatter=Ke(gIe)}render(){let{context:t}=this,{dates:n,dateProfile:r,datesRepDistinctDays:i,renderIntro:o}=this.props,s=this.createDayHeaderFormatter(t.options.dayHeaderFormat,i,n.length);return H(Gf,{unit:"day"},(a,l)=>H("tr",{role:"row"},o&&o("day"),n.map(u=>i?H(pIe,{key:u.toISOString(),date:u,dateProfile:r,todayRange:l,colCnt:n.length,dayHeaderFormat:s}):H(mIe,{key:u.getUTCDay(),dow:u.getUTCDay(),dayHeaderFormat:s}))))}}function gIe(e,t,n){return e||fIe(t,n)}class oq{constructor(t,n){let r=t.start,{end:i}=t,o=[],s=[],a=-1;for(;r<i;)n.isHiddenDay(r)?o.push(a+.5):(a+=1,o.push(a),s.push(r)),r=er(r,1);this.dates=s,this.indices=o,this.cnt=s.length}sliceRange(t){let n=this.getDateDayIndex(t.start),r=this.getDateDayIndex(er(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(Fl(this.dates[0],t));return r<0?n[0]-1:r>=n.length?n[n.length-1]+1:n[r]}}class sq{constructor(t,n){let{dates:r}=t,i,o,s;if(n){for(o=r[0].getUTCDay(),i=1;i<r.length&&r[i].getUTCDay()!==o;i+=1);s=Math.ceil(r.length/i)}else s=1,i=r.length;this.rowCnt=s,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:s}=r,a=o;for(;a<=s;){let l=Math.floor(a/n),u=Math.min((l+1)*n,s+1);i.push({row:l,firstCol:a%n,lastCol:(u-1)%n,isStart:r.isStart&&a===o,isEnd:r.isEnd&&u-1===s}),a=u}}return i}}class aq{constructor(){this.sliceBusinessHours=Ke(this._sliceBusinessHours),this.sliceDateSelection=Ke(this._sliceDateSpan),this.sliceEventStore=Ke(this._sliceEventStore),this.sliceEventDrag=Ke(this._sliceInteraction),this.sliceEventResize=Ke(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(t,n,r,i,...o){let{eventUiBases:s}=t,a=this.sliceEventStore(t.eventStore,s,n,r,...o);return{dateSelectionSegs:this.sliceDateSelection(t.dateSelection,n,r,s,i,...o),businessHourSegs:this.sliceBusinessHours(t.businessHours,n,r,i,...o),fgEventSegs:a.fg,bgEventSegs:a.bg,eventDrag:this.sliceEventDrag(t.eventDrag,s,n,r,...o),eventResize:this.sliceEventResize(t.eventResize,s,n,r,...o),eventSelection:t.eventSelection}}sliceNowDate(t,n,r,i,...o){return this._sliceDateSpan({range:{start:t,end:jl(t,1)},allDay:!1},n,r,{},i,...o)}_sliceBusinessHours(t,n,r,i,...o){return t?this._sliceEventStore($m(t,zb(n,!!r),i),{},n,r,...o).bg:[]}_sliceEventStore(t,n,r,i,...o){if(t){let s=S6(t,n,zb(r,!!i),i);return{bg:this.sliceEventRanges(s.bg,o),fg:this.sliceEventRanges(s.fg,o)}}return{bg:[],fg:[]}}_sliceInteraction(t,n,r,i,...o){if(!t)return null;let s=S6(t.mutatedEvents,n,zb(r,!!i),i);return{segs:this.sliceEventRanges(s.fg,o),affectedInstances:t.affectedEvents.instances,isEvent:t.isEvent}}_sliceDateSpan(t,n,r,i,o,...s){if(!t)return[];let a=zb(n,!!r),l=ga(t.range,a);if(l){t=Object.assign(Object.assign({},t),{range:l});let u=GDe(t,i,o),c=this.sliceRange(t.range,...s);for(let f of c)f.eventRange=u;return c}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:er(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 zb(e,t){let n=e.activeRange;return t?n:{start:jl(n.start,e.slotMinTime.milliseconds),end:jl(n.end,e.slotMaxTime.milliseconds-864e5)}}const Bb=/^(visible|hidden)$/;class lq extends Ct{constructor(){super(...arguments),this.handleEl=t=>{this.el=t,ma(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")),H("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(Bb.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(Bb.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 Bb.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return Bb.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class xa{constructor(t){this.masterCallback=t,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(n,r)=>{let{depths:i,currentMap:o}=this,s=!1,a=!1;n!==null?(s=r in o,o[r]=n,i[r]=(i[r]||0)+1,a=!0):(i[r]-=1,i[r]||(delete o[r],delete this.callbackMap[r],s=!0)),this.masterCallback&&(s&&this.masterCallback(null,String(r)),a&&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 FMe(this.currentMap,t,n,r)}getAll(){return u6(this.currentMap)}}function vIe(e){let t=HPe(e,".fc-scrollgrid-shrink"),n=0;for(let r of t)n=Math.max(n,XPe(r));return Math.ceil(n)}function uq(e,t){return e.liquid&&t.liquid}function yIe(e,t){return t.maxHeight!=null||uq(e,t)}function bIe(e,t,n,r){let{expandRows:i}=n;return typeof t.content=="function"?t.content(n):H("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,H(r?"thead":"tbody",{role:"presentation"},typeof t.rowContent=="function"?t.rowContent(n):t.rowContent))}function xIe(e,t){return Ll(e,t,jo)}function wIe(e,t){let n=[];for(let r of e){let i=r.span||1;for(let o=0;o<i;o+=1)n.push(H("col",{style:{width:r.width==="shrink"?SIe(t):r.width||"",minWidth:r.minWidth||""}}))}return H("colgroup",{},...n)}function SIe(e){return e??4}function CIe(e){for(let t of e)if(t.width==="shrink")return!0;return!1}function $Ie(e,t){let n=["fc-scrollgrid",t.theme.getClass("table")];return e&&n.push("fc-scrollgrid-liquid"),n}function TIe(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 I6(e){return H("div",{className:"fc-scrollgrid-sticky-shim",style:{width:e.clientWidth,minWidth:e.tableMinWidth}})}function Ub(e){let{stickyHeaderDates:t}=e;return(t==null||t==="auto")&&(t=e.height==="auto"||e.viewHeight==="auto"),t}function cq(e){let{stickyFooterScrollbar:t}=e;return(t==null||t==="auto")&&(t=e.height==="auto"||e.viewHeight==="auto"),t}class N6 extends Ct{constructor(){super(...arguments),this.processCols=Ke(t=>t,xIe),this.renderMicroColGroup=Ke(wIe),this.scrollerRefs=new xa,this.scrollerElRefs=new xa(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),s=this.renderMicroColGroup(o,n.shrinkWidth),a=$Ie(t.liquid,r);t.collapsibleWidth&&a.push("fc-scrollgrid-collapsible");let l=i.length,u=0,c,f=[],m=[],p=[];for(;u<l&&(c=i[u]).type==="header";)f.push(this.renderSection(c,s,!0)),u+=1;for(;u<l&&(c=i[u]).type==="body";)m.push(this.renderSection(c,s,!1)),u+=1;for(;u<l&&(c=i[u]).type==="footer";)p.push(this.renderSection(c,s,!0)),u+=1;let g=!JW();const v={role:"rowgroup"};return H("table",{role:"grid",className:a.join(" "),style:{height:t.height}},!!(!g&&f.length)&&H("thead",v,...f),!!(!g&&m.length)&&H("tbody",v,...m),!!(!g&&p.length)&&H("tfoot",v,...p),g&&H("tbody",v,...f,...m,...p))}renderSection(t,n,r){return"outerContent"in t?H(Vt,{key:t.key},t.outerContent):H("tr",{key:t.key,role:"presentation",className:TIe(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:s,scrollerClientWidths:a,scrollerClientHeights:l}=this.state,u=yIe(o,t),c=uq(o,t),f=o.liquid?s?"scroll":u?"auto":"hidden":"visible",m=t.key,p=bIe(t,r,{tableColGroupNode:n,tableMinWidth:"",clientWidth:!o.collapsibleWidth&&a[m]!==void 0?a[m]:null,clientHeight:l[m]!==void 0?l[m]:null,expandRows:t.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},i);return H(i?"th":"td",{ref:r.elRef,role:"presentation"},H("div",{className:`fc-scroller-harness${c?" fc-scroller-harness-liquid":""}`},H(lq,{ref:this.scrollerRefs.createRef(m),elRef:this.scrollerElRefs.createRef(m),overflowY:f,overflowX:o.liquid?"hidden":"visible",maxHeight:t.maxHeight,liquid:c,liquidIsAbsolute:!0},p)))}_handleScrollerEl(t,n){let r=EIe(this.props.sections,n);r&&ma(r.chunk.scrollerElRef,t)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return CIe(this.props.cols)?vIe(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let t=oIe(),{scrollerRefs:n,scrollerElRefs:r}=this,i=!1,o={},s={};for(let a in n.currentMap){let l=n.currentMap[a];if(l&&l.needsYScrolling()){i=!0;break}}for(let a of this.props.sections){let l=a.key,u=r.currentMap[l];if(u){let c=u.parentNode;o[l]=Math.floor(c.getBoundingClientRect().width-(i?t.y:0)),s[l]=Math.floor(c.getBoundingClientRect().height)}}return{forceYScrollbars:i,scrollerClientWidths:o,scrollerClientHeights:s}}}N6.addStateEquality({scrollerClientWidths:jo,scrollerClientHeights:jo});function EIe(e,t){for(let n of e)if(n.key===t)return n;return null}class Hb extends Ct{constructor(){super(...arguments),this.handleEl=t=>{this.el=t,t&&WW(t,this.props.seg)}}render(){const{props:t,context:n}=this,{options:r}=n,{seg:i}=t,{eventRange:o}=i,{ui:s}=o,a={event:new io(n,o.def,o.instance),view:n.viewApi,timeText:t.timeText,textColor:s.textColor,backgroundColor:s.backgroundColor,borderColor:s.borderColor,isDraggable:!t.disableDragging&&FDe(i,n),isStartResizable:!t.disableResizing&&zDe(i,n),isEndResizable:!t.disableResizing&&BDe(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 H(Tr,Object.assign({},t,{elRef:this.handleEl,elClasses:[...UDe(a),...i.eventRange.ui.classNames,...t.elClasses||[]],renderProps:a,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&&WW(this.el,this.props.seg)}}class dq extends Ct{render(){let{props:t,context:n}=this,{options:r}=n,{seg:i}=t,{ui:o}=i.eventRange,s=r.eventTimeFormat||t.defaultTimeFormat,a=Em(i,s,n,t.defaultDisplayEventTime,t.defaultDisplayEventEnd);return H(Hb,Object.assign({},t,{elTag:"a",elStyle:{borderColor:o.borderColor,backgroundColor:o.backgroundColor},elAttrs:T6(i,n),defaultGenerator:kIe,timeText:a}),(l,u)=>H(Vt,null,H(l,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:u.textColor}}),!!u.isStartResizable&&H("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!u.isEndResizable&&H("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function kIe(e){return H("div",{className:"fc-event-main-frame"},e.timeText&&H("div",{className:"fc-event-time"},e.timeText),H("div",{className:"fc-event-title-container"},H("div",{className:"fc-event-title fc-sticky"},e.event.title||H(Vt,null," "))))}const L6=e=>H(ha.Consumer,null,t=>{let{options:n}=t,r={isAxis:e.isAxis,date:t.dateEnv.toDate(e.date),view:t.viewApi};return H(Tr,Object.assign({},e,{elTag:e.elTag||"div",renderProps:r,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount}))}),AIe=Ft({day:"numeric"});class j6 extends Ct{constructor(){super(...arguments),this.refineRenderProps=kb(RIe)}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 H(Tr,Object.assign({},t,{elClasses:[...jb(i,n.theme),...t.elClasses||[]],elAttrs:Object.assign(Object.assign({},t.elAttrs),i.isDisabled?{}:{"data-date":xm(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 F6(e){return!!(e.dayCellContent||p6("dayCellContent",e))}function RIe(e){let{date:t,dateEnv:n,dateProfile:r,isMonthStart:i}=e,o=A6(t,e.todayRange,null,r),s=e.showDayNumber?n.format(t,i?e.monthStartFormat:AIe):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(t),view:e.viewApi},o),{isMonthStart:i,dayNumberText:s}),e.extraRenderProps)}class fq extends Ct{render(){let{props:t}=this,{seg:n}=t;return H(Hb,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:n.eventRange.ui.backgroundColor},defaultGenerator:_Ie,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 _Ie(e){let{title:t}=e.event;return t&&H("div",{className:"fc-event-title"},e.event.title)}function pq(e){return H("div",{className:`fc-${e}`})}const hq=e=>H(ha.Consumer,null,t=>{let{dateEnv:n,options:r}=t,{date:i}=e,o=r.weekNumberFormat||e.defaultFormat,s=n.computeWeekNumber(i),a=n.format(i,o);return H(Tr,Object.assign({},e,{renderProps:{num:s,text:a,date:i},generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:OIe,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount}))});function OIe(e){return e.text}const z6=10;class PIe extends Ct{constructor(){super(...arguments),this.state={titleId:pa()},this.handleRootEl=t=>{this.rootEl=t,this.props.elRef&&ma(this.props.elRef,t)},this.handleDocumentMouseDown=t=>{const n=qPe(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 APe(H("div",Object.assign({},r.extraAttrs,{id:r.id,className:o.join(" "),"aria-labelledby":i.titleId,ref:this.handleRootEl}),H("div",{className:"fc-popover-header "+t.getClass("popoverHeader")},H("span",{className:"fc-popover-title",id:i.titleId},r.title),H("span",{className:"fc-popover-close "+t.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),H("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=lIe(n);if(o){let s=i.getBoundingClientRect(),a=r?fa(n,".fc-scrollgrid").getBoundingClientRect().top:o.top,l=t?o.right-s.width:o.left;a=Math.max(a,z6),l=Math.min(l,document.documentElement.clientWidth-z6-s.width),l=Math.max(l,z6);let u=i.offsetParent.getBoundingClientRect();WPe(i,{top:a-u.top,left:l-u.left})}}}class MIe extends Ri{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:s}=r,a=n.format(i,t.dayPopoverFormat);return H(j6,{elRef:this.handleRootEl,date:i,dateProfile:s,todayRange:o},(l,u,c)=>H(PIe,{elRef:c.ref,id:r.id,title:a,extraClassNames:["fc-more-popover"].concat(c.className||[]),extraAttrs:c,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},F6(t)&&H(l,{elTag:"div",elClasses:["fc-more-popover-misc"]}),r.children))}queryHit(t,n,r,i){let{rootEl:o,props:s}=this;return t>=0&&t<r&&n>=0&&n<i?{dateProfile:s.dateProfile,dateSpan:Object.assign({allDay:!s.forceTimed,range:{start:s.startDate,end:s.endDate}},s.extraDateSpan),dayEl:o,rect:{left:0,top:0,right:r,bottom:i},layer:1}:null}}class mq extends Ct{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:pa()},this.handleLinkEl=t=>{this.linkEl=t,this.props.elRef&&ma(this.props.elRef,t)},this.handleClick=t=>{let{props:n,context:r}=this,{moreLinkClick:i}=r.options,o=gq(n).start;function s(a){let{def:l,instance:u,range:c}=a.eventRange;return{event:new io(r,l,u),start:r.dateEnv.toDate(c.start),end:r.dateEnv.toDate(c.end),isStart:a.isStart,isEnd:a.isEnd}}typeof i=="function"&&(i=i({date:o,allDay:!!n.allDayDate,allSegs:n.allSegs.map(s),hiddenSegs:n.hiddenSegs.map(s),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 H(ha.Consumer,null,r=>{let{viewApi:i,options:o,calendarApi:s}=r,{moreLinkText:a}=o,{moreCnt:l}=t,u=gq(t),c=typeof a=="function"?a.call(s,l):`+${l} ${a}`,f=bm(o.moreLinkHint,[l],c),m={num:l,shortText:`+${l}`,text:c,view:i};return H(Vt,null,!!t.moreCnt&&H(Tr,{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),aW(this.handleClick)),{title:f,"aria-expanded":n.isPopoverOpen,"aria-controls":n.isPopoverOpen?n.popoverId:""}),renderProps:m,generatorName:"moreLinkContent",customGenerator:o.moreLinkContent,defaultGenerator:t.defaultGenerator||DIe,classNameGenerator:o.moreLinkClassNames,didMount:o.moreLinkDidMount,willUnmount:o.moreLinkWillUnmount},t.children),n.isPopoverOpen&&H(MIe,{id:n.popoverId,startDate:u.start,endDate:u.end,dateProfile:t.dateProfile,todayRange:t.todayRange,extraDateSpan:t.extraDateSpan,parentEl:this.parentEl,alignmentEl:t.alignmentElRef?t.alignmentElRef.current:this.linkEl,alignGridTop:t.alignGridTop,forceTimed:t.forceTimed,onClose:this.handlePopoverClose},t.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=fa(this.linkEl,".fc-view-harness"))}}function DIe(e){return e.text}function gq(e){if(e.allDayDate)return{start:e.allDayDate,end:er(e.allDayDate,1)};let{hiddenSegs:t}=e;return{start:vq(t),end:NIe(t)}}function vq(e){return e.reduce(IIe).eventRange.range.start}function IIe(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function NIe(e){return e.reduce(LIe).eventRange.range.end}function LIe(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}class jIe{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 FIe extends jIe{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)}}const zIe=[],yq={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"},bq=Object.assign(Object.assign({},yq),{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 BIe(e){let t=e.length>0?e[0].code:"en",n=zIe.concat(e),r={en:bq};for(let i of n)r[i.code]=i;return{map:r,defaultCode:t}}function xq(e,t){return typeof e=="object"&&!Array.isArray(e)?wq(e.code,[e.code],e):UIe(e,t)}function UIe(e,t){let n=[].concat(e||[]),r=HIe(n,t)||bq;return wq(e,n,r)}function HIe(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 wq(e,t,n){let r=l6([yq,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 hs(e){return{id:mc(),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 VIe(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 s of o){const a=s.name,l=n[a];l===void 0?(n[a]=s.id,i(s.deps),r=qIe(r,s)):l!==s.id&&console.warn(`Duplicate plugin '${a}'`)}}return e&&i(e),i(t),r}function WIe(){let e=[],t=[],n;return(r,i)=>((!n||!Ll(r,e)||!Ll(i,t))&&(n=VIe(r,i)),e=r,t=i,n)}function qIe(e,t){return{premiumReleaseDate:GIe(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 GIe(e,t){return e===void 0?t:t===void 0?e:new Date(Math.max(e.valueOf(),t.valueOf()))}class Ul extends Sm{}Ul.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},Ul.prototype.baseIconClass="fc-icon",Ul.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"},Ul.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},Ul.prototype.iconOverrideOption="buttonIcons",Ul.prototype.iconOverrideCustomButtonOption="icon",Ul.prototype.iconOverridePrefix="fc-icon-";function YIe(e,t){let n={},r;for(r in e)B6(r,n,e,t);for(r in t)B6(r,n,e,t);return n}function B6(e,t,n,r){if(t[e])return t[e];let i=KIe(e,t,n,r);return i&&(t[e]=i),i}function KIe(e,t,n,r){let i=n[e],o=r[e],s=c=>i&&i[c]!==null?i[c]:o&&o[c]!==null?o[c]:null,a=s("component"),l=s("superType"),u=null;if(l){if(l===e)throw new Error("Can't have a custom view type that references itself");u=B6(l,t,n,r)}return!a&&u&&(a=u.component),a?{type:e,component:a,defaults:Object.assign(Object.assign({},u?u.defaults:{}),i?i.rawOptions:{}),overrides:Object.assign(Object.assign({},u?u.overrides:{}),o?o.rawOptions:{})}:null}function Sq(e){return yc(e,ZIe)}function ZIe(e){let t=typeof e=="function"?{component:e}:e,{component:n}=t;return t.content?n=Cq(t):n&&!(n.prototype instanceof Ct)&&(n=Cq(Object.assign(Object.assign({},t),{content:n}))),{superType:t.type,component:n,rawOptions:t}}function Cq(e){return t=>H(ha.Consumer,null,n=>H(Tr,{elTag:"div",elClasses:AW(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 QIe(e,t,n,r){let i=Sq(e),o=Sq(t.views),s=YIe(i,o);return yc(s,a=>JIe(a,o,t,n,r))}function JIe(e,t,n,r,i){let o=e.overrides.duration||e.defaults.duration||r.duration||n.duration,s=null,a="",l="",u={};if(o&&(s=XIe(o),s)){let m=n6(s);a=m.unit,m.value===1&&(l=a,u=t[a]?t[a].rawOptions:{})}let c=m=>{let p=m.buttonText||{},g=e.defaults.buttonTextKey;return g!=null&&p[g]!=null?p[g]:p[e.type]!=null?p[e.type]:p[l]!=null?p[l]:null},f=m=>{let p=m.buttonHints||{},g=e.defaults.buttonTextKey;return g!=null&&p[g]!=null?p[g]:p[e.type]!=null?p[e.type]:p[l]!=null?p[l]:null};return{type:e.type,component:e.component,duration:s,durationUnit:a,singleUnit:l,optionDefaults:e.defaults,optionOverrides:Object.assign(Object.assign({},u),e.overrides),buttonTextOverride:c(r)||c(n)||e.overrides.buttonText,buttonTextDefault:c(i)||e.defaults.buttonText||c(wm)||e.type,buttonTitleOverride:f(r)||f(n)||e.overrides.buttonHint,buttonTitleDefault:f(i)||e.defaults.buttonHint||f(wm)}}let $q={};function XIe(e){let t=JSON.stringify(e),n=$q[t];return n===void 0&&(n=yt(e),$q[t]=n),n}function eNe(e,t){switch(t.type){case"CHANGE_VIEW_TYPE":e=t.viewType}return e}function tNe(e,t){switch(t.type){case"SET_OPTION":return Object.assign(Object.assign({},e),{[t.optionName]:t.rawOptionValue});default:return e}}function nNe(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 rNe(e,t,n){let r=t?t.activeRange:null;return Eq({},cNe(e,n),r,n)}function iNe(e,t,n,r){let i=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return Eq(e,t.sources,i,r);case"REMOVE_EVENT_SOURCE":return sNe(e,t.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?kq(e,i,r):e;case"FETCH_EVENT_SOURCES":return U6(e,t.sourceIds?CW(t.sourceIds):Aq(e,r),i,t.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return uNe(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}}function oNe(e,t,n){let r=t?t.activeRange:null;return U6(e,Aq(e,n),r,!0,n)}function Tq(e){for(let t in e)if(e[t].isFetching)return!0;return!1}function Eq(e,t,n,r){let i={};for(let o of t)i[o.sourceId]=o;return n&&(i=kq(i,n,r)),Object.assign(Object.assign({},e),i)}function sNe(e,t){return Uf(e,n=>n.sourceId!==t)}function kq(e,t,n){return U6(e,Uf(e,r=>aNe(r,t,n)),t,!1,n)}function aNe(e,t,n){return Rq(e,n)?!n.options.lazyFetching||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end:!e.latestFetchId}function U6(e,t,n,r,i){let o={};for(let s in e){let a=e[s];t[s]?o[s]=lNe(a,n,r,i):o[s]=a}return o}function lNe(e,t,n,r){let{options:i,calendarApi:o}=r,s=r.pluginHooks.eventSourceDefs[e.sourceDefId],a=mc();return s.fetch({eventSource:e,range:t,isRefetch:n,context:r},l=>{let{rawEvents:u}=l;i.eventSourceSuccess&&(u=i.eventSourceSuccess.call(o,u,l.response)||u),e.success&&(u=e.success.call(o,u,l.response)||u),r.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:a,fetchRange:t,rawEvents:u})},l=>{let u=!1;i.eventSourceFailure&&(i.eventSourceFailure.call(o,l),u=!0),e.failure&&(e.failure(l),u=!0),u||console.warn(l.message,l),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:a,fetchRange:t,error:l})}),Object.assign(Object.assign({},e),{isFetching:!0,latestFetchId:a})}function uNe(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 Aq(e,t){return Uf(e,n=>Rq(n,t))}function cNe(e,t){let n=jW(t),r=[].concat(e.eventSources||[]),i=[];e.initialEvents&&r.unshift(e.initialEvents),e.events&&r.unshift(e.events);for(let o of r){let s=LW(o,t,n);s&&i.push(s)}return i}function Rq(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function dNe(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function fNe(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function pNe(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 hNe(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 mNe(e,t,n,r,i){let o=e.headerToolbar?_q(e.headerToolbar,e,t,n,r,i):null,s=e.footerToolbar?_q(e.footerToolbar,e,t,n,r,i):null;return{header:o,footer:s}}function _q(e,t,n,r,i,o){let s={},a=[],l=!1;for(let u in e){let c=e[u],f=gNe(c,t,n,r,i,o);s[u]=f.widgets,a.push(...f.viewsWithButtons),l=l||f.hasTitle}return{sectionWidgets:s,viewsWithButtons:a,hasTitle:l}}function gNe(e,t,n,r,i,o){let s=t.direction==="rtl",a=t.customButtons||{},l=n.buttonText||{},u=t.buttonText||{},c=n.buttonHints||{},f=t.buttonHints||{},m=e?e.split(" "):[],p=[],g=!1;return{widgets:m.map(w=>w.split(",").map(b=>{if(b==="title")return g=!0,{buttonName:b};let y,S,C,T,E,A;if(y=a[b])C=_=>{y.click&&y.click.call(_.target,_,_.target)},(T=r.getCustomButtonIconClass(y))||(T=r.getIconClass(b,s))||(E=y.text),A=y.hint||y.text;else if(S=i[b]){p.push(b),C=()=>{o.changeView(b)},(E=S.buttonTextOverride)||(T=r.getIconClass(b,s))||(E=S.buttonTextDefault);let _=S.buttonTextOverride||S.buttonTextDefault;A=bm(S.buttonTitleOverride||S.buttonTitleDefault||t.viewHint,[_,b],_)}else if(o[b])if(C=()=>{o[b]()},(E=l[b])||(T=r.getIconClass(b,s))||(E=u[b]),b==="prevYear"||b==="nextYear"){let _=b==="prevYear"?"prev":"next";A=bm(c[_]||f[_],[u.year||"year","year"],u[b])}else A=_=>bm(c[b]||f[b],[u[_]||_,_],u[b]);return{buttonName:b,buttonClick:C,buttonIcon:T,buttonText:E,buttonHint:A}})),viewsWithButtons:p,hasTitle:g}}class vNe{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 yNe=hs({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})}}]}),bNe=hs({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;YDe(i.bind(null,KW(e.range,r)),o=>t({rawEvents:o}),n)}}]}),xNe=hs({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:ne,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=wNe(r,e.range,e.context);KDe(r.method,r.url,i).then(([o,s])=>{t({rawEvents:o,response:s})},n)}}]});function wNe(e,t,n){let{dateEnv:r,options:i}=n,o,s,a,l,u={};return o=e.startParam,o==null&&(o=i.startParam),s=e.endParam,s==null&&(s=i.endParam),a=e.timeZoneParam,a==null&&(a=i.timeZoneParam),typeof e.extraParams=="function"?l=e.extraParams():l=e.extraParams||{},Object.assign(u,l),u[o]=r.formatIso(t.start),u[s]=r.formatIso(t.end),r.timeZone!=="local"&&(u[a]=r.timeZone),u}const SNe=hs({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=rMe(e.endTime,e.startTime)),{allDayGuess:!e.startTime&&!e.endTime,duration:r,typeData:n}}return null},expand(e,t,n){let r=ga(t,{start:e.startRecur,end:e.endRecur});return r?CNe(e.daysOfWeek,e.startTime,r,n):[]}}],eventRefiners:{daysOfWeek:ne,startTime:yt,endTime:yt,duration:yt,startRecur:ne,endRecur:ne}});function CNe(e,t,n,r){let i=e?CW(e):null,o=Kt(n.start),s=n.end,a=[];for(;o<s;){let l;(!i||i[o.getUTCDay()])&&(t?l=r.add(o,t):l=o,a.push(l)),o=er(o,1)}return a}const $Ne=hs({name:"change-handler",optionChangeHandlers:{events(e,t){Oq([e],t)},eventSources:Oq}});function Oq(e,t){let n=u6(t.getCurrentData().eventSources);if(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]});return}let r=[];for(let i of e){let o=!1;for(let s=0;s<n.length;s+=1)if(n[s]._raw===i){n.splice(s,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 TNe(e,t){t.emitter.trigger("datesSet",Object.assign(Object.assign({},KW(e.activeRange,t.dateEnv)),{view:t.viewApi}))}function ENe(e,t){let{emitter:n}=t;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",w6(e,t))}const kNe=[yNe,bNe,xNe,SNe,$Ne,hs({name:"misc",isLoadingFuncs:[e=>Tq(e.eventSources)],propSetHandlers:{dateProfile:TNe,eventStore:ENe}})];class ANe{constructor(t,n){this.runTaskOption=t,this.drainedOption=n,this.queue=[],this.delayedRunner=new X$(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 RNe(e,t,n){let r;return/^(year|month)$/.test(e.currentRangeUnit)?r=e.currentRange:r=e.activeRange,n.formatRange(r.start,r.end,Ft(t.titleFormat||_Ne(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}function _Ne(e){let{currentRangeUnit:t}=e;if(t==="year")return{year:"numeric"};if(t==="month")return{year:"numeric",month:"long"};let n=Eb(e.currentRange.start,e.currentRange.end);return n!==null&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class ONe{constructor(t){this.computeCurrentViewData=Ke(this._computeCurrentViewData),this.organizeRawLocales=Ke(BIe),this.buildLocale=Ke(xq),this.buildPluginHooks=WIe(),this.buildDateEnv=Ke(PNe),this.buildTheme=Ke(MNe),this.parseToolbars=Ke(mNe),this.buildViewSpecs=Ke(QIe),this.buildDateProfileGenerator=kb(DNe),this.buildViewApi=Ke(INe),this.buildViewUiProps=kb(jNe),this.buildEventUiBySource=Ke(NNe,jo),this.buildEventUiBases=Ke(LNe),this.parseContextBusinessHours=kb(FNe),this.buildTitle=Ke(RNe),this.emitter=new TDe,this.actionRunner=new ANe(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=m=>{this.actionRunner.request(m)},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 s=sDe(r.calendarOptions,r.dateEnv),a=o.dateProfileGenerator.build(s);va(a.activeRange,s)||(s=a.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 m of r.pluginHooks.contextInit)m(l);let u=rNe(r.calendarOptions,a,l),c={dynamicOptionOverrides:n,currentViewType:i,currentDate:s,dateProfile:a,businessHours:this.parseContextBusinessHours(l),eventSources:u,eventUiBases:{},eventStore:ya(),renderableEventStore:ya(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(l).selectionConfig},f=Object.assign(Object.assign({},l),c);for(let m of r.pluginHooks.reducers)Object.assign(c,m(null,null,f));H6(c,l)&&this.emitter.trigger("loading",!0),this.state=c,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=tNe(r.dynamicOptionOverrides,t),s=this.computeOptionsData(n.optionOverrides,o,n.calendarApi),a=eNe(r.currentViewType,t),l=this.computeCurrentViewData(a,s,n.optionOverrides,o);n.calendarApi.currentDataManager=this,i.setThisContext(n.calendarApi),i.setOptions(l.options);let u={dateEnv:s.dateEnv,options:s.calendarOptions,pluginHooks:s.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:i,getCurrentData:this.getCurrentData},{currentDate:c,dateProfile:f}=r;this.data&&this.data.dateProfileGenerator!==l.dateProfileGenerator&&(f=l.dateProfileGenerator.build(c)),c=oDe(c,t),f=nNe(f,t,c,l.dateProfileGenerator),(t.type==="PREV"||t.type==="NEXT"||!va(f.currentRange,c))&&(c=f.currentRange.start);let m=iNe(r.eventSources,t,f,u),p=xDe(r.eventStore,t,m,f,u),v=Tq(m)&&!l.options.progressiveEventRendering&&r.renderableEventStore||p,{eventUiSingleBase:w,selectionConfig:b}=this.buildViewUiProps(u),y=this.buildEventUiBySource(m),S=this.buildEventUiBases(v.defs,w,y),C={dynamicOptionOverrides:o,currentViewType:a,currentDate:c,dateProfile:f,eventSources:m,eventStore:p,renderableEventStore:v,selectionConfig:b,eventUiBases:S,businessHours:this.parseContextBusinessHours(u),dateSelection:dNe(r.dateSelection,t),eventSelection:fNe(r.eventSelection,t),eventDrag:pNe(r.eventDrag,t),eventResize:hNe(r.eventResize,t)},T=Object.assign(Object.assign({},u),C);for(let _ of s.pluginHooks.reducers)Object.assign(C,_(r,t,T));let E=H6(r,u),A=H6(C,u);!E&&A?i.trigger("loading",!0):E&&!A&&i.trigger("loading",!1),this.state=C,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),s=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),a=i.pluginHooks.optionChangeHandlers,l=r&&r.calendarOptions,u=i.calendarOptions;if(l&&l!==u){l.timeZone!==u.timeZone&&(n.eventSources=s.eventSources=oNe(s.eventSources,n.dateProfile,s),n.eventStore=s.eventStore=BW(s.eventStore,r.dateEnv,s.dateEnv),n.renderableEventStore=s.renderableEventStore=BW(s.renderableEventStore,r.dateEnv,s.dateEnv));for(let c in a)(this.optionsForHandling.indexOf(c)!==-1||l[c]!==u[c])&&a[c](u[c],s)}this.optionsForHandling=[],t.onData&&t.onData(s)}computeOptionsData(t,n,r){if(!this.optionsForRefining.length&&t===this.stableOptionOverrides&&n===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:i,pluginHooks:o,localeDefaults:s,availableLocaleData:a,extra:l}=this.processRawCalendarOptions(t,n);Pq(l);let u=this.buildDateEnv(i.timeZone,i.locale,i.weekNumberCalculation,i.firstDay,i.weekText,o,a,i.defaultRangeSeparator),c=this.buildViewSpecs(o.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,s),f=this.buildTheme(i,o),m=this.parseToolbars(i,this.stableOptionOverrides,f,c,r);return this.stableCalendarOptionsData={calendarOptions:i,pluginHooks:o,dateEnv:u,viewSpecs:c,theme:f,toolbarConfig:m,localeDefaults:s,availableRawLocales:a.map}}processRawCalendarOptions(t,n){let{locales:r,locale:i}=s6([wm,t,n]),o=this.organizeRawLocales(r),s=o.map,a=this.buildLocale(i||o.defaultCode,s).options,l=this.buildPluginHooks(t.plugins||[],kNe),u=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xW),wW),SW),l.listenerRefiners),l.optionRefiners),c={},f=s6([wm,a,t,n]),m={},p=this.currentCalendarOptionsInput,g=this.currentCalendarOptionsRefined,v=!1;for(let w in f)this.optionsForRefining.indexOf(w)===-1&&(f[w]===p[w]||gc[w]&&w in p&&gc[w](p[w],f[w]))?m[w]=g[w]:u[w]?(m[w]=u[w](f[w]),v=!0):c[w]=p[w];return v&&(this.currentCalendarOptionsInput=f,this.currentCalendarOptionsRefined=m,this.stableOptionOverrides=t,this.stableDynamicOptionOverrides=n),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:l,availableLocaleData:o,localeDefaults:a,extra:c}}_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:s,extra:a}=this.processRawViewOptions(o,n.pluginHooks,n.localeDefaults,r,i);Pq(a);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:s.slotMinTime,slotMaxTime:s.slotMaxTime,showNonCurrentDates:s.showNonCurrentDates,dayCount:s.dayCount,dateAlignment:s.dateAlignment,dateIncrement:s.dateIncrement,hiddenDays:s.hiddenDays,weekends:s.weekends,nowInput:s.now,validRangeInput:s.validRange,visibleRangeInput:s.visibleRange,fixedWeekCount:s.fixedWeekCount}),u=this.buildViewApi(t,this.getCurrentData,n.dateEnv);return{viewSpec:o,options:s,dateProfileGenerator:l,viewApi:u}}processRawViewOptions(t,n,r,i,o){let s=s6([wm,t.optionDefaults,r,i,t.optionOverrides,o]),a=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xW),wW),SW),IMe),n.listenerRefiners),n.optionRefiners),l={},u=this.currentViewOptionsInput,c=this.currentViewOptionsRefined,f=!1,m={};for(let p in s)s[p]===u[p]||gc[p]&&gc[p](s[p],u[p])?l[p]=c[p]:(s[p]===this.currentCalendarOptionsInput[p]||gc[p]&&gc[p](s[p],this.currentCalendarOptionsInput[p])?p in this.currentCalendarOptionsRefined&&(l[p]=this.currentCalendarOptionsRefined[p]):a[p]?l[p]=a[p](s[p]):m[p]=s[p],f=!0);return f&&(this.currentViewOptionsInput=s,this.currentViewOptionsRefined=l),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:m}}}function PNe(e,t,n,r,i,o,s,a){let l=xq(t||s.defaultCode,s.map);return new WMe({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:o.namedTimeZonedImpl,locale:l,weekNumberCalculation:n,firstDay:r,weekText:i,cmdFormatter:o.cmdFormatter,defaultSeparator:a})}function MNe(e,t){let n=t.themeClasses[e.themeSystem]||Ul;return new n(e)}function DNe(e){let t=e.dateProfileGeneratorClass||OW;return new t(e)}function INe(e,t,n){return new vNe(e,t,n)}function NNe(e){return yc(e,t=>t.ui)}function LNe(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 jNe(e){let{options:t}=e;return{eventUiSingleBase:Lb({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:Lb({constraint:t.selectConstraint,overlap:typeof t.selectOverlap=="boolean"?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function H6(e,t){for(let n of t.pluginHooks.isLoadingFuncs)if(n(e))return!0;return!1}function FNe(e){return RDe(e.options.businessHours,e)}function Pq(e,t){for(let n in e)console.warn(`Unknown option '${n}'`+(t?` for view '${t}'`:""))}class zNe extends Ct{render(){let t=this.props.widgetGroups.map(n=>this.renderWidgetGroup(n));return H("div",{className:"fc-toolbar-chunk"},...t)}renderWidgetGroup(t){let{props:n}=this,{theme:r}=this.context,i=[],o=!0;for(let s of t){let{buttonName:a,buttonClick:l,buttonText:u,buttonIcon:c,buttonHint:f}=s;if(a==="title")o=!1,i.push(H("h2",{className:"fc-toolbar-title",id:n.titleId},n.title));else{let m=a===n.activeButton,p=!n.isTodayEnabled&&a==="today"||!n.isPrevEnabled&&a==="prev"||!n.isNextEnabled&&a==="next",g=[`fc-${a}-button`,r.getClass("button")];m&&g.push(r.getClass("buttonActive")),i.push(H("button",{type:"button",title:typeof f=="function"?f(n.navUnit):f,disabled:p,"aria-pressed":m,className:g.join(" "),onClick:l},u||(c?H("span",{className:c,role:"img"}):"")))}}if(i.length>1){let s=o&&r.getClass("buttonGroup")||"";return H("div",{className:s},...i)}return i[0]}}class Mq extends Ct{render(){let{model:t,extraClassName:n}=this.props,r=!1,i,o,s=t.sectionWidgets,a=s.center;return s.left?(r=!0,i=s.left):i=s.start,s.right?(r=!0,o=s.right):o=s.end,H("div",{className:[n||"","fc-toolbar",r?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",i||[]),this.renderSection("center",a||[]),this.renderSection("end",o||[]))}renderSection(t,n){let{props:r}=this;return H(zNe,{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 BNe extends Ct{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=t=>{this.el=t,ma(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="",s="";return r?n.availableWidth!==null?o=n.availableWidth/r:s=`${1/r*100}%`:o=t.height||"",H("div",{"aria-labelledby":t.labeledById,ref:this.handleEl,className:i.join(" "),style:{height:o,paddingBottom:s}},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 UNe extends XW{constructor(t){super(t),this.handleSegClick=(n,r)=>{let{component:i}=this,{context:o}=i,s=C6(r);if(s&&i.isValidSegDownEl(n.target)){let a=fa(n.target,".fc-event-forced-url"),l=a?a.querySelector("a[href]").href:"";o.emitter.trigger("eventClick",{el:r,event:new io(i.context,s.eventRange.def,s.eventRange.instance),jsEvent:n,view:o.viewApi}),l&&!n.defaultPrevented&&(window.location.href=l)}},this.destroy=sW(t.el,"click",".fc-event",this.handleSegClick)}}class HNe extends XW{constructor(t){super(t),this.handleEventElRemove=n=>{n===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(n,r)=>{C6(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=YPe(t.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(t,n,r){let{component:i}=this,{context:o}=i,s=C6(r);(!n||i.isValidSegDownEl(n.target))&&o.emitter.trigger(t,{el:r,event:new io(o,s.eventRange.def,s.eventRange.instance),jsEvent:n,view:o.viewApi})}}class VNe extends bc{constructor(){super(...arguments),this.buildViewContext=Ke(YMe),this.buildViewPropTransformers=Ke(qNe),this.buildToolbarProps=Ke(WNe),this.headerRef=pr(),this.footerRef=pr(),this.interactionsStore={},this.state={viewLabelId:pa()},this.registerInteractiveComponent=(t,n)=>{let r=JDe(t,n),s=[UNe,HNe].concat(this.props.pluginHooks.componentInteractions).map(a=>new a(r));this.interactionsStore[t.uid]=s,eq[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 eq[t.uid]},this.resizeRunner=new X$(()=>{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,Cm(t.options.now,t.dateEnv),t.viewTitle),o=!1,s="",a;t.isHeightAuto||t.forPrint?s="":r.height!=null?o=!0:r.contentHeight!=null?s=r.contentHeight:a=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),u=n.header&&n.header.hasTitle?this.state.viewLabelId:void 0;return H(ha.Provider,{value:l},n.header&&H(Mq,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:u},i)),H(BNe,{liquid:o,height:s,aspectRatio:a,labeledById:u},this.renderView(t),this.buildAppendContent()),n.footer&&H(Mq,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 H(Vt,{},...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 a of o)Object.assign(i,a.transform(i,t));let s=r.component;return H(s,Object.assign({},i))}}function WNe(e,t,n,r,i,o){let s=n.build(i,void 0,!1),a=n.buildPrev(t,r,!1),l=n.buildNext(t,r,!1);return{title:o,activeButton:e.type,navUnit:e.singleUnit,isTodayEnabled:s.isValid&&!va(t.currentRange,i),isPrevEnabled:a.isValid,isNextEnabled:l.isValid}}function qNe(e){return e.map(t=>new t)}class GNe extends XDe{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;Mb(()=>{vm(H(QDe,{options:r.calendarOptions,theme:r.theme,emitter:r.emitter},(i,o,s,a)=>(this.setClassNames(i),this.setHeight(o),H(kW.Provider,{value:this.customContentRenderId},H(VNe,Object.assign({isHeightAuto:s,forPrint:a},r))))),this.el)})}else this.isRendered&&(this.isRendered=!1,vm(null,this.el),this.setClassNames([]),this.setHeight(""))},NPe(t),this.el=t,this.renderRunner=new X$(this.handleRenderRequest),new ONe({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(){Mb(()=>{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(!Ll(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){iW(this.el,"height",t)}}const YNe=parseInt(String(re.version).split(".")[0])<18;class Dq extends R.Component{constructor(){super(...arguments),this.elRef=R.createRef(),this.isUpdating=!1,this.isUnmounting=!1,this.state={customRenderingMap:new Map},this.requestResize=()=>{this.isUnmounting||(this.cancelResize(),this.resizeId=requestAnimationFrame(()=>{this.doResize()}))}}render(){const t=[];for(const n of this.state.customRenderingMap.values())t.push(re.createElement(KNe,{key:n.id,customRendering:n}));return re.createElement("div",{ref:this.elRef},t)}componentDidMount(){this.isUnmounting=!1;const t=new FIe;this.handleCustomRendering=t.handle.bind(t),this.calendar=new GNe(this.elRef.current,Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.calendar.render();let n;t.subscribe(r=>{const i=Date.now(),o=!n;(YNe||o||this.isUpdating||this.isUnmounting||i-n<100?Iq:yu.flushSync)(()=>{this.setState({customRenderingMap:r},()=>{n=i,o?this.doResize():this.requestResize()})})})}componentDidUpdate(){this.isUpdating=!0,this.calendar.resetOptions(Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.isUpdating=!1}componentWillUnmount(){this.isUnmounting=!0,this.cancelResize(),this.calendar.destroy()}doResize(){this.calendar.updateSize()}cancelResize(){this.resizeId!==void 0&&(cancelAnimationFrame(this.resizeId),this.resizeId=void 0)}getApi(){return this.calendar}}Dq.act=Iq;class KNe extends R.PureComponent{render(){const{customRendering:t}=this.props,{generatorMeta:n}=t,r=typeof n=="function"?n(t.renderProps):n;return yu.createPortal(r,t.containerEl)}}function Iq(e){e()}class ZNe extends Ct{constructor(){super(...arguments),this.state={textId:pa()}}render(){let{theme:t,dateEnv:n,options:r,viewApi:i}=this.context,{cellId:o,dayDate:s,todayRange:a}=this.props,{textId:l}=this.state,u=A6(s,a),c=r.listDayFormat?n.format(s,r.listDayFormat):"",f=r.listDaySideFormat?n.format(s,r.listDaySideFormat):"",m=Object.assign({date:n.toDate(s),view:i,textId:l,text:c,sideText:f,navLinkAttrs:Wf(this.context,s),sideNavLinkAttrs:Wf(this.context,s,"day",!1)},u);return H(Tr,{elTag:"tr",elClasses:["fc-list-day",...jb(u,t)],elAttrs:{"data-date":xm(s)},renderProps:m,generatorName:"dayHeaderContent",customGenerator:r.dayHeaderContent,defaultGenerator:QNe,classNameGenerator:r.dayHeaderClassNames,didMount:r.dayHeaderDidMount,willUnmount:r.dayHeaderWillUnmount},p=>H("th",{scope:"colgroup",colSpan:3,id:o,"aria-labelledby":l},H(p,{elTag:"div",elClasses:["fc-list-day-cushion",t.getClass("tableCellShaded")]})))}}function QNe(e){return H(Vt,null,e.text&&H("a",Object.assign({id:e.textId,className:"fc-list-day-text"},e.navLinkAttrs),e.text),e.sideText&&H("a",Object.assign({"aria-hidden":!0,className:"fc-list-day-side-text"},e.sideNavLinkAttrs),e.sideText))}const JNe=Ft({hour:"numeric",minute:"2-digit",meridiem:"short"});class XNe extends Ct{render(){let{props:t,context:n}=this,{options:r}=n,{seg:i,timeHeaderId:o,eventHeaderId:s,dateHeaderId:a}=t,l=r.eventTimeFormat||JNe;return H(Hb,Object.assign({},t,{elTag:"tr",elClasses:["fc-list-event",i.eventRange.def.url&&"fc-event-forced-url"],defaultGenerator:()=>eLe(i,n),seg:i,timeText:"",disableDragging:!0,disableResizing:!0}),(u,c)=>H(Vt,null,tLe(i,l,n,o,a),H("td",{"aria-hidden":!0,className:"fc-list-event-graphic"},H("span",{className:"fc-list-event-dot",style:{borderColor:c.borderColor||c.backgroundColor}})),H(u,{elTag:"td",elClasses:["fc-list-event-title"],elAttrs:{headers:`${s} ${a}`}})))}}function eLe(e,t){let n=T6(e,t);return H("a",Object.assign({},n),e.eventRange.def.title)}function tLe(e,t,n,r,i){let{options:o}=n;if(o.displayEventTime!==!1){let s=e.eventRange.def,a=e.eventRange.instance,l=!1,u;if(s.allDay?l=!0:iDe(e.eventRange.range)?e.isStart?u=Em(e,t,n,null,null,a.range.start,e.end):e.isEnd?u=Em(e,t,n,null,null,e.start,a.range.end):l=!0:u=Em(e,t,n),l){let c={text:n.options.allDayText,view:n.viewApi};return H(Tr,{elTag:"td",elClasses:["fc-list-event-time"],elAttrs:{headers:`${r} ${i}`},renderProps:c,generatorName:"allDayContent",customGenerator:o.allDayContent,defaultGenerator:nLe,classNameGenerator:o.allDayClassNames,didMount:o.allDayDidMount,willUnmount:o.allDayWillUnmount})}return H("td",{className:"fc-list-event-time"},u)}return null}function nLe(e){return e.text}class rLe extends Ri{constructor(){super(...arguments),this.computeDateVars=Ke(oLe),this.eventStoreToSegs=Ke(this._eventStoreToSegs),this.state={timeHeaderId:pa(),eventHeaderId:pa(),dateHeaderIdRoot:pa()},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 H(Hf,{elRef:this.setRootEl,elClasses:["fc-list",n.theme.getClass("table"),n.options.stickyHeaderDates!==!1?"fc-list-sticky":""],viewSpec:n.viewSpec},H(lq,{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 H(Tr,{elTag:"div",elClasses:["fc-list-empty"],renderProps:r,generatorName:"noEventsContent",customGenerator:t.noEventsContent,defaultGenerator:iLe,classNameGenerator:t.noEventsClassNames,didMount:t.noEventsDidMount,willUnmount:t.noEventsWillUnmount},i=>H(i,{elTag:"div",elClasses:["fc-list-empty-cushion"]}))}renderSegList(t,n){let{theme:r,options:i}=this.context,{timeHeaderId:o,eventHeaderId:s,dateHeaderIdRoot:a}=this.state,l=sLe(t);return H(Gf,{unit:"day"},(u,c)=>{let f=[];for(let m=0;m<l.length;m+=1){let p=l[m];if(p){let g=xm(n[m]),v=a+"-"+g;f.push(H(ZNe,{key:g,cellId:v,dayDate:n[m],todayRange:c})),p=$6(p,i.eventOrder);for(let w of p)f.push(H(XNe,Object.assign({key:g+":"+w.eventRange.instance.instanceId,seg:w,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,timeHeaderId:o,eventHeaderId:s,dateHeaderId:v},ba(w,c,u))))}}return H("table",{className:"fc-list-table "+r.getClass("table")},H("thead",null,H("tr",null,H("th",{scope:"col",id:o},i.timeHint),H("th",{scope:"col","aria-hidden":!0}),H("th",{scope:"col",id:s},i.eventHint))),H("tbody",null,f))})}_eventStoreToSegs(t,n,r){return this.eventRangesToSegs(S6(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,s=t.def.allDay,a,l,u,c=[];for(a=0;a<n.length;a+=1)if(l=ga(o,n[a]),l&&(u={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:a},c.push(u),!u.isEnd&&!s&&a+1<n.length&&o.end<r.add(n[a+1].start,i))){u.end=o.end,u.isEnd=!0;break}return c}}function iLe(e){return e.text}function oLe(e){let t=Kt(e.renderRange.start),n=e.renderRange.end,r=[],i=[];for(;t<n;)r.push(t),i.push({start:t,end:er(t,1)}),t=er(t,1);return{dayDates:r,dayRanges:i}}function sLe(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}var aLe=':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}';ym(aLe);const lLe={listDayFormat:Nq,listDaySideFormat:Nq,noEventsClassNames:ne,noEventsContent:ne,noEventsDidMount:ne,noEventsWillUnmount:ne};function Nq(e){return e===!1?null:Ft(e)}var uLe=hs({name:"@fullcalendar/list",optionRefiners:lLe,views:{list:{component:rLe,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 cLe extends Ri{constructor(){super(...arguments),this.headerElRef=pr()}renderSimpleLayout(t,n){let{props:r,context:i}=this,o=[],s=Ub(i.options);return t&&o.push({type:"header",key:"header",isSticky:s,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}}),o.push({type:"body",key:"body",liquid:!0,chunk:{content:n}}),H(Hf,{elClasses:["fc-daygrid"],viewSpec:i.viewSpec},H(N6,{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:s,context:a}=this,l=!s.forPrint&&Ub(a.options),u=!s.forPrint&&cq(a.options),c=[];return t&&c.push({type:"header",key:"header",isSticky:l,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}]}),c.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:n}]}),u&&c.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:I6}]}),H(Hf,{elClasses:["fc-daygrid"],viewSpec:a.viewSpec},H(o,{liquid:!s.isHeightAuto&&!s.forPrint,forPrint:s.forPrint,collapsibleWidth:s.forPrint,colGroups:[{cols:[{span:r,minWidth:i}]}],sections:c}))}}function Vb(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 Wb(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 Lq(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 jq=Ft({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function Fq(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 zq extends Ct{render(){let{props:t}=this;return H(dq,Object.assign({},t,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:jq,defaultDisplayEventEnd:t.defaultDisplayEventEnd,disableResizing:!t.seg.eventRange.def.allDay}))}}class Bq extends Ct{render(){let{props:t,context:n}=this,{options:r}=n,{seg:i}=t,o=r.eventTimeFormat||jq,s=Em(i,o,n,!0,t.defaultDisplayEventEnd);return H(Hb,Object.assign({},t,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:T6(t.seg,n),defaultGenerator:dLe,timeText:s,isResizing:!1,isDateSelecting:!1}))}}function dLe(e){return H(Vt,null,H("div",{className:"fc-daygrid-event-dot",style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&H("div",{className:"fc-event-time"},e.timeText),H("div",{className:"fc-event-title"},e.event.title||H(Vt,null," ")))}class fLe extends Ct{constructor(){super(...arguments),this.compileSegs=Ke(pLe)}render(){let{props:t}=this,{allSegs:n,invisibleSegs:r}=this.compileSegs(t.singlePlacements);return H(mq,{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 H(Vt,null,n.map(o=>{let s=o.eventRange.instance.instanceId;return H("div",{className:"fc-daygrid-event-harness",key:s,style:{visibility:i[s]?"hidden":""}},Fq(o)?H(Bq,Object.assign({seg:o,isDragging:!1,isSelected:s===t.eventSelection,defaultDisplayEventEnd:!1},ba(o,t.todayRange))):H(zq,Object.assign({seg:o,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:s===t.eventSelection,defaultDisplayEventEnd:!1},ba(o,t.todayRange))))}))}})}}function pLe(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 hLe=Ft({week:"narrow"});class mLe extends Ri{constructor(){super(...arguments),this.rootElRef=pr(),this.state={dayNumberId:pa()},this.handleRootEl=t=>{ma(this.rootElRef,t),ma(this.props.elRef,t)}}render(){let{context:t,props:n,state:r,rootElRef:i}=this,{options:o,dateEnv:s}=t,{date:a,dateProfile:l}=n;const u=n.showDayNumber&&vLe(a,l.currentRange,s);return H(j6,{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:gLe,date:a,dateProfile:l,todayRange:n.todayRange,showDayNumber:n.showDayNumber,isMonthStart:u,extraRenderProps:n.extraRenderProps},(c,f)=>H("div",{ref:n.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:n.minHeight}},n.showWeekNumber&&H(hq,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:Wf(t,a,"week"),date:a,defaultFormat:hLe}),!f.isDisabled&&(n.showDayNumber||F6(o)||n.forceDayTop)?H("div",{className:"fc-daygrid-day-top"},H(c,{elTag:"a",elClasses:["fc-daygrid-day-number",u&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},Wf(t,a)),{id:r.dayNumberId})})):n.showDayNumber?H("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},H("a",{className:"fc-daygrid-day-number"}," ")):void 0,H("div",{className:"fc-daygrid-day-events",ref:n.fgContentElRef},n.fgContent,H("div",{className:"fc-daygrid-day-bottom",style:{marginTop:n.moreMarginTop}},H(fLe,{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}))),H("div",{className:"fc-daygrid-day-bg"},n.bgContent)))}}function gLe(e){return e.dayNumberText||H(Vt,null," ")}function vLe(e,t,n){const{start:r,end:i}=t,o=jl(i,-1),s=n.getYear(r),a=n.getMonth(r),l=n.getYear(o),u=n.getMonth(o);return!(s===l&&a===u)&&(e.valueOf()===r.valueOf()||n.getDay(e)===1&&e.valueOf()<i.valueOf())}function Uq(e){return e.eventRange.instance.instanceId+":"+e.firstCol}function Hq(e){return Uq(e)+":"+e.lastCol}function yLe(e,t,n,r,i,o,s){let a=new wLe(b=>{let y=e[b.index].eventRange.instance.instanceId+":"+b.span.start+":"+(b.span.end-1);return i[y]||1});a.allowReslicing=!0,a.strictOrder=r,t===!0||n===!0?(a.maxCoord=o,a.hiddenConsumes=!0):typeof t=="number"?a.maxStackCnt=t:typeof n=="number"&&(a.maxStackCnt=n,a.hiddenConsumes=!0);let l=[],u=[];for(let b=0;b<e.length;b+=1){let y=e[b],S=Hq(y);i[S]!=null?l.push({index:b,span:{start:y.firstCol,end:y.lastCol+1}}):u.push(y)}let c=a.addSegs(l),f=a.toRects(),{singleColPlacements:m,multiColPlacements:p,leftoverMargins:g}=bLe(f,e,s),v=[],w=[];for(let b of u){p[b.firstCol].push({seg:b,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let y=b.firstCol;y<=b.lastCol;y+=1)m[y].push({seg:Yf(b,y,y+1,s),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let b=0;b<s.length;b+=1)v.push(0);for(let b of c){let y=e[b.index],S=b.span;p[S.start].push({seg:Yf(y,S.start,S.end,s),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let C=S.start;C<S.end;C+=1)v[C]+=1,m[C].push({seg:Yf(y,C,C+1,s),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let b=0;b<s.length;b+=1)w.push(g[b]);return{singleColPlacements:m,multiColPlacements:p,moreCnts:v,moreMarginTops:w}}function bLe(e,t,n){let r=xLe(e,n.length),i=[],o=[],s=[];for(let a=0;a<n.length;a+=1){let l=r[a],u=[],c=0,f=0;for(let p of l){let g=t[p.index];u.push({seg:Yf(g,a,a+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:p.levelCoord,marginTop:p.levelCoord-c}),c=p.levelCoord+p.thickness}let m=[];c=0,f=0;for(let p of l){let g=t[p.index],v=p.span.end-p.span.start>1,w=p.span.start===a;f+=p.levelCoord-c,c=p.levelCoord+p.thickness,v?(f+=p.thickness,w&&m.push({seg:Yf(g,p.span.start,p.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:p.levelCoord,marginTop:0})):w&&(m.push({seg:Yf(g,p.span.start,p.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:p.levelCoord,marginTop:f}),f=0)}i.push(u),o.push(m),s.push(f)}return{singleColPlacements:i,multiColPlacements:o,leftoverMargins:s}}function xLe(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 Yf(e,t,n,r){if(e.firstCol===t&&e.lastCol===n-1)return e;let i=e.eventRange,o=i.range,s=ga(o,{start:r[t].date,end:er(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:s},isStart:e.isStart&&s.start.valueOf()===o.start.valueOf(),isEnd:e.isEnd&&s.end.valueOf()===o.end.valueOf()})}class wLe extends tq{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(t){const n=super.addSegs(t),{entriesByLevel:r}=this,i=o=>!this.forceHidden[xc(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:s,touchingLevel:a,touchingLateral:l}=t;if(this.hiddenConsumes&&s){const u=xc(s);if(!o[u])if(this.allowReslicing){const c=Object.assign(Object.assign({},s),{span:O6(s.span,n.span)}),f=xc(c);o[f]=!0,i[a][l]=c,r.push(c),this.splitEntry(s,n,r)}else o[u]=!0,r.push(s)}super.handleInvalidInsertion(t,n,r)}}class Vq extends Ri{constructor(){super(...arguments),this.cellElRefs=new xa,this.frameElRefs=new xa,this.fgElRefs=new xa,this.segHarnessRefs=new xa,this.rootElRef=pr(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=t=>{t&&this.updateSizing(!0)}}render(){let{props:t,state:n,context:r}=this,{options:i}=r,o=t.cells.length,s=Wb(t.businessHourSegs,o),a=Wb(t.bgEventSegs,o),l=Wb(this.getHighlightSegs(),o),u=Wb(this.getMirrorSegs(),o),{singleColPlacements:c,multiColPlacements:f,moreCnts:m,moreMarginTops:p}=yLe($6(t.fgEventSegs,i.eventOrder),t.dayMaxEvents,t.dayMaxEventRows,i.eventOrderStrict,n.segHeights,n.maxContentHeight,t.cells),g=t.eventDrag&&t.eventDrag.affectedInstances||t.eventResize&&t.eventResize.affectedInstances||{};return H("tr",{ref:this.rootElRef,role:"row"},t.renderIntro&&t.renderIntro(),t.cells.map((v,w)=>{let b=this.renderFgSegs(w,t.forPrint?c[w]:f[w],t.todayRange,g),y=this.renderFgSegs(w,SLe(u[w],f),t.todayRange,{},!!t.eventDrag,!!t.eventResize,!1);return H(mLe,{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:m[w],moreMarginTop:p[w],singlePlacements:c[w],fgContentElRef:this.fgElRefs.createRef(v.key),fgContent:H(Vt,null,H(Vt,null,b),H(Vt,null,y)),bgContent:H(Vt,null,this.renderFillSegs(l[w],"highlight"),this.renderFillSegs(s[w],"non-business"),this.renderFillSegs(a[w],"bg-event")),minHeight:t.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(t,n){let r=this.props;this.updateSizing(!jo(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,s,a){let{context:l}=this,{eventSelection:u}=this.props,{framePositions:c}=this.state,f=this.props.cells.length===1,m=o||s||a,p=[];if(c)for(let g of n){let{seg:v}=g,{instanceId:w}=v.eventRange.instance,b=g.isVisible&&!i[w],y=g.isAbsolute,S="",C="";y&&(l.isRtl?(C=0,S=c.lefts[v.lastCol]-c.lefts[v.firstCol]):(S=0,C=c.rights[v.firstCol]-c.rights[v.lastCol])),p.push(H("div",{className:"fc-daygrid-event-harness"+(y?" fc-daygrid-event-harness-abs":""),key:Uq(v),ref:m?null:this.segHarnessRefs.createRef(Hq(v)),style:{visibility:b?"":"hidden",marginTop:y?"":g.marginTop,top:y?g.absoluteTop:"",left:S,right:C}},Fq(v)?H(Bq,Object.assign({seg:v,isDragging:o,isSelected:w===u,defaultDisplayEventEnd:f},ba(v,r))):H(zq,Object.assign({seg:v,isDragging:o,isResizing:s,isDateSelecting:a,isSelected:w===u,defaultDisplayEventEnd:f},ba(v,r)))))}return p}renderFillSegs(t,n){let{isRtl:r}=this.context,{todayRange:i}=this.props,{framePositions:o}=this.state,s=[];if(o)for(let a of t){let l=r?{right:0,left:o.lefts[a.lastCol]-o.lefts[a.firstCol]}:{left:0,right:o.rights[a.firstCol]-o.rights[a.lastCol]};s.push(H("div",{key:YW(a.eventRange),className:"fc-daygrid-bg-harness",style:l},n==="bg-event"?H(fq,Object.assign({seg:a},ba(a,i))):pq(n)))}return H(Vt,{},...s)}updateSizing(t){let{props:n,state:r,frameElRefs:i}=this;if(!n.forPrint&&n.clientWidth!==null){if(t){let l=n.cells.map(u=>i.currentMap[u.key]);if(l.length){let u=this.rootElRef.current,c=new qf(u,l,!0,!1);(!r.framePositions||!r.framePositions.similarTo(c))&&this.setState({framePositions:new qf(u,l,!0,!1)})}}const o=this.state.segHeights,s=this.querySegHeights(),a=n.dayMaxEvents===!0||n.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},o),s),maxContentHeight:a?this.computeMaxContentHeight():null})}}querySegHeights(){let t=this.segHarnessRefs.currentMap,n={};for(let r in t){let i=Math.round(t[r].getBoundingClientRect().height);n[r]=Math.max(n[r]||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])}}Vq.addStateEquality({segHeights:jo});function SLe(e,t){if(!e.length)return[];let n=CLe(t);return e.map(r=>({seg:r,isVisible:!0,isAbsolute:!0,absoluteTop:n[r.eventRange.instance.instanceId],marginTop:0}))}function CLe(e){let t={};for(let n of e)for(let r of n)t[r.seg.eventRange.instance.instanceId]=r.absoluteTop;return t}class Wq extends Ri{constructor(){super(...arguments),this.splitBusinessHourSegs=Ke(Vb),this.splitBgEventSegs=Ke(Vb),this.splitFgEventSegs=Ke(Vb),this.splitDateSelectionSegs=Ke(Vb),this.splitEventDrag=Ke(Lq),this.splitEventResize=Ke(Lq),this.rowRefs=new xa}render(){let{props:t,context:n}=this,r=t.cells.length,i=this.splitBusinessHourSegs(t.businessHourSegs,r),o=this.splitBgEventSegs(t.bgEventSegs,r),s=this.splitFgEventSegs(t.fgEventSegs,r),a=this.splitDateSelectionSegs(t.dateSelectionSegs,r),l=this.splitEventDrag(t.eventDrag,r),u=this.splitEventResize(t.eventResize,r),c=r>=7&&t.clientWidth?t.clientWidth/n.options.aspectRatio/6:null;return H(Gf,{unit:"day"},(f,m)=>H(Vt,null,t.cells.map((p,g)=>H(Vq,{ref:this.rowRefs.createRef(g),key:p.length?p[0].date.toISOString():g,showDayNumbers:r>1,showWeekNumbers:t.showWeekNumbers,todayRange:m,dateProfile:t.dateProfile,cells:p,renderIntro:t.renderRowIntro,businessHourSegs:i[g],eventSelection:t.eventSelection,bgEventSegs:o[g].filter($Le),fgEventSegs:s[g],dateSelectionSegs:a[g],eventDrag:l[g],eventResize:u[g],dayMaxEvents:t.dayMaxEvents,dayMaxEventRows:t.dayMaxEventRows,clientWidth:t.clientWidth,clientHeight:t.clientHeight,cellMinHeight:c,forPrint:t.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const t=this.rowRefs.currentMap[0].getCellEls()[0],n=t?t.closest(".fc-daygrid-body"):null;n&&(this.rootEl=n,this.context.registerInteractiveComponent(this,{el:n,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new qf(this.rootEl,this.rowRefs.collect().map(t=>t.getCellEls()[0]),!1,!0),this.colPositions=new qf(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(t,n){let{colPositions:r,rowPositions:i}=this,o=r.leftToIndex(t),s=i.topToIndex(n);if(s!=null&&o!=null){let a=this.props.cells[s][o];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(s,o),allDay:!0},a.extraDateSpan),dayEl:this.getCellEl(s,o),rect:{left:r.lefts[o],right:r.rights[o],top:i.tops[s],bottom:i.bottoms[s]},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=er(r,1);return{start:r,end:i}}}function $Le(e){return e.eventRange.def.allDay}class TLe extends Ri{constructor(){super(...arguments),this.elRef=pr(),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 s=["fc-daygrid-body",o?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",i?"":"fc-daygrid-body-natural"];return H("div",{ref:this.elRef,className:s.join(" "),style:{width:t.clientWidth,minWidth:t.tableMinWidth}},H("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:t.clientWidth,minWidth:t.tableMinWidth,height:i?t.clientHeight:""}},t.colGroupNode,H("tbody",{role:"presentation"},H(Wq,{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=ELe(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 ELe(e,t){let n;return t.currentRangeUnit.match(/year|month/)&&(n=e.querySelector(`[data-date="${i6(t.currentDate)}-01"]`)),n||(n=e.querySelector(`[data-date="${xm(t.currentDate)}"]`)),n}class qq extends aq{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(t,n){return n.sliceRange(t)}}class Gq extends Ri{constructor(){super(...arguments),this.slicer=new qq,this.tableRef=pr()}render(){let{props:t,context:n}=this;return H(TLe,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 kLe extends cLe{constructor(){super(...arguments),this.buildDayTableModel=Ke(Yq),this.headerRef=pr(),this.tableRef=pr()}render(){let{options:t,dateProfileGenerator:n}=this.context,{props:r}=this,i=this.buildDayTableModel(r.dateProfile,n),o=t.dayHeaders&&H(D6,{ref:this.headerRef,dateProfile:r.dateProfile,dates:i.headerDates,datesRepDistinctDays:i.rowCnt===1}),s=a=>H(Gq,{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:a.tableColGroupNode,tableMinWidth:a.tableMinWidth,dayMaxEvents:t.dayMaxEvents,dayMaxEventRows:t.dayMaxEventRows,showWeekNumbers:t.weekNumbers,expandRows:!r.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:a.clientWidth,clientHeight:a.clientHeight,forPrint:r.forPrint});return t.dayMinWidth?this.renderHScrollLayout(o,s,i.colCnt,t.dayMinWidth):this.renderSimpleLayout(o,s)}}function Yq(e,t){let n=new oq(e.renderRange,t);return new sq(n,/year|month|week/.test(e.currentRangeUnit))}class Kq extends OW{buildRenderRange(t,n,r){let i=super.buildRenderRange(t,n,r),{props:o}=this;return Zq({currentRange:i,snapToWeek:/^(year|month)$/.test(n),fixedWeekCount:o.fixedWeekCount,dateEnv:o.dateEnv})}}function Zq(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=fW(o,1))),e.fixedWeekCount){let s=t.startOfWeek(t.startOfMonth(er(n.end,-1))),a=Math.ceil(lMe(s,i));i=fW(i,6-a)}return{start:r,end:i}}var ALe=':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}';ym(ALe);class RLe extends tIe{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(t){return t.allDay?["allDay"]:["timed"]}getKeysForEventDef(t){return t.allDay?LDe(t)?["timed","allDay"]:["allDay"]:["timed"]}}const _Le=Ft({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function Qq(e){let t=["fc-timegrid-slot","fc-timegrid-slot-label",e.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return H(ha.Consumer,null,n=>{if(!e.isLabeled)return H("td",{className:t.join(" "),"data-time":e.isoTimeStr});let{dateEnv:r,options:i,viewApi:o}=n,s=i.slotLabelFormat==null?_Le:Array.isArray(i.slotLabelFormat)?Ft(i.slotLabelFormat[0]):Ft(i.slotLabelFormat),a={level:0,time:e.time,date:r.toDate(e.date),view:o,text:r.format(e.date,s)};return H(Tr,{elTag:"td",elClasses:t,elAttrs:{"data-time":e.isoTimeStr},renderProps:a,generatorName:"slotLabelContent",customGenerator:i.slotLabelContent,defaultGenerator:OLe,classNameGenerator:i.slotLabelClassNames,didMount:i.slotLabelDidMount,willUnmount:i.slotLabelWillUnmount},l=>H("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},H(l,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]})))})}function OLe(e){return e.text}class PLe extends Ct{render(){return this.props.slatMetas.map(t=>H("tr",{key:t.key},H(Qq,Object.assign({},t))))}}const MLe=Ft({week:"short"}),DLe=5;class ILe extends Ri{constructor(){super(...arguments),this.allDaySplitter=new RLe,this.headerElRef=pr(),this.rootElRef=pr(),this.scrollerElRef=pr(),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,a=Fl(o.start,o.end)===1?Wf(this.context,o.start,"week"):{};return r.weekNumbers&&t==="day"?H(hq,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:o.start,defaultFormat:MLe},l=>H("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:n}},H(l,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:a}))):H("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},H("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 H(Tr,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:i,generatorName:"allDayContent",customGenerator:n.allDayContent,defaultGenerator:NLe,classNameGenerator:n.allDayClassNames,didMount:n.allDayDidMount,willUnmount:n.allDayWillUnmount},o=>H("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",t==null?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:t}},H(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,s=[],a=Ub(i.options);return t&&s.push({type:"header",key:"header",isSticky:a,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:t}}),n&&(s.push({type:"body",key:"all-day",chunk:{content:n}}),s.push({type:"body",key:"all-day-divider",outerContent:H("tr",{role:"presentation",className:"fc-scrollgrid-section"},H("td",{className:"fc-timegrid-divider "+i.theme.getClass("tableCellShaded")}))})),s.push({type:"body",key:"body",liquid:!0,expandRows:!!i.options.expandRows,chunk:{scrollerElRef:this.scrollerElRef,content:r}}),H(Hf,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:i.viewSpec},H(N6,{liquid:!o.isHeightAuto&&!o.forPrint,collapsibleWidth:o.forPrint,cols:[{width:"shrink"}],sections:s}))}renderHScrollLayout(t,n,r,i,o,s,a){let l=this.context.pluginHooks.scrollGridImpl;if(!l)throw new Error("No ScrollGrid implementation");let{context:u,props:c}=this,f=!c.forPrint&&Ub(u.options),m=!c.forPrint&&cq(u.options),p=[];t&&p.push({type:"header",key:"header",isSticky:f,syncRowHeights:!0,chunks:[{key:"axis",rowContent:v=>H("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=>H("tr",{role:"presentation"},this.renderTableRowAxis(v.rowSyncHeights[0]))},{key:"cols",content:n}]}),p.push({key:"all-day-divider",type:"body",outerContent:H("tr",{role:"presentation",className:"fc-scrollgrid-section"},H("td",{colSpan:2,className:"fc-timegrid-divider "+u.theme.getClass("tableCellShaded")}))}));let g=u.options.nowIndicator;return p.push({type:"body",key:"body",liquid:!0,expandRows:!!u.options.expandRows,chunks:[{key:"axis",content:v=>H("div",{className:"fc-timegrid-axis-chunk"},H("table",{"aria-hidden":!0,style:{height:v.expandRows?v.clientHeight:""}},v.tableColGroupNode,H("tbody",null,H(PLe,{slatMetas:s}))),H("div",{className:"fc-timegrid-now-indicator-container"},H(Gf,{unit:g?"minute":"day"},w=>{let b=g&&a&&a.safeComputeTop(w);return typeof b=="number"?H(L6,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:b},isAxis:!0,date:w}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:r}]}),m&&p.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:I6},{key:"cols",content:I6}]}),H(Hf,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:u.viewSpec},H(l,{liquid:!c.isHeightAuto&&!c.forPrint,forPrint:c.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=DLe),{dayMaxEvents:t,dayMaxEventRows:n}}}function NLe(e){return e.text}class LLe{constructor(t,n,r){this.positions=t,this.dateProfile=n,this.slotDuration=r}safeComputeTop(t){let{dateProfile:n}=this;if(va(n.currentRange,t)){let r=Kt(t),i=t.valueOf()-r.valueOf();if(i>=Lo(n.slotMinTime)&&i<Lo(n.slotMaxTime))return this.computeTimeTop(yt(i))}return null}computeDateTop(t,n){return n||(n=Kt(t)),this.computeTimeTop(yt(t.valueOf()-n.valueOf()))}computeTimeTop(t){let{positions:n,dateProfile:r}=this,i=n.els.length,o=(t.milliseconds-Lo(r.slotMinTime))/Lo(this.slotDuration),s,a;return o=Math.max(0,o),o=Math.min(i,o),s=Math.floor(o),s=Math.min(s,i-1),a=o-s,n.tops[s]+n.getHeight(s)*a}}class jLe extends Ct{render(){let{props:t,context:n}=this,{options:r}=n,{slatElRefs:i}=t;return H("tbody",null,t.slatMetas.map((o,s)=>{let a={time:o.time,date:n.dateEnv.toDate(o.date),view:n.viewApi};return H("tr",{key:o.key,ref:i.createRef(o.key)},t.axis&&H(Qq,Object.assign({},o)),H(Tr,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!o.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":o.isoTimeStr},renderProps:a,generatorName:"slotLaneContent",customGenerator:r.slotLaneContent,classNameGenerator:r.slotLaneClassNames,didMount:r.slotLaneDidMount,willUnmount:r.slotLaneWillUnmount}))}))}}class FLe extends Ct{constructor(){super(...arguments),this.rootElRef=pr(),this.slatElRefs=new xa}render(){let{props:t,context:n}=this;return H("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},H("table",{"aria-hidden":!0,className:n.theme.getClass("table"),style:{minWidth:t.tableMinWidth,width:t.clientWidth,height:t.minHeight}},t.tableColGroupNode,H(jLe,{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 LLe(new qf(this.rootElRef.current,zLe(this.slatElRefs.currentMap,n.slatMetas),!1,!0),this.props.dateProfile,t.options.slotDuration))}}function zLe(e,t){return t.map(n=>e[n.key])}function km(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 Jq(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 BLe extends Ct{render(){let{props:t}=this;return H(mq,{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:()=>nG(t.hiddenSegs,t),defaultGenerator:ULe,forceTimed:!0},n=>H(n,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}}function ULe(e){return e.shortText}function HLe(e,t,n){let r=new tq;t!=null&&(r.strictOrder=t),n!=null&&(r.maxStackCnt=n);let i=r.addSegs(e),o=cIe(i),s=VLe(r);return s=YLe(s,1),{segRects:KLe(s),hiddenGroups:o}}function VLe(e){const{entriesByLevel:t}=e,n=V6((r,i)=>r+":"+i,(r,i)=>{let o=GLe(e,r,i),s=Xq(o,n),a=t[r][i];return[Object.assign(Object.assign({},a),{nextLevelNodes:s[0]}),a.thickness+s[1]]});return Xq(t.length?{level:0,lateralStart:0,lateralEnd:t[0].length}:null,n)[0]}function Xq(e,t){if(!e)return[[],0];let{level:n,lateralStart:r,lateralEnd:i}=e,o=r,s=[];for(;o<i;)s.push(t(n,o)),o+=1;return s.sort(WLe),[s.map(qLe),s[0][1]]}function WLe(e,t){return t[1]-e[1]}function qLe(e){return e[0]}function GLe(e,t,n){let{levelCoords:r,entriesByLevel:i}=e,o=i[t][n],s=r[t]+o.thickness,a=r.length,l=t;for(;l<a&&r[l]<s;l+=1);for(;l<a;l+=1){let u=i[l],c,f=M6(u,o.span.start,_6),m=f[0]+f[1],p=m;for(;(c=u[p])&&c.span.start<o.span.end;)p+=1;if(m<p)return{level:l,lateralStart:m,lateralEnd:p}}return null}function YLe(e,t){const n=V6((r,i,o)=>xc(r),(r,i,o)=>{let{nextLevelNodes:s,thickness:a}=r,l=a+o,u=a/l,c,f=[];if(!s.length)c=t;else for(let p of s)if(c===void 0){let g=n(p,i,l);c=g[0],f.push(g[1])}else{let g=n(p,c,0);f.push(g[1])}let m=(c-i)*u;return[c-m,Object.assign(Object.assign({},r),{thickness:m,nextLevelNodes:f})]});return e.map(r=>n(r,0,0)[1])}function KLe(e){let t=[];const n=V6((i,o,s)=>xc(i),(i,o,s)=>{let a=Object.assign(Object.assign({},i),{levelCoord:o,stackDepth:s,stackForward:0});return t.push(a),a.stackForward=r(i.nextLevelNodes,o+i.thickness,s+1)+1});function r(i,o,s){let a=0;for(let l of i)a=Math.max(n(l,o,s),a);return a}return r(e,0,0),t}function V6(e,t){const n={};return(...r)=>{let i=e(...r);return i in n?n[i]:n[i]=t(...r)}}function eG(e,t,n=null,r=0){let i=[];if(n)for(let o=0;o<e.length;o+=1){let s=e[o],a=n.computeDateTop(s.start,t),l=Math.max(a+(r||0),n.computeDateTop(s.end,t));i.push({start:Math.round(a),end:Math.round(l)})}return i}function ZLe(e,t,n,r){let i=[],o=[];for(let u=0;u<e.length;u+=1){let c=t[u];c?i.push({index:u,thickness:1,span:c}):o.push(e[u])}let{segRects:s,hiddenGroups:a}=HLe(i,n,r),l=[];for(let u of s)l.push({seg:e[u.index],rect:u});for(let u of o)l.push({seg:u,rect:null});return{segPlacements:l,hiddenGroups:a}}const QLe=Ft({hour:"numeric",minute:"2-digit",meridiem:!1});class tG extends Ct{render(){return H(dq,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:QLe}))}}class JLe extends Ct{constructor(){super(...arguments),this.sortEventSegs=Ke($6)}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||[],s=t.eventDrag&&t.eventDrag.affectedInstances||t.eventResize&&t.eventResize.affectedInstances||{},a=this.sortEventSegs(t.fgEventSegs,r.eventOrder);return H(j6,{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=>H("div",{className:"fc-timegrid-col-frame"},H("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(t.businessHourSegs,"non-business"),this.renderFillSegs(t.bgEventSegs,"bg-event"),this.renderFillSegs(t.dateSelectionSegs,"highlight")),H("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(a,s,!1,!1,!1)),H("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(o,{},!!t.eventDrag,!!t.eventResize,!!i,"mirror")),H("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(t.nowIndicatorSegs)),F6(r)&&H(l,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(t,n,r,i,o,s){let{props:a}=this;return a.forPrint?nG(t,a):this.renderPositionedFgSegs(t,n,r,i,o,s)}renderPositionedFgSegs(t,n,r,i,o,s){let{eventMaxStack:a,eventShortHeight:l,eventOrderStrict:u,eventMinHeight:c}=this.context.options,{date:f,slatCoords:m,eventSelection:p,todayRange:g,nowDate:v}=this.props,w=r||i||o,b=eG(t,f,m,c),{segPlacements:y,hiddenGroups:S}=ZLe(t,b,u,a);return H(Vt,null,this.renderHiddenGroups(S,t),y.map(C=>{let{seg:T,rect:E}=C,A=T.eventRange.instance.instanceId,_=w||!!(!n[A]&&E),O=W6(E&&E.span),D=!w&&E?this.computeSegHStyle(E):{left:0,right:0},I=!!E&&E.stackForward>0,j=!!E&&E.span.end-E.span.start<l;return H("div",{className:"fc-timegrid-event-harness"+(I?" fc-timegrid-event-harness-inset":""),key:s||A,style:Object.assign(Object.assign({visibility:_?"":"hidden"},O),D)},H(tG,Object.assign({seg:T,isDragging:r,isResizing:i,isDateSelecting:o,isSelected:A===p,isShort:j},ba(T,g,v))))}))}renderHiddenGroups(t,n){let{extraDateSpan:r,dateProfile:i,todayRange:o,nowDate:s,eventSelection:a,eventDrag:l,eventResize:u}=this.props;return H(Vt,null,t.map(c=>{let f=W6(c.span),m=XLe(c.entries,n);return H(BLe,{key:gW(vq(m)),hiddenSegs:m,top:f.top,bottom:f.bottom,extraDateSpan:r,dateProfile:i,todayRange:o,nowDate:s,eventSelection:a,eventDrag:l,eventResize:u})}))}renderFillSegs(t,n){let{props:r,context:i}=this,s=eG(t,r.date,r.slatCoords,i.options.eventMinHeight).map((a,l)=>{let u=t[l];return H("div",{key:YW(u.eventRange),className:"fc-timegrid-bg-harness",style:W6(a)},n==="bg-event"?H(fq,Object.assign({seg:u},ba(u,r.todayRange,r.nowDate))):pq(n))});return H(Vt,null,s)}renderNowIndicator(t){let{slatCoords:n,date:r}=this.props;return n?t.map((i,o)=>H(L6,{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,s=t.levelCoord+t.thickness,a,l;i&&(s=Math.min(1,o+(s-o)*2)),n?(a=1-s,l=o):(a=o,l=1-s);let u={zIndex:t.stackDepth+1,left:a*100+"%",right:l*100+"%"};return i&&!t.stackForward&&(u[n?"marginLeft":"marginRight"]=10*2),u}}function nG(e,{todayRange:t,nowDate:n,eventSelection:r,eventDrag:i,eventResize:o}){let s=(i?i.affectedInstances:null)||(o?o.affectedInstances:null)||{};return H(Vt,null,e.map(a=>{let l=a.eventRange.instance.instanceId;return H("div",{key:l,style:{visibility:s[l]?"hidden":""}},H(tG,Object.assign({seg:a,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:l===r,isShort:!1},ba(a,t,n))))}))}function W6(e){return e?{top:e.start,bottom:-e.end}:{top:"",bottom:""}}function XLe(e,t){return e.map(n=>t[n.index])}class eje extends Ct{constructor(){super(...arguments),this.splitFgEventSegs=Ke(km),this.splitBgEventSegs=Ke(km),this.splitBusinessHourSegs=Ke(km),this.splitNowIndicatorSegs=Ke(km),this.splitDateSelectionSegs=Ke(km),this.splitEventDrag=Ke(Jq),this.splitEventResize=Ke(Jq),this.rootElRef=pr(),this.cellElRefs=new xa}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),s=this.splitBgEventSegs(t.bgEventSegs,i),a=this.splitBusinessHourSegs(t.businessHourSegs,i),l=this.splitNowIndicatorSegs(t.nowIndicatorSegs,i),u=this.splitDateSelectionSegs(t.dateSelectionSegs,i),c=this.splitEventDrag(t.eventDrag,i),f=this.splitEventResize(t.eventResize,i);return H("div",{className:"fc-timegrid-cols",ref:this.rootElRef},H("table",{role:"presentation",style:{minWidth:t.tableMinWidth,width:t.clientWidth}},t.tableColGroupNode,H("tbody",{role:"presentation"},H("tr",{role:"row"},t.axis&&H("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},H("div",{className:"fc-timegrid-col-frame"},H("div",{className:"fc-timegrid-now-indicator-container"},typeof r=="number"&&H(L6,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:r},isAxis:!0,date:t.nowDate})))),t.cells.map((m,p)=>H(JLe,{key:m.key,elRef:this.cellElRefs.createRef(m.key),dateProfile:t.dateProfile,date:m.date,nowDate:t.nowDate,todayRange:t.todayRange,extraRenderProps:m.extraRenderProps,extraDataAttrs:m.extraDataAttrs,extraClassNames:m.extraClassNames,extraDateSpan:m.extraDateSpan,fgEventSegs:o[p],bgEventSegs:s[p],businessHourSegs:a[p],nowIndicatorSegs:l[p],dateSelectionSegs:u[p],eventDrag:c[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 qf(this.rootElRef.current,tje(this.cellElRefs.currentMap,t.cells),!0,!1))}}function tje(e,t){return t.map(n=>e[n.key])}class nje extends Ri{constructor(){super(...arguments),this.processSlotOptions=Ke(rje),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 H("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:t.clientWidth,minWidth:t.tableMinWidth}},H(FLe,{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}),H(eje,{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:s}=this.props,{slatCoords:a}=this.state,{snapDuration:l,snapsPerSlot:u}=this.processSlotOptions(this.props.slotDuration,i.snapDuration),c=o.leftToIndex(t),f=a.positions.topToIndex(n);if(c!=null&&f!=null){let m=this.props.cells[c],p=a.positions.tops[f],g=a.positions.getHeight(f),v=(n-p)/g,w=Math.floor(v*u),b=f*u+w,y=this.props.cells[c].date,S=e6(s.slotMinTime,iMe(l,b)),C=r.add(y,S),T=r.add(C,l);return{dateProfile:s,dateSpan:Object.assign({range:{start:C,end:T},allDay:!1},m.extraDateSpan),dayEl:o.els[c],rect:{left:o.lefts[c],right:o.rights[c],top:p,bottom:p+g},layer:0}}return null}}function rje(e,t){let n=t||e,r=t6(e,n);return r===null&&(n=e,r=1),{snapDuration:n,snapsPerSlot:r}}class ije extends aq{sliceRange(t,n){let r=[];for(let i=0;i<n.length;i+=1){let o=ga(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 oje extends Ri{constructor(){super(...arguments),this.buildDayRanges=Ke(sje),this.slicer=new ije,this.timeColsRef=pr()}render(){let{props:t,context:n}=this,{dateProfile:r,dayTableModel:i}=t,{nowIndicator:o,nextDayThreshold:s}=n.options,a=this.buildDayRanges(i,r,n.dateEnv);return H(Gf,{unit:o?"minute":"day"},(l,u)=>H(nje,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(t,r,null,n,a),{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,s,n,a),todayRange:u,onScrollTopRequest:t.onScrollTopRequest,onSlatCoords:t.onSlatCoords})))}}function sje(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 rG=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function aje(e,t,n,r,i){let o=new Date(0),s=e,a=yt(0),l=n||lje(r),u=[];for(;Lo(s)<Lo(t);){let c=i.add(o,s),f=t6(a,l)!==null;u.push({date:c,time:s,key:c.toISOString(),isoTimeStr:bMe(c),isLabeled:f}),s=e6(s,r),a=e6(a,r)}return u}function lje(e){let t,n,r;for(t=rG.length-1;t>=0;t-=1)if(n=yt(rG[t]),r=t6(n,e),r!==null&&r>1)return n;return e}class uje extends ILe{constructor(){super(...arguments),this.buildTimeColsModel=Ke(cje),this.buildSlatMetas=Ke(aje)}render(){let{options:t,dateEnv:n,dateProfileGenerator:r}=this.context,{props:i}=this,{dateProfile:o}=i,s=this.buildTimeColsModel(o,r),a=this.allDaySplitter.splitProps(i),l=this.buildSlatMetas(o.slotMinTime,o.slotMaxTime,t.slotLabelInterval,t.slotDuration,n),{dayMinWidth:u}=t,c=!u,f=u,m=t.dayHeaders&&H(D6,{dates:s.headerDates,dateProfile:o,datesRepDistinctDays:!0,renderIntro:c?this.renderHeadAxis:null}),p=t.allDaySlot!==!1&&(v=>H(Gq,Object.assign({},a.allDay,{dateProfile:o,dayTableModel:s,nextDayThreshold:t.nextDayThreshold,tableMinWidth:v.tableMinWidth,colGroupNode:v.tableColGroupNode,renderRowIntro:c?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:v.clientWidth,clientHeight:v.clientHeight,forPrint:i.forPrint},this.getAllDayMaxEventProps()))),g=v=>H(oje,Object.assign({},a.timed,{dayTableModel:s,dateProfile:o,axis:c,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(m,p,g,s.colCnt,u,l,this.state.slatCoords):this.renderSimpleLayout(m,p,g)}}function cje(e,t){let n=new oq(e.renderRange,t);return new sq(n,!1)}var dje='.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}';ym(dje);var fje=hs({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:uje,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}}),pje=hs({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:kLe,dateProfileGeneratorClass:Kq},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:"dayGrid",duration:{years:1}}}});class hje extends Ri{constructor(){super(...arguments),this.buildDayTableModel=Ke(Yq),this.slicer=new qq,this.state={labelId:pa()}}render(){const{props:t,state:n,context:r}=this,{dateProfile:i,forPrint:o}=t,{options:s}=r,a=this.buildDayTableModel(i,r.dateProfileGenerator),l=this.slicer.sliceProps(t,i,s.nextDayThreshold,r,a),u=t.tableWidth!=null?t.tableWidth/s.aspectRatio:null,c=a.cells.length,f=u!=null?u/c:null;return H("div",{ref:t.elRef,"data-date":t.isoDateStr,className:"fc-multimonth-month",style:{width:t.width},role:"grid","aria-labelledby":n.labelId},H("div",{className:"fc-multimonth-header",style:{marginBottom:f},role:"presentation"},H("div",{className:"fc-multimonth-title",id:n.labelId},r.dateEnv.format(t.dateProfile.currentRange.start,t.titleFormat)),H("table",{className:["fc-multimonth-header-table",r.theme.getClass("table")].join(" "),role:"presentation"},H("thead",{role:"rowgroup"},H(D6,{dateProfile:t.dateProfile,dates:a.headerDates,datesRepDistinctDays:!1})))),H("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}},H("table",{className:["fc-multimonth-daygrid-table",r.theme.getClass("table")].join(" "),style:{height:o?"":u},role:"presentation"},H("tbody",{role:"rowgroup"},H(Wq,Object.assign({},l,{dateProfile:i,cells:a.cells,eventSelection:t.eventSelection,dayMaxEvents:!o,dayMaxEventRows:!o,showWeekNumbers:s.weekNumbers,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:o}))))))}}class mje extends Ri{constructor(){super(...arguments),this.splitDateProfileByMonth=Ke(vje),this.buildMonthFormat=Ke(xje),this.scrollElRef=pr(),this.firstMonthElRef=pr(),this.needsScrollReset=!1,this.handleSizing=t=>{t&&this.updateSize()}}render(){const{context:t,props:n,state:r}=this,{options:i}=t,{clientWidth:o,clientHeight:s}=r,a=r.monthHPadding||0,l=Math.min(o!=null?Math.floor(o/(i.multiMonthMinWidth+a)):1,i.multiMonthMaxColumns)||1,u=100/l+"%",c=o==null?null:o/l-a,f=o!=null&&l===1,m=this.splitDateProfileByMonth(t.dateProfileGenerator,n.dateProfile,t.dateEnv,f?!1:i.fixedWeekCount,i.showNonCurrentDates),p=this.buildMonthFormat(i.multiMonthTitleFormat,m),g=["fc-multimonth",f?"fc-multimonth-singlecol":"fc-multimonth-multicol",c!=null&&c<400?"fc-multimonth-compact":""];return H(Hf,{elRef:this.scrollElRef,elClasses:g,viewSpec:t.viewSpec},m.map((v,w)=>{const b=i6(v.currentRange.start);return H(hje,Object.assign({},n,{key:b,isoDateStr:b,elRef:w===0?this.firstMonthElRef:void 0,titleFormat:p,dateProfile:v,width:u,tableWidth:c,clientWidth:o,clientHeight:s}))}))}componentDidMount(){this.updateSize(),this.context.addResizeHandler(this.handleSizing),this.requestScrollReset()}componentDidUpdate(t){jo(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="${i6(t)}"]`);n.scrollTop=r.getBoundingClientRect().top-this.firstMonthElRef.current.getBoundingClientRect().top,this.needsScrollReset=!1}}shouldComponentUpdate(){return!0}}const gje=yt(1,"month");function vje(e,t,n,r,i){const{start:o,end:s}=t.currentRange;let a=o;const l=[];for(;a.valueOf()<s.valueOf();){const u=n.add(a,gje),c={start:e.skipHiddenDays(a),end:e.skipHiddenDays(u,-1,!0)};let f=Zq({currentRange:c,snapToWeek:!0,fixedWeekCount:r,dateEnv:n});f={start:e.skipHiddenDays(f.start),end:e.skipHiddenDays(f.end,-1,!0)};const m=t.activeRange?ga(t.activeRange,i?f:c):null;l.push({currentDate:t.currentDate,isValid:t.isValid,validRange:t.validRange,renderRange:f,activeRange:m,currentRange:c,currentRangeUnit:"month",isRangeAllDay:!0,dateIncrement:t.dateIncrement,slotMinTime:t.slotMaxTime,slotMaxTime:t.slotMinTime}),a=u}return l}const yje=Ft({year:"numeric",month:"long"}),bje=Ft({month:"long"});function xje(e,t){return e||(t[0].currentRange.start.getUTCFullYear()!==t[t.length-1].currentRange.start.getUTCFullYear()?yje:bje)}const wje={multiMonthTitleFormat:Ft,multiMonthMaxColumns:Number,multiMonthMinWidth:Number};var Sje=".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}";ym(Sje);var Cje=hs({name:"@fullcalendar/multimonth",initialView:"multiMonthYear",optionRefiners:wje,views:{multiMonth:{component:mje,dateProfileGeneratorClass:Kq,multiMonthMinWidth:350,multiMonthMaxColumns:3},multiMonthYear:{type:"multiMonth",duration:{years:1},fixedWeekCount:!0,showNonCurrentDates:!1}}}),$je={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"},Tje={code:"ar-dz",week:{dow:0,doy:4},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},Eje={code:"ar-kw",week:{dow:0,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},kje={code:"ar-ly",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},Aje={code:"ar-ma",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},Rje={code:"ar-sa",week:{dow:0,doy:6},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},_je={code:"ar-tn",week:{dow:1,doy:4},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},Oje={code:"ar",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"السابق",next:"التالي",today:"اليوم",year:"سنة",month:"شهر",week:"أسبوع",day:"يوم",list:"أجندة"},weekText:"أسبوع",allDayText:"اليوم كله",moreLinkText:"أخرى",noEventsText:"أي أحداث لعرض"},Pje={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"},Mje={code:"bg",week:{dow:1,doy:4},buttonText:{prev:"назад",next:"напред",today:"днес",year:"година",month:"Месец",week:"Седмица",day:"Ден",list:"График"},allDayText:"Цял ден",moreLinkText(e){return"+още "+e},noEventsText:"Няма събития за показване"},Dje={code:"bn",week:{dow:0,doy:6},buttonText:{prev:"পেছনে",next:"সামনে",today:"আজ",year:"বছর",month:"মাস",week:"সপ্তাহ",day:"দিন",list:"তালিকা"},weekText:"সপ্তাহ",allDayText:"সারাদিন",moreLinkText(e){return"+অন্যান্য "+e},noEventsText:"কোনো ইভেন্ট নেই"},Ije={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"},Nje={code:"ca",week:{dow:1,doy:4},buttonText:{prev:"Anterior",next:"Següent",today:"Avui",year:"Any",month:"Mes",week:"Setmana",day:"Dia",list:"Agenda"},weekText:"Set",allDayText:"Tot el dia",moreLinkText:"més",noEventsText:"No hi ha esdeveniments per mostrar"},Lje={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í"},jje={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"},Fje={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 q6(e){return e==="Tag"||e==="Monat"?"r":e==="Jahr"?"s":""}var zje={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${q6(e)} ${e}`},next(e){return`Nächste${q6(e)} ${e}`},today(e){return e==="Tag"?"Heute":`Diese${q6(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 G6(e){return e==="Tag"||e==="Monat"?"r":e==="Jahr"?"s":""}var Bje={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${G6(e)} ${e}`},next(e){return`Nächste${G6(e)} ${e}`},today(e){return e==="Tag"?"Heute":`Diese${G6(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"},Uje={code:"el",week:{dow:1,doy:4},buttonText:{prev:"Προηγούμενος",next:"Επόμενος",today:"Σήμερα",year:"Ετος",month:"Μήνας",week:"Εβδομάδα",day:"Ημέρα",list:"Ατζέντα"},weekText:"Εβδ",allDayText:"Ολοήμερο",moreLinkText:"περισσότερα",noEventsText:"Δεν υπάρχουν γεγονότα προς εμφάνιση"},Hje={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"}`}},Vje={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"}`}},Wje={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"}`}},qje={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"},Gje={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"},Yje={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"},Kje={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"},Zje={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"},Qje={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:"هیچ رویدادی به نمایش"},Jje={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"},Xje={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"},eFe={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"},tFe={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"},nFe={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"},rFe={code:"he",direction:"rtl",buttonText:{prev:"הקודם",next:"הבא",today:"היום",year:"שנה",month:"חודש",week:"שבוע",day:"יום",list:"סדר יום"},allDayText:"כל היום",moreLinkText:"נוספים",noEventsText:"אין אירועים להצגה",weekText:"שבוע"},iFe={code:"hi",week:{dow:0,doy:6},buttonText:{prev:"पिछला",next:"अगला",today:"आज",year:"वर्ष",month:"महीना",week:"सप्ताह",day:"दिन",list:"कार्यसूची"},weekText:"हफ्ता",allDayText:"सभी दिन",moreLinkText(e){return"+अधिक "+e},noEventsText:"कोई घटनाओं को प्रदर्शित करने के लिए"},oFe={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"},sFe={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"},aFe={code:"hy-am",week:{dow:1,doy:4},buttonText:{prev:"Նախորդ",next:"Հաջորդ",today:"Այսօր",year:"Տարի",month:"Ամիս",week:"Շաբաթ",day:"Օր",list:"Օրվա ցուցակ"},weekText:"Շաբ",allDayText:"Ամբողջ օր",moreLinkText(e){return"+ ևս "+e},noEventsText:"Բացակայում է իրադարձությունը ցուցադրելու"},lFe={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"},uFe={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"},cFe={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"},dFe={code:"ja",buttonText:{prev:"前",next:"次",today:"今日",year:"年",month:"月",week:"週",day:"日",list:"予定リスト"},weekText:"週",allDayText:"終日",moreLinkText(e){return"他 "+e+" 件"},noEventsText:"表示する予定はありません"},fFe={code:"ka",week:{dow:1,doy:7},buttonText:{prev:"წინა",next:"შემდეგი",today:"დღეს",year:"წელიწადი",month:"თვე",week:"კვირა",day:"დღე",list:"დღის წესრიგი"},weekText:"კვ",allDayText:"მთელი დღე",moreLinkText(e){return"+ კიდევ "+e},noEventsText:"ღონისძიებები არ არის"},pFe={code:"kk",week:{dow:1,doy:7},buttonText:{prev:"Алдыңғы",next:"Келесі",today:"Бүгін",year:"Жыл",month:"Ай",week:"Апта",day:"Күн",list:"Күн тәртібі"},weekText:"Не",allDayText:"Күні бойы",moreLinkText(e){return"+ тағы "+e},noEventsText:"Көрсету үшін оқиғалар жоқ"},hFe={code:"km",week:{dow:1,doy:4},buttonText:{prev:"មុន",next:"បន្ទាប់",today:"ថ្ងៃនេះ",year:"ឆ្នាំ",month:"ខែ",week:"សប្តាហ៍",day:"ថ្ងៃ",list:"បញ្ជី"},weekText:"សប្តាហ៍",allDayText:"ពេញមួយថ្ងៃ",moreLinkText:"ច្រើនទៀត",noEventsText:"គ្មានព្រឹត្តិការណ៍ត្រូវបង្ហាញ"},mFe={code:"ko",buttonText:{prev:"이전달",next:"다음달",today:"오늘",year:"년도",month:"월",week:"주",day:"일",list:"일정목록"},weekText:"주",allDayText:"종일",moreLinkText:"개",noEventsText:"일정이 없습니다"},gFe={code:"ku",week:{dow:6,doy:12},direction:"rtl",buttonText:{prev:"پێشتر",next:"دواتر",today:"ئەمڕو",year:"ساڵ",month:"مانگ",week:"هەفتە",day:"ڕۆژ",list:"بەرنامە"},weekText:"هەفتە",allDayText:"هەموو ڕۆژەکە",moreLinkText:"زیاتر",noEventsText:"هیچ ڕووداوێك نیە"},vFe={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"},yFe={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"},bFe={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"},xFe={code:"mk",buttonText:{prev:"претходно",next:"следно",today:"Денес",year:"година",month:"Месец",week:"Недела",day:"Ден",list:"График"},weekText:"Сед",allDayText:"Цел ден",moreLinkText(e){return"+повеќе "+e},noEventsText:"Нема настани за прикажување"},wFe={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"},SFe={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"}`}},CFe={code:"ne",week:{dow:7,doy:1},buttonText:{prev:"अघिल्लो",next:"अर्को",today:"आज",year:"वर्ष",month:"महिना",week:"हप्ता",day:"दिन",list:"सूची"},weekText:"हप्ता",allDayText:"दिनभरि",moreLinkText:"थप लिंक",noEventsText:"देखाउनको लागि कुनै घटनाहरू छैनन्"},$Fe={code:"nl",week:{dow:1,doy:4},buttonText:{prev:"Vorige",next:"Volgende",today:"Vandaag",year:"Jaar",month:"Maand",week:"Week",day:"Dag",list:"Lijst"},allDayText:"Hele dag",moreLinkText:"extra",noEventsText:"Geen evenementen om te laten zien"},TFe={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"},EFe={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"},kFe={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"},AFe={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"},RFe={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"},_Fe={code:"ru",week:{dow:1,doy:4},buttonText:{prev:"Пред",next:"След",today:"Сегодня",year:"Год",month:"Месяц",week:"Неделя",day:"День",list:"Повестка дня"},weekText:"Нед",allDayText:"Весь день",moreLinkText(e){return"+ ещё "+e},noEventsText:"Нет событий для отображения"},OFe={code:"si-lk",week:{dow:1,doy:4},buttonText:{prev:"පෙර",next:"පසු",today:"අද",year:"අවුරුදු",month:"මාසය",week:"සතිය",day:"දවස",list:"ලැයිස්තුව"},weekText:"සති",allDayText:"සියලු",moreLinkText:"තවත්",noEventsText:"මුකුත් නැත"},PFe={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"},MFe={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"},DFe={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"},IFe={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"},NFe={code:"sr-cyrl",week:{dow:1,doy:7},buttonText:{prev:"Претходна",next:"следећи",today:"Данас",year:"Година",month:"Месец",week:"Недеља",day:"Дан",list:"Планер"},weekText:"Сед",allDayText:"Цео дан",moreLinkText(e){return"+ још "+e},noEventsText:"Нема догађаја за приказ"},LFe={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"},jFe={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"},FFe={code:"ta-in",week:{dow:1,doy:4},buttonText:{prev:"முந்தைய",next:"அடுத்தது",today:"இன்று",year:"ஆண்டு",month:"மாதம்",week:"வாரம்",day:"நாள்",list:"தினசரி அட்டவணை"},weekText:"வாரம்",allDayText:"நாள் முழுவதும்",moreLinkText(e){return"+ மேலும் "+e},noEventsText:"காண்பிக்க நிகழ்வுகள் இல்லை"},zFe={code:"th",week:{dow:1,doy:4},buttonText:{prev:"ก่อนหน้า",next:"ถัดไป",prevYear:"ปีก่อนหน้า",nextYear:"ปีถัดไป",year:"ปี",today:"วันนี้",month:"เดือน",week:"สัปดาห์",day:"วัน",list:"กำหนดการ"},weekText:"สัปดาห์",allDayText:"ตลอดวัน",moreLinkText:"เพิ่มเติม",noEventsText:"ไม่มีกิจกรรมที่จะแสดง"},BFe={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"},UFe={code:"ug",buttonText:{prev:"ئالدىنقى",next:"كېيىنكى",today:"بۈگۈن",year:"يىل",month:"ئاي",week:"ھەپتە",day:"كۈن",list:"كۈنتەرتىپ"},allDayText:"پۈتۈن كۈن"},HFe={code:"uk",week:{dow:1,doy:7},buttonText:{prev:"Попередній",next:"далі",today:"Сьогодні",year:"рік",month:"Місяць",week:"Тиждень",day:"День",list:"Порядок денний"},weekText:"Тиж",allDayText:"Увесь день",moreLinkText(e){return"+ще "+e+"..."},noEventsText:"Немає подій для відображення"},VFe={code:"uz-cy",week:{dow:1,doy:4},buttonText:{prev:"Олин",next:"Кейин",today:"Бугун",month:"Ой",week:"Ҳафта",day:"Кун",list:"Кун тартиби"},weekText:"Ҳафта",allDayText:"Кун бўйича",moreLinkText(e){return"+ яна "+e},noEventsText:"Кўрсатиш учун воқеалар йўқ"},WFe={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"},qFe={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ị"},GFe={code:"zh-cn",week:{dow:1,doy:4},buttonText:{prev:"上月",next:"下月",today:"今天",year:"年",month:"月",week:"周",day:"日",list:"日程"},weekText:"周",allDayText:"全天",moreLinkText(e){return"另外 "+e+" 个"},noEventsText:"没有事件显示"},YFe={code:"zh-tw",buttonText:{prev:"上個",next:"下個",today:"今天",year:"年",month:"月",week:"週",day:"天",list:"活動列表"},weekText:"週",allDayText:"整天",moreLinkText:"顯示更多",noEventsText:"沒有任何活動"},KFe=[$je,Tje,Eje,kje,Aje,Rje,_je,Oje,Pje,Mje,Dje,Ije,Nje,Lje,jje,Fje,zje,Bje,Uje,Hje,Vje,Wje,qje,Gje,Yje,Kje,Zje,Qje,Jje,Xje,eFe,tFe,nFe,rFe,iFe,oFe,sFe,aFe,lFe,uFe,cFe,dFe,fFe,pFe,hFe,mFe,gFe,vFe,yFe,bFe,xFe,wFe,SFe,CFe,$Fe,TFe,EFe,kFe,AFe,RFe,_Fe,OFe,PFe,MFe,DFe,IFe,NFe,LFe,jFe,FFe,zFe,BFe,UFe,HFe,VFe,WFe,qFe,GFe,YFe];function Fo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iG(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hR(r.key),r)}}function zo(e,t,n){return t&&iG(e.prototype,t),n&&iG(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function qb(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&&fy(e,t)}function Am(e,t){if(t&&(Hi(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hs(e)}function ms(e){return ms=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ms(e)}function ZFe(e){if(Array.isArray(e))return e}function oG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Y6(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function sG(e,t){if(e){if(typeof e=="string")return Y6(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Y6(e,t):void 0}}function QFe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
363
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JFe(e){return ZFe(e)||oG(e)||sG(e)||QFe()}function aG(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 lG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aG(Object(n),!0).forEach(function(r){sn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var XFe={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)}},eze=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Fo(this,e),this.init(t,n)}return zo(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||XFe,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,lG(lG({},{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}(),gs=new eze,Hl=function(){function e(){Fo(this,e),this.observers={}}return zo(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 s=[].concat(this.observers[n]);s.forEach(function(l){l.apply(void 0,i)})}if(this.observers["*"]){var a=[].concat(this.observers["*"]);a.forEach(function(l){l.apply(l,[n].concat(i))})}}}]),e}();function Rm(){var e,t,n=new Promise(function(r,i){e=r,t=i});return n.resolve=e,n.reject=t,n}function uG(e){return e==null?"":""+e}function tze(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function K6(e,t,n){function r(a){return a&&a.indexOf("###")>-1?a.replace(/###/g,"."):a}function i(){return!e||typeof e=="string"}for(var o=typeof t!="string"?[].concat(t):t.split(".");o.length>1;){if(i())return{};var s=r(o.shift());!e[s]&&n&&(e[s]=new n),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={}}return i()?{}:{obj:e,k:r(o.shift())}}function cG(e,t,n){var r=K6(e,t,Object),i=r.obj,o=r.k;i[o]=n}function nze(e,t,n,r){var i=K6(e,t,Object),o=i.obj,s=i.k;o[s]=o[s]||[],r&&(o[s]=o[s].concat(n)),r||o[s].push(n)}function Gb(e,t){var n=K6(e,t),r=n.obj,i=n.k;if(r)return r[i]}function dG(e,t,n){var r=Gb(e,n);return r!==void 0?r:Gb(t,n)}function fG(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]):fG(e[r],t[r],n):e[r]=t[r]);return e}function Kf(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var rze={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function ize(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return rze[t]}):e}var Yb=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,oze=[" ",",","?","!",";"];function sze(e,t,n){t=t||"",n=n||"";var r=oze.filter(function(a){return t.indexOf(a)<0&&n.indexOf(a)<0});if(r.length===0)return!0;var i=new RegExp("(".concat(r.map(function(a){return a==="?"?"\\?":a}).join("|"),")")),o=!i.test(e);if(!o){var s=e.indexOf(n);s>0&&!i.test(e.substring(0,s))&&(o=!0)}return o}function pG(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 Kb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pG(Object(n),!0).forEach(function(r){sn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aze(e){var t=lze();return function(){var r=ms(e),i;if(t){var o=ms(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Am(this,i)}}function lze(){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 hG(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 s=2,a=r.slice(o,o+s).join(n),l=i[a];l===void 0&&r.length>o+s;)s++,a=r.slice(o,o+s).join(n),l=i[a];if(l===void 0)return;if(l===null)return null;if(t.endsWith(a)){if(typeof l=="string")return l;if(a&&typeof l[a]=="string")return l[a]}var u=r.slice(o+s).join(n);return u?hG(l,u,n):void 0}i=i[r[o]]}return i}}var uze=function(e){qb(n,e);var t=aze(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Fo(this,n),i=t.call(this),Yb&&Hl.call(Hs(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 zo(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,s){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,u=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure,c=[i,o];s&&typeof s!="string"&&(c=c.concat(s)),s&&typeof s=="string"&&(c=c.concat(l?s.split(l):s)),i.indexOf(".")>-1&&(c=i.split("."));var f=Gb(this.data,c);return f||!u||typeof s!="string"?f:hG(this.data&&this.data[i]&&this.data[i][o],s,l)}},{key:"addResource",value:function(i,o,s,a){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},u=this.options.keySeparator;u===void 0&&(u=".");var c=[i,o];s&&(c=c.concat(u?s.split(u):s)),i.indexOf(".")>-1&&(c=i.split("."),a=o,o=c[1]),this.addNamespaces(o),cG(this.data,c,a),l.silent||this.emit("added",i,o,s,a)}},{key:"addResources",value:function(i,o,s){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var l in s)(typeof s[l]=="string"||Object.prototype.toString.apply(s[l])==="[object Array]")&&this.addResource(i,o,l,s[l],{silent:!0});a.silent||this.emit("added",i,o,s)}},{key:"addResourceBundle",value:function(i,o,s,a,l){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},c=[i,o];i.indexOf(".")>-1&&(c=i.split("."),a=s,s=o,o=c[1]),this.addNamespaces(o);var f=Gb(this.data,c)||{};a?fG(f,s,l):f=Kb(Kb({},f),s),cG(this.data,c,f),u.silent||this.emit("added",i,o,s)}},{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"?Kb(Kb({},{}),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),s=o&&Object.keys(o)||[];return!!s.find(function(a){return o[a]&&Object.keys(o[a]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(Hl),mG={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,n,r,i,o){var s=this;return t.forEach(function(a){s.processors[a]&&(n=s.processors[a].process(n,r,i,o))}),n}};function gG(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 Br(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gG(Object(n),!0).forEach(function(r){sn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cze(e){var t=dze();return function(){var r=ms(e),i;if(t){var o=ms(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Am(this,i)}}function dze(){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 vG={},yG=function(e){qb(n,e);var t=cze(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Fo(this,n),i=t.call(this),Yb&&Hl.call(Hs(i)),tze(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,Hs(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=gs.create("translator"),i}return zo(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 s=this.resolve(i,o);return s&&s.res!==void 0}},{key:"extractFromKey",value:function(i,o){var s=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");var a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,l=o.ns||this.options.defaultNS||[],u=s&&i.indexOf(s)>-1,c=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!sze(i,s,a);if(u&&!c){var f=i.match(this.interpolator.nestingRegexp);if(f&&f.length>0)return{key:i,namespaces:l};var m=i.split(s);(s!==a||s===a&&this.options.ns.indexOf(m[0])>-1)&&(l=m.shift()),i=m.join(a)}return typeof l=="string"&&(l=[l]),{key:i,namespaces:l}}},{key:"translate",value:function(i,o,s){var a=this;if(Hi(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,u=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,c=this.extractFromKey(i[i.length-1],o),f=c.key,m=c.namespaces,p=m[m.length-1],g=o.lng||this.language,v=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(g&&g.toLowerCase()==="cimode"){if(v){var w=o.nsSeparator||this.options.nsSeparator;return l?(b.res="".concat(p).concat(w).concat(f),b):"".concat(p).concat(w).concat(f)}return l?(b.res=f,b):f}var b=this.resolve(i,o),y=b&&b.res,S=b&&b.usedKey||f,C=b&&b.exactUsedKey||f,T=Object.prototype.toString.apply(y),E=["[object Number]","[object Function]","[object RegExp]"],A=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,_=!this.i18nFormat||this.i18nFormat.handleAsObject,O=typeof y!="string"&&typeof y!="boolean"&&typeof y!="number";if(_&&y&&O&&E.indexOf(T)<0&&!(typeof A=="string"&&T==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var D=this.options.returnedObjectHandler?this.options.returnedObjectHandler(S,y,Br(Br({},o),{},{ns:m})):"key '".concat(f," (").concat(this.language,")' returned an object instead of string.");return l?(b.res=D,b):D}if(u){var I=T==="[object Array]",j=I?[]:{},z=I?C:S;for(var V in y)if(Object.prototype.hasOwnProperty.call(y,V)){var P="".concat(z).concat(u).concat(V);j[V]=this.translate(P,Br(Br({},o),{joinArrays:!1,ns:m})),j[V]===P&&(j[V]=y[V])}y=j}}else if(_&&typeof A=="string"&&T==="[object Array]")y=y.join(A),y&&(y=this.extendTranslation(y,i,o,s));else{var B=!1,Y=!1,U=o.count!==void 0&&typeof o.count!="string",Z=n.hasDefaultValue(o),J=U?this.pluralResolver.getSuffix(g,o.count,o):"",ae=o["defaultValue".concat(J)]||o.defaultValue;!this.isValidLookup(y)&&Z&&(B=!0,y=ae),this.isValidLookup(y)||(Y=!0,y=f);var xe=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,ye=xe&&Y?void 0:y,me=Z&&ae!==y&&this.options.updateMissing;if(Y||B||me){if(this.logger.log(me?"updateKey":"missingKey",g,p,f,me?ae:y),u){var be=this.resolve(f,Br(Br({},o),{},{keySeparator:!1}));be&&be.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 Ce=[],ze=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ze&&ze[0])for(var Ie=0;Ie<ze.length;Ie++)Ce.push(ze[Ie]);else this.options.saveMissingTo==="all"?Ce=this.languageUtils.toResolveHierarchy(o.lng||this.language):Ce.push(o.lng||this.language);var Ze=function(Le,je,Oe){var Ge=Z&&Oe!==y?Oe:ye;a.options.missingKeyHandler?a.options.missingKeyHandler(Le,p,je,Ge,me,o):a.backendConnector&&a.backendConnector.saveMissing&&a.backendConnector.saveMissing(Le,p,je,Ge,me,o),a.emit("missingKey",Le,p,je,y)};this.options.saveMissing&&(this.options.saveMissingPlurals&&U?Ce.forEach(function(st){a.pluralResolver.getSuffixes(st,o).forEach(function(Le){Ze([st],f+Le,o["defaultValue".concat(Le)]||ae)})}):Ze(Ce,f,ae))}y=this.extendTranslation(y,i,o,b,s),Y&&y===f&&this.options.appendNamespaceToMissingKey&&(y="".concat(p,":").concat(f)),(Y||B)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?y=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(p,":").concat(f):f,B?y:void 0):y=this.options.parseMissingKeyHandler(y))}return l?(b.res=y,b):y}},{key:"extendTranslation",value:function(i,o,s,a,l){var u=this;if(this.i18nFormat&&this.i18nFormat.parse)i=this.i18nFormat.parse(i,Br(Br({},this.options.interpolation.defaultVariables),s),a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init(Br(Br({},s),{interpolation:Br(Br({},this.options.interpolation),s.interpolation)}));var c=typeof i=="string"&&(s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),f;if(c){var m=i.match(this.interpolator.nestingRegexp);f=m&&m.length}var p=s.replace&&typeof s.replace!="string"?s.replace:s;if(this.options.interpolation.defaultVariables&&(p=Br(Br({},this.options.interpolation.defaultVariables),p)),i=this.interpolator.interpolate(i,p,s.lng||this.language,s),c){var g=i.match(this.interpolator.nestingRegexp),v=g&&g.length;f<v&&(s.nest=!1)}s.nest!==!1&&(i=this.interpolator.nest(i,function(){for(var y=arguments.length,S=new Array(y),C=0;C<y;C++)S[C]=arguments[C];return l&&l[0]===S[0]&&!s.context?(u.logger.warn("It seems you are nesting recursively key: ".concat(S[0]," in key: ").concat(o[0])),null):u.translate.apply(u,S.concat([o]))},s)),s.interpolation&&this.interpolator.reset()}var w=s.postProcess||this.options.postProcess,b=typeof w=="string"?[w]:w;return i!=null&&b&&b.length&&s.applyPostProcessor!==!1&&(i=mG.handle(b,i,o,this.options&&this.options.postProcessPassResolved?Br({i18nResolved:a},s):s,this)),i}},{key:"resolve",value:function(i){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a,l,u,c,f;return typeof i=="string"&&(i=[i]),i.forEach(function(m){if(!o.isValidLookup(a)){var p=o.extractFromKey(m,s),g=p.key;l=g;var v=p.namespaces;o.options.fallbackNS&&(v=v.concat(o.options.fallbackNS));var w=s.count!==void 0&&typeof s.count!="string",b=w&&!s.ordinal&&s.count===0&&o.pluralResolver.shouldUseIntlApi(),y=s.context!==void 0&&(typeof s.context=="string"||typeof s.context=="number")&&s.context!=="",S=s.lngs?s.lngs:o.languageUtils.toResolveHierarchy(s.lng||o.language,s.fallbackLng);v.forEach(function(C){o.isValidLookup(a)||(f=C,!vG["".concat(S[0],"-").concat(C)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(f)&&(vG["".concat(S[0],"-").concat(C)]=!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(T){if(!o.isValidLookup(a)){c=T;var E=[g];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(E,g,T,C,s);else{var A;w&&(A=o.pluralResolver.getSuffix(T,s.count,s));var _="".concat(o.options.pluralSeparator,"zero");if(w&&(E.push(g+A),b&&E.push(g+_)),y){var O="".concat(g).concat(o.options.contextSeparator).concat(s.context);E.push(O),w&&(E.push(O+A),b&&E.push(O+_))}}for(var D;D=E.pop();)o.isValidLookup(a)||(u=D,a=o.getResource(T,C,D,s))}}))})}}),{res:a,usedKey:l,exactUsedKey:u,usedLng:c,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,s){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,s,a):this.resourceStore.getResource(i,o,s,a)}}],[{key:"hasDefaultValue",value:function(i){var o="defaultValue";for(var s in i)if(Object.prototype.hasOwnProperty.call(i,s)&&o===s.substring(0,o.length)&&i[s]!==void 0)return!0;return!1}}]),n}(Hl);function Z6(e){return e.charAt(0).toUpperCase()+e.slice(1)}var fze=function(){function e(t){Fo(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=gs.create("languageUtils")}return zo(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]=Z6(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]=Z6(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=Z6(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 s=r.formatLanguageCode(o);(!r.options.supportedLngs||r.isSupportedCode(s))&&(i=s)}}),!i&&this.options.supportedLngs&&n.forEach(function(o){if(!i){var s=r.getLanguagePartFromCode(o);if(r.isSupportedCode(s))return i=s;i=r.options.supportedLngs.find(function(a){if(a.indexOf(s)===0)return a})}}),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),s=[],a=function(u){u&&(i.isSupportedCode(u)?s.push(u):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(u)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(n))):typeof n=="string"&&a(this.formatLanguageCode(n)),o.forEach(function(l){s.indexOf(l)<0&&a(i.formatLanguageCode(l))}),s}}]),e}(),pze=[{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}],hze={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}},mze=["v1","v2","v3"],bG={zero:0,one:1,two:2,few:3,many:4,other:5};function gze(){var e={};return pze.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:hze[t.fc]}})}),e}var vze=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Fo(this,e),this.languageUtils=t,this.options=n,this.logger=gs.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=gze()}return zo(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(s,a){return bG[s]-bG[a]}).map(function(s){return"".concat(r.options.prepend).concat(s)}):o.numbers.map(function(s){return r.getSuffix(n,s,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)),s=n.numbers[o];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));var a=function(){return i.options.prepend&&s.toString()?i.options.prepend+s.toString():s.toString()};return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?"_plural_".concat(s.toString()):a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!mze.includes(this.options.compatibilityJSON)}}]),e}();function xG(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 Bo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xG(Object(n),!0).forEach(function(r){sn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var yze=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Fo(this,e),this.logger=gs.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return zo(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:ize,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?Kf(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?Kf(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?Kf(r.nestingPrefix):r.nestingPrefixEscaped||Kf("$t("),this.nestingSuffix=r.nestingSuffix?Kf(r.nestingSuffix):r.nestingSuffixEscaped||Kf(")"),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 s=this,a,l,u,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function f(w){return w.replace(/\$/g,"$$$$")}var m=function(b){if(b.indexOf(s.formatSeparator)<0){var y=dG(r,c,b);return s.alwaysFormat?s.format(y,void 0,i,Bo(Bo(Bo({},o),r),{},{interpolationkey:b})):y}var S=b.split(s.formatSeparator),C=S.shift().trim(),T=S.join(s.formatSeparator).trim();return s.format(dG(r,c,C),T,i,Bo(Bo(Bo({},o),r),{},{interpolationkey:C}))};this.resetRegExp();var p=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,g=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,v=[{regex:this.regexpUnescape,safeValue:function(b){return f(b)}},{regex:this.regexp,safeValue:function(b){return s.escapeValue?f(s.escape(b)):f(b)}}];return v.forEach(function(w){for(u=0;a=w.regex.exec(n);){var b=a[1].trim();if(l=m(b),l===void 0)if(typeof p=="function"){var y=p(n,a,o);l=typeof y=="string"?y:""}else if(o&&o.hasOwnProperty(b))l="";else if(g){l=a[0];continue}else s.logger.warn("missed to pass in variable ".concat(b," for interpolating ").concat(n)),l="";else typeof l!="string"&&!s.useRawValueToEscape&&(l=uG(l));var S=w.safeValue(l);if(n=n.replace(a[0],S),g?(w.regex.lastIndex+=l.length,w.regex.lastIndex-=a[0].length):w.regex.lastIndex=0,u++,u>=s.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,a,l=Bo({},o);l.applyPostProcessor=!1,delete l.defaultValue;function u(p,g){var v=this.nestingOptionsSeparator;if(p.indexOf(v)<0)return p;var w=p.split(new RegExp("".concat(v,"[ ]*{"))),b="{".concat(w[1]);p=w[0],b=this.interpolate(b,l);var y=b.match(/'/g),S=b.match(/"/g);(y&&y.length%2===0&&!S||S.length%2!==0)&&(b=b.replace(/'/g,'"'));try{l=JSON.parse(b),g&&(l=Bo(Bo({},g),l))}catch(C){return this.logger.warn("failed parsing options string in nesting for key ".concat(p),C),"".concat(p).concat(v).concat(b)}return delete l.defaultValue,p}for(;s=this.nestingRegexp.exec(n);){var c=[],f=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){var m=s[1].split(this.formatSeparator).map(function(p){return p.trim()});s[1]=m.shift(),c=m,f=!0}if(a=r(u.call(this,s[1].trim(),l),l),a&&s[0]===n&&typeof a!="string")return a;typeof a!="string"&&(a=uG(a)),a||(this.logger.warn("missed to resolve ".concat(s[1]," for nesting ").concat(n)),a=""),f&&(a=c.reduce(function(p,g){return i.format(p,g,o.lng,Bo(Bo({},o),{},{interpolationkey:s[1].trim()}))},a.trim())),n=n.replace(s[0],a),this.regexp.lastIndex=0}return n}}]),e}();function wG(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 Vl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wG(Object(n),!0).forEach(function(r){sn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bze(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(s){if(s){var a=s.split(":"),l=JFe(a),u=l[0],c=l.slice(1),f=c.join(":").trim().replace(/^'+|'+$/g,"");n[u.trim()]||(n[u.trim()]=f),f==="false"&&(n[u.trim()]=!1),f==="true"&&(n[u.trim()]=!0),isNaN(f)||(n[u.trim()]=parseInt(f,10))}})}}return{formatName:t,formatOptions:n}}function Zf(e){var t={};return function(r,i,o){var s=i+JSON.stringify(o),a=t[s];return a||(a=e(i,o),t[s]=a),a(r)}}var xze=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Fo(this,e),this.logger=gs.create("formatter"),this.options=t,this.formats={number:Zf(function(n,r){var i=new Intl.NumberFormat(n,r);return function(o){return i.format(o)}}),currency:Zf(function(n,r){var i=new Intl.NumberFormat(n,Vl(Vl({},r),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:Zf(function(n,r){var i=new Intl.DateTimeFormat(n,Vl({},r));return function(o){return i.format(o)}}),relativetime:Zf(function(n,r){var i=new Intl.RelativeTimeFormat(n,Vl({},r));return function(o){return i.format(o,r.range||"day")}}),list:Zf(function(n,r){var i=new Intl.ListFormat(n,Vl({},r));return function(o){return i.format(o)}})},this.init(t)}return zo(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()]=Zf(r)}},{key:"format",value:function(n,r,i,o){var s=this,a=r.split(this.formatSeparator),l=a.reduce(function(u,c){var f=bze(c),m=f.formatName,p=f.formatOptions;if(s.formats[m]){var g=u;try{var v=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},w=v.locale||v.lng||o.locale||o.lng||i;g=s.formats[m](u,w,Vl(Vl(Vl({},p),o),v))}catch(b){s.logger.warn(b)}return g}else s.logger.warn("there was no format function for ".concat(m));return u},n);return l}}]),e}();function SG(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 CG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SG(Object(n),!0).forEach(function(r){sn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wze(e){var t=Sze();return function(){var r=ms(e),i;if(t){var o=ms(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Am(this,i)}}function Sze(){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 Cze(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var $ze=function(e){qb(n,e);var t=wze(n);function n(r,i,o){var s,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Fo(this,n),s=t.call(this),Yb&&Hl.call(Hs(s)),s.backend=r,s.store=i,s.services=o,s.languageUtils=o.languageUtils,s.options=a,s.logger=gs.create("backendConnector"),s.waitingReads=[],s.maxParallelReads=a.maxParallelReads||10,s.readingCalls=0,s.maxRetries=a.maxRetries>=0?a.maxRetries:5,s.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,s.state={},s.queue=[],s.backend&&s.backend.init&&s.backend.init(o,a.backend,a),s}return zo(n,[{key:"queueLoad",value:function(i,o,s,a){var l=this,u={},c={},f={},m={};return i.forEach(function(p){var g=!0;o.forEach(function(v){var w="".concat(p,"|").concat(v);!s.reload&&l.store.hasResourceBundle(p,v)?l.state[w]=2:l.state[w]<0||(l.state[w]===1?c[w]===void 0&&(c[w]=!0):(l.state[w]=1,g=!1,c[w]===void 0&&(c[w]=!0),u[w]===void 0&&(u[w]=!0),m[v]===void 0&&(m[v]=!0)))}),g||(f[p]=!0)}),(Object.keys(u).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(u),pending:Object.keys(c),toLoadLanguages:Object.keys(f),toLoadNamespaces:Object.keys(m)}}},{key:"loaded",value:function(i,o,s){var a=i.split("|"),l=a[0],u=a[1];o&&this.emit("failedLoading",l,u,o),s&&this.store.addResourceBundle(l,u,s),this.state[i]=o?-1:2;var c={};this.queue.forEach(function(f){nze(f.loaded,[l],u),Cze(f,i),o&&f.errors.push(o),f.pendingCount===0&&!f.done&&(Object.keys(f.loaded).forEach(function(m){c[m]||(c[m]={});var p=f.loaded[m];p.length&&p.forEach(function(g){c[m][g]===void 0&&(c[m][g]=!0)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(function(f){return!f.done})}},{key:"read",value:function(i,o,s){var a=this,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,c=arguments.length>5?arguments[5]:void 0;if(!i.length)return c(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:s,tried:l,wait:u,callback:c});return}return this.readingCalls++,this.backend[s](i,o,function(f,m){if(a.readingCalls--,a.waitingReads.length>0){var p=a.waitingReads.shift();a.read(p.lng,p.ns,p.fcName,p.tried,p.wait,p.callback)}if(f&&m&&l<a.maxRetries){setTimeout(function(){a.read.call(a,i,o,s,l+1,u*2,c)},u);return}c(f,m)})}},{key:"prepareLoading",value:function(i,o){var s=this,a=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 u=this.queueLoad(i,o,a,l);if(!u.toLoad.length)return u.pending.length||l(),null;u.toLoad.forEach(function(c){s.loadOne(c)})}},{key:"load",value:function(i,o,s){this.prepareLoading(i,o,{},s)}},{key:"reload",value:function(i,o,s){this.prepareLoading(i,o,{reload:!0},s)}},{key:"loadOne",value:function(i){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=i.split("|"),l=a[0],u=a[1];this.read(l,u,"read",void 0,void 0,function(c,f){c&&o.logger.warn("".concat(s,"loading namespace ").concat(u," for language ").concat(l," failed"),c),!c&&f&&o.logger.log("".concat(s,"loaded namespace ").concat(u," for language ").concat(l),f),o.loaded(i,c,f)})}},{key:"saveMissing",value:function(i,o,s,a,l){var u=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(s,'" 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}s==null||s===""||(this.backend&&this.backend.create&&this.backend.create(i,o,s,a,null,CG(CG({},u),{},{isUpdate:l})),!(!i||!i[0])&&this.store.addResource(i[0],o,s,a))}}]),n}(Hl);function Tze(){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(Hi(t[1])==="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),Hi(t[2])==="object"||Hi(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 $G(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 TG(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 vs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TG(Object(n),!0).forEach(function(r){sn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Eze(e){var t=kze();return function(){var r=ms(e),i;if(t){var o=ms(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Am(this,i)}}function kze(){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 Zb(){}function Aze(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(n){typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}var Qb=function(e){qb(n,e);var t=Eze(n);function n(){var r,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(Fo(this,n),r=t.call(this),Yb&&Hl.call(Hs(r)),r.options=$G(i),r.services={},r.logger=gs,r.modules={external:[]},Aze(Hs(r)),o&&!r.isInitialized&&!i.isClone){if(!r.options.initImmediate)return r.init(i,o),Am(r,Hs(r));setTimeout(function(){r.init(i,o)},0)}return r}return zo(n,[{key:"init",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(s=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 a=Tze();this.options=vs(vs(vs({},a),this.options),$G(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=vs(vs({},a.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function l(b){return b?typeof b=="function"?new b:b:null}if(!this.options.isClone){this.modules.logger?gs.init(l(this.modules.logger),this.options):gs.init(null,this.options);var u;this.modules.formatter?u=this.modules.formatter:typeof Intl<"u"&&(u=xze);var c=new fze(this.options);this.store=new uze(this.options.resources,this.options);var f=this.services;f.logger=gs,f.resourceStore=this.store,f.languageUtils=c,f.pluralResolver=new vze(c,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(f.formatter=l(u),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new yze(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new $ze(l(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(b){for(var y=arguments.length,S=new Array(y>1?y-1:0),C=1;C<y;C++)S[C-1]=arguments[C];i.emit.apply(i,[b].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 yG(this.services,this.options),this.translator.on("*",function(b){for(var y=arguments.length,S=new Array(y>1?y-1:0),C=1;C<y;C++)S[C-1]=arguments[C];i.emit.apply(i,[b].concat(S))}),this.modules.external.forEach(function(b){b.init&&b.init(i)})}if(this.format=this.options.interpolation.format,s||(s=Zb),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var m=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);m.length>0&&m[0]!=="dev"&&(this.options.lng=m[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(b){i[b]=function(){var y;return(y=i.store)[b].apply(y,arguments)}});var g=["addResource","addResources","addResourceBundle","removeResourceBundle"];g.forEach(function(b){i[b]=function(){var y;return(y=i.store)[b].apply(y,arguments),i}});var v=Rm(),w=function(){var y=function(C,T){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(T),s(C,T)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return y(null,i.t.bind(i));i.changeLanguage(i.options.lng,y)};return this.options.resources||!this.options.initImmediate?w():setTimeout(w,0),v}},{key:"loadResources",value:function(i){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zb,a=s,l=typeof i=="string"?i:this.language;if(typeof i=="function"&&(a=i),!this.options.resources||this.options.partialBundledLanguages){if(l&&l.toLowerCase()==="cimode")return a();var u=[],c=function(p){if(p){var g=o.services.languageUtils.toResolveHierarchy(p);g.forEach(function(v){u.indexOf(v)<0&&u.push(v)})}};if(l)c(l);else{var f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.forEach(function(m){return c(m)})}this.options.preload&&this.options.preload.forEach(function(m){return c(m)}),this.services.backendConnector.load(u,this.options.ns,function(m){!m&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),a(m)})}else a(null)}},{key:"reloadResources",value:function(i,o,s){var a=Rm();return i||(i=this.languages),o||(o=this.options.ns),s||(s=Zb),this.services.backendConnector.reload(i,o,function(l){a.resolve(),s(l)}),a}},{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"&&mG.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 s=this.languages[o];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}}},{key:"changeLanguage",value:function(i,o){var s=this;this.isLanguageChangingTo=i;var a=Rm();this.emit("languageChanging",i);var l=function(m){s.language=m,s.languages=s.services.languageUtils.toResolveHierarchy(m),s.resolvedLanguage=void 0,s.setResolvedLanguage(m)},u=function(m,p){p?(l(p),s.translator.changeLanguage(p),s.isLanguageChangingTo=void 0,s.emit("languageChanged",p),s.logger.log("languageChanged",p)):s.isLanguageChangingTo=void 0,a.resolve(function(){return s.t.apply(s,arguments)}),o&&o(m,function(){return s.t.apply(s,arguments)})},c=function(m){!i&&!m&&s.services.languageDetector&&(m=[]);var p=typeof m=="string"?m:s.services.languageUtils.getBestMatchFromCodes(m);p&&(s.language||l(p),s.translator.language||s.translator.changeLanguage(p),s.services.languageDetector&&s.services.languageDetector.cacheUserLanguage(p)),s.loadResources(p,function(g){u(g,p)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(c):c(i),a}},{key:"getFixedT",value:function(i,o,s){var a=this,l=function u(c,f){var m;if(Hi(f)!=="object"){for(var p=arguments.length,g=new Array(p>2?p-2:0),v=2;v<p;v++)g[v-2]=arguments[v];m=a.options.overloadTranslationOptionHandler([c,f].concat(g))}else m=vs({},f);m.lng=m.lng||u.lng,m.lngs=m.lngs||u.lngs,m.ns=m.ns||u.ns,m.keyPrefix=m.keyPrefix||s||u.keyPrefix;var w=a.options.keySeparator||".",b=m.keyPrefix?"".concat(m.keyPrefix).concat(w).concat(c):c;return a.t(b,m)};return typeof i=="string"?l.lng=i:l.lngs=i,l.ns=o,l.keyPrefix=s,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,s=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 a=this.resolvedLanguage||this.languages[0],l=this.options?this.options.fallbackLng:!1,u=this.languages[this.languages.length-1];if(a.toLowerCase()==="cimode")return!0;var c=function(p,g){var v=o.services.backendConnector.state["".concat(p,"|").concat(g)];return v===-1||v===2};if(s.precheck){var f=s.precheck(this,c);if(f!==void 0)return f}return!!(this.hasResourceBundle(a,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(a,i)&&(!l||c(u,i)))}},{key:"loadNamespaces",value:function(i,o){var s=this,a=Rm();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(l){s.options.ns.indexOf(l)<0&&s.options.ns.push(l)}),this.loadResources(function(l){a.resolve(),o&&o(l)}),a):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(i,o){var s=Rm();typeof i=="string"&&(i=[i]);var a=this.options.preload||[],l=i.filter(function(u){return a.indexOf(u)<0});return l.length?(this.options.preload=a.concat(l),this.loadResources(function(u){s.resolve(),o&&o(u)}),s):(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]:{},s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zb,a=vs(vs(vs({},this.options),o),{isClone:!0}),l=new n(a);(o.debug!==void 0||o.prefix!==void 0)&&(l.logger=l.logger.clone(o));var u=["store","services","language"];return u.forEach(function(c){l[c]=i[c]}),l.services=vs({},this.services),l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l.translator=new yG(l.services,l.options),l.translator.on("*",function(c){for(var f=arguments.length,m=new Array(f>1?f-1:0),p=1;p<f;p++)m[p-1]=arguments[p];l.emit.apply(l,[c].concat(m))}),l.init(a,s),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}(Hl);sn(Qb,"createInstance",function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new Qb(e,t)});var Zt=Qb.createInstance();Zt.createInstance=Qb.createInstance;var Rze=Zt.createInstance,_ze=Zt.init,Oze=Zt.loadResources,Pze=Zt.reloadResources,Mze=Zt.use,Dze=Zt.changeLanguage,Ize=Zt.getFixedT,Nze=Zt.t,Lze=Zt.exists,jze=Zt.setDefaultNamespace,Fze=Zt.hasLoadedNamespace,zze=Zt.loadNamespaces,Bze=Zt.loadLanguages;const Uze=Object.freeze(Object.defineProperty({__proto__:null,changeLanguage:Dze,createInstance:Rze,default:Zt,exists:Lze,getFixedT:Ize,hasLoadedNamespace:Fze,init:_ze,loadLanguages:Bze,loadNamespaces:zze,loadResources:Oze,reloadResources:Pze,setDefaultNamespace:jze,t:Nze,use:Mze},Symbol.toStringTag,{value:"Module"})),Hze=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 EG(e){const{t}=Cn(),{isLoading:n,bookables:r,products:i,product:o,resource:s,publicDataMap:a,openResourcePage:l,openProductPage:u,openBookingPage:c,height:f}=cs(e,N0),m=Se(A=>Qne(A)),p=re.useRef(null),[g,{width:v}]=oc(),w=Eo(A=>A.breakpoints.down("sm")),[b,y]=re.useState(),S=H$({bookables:r,products:i,selectedProduct:o}),{bookable:C}=mV(S),T=Hze(S,t);R.useEffect(()=>{if(!b!==o&&C){const A=p.current.getApi();A.gotoDate(Ne.fromISO(C==null?void 0:C.start).toISODate());let _=Ne.fromISO(C==null?void 0:C.start).minus({hours:5}),O=Ne.fromObject({hour:8,minute:0,second:0,millisecond:0});_>O&&A.scrollToTime(_.toFormat("HH:mm")),y(o)}},[T,C,C==null?void 0:C.start,b,o]);const E=R.useCallback(()=>l&&w&&a&&Object.keys(a).length>1,[w,l,a]);return n?$.jsx(Vze,{}):$.jsxs(Ut,{ref:g,sx:{flexGrow:1},children:[$.jsx(Dq,{ref:p,locales:KFe,locale:Zt.resolvedLanguage,height:f,timeZone:"utc",plugins:[uLe,fje,pje,Cje],customButtons:{productSelection:{text:(o==null?void 0:o.name)??t("product_selection_headline"),click:()=>{u()}},resourceSelection:{text:(s==null?void 0:s.name)??t("resource_selection_headline"),click:()=>{l()}}},headerToolbar:{left:E()?"resourceSelection productSelection":"productSelection",right:"today prev,next"},noEventsText:t("noEventsMessage"),events:T,eventClick:A=>{const _={...A.event.extendedProps};_.start=Ne.fromISO(A.event.startStr),_.end=Ne.fromISO(A.event.endStr),c(_)},windowResize:()=>{var A,_,O,D;m.smallView&&m.largeView&&(v<601?(_=(A=p==null?void 0:p.current)==null?void 0:A.getApi())==null||_.changeView(m.smallView):(D=(O=p==null?void 0:p.current)==null?void 0:O.getApi())==null||D.changeView(m.largeView))},...m}),$.jsx(hm,{})]})}const Vze=()=>{const e=["Sun 3/2","Mon 3/3","Tue 3/4","Wed 3/5","Thu 3/6","Fri 3/7","Sat 3/8"],t=["3pm","4pm","5pm","6pm","7pm","8pm"];return $.jsxs(Ut,{sx:{width:"100%"},children:[$.jsxs(ue,{container:!0,justifyContent:"space-between",children:[$.jsx(ue,{item:!0,xs:"auto",children:$.jsx(Jn,{variant:"rounded",width:"160px",height:"38px"})}),$.jsx(ue,{item:!0,xs:"auto",children:$.jsx(Jn,{variant:"rounded",width:"160px",height:"38px"})})]}),$.jsx(ue,{container:!0,spacing:2,children:e.map((n,r)=>$.jsx(ue,{item:!0,xs:1.5,children:$.jsx(Jn,{variant:"text",width:"100%"})},r))}),t.map((n,r)=>$.jsxs(ue,{container:!0,spacing:2,children:[$.jsx(ue,{item:!0,xs:1.5,children:$.jsx(Jn,{variant:"text",width:"100%"})}),e.map((i,o)=>$.jsx(ue,{item:!0,xs:1.5,children:$.jsx(Jn,{variant:"rectangular",width:"100%",height:56})},o))]},r))]})};var Q6={},Wze=An;Object.defineProperty(Q6,"__esModule",{value:!0});var kG=Q6.default=void 0,qze=Wze(Bn()),Gze=$;kG=Q6.default=(0,qze.default)((0,Gze.jsx)("path",{d:"M11.67 3.87 9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"}),"ArrowBackIos");var J6={},Yze=An;Object.defineProperty(J6,"__esModule",{value:!0});var AG=J6.default=void 0,Kze=Yze(Bn()),Zze=$;AG=J6.default=(0,Kze.default)((0,Zze.jsx)("path",{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"}),"ArrowForwardIos");function Qze({displayResourceButton:e,displayProductElement:t,increaseButton:n,decreaseButton:r,productElement:i,resourceButton:o}){return $.jsxs(ue,{container:!0,item:!0,xs:12,mb:2,spacing:1,children:[e&&$.jsx(ue,{item:!0,xs:12,sm:"auto",children:o}),t&&$.jsx(ue,{item:!0,xs:12,sm:"auto",children:i}),$.jsxs(ue,{item:!0,xs:12,sm:!0,container:!0,spacing:1,justifyContent:{xs:"space-between",sm:"flex-end"},children:[$.jsx(ue,{item:!0,xs:"auto",children:r}),$.jsx(ue,{item:!0,xs:"auto",children:n})]})]})}function Jze({displayResourceButton:e,displayProductElement:t,increaseButton:n,decreaseButton:r,productElement:i,resourceButton:o}){return $.jsx(ue,{container:!0,item:!0,xs:12,mb:2,children:$.jsxs(ue,{item:!0,xs:12,sm:!0,container:!0,alignItems:"center",justifyContent:{xs:"space-between",sm:"flex-end"},children:[$.jsx(ue,{item:!0,xs:"auto",children:r}),$.jsxs(ue,{item:!0,container:!0,xs:!0,justifyContent:"center",alignItems:"center",children:[e&&$.jsx(ue,{item:!0,xs:!0,children:o}),t&&$.jsx(ue,{item:!0,xs:!0,sm:"auto",children:i})]}),$.jsx(ue,{item:!0,xs:"auto",children:n})]})})}function Xze({date:e,timeslots:t,width:n,openBookingPage:r}){const{t:i}=Cn(),o=R.useMemo(()=>`${Ne.fromISO(e).toLocaleString({weekday:"short"})} ${Ne.fromISO(e).toLocaleString({day:"2-digit",month:"2-digit"})}
363
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JFe(e){return ZFe(e)||oG(e)||sG(e)||QFe()}function aG(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 lG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aG(Object(n),!0).forEach(function(r){sn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var XFe={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)}},eze=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Fo(this,e),this.init(t,n)}return zo(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||XFe,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,lG(lG({},{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}(),gs=new eze,Hl=function(){function e(){Fo(this,e),this.observers={}}return zo(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 s=[].concat(this.observers[n]);s.forEach(function(l){l.apply(void 0,i)})}if(this.observers["*"]){var a=[].concat(this.observers["*"]);a.forEach(function(l){l.apply(l,[n].concat(i))})}}}]),e}();function Rm(){var e,t,n=new Promise(function(r,i){e=r,t=i});return n.resolve=e,n.reject=t,n}function uG(e){return e==null?"":""+e}function tze(e,t,n){e.forEach(function(r){t[r]&&(n[r]=t[r])})}function K6(e,t,n){function r(a){return a&&a.indexOf("###")>-1?a.replace(/###/g,"."):a}function i(){return!e||typeof e=="string"}for(var o=typeof t!="string"?[].concat(t):t.split(".");o.length>1;){if(i())return{};var s=r(o.shift());!e[s]&&n&&(e[s]=new n),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={}}return i()?{}:{obj:e,k:r(o.shift())}}function cG(e,t,n){var r=K6(e,t,Object),i=r.obj,o=r.k;i[o]=n}function nze(e,t,n,r){var i=K6(e,t,Object),o=i.obj,s=i.k;o[s]=o[s]||[],r&&(o[s]=o[s].concat(n)),r||o[s].push(n)}function Gb(e,t){var n=K6(e,t),r=n.obj,i=n.k;if(r)return r[i]}function dG(e,t,n){var r=Gb(e,n);return r!==void 0?r:Gb(t,n)}function fG(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]):fG(e[r],t[r],n):e[r]=t[r]);return e}function Kf(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var rze={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function ize(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return rze[t]}):e}var Yb=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,oze=[" ",",","?","!",";"];function sze(e,t,n){t=t||"",n=n||"";var r=oze.filter(function(a){return t.indexOf(a)<0&&n.indexOf(a)<0});if(r.length===0)return!0;var i=new RegExp("(".concat(r.map(function(a){return a==="?"?"\\?":a}).join("|"),")")),o=!i.test(e);if(!o){var s=e.indexOf(n);s>0&&!i.test(e.substring(0,s))&&(o=!0)}return o}function pG(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 Kb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pG(Object(n),!0).forEach(function(r){sn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aze(e){var t=lze();return function(){var r=ms(e),i;if(t){var o=ms(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Am(this,i)}}function lze(){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 hG(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 s=2,a=r.slice(o,o+s).join(n),l=i[a];l===void 0&&r.length>o+s;)s++,a=r.slice(o,o+s).join(n),l=i[a];if(l===void 0)return;if(l===null)return null;if(t.endsWith(a)){if(typeof l=="string")return l;if(a&&typeof l[a]=="string")return l[a]}var u=r.slice(o+s).join(n);return u?hG(l,u,n):void 0}i=i[r[o]]}return i}}var uze=function(e){qb(n,e);var t=aze(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Fo(this,n),i=t.call(this),Yb&&Hl.call(Hs(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 zo(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,s){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,u=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure,c=[i,o];s&&typeof s!="string"&&(c=c.concat(s)),s&&typeof s=="string"&&(c=c.concat(l?s.split(l):s)),i.indexOf(".")>-1&&(c=i.split("."));var f=Gb(this.data,c);return f||!u||typeof s!="string"?f:hG(this.data&&this.data[i]&&this.data[i][o],s,l)}},{key:"addResource",value:function(i,o,s,a){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},u=this.options.keySeparator;u===void 0&&(u=".");var c=[i,o];s&&(c=c.concat(u?s.split(u):s)),i.indexOf(".")>-1&&(c=i.split("."),a=o,o=c[1]),this.addNamespaces(o),cG(this.data,c,a),l.silent||this.emit("added",i,o,s,a)}},{key:"addResources",value:function(i,o,s){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var l in s)(typeof s[l]=="string"||Object.prototype.toString.apply(s[l])==="[object Array]")&&this.addResource(i,o,l,s[l],{silent:!0});a.silent||this.emit("added",i,o,s)}},{key:"addResourceBundle",value:function(i,o,s,a,l){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},c=[i,o];i.indexOf(".")>-1&&(c=i.split("."),a=s,s=o,o=c[1]),this.addNamespaces(o);var f=Gb(this.data,c)||{};a?fG(f,s,l):f=Kb(Kb({},f),s),cG(this.data,c,f),u.silent||this.emit("added",i,o,s)}},{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"?Kb(Kb({},{}),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),s=o&&Object.keys(o)||[];return!!s.find(function(a){return o[a]&&Object.keys(o[a]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(Hl),mG={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,n,r,i,o){var s=this;return t.forEach(function(a){s.processors[a]&&(n=s.processors[a].process(n,r,i,o))}),n}};function gG(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 Br(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gG(Object(n),!0).forEach(function(r){sn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cze(e){var t=dze();return function(){var r=ms(e),i;if(t){var o=ms(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Am(this,i)}}function dze(){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 vG={},yG=function(e){qb(n,e);var t=cze(n);function n(r){var i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Fo(this,n),i=t.call(this),Yb&&Hl.call(Hs(i)),tze(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,Hs(i)),i.options=o,i.options.keySeparator===void 0&&(i.options.keySeparator="."),i.logger=gs.create("translator"),i}return zo(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 s=this.resolve(i,o);return s&&s.res!==void 0}},{key:"extractFromKey",value:function(i,o){var s=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");var a=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,l=o.ns||this.options.defaultNS||[],u=s&&i.indexOf(s)>-1,c=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!sze(i,s,a);if(u&&!c){var f=i.match(this.interpolator.nestingRegexp);if(f&&f.length>0)return{key:i,namespaces:l};var m=i.split(s);(s!==a||s===a&&this.options.ns.indexOf(m[0])>-1)&&(l=m.shift()),i=m.join(a)}return typeof l=="string"&&(l=[l]),{key:i,namespaces:l}}},{key:"translate",value:function(i,o,s){var a=this;if(Hi(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,u=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,c=this.extractFromKey(i[i.length-1],o),f=c.key,m=c.namespaces,p=m[m.length-1],g=o.lng||this.language,v=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(g&&g.toLowerCase()==="cimode"){if(v){var w=o.nsSeparator||this.options.nsSeparator;return l?(b.res="".concat(p).concat(w).concat(f),b):"".concat(p).concat(w).concat(f)}return l?(b.res=f,b):f}var b=this.resolve(i,o),y=b&&b.res,S=b&&b.usedKey||f,C=b&&b.exactUsedKey||f,T=Object.prototype.toString.apply(y),E=["[object Number]","[object Function]","[object RegExp]"],A=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,_=!this.i18nFormat||this.i18nFormat.handleAsObject,O=typeof y!="string"&&typeof y!="boolean"&&typeof y!="number";if(_&&y&&O&&E.indexOf(T)<0&&!(typeof A=="string"&&T==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var D=this.options.returnedObjectHandler?this.options.returnedObjectHandler(S,y,Br(Br({},o),{},{ns:m})):"key '".concat(f," (").concat(this.language,")' returned an object instead of string.");return l?(b.res=D,b):D}if(u){var I=T==="[object Array]",j=I?[]:{},z=I?C:S;for(var V in y)if(Object.prototype.hasOwnProperty.call(y,V)){var P="".concat(z).concat(u).concat(V);j[V]=this.translate(P,Br(Br({},o),{joinArrays:!1,ns:m})),j[V]===P&&(j[V]=y[V])}y=j}}else if(_&&typeof A=="string"&&T==="[object Array]")y=y.join(A),y&&(y=this.extendTranslation(y,i,o,s));else{var B=!1,Y=!1,U=o.count!==void 0&&typeof o.count!="string",Z=n.hasDefaultValue(o),J=U?this.pluralResolver.getSuffix(g,o.count,o):"",ae=o["defaultValue".concat(J)]||o.defaultValue;!this.isValidLookup(y)&&Z&&(B=!0,y=ae),this.isValidLookup(y)||(Y=!0,y=f);var xe=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,ye=xe&&Y?void 0:y,me=Z&&ae!==y&&this.options.updateMissing;if(Y||B||me){if(this.logger.log(me?"updateKey":"missingKey",g,p,f,me?ae:y),u){var be=this.resolve(f,Br(Br({},o),{},{keySeparator:!1}));be&&be.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 Ce=[],ze=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ze&&ze[0])for(var Ie=0;Ie<ze.length;Ie++)Ce.push(ze[Ie]);else this.options.saveMissingTo==="all"?Ce=this.languageUtils.toResolveHierarchy(o.lng||this.language):Ce.push(o.lng||this.language);var Ze=function(Le,je,Oe){var Ge=Z&&Oe!==y?Oe:ye;a.options.missingKeyHandler?a.options.missingKeyHandler(Le,p,je,Ge,me,o):a.backendConnector&&a.backendConnector.saveMissing&&a.backendConnector.saveMissing(Le,p,je,Ge,me,o),a.emit("missingKey",Le,p,je,y)};this.options.saveMissing&&(this.options.saveMissingPlurals&&U?Ce.forEach(function(st){a.pluralResolver.getSuffixes(st,o).forEach(function(Le){Ze([st],f+Le,o["defaultValue".concat(Le)]||ae)})}):Ze(Ce,f,ae))}y=this.extendTranslation(y,i,o,b,s),Y&&y===f&&this.options.appendNamespaceToMissingKey&&(y="".concat(p,":").concat(f)),(Y||B)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?y=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(p,":").concat(f):f,B?y:void 0):y=this.options.parseMissingKeyHandler(y))}return l?(b.res=y,b):y}},{key:"extendTranslation",value:function(i,o,s,a,l){var u=this;if(this.i18nFormat&&this.i18nFormat.parse)i=this.i18nFormat.parse(i,Br(Br({},this.options.interpolation.defaultVariables),s),a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init(Br(Br({},s),{interpolation:Br(Br({},this.options.interpolation),s.interpolation)}));var c=typeof i=="string"&&(s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),f;if(c){var m=i.match(this.interpolator.nestingRegexp);f=m&&m.length}var p=s.replace&&typeof s.replace!="string"?s.replace:s;if(this.options.interpolation.defaultVariables&&(p=Br(Br({},this.options.interpolation.defaultVariables),p)),i=this.interpolator.interpolate(i,p,s.lng||this.language,s),c){var g=i.match(this.interpolator.nestingRegexp),v=g&&g.length;f<v&&(s.nest=!1)}s.nest!==!1&&(i=this.interpolator.nest(i,function(){for(var y=arguments.length,S=new Array(y),C=0;C<y;C++)S[C]=arguments[C];return l&&l[0]===S[0]&&!s.context?(u.logger.warn("It seems you are nesting recursively key: ".concat(S[0]," in key: ").concat(o[0])),null):u.translate.apply(u,S.concat([o]))},s)),s.interpolation&&this.interpolator.reset()}var w=s.postProcess||this.options.postProcess,b=typeof w=="string"?[w]:w;return i!=null&&b&&b.length&&s.applyPostProcessor!==!1&&(i=mG.handle(b,i,o,this.options&&this.options.postProcessPassResolved?Br({i18nResolved:a},s):s,this)),i}},{key:"resolve",value:function(i){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a,l,u,c,f;return typeof i=="string"&&(i=[i]),i.forEach(function(m){if(!o.isValidLookup(a)){var p=o.extractFromKey(m,s),g=p.key;l=g;var v=p.namespaces;o.options.fallbackNS&&(v=v.concat(o.options.fallbackNS));var w=s.count!==void 0&&typeof s.count!="string",b=w&&!s.ordinal&&s.count===0&&o.pluralResolver.shouldUseIntlApi(),y=s.context!==void 0&&(typeof s.context=="string"||typeof s.context=="number")&&s.context!=="",S=s.lngs?s.lngs:o.languageUtils.toResolveHierarchy(s.lng||o.language,s.fallbackLng);v.forEach(function(C){o.isValidLookup(a)||(f=C,!vG["".concat(S[0],"-").concat(C)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(f)&&(vG["".concat(S[0],"-").concat(C)]=!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(T){if(!o.isValidLookup(a)){c=T;var E=[g];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(E,g,T,C,s);else{var A;w&&(A=o.pluralResolver.getSuffix(T,s.count,s));var _="".concat(o.options.pluralSeparator,"zero");if(w&&(E.push(g+A),b&&E.push(g+_)),y){var O="".concat(g).concat(o.options.contextSeparator).concat(s.context);E.push(O),w&&(E.push(O+A),b&&E.push(O+_))}}for(var D;D=E.pop();)o.isValidLookup(a)||(u=D,a=o.getResource(T,C,D,s))}}))})}}),{res:a,usedKey:l,exactUsedKey:u,usedLng:c,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,s){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,s,a):this.resourceStore.getResource(i,o,s,a)}}],[{key:"hasDefaultValue",value:function(i){var o="defaultValue";for(var s in i)if(Object.prototype.hasOwnProperty.call(i,s)&&o===s.substring(0,o.length)&&i[s]!==void 0)return!0;return!1}}]),n}(Hl);function Z6(e){return e.charAt(0).toUpperCase()+e.slice(1)}var fze=function(){function e(t){Fo(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=gs.create("languageUtils")}return zo(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]=Z6(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]=Z6(i[1].toLowerCase())),r.indexOf(i[2].toLowerCase())>-1&&(i[2]=Z6(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 s=r.formatLanguageCode(o);(!r.options.supportedLngs||r.isSupportedCode(s))&&(i=s)}}),!i&&this.options.supportedLngs&&n.forEach(function(o){if(!i){var s=r.getLanguagePartFromCode(o);if(r.isSupportedCode(s))return i=s;i=r.options.supportedLngs.find(function(a){if(a.indexOf(s)===0)return a})}}),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),s=[],a=function(u){u&&(i.isSupportedCode(u)?s.push(u):i.logger.warn("rejecting language code not found in supportedLngs: ".concat(u)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(n))):typeof n=="string"&&a(this.formatLanguageCode(n)),o.forEach(function(l){s.indexOf(l)<0&&a(i.formatLanguageCode(l))}),s}}]),e}(),pze=[{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}],hze={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}},mze=["v1","v2","v3"],bG={zero:0,one:1,two:2,few:3,many:4,other:5};function gze(){var e={};return pze.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:hze[t.fc]}})}),e}var vze=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Fo(this,e),this.languageUtils=t,this.options=n,this.logger=gs.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=gze()}return zo(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(s,a){return bG[s]-bG[a]}).map(function(s){return"".concat(r.options.prepend).concat(s)}):o.numbers.map(function(s){return r.getSuffix(n,s,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)),s=n.numbers[o];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));var a=function(){return i.options.prepend&&s.toString()?i.options.prepend+s.toString():s.toString()};return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?"_plural_".concat(s.toString()):a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!mze.includes(this.options.compatibilityJSON)}}]),e}();function xG(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 Bo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xG(Object(n),!0).forEach(function(r){sn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var yze=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Fo(this,e),this.logger=gs.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return zo(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:ize,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?Kf(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?Kf(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?Kf(r.nestingPrefix):r.nestingPrefixEscaped||Kf("$t("),this.nestingSuffix=r.nestingSuffix?Kf(r.nestingSuffix):r.nestingSuffixEscaped||Kf(")"),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 s=this,a,l,u,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function f(w){return w.replace(/\$/g,"$$$$")}var m=function(b){if(b.indexOf(s.formatSeparator)<0){var y=dG(r,c,b);return s.alwaysFormat?s.format(y,void 0,i,Bo(Bo(Bo({},o),r),{},{interpolationkey:b})):y}var S=b.split(s.formatSeparator),C=S.shift().trim(),T=S.join(s.formatSeparator).trim();return s.format(dG(r,c,C),T,i,Bo(Bo(Bo({},o),r),{},{interpolationkey:C}))};this.resetRegExp();var p=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,g=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,v=[{regex:this.regexpUnescape,safeValue:function(b){return f(b)}},{regex:this.regexp,safeValue:function(b){return s.escapeValue?f(s.escape(b)):f(b)}}];return v.forEach(function(w){for(u=0;a=w.regex.exec(n);){var b=a[1].trim();if(l=m(b),l===void 0)if(typeof p=="function"){var y=p(n,a,o);l=typeof y=="string"?y:""}else if(o&&o.hasOwnProperty(b))l="";else if(g){l=a[0];continue}else s.logger.warn("missed to pass in variable ".concat(b," for interpolating ").concat(n)),l="";else typeof l!="string"&&!s.useRawValueToEscape&&(l=uG(l));var S=w.safeValue(l);if(n=n.replace(a[0],S),g?(w.regex.lastIndex+=l.length,w.regex.lastIndex-=a[0].length):w.regex.lastIndex=0,u++,u>=s.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var i=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,a,l=Bo({},o);l.applyPostProcessor=!1,delete l.defaultValue;function u(p,g){var v=this.nestingOptionsSeparator;if(p.indexOf(v)<0)return p;var w=p.split(new RegExp("".concat(v,"[ ]*{"))),b="{".concat(w[1]);p=w[0],b=this.interpolate(b,l);var y=b.match(/'/g),S=b.match(/"/g);(y&&y.length%2===0&&!S||S.length%2!==0)&&(b=b.replace(/'/g,'"'));try{l=JSON.parse(b),g&&(l=Bo(Bo({},g),l))}catch(C){return this.logger.warn("failed parsing options string in nesting for key ".concat(p),C),"".concat(p).concat(v).concat(b)}return delete l.defaultValue,p}for(;s=this.nestingRegexp.exec(n);){var c=[],f=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){var m=s[1].split(this.formatSeparator).map(function(p){return p.trim()});s[1]=m.shift(),c=m,f=!0}if(a=r(u.call(this,s[1].trim(),l),l),a&&s[0]===n&&typeof a!="string")return a;typeof a!="string"&&(a=uG(a)),a||(this.logger.warn("missed to resolve ".concat(s[1]," for nesting ").concat(n)),a=""),f&&(a=c.reduce(function(p,g){return i.format(p,g,o.lng,Bo(Bo({},o),{},{interpolationkey:s[1].trim()}))},a.trim())),n=n.replace(s[0],a),this.regexp.lastIndex=0}return n}}]),e}();function wG(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 Vl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wG(Object(n),!0).forEach(function(r){sn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bze(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(s){if(s){var a=s.split(":"),l=JFe(a),u=l[0],c=l.slice(1),f=c.join(":").trim().replace(/^'+|'+$/g,"");n[u.trim()]||(n[u.trim()]=f),f==="false"&&(n[u.trim()]=!1),f==="true"&&(n[u.trim()]=!0),isNaN(f)||(n[u.trim()]=parseInt(f,10))}})}}return{formatName:t,formatOptions:n}}function Zf(e){var t={};return function(r,i,o){var s=i+JSON.stringify(o),a=t[s];return a||(a=e(i,o),t[s]=a),a(r)}}var xze=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Fo(this,e),this.logger=gs.create("formatter"),this.options=t,this.formats={number:Zf(function(n,r){var i=new Intl.NumberFormat(n,r);return function(o){return i.format(o)}}),currency:Zf(function(n,r){var i=new Intl.NumberFormat(n,Vl(Vl({},r),{},{style:"currency"}));return function(o){return i.format(o)}}),datetime:Zf(function(n,r){var i=new Intl.DateTimeFormat(n,Vl({},r));return function(o){return i.format(o)}}),relativetime:Zf(function(n,r){var i=new Intl.RelativeTimeFormat(n,Vl({},r));return function(o){return i.format(o,r.range||"day")}}),list:Zf(function(n,r){var i=new Intl.ListFormat(n,Vl({},r));return function(o){return i.format(o)}})},this.init(t)}return zo(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()]=Zf(r)}},{key:"format",value:function(n,r,i,o){var s=this,a=r.split(this.formatSeparator),l=a.reduce(function(u,c){var f=bze(c),m=f.formatName,p=f.formatOptions;if(s.formats[m]){var g=u;try{var v=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},w=v.locale||v.lng||o.locale||o.lng||i;g=s.formats[m](u,w,Vl(Vl(Vl({},p),o),v))}catch(b){s.logger.warn(b)}return g}else s.logger.warn("there was no format function for ".concat(m));return u},n);return l}}]),e}();function SG(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 CG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SG(Object(n),!0).forEach(function(r){sn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wze(e){var t=Sze();return function(){var r=ms(e),i;if(t){var o=ms(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Am(this,i)}}function Sze(){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 Cze(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var $ze=function(e){qb(n,e);var t=wze(n);function n(r,i,o){var s,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Fo(this,n),s=t.call(this),Yb&&Hl.call(Hs(s)),s.backend=r,s.store=i,s.services=o,s.languageUtils=o.languageUtils,s.options=a,s.logger=gs.create("backendConnector"),s.waitingReads=[],s.maxParallelReads=a.maxParallelReads||10,s.readingCalls=0,s.maxRetries=a.maxRetries>=0?a.maxRetries:5,s.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,s.state={},s.queue=[],s.backend&&s.backend.init&&s.backend.init(o,a.backend,a),s}return zo(n,[{key:"queueLoad",value:function(i,o,s,a){var l=this,u={},c={},f={},m={};return i.forEach(function(p){var g=!0;o.forEach(function(v){var w="".concat(p,"|").concat(v);!s.reload&&l.store.hasResourceBundle(p,v)?l.state[w]=2:l.state[w]<0||(l.state[w]===1?c[w]===void 0&&(c[w]=!0):(l.state[w]=1,g=!1,c[w]===void 0&&(c[w]=!0),u[w]===void 0&&(u[w]=!0),m[v]===void 0&&(m[v]=!0)))}),g||(f[p]=!0)}),(Object.keys(u).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(u),pending:Object.keys(c),toLoadLanguages:Object.keys(f),toLoadNamespaces:Object.keys(m)}}},{key:"loaded",value:function(i,o,s){var a=i.split("|"),l=a[0],u=a[1];o&&this.emit("failedLoading",l,u,o),s&&this.store.addResourceBundle(l,u,s),this.state[i]=o?-1:2;var c={};this.queue.forEach(function(f){nze(f.loaded,[l],u),Cze(f,i),o&&f.errors.push(o),f.pendingCount===0&&!f.done&&(Object.keys(f.loaded).forEach(function(m){c[m]||(c[m]={});var p=f.loaded[m];p.length&&p.forEach(function(g){c[m][g]===void 0&&(c[m][g]=!0)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(function(f){return!f.done})}},{key:"read",value:function(i,o,s){var a=this,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,c=arguments.length>5?arguments[5]:void 0;if(!i.length)return c(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:s,tried:l,wait:u,callback:c});return}return this.readingCalls++,this.backend[s](i,o,function(f,m){if(a.readingCalls--,a.waitingReads.length>0){var p=a.waitingReads.shift();a.read(p.lng,p.ns,p.fcName,p.tried,p.wait,p.callback)}if(f&&m&&l<a.maxRetries){setTimeout(function(){a.read.call(a,i,o,s,l+1,u*2,c)},u);return}c(f,m)})}},{key:"prepareLoading",value:function(i,o){var s=this,a=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 u=this.queueLoad(i,o,a,l);if(!u.toLoad.length)return u.pending.length||l(),null;u.toLoad.forEach(function(c){s.loadOne(c)})}},{key:"load",value:function(i,o,s){this.prepareLoading(i,o,{},s)}},{key:"reload",value:function(i,o,s){this.prepareLoading(i,o,{reload:!0},s)}},{key:"loadOne",value:function(i){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=i.split("|"),l=a[0],u=a[1];this.read(l,u,"read",void 0,void 0,function(c,f){c&&o.logger.warn("".concat(s,"loading namespace ").concat(u," for language ").concat(l," failed"),c),!c&&f&&o.logger.log("".concat(s,"loaded namespace ").concat(u," for language ").concat(l),f),o.loaded(i,c,f)})}},{key:"saveMissing",value:function(i,o,s,a,l){var u=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(s,'" 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}s==null||s===""||(this.backend&&this.backend.create&&this.backend.create(i,o,s,a,null,CG(CG({},u),{},{isUpdate:l})),!(!i||!i[0])&&this.store.addResource(i[0],o,s,a))}}]),n}(Hl);function Tze(){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(Hi(t[1])==="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),Hi(t[2])==="object"||Hi(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 $G(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 TG(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 vs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TG(Object(n),!0).forEach(function(r){sn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TG(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Eze(e){var t=kze();return function(){var r=ms(e),i;if(t){var o=ms(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Am(this,i)}}function kze(){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 Zb(){}function Aze(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(n){typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}var Qb=function(e){qb(n,e);var t=Eze(n);function n(){var r,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(Fo(this,n),r=t.call(this),Yb&&Hl.call(Hs(r)),r.options=$G(i),r.services={},r.logger=gs,r.modules={external:[]},Aze(Hs(r)),o&&!r.isInitialized&&!i.isClone){if(!r.options.initImmediate)return r.init(i,o),Am(r,Hs(r));setTimeout(function(){r.init(i,o)},0)}return r}return zo(n,[{key:"init",value:function(){var i=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(s=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 a=Tze();this.options=vs(vs(vs({},a),this.options),$G(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=vs(vs({},a.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function l(b){return b?typeof b=="function"?new b:b:null}if(!this.options.isClone){this.modules.logger?gs.init(l(this.modules.logger),this.options):gs.init(null,this.options);var u;this.modules.formatter?u=this.modules.formatter:typeof Intl<"u"&&(u=xze);var c=new fze(this.options);this.store=new uze(this.options.resources,this.options);var f=this.services;f.logger=gs,f.resourceStore=this.store,f.languageUtils=c,f.pluralResolver=new vze(c,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(f.formatter=l(u),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new yze(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new $ze(l(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(b){for(var y=arguments.length,S=new Array(y>1?y-1:0),C=1;C<y;C++)S[C-1]=arguments[C];i.emit.apply(i,[b].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 yG(this.services,this.options),this.translator.on("*",function(b){for(var y=arguments.length,S=new Array(y>1?y-1:0),C=1;C<y;C++)S[C-1]=arguments[C];i.emit.apply(i,[b].concat(S))}),this.modules.external.forEach(function(b){b.init&&b.init(i)})}if(this.format=this.options.interpolation.format,s||(s=Zb),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var m=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);m.length>0&&m[0]!=="dev"&&(this.options.lng=m[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(b){i[b]=function(){var y;return(y=i.store)[b].apply(y,arguments)}});var g=["addResource","addResources","addResourceBundle","removeResourceBundle"];g.forEach(function(b){i[b]=function(){var y;return(y=i.store)[b].apply(y,arguments),i}});var v=Rm(),w=function(){var y=function(C,T){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(T),s(C,T)};if(i.languages&&i.options.compatibilityAPI!=="v1"&&!i.isInitialized)return y(null,i.t.bind(i));i.changeLanguage(i.options.lng,y)};return this.options.resources||!this.options.initImmediate?w():setTimeout(w,0),v}},{key:"loadResources",value:function(i){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zb,a=s,l=typeof i=="string"?i:this.language;if(typeof i=="function"&&(a=i),!this.options.resources||this.options.partialBundledLanguages){if(l&&l.toLowerCase()==="cimode")return a();var u=[],c=function(p){if(p){var g=o.services.languageUtils.toResolveHierarchy(p);g.forEach(function(v){u.indexOf(v)<0&&u.push(v)})}};if(l)c(l);else{var f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.forEach(function(m){return c(m)})}this.options.preload&&this.options.preload.forEach(function(m){return c(m)}),this.services.backendConnector.load(u,this.options.ns,function(m){!m&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),a(m)})}else a(null)}},{key:"reloadResources",value:function(i,o,s){var a=Rm();return i||(i=this.languages),o||(o=this.options.ns),s||(s=Zb),this.services.backendConnector.reload(i,o,function(l){a.resolve(),s(l)}),a}},{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"&&mG.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 s=this.languages[o];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}}},{key:"changeLanguage",value:function(i,o){var s=this;this.isLanguageChangingTo=i;var a=Rm();this.emit("languageChanging",i);var l=function(m){s.language=m,s.languages=s.services.languageUtils.toResolveHierarchy(m),s.resolvedLanguage=void 0,s.setResolvedLanguage(m)},u=function(m,p){p?(l(p),s.translator.changeLanguage(p),s.isLanguageChangingTo=void 0,s.emit("languageChanged",p),s.logger.log("languageChanged",p)):s.isLanguageChangingTo=void 0,a.resolve(function(){return s.t.apply(s,arguments)}),o&&o(m,function(){return s.t.apply(s,arguments)})},c=function(m){!i&&!m&&s.services.languageDetector&&(m=[]);var p=typeof m=="string"?m:s.services.languageUtils.getBestMatchFromCodes(m);p&&(s.language||l(p),s.translator.language||s.translator.changeLanguage(p),s.services.languageDetector&&s.services.languageDetector.cacheUserLanguage(p)),s.loadResources(p,function(g){u(g,p)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(c):c(i),a}},{key:"getFixedT",value:function(i,o,s){var a=this,l=function u(c,f){var m;if(Hi(f)!=="object"){for(var p=arguments.length,g=new Array(p>2?p-2:0),v=2;v<p;v++)g[v-2]=arguments[v];m=a.options.overloadTranslationOptionHandler([c,f].concat(g))}else m=vs({},f);m.lng=m.lng||u.lng,m.lngs=m.lngs||u.lngs,m.ns=m.ns||u.ns,m.keyPrefix=m.keyPrefix||s||u.keyPrefix;var w=a.options.keySeparator||".",b=m.keyPrefix?"".concat(m.keyPrefix).concat(w).concat(c):c;return a.t(b,m)};return typeof i=="string"?l.lng=i:l.lngs=i,l.ns=o,l.keyPrefix=s,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,s=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 a=this.resolvedLanguage||this.languages[0],l=this.options?this.options.fallbackLng:!1,u=this.languages[this.languages.length-1];if(a.toLowerCase()==="cimode")return!0;var c=function(p,g){var v=o.services.backendConnector.state["".concat(p,"|").concat(g)];return v===-1||v===2};if(s.precheck){var f=s.precheck(this,c);if(f!==void 0)return f}return!!(this.hasResourceBundle(a,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(a,i)&&(!l||c(u,i)))}},{key:"loadNamespaces",value:function(i,o){var s=this,a=Rm();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(function(l){s.options.ns.indexOf(l)<0&&s.options.ns.push(l)}),this.loadResources(function(l){a.resolve(),o&&o(l)}),a):(o&&o(),Promise.resolve())}},{key:"loadLanguages",value:function(i,o){var s=Rm();typeof i=="string"&&(i=[i]);var a=this.options.preload||[],l=i.filter(function(u){return a.indexOf(u)<0});return l.length?(this.options.preload=a.concat(l),this.loadResources(function(u){s.resolve(),o&&o(u)}),s):(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]:{},s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zb,a=vs(vs(vs({},this.options),o),{isClone:!0}),l=new n(a);(o.debug!==void 0||o.prefix!==void 0)&&(l.logger=l.logger.clone(o));var u=["store","services","language"];return u.forEach(function(c){l[c]=i[c]}),l.services=vs({},this.services),l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l.translator=new yG(l.services,l.options),l.translator.on("*",function(c){for(var f=arguments.length,m=new Array(f>1?f-1:0),p=1;p<f;p++)m[p-1]=arguments[p];l.emit.apply(l,[c].concat(m))}),l.init(a,s),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}(Hl);sn(Qb,"createInstance",function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new Qb(e,t)});var Zt=Qb.createInstance();Zt.createInstance=Qb.createInstance;var Rze=Zt.createInstance,_ze=Zt.init,Oze=Zt.loadResources,Pze=Zt.reloadResources,Mze=Zt.use,Dze=Zt.changeLanguage,Ize=Zt.getFixedT,Nze=Zt.t,Lze=Zt.exists,jze=Zt.setDefaultNamespace,Fze=Zt.hasLoadedNamespace,zze=Zt.loadNamespaces,Bze=Zt.loadLanguages;const Uze=Object.freeze(Object.defineProperty({__proto__:null,changeLanguage:Dze,createInstance:Rze,default:Zt,exists:Lze,getFixedT:Ize,hasLoadedNamespace:Fze,init:_ze,loadLanguages:Bze,loadNamespaces:zze,loadResources:Oze,reloadResources:Pze,setDefaultNamespace:jze,t:Nze,use:Mze},Symbol.toStringTag,{value:"Module"})),Hze=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 EG(e){const{t}=Cn(),{isLoading:n,bookables:r,products:i,product:o,resource:s,publicDataMap:a,openResourcePage:l,openProductPage:u,openBookingPage:c,height:f}=cs(e,N0),m=Se(A=>Qne(A)),p=re.useRef(null),[g,{width:v}]=oc(),w=Eo(A=>A.breakpoints.down("sm")),[b,y]=re.useState(),S=H$({bookables:r,products:i,selectedProduct:o}),{bookable:C}=mV(S),T=Hze(S,t);R.useEffect(()=>{if(!b!==o&&C&&p.current){const A=p.current.getApi();A.gotoDate(Ne.fromISO(C==null?void 0:C.start).toISODate());let _=Ne.fromISO(C==null?void 0:C.start).minus({hours:5}),O=Ne.fromObject({hour:8,minute:0,second:0,millisecond:0});_>O&&A.scrollToTime(_.toFormat("HH:mm")),y(o)}},[T,C,C==null?void 0:C.start,b,o]);const E=R.useCallback(()=>l&&w&&a&&Object.keys(a).length>1,[w,l,a]);return n?$.jsx(Vze,{}):$.jsxs(Ut,{ref:g,sx:{flexGrow:1},children:[$.jsx(Dq,{ref:p,locales:KFe,locale:Zt.resolvedLanguage,height:f,timeZone:"utc",plugins:[uLe,fje,pje,Cje],customButtons:{productSelection:{text:(o==null?void 0:o.name)??t("product_selection_headline"),click:()=>{u()}},resourceSelection:{text:(s==null?void 0:s.name)??t("resource_selection_headline"),click:()=>{l()}}},headerToolbar:{left:E()?"resourceSelection productSelection":"productSelection",right:"today prev,next"},noEventsText:t("noEventsMessage"),events:T,eventClick:A=>{const _={...A.event.extendedProps};_.start=Ne.fromISO(A.event.startStr),_.end=Ne.fromISO(A.event.endStr),c(_)},windowResize:()=>{var A,_,O,D;m.smallView&&m.largeView&&(v<601?(_=(A=p==null?void 0:p.current)==null?void 0:A.getApi())==null||_.changeView(m.smallView):(D=(O=p==null?void 0:p.current)==null?void 0:O.getApi())==null||D.changeView(m.largeView))},...m}),$.jsx(hm,{})]})}const Vze=()=>{const e=["Sun 3/2","Mon 3/3","Tue 3/4","Wed 3/5","Thu 3/6","Fri 3/7","Sat 3/8"],t=["3pm","4pm","5pm","6pm","7pm","8pm"];return $.jsxs(Ut,{sx:{width:"100%"},children:[$.jsxs(ue,{container:!0,justifyContent:"space-between",children:[$.jsx(ue,{item:!0,xs:"auto",children:$.jsx(Jn,{variant:"rounded",width:"160px",height:"38px"})}),$.jsx(ue,{item:!0,xs:"auto",children:$.jsx(Jn,{variant:"rounded",width:"160px",height:"38px"})})]}),$.jsx(ue,{container:!0,spacing:2,children:e.map((n,r)=>$.jsx(ue,{item:!0,xs:1.5,children:$.jsx(Jn,{variant:"text",width:"100%"})},r))}),t.map((n,r)=>$.jsxs(ue,{container:!0,spacing:2,children:[$.jsx(ue,{item:!0,xs:1.5,children:$.jsx(Jn,{variant:"text",width:"100%"})}),e.map((i,o)=>$.jsx(ue,{item:!0,xs:1.5,children:$.jsx(Jn,{variant:"rectangular",width:"100%",height:56})},o))]},r))]})};var Q6={},Wze=An;Object.defineProperty(Q6,"__esModule",{value:!0});var kG=Q6.default=void 0,qze=Wze(Bn()),Gze=$;kG=Q6.default=(0,qze.default)((0,Gze.jsx)("path",{d:"M11.67 3.87 9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"}),"ArrowBackIos");var J6={},Yze=An;Object.defineProperty(J6,"__esModule",{value:!0});var AG=J6.default=void 0,Kze=Yze(Bn()),Zze=$;AG=J6.default=(0,Kze.default)((0,Zze.jsx)("path",{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"}),"ArrowForwardIos");function Qze({displayResourceButton:e,displayProductElement:t,increaseButton:n,decreaseButton:r,productElement:i,resourceButton:o}){return $.jsxs(ue,{container:!0,item:!0,xs:12,mb:2,spacing:1,children:[e&&$.jsx(ue,{item:!0,xs:12,sm:"auto",children:o}),t&&$.jsx(ue,{item:!0,xs:12,sm:"auto",children:i}),$.jsxs(ue,{item:!0,xs:12,sm:!0,container:!0,spacing:1,justifyContent:{xs:"space-between",sm:"flex-end"},children:[$.jsx(ue,{item:!0,xs:"auto",children:r}),$.jsx(ue,{item:!0,xs:"auto",children:n})]})]})}function Jze({displayResourceButton:e,displayProductElement:t,increaseButton:n,decreaseButton:r,productElement:i,resourceButton:o}){return $.jsx(ue,{container:!0,item:!0,xs:12,mb:2,children:$.jsxs(ue,{item:!0,xs:12,sm:!0,container:!0,alignItems:"center",justifyContent:{xs:"space-between",sm:"flex-end"},children:[$.jsx(ue,{item:!0,xs:"auto",children:r}),$.jsxs(ue,{item:!0,container:!0,xs:!0,justifyContent:"center",alignItems:"center",children:[e&&$.jsx(ue,{item:!0,xs:!0,children:o}),t&&$.jsx(ue,{item:!0,xs:!0,sm:"auto",children:i})]}),$.jsx(ue,{item:!0,xs:"auto",children:n})]})})}function Xze({date:e,timeslots:t,width:n,openBookingPage:r}){const{t:i}=Cn(),o=R.useMemo(()=>`${Ne.fromISO(e).toLocaleString({weekday:"short"})} ${Ne.fromISO(e).toLocaleString({day:"2-digit",month:"2-digit"})}
364
364
  `,[e]);return t?$.jsxs(ue,{container:!0,item:!0,xs:"auto",alignContent:"flex-start",children:[$.jsx(ue,{item:!0,xs:12,height:"25px",children:$.jsx(_e,{sx:{textAlign:"center"},children:o})}),$.jsx(ue,{container:!0,item:!0,xs:!0,direction:"row",alignItems:"center",rowSpacing:1,sx:{minWidth:n-8,mt:1},children:t.map((s,a)=>{if(s.renderAsBookable)return $.jsx(ue,{item:!0,xs:12,children:$.jsx(Po,{fullWidth:!0,variant:"outlined",onClick:()=>r(s),children:s.start.toLocaleString({hour:"2-digit",minute:"2-digit"})})},a);if(s.renderAsCancelable)return $.jsx(ue,{item:!0,xs:12,children:$.jsx(Po,{variant:"outlined",fullWidth:!0,onClick:()=>r(s),children:s.start.toLocaleString({hour:"2-digit",minute:"2-digit"})})},a);if(s.renderAsBlocker)return $.jsx(ue,{item:!0,xs:12,children:$.jsx(Po,{variant:"text",fullWidth:!0,disabled:!0,sx:{textTransform:"inherit"},children:i("appoinment_at_capacity")})},a)})})]},e):$.jsx($.Fragment,{})}function RG(e){const{t}=Cn(),{isLoading:n,bookables:r,products:i,product:o,resource:s,publicDataMap:a,openResourcePage:l,openProductPage:u,openBookingPage:c,height:f}=cs(e,N0),[m,p]=oc(void 0,"outer"),{width:g}=cM(),[v,w]=re.useState(!1),[b,y]=re.useState(!0),S=re.useRef(null),[C]=re.useState(120),[T,E]=re.useState(C),A=Se(P=>Fe(P,"calendarFrontendOptions")),_=Eo(P=>P.breakpoints.down("sm")),O=H$({bookables:r,products:i,selectedProduct:o}),D=R.useMemo(()=>Math.min(Math.max(Math.floor(g/136),1),5),[g]),I=()=>{if(S!=null&&S.current){let B=(Math.ceil(S.current.scrollLeft/136)+1)*136;S.current.scrollTo({left:B,behavior:"smooth"}),B>=S.current.scrollWidth-S.current.clientWidth&&w(!0),B>0&&y(!1)}},j=()=>{if(S){let B=(Math.ceil(S.current.scrollLeft/136)-1)*136;S.current.scrollTo({left:B,behavior:"smooth"}),B<=0&&y(!0),B<S.current.scrollWidth-S.current.clientWidth&&w(!1)}},z=R.useCallback(()=>l&&(_||A.condensedView.forceResourceSelectorDialog)&&a&&Object.keys(a).length>1,[A.condensedView.forceResourceSelectorDialog,_,l,a]);R.useMemo(()=>{O.length<D?(w(!0),y(!0)):w(!1)},[O==null?void 0:O.length,D]),R.useMemo(()=>{const P=Math.min(O.length,D);E(C+30*(D-P))},[C,D,O.length]);let V=0;for(const P of O)for(const B of Object.values(P))B.length>V&&(V=B.length);return n?$.jsx(eBe,{}):$.jsxs($.Fragment,{children:[$.jsxs(ue,{xs:!0,item:!0,container:!0,justifyContent:"center",sx:{maxWidth:`${(D+2)*C}px`,mx:"auto"},children:[_&&$.jsx(ue,{ref:m,item:!0,xs:12,children:$.jsx(Jze,{displayProductElement:u,displayResourceButton:z(),resourceButton:$.jsx(Po,{variant:"outlined",size:"small",fullWidth:!0,onClick:l,startIcon:$.jsx(Of,{fontSize:"small"}),endIcon:$.jsx(mm,{fontSize:"10px"}),sx:{textTransform:"inherit"},children:(s==null?void 0:s.name)||t("resource_selection_headline")}),productElement:$.jsx(gb,{openProductPage:u,product:o,products:i})})}),!_&&$.jsx(ue,{ref:m,item:!0,xs:12,children:$.jsx(Qze,{displayProductElement:u,displayResourceButton:z(),decreaseButton:$.jsx(x0,{size:"small",color:"primary",onClick:j,disabled:b,edge:"end",children:$.jsx(kG,{fontSize:"small"})}),increaseButton:$.jsx(x0,{size:"small",color:"primary",onClick:I,disabled:v,children:$.jsx(AG,{fontSize:"small"})}),resourceButton:$.jsx(Po,{variant:"outlined",size:"small",fullWidth:!0,onClick:l,startIcon:$.jsx(Of,{fontSize:"small"}),endIcon:$.jsx(mm,{fontSize:"10px"}),sx:{textTransform:"inherit"},children:(s==null?void 0:s.name)||t("resource_selection_headline")}),productElement:$.jsx(gb,{openProductPage:u,product:o,products:i})})}),$.jsxs(ue,{item:!0,container:!0,xs:12,justifyContent:O.length===0?"center":"flex-start",sx:{minHeight:"200px",maxHeight:f-p.height,overflowY:"auto"},children:[O.length===0&&$.jsx(ue,{item:!0,alignSelf:"center",children:$.jsx(_e,{sx:{textAlign:"center",color:P=>P.palette.text.secondary},children:t("noEventsMessage")})}),O.length>0&&$.jsx(ue,{item:!0,container:!0,xs:!0,justifyContent:"center",children:$.jsx(Ut,{ref:S,sx:{width:"100%",maxWidth:`${C*6}px`,overflowY:"hidden"},children:$.jsx(Vu,{sx:{display:"flex",flexDirection:"row",justifyContent:O.length>=D?"flex-start":"center",alignItems:"flex-start"},children:O.map(([P,B])=>$.jsx(Nr,{id:P,sx:{px:2,justifyContent:"center",flexGrow:0,flexBasis:"auto",width:`${T}px`,flexShrink:0},children:$.jsx(x2.div,{initial:{opacity:0},whileInView:{opacity:1,x:0},exit:{opacity:0},viewport:{root:S},transition:{duration:.3},amount:"all",layout:"position",children:$.jsx(Xze,{date:P,timeslots:B,openBookingPage:c,width:T})})},P))})})})]})]}),$.jsx(hm,{})]})}const eBe=()=>{const e=[{label:"Wed 03/05",occupied:!1},{label:"Thu 03/06",occupied:!0},{label:"Fri 03/07",occupied:!1},{label:"Sat 03/08",occupied:!0},{label:"Sun 03/09",occupied:!1},{label:"Mon 03/10",occupied:!0}],t=[{time:"08:00 AM"},{time:"09:20 AM"},{time:"10:40 AM"},{time:"11:00 AM"},{time:"12:20 AM"},{time:"1:40 PM"},{time:"3:40 PM"},{time:"4:40 PM"}];return $.jsxs(Ut,{sx:{width:"100%"},children:[$.jsxs(ue,{container:!0,justifyContent:"space-between",children:[$.jsx(ue,{item:!0,xs:"auto",children:$.jsx(Jn,{variant:"rounded",width:"120px",height:"38px"})}),$.jsx(ue,{item:!0,xs:"auto",children:$.jsx(Jn,{variant:"rounded",width:"120px",height:"38px"})})]}),$.jsxs(Ku,{maxWidth:"md",children:[$.jsx(ue,{container:!0,spacing:{xs:1,sm:2},children:e.map((n,r)=>$.jsx(ue,{item:!0,xs:2,textAlign:"center",children:$.jsx(Jn,{variant:"text",height:36,sx:{mt:1,width:"100%",maxWidth:"110px"}})},r))}),t.map((n,r)=>$.jsx(ue,{container:!0,spacing:{xs:1,sm:2},children:e.map((i,o)=>$.jsx($.Fragment,{children:(o!==0||o!==5)&&$.jsx(ue,{item:!0,xs:2,textAlign:"center",children:$.jsx(Jn,{variant:"rounded",height:36,sx:{mt:1,width:"100%",maxWidth:"110px"}})},o)}))},r))]})]})},tBe=ul`
365
365
  /*!
366
366
  * @preserve