iking-web-ui-pro 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Demo/index.es.js +13 -0
- package/dist/Demo/index.umd.js +1 -0
- package/dist/Demo/package.json +7 -0
- package/dist/IKApprovalProcess/index.es.js +13026 -0
- package/dist/IKApprovalProcess/index.umd.js +32 -0
- package/dist/IKApprovalProcess/package.json +7 -0
- package/dist/IKApprovalProcess/style.css +7 -0
- package/dist/IKApprovalProcessDetail/index.es.js +630 -0
- package/dist/IKApprovalProcessDetail/index.umd.js +1 -0
- package/dist/IKApprovalProcessDetail/package.json +7 -0
- package/dist/IKApprovalProcessDetail/style.css +1 -0
- package/dist/IKCalendar/index.es.js +22495 -0
- package/dist/IKCalendar/index.umd.js +32 -0
- package/dist/IKCalendar/package.json +7 -0
- package/dist/IKCalendar/style.css +7 -0
- package/dist/IKDescription/index.es.js +105 -0
- package/dist/IKDescription/index.umd.js +1 -0
- package/dist/IKDescription/style.css +1 -0
- package/dist/IKDetailPreviewFiles/index.es.js +1599 -0
- package/dist/IKDetailPreviewFiles/index.umd.js +1 -0
- package/dist/IKDetailPreviewFiles/style.css +1 -0
- package/dist/IKExpandCollapse/index.es.js +1388 -0
- package/dist/IKExpandCollapse/index.umd.js +1 -0
- package/dist/IKExpandCollapse/style.css +1 -0
- package/dist/IKHorizontalStepBar/index.es.js +251 -0
- package/dist/IKHorizontalStepBar/index.umd.js +1 -0
- package/dist/IKHorizontalStepBar/package.json +7 -0
- package/dist/IKHorizontalStepBar/style.css +1 -0
- package/dist/IKPreviewFile/index.es.js +108 -0
- package/dist/IKPreviewFile/index.umd.js +1 -0
- package/dist/IKPreviewFile/style.css +1 -0
- package/dist/IKSearch/index.es.js +13406 -0
- package/dist/IKSearch/index.umd.js +57 -0
- package/dist/IKSearch/package.json +7 -0
- package/dist/IKSearch/style.css +7 -0
- package/dist/IKSearchHead/index.es.js +116 -0
- package/dist/IKSearchHead/index.umd.js +1 -0
- package/dist/IKSearchHead/package.json +7 -0
- package/dist/IKSearchHead/style.css +1 -0
- package/dist/IKVerticalStepBar/index.es.js +1481 -0
- package/dist/IKVerticalStepBar/index.umd.js +9 -0
- package/dist/IKVerticalStepBar/package.json +7 -0
- package/dist/IKVerticalStepBar/style.css +1 -0
- package/dist/IkBottomOperate/index.es.js +210 -0
- package/dist/IkBottomOperate/index.umd.js +1 -0
- package/dist/IkBottomOperate/style.css +1 -0
- package/dist/IkBtnContent/index.es.js +101 -0
- package/dist/IkBtnContent/index.umd.js +1 -0
- package/dist/IkBtnContent/style.css +1 -0
- package/dist/IkBtnSetting/index.es.js +12854 -0
- package/dist/IkBtnSetting/index.umd.js +32 -0
- package/dist/IkBtnSetting/style.css +7 -0
- package/dist/IkDragList/index.es.js +11071 -0
- package/dist/IkDragList/index.umd.js +32 -0
- package/dist/IkDragList/style.css +7 -0
- package/dist/IkFullCalendar/index.es.js +20327 -0
- package/dist/IkFullCalendar/index.umd.js +32 -0
- package/dist/IkFullCalendar/style.css +7 -0
- package/dist/IkIconPicker/index.es.js +13693 -0
- package/dist/IkIconPicker/index.umd.js +32 -0
- package/dist/IkIconPicker/style.css +7 -0
- package/dist/IkOnlyOffice/index.es.js +393 -0
- package/dist/IkOnlyOffice/index.umd.js +1 -0
- package/dist/IkOnlyOffice/style.css +0 -0
- package/dist/IkPageFull/index.es.js +15725 -0
- package/dist/IkPageFull/index.umd.js +48 -0
- package/dist/IkPageFull/style.css +7 -0
- package/dist/IkPageTabs/index.es.js +135 -0
- package/dist/IkPageTabs/index.umd.js +1 -0
- package/dist/IkPageTabs/style.css +1 -0
- package/dist/IkPicker/index.es.js +12629 -0
- package/dist/IkPicker/index.umd.js +32 -0
- package/dist/IkPicker/style.css +7 -0
- package/dist/IkPickerUser/index.es.js +12508 -0
- package/dist/IkPickerUser/index.umd.js +32 -0
- package/dist/IkPickerUser/style.css +7 -0
- package/dist/IkPrintConfig/index.es.js +62 -0
- package/dist/IkPrintConfig/index.umd.js +1 -0
- package/dist/IkPrintView/index.es.js +79 -0
- package/dist/IkPrintView/index.umd.js +1 -0
- package/dist/IkRadioGroup/index.es.js +75 -0
- package/dist/IkRadioGroup/index.umd.js +1 -0
- package/dist/IkRadioGroup/style.css +1 -0
- package/dist/IkSchedule/index.es.js +22228 -0
- package/dist/IkSchedule/index.umd.js +32 -0
- package/dist/IkSchedule/style.css +7 -0
- package/dist/IkStatu/index.es.js +119 -0
- package/dist/IkStatu/index.umd.js +1 -0
- package/dist/IkStatu/style.css +1 -0
- package/dist/IkSvgIcon/index.es.js +1343 -0
- package/dist/IkSvgIcon/index.umd.js +1 -0
- package/dist/IkSvgIcon/style.css +1 -0
- package/dist/IkTemplateOfficeConfig/index.es.js +805 -0
- package/dist/IkTemplateOfficeConfig/index.umd.js +1 -0
- package/dist/IkTemplateOfficeConfig/style.css +1 -0
- package/dist/IkTooltip/index.es.js +49 -0
- package/dist/IkTooltip/index.umd.js +1 -0
- package/dist/IkUploadFile/index.es.js +12098 -0
- package/dist/IkUploadFile/index.umd.js +32 -0
- package/dist/IkUploadFile/style.css +7 -0
- package/dist/IkUploadImage/index.es.js +11442 -0
- package/dist/IkUploadImage/index.umd.js +32 -0
- package/dist/IkUploadImage/style.css +7 -0
- package/dist/index.es.js +33843 -0
- package/dist/index.umd.js +81 -0
- package/dist/style.css +7 -0
- package/package.json +66 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
(function(He,S){typeof exports=="object"&&typeof module<"u"?S(exports,require("vue"),require("lodash-es"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","lodash-es","element-plus"],S):(He=typeof globalThis<"u"?globalThis:He||self,S(He.index={},He.Vue,null,He["element-plus"]))})(this,function(He,S,on,bi){"use strict";var rE=Object.defineProperty;var iE=(He,S,on)=>S in He?rE(He,S,{enumerable:!0,configurable:!0,writable:!0,value:on}):He[S]=on;var ga=(He,S,on)=>(iE(He,typeof S!="symbol"?S+"":S,on),on);const yi=(t,e)=>{if(t.install=n=>{for(const r of[t,...Object.values(e??{})])n.component(r.name,r)},e)for(const[n,r]of Object.entries(e))t[n]=r;return t},ku=Object.prototype.toString,Ei=t=>ku.call(t)==="[object Object]",Iu={copyValue:(t,e)=>{if(!Ei(t)||!Ei(e))throw new Error("参数异常");return Object.keys(t).forEach(n=>{Reflect.has(e,n)&&(t[n]=e[n])}),t},isObject:Ei};var nr,ie,va,ma,an,Wt,xa,ba,ya,rr={},Ea=[],Nu=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function St(t,e){for(var n in e)t[n]=e[n];return t}function Aa(t){var e=t.parentNode;e&&e.removeChild(t)}function T(t,e,n){var r,i,s,o={};for(s in e)s=="key"?r=e[s]:s=="ref"?i=e[s]:o[s]=e[s];if(arguments.length>2&&(o.children=arguments.length>3?nr.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(s in t.defaultProps)o[s]===void 0&&(o[s]=t.defaultProps[s]);return ir(t,o,r,i,null)}function ir(t,e,n,r,i){var s={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++va};return i==null&&ie.vnode!=null&&ie.vnode(s),s}function Le(){return{current:null}}function Ae(t){return t.children}function Mu(t,e,n,r,i){var s;for(s in n)s==="children"||s==="key"||s in e||sr(t,s,null,n[s],r);for(s in e)i&&typeof e[s]!="function"||s==="children"||s==="key"||s==="value"||s==="checked"||n[s]===e[s]||sr(t,s,e[s],n[s],r)}function Ca(t,e,n){e[0]==="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||Nu.test(e)?n:n+"px"}function sr(t,e,n,r,i){var s;e:if(e==="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||Ca(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||Ca(t.style,e,n[e])}else if(e[0]==="o"&&e[1]==="n")s=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+s]=n,n?r||t.addEventListener(e,s?_a:wa,s):t.removeEventListener(e,s?_a:wa,s);else if(e!=="dangerouslySetInnerHTML"){if(i)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="width"&&e!=="height"&&e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in t)try{t[e]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&e.indexOf("-")==-1?t.removeAttribute(e):t.setAttribute(e,n))}}function wa(t){an=!0;try{return this.l[t.type+!1](ie.event?ie.event(t):t)}finally{an=!1}}function _a(t){an=!0;try{return this.l[t.type+!0](ie.event?ie.event(t):t)}finally{an=!1}}function Ye(t,e){this.props=t,this.context=e}function _n(t,e){if(e==null)return t.__?_n(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?_n(t):null}function Da(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=t.__c.base=n.__e;break}return Da(t)}}function Fu(t){an?setTimeout(t):ba(t)}function Ai(t){(!t.__d&&(t.__d=!0)&&Wt.push(t)&&!or.__r++||xa!==ie.debounceRendering)&&((xa=ie.debounceRendering)||Fu)(or)}function or(){var t,e,n,r,i,s,o,a;for(Wt.sort(function(c,l){return c.__v.__b-l.__v.__b});t=Wt.shift();)t.__d&&(e=Wt.length,r=void 0,i=void 0,o=(s=(n=t).__v).__e,(a=n.__P)&&(r=[],(i=St({},s)).__v=s.__v+1,Ci(a,s,i,n.__n,a.ownerSVGElement!==void 0,s.__h!=null?[o]:null,r,o??_n(s),s.__h),ka(r,s),s.__e!=o&&Da(s)),Wt.length>e&&Wt.sort(function(c,l){return c.__v.__b-l.__v.__b}));or.__r=0}function Sa(t,e,n,r,i,s,o,a,c,l){var f,d,u,h,g,m,x,A=r&&r.__k||Ea,p=A.length;for(n.__k=[],f=0;f<e.length;f++)if((h=n.__k[f]=(h=e[f])==null||typeof h=="boolean"?null:typeof h=="string"||typeof h=="number"||typeof h=="bigint"?ir(null,h,null,null,h):Array.isArray(h)?ir(Ae,{children:h},null,null,null):h.__b>0?ir(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)!=null){if(h.__=n,h.__b=n.__b+1,(u=A[f])===null||u&&h.key==u.key&&h.type===u.type)A[f]=void 0;else for(d=0;d<p;d++){if((u=A[d])&&h.key==u.key&&h.type===u.type){A[d]=void 0;break}u=null}Ci(t,h,u=u||rr,i,s,o,a,c,l),g=h.__e,(d=h.ref)&&u.ref!=d&&(x||(x=[]),u.ref&&x.push(u.ref,null,h),x.push(d,h.__c||g,h)),g!=null?(m==null&&(m=g),typeof h.type=="function"&&h.__k===u.__k?h.__d=c=Ra(h,c,t):c=Ba(t,h,u,A,g,c),typeof n.type=="function"&&(n.__d=c)):c&&u.__e==c&&c.parentNode!=t&&(c=_n(u))}for(n.__e=m,f=p;f--;)A[f]!=null&&(typeof n.type=="function"&&A[f].__e!=null&&A[f].__e==n.__d&&(n.__d=Ta(r).nextSibling),Na(A[f],A[f]));if(x)for(f=0;f<x.length;f++)Ia(x[f],x[++f],x[++f])}function Ra(t,e,n){for(var r,i=t.__k,s=0;i&&s<i.length;s++)(r=i[s])&&(r.__=t,e=typeof r.type=="function"?Ra(r,e,n):Ba(n,r,r,i,r.__e,e));return e}function ar(t,e){return e=e||[],t==null||typeof t=="boolean"||(Array.isArray(t)?t.some(function(n){ar(n,e)}):e.push(t)),e}function Ba(t,e,n,r,i,s){var o,a,c;if(e.__d!==void 0)o=e.__d,e.__d=void 0;else if(n==null||i!=s||i.parentNode==null)e:if(s==null||s.parentNode!==t)t.appendChild(i),o=null;else{for(a=s,c=0;(a=a.nextSibling)&&c<r.length;c+=1)if(a==i)break e;t.insertBefore(i,s),o=s}return o!==void 0?o:i.nextSibling}function Ta(t){var e,n,r;if(t.type==null||typeof t.type=="string")return t.__e;if(t.__k){for(e=t.__k.length-1;e>=0;e--)if((n=t.__k[e])&&(r=Ta(n)))return r}return null}function Ci(t,e,n,r,i,s,o,a,c){var l,f,d,u,h,g,m,x,A,p,v,b,E,C,D,w=e.type;if(e.constructor!==void 0)return null;n.__h!=null&&(c=n.__h,a=e.__e=n.__e,e.__h=null,s=[a]),(l=ie.__b)&&l(e);try{e:if(typeof w=="function"){if(x=e.props,A=(l=w.contextType)&&r[l.__c],p=l?A?A.props.value:l.__:r,n.__c?m=(f=e.__c=n.__c).__=f.__E:("prototype"in w&&w.prototype.render?e.__c=f=new w(x,p):(e.__c=f=new Ye(x,p),f.constructor=w,f.render=Pu),A&&A.sub(f),f.props=x,f.state||(f.state={}),f.context=p,f.__n=r,d=f.__d=!0,f.__h=[],f._sb=[]),f.__s==null&&(f.__s=f.state),w.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=St({},f.__s)),St(f.__s,w.getDerivedStateFromProps(x,f.__s))),u=f.props,h=f.state,f.__v=e,d)w.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(w.getDerivedStateFromProps==null&&x!==u&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(x,p),!f.__e&&f.shouldComponentUpdate!=null&&f.shouldComponentUpdate(x,f.__s,p)===!1||e.__v===n.__v){for(e.__v!==n.__v&&(f.props=x,f.state=f.__s,f.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(I){I&&(I.__=e)}),v=0;v<f._sb.length;v++)f.__h.push(f._sb[v]);f._sb=[],f.__h.length&&o.push(f);break e}f.componentWillUpdate!=null&&f.componentWillUpdate(x,f.__s,p),f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(u,h,g)})}if(f.context=p,f.props=x,f.__P=t,b=ie.__r,E=0,"prototype"in w&&w.prototype.render){for(f.state=f.__s,f.__d=!1,b&&b(e),l=f.render(f.props,f.state,f.context),C=0;C<f._sb.length;C++)f.__h.push(f._sb[C]);f._sb=[]}else do f.__d=!1,b&&b(e),l=f.render(f.props,f.state,f.context),f.state=f.__s;while(f.__d&&++E<25);f.state=f.__s,f.getChildContext!=null&&(r=St(St({},r),f.getChildContext())),d||f.getSnapshotBeforeUpdate==null||(g=f.getSnapshotBeforeUpdate(u,h)),D=l!=null&&l.type===Ae&&l.key==null?l.props.children:l,Sa(t,Array.isArray(D)?D:[D],e,n,r,i,s,o,a,c),f.base=e.__e,e.__h=null,f.__h.length&&o.push(f),m&&(f.__E=f.__=null),f.__e=!1}else s==null&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=Ou(n.__e,e,n,r,i,s,o,c);(l=ie.diffed)&&l(e)}catch(I){e.__v=null,(c||s!=null)&&(e.__e=a,e.__h=!!c,s[s.indexOf(a)]=null),ie.__e(I,e,n)}}function ka(t,e){ie.__c&&ie.__c(e,t),t.some(function(n){try{t=n.__h,n.__h=[],t.some(function(r){r.call(n)})}catch(r){ie.__e(r,n.__v)}})}function Ou(t,e,n,r,i,s,o,a){var c,l,f,d=n.props,u=e.props,h=e.type,g=0;if(h==="svg"&&(i=!0),s!=null){for(;g<s.length;g++)if((c=s[g])&&"setAttribute"in c==!!h&&(h?c.localName===h:c.nodeType===3)){t=c,s[g]=null;break}}if(t==null){if(h===null)return document.createTextNode(u);t=i?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,u.is&&u),s=null,a=!1}if(h===null)d===u||a&&t.data===u||(t.data=u);else{if(s=s&&nr.call(t.childNodes),l=(d=n.props||rr).dangerouslySetInnerHTML,f=u.dangerouslySetInnerHTML,!a){if(s!=null)for(d={},g=0;g<t.attributes.length;g++)d[t.attributes[g].name]=t.attributes[g].value;(f||l)&&(f&&(l&&f.__html==l.__html||f.__html===t.innerHTML)||(t.innerHTML=f&&f.__html||""))}if(Mu(t,u,d,i,a),f)e.__k=[];else if(g=e.props.children,Sa(t,Array.isArray(g)?g:[g],e,n,r,i&&h!=="foreignObject",s,o,s?s[0]:n.__k&&_n(n,0),a),s!=null)for(g=s.length;g--;)s[g]!=null&&Aa(s[g]);a||("value"in u&&(g=u.value)!==void 0&&(g!==t.value||h==="progress"&&!g||h==="option"&&g!==d.value)&&sr(t,"value",g,d.value,!1),"checked"in u&&(g=u.checked)!==void 0&&g!==t.checked&&sr(t,"checked",g,d.checked,!1))}return t}function Ia(t,e,n){try{typeof t=="function"?t(e):t.current=e}catch(r){ie.__e(r,n)}}function Na(t,e,n){var r,i;if(ie.unmount&&ie.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||Ia(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){ie.__e(s,e)}r.base=r.__P=null,t.__c=void 0}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&Na(r[i],e,n||typeof t.type!="function");n||t.__e==null||Aa(t.__e),t.__=t.__e=t.__d=void 0}function Pu(t,e,n){return this.constructor(t,n)}function Dn(t,e,n){var r,i,s;ie.__&&ie.__(t,e),i=(r=typeof n=="function")?null:n&&n.__k||e.__k,s=[],Ci(e,t=(!r&&n||e).__k=T(Ae,null,[t]),i||rr,rr,e.ownerSVGElement!==void 0,!r&&n?[n]:i?null:e.firstChild?nr.call(e.childNodes):null,s,!r&&n?n:i?i.__e:e.firstChild,r),ka(s,t)}function Hu(t,e){var n={__c:e="__cC"+ya++,__:t,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,s;return this.getChildContext||(i=[],(s={})[e]=this,this.getChildContext=function(){return s},this.shouldComponentUpdate=function(o){this.props.value!==o.value&&i.some(function(a){a.__e=!0,Ai(a)})},this.sub=function(o){i.push(o);var a=o.componentWillUnmount;o.componentWillUnmount=function(){i.splice(i.indexOf(o),1),a&&a.call(o)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}nr=Ea.slice,ie={__e:function(t,e,n,r){for(var i,s,o;e=e.__;)if((i=e.__c)&&!i.__)try{if((s=i.constructor)&&s.getDerivedStateFromError!=null&&(i.setState(s.getDerivedStateFromError(t)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,r||{}),o=i.__d),o)return i.__E=i}catch(a){t=a}throw t}},va=0,ma=function(t){return t!=null&&t.constructor===void 0},an=!1,Ye.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=St({},this.state),typeof t=="function"&&(t=t(St({},n),this.props)),t&&St(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),Ai(this))},Ye.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Ai(this))},Ye.prototype.render=Ae,Wt=[],ba=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,or.__r=0,ya=0;var lt,wi,Ma,Fa=[],_i=[],Oa=ie.__b,Pa=ie.__r,Ha=ie.diffed,La=ie.__c,za=ie.unmount;function Lu(){for(var t;t=Fa.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(lr),t.__H.__h.forEach(Di),t.__H.__h=[]}catch(e){t.__H.__h=[],ie.__e(e,t.__v)}}ie.__b=function(t){lt=null,Oa&&Oa(t)},ie.__r=function(t){Pa&&Pa(t);var e=(lt=t.__c).__H;e&&(wi===lt?(e.__h=[],lt.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=_i,n.__N=n.i=void 0})):(e.__h.forEach(lr),e.__h.forEach(Di),e.__h=[])),wi=lt},ie.diffed=function(t){Ha&&Ha(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(Fa.push(e)!==1&&Ma===ie.requestAnimationFrame||((Ma=ie.requestAnimationFrame)||zu)(Lu)),e.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==_i&&(n.__=n.__V),n.i=void 0,n.__V=_i})),wi=lt=null},ie.__c=function(t,e){e.some(function(n){try{n.__h.forEach(lr),n.__h=n.__h.filter(function(r){return!r.__||Di(r)})}catch(r){e.some(function(i){i.__h&&(i.__h=[])}),e=[],ie.__e(r,n.__v)}}),La&&La(t,e)},ie.unmount=function(t){za&&za(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{lr(r)}catch(i){e=i}}),n.__H=void 0,e&&ie.__e(e,n.__v))};var Ua=typeof requestAnimationFrame=="function";function zu(t){var e,n=function(){clearTimeout(r),Ua&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);Ua&&(e=requestAnimationFrame(n))}function lr(t){var e=lt,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),lt=e}function Di(t){var e=lt;t.__c=t.__(),lt=e}function Uu(t,e){for(var n in e)t[n]=e[n];return t}function Va(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var r in e)if(r!=="__source"&&t[r]!==e[r])return!0;return!1}function Wa(t){this.props=t}(Wa.prototype=new Ye).isPureReactComponent=!0,Wa.prototype.shouldComponentUpdate=function(t,e){return Va(this.props,t)||Va(this.state,e)};var ja=ie.__b;ie.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),ja&&ja(t)};var Vu=ie.__e;ie.__e=function(t,e,n,r){if(t.then){for(var i,s=e;s=s.__;)if((i=s.__c)&&i.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),i.__c(t,e)}Vu(t,e,n,r)};var qa=ie.unmount;function $a(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),t.__c.__H=null),(t=Uu({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(r){return $a(r,e,n)})),t}function Ga(t,e,n){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(r){return Ga(r,e,n)}),t.__c&&t.__c.__P===e&&(t.__e&&n.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=n)),t}function Si(){this.__u=0,this.t=null,this.__b=null}function Ya(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function cr(){this.u=null,this.o=null}ie.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),qa&&qa(t)},(Si.prototype=new Ye).__c=function(t,e){var n=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var i=Ya(r.__v),s=!1,o=function(){s||(s=!0,n.__R=null,i?i(a):a())};n.__R=o;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=Ga(l,l.__c.__P,l.__c.__O)}var f;for(r.setState({__a:r.__b=null});f=r.t.pop();)f.forceUpdate()}},c=e.__h===!0;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),t.then(o,o)},Si.prototype.componentWillUnmount=function(){this.t=[]},Si.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=$a(this.__b,n,r.__O=r.__P)}this.__b=null}var i=e.__a&&T(Ae,null,t.fallback);return i&&(i.__h=null),[T(Ae,null,e.__a?null:t.children),i]};var Qa=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.u=n=n[2]}};function Wu(t){return this.getChildContext=function(){return t.context},t.children}function ju(t){var e=this,n=t.i;e.componentWillUnmount=function(){Dn(null,e.l),e.l=null,e.i=null},e.i&&e.i!==n&&e.componentWillUnmount(),t.__v?(e.l||(e.i=n,e.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),e.i.appendChild(r)},insertBefore:function(r,i){this.childNodes.push(r),e.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),e.i.removeChild(r)}}),Dn(T(Wu,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function qu(t,e){var n=T(ju,{__v:t,i:e});return n.containerInfo=e,n}(cr.prototype=new Ye).__a=function(t){var e=this,n=Ya(e.__v),r=e.o.get(t);return r[0]++,function(i){var s=function(){e.props.revealOrder?(r.push(i),Qa(e,t,r)):i()};n?n(s):s()}},cr.prototype.render=function(t){this.u=null,this.o=new Map;var e=ar(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},cr.prototype.componentDidUpdate=cr.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){Qa(t,n,e)})};var $u=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Gu=/^(?: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]/,Yu=typeof document<"u",Qu=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};Ye.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(Ye.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var Za=ie.event;function Zu(){}function Xu(){return this.cancelBubble}function Ku(){return this.defaultPrevented}ie.event=function(t){return Za&&(t=Za(t)),t.persist=Zu,t.isPropagationStopped=Xu,t.isDefaultPrevented=Ku,t.nativeEvent=t};var Xa={configurable:!0,get:function(){return this.class}},Ka=ie.vnode;ie.vnode=function(t){var e=t.type,n=t.props,r=n;if(typeof e=="string"){var i=e.indexOf("-")===-1;for(var s in r={},n){var o=n[s];Yu&&s==="children"&&e==="noscript"||s==="value"&&"defaultValue"in n&&o==null||(s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&o===!0?o="":/ondoubleclick/i.test(s)?s="ondblclick":/^onchange(textarea|input)/i.test(s+e)&&!Qu(n.type)?s="oninput":/^onfocus$/i.test(s)?s="onfocusin":/^onblur$/i.test(s)?s="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(s)?s=s.toLowerCase():i&&Gu.test(s)?s=s.replace(/[A-Z0-9]/g,"-$&").toLowerCase():o===null&&(o=void 0),/^oninput$/i.test(s)&&(s=s.toLowerCase(),r[s]&&(s="oninputCapture")),r[s]=o)}e=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=ar(n.children).forEach(function(a){a.props.selected=r.value.indexOf(a.props.value)!=-1})),e=="select"&&r.defaultValue!=null&&(r.value=ar(n.children).forEach(function(a){a.props.selected=r.multiple?r.defaultValue.indexOf(a.props.value)!=-1:r.defaultValue==a.props.value})),t.props=r,n.class!=n.className&&(Xa.enumerable="className"in n,n.className!=null&&(r.class=n.className),Object.defineProperty(r,"className",Xa))}t.$$typeof=$u,Ka&&Ka(t)};var Ja=ie.__r;ie.__r=function(t){Ja&&Ja(t),t.__c};const el=[],Ri=new Map;function Bi(t){el.push(t),Ri.forEach(e=>{nl(e,t)})}function Ju(t){t.isConnected&&tl(t.getRootNode())}function tl(t){let e=Ri.get(t);if(!e||!e.isConnected){if(e=t.querySelector("style[data-fullcalendar]"),!e){e=document.createElement("style"),e.setAttribute("data-fullcalendar","");const n=td();n&&(e.nonce=n);const r=t===document?document.head:t,i=t===document?r.querySelector("script,link[rel=stylesheet],link[as=style],style"):r.firstChild;r.insertBefore(e,i)}Ri.set(t,e),ed(e)}}function ed(t){for(const e of el)nl(t,e)}function nl(t,e){const{sheet:n}=t,r=n.cssRules.length;e.split("}").forEach((i,s)=>{i=i.trim(),i&&n.insertRule(i+"}",r+s)})}let Ti;function td(){return Ti===void 0&&(Ti=nd()),Ti}function nd(){const t=document.querySelector('meta[name="csp-nonce"]');if(t&&t.hasAttribute("content"))return t.getAttribute("content");const e=document.querySelector("script[nonce]");return e&&e.nonce||""}typeof document<"u"&&tl(document);var rd=':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}';Bi(rd);class ki{constructor(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),e==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))}pause(e=""){let{pauseDepths:n}=this;n[e]=(n[e]||0)+1,this.clearTimeout()}resume(e="",n){let{pauseDepths:r}=this;e in r&&(n?delete r[e]:(r[e]-=1,r[e]<=0&&delete r[e]),this.tryDrain())}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}function Ii(t){t.parentNode&&t.parentNode.removeChild(t)}function Fe(t,e){if(t.closest)return t.closest(e);if(!document.documentElement.contains(t))return null;do{if(id(t,e))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===1);return null}function id(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector).call(t,e)}function sd(t,e){let n=t instanceof HTMLElement?[t]:t,r=[];for(let i=0;i<n.length;i+=1){let s=n[i].querySelectorAll(e);for(let o=0;o<s.length;o+=1)r.push(s[o])}return r}const od=/(top|left|right|bottom|width|height)$/i;function Sn(t,e){for(let n in e)rl(t,n,e[n])}function rl(t,e,n){n==null?t.style[e]="":typeof n=="number"&&od.test(e)?t.style[e]=`${n}px`:t.style[e]=n}function il(t){var e,n;return(n=(e=t.composedPath)===null||e===void 0?void 0:e.call(t)[0])!==null&&n!==void 0?n:t.target}let sl=0;function fr(){return sl+=1,"fc-dom-"+sl}function ur(t){t.preventDefault()}function ad(t,e){return n=>{let r=Fe(n.target,t);r&&e.call(r,n,r)}}function ol(t,e,n,r){let i=ad(n,r);return t.addEventListener(e,i),()=>{t.removeEventListener(e,i)}}function ld(t,e,n,r){let i;return ol(t,"mouseover",e,(s,o)=>{if(o!==i){i=o,n(s,o);let a=c=>{i=null,r(c,o),o.removeEventListener("mouseleave",a)};o.addEventListener("mouseleave",a)}})}const al=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function cd(t,e){let n=r=>{e(r),al.forEach(i=>{t.removeEventListener(i,n)})};al.forEach(r=>{t.addEventListener(r,n)})}function ll(t){return Object.assign({onClick:t},cl(t))}function cl(t){return{tabIndex:0,onKeyDown(e){(e.key==="Enter"||e.key===" ")&&(t(e),e.preventDefault())}}}let fl=0;function jt(){return fl+=1,String(fl)}function Ni(){document.body.classList.add("fc-not-allowed")}function Mi(){document.body.classList.remove("fc-not-allowed")}function fd(t){t.style.userSelect="none",t.style.webkitUserSelect="none",t.addEventListener("selectstart",ur)}function ud(t){t.style.userSelect="",t.style.webkitUserSelect="",t.removeEventListener("selectstart",ur)}function dd(t){t.addEventListener("contextmenu",ur)}function hd(t){t.removeEventListener("contextmenu",ur)}function pd(t){let e=[],n=[],r,i;for(typeof t=="string"?n=t.split(/\s*,\s*/):typeof t=="function"?n=[t]:Array.isArray(t)&&(n=t),r=0;r<n.length;r+=1)i=n[r],typeof i=="string"?e.push(i.charAt(0)==="-"?{field:i.substring(1),order:-1}:{field:i,order:1}):typeof i=="function"&&e.push({func:i});return e}function gd(t,e,n){let r,i;for(r=0;r<n.length;r+=1)if(i=vd(t,e,n[r]),i)return i;return 0}function vd(t,e,n){return n.func?n.func(t,e):md(t[n.field],e[n.field])*(n.order||1)}function md(t,e){return!t&&!e?0:e==null?-1:t==null?1:typeof t=="string"||typeof e=="string"?String(t).localeCompare(String(e)):t-e}function ln(t,e){let n=String(t);return"000".substr(0,e-n.length)+n}function Rn(t,e,n){return typeof t=="function"?t(...e):typeof t=="string"?e.reduce((r,i,s)=>r.replace("$"+s,i||""),t):n}function xd(t,e){return t-e}function dr(t){return t%1===0}function bd(t){let e=t.querySelector(".fc-scrollgrid-shrink-frame"),n=t.querySelector(".fc-scrollgrid-shrink-cushion");if(!e)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return t.getBoundingClientRect().width-e.getBoundingClientRect().width+n.getBoundingClientRect().width}const ul=["years","months","days","milliseconds"],yd=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function pe(t,e){return typeof t=="string"?Ed(t):typeof t=="object"&&t?dl(t):typeof t=="number"?dl({[e||"milliseconds"]:t}):null}function Ed(t){let e=yd.exec(t);if(e){let n=e[1]?-1:1;return{years:0,months:0,days:n*(e[2]?parseInt(e[2],10):0),milliseconds:n*((e[3]?parseInt(e[3],10):0)*60*60*1e3+(e[4]?parseInt(e[4],10):0)*60*1e3+(e[5]?parseInt(e[5],10):0)*1e3+(e[6]?parseInt(e[6],10):0))}}return null}function dl(t){let e={years:t.years||t.year||0,months:t.months||t.month||0,days:t.days||t.day||0,milliseconds:(t.hours||t.hour||0)*60*60*1e3+(t.minutes||t.minute||0)*60*1e3+(t.seconds||t.second||0)*1e3+(t.milliseconds||t.millisecond||t.ms||0)},n=t.weeks||t.week;return n&&(e.days+=n*7,e.specifiedWeeks=!0),e}function Ad(t,e){return t.years===e.years&&t.months===e.months&&t.days===e.days&&t.milliseconds===e.milliseconds}function Fi(t,e){return{years:t.years+e.years,months:t.months+e.months,days:t.days+e.days,milliseconds:t.milliseconds+e.milliseconds}}function Cd(t,e){return{years:t.years-e.years,months:t.months-e.months,days:t.days-e.days,milliseconds:t.milliseconds-e.milliseconds}}function wd(t,e){return{years:t.years*e,months:t.months*e,days:t.days*e,milliseconds:t.milliseconds*e}}function _d(t){return cn(t)/365}function Dd(t){return cn(t)/30}function cn(t){return nt(t)/864e5}function nt(t){return t.years*(365*864e5)+t.months*(30*864e5)+t.days*864e5+t.milliseconds}function Oi(t,e){let n=null;for(let r=0;r<ul.length;r+=1){let i=ul[r];if(e[i]){let s=t[i]/e[i];if(!dr(s)||n!==null&&n!==s)return null;n=s}else if(t[i])return null}return n}function Pi(t){let e=t.milliseconds;if(e){if(e%1e3!==0)return{unit:"millisecond",value:e};if(e%(1e3*60)!==0)return{unit:"second",value:e/1e3};if(e%(1e3*60*60)!==0)return{unit:"minute",value:e/(1e3*60)};if(e)return{unit:"hour",value:e/(1e3*60*60)}}return t.days?t.specifiedWeeks&&t.days%7===0?{unit:"week",value:t.days/7}:{unit:"day",value:t.days}:t.months?{unit:"month",value:t.months}:t.years?{unit:"year",value:t.years}:{unit:"millisecond",value:0}}function Rt(t,e,n){if(t===e)return!0;let r=t.length,i;if(r!==e.length)return!1;for(i=0;i<r;i+=1)if(!(n?n(t[i],e[i]):t[i]===e[i]))return!1;return!0}const Sd=["sun","mon","tue","wed","thu","fri","sat"];function hl(t,e){let n=Tt(t);return n[2]+=e*7,qe(n)}function Oe(t,e){let n=Tt(t);return n[2]+=e,qe(n)}function Bt(t,e){let n=Tt(t);return n[6]+=e,qe(n)}function Rd(t,e){return qt(t,e)/7}function qt(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60*24)}function Bd(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60)}function Td(t,e){return(e.valueOf()-t.valueOf())/(1e3*60)}function kd(t,e){return(e.valueOf()-t.valueOf())/1e3}function Id(t,e){let n=Ee(t),r=Ee(e);return{years:0,months:0,days:Math.round(qt(n,r)),milliseconds:e.valueOf()-r.valueOf()-(t.valueOf()-n.valueOf())}}function Nd(t,e){let n=hr(t,e);return n!==null&&n%7===0?n/7:null}function hr(t,e){return kt(t)===kt(e)?Math.round(qt(t,e)):null}function Ee(t){return qe([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()])}function Md(t){return qe([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours()])}function Fd(t){return qe([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes()])}function Od(t){return qe([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()])}function Pd(t,e,n){let r=t.getUTCFullYear(),i=Hi(t,r,e,n);if(i<1)return Hi(t,r-1,e,n);let s=Hi(t,r+1,e,n);return s>=1?Math.min(i,s):i}function Hi(t,e,n,r){let i=qe([e,0,1+Hd(e,n,r)]),s=Ee(t),o=Math.round(qt(i,s));return Math.floor(o/7)+1}function Hd(t,e,n){let r=7+e-n;return-((7+qe([t,0,r]).getUTCDay()-e)%7)+r-1}function pl(t){return[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()]}function gl(t){return new Date(t[0],t[1]||0,t[2]==null?1:t[2],t[3]||0,t[4]||0,t[5]||0)}function Tt(t){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()]}function qe(t){return t.length===1&&(t=t.concat([0])),new Date(Date.UTC(...t))}function vl(t){return!isNaN(t.valueOf())}function kt(t){return t.getUTCHours()*1e3*60*60+t.getUTCMinutes()*1e3*60+t.getUTCSeconds()*1e3+t.getUTCMilliseconds()}function ml(t,e,n=!1){let r=t.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(e==null?r=r.replace("Z",""):e!==0&&(r=r.replace("Z",zi(e,!0)))),r}function Li(t){return t.toISOString().replace(/T.*$/,"")}function Ld(t){return t.toISOString().match(/^\d{4}-\d{2}/)[0]}function zd(t){return ln(t.getUTCHours(),2)+":"+ln(t.getUTCMinutes(),2)+":"+ln(t.getUTCSeconds(),2)}function zi(t,e=!1){let n=t<0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),s=Math.round(r%60);return e?`${n+ln(i,2)}:${ln(s,2)}`:`GMT${n}${i}${s?`:${ln(s,2)}`:""}`}function oe(t,e,n){let r,i;return function(...s){if(!r)i=t.apply(this,s);else if(!Rt(r,s)){n&&n(i);let o=t.apply(this,s);(!e||!e(o,i))&&(i=o)}return r=s,i}}function pr(t,e,n){let r,i;return s=>{if(!r)i=t.call(this,s);else if(!ct(r,s)){n&&n(i);let o=t.call(this,s);(!e||!e(o,i))&&(i=o)}return r=s,i}}const xl={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},gr={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},vr=/\s*([ap])\.?m\.?/i,Ud=/,/g,Vd=/\s+/g,Wd=/\u200e/g,jd=/UTC|GMT/;class qd{constructor(e){let n={},r={},i=0;for(let s in e)s in xl?(r[s]=e[s],i=Math.max(xl[s],i)):(n[s]=e[s],s in gr&&(i=Math.max(gr[s],i)));this.standardDateProps=n,this.extendedSettings=r,this.severity=i,this.buildFormattingFunc=oe(bl)}format(e,n){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,n)(e)}formatRange(e,n,r,i){let{standardDateProps:s,extendedSettings:o}=this,a=Xd(e.marker,n.marker,r.calendarSystem);if(!a)return this.format(e,r);let c=a;c>1&&(s.year==="numeric"||s.year==="2-digit")&&(s.month==="numeric"||s.month==="2-digit")&&(s.day==="numeric"||s.day==="2-digit")&&(c=1);let l=this.format(e,r),f=this.format(n,r);if(l===f)return l;let d=Kd(s,c),u=bl(d,o,r),h=u(e),g=u(n),m=Jd(l,h,f,g),x=o.separator||i||r.defaultSeparator||"";return m?m.before+h+x+g+m.after:l+x+f}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 bl(t,e,n){let r=Object.keys(t).length;return r===1&&t.timeZoneName==="short"?i=>zi(i.timeZoneOffset):r===0&&e.week?i=>Zd(n.computeWeekNumber(i.marker),n.weekText,n.weekTextLong,n.locale,e.week):$d(t,e,n)}function $d(t,e,n){t=Object.assign({},t),e=Object.assign({},e),Gd(t,e),t.timeZone="UTC";let r=new Intl.DateTimeFormat(n.locale.codes,t),i;if(e.omitZeroMinute){let s=Object.assign({},t);delete s.minute,i=new Intl.DateTimeFormat(n.locale.codes,s)}return s=>{let{marker:o}=s,a;i&&!o.getUTCMinutes()?a=i:a=r;let c=a.format(o);return Yd(c,s,t,e,n)}}function Gd(t,e){t.timeZoneName&&(t.hour||(t.hour="2-digit"),t.minute||(t.minute="2-digit")),t.timeZoneName==="long"&&(t.timeZoneName="short"),e.omitZeroMinute&&(t.second||t.millisecond)&&delete e.omitZeroMinute}function Yd(t,e,n,r,i){return t=t.replace(Wd,""),n.timeZoneName==="short"&&(t=Qd(t,i.timeZone==="UTC"||e.timeZoneOffset==null?"UTC":zi(e.timeZoneOffset))),r.omitCommas&&(t=t.replace(Ud,"").trim()),r.omitZeroMinute&&(t=t.replace(":00","")),r.meridiem===!1?t=t.replace(vr,"").trim():r.meridiem==="narrow"?t=t.replace(vr,(s,o)=>o.toLocaleLowerCase()):r.meridiem==="short"?t=t.replace(vr,(s,o)=>`${o.toLocaleLowerCase()}m`):r.meridiem==="lowercase"&&(t=t.replace(vr,s=>s.toLocaleLowerCase())),t=t.replace(Vd," "),t=t.trim(),t}function Qd(t,e){let n=!1;return t=t.replace(jd,()=>(n=!0,e)),n||(t+=` ${e}`),t}function Zd(t,e,n,r,i){let s=[];return i==="long"?s.push(n):(i==="short"||i==="narrow")&&s.push(e),(i==="long"||i==="short")&&s.push(" "),s.push(r.simpleNumberFormat.format(t)),r.options.direction==="rtl"&&s.reverse(),s.join("")}function Xd(t,e,n){return n.getMarkerYear(t)!==n.getMarkerYear(e)?5:n.getMarkerMonth(t)!==n.getMarkerMonth(e)?4:n.getMarkerDay(t)!==n.getMarkerDay(e)?2:kt(t)!==kt(e)?1:0}function Kd(t,e){let n={};for(let r in t)(!(r in gr)||gr[r]<=e)&&(n[r]=t[r]);return n}function Jd(t,e,n,r){let i=0;for(;i<t.length;){let s=t.indexOf(e,i);if(s===-1)break;let o=t.substr(0,s);i=s+e.length;let a=t.substr(i),c=0;for(;c<n.length;){let l=n.indexOf(r,c);if(l===-1)break;let f=n.substr(0,l);c=l+r.length;let d=n.substr(c);if(o===f&&a===d)return{before:o,after:a}}}return null}function yl(t,e){let n=e.markerToArray(t.marker);return{marker:t.marker,timeZoneOffset:t.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}function mr(t,e,n,r){let i=yl(t,n.calendarSystem),s=e?yl(e,n.calendarSystem):null;return{date:i,start:i,end:s,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}class eh{constructor(e){this.cmdStr=e}format(e,n,r){return n.cmdFormatter(this.cmdStr,mr(e,null,n,r))}formatRange(e,n,r,i){return r.cmdFormatter(this.cmdStr,mr(e,n,r,i))}}class th{constructor(e){this.func=e}format(e,n,r){return this.func(mr(e,null,n,r))}formatRange(e,n,r,i){return this.func(mr(e,n,r,i))}}function _e(t){return typeof t=="object"&&t?new qd(t):typeof t=="string"?new eh(t):typeof t=="function"?new th(t):null}const El={navLinkDayClick:L,navLinkWeekClick:L,duration:pe,bootstrapFontAwesome:L,buttonIcons:L,customButtons:L,defaultAllDayEventDuration:pe,defaultTimedEventDuration:pe,nextDayThreshold:pe,scrollTime:pe,scrollTimeReset:Boolean,slotMinTime:pe,slotMaxTime:pe,dayPopoverFormat:_e,slotDuration:pe,snapDuration:pe,headerToolbar:L,footerToolbar:L,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:_e,dayHeaderClassNames:L,dayHeaderContent:L,dayHeaderDidMount:L,dayHeaderWillUnmount:L,dayCellClassNames:L,dayCellContent:L,dayCellDidMount:L,dayCellWillUnmount:L,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:L,weekNumbers:Boolean,weekNumberClassNames:L,weekNumberContent:L,weekNumberDidMount:L,weekNumberWillUnmount:L,editable:Boolean,viewClassNames:L,viewDidMount:L,viewWillUnmount:L,nowIndicator:Boolean,nowIndicatorClassNames:L,nowIndicatorContent:L,nowIndicatorDidMount:L,nowIndicatorWillUnmount:L,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:L,locale:L,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:L,eventOrder:pd,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:L,contentHeight:L,direction:String,weekNumberFormat:_e,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:L,initialDate:L,now:L,eventDataTransform:L,stickyHeaderDates:L,stickyFooterScrollbar:L,viewHeight:L,defaultAllDay:Boolean,eventSourceFailure:L,eventSourceSuccess:L,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:L,eventConstraint:L,eventAllow:L,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:L,eventContent:L,eventDidMount:L,eventWillUnmount:L,selectConstraint:L,selectOverlap:L,selectAllow:L,droppable:Boolean,unselectCancel:String,slotLabelFormat:L,slotLaneClassNames:L,slotLaneContent:L,slotLaneDidMount:L,slotLaneWillUnmount:L,slotLabelClassNames:L,slotLabelContent:L,slotLabelDidMount:L,slotLabelWillUnmount:L,dayMaxEvents:L,dayMaxEventRows:L,dayMinWidth:Number,slotLabelInterval:pe,allDayText:String,allDayClassNames:L,allDayContent:L,allDayDidMount:L,allDayWillUnmount:L,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:_e,rerenderDelay:Number,moreLinkText:L,moreLinkHint:L,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:L,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:pe,hiddenDays:L,fixedWeekCount:Boolean,validRange:L,visibleRange:L,titleFormat:L,eventInteractive:Boolean,noEventsText:String,viewHint:L,navLinkHint:L,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:L,moreLinkClassNames:L,moreLinkContent:L,moreLinkDidMount:L,moreLinkWillUnmount:L,monthStartFormat:_e,handleCustomRendering:L,customRenderingMetaMap:L,customRenderingReplaces:Boolean},Bn={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"}},Al={datesSet:L,eventsSet:L,eventAdd:L,eventChange:L,eventRemove:L,windowResize:L,eventClick:L,eventMouseEnter:L,eventMouseLeave:L,select:L,unselect:L,loading:L,_unmount:L,_beforeprint:L,_afterprint:L,_noEventDrop:L,_noEventResize:L,_resize:L,_scrollRequest:L},Cl={buttonText:L,buttonHints:L,views:L,plugins:L,initialEvents:L,events:L,eventSources:L},$t={headerToolbar:Gt,footerToolbar:Gt,buttonText:Gt,buttonHints:Gt,buttonIcons:Gt,dateIncrement:Gt,plugins:xr,events:xr,eventSources:xr,resources:xr};function Gt(t,e){return typeof t=="object"&&typeof e=="object"&&t&&e?ct(t,e):t===e}function xr(t,e){return Array.isArray(t)&&Array.isArray(e)?Rt(t,e):t===e}const nh={type:String,component:L,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:L,usesMinMaxTime:Boolean,classNames:L,content:L,didMount:L,willUnmount:L};function Ui(t){return Wi(t,$t)}function Vi(t,e){let n={},r={};for(let i in e)i in t&&(n[i]=e[i](t[i]));for(let i in t)i in e||(r[i]=t[i]);return{refined:n,extra:r}}function L(t){return t}const{hasOwnProperty:br}=Object.prototype;function Wi(t,e){let n={};if(e){for(let r in e)if(e[r]===Gt){let i=[];for(let s=t.length-1;s>=0;s-=1){let o=t[s][r];if(typeof o=="object"&&o)i.unshift(o);else if(o!==void 0){n[r]=o;break}}i.length&&(n[r]=Wi(i))}}for(let r=t.length-1;r>=0;r-=1){let i=t[r];for(let s in i)s in n||(n[s]=i[s])}return n}function Yt(t,e){let n={};for(let r in t)e(t[r],r)&&(n[r]=t[r]);return n}function vt(t,e){let n={};for(let r in t)n[r]=e(t[r],r);return n}function wl(t){let e={};for(let n of t)e[n]=!0;return e}function ji(t){let e=[];for(let n in t)e.push(t[n]);return e}function ct(t,e){if(t===e)return!0;for(let n in t)if(br.call(t,n)&&!(n in e))return!1;for(let n in e)if(br.call(e,n)&&t[n]!==e[n])return!1;return!0}const rh=/^on[A-Z]/;function ih(t,e){const n=qi(t,e);for(let r of n)if(!rh.test(r))return!1;return!0}function qi(t,e){let n=[];for(let r in t)br.call(t,r)&&(r in e||n.push(r));for(let r in e)br.call(e,r)&&t[r]!==e[r]&&n.push(r);return n}function $i(t,e,n={}){if(t===e)return!0;for(let r in e)if(!(r in t&&sh(t[r],e[r],n[r])))return!1;for(let r in t)if(!(r in e))return!1;return!0}function sh(t,e,n){return t===e||n===!0?!0:n?n(t,e):!1}function oh(t,e=0,n,r=1){let i=[];n==null&&(n=Object.keys(t).length);for(let s=e;s<n;s+=r){let o=t[s];o!==void 0&&i.push(o)}return i}let _l={};function ah(t,e){_l[t]=e}function lh(t){return new _l[t]}class ch{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return qe(e)}markerToArray(e){return Tt(e)}}ah("gregory",ch);const fh=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function uh(t){let e=fh.exec(t);if(e){let n=new Date(Date.UTC(Number(e[1]),e[3]?Number(e[3])-1:0,Number(e[5]||1),Number(e[7]||0),Number(e[8]||0),Number(e[10]||0),e[12]?+`0.${e[12]}`*1e3:0));if(vl(n)){let r=null;return e[13]&&(r=(e[15]==="-"?-1:1)*(Number(e[16]||0)*60+Number(e[18]||0))),{marker:n,isTimeUnspecified:!e[6],timeZoneOffset:r}}}return null}class dh{constructor(e){let n=this.timeZone=e.timeZone,r=n!=="local"&&n!=="UTC";e.namedTimeZoneImpl&&r&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(n)),this.canComputeOffset=!!(!r||this.namedTimeZoneImpl),this.calendarSystem=lh(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,e.weekNumberCalculation==="ISO"&&(this.weekDow=1,this.weekDoy=4),typeof e.firstDay=="number"&&(this.weekDow=e.firstDay),typeof e.weekNumberCalculation=="function"&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=e.weekText!=null?e.weekText:e.locale.options.weekText,this.weekTextLong=(e.weekTextLong!=null?e.weekTextLong:e.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}createMarker(e){let n=this.createMarkerMeta(e);return n===null?null:n.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker(new Date().valueOf()):qe(pl(new Date))}createMarkerMeta(e){if(typeof e=="string")return this.parse(e);let n=null;return typeof e=="number"?n=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(n=this.timestampToMarker(e))):Array.isArray(e)&&(n=qe(e)),n===null||!vl(n)?null:{marker:n,isTimeUnspecified:!1,forcedTzo:null}}parse(e){let n=uh(e);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(e){return this.calendarSystem.getMarkerYear(e)}getMonth(e){return this.calendarSystem.getMarkerMonth(e)}getDay(e){return this.calendarSystem.getMarkerDay(e)}add(e,n){let r=this.calendarSystem.markerToArray(e);return r[0]+=n.years,r[1]+=n.months,r[2]+=n.days,r[6]+=n.milliseconds,this.calendarSystem.arrayToMarker(r)}subtract(e,n){let r=this.calendarSystem.markerToArray(e);return r[0]-=n.years,r[1]-=n.months,r[2]-=n.days,r[6]-=n.milliseconds,this.calendarSystem.arrayToMarker(r)}addYears(e,n){let r=this.calendarSystem.markerToArray(e);return r[0]+=n,this.calendarSystem.arrayToMarker(r)}addMonths(e,n){let r=this.calendarSystem.markerToArray(e);return r[1]+=n,this.calendarSystem.arrayToMarker(r)}diffWholeYears(e,n){let{calendarSystem:r}=this;return kt(e)===kt(n)&&r.getMarkerDay(e)===r.getMarkerDay(n)&&r.getMarkerMonth(e)===r.getMarkerMonth(n)?r.getMarkerYear(n)-r.getMarkerYear(e):null}diffWholeMonths(e,n){let{calendarSystem:r}=this;return kt(e)===kt(n)&&r.getMarkerDay(e)===r.getMarkerDay(n)?r.getMarkerMonth(n)-r.getMarkerMonth(e)+(r.getMarkerYear(n)-r.getMarkerYear(e))*12:null}greatestWholeUnit(e,n){let r=this.diffWholeYears(e,n);return r!==null?{unit:"year",value:r}:(r=this.diffWholeMonths(e,n),r!==null?{unit:"month",value:r}:(r=Nd(e,n),r!==null?{unit:"week",value:r}:(r=hr(e,n),r!==null?{unit:"day",value:r}:(r=Bd(e,n),dr(r)?{unit:"hour",value:r}:(r=Td(e,n),dr(r)?{unit:"minute",value:r}:(r=kd(e,n),dr(r)?{unit:"second",value:r}:{unit:"millisecond",value:n.valueOf()-e.valueOf()}))))))}countDurationsBetween(e,n,r){let i;return r.years&&(i=this.diffWholeYears(e,n),i!==null)?i/_d(r):r.months&&(i=this.diffWholeMonths(e,n),i!==null)?i/Dd(r):r.days&&(i=hr(e,n),i!==null)?i/cn(r):(n.valueOf()-e.valueOf())/nt(r)}startOf(e,n){return n==="year"?this.startOfYear(e):n==="month"?this.startOfMonth(e):n==="week"?this.startOfWeek(e):n==="day"?Ee(e):n==="hour"?Md(e):n==="minute"?Fd(e):n==="second"?Od(e):null}startOfYear(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])}startOfMonth(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])}startOfWeek(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):Pd(e,this.weekDow,this.weekDoy)}format(e,n,r={}){return n.format({marker:e,timeZoneOffset:r.forcedTzo!=null?r.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,n,r,i={}){return i.isEndExclusive&&(n=Bt(n,-1)),r.formatRange({marker:e,timeZoneOffset:i.forcedStartTzo!=null?i.forcedStartTzo:this.offsetForMarker(e)},{marker:n,timeZoneOffset:i.forcedEndTzo!=null?i.forcedEndTzo:this.offsetForMarker(n)},this,i.defaultSeparator)}formatIso(e,n={}){let r=null;return n.omitTimeZoneOffset||(n.forcedTzo!=null?r=n.forcedTzo:r=this.offsetForMarker(e)),ml(e,r,n.omitTime)}timestampToMarker(e){return this.timeZone==="local"?qe(pl(new Date(e))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(e):qe(this.namedTimeZoneImpl.timestampToArray(e))}offsetForMarker(e){return this.timeZone==="local"?-gl(Tt(e)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(Tt(e)):null}toDate(e,n){return this.timeZone==="local"?gl(Tt(e)):this.timeZone==="UTC"?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-this.namedTimeZoneImpl.offsetForArray(Tt(e))*1e3*60):new Date(e.valueOf()-(n||0))}}class Tn{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let n,r;if(typeof e=="object"&&e){n=Object.assign({},this.iconClasses);for(r in e)n[r]=this.applyIconOverridePrefix(e[r]);this.iconClasses=n}else e===!1&&(this.iconClasses={})}applyIconOverridePrefix(e){let n=this.iconOverridePrefix;return n&&e.indexOf(n)!==0&&(e=n+e),e}getClass(e){return this.classes[e]||""}getIconClass(e,n){let r;return n&&this.rtlIconClasses?r=this.rtlIconClasses[e]||this.iconClasses[e]:r=this.iconClasses[e],r?`${this.baseIconClass} ${r}`:""}getCustomButtonIconClass(e){let n;return this.iconOverrideCustomButtonOption&&(n=e[this.iconOverrideCustomButtonOption],n)?`${this.baseIconClass} ${this.applyIconOverridePrefix(n)}`:""}}Tn.prototype.classes={},Tn.prototype.iconClasses={},Tn.prototype.baseIconClass="",Tn.prototype.iconOverridePrefix="";function Dl(t){t();let e=ie.debounceRendering,n=[];function r(i){n.push(i)}for(ie.debounceRendering=r,Dn(T(hh,{}),document.createElement("div"));n.length;)n.shift()();ie.debounceRendering=e}class hh extends Ye{render(){return T("div",{})}componentDidMount(){this.setState({})}}function Sl(t){let e=Hu(t),n=e.Provider;return e.Provider=function(){let r=!this.getChildContext,i=n.apply(this,arguments);if(r){let s=[];this.shouldComponentUpdate=o=>{this.props.value!==o.value&&s.forEach(a=>{a.context=o.value,a.forceUpdate()})},this.sub=o=>{s.push(o);let a=o.componentWillUnmount;o.componentWillUnmount=()=>{s.splice(s.indexOf(o),1),a&&a.call(o)}}}return i},e}class ph{constructor(e,n,r,i){this.execFunc=e,this.emitter=n,this.scrollTime=r,this.scrollTimeReset=i,this.handleScrollRequest=s=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},s),this.drain()},n.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const mt=Sl({});function gh(t,e,n,r,i,s,o,a,c,l,f,d,u){return{dateEnv:i,options:n,pluginHooks:o,emitter:l,dispatch:a,getCurrentData:c,calendarApi:f,viewSpec:t,viewApi:e,dateProfileGenerator:r,theme:s,isRtl:n.direction==="rtl",addResizeHandler(h){l.on("_resize",h)},removeResizeHandler(h){l.off("_resize",h)},createScrollResponder(h){return new ph(h,l,pe(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:d,unregisterInteractiveComponent:u}}class Qt extends Ye{shouldComponentUpdate(e,n){return this.debug&&console.log(qi(e,this.props),qi(n,this.state)),!$i(this.props,e,this.propEquality)||!$i(this.state,n,this.stateEquality)}safeSetState(e){$i(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}Qt.addPropsEquality=vh,Qt.addStateEquality=mh,Qt.contextType=mt,Qt.prototype.propEquality={},Qt.prototype.stateEquality={};class me extends Qt{}me.contextType=mt;function vh(t){let e=Object.create(this.prototype.propEquality);Object.assign(e,t),this.prototype.propEquality=e}function mh(t){let e=Object.create(this.prototype.stateEquality);Object.assign(e,t),this.prototype.stateEquality=e}function xt(t,e){typeof t=="function"?t(e):t&&(t.current=e)}class Gi extends me{constructor(){super(...arguments),this.id=jt(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{const{options:n}=this.context,{generatorName:r}=this.props;(!n.customRenderingReplaces||!Yi(r,n))&&this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&xt(this.props.elRef,e)}}render(){const{props:e,context:n}=this,{options:r}=n,{customGenerator:i,defaultGenerator:s,renderProps:o}=e,a=Rl(e,[],this.handleEl);let c=!1,l,f=[],d;if(i!=null){const u=typeof i=="function"?i(o,T):i;if(u===!0)c=!0;else{const h=u&&typeof u=="object";h&&"html"in u?a.dangerouslySetInnerHTML={__html:u.html}:h&&"domNodes"in u?f=Array.prototype.slice.call(u.domNodes):(h?ma(u):typeof u!="function")?l=u:d=u}}else c=!Yi(e.generatorName,r);return c&&s&&(l=s(o)),this.queuedDomNodes=f,this.currentGeneratorMeta=d,T(e.elTag,a,l)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var n;const{props:r,context:i}=this,{handleCustomRendering:s,customRenderingMetaMap:o}=i.options;if(s){const a=(n=this.currentGeneratorMeta)!==null&&n!==void 0?n:o==null?void 0:o[r.generatorName];a&&s(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:a},r),{elClasses:(r.elClasses||[]).filter(xh)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:n}=this,r=this.base;if(!Rt(e,n)){n.forEach(Ii);for(let i of e)r.appendChild(i);this.currentDomNodes=e}}}Gi.addPropsEquality({elClasses:Rt,elStyle:ct,elAttrs:ih,renderProps:ct});function Yi(t,e){var n;return!!(e.handleCustomRendering&&t&&(!((n=e.customRenderingMetaMap)===null||n===void 0)&&n[t]))}function Rl(t,e,n){const r=Object.assign(Object.assign({},t.elAttrs),{ref:n});return(t.elClasses||e)&&(r.className=(t.elClasses||[]).concat(e||[]).concat(r.className||[]).filter(Boolean).join(" ")),t.elStyle&&(r.style=t.elStyle),r}function xh(t){return!!t}const Bl=Sl(0);class Qe extends Ye{constructor(){super(...arguments),this.InnerContent=bh.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(xt(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:e}=this,n=yh(e.classNameGenerator,e.renderProps);if(e.children){const r=Rl(e,n,this.handleEl),i=e.children(this.InnerContent,e.renderProps,r);return e.elTag?T(e.elTag,r,i):i}else return T(Gi,Object.assign(Object.assign({},e),{elRef:this.handleEl,elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(n),renderId:this.context}))}componentDidMount(){var e,n;this.el?(n=(e=this.props).didMount)===null||n===void 0||n.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var e,n;(n=(e=this.props).willUnmount)===null||n===void 0||n.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}Qe.contextType=Bl;function bh(t,e){const n=t.props;return T(Gi,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:t.context},e))}function yh(t,e){const n=typeof t=="function"?t(e):t||[];return typeof n=="string"?[n]:n}class yr extends me{render(){let{props:e,context:n}=this,{options:r}=n,i={view:n.viewApi};return T(Qe,Object.assign({},e,{elTag:e.elTag||"div",elClasses:[...Tl(e.viewSpec),...e.elClasses||[]],renderProps:i,classNameGenerator:r.viewClassNames,generatorName:void 0,didMount:r.viewDidMount,willUnmount:r.viewWillUnmount}),()=>e.children)}}function Tl(t){return[`fc-${t.type}-view`,"fc-view"]}function Eh(t,e){let n=null,r=null;return t.start&&(n=e.createMarker(t.start)),t.end&&(r=e.createMarker(t.end)),!n&&!r||n&&r&&r<n?null:{start:n,end:r}}function kl(t,e){let n=[],{start:r}=e,i,s;for(t.sort(Ah),i=0;i<t.length;i+=1)s=t[i],s.start>r&&n.push({start:r,end:s.start}),s.end>r&&(r=s.end);return r<e.end&&n.push({start:r,end:e.end}),n}function Ah(t,e){return t.start.valueOf()-e.start.valueOf()}function Zt(t,e){let{start:n,end:r}=t,i=null;return e.start!==null&&(n===null?n=e.start:n=new Date(Math.max(n.valueOf(),e.start.valueOf()))),e.end!=null&&(r===null?r=e.end:r=new Date(Math.min(r.valueOf(),e.end.valueOf()))),(n===null||r===null||n<r)&&(i={start:n,end:r}),i}function Ch(t,e){return(t.start===null?null:t.start.valueOf())===(e.start===null?null:e.start.valueOf())&&(t.end===null?null:t.end.valueOf())===(e.end===null?null:e.end.valueOf())}function Qi(t,e){return(t.end===null||e.start===null||t.end>e.start)&&(t.start===null||e.end===null||t.start<e.end)}function Er(t,e){return(t.start===null||e.start!==null&&e.start>=t.start)&&(t.end===null||e.end!==null&&e.end<=t.end)}function bt(t,e){return(t.start===null||e>=t.start)&&(t.end===null||e<t.end)}function wh(t,e){return e.start!=null&&t<e.start?e.start:e.end!=null&&t>=e.end?new Date(e.end.valueOf()-1):t}function Il(t){let e=Math.floor(qt(t.start,t.end))||1,n=Ee(t.start),r=Oe(n,e);return{start:n,end:r}}function Nl(t,e=pe(0)){let n=null,r=null;if(t.end){r=Ee(t.end);let i=t.end.valueOf()-r.valueOf();i&&i>=nt(e)&&(r=Oe(r,1))}return t.start&&(n=Ee(t.start),r&&r<=n&&(r=Oe(n,1))),{start:n,end:r}}function fn(t,e,n,r){return r==="year"?pe(n.diffWholeYears(t,e),"year"):r==="month"?pe(n.diffWholeMonths(t,e),"month"):Id(t,e)}function _h(t,e){switch(e.type){case"CHANGE_DATE":return e.dateMarker;default:return t}}function Dh(t,e){let n=t.initialDate;return n!=null?e.createMarker(n):kn(t.now,e)}function kn(t,e){return typeof t=="function"&&(t=t()),t==null?e.createNowMarker():e.createMarker(t)}class Ml{constructor(e){this.props=e,this.nowDate=kn(e.nowInput,e.dateEnv),this.initHiddenDays()}buildPrev(e,n,r){let{dateEnv:i}=this.props,s=i.subtract(i.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(s,-1,r)}buildNext(e,n,r){let{dateEnv:i}=this.props,s=i.add(i.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(s,1,r)}build(e,n,r=!0){let{props:i}=this,s,o,a,c,l,f;return s=this.buildValidRange(),s=this.trimHiddenDays(s),r&&(e=wh(e,s)),o=this.buildCurrentRangeInfo(e,n),a=/^(year|month|week|day)$/.test(o.unit),c=this.buildRenderRange(this.trimHiddenDays(o.range),o.unit,a),c=this.trimHiddenDays(c),l=c,i.showNonCurrentDates||(l=Zt(l,o.range)),l=this.adjustActiveRange(l),l=Zt(l,s),f=Qi(o.range,s),bt(c,e)||(e=c.start),{currentDate:e,validRange:s,currentRange:o.range,currentRangeUnit:o.unit,isRangeAllDay:a,activeRange:l,renderRange:c,slotMinTime:i.slotMinTime,slotMaxTime:i.slotMaxTime,isValid:f,dateIncrement:this.buildDateIncrement(o.duration)}}buildValidRange(){let e=this.props.validRangeInput,n=typeof e=="function"?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(n)||{start:null,end:null}}buildCurrentRangeInfo(e,n){let{props:r}=this,i=null,s=null,o=null,a;return r.duration?(i=r.duration,s=r.durationUnit,o=this.buildRangeFromDuration(e,n,i,s)):(a=this.props.dayCount)?(s="day",o=this.buildRangeFromDayCount(e,n,a)):(o=this.buildCustomVisibleRange(e))?s=r.dateEnv.greatestWholeUnit(o.start,o.end).unit:(i=this.getFallbackDuration(),s=Pi(i).unit,o=this.buildRangeFromDuration(e,n,i,s)),{duration:i,unit:s,range:o}}getFallbackDuration(){return pe({day:1})}adjustActiveRange(e){let{dateEnv:n,usesMinMaxTime:r,slotMinTime:i,slotMaxTime:s}=this.props,{start:o,end:a}=e;return r&&(cn(i)<0&&(o=Ee(o),o=n.add(o,i)),cn(s)>1&&(a=Ee(a),a=Oe(a,-1),a=n.add(a,s))),{start:o,end:a}}buildRangeFromDuration(e,n,r,i){let{dateEnv:s,dateAlignment:o}=this.props,a,c,l;if(!o){let{dateIncrement:d}=this.props;d&&nt(d)<nt(r)?o=Pi(d).unit:o=i}cn(r)<=1&&this.isHiddenDay(a)&&(a=this.skipHiddenDays(a,n),a=Ee(a));function f(){a=s.startOf(e,o),c=s.add(a,r),l={start:a,end:c}}return f(),this.trimHiddenDays(l)||(e=this.skipHiddenDays(e,n),f()),l}buildRangeFromDayCount(e,n,r){let{dateEnv:i,dateAlignment:s}=this.props,o=0,a=e,c;s&&(a=i.startOf(a,s)),a=Ee(a),a=this.skipHiddenDays(a,n),c=a;do c=Oe(c,1),this.isHiddenDay(c)||(o+=1);while(o<r);return{start:a,end:c}}buildCustomVisibleRange(e){let{props:n}=this,r=n.visibleRangeInput,i=typeof r=="function"?r.call(n.calendarApi,n.dateEnv.toDate(e)):r,s=this.refineRange(i);return s&&(s.start==null||s.end==null)?null:s}buildRenderRange(e,n,r){return e}buildDateIncrement(e){let{dateIncrement:n}=this.props,r;return n||((r=this.props.dateAlignment)?pe(1,r):e||pe({days:1}))}refineRange(e){if(e){let n=Eh(e,this.props.dateEnv);return n&&(n=Nl(n)),n}return null}initHiddenDays(){let e=this.props.hiddenDays||[],n=[],r=0,i;for(this.props.weekends===!1&&e.push(0,6),i=0;i<7;i+=1)(n[i]=e.indexOf(i)!==-1)||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n}trimHiddenDays(e){let{start:n,end:r}=e;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(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]}skipHiddenDays(e,n=1,r=!1){for(;this.isHiddenDayHash[(e.getUTCDay()+(r?n:0)+7)%7];)e=Oe(e,n);return e}}function Zi(t,e,n,r){return{instanceId:jt(),defId:t,range:e,forcedStartTzo:n??null,forcedEndTzo:r??null}}function Sh(t,e,n,r){for(let i=0;i<r.length;i+=1){let s=r[i].parse(t,n);if(s){let{allDay:o}=t;return o==null&&(o=e,o==null&&(o=s.allDayGuess,o==null&&(o=!1))),{allDay:o,duration:s.duration,typeData:s.typeData,typeId:i}}}return null}function Xt(t,e,n){let{dateEnv:r,pluginHooks:i,options:s}=n,{defs:o,instances:a}=t;a=Yt(a,c=>!o[c.defId].recurringDef);for(let c in o){let l=o[c];if(l.recurringDef){let{duration:f}=l.recurringDef;f||(f=l.allDay?s.defaultAllDayEventDuration:s.defaultTimedEventDuration);let d=Rh(l,f,e,r,i.recurringTypes);for(let u of d){let h=Zi(c,{start:u,end:r.add(u,f)});a[h.instanceId]=h}}}return{defs:o,instances:a}}function Rh(t,e,n,r,i){let o=i[t.recurringDef.typeId].expand(t.recurringDef.typeData,{start:r.subtract(n.start,e),end:n.end},r);return t.allDay&&(o=o.map(Ee)),o}const Ar={id:String,groupId:String,title:String,url:String,interactive:Boolean},Fl={start:L,end:L,date:L,allDay:Boolean},Bh=Object.assign(Object.assign(Object.assign({},Ar),Fl),{extendedProps:L});function Ol(t,e,n,r,i=Xi(n),s,o){let{refined:a,extra:c}=Pl(t,n,i),l=kh(e,n),f=Sh(a,l,n.dateEnv,n.pluginHooks.recurringTypes);if(f){let u=Ki(a,c,e?e.sourceId:"",f.allDay,!!f.duration,n,s);return u.recurringDef={typeId:f.typeId,typeData:f.typeData,duration:f.duration},{def:u,instance:null}}let d=Th(a,l,n,r);if(d){let u=Ki(a,c,e?e.sourceId:"",d.allDay,d.hasEnd,n,s),h=Zi(u.defId,d.range,d.forcedStartTzo,d.forcedEndTzo);return o&&u.publicId&&o[u.publicId]&&(h.instanceId=o[u.publicId]),{def:u,instance:h}}return null}function Pl(t,e,n=Xi(e)){return Vi(t,n)}function Xi(t){return Object.assign(Object.assign(Object.assign({},wr),Bh),t.pluginHooks.eventRefiners)}function Ki(t,e,n,r,i,s,o){let a={title:t.title||"",groupId:t.groupId||"",publicId:t.id||"",url:t.url||"",recurringDef:null,defId:(o&&t.id?o[t.id]:"")||jt(),sourceId:n,allDay:r,hasEnd:i,interactive:t.interactive,ui:_r(t,s),extendedProps:Object.assign(Object.assign({},t.extendedProps||{}),e)};for(let c of s.pluginHooks.eventDefMemberAdders)Object.assign(a,c(t));return Object.freeze(a.ui.classNames),Object.freeze(a.extendedProps),a}function Th(t,e,n,r){let{allDay:i}=t,s,o=null,a=!1,c,l=null,f=t.start!=null?t.start:t.date;if(s=n.dateEnv.createMarkerMeta(f),s)o=s.marker;else if(!r)return null;return t.end!=null&&(c=n.dateEnv.createMarkerMeta(t.end)),i==null&&(e!=null?i=e:i=(!s||s.isTimeUnspecified)&&(!c||c.isTimeUnspecified)),i&&o&&(o=Ee(o)),c&&(l=c.marker,i&&(l=Ee(l)),o&&l<=o&&(l=null)),l?a=!0:r||(a=n.options.forceEventDuration||!1,l=n.dateEnv.add(o,i?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:i,hasEnd:a,range:{start:o,end:l},forcedStartTzo:s?s.forcedTzo:null,forcedEndTzo:c?c.forcedTzo:null}}function kh(t,e){let n=null;return t&&(n=t.defaultAllDay),n==null&&(n=e.options.defaultAllDay),n}function In(t,e,n,r,i,s){let o=Ze(),a=Xi(n);for(let c of t){let l=Ol(c,e,n,r,a,i,s);l&&Ji(l,o)}return o}function Ji(t,e=Ze()){return e.defs[t.def.defId]=t.def,t.instance&&(e.instances[t.instance.instanceId]=t.instance),e}function es(t,e){let n=t.instances[e];if(n){let r=t.defs[n.defId],i=Cr(t,s=>Ih(r,s));return i.defs[r.defId]=r,i.instances[n.instanceId]=n,i}return Ze()}function Ih(t,e){return!!(t.groupId&&t.groupId===e.groupId)}function Ze(){return{defs:{},instances:{}}}function ts(t,e){return{defs:Object.assign(Object.assign({},t.defs),e.defs),instances:Object.assign(Object.assign({},t.instances),e.instances)}}function Cr(t,e){let n=Yt(t.defs,e),r=Yt(t.instances,i=>n[i.defId]);return{defs:n,instances:r}}function Nh(t,e){let{defs:n,instances:r}=t,i={},s={};for(let o in n)e.defs[o]||(i[o]=n[o]);for(let o in r)!e.instances[o]&&i[r[o].defId]&&(s[o]=r[o]);return{defs:i,instances:s}}function Mh(t,e){return Array.isArray(t)?In(t,null,e,!0):typeof t=="object"&&t?In([t],null,e,!0):t!=null?String(t):null}function Hl(t){return Array.isArray(t)?t:typeof t=="string"?t.split(/\s+/):[]}const wr={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:L,overlap:L,allow:L,className:Hl,classNames:Hl,color:String,backgroundColor:String,borderColor:String,textColor:String},Fh={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function _r(t,e){let n=Mh(t.constraint,e);return{display:t.display||null,startEditable:t.startEditable!=null?t.startEditable:t.editable,durationEditable:t.durationEditable!=null?t.durationEditable:t.editable,constraints:n!=null?[n]:[],overlap:t.overlap!=null?t.overlap:null,allows:t.allow!=null?[t.allow]:[],backgroundColor:t.backgroundColor||t.color||"",borderColor:t.borderColor||t.color||"",textColor:t.textColor||"",classNames:(t.className||[]).concat(t.classNames||[])}}function Ll(t){return t.reduce(Oh,Fh)}function Oh(t,e){return{display:e.display!=null?e.display:t.display,startEditable:e.startEditable!=null?e.startEditable:t.startEditable,durationEditable:e.durationEditable!=null?e.durationEditable:t.durationEditable,constraints:t.constraints.concat(e.constraints),overlap:typeof e.overlap=="boolean"?e.overlap:t.overlap,allows:t.allows.concat(e.allows),backgroundColor:e.backgroundColor||t.backgroundColor,borderColor:e.borderColor||t.borderColor,textColor:e.textColor||t.textColor,classNames:t.classNames.concat(e.classNames)}}const Ph={id:String,defaultAllDay:Boolean,url:String,format:String,events:L,eventDataTransform:L,success:L,failure:L};function zl(t,e,n=Ul(e)){let r;if(typeof t=="string"?r={url:t}:typeof t=="function"||Array.isArray(t)?r={events:t}:typeof t=="object"&&t&&(r=t),r){let{refined:i,extra:s}=Vi(r,n),o=Hh(i,e);if(o)return{_raw:t,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||"",sourceId:jt(),sourceDefId:o.sourceDefId,meta:o.meta,ui:_r(i,e),extendedProps:s}}return null}function Ul(t){return Object.assign(Object.assign(Object.assign({},wr),Ph),t.pluginHooks.eventSourceRefiners)}function Hh(t,e){let n=e.pluginHooks.eventSourceDefs;for(let r=n.length-1;r>=0;r-=1){let s=n[r].parseMeta(t);if(s)return{sourceDefId:r,meta:s}}return null}function Lh(t,e,n,r,i){switch(e.type){case"RECEIVE_EVENTS":return zh(t,n[e.sourceId],e.fetchId,e.fetchRange,e.rawEvents,i);case"RESET_RAW_EVENTS":return Uh(t,n[e.sourceId],e.rawEvents,r.activeRange,i);case"ADD_EVENTS":return Vh(t,e.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return e.eventStore;case"MERGE_EVENTS":return ts(t,e.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?Xt(t,r.activeRange,i):t;case"REMOVE_EVENTS":return Nh(t,e.eventStore);case"REMOVE_EVENT_SOURCE":return ql(t,e.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return Cr(t,s=>!s.sourceId);case"REMOVE_ALL_EVENTS":return Ze();default:return t}}function zh(t,e,n,r,i,s){if(e&&n===e.latestFetchId){let o=In(Vl(i,e,s),e,s);return r&&(o=Xt(o,r,s)),ts(ql(t,e.sourceId),o)}return t}function Uh(t,e,n,r,i){const{defIdMap:s,instanceIdMap:o}=jh(t);let a=In(Vl(n,e,i),e,i,!1,s,o);return Xt(a,r,i)}function Vl(t,e,n){let r=n.options.eventDataTransform,i=e?e.eventDataTransform:null;return i&&(t=Wl(t,i)),r&&(t=Wl(t,r)),t}function Wl(t,e){let n;if(!e)n=t;else{n=[];for(let r of t){let i=e(r);i?n.push(i):i==null&&n.push(r)}}return n}function Vh(t,e,n,r){return n&&(e=Xt(e,n,r)),ts(t,e)}function jl(t,e,n){let{defs:r}=t,i=vt(t.instances,s=>r[s.defId].allDay?s:Object.assign(Object.assign({},s),{range:{start:n.createMarker(e.toDate(s.range.start,s.forcedStartTzo)),end:n.createMarker(e.toDate(s.range.end,s.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:s.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:s.forcedEndTzo}));return{defs:r,instances:i}}function ql(t,e){return Cr(t,n=>n.sourceId!==e)}function Wh(t,e){return{defs:t.defs,instances:Yt(t.instances,n=>!e[n.instanceId])}}function jh(t){const{defs:e,instances:n}=t,r={},i={};for(let s in e){const o=e[s],{publicId:a}=o;a&&(r[a]=s)}for(let s in n){const o=n[s],a=e[o.defId],{publicId:c}=a;c&&(i[c]=s)}return{defIdMap:r,instanceIdMap:i}}let Dr=class{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,n){qh(this.handlers,e,n)}off(e,n){$h(this.handlers,e,n)}trigger(e,...n){let r=this.handlers[e]||[],i=this.options&&this.options[e],s=[].concat(i||[],r);for(let o of s)o.apply(this.thisContext,n)}hasHandlers(e){return!!(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}};function qh(t,e,n){(t[e]||(t[e]=[])).push(n)}function $h(t,e,n){n?t[e]&&(t[e]=t[e].filter(r=>r!==n)):delete t[e]}const Gh={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function Yh(t,e){return In(Qh(t),null,e)}function Qh(t){let e;return t===!0?e=[{}]:Array.isArray(t)?e=t.filter(n=>n.daysOfWeek):typeof t=="object"&&t?e=[t]:e=[],e=e.map(n=>Object.assign(Object.assign({},Gh),n)),e}function $l(t,e,n){n.emitter.trigger("select",Object.assign(Object.assign({},ns(t,n)),{jsEvent:e?e.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function Zh(t,e){e.emitter.trigger("unselect",{jsEvent:t?t.origEvent:null,view:e.viewApi||e.calendarApi.view})}function ns(t,e){let n={};for(let r of e.pluginHooks.dateSpanTransforms)Object.assign(n,r(t,e));return Object.assign(n,fp(t,e.dateEnv)),n}function Gl(t,e,n){let{dateEnv:r,options:i}=n,s=e;return t?(s=Ee(s),s=r.add(s,i.defaultAllDayEventDuration)):s=r.add(s,i.defaultTimedEventDuration),s}function rs(t,e,n,r){let i=Sr(t.defs,e),s=Ze();for(let o in t.defs){let a=t.defs[o];s.defs[o]=Xh(a,i[o],n,r)}for(let o in t.instances){let a=t.instances[o],c=s.defs[a.defId];s.instances[o]=Kh(a,c,i[a.defId],n,r)}return s}function Xh(t,e,n,r){let i=n.standardProps||{};i.hasEnd==null&&e.durationEditable&&(n.startDelta||n.endDelta)&&(i.hasEnd=!0);let s=Object.assign(Object.assign(Object.assign({},t),i),{ui:Object.assign(Object.assign({},t.ui),i.ui)});n.extendedProps&&(s.extendedProps=Object.assign(Object.assign({},s.extendedProps),n.extendedProps));for(let o of r.pluginHooks.eventDefMutationAppliers)o(s,n,r);return!s.hasEnd&&r.options.forceEventDuration&&(s.hasEnd=!0),s}function Kh(t,e,n,r,i){let{dateEnv:s}=i,o=r.standardProps&&r.standardProps.allDay===!0,a=r.standardProps&&r.standardProps.hasEnd===!1,c=Object.assign({},t);return o&&(c.range=Il(c.range)),r.datesDelta&&n.startEditable&&(c.range={start:s.add(c.range.start,r.datesDelta),end:s.add(c.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(c.range={start:s.add(c.range.start,r.startDelta),end:c.range.end}),r.endDelta&&n.durationEditable&&(c.range={start:c.range.start,end:s.add(c.range.end,r.endDelta)}),a&&(c.range={start:c.range.start,end:Gl(e.allDay,c.range.start,i)}),e.allDay&&(c.range={start:Ee(c.range.start),end:Ee(c.range.end)}),c.range.end<c.range.start&&(c.range.end=Gl(e.allDay,c.range.start,i)),c}class un{constructor(e,n){this.context=e,this.internalEventSource=n}remove(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})}refetch(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})}get id(){return this.internalEventSource.publicId}get url(){return this.internalEventSource.meta.url}get format(){return this.internalEventSource.meta.format}}class Ce{constructor(e,n,r){this._context=e,this._def=n,this._instance=r||null}setProp(e,n){if(e in Fl)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(e==="id")n=Ar[e](n),this.mutate({standardProps:{publicId:n}});else if(e in Ar)n=Ar[e](n),this.mutate({standardProps:{[e]:n}});else if(e in wr){let r=wr[e](n);e==="color"?r={backgroundColor:n,borderColor:n}:e==="editable"?r={startEditable:n,durationEditable:n}:r={[e]:n},this.mutate({standardProps:{ui:r}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,n){this.mutate({extendedProps:{[e]:n}})}setStart(e,n={}){let{dateEnv:r}=this._context,i=r.createMarker(e);if(i&&this._instance){let s=this._instance.range,o=fn(s.start,i,r,n.granularity);n.maintainDuration?this.mutate({datesDelta:o}):this.mutate({startDelta:o})}}setEnd(e,n={}){let{dateEnv:r}=this._context,i;if(!(e!=null&&(i=r.createMarker(e),!i))&&this._instance)if(i){let s=fn(this._instance.range.end,i,r,n.granularity);this.mutate({endDelta:s})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,n,r={}){let{dateEnv:i}=this._context,s={allDay:r.allDay},o=i.createMarker(e),a;if(o&&!(n!=null&&(a=i.createMarker(n),!a))&&this._instance){let c=this._instance.range;r.allDay===!0&&(c=Il(c));let l=fn(c.start,o,i,r.granularity);if(a){let f=fn(c.end,a,i,r.granularity);Ad(l,f)?this.mutate({datesDelta:l,standardProps:s}):this.mutate({startDelta:l,endDelta:f,standardProps:s})}else s.hasEnd=!1,this.mutate({datesDelta:l,standardProps:s})}}moveStart(e){let n=pe(e);n&&this.mutate({startDelta:n})}moveEnd(e){let n=pe(e);n&&this.mutate({endDelta:n})}moveDates(e){let n=pe(e);n&&this.mutate({datesDelta:n})}setAllDay(e,n={}){let r={allDay:e},{maintainDuration:i}=n;i==null&&(i=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(r.hasEnd=i),this.mutate({standardProps:r})}formatRange(e){let{dateEnv:n}=this._context,r=this._instance,i=_e(e);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(e){let n=this._instance;if(n){let r=this._def,i=this._context,{eventStore:s}=i.getCurrentData(),o=es(s,n.instanceId);o=rs(o,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,i);let c=new Ce(i,r,n);this._def=o.defs[r.defId],this._instance=o.instances[n.instanceId],i.dispatch({type:"MERGE_EVENTS",eventStore:o}),i.emitter.trigger("eventChange",{oldEvent:c,event:this,relatedEvents:Kt(o,i,n),revert(){i.dispatch({type:"RESET_EVENTS",eventStore:s})}})}}remove(){let e=this._context,n=Yl(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:n}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:n})}})}get source(){let{sourceId:e}=this._def;return e?new un(this._context,this._context.getCurrentData().eventSources[e]):null}get start(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null}get end(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null}get startStr(){let e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""}get endStr(){let e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo}):""}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||"auto"}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(e={}){let n=this._def,{ui:r}=n,{startStr:i,endStr:s}=this,o={allDay:n.allDay};return n.title&&(o.title=n.title),i&&(o.start=i),s&&(o.end=s),n.publicId&&(o.id=n.publicId),n.groupId&&(o.groupId=n.groupId),n.url&&(o.url=n.url),r.display&&r.display!=="auto"&&(o.display=r.display),e.collapseColor&&r.backgroundColor&&r.backgroundColor===r.borderColor?o.color=r.backgroundColor:(r.backgroundColor&&(o.backgroundColor=r.backgroundColor),r.borderColor&&(o.borderColor=r.borderColor)),r.textColor&&(o.textColor=r.textColor),r.classNames.length&&(o.classNames=r.classNames),Object.keys(n.extendedProps).length&&(e.collapseExtendedProps?Object.assign(o,n.extendedProps):o.extendedProps=n.extendedProps),o}toJSON(){return this.toPlainObject()}}function Yl(t){let e=t._def,n=t._instance;return{defs:{[e.defId]:e},instances:n?{[n.instanceId]:n}:{}}}function Kt(t,e,n){let{defs:r,instances:i}=t,s=[],o=n?n.instanceId:"";for(let a in i){let c=i[a],l=r[c.defId];c.instanceId!==o&&s.push(new Ce(e,l,c))}return s}function Ql(t,e,n,r){let i={},s={},o={},a=[],c=[],l=Sr(t.defs,e);for(let f in t.defs){let d=t.defs[f];l[d.defId].display==="inverse-background"&&(d.groupId?(i[d.groupId]=[],o[d.groupId]||(o[d.groupId]=d)):s[f]=[])}for(let f in t.instances){let d=t.instances[f],u=t.defs[d.defId],h=l[u.defId],g=d.range,m=!u.allDay&&r?Nl(g,r):g,x=Zt(m,n);x&&(h.display==="inverse-background"?u.groupId?i[u.groupId].push(x):s[d.defId].push(x):h.display!=="none"&&(h.display==="background"?a:c).push({def:u,ui:h,instance:d,range:x,isStart:m.start&&m.start.valueOf()===x.start.valueOf(),isEnd:m.end&&m.end.valueOf()===x.end.valueOf()}))}for(let f in i){let d=i[f],u=kl(d,n);for(let h of u){let g=o[f],m=l[g.defId];a.push({def:g,ui:m,instance:null,range:h,isStart:!1,isEnd:!1})}}for(let f in s){let d=s[f],u=kl(d,n);for(let h of u)a.push({def:t.defs[f],ui:l[f],instance:null,range:h,isStart:!1,isEnd:!1})}return{bg:a,fg:c}}function Jh(t){return t.ui.display==="background"||t.ui.display==="inverse-background"}function Zl(t,e){t.fcSeg=e}function dn(t){return t.fcSeg||t.parentNode.fcSeg||null}function Sr(t,e){return vt(t,n=>Xl(n,e))}function Xl(t,e){let n=[];return e[""]&&n.push(e[""]),e[t.defId]&&n.push(e[t.defId]),n.push(t.ui),Ll(n)}function Kl(t,e){let n=t.map(ep);return n.sort((r,i)=>gd(r,i,e)),n.map(r=>r._seg)}function ep(t){let{eventRange:e}=t,n=e.def,r=e.instance?e.instance.range:e.range,i=r.start?r.start.valueOf():0,s=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:i,end:s,duration:s-i,allDay:Number(n.allDay),_seg:t})}function tp(t,e){let{pluginHooks:n}=e,r=n.isDraggableTransformers,{def:i,ui:s}=t.eventRange,o=s.startEditable;for(let a of r)o=a(o,i,s,e);return o}function np(t,e){return t.isStart&&t.eventRange.ui.durationEditable&&e.options.eventResizableFromStart}function rp(t,e){return t.isEnd&&t.eventRange.ui.durationEditable}function Jl(t,e,n,r,i,s,o){let{dateEnv:a,options:c}=n,{displayEventTime:l,displayEventEnd:f}=c,d=t.eventRange.def,u=t.eventRange.instance;l==null&&(l=r!==!1),f==null&&(f=i!==!1);let h=u.range.start,g=u.range.end,m=s||t.start||t.eventRange.range.start,x=o||t.end||t.eventRange.range.end,A=Ee(h).valueOf()===Ee(m).valueOf(),p=Ee(Bt(g,-1)).valueOf()===Ee(Bt(x,-1)).valueOf();return l&&!d.allDay&&(A||p)?(m=A?h:m,x=p?g:x,f&&d.hasEnd?a.formatRange(m,x,e,{forcedStartTzo:s?null:u.forcedStartTzo,forcedEndTzo:o?null:u.forcedEndTzo}):a.format(m,e,{forcedTzo:s?null:u.forcedStartTzo})):""}function It(t,e,n){let r=t.eventRange.range;return{isPast:r.end<(n||e.start),isFuture:r.start>=(n||e.end),isToday:e&&bt(e,r.start)}}function ip(t){let e=["fc-event"];return t.isMirror&&e.push("fc-event-mirror"),t.isDraggable&&e.push("fc-event-draggable"),(t.isStartResizable||t.isEndResizable)&&e.push("fc-event-resizable"),t.isDragging&&e.push("fc-event-dragging"),t.isResizing&&e.push("fc-event-resizing"),t.isSelected&&e.push("fc-event-selected"),t.isStart&&e.push("fc-event-start"),t.isEnd&&e.push("fc-event-end"),t.isPast&&e.push("fc-event-past"),t.isToday&&e.push("fc-event-today"),t.isFuture&&e.push("fc-event-future"),e}function ec(t){return t.instance?t.instance.instanceId:`${t.def.defId}:${t.range.start.toISOString()}`}function tc(t,e){let{def:n,instance:r}=t.eventRange,{url:i}=n;if(i)return{href:i};let{emitter:s,options:o}=e,{eventInteractive:a}=o;return a==null&&(a=n.interactive,a==null&&(a=!!s.hasHandlers("eventClick"))),a?cl(c=>{s.trigger("eventClick",{el:c.target,event:new Ce(e,n,r),jsEvent:c,view:e.viewApi})}):{}}const sp={start:L,end:L,allDay:Boolean};function op(t,e,n){let r=ap(t,e),{range:i}=r;if(!i.start)return null;if(!i.end){if(n==null)return null;i.end=e.add(i.start,n)}return r}function ap(t,e){let{refined:n,extra:r}=Vi(t,sp),i=n.start?e.createMarkerMeta(n.start):null,s=n.end?e.createMarkerMeta(n.end):null,{allDay:o}=n;return o==null&&(o=i&&i.isTimeUnspecified&&(!s||s.isTimeUnspecified)),Object.assign({range:{start:i?i.marker:null,end:s?s.marker:null},allDay:o},r)}function lp(t,e){return Ch(t.range,e.range)&&t.allDay===e.allDay&&cp(t,e)}function cp(t,e){for(let n in e)if(n!=="range"&&n!=="allDay"&&t[n]!==e[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}function fp(t,e){return Object.assign(Object.assign({},rc(t.range,e,t.allDay)),{allDay:t.allDay})}function nc(t,e,n){return Object.assign(Object.assign({},rc(t,e,n)),{timeZone:e.timeZone})}function rc(t,e,n){return{start:e.toDate(t.start),end:e.toDate(t.end),startStr:e.formatIso(t.start,{omitTime:n}),endStr:e.formatIso(t.end,{omitTime:n})}}function up(t,e,n){let r=Pl({editable:!1},n),i=Ki(r.refined,r.extra,"",t.allDay,!0,n);return{def:i,ui:Xl(i,e),instance:Zi(i.defId,t.range),range:t.range,isStart:!0,isEnd:!0}}function dp(t,e,n){let r=!1,i=function(a){r||(r=!0,e(a))},s=function(a){r||(r=!0,n(a))},o=t(i,s);o&&typeof o.then=="function"&&o.then(i,s)}class ic extends Error{constructor(e,n){super(e),this.response=n}}function hp(t,e,n){t=t.toUpperCase();const r={method:t};return t==="GET"?e+=(e.indexOf("?")===-1?"?":"&")+new URLSearchParams(n):(r.body=new URLSearchParams(n),r.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(e,r).then(i=>{if(i.ok)return i.json().then(s=>[s,i],()=>{throw new ic("Failure parsing JSON",i)});throw new ic("Request failed",i)})}let is;function sc(){return is==null&&(is=pp()),is}function pp(){if(typeof document>"u")return!0;let t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.innerHTML="<table><tr><td><div></div></td></tr></table>",t.querySelector("table").style.height="100px",t.querySelector("div").style.height="100%",document.body.appendChild(t);let n=t.querySelector("div").offsetHeight>0;return document.body.removeChild(t),n}class gp extends me{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{this.setState({forPrint:!0})},this.handleAfterPrint=()=>{this.setState({forPrint:!1})}}render(){let{props:e}=this,{options:n}=e,{forPrint:r}=this.state,i=r||n.height==="auto"||n.contentHeight==="auto",s=!i&&n.height!=null?n.height:"",o=["fc",r?"fc-media-print":"fc-media-screen",`fc-direction-${n.direction}`,e.theme.getClass("root")];return sc()||o.push("fc-liquid-hack"),e.children(o,s,i,r)}componentDidMount(){let{emitter:e}=this.props;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)}}class hn{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function vp(t,e){return{component:t,el:e.el,useEventCenter:e.useEventCenter!=null?e.useEventCenter:!0,isHitComboAllowed:e.isHitComboAllowed||null}}function ss(t){return{[t.component.uid]:t}}const os={};class mp{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){this.trigger("_resize",!0)}setOption(e,n){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:n})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,n){let{currentDataManager:r}=this;r.currentCalendarOptionsRefiners[e]?r.emitter.on(e,n):console.warn(`Unknown listener name '${e}'`)}off(e,n){this.currentDataManager.emitter.off(e,n)}trigger(e,...n){this.currentDataManager.emitter.trigger(e,...n)}changeView(e,n){this.batchRendering(()=>{if(this.unselect(),n)if(n.start&&n.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:n});else{let{dateEnv:r}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:r.createMarker(n)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})})}zoomTo(e,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:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let{viewSpecs:n,toolbarConfig:r}=this.getCurrentData(),i=[].concat(r.header?r.header.viewsWithButtons:[],r.footer?r.footer.viewsWithButtons:[]),s,o;for(let a in n)i.push(a);for(s=0;s<i.length;s+=1)if(o=n[i[s]],o&&o.singleUnit===e)return o;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})}nextYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})}today(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:kn(e.calendarOptions.now,e.dateEnv)})}gotoDate(e){let n=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.createMarker(e)})}incrementDate(e){let n=this.getCurrentData(),r=pe(e);r&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.add(n.currentDate,r)}))}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,n){let{dateEnv:r}=this.getCurrentData();return r.format(r.createMarker(e),_e(n))}formatRange(e,n,r){let{dateEnv:i}=this.getCurrentData();return i.formatRange(i.createMarker(e),i.createMarker(n),_e(r),r)}formatIso(e,n){let{dateEnv:r}=this.getCurrentData();return r.formatIso(r.createMarker(e),{omitTime:n})}select(e,n){let r;n==null?e.start!=null?r=e:r={start:e,end:null}:r={start:e,end:n};let i=this.getCurrentData(),s=op(r,i.dateEnv,pe({days:1}));s&&(this.dispatch({type:"SELECT_DATES",selection:s}),$l(s,null,i))}unselect(e){let n=this.getCurrentData();n.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),Zh(e,n))}addEvent(e,n){if(e instanceof Ce){let o=e._def,a=e._instance;return this.getCurrentData().eventStore.defs[o.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:Ji({def:o,instance:a})}),this.triggerEventAdd(e)),e}let r=this.getCurrentData(),i;if(n instanceof un)i=n.internalEventSource;else if(typeof n=="boolean")n&&([i]=ji(r.eventSources));else if(n!=null){let o=this.getEventSourceById(n);if(!o)return console.warn(`Could not find an event source with ID "${n}"`),null;i=o.internalEventSource}let s=Ol(e,i,r,!1);if(s){let o=new Ce(r,s.def,s.def.recurringDef?null:s.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:Ji(s)}),this.triggerEventAdd(o),o}return null}triggerEventAdd(e){let{emitter:n}=this.getCurrentData();n.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:Yl(e)})}})}getEventById(e){let n=this.getCurrentData(),{defs:r,instances:i}=n.eventStore;e=String(e);for(let s in r){let o=r[s];if(o.publicId===e){if(o.recurringDef)return new Ce(n,o,null);for(let a in i){let c=i[a];if(c.defId===o.defId)return new Ce(n,o,c)}}}return null}getEvents(){let e=this.getCurrentData();return Kt(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),n=e.eventSources,r=[];for(let i in n)r.push(new un(e,n[i]));return r}getEventSourceById(e){let n=this.getCurrentData(),r=n.eventSources;e=String(e);for(let i in r)if(r[i].publicId===e)return new un(n,r[i]);return null}addEventSource(e){let n=this.getCurrentData();if(e instanceof un)return n.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let r=zl(e,n);return r?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[r]}),new un(n,r)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let n=pe(e);n&&this.trigger("_scrollRequest",{time:n})}}function xp(t,e){return t.left>=e.left&&t.left<e.right&&t.top>=e.top&&t.top<e.bottom}function oc(t,e){let n={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)};return n.left<n.right&&n.top<n.bottom?n:!1}function bp(t,e){return{left:Math.min(Math.max(t.left,e.left),e.right),top:Math.min(Math.max(t.top,e.top),e.bottom)}}function yp(t){return{left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}}function Ep(t,e){return{left:t.left-e.left,top:t.top-e.top}}const as=Ze();class Ap{constructor(){this.getKeysForEventDefs=oe(this._getKeysForEventDefs),this.splitDateSelection=oe(this._splitDateSpan),this.splitEventStore=oe(this._splitEventStore),this.splitIndividualUi=oe(this._splitIndividualUi),this.splitEventDrag=oe(this._splitInteraction),this.splitEventResize=oe(this._splitInteraction),this.eventUiBuilders={}}splitProps(e){let n=this.getKeyInfo(e),r=this.getKeysForEventDefs(e.eventStore),i=this.splitDateSelection(e.dateSelection),s=this.splitIndividualUi(e.eventUiBases,r),o=this.splitEventStore(e.eventStore,r),a=this.splitEventDrag(e.eventDrag),c=this.splitEventResize(e.eventResize),l={};this.eventUiBuilders=vt(n,(f,d)=>this.eventUiBuilders[d]||oe(Cp));for(let f in n){let d=n[f],u=o[f]||as,h=this.eventUiBuilders[f];l[f]={businessHours:d.businessHours||e.businessHours,dateSelection:i[f]||null,eventStore:u,eventUiBases:h(e.eventUiBases[""],d.ui,s[f]),eventSelection:u.instances[e.eventSelection]?e.eventSelection:"",eventDrag:a[f]||null,eventResize:c[f]||null}}return l}_splitDateSpan(e){let n={};if(e){let r=this.getKeysForDateSpan(e);for(let i of r)n[i]=e}return n}_getKeysForEventDefs(e){return vt(e.defs,n=>this.getKeysForEventDef(n))}_splitEventStore(e,n){let{defs:r,instances:i}=e,s={};for(let o in r)for(let a of n[o])s[a]||(s[a]=Ze()),s[a].defs[o]=r[o];for(let o in i){let a=i[o];for(let c of n[a.defId])s[c]&&(s[c].instances[o]=a)}return s}_splitIndividualUi(e,n){let r={};for(let i in e)if(i)for(let s of n[i])r[s]||(r[s]={}),r[s][i]=e[i];return r}_splitInteraction(e){let n={};if(e){let r=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),i=this._getKeysForEventDefs(e.mutatedEvents),s=this._splitEventStore(e.mutatedEvents,i),o=a=>{n[a]||(n[a]={affectedEvents:r[a]||as,mutatedEvents:s[a]||as,isEvent:e.isEvent})};for(let a in r)o(a);for(let a in s)o(a)}return n}}function Cp(t,e,n){let r=[];t&&r.push(t),e&&r.push(e);let i={"":Ll(r)};return n&&Object.assign(i,n),i}function ac(t,e,n,r){return{dow:t.getUTCDay(),isDisabled:!!(r&&!bt(r.activeRange,t)),isOther:!!(r&&!bt(r.currentRange,t)),isToday:!!(e&&bt(e,t)),isPast:!!(n?t<n:e&&t<e.start),isFuture:!!(n?t>n:e&&t>=e.end)}}function ls(t,e){let n=["fc-day",`fc-day-${Sd[t.dow]}`];return t.isDisabled?n.push("fc-day-disabled"):(t.isToday&&(n.push("fc-day-today"),n.push(e.getClass("today"))),t.isPast&&n.push("fc-day-past"),t.isFuture&&n.push("fc-day-future"),t.isOther&&n.push("fc-day-other")),n}const wp=_e({year:"numeric",month:"long",day:"numeric"}),_p=_e({week:"long"});function Rr(t,e,n="day",r=!0){const{dateEnv:i,options:s,calendarApi:o}=t;let a=i.format(e,n==="week"?_p:wp);if(s.navLinks){let c=i.toDate(e);const l=f=>{let d=n==="day"?s.navLinkDayClick:n==="week"?s.navLinkWeekClick:null;typeof d=="function"?d.call(o,i.toDate(e),f):(typeof d=="string"&&(n=d),o.zoomTo(e,n))};return Object.assign({title:Rn(s.navLinkHint,[a,c],a),"data-navlink":""},r?ll(l):{onClick:l})}return{"aria-label":a}}let cs=null;function Dp(){return cs===null&&(cs=Sp()),cs}function Sp(){let t=document.createElement("div");Sn(t,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),t.innerHTML="<div></div>",document.body.appendChild(t);let n=t.firstChild.getBoundingClientRect().left>t.getBoundingClientRect().left;return Ii(t),n}let fs;function Rp(){return fs||(fs=Bp()),fs}function Bp(){let t=document.createElement("div");t.style.overflow="scroll",t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t);let e=lc(t);return document.body.removeChild(t),e}function lc(t){return{x:t.offsetHeight-t.clientHeight,y:t.offsetWidth-t.clientWidth}}function Tp(t,e=!1){let n=window.getComputedStyle(t),r=parseInt(n.borderLeftWidth,10)||0,i=parseInt(n.borderRightWidth,10)||0,s=parseInt(n.borderTopWidth,10)||0,o=parseInt(n.borderBottomWidth,10)||0,a=lc(t),c=a.y-r-i,l=a.x-s-o,f={borderLeft:r,borderRight:i,borderTop:s,borderBottom:o,scrollbarBottom:l,scrollbarLeft:0,scrollbarRight:0};return Dp()&&n.direction==="rtl"?f.scrollbarLeft=c:f.scrollbarRight=c,e&&(f.paddingLeft=parseInt(n.paddingLeft,10)||0,f.paddingRight=parseInt(n.paddingRight,10)||0,f.paddingTop=parseInt(n.paddingTop,10)||0,f.paddingBottom=parseInt(n.paddingBottom,10)||0),f}function kp(t,e=!1,n){let r=n?t.getBoundingClientRect():us(t),i=Tp(t,e),s={left:r.left+i.borderLeft+i.scrollbarLeft,right:r.right-i.borderRight-i.scrollbarRight,top:r.top+i.borderTop,bottom:r.bottom-i.borderBottom-i.scrollbarBottom};return e&&(s.left+=i.paddingLeft,s.right-=i.paddingRight,s.top+=i.paddingTop,s.bottom-=i.paddingBottom),s}function us(t){let e=t.getBoundingClientRect();return{left:e.left+window.pageXOffset,top:e.top+window.pageYOffset,right:e.right+window.pageXOffset,bottom:e.bottom+window.pageYOffset}}function Ip(t){let e=cc(t),n=t.getBoundingClientRect();for(let r of e){let i=oc(n,r.getBoundingClientRect());if(i)n=i;else return null}return n}function cc(t){let e=[];for(;t instanceof HTMLElement;){let n=window.getComputedStyle(t);if(n.position==="fixed")break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&e.push(t),t=t.parentNode}return e}class pn{constructor(e,n,r,i){this.els=n;let s=this.originClientRect=e.getBoundingClientRect();r&&this.buildElHorizontals(s.left),i&&this.buildElVerticals(s.top)}buildElHorizontals(e){let n=[],r=[];for(let i of this.els){let s=i.getBoundingClientRect();n.push(s.left-e),r.push(s.right-e)}this.lefts=n,this.rights=r}buildElVerticals(e){let n=[],r=[];for(let i of this.els){let s=i.getBoundingClientRect();n.push(s.top-e),r.push(s.bottom-e)}this.tops=n,this.bottoms=r}leftToIndex(e){let{lefts:n,rights:r}=this,i=n.length,s;for(s=0;s<i;s+=1)if(e>=n[s]&&e<r[s])return s}topToIndex(e){let{tops:n,bottoms:r}=this,i=n.length,s;for(s=0;s<i;s+=1)if(e>=n[s]&&e<r[s])return s}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return Br(this.tops||[],e.tops||[])&&Br(this.bottoms||[],e.bottoms||[])&&Br(this.lefts||[],e.lefts||[])&&Br(this.rights||[],e.rights||[])}}function Br(t,e){const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(Math.round(t[r])!==Math.round(e[r]))return!1;return!0}class ds{getMaxScrollTop(){return this.getScrollHeight()-this.getClientHeight()}getMaxScrollLeft(){return this.getScrollWidth()-this.getClientWidth()}canScrollVertically(){return this.getMaxScrollTop()>0}canScrollHorizontally(){return this.getMaxScrollLeft()>0}canScrollUp(){return this.getScrollTop()>0}canScrollDown(){return this.getScrollTop()<this.getMaxScrollTop()}canScrollLeft(){return this.getScrollLeft()>0}canScrollRight(){return this.getScrollLeft()<this.getMaxScrollLeft()}}class Np extends ds{constructor(e){super(),this.el=e}getScrollTop(){return this.el.scrollTop}getScrollLeft(){return this.el.scrollLeft}setScrollTop(e){this.el.scrollTop=e}setScrollLeft(e){this.el.scrollLeft=e}getScrollWidth(){return this.el.scrollWidth}getScrollHeight(){return this.el.scrollHeight}getClientHeight(){return this.el.clientHeight}getClientWidth(){return this.el.clientWidth}}class Mp extends ds{getScrollTop(){return window.pageYOffset}getScrollLeft(){return window.pageXOffset}setScrollTop(e){window.scroll(window.pageXOffset,e)}setScrollLeft(e){window.scroll(e,window.pageYOffset)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class ft extends me{constructor(){super(...arguments),this.uid=jt()}prepareHits(){}queryHit(e,n,r,i){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!Fe(e,".fc-event-mirror")}isValidDateDownEl(e){return!Fe(e,".fc-event:not(.fc-bg-event)")&&!Fe(e,".fc-more-link")&&!Fe(e,"a[data-navlink]")&&!Fe(e,".fc-popover")}}class fc{constructor(e=n=>n.thickness){this.getEntryThickness=e,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(e){let n=[];for(let r of e)this.insertEntry(r,n);return n}insertEntry(e,n){let r=this.findInsertion(e);return this.isInsertionValid(r,e)?(this.insertEntryAt(e,r),1):this.handleInvalidInsertion(r,e,n)}isInsertionValid(e,n){return(this.maxCoord===-1||e.levelCoord+this.getEntryThickness(n)<=this.maxCoord)&&(this.maxStackCnt===-1||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,n,r){return this.allowReslicing&&e.touchingEntry?this.splitEntry(n,e.touchingEntry,r):(r.push(n),0)}splitEntry(e,n,r){let i=0,s=[],o=e.span,a=n.span;return o.start<a.start&&(i+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:o.start,end:a.start}},s)),o.end>a.end&&(i+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:a.end,end:o.end}},s)),i?(r.push({index:e.index,thickness:e.thickness,span:ps(a,o)},...s),i):(r.push(e),0)}insertEntryAt(e,n){let{entriesByLevel:r,levelCoords:i}=this;n.lateral===-1?(gs(i,n.level,n.levelCoord),gs(r,n.level,[e])):gs(r[n.level],n.lateral,e),this.stackCnts[Jt(e)]=n.stackCnt}findInsertion(e){let{levelCoords:n,entriesByLevel:r,strictOrder:i,stackCnts:s}=this,o=n.length,a=0,c=-1,l=-1,f=null,d=0;for(let g=0;g<o;g+=1){let m=n[g];if(!i&&m>=a+this.getEntryThickness(e))break;let x=r[g],A,p=vs(x,e.span.start,hs),v=p[0]+p[1];for(;(A=x[v])&&A.span.start<e.span.end;){let b=m+this.getEntryThickness(A);b>a&&(a=b,f=A,c=g,l=v),b===a&&(d=Math.max(d,s[Jt(A)]+1)),v+=1}}let u=0;if(f)for(u=c+1;u<o&&n[u]<a;)u+=1;let h=-1;return u<o&&n[u]===a&&(h=vs(r[u],e.span.end,hs)[0]),{touchingLevel:c,touchingLateral:l,touchingEntry:f,stackCnt:d,levelCoord:a,level:u,lateral:h}}toRects(){let{entriesByLevel:e,levelCoords:n}=this,r=e.length,i=[];for(let s=0;s<r;s+=1){let o=e[s],a=n[s];for(let c of o)i.push(Object.assign(Object.assign({},c),{thickness:this.getEntryThickness(c),levelCoord:a}))}return i}}function hs(t){return t.span.end}function Jt(t){return t.index+":"+t.span.start}function Fp(t){let e=[];for(let n of t){let r=[],i={span:n.span,entries:[n]};for(let s of e)ps(s.span,i.span)?i={entries:s.entries.concat(i.entries),span:Op(s.span,i.span)}:r.push(s);r.push(i),e=r}return e}function Op(t,e){return{start:Math.min(t.start,e.start),end:Math.max(t.end,e.end)}}function ps(t,e){let n=Math.max(t.start,e.start),r=Math.min(t.end,e.end);return n<r?{start:n,end:r}:null}function gs(t,e,n){t.splice(e,0,n)}function vs(t,e,n){let r=0,i=t.length;if(!i||e<n(t[r]))return[0,0];if(e>n(t[i-1]))return[i,0];for(;r<i;){let s=Math.floor(r+(i-r)/2),o=n(t[s]);if(e<o)i=s;else if(e>o)r=s+1;else return[s,1]}return[r,0]}class Pp{constructor(e,n){this.emitter=new Dr}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}}const ms={};function Hp(t,e){return!t||e>10?_e({weekday:"short"}):e>1?_e({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):_e({weekday:"long"})}const uc="fc-col-header-cell";function dc(t){return t.text}class Lp extends me{render(){let{dateEnv:e,options:n,theme:r,viewApi:i}=this.context,{props:s}=this,{date:o,dateProfile:a}=s,c=ac(o,s.todayRange,null,a),l=[uc].concat(ls(c,r)),f=e.format(o,s.dayHeaderFormat),d=!c.isDisabled&&s.colCnt>1?Rr(this.context,o):{},u=Object.assign(Object.assign(Object.assign({date:e.toDate(o),view:i},s.extraRenderProps),{text:f}),c);return T(Qe,{elTag:"th",elClasses:l,elAttrs:Object.assign({role:"columnheader",colSpan:s.colSpan,"data-date":c.isDisabled?void 0:Li(o)},s.extraDataAttrs),renderProps:u,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:dc,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},h=>T("div",{className:"fc-scrollgrid-sync-inner"},!c.isDisabled&&T(h,{elTag:"a",elAttrs:d,elClasses:["fc-col-header-cell-cushion",s.isSticky&&"fc-sticky"]})))}}const zp=_e({weekday:"long"});class Up extends me{render(){let{props:e}=this,{dateEnv:n,theme:r,viewApi:i,options:s}=this.context,o=Oe(new Date(2592e5),e.dow),a={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},c=n.format(o,e.dayHeaderFormat),l=Object.assign(Object.assign(Object.assign(Object.assign({date:o},a),{view:i}),e.extraRenderProps),{text:c});return T(Qe,{elTag:"th",elClasses:[uc,...ls(a,r),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:l,generatorName:"dayHeaderContent",customGenerator:s.dayHeaderContent,defaultGenerator:dc,classNameGenerator:s.dayHeaderClassNames,didMount:s.dayHeaderDidMount,willUnmount:s.dayHeaderWillUnmount},f=>T("div",{className:"fc-scrollgrid-sync-inner"},T(f,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":n.format(o,zp)}})))}}class Nn extends Ye{constructor(e,n){super(e,n),this.initialNowDate=kn(n.options.now,n.dateEnv),this.initialNowQueriedMs=new Date().valueOf(),this.state=this.computeTiming().currentState}render(){let{props:e,state:n}=this;return e.children(n.nowDate,n.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:e,context:n}=this,r=Bt(this.initialNowDate,new Date().valueOf()-this.initialNowQueriedMs),i=n.dateEnv.startOf(r,e.unit),s=n.dateEnv.add(i,pe(1,e.unit)),o=s.valueOf()-r.valueOf();return o=Math.min(1e3*60*60*24,o),{currentState:{nowDate:i,todayRange:hc(i)},nextState:{nowDate:s,todayRange:hc(s)},waitMs:o}}setTimeout(){let{nextState:e,waitMs:n}=this.computeTiming();this.timeoutId=setTimeout(()=>{this.setState(e,()=>{this.setTimeout()})},n)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}Nn.contextType=mt;function hc(t){let e=Ee(t),n=Oe(e,1);return{start:e,end:n}}class pc extends me{constructor(){super(...arguments),this.createDayHeaderFormatter=oe(Vp)}render(){let{context:e}=this,{dates:n,dateProfile:r,datesRepDistinctDays:i,renderIntro:s}=this.props,o=this.createDayHeaderFormatter(e.options.dayHeaderFormat,i,n.length);return T(Nn,{unit:"day"},(a,c)=>T("tr",{role:"row"},s&&s("day"),n.map(l=>i?T(Lp,{key:l.toISOString(),date:l,dateProfile:r,todayRange:c,colCnt:n.length,dayHeaderFormat:o}):T(Up,{key:l.getUTCDay(),dow:l.getUTCDay(),dayHeaderFormat:o}))))}}function Vp(t,e,n){return t||Hp(e,n)}class gc{constructor(e,n){let r=e.start,{end:i}=e,s=[],o=[],a=-1;for(;r<i;)n.isHiddenDay(r)?s.push(a+.5):(a+=1,s.push(a),o.push(r)),r=Oe(r,1);this.dates=o,this.indices=s,this.cnt=o.length}sliceRange(e){let n=this.getDateDayIndex(e.start),r=this.getDateDayIndex(Oe(e.end,-1)),i=Math.max(0,n),s=Math.min(this.cnt-1,r);return i=Math.ceil(i),s=Math.floor(s),i<=s?{firstIndex:i,lastIndex:s,isStart:n===i,isEnd:r===s}:null}getDateDayIndex(e){let{indices:n}=this,r=Math.floor(qt(this.dates[0],e));return r<0?n[0]-1:r>=n.length?n[n.length-1]+1:n[r]}}class vc{constructor(e,n){let{dates:r}=e,i,s,o;if(n){for(s=r[0].getUTCDay(),i=1;i<r.length&&r[i].getUTCDay()!==s;i+=1);o=Math.ceil(r.length/i)}else o=1,i=r.length;this.rowCnt=o,this.colCnt=i,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];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));e.push(r)}return e}buildCell(e,n){let r=this.daySeries.dates[e*this.colCnt+n];return{key:r.toISOString(),date:r}}buildHeaderDates(){let e=[];for(let n=0;n<this.colCnt;n+=1)e.push(this.cells[0][n].date);return e}sliceRange(e){let{colCnt:n}=this,r=this.daySeries.sliceRange(e),i=[];if(r){let{firstIndex:s,lastIndex:o}=r,a=s;for(;a<=o;){let c=Math.floor(a/n),l=Math.min((c+1)*n,o+1);i.push({row:c,firstCol:a%n,lastCol:(l-1)%n,isStart:r.isStart&&a===s,isEnd:r.isEnd&&l-1===o}),a=l}}return i}}class mc{constructor(){this.sliceBusinessHours=oe(this._sliceBusinessHours),this.sliceDateSelection=oe(this._sliceDateSpan),this.sliceEventStore=oe(this._sliceEventStore),this.sliceEventDrag=oe(this._sliceInteraction),this.sliceEventResize=oe(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,n,r,i,...s){let{eventUiBases:o}=e,a=this.sliceEventStore(e.eventStore,o,n,r,...s);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,n,r,o,i,...s),businessHourSegs:this.sliceBusinessHours(e.businessHours,n,r,i,...s),fgEventSegs:a.fg,bgEventSegs:a.bg,eventDrag:this.sliceEventDrag(e.eventDrag,o,n,r,...s),eventResize:this.sliceEventResize(e.eventResize,o,n,r,...s),eventSelection:e.eventSelection}}sliceNowDate(e,n,r,i,...s){return this._sliceDateSpan({range:{start:e,end:Bt(e,1)},allDay:!1},n,r,{},i,...s)}_sliceBusinessHours(e,n,r,i,...s){return e?this._sliceEventStore(Xt(e,Tr(n,!!r),i),{},n,r,...s).bg:[]}_sliceEventStore(e,n,r,i,...s){if(e){let o=Ql(e,n,Tr(r,!!i),i);return{bg:this.sliceEventRanges(o.bg,s),fg:this.sliceEventRanges(o.fg,s)}}return{bg:[],fg:[]}}_sliceInteraction(e,n,r,i,...s){if(!e)return null;let o=Ql(e.mutatedEvents,n,Tr(r,!!i),i);return{segs:this.sliceEventRanges(o.fg,s),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,n,r,i,s,...o){if(!e)return[];let a=Tr(n,!!r),c=Zt(e.range,a);if(c){e=Object.assign(Object.assign({},e),{range:c});let l=up(e,i,s),f=this.sliceRange(e.range,...o);for(let d of f)d.eventRange=l;return f}return[]}sliceEventRanges(e,n){let r=[];for(let i of e)r.push(...this.sliceEventRange(i,n));return r}sliceEventRange(e,n){let r=e.range;this.forceDayIfListItem&&e.ui.display==="list-item"&&(r={start:r.start,end:Oe(r.start,1)});let i=this.sliceRange(r,...n);for(let s of i)s.eventRange=e,s.isStart=e.isStart&&s.isStart,s.isEnd=e.isEnd&&s.isEnd;return i}}function Tr(t,e){let n=t.activeRange;return e?n:{start:Bt(n.start,t.slotMinTime.milliseconds),end:Bt(n.end,t.slotMaxTime.milliseconds-864e5)}}function xc(t,e,n){let{instances:r}=t.mutatedEvents;for(let i in r)if(!Er(e.validRange,r[i].range))return!1;return bc({eventDrag:t},n)}function Wp(t,e,n){return Er(e.validRange,t.range)?bc({dateSelection:t},n):!1}function bc(t,e){let n=e.getCurrentData(),r=Object.assign({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},t);return(e.pluginHooks.isPropsValid||jp)(r,e)}function jp(t,e,n={},r){return!(t.eventDrag&&!qp(t,e,n,r)||t.dateSelection&&!$p(t,e,n,r))}function qp(t,e,n,r){let i=e.getCurrentData(),s=t.eventDrag,o=s.mutatedEvents,a=o.defs,c=o.instances,l=Sr(a,s.isEvent?t.eventUiBases:{"":i.selectionConfig});r&&(l=vt(l,r));let f=Wh(t.eventStore,s.affectedEvents.instances),d=f.defs,u=f.instances,h=Sr(d,t.eventUiBases);for(let g in c){let m=c[g],x=m.range,A=l[m.defId],p=a[m.defId];if(!yc(A.constraints,x,f,t.businessHours,e))return!1;let{eventOverlap:v}=e.options,b=typeof v=="function"?v:null;for(let C in u){let D=u[C];if(Qi(x,D.range)&&(h[D.defId].overlap===!1&&s.isEvent||A.overlap===!1||b&&!b(new Ce(e,d[D.defId],D),new Ce(e,p,m))))return!1}let E=i.eventStore;for(let C of A.allows){let D=Object.assign(Object.assign({},n),{range:m.range,allDay:p.allDay}),w=E.defs[p.defId],I=E.instances[g],R;if(w?R=new Ce(e,w,I):R=new Ce(e,p),!C(ns(D,e),R))return!1}}return!0}function $p(t,e,n,r){let i=t.eventStore,s=i.defs,o=i.instances,a=t.dateSelection,c=a.range,{selectionConfig:l}=e.getCurrentData();if(r&&(l=r(l)),!yc(l.constraints,c,i,t.businessHours,e))return!1;let{selectOverlap:f}=e.options,d=typeof f=="function"?f:null;for(let u in o){let h=o[u];if(Qi(c,h.range)&&(l.overlap===!1||d&&!d(new Ce(e,s[h.defId],h),null)))return!1}for(let u of l.allows){let h=Object.assign(Object.assign({},n),a);if(!u(ns(h,e),null))return!1}return!0}function yc(t,e,n,r,i){for(let s of t)if(!Yp(Gp(s,e,n,r,i),e))return!1;return!0}function Gp(t,e,n,r,i){return t==="businessHours"?xs(Xt(r,e,i)):typeof t=="string"?xs(Cr(n,s=>s.groupId===t)):typeof t=="object"&&t?xs(Xt(t,e,i)):[]}function xs(t){let{instances:e}=t,n=[];for(let r in e)n.push(e[r].range);return n}function Yp(t,e){for(let n of t)if(Er(n,e))return!0;return!1}const kr=/^(visible|hidden)$/;class Qp extends me{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,xt(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:n,liquidIsAbsolute:r}=e,i=n&&r,s=["fc-scroller"];return n&&(r?s.push("fc-scroller-liquid-absolute"):s.push("fc-scroller-liquid")),T("div",{ref:this.handleEl,className:s.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:i&&-(e.overcomeLeft||0)||"",right:i&&-(e.overcomeRight||0)||"",bottom:i&&-(e.overcomeBottom||0)||"",marginLeft:!i&&-(e.overcomeLeft||0)||"",marginRight:!i&&-(e.overcomeRight||0)||"",marginBottom:!i&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)}needsXScrolling(){if(kr.test(this.props.overflowX))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:r}=e;for(let i=0;i<r.length;i+=1)if(r[i].getBoundingClientRect().width>n)return!0;return!1}needsYScrolling(){if(kr.test(this.props.overflowY))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:r}=e;for(let i=0;i<r.length;i+=1)if(r[i].getBoundingClientRect().height>n)return!0;return!1}getXScrollbarWidth(){return kr.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return kr.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class yt{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(n,r)=>{let{depths:i,currentMap:s}=this,o=!1,a=!1;n!==null?(o=r in s,s[r]=n,i[r]=(i[r]||0)+1,a=!0):(i[r]-=1,i[r]||(delete s[r],delete this.callbackMap[r],o=!0)),this.masterCallback&&(o&&this.masterCallback(null,String(r)),a&&this.masterCallback(n,String(r)))}}createRef(e){let n=this.callbackMap[e];return n||(n=this.callbackMap[e]=r=>{this.handleValue(r,String(e))}),n}collect(e,n,r){return oh(this.currentMap,e,n,r)}getAll(){return ji(this.currentMap)}}function Zp(t){let e=sd(t,".fc-scrollgrid-shrink"),n=0;for(let r of e)n=Math.max(n,bd(r));return Math.ceil(n)}function Ec(t,e){return t.liquid&&e.liquid}function Xp(t,e){return e.maxHeight!=null||Ec(t,e)}function Kp(t,e,n,r){let{expandRows:i}=n;return typeof e.content=="function"?e.content(n):T("table",{role:"presentation",className:[e.tableClassName,t.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:i?n.clientHeight:""}},n.tableColGroupNode,T(r?"thead":"tbody",{role:"presentation"},typeof e.rowContent=="function"?e.rowContent(n):e.rowContent))}function Jp(t,e){return Rt(t,e,ct)}function eg(t,e){let n=[];for(let r of t){let i=r.span||1;for(let s=0;s<i;s+=1)n.push(T("col",{style:{width:r.width==="shrink"?tg(e):r.width||"",minWidth:r.minWidth||""}}))}return T("colgroup",{},...n)}function tg(t){return t??4}function ng(t){for(let e of t)if(e.width==="shrink")return!0;return!1}function rg(t,e){let n=["fc-scrollgrid",e.theme.getClass("table")];return t&&n.push("fc-scrollgrid-liquid"),n}function ig(t,e){let n=["fc-scrollgrid-section",`fc-scrollgrid-section-${t.type}`,t.className];return e&&t.liquid&&t.maxHeight==null&&n.push("fc-scrollgrid-section-liquid"),t.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function bs(t){return T("div",{className:"fc-scrollgrid-sticky-shim",style:{width:t.clientWidth,minWidth:t.tableMinWidth}})}function Ir(t){let{stickyHeaderDates:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}function Ac(t){let{stickyFooterScrollbar:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}class ys extends me{constructor(){super(...arguments),this.processCols=oe(e=>e,Jp),this.renderMicroColGroup=oe(eg),this.scrollerRefs=new yt,this.scrollerElRefs=new yt(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:e,state:n,context:r}=this,i=e.sections||[],s=this.processCols(e.cols),o=this.renderMicroColGroup(s,n.shrinkWidth),a=rg(e.liquid,r);e.collapsibleWidth&&a.push("fc-scrollgrid-collapsible");let c=i.length,l=0,f,d=[],u=[],h=[];for(;l<c&&(f=i[l]).type==="header";)d.push(this.renderSection(f,o,!0)),l+=1;for(;l<c&&(f=i[l]).type==="body";)u.push(this.renderSection(f,o,!1)),l+=1;for(;l<c&&(f=i[l]).type==="footer";)h.push(this.renderSection(f,o,!0)),l+=1;let g=!sc();const m={role:"rowgroup"};return T("table",{role:"grid",className:a.join(" "),style:{height:e.height}},!!(!g&&d.length)&&T("thead",m,...d),!!(!g&&u.length)&&T("tbody",m,...u),!!(!g&&h.length)&&T("tfoot",m,...h),g&&T("tbody",m,...d,...u,...h))}renderSection(e,n,r){return"outerContent"in e?T(Ae,{key:e.key},e.outerContent):T("tr",{key:e.key,role:"presentation",className:ig(e,this.props.liquid).join(" ")},this.renderChunkTd(e,n,e.chunk,r))}renderChunkTd(e,n,r,i){if("outerContent"in r)return r.outerContent;let{props:s}=this,{forceYScrollbars:o,scrollerClientWidths:a,scrollerClientHeights:c}=this.state,l=Xp(s,e),f=Ec(s,e),d=s.liquid?o?"scroll":l?"auto":"hidden":"visible",u=e.key,h=Kp(e,r,{tableColGroupNode:n,tableMinWidth:"",clientWidth:!s.collapsibleWidth&&a[u]!==void 0?a[u]:null,clientHeight:c[u]!==void 0?c[u]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},i);return T(i?"th":"td",{ref:r.elRef,role:"presentation"},T("div",{className:`fc-scroller-harness${f?" fc-scroller-harness-liquid":""}`},T(Qp,{ref:this.scrollerRefs.createRef(u),elRef:this.scrollerElRefs.createRef(u),overflowY:d,overflowX:s.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:f,liquidIsAbsolute:!0},h)))}_handleScrollerEl(e,n){let r=sg(this.props.sections,n);r&&xt(r.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return ng(this.props.cols)?Zp(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=Rp(),{scrollerRefs:n,scrollerElRefs:r}=this,i=!1,s={},o={};for(let a in n.currentMap){let c=n.currentMap[a];if(c&&c.needsYScrolling()){i=!0;break}}for(let a of this.props.sections){let c=a.key,l=r.currentMap[c];if(l){let f=l.parentNode;s[c]=Math.floor(f.getBoundingClientRect().width-(i?e.y:0)),o[c]=Math.floor(f.getBoundingClientRect().height)}}return{forceYScrollbars:i,scrollerClientWidths:s,scrollerClientHeights:o}}}ys.addStateEquality({scrollerClientWidths:ct,scrollerClientHeights:ct});function sg(t,e){for(let n of t)if(n.key===e)return n;return null}class Es extends me{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,e&&Zl(e,this.props.seg)}}render(){const{props:e,context:n}=this,{options:r}=n,{seg:i}=e,{eventRange:s}=i,{ui:o}=s,a={event:new Ce(n,s.def,s.instance),view:n.viewApi,timeText:e.timeText,textColor:o.textColor,backgroundColor:o.backgroundColor,borderColor:o.borderColor,isDraggable:!e.disableDragging&&tp(i,n),isStartResizable:!e.disableResizing&&np(i,n),isEndResizable:!e.disableResizing&&rp(i),isMirror:!!(e.isDragging||e.isResizing||e.isDateSelecting),isStart:!!i.isStart,isEnd:!!i.isEnd,isPast:!!e.isPast,isFuture:!!e.isFuture,isToday:!!e.isToday,isSelected:!!e.isSelected,isDragging:!!e.isDragging,isResizing:!!e.isResizing};return T(Qe,Object.assign({},e,{elRef:this.handleEl,elClasses:[...ip(a),...i.eventRange.ui.classNames,...e.elClasses||[]],renderProps:a,generatorName:"eventContent",customGenerator:r.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:r.eventClassNames,didMount:r.eventDidMount,willUnmount:r.eventWillUnmount}))}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&Zl(this.el,this.props.seg)}}class Cc extends me{render(){let{props:e,context:n}=this,{options:r}=n,{seg:i}=e,{ui:s}=i.eventRange,o=r.eventTimeFormat||e.defaultTimeFormat,a=Jl(i,o,n,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return T(Es,Object.assign({},e,{elTag:"a",elStyle:{borderColor:s.borderColor,backgroundColor:s.backgroundColor},elAttrs:tc(i,n),defaultGenerator:og,timeText:a}),(c,l)=>T(Ae,null,T(c,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:l.textColor}}),!!l.isStartResizable&&T("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!l.isEndResizable&&T("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}function og(t){return T("div",{className:"fc-event-main-frame"},t.timeText&&T("div",{className:"fc-event-time"},t.timeText),T("div",{className:"fc-event-title-container"},T("div",{className:"fc-event-title fc-sticky"},t.event.title||T(Ae,null," "))))}const As=t=>T(mt.Consumer,null,e=>{let{options:n}=e,r={isAxis:t.isAxis,date:e.dateEnv.toDate(t.date),view:e.viewApi};return T(Qe,Object.assign({},t,{elTag:t.elTag||"div",renderProps:r,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount}))}),ag=_e({day:"numeric"});class Cs extends me{constructor(){super(...arguments),this.refineRenderProps=pr(lg)}render(){let{props:e,context:n}=this,{options:r}=n,i=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:n.viewApi,dateEnv:n.dateEnv,monthStartFormat:r.monthStartFormat});return T(Qe,Object.assign({},e,{elClasses:[...ls(i,n.theme),...e.elClasses||[]],elAttrs:Object.assign(Object.assign({},e.elAttrs),i.isDisabled?{}:{"data-date":Li(e.date)}),renderProps:i,generatorName:"dayCellContent",customGenerator:r.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:i.isDisabled?void 0:r.dayCellClassNames,didMount:r.dayCellDidMount,willUnmount:r.dayCellWillUnmount}))}}function ws(t){return!!(t.dayCellContent||Yi("dayCellContent",t))}function lg(t){let{date:e,dateEnv:n,dateProfile:r,isMonthStart:i}=t,s=ac(e,t.todayRange,null,r),o=t.showDayNumber?n.format(e,i?t.monthStartFormat:ag):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(e),view:t.viewApi},s),{isMonthStart:i,dayNumberText:o}),t.extraRenderProps)}class wc extends me{render(){let{props:e}=this,{seg:n}=e;return T(Es,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:n.eventRange.ui.backgroundColor},defaultGenerator:cg,seg:n,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}}function cg(t){let{title:e}=t.event;return e&&T("div",{className:"fc-event-title"},t.event.title)}function _c(t){return T("div",{className:`fc-${t}`})}const Dc=t=>T(mt.Consumer,null,e=>{let{dateEnv:n,options:r}=e,{date:i}=t,s=r.weekNumberFormat||t.defaultFormat,o=n.computeWeekNumber(i),a=n.format(i,s);return T(Qe,Object.assign({},t,{renderProps:{num:o,text:a,date:i},generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:fg,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount}))});function fg(t){return t.text}const _s=10;class ug extends me{constructor(){super(...arguments),this.state={titleId:fr()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&xt(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const n=il(e);this.rootEl.contains(n)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{e.key==="Escape"&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:n}=this.context,{props:r,state:i}=this,s=["fc-popover",e.getClass("popover")].concat(r.extraClassNames||[]);return qu(T("div",Object.assign({},r.extraAttrs,{id:r.id,className:s.join(" "),"aria-labelledby":i.titleId,ref:this.handleRootEl}),T("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},T("span",{className:"fc-popover-title",id:i.titleId},r.title),T("span",{className:"fc-popover-close "+e.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),T("div",{className:"fc-popover-body "+e.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:e}=this.context,{alignmentEl:n,alignGridTop:r}=this.props,{rootEl:i}=this,s=Ip(n);if(s){let o=i.getBoundingClientRect(),a=r?Fe(n,".fc-scrollgrid").getBoundingClientRect().top:s.top,c=e?s.right-o.width:s.left;a=Math.max(a,_s),c=Math.min(c,document.documentElement.clientWidth-_s-o.width),c=Math.max(c,_s);let l=i.offsetParent.getBoundingClientRect();Sn(i,{top:a-l.top,left:c-l.left})}}}class dg extends ft{constructor(){super(...arguments),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:e,dateEnv:n}=this.context,{props:r}=this,{startDate:i,todayRange:s,dateProfile:o}=r,a=n.format(i,e.dayPopoverFormat);return T(Cs,{elRef:this.handleRootEl,date:i,dateProfile:o,todayRange:s},(c,l,f)=>T(ug,{elRef:f.ref,id:r.id,title:a,extraClassNames:["fc-more-popover"].concat(f.className||[]),extraAttrs:f,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},ws(e)&&T(c,{elTag:"div",elClasses:["fc-more-popover-misc"]}),r.children))}queryHit(e,n,r,i){let{rootEl:s,props:o}=this;return e>=0&&e<r&&n>=0&&n<i?{dateProfile:o.dateProfile,dateSpan:Object.assign({allDay:!o.forceTimed,range:{start:o.startDate,end:o.endDate}},o.extraDateSpan),dayEl:s,rect:{left:0,top:0,right:r,bottom:i},layer:1}:null}}class Sc extends me{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:fr()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&xt(this.props.elRef,e)},this.handleClick=e=>{let{props:n,context:r}=this,{moreLinkClick:i}=r.options,s=Rc(n).start;function o(a){let{def:c,instance:l,range:f}=a.eventRange;return{event:new Ce(r,c,l),start:r.dateEnv.toDate(f.start),end:r.dateEnv.toDate(f.end),isStart:a.isStart,isEnd:a.isEnd}}typeof i=="function"&&(i=i({date:s,allDay:!!n.allDayDate,allSegs:n.allSegs.map(o),hiddenSegs:n.hiddenSegs.map(o),jsEvent:e,view:r.viewApi})),!i||i==="popover"?this.setState({isPopoverOpen:!0}):typeof i=="string"&&r.calendarApi.zoomTo(s,i)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:n}=this;return T(mt.Consumer,null,r=>{let{viewApi:i,options:s,calendarApi:o}=r,{moreLinkText:a}=s,{moreCnt:c}=e,l=Rc(e),f=typeof a=="function"?a.call(o,c):`+${c} ${a}`,d=Rn(s.moreLinkHint,[c],f),u={num:c,shortText:`+${c}`,text:f,view:i};return T(Ae,null,!!e.moreCnt&&T(Qe,{elTag:e.elTag||"a",elRef:this.handleLinkEl,elClasses:[...e.elClasses||[],"fc-more-link"],elStyle:e.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},e.elAttrs),ll(this.handleClick)),{title:d,"aria-expanded":n.isPopoverOpen,"aria-controls":n.isPopoverOpen?n.popoverId:""}),renderProps:u,generatorName:"moreLinkContent",customGenerator:s.moreLinkContent,defaultGenerator:e.defaultGenerator||hg,classNameGenerator:s.moreLinkClassNames,didMount:s.moreLinkDidMount,willUnmount:s.moreLinkWillUnmount},e.children),n.isPopoverOpen&&T(dg,{id:n.popoverId,startDate:l.start,endDate:l.end,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:e.extraDateSpan,parentEl:this.parentEl,alignmentEl:e.alignmentElRef?e.alignmentElRef.current:this.linkEl,alignGridTop:e.alignGridTop,forceTimed:e.forceTimed,onClose:this.handlePopoverClose},e.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=Fe(this.linkEl,".fc-view-harness"))}}function hg(t){return t.text}function Rc(t){if(t.allDayDate)return{start:t.allDayDate,end:Oe(t.allDayDate,1)};let{hiddenSegs:e}=t;return{start:Bc(e),end:gg(e)}}function Bc(t){return t.reduce(pg).eventRange.range.start}function pg(t,e){return t.eventRange.range.start<e.eventRange.range.start?t:e}function gg(t){return t.reduce(vg).eventRange.range.end}function vg(t,e){return t.eventRange.range.end>e.eventRange.range.end?t:e}class mg{constructor(){this.handlers=[]}set(e){this.currentValue=e;for(let n of this.handlers)n(e)}subscribe(e){this.handlers.push(e),this.currentValue!==void 0&&e(this.currentValue)}}class xg extends mg{constructor(){super(...arguments),this.map=new Map}handle(e){const{map:n}=this;let r=!1;e.isActive?(n.set(e.id,e),r=!0):n.has(e.id)&&(n.delete(e.id),r=!0),r&&this.set(n)}}const bg=[],Tc={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"},kc=Object.assign(Object.assign({},Tc),{buttonHints:{prev:"Previous $0",next:"Next $0",today(t,e){return e==="day"?"Today":`This ${t}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(t){return`Show ${t} more event${t===1?"":"s"}`}});function yg(t){let e=t.length>0?t[0].code:"en",n=bg.concat(t),r={en:kc};for(let i of n)r[i.code]=i;return{map:r,defaultCode:e}}function Ic(t,e){return typeof t=="object"&&!Array.isArray(t)?Nc(t.code,[t.code],t):Eg(t,e)}function Eg(t,e){let n=[].concat(t||[]),r=Ag(n,e)||kc;return Nc(t,n,r)}function Ag(t,e){for(let n=0;n<t.length;n+=1){let r=t[n].toLocaleLowerCase().split("-");for(let i=r.length;i>0;i-=1){let s=r.slice(0,i).join("-");if(e[s])return e[s]}}return null}function Nc(t,e,n){let r=Wi([Tc,n],["buttonText"]);delete r.code;let{week:i}=r;return delete r.week,{codeArg:t,codes:e,week:i,simpleNumberFormat:new Intl.NumberFormat(t),options:r}}function Et(t){return{id:jt(),name:t.name,premiumReleaseDate:t.premiumReleaseDate?new Date(t.premiumReleaseDate):void 0,deps:t.deps||[],reducers:t.reducers||[],isLoadingFuncs:t.isLoadingFuncs||[],contextInit:[].concat(t.contextInit||[]),eventRefiners:t.eventRefiners||{},eventDefMemberAdders:t.eventDefMemberAdders||[],eventSourceRefiners:t.eventSourceRefiners||{},isDraggableTransformers:t.isDraggableTransformers||[],eventDragMutationMassagers:t.eventDragMutationMassagers||[],eventDefMutationAppliers:t.eventDefMutationAppliers||[],dateSelectionTransformers:t.dateSelectionTransformers||[],datePointTransforms:t.datePointTransforms||[],dateSpanTransforms:t.dateSpanTransforms||[],views:t.views||{},viewPropsTransformers:t.viewPropsTransformers||[],isPropsValid:t.isPropsValid||null,externalDefTransforms:t.externalDefTransforms||[],viewContainerAppends:t.viewContainerAppends||[],eventDropTransformers:t.eventDropTransformers||[],componentInteractions:t.componentInteractions||[],calendarInteractions:t.calendarInteractions||[],themeClasses:t.themeClasses||{},eventSourceDefs:t.eventSourceDefs||[],cmdFormatter:t.cmdFormatter,recurringTypes:t.recurringTypes||[],namedTimeZonedImpl:t.namedTimeZonedImpl,initialView:t.initialView||"",elementDraggingImpl:t.elementDraggingImpl,optionChangeHandlers:t.optionChangeHandlers||{},scrollGridImpl:t.scrollGridImpl||null,listenerRefiners:t.listenerRefiners||{},optionRefiners:t.optionRefiners||{},propSetHandlers:t.propSetHandlers||{}}}function Cg(t,e){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(s){for(let o of s){const a=o.name,c=n[a];c===void 0?(n[a]=o.id,i(o.deps),r=_g(r,o)):c!==o.id&&console.warn(`Duplicate plugin '${a}'`)}}return t&&i(t),i(e),r}function wg(){let t=[],e=[],n;return(r,i)=>((!n||!Rt(r,t)||!Rt(i,e))&&(n=Cg(r,i)),t=r,e=i,n)}function _g(t,e){return{premiumReleaseDate:Dg(t.premiumReleaseDate,e.premiumReleaseDate),reducers:t.reducers.concat(e.reducers),isLoadingFuncs:t.isLoadingFuncs.concat(e.isLoadingFuncs),contextInit:t.contextInit.concat(e.contextInit),eventRefiners:Object.assign(Object.assign({},t.eventRefiners),e.eventRefiners),eventDefMemberAdders:t.eventDefMemberAdders.concat(e.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},t.eventSourceRefiners),e.eventSourceRefiners),isDraggableTransformers:t.isDraggableTransformers.concat(e.isDraggableTransformers),eventDragMutationMassagers:t.eventDragMutationMassagers.concat(e.eventDragMutationMassagers),eventDefMutationAppliers:t.eventDefMutationAppliers.concat(e.eventDefMutationAppliers),dateSelectionTransformers:t.dateSelectionTransformers.concat(e.dateSelectionTransformers),datePointTransforms:t.datePointTransforms.concat(e.datePointTransforms),dateSpanTransforms:t.dateSpanTransforms.concat(e.dateSpanTransforms),views:Object.assign(Object.assign({},t.views),e.views),viewPropsTransformers:t.viewPropsTransformers.concat(e.viewPropsTransformers),isPropsValid:e.isPropsValid||t.isPropsValid,externalDefTransforms:t.externalDefTransforms.concat(e.externalDefTransforms),viewContainerAppends:t.viewContainerAppends.concat(e.viewContainerAppends),eventDropTransformers:t.eventDropTransformers.concat(e.eventDropTransformers),calendarInteractions:t.calendarInteractions.concat(e.calendarInteractions),componentInteractions:t.componentInteractions.concat(e.componentInteractions),themeClasses:Object.assign(Object.assign({},t.themeClasses),e.themeClasses),eventSourceDefs:t.eventSourceDefs.concat(e.eventSourceDefs),cmdFormatter:e.cmdFormatter||t.cmdFormatter,recurringTypes:t.recurringTypes.concat(e.recurringTypes),namedTimeZonedImpl:e.namedTimeZonedImpl||t.namedTimeZonedImpl,initialView:t.initialView||e.initialView,elementDraggingImpl:t.elementDraggingImpl||e.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},t.optionChangeHandlers),e.optionChangeHandlers),scrollGridImpl:e.scrollGridImpl||t.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},t.listenerRefiners),e.listenerRefiners),optionRefiners:Object.assign(Object.assign({},t.optionRefiners),e.optionRefiners),propSetHandlers:Object.assign(Object.assign({},t.propSetHandlers),e.propSetHandlers)}}function Dg(t,e){return t===void 0?e:e===void 0?t:new Date(Math.max(t.valueOf(),e.valueOf()))}class Nt extends Tn{}Nt.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},Nt.prototype.baseIconClass="fc-icon",Nt.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"},Nt.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},Nt.prototype.iconOverrideOption="buttonIcons",Nt.prototype.iconOverrideCustomButtonOption="icon",Nt.prototype.iconOverridePrefix="fc-icon-";function Sg(t,e){let n={},r;for(r in t)Ds(r,n,t,e);for(r in e)Ds(r,n,t,e);return n}function Ds(t,e,n,r){if(e[t])return e[t];let i=Rg(t,e,n,r);return i&&(e[t]=i),i}function Rg(t,e,n,r){let i=n[t],s=r[t],o=f=>i&&i[f]!==null?i[f]:s&&s[f]!==null?s[f]:null,a=o("component"),c=o("superType"),l=null;if(c){if(c===t)throw new Error("Can't have a custom view type that references itself");l=Ds(c,e,n,r)}return!a&&l&&(a=l.component),a?{type:t,component:a,defaults:Object.assign(Object.assign({},l?l.defaults:{}),i?i.rawOptions:{}),overrides:Object.assign(Object.assign({},l?l.overrides:{}),s?s.rawOptions:{})}:null}function Mc(t){return vt(t,Bg)}function Bg(t){let e=typeof t=="function"?{component:t}:t,{component:n}=e;return e.content?n=Fc(e):n&&!(n.prototype instanceof me)&&(n=Fc(Object.assign(Object.assign({},e),{content:n}))),{superType:e.type,component:n,rawOptions:e}}function Fc(t){return e=>T(mt.Consumer,null,n=>T(Qe,{elTag:"div",elClasses:Tl(n.viewSpec),renderProps:Object.assign(Object.assign({},e),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,customGenerator:t.content,classNameGenerator:t.classNames,didMount:t.didMount,willUnmount:t.willUnmount}))}function Tg(t,e,n,r){let i=Mc(t),s=Mc(e.views),o=Sg(i,s);return vt(o,a=>kg(a,s,e,n,r))}function kg(t,e,n,r,i){let s=t.overrides.duration||t.defaults.duration||r.duration||n.duration,o=null,a="",c="",l={};if(s&&(o=Ig(s),o)){let u=Pi(o);a=u.unit,u.value===1&&(c=a,l=e[a]?e[a].rawOptions:{})}let f=u=>{let h=u.buttonText||{},g=t.defaults.buttonTextKey;return g!=null&&h[g]!=null?h[g]:h[t.type]!=null?h[t.type]:h[c]!=null?h[c]:null},d=u=>{let h=u.buttonHints||{},g=t.defaults.buttonTextKey;return g!=null&&h[g]!=null?h[g]:h[t.type]!=null?h[t.type]:h[c]!=null?h[c]:null};return{type:t.type,component:t.component,duration:o,durationUnit:a,singleUnit:c,optionDefaults:t.defaults,optionOverrides:Object.assign(Object.assign({},l),t.overrides),buttonTextOverride:f(r)||f(n)||t.overrides.buttonText,buttonTextDefault:f(i)||t.defaults.buttonText||f(Bn)||t.type,buttonTitleOverride:d(r)||d(n)||t.overrides.buttonHint,buttonTitleDefault:d(i)||t.defaults.buttonHint||d(Bn)}}let Oc={};function Ig(t){let e=JSON.stringify(t),n=Oc[e];return n===void 0&&(n=pe(t),Oc[e]=n),n}function Ng(t,e){switch(e.type){case"CHANGE_VIEW_TYPE":t=e.viewType}return t}function Mg(t,e){switch(e.type){case"SET_OPTION":return Object.assign(Object.assign({},t),{[e.optionName]:e.rawOptionValue});default:return t}}function Fg(t,e,n,r){let i;switch(e.type){case"CHANGE_VIEW_TYPE":return r.build(e.dateMarker||n);case"CHANGE_DATE":return r.build(e.dateMarker);case"PREV":if(i=r.buildPrev(t,n),i.isValid)return i;break;case"NEXT":if(i=r.buildNext(t,n),i.isValid)return i;break}return t}function Og(t,e,n){let r=e?e.activeRange:null;return Hc({},Wg(t,n),r,n)}function Pg(t,e,n,r){let i=n?n.activeRange:null;switch(e.type){case"ADD_EVENT_SOURCES":return Hc(t,e.sources,i,r);case"REMOVE_EVENT_SOURCE":return Lg(t,e.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?Lc(t,i,r):t;case"FETCH_EVENT_SOURCES":return Ss(t,e.sourceIds?wl(e.sourceIds):zc(t,r),i,e.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return Vg(t,e.sourceId,e.fetchId,e.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return t}}function Hg(t,e,n){let r=e?e.activeRange:null;return Ss(t,zc(t,n),r,!0,n)}function Pc(t){for(let e in t)if(t[e].isFetching)return!0;return!1}function Hc(t,e,n,r){let i={};for(let s of e)i[s.sourceId]=s;return n&&(i=Lc(i,n,r)),Object.assign(Object.assign({},t),i)}function Lg(t,e){return Yt(t,n=>n.sourceId!==e)}function Lc(t,e,n){return Ss(t,Yt(t,r=>zg(r,e,n)),e,!1,n)}function zg(t,e,n){return Uc(t,n)?!n.options.lazyFetching||!t.fetchRange||t.isFetching||e.start<t.fetchRange.start||e.end>t.fetchRange.end:!t.latestFetchId}function Ss(t,e,n,r,i){let s={};for(let o in t){let a=t[o];e[o]?s[o]=Ug(a,n,r,i):s[o]=a}return s}function Ug(t,e,n,r){let{options:i,calendarApi:s}=r,o=r.pluginHooks.eventSourceDefs[t.sourceDefId],a=jt();return o.fetch({eventSource:t,range:e,isRefetch:n,context:r},c=>{let{rawEvents:l}=c;i.eventSourceSuccess&&(l=i.eventSourceSuccess.call(s,l,c.response)||l),t.success&&(l=t.success.call(s,l,c.response)||l),r.dispatch({type:"RECEIVE_EVENTS",sourceId:t.sourceId,fetchId:a,fetchRange:e,rawEvents:l})},c=>{let l=!1;i.eventSourceFailure&&(i.eventSourceFailure.call(s,c),l=!0),t.failure&&(t.failure(c),l=!0),l||console.warn(c.message,c),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:t.sourceId,fetchId:a,fetchRange:e,error:c})}),Object.assign(Object.assign({},t),{isFetching:!0,latestFetchId:a})}function Vg(t,e,n,r){let i=t[e];return i&&n===i.latestFetchId?Object.assign(Object.assign({},t),{[e]:Object.assign(Object.assign({},i),{isFetching:!1,fetchRange:r})}):t}function zc(t,e){return Yt(t,n=>Uc(n,e))}function Wg(t,e){let n=Ul(e),r=[].concat(t.eventSources||[]),i=[];t.initialEvents&&r.unshift(t.initialEvents),t.events&&r.unshift(t.events);for(let s of r){let o=zl(s,e,n);o&&i.push(o)}return i}function Uc(t,e){return!e.pluginHooks.eventSourceDefs[t.sourceDefId].ignoreRange}function jg(t,e){switch(e.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return e.selection;default:return t}}function qg(t,e){switch(e.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return e.eventInstanceId;default:return t}}function $g(t,e){let n;switch(e.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=e.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function Gg(t,e){let n;switch(e.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=e.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function Yg(t,e,n,r,i){let s=t.headerToolbar?Vc(t.headerToolbar,t,e,n,r,i):null,o=t.footerToolbar?Vc(t.footerToolbar,t,e,n,r,i):null;return{header:s,footer:o}}function Vc(t,e,n,r,i,s){let o={},a=[],c=!1;for(let l in t){let f=t[l],d=Qg(f,e,n,r,i,s);o[l]=d.widgets,a.push(...d.viewsWithButtons),c=c||d.hasTitle}return{sectionWidgets:o,viewsWithButtons:a,hasTitle:c}}function Qg(t,e,n,r,i,s){let o=e.direction==="rtl",a=e.customButtons||{},c=n.buttonText||{},l=e.buttonText||{},f=n.buttonHints||{},d=e.buttonHints||{},u=t?t.split(" "):[],h=[],g=!1;return{widgets:u.map(x=>x.split(",").map(A=>{if(A==="title")return g=!0,{buttonName:A};let p,v,b,E,C,D;if(p=a[A])b=w=>{p.click&&p.click.call(w.target,w,w.target)},(E=r.getCustomButtonIconClass(p))||(E=r.getIconClass(A,o))||(C=p.text),D=p.hint||p.text;else if(v=i[A]){h.push(A),b=()=>{s.changeView(A)},(C=v.buttonTextOverride)||(E=r.getIconClass(A,o))||(C=v.buttonTextDefault);let w=v.buttonTextOverride||v.buttonTextDefault;D=Rn(v.buttonTitleOverride||v.buttonTitleDefault||e.viewHint,[w,A],w)}else if(s[A])if(b=()=>{s[A]()},(C=c[A])||(E=r.getIconClass(A,o))||(C=l[A]),A==="prevYear"||A==="nextYear"){let w=A==="prevYear"?"prev":"next";D=Rn(f[w]||d[w],[l.year||"year","year"],l[A])}else D=w=>Rn(f[A]||d[A],[l[w]||w,w],l[A]);return{buttonName:A,buttonClick:b,buttonIcon:E,buttonText:C,buttonHint:D}})),viewsWithButtons:h,hasTitle:g}}class Zg{constructor(e,n,r){this.type=e,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(e){return this.getCurrentData().options[e]}}const Xg=Et({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta(t){return Array.isArray(t.events)?t.events:null},fetch(t,e){e({rawEvents:t.eventSource.meta})}}]}),Kg=Et({name:"func-event-source",eventSourceDefs:[{parseMeta(t){return typeof t.events=="function"?t.events:null},fetch(t,e,n){const{dateEnv:r}=t.context,i=t.eventSource.meta;dp(i.bind(null,nc(t.range,r)),s=>e({rawEvents:s}),n)}}]}),Jg=Et({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:L,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta(t){return t.url&&(t.format==="json"||!t.format)?{url:t.url,format:"json",method:(t.method||"GET").toUpperCase(),extraParams:t.extraParams,startParam:t.startParam,endParam:t.endParam,timeZoneParam:t.timeZoneParam}:null},fetch(t,e,n){const{meta:r}=t.eventSource,i=ev(r,t.range,t.context);hp(r.method,r.url,i).then(([s,o])=>{e({rawEvents:s,response:o})},n)}}]});function ev(t,e,n){let{dateEnv:r,options:i}=n,s,o,a,c,l={};return s=t.startParam,s==null&&(s=i.startParam),o=t.endParam,o==null&&(o=i.endParam),a=t.timeZoneParam,a==null&&(a=i.timeZoneParam),typeof t.extraParams=="function"?c=t.extraParams():c=t.extraParams||{},Object.assign(l,c),l[s]=r.formatIso(e.start),l[o]=r.formatIso(e.end),r.timeZone!=="local"&&(l[a]=r.timeZone),l}const tv=Et({name:"simple-recurring-event",recurringTypes:[{parse(t,e){if(t.daysOfWeek||t.startTime||t.endTime||t.startRecur||t.endRecur){let n={daysOfWeek:t.daysOfWeek||null,startTime:t.startTime||null,endTime:t.endTime||null,startRecur:t.startRecur?e.createMarker(t.startRecur):null,endRecur:t.endRecur?e.createMarker(t.endRecur):null},r;return t.duration&&(r=t.duration),!r&&t.startTime&&t.endTime&&(r=Cd(t.endTime,t.startTime)),{allDayGuess:!t.startTime&&!t.endTime,duration:r,typeData:n}}return null},expand(t,e,n){let r=Zt(e,{start:t.startRecur,end:t.endRecur});return r?nv(t.daysOfWeek,t.startTime,r,n):[]}}],eventRefiners:{daysOfWeek:L,startTime:pe,endTime:pe,duration:pe,startRecur:L,endRecur:L}});function nv(t,e,n,r){let i=t?wl(t):null,s=Ee(n.start),o=n.end,a=[];for(;s<o;){let c;(!i||i[s.getUTCDay()])&&(e?c=r.add(s,e):c=s,a.push(c)),s=Oe(s,1)}return a}const rv=Et({name:"change-handler",optionChangeHandlers:{events(t,e){Wc([t],e)},eventSources:Wc}});function Wc(t,e){let n=ji(e.getCurrentData().eventSources);if(n.length===1&&t.length===1&&Array.isArray(n[0]._raw)&&Array.isArray(t[0])){e.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:t[0]});return}let r=[];for(let i of t){let s=!1;for(let o=0;o<n.length;o+=1)if(n[o]._raw===i){n.splice(o,1),s=!0;break}s||r.push(i)}for(let i of n)e.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:i.sourceId});for(let i of r)e.calendarApi.addEventSource(i)}function iv(t,e){e.emitter.trigger("datesSet",Object.assign(Object.assign({},nc(t.activeRange,e.dateEnv)),{view:e.viewApi}))}function sv(t,e){let{emitter:n}=e;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",Kt(t,e))}const ov=[Xg,Kg,Jg,tv,rv,Et({name:"misc",isLoadingFuncs:[t=>Pc(t.eventSources)],propSetHandlers:{dateProfile:iv,eventStore:sv}})];class av{constructor(e,n){this.runTaskOption=e,this.drainedOption=n,this.queue=[],this.delayedRunner=new ki(this.drain.bind(this))}request(e,n){this.queue.push(e),this.delayedRunner.request(n)}pause(e){this.delayedRunner.pause(e)}resume(e,n){this.delayedRunner.resume(e,n)}drain(){let{queue:e}=this;for(;e.length;){let n=[],r;for(;r=e.shift();)this.runTask(r),n.push(r);this.drained(n)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}}function lv(t,e,n){let r;return/^(year|month)$/.test(t.currentRangeUnit)?r=t.currentRange:r=t.activeRange,n.formatRange(r.start,r.end,_e(e.titleFormat||cv(t)),{isEndExclusive:t.isRangeAllDay,defaultSeparator:e.titleRangeSeparator})}function cv(t){let{currentRangeUnit:e}=t;if(e==="year")return{year:"numeric"};if(e==="month")return{year:"numeric",month:"long"};let n=hr(t.currentRange.start,t.currentRange.end);return n!==null&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class fv{constructor(e){this.computeCurrentViewData=oe(this._computeCurrentViewData),this.organizeRawLocales=oe(yg),this.buildLocale=oe(Ic),this.buildPluginHooks=wg(),this.buildDateEnv=oe(uv),this.buildTheme=oe(dv),this.parseToolbars=oe(Yg),this.buildViewSpecs=oe(Tg),this.buildDateProfileGenerator=pr(hv),this.buildViewApi=oe(pv),this.buildViewUiProps=pr(mv),this.buildEventUiBySource=oe(gv,ct),this.buildEventUiBases=oe(vv),this.parseContextBusinessHours=pr(xv),this.buildTitle=oe(lv),this.emitter=new Dr,this.actionRunner=new av(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=()=>this.data,this.dispatch=u=>{this.actionRunner.request(u)},this.props=e,this.actionRunner.pause();let n={},r=this.computeOptionsData(e.optionOverrides,n,e.calendarApi),i=r.calendarOptions.initialView||r.pluginHooks.initialView,s=this.computeCurrentViewData(i,r,e.optionOverrides,n);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(s.options);let o=Dh(r.calendarOptions,r.dateEnv),a=s.dateProfileGenerator.build(o);bt(a.activeRange,o)||(o=a.currentRange.start);let c={dateEnv:r.dateEnv,options:r.calendarOptions,pluginHooks:r.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let u of r.pluginHooks.contextInit)u(c);let l=Og(r.calendarOptions,a,c),f={dynamicOptionOverrides:n,currentViewType:i,currentDate:o,dateProfile:a,businessHours:this.parseContextBusinessHours(c),eventSources:l,eventUiBases:{},eventStore:Ze(),renderableEventStore:Ze(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(c).selectionConfig},d=Object.assign(Object.assign({},c),f);for(let u of r.pluginHooks.reducers)Object.assign(f,u(null,null,d));Rs(f,c)&&this.emitter.trigger("loading",!0),this.state=f,this.updateData(),this.actionRunner.resume()}resetOptions(e,n){let{props:r}=this;n===void 0?r.optionOverrides=e:(r.optionOverrides=Object.assign(Object.assign({},r.optionOverrides||{}),e),this.optionsForRefining.push(...n)),(n===void 0||n.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:n,state:r,emitter:i}=this,s=Mg(r.dynamicOptionOverrides,e),o=this.computeOptionsData(n.optionOverrides,s,n.calendarApi),a=Ng(r.currentViewType,e),c=this.computeCurrentViewData(a,o,n.optionOverrides,s);n.calendarApi.currentDataManager=this,i.setThisContext(n.calendarApi),i.setOptions(c.options);let l={dateEnv:o.dateEnv,options:o.calendarOptions,pluginHooks:o.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:i,getCurrentData:this.getCurrentData},{currentDate:f,dateProfile:d}=r;this.data&&this.data.dateProfileGenerator!==c.dateProfileGenerator&&(d=c.dateProfileGenerator.build(f)),f=_h(f,e),d=Fg(d,e,f,c.dateProfileGenerator),(e.type==="PREV"||e.type==="NEXT"||!bt(d.currentRange,f))&&(f=d.currentRange.start);let u=Pg(r.eventSources,e,d,l),h=Lh(r.eventStore,e,u,d,l),m=Pc(u)&&!c.options.progressiveEventRendering&&r.renderableEventStore||h,{eventUiSingleBase:x,selectionConfig:A}=this.buildViewUiProps(l),p=this.buildEventUiBySource(u),v=this.buildEventUiBases(m.defs,x,p),b={dynamicOptionOverrides:s,currentViewType:a,currentDate:f,dateProfile:d,eventSources:u,eventStore:h,renderableEventStore:m,selectionConfig:A,eventUiBases:v,businessHours:this.parseContextBusinessHours(l),dateSelection:jg(r.dateSelection,e),eventSelection:qg(r.eventSelection,e),eventDrag:$g(r.eventDrag,e),eventResize:Gg(r.eventResize,e)},E=Object.assign(Object.assign({},l),b);for(let w of o.pluginHooks.reducers)Object.assign(b,w(r,e,E));let C=Rs(r,l),D=Rs(b,l);!C&&D?i.trigger("loading",!0):C&&!D&&i.trigger("loading",!1),this.state=b,n.onAction&&n.onAction(e)}updateData(){let{props:e,state:n}=this,r=this.data,i=this.computeOptionsData(e.optionOverrides,n.dynamicOptionOverrides,e.calendarApi),s=this.computeCurrentViewData(n.currentViewType,i,e.optionOverrides,n.dynamicOptionOverrides),o=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(n.dateProfile,s.options,i.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},i),s),n),a=i.pluginHooks.optionChangeHandlers,c=r&&r.calendarOptions,l=i.calendarOptions;if(c&&c!==l){c.timeZone!==l.timeZone&&(n.eventSources=o.eventSources=Hg(o.eventSources,n.dateProfile,o),n.eventStore=o.eventStore=jl(o.eventStore,r.dateEnv,o.dateEnv),n.renderableEventStore=o.renderableEventStore=jl(o.renderableEventStore,r.dateEnv,o.dateEnv));for(let f in a)(this.optionsForHandling.indexOf(f)!==-1||c[f]!==l[f])&&a[f](l[f],o)}this.optionsForHandling=[],e.onData&&e.onData(o)}computeOptionsData(e,n,r){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&n===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:i,pluginHooks:s,localeDefaults:o,availableLocaleData:a,extra:c}=this.processRawCalendarOptions(e,n);jc(c);let l=this.buildDateEnv(i.timeZone,i.locale,i.weekNumberCalculation,i.firstDay,i.weekText,s,a,i.defaultRangeSeparator),f=this.buildViewSpecs(s.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,o),d=this.buildTheme(i,s),u=this.parseToolbars(i,this.stableOptionOverrides,d,f,r);return this.stableCalendarOptionsData={calendarOptions:i,pluginHooks:s,dateEnv:l,viewSpecs:f,theme:d,toolbarConfig:u,localeDefaults:o,availableRawLocales:a.map}}processRawCalendarOptions(e,n){let{locales:r,locale:i}=Ui([Bn,e,n]),s=this.organizeRawLocales(r),o=s.map,a=this.buildLocale(i||s.defaultCode,o).options,c=this.buildPluginHooks(e.plugins||[],ov),l=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},El),Al),Cl),c.listenerRefiners),c.optionRefiners),f={},d=Ui([Bn,a,e,n]),u={},h=this.currentCalendarOptionsInput,g=this.currentCalendarOptionsRefined,m=!1;for(let x in d)this.optionsForRefining.indexOf(x)===-1&&(d[x]===h[x]||$t[x]&&x in h&&$t[x](h[x],d[x]))?u[x]=g[x]:l[x]?(u[x]=l[x](d[x]),m=!0):f[x]=h[x];return m&&(this.currentCalendarOptionsInput=d,this.currentCalendarOptionsRefined=u,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=n),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:c,availableLocaleData:s,localeDefaults:a,extra:f}}_computeCurrentViewData(e,n,r,i){let s=n.viewSpecs[e];if(!s)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:o,extra:a}=this.processRawViewOptions(s,n.pluginHooks,n.localeDefaults,r,i);jc(a);let c=this.buildDateProfileGenerator({dateProfileGeneratorClass:s.optionDefaults.dateProfileGeneratorClass,duration:s.duration,durationUnit:s.durationUnit,usesMinMaxTime:s.optionDefaults.usesMinMaxTime,dateEnv:n.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:o.slotMinTime,slotMaxTime:o.slotMaxTime,showNonCurrentDates:o.showNonCurrentDates,dayCount:o.dayCount,dateAlignment:o.dateAlignment,dateIncrement:o.dateIncrement,hiddenDays:o.hiddenDays,weekends:o.weekends,nowInput:o.now,validRangeInput:o.validRange,visibleRangeInput:o.visibleRange,fixedWeekCount:o.fixedWeekCount}),l=this.buildViewApi(e,this.getCurrentData,n.dateEnv);return{viewSpec:s,options:o,dateProfileGenerator:c,viewApi:l}}processRawViewOptions(e,n,r,i,s){let o=Ui([Bn,e.optionDefaults,r,i,e.optionOverrides,s]),a=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},El),Al),Cl),nh),n.listenerRefiners),n.optionRefiners),c={},l=this.currentViewOptionsInput,f=this.currentViewOptionsRefined,d=!1,u={};for(let h in o)o[h]===l[h]||$t[h]&&$t[h](o[h],l[h])?c[h]=f[h]:(o[h]===this.currentCalendarOptionsInput[h]||$t[h]&&$t[h](o[h],this.currentCalendarOptionsInput[h])?h in this.currentCalendarOptionsRefined&&(c[h]=this.currentCalendarOptionsRefined[h]):a[h]?c[h]=a[h](o[h]):u[h]=o[h],d=!0);return d&&(this.currentViewOptionsInput=o,this.currentViewOptionsRefined=c),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:u}}}function uv(t,e,n,r,i,s,o,a){let c=Ic(e||o.defaultCode,o.map);return new dh({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:s.namedTimeZonedImpl,locale:c,weekNumberCalculation:n,firstDay:r,weekText:i,cmdFormatter:s.cmdFormatter,defaultSeparator:a})}function dv(t,e){let n=e.themeClasses[t.themeSystem]||Nt;return new n(t)}function hv(t){let e=t.dateProfileGeneratorClass||Ml;return new e(t)}function pv(t,e,n){return new Zg(t,e,n)}function gv(t){return vt(t,e=>e.ui)}function vv(t,e,n){let r={"":e};for(let i in t){let s=t[i];s.sourceId&&n[s.sourceId]&&(r[i]=n[s.sourceId])}return r}function mv(t){let{options:e}=t;return{eventUiSingleBase:_r({display:e.eventDisplay,editable:e.editable,startEditable:e.eventStartEditable,durationEditable:e.eventDurationEditable,constraint:e.eventConstraint,overlap:typeof e.eventOverlap=="boolean"?e.eventOverlap:void 0,allow:e.eventAllow,backgroundColor:e.eventBackgroundColor,borderColor:e.eventBorderColor,textColor:e.eventTextColor,color:e.eventColor},t),selectionConfig:_r({constraint:e.selectConstraint,overlap:typeof e.selectOverlap=="boolean"?e.selectOverlap:void 0,allow:e.selectAllow},t)}}function Rs(t,e){for(let n of e.pluginHooks.isLoadingFuncs)if(n(t))return!0;return!1}function xv(t){return Yh(t.options.businessHours,t)}function jc(t,e){for(let n in t)console.warn(`Unknown option '${n}'`+(e?` for view '${e}'`:""))}class bv extends me{render(){let e=this.props.widgetGroups.map(n=>this.renderWidgetGroup(n));return T("div",{className:"fc-toolbar-chunk"},...e)}renderWidgetGroup(e){let{props:n}=this,{theme:r}=this.context,i=[],s=!0;for(let o of e){let{buttonName:a,buttonClick:c,buttonText:l,buttonIcon:f,buttonHint:d}=o;if(a==="title")s=!1,i.push(T("h2",{className:"fc-toolbar-title",id:n.titleId},n.title));else{let u=a===n.activeButton,h=!n.isTodayEnabled&&a==="today"||!n.isPrevEnabled&&a==="prev"||!n.isNextEnabled&&a==="next",g=[`fc-${a}-button`,r.getClass("button")];u&&g.push(r.getClass("buttonActive")),i.push(T("button",{type:"button",title:typeof d=="function"?d(n.navUnit):d,disabled:h,"aria-pressed":u,className:g.join(" "),onClick:c},l||(f?T("span",{className:f,role:"img"}):"")))}}if(i.length>1){let o=s&&r.getClass("buttonGroup")||"";return T("div",{className:o},...i)}return i[0]}}class qc extends me{render(){let{model:e,extraClassName:n}=this.props,r=!1,i,s,o=e.sectionWidgets,a=o.center;return o.left?(r=!0,i=o.left):i=o.start,o.right?(r=!0,s=o.right):s=o.end,T("div",{className:[n||"","fc-toolbar",r?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",i||[]),this.renderSection("center",a||[]),this.renderSection("end",s||[]))}renderSection(e,n){let{props:r}=this;return T(bv,{key:e,widgetGroups:n,title:r.title,navUnit:r.navUnit,activeButton:r.activeButton,isTodayEnabled:r.isTodayEnabled,isPrevEnabled:r.isPrevEnabled,isNextEnabled:r.isNextEnabled,titleId:r.titleId})}}class yv extends me{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,xt(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:n}=this,{aspectRatio:r}=e,i=["fc-view-harness",r||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],s="",o="";return r?n.availableWidth!==null?s=n.availableWidth/r:o=`${1/r*100}%`:s=e.height||"",T("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:i.join(" "),style:{height:s,paddingBottom:o}},e.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class Ev extends hn{constructor(e){super(e),this.handleSegClick=(n,r)=>{let{component:i}=this,{context:s}=i,o=dn(r);if(o&&i.isValidSegDownEl(n.target)){let a=Fe(n.target,".fc-event-forced-url"),c=a?a.querySelector("a[href]").href:"";s.emitter.trigger("eventClick",{el:r,event:new Ce(i.context,o.eventRange.def,o.eventRange.instance),jsEvent:n,view:s.viewApi}),c&&!n.defaultPrevented&&(window.location.href=c)}},this.destroy=ol(e.el,"click",".fc-event",this.handleSegClick)}}class Av extends hn{constructor(e){super(e),this.handleEventElRemove=n=>{n===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(n,r)=>{dn(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=ld(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,n,r){let{component:i}=this,{context:s}=i,o=dn(r);(!n||i.isValidSegDownEl(n.target))&&s.emitter.trigger(e,{el:r,event:new Ce(s,o.eventRange.def,o.eventRange.instance),jsEvent:n,view:s.viewApi})}}class Cv extends Qt{constructor(){super(...arguments),this.buildViewContext=oe(gh),this.buildViewPropTransformers=oe(_v),this.buildToolbarProps=oe(wv),this.headerRef=Le(),this.footerRef=Le(),this.interactionsStore={},this.state={viewLabelId:fr()},this.registerInteractiveComponent=(e,n)=>{let r=vp(e,n),o=[Ev,Av].concat(this.props.pluginHooks.componentInteractions).map(a=>new a(r));this.interactionsStore[e.uid]=o,os[e.uid]=r},this.unregisterInteractiveComponent=e=>{let n=this.interactionsStore[e.uid];if(n){for(let r of n)r.destroy();delete this.interactionsStore[e.uid]}delete os[e.uid]},this.resizeRunner=new ki(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=e=>{let{options:n}=this.props;n.handleWindowResize&&e.target===window&&this.resizeRunner.request(n.windowResizeDelay)}}render(){let{props:e}=this,{toolbarConfig:n,options:r}=e,i=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,kn(e.options.now,e.dateEnv),e.viewTitle),s=!1,o="",a;e.isHeightAuto||e.forPrint?o="":r.height!=null?s=!0:r.contentHeight!=null?o=r.contentHeight:a=Math.max(r.aspectRatio,.5);let c=this.buildViewContext(e.viewSpec,e.viewApi,e.options,e.dateProfileGenerator,e.dateEnv,e.theme,e.pluginHooks,e.dispatch,e.getCurrentData,e.emitter,e.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),l=n.header&&n.header.hasTitle?this.state.viewLabelId:"";return T(mt.Provider,{value:c},n.header&&T(qc,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:l},i)),T(yv,{liquid:s,height:o,aspectRatio:a,labeledById:l},this.renderView(e),this.buildAppendContent()),n.footer&&T(qc,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},i)))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(r=>new r(e)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:n}=e.pluginHooks;for(let r in n)n[r](e[r],e)}componentDidUpdate(e){let{props:n}=this,{propSetHandlers:r}=n.pluginHooks;for(let i in r)n[i]!==e[i]&&r[i](n[i],n)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this,n=e.pluginHooks.viewContainerAppends.map(r=>r(e));return T(Ae,{},...n)}renderView(e){let{pluginHooks:n}=e,{viewSpec:r}=e,i={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},s=this.buildViewPropTransformers(n.viewPropsTransformers);for(let a of s)Object.assign(i,a.transform(i,e));let o=r.component;return T(o,Object.assign({},i))}}function wv(t,e,n,r,i,s){let o=n.build(i,void 0,!1),a=n.buildPrev(e,r,!1),c=n.buildNext(e,r,!1);return{title:s,activeButton:t.type,navUnit:t.singleUnit,isTodayEnabled:o.isValid&&!bt(e.currentRange,i),isPrevEnabled:a.isValid,isNextEnabled:c.isValid}}function _v(t){return t.map(e=>new e)}class Dv extends mp{constructor(e,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;Dl(()=>{Dn(T(gp,{options:r.calendarOptions,theme:r.theme,emitter:r.emitter},(i,s,o,a)=>(this.setClassNames(i),this.setHeight(s),T(Bl.Provider,{value:this.customContentRenderId},T(Cv,Object.assign({isHeightAuto:o,forPrint:a},r))))),this.el)})}else this.isRendered&&(this.isRendered=!1,Dn(null,this.el),this.setClassNames([]),this.setHeight(""))},Ju(e),this.el=e,this.renderRunner=new ki(this.handleRenderRequest),new fv({optionOverrides:n,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){Dl(()=>{super.updateSize()})}batchRendering(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(e,n){this.currentDataManager.resetOptions(e,n)}setClassNames(e){if(!Rt(e,this.currentClassNames)){let{classList:n}=this.el;for(let r of this.currentClassNames)n.remove(r);for(let r of e)n.add(r);this.currentClassNames=e}}setHeight(e){rl(this.el,"height",e)}}const Sv={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0},Rv=S.defineComponent({props:{options:Object},data(){return{renderId:0,customRenderingMap:new Map}},methods:{getApi(){return this.calendar},buildOptions(t){return{...t,customRenderingMetaMap:kv(this.$slots),handleCustomRendering:this.handleCustomRendering}}},render(){const t=[];for(const e of this.customRenderingMap.values())t.push(S.h(Bv,{key:e.id,customRendering:e}));return S.h("div",{attrs:{"data-fc-render-id":this.renderId}},S.h(S.Fragment,t))},mounted(){const t=new xg;this.handleCustomRendering=t.handle.bind(t);const e=this.buildOptions(this.options),n=new Dv(this.$el,e);this.calendar=n,n.render(),t.subscribe(r=>{this.customRenderingMap=r,this.renderId++,this.needCustomRenderingResize=!0})},beforeUpdate(){this.getApi().resumeRendering()},updated(){this.needCustomRenderingResize&&(this.needCustomRenderingResize=!1,this.getApi().updateSize())},beforeUnmount(){this.getApi().destroy()},watch:Tv()}),Bv=S.defineComponent({props:{customRendering:Object},render(){const t=this.customRendering,e=typeof t.generatorMeta=="function"?t.generatorMeta(t.renderProps):t.generatorMeta;return S.h(S.Teleport,{to:t.containerEl},e)}});function hE(t){return t}function Tv(){let t={options:{deep:!0,handler(e){let n=this.getApi();n.pauseRendering();let r=this.buildOptions(e);n.resetOptions(r),this.renderId++}}};for(let e in Sv)t[`options.${e}`]={deep:!0,handler(n){if(n!==void 0){let r=this.getApi();r.pauseRendering(),r.resetOptions({[e]:n},[e]),this.renderId++}}};return t}function kv(t){const e={};for(const n in t)e[Iv(n)]=t[n];return e}function Iv(t){return t.split("-").map((e,n)=>n?Nv(e):e).join("")}function Nv(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Mv={code:"zh-cn",week:{dow:1,doy:4},buttonText:{prev:"上月",next:"下月",today:"今天",year:"年",month:"月",week:"周",day:"日",list:"日程"},weekText:"周",allDayText:"全天",moreLinkText(t){return"另外 "+t+" 个"},noEventsText:"没有事件显示"};class Fv extends ft{constructor(){super(...arguments),this.headerElRef=Le()}renderSimpleLayout(e,n){let{props:r,context:i}=this,s=[],o=Ir(i.options);return e&&s.push({type:"header",key:"header",isSticky:o,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),s.push({type:"body",key:"body",liquid:!0,chunk:{content:n}}),T(yr,{elClasses:["fc-daygrid"],viewSpec:i.viewSpec},T(ys,{liquid:!r.isHeightAuto&&!r.forPrint,collapsibleWidth:r.forPrint,cols:[],sections:s}))}renderHScrollLayout(e,n,r,i){let s=this.context.pluginHooks.scrollGridImpl;if(!s)throw new Error("No ScrollGrid implementation");let{props:o,context:a}=this,c=!o.forPrint&&Ir(a.options),l=!o.forPrint&&Ac(a.options),f=[];return e&&f.push({type:"header",key:"header",isSticky:c,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),f.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:n}]}),l&&f.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:bs}]}),T(yr,{elClasses:["fc-daygrid"],viewSpec:a.viewSpec},T(s,{liquid:!o.isHeightAuto&&!o.forPrint,forPrint:o.forPrint,collapsibleWidth:o.forPrint,colGroups:[{cols:[{span:r,minWidth:i}]}],sections:f}))}}function Nr(t,e){let n=[];for(let r=0;r<e;r+=1)n[r]=[];for(let r of t)n[r.row].push(r);return n}function Mr(t,e){let n=[];for(let r=0;r<e;r+=1)n[r]=[];for(let r of t)n[r.firstCol].push(r);return n}function $c(t,e){let n=[];if(t){for(let r=0;r<e;r+=1)n[r]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(let r of t.segs)n[r.row].segs.push(r)}else for(let r=0;r<e;r+=1)n[r]=null;return n}const Gc=_e({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function Yc(t){let{display:e}=t.eventRange.ui;return e==="list-item"||e==="auto"&&!t.eventRange.def.allDay&&t.firstCol===t.lastCol&&t.isStart&&t.isEnd}class Qc extends me{render(){let{props:e}=this;return T(Cc,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:Gc,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}}class Zc extends me{render(){let{props:e,context:n}=this,{options:r}=n,{seg:i}=e,s=r.eventTimeFormat||Gc,o=Jl(i,s,n,!0,e.defaultDisplayEventEnd);return T(Es,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:tc(e.seg,n),defaultGenerator:Ov,timeText:o,isResizing:!1,isDateSelecting:!1}))}}function Ov(t){return T(Ae,null,T("div",{className:"fc-daygrid-event-dot",style:{borderColor:t.borderColor||t.backgroundColor}}),t.timeText&&T("div",{className:"fc-event-time"},t.timeText),T("div",{className:"fc-event-title"},t.event.title||T(Ae,null," ")))}class Pv extends me{constructor(){super(...arguments),this.compileSegs=oe(Hv)}render(){let{props:e}=this,{allSegs:n,invisibleSegs:r}=this.compileSegs(e.singlePlacements);return T(Sc,{elClasses:["fc-daygrid-more-link"],dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:n,hiddenSegs:r,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:()=>{let i=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return T(Ae,null,n.map(s=>{let o=s.eventRange.instance.instanceId;return T("div",{className:"fc-daygrid-event-harness",key:o,style:{visibility:i[o]?"hidden":""}},Yc(s)?T(Zc,Object.assign({seg:s,isDragging:!1,isSelected:o===e.eventSelection,defaultDisplayEventEnd:!1},It(s,e.todayRange))):T(Qc,Object.assign({seg:s,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:o===e.eventSelection,defaultDisplayEventEnd:!1},It(s,e.todayRange))))}))}})}}function Hv(t){let e=[],n=[];for(let r of t)e.push(r.seg),r.isVisible||n.push(r.seg);return{allSegs:e,invisibleSegs:n}}const Lv=_e({week:"narrow"});class zv extends ft{constructor(){super(...arguments),this.rootElRef=Le(),this.state={dayNumberId:fr()},this.handleRootEl=e=>{xt(this.rootElRef,e),xt(this.props.elRef,e)}}render(){let{context:e,props:n,state:r,rootElRef:i}=this,{options:s,dateEnv:o}=e,{date:a,dateProfile:c}=n;const l=n.showDayNumber&&Vv(a,c.currentRange,o);return T(Cs,{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:Uv,date:a,dateProfile:c,todayRange:n.todayRange,showDayNumber:n.showDayNumber,isMonthStart:l,extraRenderProps:n.extraRenderProps},(f,d)=>T("div",{ref:n.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:n.minHeight}},n.showWeekNumber&&T(Dc,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:Rr(e,a,"week"),date:a,defaultFormat:Lv}),!d.isDisabled&&(n.showDayNumber||ws(s)||n.forceDayTop)?T("div",{className:"fc-daygrid-day-top"},T(f,{elTag:"a",elClasses:["fc-daygrid-day-number",l&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},Rr(e,a)),{id:r.dayNumberId})})):n.showDayNumber?T("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},T("a",{className:"fc-daygrid-day-number"}," ")):void 0,T("div",{className:"fc-daygrid-day-events",ref:n.fgContentElRef},n.fgContent,T("div",{className:"fc-daygrid-day-bottom",style:{marginTop:n.moreMarginTop}},T(Pv,{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}))),T("div",{className:"fc-daygrid-day-bg"},n.bgContent)))}}function Uv(t){return t.dayNumberText||T(Ae,null," ")}function Vv(t,e,n){const{start:r,end:i}=e,s=Bt(i,-1),o=n.getYear(r),a=n.getMonth(r),c=n.getYear(s),l=n.getMonth(s);return!(o===c&&a===l)&&(t.valueOf()===r.valueOf()||n.getDay(t)===1&&t.valueOf()<i.valueOf())}function Xc(t){return t.eventRange.instance.instanceId+":"+t.firstCol}function Kc(t){return Xc(t)+":"+t.lastCol}function Wv(t,e,n,r,i,s,o){let a=new $v(A=>{let p=t[A.index].eventRange.instance.instanceId+":"+A.span.start+":"+(A.span.end-1);return i[p]});a.allowReslicing=!0,a.strictOrder=r,e===!0||n===!0?(a.maxCoord=s,a.hiddenConsumes=!0):typeof e=="number"?a.maxStackCnt=e:typeof n=="number"&&(a.maxStackCnt=n,a.hiddenConsumes=!0);let c=[],l=[];for(let A=0;A<t.length;A+=1){let p=t[A],v=Kc(p);i[v]!=null?c.push({index:A,span:{start:p.firstCol,end:p.lastCol+1}}):l.push(p)}let f=a.addSegs(c),d=a.toRects(),{singleColPlacements:u,multiColPlacements:h,leftoverMargins:g}=jv(d,t,o),m=[],x=[];for(let A of l){h[A.firstCol].push({seg:A,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let p=A.firstCol;p<=A.lastCol;p+=1)u[p].push({seg:gn(A,p,p+1,o),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let A=0;A<o.length;A+=1)m.push(0);for(let A of f){let p=t[A.index],v=A.span;h[v.start].push({seg:gn(p,v.start,v.end,o),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let b=v.start;b<v.end;b+=1)m[b]+=1,u[b].push({seg:gn(p,b,b+1,o),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let A=0;A<o.length;A+=1)x.push(g[A]);return{singleColPlacements:u,multiColPlacements:h,moreCnts:m,moreMarginTops:x}}function jv(t,e,n){let r=qv(t,n.length),i=[],s=[],o=[];for(let a=0;a<n.length;a+=1){let c=r[a],l=[],f=0,d=0;for(let h of c){let g=e[h.index];l.push({seg:gn(g,a,a+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:h.levelCoord,marginTop:h.levelCoord-f}),f=h.levelCoord+h.thickness}let u=[];f=0,d=0;for(let h of c){let g=e[h.index],m=h.span.end-h.span.start>1,x=h.span.start===a;d+=h.levelCoord-f,f=h.levelCoord+h.thickness,m?(d+=h.thickness,x&&u.push({seg:gn(g,h.span.start,h.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:h.levelCoord,marginTop:0})):x&&(u.push({seg:gn(g,h.span.start,h.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:h.levelCoord,marginTop:d}),d=0)}i.push(l),s.push(u),o.push(d)}return{singleColPlacements:i,multiColPlacements:s,leftoverMargins:o}}function qv(t,e){let n=[];for(let r=0;r<e;r+=1)n.push([]);for(let r of t)for(let i=r.span.start;i<r.span.end;i+=1)n[i].push(r);return n}function gn(t,e,n,r){if(t.firstCol===e&&t.lastCol===n-1)return t;let i=t.eventRange,s=i.range,o=Zt(s,{start:r[e].date,end:Oe(r[n-1].date,1)});return Object.assign(Object.assign({},t),{firstCol:e,lastCol:n-1,eventRange:{def:i.def,ui:Object.assign(Object.assign({},i.ui),{durationEditable:!1}),instance:i.instance,range:o},isStart:t.isStart&&o.start.valueOf()===s.start.valueOf(),isEnd:t.isEnd&&o.end.valueOf()===s.end.valueOf()})}class $v extends fc{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){const n=super.addSegs(e),{entriesByLevel:r}=this,i=s=>!this.forceHidden[Jt(s)];for(let s=0;s<r.length;s+=1)r[s]=r[s].filter(i);return n}handleInvalidInsertion(e,n,r){const{entriesByLevel:i,forceHidden:s}=this,{touchingEntry:o,touchingLevel:a,touchingLateral:c}=e;if(this.hiddenConsumes&&o){const l=Jt(o);if(!s[l])if(this.allowReslicing){const f=Object.assign(Object.assign({},o),{span:ps(o.span,n.span)}),d=Jt(f);s[d]=!0,i[a][c]=f,this.splitEntry(o,n,r)}else s[l]=!0,r.push(o)}return super.handleInvalidInsertion(e,n,r)}}class Jc extends ft{constructor(){super(...arguments),this.cellElRefs=new yt,this.frameElRefs=new yt,this.fgElRefs=new yt,this.segHarnessRefs=new yt,this.rootElRef=Le(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=e=>{e&&this.updateSizing(!0)}}render(){let{props:e,state:n,context:r}=this,{options:i}=r,s=e.cells.length,o=Mr(e.businessHourSegs,s),a=Mr(e.bgEventSegs,s),c=Mr(this.getHighlightSegs(),s),l=Mr(this.getMirrorSegs(),s),{singleColPlacements:f,multiColPlacements:d,moreCnts:u,moreMarginTops:h}=Wv(Kl(e.fgEventSegs,i.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,i.eventOrderStrict,n.segHeights,n.maxContentHeight,e.cells),g=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return T("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map((m,x)=>{let A=this.renderFgSegs(x,e.forPrint?f[x]:d[x],e.todayRange,g),p=this.renderFgSegs(x,Gv(l[x],d),e.todayRange,{},!!e.eventDrag,!!e.eventResize,!1);return T(zv,{key:m.key,elRef:this.cellElRefs.createRef(m.key),innerElRef:this.frameElRefs.createRef(m.key),dateProfile:e.dateProfile,date:m.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&x===0,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:m.extraRenderProps,extraDataAttrs:m.extraDataAttrs,extraClassNames:m.extraClassNames,extraDateSpan:m.extraDateSpan,moreCnt:u[x],moreMarginTop:h[x],singlePlacements:f[x],fgContentElRef:this.fgElRefs.createRef(m.key),fgContent:T(Ae,null,T(Ae,null,A),T(Ae,null,p)),bgContent:T(Ae,null,this.renderFillSegs(c[x],"highlight"),this.renderFillSegs(o[x],"non-business"),this.renderFillSegs(a[x],"bg-event")),minHeight:e.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,n){let r=this.props;this.updateSizing(!ct(e,r))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:e}=this;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs}getMirrorSegs(){let{props:e}=this;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}renderFgSegs(e,n,r,i,s,o,a){let{context:c}=this,{eventSelection:l}=this.props,{framePositions:f}=this.state,d=this.props.cells.length===1,u=s||o||a,h=[];if(f)for(let g of n){let{seg:m}=g,{instanceId:x}=m.eventRange.instance,A=g.isVisible&&!i[x],p=g.isAbsolute,v="",b="";p&&(c.isRtl?(b=0,v=f.lefts[m.lastCol]-f.lefts[m.firstCol]):(v=0,b=f.rights[m.firstCol]-f.rights[m.lastCol])),h.push(T("div",{className:"fc-daygrid-event-harness"+(p?" fc-daygrid-event-harness-abs":""),key:Xc(m),ref:u?null:this.segHarnessRefs.createRef(Kc(m)),style:{visibility:A?"":"hidden",marginTop:p?"":g.marginTop,top:p?g.absoluteTop:"",left:v,right:b}},Yc(m)?T(Zc,Object.assign({seg:m,isDragging:s,isSelected:x===l,defaultDisplayEventEnd:d},It(m,r))):T(Qc,Object.assign({seg:m,isDragging:s,isResizing:o,isDateSelecting:a,isSelected:x===l,defaultDisplayEventEnd:d},It(m,r)))))}return h}renderFillSegs(e,n){let{isRtl:r}=this.context,{todayRange:i}=this.props,{framePositions:s}=this.state,o=[];if(s)for(let a of e){let c=r?{right:0,left:s.lefts[a.lastCol]-s.lefts[a.firstCol]}:{left:0,right:s.rights[a.firstCol]-s.rights[a.lastCol]};o.push(T("div",{key:ec(a.eventRange),className:"fc-daygrid-bg-harness",style:c},n==="bg-event"?T(wc,Object.assign({seg:a},It(a,i))):_c(n)))}return T(Ae,{},...o)}updateSizing(e){let{props:n,state:r,frameElRefs:i}=this;if(!n.forPrint&&n.clientWidth!==null){if(e){let c=n.cells.map(l=>i.currentMap[l.key]);if(c.length){let l=this.rootElRef.current,f=new pn(l,c,!0,!1);(!r.framePositions||!r.framePositions.similarTo(f))&&this.setState({framePositions:new pn(l,c,!0,!1)})}}const s=this.state.segHeights,o=this.querySegHeights(),a=n.dayMaxEvents===!0||n.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},s),o),maxContentHeight:a?this.computeMaxContentHeight():null})}}querySegHeights(){let e=this.segHarnessRefs.currentMap,n={};for(let r in e){let i=Math.round(e[r].getBoundingClientRect().height);n[r]=Math.max(n[r]||0,i)}return n}computeMaxContentHeight(){let e=this.props.cells[0].key,n=this.cellElRefs.currentMap[e],r=this.fgElRefs.currentMap[e];return n.getBoundingClientRect().bottom-r.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map(n=>e[n.key])}}Jc.addStateEquality({segHeights:ct});function Gv(t,e){if(!t.length)return[];let n=Yv(e);return t.map(r=>({seg:r,isVisible:!0,isAbsolute:!0,absoluteTop:n[r.eventRange.instance.instanceId],marginTop:0}))}function Yv(t){let e={};for(let n of t)for(let r of n)e[r.seg.eventRange.instance.instanceId]=r.absoluteTop;return e}class Qv extends ft{constructor(){super(...arguments),this.splitBusinessHourSegs=oe(Nr),this.splitBgEventSegs=oe(Nr),this.splitFgEventSegs=oe(Nr),this.splitDateSelectionSegs=oe(Nr),this.splitEventDrag=oe($c),this.splitEventResize=oe($c),this.rowRefs=new yt}render(){let{props:e,context:n}=this,r=e.cells.length,i=this.splitBusinessHourSegs(e.businessHourSegs,r),s=this.splitBgEventSegs(e.bgEventSegs,r),o=this.splitFgEventSegs(e.fgEventSegs,r),a=this.splitDateSelectionSegs(e.dateSelectionSegs,r),c=this.splitEventDrag(e.eventDrag,r),l=this.splitEventResize(e.eventResize,r),f=r>=7&&e.clientWidth?e.clientWidth/n.options.aspectRatio/6:null;return T(Nn,{unit:"day"},(d,u)=>T(Ae,null,e.cells.map((h,g)=>T(Jc,{ref:this.rowRefs.createRef(g),key:h.length?h[0].date.toISOString():g,showDayNumbers:r>1,showWeekNumbers:e.showWeekNumbers,todayRange:u,dateProfile:e.dateProfile,cells:h,renderIntro:e.renderRowIntro,businessHourSegs:i[g],eventSelection:e.eventSelection,bgEventSegs:s[g].filter(Zv),fgEventSegs:o[g],dateSelectionSegs:a[g],eventDrag:c[g],eventResize:l[g],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:f,forPrint:e.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){const e=this.rowRefs.currentMap[0].getCellEls()[0],n=e?e.closest(".fc-daygrid-body"):null;n&&(this.rootEl=n,this.context.registerInteractiveComponent(this,{el:n,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new pn(this.rootEl,this.rowRefs.collect().map(e=>e.getCellEls()[0]),!1,!0),this.colPositions=new pn(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,n){let{colPositions:r,rowPositions:i}=this,s=r.leftToIndex(e),o=i.topToIndex(n);if(o!=null&&s!=null){let a=this.props.cells[o][s];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(o,s),allDay:!0},a.extraDateSpan),dayEl:this.getCellEl(o,s),rect:{left:r.lefts[s],right:r.rights[s],top:i.tops[o],bottom:i.bottoms[o]},layer:0}}return null}getCellEl(e,n){return this.rowRefs.currentMap[e].getCellEls()[n]}getCellRange(e,n){let r=this.props.cells[e][n].date,i=Oe(r,1);return{start:r,end:i}}}function Zv(t){return t.eventRange.def.allDay}class Xv extends ft{constructor(){super(...arguments),this.elRef=Le(),this.needsScrollReset=!1}render(){let{props:e}=this,{dayMaxEventRows:n,dayMaxEvents:r,expandRows:i}=e,s=r===!0||n===!0;s&&!i&&(s=!1,n=null,r=null);let o=["fc-daygrid-body",s?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",i?"":"fc-daygrid-body-natural"];return T("div",{ref:this.elRef,className:o.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},T("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:i?e.clientHeight:""}},e.colGroupNode,T("tbody",{role:"presentation"},T(Qv,{dateProfile:e.dateProfile,cells:e.cells,renderRowIntro:e.renderRowIntro,showWeekNumbers:e.showWeekNumbers,clientWidth:e.clientWidth,clientHeight:e.clientHeight,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,dayMaxEvents:r,dayMaxEventRows:n,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){const e=Kv(this.elRef.current,this.props.dateProfile);if(e){const n=e.closest(".fc-daygrid-body"),r=n.closest(".fc-scroller"),i=e.getBoundingClientRect().top-n.getBoundingClientRect().top;r.scrollTop=i?i+1:0}this.needsScrollReset=!1}}}function Kv(t,e){let n;return e.currentRangeUnit.match(/year|month/)&&(n=t.querySelector(`[data-date="${Ld(e.currentDate)}-01"]`)),n||(n=t.querySelector(`[data-date="${Li(e.currentDate)}"]`)),n}class Jv extends mc{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,n){return n.sliceRange(e)}}class e0 extends ft{constructor(){super(...arguments),this.slicer=new Jv,this.tableRef=Le()}render(){let{props:e,context:n}=this;return T(Xv,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,n,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))}}class em extends Fv{constructor(){super(...arguments),this.buildDayTableModel=oe(tm),this.headerRef=Le(),this.tableRef=Le()}render(){let{options:e,dateProfileGenerator:n}=this.context,{props:r}=this,i=this.buildDayTableModel(r.dateProfile,n),s=e.dayHeaders&&T(pc,{ref:this.headerRef,dateProfile:r.dateProfile,dates:i.headerDates,datesRepDistinctDays:i.rowCnt===1}),o=a=>T(e0,{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:e.nextDayThreshold,colGroupNode:a.tableColGroupNode,tableMinWidth:a.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!r.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:a.clientWidth,clientHeight:a.clientHeight,forPrint:r.forPrint});return e.dayMinWidth?this.renderHScrollLayout(s,o,i.colCnt,e.dayMinWidth):this.renderSimpleLayout(s,o)}}function tm(t,e){let n=new gc(t.renderRange,e);return new vc(n,/year|month|week/.test(t.currentRangeUnit))}class nm extends Ml{buildRenderRange(e,n,r){let i=super.buildRenderRange(e,n,r),{props:s}=this;return rm({currentRange:i,snapToWeek:/^(year|month)$/.test(n),fixedWeekCount:s.fixedWeekCount,dateEnv:s.dateEnv})}}function rm(t){let{dateEnv:e,currentRange:n}=t,{start:r,end:i}=n,s;if(t.snapToWeek&&(r=e.startOfWeek(r),s=e.startOfWeek(i),s.valueOf()!==i.valueOf()&&(i=hl(s,1))),t.fixedWeekCount){let o=e.startOfWeek(e.startOfMonth(Oe(n.end,-1))),a=Math.ceil(Rd(o,i));i=hl(i,6-a)}return{start:r,end:i}}var im=':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}';Bi(im);var sm=Et({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:em,dateProfileGeneratorClass:nm},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}}}}),om='.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}';Bi(om);class am extends Ap{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){return e.allDay?["allDay"]:["timed"]}getKeysForEventDef(e){return e.allDay?Jh(e)?["timed","allDay"]:["allDay"]:["timed"]}}const lm=_e({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function t0(t){let e=["fc-timegrid-slot","fc-timegrid-slot-label",t.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return T(mt.Consumer,null,n=>{if(!t.isLabeled)return T("td",{className:e.join(" "),"data-time":t.isoTimeStr});let{dateEnv:r,options:i,viewApi:s}=n,o=i.slotLabelFormat==null?lm:Array.isArray(i.slotLabelFormat)?_e(i.slotLabelFormat[0]):_e(i.slotLabelFormat),a={level:0,time:t.time,date:r.toDate(t.date),view:s,text:r.format(t.date,o)};return T(Qe,{elTag:"td",elClasses:e,elAttrs:{"data-time":t.isoTimeStr},renderProps:a,generatorName:"slotLabelContent",customGenerator:i.slotLabelContent,defaultGenerator:cm,classNameGenerator:i.slotLabelClassNames,didMount:i.slotLabelDidMount,willUnmount:i.slotLabelWillUnmount},c=>T("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},T(c,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]})))})}function cm(t){return t.text}class fm extends me{render(){return this.props.slatMetas.map(e=>T("tr",{key:e.key},T(t0,Object.assign({},e))))}}const um=_e({week:"short"}),dm=5;class hm extends ft{constructor(){super(...arguments),this.allDaySplitter=new am,this.headerElRef=Le(),this.rootElRef=Le(),this.scrollerElRef=Le(),this.state={slatCoords:null},this.handleScrollTopRequest=e=>{let n=this.scrollerElRef.current;n&&(n.scrollTop=e)},this.renderHeadAxis=(e,n="")=>{let{options:r}=this.context,{dateProfile:i}=this.props,s=i.renderRange,a=qt(s.start,s.end)===1?Rr(this.context,s.start,"week"):{};return r.weekNumbers&&e==="day"?T(Dc,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:s.start,defaultFormat:um},c=>T("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:n}},T(c,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:a}))):T("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},T("div",{className:"fc-timegrid-axis-frame",style:{height:n}}))},this.renderTableRowAxis=e=>{let{options:n,viewApi:r}=this.context,i={text:n.allDayText,view:r};return T(Qe,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:i,generatorName:"allDayContent",customGenerator:n.allDayContent,defaultGenerator:pm,classNameGenerator:n.allDayClassNames,didMount:n.allDayDidMount,willUnmount:n.allDayWillUnmount},s=>T("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",e==null?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:e}},T(s,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]})))},this.handleSlatCoords=e=>{this.setState({slatCoords:e})}}renderSimpleLayout(e,n,r){let{context:i,props:s}=this,o=[],a=Ir(i.options);return e&&o.push({type:"header",key:"header",isSticky:a,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),n&&(o.push({type:"body",key:"all-day",chunk:{content:n}}),o.push({type:"body",key:"all-day-divider",outerContent:T("tr",{role:"presentation",className:"fc-scrollgrid-section"},T("td",{className:"fc-timegrid-divider "+i.theme.getClass("tableCellShaded")}))})),o.push({type:"body",key:"body",liquid:!0,expandRows:!!i.options.expandRows,chunk:{scrollerElRef:this.scrollerElRef,content:r}}),T(yr,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:i.viewSpec},T(ys,{liquid:!s.isHeightAuto&&!s.forPrint,collapsibleWidth:s.forPrint,cols:[{width:"shrink"}],sections:o}))}renderHScrollLayout(e,n,r,i,s,o,a){let c=this.context.pluginHooks.scrollGridImpl;if(!c)throw new Error("No ScrollGrid implementation");let{context:l,props:f}=this,d=!f.forPrint&&Ir(l.options),u=!f.forPrint&&Ac(l.options),h=[];e&&h.push({type:"header",key:"header",isSticky:d,syncRowHeights:!0,chunks:[{key:"axis",rowContent:m=>T("tr",{role:"presentation"},this.renderHeadAxis("day",m.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),n&&(h.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:m=>T("tr",{role:"presentation"},this.renderTableRowAxis(m.rowSyncHeights[0]))},{key:"cols",content:n}]}),h.push({key:"all-day-divider",type:"body",outerContent:T("tr",{role:"presentation",className:"fc-scrollgrid-section"},T("td",{colSpan:2,className:"fc-timegrid-divider "+l.theme.getClass("tableCellShaded")}))}));let g=l.options.nowIndicator;return h.push({type:"body",key:"body",liquid:!0,expandRows:!!l.options.expandRows,chunks:[{key:"axis",content:m=>T("div",{className:"fc-timegrid-axis-chunk"},T("table",{"aria-hidden":!0,style:{height:m.expandRows?m.clientHeight:""}},m.tableColGroupNode,T("tbody",null,T(fm,{slatMetas:o}))),T("div",{className:"fc-timegrid-now-indicator-container"},T(Nn,{unit:g?"minute":"day"},x=>{let A=g&&a&&a.safeComputeTop(x);return typeof A=="number"?T(As,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:A},isAxis:!0,date:x}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:r}]}),u&&h.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:bs},{key:"cols",content:bs}]}),T(yr,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:l.viewSpec},T(c,{liquid:!f.isHeightAuto&&!f.forPrint,forPrint:f.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:i,minWidth:s}]}],sections:h}))}getAllDayMaxEventProps(){let{dayMaxEvents:e,dayMaxEventRows:n}=this.context.options;return(e===!0||n===!0)&&(e=void 0,n=dm),{dayMaxEvents:e,dayMaxEventRows:n}}}function pm(t){return t.text}class gm{constructor(e,n,r){this.positions=e,this.dateProfile=n,this.slotDuration=r}safeComputeTop(e){let{dateProfile:n}=this;if(bt(n.currentRange,e)){let r=Ee(e),i=e.valueOf()-r.valueOf();if(i>=nt(n.slotMinTime)&&i<nt(n.slotMaxTime))return this.computeTimeTop(pe(i))}return null}computeDateTop(e,n){return n||(n=Ee(e)),this.computeTimeTop(pe(e.valueOf()-n.valueOf()))}computeTimeTop(e){let{positions:n,dateProfile:r}=this,i=n.els.length,s=(e.milliseconds-nt(r.slotMinTime))/nt(this.slotDuration),o,a;return s=Math.max(0,s),s=Math.min(i,s),o=Math.floor(s),o=Math.min(o,i-1),a=s-o,n.tops[o]+n.getHeight(o)*a}}class vm extends me{render(){let{props:e,context:n}=this,{options:r}=n,{slatElRefs:i}=e;return T("tbody",null,e.slatMetas.map((s,o)=>{let a={time:s.time,date:n.dateEnv.toDate(s.date),view:n.viewApi};return T("tr",{key:s.key,ref:i.createRef(s.key)},e.axis&&T(t0,Object.assign({},s)),T(Qe,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!s.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":s.isoTimeStr},renderProps:a,generatorName:"slotLaneContent",customGenerator:r.slotLaneContent,classNameGenerator:r.slotLaneClassNames,didMount:r.slotLaneDidMount,willUnmount:r.slotLaneWillUnmount}))}))}}class mm extends me{constructor(){super(...arguments),this.rootElRef=Le(),this.slatElRefs=new yt}render(){let{props:e,context:n}=this;return T("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},T("table",{"aria-hidden":!0,className:n.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,T(vm,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:e,props:n}=this;n.onCoords&&n.clientWidth!==null&&this.rootElRef.current.offsetHeight&&n.onCoords(new gm(new pn(this.rootElRef.current,xm(this.slatElRefs.currentMap,n.slatMetas),!1,!0),this.props.dateProfile,e.options.slotDuration))}}function xm(t,e){return e.map(n=>t[n.key])}function Mn(t,e){let n=[],r;for(r=0;r<e;r+=1)n.push([]);if(t)for(r=0;r<t.length;r+=1)n[t[r].col].push(t[r]);return n}function n0(t,e){let n=[];if(t){for(let r=0;r<e;r+=1)n[r]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(let r of t.segs)n[r.col].segs.push(r)}else for(let r=0;r<e;r+=1)n[r]=null;return n}class bm extends me{render(){let{props:e}=this;return T(Sc,{elClasses:["fc-timegrid-more-link"],elStyle:{top:e.top,bottom:e.bottom},allDayDate:null,moreCnt:e.hiddenSegs.length,allSegs:e.hiddenSegs,hiddenSegs:e.hiddenSegs,extraDateSpan:e.extraDateSpan,dateProfile:e.dateProfile,todayRange:e.todayRange,popoverContent:()=>o0(e.hiddenSegs,e),defaultGenerator:ym,forceTimed:!0},n=>T(n,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}}function ym(t){return t.shortText}function Em(t,e,n){let r=new fc;e!=null&&(r.strictOrder=e),n!=null&&(r.maxStackCnt=n);let i=r.addSegs(t),s=Fp(i),o=Am(r);return o=Dm(o,1),{segRects:Sm(o),hiddenGroups:s}}function Am(t){const{entriesByLevel:e}=t,n=Bs((r,i)=>r+":"+i,(r,i)=>{let s=_m(t,r,i),o=r0(s,n),a=e[r][i];return[Object.assign(Object.assign({},a),{nextLevelNodes:o[0]}),a.thickness+o[1]]});return r0(e.length?{level:0,lateralStart:0,lateralEnd:e[0].length}:null,n)[0]}function r0(t,e){if(!t)return[[],0];let{level:n,lateralStart:r,lateralEnd:i}=t,s=r,o=[];for(;s<i;)o.push(e(n,s)),s+=1;return o.sort(Cm),[o.map(wm),o[0][1]]}function Cm(t,e){return e[1]-t[1]}function wm(t){return t[0]}function _m(t,e,n){let{levelCoords:r,entriesByLevel:i}=t,s=i[e][n],o=r[e]+s.thickness,a=r.length,c=e;for(;c<a&&r[c]<o;c+=1);for(;c<a;c+=1){let l=i[c],f,d=vs(l,s.span.start,hs),u=d[0]+d[1],h=u;for(;(f=l[h])&&f.span.start<s.span.end;)h+=1;if(u<h)return{level:c,lateralStart:u,lateralEnd:h}}return null}function Dm(t,e){const n=Bs((r,i,s)=>Jt(r),(r,i,s)=>{let{nextLevelNodes:o,thickness:a}=r,c=a+s,l=a/c,f,d=[];if(!o.length)f=e;else for(let h of o)if(f===void 0){let g=n(h,i,c);f=g[0],d.push(g[1])}else{let g=n(h,f,0);d.push(g[1])}let u=(f-i)*l;return[f-u,Object.assign(Object.assign({},r),{thickness:u,nextLevelNodes:d})]});return t.map(r=>n(r,0,0)[1])}function Sm(t){let e=[];const n=Bs((i,s,o)=>Jt(i),(i,s,o)=>{let a=Object.assign(Object.assign({},i),{levelCoord:s,stackDepth:o,stackForward:0});return e.push(a),a.stackForward=r(i.nextLevelNodes,s+i.thickness,o+1)+1});function r(i,s,o){let a=0;for(let c of i)a=Math.max(n(c,s,o),a);return a}return r(t,0,0),e}function Bs(t,e){const n={};return(...r)=>{let i=t(...r);return i in n?n[i]:n[i]=e(...r)}}function i0(t,e,n=null,r=0){let i=[];if(n)for(let s=0;s<t.length;s+=1){let o=t[s],a=n.computeDateTop(o.start,e),c=Math.max(a+(r||0),n.computeDateTop(o.end,e));i.push({start:Math.round(a),end:Math.round(c)})}return i}function Rm(t,e,n,r){let i=[],s=[];for(let l=0;l<t.length;l+=1){let f=e[l];f?i.push({index:l,thickness:1,span:f}):s.push(t[l])}let{segRects:o,hiddenGroups:a}=Em(i,n,r),c=[];for(let l of o)c.push({seg:t[l.index],rect:l});for(let l of s)c.push({seg:l,rect:null});return{segPlacements:c,hiddenGroups:a}}const Bm=_e({hour:"numeric",minute:"2-digit",meridiem:!1});class s0 extends me{render(){return T(Cc,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:Bm}))}}class Tm extends me{constructor(){super(...arguments),this.sortEventSegs=oe(Kl)}render(){let{props:e,context:n}=this,{options:r}=n,i=r.selectMirror,s=e.eventDrag&&e.eventDrag.segs||e.eventResize&&e.eventResize.segs||i&&e.dateSelectionSegs||[],o=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{},a=this.sortEventSegs(e.fgEventSegs,r.eventOrder);return T(Cs,{elTag:"td",elRef:e.elRef,elClasses:["fc-timegrid-col",...e.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},e.extraDataAttrs),date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraRenderProps:e.extraRenderProps},c=>T("div",{className:"fc-timegrid-col-frame"},T("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(e.dateSelectionSegs,"highlight")),T("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(a,o,!1,!1,!1)),T("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(s,{},!!e.eventDrag,!!e.eventResize,!!i,"mirror")),T("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(e.nowIndicatorSegs)),ws(r)&&T(c,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(e,n,r,i,s,o){let{props:a}=this;return a.forPrint?o0(e,a):this.renderPositionedFgSegs(e,n,r,i,s,o)}renderPositionedFgSegs(e,n,r,i,s,o){let{eventMaxStack:a,eventShortHeight:c,eventOrderStrict:l,eventMinHeight:f}=this.context.options,{date:d,slatCoords:u,eventSelection:h,todayRange:g,nowDate:m}=this.props,x=r||i||s,A=i0(e,d,u,f),{segPlacements:p,hiddenGroups:v}=Rm(e,A,l,a);return T(Ae,null,this.renderHiddenGroups(v,e),p.map(b=>{let{seg:E,rect:C}=b,D=E.eventRange.instance.instanceId,w=x||!!(!n[D]&&C),I=Ts(C&&C.span),R=!x&&C?this.computeSegHStyle(C):{left:0,right:0},B=!!C&&C.stackForward>0,P=!!C&&C.span.end-C.span.start<c;return T("div",{className:"fc-timegrid-event-harness"+(B?" fc-timegrid-event-harness-inset":""),key:o||D,style:Object.assign(Object.assign({visibility:w?"":"hidden"},I),R)},T(s0,Object.assign({seg:E,isDragging:r,isResizing:i,isDateSelecting:s,isSelected:D===h,isShort:P},It(E,g,m))))}))}renderHiddenGroups(e,n){let{extraDateSpan:r,dateProfile:i,todayRange:s,nowDate:o,eventSelection:a,eventDrag:c,eventResize:l}=this.props;return T(Ae,null,e.map(f=>{let d=Ts(f.span),u=km(f.entries,n);return T(bm,{key:ml(Bc(u)),hiddenSegs:u,top:d.top,bottom:d.bottom,extraDateSpan:r,dateProfile:i,todayRange:s,nowDate:o,eventSelection:a,eventDrag:c,eventResize:l})}))}renderFillSegs(e,n){let{props:r,context:i}=this,o=i0(e,r.date,r.slatCoords,i.options.eventMinHeight).map((a,c)=>{let l=e[c];return T("div",{key:ec(l.eventRange),className:"fc-timegrid-bg-harness",style:Ts(a)},n==="bg-event"?T(wc,Object.assign({seg:l},It(l,r.todayRange,r.nowDate))):_c(n))});return T(Ae,null,o)}renderNowIndicator(e){let{slatCoords:n,date:r}=this.props;return n?e.map((i,s)=>T(As,{key:s,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:n.computeDateTop(i.start,r)},isAxis:!1,date:r})):null}computeSegHStyle(e){let{isRtl:n,options:r}=this.context,i=r.slotEventOverlap,s=e.levelCoord,o=e.levelCoord+e.thickness,a,c;i&&(o=Math.min(1,s+(o-s)*2)),n?(a=1-o,c=s):(a=s,c=1-o);let l={zIndex:e.stackDepth+1,left:a*100+"%",right:c*100+"%"};return i&&!e.stackForward&&(l[n?"marginLeft":"marginRight"]=10*2),l}}function o0(t,{todayRange:e,nowDate:n,eventSelection:r,eventDrag:i,eventResize:s}){let o=(i?i.affectedInstances:null)||(s?s.affectedInstances:null)||{};return T(Ae,null,t.map(a=>{let c=a.eventRange.instance.instanceId;return T("div",{key:c,style:{visibility:o[c]?"hidden":""}},T(s0,Object.assign({seg:a,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:c===r,isShort:!1},It(a,e,n))))}))}function Ts(t){return t?{top:t.start,bottom:-t.end}:{top:"",bottom:""}}function km(t,e){return t.map(n=>e[n.index])}class Im extends me{constructor(){super(...arguments),this.splitFgEventSegs=oe(Mn),this.splitBgEventSegs=oe(Mn),this.splitBusinessHourSegs=oe(Mn),this.splitNowIndicatorSegs=oe(Mn),this.splitDateSelectionSegs=oe(Mn),this.splitEventDrag=oe(n0),this.splitEventResize=oe(n0),this.rootElRef=Le(),this.cellElRefs=new yt}render(){let{props:e,context:n}=this,r=n.options.nowIndicator&&e.slatCoords&&e.slatCoords.safeComputeTop(e.nowDate),i=e.cells.length,s=this.splitFgEventSegs(e.fgEventSegs,i),o=this.splitBgEventSegs(e.bgEventSegs,i),a=this.splitBusinessHourSegs(e.businessHourSegs,i),c=this.splitNowIndicatorSegs(e.nowIndicatorSegs,i),l=this.splitDateSelectionSegs(e.dateSelectionSegs,i),f=this.splitEventDrag(e.eventDrag,i),d=this.splitEventResize(e.eventResize,i);return T("div",{className:"fc-timegrid-cols",ref:this.rootElRef},T("table",{role:"presentation",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,T("tbody",{role:"presentation"},T("tr",{role:"row"},e.axis&&T("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},T("div",{className:"fc-timegrid-col-frame"},T("div",{className:"fc-timegrid-now-indicator-container"},typeof r=="number"&&T(As,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:r},isAxis:!0,date:e.nowDate})))),e.cells.map((u,h)=>T(Tm,{key:u.key,elRef:this.cellElRefs.createRef(u.key),dateProfile:e.dateProfile,date:u.date,nowDate:e.nowDate,todayRange:e.todayRange,extraRenderProps:u.extraRenderProps,extraDataAttrs:u.extraDataAttrs,extraClassNames:u.extraClassNames,extraDateSpan:u.extraDateSpan,fgEventSegs:s[h],bgEventSegs:o[h],businessHourSegs:a[h],nowIndicatorSegs:c[h],dateSelectionSegs:l[h],eventDrag:f[h],eventResize:d[h],slatCoords:e.slatCoords,eventSelection:e.eventSelection,forPrint:e.forPrint}))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:e}=this;e.onColCoords&&e.clientWidth!==null&&e.onColCoords(new pn(this.rootElRef.current,Nm(this.cellElRefs.currentMap,e.cells),!0,!1))}}function Nm(t,e){return e.map(n=>t[n.key])}class Mm extends ft{constructor(){super(...arguments),this.processSlotOptions=oe(Fm),this.state={slatCoords:null},this.handleRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=e=>{let{onScrollTopRequest:n}=this.props,{slatCoords:r}=this.state;if(n&&r){if(e.time){let i=r.computeTimeTop(e.time);i=Math.ceil(i),i&&(i+=1),n(i)}return!0}return!1},this.handleColCoords=e=>{this.colCoords=e},this.handleSlatCoords=e=>{this.setState({slatCoords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)}}render(){let{props:e,state:n}=this;return T("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},T(mm,{axis:e.axis,dateProfile:e.dateProfile,slatMetas:e.slatMetas,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,tableColGroupNode:e.axis?e.tableColGroupNode:null,onCoords:this.handleSlatCoords}),T(Im,{cells:e.cells,axis:e.axis,dateProfile:e.dateProfile,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange,nowDate:e.nowDate,nowIndicatorSegs:e.nowIndicatorSegs,clientWidth:e.clientWidth,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,slatCoords:n.slatCoords,onColCoords:this.handleColCoords,forPrint:e.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(e,n){let{dateEnv:r,options:i}=this.context,{colCoords:s}=this,{dateProfile:o}=this.props,{slatCoords:a}=this.state,{snapDuration:c,snapsPerSlot:l}=this.processSlotOptions(this.props.slotDuration,i.snapDuration),f=s.leftToIndex(e),d=a.positions.topToIndex(n);if(f!=null&&d!=null){let u=this.props.cells[f],h=a.positions.tops[d],g=a.positions.getHeight(d),m=(n-h)/g,x=Math.floor(m*l),A=d*l+x,p=this.props.cells[f].date,v=Fi(o.slotMinTime,wd(c,A)),b=r.add(p,v),E=r.add(b,c);return{dateProfile:o,dateSpan:Object.assign({range:{start:b,end:E},allDay:!1},u.extraDateSpan),dayEl:s.els[f],rect:{left:s.lefts[f],right:s.rights[f],top:h,bottom:h+g},layer:0}}return null}}function Fm(t,e){let n=e||t,r=Oi(t,n);return r===null&&(n=t,r=1),{snapDuration:n,snapsPerSlot:r}}class Om extends mc{sliceRange(e,n){let r=[];for(let i=0;i<n.length;i+=1){let s=Zt(e,n[i]);s&&r.push({start:s.start,end:s.end,isStart:s.start.valueOf()===e.start.valueOf(),isEnd:s.end.valueOf()===e.end.valueOf(),col:i})}return r}}class Pm extends ft{constructor(){super(...arguments),this.buildDayRanges=oe(Hm),this.slicer=new Om,this.timeColsRef=Le()}render(){let{props:e,context:n}=this,{dateProfile:r,dayTableModel:i}=e,{nowIndicator:s,nextDayThreshold:o}=n.options,a=this.buildDayRanges(i,r,n.dateEnv);return T(Nn,{unit:s?"minute":"day"},(c,l)=>T(Mm,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(e,r,null,n,a),{forPrint:e.forPrint,axis:e.axis,dateProfile:r,slatMetas:e.slatMetas,slotDuration:e.slotDuration,cells:i.cells[0],tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,clientWidth:e.clientWidth,clientHeight:e.clientHeight,expandRows:e.expandRows,nowDate:c,nowIndicatorSegs:s&&this.slicer.sliceNowDate(c,r,o,n,a),todayRange:l,onScrollTopRequest:e.onScrollTopRequest,onSlatCoords:e.onSlatCoords})))}}function Hm(t,e,n){let r=[];for(let i of t.headerDates)r.push({start:n.add(i,e.slotMinTime),end:n.add(i,e.slotMaxTime)});return r}const a0=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function Lm(t,e,n,r,i){let s=new Date(0),o=t,a=pe(0),c=n||zm(r),l=[];for(;nt(o)<nt(e);){let f=i.add(s,o),d=Oi(a,c)!==null;l.push({date:f,time:o,key:f.toISOString(),isoTimeStr:zd(f),isLabeled:d}),o=Fi(o,r),a=Fi(a,r)}return l}function zm(t){let e,n,r;for(e=a0.length-1;e>=0;e-=1)if(n=pe(a0[e]),r=Oi(n,t),r!==null&&r>1)return n;return t}class Um extends hm{constructor(){super(...arguments),this.buildTimeColsModel=oe(Vm),this.buildSlatMetas=oe(Lm)}render(){let{options:e,dateEnv:n,dateProfileGenerator:r}=this.context,{props:i}=this,{dateProfile:s}=i,o=this.buildTimeColsModel(s,r),a=this.allDaySplitter.splitProps(i),c=this.buildSlatMetas(s.slotMinTime,s.slotMaxTime,e.slotLabelInterval,e.slotDuration,n),{dayMinWidth:l}=e,f=!l,d=l,u=e.dayHeaders&&T(pc,{dates:o.headerDates,dateProfile:s,datesRepDistinctDays:!0,renderIntro:f?this.renderHeadAxis:null}),h=e.allDaySlot!==!1&&(m=>T(e0,Object.assign({},a.allDay,{dateProfile:s,dayTableModel:o,nextDayThreshold:e.nextDayThreshold,tableMinWidth:m.tableMinWidth,colGroupNode:m.tableColGroupNode,renderRowIntro:f?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:m.clientWidth,clientHeight:m.clientHeight,forPrint:i.forPrint},this.getAllDayMaxEventProps()))),g=m=>T(Pm,Object.assign({},a.timed,{dayTableModel:o,dateProfile:s,axis:f,slotDuration:e.slotDuration,slatMetas:c,forPrint:i.forPrint,tableColGroupNode:m.tableColGroupNode,tableMinWidth:m.tableMinWidth,clientWidth:m.clientWidth,clientHeight:m.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:m.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return d?this.renderHScrollLayout(u,h,g,o.colCnt,l,c,this.state.slatCoords):this.renderSimpleLayout(u,h,g)}}function Vm(t,e){let n=new gc(t.renderRange,e);return new vc(n,!1)}var Wm=Et({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:Um,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});ms.touchMouseIgnoreWait=500;let ks=0,Fr=0,Is=!1;class l0{constructor(e){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=n=>{if(!this.shouldIgnoreMouse()&&jm(n)&&this.tryStart(n)){let r=this.createEventFromMouse(n,!0);this.emitter.trigger("pointerdown",r),this.initScrollWatch(r),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=n=>{let r=this.createEventFromMouse(n);this.recordCoords(r),this.emitter.trigger("pointermove",r)},this.handleMouseUp=n=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(n)),this.cleanup()},this.handleTouchStart=n=>{if(this.tryStart(n)){this.isTouchDragging=!0;let r=this.createEventFromTouch(n,!0);this.emitter.trigger("pointerdown",r),this.initScrollWatch(r);let i=n.target;this.shouldIgnoreMove||i.addEventListener("touchmove",this.handleTouchMove),i.addEventListener("touchend",this.handleTouchEnd),i.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=n=>{let r=this.createEventFromTouch(n);this.recordCoords(r),this.emitter.trigger("pointermove",r)},this.handleTouchEnd=n=>{if(this.isDragging){let r=n.target;r.removeEventListener("touchmove",this.handleTouchMove),r.removeEventListener("touchend",this.handleTouchEnd),r.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(n)),this.cleanup(),this.isTouchDragging=!1,qm()}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=n=>{if(!this.shouldIgnoreMove){let r=window.pageXOffset-this.prevScrollX+this.prevPageX,i=window.pageYOffset-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:n,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:r,pageY:i,deltaX:r-this.origPageX,deltaY:i-this.origPageY})}},this.containerEl=e,this.emitter=new Dr,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),$m()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),Gm()}tryStart(e){let n=this.querySubjectEl(e),r=e.target;return n&&(!this.handleSelector||Fe(r,this.handleSelector))?(this.subjectEl=n,this.isDragging=!0,this.wasTouchScroll=!1,!0):!1}cleanup(){Is=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?Fe(e.target,this.selector):this.containerEl}shouldIgnoreMouse(){return ks||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(Is=!0)}initScrollWatch(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.pageXOffset,this.prevScrollY=window.pageYOffset)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(e,n){let r=0,i=0;return n?(this.origPageX=e.pageX,this.origPageY=e.pageY):(r=e.pageX-this.origPageX,i=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:r,deltaY:i}}createEventFromTouch(e,n){let r=e.touches,i,s,o=0,a=0;return r&&r.length?(i=r[0].pageX,s=r[0].pageY):(i=e.pageX,s=e.pageY),n?(this.origPageX=i,this.origPageY=s):(o=i-this.origPageX,a=s-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:i,pageY:s,deltaX:o,deltaY:a}}}function jm(t){return t.button===0&&!t.ctrlKey}function qm(){ks+=1,setTimeout(()=>{ks-=1},ms.touchMouseIgnoreWait)}function $m(){Fr+=1,Fr===1&&window.addEventListener("touchmove",c0,{passive:!1})}function Gm(){Fr-=1,Fr||window.removeEventListener("touchmove",c0,{passive:!1})}function c0(t){Is&&t.preventDefault()}class Ym{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(e,n,r){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=n-window.pageXOffset,this.origScreenY=r-window.pageYOffset,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(e,n){this.deltaX=e-window.pageXOffset-this.origScreenX,this.deltaY=n-window.pageYOffset-this.origScreenY,this.updateElPosition()}setIsVisible(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)}stop(e,n){let r=()=>{this.cleanup(),n()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(r,this.revertDuration):setTimeout(r,0)}doRevertAnimation(e,n){let r=this.mirrorEl,i=this.sourceEl.getBoundingClientRect();r.style.transition="top "+n+"ms,left "+n+"ms",Sn(r,{left:i.left,top:i.top}),cd(r,()=>{r.style.transition="",e()})}cleanup(){this.mirrorEl&&(Ii(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&Sn(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let e=this.sourceElRect,n=this.mirrorEl;return n||(n=this.mirrorEl=this.sourceEl.cloneNode(!0),n.style.userSelect="none",n.style.webkitUserSelect="none",n.classList.add("fc-event-dragging"),Sn(n,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(n)),n}}class f0 extends ds{constructor(e,n){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=e,this.doesListening=n,this.scrollTop=this.origScrollTop=e.getScrollTop(),this.scrollLeft=this.origScrollLeft=e.getScrollLeft(),this.scrollWidth=e.getScrollWidth(),this.scrollHeight=e.getScrollHeight(),this.clientWidth=e.getClientWidth(),this.clientHeight=e.getClientHeight(),this.clientRect=this.computeClientRect(),this.doesListening&&this.getEventTarget().addEventListener("scroll",this.handleScroll)}destroy(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)}getScrollTop(){return this.scrollTop}getScrollLeft(){return this.scrollLeft}setScrollTop(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}}class u0 extends f0{constructor(e,n){super(new Np(e),n)}getEventTarget(){return this.scrollController.el}computeClientRect(){return kp(this.scrollController.el)}}class Qm extends f0{constructor(e){super(new Mp,e)}getEventTarget(){return window}computeClientRect(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}}handleScrollChange(){this.clientRect=this.computeClientRect()}}const d0=typeof performance=="function"?performance.now:Date.now;class Zm{constructor(){this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=()=>{if(this.isAnimating){let e=this.computeBestEdge(this.pointerScreenX+window.pageXOffset,this.pointerScreenY+window.pageYOffset);if(e){let n=d0();this.handleSide(e,(n-this.msSinceRequest)/1e3),this.requestAnimation(n)}else this.isAnimating=!1}}}start(e,n,r){this.isEnabled&&(this.scrollCaches=this.buildCaches(r),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,n))}handleMove(e,n){if(this.isEnabled){let r=e-window.pageXOffset,i=n-window.pageYOffset,s=this.pointerScreenY===null?0:i-this.pointerScreenY,o=this.pointerScreenX===null?0:r-this.pointerScreenX;s<0?this.everMovedUp=!0:s>0&&(this.everMovedDown=!0),o<0?this.everMovedLeft=!0:o>0&&(this.everMovedRight=!0),this.pointerScreenX=r,this.pointerScreenY=i,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(d0()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let e of this.scrollCaches)e.destroy();this.scrollCaches=null}}requestAnimation(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)}handleSide(e,n){let{scrollCache:r}=e,{edgeThreshold:i}=this,s=i-e.distance,o=s*s/(i*i)*this.maxVelocity*n,a=1;switch(e.name){case"left":a=-1;case"right":r.setScrollLeft(r.getScrollLeft()+o*a);break;case"top":a=-1;case"bottom":r.setScrollTop(r.getScrollTop()+o*a);break}}computeBestEdge(e,n){let{edgeThreshold:r}=this,i=null,s=this.scrollCaches||[];for(let o of s){let a=o.clientRect,c=e-a.left,l=a.right-e,f=n-a.top,d=a.bottom-n;c>=0&&l>=0&&f>=0&&d>=0&&(f<=r&&this.everMovedUp&&o.canScrollUp()&&(!i||i.distance>f)&&(i={scrollCache:o,name:"top",distance:f}),d<=r&&this.everMovedDown&&o.canScrollDown()&&(!i||i.distance>d)&&(i={scrollCache:o,name:"bottom",distance:d}),c<=r&&this.everMovedLeft&&o.canScrollLeft()&&(!i||i.distance>c)&&(i={scrollCache:o,name:"left",distance:c}),l<=r&&this.everMovedRight&&o.canScrollRight()&&(!i||i.distance>l)&&(i={scrollCache:o,name:"right",distance:l}))}return i}buildCaches(e){return this.queryScrollEls(e).map(n=>n===window?new Qm(!1):new u0(n,!1))}queryScrollEls(e){let n=[];for(let r of this.scrollQuery)typeof r=="object"?n.push(r):n.push(...Array.prototype.slice.call(e.getRootNode().querySelectorAll(r)));return n}}class Fn extends Pp{constructor(e,n){super(e),this.containerEl=e,this.delay=null,this.minDistance=0,this.touchScrollAllowed=!0,this.mirrorNeedsRevert=!1,this.isInteracting=!1,this.isDragging=!1,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.delayTimeoutId=null,this.onPointerDown=i=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,fd(document.body),dd(document.body),i.isTouch||i.origEvent.preventDefault(),this.emitter.trigger("pointerdown",i),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(i.subjectEl,i.pageX,i.pageY),this.startDelay(i),this.minDistance||this.handleDistanceSurpassed(i)))},this.onPointerMove=i=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",i),!this.isDistanceSurpassed){let s=this.minDistance,o,{deltaX:a,deltaY:c}=i;o=a*a+c*c,o>=s*s&&this.handleDistanceSurpassed(i)}this.isDragging&&(i.origEvent.type!=="scroll"&&(this.mirror.handleMove(i.pageX,i.pageY),this.autoScroller.handleMove(i.pageX,i.pageY)),this.emitter.trigger("dragmove",i))}},this.onPointerUp=i=>{this.isInteracting&&(this.isInteracting=!1,ud(document.body),hd(document.body),this.emitter.trigger("pointerup",i),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(i)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let r=this.pointer=new l0(e);r.emitter.on("pointerdown",this.onPointerDown),r.emitter.on("pointermove",this.onPointerMove),r.emitter.on("pointerup",this.onPointerUp),n&&(r.selector=n),this.mirror=new Ym,this.autoScroller=new Zm}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(e){typeof this.delay=="number"?this.delayTimeoutId=setTimeout(()=>{this.delayTimeoutId=null,this.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)}handleDelayEnd(e){this.isDelayEnded=!0,this.tryStartDrag(e)}handleDistanceSurpassed(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)}tryStartDrag(e){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),this.touchScrollAllowed===!1&&this.pointer.cancelTouchScroll())}tryStopDrag(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))}stopDrag(e){this.isDragging=!1,this.emitter.trigger("dragend",e)}setIgnoreMove(e){this.pointer.shouldIgnoreMove=e}setMirrorIsVisible(e){this.mirror.setIsVisible(e)}setMirrorNeedsRevert(e){this.mirrorNeedsRevert=e}setAutoScrollEnabled(e){this.autoScroller.isEnabled=e}}class Xm{constructor(e){this.origRect=us(e),this.scrollCaches=cc(e).map(n=>new u0(n,!0))}destroy(){for(let e of this.scrollCaches)e.destroy()}computeLeft(){let e=this.origRect.left;for(let n of this.scrollCaches)e+=n.origScrollLeft-n.getScrollLeft();return e}computeTop(){let e=this.origRect.top;for(let n of this.scrollCaches)e+=n.origScrollTop-n.getScrollTop();return e}isWithinClipping(e,n){let r={left:e,top:n};for(let i of this.scrollCaches)if(!Km(i.getEventTarget())&&!xp(r,i.clientRect))return!1;return!0}}function Km(t){let e=t.tagName;return e==="HTML"||e==="BODY"}class Or{constructor(e,n){this.useSubjectCenter=!1,this.requireInitial=!0,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=r=>{let{dragging:i}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(r),this.initialHit||!this.requireInitial?(i.setIgnoreMove(!1),this.emitter.trigger("pointerdown",r)):i.setIgnoreMove(!0)},this.handleDragStart=r=>{this.emitter.trigger("dragstart",r),this.handleMove(r,!0)},this.handleDragMove=r=>{this.emitter.trigger("dragmove",r),this.handleMove(r)},this.handlePointerUp=r=>{this.releaseHits(),this.emitter.trigger("pointerup",r)},this.handleDragEnd=r=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,r),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",r)},this.droppableStore=n,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new Dr}processFirstCoord(e){let n={left:e.pageX,top:e.pageY},r=n,i=e.subjectEl,s;i instanceof HTMLElement&&(s=us(i),r=bp(r,s));let o=this.initialHit=this.queryHitForOffset(r.left,r.top);if(o){if(this.useSubjectCenter&&s){let a=oc(s,o.rect);a&&(r=yp(a))}this.coordAdjust=Ep(r,n)}else this.coordAdjust={left:0,top:0}}handleMove(e,n){let r=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);(n||!Pr(this.movingHit,r))&&(this.movingHit=r,this.emitter.trigger("hitupdate",r,!1,e))}prepareHits(){this.offsetTrackers=vt(this.droppableStore,e=>(e.component.prepareHits(),new Xm(e.el)))}releaseHits(){let{offsetTrackers:e}=this;for(let n in e)e[n].destroy();this.offsetTrackers={}}queryHitForOffset(e,n){let{droppableStore:r,offsetTrackers:i}=this,s=null;for(let o in r){let a=r[o].component,c=i[o];if(c&&c.isWithinClipping(e,n)){let l=c.computeLeft(),f=c.computeTop(),d=e-l,u=n-f,{origRect:h}=c,g=h.right-h.left,m=h.bottom-h.top;if(d>=0&&d<g&&u>=0&&u<m){let x=a.queryHit(d,u,g,m);x&&Er(x.dateProfile.activeRange,x.dateSpan.range)&&(!s||x.layer>s.layer)&&(x.componentId=o,x.context=a.context,x.rect.left+=l,x.rect.right+=l,x.rect.top+=f,x.rect.bottom+=f,s=x)}}}return s}}function Pr(t,e){return!t&&!e?!0:!!t!=!!e?!1:lp(t.dateSpan,e.dateSpan)}function h0(t,e){let n={};for(let r of e.pluginHooks.datePointTransforms)Object.assign(n,r(t,e));return Object.assign(n,Jm(t,e.dateEnv)),n}function Jm(t,e){return{date:e.toDate(t.range.start),dateStr:e.formatIso(t.range.start,{omitTime:t.allDay}),allDay:t.allDay}}class e1 extends hn{constructor(e){super(e),this.handlePointerDown=r=>{let{dragging:i}=this,s=r.origEvent.target;i.setIgnoreMove(!this.component.isValidDateDownEl(s))},this.handleDragEnd=r=>{let{component:i}=this,{pointer:s}=this.dragging;if(!s.wasTouchScroll){let{initialHit:o,finalHit:a}=this.hitDragging;if(o&&a&&Pr(o,a)){let{context:c}=i,l=Object.assign(Object.assign({},h0(o.dateSpan,c)),{dayEl:o.dayEl,jsEvent:r.origEvent,view:c.viewApi||c.calendarApi.view});c.emitter.trigger("dateClick",l)}}},this.dragging=new Fn(e.el),this.dragging.autoScroller.isEnabled=!1;let n=this.hitDragging=new Or(this.dragging,ss(e));n.emitter.on("pointerdown",this.handlePointerDown),n.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class t1 extends hn{constructor(e){super(e),this.dragSelection=null,this.handlePointerDown=o=>{let{component:a,dragging:c}=this,{options:l}=a.context,f=l.selectable&&a.isValidDateDownEl(o.origEvent.target);c.setIgnoreMove(!f),c.delay=o.isTouch?n1(a):null},this.handleDragStart=o=>{this.component.context.calendarApi.unselect(o)},this.handleHitUpdate=(o,a)=>{let{context:c}=this.component,l=null,f=!1;if(o){let d=this.hitDragging.initialHit;o.componentId===d.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(d,o)||(l=r1(d,o,c.pluginHooks.dateSelectionTransformers)),(!l||!Wp(l,o.dateProfile,c))&&(f=!0,l=null)}l?c.dispatch({type:"SELECT_DATES",selection:l}):a||c.dispatch({type:"UNSELECT_DATES"}),f?Ni():Mi(),a||(this.dragSelection=l)},this.handlePointerUp=o=>{this.dragSelection&&($l(this.dragSelection,o,this.component.context),this.dragSelection=null)};let{component:n}=e,{options:r}=n.context,i=this.dragging=new Fn(e.el);i.touchScrollAllowed=!1,i.minDistance=r.selectMinDistance||0,i.autoScroller.isEnabled=r.dragScroll;let s=this.hitDragging=new Or(this.dragging,ss(e));s.emitter.on("pointerdown",this.handlePointerDown),s.emitter.on("dragstart",this.handleDragStart),s.emitter.on("hitupdate",this.handleHitUpdate),s.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}}function n1(t){let{options:e}=t.context,n=e.selectLongPressDelay;return n==null&&(n=e.longPressDelay),n}function r1(t,e,n){let r=t.dateSpan,i=e.dateSpan,s=[r.range.start,r.range.end,i.range.start,i.range.end];s.sort(xd);let o={};for(let a of n){let c=a(t,e);if(c===!1)return null;c&&Object.assign(o,c)}return o.range={start:s[0],end:s[3]},o.allDay=r.allDay,o}class On extends hn{constructor(e){super(e),this.subjectEl=null,this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=o=>{let a=o.origEvent.target,{component:c,dragging:l}=this,{mirror:f}=l,{options:d}=c.context,u=c.context;this.subjectEl=o.subjectEl;let h=this.subjectSeg=dn(o.subjectEl),m=(this.eventRange=h.eventRange).instance.instanceId;this.relevantEvents=es(u.getCurrentData().eventStore,m),l.minDistance=o.isTouch?0:d.eventDragMinDistance,l.delay=o.isTouch&&m!==c.props.eventSelection?s1(c):null,d.fixedMirrorParent?f.parentNode=d.fixedMirrorParent:f.parentNode=Fe(a,".fc"),f.revertDuration=d.dragRevertDuration;let x=c.isValidSegDownEl(a)&&!Fe(a,".fc-event-resizer");l.setIgnoreMove(!x),this.isDragging=x&&o.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=o=>{let a=this.component.context,c=this.eventRange,l=c.instance.instanceId;o.isTouch?l!==this.component.props.eventSelection&&a.dispatch({type:"SELECT_EVENT",eventInstanceId:l}):a.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(a.calendarApi.unselect(o),a.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new Ce(a,c.def,c.instance),jsEvent:o.origEvent,view:a.viewApi}))},this.handleHitUpdate=(o,a)=>{if(!this.isDragging)return;let c=this.relevantEvents,l=this.hitDragging.initialHit,f=this.component.context,d=null,u=null,h=null,g=!1,m={affectedEvents:c,mutatedEvents:Ze(),isEvent:!0};if(o){d=o.context;let x=d.options;f===d||x.editable&&x.droppable?(u=i1(l,o,d.getCurrentData().pluginHooks.eventDragMutationMassagers),u&&(h=rs(c,d.getCurrentData().eventUiBases,u,d),m.mutatedEvents=h,xc(m,o.dateProfile,d)||(g=!0,u=null,h=null,m.mutatedEvents=Ze()))):d=null}this.displayDrag(d,m),g?Ni():Mi(),a||(f===d&&Pr(l,o)&&(u=null),this.dragging.setMirrorNeedsRevert(!u),this.dragging.setMirrorIsVisible(!o||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=d,this.validMutation=u,this.mutatedRelevantEvents=h)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=o=>{if(this.isDragging){let a=this.component.context,c=a.viewApi,{receivingContext:l,validMutation:f}=this,d=this.eventRange.def,u=this.eventRange.instance,h=new Ce(a,d,u),g=this.relevantEvents,m=this.mutatedRelevantEvents,{finalHit:x}=this.hitDragging;if(this.clearDrag(),a.emitter.trigger("eventDragStop",{el:this.subjectEl,event:h,jsEvent:o.origEvent,view:c}),f){if(l===a){let A=new Ce(a,m.defs[d.defId],u?m.instances[u.instanceId]:null);a.dispatch({type:"MERGE_EVENTS",eventStore:m});let p={oldEvent:h,event:A,relatedEvents:Kt(m,a,u),revert(){a.dispatch({type:"MERGE_EVENTS",eventStore:g})}},v={};for(let b of a.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(v,b(f,a));a.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},p),v),{el:o.subjectEl,delta:f.datesDelta,jsEvent:o.origEvent,view:c})),a.emitter.trigger("eventChange",p)}else if(l){let A={event:h,relatedEvents:Kt(g,a,u),revert(){a.dispatch({type:"MERGE_EVENTS",eventStore:g})}};a.emitter.trigger("eventLeave",Object.assign(Object.assign({},A),{draggedEl:o.subjectEl,view:c})),a.dispatch({type:"REMOVE_EVENTS",eventStore:g}),a.emitter.trigger("eventRemove",A);let p=m.defs[d.defId],v=m.instances[u.instanceId],b=new Ce(l,p,v);l.dispatch({type:"MERGE_EVENTS",eventStore:m});let E={event:b,relatedEvents:Kt(m,l,v),revert(){l.dispatch({type:"REMOVE_EVENTS",eventStore:m})}};l.emitter.trigger("eventAdd",E),o.isTouch&&l.dispatch({type:"SELECT_EVENT",eventInstanceId:u.instanceId}),l.emitter.trigger("drop",Object.assign(Object.assign({},h0(x.dateSpan,l)),{draggedEl:o.subjectEl,jsEvent:o.origEvent,view:x.context.viewApi})),l.emitter.trigger("eventReceive",Object.assign(Object.assign({},E),{draggedEl:o.subjectEl,view:x.context.viewApi}))}}else a.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:n}=this,{options:r}=n.context,i=this.dragging=new Fn(e.el);i.pointer.selector=On.SELECTOR,i.touchScrollAllowed=!1,i.autoScroller.isEnabled=r.dragScroll;let s=this.hitDragging=new Or(this.dragging,os);s.useSubjectCenter=e.useEventCenter,s.emitter.on("pointerdown",this.handlePointerDown),s.emitter.on("dragstart",this.handleDragStart),s.emitter.on("hitupdate",this.handleHitUpdate),s.emitter.on("pointerup",this.handlePointerUp),s.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(e,n){let r=this.component.context,i=this.receivingContext;i&&i!==e&&(i===r?i.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:n.affectedEvents,mutatedEvents:Ze(),isEvent:!0}}):i.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:n})}clearDrag(){let e=this.component.context,{receivingContext:n}=this;n&&n.dispatch({type:"UNSET_EVENT_DRAG"}),e!==n&&e.dispatch({type:"UNSET_EVENT_DRAG"})}cleanup(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null}}On.SELECTOR=".fc-event-draggable, .fc-event-resizable";function i1(t,e,n){let r=t.dateSpan,i=e.dateSpan,s=r.range.start,o=i.range.start,a={};r.allDay!==i.allDay&&(a.allDay=i.allDay,a.hasEnd=e.context.options.allDayMaintainDuration,i.allDay&&(s=Ee(s)));let c=fn(s,o,t.context.dateEnv,t.componentId===e.componentId?t.largeUnit:null);c.milliseconds&&(a.allDay=!1);let l={datesDelta:c,standardProps:a};for(let f of n)f(l,t,e);return l}function s1(t){let{options:e}=t.context,n=e.eventLongPressDelay;return n==null&&(n=e.longPressDelay),n}class o1 extends hn{constructor(e){super(e),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=s=>{let{component:o}=this,a=this.querySegEl(s),c=dn(a),l=this.eventRange=c.eventRange;this.dragging.minDistance=o.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(s.origEvent.target)||s.isTouch&&this.component.props.eventSelection!==l.instance.instanceId)},this.handleDragStart=s=>{let{context:o}=this.component,a=this.eventRange;this.relevantEvents=es(o.getCurrentData().eventStore,this.eventRange.instance.instanceId);let c=this.querySegEl(s);this.draggingSegEl=c,this.draggingSeg=dn(c),o.calendarApi.unselect(),o.emitter.trigger("eventResizeStart",{el:c,event:new Ce(o,a.def,a.instance),jsEvent:s.origEvent,view:o.viewApi})},this.handleHitUpdate=(s,o,a)=>{let{context:c}=this.component,l=this.relevantEvents,f=this.hitDragging.initialHit,d=this.eventRange.instance,u=null,h=null,g=!1,m={affectedEvents:l,mutatedEvents:Ze(),isEvent:!0};s&&(s.componentId===f.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(f,s)||(u=a1(f,s,a.subjectEl.classList.contains("fc-event-resizer-start"),d.range))),u&&(h=rs(l,c.getCurrentData().eventUiBases,u,c),m.mutatedEvents=h,xc(m,s.dateProfile,c)||(g=!0,u=null,h=null,m.mutatedEvents=null)),h?c.dispatch({type:"SET_EVENT_RESIZE",state:m}):c.dispatch({type:"UNSET_EVENT_RESIZE"}),g?Ni():Mi(),o||(u&&Pr(f,s)&&(u=null),this.validMutation=u,this.mutatedRelevantEvents=h)},this.handleDragEnd=s=>{let{context:o}=this.component,a=this.eventRange.def,c=this.eventRange.instance,l=new Ce(o,a,c),f=this.relevantEvents,d=this.mutatedRelevantEvents;if(o.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:l,jsEvent:s.origEvent,view:o.viewApi}),this.validMutation){let u=new Ce(o,d.defs[a.defId],c?d.instances[c.instanceId]:null);o.dispatch({type:"MERGE_EVENTS",eventStore:d});let h={oldEvent:l,event:u,relatedEvents:Kt(d,o,c),revert(){o.dispatch({type:"MERGE_EVENTS",eventStore:f})}};o.emitter.trigger("eventResize",Object.assign(Object.assign({},h),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||pe(0),endDelta:this.validMutation.endDelta||pe(0),jsEvent:s.origEvent,view:o.viewApi})),o.emitter.trigger("eventChange",h)}else o.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:n}=e,r=this.dragging=new Fn(e.el);r.pointer.selector=".fc-event-resizer",r.touchScrollAllowed=!1,r.autoScroller.isEnabled=n.context.options.dragScroll;let i=this.hitDragging=new Or(this.dragging,ss(e));i.emitter.on("pointerdown",this.handlePointerDown),i.emitter.on("dragstart",this.handleDragStart),i.emitter.on("hitupdate",this.handleHitUpdate),i.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(e){return Fe(e.subjectEl,".fc-event")}}function a1(t,e,n,r){let i=t.context.dateEnv,s=t.dateSpan.range.start,o=e.dateSpan.range.start,a=fn(s,o,i,t.largeUnit);if(n){if(i.add(r.start,a)<r.end)return{startDelta:a}}else if(i.add(r.end,a)>r.start)return{endDelta:a};return null}class l1{constructor(e){this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=r=>{r.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=r=>{let i=this.context.options.unselectCancel,s=il(r.origEvent);this.matchesCancel=!!Fe(s,i),this.matchesEvent=!!Fe(s,On.SELECTOR)},this.onDocumentPointerUp=r=>{let{context:i}=this,{documentPointer:s}=this,o=i.getCurrentData();if(!s.wasTouchScroll){if(o.dateSelection&&!this.isRecentPointerDateSelect){let a=i.options.unselectAuto;a&&(!a||!this.matchesCancel)&&i.calendarApi.unselect(r)}o.eventSelection&&!this.matchesEvent&&i.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let n=this.documentPointer=new l0(document);n.shouldIgnoreMove=!0,n.shouldWatchScroll=!1,n.emitter.on("pointerdown",this.onDocumentPointerDown),n.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}const c1={fixedMirrorParent:L},f1={dateClick:L,eventDragStart:L,eventDragStop:L,eventDrop:L,eventResizeStart:L,eventResizeStop:L,eventResize:L,drop:L,eventReceive:L,eventLeave:L};ms.dataAttrPrefix="";var u1=Et({name:"@fullcalendar/interaction",componentInteractions:[e1,t1,On,o1],calendarInteractions:[l1],elementDraggingImpl:Fn,optionRefiners:c1,listenerRefiners:f1}),ae=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function d1(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function h1(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var p1={exports:{}};function Pn(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ns={exports:{}};const g1=h1(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var p0;function he(){return p0||(p0=1,function(t,e){(function(n,r){t.exports=r()})(ae,function(){var n=n||function(r,i){var s;if(typeof window<"u"&&window.crypto&&(s=window.crypto),typeof self<"u"&&self.crypto&&(s=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(s=globalThis.crypto),!s&&typeof window<"u"&&window.msCrypto&&(s=window.msCrypto),!s&&typeof ae<"u"&&ae.crypto&&(s=ae.crypto),!s&&typeof Pn=="function")try{s=g1}catch{}var o=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function p(){}return function(v){var b;return p.prototype=v,b=new p,p.prototype=null,b}}(),c={},l=c.lib={},f=l.Base=function(){return{extend:function(p){var v=a(this);return p&&v.mixIn(p),(!v.hasOwnProperty("init")||this.init===v.init)&&(v.init=function(){v.$super.init.apply(this,arguments)}),v.init.prototype=v,v.$super=this,v},create:function(){var p=this.extend();return p.init.apply(p,arguments),p},init:function(){},mixIn:function(p){for(var v in p)p.hasOwnProperty(v)&&(this[v]=p[v]);p.hasOwnProperty("toString")&&(this.toString=p.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),d=l.WordArray=f.extend({init:function(p,v){p=this.words=p||[],v!=i?this.sigBytes=v:this.sigBytes=p.length*4},toString:function(p){return(p||h).stringify(this)},concat:function(p){var v=this.words,b=p.words,E=this.sigBytes,C=p.sigBytes;if(this.clamp(),E%4)for(var D=0;D<C;D++){var w=b[D>>>2]>>>24-D%4*8&255;v[E+D>>>2]|=w<<24-(E+D)%4*8}else for(var I=0;I<C;I+=4)v[E+I>>>2]=b[I>>>2];return this.sigBytes+=C,this},clamp:function(){var p=this.words,v=this.sigBytes;p[v>>>2]&=4294967295<<32-v%4*8,p.length=r.ceil(v/4)},clone:function(){var p=f.clone.call(this);return p.words=this.words.slice(0),p},random:function(p){for(var v=[],b=0;b<p;b+=4)v.push(o());return new d.init(v,p)}}),u=c.enc={},h=u.Hex={stringify:function(p){for(var v=p.words,b=p.sigBytes,E=[],C=0;C<b;C++){var D=v[C>>>2]>>>24-C%4*8&255;E.push((D>>>4).toString(16)),E.push((D&15).toString(16))}return E.join("")},parse:function(p){for(var v=p.length,b=[],E=0;E<v;E+=2)b[E>>>3]|=parseInt(p.substr(E,2),16)<<24-E%8*4;return new d.init(b,v/2)}},g=u.Latin1={stringify:function(p){for(var v=p.words,b=p.sigBytes,E=[],C=0;C<b;C++){var D=v[C>>>2]>>>24-C%4*8&255;E.push(String.fromCharCode(D))}return E.join("")},parse:function(p){for(var v=p.length,b=[],E=0;E<v;E++)b[E>>>2]|=(p.charCodeAt(E)&255)<<24-E%4*8;return new d.init(b,v)}},m=u.Utf8={stringify:function(p){try{return decodeURIComponent(escape(g.stringify(p)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(p){return g.parse(unescape(encodeURIComponent(p)))}},x=l.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new d.init,this._nDataBytes=0},_append:function(p){typeof p=="string"&&(p=m.parse(p)),this._data.concat(p),this._nDataBytes+=p.sigBytes},_process:function(p){var v,b=this._data,E=b.words,C=b.sigBytes,D=this.blockSize,w=D*4,I=C/w;p?I=r.ceil(I):I=r.max((I|0)-this._minBufferSize,0);var R=I*D,B=r.min(R*4,C);if(R){for(var P=0;P<R;P+=D)this._doProcessBlock(E,P);v=E.splice(0,R),b.sigBytes-=B}return new d.init(v,B)},clone:function(){var p=f.clone.call(this);return p._data=this._data.clone(),p},_minBufferSize:0});l.Hasher=x.extend({cfg:f.extend(),init:function(p){this.cfg=this.cfg.extend(p),this.reset()},reset:function(){x.reset.call(this),this._doReset()},update:function(p){return this._append(p),this._process(),this},finalize:function(p){p&&this._append(p);var v=this._doFinalize();return v},blockSize:16,_createHelper:function(p){return function(v,b){return new p.init(b).finalize(v)}},_createHmacHelper:function(p){return function(v,b){return new A.HMAC.init(p,b).finalize(v)}}});var A=c.algo={};return c}(Math);return n})}(Ns)),Ns.exports}var Ms={exports:{}},g0;function Hr(){return g0||(g0=1,function(t,e){(function(n,r){t.exports=r(he())})(ae,function(n){return function(r){var i=n,s=i.lib,o=s.Base,a=s.WordArray,c=i.x64={};c.Word=o.extend({init:function(l,f){this.high=l,this.low=f}}),c.WordArray=o.extend({init:function(l,f){l=this.words=l||[],f!=r?this.sigBytes=f:this.sigBytes=l.length*8},toX32:function(){for(var l=this.words,f=l.length,d=[],u=0;u<f;u++){var h=l[u];d.push(h.high),d.push(h.low)}return a.create(d,this.sigBytes)},clone:function(){for(var l=o.clone.call(this),f=l.words=this.words.slice(0),d=f.length,u=0;u<d;u++)f[u]=f[u].clone();return l}})}(),n})}(Ms)),Ms.exports}var Fs={exports:{}},v0;function v1(){return v0||(v0=1,function(t,e){(function(n,r){t.exports=r(he())})(ae,function(n){return function(){if(typeof ArrayBuffer=="function"){var r=n,i=r.lib,s=i.WordArray,o=s.init,a=s.init=function(c){if(c instanceof ArrayBuffer&&(c=new Uint8Array(c)),(c instanceof Int8Array||typeof Uint8ClampedArray<"u"&&c instanceof Uint8ClampedArray||c instanceof Int16Array||c instanceof Uint16Array||c instanceof Int32Array||c instanceof Uint32Array||c instanceof Float32Array||c instanceof Float64Array)&&(c=new Uint8Array(c.buffer,c.byteOffset,c.byteLength)),c instanceof Uint8Array){for(var l=c.byteLength,f=[],d=0;d<l;d++)f[d>>>2]|=c[d]<<24-d%4*8;o.call(this,f,l)}else o.apply(this,arguments)};a.prototype=s}}(),n.lib.WordArray})}(Fs)),Fs.exports}var Os={exports:{}},m0;function m1(){return m0||(m0=1,function(t,e){(function(n,r){t.exports=r(he())})(ae,function(n){return function(){var r=n,i=r.lib,s=i.WordArray,o=r.enc;o.Utf16=o.Utf16BE={stringify:function(c){for(var l=c.words,f=c.sigBytes,d=[],u=0;u<f;u+=2){var h=l[u>>>2]>>>16-u%4*8&65535;d.push(String.fromCharCode(h))}return d.join("")},parse:function(c){for(var l=c.length,f=[],d=0;d<l;d++)f[d>>>1]|=c.charCodeAt(d)<<16-d%2*16;return s.create(f,l*2)}},o.Utf16LE={stringify:function(c){for(var l=c.words,f=c.sigBytes,d=[],u=0;u<f;u+=2){var h=a(l[u>>>2]>>>16-u%4*8&65535);d.push(String.fromCharCode(h))}return d.join("")},parse:function(c){for(var l=c.length,f=[],d=0;d<l;d++)f[d>>>1]|=a(c.charCodeAt(d)<<16-d%2*16);return s.create(f,l*2)}};function a(c){return c<<8&4278255360|c>>>8&16711935}}(),n.enc.Utf16})}(Os)),Os.exports}var Ps={exports:{}},x0;function Mt(){return x0||(x0=1,function(t,e){(function(n,r){t.exports=r(he())})(ae,function(n){return function(){var r=n,i=r.lib,s=i.WordArray,o=r.enc;o.Base64={stringify:function(c){var l=c.words,f=c.sigBytes,d=this._map;c.clamp();for(var u=[],h=0;h<f;h+=3)for(var g=l[h>>>2]>>>24-h%4*8&255,m=l[h+1>>>2]>>>24-(h+1)%4*8&255,x=l[h+2>>>2]>>>24-(h+2)%4*8&255,A=g<<16|m<<8|x,p=0;p<4&&h+p*.75<f;p++)u.push(d.charAt(A>>>6*(3-p)&63));var v=d.charAt(64);if(v)for(;u.length%4;)u.push(v);return u.join("")},parse:function(c){var l=c.length,f=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var u=0;u<f.length;u++)d[f.charCodeAt(u)]=u}var h=f.charAt(64);if(h){var g=c.indexOf(h);g!==-1&&(l=g)}return a(c,l,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function a(c,l,f){for(var d=[],u=0,h=0;h<l;h++)if(h%4){var g=f[c.charCodeAt(h-1)]<<h%4*2,m=f[c.charCodeAt(h)]>>>6-h%4*2,x=g|m;d[u>>>2]|=x<<24-u%4*8,u++}return s.create(d,u)}}(),n.enc.Base64})}(Ps)),Ps.exports}var Hs={exports:{}},b0;function x1(){return b0||(b0=1,function(t,e){(function(n,r){t.exports=r(he())})(ae,function(n){return function(){var r=n,i=r.lib,s=i.WordArray,o=r.enc;o.Base64url={stringify:function(c,l){l===void 0&&(l=!0);var f=c.words,d=c.sigBytes,u=l?this._safe_map:this._map;c.clamp();for(var h=[],g=0;g<d;g+=3)for(var m=f[g>>>2]>>>24-g%4*8&255,x=f[g+1>>>2]>>>24-(g+1)%4*8&255,A=f[g+2>>>2]>>>24-(g+2)%4*8&255,p=m<<16|x<<8|A,v=0;v<4&&g+v*.75<d;v++)h.push(u.charAt(p>>>6*(3-v)&63));var b=u.charAt(64);if(b)for(;h.length%4;)h.push(b);return h.join("")},parse:function(c,l){l===void 0&&(l=!0);var f=c.length,d=l?this._safe_map:this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var h=0;h<d.length;h++)u[d.charCodeAt(h)]=h}var g=d.charAt(64);if(g){var m=c.indexOf(g);m!==-1&&(f=m)}return a(c,f,u)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function a(c,l,f){for(var d=[],u=0,h=0;h<l;h++)if(h%4){var g=f[c.charCodeAt(h-1)]<<h%4*2,m=f[c.charCodeAt(h)]>>>6-h%4*2,x=g|m;d[u>>>2]|=x<<24-u%4*8,u++}return s.create(d,u)}}(),n.enc.Base64url})}(Hs)),Hs.exports}var Ls={exports:{}},y0;function Ft(){return y0||(y0=1,function(t,e){(function(n,r){t.exports=r(he())})(ae,function(n){return function(r){var i=n,s=i.lib,o=s.WordArray,a=s.Hasher,c=i.algo,l=[];(function(){for(var m=0;m<64;m++)l[m]=r.abs(r.sin(m+1))*4294967296|0})();var f=c.MD5=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(m,x){for(var A=0;A<16;A++){var p=x+A,v=m[p];m[p]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}var b=this._hash.words,E=m[x+0],C=m[x+1],D=m[x+2],w=m[x+3],I=m[x+4],R=m[x+5],B=m[x+6],P=m[x+7],U=m[x+8],j=m[x+9],z=m[x+10],H=m[x+11],X=m[x+12],Y=m[x+13],te=m[x+14],ee=m[x+15],O=b[0],V=b[1],$=b[2],W=b[3];O=d(O,V,$,W,E,7,l[0]),W=d(W,O,V,$,C,12,l[1]),$=d($,W,O,V,D,17,l[2]),V=d(V,$,W,O,w,22,l[3]),O=d(O,V,$,W,I,7,l[4]),W=d(W,O,V,$,R,12,l[5]),$=d($,W,O,V,B,17,l[6]),V=d(V,$,W,O,P,22,l[7]),O=d(O,V,$,W,U,7,l[8]),W=d(W,O,V,$,j,12,l[9]),$=d($,W,O,V,z,17,l[10]),V=d(V,$,W,O,H,22,l[11]),O=d(O,V,$,W,X,7,l[12]),W=d(W,O,V,$,Y,12,l[13]),$=d($,W,O,V,te,17,l[14]),V=d(V,$,W,O,ee,22,l[15]),O=u(O,V,$,W,C,5,l[16]),W=u(W,O,V,$,B,9,l[17]),$=u($,W,O,V,H,14,l[18]),V=u(V,$,W,O,E,20,l[19]),O=u(O,V,$,W,R,5,l[20]),W=u(W,O,V,$,z,9,l[21]),$=u($,W,O,V,ee,14,l[22]),V=u(V,$,W,O,I,20,l[23]),O=u(O,V,$,W,j,5,l[24]),W=u(W,O,V,$,te,9,l[25]),$=u($,W,O,V,w,14,l[26]),V=u(V,$,W,O,U,20,l[27]),O=u(O,V,$,W,Y,5,l[28]),W=u(W,O,V,$,D,9,l[29]),$=u($,W,O,V,P,14,l[30]),V=u(V,$,W,O,X,20,l[31]),O=h(O,V,$,W,R,4,l[32]),W=h(W,O,V,$,U,11,l[33]),$=h($,W,O,V,H,16,l[34]),V=h(V,$,W,O,te,23,l[35]),O=h(O,V,$,W,C,4,l[36]),W=h(W,O,V,$,I,11,l[37]),$=h($,W,O,V,P,16,l[38]),V=h(V,$,W,O,z,23,l[39]),O=h(O,V,$,W,Y,4,l[40]),W=h(W,O,V,$,E,11,l[41]),$=h($,W,O,V,w,16,l[42]),V=h(V,$,W,O,B,23,l[43]),O=h(O,V,$,W,j,4,l[44]),W=h(W,O,V,$,X,11,l[45]),$=h($,W,O,V,ee,16,l[46]),V=h(V,$,W,O,D,23,l[47]),O=g(O,V,$,W,E,6,l[48]),W=g(W,O,V,$,P,10,l[49]),$=g($,W,O,V,te,15,l[50]),V=g(V,$,W,O,R,21,l[51]),O=g(O,V,$,W,X,6,l[52]),W=g(W,O,V,$,w,10,l[53]),$=g($,W,O,V,z,15,l[54]),V=g(V,$,W,O,C,21,l[55]),O=g(O,V,$,W,U,6,l[56]),W=g(W,O,V,$,ee,10,l[57]),$=g($,W,O,V,B,15,l[58]),V=g(V,$,W,O,Y,21,l[59]),O=g(O,V,$,W,I,6,l[60]),W=g(W,O,V,$,H,10,l[61]),$=g($,W,O,V,D,15,l[62]),V=g(V,$,W,O,j,21,l[63]),b[0]=b[0]+O|0,b[1]=b[1]+V|0,b[2]=b[2]+$|0,b[3]=b[3]+W|0},_doFinalize:function(){var m=this._data,x=m.words,A=this._nDataBytes*8,p=m.sigBytes*8;x[p>>>5]|=128<<24-p%32;var v=r.floor(A/4294967296),b=A;x[(p+64>>>9<<4)+15]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,x[(p+64>>>9<<4)+14]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,m.sigBytes=(x.length+1)*4,this._process();for(var E=this._hash,C=E.words,D=0;D<4;D++){var w=C[D];C[D]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360}return E},clone:function(){var m=a.clone.call(this);return m._hash=this._hash.clone(),m}});function d(m,x,A,p,v,b,E){var C=m+(x&A|~x&p)+v+E;return(C<<b|C>>>32-b)+x}function u(m,x,A,p,v,b,E){var C=m+(x&p|A&~p)+v+E;return(C<<b|C>>>32-b)+x}function h(m,x,A,p,v,b,E){var C=m+(x^A^p)+v+E;return(C<<b|C>>>32-b)+x}function g(m,x,A,p,v,b,E){var C=m+(A^(x|~p))+v+E;return(C<<b|C>>>32-b)+x}i.MD5=a._createHelper(f),i.HmacMD5=a._createHmacHelper(f)}(Math),n.MD5})}(Ls)),Ls.exports}var zs={exports:{}},E0;function A0(){return E0||(E0=1,function(t,e){(function(n,r){t.exports=r(he())})(ae,function(n){return function(){var r=n,i=r.lib,s=i.WordArray,o=i.Hasher,a=r.algo,c=[],l=a.SHA1=o.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(f,d){for(var u=this._hash.words,h=u[0],g=u[1],m=u[2],x=u[3],A=u[4],p=0;p<80;p++){if(p<16)c[p]=f[d+p]|0;else{var v=c[p-3]^c[p-8]^c[p-14]^c[p-16];c[p]=v<<1|v>>>31}var b=(h<<5|h>>>27)+A+c[p];p<20?b+=(g&m|~g&x)+1518500249:p<40?b+=(g^m^x)+1859775393:p<60?b+=(g&m|g&x|m&x)-1894007588:b+=(g^m^x)-899497514,A=x,x=m,m=g<<30|g>>>2,g=h,h=b}u[0]=u[0]+h|0,u[1]=u[1]+g|0,u[2]=u[2]+m|0,u[3]=u[3]+x|0,u[4]=u[4]+A|0},_doFinalize:function(){var f=this._data,d=f.words,u=this._nDataBytes*8,h=f.sigBytes*8;return d[h>>>5]|=128<<24-h%32,d[(h+64>>>9<<4)+14]=Math.floor(u/4294967296),d[(h+64>>>9<<4)+15]=u,f.sigBytes=d.length*4,this._process(),this._hash},clone:function(){var f=o.clone.call(this);return f._hash=this._hash.clone(),f}});r.SHA1=o._createHelper(l),r.HmacSHA1=o._createHmacHelper(l)}(),n.SHA1})}(zs)),zs.exports}var Us={exports:{}},C0;function Vs(){return C0||(C0=1,function(t,e){(function(n,r){t.exports=r(he())})(ae,function(n){return function(r){var i=n,s=i.lib,o=s.WordArray,a=s.Hasher,c=i.algo,l=[],f=[];(function(){function h(A){for(var p=r.sqrt(A),v=2;v<=p;v++)if(!(A%v))return!1;return!0}function g(A){return(A-(A|0))*4294967296|0}for(var m=2,x=0;x<64;)h(m)&&(x<8&&(l[x]=g(r.pow(m,1/2))),f[x]=g(r.pow(m,1/3)),x++),m++})();var d=[],u=c.SHA256=a.extend({_doReset:function(){this._hash=new o.init(l.slice(0))},_doProcessBlock:function(h,g){for(var m=this._hash.words,x=m[0],A=m[1],p=m[2],v=m[3],b=m[4],E=m[5],C=m[6],D=m[7],w=0;w<64;w++){if(w<16)d[w]=h[g+w]|0;else{var I=d[w-15],R=(I<<25|I>>>7)^(I<<14|I>>>18)^I>>>3,B=d[w-2],P=(B<<15|B>>>17)^(B<<13|B>>>19)^B>>>10;d[w]=R+d[w-7]+P+d[w-16]}var U=b&E^~b&C,j=x&A^x&p^A&p,z=(x<<30|x>>>2)^(x<<19|x>>>13)^(x<<10|x>>>22),H=(b<<26|b>>>6)^(b<<21|b>>>11)^(b<<7|b>>>25),X=D+H+U+f[w]+d[w],Y=z+j;D=C,C=E,E=b,b=v+X|0,v=p,p=A,A=x,x=X+Y|0}m[0]=m[0]+x|0,m[1]=m[1]+A|0,m[2]=m[2]+p|0,m[3]=m[3]+v|0,m[4]=m[4]+b|0,m[5]=m[5]+E|0,m[6]=m[6]+C|0,m[7]=m[7]+D|0},_doFinalize:function(){var h=this._data,g=h.words,m=this._nDataBytes*8,x=h.sigBytes*8;return g[x>>>5]|=128<<24-x%32,g[(x+64>>>9<<4)+14]=r.floor(m/4294967296),g[(x+64>>>9<<4)+15]=m,h.sigBytes=g.length*4,this._process(),this._hash},clone:function(){var h=a.clone.call(this);return h._hash=this._hash.clone(),h}});i.SHA256=a._createHelper(u),i.HmacSHA256=a._createHmacHelper(u)}(Math),n.SHA256})}(Us)),Us.exports}var Ws={exports:{}},w0;function b1(){return w0||(w0=1,function(t,e){(function(n,r,i){t.exports=r(he(),Vs())})(ae,function(n){return function(){var r=n,i=r.lib,s=i.WordArray,o=r.algo,a=o.SHA256,c=o.SHA224=a.extend({_doReset:function(){this._hash=new s.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var l=a._doFinalize.call(this);return l.sigBytes-=4,l}});r.SHA224=a._createHelper(c),r.HmacSHA224=a._createHmacHelper(c)}(),n.SHA224})}(Ws)),Ws.exports}var js={exports:{}},_0;function D0(){return _0||(_0=1,function(t,e){(function(n,r,i){t.exports=r(he(),Hr())})(ae,function(n){return function(){var r=n,i=r.lib,s=i.Hasher,o=r.x64,a=o.Word,c=o.WordArray,l=r.algo;function f(){return a.create.apply(a,arguments)}var d=[f(1116352408,3609767458),f(1899447441,602891725),f(3049323471,3964484399),f(3921009573,2173295548),f(961987163,4081628472),f(1508970993,3053834265),f(2453635748,2937671579),f(2870763221,3664609560),f(3624381080,2734883394),f(310598401,1164996542),f(607225278,1323610764),f(1426881987,3590304994),f(1925078388,4068182383),f(2162078206,991336113),f(2614888103,633803317),f(3248222580,3479774868),f(3835390401,2666613458),f(4022224774,944711139),f(264347078,2341262773),f(604807628,2007800933),f(770255983,1495990901),f(1249150122,1856431235),f(1555081692,3175218132),f(1996064986,2198950837),f(2554220882,3999719339),f(2821834349,766784016),f(2952996808,2566594879),f(3210313671,3203337956),f(3336571891,1034457026),f(3584528711,2466948901),f(113926993,3758326383),f(338241895,168717936),f(666307205,1188179964),f(773529912,1546045734),f(1294757372,1522805485),f(1396182291,2643833823),f(1695183700,2343527390),f(1986661051,1014477480),f(2177026350,1206759142),f(2456956037,344077627),f(2730485921,1290863460),f(2820302411,3158454273),f(3259730800,3505952657),f(3345764771,106217008),f(3516065817,3606008344),f(3600352804,1432725776),f(4094571909,1467031594),f(275423344,851169720),f(430227734,3100823752),f(506948616,1363258195),f(659060556,3750685593),f(883997877,3785050280),f(958139571,3318307427),f(1322822218,3812723403),f(1537002063,2003034995),f(1747873779,3602036899),f(1955562222,1575990012),f(2024104815,1125592928),f(2227730452,2716904306),f(2361852424,442776044),f(2428436474,593698344),f(2756734187,3733110249),f(3204031479,2999351573),f(3329325298,3815920427),f(3391569614,3928383900),f(3515267271,566280711),f(3940187606,3454069534),f(4118630271,4000239992),f(116418474,1914138554),f(174292421,2731055270),f(289380356,3203993006),f(460393269,320620315),f(685471733,587496836),f(852142971,1086792851),f(1017036298,365543100),f(1126000580,2618297676),f(1288033470,3409855158),f(1501505948,4234509866),f(1607167915,987167468),f(1816402316,1246189591)],u=[];(function(){for(var g=0;g<80;g++)u[g]=f()})();var h=l.SHA512=s.extend({_doReset:function(){this._hash=new c.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595),new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},_doProcessBlock:function(g,m){for(var x=this._hash.words,A=x[0],p=x[1],v=x[2],b=x[3],E=x[4],C=x[5],D=x[6],w=x[7],I=A.high,R=A.low,B=p.high,P=p.low,U=v.high,j=v.low,z=b.high,H=b.low,X=E.high,Y=E.low,te=C.high,ee=C.low,O=D.high,V=D.low,$=w.high,W=w.low,ue=I,ve=R,we=B,fe=P,ze=U,De=j,Ge=z,Xe=H,Ne=X,Ue=Y,Ke=te,tn=ee,nn=O,pt=V,rn=$,wt=W,Ve=0;Ve<80;Ve++){var We,ot,sn=u[Ve];if(Ve<16)ot=sn.high=g[m+Ve*2]|0,We=sn.low=g[m+Ve*2+1]|0;else{var Yn=u[Ve-15],_t=Yn.high,Ut=Yn.low,fi=(_t>>>1|Ut<<31)^(_t>>>8|Ut<<24)^_t>>>7,Qn=(Ut>>>1|_t<<31)^(Ut>>>8|_t<<24)^(Ut>>>7|_t<<25),Zn=u[Ve-2],Dt=Zn.high,Vt=Zn.low,ui=(Dt>>>19|Vt<<13)^(Dt<<3|Vt>>>29)^Dt>>>6,An=(Vt>>>19|Dt<<13)^(Vt<<3|Dt>>>29)^(Vt>>>6|Dt<<26),di=u[Ve-7],na=di.high,Xn=di.low,Kn=u[Ve-16],ra=Kn.high,at=Kn.low;We=Qn+Xn,ot=fi+na+(We>>>0<Qn>>>0?1:0),We=We+An,ot=ot+ui+(We>>>0<An>>>0?1:0),We=We+at,ot=ot+ra+(We>>>0<at>>>0?1:0),sn.high=ot,sn.low=We}var ia=Ne&Ke^~Ne&nn,hi=Ue&tn^~Ue&pt,pi=ue&we^ue&ze^we&ze,sa=ve&fe^ve&De^fe&De,oa=(ue>>>28|ve<<4)^(ue<<30|ve>>>2)^(ue<<25|ve>>>7),gi=(ve>>>28|ue<<4)^(ve<<30|ue>>>2)^(ve<<25|ue>>>7),aa=(Ne>>>14|Ue<<18)^(Ne>>>18|Ue<<14)^(Ne<<23|Ue>>>9),la=(Ue>>>14|Ne<<18)^(Ue>>>18|Ne<<14)^(Ue<<23|Ne>>>9),vi=d[Ve],ca=vi.high,mi=vi.low,je=wt+la,gt=rn+aa+(je>>>0<wt>>>0?1:0),je=je+hi,gt=gt+ia+(je>>>0<hi>>>0?1:0),je=je+mi,gt=gt+ca+(je>>>0<mi>>>0?1:0),je=je+We,gt=gt+ot+(je>>>0<We>>>0?1:0),Jn=gi+sa,fa=oa+pi+(Jn>>>0<gi>>>0?1:0);rn=nn,wt=pt,nn=Ke,pt=tn,Ke=Ne,tn=Ue,Ue=Xe+je|0,Ne=Ge+gt+(Ue>>>0<Xe>>>0?1:0)|0,Ge=ze,Xe=De,ze=we,De=fe,we=ue,fe=ve,ve=je+Jn|0,ue=gt+fa+(ve>>>0<je>>>0?1:0)|0}R=A.low=R+ve,A.high=I+ue+(R>>>0<ve>>>0?1:0),P=p.low=P+fe,p.high=B+we+(P>>>0<fe>>>0?1:0),j=v.low=j+De,v.high=U+ze+(j>>>0<De>>>0?1:0),H=b.low=H+Xe,b.high=z+Ge+(H>>>0<Xe>>>0?1:0),Y=E.low=Y+Ue,E.high=X+Ne+(Y>>>0<Ue>>>0?1:0),ee=C.low=ee+tn,C.high=te+Ke+(ee>>>0<tn>>>0?1:0),V=D.low=V+pt,D.high=O+nn+(V>>>0<pt>>>0?1:0),W=w.low=W+wt,w.high=$+rn+(W>>>0<wt>>>0?1:0)},_doFinalize:function(){var g=this._data,m=g.words,x=this._nDataBytes*8,A=g.sigBytes*8;m[A>>>5]|=128<<24-A%32,m[(A+128>>>10<<5)+30]=Math.floor(x/4294967296),m[(A+128>>>10<<5)+31]=x,g.sigBytes=m.length*4,this._process();var p=this._hash.toX32();return p},clone:function(){var g=s.clone.call(this);return g._hash=this._hash.clone(),g},blockSize:1024/32});r.SHA512=s._createHelper(h),r.HmacSHA512=s._createHmacHelper(h)}(),n.SHA512})}(js)),js.exports}var qs={exports:{}},S0;function y1(){return S0||(S0=1,function(t,e){(function(n,r,i){t.exports=r(he(),Hr(),D0())})(ae,function(n){return function(){var r=n,i=r.x64,s=i.Word,o=i.WordArray,a=r.algo,c=a.SHA512,l=a.SHA384=c.extend({_doReset:function(){this._hash=new o.init([new s.init(3418070365,3238371032),new s.init(1654270250,914150663),new s.init(2438529370,812702999),new s.init(355462360,4144912697),new s.init(1731405415,4290775857),new s.init(2394180231,1750603025),new s.init(3675008525,1694076839),new s.init(1203062813,3204075428)])},_doFinalize:function(){var f=c._doFinalize.call(this);return f.sigBytes-=16,f}});r.SHA384=c._createHelper(l),r.HmacSHA384=c._createHmacHelper(l)}(),n.SHA384})}(qs)),qs.exports}var $s={exports:{}},R0;function E1(){return R0||(R0=1,function(t,e){(function(n,r,i){t.exports=r(he(),Hr())})(ae,function(n){return function(r){var i=n,s=i.lib,o=s.WordArray,a=s.Hasher,c=i.x64,l=c.Word,f=i.algo,d=[],u=[],h=[];(function(){for(var x=1,A=0,p=0;p<24;p++){d[x+5*A]=(p+1)*(p+2)/2%64;var v=A%5,b=(2*x+3*A)%5;x=v,A=b}for(var x=0;x<5;x++)for(var A=0;A<5;A++)u[x+5*A]=A+(2*x+3*A)%5*5;for(var E=1,C=0;C<24;C++){for(var D=0,w=0,I=0;I<7;I++){if(E&1){var R=(1<<I)-1;R<32?w^=1<<R:D^=1<<R-32}E&128?E=E<<1^113:E<<=1}h[C]=l.create(D,w)}})();var g=[];(function(){for(var x=0;x<25;x++)g[x]=l.create()})();var m=f.SHA3=a.extend({cfg:a.cfg.extend({outputLength:512}),_doReset:function(){for(var x=this._state=[],A=0;A<25;A++)x[A]=new l.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(x,A){for(var p=this._state,v=this.blockSize/2,b=0;b<v;b++){var E=x[A+2*b],C=x[A+2*b+1];E=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360;var D=p[b];D.high^=C,D.low^=E}for(var w=0;w<24;w++){for(var I=0;I<5;I++){for(var R=0,B=0,P=0;P<5;P++){var D=p[I+5*P];R^=D.high,B^=D.low}var U=g[I];U.high=R,U.low=B}for(var I=0;I<5;I++)for(var j=g[(I+4)%5],z=g[(I+1)%5],H=z.high,X=z.low,R=j.high^(H<<1|X>>>31),B=j.low^(X<<1|H>>>31),P=0;P<5;P++){var D=p[I+5*P];D.high^=R,D.low^=B}for(var Y=1;Y<25;Y++){var R,B,D=p[Y],te=D.high,ee=D.low,O=d[Y];O<32?(R=te<<O|ee>>>32-O,B=ee<<O|te>>>32-O):(R=ee<<O-32|te>>>64-O,B=te<<O-32|ee>>>64-O);var V=g[u[Y]];V.high=R,V.low=B}var $=g[0],W=p[0];$.high=W.high,$.low=W.low;for(var I=0;I<5;I++)for(var P=0;P<5;P++){var Y=I+5*P,D=p[Y],ue=g[Y],ve=g[(I+1)%5+5*P],we=g[(I+2)%5+5*P];D.high=ue.high^~ve.high&we.high,D.low=ue.low^~ve.low&we.low}var D=p[0],fe=h[w];D.high^=fe.high,D.low^=fe.low}},_doFinalize:function(){var x=this._data,A=x.words;this._nDataBytes*8;var p=x.sigBytes*8,v=this.blockSize*32;A[p>>>5]|=1<<24-p%32,A[(r.ceil((p+1)/v)*v>>>5)-1]|=128,x.sigBytes=A.length*4,this._process();for(var b=this._state,E=this.cfg.outputLength/8,C=E/8,D=[],w=0;w<C;w++){var I=b[w],R=I.high,B=I.low;R=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,D.push(B),D.push(R)}return new o.init(D,E)},clone:function(){for(var x=a.clone.call(this),A=x._state=this._state.slice(0),p=0;p<25;p++)A[p]=A[p].clone();return x}});i.SHA3=a._createHelper(m),i.HmacSHA3=a._createHmacHelper(m)}(Math),n.SHA3})}($s)),$s.exports}var Gs={exports:{}},B0;function A1(){return B0||(B0=1,function(t,e){(function(n,r){t.exports=r(he())})(ae,function(n){/** @preserve
|
|
2
|
+
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
3
|
+
|
|
4
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
5
|
+
|
|
6
|
+
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
7
|
+
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
8
|
+
|
|
9
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
10
|
+
*/return function(r){var i=n,s=i.lib,o=s.WordArray,a=s.Hasher,c=i.algo,l=o.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),f=o.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),d=o.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=o.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),h=o.create([0,1518500249,1859775393,2400959708,2840853838]),g=o.create([1352829926,1548603684,1836072691,2053994217,0]),m=c.RIPEMD160=a.extend({_doReset:function(){this._hash=o.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(C,D){for(var w=0;w<16;w++){var I=D+w,R=C[I];C[I]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360}var B=this._hash.words,P=h.words,U=g.words,j=l.words,z=f.words,H=d.words,X=u.words,Y,te,ee,O,V,$,W,ue,ve,we;$=Y=B[0],W=te=B[1],ue=ee=B[2],ve=O=B[3],we=V=B[4];for(var fe,w=0;w<80;w+=1)fe=Y+C[D+j[w]]|0,w<16?fe+=x(te,ee,O)+P[0]:w<32?fe+=A(te,ee,O)+P[1]:w<48?fe+=p(te,ee,O)+P[2]:w<64?fe+=v(te,ee,O)+P[3]:fe+=b(te,ee,O)+P[4],fe=fe|0,fe=E(fe,H[w]),fe=fe+V|0,Y=V,V=O,O=E(ee,10),ee=te,te=fe,fe=$+C[D+z[w]]|0,w<16?fe+=b(W,ue,ve)+U[0]:w<32?fe+=v(W,ue,ve)+U[1]:w<48?fe+=p(W,ue,ve)+U[2]:w<64?fe+=A(W,ue,ve)+U[3]:fe+=x(W,ue,ve)+U[4],fe=fe|0,fe=E(fe,X[w]),fe=fe+we|0,$=we,we=ve,ve=E(ue,10),ue=W,W=fe;fe=B[1]+ee+ve|0,B[1]=B[2]+O+we|0,B[2]=B[3]+V+$|0,B[3]=B[4]+Y+W|0,B[4]=B[0]+te+ue|0,B[0]=fe},_doFinalize:function(){var C=this._data,D=C.words,w=this._nDataBytes*8,I=C.sigBytes*8;D[I>>>5]|=128<<24-I%32,D[(I+64>>>9<<4)+14]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,C.sigBytes=(D.length+1)*4,this._process();for(var R=this._hash,B=R.words,P=0;P<5;P++){var U=B[P];B[P]=(U<<8|U>>>24)&16711935|(U<<24|U>>>8)&4278255360}return R},clone:function(){var C=a.clone.call(this);return C._hash=this._hash.clone(),C}});function x(C,D,w){return C^D^w}function A(C,D,w){return C&D|~C&w}function p(C,D,w){return(C|~D)^w}function v(C,D,w){return C&w|D&~w}function b(C,D,w){return C^(D|~w)}function E(C,D){return C<<D|C>>>32-D}i.RIPEMD160=a._createHelper(m),i.HmacRIPEMD160=a._createHmacHelper(m)}(),n.RIPEMD160})}(Gs)),Gs.exports}var Ys={exports:{}},T0;function Qs(){return T0||(T0=1,function(t,e){(function(n,r){t.exports=r(he())})(ae,function(n){(function(){var r=n,i=r.lib,s=i.Base,o=r.enc,a=o.Utf8,c=r.algo;c.HMAC=s.extend({init:function(l,f){l=this._hasher=new l.init,typeof f=="string"&&(f=a.parse(f));var d=l.blockSize,u=d*4;f.sigBytes>u&&(f=l.finalize(f)),f.clamp();for(var h=this._oKey=f.clone(),g=this._iKey=f.clone(),m=h.words,x=g.words,A=0;A<d;A++)m[A]^=1549556828,x[A]^=909522486;h.sigBytes=g.sigBytes=u,this.reset()},reset:function(){var l=this._hasher;l.reset(),l.update(this._iKey)},update:function(l){return this._hasher.update(l),this},finalize:function(l){var f=this._hasher,d=f.finalize(l);f.reset();var u=f.finalize(this._oKey.clone().concat(d));return u}})})()})}(Ys)),Ys.exports}var Zs={exports:{}},k0;function C1(){return k0||(k0=1,function(t,e){(function(n,r,i){t.exports=r(he(),Vs(),Qs())})(ae,function(n){return function(){var r=n,i=r.lib,s=i.Base,o=i.WordArray,a=r.algo,c=a.SHA256,l=a.HMAC,f=a.PBKDF2=s.extend({cfg:s.extend({keySize:128/32,hasher:c,iterations:25e4}),init:function(d){this.cfg=this.cfg.extend(d)},compute:function(d,u){for(var h=this.cfg,g=l.create(h.hasher,d),m=o.create(),x=o.create([1]),A=m.words,p=x.words,v=h.keySize,b=h.iterations;A.length<v;){var E=g.update(u).finalize(x);g.reset();for(var C=E.words,D=C.length,w=E,I=1;I<b;I++){w=g.finalize(w),g.reset();for(var R=w.words,B=0;B<D;B++)C[B]^=R[B]}m.concat(E),p[0]++}return m.sigBytes=v*4,m}});r.PBKDF2=function(d,u,h){return f.create(h).compute(d,u)}}(),n.PBKDF2})}(Zs)),Zs.exports}var Xs={exports:{}},I0;function Ot(){return I0||(I0=1,function(t,e){(function(n,r,i){t.exports=r(he(),A0(),Qs())})(ae,function(n){return function(){var r=n,i=r.lib,s=i.Base,o=i.WordArray,a=r.algo,c=a.MD5,l=a.EvpKDF=s.extend({cfg:s.extend({keySize:128/32,hasher:c,iterations:1}),init:function(f){this.cfg=this.cfg.extend(f)},compute:function(f,d){for(var u,h=this.cfg,g=h.hasher.create(),m=o.create(),x=m.words,A=h.keySize,p=h.iterations;x.length<A;){u&&g.update(u),u=g.update(f).finalize(d),g.reset();for(var v=1;v<p;v++)u=g.finalize(u),g.reset();m.concat(u)}return m.sigBytes=A*4,m}});r.EvpKDF=function(f,d,u){return l.create(u).compute(f,d)}}(),n.EvpKDF})}(Xs)),Xs.exports}var Ks={exports:{}},N0;function ke(){return N0||(N0=1,function(t,e){(function(n,r,i){t.exports=r(he(),Ot())})(ae,function(n){n.lib.Cipher||function(r){var i=n,s=i.lib,o=s.Base,a=s.WordArray,c=s.BufferedBlockAlgorithm,l=i.enc;l.Utf8;var f=l.Base64,d=i.algo,u=d.EvpKDF,h=s.Cipher=c.extend({cfg:o.extend(),createEncryptor:function(R,B){return this.create(this._ENC_XFORM_MODE,R,B)},createDecryptor:function(R,B){return this.create(this._DEC_XFORM_MODE,R,B)},init:function(R,B,P){this.cfg=this.cfg.extend(P),this._xformMode=R,this._key=B,this.reset()},reset:function(){c.reset.call(this),this._doReset()},process:function(R){return this._append(R),this._process()},finalize:function(R){R&&this._append(R);var B=this._doFinalize();return B},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function R(B){return typeof B=="string"?I:C}return function(B){return{encrypt:function(P,U,j){return R(U).encrypt(B,P,U,j)},decrypt:function(P,U,j){return R(U).decrypt(B,P,U,j)}}}}()});s.StreamCipher=h.extend({_doFinalize:function(){var R=this._process(!0);return R},blockSize:1});var g=i.mode={},m=s.BlockCipherMode=o.extend({createEncryptor:function(R,B){return this.Encryptor.create(R,B)},createDecryptor:function(R,B){return this.Decryptor.create(R,B)},init:function(R,B){this._cipher=R,this._iv=B}}),x=g.CBC=function(){var R=m.extend();R.Encryptor=R.extend({processBlock:function(P,U){var j=this._cipher,z=j.blockSize;B.call(this,P,U,z),j.encryptBlock(P,U),this._prevBlock=P.slice(U,U+z)}}),R.Decryptor=R.extend({processBlock:function(P,U){var j=this._cipher,z=j.blockSize,H=P.slice(U,U+z);j.decryptBlock(P,U),B.call(this,P,U,z),this._prevBlock=H}});function B(P,U,j){var z,H=this._iv;H?(z=H,this._iv=r):z=this._prevBlock;for(var X=0;X<j;X++)P[U+X]^=z[X]}return R}(),A=i.pad={},p=A.Pkcs7={pad:function(R,B){for(var P=B*4,U=P-R.sigBytes%P,j=U<<24|U<<16|U<<8|U,z=[],H=0;H<U;H+=4)z.push(j);var X=a.create(z,U);R.concat(X)},unpad:function(R){var B=R.words[R.sigBytes-1>>>2]&255;R.sigBytes-=B}};s.BlockCipher=h.extend({cfg:h.cfg.extend({mode:x,padding:p}),reset:function(){var R;h.reset.call(this);var B=this.cfg,P=B.iv,U=B.mode;this._xformMode==this._ENC_XFORM_MODE?R=U.createEncryptor:(R=U.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==R?this._mode.init(this,P&&P.words):(this._mode=R.call(U,this,P&&P.words),this._mode.__creator=R)},_doProcessBlock:function(R,B){this._mode.processBlock(R,B)},_doFinalize:function(){var R,B=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(B.pad(this._data,this.blockSize),R=this._process(!0)):(R=this._process(!0),B.unpad(R)),R},blockSize:128/32});var v=s.CipherParams=o.extend({init:function(R){this.mixIn(R)},toString:function(R){return(R||this.formatter).stringify(this)}}),b=i.format={},E=b.OpenSSL={stringify:function(R){var B,P=R.ciphertext,U=R.salt;return U?B=a.create([1398893684,1701076831]).concat(U).concat(P):B=P,B.toString(f)},parse:function(R){var B,P=f.parse(R),U=P.words;return U[0]==1398893684&&U[1]==1701076831&&(B=a.create(U.slice(2,4)),U.splice(0,4),P.sigBytes-=16),v.create({ciphertext:P,salt:B})}},C=s.SerializableCipher=o.extend({cfg:o.extend({format:E}),encrypt:function(R,B,P,U){U=this.cfg.extend(U);var j=R.createEncryptor(P,U),z=j.finalize(B),H=j.cfg;return v.create({ciphertext:z,key:P,iv:H.iv,algorithm:R,mode:H.mode,padding:H.padding,blockSize:R.blockSize,formatter:U.format})},decrypt:function(R,B,P,U){U=this.cfg.extend(U),B=this._parse(B,U.format);var j=R.createDecryptor(P,U).finalize(B.ciphertext);return j},_parse:function(R,B){return typeof R=="string"?B.parse(R,this):R}}),D=i.kdf={},w=D.OpenSSL={execute:function(R,B,P,U,j){if(U||(U=a.random(64/8)),j)var z=u.create({keySize:B+P,hasher:j}).compute(R,U);else var z=u.create({keySize:B+P}).compute(R,U);var H=a.create(z.words.slice(B),P*4);return z.sigBytes=B*4,v.create({key:z,iv:H,salt:U})}},I=s.PasswordBasedCipher=C.extend({cfg:C.cfg.extend({kdf:w}),encrypt:function(R,B,P,U){U=this.cfg.extend(U);var j=U.kdf.execute(P,R.keySize,R.ivSize,U.salt,U.hasher);U.iv=j.iv;var z=C.encrypt.call(this,R,B,j.key,U);return z.mixIn(j),z},decrypt:function(R,B,P,U){U=this.cfg.extend(U),B=this._parse(B,U.format);var j=U.kdf.execute(P,R.keySize,R.ivSize,B.salt,U.hasher);U.iv=j.iv;var z=C.decrypt.call(this,R,B,j.key,U);return z}})}()})}(Ks)),Ks.exports}var Js={exports:{}},M0;function w1(){return M0||(M0=1,function(t,e){(function(n,r,i){t.exports=r(he(),ke())})(ae,function(n){return n.mode.CFB=function(){var r=n.lib.BlockCipherMode.extend();r.Encryptor=r.extend({processBlock:function(s,o){var a=this._cipher,c=a.blockSize;i.call(this,s,o,c,a),this._prevBlock=s.slice(o,o+c)}}),r.Decryptor=r.extend({processBlock:function(s,o){var a=this._cipher,c=a.blockSize,l=s.slice(o,o+c);i.call(this,s,o,c,a),this._prevBlock=l}});function i(s,o,a,c){var l,f=this._iv;f?(l=f.slice(0),this._iv=void 0):l=this._prevBlock,c.encryptBlock(l,0);for(var d=0;d<a;d++)s[o+d]^=l[d]}return r}(),n.mode.CFB})}(Js)),Js.exports}var eo={exports:{}},F0;function _1(){return F0||(F0=1,function(t,e){(function(n,r,i){t.exports=r(he(),ke())})(ae,function(n){return n.mode.CTR=function(){var r=n.lib.BlockCipherMode.extend(),i=r.Encryptor=r.extend({processBlock:function(s,o){var a=this._cipher,c=a.blockSize,l=this._iv,f=this._counter;l&&(f=this._counter=l.slice(0),this._iv=void 0);var d=f.slice(0);a.encryptBlock(d,0),f[c-1]=f[c-1]+1|0;for(var u=0;u<c;u++)s[o+u]^=d[u]}});return r.Decryptor=i,r}(),n.mode.CTR})}(eo)),eo.exports}var to={exports:{}},O0;function D1(){return O0||(O0=1,function(t,e){(function(n,r,i){t.exports=r(he(),ke())})(ae,function(n){/** @preserve
|
|
11
|
+
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
12
|
+
* derived from CryptoJS.mode.CTR
|
|
13
|
+
* Jan Hruby jhruby.web@gmail.com
|
|
14
|
+
*/return n.mode.CTRGladman=function(){var r=n.lib.BlockCipherMode.extend();function i(a){if((a>>24&255)===255){var c=a>>16&255,l=a>>8&255,f=a&255;c===255?(c=0,l===255?(l=0,f===255?f=0:++f):++l):++c,a=0,a+=c<<16,a+=l<<8,a+=f}else a+=1<<24;return a}function s(a){return(a[0]=i(a[0]))===0&&(a[1]=i(a[1])),a}var o=r.Encryptor=r.extend({processBlock:function(a,c){var l=this._cipher,f=l.blockSize,d=this._iv,u=this._counter;d&&(u=this._counter=d.slice(0),this._iv=void 0),s(u);var h=u.slice(0);l.encryptBlock(h,0);for(var g=0;g<f;g++)a[c+g]^=h[g]}});return r.Decryptor=o,r}(),n.mode.CTRGladman})}(to)),to.exports}var no={exports:{}},P0;function S1(){return P0||(P0=1,function(t,e){(function(n,r,i){t.exports=r(he(),ke())})(ae,function(n){return n.mode.OFB=function(){var r=n.lib.BlockCipherMode.extend(),i=r.Encryptor=r.extend({processBlock:function(s,o){var a=this._cipher,c=a.blockSize,l=this._iv,f=this._keystream;l&&(f=this._keystream=l.slice(0),this._iv=void 0),a.encryptBlock(f,0);for(var d=0;d<c;d++)s[o+d]^=f[d]}});return r.Decryptor=i,r}(),n.mode.OFB})}(no)),no.exports}var ro={exports:{}},H0;function L0(){return H0||(H0=1,function(t,e){(function(n,r,i){t.exports=r(he(),ke())})(ae,function(n){return n.mode.ECB=function(){var r=n.lib.BlockCipherMode.extend();return r.Encryptor=r.extend({processBlock:function(i,s){this._cipher.encryptBlock(i,s)}}),r.Decryptor=r.extend({processBlock:function(i,s){this._cipher.decryptBlock(i,s)}}),r}(),n.mode.ECB})}(ro)),ro.exports}var io={exports:{}},z0;function R1(){return z0||(z0=1,function(t,e){(function(n,r,i){t.exports=r(he(),ke())})(ae,function(n){return n.pad.AnsiX923={pad:function(r,i){var s=r.sigBytes,o=i*4,a=o-s%o,c=s+a-1;r.clamp(),r.words[c>>>2]|=a<<24-c%4*8,r.sigBytes+=a},unpad:function(r){var i=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=i}},n.pad.Ansix923})}(io)),io.exports}var so={exports:{}},U0;function B1(){return U0||(U0=1,function(t,e){(function(n,r,i){t.exports=r(he(),ke())})(ae,function(n){return n.pad.Iso10126={pad:function(r,i){var s=i*4,o=s-r.sigBytes%s;r.concat(n.lib.WordArray.random(o-1)).concat(n.lib.WordArray.create([o<<24],1))},unpad:function(r){var i=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=i}},n.pad.Iso10126})}(so)),so.exports}var oo={exports:{}},V0;function T1(){return V0||(V0=1,function(t,e){(function(n,r,i){t.exports=r(he(),ke())})(ae,function(n){return n.pad.Iso97971={pad:function(r,i){r.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(r,i)},unpad:function(r){n.pad.ZeroPadding.unpad(r),r.sigBytes--}},n.pad.Iso97971})}(oo)),oo.exports}var ao={exports:{}},W0;function k1(){return W0||(W0=1,function(t,e){(function(n,r,i){t.exports=r(he(),ke())})(ae,function(n){return n.pad.ZeroPadding={pad:function(r,i){var s=i*4;r.clamp(),r.sigBytes+=s-(r.sigBytes%s||s)},unpad:function(r){for(var i=r.words,s=r.sigBytes-1,s=r.sigBytes-1;s>=0;s--)if(i[s>>>2]>>>24-s%4*8&255){r.sigBytes=s+1;break}}},n.pad.ZeroPadding})}(ao)),ao.exports}var lo={exports:{}},j0;function I1(){return j0||(j0=1,function(t,e){(function(n,r,i){t.exports=r(he(),ke())})(ae,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})}(lo)),lo.exports}var co={exports:{}},q0;function N1(){return q0||(q0=1,function(t,e){(function(n,r,i){t.exports=r(he(),ke())})(ae,function(n){return function(r){var i=n,s=i.lib,o=s.CipherParams,a=i.enc,c=a.Hex,l=i.format;l.Hex={stringify:function(f){return f.ciphertext.toString(c)},parse:function(f){var d=c.parse(f);return o.create({ciphertext:d})}}}(),n.format.Hex})}(co)),co.exports}var fo={exports:{}},$0;function G0(){return $0||($0=1,function(t,e){(function(n,r,i){t.exports=r(he(),Mt(),Ft(),Ot(),ke())})(ae,function(n){return function(){var r=n,i=r.lib,s=i.BlockCipher,o=r.algo,a=[],c=[],l=[],f=[],d=[],u=[],h=[],g=[],m=[],x=[];(function(){for(var v=[],b=0;b<256;b++)b<128?v[b]=b<<1:v[b]=b<<1^283;for(var E=0,C=0,b=0;b<256;b++){var D=C^C<<1^C<<2^C<<3^C<<4;D=D>>>8^D&255^99,a[E]=D,c[D]=E;var w=v[E],I=v[w],R=v[I],B=v[D]*257^D*16843008;l[E]=B<<24|B>>>8,f[E]=B<<16|B>>>16,d[E]=B<<8|B>>>24,u[E]=B;var B=R*16843009^I*65537^w*257^E*16843008;h[D]=B<<24|B>>>8,g[D]=B<<16|B>>>16,m[D]=B<<8|B>>>24,x[D]=B,E?(E=w^v[v[v[R^w]]],C^=v[v[C]]):E=C=1}})();var A=[0,1,2,4,8,16,32,64,128,27,54],p=o.AES=s.extend({_doReset:function(){var v;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var b=this._keyPriorReset=this._key,E=b.words,C=b.sigBytes/4,D=this._nRounds=C+6,w=(D+1)*4,I=this._keySchedule=[],R=0;R<w;R++)R<C?I[R]=E[R]:(v=I[R-1],R%C?C>6&&R%C==4&&(v=a[v>>>24]<<24|a[v>>>16&255]<<16|a[v>>>8&255]<<8|a[v&255]):(v=v<<8|v>>>24,v=a[v>>>24]<<24|a[v>>>16&255]<<16|a[v>>>8&255]<<8|a[v&255],v^=A[R/C|0]<<24),I[R]=I[R-C]^v);for(var B=this._invKeySchedule=[],P=0;P<w;P++){var R=w-P;if(P%4)var v=I[R];else var v=I[R-4];P<4||R<=4?B[P]=v:B[P]=h[a[v>>>24]]^g[a[v>>>16&255]]^m[a[v>>>8&255]]^x[a[v&255]]}}},encryptBlock:function(v,b){this._doCryptBlock(v,b,this._keySchedule,l,f,d,u,a)},decryptBlock:function(v,b){var E=v[b+1];v[b+1]=v[b+3],v[b+3]=E,this._doCryptBlock(v,b,this._invKeySchedule,h,g,m,x,c);var E=v[b+1];v[b+1]=v[b+3],v[b+3]=E},_doCryptBlock:function(v,b,E,C,D,w,I,R){for(var B=this._nRounds,P=v[b]^E[0],U=v[b+1]^E[1],j=v[b+2]^E[2],z=v[b+3]^E[3],H=4,X=1;X<B;X++){var Y=C[P>>>24]^D[U>>>16&255]^w[j>>>8&255]^I[z&255]^E[H++],te=C[U>>>24]^D[j>>>16&255]^w[z>>>8&255]^I[P&255]^E[H++],ee=C[j>>>24]^D[z>>>16&255]^w[P>>>8&255]^I[U&255]^E[H++],O=C[z>>>24]^D[P>>>16&255]^w[U>>>8&255]^I[j&255]^E[H++];P=Y,U=te,j=ee,z=O}var Y=(R[P>>>24]<<24|R[U>>>16&255]<<16|R[j>>>8&255]<<8|R[z&255])^E[H++],te=(R[U>>>24]<<24|R[j>>>16&255]<<16|R[z>>>8&255]<<8|R[P&255])^E[H++],ee=(R[j>>>24]<<24|R[z>>>16&255]<<16|R[P>>>8&255]<<8|R[U&255])^E[H++],O=(R[z>>>24]<<24|R[P>>>16&255]<<16|R[U>>>8&255]<<8|R[j&255])^E[H++];v[b]=Y,v[b+1]=te,v[b+2]=ee,v[b+3]=O},keySize:256/32});r.AES=s._createHelper(p)}(),n.AES})}(fo)),fo.exports}var uo={exports:{}},Y0;function M1(){return Y0||(Y0=1,function(t,e){(function(n,r,i){t.exports=r(he(),Mt(),Ft(),Ot(),ke())})(ae,function(n){return function(){var r=n,i=r.lib,s=i.WordArray,o=i.BlockCipher,a=r.algo,c=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],l=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],f=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],d=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=a.DES=o.extend({_doReset:function(){for(var A=this._key,p=A.words,v=[],b=0;b<56;b++){var E=c[b]-1;v[b]=p[E>>>5]>>>31-E%32&1}for(var C=this._subKeys=[],D=0;D<16;D++){for(var w=C[D]=[],I=f[D],b=0;b<24;b++)w[b/6|0]|=v[(l[b]-1+I)%28]<<31-b%6,w[4+(b/6|0)]|=v[28+(l[b+24]-1+I)%28]<<31-b%6;w[0]=w[0]<<1|w[0]>>>31;for(var b=1;b<7;b++)w[b]=w[b]>>>(b-1)*4+3;w[7]=w[7]<<5|w[7]>>>27}for(var R=this._invSubKeys=[],b=0;b<16;b++)R[b]=C[15-b]},encryptBlock:function(A,p){this._doCryptBlock(A,p,this._subKeys)},decryptBlock:function(A,p){this._doCryptBlock(A,p,this._invSubKeys)},_doCryptBlock:function(A,p,v){this._lBlock=A[p],this._rBlock=A[p+1],g.call(this,4,252645135),g.call(this,16,65535),m.call(this,2,858993459),m.call(this,8,16711935),g.call(this,1,1431655765);for(var b=0;b<16;b++){for(var E=v[b],C=this._lBlock,D=this._rBlock,w=0,I=0;I<8;I++)w|=d[I][((D^E[I])&u[I])>>>0];this._lBlock=D,this._rBlock=C^w}var R=this._lBlock;this._lBlock=this._rBlock,this._rBlock=R,g.call(this,1,1431655765),m.call(this,8,16711935),m.call(this,2,858993459),g.call(this,16,65535),g.call(this,4,252645135),A[p]=this._lBlock,A[p+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function g(A,p){var v=(this._lBlock>>>A^this._rBlock)&p;this._rBlock^=v,this._lBlock^=v<<A}function m(A,p){var v=(this._rBlock>>>A^this._lBlock)&p;this._lBlock^=v,this._rBlock^=v<<A}r.DES=o._createHelper(h);var x=a.TripleDES=o.extend({_doReset:function(){var A=this._key,p=A.words;if(p.length!==2&&p.length!==4&&p.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var v=p.slice(0,2),b=p.length<4?p.slice(0,2):p.slice(2,4),E=p.length<6?p.slice(0,2):p.slice(4,6);this._des1=h.createEncryptor(s.create(v)),this._des2=h.createEncryptor(s.create(b)),this._des3=h.createEncryptor(s.create(E))},encryptBlock:function(A,p){this._des1.encryptBlock(A,p),this._des2.decryptBlock(A,p),this._des3.encryptBlock(A,p)},decryptBlock:function(A,p){this._des3.decryptBlock(A,p),this._des2.encryptBlock(A,p),this._des1.decryptBlock(A,p)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=o._createHelper(x)}(),n.TripleDES})}(uo)),uo.exports}var ho={exports:{}},Q0;function F1(){return Q0||(Q0=1,function(t,e){(function(n,r,i){t.exports=r(he(),Mt(),Ft(),Ot(),ke())})(ae,function(n){return function(){var r=n,i=r.lib,s=i.StreamCipher,o=r.algo,a=o.RC4=s.extend({_doReset:function(){for(var f=this._key,d=f.words,u=f.sigBytes,h=this._S=[],g=0;g<256;g++)h[g]=g;for(var g=0,m=0;g<256;g++){var x=g%u,A=d[x>>>2]>>>24-x%4*8&255;m=(m+h[g]+A)%256;var p=h[g];h[g]=h[m],h[m]=p}this._i=this._j=0},_doProcessBlock:function(f,d){f[d]^=c.call(this)},keySize:256/32,ivSize:0});function c(){for(var f=this._S,d=this._i,u=this._j,h=0,g=0;g<4;g++){d=(d+1)%256,u=(u+f[d])%256;var m=f[d];f[d]=f[u],f[u]=m,h|=f[(f[d]+f[u])%256]<<24-g*8}return this._i=d,this._j=u,h}r.RC4=s._createHelper(a);var l=o.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var f=this.cfg.drop;f>0;f--)c.call(this)}});r.RC4Drop=s._createHelper(l)}(),n.RC4})}(ho)),ho.exports}var po={exports:{}},Z0;function O1(){return Z0||(Z0=1,function(t,e){(function(n,r,i){t.exports=r(he(),Mt(),Ft(),Ot(),ke())})(ae,function(n){return function(){var r=n,i=r.lib,s=i.StreamCipher,o=r.algo,a=[],c=[],l=[],f=o.Rabbit=s.extend({_doReset:function(){for(var u=this._key.words,h=this.cfg.iv,g=0;g<4;g++)u[g]=(u[g]<<8|u[g]>>>24)&16711935|(u[g]<<24|u[g]>>>8)&4278255360;var m=this._X=[u[0],u[3]<<16|u[2]>>>16,u[1],u[0]<<16|u[3]>>>16,u[2],u[1]<<16|u[0]>>>16,u[3],u[2]<<16|u[1]>>>16],x=this._C=[u[2]<<16|u[2]>>>16,u[0]&4294901760|u[1]&65535,u[3]<<16|u[3]>>>16,u[1]&4294901760|u[2]&65535,u[0]<<16|u[0]>>>16,u[2]&4294901760|u[3]&65535,u[1]<<16|u[1]>>>16,u[3]&4294901760|u[0]&65535];this._b=0;for(var g=0;g<4;g++)d.call(this);for(var g=0;g<8;g++)x[g]^=m[g+4&7];if(h){var A=h.words,p=A[0],v=A[1],b=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,E=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,C=b>>>16|E&4294901760,D=E<<16|b&65535;x[0]^=b,x[1]^=C,x[2]^=E,x[3]^=D,x[4]^=b,x[5]^=C,x[6]^=E,x[7]^=D;for(var g=0;g<4;g++)d.call(this)}},_doProcessBlock:function(u,h){var g=this._X;d.call(this),a[0]=g[0]^g[5]>>>16^g[3]<<16,a[1]=g[2]^g[7]>>>16^g[5]<<16,a[2]=g[4]^g[1]>>>16^g[7]<<16,a[3]=g[6]^g[3]>>>16^g[1]<<16;for(var m=0;m<4;m++)a[m]=(a[m]<<8|a[m]>>>24)&16711935|(a[m]<<24|a[m]>>>8)&4278255360,u[h+m]^=a[m]},blockSize:128/32,ivSize:64/32});function d(){for(var u=this._X,h=this._C,g=0;g<8;g++)c[g]=h[g];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0<c[0]>>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0<c[1]>>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0<c[2]>>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0<c[3]>>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0<c[4]>>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0<c[5]>>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0<c[6]>>>0?1:0)|0,this._b=h[7]>>>0<c[7]>>>0?1:0;for(var g=0;g<8;g++){var m=u[g]+h[g],x=m&65535,A=m>>>16,p=((x*x>>>17)+x*A>>>15)+A*A,v=((m&4294901760)*m|0)+((m&65535)*m|0);l[g]=p^v}u[0]=l[0]+(l[7]<<16|l[7]>>>16)+(l[6]<<16|l[6]>>>16)|0,u[1]=l[1]+(l[0]<<8|l[0]>>>24)+l[7]|0,u[2]=l[2]+(l[1]<<16|l[1]>>>16)+(l[0]<<16|l[0]>>>16)|0,u[3]=l[3]+(l[2]<<8|l[2]>>>24)+l[1]|0,u[4]=l[4]+(l[3]<<16|l[3]>>>16)+(l[2]<<16|l[2]>>>16)|0,u[5]=l[5]+(l[4]<<8|l[4]>>>24)+l[3]|0,u[6]=l[6]+(l[5]<<16|l[5]>>>16)+(l[4]<<16|l[4]>>>16)|0,u[7]=l[7]+(l[6]<<8|l[6]>>>24)+l[5]|0}r.Rabbit=s._createHelper(f)}(),n.Rabbit})}(po)),po.exports}var go={exports:{}},X0;function P1(){return X0||(X0=1,function(t,e){(function(n,r,i){t.exports=r(he(),Mt(),Ft(),Ot(),ke())})(ae,function(n){return function(){var r=n,i=r.lib,s=i.StreamCipher,o=r.algo,a=[],c=[],l=[],f=o.RabbitLegacy=s.extend({_doReset:function(){var u=this._key.words,h=this.cfg.iv,g=this._X=[u[0],u[3]<<16|u[2]>>>16,u[1],u[0]<<16|u[3]>>>16,u[2],u[1]<<16|u[0]>>>16,u[3],u[2]<<16|u[1]>>>16],m=this._C=[u[2]<<16|u[2]>>>16,u[0]&4294901760|u[1]&65535,u[3]<<16|u[3]>>>16,u[1]&4294901760|u[2]&65535,u[0]<<16|u[0]>>>16,u[2]&4294901760|u[3]&65535,u[1]<<16|u[1]>>>16,u[3]&4294901760|u[0]&65535];this._b=0;for(var x=0;x<4;x++)d.call(this);for(var x=0;x<8;x++)m[x]^=g[x+4&7];if(h){var A=h.words,p=A[0],v=A[1],b=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,E=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,C=b>>>16|E&4294901760,D=E<<16|b&65535;m[0]^=b,m[1]^=C,m[2]^=E,m[3]^=D,m[4]^=b,m[5]^=C,m[6]^=E,m[7]^=D;for(var x=0;x<4;x++)d.call(this)}},_doProcessBlock:function(u,h){var g=this._X;d.call(this),a[0]=g[0]^g[5]>>>16^g[3]<<16,a[1]=g[2]^g[7]>>>16^g[5]<<16,a[2]=g[4]^g[1]>>>16^g[7]<<16,a[3]=g[6]^g[3]>>>16^g[1]<<16;for(var m=0;m<4;m++)a[m]=(a[m]<<8|a[m]>>>24)&16711935|(a[m]<<24|a[m]>>>8)&4278255360,u[h+m]^=a[m]},blockSize:128/32,ivSize:64/32});function d(){for(var u=this._X,h=this._C,g=0;g<8;g++)c[g]=h[g];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0<c[0]>>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0<c[1]>>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0<c[2]>>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0<c[3]>>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0<c[4]>>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0<c[5]>>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0<c[6]>>>0?1:0)|0,this._b=h[7]>>>0<c[7]>>>0?1:0;for(var g=0;g<8;g++){var m=u[g]+h[g],x=m&65535,A=m>>>16,p=((x*x>>>17)+x*A>>>15)+A*A,v=((m&4294901760)*m|0)+((m&65535)*m|0);l[g]=p^v}u[0]=l[0]+(l[7]<<16|l[7]>>>16)+(l[6]<<16|l[6]>>>16)|0,u[1]=l[1]+(l[0]<<8|l[0]>>>24)+l[7]|0,u[2]=l[2]+(l[1]<<16|l[1]>>>16)+(l[0]<<16|l[0]>>>16)|0,u[3]=l[3]+(l[2]<<8|l[2]>>>24)+l[1]|0,u[4]=l[4]+(l[3]<<16|l[3]>>>16)+(l[2]<<16|l[2]>>>16)|0,u[5]=l[5]+(l[4]<<8|l[4]>>>24)+l[3]|0,u[6]=l[6]+(l[5]<<16|l[5]>>>16)+(l[4]<<16|l[4]>>>16)|0,u[7]=l[7]+(l[6]<<8|l[6]>>>24)+l[5]|0}r.RabbitLegacy=s._createHelper(f)}(),n.RabbitLegacy})}(go)),go.exports}var vo={exports:{}},K0;function H1(){return K0||(K0=1,function(t,e){(function(n,r,i){t.exports=r(he(),Mt(),Ft(),Ot(),ke())})(ae,function(n){return function(){var r=n,i=r.lib,s=i.BlockCipher,o=r.algo;const a=16,c=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],l=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var f={pbox:[],sbox:[]};function d(x,A){let p=A>>24&255,v=A>>16&255,b=A>>8&255,E=A&255,C=x.sbox[0][p]+x.sbox[1][v];return C=C^x.sbox[2][b],C=C+x.sbox[3][E],C}function u(x,A,p){let v=A,b=p,E;for(let C=0;C<a;++C)v=v^x.pbox[C],b=d(x,v)^b,E=v,v=b,b=E;return E=v,v=b,b=E,b=b^x.pbox[a],v=v^x.pbox[a+1],{left:v,right:b}}function h(x,A,p){let v=A,b=p,E;for(let C=a+1;C>1;--C)v=v^x.pbox[C],b=d(x,v)^b,E=v,v=b,b=E;return E=v,v=b,b=E,b=b^x.pbox[1],v=v^x.pbox[0],{left:v,right:b}}function g(x,A,p){for(let D=0;D<4;D++){x.sbox[D]=[];for(let w=0;w<256;w++)x.sbox[D][w]=l[D][w]}let v=0;for(let D=0;D<a+2;D++)x.pbox[D]=c[D]^A[v],v++,v>=p&&(v=0);let b=0,E=0,C=0;for(let D=0;D<a+2;D+=2)C=u(x,b,E),b=C.left,E=C.right,x.pbox[D]=b,x.pbox[D+1]=E;for(let D=0;D<4;D++)for(let w=0;w<256;w+=2)C=u(x,b,E),b=C.left,E=C.right,x.sbox[D][w]=b,x.sbox[D][w+1]=E;return!0}var m=o.Blowfish=s.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var x=this._keyPriorReset=this._key,A=x.words,p=x.sigBytes/4;g(f,A,p)}},encryptBlock:function(x,A){var p=u(f,x[A],x[A+1]);x[A]=p.left,x[A+1]=p.right},decryptBlock:function(x,A){var p=h(f,x[A],x[A+1]);x[A]=p.left,x[A+1]=p.right},blockSize:64/32,keySize:128/32,ivSize:64/32});r.Blowfish=s._createHelper(m)}(),n.Blowfish})}(vo)),vo.exports}(function(t,e){(function(n,r,i){t.exports=r(he(),Hr(),v1(),m1(),Mt(),x1(),Ft(),A0(),Vs(),b1(),D0(),y1(),E1(),A1(),Qs(),C1(),Ot(),ke(),w1(),_1(),D1(),S1(),L0(),R1(),B1(),T1(),k1(),I1(),N1(),G0(),M1(),F1(),O1(),P1(),H1())})(ae,function(n){return n})})(p1);var J0={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(ae,function(){var n=1e3,r=6e4,i=36e5,s="millisecond",o="second",a="minute",c="hour",l="day",f="week",d="month",u="quarter",h="year",g="date",m="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(j){var z=["th","st","nd","rd"],H=j%100;return"["+j+(z[(H-20)%10]||z[H]||z[0])+"]"}},v=function(j,z,H){var X=String(j);return!X||X.length>=z?j:""+Array(z+1-X.length).join(H)+j},b={s:v,z:function(j){var z=-j.utcOffset(),H=Math.abs(z),X=Math.floor(H/60),Y=H%60;return(z<=0?"+":"-")+v(X,2,"0")+":"+v(Y,2,"0")},m:function j(z,H){if(z.date()<H.date())return-j(H,z);var X=12*(H.year()-z.year())+(H.month()-z.month()),Y=z.clone().add(X,d),te=H-Y<0,ee=z.clone().add(X+(te?-1:1),d);return+(-(X+(H-Y)/(te?Y-ee:ee-Y))||0)},a:function(j){return j<0?Math.ceil(j)||0:Math.floor(j)},p:function(j){return{M:d,y:h,w:f,d:l,D:g,h:c,m:a,s:o,ms:s,Q:u}[j]||String(j||"").toLowerCase().replace(/s$/,"")},u:function(j){return j===void 0}},E="en",C={};C[E]=p;var D="$isDayjsObject",w=function(j){return j instanceof P||!(!j||!j[D])},I=function j(z,H,X){var Y;if(!z)return E;if(typeof z=="string"){var te=z.toLowerCase();C[te]&&(Y=te),H&&(C[te]=H,Y=te);var ee=z.split("-");if(!Y&&ee.length>1)return j(ee[0])}else{var O=z.name;C[O]=z,Y=O}return!X&&Y&&(E=Y),Y||!X&&E},R=function(j,z){if(w(j))return j.clone();var H=typeof z=="object"?z:{};return H.date=j,H.args=arguments,new P(H)},B=b;B.l=I,B.i=w,B.w=function(j,z){return R(j,{locale:z.$L,utc:z.$u,x:z.$x,$offset:z.$offset})};var P=function(){function j(H){this.$L=I(H.locale,null,!0),this.parse(H),this.$x=this.$x||H.x||{},this[D]=!0}var z=j.prototype;return z.parse=function(H){this.$d=function(X){var Y=X.date,te=X.utc;if(Y===null)return new Date(NaN);if(B.u(Y))return new Date;if(Y instanceof Date)return new Date(Y);if(typeof Y=="string"&&!/Z$/i.test(Y)){var ee=Y.match(x);if(ee){var O=ee[2]-1||0,V=(ee[7]||"0").substring(0,3);return te?new Date(Date.UTC(ee[1],O,ee[3]||1,ee[4]||0,ee[5]||0,ee[6]||0,V)):new Date(ee[1],O,ee[3]||1,ee[4]||0,ee[5]||0,ee[6]||0,V)}}return new Date(Y)}(H),this.init()},z.init=function(){var H=this.$d;this.$y=H.getFullYear(),this.$M=H.getMonth(),this.$D=H.getDate(),this.$W=H.getDay(),this.$H=H.getHours(),this.$m=H.getMinutes(),this.$s=H.getSeconds(),this.$ms=H.getMilliseconds()},z.$utils=function(){return B},z.isValid=function(){return this.$d.toString()!==m},z.isSame=function(H,X){var Y=R(H);return this.startOf(X)<=Y&&Y<=this.endOf(X)},z.isAfter=function(H,X){return R(H)<this.startOf(X)},z.isBefore=function(H,X){return this.endOf(X)<R(H)},z.$g=function(H,X,Y){return B.u(H)?this[X]:this.set(Y,H)},z.unix=function(){return Math.floor(this.valueOf()/1e3)},z.valueOf=function(){return this.$d.getTime()},z.startOf=function(H,X){var Y=this,te=!!B.u(X)||X,ee=B.p(H),O=function(ze,De){var Ge=B.w(Y.$u?Date.UTC(Y.$y,De,ze):new Date(Y.$y,De,ze),Y);return te?Ge:Ge.endOf(l)},V=function(ze,De){return B.w(Y.toDate()[ze].apply(Y.toDate("s"),(te?[0,0,0,0]:[23,59,59,999]).slice(De)),Y)},$=this.$W,W=this.$M,ue=this.$D,ve="set"+(this.$u?"UTC":"");switch(ee){case h:return te?O(1,0):O(31,11);case d:return te?O(1,W):O(0,W+1);case f:var we=this.$locale().weekStart||0,fe=($<we?$+7:$)-we;return O(te?ue-fe:ue+(6-fe),W);case l:case g:return V(ve+"Hours",0);case c:return V(ve+"Minutes",1);case a:return V(ve+"Seconds",2);case o:return V(ve+"Milliseconds",3);default:return this.clone()}},z.endOf=function(H){return this.startOf(H,!1)},z.$set=function(H,X){var Y,te=B.p(H),ee="set"+(this.$u?"UTC":""),O=(Y={},Y[l]=ee+"Date",Y[g]=ee+"Date",Y[d]=ee+"Month",Y[h]=ee+"FullYear",Y[c]=ee+"Hours",Y[a]=ee+"Minutes",Y[o]=ee+"Seconds",Y[s]=ee+"Milliseconds",Y)[te],V=te===l?this.$D+(X-this.$W):X;if(te===d||te===h){var $=this.clone().set(g,1);$.$d[O](V),$.init(),this.$d=$.set(g,Math.min(this.$D,$.daysInMonth())).$d}else O&&this.$d[O](V);return this.init(),this},z.set=function(H,X){return this.clone().$set(H,X)},z.get=function(H){return this[B.p(H)]()},z.add=function(H,X){var Y,te=this;H=Number(H);var ee=B.p(X),O=function(W){var ue=R(te);return B.w(ue.date(ue.date()+Math.round(W*H)),te)};if(ee===d)return this.set(d,this.$M+H);if(ee===h)return this.set(h,this.$y+H);if(ee===l)return O(1);if(ee===f)return O(7);var V=(Y={},Y[a]=r,Y[c]=i,Y[o]=n,Y)[ee]||1,$=this.$d.getTime()+H*V;return B.w($,this)},z.subtract=function(H,X){return this.add(-1*H,X)},z.format=function(H){var X=this,Y=this.$locale();if(!this.isValid())return Y.invalidDate||m;var te=H||"YYYY-MM-DDTHH:mm:ssZ",ee=B.z(this),O=this.$H,V=this.$m,$=this.$M,W=Y.weekdays,ue=Y.months,ve=Y.meridiem,we=function(De,Ge,Xe,Ne){return De&&(De[Ge]||De(X,te))||Xe[Ge].slice(0,Ne)},fe=function(De){return B.s(O%12||12,De,"0")},ze=ve||function(De,Ge,Xe){var Ne=De<12?"AM":"PM";return Xe?Ne.toLowerCase():Ne};return te.replace(A,function(De,Ge){return Ge||function(Xe){switch(Xe){case"YY":return String(X.$y).slice(-2);case"YYYY":return B.s(X.$y,4,"0");case"M":return $+1;case"MM":return B.s($+1,2,"0");case"MMM":return we(Y.monthsShort,$,ue,3);case"MMMM":return we(ue,$);case"D":return X.$D;case"DD":return B.s(X.$D,2,"0");case"d":return String(X.$W);case"dd":return we(Y.weekdaysMin,X.$W,W,2);case"ddd":return we(Y.weekdaysShort,X.$W,W,3);case"dddd":return W[X.$W];case"H":return String(O);case"HH":return B.s(O,2,"0");case"h":return fe(1);case"hh":return fe(2);case"a":return ze(O,V,!0);case"A":return ze(O,V,!1);case"m":return String(V);case"mm":return B.s(V,2,"0");case"s":return String(X.$s);case"ss":return B.s(X.$s,2,"0");case"SSS":return B.s(X.$ms,3,"0");case"Z":return ee}return null}(De)||ee.replace(":","")})},z.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},z.diff=function(H,X,Y){var te,ee=this,O=B.p(X),V=R(H),$=(V.utcOffset()-this.utcOffset())*r,W=this-V,ue=function(){return B.m(ee,V)};switch(O){case h:te=ue()/12;break;case d:te=ue();break;case u:te=ue()/3;break;case f:te=(W-$)/6048e5;break;case l:te=(W-$)/864e5;break;case c:te=W/i;break;case a:te=W/r;break;case o:te=W/n;break;default:te=W}return Y?te:B.a(te)},z.daysInMonth=function(){return this.endOf(d).$D},z.$locale=function(){return C[this.$L]},z.locale=function(H,X){if(!H)return this.$L;var Y=this.clone(),te=I(H,X,!0);return te&&(Y.$L=te),Y},z.clone=function(){return B.w(this.$d,this)},z.toDate=function(){return new Date(this.valueOf())},z.toJSON=function(){return this.isValid()?this.toISOString():null},z.toISOString=function(){return this.$d.toISOString()},z.toString=function(){return this.$d.toUTCString()},j}(),U=P.prototype;return R.prototype=U,[["$ms",s],["$s",o],["$m",a],["$H",c],["$W",l],["$M",d],["$y",h],["$D",g]].forEach(function(j){U[j[1]]=function(z){return this.$g(z,j[0],j[1])}}),R.extend=function(j,z){return j.$i||(j(z,P,R),j.$i=!0),R},R.locale=I,R.isDayjs=w,R.unix=function(j){return R(1e3*j)},R.en=C[E],R.Ls=C,R.p={},R})})(J0);var L1=J0.exports;const Re=d1(L1);var ef=function(){if(typeof Map<"u")return Map;function t(e,n){var r=-1;return e.some(function(i,s){return i[0]===n?(r=s,!0):!1}),r}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(n){var r=t(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},e.prototype.set=function(n,r){var i=t(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},e.prototype.delete=function(n){var r=this.__entries__,i=t(r,n);~i&&r.splice(i,1)},e.prototype.has=function(n){return!!~t(this.__entries__,n)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,s=this.__entries__;i<s.length;i++){var o=s[i];n.call(r,o[1],o[0])}},e}()}(),mo=typeof window<"u"&&typeof document<"u"&&window.document===document,Lr=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),z1=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Lr):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)}}(),U1=2;function V1(t,e){var n=!1,r=!1,i=0;function s(){n&&(n=!1,t()),r&&a()}function o(){z1(s)}function a(){var c=Date.now();if(n){if(c-i<U1)return;r=!0}else n=!0,r=!1,setTimeout(o,e);i=c}return a}var W1=20,j1=["top","right","bottom","left","width","height","size","weight"],q1=typeof MutationObserver<"u",$1=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=V1(this.refresh.bind(this),W1)}return t.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},t.prototype.removeObserver=function(e){var n=this.observers_,r=n.indexOf(e);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},t.prototype.updateObservers_=function(){var e=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return e.forEach(function(n){return n.broadcastActive()}),e.length>0},t.prototype.connect_=function(){!mo||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),q1?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){!mo||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(e){var n=e.propertyName,r=n===void 0?"":n,i=j1.some(function(s){return!!~r.indexOf(s)});i&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),tf=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},vn=function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||Lr},nf=Ur(0,0,0,0);function zr(t){return parseFloat(t)||0}function rf(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(r,i){var s=t["border-"+i+"-width"];return r+zr(s)},0)}function G1(t){for(var e=["top","right","bottom","left"],n={},r=0,i=e;r<i.length;r++){var s=i[r],o=t["padding-"+s];n[s]=zr(o)}return n}function Y1(t){var e=t.getBBox();return Ur(0,0,e.width,e.height)}function Q1(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return nf;var r=vn(t).getComputedStyle(t),i=G1(r),s=i.left+i.right,o=i.top+i.bottom,a=zr(r.width),c=zr(r.height);if(r.boxSizing==="border-box"&&(Math.round(a+s)!==e&&(a-=rf(r,"left","right")+s),Math.round(c+o)!==n&&(c-=rf(r,"top","bottom")+o)),!X1(t)){var l=Math.round(a+s)-e,f=Math.round(c+o)-n;Math.abs(l)!==1&&(a-=l),Math.abs(f)!==1&&(c-=f)}return Ur(i.left,i.top,a,c)}var Z1=function(){return typeof SVGGraphicsElement<"u"?function(t){return t instanceof vn(t).SVGGraphicsElement}:function(t){return t instanceof vn(t).SVGElement&&typeof t.getBBox=="function"}}();function X1(t){return t===vn(t).document.documentElement}function K1(t){return mo?Z1(t)?Y1(t):Q1(t):nf}function J1(t){var e=t.x,n=t.y,r=t.width,i=t.height,s=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,o=Object.create(s.prototype);return tf(o,{x:e,y:n,width:r,height:i,top:n,right:e+r,bottom:i+n,left:e}),o}function Ur(t,e,n,r){return{x:t,y:e,width:n,height:r}}var ex=function(){function t(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Ur(0,0,0,0),this.target=e}return t.prototype.isActive=function(){var e=K1(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},t}(),tx=function(){function t(e,n){var r=J1(n);tf(this,{target:e,contentRect:r})}return t}(),nx=function(){function t(e,n,r){if(this.activeObservations_=[],this.observations_=new ef,typeof e!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=n,this.callbackCtx_=r}return t.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof vn(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)||(n.set(e,new ex(e)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof vn(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)&&(n.delete(e),n.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&e.activeObservations_.push(n)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new tx(r.target,r.broadcastRect())});this.callback_.call(e,n,e),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),sf=typeof WeakMap<"u"?new WeakMap:new ef,of=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=$1.getInstance(),r=new nx(e,n,this);sf.set(this,r)}return t}();["observe","unobserve","disconnect"].forEach(function(t){of.prototype[t]=function(){var e;return(e=sf.get(this))[t].apply(e,arguments)}}),function(){return typeof Lr.ResizeObserver<"u"?Lr.ResizeObserver:of}(),G0(),Mt();var rx={exports:{}};(function(t,e){(function(n,r){t.exports=r(he())})(ae,function(n){return n.enc.Utf8})})(rx),Ft(),L0();var ix={exports:{}};(function(t,e){(function(n,r,i){t.exports=r(he(),ke())})(ae,function(n){return n.pad.Pkcs7})})(ix);function sx(t){var e=[],n="";for(n in t)e.push(n);return e}function af(t){return t=JSON.stringify(t),!(typeof t!="string"||!/^\{[\s\S]*\}$/.test(t))}function ox(t){return t instanceof Array}function ax(t){return Array.prototype.slice.call(t)}function Hn(){if(!(this instanceof Hn))return new Hn}Hn.prototype={get:function(t){for(var e=t+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var i=n[r];i.charAt(0)==" ";)i=i.substring(1,i.length);if(i.indexOf(e)==0)return decodeURI(i.substring(e.length,i.length))}return!1},set:function(t,e,n){if(af(t))for(const r in t)this.set(r,t[r],e,n);else if(typeof t=="string"){const r=af(n)?n:{expires:n},i=r.path!==void 0?`;path=${r.path};path=/`:";path=/",s=r.domain?`;domain=${r.domain}`:"",o=r.secure?";secure":"";let a=r.expires!==void 0?r.expires:"";typeof a=="string"&&a!==""?a=new Date(a):typeof a=="number"&&(a=new Date(+new Date+1e3*60*60*24*a)),a!==""&&"toGMTString"in a&&(a=`;expires=${a.toGMTString()}`);const c=r.sameSite?`;SameSite=${r.sameSite}`:"";document.cookie=`${t}=${encodeURI(e)+a+i+s+o+c}`}},remove:function(t){t=ox(t)?t:ax(arguments);for(var e=0,n=t.length;e<n;e++)this.set(t[e],"",-1);return t},clear:function(t){return t?this.remove(t):this.remove(sx(this.all()))},all:function(){if(document.cookie==="")return{};for(var t=document.cookie.split("; "),e={},n=0,r=t.length;n<r;n++){var i=t[n].split("=");e[decodeURI(i[0])]=decodeURI(i[1])}return e}};for(const t in Hn.prototype)Hn.prototype[t];var lx={exports:{}};/*!
|
|
15
|
+
localForage -- Offline Storage, Improved
|
|
16
|
+
Version 1.10.0
|
|
17
|
+
https://localforage.github.io/localForage
|
|
18
|
+
(c) 2013-2017 Mozilla, Apache License 2.0
|
|
19
|
+
*/(function(t,e){(function(n){t.exports=n()})(function(){return function n(r,i,s){function o(l,f){if(!i[l]){if(!r[l]){var d=typeof Pn=="function"&&Pn;if(!f&&d)return d(l,!0);if(a)return a(l,!0);var u=new Error("Cannot find module '"+l+"'");throw u.code="MODULE_NOT_FOUND",u}var h=i[l]={exports:{}};r[l][0].call(h.exports,function(g){var m=r[l][1][g];return o(m||g)},h,h.exports,n,r,i,s)}return i[l].exports}for(var a=typeof Pn=="function"&&Pn,c=0;c<s.length;c++)o(s[c]);return o}({1:[function(n,r,i){(function(s){var o=s.MutationObserver||s.WebKitMutationObserver,a;if(o){var c=0,l=new o(g),f=s.document.createTextNode("");l.observe(f,{characterData:!0}),a=function(){f.data=c=++c%2}}else if(!s.setImmediate&&typeof s.MessageChannel<"u"){var d=new s.MessageChannel;d.port1.onmessage=g,a=function(){d.port2.postMessage(0)}}else"document"in s&&"onreadystatechange"in s.document.createElement("script")?a=function(){var x=s.document.createElement("script");x.onreadystatechange=function(){g(),x.onreadystatechange=null,x.parentNode.removeChild(x),x=null},s.document.documentElement.appendChild(x)}:a=function(){setTimeout(g,0)};var u,h=[];function g(){u=!0;for(var x,A,p=h.length;p;){for(A=h,h=[],x=-1;++x<p;)A[x]();p=h.length}u=!1}r.exports=m;function m(x){h.push(x)===1&&!u&&a()}}).call(this,typeof ae<"u"?ae:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(n,r,i){var s=n(1);function o(){}var a={},c=["REJECTED"],l=["FULFILLED"],f=["PENDING"];r.exports=d;function d(E){if(typeof E!="function")throw new TypeError("resolver must be a function");this.state=f,this.queue=[],this.outcome=void 0,E!==o&&m(this,E)}d.prototype.catch=function(E){return this.then(null,E)},d.prototype.then=function(E,C){if(typeof E!="function"&&this.state===l||typeof C!="function"&&this.state===c)return this;var D=new this.constructor(o);if(this.state!==f){var w=this.state===l?E:C;h(D,w,this.outcome)}else this.queue.push(new u(D,E,C));return D};function u(E,C,D){this.promise=E,typeof C=="function"&&(this.onFulfilled=C,this.callFulfilled=this.otherCallFulfilled),typeof D=="function"&&(this.onRejected=D,this.callRejected=this.otherCallRejected)}u.prototype.callFulfilled=function(E){a.resolve(this.promise,E)},u.prototype.otherCallFulfilled=function(E){h(this.promise,this.onFulfilled,E)},u.prototype.callRejected=function(E){a.reject(this.promise,E)},u.prototype.otherCallRejected=function(E){h(this.promise,this.onRejected,E)};function h(E,C,D){s(function(){var w;try{w=C(D)}catch(I){return a.reject(E,I)}w===E?a.reject(E,new TypeError("Cannot resolve promise with itself")):a.resolve(E,w)})}a.resolve=function(E,C){var D=x(g,C);if(D.status==="error")return a.reject(E,D.value);var w=D.value;if(w)m(E,w);else{E.state=l,E.outcome=C;for(var I=-1,R=E.queue.length;++I<R;)E.queue[I].callFulfilled(C)}return E},a.reject=function(E,C){E.state=c,E.outcome=C;for(var D=-1,w=E.queue.length;++D<w;)E.queue[D].callRejected(C);return E};function g(E){var C=E&&E.then;if(E&&(typeof E=="object"||typeof E=="function")&&typeof C=="function")return function(){C.apply(E,arguments)}}function m(E,C){var D=!1;function w(P){D||(D=!0,a.reject(E,P))}function I(P){D||(D=!0,a.resolve(E,P))}function R(){C(I,w)}var B=x(R);B.status==="error"&&w(B.value)}function x(E,C){var D={};try{D.value=E(C),D.status="success"}catch(w){D.status="error",D.value=w}return D}d.resolve=A;function A(E){return E instanceof this?E:a.resolve(new this(o),E)}d.reject=p;function p(E){var C=new this(o);return a.reject(C,E)}d.all=v;function v(E){var C=this;if(Object.prototype.toString.call(E)!=="[object Array]")return this.reject(new TypeError("must be an array"));var D=E.length,w=!1;if(!D)return this.resolve([]);for(var I=new Array(D),R=0,B=-1,P=new this(o);++B<D;)U(E[B],B);return P;function U(j,z){C.resolve(j).then(H,function(X){w||(w=!0,a.reject(P,X))});function H(X){I[z]=X,++R===D&&!w&&(w=!0,a.resolve(P,I))}}}d.race=b;function b(E){var C=this;if(Object.prototype.toString.call(E)!=="[object Array]")return this.reject(new TypeError("must be an array"));var D=E.length,w=!1;if(!D)return this.resolve([]);for(var I=-1,R=new this(o);++I<D;)B(E[I]);return R;function B(P){C.resolve(P).then(function(U){w||(w=!0,a.resolve(R,U))},function(U){w||(w=!0,a.reject(R,U))})}}},{1:1}],3:[function(n,r,i){(function(s){typeof s.Promise!="function"&&(s.Promise=n(2))}).call(this,typeof ae<"u"?ae:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(n,r,i){var s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y};function o(y,k){if(!(y instanceof k))throw new TypeError("Cannot call a class as a function")}function a(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var c=a();function l(){try{if(!c||!c.open)return!1;var y=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),k=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!y||k)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function f(y,k){y=y||[],k=k||{};try{return new Blob(y,k)}catch(N){if(N.name!=="TypeError")throw N;for(var _=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,M=new _,F=0;F<y.length;F+=1)M.append(y[F]);return M.getBlob(k.type)}}typeof Promise>"u"&&n(3);var d=Promise;function u(y,k){k&&y.then(function(_){k(null,_)},function(_){k(_)})}function h(y,k,_){typeof k=="function"&&y.then(k),typeof _=="function"&&y.catch(_)}function g(y){return typeof y!="string"&&(console.warn(y+" used as a key, but it is not a string."),y=String(y)),y}function m(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var x="local-forage-detect-blob-support",A=void 0,p={},v=Object.prototype.toString,b="readonly",E="readwrite";function C(y){for(var k=y.length,_=new ArrayBuffer(k),M=new Uint8Array(_),F=0;F<k;F++)M[F]=y.charCodeAt(F);return _}function D(y){return new d(function(k){var _=y.transaction(x,E),M=f([""]);_.objectStore(x).put(M,"key"),_.onabort=function(F){F.preventDefault(),F.stopPropagation(),k(!1)},_.oncomplete=function(){var F=navigator.userAgent.match(/Chrome\/(\d+)/),N=navigator.userAgent.match(/Edge\//);k(N||!F||parseInt(F[1],10)>=43)}}).catch(function(){return!1})}function w(y){return typeof A=="boolean"?d.resolve(A):D(y).then(function(k){return A=k,A})}function I(y){var k=p[y.name],_={};_.promise=new d(function(M,F){_.resolve=M,_.reject=F}),k.deferredOperations.push(_),k.dbReady?k.dbReady=k.dbReady.then(function(){return _.promise}):k.dbReady=_.promise}function R(y){var k=p[y.name],_=k.deferredOperations.pop();if(_)return _.resolve(),_.promise}function B(y,k){var _=p[y.name],M=_.deferredOperations.pop();if(M)return M.reject(k),M.promise}function P(y,k){return new d(function(_,M){if(p[y.name]=p[y.name]||V(),y.db)if(k)I(y),y.db.close();else return _(y.db);var F=[y.name];k&&F.push(y.version);var N=c.open.apply(c,F);k&&(N.onupgradeneeded=function(q){var Q=N.result;try{Q.createObjectStore(y.storeName),q.oldVersion<=1&&Q.createObjectStore(x)}catch(Z){if(Z.name==="ConstraintError")console.warn('The database "'+y.name+'" has been upgraded from version '+q.oldVersion+" to version "+q.newVersion+', but the storage "'+y.storeName+'" already exists.');else throw Z}}),N.onerror=function(q){q.preventDefault(),M(N.error)},N.onsuccess=function(){var q=N.result;q.onversionchange=function(Q){Q.target.close()},_(q),R(y)}})}function U(y){return P(y,!1)}function j(y){return P(y,!0)}function z(y,k){if(!y.db)return!0;var _=!y.db.objectStoreNames.contains(y.storeName),M=y.version<y.db.version,F=y.version>y.db.version;if(M&&(y.version!==k&&console.warn('The database "'+y.name+`" can't be downgraded from version `+y.db.version+" to version "+y.version+"."),y.version=y.db.version),F||_){if(_){var N=y.db.version+1;N>y.version&&(y.version=N)}return!0}return!1}function H(y){return new d(function(k,_){var M=new FileReader;M.onerror=_,M.onloadend=function(F){var N=btoa(F.target.result||"");k({__local_forage_encoded_blob:!0,data:N,type:y.type})},M.readAsBinaryString(y)})}function X(y){var k=C(atob(y.data));return f([k],{type:y.type})}function Y(y){return y&&y.__local_forage_encoded_blob}function te(y){var k=this,_=k._initReady().then(function(){var M=p[k._dbInfo.name];if(M&&M.dbReady)return M.dbReady});return h(_,y,y),_}function ee(y){I(y);for(var k=p[y.name],_=k.forages,M=0;M<_.length;M++){var F=_[M];F._dbInfo.db&&(F._dbInfo.db.close(),F._dbInfo.db=null)}return y.db=null,U(y).then(function(N){return y.db=N,z(y)?j(y):N}).then(function(N){y.db=k.db=N;for(var q=0;q<_.length;q++)_[q]._dbInfo.db=N}).catch(function(N){throw B(y,N),N})}function O(y,k,_,M){M===void 0&&(M=1);try{var F=y.db.transaction(y.storeName,k);_(null,F)}catch(N){if(M>0&&(!y.db||N.name==="InvalidStateError"||N.name==="NotFoundError"))return d.resolve().then(function(){if(!y.db||N.name==="NotFoundError"&&!y.db.objectStoreNames.contains(y.storeName)&&y.version<=y.db.version)return y.db&&(y.version=y.db.version+1),j(y)}).then(function(){return ee(y).then(function(){O(y,k,_,M-1)})}).catch(_);_(N)}}function V(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function $(y){var k=this,_={db:null};if(y)for(var M in y)_[M]=y[M];var F=p[_.name];F||(F=V(),p[_.name]=F),F.forages.push(k),k._initReady||(k._initReady=k.ready,k.ready=te);var N=[];function q(){return d.resolve()}for(var Q=0;Q<F.forages.length;Q++){var Z=F.forages[Q];Z!==k&&N.push(Z._initReady().catch(q))}var K=F.forages.slice(0);return d.all(N).then(function(){return _.db=F.db,U(_)}).then(function(J){return _.db=J,z(_,k._defaultConfig.version)?j(_):J}).then(function(J){_.db=F.db=J,k._dbInfo=_;for(var ne=0;ne<K.length;ne++){var de=K[ne];de!==k&&(de._dbInfo.db=_.db,de._dbInfo.version=_.version)}})}function W(y,k){var _=this;y=g(y);var M=new d(function(F,N){_.ready().then(function(){O(_._dbInfo,b,function(q,Q){if(q)return N(q);try{var Z=Q.objectStore(_._dbInfo.storeName),K=Z.get(y);K.onsuccess=function(){var J=K.result;J===void 0&&(J=null),Y(J)&&(J=X(J)),F(J)},K.onerror=function(){N(K.error)}}catch(J){N(J)}})}).catch(N)});return u(M,k),M}function ue(y,k){var _=this,M=new d(function(F,N){_.ready().then(function(){O(_._dbInfo,b,function(q,Q){if(q)return N(q);try{var Z=Q.objectStore(_._dbInfo.storeName),K=Z.openCursor(),J=1;K.onsuccess=function(){var ne=K.result;if(ne){var de=ne.value;Y(de)&&(de=X(de));var xe=y(de,ne.key,J++);xe!==void 0?F(xe):ne.continue()}else F()},K.onerror=function(){N(K.error)}}catch(ne){N(ne)}})}).catch(N)});return u(M,k),M}function ve(y,k,_){var M=this;y=g(y);var F=new d(function(N,q){var Q;M.ready().then(function(){return Q=M._dbInfo,v.call(k)==="[object Blob]"?w(Q.db).then(function(Z){return Z?k:H(k)}):k}).then(function(Z){O(M._dbInfo,E,function(K,J){if(K)return q(K);try{var ne=J.objectStore(M._dbInfo.storeName);Z===null&&(Z=void 0);var de=ne.put(Z,y);J.oncomplete=function(){Z===void 0&&(Z=null),N(Z)},J.onabort=J.onerror=function(){var xe=de.error?de.error:de.transaction.error;q(xe)}}catch(xe){q(xe)}})}).catch(q)});return u(F,_),F}function we(y,k){var _=this;y=g(y);var M=new d(function(F,N){_.ready().then(function(){O(_._dbInfo,E,function(q,Q){if(q)return N(q);try{var Z=Q.objectStore(_._dbInfo.storeName),K=Z.delete(y);Q.oncomplete=function(){F()},Q.onerror=function(){N(K.error)},Q.onabort=function(){var J=K.error?K.error:K.transaction.error;N(J)}}catch(J){N(J)}})}).catch(N)});return u(M,k),M}function fe(y){var k=this,_=new d(function(M,F){k.ready().then(function(){O(k._dbInfo,E,function(N,q){if(N)return F(N);try{var Q=q.objectStore(k._dbInfo.storeName),Z=Q.clear();q.oncomplete=function(){M()},q.onabort=q.onerror=function(){var K=Z.error?Z.error:Z.transaction.error;F(K)}}catch(K){F(K)}})}).catch(F)});return u(_,y),_}function ze(y){var k=this,_=new d(function(M,F){k.ready().then(function(){O(k._dbInfo,b,function(N,q){if(N)return F(N);try{var Q=q.objectStore(k._dbInfo.storeName),Z=Q.count();Z.onsuccess=function(){M(Z.result)},Z.onerror=function(){F(Z.error)}}catch(K){F(K)}})}).catch(F)});return u(_,y),_}function De(y,k){var _=this,M=new d(function(F,N){if(y<0){F(null);return}_.ready().then(function(){O(_._dbInfo,b,function(q,Q){if(q)return N(q);try{var Z=Q.objectStore(_._dbInfo.storeName),K=!1,J=Z.openKeyCursor();J.onsuccess=function(){var ne=J.result;if(!ne){F(null);return}y===0||K?F(ne.key):(K=!0,ne.advance(y))},J.onerror=function(){N(J.error)}}catch(ne){N(ne)}})}).catch(N)});return u(M,k),M}function Ge(y){var k=this,_=new d(function(M,F){k.ready().then(function(){O(k._dbInfo,b,function(N,q){if(N)return F(N);try{var Q=q.objectStore(k._dbInfo.storeName),Z=Q.openKeyCursor(),K=[];Z.onsuccess=function(){var J=Z.result;if(!J){M(K);return}K.push(J.key),J.continue()},Z.onerror=function(){F(Z.error)}}catch(J){F(J)}})}).catch(F)});return u(_,y),_}function Xe(y,k){k=m.apply(this,arguments);var _=this.config();y=typeof y!="function"&&y||{},y.name||(y.name=y.name||_.name,y.storeName=y.storeName||_.storeName);var M=this,F;if(!y.name)F=d.reject("Invalid arguments");else{var N=y.name===_.name&&M._dbInfo.db,q=N?d.resolve(M._dbInfo.db):U(y).then(function(Q){var Z=p[y.name],K=Z.forages;Z.db=Q;for(var J=0;J<K.length;J++)K[J]._dbInfo.db=Q;return Q});y.storeName?F=q.then(function(Q){if(Q.objectStoreNames.contains(y.storeName)){var Z=Q.version+1;I(y);var K=p[y.name],J=K.forages;Q.close();for(var ne=0;ne<J.length;ne++){var de=J[ne];de._dbInfo.db=null,de._dbInfo.version=Z}var xe=new d(function(be,Te){var Se=c.open(y.name,Z);Se.onerror=function(tt){var tr=Se.result;tr.close(),Te(tt)},Se.onupgradeneeded=function(){var tt=Se.result;tt.deleteObjectStore(y.storeName)},Se.onsuccess=function(){var tt=Se.result;tt.close(),be(tt)}});return xe.then(function(be){K.db=be;for(var Te=0;Te<J.length;Te++){var Se=J[Te];Se._dbInfo.db=be,R(Se._dbInfo)}}).catch(function(be){throw(B(y,be)||d.resolve()).catch(function(){}),be})}}):F=q.then(function(Q){I(y);var Z=p[y.name],K=Z.forages;Q.close();for(var J=0;J<K.length;J++){var ne=K[J];ne._dbInfo.db=null}var de=new d(function(xe,be){var Te=c.deleteDatabase(y.name);Te.onerror=function(){var Se=Te.result;Se&&Se.close(),be(Te.error)},Te.onblocked=function(){console.warn('dropInstance blocked for database "'+y.name+'" until all open connections are closed')},Te.onsuccess=function(){var Se=Te.result;Se&&Se.close(),xe(Se)}});return de.then(function(xe){Z.db=xe;for(var be=0;be<K.length;be++){var Te=K[be];R(Te._dbInfo)}}).catch(function(xe){throw(B(y,xe)||d.resolve()).catch(function(){}),xe})})}return u(F,k),F}var Ne={_driver:"asyncStorage",_initStorage:$,_support:l(),iterate:ue,getItem:W,setItem:ve,removeItem:we,clear:fe,length:ze,key:De,keys:Ge,dropInstance:Xe};function Ue(){return typeof openDatabase=="function"}var Ke="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tn="~~local_forage_type~",nn=/^~~local_forage_type~([^~]+)~/,pt="__lfsc__:",rn=pt.length,wt="arbf",Ve="blob",We="si08",ot="ui08",sn="uic8",Yn="si16",_t="si32",Ut="ur16",fi="ui32",Qn="fl32",Zn="fl64",Dt=rn+wt.length,Vt=Object.prototype.toString;function ui(y){var k=y.length*.75,_=y.length,M,F=0,N,q,Q,Z;y[y.length-1]==="="&&(k--,y[y.length-2]==="="&&k--);var K=new ArrayBuffer(k),J=new Uint8Array(K);for(M=0;M<_;M+=4)N=Ke.indexOf(y[M]),q=Ke.indexOf(y[M+1]),Q=Ke.indexOf(y[M+2]),Z=Ke.indexOf(y[M+3]),J[F++]=N<<2|q>>4,J[F++]=(q&15)<<4|Q>>2,J[F++]=(Q&3)<<6|Z&63;return K}function An(y){var k=new Uint8Array(y),_="",M;for(M=0;M<k.length;M+=3)_+=Ke[k[M]>>2],_+=Ke[(k[M]&3)<<4|k[M+1]>>4],_+=Ke[(k[M+1]&15)<<2|k[M+2]>>6],_+=Ke[k[M+2]&63];return k.length%3===2?_=_.substring(0,_.length-1)+"=":k.length%3===1&&(_=_.substring(0,_.length-2)+"=="),_}function di(y,k){var _="";if(y&&(_=Vt.call(y)),y&&(_==="[object ArrayBuffer]"||y.buffer&&Vt.call(y.buffer)==="[object ArrayBuffer]")){var M,F=pt;y instanceof ArrayBuffer?(M=y,F+=wt):(M=y.buffer,_==="[object Int8Array]"?F+=We:_==="[object Uint8Array]"?F+=ot:_==="[object Uint8ClampedArray]"?F+=sn:_==="[object Int16Array]"?F+=Yn:_==="[object Uint16Array]"?F+=Ut:_==="[object Int32Array]"?F+=_t:_==="[object Uint32Array]"?F+=fi:_==="[object Float32Array]"?F+=Qn:_==="[object Float64Array]"?F+=Zn:k(new Error("Failed to get type for BinaryArray"))),k(F+An(M))}else if(_==="[object Blob]"){var N=new FileReader;N.onload=function(){var q=tn+y.type+"~"+An(this.result);k(pt+Ve+q)},N.readAsArrayBuffer(y)}else try{k(JSON.stringify(y))}catch(q){console.error("Couldn't convert value into a JSON string: ",y),k(null,q)}}function na(y){if(y.substring(0,rn)!==pt)return JSON.parse(y);var k=y.substring(Dt),_=y.substring(rn,Dt),M;if(_===Ve&&nn.test(k)){var F=k.match(nn);M=F[1],k=k.substring(F[0].length)}var N=ui(k);switch(_){case wt:return N;case Ve:return f([N],{type:M});case We:return new Int8Array(N);case ot:return new Uint8Array(N);case sn:return new Uint8ClampedArray(N);case Yn:return new Int16Array(N);case Ut:return new Uint16Array(N);case _t:return new Int32Array(N);case fi:return new Uint32Array(N);case Qn:return new Float32Array(N);case Zn:return new Float64Array(N);default:throw new Error("Unkown type: "+_)}}var Xn={serialize:di,deserialize:na,stringToBuffer:ui,bufferToString:An};function Kn(y,k,_,M){y.executeSql("CREATE TABLE IF NOT EXISTS "+k.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],_,M)}function ra(y){var k=this,_={db:null};if(y)for(var M in y)_[M]=typeof y[M]!="string"?y[M].toString():y[M];var F=new d(function(N,q){try{_.db=openDatabase(_.name,String(_.version),_.description,_.size)}catch(Q){return q(Q)}_.db.transaction(function(Q){Kn(Q,_,function(){k._dbInfo=_,N()},function(Z,K){q(K)})},q)});return _.serializer=Xn,F}function at(y,k,_,M,F,N){y.executeSql(_,M,F,function(q,Q){Q.code===Q.SYNTAX_ERR?q.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[k.storeName],function(Z,K){K.rows.length?N(Z,Q):Kn(Z,k,function(){Z.executeSql(_,M,F,N)},N)},N):N(q,Q)},N)}function ia(y,k){var _=this;y=g(y);var M=new d(function(F,N){_.ready().then(function(){var q=_._dbInfo;q.db.transaction(function(Q){at(Q,q,"SELECT * FROM "+q.storeName+" WHERE key = ? LIMIT 1",[y],function(Z,K){var J=K.rows.length?K.rows.item(0).value:null;J&&(J=q.serializer.deserialize(J)),F(J)},function(Z,K){N(K)})})}).catch(N)});return u(M,k),M}function hi(y,k){var _=this,M=new d(function(F,N){_.ready().then(function(){var q=_._dbInfo;q.db.transaction(function(Q){at(Q,q,"SELECT * FROM "+q.storeName,[],function(Z,K){for(var J=K.rows,ne=J.length,de=0;de<ne;de++){var xe=J.item(de),be=xe.value;if(be&&(be=q.serializer.deserialize(be)),be=y(be,xe.key,de+1),be!==void 0){F(be);return}}F()},function(Z,K){N(K)})})}).catch(N)});return u(M,k),M}function pi(y,k,_,M){var F=this;y=g(y);var N=new d(function(q,Q){F.ready().then(function(){k===void 0&&(k=null);var Z=k,K=F._dbInfo;K.serializer.serialize(k,function(J,ne){ne?Q(ne):K.db.transaction(function(de){at(de,K,"INSERT OR REPLACE INTO "+K.storeName+" (key, value) VALUES (?, ?)",[y,J],function(){q(Z)},function(xe,be){Q(be)})},function(de){if(de.code===de.QUOTA_ERR){if(M>0){q(pi.apply(F,[y,Z,_,M-1]));return}Q(de)}})})}).catch(Q)});return u(N,_),N}function sa(y,k,_){return pi.apply(this,[y,k,_,1])}function oa(y,k){var _=this;y=g(y);var M=new d(function(F,N){_.ready().then(function(){var q=_._dbInfo;q.db.transaction(function(Q){at(Q,q,"DELETE FROM "+q.storeName+" WHERE key = ?",[y],function(){F()},function(Z,K){N(K)})})}).catch(N)});return u(M,k),M}function gi(y){var k=this,_=new d(function(M,F){k.ready().then(function(){var N=k._dbInfo;N.db.transaction(function(q){at(q,N,"DELETE FROM "+N.storeName,[],function(){M()},function(Q,Z){F(Z)})})}).catch(F)});return u(_,y),_}function aa(y){var k=this,_=new d(function(M,F){k.ready().then(function(){var N=k._dbInfo;N.db.transaction(function(q){at(q,N,"SELECT COUNT(key) as c FROM "+N.storeName,[],function(Q,Z){var K=Z.rows.item(0).c;M(K)},function(Q,Z){F(Z)})})}).catch(F)});return u(_,y),_}function la(y,k){var _=this,M=new d(function(F,N){_.ready().then(function(){var q=_._dbInfo;q.db.transaction(function(Q){at(Q,q,"SELECT key FROM "+q.storeName+" WHERE id = ? LIMIT 1",[y+1],function(Z,K){var J=K.rows.length?K.rows.item(0).key:null;F(J)},function(Z,K){N(K)})})}).catch(N)});return u(M,k),M}function vi(y){var k=this,_=new d(function(M,F){k.ready().then(function(){var N=k._dbInfo;N.db.transaction(function(q){at(q,N,"SELECT key FROM "+N.storeName,[],function(Q,Z){for(var K=[],J=0;J<Z.rows.length;J++)K.push(Z.rows.item(J).key);M(K)},function(Q,Z){F(Z)})})}).catch(F)});return u(_,y),_}function ca(y){return new d(function(k,_){y.transaction(function(M){M.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(F,N){for(var q=[],Q=0;Q<N.rows.length;Q++)q.push(N.rows.item(Q).name);k({db:y,storeNames:q})},function(F,N){_(N)})},function(M){_(M)})})}function mi(y,k){k=m.apply(this,arguments);var _=this.config();y=typeof y!="function"&&y||{},y.name||(y.name=y.name||_.name,y.storeName=y.storeName||_.storeName);var M=this,F;return y.name?F=new d(function(N){var q;y.name===_.name?q=M._dbInfo.db:q=openDatabase(y.name,"","",0),y.storeName?N({db:q,storeNames:[y.storeName]}):N(ca(q))}).then(function(N){return new d(function(q,Q){N.db.transaction(function(Z){function K(xe){return new d(function(be,Te){Z.executeSql("DROP TABLE IF EXISTS "+xe,[],function(){be()},function(Se,tt){Te(tt)})})}for(var J=[],ne=0,de=N.storeNames.length;ne<de;ne++)J.push(K(N.storeNames[ne]));d.all(J).then(function(){q()}).catch(function(xe){Q(xe)})},function(Z){Q(Z)})})}):F=d.reject("Invalid arguments"),u(F,k),F}var je={_driver:"webSQLStorage",_initStorage:ra,_support:Ue(),iterate:hi,getItem:ia,setItem:sa,removeItem:oa,clear:gi,length:aa,key:la,keys:vi,dropInstance:mi};function gt(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function Jn(y,k){var _=y.name+"/";return y.storeName!==k.storeName&&(_+=y.storeName+"/"),_}function fa(){var y="_localforage_support_test";try{return localStorage.setItem(y,!0),localStorage.removeItem(y),!1}catch{return!0}}function F2(){return!fa()||localStorage.length>0}function O2(y){var k=this,_={};if(y)for(var M in y)_[M]=y[M];return _.keyPrefix=Jn(y,k._defaultConfig),F2()?(k._dbInfo=_,_.serializer=Xn,d.resolve()):d.reject()}function P2(y){var k=this,_=k.ready().then(function(){for(var M=k._dbInfo.keyPrefix,F=localStorage.length-1;F>=0;F--){var N=localStorage.key(F);N.indexOf(M)===0&&localStorage.removeItem(N)}});return u(_,y),_}function H2(y,k){var _=this;y=g(y);var M=_.ready().then(function(){var F=_._dbInfo,N=localStorage.getItem(F.keyPrefix+y);return N&&(N=F.serializer.deserialize(N)),N});return u(M,k),M}function L2(y,k){var _=this,M=_.ready().then(function(){for(var F=_._dbInfo,N=F.keyPrefix,q=N.length,Q=localStorage.length,Z=1,K=0;K<Q;K++){var J=localStorage.key(K);if(J.indexOf(N)===0){var ne=localStorage.getItem(J);if(ne&&(ne=F.serializer.deserialize(ne)),ne=y(ne,J.substring(q),Z++),ne!==void 0)return ne}}});return u(M,k),M}function z2(y,k){var _=this,M=_.ready().then(function(){var F=_._dbInfo,N;try{N=localStorage.key(y)}catch{N=null}return N&&(N=N.substring(F.keyPrefix.length)),N});return u(M,k),M}function U2(y){var k=this,_=k.ready().then(function(){for(var M=k._dbInfo,F=localStorage.length,N=[],q=0;q<F;q++){var Q=localStorage.key(q);Q.indexOf(M.keyPrefix)===0&&N.push(Q.substring(M.keyPrefix.length))}return N});return u(_,y),_}function V2(y){var k=this,_=k.keys().then(function(M){return M.length});return u(_,y),_}function W2(y,k){var _=this;y=g(y);var M=_.ready().then(function(){var F=_._dbInfo;localStorage.removeItem(F.keyPrefix+y)});return u(M,k),M}function j2(y,k,_){var M=this;y=g(y);var F=M.ready().then(function(){k===void 0&&(k=null);var N=k;return new d(function(q,Q){var Z=M._dbInfo;Z.serializer.serialize(k,function(K,J){if(J)Q(J);else try{localStorage.setItem(Z.keyPrefix+y,K),q(N)}catch(ne){(ne.name==="QuotaExceededError"||ne.name==="NS_ERROR_DOM_QUOTA_REACHED")&&Q(ne),Q(ne)}})})});return u(F,_),F}function q2(y,k){if(k=m.apply(this,arguments),y=typeof y!="function"&&y||{},!y.name){var _=this.config();y.name=y.name||_.name,y.storeName=y.storeName||_.storeName}var M=this,F;return y.name?F=new d(function(N){y.storeName?N(Jn(y,M._defaultConfig)):N(y.name+"/")}).then(function(N){for(var q=localStorage.length-1;q>=0;q--){var Q=localStorage.key(q);Q.indexOf(N)===0&&localStorage.removeItem(Q)}}):F=d.reject("Invalid arguments"),u(F,k),F}var $2={_driver:"localStorageWrapper",_initStorage:O2,_support:gt(),iterate:L2,getItem:H2,setItem:j2,removeItem:W2,clear:P2,length:V2,key:z2,keys:U2,dropInstance:q2},G2=function(k,_){return k===_||typeof k=="number"&&typeof _=="number"&&isNaN(k)&&isNaN(_)},Y2=function(k,_){for(var M=k.length,F=0;F<M;){if(G2(k[F],_))return!0;F++}return!1},Ru=Array.isArray||function(y){return Object.prototype.toString.call(y)==="[object Array]"},er={},Bu={},Cn={INDEXEDDB:Ne,WEBSQL:je,LOCALSTORAGE:$2},Q2=[Cn.INDEXEDDB._driver,Cn.WEBSQL._driver,Cn.LOCALSTORAGE._driver],xi=["dropInstance"],ua=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(xi),Z2={description:"",driver:Q2.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function X2(y,k){y[k]=function(){var _=arguments;return y.ready().then(function(){return y[k].apply(y,_)})}}function da(){for(var y=1;y<arguments.length;y++){var k=arguments[y];if(k)for(var _ in k)k.hasOwnProperty(_)&&(Ru(k[_])?arguments[0][_]=k[_].slice():arguments[0][_]=k[_])}return arguments[0]}var K2=function(){function y(k){o(this,y);for(var _ in Cn)if(Cn.hasOwnProperty(_)){var M=Cn[_],F=M._driver;this[_]=F,er[F]||this.defineDriver(M)}this._defaultConfig=da({},Z2),this._config=da({},this._defaultConfig,k),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return y.prototype.config=function(_){if((typeof _>"u"?"undefined":s(_))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var M in _){if(M==="storeName"&&(_[M]=_[M].replace(/\W/g,"_")),M==="version"&&typeof _[M]!="number")return new Error("Database version must be a number.");this._config[M]=_[M]}return"driver"in _&&_.driver?this.setDriver(this._config.driver):!0}else return typeof _=="string"?this._config[_]:this._config},y.prototype.defineDriver=function(_,M,F){var N=new d(function(q,Q){try{var Z=_._driver,K=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!_._driver){Q(K);return}for(var J=ua.concat("_initStorage"),ne=0,de=J.length;ne<de;ne++){var xe=J[ne],be=!Y2(xi,xe);if((be||_[xe])&&typeof _[xe]!="function"){Q(K);return}}var Te=function(){for(var tr=function(tE){return function(){var nE=new Error("Method "+tE+" is not implemented by the current driver"),Tu=d.reject(nE);return u(Tu,arguments[arguments.length-1]),Tu}},ha=0,eE=xi.length;ha<eE;ha++){var pa=xi[ha];_[pa]||(_[pa]=tr(pa))}};Te();var Se=function(tr){er[Z]&&console.info("Redefining LocalForage driver: "+Z),er[Z]=_,Bu[Z]=tr,q()};"_support"in _?_._support&&typeof _._support=="function"?_._support().then(Se,Q):Se(!!_._support):Se(!0)}catch(tt){Q(tt)}});return h(N,M,F),N},y.prototype.driver=function(){return this._driver||null},y.prototype.getDriver=function(_,M,F){var N=er[_]?d.resolve(er[_]):d.reject(new Error("Driver not found."));return h(N,M,F),N},y.prototype.getSerializer=function(_){var M=d.resolve(Xn);return h(M,_),M},y.prototype.ready=function(_){var M=this,F=M._driverSet.then(function(){return M._ready===null&&(M._ready=M._initDriver()),M._ready});return h(F,_,_),F},y.prototype.setDriver=function(_,M,F){var N=this;Ru(_)||(_=[_]);var q=this._getSupportedDrivers(_);function Q(){N._config.driver=N.driver()}function Z(ne){return N._extend(ne),Q(),N._ready=N._initStorage(N._config),N._ready}function K(ne){return function(){var de=0;function xe(){for(;de<ne.length;){var be=ne[de];return de++,N._dbInfo=null,N._ready=null,N.getDriver(be).then(Z).catch(xe)}Q();var Te=new Error("No available storage method found.");return N._driverSet=d.reject(Te),N._driverSet}return xe()}}var J=this._driverSet!==null?this._driverSet.catch(function(){return d.resolve()}):d.resolve();return this._driverSet=J.then(function(){var ne=q[0];return N._dbInfo=null,N._ready=null,N.getDriver(ne).then(function(de){N._driver=de._driver,Q(),N._wrapLibraryMethodsWithReady(),N._initDriver=K(q)})}).catch(function(){Q();var ne=new Error("No available storage method found.");return N._driverSet=d.reject(ne),N._driverSet}),h(this._driverSet,M,F),this._driverSet},y.prototype.supports=function(_){return!!Bu[_]},y.prototype._extend=function(_){da(this,_)},y.prototype._getSupportedDrivers=function(_){for(var M=[],F=0,N=_.length;F<N;F++){var q=_[F];this.supports(q)&&M.push(q)}return M},y.prototype._wrapLibraryMethodsWithReady=function(){for(var _=0,M=ua.length;_<M;_++)X2(this,ua[_])},y.prototype.createInstance=function(_){return new y(_)},y}(),J2=new K2;r.exports=J2},{3:3}]},{},[4])(4)})})(lx);const ut=Object.create(null);ut.open="0",ut.close="1",ut.ping="2",ut.pong="3",ut.message="4",ut.upgrade="5",ut.noop="6";const Vr=Object.create(null);Object.keys(ut).forEach(t=>{Vr[ut[t]]=t});const xo={type:"error",data:"parser error"},lf=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",cf=typeof ArrayBuffer=="function",ff=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,bo=({type:t,data:e},n,r)=>lf&&e instanceof Blob?n?r(e):uf(e,r):cf&&(e instanceof ArrayBuffer||ff(e))?n?r(e):uf(new Blob([e]),r):r(ut[t]+(e||"")),uf=(t,e)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];e("b"+(r||""))},n.readAsDataURL(t)};function df(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let yo;function cx(t,e){if(lf&&t.data instanceof Blob)return t.data.arrayBuffer().then(df).then(e);if(cf&&(t.data instanceof ArrayBuffer||ff(t.data)))return e(df(t.data));bo(t,!1,n=>{yo||(yo=new TextEncoder),e(yo.encode(n))})}const hf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ln=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t<hf.length;t++)Ln[hf.charCodeAt(t)]=t;const fx=t=>{let e=t.length*.75,n=t.length,r,i=0,s,o,a,c;t[t.length-1]==="="&&(e--,t[t.length-2]==="="&&e--);const l=new ArrayBuffer(e),f=new Uint8Array(l);for(r=0;r<n;r+=4)s=Ln[t.charCodeAt(r)],o=Ln[t.charCodeAt(r+1)],a=Ln[t.charCodeAt(r+2)],c=Ln[t.charCodeAt(r+3)],f[i++]=s<<2|o>>4,f[i++]=(o&15)<<4|a>>2,f[i++]=(a&3)<<6|c&63;return l},ux=typeof ArrayBuffer=="function",Eo=(t,e)=>{if(typeof t!="string")return{type:"message",data:pf(t,e)};const n=t.charAt(0);return n==="b"?{type:"message",data:dx(t.substring(1),e)}:Vr[n]?t.length>1?{type:Vr[n],data:t.substring(1)}:{type:Vr[n]}:xo},dx=(t,e)=>{if(ux){const n=fx(t);return pf(n,e)}else return{base64:!0,data:t}},pf=(t,e)=>{switch(e){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}},gf=String.fromCharCode(30),hx=(t,e)=>{const n=t.length,r=new Array(n);let i=0;t.forEach((s,o)=>{bo(s,!1,a=>{r[o]=a,++i===n&&e(r.join(gf))})})},px=(t,e)=>{const n=t.split(gf),r=[];for(let i=0;i<n.length;i++){const s=Eo(n[i],e);if(r.push(s),s.type==="error")break}return r};function gx(){return new TransformStream({transform(t,e){cx(t,n=>{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const s=new DataView(i.buffer);s.setUint8(0,126),s.setUint16(1,r)}else{i=new Uint8Array(9);const s=new DataView(i.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(r))}t.data&&typeof t.data!="string"&&(i[0]|=128),e.enqueue(i),e.enqueue(n)})}})}let Ao;function Wr(t){return t.reduce((e,n)=>e+n.length,0)}function jr(t,e){if(t[0].length===e)return t.shift();const n=new Uint8Array(e);let r=0;for(let i=0;i<e;i++)n[i]=t[0][r++],r===t[0].length&&(t.shift(),r=0);return t.length&&r<t[0].length&&(t[0]=t[0].slice(r)),n}function vx(t,e){Ao||(Ao=new TextDecoder);const n=[];let r=0,i=-1,s=!1;return new TransformStream({transform(o,a){for(n.push(o);;){if(r===0){if(Wr(n)<1)break;const c=jr(n,1);s=(c[0]&128)===128,i=c[0]&127,i<126?r=3:i===126?r=1:r=2}else if(r===1){if(Wr(n)<2)break;const c=jr(n,2);i=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),r=3}else if(r===2){if(Wr(n)<8)break;const c=jr(n,8),l=new DataView(c.buffer,c.byteOffset,c.length),f=l.getUint32(0);if(f>Math.pow(2,53-32)-1){a.enqueue(xo);break}i=f*Math.pow(2,32)+l.getUint32(4),r=3}else{if(Wr(n)<i)break;const c=jr(n,i);a.enqueue(Eo(s?c:Ao.decode(c),e)),r=0}if(i===0||i>t){a.enqueue(xo);break}}}})}const vf=4;function Be(t){if(t)return mx(t)}function mx(t){for(var e in Be.prototype)t[e]=Be.prototype[e];return t}Be.prototype.on=Be.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},Be.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},Be.prototype.off=Be.prototype.removeListener=Be.prototype.removeAllListeners=Be.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===e||r.fn===e){n.splice(i,1);break}return n.length===0&&delete this._callbacks["$"+t],this},Be.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),n=this._callbacks["$"+t],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,e)}return this},Be.prototype.emitReserved=Be.prototype.emit,Be.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},Be.prototype.hasListeners=function(t){return!!this.listeners(t).length};const Je=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function mf(t,...e){return e.reduce((n,r)=>(t.hasOwnProperty(r)&&(n[r]=t[r]),n),{})}const xx=Je.setTimeout,bx=Je.clearTimeout;function qr(t,e){e.useNativeTimers?(t.setTimeoutFn=xx.bind(Je),t.clearTimeoutFn=bx.bind(Je)):(t.setTimeoutFn=Je.setTimeout.bind(Je),t.clearTimeoutFn=Je.clearTimeout.bind(Je))}const yx=1.33;function Ex(t){return typeof t=="string"?Ax(t):Math.ceil((t.byteLength||t.size)*yx)}function Ax(t){let e=0,n=0;for(let r=0,i=t.length;r<i;r++)e=t.charCodeAt(r),e<128?n+=1:e<2048?n+=2:e<55296||e>=57344?n+=3:(r++,n+=4);return n}function Cx(t){let e="";for(let n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e}function wx(t){let e={},n=t.split("&");for(let r=0,i=n.length;r<i;r++){let s=n[r].split("=");e[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return e}class _x extends Error{constructor(e,n,r){super(e),this.description=n,this.context=r,this.type="TransportError"}}class Co extends Be{constructor(e){super(),this.writable=!1,qr(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,n,r){return super.emitReserved("error",new _x(e,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const n=Eo(e,this.socket.binaryType);this.onPacket(n)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,n={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){const n=Cx(e);return n.length?"?"+n:""}}const xf="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),wo=64,Dx={};let bf=0,$r=0,yf;function Ef(t){let e="";do e=xf[t%wo]+e,t=Math.floor(t/wo);while(t>0);return e}function Af(){const t=Ef(+new Date);return t!==yf?(bf=0,yf=t):t+"."+Ef(bf++)}for(;$r<wo;$r++)Dx[xf[$r]]=$r;let Cf=!1;try{Cf=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Sx=Cf;function wf(t){const e=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||Sx))return new XMLHttpRequest}catch{}if(!e)try{return new Je[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function mE(){}function Rx(){}const Bx=function(){return new wf({xdomain:!1}).responseType!=null}();class Tx extends Co{constructor(e){if(super(e),this.polling=!1,typeof location<"u"){const r=location.protocol==="https:";let i=location.port;i||(i=r?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||i!==e.port}const n=e&&e.forceBase64;this.supportsBinary=Bx&&!n,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const n=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};px(e,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,hx(e,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=Af()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(e,n)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new dt(this.uri(),e)}doWrite(e,n){const r=this.request({method:"POST",data:e});r.on("success",n),r.on("error",(i,s)=>{this.onError("xhr post error",i,s)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=e}}class dt extends Be{constructor(e,n){super(),qr(this,n),this.opts=n,this.method=n.method||"GET",this.uri=e,this.data=n.data!==void 0?n.data:null,this.create()}create(){var e;const n=mf(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new wf(n);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this.opts.extraHeaders[i])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(e=this.opts.cookieJar)===null||e===void 0||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this.opts.cookieJar)===null||i===void 0||i.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document<"u"&&(this.index=dt.requestsCount++,dt.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=Rx,e)try{this.xhr.abort()}catch{}typeof document<"u"&&delete dt.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(dt.requestsCount=0,dt.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",_f);else if(typeof addEventListener=="function"){const t="onpagehide"in Je?"pagehide":"unload";addEventListener(t,_f,!1)}}function _f(){for(let t in dt.requests)dt.requests.hasOwnProperty(t)&&dt.requests[t].abort()}const _o=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,n)=>n(e,0))(),Gr=Je.WebSocket||Je.MozWebSocket,Df=!0,kx="arraybuffer",Sf=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Ix extends Co{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),n=this.opts.protocols,r=Sf?{}:mf(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=Df&&!Sf?n?new Gr(e,n):new Gr(e):new Gr(e,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let n=0;n<e.length;n++){const r=e[n],i=n===e.length-1;bo(r,this.supportsBinary,s=>{const o={};try{Df&&this.ws.send(s)}catch{}i&&_o(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=Af()),this.supportsBinary||(n.b64=1),this.createUri(e,n)}check(){return!!Gr}}class Nx extends Co{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{const n=vx(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(n).getReader(),i=gx();i.readable.pipeTo(e.writable),this.writer=i.writable.getWriter();const s=()=>{r.read().then(({done:a,value:c})=>{a||(this.onPacket(c),s())}).catch(a=>{})};s();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this.writer.write(o).then(()=>this.onOpen())})}))}write(e){this.writable=!1;for(let n=0;n<e.length;n++){const r=e[n],i=n===e.length-1;this.writer.write(r).then(()=>{i&&_o(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this.transport)===null||e===void 0||e.close()}}const Mx={websocket:Ix,webtransport:Nx,polling:Tx},Fx=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Ox=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Do(t){if(t.length>2e3)throw"URI too long";const e=t,n=t.indexOf("["),r=t.indexOf("]");n!=-1&&r!=-1&&(t=t.substring(0,n)+t.substring(n,r).replace(/:/g,";")+t.substring(r,t.length));let i=Fx.exec(t||""),s={},o=14;for(;o--;)s[Ox[o]]=i[o]||"";return n!=-1&&r!=-1&&(s.source=e,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=Px(s,s.path),s.queryKey=Hx(s,s.query),s}function Px(t,e){const n=/\/{2,9}/g,r=e.replace(n,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&r.splice(0,1),e.slice(-1)=="/"&&r.splice(r.length-1,1),r}function Hx(t,e){const n={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,s){i&&(n[i]=s)}),n}let Rf=class wn extends Be{constructor(e,n={}){super(),this.binaryType=kx,this.writeBuffer=[],e&&typeof e=="object"&&(n=e,e=null),e?(e=Do(e),n.hostname=e.host,n.secure=e.protocol==="https"||e.protocol==="wss",n.port=e.port,e.query&&(n.query=e.query)):n.host&&(n.hostname=Do(n.host).host),qr(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=wx(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const n=Object.assign({},this.opts.query);n.EIO=vf,n.transport=e,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new Mx[e](r)}open(){let e;if(this.opts.rememberUpgrade&&wn.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch{this.transports.shift(),this.open();return}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(e){let n=this.createTransport(e),r=!1;wn.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",d=>{if(!r)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;wn.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(f(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const u=new Error("probe error");u.transport=n.name,this.emitReserved("upgradeError",u)}}))};function s(){r||(r=!0,f(),n.close(),n=null)}const o=d=>{const u=new Error("probe error: "+d);u.transport=n.name,s(),this.emitReserved("upgradeError",u)};function a(){o("transport closed")}function c(){o("socket closed")}function l(d){n&&d.name!==n.name&&s()}const f=()=>{n.removeListener("open",i),n.removeListener("error",o),n.removeListener("close",a),this.off("close",c),this.off("upgrading",l)};n.once("open",i),n.once("error",o),n.once("close",a),this.once("close",c),this.once("upgrading",l),this.upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",wn.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let e=0;const n=this.upgrades.length;for(;e<n;e++)this.probe(this.upgrades[e])}}onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),this.resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const n=new Error("server error");n.code=e.data,this.onError(n);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const i=this.writeBuffer[r].data;if(i&&(n+=Ex(i)),r>0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(e,n,r){return this.sendPacket("message",e,n,r),this}send(e,n,r){return this.sendPacket("message",e,n,r),this}sendPacket(e,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const s={type:e,data:n,options:r};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),i&&this.once("flush",i),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),e()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():e()),this}onError(e){wn.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const n=[];let r=0;const i=e.length;for(;r<i;r++)~this.transports.indexOf(e[r])&&n.push(e[r]);return n}};Rf.protocol=vf;function Lx(t,e="",n){let r=t;n=n||typeof location<"u"&&location,t==null&&(t=n.protocol+"//"+n.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=n.protocol+t:t=n.host+t),/^(https?|wss?):\/\//.test(t)||(typeof n<"u"?t=n.protocol+"//"+t:t="https://"+t),r=Do(t)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const s=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+s+":"+r.port+e,r.href=r.protocol+"://"+s+(n&&n.port===r.port?"":":"+r.port),r}const zx=typeof ArrayBuffer=="function",Ux=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,Bf=Object.prototype.toString,Vx=typeof Blob=="function"||typeof Blob<"u"&&Bf.call(Blob)==="[object BlobConstructor]",Wx=typeof File=="function"||typeof File<"u"&&Bf.call(File)==="[object FileConstructor]";function So(t){return zx&&(t instanceof ArrayBuffer||Ux(t))||Vx&&t instanceof Blob||Wx&&t instanceof File}function Yr(t,e){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let n=0,r=t.length;n<r;n++)if(Yr(t[n]))return!0;return!1}if(So(t))return!0;if(t.toJSON&&typeof t.toJSON=="function"&&arguments.length===1)return Yr(t.toJSON(),!0);for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&Yr(t[n]))return!0;return!1}function jx(t){const e=[],n=t.data,r=t;return r.data=Ro(n,e),r.attachments=e.length,{packet:r,buffers:e}}function Ro(t,e){if(!t)return t;if(So(t)){const n={_placeholder:!0,num:e.length};return e.push(t),n}else if(Array.isArray(t)){const n=new Array(t.length);for(let r=0;r<t.length;r++)n[r]=Ro(t[r],e);return n}else if(typeof t=="object"&&!(t instanceof Date)){const n={};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=Ro(t[r],e));return n}return t}function qx(t,e){return t.data=Bo(t.data,e),delete t.attachments,t}function Bo(t,e){if(!t)return t;if(t&&t._placeholder===!0){if(typeof t.num=="number"&&t.num>=0&&t.num<e.length)return e[t.num];throw new Error("illegal attachments")}else if(Array.isArray(t))for(let n=0;n<t.length;n++)t[n]=Bo(t[n],e);else if(typeof t=="object")for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(t[n]=Bo(t[n],e));return t}const $x=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Gx=5;var ge;(function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"})(ge||(ge={}));class Yx{constructor(e){this.replacer=e}encode(e){return(e.type===ge.EVENT||e.type===ge.ACK)&&Yr(e)?this.encodeAsBinary({type:e.type===ge.EVENT?ge.BINARY_EVENT:ge.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let n=""+e.type;return(e.type===ge.BINARY_EVENT||e.type===ge.BINARY_ACK)&&(n+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(n+=e.nsp+","),e.id!=null&&(n+=e.id),e.data!=null&&(n+=JSON.stringify(e.data,this.replacer)),n}encodeAsBinary(e){const n=jx(e),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}function Tf(t){return Object.prototype.toString.call(t)==="[object Object]"}class To extends Be{constructor(e){super(),this.reviver=e}add(e){let n;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(e);const r=n.type===ge.BINARY_EVENT;r||n.type===ge.BINARY_ACK?(n.type=r?ge.EVENT:ge.ACK,this.reconstructor=new Qx(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(So(e)||e.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(e),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let n=0;const r={type:Number(e.charAt(0))};if(ge[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===ge.BINARY_EVENT||r.type===ge.BINARY_ACK){const s=n+1;for(;e.charAt(++n)!=="-"&&n!=e.length;);const o=e.substring(s,n);if(o!=Number(o)||e.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(o)}if(e.charAt(n+1)==="/"){const s=n+1;for(;++n&&!(e.charAt(n)===","||n===e.length););r.nsp=e.substring(s,n)}else r.nsp="/";const i=e.charAt(n+1);if(i!==""&&Number(i)==i){const s=n+1;for(;++n;){const o=e.charAt(n);if(o==null||Number(o)!=o){--n;break}if(n===e.length)break}r.id=Number(e.substring(s,n+1))}if(e.charAt(++n)){const s=this.tryParse(e.substr(n));if(To.isPayloadValid(r.type,s))r.data=s;else throw new Error("invalid payload")}return r}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,n){switch(e){case ge.CONNECT:return Tf(n);case ge.DISCONNECT:return n===void 0;case ge.CONNECT_ERROR:return typeof n=="string"||Tf(n);case ge.EVENT:case ge.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&$x.indexOf(n[0])===-1);case ge.ACK:case ge.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class Qx{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const n=qx(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const Zx=Object.freeze(Object.defineProperty({__proto__:null,Decoder:To,Encoder:Yx,get PacketType(){return ge},protocol:Gx},Symbol.toStringTag,{value:"Module"}));function rt(t,e,n){return t.on(e,n),function(){t.off(e,n)}}const Xx=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class kf extends Be{constructor(e,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[rt(e,"open",this.onopen.bind(this)),rt(e,"packet",this.onpacket.bind(this)),rt(e,"error",this.onerror.bind(this)),rt(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...n){if(Xx.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(n.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const r={type:ge.EVENT,data:n};if(r.options={},r.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const o=this.ids++,a=n.pop();this._registerAckCallback(o,a),r.id=o}const i=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!i||!this.connected)||(this.connected?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(e,n){var r;const i=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(i===void 0){this.acks[e]=n;return}const s=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let o=0;o<this.sendBuffer.length;o++)this.sendBuffer[o].id===e&&this.sendBuffer.splice(o,1);n.call(this,new Error("operation has timed out"))},i);this.acks[e]=(...o)=>{this.io.clearTimeoutFn(s),n.apply(this,[null,...o])}}emitWithAck(e,...n){const r=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((i,s)=>{n.push((o,a)=>r?o?s(o):i(a):i(o)),this.emit(e,...n)})}_addToQueue(e){let n;typeof e[e.length-1]=="function"&&(n=e.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((i,...s)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...s)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!e||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:ge.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,n)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case ge.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case ge.EVENT:case ge.BINARY_EVENT:this.onevent(e);break;case ge.ACK:case ge.BINARY_ACK:this.onack(e);break;case ge.DISCONNECT:this.ondisconnect();break;case ge.CONNECT_ERROR:this.destroy();const r=new Error(e.data.message);r.data=e.data.data,this.emitReserved("connect_error",r);break}}onevent(e){const n=e.data||[];e.id!=null&&n.push(this.ack(e.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:ge.ACK,id:e,data:i}))}}onack(e){const n=this.acks[e.id];typeof n=="function"&&(n.apply(this,e.data),delete this.acks[e.id])}onconnect(e,n){this.id=e,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:ge.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(e===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(e===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,e.data)}}}function mn(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}mn.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=Math.floor(e*10)&1?t+n:t-n}return Math.min(t,this.max)|0},mn.prototype.reset=function(){this.attempts=0},mn.prototype.setMin=function(t){this.ms=t},mn.prototype.setMax=function(t){this.max=t},mn.prototype.setJitter=function(t){this.jitter=t};class ko extends Be{constructor(e,n){var r;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(n=e,e=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,qr(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new mn({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=e;const i=n.parser||Zx;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var n;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(n=this.backoff)===null||n===void 0||n.setMin(e),this)}randomizationFactor(e){var n;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(n=this.backoff)===null||n===void 0||n.setJitter(e),this)}reconnectionDelayMax(e){var n;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(n=this.backoff)===null||n===void 0||n.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Rf(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=rt(n,"open",function(){r.onopen(),e&&e()}),s=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),e?e(a):this.maybeReconnectOnOpen()},o=rt(n,"error",s);if(this._timeout!==!1){const a=this._timeout,c=this.setTimeoutFn(()=>{i(),s(new Error("timeout")),n.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(i),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(rt(e,"ping",this.onping.bind(this)),rt(e,"data",this.ondata.bind(this)),rt(e,"error",this.onerror.bind(this)),rt(e,"close",this.onclose.bind(this)),rt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(n){this.onclose("parse error",n)}}ondecoded(e){_o(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,n){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new kf(this,e,n),this.nsps[e]=r),r}_destroy(e){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(e){const n=this.encoder.encode(e);for(let r=0;r<n.length;r++)this.engine.write(n[r],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(i=>{i?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",i)):e.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const zn={};function Io(t,e){typeof t=="object"&&(e=t,t=void 0),e=e||{};const n=Lx(t,e.path||"/socket.io"),r=n.source,i=n.id,s=n.path,o=zn[i]&&s in zn[i].nsps,a=e.forceNew||e["force new connection"]||e.multiplex===!1||o;let c;return a?c=new ko(r,e):(zn[i]||(zn[i]=new ko(r,e)),c=zn[i]),n.query&&!e.query&&(e.query=n.queryKey),c.socket(n.path,e)}Object.assign(Io,{Manager:ko,Socket:kf,io:Io,connect:Io});/*!
|
|
20
|
+
* decimal.js v10.4.3
|
|
21
|
+
* An arbitrary-precision Decimal type for JavaScript.
|
|
22
|
+
* https://github.com/MikeMcl/decimal.js
|
|
23
|
+
* Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com>
|
|
24
|
+
* MIT Licence
|
|
25
|
+
*/var xn=9e15,Pt=1e9,No="0123456789abcdef",Qr="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",Zr="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",Mo={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-xn,maxE:xn,crypto:!1},If,At,ce=!0,Xr="[DecimalError] ",Ht=Xr+"Invalid argument: ",Nf=Xr+"Precision limit exceeded",Mf=Xr+"crypto unavailable",Ff="[object Decimal]",Pe=Math.floor,Ie=Math.pow,Kx=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,Jx=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,eb=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,Of=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,it=1e7,se=7,tb=9007199254740991,nb=Qr.length-1,Fo=Zr.length-1,G={toStringTag:Ff};G.absoluteValue=G.abs=function(){var t=new this.constructor(this);return t.s<0&&(t.s=1),re(t)},G.ceil=function(){return re(new this.constructor(this),this.e+1,2)},G.clampedTo=G.clamp=function(t,e){var n,r=this,i=r.constructor;if(t=new i(t),e=new i(e),!t.s||!e.s)return new i(NaN);if(t.gt(e))throw Error(Ht+e);return n=r.cmp(t),n<0?t:r.cmp(e)>0?e:new i(r)},G.comparedTo=G.cmp=function(t){var e,n,r,i,s=this,o=s.d,a=(t=new s.constructor(t)).d,c=s.s,l=t.s;if(!o||!a)return!c||!l?NaN:c!==l?c:o===a?0:!o^c<0?1:-1;if(!o[0]||!a[0])return o[0]?c:a[0]?-l:0;if(c!==l)return c;if(s.e!==t.e)return s.e>t.e^c<0?1:-1;for(r=o.length,i=a.length,e=0,n=r<i?r:i;e<n;++e)if(o[e]!==a[e])return o[e]>a[e]^c<0?1:-1;return r===i?0:r>i^c<0?1:-1},G.cosine=G.cos=function(){var t,e,n=this,r=n.constructor;return n.d?n.d[0]?(t=r.precision,e=r.rounding,r.precision=t+Math.max(n.e,n.sd())+se,r.rounding=1,n=rb(r,Vf(r,n)),r.precision=t,r.rounding=e,re(At==2||At==3?n.neg():n,t,e,!0)):new r(1):new r(NaN)},G.cubeRoot=G.cbrt=function(){var t,e,n,r,i,s,o,a,c,l,f=this,d=f.constructor;if(!f.isFinite()||f.isZero())return new d(f);for(ce=!1,s=f.s*Ie(f.s*f,1/3),!s||Math.abs(s)==1/0?(n=Me(f.d),t=f.e,(s=(t-n.length+1)%3)&&(n+=s==1||s==-2?"0":"00"),s=Ie(n,1/3),t=Pe((t+1)/3)-(t%3==(t<0?-1:2)),s==1/0?n="5e"+t:(n=s.toExponential(),n=n.slice(0,n.indexOf("e")+1)+t),r=new d(n),r.s=f.s):r=new d(s.toString()),o=(t=d.precision)+3;;)if(a=r,c=a.times(a).times(a),l=c.plus(f),r=ye(l.plus(f).times(a),l.plus(c),o+2,1),Me(a.d).slice(0,o)===(n=Me(r.d)).slice(0,o))if(n=n.slice(o-3,o+1),n=="9999"||!i&&n=="4999"){if(!i&&(re(a,t+1,0),a.times(a).times(a).eq(f))){r=a;break}o+=4,i=1}else{(!+n||!+n.slice(1)&&n.charAt(0)=="5")&&(re(r,t+1,1),e=!r.times(r).times(r).eq(f));break}return ce=!0,re(r,t,d.rounding,e)},G.decimalPlaces=G.dp=function(){var t,e=this.d,n=NaN;if(e){if(t=e.length-1,n=(t-Pe(this.e/se))*se,t=e[t],t)for(;t%10==0;t/=10)n--;n<0&&(n=0)}return n},G.dividedBy=G.div=function(t){return ye(this,new this.constructor(t))},G.dividedToIntegerBy=G.divToInt=function(t){var e=this,n=e.constructor;return re(ye(e,new n(t),0,1,1),n.precision,n.rounding)},G.equals=G.eq=function(t){return this.cmp(t)===0},G.floor=function(){return re(new this.constructor(this),this.e+1,3)},G.greaterThan=G.gt=function(t){return this.cmp(t)>0},G.greaterThanOrEqualTo=G.gte=function(t){var e=this.cmp(t);return e==1||e===0},G.hyperbolicCosine=G.cosh=function(){var t,e,n,r,i,s=this,o=s.constructor,a=new o(1);if(!s.isFinite())return new o(s.s?1/0:NaN);if(s.isZero())return a;n=o.precision,r=o.rounding,o.precision=n+Math.max(s.e,s.sd())+4,o.rounding=1,i=s.d.length,i<32?(t=Math.ceil(i/3),e=(1/ti(4,t)).toString()):(t=16,e="2.3283064365386962890625e-10"),s=bn(o,1,s.times(e),new o(1),!0);for(var c,l=t,f=new o(8);l--;)c=s.times(s),s=a.minus(c.times(f.minus(c.times(f))));return re(s,o.precision=n,o.rounding=r,!0)},G.hyperbolicSine=G.sinh=function(){var t,e,n,r,i=this,s=i.constructor;if(!i.isFinite()||i.isZero())return new s(i);if(e=s.precision,n=s.rounding,s.precision=e+Math.max(i.e,i.sd())+4,s.rounding=1,r=i.d.length,r<3)i=bn(s,2,i,i,!0);else{t=1.4*Math.sqrt(r),t=t>16?16:t|0,i=i.times(1/ti(5,t)),i=bn(s,2,i,i,!0);for(var o,a=new s(5),c=new s(16),l=new s(20);t--;)o=i.times(i),i=i.times(a.plus(o.times(c.times(o).plus(l))))}return s.precision=e,s.rounding=n,re(i,e,n,!0)},G.hyperbolicTangent=G.tanh=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+7,r.rounding=1,ye(n.sinh(),n.cosh(),r.precision=t,r.rounding=e)):new r(n.s)},G.inverseCosine=G.acos=function(){var t,e=this,n=e.constructor,r=e.abs().cmp(1),i=n.precision,s=n.rounding;return r!==-1?r===0?e.isNeg()?st(n,i,s):new n(0):new n(NaN):e.isZero()?st(n,i+4,s).times(.5):(n.precision=i+6,n.rounding=1,e=e.asin(),t=st(n,i+4,s).times(.5),n.precision=i,n.rounding=s,t.minus(e))},G.inverseHyperbolicCosine=G.acosh=function(){var t,e,n=this,r=n.constructor;return n.lte(1)?new r(n.eq(1)?0:NaN):n.isFinite()?(t=r.precision,e=r.rounding,r.precision=t+Math.max(Math.abs(n.e),n.sd())+4,r.rounding=1,ce=!1,n=n.times(n).minus(1).sqrt().plus(n),ce=!0,r.precision=t,r.rounding=e,n.ln()):new r(n)},G.inverseHyperbolicSine=G.asinh=function(){var t,e,n=this,r=n.constructor;return!n.isFinite()||n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+2*Math.max(Math.abs(n.e),n.sd())+6,r.rounding=1,ce=!1,n=n.times(n).plus(1).sqrt().plus(n),ce=!0,r.precision=t,r.rounding=e,n.ln())},G.inverseHyperbolicTangent=G.atanh=function(){var t,e,n,r,i=this,s=i.constructor;return i.isFinite()?i.e>=0?new s(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(t=s.precision,e=s.rounding,r=i.sd(),Math.max(r,t)<2*-i.e-1?re(new s(i),t,e,!0):(s.precision=n=r-i.e,i=ye(i.plus(1),new s(1).minus(i),n+t,1),s.precision=t+4,s.rounding=1,i=i.ln(),s.precision=t,s.rounding=e,i.times(.5))):new s(NaN)},G.inverseSine=G.asin=function(){var t,e,n,r,i=this,s=i.constructor;return i.isZero()?new s(i):(e=i.abs().cmp(1),n=s.precision,r=s.rounding,e!==-1?e===0?(t=st(s,n+4,r).times(.5),t.s=i.s,t):new s(NaN):(s.precision=n+6,s.rounding=1,i=i.div(new s(1).minus(i.times(i)).sqrt().plus(1)).atan(),s.precision=n,s.rounding=r,i.times(2)))},G.inverseTangent=G.atan=function(){var t,e,n,r,i,s,o,a,c,l=this,f=l.constructor,d=f.precision,u=f.rounding;if(l.isFinite()){if(l.isZero())return new f(l);if(l.abs().eq(1)&&d+4<=Fo)return o=st(f,d+4,u).times(.25),o.s=l.s,o}else{if(!l.s)return new f(NaN);if(d+4<=Fo)return o=st(f,d+4,u).times(.5),o.s=l.s,o}for(f.precision=a=d+10,f.rounding=1,n=Math.min(28,a/se+2|0),t=n;t;--t)l=l.div(l.times(l).plus(1).sqrt().plus(1));for(ce=!1,e=Math.ceil(a/se),r=1,c=l.times(l),o=new f(l),i=l;t!==-1;)if(i=i.times(c),s=o.minus(i.div(r+=2)),i=i.times(c),o=s.plus(i.div(r+=2)),o.d[e]!==void 0)for(t=e;o.d[t]===s.d[t]&&t--;);return n&&(o=o.times(2<<n-1)),ce=!0,re(o,f.precision=d,f.rounding=u,!0)},G.isFinite=function(){return!!this.d},G.isInteger=G.isInt=function(){return!!this.d&&Pe(this.e/se)>this.d.length-2},G.isNaN=function(){return!this.s},G.isNegative=G.isNeg=function(){return this.s<0},G.isPositive=G.isPos=function(){return this.s>0},G.isZero=function(){return!!this.d&&this.d[0]===0},G.lessThan=G.lt=function(t){return this.cmp(t)<0},G.lessThanOrEqualTo=G.lte=function(t){return this.cmp(t)<1},G.logarithm=G.log=function(t){var e,n,r,i,s,o,a,c,l=this,f=l.constructor,d=f.precision,u=f.rounding,h=5;if(t==null)t=new f(10),e=!0;else{if(t=new f(t),n=t.d,t.s<0||!n||!n[0]||t.eq(1))return new f(NaN);e=t.eq(10)}if(n=l.d,l.s<0||!n||!n[0]||l.eq(1))return new f(n&&!n[0]?-1/0:l.s!=1?NaN:n?0:1/0);if(e)if(n.length>1)s=!0;else{for(i=n[0];i%10===0;)i/=10;s=i!==1}if(ce=!1,a=d+h,o=zt(l,a),r=e?ei(f,a+10):zt(t,a),c=ye(o,r,a,1),Un(c.d,i=d,u))do if(a+=10,o=zt(l,a),r=e?ei(f,a+10):zt(t,a),c=ye(o,r,a,1),!s){+Me(c.d).slice(i+1,i+15)+1==1e14&&(c=re(c,d+1,0));break}while(Un(c.d,i+=10,u));return ce=!0,re(c,d,u)},G.minus=G.sub=function(t){var e,n,r,i,s,o,a,c,l,f,d,u,h=this,g=h.constructor;if(t=new g(t),!h.d||!t.d)return!h.s||!t.s?t=new g(NaN):h.d?t.s=-t.s:t=new g(t.d||h.s!==t.s?h:NaN),t;if(h.s!=t.s)return t.s=-t.s,h.plus(t);if(l=h.d,u=t.d,a=g.precision,c=g.rounding,!l[0]||!u[0]){if(u[0])t.s=-t.s;else if(l[0])t=new g(h);else return new g(c===3?-0:0);return ce?re(t,a,c):t}if(n=Pe(t.e/se),f=Pe(h.e/se),l=l.slice(),s=f-n,s){for(d=s<0,d?(e=l,s=-s,o=u.length):(e=u,n=f,o=l.length),r=Math.max(Math.ceil(a/se),o)+2,s>r&&(s=r,e.length=1),e.reverse(),r=s;r--;)e.push(0);e.reverse()}else{for(r=l.length,o=u.length,d=r<o,d&&(o=r),r=0;r<o;r++)if(l[r]!=u[r]){d=l[r]<u[r];break}s=0}for(d&&(e=l,l=u,u=e,t.s=-t.s),o=l.length,r=u.length-o;r>0;--r)l[o++]=0;for(r=u.length;r>s;){if(l[--r]<u[r]){for(i=r;i&&l[--i]===0;)l[i]=it-1;--l[i],l[r]+=it}l[r]-=u[r]}for(;l[--o]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(t.d=l,t.e=Jr(l,n),ce?re(t,a,c):t):new g(c===3?-0:0)},G.modulo=G.mod=function(t){var e,n=this,r=n.constructor;return t=new r(t),!n.d||!t.s||t.d&&!t.d[0]?new r(NaN):!t.d||n.d&&!n.d[0]?re(new r(n),r.precision,r.rounding):(ce=!1,r.modulo==9?(e=ye(n,t.abs(),0,3,1),e.s*=t.s):e=ye(n,t,0,r.modulo,1),e=e.times(t),ce=!0,n.minus(e))},G.naturalExponential=G.exp=function(){return Oo(this)},G.naturalLogarithm=G.ln=function(){return zt(this)},G.negated=G.neg=function(){var t=new this.constructor(this);return t.s=-t.s,re(t)},G.plus=G.add=function(t){var e,n,r,i,s,o,a,c,l,f,d=this,u=d.constructor;if(t=new u(t),!d.d||!t.d)return!d.s||!t.s?t=new u(NaN):d.d||(t=new u(t.d||d.s===t.s?d:NaN)),t;if(d.s!=t.s)return t.s=-t.s,d.minus(t);if(l=d.d,f=t.d,a=u.precision,c=u.rounding,!l[0]||!f[0])return f[0]||(t=new u(d)),ce?re(t,a,c):t;if(s=Pe(d.e/se),r=Pe(t.e/se),l=l.slice(),i=s-r,i){for(i<0?(n=l,i=-i,o=f.length):(n=f,r=s,o=l.length),s=Math.ceil(a/se),o=s>o?s+1:o+1,i>o&&(i=o,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for(o=l.length,i=f.length,o-i<0&&(i=o,n=f,f=l,l=n),e=0;i;)e=(l[--i]=l[i]+f[i]+e)/it|0,l[i]%=it;for(e&&(l.unshift(e),++r),o=l.length;l[--o]==0;)l.pop();return t.d=l,t.e=Jr(l,r),ce?re(t,a,c):t},G.precision=G.sd=function(t){var e,n=this;if(t!==void 0&&t!==!!t&&t!==1&&t!==0)throw Error(Ht+t);return n.d?(e=Pf(n.d),t&&n.e+1>e&&(e=n.e+1)):e=NaN,e},G.round=function(){var t=this,e=t.constructor;return re(new e(t),t.e+1,e.rounding)},G.sine=G.sin=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+Math.max(n.e,n.sd())+se,r.rounding=1,n=sb(r,Vf(r,n)),r.precision=t,r.rounding=e,re(At>2?n.neg():n,t,e,!0)):new r(NaN)},G.squareRoot=G.sqrt=function(){var t,e,n,r,i,s,o=this,a=o.d,c=o.e,l=o.s,f=o.constructor;if(l!==1||!a||!a[0])return new f(!l||l<0&&(!a||a[0])?NaN:a?o:1/0);for(ce=!1,l=Math.sqrt(+o),l==0||l==1/0?(e=Me(a),(e.length+c)%2==0&&(e+="0"),l=Math.sqrt(e),c=Pe((c+1)/2)-(c<0||c%2),l==1/0?e="5e"+c:(e=l.toExponential(),e=e.slice(0,e.indexOf("e")+1)+c),r=new f(e)):r=new f(l.toString()),n=(c=f.precision)+3;;)if(s=r,r=s.plus(ye(o,s,n+2,1)).times(.5),Me(s.d).slice(0,n)===(e=Me(r.d)).slice(0,n))if(e=e.slice(n-3,n+1),e=="9999"||!i&&e=="4999"){if(!i&&(re(s,c+1,0),s.times(s).eq(o))){r=s;break}n+=4,i=1}else{(!+e||!+e.slice(1)&&e.charAt(0)=="5")&&(re(r,c+1,1),t=!r.times(r).eq(o));break}return ce=!0,re(r,c,f.rounding,t)},G.tangent=G.tan=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+10,r.rounding=1,n=n.sin(),n.s=1,n=ye(n,new r(1).minus(n.times(n)).sqrt(),t+10,0),r.precision=t,r.rounding=e,re(At==2||At==4?n.neg():n,t,e,!0)):new r(NaN)},G.times=G.mul=function(t){var e,n,r,i,s,o,a,c,l,f=this,d=f.constructor,u=f.d,h=(t=new d(t)).d;if(t.s*=f.s,!u||!u[0]||!h||!h[0])return new d(!t.s||u&&!u[0]&&!h||h&&!h[0]&&!u?NaN:!u||!h?t.s/0:t.s*0);for(n=Pe(f.e/se)+Pe(t.e/se),c=u.length,l=h.length,c<l&&(s=u,u=h,h=s,o=c,c=l,l=o),s=[],o=c+l,r=o;r--;)s.push(0);for(r=l;--r>=0;){for(e=0,i=c+r;i>r;)a=s[i]+h[r]*u[i-r-1]+e,s[i--]=a%it|0,e=a/it|0;s[i]=(s[i]+e)%it|0}for(;!s[--o];)s.pop();return e?++n:s.shift(),t.d=s,t.e=Jr(s,n),ce?re(t,d.precision,d.rounding):t},G.toBinary=function(t,e){return Ho(this,2,t,e)},G.toDecimalPlaces=G.toDP=function(t,e){var n=this,r=n.constructor;return n=new r(n),t===void 0?n:($e(t,0,Pt),e===void 0?e=r.rounding:$e(e,0,8),re(n,t+n.e+1,e))},G.toExponential=function(t,e){var n,r=this,i=r.constructor;return t===void 0?n=ht(r,!0):($e(t,0,Pt),e===void 0?e=i.rounding:$e(e,0,8),r=re(new i(r),t+1,e),n=ht(r,!0,t+1)),r.isNeg()&&!r.isZero()?"-"+n:n},G.toFixed=function(t,e){var n,r,i=this,s=i.constructor;return t===void 0?n=ht(i):($e(t,0,Pt),e===void 0?e=s.rounding:$e(e,0,8),r=re(new s(i),t+i.e+1,e),n=ht(r,!1,t+r.e+1)),i.isNeg()&&!i.isZero()?"-"+n:n},G.toFraction=function(t){var e,n,r,i,s,o,a,c,l,f,d,u,h=this,g=h.d,m=h.constructor;if(!g)return new m(h);if(l=n=new m(1),r=c=new m(0),e=new m(r),s=e.e=Pf(g)-h.e-1,o=s%se,e.d[0]=Ie(10,o<0?se+o:o),t==null)t=s>0?e:l;else{if(a=new m(t),!a.isInt()||a.lt(l))throw Error(Ht+a);t=a.gt(e)?s>0?e:l:a}for(ce=!1,a=new m(Me(g)),f=m.precision,m.precision=s=g.length*se*2;d=ye(a,e,0,1,1),i=n.plus(d.times(r)),i.cmp(t)!=1;)n=r,r=i,i=l,l=c.plus(d.times(i)),c=i,i=e,e=a.minus(d.times(i)),a=i;return i=ye(t.minus(n),r,0,1,1),c=c.plus(i.times(l)),n=n.plus(i.times(r)),c.s=l.s=h.s,u=ye(l,r,s,1).minus(h).abs().cmp(ye(c,n,s,1).minus(h).abs())<1?[l,r]:[c,n],m.precision=f,ce=!0,u},G.toHexadecimal=G.toHex=function(t,e){return Ho(this,16,t,e)},G.toNearest=function(t,e){var n=this,r=n.constructor;if(n=new r(n),t==null){if(!n.d)return n;t=new r(1),e=r.rounding}else{if(t=new r(t),e===void 0?e=r.rounding:$e(e,0,8),!n.d)return t.s?n:t;if(!t.d)return t.s&&(t.s=n.s),t}return t.d[0]?(ce=!1,n=ye(n,t,0,e,1).times(t),ce=!0,re(n)):(t.s=n.s,n=t),n},G.toNumber=function(){return+this},G.toOctal=function(t,e){return Ho(this,8,t,e)},G.toPower=G.pow=function(t){var e,n,r,i,s,o,a=this,c=a.constructor,l=+(t=new c(t));if(!a.d||!t.d||!a.d[0]||!t.d[0])return new c(Ie(+a,l));if(a=new c(a),a.eq(1))return a;if(r=c.precision,s=c.rounding,t.eq(1))return re(a,r,s);if(e=Pe(t.e/se),e>=t.d.length-1&&(n=l<0?-l:l)<=tb)return i=Hf(c,a,n,r),t.s<0?new c(1).div(i):re(i,r,s);if(o=a.s,o<0){if(e<t.d.length-1)return new c(NaN);if(t.d[e]&1||(o=1),a.e==0&&a.d[0]==1&&a.d.length==1)return a.s=o,a}return n=Ie(+a,l),e=n==0||!isFinite(n)?Pe(l*(Math.log("0."+Me(a.d))/Math.LN10+a.e+1)):new c(n+"").e,e>c.maxE+1||e<c.minE-1?new c(e>0?o/0:0):(ce=!1,c.rounding=a.s=1,n=Math.min(12,(e+"").length),i=Oo(t.times(zt(a,r+n)),r),i.d&&(i=re(i,r+5,1),Un(i.d,r,s)&&(e=r+10,i=re(Oo(t.times(zt(a,e+n)),e),e+5,1),+Me(i.d).slice(r+1,r+15)+1==1e14&&(i=re(i,r+1,0)))),i.s=o,ce=!0,c.rounding=s,re(i,r,s))},G.toPrecision=function(t,e){var n,r=this,i=r.constructor;return t===void 0?n=ht(r,r.e<=i.toExpNeg||r.e>=i.toExpPos):($e(t,1,Pt),e===void 0?e=i.rounding:$e(e,0,8),r=re(new i(r),t,e),n=ht(r,t<=r.e||r.e<=i.toExpNeg,t)),r.isNeg()&&!r.isZero()?"-"+n:n},G.toSignificantDigits=G.toSD=function(t,e){var n=this,r=n.constructor;return t===void 0?(t=r.precision,e=r.rounding):($e(t,1,Pt),e===void 0?e=r.rounding:$e(e,0,8)),re(new r(n),t,e)},G.toString=function(){var t=this,e=t.constructor,n=ht(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()&&!t.isZero()?"-"+n:n},G.truncated=G.trunc=function(){return re(new this.constructor(this),this.e+1,1)},G.valueOf=G.toJSON=function(){var t=this,e=t.constructor,n=ht(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()?"-"+n:n};function Me(t){var e,n,r,i=t.length-1,s="",o=t[0];if(i>0){for(s+=o,e=1;e<i;e++)r=t[e]+"",n=se-r.length,n&&(s+=Lt(n)),s+=r;o=t[e],r=o+"",n=se-r.length,n&&(s+=Lt(n))}else if(o===0)return"0";for(;o%10===0;)o/=10;return s+o}function $e(t,e,n){if(t!==~~t||t<e||t>n)throw Error(Ht+t)}function Un(t,e,n,r){var i,s,o,a;for(s=t[0];s>=10;s/=10)--e;return--e<0?(e+=se,i=0):(i=Math.ceil((e+1)/se),e%=se),s=Ie(10,se-e),a=t[i]%s|0,r==null?e<3?(e==0?a=a/100|0:e==1&&(a=a/10|0),o=n<4&&a==99999||n>3&&a==49999||a==5e4||a==0):o=(n<4&&a+1==s||n>3&&a+1==s/2)&&(t[i+1]/s/100|0)==Ie(10,e-2)-1||(a==s/2||a==0)&&(t[i+1]/s/100|0)==0:e<4?(e==0?a=a/1e3|0:e==1?a=a/100|0:e==2&&(a=a/10|0),o=(r||n<4)&&a==9999||!r&&n>3&&a==4999):o=((r||n<4)&&a+1==s||!r&&n>3&&a+1==s/2)&&(t[i+1]/s/1e3|0)==Ie(10,e-3)-1,o}function Kr(t,e,n){for(var r,i=[0],s,o=0,a=t.length;o<a;){for(s=i.length;s--;)i[s]*=e;for(i[0]+=No.indexOf(t.charAt(o++)),r=0;r<i.length;r++)i[r]>n-1&&(i[r+1]===void 0&&(i[r+1]=0),i[r+1]+=i[r]/n|0,i[r]%=n)}return i.reverse()}function rb(t,e){var n,r,i;if(e.isZero())return e;r=e.d.length,r<32?(n=Math.ceil(r/3),i=(1/ti(4,n)).toString()):(n=16,i="2.3283064365386962890625e-10"),t.precision+=n,e=bn(t,1,e.times(i),new t(1));for(var s=n;s--;){var o=e.times(e);e=o.times(o).minus(o).times(8).plus(1)}return t.precision-=n,e}var ye=function(){function t(r,i,s){var o,a=0,c=r.length;for(r=r.slice();c--;)o=r[c]*i+a,r[c]=o%s|0,a=o/s|0;return a&&r.unshift(a),r}function e(r,i,s,o){var a,c;if(s!=o)c=s>o?1:-1;else for(a=c=0;a<s;a++)if(r[a]!=i[a]){c=r[a]>i[a]?1:-1;break}return c}function n(r,i,s,o){for(var a=0;s--;)r[s]-=a,a=r[s]<i[s]?1:0,r[s]=a*o+r[s]-i[s];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,s,o,a,c){var l,f,d,u,h,g,m,x,A,p,v,b,E,C,D,w,I,R,B,P,U=r.constructor,j=r.s==i.s?1:-1,z=r.d,H=i.d;if(!z||!z[0]||!H||!H[0])return new U(!r.s||!i.s||(z?H&&z[0]==H[0]:!H)?NaN:z&&z[0]==0||!H?j*0:j/0);for(c?(h=1,f=r.e-i.e):(c=it,h=se,f=Pe(r.e/h)-Pe(i.e/h)),B=H.length,I=z.length,A=new U(j),p=A.d=[],d=0;H[d]==(z[d]||0);d++);if(H[d]>(z[d]||0)&&f--,s==null?(C=s=U.precision,o=U.rounding):a?C=s+(r.e-i.e)+1:C=s,C<0)p.push(1),g=!0;else{if(C=C/h+2|0,d=0,B==1){for(u=0,H=H[0],C++;(d<I||u)&&C--;d++)D=u*c+(z[d]||0),p[d]=D/H|0,u=D%H|0;g=u||d<I}else{for(u=c/(H[0]+1)|0,u>1&&(H=t(H,u,c),z=t(z,u,c),B=H.length,I=z.length),w=B,v=z.slice(0,B),b=v.length;b<B;)v[b++]=0;P=H.slice(),P.unshift(0),R=H[0],H[1]>=c/2&&++R;do u=0,l=e(H,v,B,b),l<0?(E=v[0],B!=b&&(E=E*c+(v[1]||0)),u=E/R|0,u>1?(u>=c&&(u=c-1),m=t(H,u,c),x=m.length,b=v.length,l=e(m,v,x,b),l==1&&(u--,n(m,B<x?P:H,x,c))):(u==0&&(l=u=1),m=H.slice()),x=m.length,x<b&&m.unshift(0),n(v,m,b,c),l==-1&&(b=v.length,l=e(H,v,B,b),l<1&&(u++,n(v,B<b?P:H,b,c))),b=v.length):l===0&&(u++,v=[0]),p[d++]=u,l&&v[0]?v[b++]=z[w]||0:(v=[z[w]],b=1);while((w++<I||v[0]!==void 0)&&C--);g=v[0]!==void 0}p[0]||p.shift()}if(h==1)A.e=f,If=g;else{for(d=1,u=p[0];u>=10;u/=10)d++;A.e=d+f*h-1,re(A,a?s+A.e+1:s,o,g)}return A}}();function re(t,e,n,r){var i,s,o,a,c,l,f,d,u,h=t.constructor;e:if(e!=null){if(d=t.d,!d)return t;for(i=1,a=d[0];a>=10;a/=10)i++;if(s=e-i,s<0)s+=se,o=e,f=d[u=0],c=f/Ie(10,i-o-1)%10|0;else if(u=Math.ceil((s+1)/se),a=d.length,u>=a)if(r){for(;a++<=u;)d.push(0);f=c=0,i=1,s%=se,o=s-se+1}else break e;else{for(f=a=d[u],i=1;a>=10;a/=10)i++;s%=se,o=s-se+i,c=o<0?0:f/Ie(10,i-o-1)%10|0}if(r=r||e<0||d[u+1]!==void 0||(o<0?f:f%Ie(10,i-o-1)),l=n<4?(c||r)&&(n==0||n==(t.s<0?3:2)):c>5||c==5&&(n==4||r||n==6&&(s>0?o>0?f/Ie(10,i-o):0:d[u-1])%10&1||n==(t.s<0?8:7)),e<1||!d[0])return d.length=0,l?(e-=t.e+1,d[0]=Ie(10,(se-e%se)%se),t.e=-e||0):d[0]=t.e=0,t;if(s==0?(d.length=u,a=1,u--):(d.length=u+1,a=Ie(10,se-s),d[u]=o>0?(f/Ie(10,i-o)%Ie(10,o)|0)*a:0),l)for(;;)if(u==0){for(s=1,o=d[0];o>=10;o/=10)s++;for(o=d[0]+=a,a=1;o>=10;o/=10)a++;s!=a&&(t.e++,d[0]==it&&(d[0]=1));break}else{if(d[u]+=a,d[u]!=it)break;d[u--]=0,a=1}for(s=d.length;d[--s]===0;)d.pop()}return ce&&(t.e>h.maxE?(t.d=null,t.e=NaN):t.e<h.minE&&(t.e=0,t.d=[0])),t}function ht(t,e,n){if(!t.isFinite())return Uf(t);var r,i=t.e,s=Me(t.d),o=s.length;return e?(n&&(r=n-o)>0?s=s.charAt(0)+"."+s.slice(1)+Lt(r):o>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(t.e<0?"e":"e+")+t.e):i<0?(s="0."+Lt(-i-1)+s,n&&(r=n-o)>0&&(s+=Lt(r))):i>=o?(s+=Lt(i+1-o),n&&(r=n-i-1)>0&&(s=s+"."+Lt(r))):((r=i+1)<o&&(s=s.slice(0,r)+"."+s.slice(r)),n&&(r=n-o)>0&&(i+1===o&&(s+="."),s+=Lt(r))),s}function Jr(t,e){var n=t[0];for(e*=se;n>=10;n/=10)e++;return e}function ei(t,e,n){if(e>nb)throw ce=!0,n&&(t.precision=n),Error(Nf);return re(new t(Qr),e,1,!0)}function st(t,e,n){if(e>Fo)throw Error(Nf);return re(new t(Zr),e,n,!0)}function Pf(t){var e=t.length-1,n=e*se+1;if(e=t[e],e){for(;e%10==0;e/=10)n--;for(e=t[0];e>=10;e/=10)n++}return n}function Lt(t){for(var e="";t--;)e+="0";return e}function Hf(t,e,n,r){var i,s=new t(1),o=Math.ceil(r/se+4);for(ce=!1;;){if(n%2&&(s=s.times(e),Wf(s.d,o)&&(i=!0)),n=Pe(n/2),n===0){n=s.d.length-1,i&&s.d[n]===0&&++s.d[n];break}e=e.times(e),Wf(e.d,o)}return ce=!0,s}function Lf(t){return t.d[t.d.length-1]&1}function zf(t,e,n){for(var r,i=new t(e[0]),s=0;++s<e.length;)if(r=new t(e[s]),r.s)i[n](r)&&(i=r);else{i=r;break}return i}function Oo(t,e){var n,r,i,s,o,a,c,l=0,f=0,d=0,u=t.constructor,h=u.rounding,g=u.precision;if(!t.d||!t.d[0]||t.e>17)return new u(t.d?t.d[0]?t.s<0?0:1/0:1:t.s?t.s<0?0:t:0/0);for(e==null?(ce=!1,c=g):c=e,a=new u(.03125);t.e>-2;)t=t.times(a),d+=5;for(r=Math.log(Ie(2,d))/Math.LN10*2+5|0,c+=r,n=s=o=new u(1),u.precision=c;;){if(s=re(s.times(t),c,1),n=n.times(++f),a=o.plus(ye(s,n,c,1)),Me(a.d).slice(0,c)===Me(o.d).slice(0,c)){for(i=d;i--;)o=re(o.times(o),c,1);if(e==null)if(l<3&&Un(o.d,c-r,h,l))u.precision=c+=10,n=s=a=new u(1),f=0,l++;else return re(o,u.precision=g,h,ce=!0);else return u.precision=g,o}o=a}}function zt(t,e){var n,r,i,s,o,a,c,l,f,d,u,h=1,g=10,m=t,x=m.d,A=m.constructor,p=A.rounding,v=A.precision;if(m.s<0||!x||!x[0]||!m.e&&x[0]==1&&x.length==1)return new A(x&&!x[0]?-1/0:m.s!=1?NaN:x?0:m);if(e==null?(ce=!1,f=v):f=e,A.precision=f+=g,n=Me(x),r=n.charAt(0),Math.abs(s=m.e)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)m=m.times(t),n=Me(m.d),r=n.charAt(0),h++;s=m.e,r>1?(m=new A("0."+n),s++):m=new A(r+"."+n.slice(1))}else return l=ei(A,f+2,v).times(s+""),m=zt(new A(r+"."+n.slice(1)),f-g).plus(l),A.precision=v,e==null?re(m,v,p,ce=!0):m;for(d=m,c=o=m=ye(m.minus(1),m.plus(1),f,1),u=re(m.times(m),f,1),i=3;;){if(o=re(o.times(u),f,1),l=c.plus(ye(o,new A(i),f,1)),Me(l.d).slice(0,f)===Me(c.d).slice(0,f))if(c=c.times(2),s!==0&&(c=c.plus(ei(A,f+2,v).times(s+""))),c=ye(c,new A(h),f,1),e==null)if(Un(c.d,f-g,p,a))A.precision=f+=g,l=o=m=ye(d.minus(1),d.plus(1),f,1),u=re(m.times(m),f,1),i=a=1;else return re(c,A.precision=v,p,ce=!0);else return A.precision=v,c;c=l,i+=2}}function Uf(t){return String(t.s*t.s/0)}function Po(t,e){var n,r,i;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;e.charCodeAt(r)===48;r++);for(i=e.length;e.charCodeAt(i-1)===48;--i);if(e=e.slice(r,i),e){if(i-=r,t.e=n=n-r-1,t.d=[],r=(n+1)%se,n<0&&(r+=se),r<i){for(r&&t.d.push(+e.slice(0,r)),i-=se;r<i;)t.d.push(+e.slice(r,r+=se));e=e.slice(r),r=se-e.length}else r-=i;for(;r--;)e+="0";t.d.push(+e),ce&&(t.e>t.constructor.maxE?(t.d=null,t.e=NaN):t.e<t.constructor.minE&&(t.e=0,t.d=[0]))}else t.e=0,t.d=[0];return t}function ib(t,e){var n,r,i,s,o,a,c,l,f;if(e.indexOf("_")>-1){if(e=e.replace(/(\d)_(?=\d)/g,"$1"),Of.test(e))return Po(t,e)}else if(e==="Infinity"||e==="NaN")return+e||(t.s=NaN),t.e=NaN,t.d=null,t;if(Jx.test(e))n=16,e=e.toLowerCase();else if(Kx.test(e))n=2;else if(eb.test(e))n=8;else throw Error(Ht+e);for(s=e.search(/p/i),s>0?(c=+e.slice(s+1),e=e.substring(2,s)):e=e.slice(2),s=e.indexOf("."),o=s>=0,r=t.constructor,o&&(e=e.replace(".",""),a=e.length,s=a-s,i=Hf(r,new r(n),s,s*2)),l=Kr(e,n,it),f=l.length-1,s=f;l[s]===0;--s)l.pop();return s<0?new r(t.s*0):(t.e=Jr(l,f),t.d=l,ce=!1,o&&(t=ye(t,i,a*4)),c&&(t=t.times(Math.abs(c)<54?Ie(2,c):Vn.pow(2,c))),ce=!0,t)}function sb(t,e){var n,r=e.d.length;if(r<3)return e.isZero()?e:bn(t,2,e,e);n=1.4*Math.sqrt(r),n=n>16?16:n|0,e=e.times(1/ti(5,n)),e=bn(t,2,e,e);for(var i,s=new t(5),o=new t(16),a=new t(20);n--;)i=e.times(e),e=e.times(s.plus(i.times(o.times(i).minus(a))));return e}function bn(t,e,n,r,i){var s,o,a,c,l=t.precision,f=Math.ceil(l/se);for(ce=!1,c=n.times(n),a=new t(r);;){if(o=ye(a.times(c),new t(e++*e++),l,1),a=i?r.plus(o):r.minus(o),r=ye(o.times(c),new t(e++*e++),l,1),o=a.plus(r),o.d[f]!==void 0){for(s=f;o.d[s]===a.d[s]&&s--;);if(s==-1)break}s=a,a=r,r=o,o=s}return ce=!0,o.d.length=f+1,o}function ti(t,e){for(var n=t;--e;)n*=t;return n}function Vf(t,e){var n,r=e.s<0,i=st(t,t.precision,1),s=i.times(.5);if(e=e.abs(),e.lte(s))return At=r?4:1,e;if(n=e.divToInt(i),n.isZero())At=r?3:2;else{if(e=e.minus(n.times(i)),e.lte(s))return At=Lf(n)?r?2:3:r?4:1,e;At=Lf(n)?r?1:4:r?3:2}return e.minus(i).abs()}function Ho(t,e,n,r){var i,s,o,a,c,l,f,d,u,h=t.constructor,g=n!==void 0;if(g?($e(n,1,Pt),r===void 0?r=h.rounding:$e(r,0,8)):(n=h.precision,r=h.rounding),!t.isFinite())f=Uf(t);else{for(f=ht(t),o=f.indexOf("."),g?(i=2,e==16?n=n*4-3:e==8&&(n=n*3-2)):i=e,o>=0&&(f=f.replace(".",""),u=new h(1),u.e=f.length-o,u.d=Kr(ht(u),10,i),u.e=u.d.length),d=Kr(f,10,i),s=c=d.length;d[--c]==0;)d.pop();if(!d[0])f=g?"0p+0":"0";else{if(o<0?s--:(t=new h(t),t.d=d,t.e=s,t=ye(t,u,n,r,0,i),d=t.d,s=t.e,l=If),o=d[n],a=i/2,l=l||d[n+1]!==void 0,l=r<4?(o!==void 0||l)&&(r===0||r===(t.s<0?3:2)):o>a||o===a&&(r===4||l||r===6&&d[n-1]&1||r===(t.s<0?8:7)),d.length=n,l)for(;++d[--n]>i-1;)d[n]=0,n||(++s,d.unshift(1));for(c=d.length;!d[c-1];--c);for(o=0,f="";o<c;o++)f+=No.charAt(d[o]);if(g){if(c>1)if(e==16||e==8){for(o=e==16?4:3,--c;c%o;c++)f+="0";for(d=Kr(f,i,e),c=d.length;!d[c-1];--c);for(o=1,f="1.";o<c;o++)f+=No.charAt(d[o])}else f=f.charAt(0)+"."+f.slice(1);f=f+(s<0?"p":"p+")+s}else if(s<0){for(;++s;)f="0"+f;f="0."+f}else if(++s>c)for(s-=c;s--;)f+="0";else s<c&&(f=f.slice(0,s)+"."+f.slice(s))}f=(e==16?"0x":e==2?"0b":e==8?"0o":"")+f}return t.s<0?"-"+f:f}function Wf(t,e){if(t.length>e)return t.length=e,!0}function ob(t){return new this(t).abs()}function ab(t){return new this(t).acos()}function lb(t){return new this(t).acosh()}function cb(t,e){return new this(t).plus(e)}function fb(t){return new this(t).asin()}function ub(t){return new this(t).asinh()}function db(t){return new this(t).atan()}function hb(t){return new this(t).atanh()}function pb(t,e){t=new this(t),e=new this(e);var n,r=this.precision,i=this.rounding,s=r+4;return!t.s||!e.s?n=new this(NaN):!t.d&&!e.d?(n=st(this,s,1).times(e.s>0?.25:.75),n.s=t.s):!e.d||t.isZero()?(n=e.s<0?st(this,r,i):new this(0),n.s=t.s):!t.d||e.isZero()?(n=st(this,s,1).times(.5),n.s=t.s):e.s<0?(this.precision=s,this.rounding=1,n=this.atan(ye(t,e,s,1)),e=st(this,s,1),this.precision=r,this.rounding=i,n=t.s<0?n.minus(e):n.plus(e)):n=this.atan(ye(t,e,s,1)),n}function gb(t){return new this(t).cbrt()}function vb(t){return re(t=new this(t),t.e+1,2)}function mb(t,e,n){return new this(t).clamp(e,n)}function xb(t){if(!t||typeof t!="object")throw Error(Xr+"Object expected");var e,n,r,i=t.defaults===!0,s=["precision",1,Pt,"rounding",0,8,"toExpNeg",-xn,0,"toExpPos",0,xn,"maxE",0,xn,"minE",-xn,0,"modulo",0,9];for(e=0;e<s.length;e+=3)if(n=s[e],i&&(this[n]=Mo[n]),(r=t[n])!==void 0)if(Pe(r)===r&&r>=s[e+1]&&r<=s[e+2])this[n]=r;else throw Error(Ht+n+": "+r);if(n="crypto",i&&(this[n]=Mo[n]),(r=t[n])!==void 0)if(r===!0||r===!1||r===0||r===1)if(r)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[n]=!0;else throw Error(Mf);else this[n]=!1;else throw Error(Ht+n+": "+r);return this}function bb(t){return new this(t).cos()}function yb(t){return new this(t).cosh()}function jf(t){var e,n,r;function i(s){var o,a,c,l=this;if(!(l instanceof i))return new i(s);if(l.constructor=i,qf(s)){l.s=s.s,ce?!s.d||s.e>i.maxE?(l.e=NaN,l.d=null):s.e<i.minE?(l.e=0,l.d=[0]):(l.e=s.e,l.d=s.d.slice()):(l.e=s.e,l.d=s.d?s.d.slice():s.d);return}if(c=typeof s,c==="number"){if(s===0){l.s=1/s<0?-1:1,l.e=0,l.d=[0];return}if(s<0?(s=-s,l.s=-1):l.s=1,s===~~s&&s<1e7){for(o=0,a=s;a>=10;a/=10)o++;ce?o>i.maxE?(l.e=NaN,l.d=null):o<i.minE?(l.e=0,l.d=[0]):(l.e=o,l.d=[s]):(l.e=o,l.d=[s]);return}else if(s*0!==0){s||(l.s=NaN),l.e=NaN,l.d=null;return}return Po(l,s.toString())}else if(c!=="string")throw Error(Ht+s);return(a=s.charCodeAt(0))===45?(s=s.slice(1),l.s=-1):(a===43&&(s=s.slice(1)),l.s=1),Of.test(s)?Po(l,s):ib(l,s)}if(i.prototype=G,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.EUCLID=9,i.config=i.set=xb,i.clone=jf,i.isDecimal=qf,i.abs=ob,i.acos=ab,i.acosh=lb,i.add=cb,i.asin=fb,i.asinh=ub,i.atan=db,i.atanh=hb,i.atan2=pb,i.cbrt=gb,i.ceil=vb,i.clamp=mb,i.cos=bb,i.cosh=yb,i.div=Eb,i.exp=Ab,i.floor=Cb,i.hypot=wb,i.ln=_b,i.log=Db,i.log10=Rb,i.log2=Sb,i.max=Bb,i.min=Tb,i.mod=kb,i.mul=Ib,i.pow=Nb,i.random=Mb,i.round=Fb,i.sign=Ob,i.sin=Pb,i.sinh=Hb,i.sqrt=Lb,i.sub=zb,i.sum=Ub,i.tan=Vb,i.tanh=Wb,i.trunc=jb,t===void 0&&(t={}),t&&t.defaults!==!0)for(r=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],e=0;e<r.length;)t.hasOwnProperty(n=r[e++])||(t[n]=this[n]);return i.config(t),i}function Eb(t,e){return new this(t).div(e)}function Ab(t){return new this(t).exp()}function Cb(t){return re(t=new this(t),t.e+1,3)}function wb(){var t,e,n=new this(0);for(ce=!1,t=0;t<arguments.length;)if(e=new this(arguments[t++]),e.d)n.d&&(n=n.plus(e.times(e)));else{if(e.s)return ce=!0,new this(1/0);n=e}return ce=!0,n.sqrt()}function qf(t){return t instanceof Vn||t&&t.toStringTag===Ff||!1}function _b(t){return new this(t).ln()}function Db(t,e){return new this(t).log(e)}function Sb(t){return new this(t).log(2)}function Rb(t){return new this(t).log(10)}function Bb(){return zf(this,arguments,"lt")}function Tb(){return zf(this,arguments,"gt")}function kb(t,e){return new this(t).mod(e)}function Ib(t,e){return new this(t).mul(e)}function Nb(t,e){return new this(t).pow(e)}function Mb(t){var e,n,r,i,s=0,o=new this(1),a=[];if(t===void 0?t=this.precision:$e(t,1,Pt),r=Math.ceil(t/se),this.crypto)if(crypto.getRandomValues)for(e=crypto.getRandomValues(new Uint32Array(r));s<r;)i=e[s],i>=429e7?e[s]=crypto.getRandomValues(new Uint32Array(1))[0]:a[s++]=i%1e7;else if(crypto.randomBytes){for(e=crypto.randomBytes(r*=4);s<r;)i=e[s]+(e[s+1]<<8)+(e[s+2]<<16)+((e[s+3]&127)<<24),i>=214e7?crypto.randomBytes(4).copy(e,s):(a.push(i%1e7),s+=4);s=r/4}else throw Error(Mf);else for(;s<r;)a[s++]=Math.random()*1e7|0;for(r=a[--s],t%=se,r&&t&&(i=Ie(10,se-t),a[s]=(r/i|0)*i);a[s]===0;s--)a.pop();if(s<0)n=0,a=[0];else{for(n=-1;a[0]===0;n-=se)a.shift();for(r=1,i=a[0];i>=10;i/=10)r++;r<se&&(n-=se-r)}return o.e=n,o.d=a,o}function Fb(t){return re(t=new this(t),t.e+1,this.rounding)}function Ob(t){return t=new this(t),t.d?t.d[0]?t.s:0*t.s:t.s||NaN}function Pb(t){return new this(t).sin()}function Hb(t){return new this(t).sinh()}function Lb(t){return new this(t).sqrt()}function zb(t,e){return new this(t).sub(e)}function Ub(){var t=0,e=arguments,n=new this(e[t]);for(ce=!1;n.s&&++t<e.length;)n=n.plus(e[t]);return ce=!0,re(n,this.precision,this.rounding)}function Vb(t){return new this(t).tan()}function Wb(t){return new this(t).tanh()}function jb(t){return re(t=new this(t),t.e+1,1)}G[Symbol.for("nodejs.util.inspect.custom")]=G.toString,G[Symbol.toStringTag]="Decimal";var Vn=G.constructor=jf(Mo);Qr=new Vn(Qr),Zr=new Vn(Zr);var qb={exports:{}};/*!
|
|
26
|
+
* Waves v0.7.6
|
|
27
|
+
* http://fian.my.id/Waves
|
|
28
|
+
*
|
|
29
|
+
* Copyright 2014-2018 Alfiana E. Sibuea and other contributors
|
|
30
|
+
* Released under the MIT license
|
|
31
|
+
* https://github.com/fians/Waves/blob/master/LICENSE
|
|
32
|
+
*/(function(t,e){(function(n,r){t.exports=r.call(n)})(ae,function(){var n=n||{},r=document.querySelectorAll.bind(document),i=Object.prototype.toString,s="ontouchstart"in window;function o(v){return v!==null&&v===v.window}function a(v){return o(v)?v:v.nodeType===9&&v.defaultView}function c(v){var b=typeof v;return b==="function"||b==="object"&&!!v}function l(v){return c(v)&&v.nodeType>0}function f(v){var b=i.call(v);return b==="[object String]"?r(v):c(v)&&/^\[object (Array|HTMLCollection|NodeList|Object)\]$/.test(b)&&v.hasOwnProperty("length")?v:l(v)?[v]:[]}function d(v){var b,E,C={top:0,left:0},D=v&&v.ownerDocument;return b=D.documentElement,typeof v.getBoundingClientRect<"u"&&(C=v.getBoundingClientRect()),E=a(D),{top:C.top+E.pageYOffset-b.clientTop,left:C.left+E.pageXOffset-b.clientLeft}}function u(v){var b="";for(var E in v)v.hasOwnProperty(E)&&(b+=E+":"+v[E]+";");return b}var h={duration:750,delay:200,show:function(v,b,E){if(v.button===2)return!1;b=b||this;var C=document.createElement("div");C.className="waves-ripple waves-rippling",b.appendChild(C);var D=d(b),w=0,I=0;"touches"in v&&v.touches.length?(w=v.touches[0].pageY-D.top,I=v.touches[0].pageX-D.left):(w=v.pageY-D.top,I=v.pageX-D.left),I=I>=0?I:0,w=w>=0?w:0;var R="scale("+b.clientWidth/100*3+")",B="translate(0,0)";E&&(B="translate("+E.x+"px, "+E.y+"px)"),C.setAttribute("data-hold",Date.now()),C.setAttribute("data-x",I),C.setAttribute("data-y",w),C.setAttribute("data-scale",R),C.setAttribute("data-translate",B);var P={top:w+"px",left:I+"px"};C.classList.add("waves-notransition"),C.setAttribute("style",u(P)),C.classList.remove("waves-notransition"),P["-webkit-transform"]=R+" "+B,P["-moz-transform"]=R+" "+B,P["-ms-transform"]=R+" "+B,P["-o-transform"]=R+" "+B,P.transform=R+" "+B,P.opacity="1";var U=v.type==="mousemove"?2500:h.duration;P["-webkit-transition-duration"]=U+"ms",P["-moz-transition-duration"]=U+"ms",P["-o-transition-duration"]=U+"ms",P["transition-duration"]=U+"ms",C.setAttribute("style",u(P))},hide:function(v,b){b=b||this;for(var E=b.getElementsByClassName("waves-rippling"),C=0,D=E.length;C<D;C++)m(v,b,E[C]);s&&(b.removeEventListener("touchend",h.hide),b.removeEventListener("touchcancel",h.hide)),b.removeEventListener("mouseup",h.hide),b.removeEventListener("mouseleave",h.hide)}},g={input:function(v){var b=v.parentNode;if(!(b.tagName.toLowerCase()==="i"&&b.classList.contains("waves-effect"))){var E=document.createElement("i");E.className=v.className+" waves-input-wrapper",v.className="waves-button-input",b.replaceChild(E,v),E.appendChild(v);var C=window.getComputedStyle(v,null),D=C.color,w=C.backgroundColor;E.setAttribute("style","color:"+D+";background:"+w),v.setAttribute("style","background-color:rgba(0,0,0,0);")}},img:function(v){var b=v.parentNode;if(!(b.tagName.toLowerCase()==="i"&&b.classList.contains("waves-effect"))){var E=document.createElement("i");b.replaceChild(E,v),E.appendChild(v)}}};function m(v,b,E){if(E){E.classList.remove("waves-rippling");var C=E.getAttribute("data-x"),D=E.getAttribute("data-y"),w=E.getAttribute("data-scale"),I=E.getAttribute("data-translate"),R=Date.now()-Number(E.getAttribute("data-hold")),B=350-R;B<0&&(B=0),v.type==="mousemove"&&(B=150);var P=v.type==="mousemove"?2500:h.duration;setTimeout(function(){var U={top:D+"px",left:C+"px",opacity:"0","-webkit-transition-duration":P+"ms","-moz-transition-duration":P+"ms","-o-transition-duration":P+"ms","transition-duration":P+"ms","-webkit-transform":w+" "+I,"-moz-transform":w+" "+I,"-ms-transform":w+" "+I,"-o-transform":w+" "+I,transform:w+" "+I};E.setAttribute("style",u(U)),setTimeout(function(){try{b.removeChild(E)}catch{return!1}},P)},B)}}var x={touches:0,allowEvent:function(v){var b=!0;return/^(mousedown|mousemove)$/.test(v.type)&&x.touches&&(b=!1),b},registerEvent:function(v){var b=v.type;b==="touchstart"?x.touches+=1:/^(touchend|touchcancel)$/.test(b)&&setTimeout(function(){x.touches&&(x.touches-=1)},500)}};function A(v){if(x.allowEvent(v)===!1)return null;for(var b=null,E=v.target||v.srcElement;E.parentElement;){if(!(E instanceof SVGElement)&&E.classList.contains("waves-effect")){b=E;break}E=E.parentElement}return b}function p(v){var b=A(v);if(b!==null){if(b.disabled||b.getAttribute("disabled")||b.classList.contains("disabled"))return;if(x.registerEvent(v),v.type==="touchstart"&&h.delay){var E=!1,C=setTimeout(function(){C=null,h.show(v,b)},h.delay),D=function(R){C&&(clearTimeout(C),C=null,h.show(v,b)),E||(E=!0,h.hide(R,b)),I()},w=function(R){C&&(clearTimeout(C),C=null),D(R),I()};b.addEventListener("touchmove",w,!1),b.addEventListener("touchend",D,!1),b.addEventListener("touchcancel",D,!1);var I=function(){b.removeEventListener("touchmove",w),b.removeEventListener("touchend",D),b.removeEventListener("touchcancel",D)}}else h.show(v,b),s&&(b.addEventListener("touchend",h.hide,!1),b.addEventListener("touchcancel",h.hide,!1)),b.addEventListener("mouseup",h.hide,!1),b.addEventListener("mouseleave",h.hide,!1)}}return n.init=function(v){var b=document.body;v=v||{},"duration"in v&&(h.duration=v.duration),"delay"in v&&(h.delay=v.delay),s&&(b.addEventListener("touchstart",p,!1),b.addEventListener("touchcancel",x.registerEvent,!1),b.addEventListener("touchend",x.registerEvent,!1)),b.addEventListener("mousedown",p,!1)},n.attach=function(v,b){v=f(v),i.call(b)==="[object Array]"&&(b=b.join(" ")),b=b?" "+b:"";for(var E,C,D=0,w=v.length;D<w;D++)E=v[D],C=E.tagName.toLowerCase(),["input","img"].indexOf(C)!==-1&&(g[C](E),E=E.parentElement),E.className.indexOf("waves-effect")===-1&&(E.className+=" waves-effect"+b)},n.ripple=function(v,b){v=f(v);var E=v.length;if(b=b||{},b.wait=b.wait||0,b.position=b.position||null,E){for(var C,D,w,I={},R=0,B={type:"mousedown",button:1},P=function(j,z){return function(){h.hide(j,z)}};R<E;R++)if(C=v[R],D=b.position||{x:C.clientWidth/2,y:C.clientHeight/2},w=d(C),I.x=w.left+D.x,I.y=w.top+D.y,B.pageX=I.x,B.pageY=I.y,h.show(B,C),b.wait>=0&&b.wait!==null){var U={type:"mouseup",button:1};setTimeout(P(U,C),b.wait)}}},n.calm=function(v){v=f(v);for(var b={type:"mouseup",button:1},E=0,C=v.length;E<C;E++)h.hide(b,v[E])},n.displayEffect=function(v){console.error("Waves.displayEffect() has been deprecated and will be removed in future version. Please use Waves.init() to initialize Waves effect"),n.init(v)},n})})(qb);const xE="",le={lunarInfo:[19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,28309,23248,11104,100067,37600,116951,51536,54432,120998,46416,22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42416,83315,21168,43432,59728,27296,44710,43856,19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46752,103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,21952,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893,43344,46240,47780,44368,21977,19360,42416,86390,21168,43312,31060,27296,44368,23378,19296,42726,42208,53856,60005,54576,23200,30371,38608,19195,19152,42192,118966,53840,54560,56645,46496,22224,21938,18864,42359,42160,43600,111189,27936,44448,84835,37744,18936,18800,25776,92326,59984,27424,108228,43744,41696,53987,51552,54615,54432,55888,23893,22176,42704,21972,21200,43448,43344,46240,46758,44368,21920,43940,42416,21168,45683,26928,29495,27296,44368,84821,19296,42352,21732,53600,59752,54560,55968,92838,22224,19168,43476,41680,53584,62034,54560],solarMonth:[31,28,31,30,31,30,31,31,30,31,30,31],Gan:["甲","乙","丙","丁","戊","己","庚","辛","壬","癸"],Zhi:["子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"],Animals:["鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪"],solarTerm:["小寒","大寒","立春","雨水","惊蛰","春分","清明","谷雨","立夏","小满","芒种","夏至","小暑","大暑","立秋","处暑","白露","秋分","寒露","霜降","立冬","小雪","大雪","冬至"],sTermInfo:["9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","9778397bd19801ec9210c965cc920e","97b6b97bd19801ec95f8c965cc920f","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd197c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bcf97c3598082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd19801ec9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bd07f1487f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b97bd197c36c9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b70c9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","977837f0e37f149b0723b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0723b06bd","7f07e7f0e37f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f595b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e37f14998083b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14898082b0723b02d5","7f07e7f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66aa89801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e26665b66a449801e9808297c35","665f67f0e37f1489801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722"],nStr1:["日","一","二","三","四","五","六","七","八","九","十"],nStr2:["初","十","廿","卅"],nStr3:["正","二","三","四","五","六","七","八","九","十","冬","腊"],lunarFestival:[{month:"正",day:"初一",name:"春节"},{month:"正",day:"十五",name:"元宵节"},{month:"二",day:"初二",name:"龙抬头"},{month:"五",day:"初五",name:"端午节"},{month:"七",day:"初七",name:"七夕节"},{month:"七",day:"十五",name:"中元节"},{month:"八",day:"十五",name:"中秋节"},{month:"九",day:"初九",name:"重阳节"},{month:"腊",day:"除夕",name:"除夕"}],solarFestival:[{month:1,day:1,name:"元旦节"},{month:3,day:8,name:"妇女节"},{month:3,day:12,name:"植树节"},{month:4,day:5,name:"清明节"},{month:5,day:1,name:"劳动节"},{month:5,day:4,name:"青年节"},{month:6,day:1,name:"儿童节"},{month:7,day:1,name:"建党节"},{month:8,day:1,name:"建军节"},{month:9,day:10,name:"教师节"},{month:10,day:1,name:"国庆节"}],lYearDays:function(t){var e,n=348;for(e=32768;e>8;e>>=1)n+=le.lunarInfo[t-1900]&e?1:0;return n+le.leapDays(t)},leapMonth:function(t){return 15&le.lunarInfo[t-1900]},leapDays:function(t){return le.leapMonth(t)?65536&le.lunarInfo[t-1900]?30:29:0},monthDays:function(t,e){return e>12||e<1?-1:le.lunarInfo[t-1900]&65536>>e?30:29},solarDays:function(t,e){if(e>12||e<1)return-1;var n=e-1;return n==1?t%4==0&&t%100!=0||t%400==0?29:28:le.solarMonth[n]},toGanZhiYear:function(t){var e=(t-3)%10,n=(t-3)%12;return e==0&&(e=10),n==0&&(n=12),le.Gan[e-1]+le.Zhi[n-1]},toAstro:function(t,e){return"魔羯水瓶双鱼白羊金牛双子巨蟹狮子处女天秤天蝎射手魔羯".substr(2*t-(e<[20,19,21,21,21,22,23,23,23,23,22,22][t-1]?2:0),2)+"座"},toGanZhi:function(t){return le.Gan[t%10]+le.Zhi[t%12]},getTerm:function(t,e){if(t<1900||t>2100||e<1||e>24)return-1;var n=le.sTermInfo[t-1900],r=[parseInt("0x"+n.substr(0,5)).toString(),parseInt("0x"+n.substr(5,5)).toString(),parseInt("0x"+n.substr(10,5)).toString(),parseInt("0x"+n.substr(15,5)).toString(),parseInt("0x"+n.substr(20,5)).toString(),parseInt("0x"+n.substr(25,5)).toString()],i=[r[0].substr(0,1),r[0].substr(1,2),r[0].substr(3,1),r[0].substr(4,2),r[1].substr(0,1),r[1].substr(1,2),r[1].substr(3,1),r[1].substr(4,2),r[2].substr(0,1),r[2].substr(1,2),r[2].substr(3,1),r[2].substr(4,2),r[3].substr(0,1),r[3].substr(1,2),r[3].substr(3,1),r[3].substr(4,2),r[4].substr(0,1),r[4].substr(1,2),r[4].substr(3,1),r[4].substr(4,2),r[5].substr(0,1),r[5].substr(1,2),r[5].substr(3,1),r[5].substr(4,2)];return parseInt(i[e-1])},toChinaMonth:function(t){if(t>12||t<1)return-1;var e=le.nStr3[t-1];return e+="月"},toChinaDay:function(t){var e;switch(t){case 10:e="初十";break;case 20:e="二十";break;case 30:e="三十";break;default:e=le.nStr2[Math.floor(t/10)],e+=le.nStr1[t%10]}return e},getAnimal:function(t){return le.Animals[(t-4)%12]},getFestival:(t,e,n,r)=>{let i=null;const s=parseInt(t+"");return i=s?le.solarFestival.find(o=>o.month===s&&o.day==e):le.lunarFestival.find(o=>`${o.month}月`===t&&o.day===e),i},solar2lunar:function(t,e,n){if(t<1900||t>2100||t==1900&&e==1&&n<31)return-1;if(t)r=new Date(t,parseInt(e+"")-1,n);else var r=new Date;var i,s=0,o=(t=r.getFullYear(),e=r.getMonth()+1,n=r.getDate(),(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate())-Date.UTC(1900,0,31))/864e5);for(i=1900;i<2101&&o>0;i++)o-=s=le.lYearDays(i);o<0&&(o+=s,i--);var a=new Date,c=!1;a.getFullYear()==t&&a.getMonth()+1==e&&a.getDate()==n&&(c=!0);var l=r.getDay(),f=le.nStr1[l];l==0&&(l=7);var d=i,u=le.leapMonth(i),h=!1;for(i=1;i<13&&o>0;i++)u>0&&i==u+1&&h==0?(--i,h=!0,s=le.leapDays(d)):s=le.monthDays(d,i),h==1&&i==u+1&&(h=!1),o-=s;o==0&&u>0&&i==u+1&&(h?h=!1:(h=!0,--i)),o<0&&(o+=s,--i);var g=i,m=o+1,x=e-1,A=le.toGanZhiYear(d),p=le.getTerm(d,2*e-1),v=le.getTerm(d,2*e),b=le.toGanZhi(12*(t-1900)+e+11);n>=p&&(b=le.toGanZhi(12*(t-1900)+e+12));var E=!1,C=null;p==n&&(E=!0,C=le.solarTerm[2*e-2]),v==n&&(E=!0,C=le.solarTerm[2*e-1]);var D=Date.UTC(t,x,1,0,0,0,0)/864e5+25567+10,w=le.toGanZhi(D+n-1),I=le.toAstro(e,n);const R=le.toChinaMonth(g),B=le.toChinaDay(m);return{lYear:d,lMonth:g,lDay:m,Animal:le.getAnimal(d),IMonthCn:(h?"闰":"")+R,IDayCn:B,cYear:t,cMonth:e,cDay:n,gzYear:A,gzMonth:b,gzDay:w,isToday:c,isLeap:h,nWeek:l,ncWeek:"星期"+f,isTerm:E,Term:C,astro:I,festcn:le.getFestival(R,B,t,e),fest:le.getFestival(e,n,t)}},lunar2solar:function(t,e,n,r=!0){r=!!r;var i=le.leapMonth(t);if(le.leapDays(t),r&&i!=e||t==2100&&e==12&&n>1||t==1900&&e==1&&n<31)return-1;var s=le.monthDays(t,e),o=s;if(r&&(o=le.leapDays(t)),t<1900||t>2100||n>o)return-1;for(var a=0,c=1900;c<t;c++)a+=le.lYearDays(c);var l=0,f=!1;for(c=1;c<e;c++)l=le.leapMonth(t),f||l<=c&&l>0&&(a+=le.leapDays(t),f=!0),a+=le.monthDays(t,c);r&&(a+=s);var d=Date.UTC(1900,1,30,0,0,0),u=new Date(864e5*(a+n-31)+d),h=u.getUTCFullYear(),g=u.getUTCMonth()+1,m=u.getUTCDate();return le.solar2lunar(h,g,m)}},$b=le.lunar2solar,yn=(t,e=!0)=>{t=t||new Date;const n=new Date(t).getDay(),r={0:"日",1:"一",2:"二",3:"三",4:"四",5:"五",6:"六"}[n];return e?[r,`星期${r}`,`周${r}`,n]:r},$f=["number","string"],Gf=(t,e)=>($f.includes(typeof t)&&$f.includes(typeof e)||(t=new Date().getFullYear(),e=new Date().getMonth()+1),new Date(t,e,0).getDate()),Yf=t=>{const e=[],n=Re(t).format("YYYY"),r=Re(t).format("MM"),i=Gf(Number.parseInt(n),Number.parseInt(r));let s=1;for(;s<=i;){const o=`${r}-${("00"+s).substr(`${s}`.length)}`,a=`${n}-${o}`,c=yn(a);e.push({date:a,datemon:o,dateday:Re(a).format("DD"),week:c[0],week1:c[1],week2:c[2],week3:c[3],isnow:!0}),s++}return e};function Ct(t,e){return Object.prototype.toString.call(t)===`[object ${e}]`}function Qf(t){return Object.prototype.toString.call(t)}const Gn=class Gn{static getTypeLong(e){return Qf(e)}static getType(e){const n=Qf(e);return n.substring(8,n.length-1).toLocaleLowerCase()}static isDef(e){return e!==void 0}static isUnDef(e){return!this.isDef(e)}static isObject(e){return e!==null&&Ct(e,"Object")}static isEmpty(e){return this.isArray(e)||this.isString(e)?e.length===0:e instanceof Map||e instanceof Set?e.size===0:!!this.isObject(e)&&Object.keys(e).length===0}static isDate(e){return Ct(e,"Date")}static isNull(e){return e===null}static isNullAndUnDef(e){return this.isUnDef(e)&&this.isNull(e)}static isNullOrUnDef(e){return this.isUnDef(e)||this.isNull(e)}static isNumber(e){return Ct(e,"Number")}static isPromise(e){return Ct(e,"Promise")&&this.isObject(e)&&this.isFunction(e.then)&&this.isFunction(e.catch)}static isString(e){return Ct(e,"String")}static isFunction(e){return typeof e=="function"}static isBoolean(e){return Ct(e,"Boolean")}static isRegExp(e){return Ct(e,"RegExp")}static isArray(e){return e&&Array.isArray(e)}static isWindow(e){return typeof window<"u"&&Ct(e,"Window")}static isElement(e){return this.isObject(e)&&!!e.tagName}static isMap(e){return Ct(e,"Map")}static isUrl(e){return/(((^https?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)$/.test(e)}};ga(Gn,"isServer",typeof window>"u"),ga(Gn,"isClient",!Gn.isServer);let En=Gn;var et=Object.freeze({__proto__:null,toDateTime:function(t,e="YYYY-MM-DD HH:mm:ss"){return Re(t).format(e)},toDate:function(t,e="YYYY-MM-DD"){return Re(t).format(e)},toY:function(t,e="YYYY"){return Re(t).format(e)},toYM:function(t,e="YYYY-MM"){return Re(t).format(e)},toMD:function(t,e="MM-DD"){return Re(t).format(e)},toYMD:function(t,e="YYYY-MM-DD"){return Re(t).format(e)},toYMDHM:function(t,e="YYYY-MM-DD HH:mm"){return Re(t).format(e)},convertDate:le,dayDetail:$b,formatWeek:yn,getWeek:t=>{t=t||new Date;const e=[],n=new Date(t).getDay()||7,r=new Date(t).getTime();let i=1,s=1;for(;n>=i;){let o=r-864e5*(n-i);const a=yn(o);e.push({date:Re(o).format("YYYY-MM-DD"),datemon:Re(o).format("MM-DD"),week:a[0],week1:a[1],week2:a[2],week3:a[3]}),i++}for(;s<=7-n;){let o=r+864e5*s;const a=yn(o);e.push({date:Re(o).format("YYYY-MM-DD"),datemon:Re(o).format("MM-DD"),week:a[0],week1:a[1],week2:a[2],week3:a[3]}),s++}return e},getMonth:Yf,getMonthComple:t=>{const e=Yf(t),n=e[0].week3;let r=1;for(;r<n;){const s=new Date(e[0].date).getTime()-864e5,o=yn(s);e.unshift({date:Re(s).format("YYYY-MM-DD"),datemon:Re(s).format("MM-DD"),dateday:Re(s).format("DD"),week:o[0],week1:o[1],week2:o[2],week3:o[3],isback:!0}),r++}let i=e.length;for(;i<42;){const s=new Date(e[i-1].date).getTime()+864e5,o=yn(s);e.push({date:Re(s).format("YYYY-MM-DD"),datemon:Re(s).format("MM-DD"),dateday:Re(s).format("DD"),week:o[0],week1:o[1],week2:o[2],week3:o[3],isnext:!0}),i++}return e.forEach(s=>{const o=s.date.split("-"),a=le.solar2lunar(o[0],o[1],o[2]);s.nl=a,typeof a!="number"&&(s.monthcn=a.IMonthCn,s.daycn=a.IDayCn)}),e},getMonthDay:Gf,daysBetweenDates:(t,e)=>{if(En.isNullOrUnDef(t)||En.isNullOrUnDef(e))throw new TypeError("params must both be not empty or null or undefined");let n=null;return n=En.isDate(t)&&En.isDate(e)?Math.abs(t.getTime()-e.getTime()):Math.abs(new Date(t).getTime()-new Date(e).getTime()),Math.floor(n/864e5)}});for(let t=0;t<=15;t++)t.toString(16);(typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof globalThis=="object"&&globalThis.globalThis===globalThis?globalThis:void 0).navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&/Safari/.test(navigator.userAgent),window.socketMap=new Map,Vn.set({precision:14});/*! Element Plus Icons Vue v2.3.1 */var Gb=S.defineComponent({name:"ArrowLeft",__name:"arrow-left",setup(t){return(e,n)=>(S.openBlock(),S.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[S.createElementVNode("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),Yb=Gb,Qb=S.defineComponent({name:"ArrowRight",__name:"arrow-right",setup(t){return(e,n)=>(S.openBlock(),S.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[S.createElementVNode("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),Zb=Qb,Xb=S.defineComponent({name:"Calendar",__name:"calendar",setup(t){return(e,n)=>(S.openBlock(),S.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[S.createElementVNode("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),Kb=Xb,Jb=S.defineComponent({name:"Clock",__name:"clock",setup(t){return(e,n)=>(S.openBlock(),S.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[S.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),S.createElementVNode("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),S.createElementVNode("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),ey=Jb,ty=S.defineComponent({name:"DeleteFilled",__name:"delete-filled",setup(t){return(e,n)=>(S.openBlock(),S.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[S.createElementVNode("path",{fill:"currentColor",d:"M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64zm64 0h192v-64H416zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32m192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32"})]))}}),ny=ty,ry=S.defineComponent({name:"Document",__name:"document",setup(t){return(e,n)=>(S.openBlock(),S.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[S.createElementVNode("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),iy=ry;const sy={class:"ik-full-calendar"},oy=["onClick"],ay={key:0,class:"event-title allday"},ly={key:0,class:"event-title-time"},cy={key:1,class:"event-title no-allday"},fy={class:"event-title-time"},uy={class:"event-title-text"},dy={name:"IkFullCalendar"},hy=S.defineComponent({...dy,props:{options:{default:{}},removable:{type:Boolean,default:!0},modelValue:{default:[]},tooltipFieldName:{default:"remark"}},emits:["added","deleted","update:modelValue","eventClick","deleteClick","dateSelect"],setup(t,{expose:e,emit:n}){const r=t,i=S.computed({get:()=>r.modelValue,set:p=>s("update:modelValue",p)}),s=n,o=S.ref(null),a=p=>{},c=S.ref("dayGridMonth"),l=p=>{s("dateSelect",p)},f=p=>{s("eventClick",p)},d=p=>{s("deleteClick",p)},u=()=>({locale:Mv,plugins:[sm,u1,Wm],headerToolbar:{left:"dayGridMonth,timeGridWeek,timeGridDay prev,today,next",center:"title",right:""},firstDay:1,initialView:"dayGridMonth",weekends:!0,editable:!0,selectable:!0,selectMirror:!0,dateClick:a,select:l,...r.options,events:i.value}),h=S.reactive({timeType:"month",options:u()}),g=S.ref(null),m=()=>{var p;h.options=u(),(p=o.value)==null||p.buildOptions(h.options)};e({...{prev:()=>{var p;(p=g.value)==null||p.prev()},next:()=>{var p;(p=g.value)==null||p.next()},today:()=>{var p;(p=g.value)==null||p.today()},changeView:p=>{var v;(v=g.value)==null||v.changeView(p),c.value=p},getDate:()=>{var p;return(p=g.value)==null?void 0:p.getDate()},getView:()=>{var p;return(p=g.value)==null?void 0:p.view},unselect:()=>{var p;return(p=g.value)==null?void 0:p.unselect()}}}),S.watch(()=>i.value,()=>{m()});const A=()=>{var p;g.value=(p=o.value)==null?void 0:p.getApi()};return S.onMounted(()=>{A()}),(p,v)=>{const b=S.resolveComponent("el-tooltip"),E=S.resolveComponent("el-icon");return S.openBlock(),S.createElementBlock("div",sy,[S.createVNode(S.unref(Rv),{ref_key:"_ref",ref:o,options:h.options,style:{height:"100%"}},{eventContent:S.withCtx(C=>[S.createElementVNode("div",{class:"title-line",onClick:D=>f(C)},[S.createVNode(b,null,{content:S.withCtx(()=>{var D,w;return[S.createCommentVNode(" {{arg}} "),S.createTextVNode(" "+S.toDisplayString((w=(D=C.event)==null?void 0:D.extendedProps)==null?void 0:w[r.tooltipFieldName]),1)]}),default:S.withCtx(()=>[C.event.allDay?(S.openBlock(),S.createElementBlock("span",ay,[c.value==="dayGridMonth"?(S.openBlock(),S.createElementBlock("span",ly,S.toDisplayString("(全天)"))):S.createCommentVNode("v-if",!0),S.createElementVNode("span",null,S.toDisplayString(C.event.title),1)])):(S.openBlock(),S.createElementBlock("span",cy,[S.createElementVNode("span",fy,S.toDisplayString(S.unref(et).toDateTime(C.event.startStr,"HH:mm")),1),S.createElementVNode("span",uy,S.toDisplayString(C.event.title),1)]))]),_:2},1024),r.removable?(S.openBlock(),S.createBlock(E,{key:0,size:16,onClick:S.withModifiers(D=>d(C),["stop"])},{default:S.withCtx(()=>[S.createVNode(S.unref(ny))]),_:2},1032,["onClick"])):S.createCommentVNode("v-if",!0)],8,oy)]),_:1},8,["options"])])}}}),yE="",Lo=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n},py=yi(Lo(hy,[["__scopeId","data-v-421b620c"]])),Wn=/^[a-z0-9]+(-[a-z0-9]+)*$/,ni=(t,e,n,r="")=>{const i=t.split(":");if(t.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const a=i.pop(),c=i.pop(),l={provider:i.length>0?i[0]:r,prefix:c,name:a};return e&&!ri(l)?null:l}const s=i[0],o=s.split("-");if(o.length>1){const a={provider:r,prefix:o.shift(),name:o.join("-")};return e&&!ri(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:s};return e&&!ri(a,n)?null:a}return null},ri=(t,e)=>t?!!((t.provider===""||t.provider.match(Wn))&&(e&&t.prefix===""||t.prefix.match(Wn))&&t.name.match(Wn)):!1,Zf=Object.freeze({left:0,top:0,width:16,height:16}),ii=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),si=Object.freeze({...Zf,...ii}),zo=Object.freeze({...si,body:"",hidden:!1});function gy(t,e){const n={};!t.hFlip!=!e.hFlip&&(n.hFlip=!0),!t.vFlip!=!e.vFlip&&(n.vFlip=!0);const r=((t.rotate||0)+(e.rotate||0))%4;return r&&(n.rotate=r),n}function Xf(t,e){const n=gy(t,e);for(const r in zo)r in ii?r in t&&!(r in n)&&(n[r]=ii[r]):r in e?n[r]=e[r]:r in t&&(n[r]=t[r]);return n}function vy(t,e){const n=t.icons,r=t.aliases||Object.create(null),i=Object.create(null);function s(o){if(n[o])return i[o]=[];if(!(o in i)){i[o]=null;const a=r[o]&&r[o].parent,c=a&&s(a);c&&(i[o]=[a].concat(c))}return i[o]}return(e||Object.keys(n).concat(Object.keys(r))).forEach(s),i}function my(t,e,n){const r=t.icons,i=t.aliases||Object.create(null);let s={};function o(a){s=Xf(r[a]||i[a],s)}return o(e),n.forEach(o),Xf(t,s)}function Kf(t,e){const n=[];if(typeof t!="object"||typeof t.icons!="object")return n;t.not_found instanceof Array&&t.not_found.forEach(i=>{e(i,null),n.push(i)});const r=vy(t);for(const i in r){const s=r[i];s&&(e(i,my(t,i,s)),n.push(i))}return n}const xy={provider:"",aliases:{},not_found:{},...Zf};function Uo(t,e){for(const n in e)if(n in t&&typeof t[n]!=typeof e[n])return!1;return!0}function Jf(t){if(typeof t!="object"||t===null)return null;const e=t;if(typeof e.prefix!="string"||!t.icons||typeof t.icons!="object"||!Uo(t,xy))return null;const n=e.icons;for(const i in n){const s=n[i];if(!i.match(Wn)||typeof s.body!="string"||!Uo(s,zo))return null}const r=e.aliases||Object.create(null);for(const i in r){const s=r[i],o=s.parent;if(!i.match(Wn)||typeof o!="string"||!n[o]&&!r[o]||!Uo(s,zo))return null}return e}const eu=Object.create(null);function by(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:new Set}}function en(t,e){const n=eu[t]||(eu[t]=Object.create(null));return n[e]||(n[e]=by(t,e))}function Vo(t,e){return Jf(e)?Kf(e,(n,r)=>{r?t.icons[n]=r:t.missing.add(n)}):[]}function yy(t,e,n){try{if(typeof n.body=="string")return t.icons[e]={...n},!0}catch{}return!1}let jn=!1;function tu(t){return typeof t=="boolean"&&(jn=t),jn}function Ey(t){const e=typeof t=="string"?ni(t,!0,jn):t;if(e){const n=en(e.provider,e.prefix),r=e.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Ay(t,e){const n=ni(t,!0,jn);if(!n)return!1;const r=en(n.provider,n.prefix);return yy(r,n.name,e)}function Cy(t,e){if(typeof t!="object")return!1;if(typeof e!="string"&&(e=t.provider||""),jn&&!e&&!t.prefix){let i=!1;return Jf(t)&&(t.prefix="",Kf(t,(s,o)=>{o&&Ay(s,o)&&(i=!0)})),i}const n=t.prefix;if(!ri({provider:e,prefix:n,name:"a"}))return!1;const r=en(e,n);return!!Vo(r,t)}const nu=Object.freeze({width:null,height:null}),ru=Object.freeze({...nu,...ii}),wy=/(-?[0-9.]*[0-9]+[0-9.]*)/g,_y=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function iu(t,e,n){if(e===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*e*n)/n;if(typeof t!="string")return t;const r=t.split(wy);if(r===null||!r.length)return t;const i=[];let s=r.shift(),o=_y.test(s);for(;;){if(o){const a=parseFloat(s);isNaN(a)?i.push(s):i.push(Math.ceil(a*e*n)/n)}else i.push(s);if(s=r.shift(),s===void 0)return i.join("");o=!o}}const Dy=t=>t==="unset"||t==="undefined"||t==="none";function Sy(t,e){const n={...si,...t},r={...ru,...e},i={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(g=>{const m=[],x=g.hFlip,A=g.vFlip;let p=g.rotate;x?A?p+=2:(m.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),m.push("scale(-1 1)"),i.top=i.left=0):A&&(m.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),m.push("scale(1 -1)"),i.top=i.left=0);let v;switch(p<0&&(p-=Math.floor(p/4)*4),p=p%4,p){case 1:v=i.height/2+i.top,m.unshift("rotate(90 "+v.toString()+" "+v.toString()+")");break;case 2:m.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:v=i.width/2+i.left,m.unshift("rotate(-90 "+v.toString()+" "+v.toString()+")");break}p%2===1&&(i.left!==i.top&&(v=i.left,i.left=i.top,i.top=v),i.width!==i.height&&(v=i.width,i.width=i.height,i.height=v)),m.length&&(s='<g transform="'+m.join(" ")+'">'+s+"</g>")});const o=r.width,a=r.height,c=i.width,l=i.height;let f,d;o===null?(d=a===null?"1em":a==="auto"?l:a,f=iu(d,c/l)):(f=o==="auto"?c:o,d=a===null?iu(f,l/c):a==="auto"?l:a);const u={},h=(g,m)=>{Dy(m)||(u[g]=m.toString())};return h("width",f),h("height",d),u.viewBox=i.left.toString()+" "+i.top.toString()+" "+c.toString()+" "+l.toString(),{attributes:u,body:s}}const Ry=/\sid="(\S+)"/g,By="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Ty=0;function ky(t,e=By){const n=[];let r;for(;r=Ry.exec(t);)n.push(r[1]);if(!n.length)return t;const i="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const o=typeof e=="function"?e(s):e+(Ty++).toString(),a=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+o+i+"$3")}),t=t.replace(new RegExp(i,"g"),""),t}const Wo=Object.create(null);function Iy(t,e){Wo[t]=e}function jo(t){return Wo[t]||Wo[""]}function qo(t){let e;if(typeof t.resources=="string")e=[t.resources];else if(e=t.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const $o=Object.create(null),qn=["https://api.simplesvg.com","https://api.unisvg.com"],oi=[];for(;qn.length>0;)qn.length===1||Math.random()>.5?oi.push(qn.shift()):oi.push(qn.pop());$o[""]=qo({resources:["https://api.iconify.design"].concat(oi)});function Ny(t,e){const n=qo(e);return n===null?!1:($o[t]=n,!0)}function Go(t){return $o[t]}let su=(()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}})();function My(t,e){const n=Go(t);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let i=0;n.resources.forEach(o=>{i=Math.max(i,o.length)});const s=e+".json?icons=";r=n.maxURL-i-n.path.length-s.length}return r}function Fy(t){return t===404}const Oy=(t,e,n)=>{const r=[],i=My(t,e),s="icons";let o={type:s,provider:t,prefix:e,icons:[]},a=0;return n.forEach((c,l)=>{a+=c.length+1,a>=i&&l>0&&(r.push(o),o={type:s,provider:t,prefix:e,icons:[]},a=c.length),o.icons.push(c)}),r.push(o),r};function Py(t){if(typeof t=="string"){const e=Go(t);if(e)return e.path}return"/"}const Hy={prepare:Oy,send:(t,e,n)=>{if(!su){n("abort",424);return}let r=Py(e.provider);switch(e.type){case"icons":{const s=e.prefix,a=e.icons.join(","),c=new URLSearchParams({icons:a});r+=s+".json?"+c.toString();break}case"custom":{const s=e.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let i=503;su(t+r).then(s=>{const o=s.status;if(o!==200){setTimeout(()=>{n(Fy(o)?"abort":"next",o)});return}return i=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",i)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",i)})}};function Ly(t){const e={loaded:[],missing:[],pending:[]},n=Object.create(null);t.sort((i,s)=>i.provider!==s.provider?i.provider.localeCompare(s.provider):i.prefix!==s.prefix?i.prefix.localeCompare(s.prefix):i.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return t.forEach(i=>{if(r.name===i.name&&r.prefix===i.prefix&&r.provider===i.provider)return;r=i;const s=i.provider,o=i.prefix,a=i.name,c=n[s]||(n[s]=Object.create(null)),l=c[o]||(c[o]=en(s,o));let f;a in l.icons?f=e.loaded:o===""||l.missing.has(a)?f=e.missing:f=e.pending;const d={provider:s,prefix:o,name:a};f.push(d)}),e}function ou(t,e){t.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(i=>i.id!==e))})}function zy(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const e=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!e.length)return;let n=!1;const r=t.provider,i=t.prefix;e.forEach(s=>{const o=s.icons,a=o.pending.length;o.pending=o.pending.filter(c=>{if(c.prefix!==i)return!0;const l=c.name;if(t.icons[l])o.loaded.push({provider:r,prefix:i,name:l});else if(t.missing.has(l))o.missing.push({provider:r,prefix:i,name:l});else return n=!0,!0;return!1}),o.pending.length!==a&&(n||ou([t],s.id),s.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),s.abort))})}))}let Uy=0;function Vy(t,e,n){const r=Uy++,i=ou.bind(null,n,r);if(!e.pending.length)return i;const s={id:r,icons:e,callback:t,abort:i};return n.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(s)}),i}function Wy(t,e=!0,n=!1){const r=[];return t.forEach(i=>{const s=typeof i=="string"?ni(i,e,n):i;s&&r.push(s)}),r}var jy={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function qy(t,e,n,r){const i=t.resources.length,s=t.random?Math.floor(Math.random()*i):t.index;let o;if(t.random){let C=t.resources.slice(0);for(o=[];C.length>1;){const D=Math.floor(Math.random()*C.length);o.push(C[D]),C=C.slice(0,D).concat(C.slice(D+1))}o=o.concat(C)}else o=t.resources.slice(s).concat(t.resources.slice(0,s));const a=Date.now();let c="pending",l=0,f,d=null,u=[],h=[];typeof r=="function"&&h.push(r);function g(){d&&(clearTimeout(d),d=null)}function m(){c==="pending"&&(c="aborted"),g(),u.forEach(C=>{C.status==="pending"&&(C.status="aborted")}),u=[]}function x(C,D){D&&(h=[]),typeof C=="function"&&h.push(C)}function A(){return{startTime:a,payload:e,status:c,queriesSent:l,queriesPending:u.length,subscribe:x,abort:m}}function p(){c="failed",h.forEach(C=>{C(void 0,f)})}function v(){u.forEach(C=>{C.status==="pending"&&(C.status="aborted")}),u=[]}function b(C,D,w){const I=D!=="success";switch(u=u.filter(R=>R!==C),c){case"pending":break;case"failed":if(I||!t.dataAfterTimeout)return;break;default:return}if(D==="abort"){f=w,p();return}if(I){f=w,u.length||(o.length?E():p());return}if(g(),v(),!t.random){const R=t.resources.indexOf(C.resource);R!==-1&&R!==t.index&&(t.index=R)}c="completed",h.forEach(R=>{R(w)})}function E(){if(c!=="pending")return;g();const C=o.shift();if(C===void 0){if(u.length){d=setTimeout(()=>{g(),c==="pending"&&(v(),p())},t.timeout);return}p();return}const D={status:"pending",resource:C,callback:(w,I)=>{b(D,w,I)}};u.push(D),l++,d=setTimeout(E,t.rotate),n(C,e,D.callback)}return setTimeout(E),A}function au(t){const e={...jy,...t};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function i(a,c,l){const f=qy(e,a,c,(d,u)=>{r(),l&&l(d,u)});return n.push(f),f}function s(a){return n.find(c=>a(c))||null}return{query:i,find:s,setIndex:a=>{e.index=a},getIndex:()=>e.index,cleanup:r}}function lu(){}const Yo=Object.create(null);function $y(t){if(!Yo[t]){const e=Go(t);if(!e)return;const n=au(e),r={config:e,redundancy:n};Yo[t]=r}return Yo[t]}function Gy(t,e,n){let r,i;if(typeof t=="string"){const s=jo(t);if(!s)return n(void 0,424),lu;i=s.send;const o=$y(t);o&&(r=o.redundancy)}else{const s=qo(t);if(s){r=au(s);const o=t.resources?t.resources[0]:"",a=jo(o);a&&(i=a.send)}}return!r||!i?(n(void 0,424),lu):r.query(e,i,n)().abort}const cu="iconify2",$n="iconify",fu=$n+"-count",uu=$n+"-version",du=36e5,Yy=168;function Qo(t,e){try{return t.getItem(e)}catch{}}function Zo(t,e,n){try{return t.setItem(e,n),!0}catch{}}function hu(t,e){try{t.removeItem(e)}catch{}}function Xo(t,e){return Zo(t,fu,e.toString())}function Ko(t){return parseInt(Qo(t,fu))||0}const ai={local:!0,session:!0},pu={local:new Set,session:new Set};let Jo=!1;function Qy(t){Jo=t}let li=typeof window>"u"?{}:window;function gu(t){const e=t+"Storage";try{if(li&&li[e]&&typeof li[e].length=="number")return li[e]}catch{}ai[t]=!1}function vu(t,e){const n=gu(t);if(!n)return;const r=Qo(n,uu);if(r!==cu){if(r){const a=Ko(n);for(let c=0;c<a;c++)hu(n,$n+c.toString())}Zo(n,uu,cu),Xo(n,0);return}const i=Math.floor(Date.now()/du)-Yy,s=a=>{const c=$n+a.toString(),l=Qo(n,c);if(typeof l=="string"){try{const f=JSON.parse(l);if(typeof f=="object"&&typeof f.cached=="number"&&f.cached>i&&typeof f.provider=="string"&&typeof f.data=="object"&&typeof f.data.prefix=="string"&&e(f,a))return!0}catch{}hu(n,c)}};let o=Ko(n);for(let a=o-1;a>=0;a--)s(a)||(a===o-1?(o--,Xo(n,o)):pu[t].add(a))}function mu(){if(!Jo){Qy(!0);for(const t in ai)vu(t,e=>{const n=e.data,r=e.provider,i=n.prefix,s=en(r,i);if(!Vo(s,n).length)return!1;const o=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,o):o,!0})}}function Zy(t,e){const n=t.lastModifiedCached;if(n&&n>=e)return n===e;if(t.lastModifiedCached=e,n)for(const r in ai)vu(r,i=>{const s=i.data;return i.provider!==t.provider||s.prefix!==t.prefix||s.lastModified===e});return!0}function Xy(t,e){Jo||mu();function n(r){let i;if(!ai[r]||!(i=gu(r)))return;const s=pu[r];let o;if(s.size)s.delete(o=Array.from(s).shift());else if(o=Ko(i),!Xo(i,o+1))return;const a={cached:Math.floor(Date.now()/du),provider:t.provider,data:e};return Zo(i,$n+o.toString(),JSON.stringify(a))}e.lastModified&&!Zy(t,e.lastModified)||Object.keys(e.icons).length&&(e.not_found&&(e=Object.assign({},e),delete e.not_found),n("local")||n("session"))}function xu(){}function Ky(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,zy(t)}))}function Jy(t,e){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(e).sort():t.iconsToLoad=e,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:n,prefix:r}=t,i=t.iconsToLoad;delete t.iconsToLoad;let s;if(!i||!(s=jo(n)))return;s.prepare(n,r,i).forEach(a=>{Gy(n,a,c=>{if(typeof c!="object")a.icons.forEach(l=>{t.missing.add(l)});else try{const l=Vo(t,c);if(!l.length)return;const f=t.pendingIcons;f&&l.forEach(d=>{f.delete(d)}),Xy(t,c)}catch(l){console.error(l)}Ky(t)})})}))}const e2=(t,e)=>{const n=Wy(t,!0,tu()),r=Ly(n);if(!r.pending.length){let c=!0;return e&&setTimeout(()=>{c&&e(r.loaded,r.missing,r.pending,xu)}),()=>{c=!1}}const i=Object.create(null),s=[];let o,a;return r.pending.forEach(c=>{const{provider:l,prefix:f}=c;if(f===a&&l===o)return;o=l,a=f,s.push(en(l,f));const d=i[l]||(i[l]=Object.create(null));d[f]||(d[f]=[])}),r.pending.forEach(c=>{const{provider:l,prefix:f,name:d}=c,u=en(l,f),h=u.pendingIcons||(u.pendingIcons=new Set);h.has(d)||(h.add(d),i[l][f].push(d))}),s.forEach(c=>{const{provider:l,prefix:f}=c;i[l][f].length&&Jy(c,i[l][f])}),e?Vy(e,r,s):xu};function t2(t,e){const n={...t};for(const r in e){const i=e[r],s=typeof i;r in nu?(i===null||i&&(s==="string"||s==="number"))&&(n[r]=i):s===typeof n[r]&&(n[r]=r==="rotate"?i%4:i)}return n}const n2=/[\s,]+/;function r2(t,e){e.split(n2).forEach(n=>{switch(n.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}function i2(t,e=0){const n=t.replace(/^-?[0-9.]*/,"");function r(i){for(;i<0;)i+=4;return i%4}if(n===""){const i=parseInt(t);return isNaN(i)?0:r(i)}else if(n!==t){let i=0;switch(n){case"%":i=25;break;case"deg":i=90}if(i){let s=parseFloat(t.slice(0,t.length-n.length));return isNaN(s)?0:(s=s/i,s%1===0?r(s):0)}}return e}function s2(t,e){let n=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in e)n+=" "+r+'="'+e[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+t+"</svg>"}function o2(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function a2(t){return"data:image/svg+xml,"+o2(t)}function l2(t){return'url("'+a2(t)+'")'}const bu={...ru,inline:!1},c2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},f2={display:"inline-block"},ea={backgroundColor:"currentColor"},yu={backgroundColor:"transparent"},Eu={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Au={webkitMask:ea,mask:ea,background:yu};for(const t in Au){const e=Au[t];for(const n in Eu)e[t+n]=Eu[n]}const ci={};["horizontal","vertical"].forEach(t=>{const e=t.slice(0,1)+"Flip";ci[t+"-flip"]=e,ci[t.slice(0,1)+"-flip"]=e,ci[t+"Flip"]=e});function Cu(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}const wu=(t,e)=>{const n=t2(bu,e),r={...c2},i=e.mode||"svg",s={},o=e.style,a=typeof o=="object"&&!(o instanceof Array)?o:{};for(let m in e){const x=e[m];if(x!==void 0)switch(m){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":n[m]=x===!0||x==="true"||x===1;break;case"flip":typeof x=="string"&&r2(n,x);break;case"color":s.color=x;break;case"rotate":typeof x=="string"?n[m]=i2(x):typeof x=="number"&&(n[m]=x);break;case"ariaHidden":case"aria-hidden":x!==!0&&x!=="true"&&delete r["aria-hidden"];break;default:{const A=ci[m];A?(x===!0||x==="true"||x===1)&&(n[A]=!0):bu[m]===void 0&&(r[m]=x)}}}const c=Sy(t,n),l=c.attributes;if(n.inline&&(s.verticalAlign="-0.125em"),i==="svg"){r.style={...s,...a},Object.assign(r,l);let m=0,x=e.id;return typeof x=="string"&&(x=x.replace(/-/g,"_")),r.innerHTML=ky(c.body,x?()=>x+"ID"+m++:"iconifyVue"),S.h("svg",r)}const{body:f,width:d,height:u}=t,h=i==="mask"||(i==="bg"?!1:f.indexOf("currentColor")!==-1),g=s2(f,{...l,width:d+"",height:u+""});return r.style={...s,"--svg":l2(g),width:Cu(l.width),height:Cu(l.height),...f2,...h?ea:yu,...a},S.h("span",r)};if(tu(!0),Iy("",Hy),typeof document<"u"&&typeof window<"u"){mu();const t=window;if(t.IconifyPreload!==void 0){const e=t.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof e=="object"&&e!==null&&(e instanceof Array?e:[e]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!Cy(r))&&console.error(n)}catch{console.error(n)}})}if(t.IconifyProviders!==void 0){const e=t.IconifyProviders;if(typeof e=="object"&&e!==null)for(let n in e){const r="IconifyProviders["+n+"] is invalid.";try{const i=e[n];if(typeof i!="object"||!i||i.resources===void 0)continue;Ny(n,i)||console.error(r)}catch{console.error(r)}}}}const u2={...si,body:""},_u=S.defineComponent({inheritAttrs:!1,data(){return{iconMounted:!1,counter:0}},mounted(){this._name="",this._loadingIcon=null,this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(t,e){if(typeof t=="object"&&t!==null&&typeof t.body=="string")return this._name="",this.abortLoading(),{data:t};let n;if(typeof t!="string"||(n=ni(t,!1,!0))===null)return this.abortLoading(),null;const r=Ey(n);if(!r)return(!this._loadingIcon||this._loadingIcon.name!==t)&&(this.abortLoading(),this._name="",r!==null&&(this._loadingIcon={name:t,abort:e2([n],()=>{this.counter++})})),null;this.abortLoading(),this._name!==t&&(this._name=t,e&&e(t));const i=["iconify"];return n.prefix!==""&&i.push("iconify--"+n.prefix),n.provider!==""&&i.push("iconify--"+n.provider),{data:r,classes:i}}},render(){this.counter;const t=this.$attrs,e=this.iconMounted?this.getIcon(t.icon,t.onLoad):null;if(!e)return wu(u2,t);let n=t;return e.classes&&(n={...t,class:(typeof t.class=="string"?t.class+" ":"")+e.classes.join(" ")}),wu({...si,...e.data},n)}}),d2={key:1,class:"basicHeight basicWidth","aria-hidden":"true"},h2=["xlink:href"],p2=["src"],g2={key:1,class:"basicHeight basicWidth","aria-hidden":"true"},v2=["xlink:href"],m2=["src"],x2=S.defineComponent({name:"IkSvgIcon",__name:"index",props:{name:{},flip:{},rotate:{},color:{},size:{default:""},bg:{type:Boolean,default:!1},showBg:{type:Boolean,default:!1},padding:{default:"0"},warning:{type:Boolean},notip:{type:Boolean,default:!1},title:{}},setup(t){const e=t,n=S.computed(()=>{var s;return/^http?:\/\//.test(e.name)?"img":/i-[^:]+:[^:]+/.test(e.name)?"unocss":(s=e.name)!=null&&s.includes(":")?"iconify":"svg"}),r=S.computed(()=>{const s=[];if(e.flip)switch(e.flip){case"horizontal":s.push("rotateY(180deg)");break;case"vertical":s.push("rotateX(180deg)");break;case"both":s.push("rotateX(180deg)"),s.push("rotateY(180deg)");break}return e.rotate&&s.push(`rotate(${e.rotate%360}deg)`),{...e.color&&{color:e.color},...e.size&&{fontSize:typeof e.size=="number"?`${e.size}px`:e.size},...s.length&&{transform:s.join(" ")},padding:e.padding}}),i=S.computed(()=>document.body.getAttribute("data-theme")==="dark");return(s,o)=>{const a=S.resolveComponent("el-tooltip");return s.notip||!s.title?(S.openBlock(),S.createElementBlock("i",{key:0,class:S.normalizeClass(["ik-svg-icon ik-icon relative basicHeight basicWidth flex-inline items-center justify-center fill-current leading-[1em] transition",{[s.name]:n.value==="unocss","show-bg":s.showBg||s.bg,default:s.size==="default",small:s.size==="small",big:s.size==="big",warning:s.warning}]),style:S.normalizeStyle(r.value)},[n.value==="iconify"?(S.openBlock(),S.createBlock(S.unref(_u),{key:0,icon:s.name},null,8,["icon"])):n.value==="svg"?(S.openBlock(),S.createElementBlock("svg",d2,[S.createElementVNode("use",{"xlink:href":`#${s.name}`},null,8,h2)])):n.value==="img"?(S.openBlock(),S.createElementBlock("img",{key:2,src:s.name,class:"basicHeight basicWidth"},null,8,p2)):S.createCommentVNode("v-if",!0)],6)):(S.openBlock(),S.createBlock(a,{key:1,effect:i.value?"dark":"light",content:s.title},{default:S.withCtx(()=>[S.createElementVNode("i",S.mergeProps({class:["ik-svg-icon ik-icon relative basicHeight basicWidth flex-inline items-center justify-center fill-current leading-[1em] transition",{[s.name]:n.value==="unocss","show-bg":s.showBg||s.bg,default:s.size==="default",small:s.size==="small",big:s.size==="big",warning:s.warning}],style:r.value},s.$attrs),[n.value==="iconify"?(S.openBlock(),S.createBlock(S.unref(_u),{key:0,icon:s.name},null,8,["icon"])):n.value==="svg"?(S.openBlock(),S.createElementBlock("svg",g2,[S.createElementVNode("use",{"xlink:href":`#${s.name}`},null,8,v2)])):n.value==="img"?(S.openBlock(),S.createElementBlock("img",{key:2,src:s.name,class:"basicHeight basicWidth"},null,8,m2)):S.createCommentVNode("v-if",!0)],16)]),_:1},8,["effect","content"]))}}}),wE="",Du=yi(Lo(x2,[["__scopeId","data-v-1957ff53"]])),ta=t=>(S.pushScopeId("data-v-600ed17b"),t=t(),S.popScopeId(),t),b2={class:"ik-schedule"},y2={class:"ik-schedule__left"},E2={class:"ik-schedule__header"},A2={class:"ik-schedule__title"},C2=ta(()=>S.createElementVNode("div",{class:"ik-schedule__header-right"},null,-1)),w2={class:"ik-schedule__body"},_2={style:{"font-size":"18px"}},D2={key:0},S2={style:{width:"90%",display:"flex","align-items":"center","justify-content":"space-between"}},R2={key:0,style:{"margin-left":"2%"}},B2=ta(()=>S.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),T2={key:1},k2=ta(()=>S.createElementVNode("span",{class:"to",style:{width:"10% !important"}},"至",-1)),I2={class:"dialog-footer"},N2={name:"IkSchedule"},M2=S.defineComponent({...N2,props:{modelValue:{default:[]},options:{default:{initialView:"dayGridMonth"}},editVisible:{type:Boolean},removable:{type:Boolean,default:!0}},emits:["update:modelValue","added","updated","deleted","editOpen","submit","update:editVisible","submitAdd","submitUpdate","submitDelete"],setup(t,{expose:e,emit:n}){var D;const r=t,i=n,s=!!S.useSlots().form,o=S.computed({get:()=>r.modelValue,set:w=>{i("update:modelValue",w)}}),a=S.computed(()=>({...r.options,headerToolbar:!1})),c=S.reactive({currentView:(D=r.options)==null?void 0:D.initialView,viewTitle:"",rightLabel:"今日",timeType:"month",currentDate:null}),l=S.ref(null),f=w=>{var I;(I=l.value)==null||I.changeView(w),c.currentView=w,d()},d=()=>{var I;const w=(I=l.value)==null?void 0:I.getView();c.viewTitle=w==null?void 0:w.title},u=()=>{var w;(w=l.value)==null||w.prev(),d()},h=()=>{var w;(w=l.value)==null||w.next(),d()},g=()=>{var w;(w=l.value)==null||w.today(),d()},m=w=>c.currentView===w,x=S.ref(null),A={createDefaultForm:()=>({title:"",allDay:!1,type:1,startDate:"",endDate:"",startTime:"",endTime:"",location:"",remark:""}),close:()=>{v.value=!1},customSubmit:w=>{var R,B;let I={...w,id:void 0,allDay:p.form.allDay,start:(R=p.selectInfo)==null?void 0:R.startStr,end:(B=p.selectInfo)==null?void 0:B.endStr};A.operation(I),A.close()},operation:w=>{var I;p.operation==="add"?i("submitAdd",w):(w.id=(I=p.editEvent)==null?void 0:I.id,i("submitUpdate",w))},submit:async()=>{var I,R;if(s){i("submit");return}if(!p.form.title){bi.ElMessage.info("标题不能为空");return}if(!p.form.allDay&&(!p.form.startTime||!p.form.endTime)){bi.ElMessage.info("时间不能为空");return}let w={id:void 0,title:p.form.title,allDay:p.form.allDay,start:(I=p.selectInfo)==null?void 0:I.startStr,end:(R=p.selectInfo)==null?void 0:R.endStr,extendedProps:{...p.form}};if(w.allDay)w.start=et.toDate(p.form.startDate),w.end=et.toDate(p.form.endDate);else{const B=et.toDate(p.form.startDate),P=et.toDateTime(p.form.startTime).substring(10),U=et.toDateTime(p.form.endTime).substring(10);w.start=`${B}${P}`,w.end=`${B}${U}`,w.extendedProps.startTime=w.start,w.extendedProps.endTime=w.end}A.operation(w),A.close()},reset:()=>{var w;p.form=A.createDefaultForm(),(w=x.value)==null||w.clearValidate()},edit:()=>{p.editable=!0,p.title="编辑日程"},cancelEdit:()=>{p.editable=!1,p.title="日程信息"},del:()=>{C(p.clickInfo)}},p=S.reactive({operation:"update",selectInfo:{},editEvent:void 0,title:"",visible:!1,allDay:!1,form:A.createDefaultForm(),editable:!1,clickInfo:null}),v=S.computed({get:()=>p.visible,set:w=>{p.visible=w}}),b=w=>{var I;if(p.form.allDay=w.allDay,p.selectInfo=w,A.reset(),w.view.type=="dayGridMonth"){let R=w.end.getTime()-864e5;c.timeType="month",p.form.startDate=et.toYMD(w.start),p.form.endDate=et.toYMD(new Date(R)),p.form.allDay=!0}else w.view.type=="timeGridWeek"?c.timeType="week":w.view.type=="timeGridDay"&&(c.timeType="day"),p.form.startDate=et.toYMD(w.start),p.form.endDate=et.toYMD(w.start),p.form.startTime=et.toDateTime(w.start),p.form.endTime=et.toDateTime(w.end);(I=l.value)==null||I.unselect(),S.nextTick(()=>{p.title="新建日程",p.operation="add",p.editable=!0,v.value=!0,i("editOpen",JSON.parse(JSON.stringify(p)))})},E=w=>{p.title="日程信息",p.operation="update",p.clickInfo=w,p.editEvent=w.event;debugger;p.editEvent.allDay?(p.form.startDate=p.editEvent.startStr,p.form.endDate=p.editEvent.startStr):(p.form.startDate=p.editEvent.startStr,p.form.startTime=p.editEvent.start,p.form.endTime=p.editEvent.end),p.form.title=p.editEvent.title,p.form.allDay=p.editEvent.allDay,Iu.copyValue(p.form,p.editEvent.extendedProps),A.cancelEdit(),v.value=!0,i("editOpen",JSON.parse(JSON.stringify(p)))},C=w=>{bi.ElMessageBox.confirm(`你确定删除事件 ${w.event.title} ?`,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(()=>{A.close(),i("submitDelete",w.event.id)})};return e({customSubmit:w=>A.customSubmit(w)}),S.onMounted(()=>{d()}),(w,I)=>{const R=S.resolveComponent("el-button"),B=S.resolveComponent("el-button-group"),P=S.resolveComponent("el-icon"),U=S.resolveComponent("el-space"),j=S.resolveComponent("el-input"),z=S.resolveComponent("el-form-item"),H=S.resolveComponent("el-date-picker"),X=S.resolveComponent("el-time-picker"),Y=S.resolveComponent("el-checkbox"),te=S.resolveComponent("el-form"),ee=S.resolveComponent("el-dialog");return S.openBlock(),S.createElementBlock("div",b2,[S.createElementVNode("div",y2,[S.createElementVNode("div",E2,[S.createVNode(U,{style:{"flex-shrink":"0"},size:24},{default:S.withCtx(()=>[S.createVNode(B,null,{default:S.withCtx(()=>[S.createVNode(R,{onClick:I[0]||(I[0]=O=>f("dayGridMonth")),type:m("dayGridMonth")?"primary":""},{default:S.withCtx(()=>[S.createTextVNode("月")]),_:1},8,["type"]),S.createVNode(R,{onClick:I[1]||(I[1]=O=>f("timeGridWeek")),type:m("timeGridWeek")?"primary":""},{default:S.withCtx(()=>[S.createTextVNode("周")]),_:1},8,["type"]),S.createVNode(R,{onClick:I[2]||(I[2]=O=>f("timeGridDay")),type:m("timeGridDay")?"primary":""},{default:S.withCtx(()=>[S.createTextVNode("日")]),_:1},8,["type"])]),_:1}),S.createElementVNode("span",A2,S.toDisplayString(c.viewTitle),1),S.createVNode(B,{style:{"flex-shrink":"0"}},{default:S.withCtx(()=>[S.createVNode(R,{onClick:u},{default:S.withCtx(()=>[S.createVNode(P,null,{default:S.withCtx(()=>[S.createVNode(S.unref(Yb))]),_:1})]),_:1}),S.createVNode(R,{onClick:g},{default:S.withCtx(()=>[S.createTextVNode("今天")]),_:1}),S.createVNode(R,{onClick:h},{default:S.withCtx(()=>[S.createVNode(P,null,{default:S.withCtx(()=>[S.createVNode(S.unref(Zb))]),_:1})]),_:1})]),_:1})]),_:1}),C2]),S.createElementVNode("div",w2,[S.createVNode(S.unref(py),{removable:w.removable,onDateSelect:b,onDeleteClick:C,onEventClick:E,ref_key:"_refCalendar",ref:l,options:a.value,modelValue:o.value,"onUpdate:modelValue":I[3]||(I[3]=O=>o.value=O)},null,8,["removable","options","modelValue"])])]),S.createCommentVNode(" 新建/修改对话框 "),S.createVNode(ee,{width:"700px",modelValue:v.value,"onUpdate:modelValue":I[11]||(I[11]=O=>v.value=O)},{header:S.withCtx(()=>[S.createElementVNode("div",null,[S.createElementVNode("span",_2,S.toDisplayString(p.title),1),p.operation==="update"?(S.openBlock(),S.createElementBlock("span",D2,[p.editable?(S.openBlock(),S.createBlock(S.unref(Du),{key:1,style:{"margin-left":"4px"},name:"iksvg_qiehuan-daohang",onClick:A.cancelEdit},null,8,["onClick"])):(S.openBlock(),S.createBlock(S.unref(Du),{key:0,style:{"margin-left":"4px"},name:"iksvg_xiugai",onClick:A.edit},null,8,["onClick"]))])):S.createCommentVNode("v-if",!0)])]),footer:S.withCtx(()=>[S.createElementVNode("span",I2,[S.renderSlot(w.$slots,"form-footer",{},()=>[S.createElementVNode("span",null,[S.createVNode(R,{onClick:A.close},{default:S.withCtx(()=>[S.createTextVNode("取消")]),_:1},8,["onClick"]),S.createVNode(R,{onClick:A.del},{default:S.withCtx(()=>[S.createTextVNode("删除")]),_:1},8,["onClick"]),S.createVNode(R,{type:"primary",onClick:A.submit},{default:S.withCtx(()=>[S.createTextVNode("确定")]),_:1},8,["onClick"])])],!0)])]),default:S.withCtx(()=>[S.renderSlot(w.$slots,"form",{},()=>[S.createVNode(te,{ref_key:"_editFormRef",ref:x,model:p.form,disabled:!p.editable},{default:S.withCtx(()=>[S.createVNode(z,null,{default:S.withCtx(()=>[S.createVNode(P,{class:"icon"},{default:S.withCtx(()=>[S.createVNode(S.unref(Kb))]),_:1}),S.createVNode(j,{modelValue:p.form.title,"onUpdate:modelValue":I[4]||(I[4]=O=>p.form.title=O),placeholder:"请输入标题",style:{width:"90%"},clearable:""},null,8,["modelValue"])]),_:1}),S.createVNode(z,null,{default:S.withCtx(()=>[S.createVNode(P,{class:"icon"},{default:S.withCtx(()=>[S.createVNode(S.unref(ey))]),_:1}),S.createElementVNode("div",S2,[S.createVNode(H,{disabled:"",modelValue:p.form.startDate,"onUpdate:modelValue":I[5]||(I[5]=O=>p.form.startDate=O),type:"date",placeholder:"开始日期",style:S.normalizeStyle({width:p.form.allDay?"45%":"90%"})},null,8,["modelValue","style"]),p.form.allDay?(S.openBlock(),S.createElementBlock("div",T2,[k2,S.createVNode(H,{disabled:"",modelValue:p.form.endDate,"onUpdate:modelValue":I[8]||(I[8]=O=>p.form.endDate=O),type:"date",placeholder:"结束日期",style:{width:"90%"}},null,8,["modelValue"])])):(S.openBlock(),S.createElementBlock("div",R2,[S.createVNode(X,{modelValue:p.form.startTime,"onUpdate:modelValue":I[6]||(I[6]=O=>p.form.startTime=O),type:"datetime",placeholder:"开始时间",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"]),B2,S.createVNode(X,{modelValue:p.form.endTime,"onUpdate:modelValue":I[7]||(I[7]=O=>p.form.endTime=O),type:"datetime",placeholder:"结束时间",style:{width:"45%"},format:"HH:mm"},null,8,["modelValue"])])),S.createVNode(Y,{modelValue:p.form.allDay,"onUpdate:modelValue":I[9]||(I[9]=O=>p.form.allDay=O),label:"全天",style:{"margin-left":"2%"}},null,8,["modelValue"])])]),_:1}),S.createVNode(z,null,{default:S.withCtx(()=>[S.createVNode(P,{class:"icon"},{default:S.withCtx(()=>[S.createVNode(S.unref(iy))]),_:1}),S.createVNode(j,{type:"textarea",modelValue:p.form.remark,"onUpdate:modelValue":I[10]||(I[10]=O=>p.form.remark=O),placeholder:"描述",style:{width:"90%"},clearable:""},null,8,["modelValue"])]),_:1})]),_:1},8,["model","disabled"])],!0)]),_:3},8,["modelValue"])])}}}),SE="",Su=yi(Lo(M2,[["__scopeId","data-v-600ed17b"]]));He.IkSchedule=Su,He.default=Su,Object.defineProperties(He,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|