function Ma(t,e){return function(){return t.apply(e,arguments)}}const{toString:Rd}=Object.prototype,{getPrototypeOf:Di}=Object,{iterator:cr,toStringTag:Na}=Symbol,dr=(t=>e=>{const n=Rd.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Le=t=>(t=t.toLowerCase(),e=>dr(e)===t),ur=t=>e=>typeof e===t,{isArray:qt}=Array,Ut=ur("undefined");function cn(t){return t!==null&&!Ut(t)&&t.constructor!==null&&!Ut(t.constructor)&&ve(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Pa=Le("ArrayBuffer");function Ad(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Pa(t.buffer),e}const Id=ur("string"),ve=ur("function"),xa=ur("number"),dn=t=>t!==null&&typeof t=="object",Sd=t=>t===!0||t===!1,kn=t=>{if(dr(t)!=="object")return!1;const e=Di(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Na in t)&&!(cr in t)},Dd=t=>{if(!dn(t)||cn(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},wd=Le("Date"),Cd=Le("File"),Od=t=>!!(t&&typeof t.uri<"u"),Md=t=>t&&typeof t.getParts<"u",Nd=Le("Blob"),Pd=Le("FileList"),xd=t=>dn(t)&&ve(t.pipe);function Ld(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const ms=Ld(),Es=typeof ms.FormData<"u"?ms.FormData:void 0,kd=t=>{let e;return t&&(Es&&t instanceof Es||ve(t.append)&&((e=dr(t))==="formdata"||e==="object"&&ve(t.toString)&&t.toString()==="[object FormData]"))},Bd=Le("URLSearchParams"),[Fd,Ud,Gd,Hd]=["ReadableStream","Request","Response","Headers"].map(Le),Vd=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function un(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,i;if(typeof t!="object"&&(t=[t]),qt(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{if(cn(t))return;const s=n?Object.getOwnPropertyNames(t):Object.keys(t),o=s.length;let a;for(r=0;r<o;r++)a=s[r],e.call(null,t[a],a,t)}}function La(t,e){if(cn(t))return null;e=e.toLowerCase();const n=Object.keys(t);let r=n.length,i;for(;r-- >0;)if(i=n[r],e===i.toLowerCase())return i;return null}const ft=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ka=t=>!Ut(t)&&t!==ft;function Jr(){const{caseless:t,skipUndefined:e}=ka(this)&&this||{},n={},r=(i,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;const o=t&&La(n,s)||s;kn(n[o])&&kn(i)?n[o]=Jr(n[o],i):kn(i)?n[o]=Jr({},i):qt(i)?n[o]=i.slice():(!e||!Ut(i))&&(n[o]=i)};for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&un(arguments[i],r);return n}const zd=(t,e,n,{allOwnKeys:r}={})=>(un(e,(i,s)=>{n&&ve(i)?Object.defineProperty(t,s,{value:Ma(i,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,s,{value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),t),Wd=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),qd=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},jd=(t,e,n,r)=>{let i,s,o;const a={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),s=i.length;s-- >0;)o=i[s],(!r||r(o,t,e))&&!a[o]&&(e[o]=t[o],a[o]=!0);t=n!==!1&&Di(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},$d=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},Yd=t=>{if(!t)return null;if(qt(t))return t;let e=t.length;if(!xa(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},Qd=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Di(Uint8Array)),Zd=(t,e)=>{const r=(t&&t[cr]).call(t);let i;for(;(i=r.next())&&!i.done;){const s=i.value;e.call(t,s[0],s[1])}},Xd=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},Kd=Le("HTMLFormElement"),Jd=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),ys=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),eu=Le("RegExp"),Ba=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};un(n,(i,s)=>{let o;(o=e(i,s,t))!==!1&&(r[s]=o||i)}),Object.defineProperties(t,r)},tu=t=>{Ba(t,(e,n)=>{if(ve(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(ve(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},nu=(t,e)=>{const n={},r=i=>{i.forEach(s=>{n[s]=!0})};return qt(t)?r(t):r(String(t).split(e)),n},ru=()=>{},iu=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function su(t){return!!(t&&ve(t.append)&&t[Na]==="FormData"&&t[cr])}const ou=t=>{const e=new Array(10),n=(r,i)=>{if(dn(r)){if(e.indexOf(r)>=0)return;if(cn(r))return r;if(!("toJSON"in r)){e[i]=r;const s=qt(r)?[]:{};return un(r,(o,a)=>{const l=n(o,i+1);!Ut(l)&&(s[a]=l)}),e[i]=void 0,s}}return r};return n(t,0)},au=Le("AsyncFunction"),lu=t=>t&&(dn(t)||ve(t))&&ve(t.then)&&ve(t.catch),Fa=((t,e)=>t?setImmediate:e?((n,r)=>(ft.addEventListener("message",({source:i,data:s})=>{i===ft&&s===n&&r.length&&r.shift()()},!1),i=>{r.push(i),ft.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",ve(ft.postMessage)),cu=typeof queueMicrotask<"u"?queueMicrotask.bind(ft):typeof process<"u"&&process.nextTick||Fa,du=t=>t!=null&&ve(t[cr]),T={isArray:qt,isArrayBuffer:Pa,isBuffer:cn,isFormData:kd,isArrayBufferView:Ad,isString:Id,isNumber:xa,isBoolean:Sd,isObject:dn,isPlainObject:kn,isEmptyObject:Dd,isReadableStream:Fd,isRequest:Ud,isResponse:Gd,isHeaders:Hd,isUndefined:Ut,isDate:wd,isFile:Cd,isReactNativeBlob:Od,isReactNative:Md,isBlob:Nd,isRegExp:eu,isFunction:ve,isStream:xd,isURLSearchParams:Bd,isTypedArray:Qd,isFileList:Pd,forEach:un,merge:Jr,extend:zd,trim:Vd,stripBOM:Wd,inherits:qd,toFlatObject:jd,kindOf:dr,kindOfTest:Le,endsWith:$d,toArray:Yd,forEachEntry:Zd,matchAll:Xd,isHTMLForm:Kd,hasOwnProperty:ys,hasOwnProp:ys,reduceDescriptors:Ba,freezeMethods:tu,toObjectSet:nu,toCamelCase:Jd,noop:ru,toFiniteNumber:iu,findKey:La,global:ft,isContextDefined:ka,isSpecCompliantForm:su,toJSONObject:ou,isAsyncFn:au,isThenable:lu,setImmediate:Fa,asap:cu,isIterable:du};let H=class Ua extends Error{static from(e,n,r,i,s,o){const a=new Ua(e.message,n||e.code,r,i,s);return a.cause=e,a.name=e.name,e.status!=null&&a.status==null&&(a.status=e.status),o&&Object.assign(a,o),a}constructor(e,n,r,i,s){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),i&&(this.request=i),s&&(this.response=s,this.status=s.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:T.toJSONObject(this.config),code:this.code,status:this.status}}};H.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";H.ERR_BAD_OPTION="ERR_BAD_OPTION";H.ECONNABORTED="ECONNABORTED";H.ETIMEDOUT="ETIMEDOUT";H.ERR_NETWORK="ERR_NETWORK";H.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";H.ERR_DEPRECATED="ERR_DEPRECATED";H.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";H.ERR_BAD_REQUEST="ERR_BAD_REQUEST";H.ERR_CANCELED="ERR_CANCELED";H.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";H.ERR_INVALID_URL="ERR_INVALID_URL";const uu=null;function ei(t){return T.isPlainObject(t)||T.isArray(t)}function Ga(t){return T.endsWith(t,"[]")?t.slice(0,-2):t}function Ir(t,e,n){return t?t.concat(e).map(function(i,s){return i=Ga(i),!n&&s?"["+i+"]":i}).join(n?".":""):e}function fu(t){return T.isArray(t)&&!t.some(ei)}const hu=T.toFlatObject(T,{},null,function(e){return/^is[A-Z]/.test(e)});function fr(t,e,n){if(!T.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=T.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,m){return!T.isUndefined(m[g])});const r=n.metaTokens,i=n.visitor||c,s=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&T.isSpecCompliantForm(e);if(!T.isFunction(i))throw new TypeError("visitor must be a function");function d(f){if(f===null)return"";if(T.isDate(f))return f.toISOString();if(T.isBoolean(f))return f.toString();if(!l&&T.isBlob(f))throw new H("Blob is not supported. Use a Buffer instead.");return T.isArrayBuffer(f)||T.isTypedArray(f)?l&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function c(f,g,m){let _=f;if(T.isReactNative(e)&&T.isReactNativeBlob(f))return e.append(Ir(m,g,s),d(f)),!1;if(f&&!m&&typeof f=="object"){if(T.endsWith(g,"{}"))g=r?g:g.slice(0,-2),f=JSON.stringify(f);else if(T.isArray(f)&&fu(f)||(T.isFileList(f)||T.endsWith(g,"[]"))&&(_=T.toArray(f)))return g=Ga(g),_.forEach(function(v,b){!(T.isUndefined(v)||v===null)&&e.append(o===!0?Ir([g],b,s):o===null?g:g+"[]",d(v))}),!1}return ei(f)?!0:(e.append(Ir(m,g,s),d(f)),!1)}const u=[],p=Object.assign(hu,{defaultVisitor:c,convertValue:d,isVisitable:ei});function h(f,g){if(!T.isUndefined(f)){if(u.indexOf(f)!==-1)throw Error("Circular reference detected in "+g.join("."));u.push(f),T.forEach(f,function(_,y){(!(T.isUndefined(_)||_===null)&&i.call(e,_,T.isString(y)?y.trim():y,g,p))===!0&&h(_,g?g.concat(y):[y])}),u.pop()}}if(!T.isObject(t))throw new TypeError("data must be an object");return h(t),e}function _s(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function wi(t,e){this._pairs=[],t&&fr(t,this,e)}const Ha=wi.prototype;Ha.append=function(e,n){this._pairs.push([e,n])};Ha.toString=function(e){const n=e?function(r){return e.call(this,r,_s)}:_s;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function pu(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Va(t,e,n){if(!e)return t;const r=n&&n.encode||pu,i=T.isFunction(n)?{serialize:n}:n,s=i&&i.serialize;let o;if(s?o=s(e,i):o=T.isURLSearchParams(e)?e.toString():new wi(e,i).toString(r),o){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class vs{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){T.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Ci={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},gu=typeof URLSearchParams<"u"?URLSearchParams:wi,mu=typeof FormData<"u"?FormData:null,Eu=typeof Blob<"u"?Blob:null,yu={isBrowser:!0,classes:{URLSearchParams:gu,FormData:mu,Blob:Eu},protocols:["http","https","file","blob","url","data"]},Oi=typeof window<"u"&&typeof document<"u",ti=typeof navigator=="object"&&navigator||void 0,_u=Oi&&(!ti||["ReactNative","NativeScript","NS"].indexOf(ti.product)<0),vu=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",bu=Oi&&window.location.href||"http://localhost",Tu=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Oi,hasStandardBrowserEnv:_u,hasStandardBrowserWebWorkerEnv:vu,navigator:ti,origin:bu},Symbol.toStringTag,{value:"Module"})),ce={...Tu,...yu};function Ru(t,e){return fr(t,new ce.classes.URLSearchParams,{visitor:function(n,r,i,s){return ce.isNode&&T.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...e})}function Au(t){return T.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Iu(t){const e={},n=Object.keys(t);let r;const i=n.length;let s;for(r=0;r<i;r++)s=n[r],e[s]=t[s];return e}function za(t){function e(n,r,i,s){let o=n[s++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),l=s>=n.length;return o=!o&&T.isArray(i)?i.length:o,l?(T.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!a):((!i[o]||!T.isObject(i[o]))&&(i[o]=[]),e(n,r,i[o],s)&&T.isArray(i[o])&&(i[o]=Iu(i[o])),!a)}if(T.isFormData(t)&&T.isFunction(t.entries)){const n={};return T.forEachEntry(t,(r,i)=>{e(Au(r),i,n,0)}),n}return null}function Su(t,e,n){if(T.isString(t))try{return(e||JSON.parse)(t),T.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const fn={transitional:Ci,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,s=T.isObject(e);if(s&&T.isHTMLForm(e)&&(e=new FormData(e)),T.isFormData(e))return i?JSON.stringify(za(e)):e;if(T.isArrayBuffer(e)||T.isBuffer(e)||T.isStream(e)||T.isFile(e)||T.isBlob(e)||T.isReadableStream(e))return e;if(T.isArrayBufferView(e))return e.buffer;if(T.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Ru(e,this.formSerializer).toString();if((a=T.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return fr(a?{"files[]":e}:e,l&&new l,this.formSerializer)}}return s||i?(n.setContentType("application/json",!1),Su(e)):e}],transformResponse:[function(e){const n=this.transitional||fn.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(T.isResponse(e)||T.isReadableStream(e))return e;if(e&&T.isString(e)&&(r&&!this.responseType||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(e,this.parseReviver)}catch(a){if(o)throw a.name==="SyntaxError"?H.from(a,H.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ce.classes.FormData,Blob:ce.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};T.forEach(["delete","get","head","post","put","patch"],t=>{fn.headers[t]={}});const Du=T.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),wu=t=>{const e={};let n,r,i;return t&&t.split(`
`).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!n||e[n]&&Du[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},bs=Symbol("internals");function $t(t){return t&&String(t).trim().toLowerCase()}function Bn(t){return t===!1||t==null?t:T.isArray(t)?t.map(Bn):String(t)}function Cu(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const Ou=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Sr(t,e,n,r,i){if(T.isFunction(r))return r.call(this,e,n);if(i&&(e=n),!!T.isString(e)){if(T.isString(r))return e.indexOf(r)!==-1;if(T.isRegExp(r))return r.test(e)}}function Mu(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function Nu(t,e){const n=T.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(i,s,o){return this[r].call(this,e,i,s,o)},configurable:!0})})}let be=class{constructor(e){e&&this.set(e)}set(e,n,r){const i=this;function s(a,l,d){const c=$t(l);if(!c)throw new Error("header name must be a non-empty string");const u=T.findKey(i,c);(!u||i[u]===void 0||d===!0||d===void 0&&i[u]!==!1)&&(i[u||l]=Bn(a))}const o=(a,l)=>T.forEach(a,(d,c)=>s(d,c,l));if(T.isPlainObject(e)||e instanceof this.constructor)o(e,n);else if(T.isString(e)&&(e=e.trim())&&!Ou(e))o(wu(e),n);else if(T.isObject(e)&&T.isIterable(e)){let a={},l,d;for(const c of e){if(!T.isArray(c))throw TypeError("Object iterator must return a key-value pair");a[d=c[0]]=(l=a[d])?T.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}o(a,n)}else e!=null&&s(n,e,r);return this}get(e,n){if(e=$t(e),e){const r=T.findKey(this,e);if(r){const i=this[r];if(!n)return i;if(n===!0)return Cu(i);if(T.isFunction(n))return n.call(this,i,r);if(T.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=$t(e),e){const r=T.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||Sr(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let i=!1;function s(o){if(o=$t(o),o){const a=T.findKey(r,o);a&&(!n||Sr(r,r[a],a,n))&&(delete r[a],i=!0)}}return T.isArray(e)?e.forEach(s):s(e),i}clear(e){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const s=n[r];(!e||Sr(this,this[s],s,e,!0))&&(delete this[s],i=!0)}return i}normalize(e){const n=this,r={};return T.forEach(this,(i,s)=>{const o=T.findKey(r,s);if(o){n[o]=Bn(i),delete n[s];return}const a=e?Mu(s):String(s).trim();a!==s&&delete n[s],n[a]=Bn(i),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return T.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=e&&T.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(i=>r.set(i)),r}static accessor(e){const r=(this[bs]=this[bs]={accessors:{}}).accessors,i=this.prototype;function s(o){const a=$t(o);r[a]||(Nu(i,o),r[a]=!0)}return T.isArray(e)?e.forEach(s):s(e),this}};be.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);T.reduceDescriptors(be.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});T.freezeMethods(be);function Dr(t,e){const n=this||fn,r=e||n,i=be.from(r.headers);let s=r.data;return T.forEach(t,function(a){s=a.call(n,s,i.normalize(),e?e.status:void 0)}),i.normalize(),s}function Wa(t){return!!(t&&t.__CANCEL__)}let hn=class extends H{constructor(e,n,r){super(e??"canceled",H.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function qa(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new H("Request failed with status code "+n.status,[H.ERR_BAD_REQUEST,H.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Pu(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function xu(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i=0,s=0,o;return e=e!==void 0?e:1e3,function(l){const d=Date.now(),c=r[s];o||(o=d),n[i]=l,r[i]=d;let u=s,p=0;for(;u!==i;)p+=n[u++],u=u%t;if(i=(i+1)%t,i===s&&(s=(s+1)%t),d-o<e)return;const h=c&&d-c;return h?Math.round(p*1e3/h):void 0}}function Lu(t,e){let n=0,r=1e3/e,i,s;const o=(d,c=Date.now())=>{n=c,i=null,s&&(clearTimeout(s),s=null),t(...d)};return[(...d)=>{const c=Date.now(),u=c-n;u>=r?o(d,c):(i=d,s||(s=setTimeout(()=>{s=null,o(i)},r-u)))},()=>i&&o(i)]}const jn=(t,e,n=3)=>{let r=0;const i=xu(50,250);return Lu(s=>{const o=s.loaded,a=s.lengthComputable?s.total:void 0,l=o-r,d=i(l),c=o<=a;r=o;const u={loaded:o,total:a,progress:a?o/a:void 0,bytes:l,rate:d||void 0,estimated:d&&a&&c?(a-o)/d:void 0,event:s,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(u)},n)},Ts=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Rs=t=>(...e)=>T.asap(()=>t(...e)),ku=ce.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,ce.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(ce.origin),ce.navigator&&/(msie|trident)/i.test(ce.navigator.userAgent)):()=>!0,Bu=ce.hasStandardBrowserEnv?{write(t,e,n,r,i,s,o){if(typeof document>"u")return;const a=[`${t}=${encodeURIComponent(e)}`];T.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),T.isString(r)&&a.push(`path=${r}`),T.isString(i)&&a.push(`domain=${i}`),s===!0&&a.push("secure"),T.isString(o)&&a.push(`SameSite=${o}`),document.cookie=a.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Fu(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Uu(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function ja(t,e,n){let r=!Fu(e);return t&&(r||n==!1)?Uu(t,e):e}const As=t=>t instanceof be?{...t}:t;function Tt(t,e){e=e||{};const n={};function r(d,c,u,p){return T.isPlainObject(d)&&T.isPlainObject(c)?T.merge.call({caseless:p},d,c):T.isPlainObject(c)?T.merge({},c):T.isArray(c)?c.slice():c}function i(d,c,u,p){if(T.isUndefined(c)){if(!T.isUndefined(d))return r(void 0,d,u,p)}else return r(d,c,u,p)}function s(d,c){if(!T.isUndefined(c))return r(void 0,c)}function o(d,c){if(T.isUndefined(c)){if(!T.isUndefined(d))return r(void 0,d)}else return r(void 0,c)}function a(d,c,u){if(u in e)return r(d,c);if(u in t)return r(void 0,d)}const l={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(d,c,u)=>i(As(d),As(c),u,!0)};return T.forEach(Object.keys({...t,...e}),function(c){if(c==="__proto__"||c==="constructor"||c==="prototype")return;const u=T.hasOwnProp(l,c)?l[c]:i,p=u(t[c],e[c],c);T.isUndefined(p)&&u!==a||(n[c]=p)}),n}const $a=t=>{const e=Tt({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:s,headers:o,auth:a}=e;if(e.headers=o=be.from(o),e.url=Va(ja(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),T.isFormData(n)){if(ce.hasStandardBrowserEnv||ce.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(T.isFunction(n.getHeaders)){const l=n.getHeaders(),d=["content-type","content-length"];Object.entries(l).forEach(([c,u])=>{d.includes(c.toLowerCase())&&o.set(c,u)})}}if(ce.hasStandardBrowserEnv&&(r&&T.isFunction(r)&&(r=r(e)),r||r!==!1&&ku(e.url))){const l=i&&s&&Bu.read(s);l&&o.set(i,l)}return e},Gu=typeof XMLHttpRequest<"u",Hu=Gu&&function(t){return new Promise(function(n,r){const i=$a(t);let s=i.data;const o=be.from(i.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:d}=i,c,u,p,h,f;function g(){h&&h(),f&&f(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let m=new XMLHttpRequest;m.open(i.method.toUpperCase(),i.url,!0),m.timeout=i.timeout;function _(){if(!m)return;const v=be.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),A={data:!a||a==="text"||a==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:v,config:t,request:m};qa(function(M){n(M),g()},function(M){r(M),g()},A),m=null}"onloadend"in m?m.onloadend=_:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(_)},m.onabort=function(){m&&(r(new H("Request aborted",H.ECONNABORTED,t,m)),m=null)},m.onerror=function(b){const A=b&&b.message?b.message:"Network Error",D=new H(A,H.ERR_NETWORK,t,m);D.event=b||null,r(D),m=null},m.ontimeout=function(){let b=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const A=i.transitional||Ci;i.timeoutErrorMessage&&(b=i.timeoutErrorMessage),r(new H(b,A.clarifyTimeoutError?H.ETIMEDOUT:H.ECONNABORTED,t,m)),m=null},s===void 0&&o.setContentType(null),"setRequestHeader"in m&&T.forEach(o.toJSON(),function(b,A){m.setRequestHeader(A,b)}),T.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),a&&a!=="json"&&(m.responseType=i.responseType),d&&([p,f]=jn(d,!0),m.addEventListener("progress",p)),l&&m.upload&&([u,h]=jn(l),m.upload.addEventListener("progress",u),m.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(c=v=>{m&&(r(!v||v.type?new hn(null,t,m):v),m.abort(),m=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const y=Pu(i.url);if(y&&ce.protocols.indexOf(y)===-1){r(new H("Unsupported protocol "+y+":",H.ERR_BAD_REQUEST,t));return}m.send(s||null)})},Vu=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let r=new AbortController,i;const s=function(d){if(!i){i=!0,a();const c=d instanceof Error?d:this.reason;r.abort(c instanceof H?c:new hn(c instanceof Error?c.message:c))}};let o=e&&setTimeout(()=>{o=null,s(new H(`timeout of ${e}ms exceeded`,H.ETIMEDOUT))},e);const a=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(d=>{d.unsubscribe?d.unsubscribe(s):d.removeEventListener("abort",s)}),t=null)};t.forEach(d=>d.addEventListener("abort",s));const{signal:l}=r;return l.unsubscribe=()=>T.asap(a),l}},zu=function*(t,e){let n=t.byteLength;if(n<e){yield t;return}let r=0,i;for(;r<n;)i=r+e,yield t.slice(r,i),r=i},Wu=async function*(t,e){for await(const n of qu(t))yield*zu(n,e)},qu=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:n,value:r}=await e.read();if(n)break;yield r}}finally{await e.cancel()}},Is=(t,e,n,r)=>{const i=Wu(t,e);let s=0,o,a=l=>{o||(o=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:d,value:c}=await i.next();if(d){a(),l.close();return}let u=c.byteLength;if(n){let p=s+=u;n(p)}l.enqueue(new Uint8Array(c))}catch(d){throw a(d),d}},cancel(l){return a(l),i.return()}},{highWaterMark:2})},Ss=64*1024,{isFunction:_n}=T,ju=(({Request:t,Response:e})=>({Request:t,Response:e}))(T.global),{ReadableStream:Ds,TextEncoder:ws}=T.global,Cs=(t,...e)=>{try{return!!t(...e)}catch{return!1}},$u=t=>{t=T.merge.call({skipUndefined:!0},ju,t);const{fetch:e,Request:n,Response:r}=t,i=e?_n(e):typeof fetch=="function",s=_n(n),o=_n(r);if(!i)return!1;const a=i&&_n(Ds),l=i&&(typeof ws=="function"?(f=>g=>f.encode(g))(new ws):async f=>new Uint8Array(await new n(f).arrayBuffer())),d=s&&a&&Cs(()=>{let f=!1;const g=new n(ce.origin,{body:new Ds,method:"POST",get duplex(){return f=!0,"half"}}).headers.has("Content-Type");return f&&!g}),c=o&&a&&Cs(()=>T.isReadableStream(new r("").body)),u={stream:c&&(f=>f.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(f=>{!u[f]&&(u[f]=(g,m)=>{let _=g&&g[f];if(_)return _.call(g);throw new H(`Response type '${f}' is not supported`,H.ERR_NOT_SUPPORT,m)})});const p=async f=>{if(f==null)return 0;if(T.isBlob(f))return f.size;if(T.isSpecCompliantForm(f))return(await new n(ce.origin,{method:"POST",body:f}).arrayBuffer()).byteLength;if(T.isArrayBufferView(f)||T.isArrayBuffer(f))return f.byteLength;if(T.isURLSearchParams(f)&&(f=f+""),T.isString(f))return(await l(f)).byteLength},h=async(f,g)=>{const m=T.toFiniteNumber(f.getContentLength());return m??p(g)};return async f=>{let{url:g,method:m,data:_,signal:y,cancelToken:v,timeout:b,onDownloadProgress:A,onUploadProgress:D,responseType:M,headers:I,withCredentials:N="same-origin",fetchOptions:B}=$a(f),P=e||fetch;M=M?(M+"").toLowerCase():"text";let x=Vu([y,v&&v.toAbortSignal()],b),W=null;const C=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let z;try{if(D&&d&&m!=="get"&&m!=="head"&&(z=await h(I,_))!==0){let U=new n(g,{method:"POST",body:_,duplex:"half"}),ge;if(T.isFormData(_)&&(ge=U.headers.get("content-type"))&&I.setContentType(ge),U.body){const[He,ae]=Ts(z,jn(Rs(D)));_=Is(U.body,Ss,He,ae)}}T.isString(N)||(N=N?"include":"omit");const S=s&&"credentials"in n.prototype,O={...B,signal:x,method:m.toUpperCase(),headers:I.normalize().toJSON(),body:_,duplex:"half",credentials:S?N:void 0};W=s&&new n(g,O);let L=await(s?P(W,B):P(g,O));const k=c&&(M==="stream"||M==="response");if(c&&(A||k&&C)){const U={};["status","statusText","headers"].forEach(Ct=>{U[Ct]=L[Ct]});const ge=T.toFiniteNumber(L.headers.get("content-length")),[He,ae]=A&&Ts(ge,jn(Rs(A),!0))||[];L=new r(Is(L.body,Ss,He,()=>{ae&&ae(),C&&C()}),U)}M=M||"text";let Q=await u[T.findKey(u,M)||"text"](L,f);return!k&&C&&C(),await new Promise((U,ge)=>{qa(U,ge,{data:Q,headers:be.from(L.headers),status:L.status,statusText:L.statusText,config:f,request:W})})}catch(S){throw C&&C(),S&&S.name==="TypeError"&&/Load failed|fetch/i.test(S.message)?Object.assign(new H("Network Error",H.ERR_NETWORK,f,W,S&&S.response),{cause:S.cause||S}):H.from(S,S&&S.code,f,W,S&&S.response)}}},Yu=new Map,Ya=t=>{let e=t&&t.env||{};const{fetch:n,Request:r,Response:i}=e,s=[r,i,n];let o=s.length,a=o,l,d,c=Yu;for(;a--;)l=s[a],d=c.get(l),d===void 0&&c.set(l,d=a?new Map:$u(e)),c=d;return d};Ya();const Mi={http:uu,xhr:Hu,fetch:{get:Ya}};T.forEach(Mi,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Os=t=>`- ${t}`,Qu=t=>T.isFunction(t)||t===null||t===!1;function Zu(t,e){t=T.isArray(t)?t:[t];const{length:n}=t;let r,i;const s={};for(let o=0;o<n;o++){r=t[o];let a;if(i=r,!Qu(r)&&(i=Mi[(a=String(r)).toLowerCase()],i===void 0))throw new H(`Unknown adapter '${a}'`);if(i&&(T.isFunction(i)||(i=i.get(e))))break;s[a||"#"+o]=i}if(!i){const o=Object.entries(s).map(([l,d])=>`adapter ${l} `+(d===!1?"is not supported by the environment":"is not available in the build"));let a=n?o.length>1?`since :
`+o.map(Os).join(`
`):" "+Os(o[0]):"as no adapter specified";throw new H("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return i}const Qa={getAdapter:Zu,adapters:Mi};function wr(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new hn(null,t)}function Ms(t){return wr(t),t.headers=be.from(t.headers),t.data=Dr.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Qa.getAdapter(t.adapter||fn.adapter,t)(t).then(function(r){return wr(t),r.data=Dr.call(t,t.transformResponse,r),r.headers=be.from(r.headers),r},function(r){return Wa(r)||(wr(t),r&&r.response&&(r.response.data=Dr.call(t,t.transformResponse,r.response),r.response.headers=be.from(r.response.headers))),Promise.reject(r)})}const Za="1.13.6",hr={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{hr[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const Ns={};hr.transitional=function(e,n,r){function i(s,o){return"[Axios v"+Za+"] Transitional option '"+s+"'"+o+(r?". "+r:"")}return(s,o,a)=>{if(e===!1)throw new H(i(o," has been removed"+(n?" in "+n:"")),H.ERR_DEPRECATED);return n&&!Ns[o]&&(Ns[o]=!0,console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(s,o,a):!0}};hr.spelling=function(e){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};function Xu(t,e,n){if(typeof t!="object")throw new H("options must be an object",H.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const s=r[i],o=e[s];if(o){const a=t[s],l=a===void 0||o(a,s,t);if(l!==!0)throw new H("option "+s+" must be "+l,H.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new H("Unknown option "+s,H.ERR_BAD_OPTION)}}const Fn={assertOptions:Xu,validators:hr},Ae=Fn.validators;let mt=class{constructor(e){this.defaults=e||{},this.interceptors={request:new vs,response:new vs}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const s=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+s):r.stack=s}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Tt(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:s}=n;r!==void 0&&Fn.assertOptions(r,{silentJSONParsing:Ae.transitional(Ae.boolean),forcedJSONParsing:Ae.transitional(Ae.boolean),clarifyTimeoutError:Ae.transitional(Ae.boolean),legacyInterceptorReqResOrdering:Ae.transitional(Ae.boolean)},!1),i!=null&&(T.isFunction(i)?n.paramsSerializer={serialize:i}:Fn.assertOptions(i,{encode:Ae.function,serialize:Ae.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Fn.assertOptions(n,{baseUrl:Ae.spelling("baseURL"),withXsrfToken:Ae.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=s&&T.merge(s.common,s[n.method]);s&&T.forEach(["delete","get","head","post","put","patch","common"],f=>{delete s[f]}),n.headers=be.concat(o,s);const a=[];let l=!0;this.interceptors.request.forEach(function(g){if(typeof g.runWhen=="function"&&g.runWhen(n)===!1)return;l=l&&g.synchronous;const m=n.transitional||Ci;m&&m.legacyInterceptorReqResOrdering?a.unshift(g.fulfilled,g.rejected):a.push(g.fulfilled,g.rejected)});const d=[];this.interceptors.response.forEach(function(g){d.push(g.fulfilled,g.rejected)});let c,u=0,p;if(!l){const f=[Ms.bind(this),void 0];for(f.unshift(...a),f.push(...d),p=f.length,c=Promise.resolve(n);u<p;)c=c.then(f[u++],f[u++]);return c}p=a.length;let h=n;for(;u<p;){const f=a[u++],g=a[u++];try{h=f(h)}catch(m){g.call(this,m);break}}try{c=Ms.call(this,h)}catch(f){return Promise.reject(f)}for(u=0,p=d.length;u<p;)c=c.then(d[u++],d[u++]);return c}getUri(e){e=Tt(this.defaults,e);const n=ja(e.baseURL,e.url,e.allowAbsoluteUrls);return Va(n,e.params,e.paramsSerializer)}};T.forEach(["delete","get","head","options"],function(e){mt.prototype[e]=function(n,r){return this.request(Tt(r||{},{method:e,url:n,data:(r||{}).data}))}});T.forEach(["post","put","patch"],function(e){function n(r){return function(s,o,a){return this.request(Tt(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:o}))}}mt.prototype[e]=n(),mt.prototype[e+"Form"]=n(!0)});let Ku=class Xa{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(i=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](i);r._listeners=null}),this.promise.then=i=>{let s;const o=new Promise(a=>{r.subscribe(a),s=a}).then(i);return o.cancel=function(){r.unsubscribe(s)},o},e(function(s,o,a){r.reason||(r.reason=new hn(s,o,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const e=new AbortController,n=r=>{e.abort(r)};return this.subscribe(n),e.signal.unsubscribe=()=>this.unsubscribe(n),e.signal}static source(){let e;return{token:new Xa(function(i){e=i}),cancel:e}}};function Ju(t){return function(n){return t.apply(null,n)}}function ef(t){return T.isObject(t)&&t.isAxiosError===!0}const ni={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ni).forEach(([t,e])=>{ni[e]=t});function Ka(t){const e=new mt(t),n=Ma(mt.prototype.request,e);return T.extend(n,mt.prototype,e,{allOwnKeys:!0}),T.extend(n,e,null,{allOwnKeys:!0}),n.create=function(i){return Ka(Tt(t,i))},n}const ee=Ka(fn);ee.Axios=mt;ee.CanceledError=hn;ee.CancelToken=Ku;ee.isCancel=Wa;ee.VERSION=Za;ee.toFormData=fr;ee.AxiosError=H;ee.Cancel=ee.CanceledError;ee.all=function(e){return Promise.all(e)};ee.spread=Ju;ee.isAxiosError=ef;ee.mergeConfig=Tt;ee.AxiosHeaders=be;ee.formToJSON=t=>za(T.isHTMLForm(t)?new FormData(t):t);ee.getAdapter=Qa.getAdapter;ee.HttpStatusCode=ni;ee.default=ee;const{Axios:vR,AxiosError:bR,CanceledError:TR,isCancel:RR,CancelToken:AR,VERSION:IR,all:SR,Cancel:DR,isAxiosError:wR,spread:CR,toFormData:OR,AxiosHeaders:MR,HttpStatusCode:NR,formToJSON:PR,getAdapter:xR,mergeConfig:LR}=ee;window.axios=ee;window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";/*!
 * FilePond 4.32.12
 * Licensed under MIT, https://opensource.org/licenses/MIT/
 * Please visit https://pqina.nl/filepond/ for details.
 */const tf=t=>t instanceof HTMLElement,nf=(t,e=[],n=[])=>{const r={...t},i=[],s=[],o=()=>({...r}),a=()=>{const f=[...i];return i.length=0,f},l=()=>{const f=[...s];s.length=0,f.forEach(({type:g,data:m})=>{d(g,m)})},d=(f,g,m)=>{if(m&&!document.hidden){s.push({type:f,data:g});return}h[f]&&h[f](g),i.push({type:f,data:g})},c=(f,...g)=>p[f]?p[f](...g):null,u={getState:o,processActionQueue:a,processDispatchQueue:l,dispatch:d,query:c};let p={};e.forEach(f=>{p={...f(r),...p}});let h={};return n.forEach(f=>{h={...f(d,c,r),...h}}),u},rf=(t,e,n)=>{if(typeof n=="function"){t[e]=n;return}Object.defineProperty(t,e,{...n})},K=(t,e)=>{for(const n in t)t.hasOwnProperty(n)&&e(n,t[n])},nt=t=>{const e={};return K(t,n=>{rf(e,n,t[n])}),e},ie=(t,e,n=null)=>{if(n===null)return t.getAttribute(e)||t.hasAttribute(e);t.setAttribute(e,n)},sf="http://www.w3.org/2000/svg",of=["svg","path"],Ps=t=>of.includes(t),$n=(t,e,n={})=>{typeof e=="object"&&(n=e,e=null);const r=Ps(t)?document.createElementNS(sf,t):document.createElement(t);return e&&(Ps(t)?ie(r,"class",e):r.className=e),K(n,(i,s)=>{ie(r,i,s)}),r},af=t=>(e,n)=>{typeof n<"u"&&t.children[n]?t.insertBefore(e,t.children[n]):t.appendChild(e)},lf=(t,e)=>(n,r)=>(typeof r<"u"?e.splice(r,0,n):e.push(n),n),cf=(t,e)=>n=>(e.splice(e.indexOf(n),1),n.element.parentNode&&t.removeChild(n.element),n),df=typeof window<"u"&&typeof window.document<"u",Ja=()=>df,uf=Ja()?$n("svg"):{},ff="children"in uf?t=>t.children.length:t=>t.childNodes.length,el=(t,e,n,r)=>{const i=n[0]||t.left,s=n[1]||t.top,o=i+t.width,a=s+t.height*(r[1]||1),l={element:{...t},inner:{left:t.left,top:t.top,right:t.right,bottom:t.bottom},outer:{left:i,top:s,right:o,bottom:a}};return e.filter(d=>!d.isRectIgnored()).map(d=>d.rect).forEach(d=>{xs(l.inner,{...d.inner}),xs(l.outer,{...d.outer})}),Ls(l.inner),l.outer.bottom+=l.element.marginBottom,l.outer.right+=l.element.marginRight,Ls(l.outer),l},xs=(t,e)=>{e.top+=t.top,e.right+=t.left,e.bottom+=t.top,e.left+=t.left,e.bottom>t.bottom&&(t.bottom=e.bottom),e.right>t.right&&(t.right=e.right)},Ls=t=>{t.width=t.right-t.left,t.height=t.bottom-t.top},ht=t=>typeof t=="number",hf=(t,e,n,r=.001)=>Math.abs(t-e)<r&&Math.abs(n)<r,pf=({stiffness:t=.5,damping:e=.75,mass:n=10}={})=>{let r=null,i=null,s=0,o=!1;const d=nt({interpolate:(c,u)=>{if(o)return;if(!(ht(r)&&ht(i))){o=!0,s=0;return}const p=-(i-r)*t;s+=p/n,i+=s,s*=e,hf(i,r,s)||u?(i=r,s=0,o=!0,d.onupdate(i),d.oncomplete(i)):d.onupdate(i)},target:{set:c=>{if(ht(c)&&!ht(i)&&(i=c),r===null&&(r=c,i=c),r=c,i===r||typeof r>"u"){o=!0,s=0,d.onupdate(i),d.oncomplete(i);return}o=!1},get:()=>r},resting:{get:()=>o},onupdate:c=>{},oncomplete:c=>{}});return d},gf=t=>t<.5?2*t*t:-1+(4-2*t)*t,mf=({duration:t=500,easing:e=gf,delay:n=0}={})=>{let r=null,i,s,o=!0,a=!1,l=null;const c=nt({interpolate:(u,p)=>{o||l===null||(r===null&&(r=u),!(u-r<n)&&(i=u-r-n,i>=t||p?(i=1,s=a?0:1,c.onupdate(s*l),c.oncomplete(s*l),o=!0):(s=i/t,c.onupdate((i>=0?e(a?1-s:s):0)*l))))},target:{get:()=>a?0:l,set:u=>{if(l===null){l=u,c.onupdate(u),c.oncomplete(u);return}u<l?(l=1,a=!0):(a=!1,l=u),o=!1,r=null}},resting:{get:()=>o},onupdate:u=>{},oncomplete:u=>{}});return c},ks={spring:pf,tween:mf},Ef=(t,e,n)=>{const r=t[e]&&typeof t[e][n]=="object"?t[e][n]:t[e]||t,i=typeof r=="string"?r:r.type,s=typeof r=="object"?{...r}:{};return ks[i]?ks[i](s):null},Ni=(t,e,n,r=!1)=>{e=Array.isArray(e)?e:[e],e.forEach(i=>{t.forEach(s=>{let o=s,a=()=>n[s],l=d=>n[s]=d;typeof s=="object"&&(o=s.key,a=s.getter||a,l=s.setter||l),!(i[o]&&!r)&&(i[o]={get:a,set:l})})})},yf=({mixinConfig:t,viewProps:e,viewInternalAPI:n,viewExternalAPI:r})=>{const i={...e},s=[];return K(t,(o,a)=>{const l=Ef(a);if(!l)return;l.onupdate=c=>{e[o]=c},l.target=i[o],Ni([{key:o,setter:c=>{l.target!==c&&(l.target=c)},getter:()=>e[o]}],[n,r],e,!0),s.push(l)}),{write:o=>{let a=document.hidden,l=!0;return s.forEach(d=>{d.resting||(l=!1),d.interpolate(o,a)}),l},destroy:()=>{}}},_f=t=>(e,n)=>{t.addEventListener(e,n)},vf=t=>(e,n)=>{t.removeEventListener(e,n)},bf=({mixinConfig:t,viewProps:e,viewInternalAPI:n,viewExternalAPI:r,viewState:i,view:s})=>{const o=[],a=_f(s.element),l=vf(s.element);return r.on=(d,c)=>{o.push({type:d,fn:c}),a(d,c)},r.off=(d,c)=>{o.splice(o.findIndex(u=>u.type===d&&u.fn===c),1),l(d,c)},{write:()=>!0,destroy:()=>{o.forEach(d=>{l(d.type,d.fn)})}}},Tf=({mixinConfig:t,viewProps:e,viewExternalAPI:n})=>{Ni(t,n,e)},ue=t=>t!=null,Rf={opacity:1,scaleX:1,scaleY:1,translateX:0,translateY:0,rotateX:0,rotateY:0,rotateZ:0,originX:0,originY:0},Af=({mixinConfig:t,viewProps:e,viewInternalAPI:n,viewExternalAPI:r,view:i})=>{const s={...e},o={};Ni(t,[n,r],e);const a=()=>[e.translateX||0,e.translateY||0],l=()=>[e.scaleX||0,e.scaleY||0],d=()=>i.rect?el(i.rect,i.childViews,a(),l()):null;return n.rect={get:d},r.rect={get:d},t.forEach(c=>{e[c]=typeof s[c]>"u"?Rf[c]:s[c]}),{write:()=>{if(If(o,e))return Sf(i.element,e),Object.assign(o,{...e}),!0},destroy:()=>{}}},If=(t,e)=>{if(Object.keys(t).length!==Object.keys(e).length)return!0;for(const n in e)if(e[n]!==t[n])return!0;return!1},Sf=(t,{opacity:e,perspective:n,translateX:r,translateY:i,scaleX:s,scaleY:o,rotateX:a,rotateY:l,rotateZ:d,originX:c,originY:u,width:p,height:h})=>{let f="",g="";(ue(c)||ue(u))&&(g+=`transform-origin: ${c||0}px ${u||0}px;`),ue(n)&&(f+=`perspective(${n}px) `),(ue(r)||ue(i))&&(f+=`translate3d(${r||0}px, ${i||0}px, 0) `),(ue(s)||ue(o))&&(f+=`scale3d(${ue(s)?s:1}, ${ue(o)?o:1}, 1) `),ue(d)&&(f+=`rotateZ(${d}rad) `),ue(a)&&(f+=`rotateX(${a}rad) `),ue(l)&&(f+=`rotateY(${l}rad) `),f.length&&(g+=`transform:${f};`),ue(e)&&(g+=`opacity:${e};`,e===0&&(g+="visibility:hidden;"),e<1&&(g+="pointer-events:none;")),ue(h)&&(g+=`height:${h}px;`),ue(p)&&(g+=`width:${p}px;`);const m=t.elementCurrentStyle||"";(g.length!==m.length||g!==m)&&(t.style.cssText=g,t.elementCurrentStyle=g)},Df={styles:Af,listeners:bf,animations:yf,apis:Tf},Bs=(t={},e={},n={})=>(e.layoutCalculated||(t.paddingTop=parseInt(n.paddingTop,10)||0,t.marginTop=parseInt(n.marginTop,10)||0,t.marginRight=parseInt(n.marginRight,10)||0,t.marginBottom=parseInt(n.marginBottom,10)||0,t.marginLeft=parseInt(n.marginLeft,10)||0,e.layoutCalculated=!0),t.left=e.offsetLeft||0,t.top=e.offsetTop||0,t.width=e.offsetWidth||0,t.height=e.offsetHeight||0,t.right=t.left+t.width,t.bottom=t.top+t.height,t.scrollTop=e.scrollTop,t.hidden=e.offsetParent===null,t),re=({tag:t="div",name:e=null,attributes:n={},read:r=()=>{},write:i=()=>{},create:s=()=>{},destroy:o=()=>{},filterFrameActionsForChild:a=(h,f)=>f,didCreateView:l=()=>{},didWriteView:d=()=>{},ignoreRect:c=!1,ignoreRectUpdate:u=!1,mixins:p=[]}={})=>(h,f={})=>{const g=$n(t,`filepond--${e}`,n),m=window.getComputedStyle(g,null),_=Bs();let y=null,v=!1;const b=[],A=[],D={},M={},I=[i],N=[r],B=[o],P=()=>g,x=()=>b.concat(),W=()=>D,C=q=>(le,Ve)=>le(q,Ve),z=()=>y||(y=el(_,b,[0,0],[1,1]),y),S=()=>m,O=()=>{y=null,b.forEach(Ve=>Ve._read()),!(u&&_.width&&_.height)&&Bs(_,g,m);const le={root:ae,props:f,rect:_};N.forEach(Ve=>Ve(le))},L=(q,le,Ve)=>{let Ot=le.length===0;return I.forEach(me=>{me({props:f,root:ae,actions:le,timestamp:q,shouldOptimize:Ve})===!1&&(Ot=!1)}),A.forEach(me=>{me.write(q)===!1&&(Ot=!1)}),b.filter(me=>!!me.element.parentNode).forEach(me=>{me._write(q,a(me,le),Ve)||(Ot=!1)}),b.forEach((me,yn)=>{me.element.parentNode||(ae.appendChild(me.element,yn),me._read(),me._write(q,a(me,le),Ve),Ot=!1)}),v=Ot,d({props:f,root:ae,actions:le,timestamp:q}),Ot},k=()=>{A.forEach(q=>q.destroy()),B.forEach(q=>{q({root:ae,props:f})}),b.forEach(q=>q._destroy())},Q={element:{get:P},style:{get:S},childViews:{get:x}},U={...Q,rect:{get:z},ref:{get:W},is:q=>e===q,appendChild:af(g),createChildView:C(h),linkView:q=>(b.push(q),q),unlinkView:q=>{b.splice(b.indexOf(q),1)},appendChildView:lf(g,b),removeChildView:cf(g,b),registerWriter:q=>I.push(q),registerReader:q=>N.push(q),registerDestroyer:q=>B.push(q),invalidateLayout:()=>g.layoutCalculated=!1,dispatch:h.dispatch,query:h.query},ge={element:{get:P},childViews:{get:x},rect:{get:z},resting:{get:()=>v},isRectIgnored:()=>c,_read:O,_write:L,_destroy:k},He={...Q,rect:{get:()=>_}};Object.keys(p).sort((q,le)=>q==="styles"?1:le==="styles"?-1:0).forEach(q=>{const le=Df[q]({mixinConfig:p[q],viewProps:f,viewState:M,viewInternalAPI:U,viewExternalAPI:ge,view:nt(He)});le&&A.push(le)});const ae=nt(U);s({root:ae,props:f});const Ct=ff(g);return b.forEach((q,le)=>{ae.appendChild(q.element,Ct+le)}),l(ae),nt(ge)},wf=(t,e,n=60)=>{const r="__framePainter";if(window[r]){window[r].readers.push(t),window[r].writers.push(e);return}window[r]={readers:[t],writers:[e]};const i=window[r],s=1e3/n;let o=null,a=null,l=null,d=null;const c=()=>{document.hidden?(l=()=>window.setTimeout(()=>u(performance.now()),s),d=()=>window.clearTimeout(a)):(l=()=>window.requestAnimationFrame(u),d=()=>window.cancelAnimationFrame(a))};document.addEventListener("visibilitychange",()=>{d&&d(),c(),u(performance.now())});const u=p=>{a=l(u),o||(o=p);const h=p-o;h<=s||(o=p-h%s,i.readers.forEach(f=>f()),i.writers.forEach(f=>f(p)))};return c(),u(performance.now()),{pause:()=>{d(a)}}},pe=(t,e)=>({root:n,props:r,actions:i=[],timestamp:s,shouldOptimize:o})=>{i.filter(a=>t[a.type]).forEach(a=>t[a.type]({root:n,props:r,action:a.data,timestamp:s,shouldOptimize:o})),e&&e({root:n,props:r,actions:i,timestamp:s,shouldOptimize:o})},Fs=(t,e)=>e.parentNode.insertBefore(t,e),Us=(t,e)=>e.parentNode.insertBefore(t,e.nextSibling),pr=t=>Array.isArray(t),$e=t=>t==null,Cf=t=>t.trim(),gr=t=>""+t,Of=(t,e=",")=>$e(t)?[]:pr(t)?t:gr(t).split(e).map(Cf).filter(n=>n.length),tl=t=>typeof t=="boolean",nl=t=>tl(t)?t:t==="true",he=t=>typeof t=="string",rl=t=>ht(t)?t:he(t)?gr(t).replace(/[a-z]+/gi,""):0,Un=t=>parseInt(rl(t),10),Gs=t=>parseFloat(rl(t)),jt=t=>ht(t)&&isFinite(t)&&Math.floor(t)===t,Hs=(t,e=1e3)=>{if(jt(t))return t;let n=gr(t).trim();return/MB$/i.test(n)?(n=n.replace(/MB$i/,"").trim(),Un(n)*e*e):/KB/i.test(n)?(n=n.replace(/KB$i/,"").trim(),Un(n)*e):Un(n)},pt=t=>typeof t=="function",Mf=t=>{let e=self,n=t.split("."),r=null;for(;r=n.shift();)if(e=e[r],!e)return null;return e},Vs={process:"POST",patch:"PATCH",revert:"DELETE",fetch:"GET",restore:"GET",load:"GET"},Nf=t=>{const e={};return e.url=he(t)?t:t.url||"",e.timeout=t.timeout?parseInt(t.timeout,10):0,e.headers=t.headers?t.headers:{},K(Vs,n=>{e[n]=Pf(n,t[n],Vs[n],e.timeout,e.headers)}),e.process=t.process||he(t)||t.url?e.process:null,e.remove=t.remove||null,delete e.headers,e},Pf=(t,e,n,r,i)=>{if(e===null)return null;if(typeof e=="function")return e;const s={url:n==="GET"||n==="PATCH"?`?${t}=`:"",method:n,headers:i,withCredentials:!1,timeout:r,onload:null,ondata:null,onerror:null};if(he(e))return s.url=e,s;if(Object.assign(s,e),he(s.headers)){const o=s.headers.split(/:(.+)/);s.headers={header:o[0],value:o[1]}}return s.withCredentials=nl(s.withCredentials),s},xf=t=>Nf(t),Lf=t=>t===null,oe=t=>typeof t=="object"&&t!==null,kf=t=>oe(t)&&he(t.url)&&oe(t.process)&&oe(t.revert)&&oe(t.restore)&&oe(t.fetch),ri=t=>pr(t)?"array":Lf(t)?"null":jt(t)?"int":/^[0-9]+ ?(?:GB|MB|KB)$/gi.test(t)?"bytes":kf(t)?"api":typeof t,Bf=t=>t.replace(/{\s*'/g,'{"').replace(/'\s*}/g,'"}').replace(/'\s*:/g,'":').replace(/:\s*'/g,':"').replace(/,\s*'/g,',"').replace(/'\s*,/g,'",'),Ff={array:Of,boolean:nl,int:t=>ri(t)==="bytes"?Hs(t):Un(t),number:Gs,float:Gs,bytes:Hs,string:t=>pt(t)?t:gr(t),function:t=>Mf(t),serverapi:xf,object:t=>{try{return JSON.parse(Bf(t))}catch{return null}}},Uf=(t,e)=>Ff[e](t),il=(t,e,n)=>{if(t===e)return t;let r=ri(t);if(r!==n){const i=Uf(t,n);if(r=ri(i),i===null)throw`Trying to assign value with incorrect type to "${option}", allowed type: "${n}"`;t=i}return t},Gf=(t,e)=>{let n=t;return{enumerable:!0,get:()=>n,set:r=>{n=il(r,t,e)}}},Hf=t=>{const e={};return K(t,n=>{const r=t[n];e[n]=Gf(r[0],r[1])}),nt(e)},Vf=t=>({items:[],listUpdateTimeout:null,itemUpdateTimeout:null,processingQueue:[],options:Hf(t)}),mr=(t,e="-")=>t.split(/(?=[A-Z])/).map(n=>n.toLowerCase()).join(e),zf=(t,e)=>{const n={};return K(e,r=>{n[r]={get:()=>t.getState().options[r],set:i=>{t.dispatch(`SET_${mr(r,"_").toUpperCase()}`,{value:i})}}}),n},Wf=t=>(e,n,r)=>{const i={};return K(t,s=>{const o=mr(s,"_").toUpperCase();i[`SET_${o}`]=a=>{try{r.options[s]=a.value}catch{}e(`DID_SET_${o}`,{value:r.options[s]})}}),i},qf=t=>e=>{const n={};return K(t,r=>{n[`GET_${mr(r,"_").toUpperCase()}`]=i=>e.options[r]}),n},we={API:1,DROP:2,BROWSE:3,PASTE:4,NONE:5},Pi=()=>Math.random().toString(36).substring(2,11),xi=(t,e)=>t.splice(e,1),jf=(t,e)=>{e?t():document.hidden?Promise.resolve(1).then(t):setTimeout(t,0)},Er=()=>{const t=[],e=(r,i)=>{xi(t,t.findIndex(s=>s.event===r&&(s.cb===i||!i)))},n=(r,i,s)=>{t.filter(o=>o.event===r).map(o=>o.cb).forEach(o=>jf(()=>o(...i),s))};return{fireSync:(r,...i)=>{n(r,i,!0)},fire:(r,...i)=>{n(r,i,!1)},on:(r,i)=>{t.push({event:r,cb:i})},onOnce:(r,i)=>{t.push({event:r,cb:(...s)=>{e(r,i),i(...s)}})},off:e}},sl=(t,e,n)=>{Object.getOwnPropertyNames(t).filter(r=>!n.includes(r)).forEach(r=>Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r)))},$f=["fire","process","revert","load","on","off","onOnce","retryLoad","extend","archive","archived","release","released","requestProcessing","freeze"],Ee=t=>{const e={};return sl(t,e,$f),e},Yf=t=>{t.forEach((e,n)=>{e.released&&xi(t,n)})},V={INIT:1,IDLE:2,PROCESSING_QUEUED:9,PROCESSING:3,PROCESSING_COMPLETE:5,PROCESSING_ERROR:6,PROCESSING_REVERT_ERROR:10,LOADING:7,LOAD_ERROR:8},se={INPUT:1,LIMBO:2,LOCAL:3},ol=t=>/[^0-9]+/.exec(t),al=()=>ol(1.1.toLocaleString())[0],Qf=()=>{const t=al(),e=1e3.toLocaleString();return e!=="1000"?ol(e)[0]:t==="."?",":"."},w={BOOLEAN:"boolean",INT:"int",NUMBER:"number",STRING:"string",ARRAY:"array",OBJECT:"object",FUNCTION:"function",ACTION:"action",SERVER_API:"serverapi",REGEX:"regex"},Li=[],Oe=(t,e,n)=>new Promise((r,i)=>{const s=Li.filter(a=>a.key===t).map(a=>a.cb);if(s.length===0){r(e);return}const o=s.shift();s.reduce((a,l)=>a.then(d=>l(d,n)),o(e,n)).then(a=>r(a)).catch(a=>i(a))}),At=(t,e,n)=>Li.filter(r=>r.key===t).map(r=>r.cb(e,n)),Zf=(t,e)=>Li.push({key:t,cb:e}),Xf=t=>Object.assign(Nt,t),Yn=()=>({...Nt}),Kf=t=>{K(t,(e,n)=>{Nt[e]&&(Nt[e][0]=il(n,Nt[e][0],Nt[e][1]))})},Nt={id:[null,w.STRING],name:["filepond",w.STRING],disabled:[!1,w.BOOLEAN],className:[null,w.STRING],required:[!1,w.BOOLEAN],captureMethod:[null,w.STRING],allowSyncAcceptAttribute:[!0,w.BOOLEAN],allowDrop:[!0,w.BOOLEAN],allowBrowse:[!0,w.BOOLEAN],allowPaste:[!0,w.BOOLEAN],allowMultiple:[!1,w.BOOLEAN],allowReplace:[!0,w.BOOLEAN],allowRevert:[!0,w.BOOLEAN],allowRemove:[!0,w.BOOLEAN],allowProcess:[!0,w.BOOLEAN],allowReorder:[!1,w.BOOLEAN],allowDirectoriesOnly:[!1,w.BOOLEAN],storeAsFile:[!1,w.BOOLEAN],forceRevert:[!1,w.BOOLEAN],maxFiles:[null,w.INT],checkValidity:[!1,w.BOOLEAN],itemInsertLocationFreedom:[!0,w.BOOLEAN],itemInsertLocation:["before",w.STRING],itemInsertInterval:[75,w.INT],dropOnPage:[!1,w.BOOLEAN],dropOnElement:[!0,w.BOOLEAN],dropValidation:[!1,w.BOOLEAN],ignoredFiles:[[".ds_store","thumbs.db","desktop.ini"],w.ARRAY],instantUpload:[!0,w.BOOLEAN],maxParallelUploads:[2,w.INT],allowMinimumUploadDuration:[!0,w.BOOLEAN],chunkUploads:[!1,w.BOOLEAN],chunkForce:[!1,w.BOOLEAN],chunkSize:[5e6,w.INT],chunkRetryDelays:[[500,1e3,3e3],w.ARRAY],server:[null,w.SERVER_API],fileSizeBase:[1e3,w.INT],labelFileSizeBytes:["bytes",w.STRING],labelFileSizeKilobytes:["KB",w.STRING],labelFileSizeMegabytes:["MB",w.STRING],labelFileSizeGigabytes:["GB",w.STRING],labelDecimalSeparator:[al(),w.STRING],labelThousandsSeparator:[Qf(),w.STRING],labelIdle:['Drag & Drop your files or <span class="filepond--label-action">Browse</span>',w.STRING],labelInvalidField:["Field contains invalid files",w.STRING],labelFileWaitingForSize:["Waiting for size",w.STRING],labelFileSizeNotAvailable:["Size not available",w.STRING],labelFileCountSingular:["file in list",w.STRING],labelFileCountPlural:["files in list",w.STRING],labelFileLoading:["Loading",w.STRING],labelFileAdded:["Added",w.STRING],labelFileLoadError:["Error during load",w.STRING],labelFileRemoved:["Removed",w.STRING],labelFileRemoveError:["Error during remove",w.STRING],labelFileProcessing:["Uploading",w.STRING],labelFileProcessingComplete:["Upload complete",w.STRING],labelFileProcessingAborted:["Upload cancelled",w.STRING],labelFileProcessingError:["Error during upload",w.STRING],labelFileProcessingRevertError:["Error during revert",w.STRING],labelTapToCancel:["tap to cancel",w.STRING],labelTapToRetry:["tap to retry",w.STRING],labelTapToUndo:["tap to undo",w.STRING],labelButtonRemoveItem:["Remove",w.STRING],labelButtonAbortItemLoad:["Abort",w.STRING],labelButtonRetryItemLoad:["Retry",w.STRING],labelButtonAbortItemProcessing:["Cancel",w.STRING],labelButtonUndoItemProcessing:["Undo",w.STRING],labelButtonRetryItemProcessing:["Retry",w.STRING],labelButtonProcessItem:["Upload",w.STRING],iconRemove:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M11.586 13l-2.293 2.293a1 1 0 0 0 1.414 1.414L13 14.414l2.293 2.293a1 1 0 0 0 1.414-1.414L14.414 13l2.293-2.293a1 1 0 0 0-1.414-1.414L13 11.586l-2.293-2.293a1 1 0 0 0-1.414 1.414L11.586 13z" fill="currentColor" fill-rule="nonzero"/></svg>',w.STRING],iconProcess:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M14 10.414v3.585a1 1 0 0 1-2 0v-3.585l-1.293 1.293a1 1 0 0 1-1.414-1.415l3-3a1 1 0 0 1 1.414 0l3 3a1 1 0 0 1-1.414 1.415L14 10.414zM9 18a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2H9z" fill="currentColor" fill-rule="evenodd"/></svg>',w.STRING],iconRetry:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M10.81 9.185l-.038.02A4.997 4.997 0 0 0 8 13.683a5 5 0 0 0 5 5 5 5 0 0 0 5-5 1 1 0 0 1 2 0A7 7 0 1 1 9.722 7.496l-.842-.21a.999.999 0 1 1 .484-1.94l3.23.806c.535.133.86.675.73 1.21l-.804 3.233a.997.997 0 0 1-1.21.73.997.997 0 0 1-.73-1.21l.23-.928v-.002z" fill="currentColor" fill-rule="nonzero"/></svg>',w.STRING],iconUndo:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M9.185 10.81l.02-.038A4.997 4.997 0 0 1 13.683 8a5 5 0 0 1 5 5 5 5 0 0 1-5 5 1 1 0 0 0 0 2A7 7 0 1 0 7.496 9.722l-.21-.842a.999.999 0 1 0-1.94.484l.806 3.23c.133.535.675.86 1.21.73l3.233-.803a.997.997 0 0 0 .73-1.21.997.997 0 0 0-1.21-.73l-.928.23-.002-.001z" fill="currentColor" fill-rule="nonzero"/></svg>',w.STRING],iconDone:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M18.293 9.293a1 1 0 0 1 1.414 1.414l-7.002 7a1 1 0 0 1-1.414 0l-3.998-4a1 1 0 1 1 1.414-1.414L12 15.586l6.294-6.293z" fill="currentColor" fill-rule="nonzero"/></svg>',w.STRING],oninit:[null,w.FUNCTION],onwarning:[null,w.FUNCTION],onerror:[null,w.FUNCTION],onactivatefile:[null,w.FUNCTION],oninitfile:[null,w.FUNCTION],onaddfilestart:[null,w.FUNCTION],onaddfileprogress:[null,w.FUNCTION],onaddfile:[null,w.FUNCTION],onprocessfilestart:[null,w.FUNCTION],onprocessfileprogress:[null,w.FUNCTION],onprocessfileabort:[null,w.FUNCTION],onprocessfilerevert:[null,w.FUNCTION],onprocessfile:[null,w.FUNCTION],onprocessfiles:[null,w.FUNCTION],onremovefile:[null,w.FUNCTION],onpreparefile:[null,w.FUNCTION],onupdatefiles:[null,w.FUNCTION],onreorderfiles:[null,w.FUNCTION],beforeDropFile:[null,w.FUNCTION],beforeAddFile:[null,w.FUNCTION],beforeRemoveFile:[null,w.FUNCTION],beforePrepareFile:[null,w.FUNCTION],stylePanelLayout:[null,w.STRING],stylePanelAspectRatio:[null,w.STRING],styleItemPanelAspectRatio:[null,w.STRING],styleButtonRemoveItemPosition:["left",w.STRING],styleButtonProcessItemPosition:["right",w.STRING],styleLoadIndicatorPosition:["right",w.STRING],styleProgressIndicatorPosition:["right",w.STRING],styleButtonRemoveItemAlign:[!1,w.BOOLEAN],files:[[],w.ARRAY],credits:[["https://filepond.com","Powered by FilePond"],w.ARRAY]},gt=(t,e)=>$e(e)?t[0]||null:jt(e)?t[e]||null:(typeof e=="object"&&(e=e.id),t.find(n=>n.id===e)||null),ll=t=>{if($e(t))return t;if(/:/.test(t)){const e=t.split(":");return e[1]/e[0]}return parseFloat(t)},Me=t=>t.filter(e=>!e.archived),Jf={EMPTY:0,IDLE:1,ERROR:2,BUSY:3,READY:4};let vn=null;const eh=()=>{if(vn===null)try{const t=new DataTransfer;t.items.add(new File(["hello world"],"This_Works.txt"));const e=document.createElement("input");e.setAttribute("type","file"),e.files=t.files,vn=e.files.length===1}catch{vn=!1}return vn},th=[V.LOAD_ERROR,V.PROCESSING_ERROR,V.PROCESSING_REVERT_ERROR],nh=[V.LOADING,V.PROCESSING,V.PROCESSING_QUEUED,V.INIT],rh=[V.PROCESSING_COMPLETE],ih=t=>th.includes(t.status),sh=t=>nh.includes(t.status),oh=t=>rh.includes(t.status),zs=t=>oe(t.options.server)&&(oe(t.options.server.process)||pt(t.options.server.process)),ah=t=>({GET_STATUS:()=>{const e=Me(t.items),{EMPTY:n,ERROR:r,BUSY:i,IDLE:s,READY:o}=Jf;return e.length===0?n:e.some(ih)?r:e.some(sh)?i:e.some(oh)?o:s},GET_ITEM:e=>gt(t.items,e),GET_ACTIVE_ITEM:e=>gt(Me(t.items),e),GET_ACTIVE_ITEMS:()=>Me(t.items),GET_ITEMS:()=>t.items,GET_ITEM_NAME:e=>{const n=gt(t.items,e);return n?n.filename:null},GET_ITEM_SIZE:e=>{const n=gt(t.items,e);return n?n.fileSize:null},GET_STYLES:()=>Object.keys(t.options).filter(e=>/^style/.test(e)).map(e=>({name:e,value:t.options[e]})),GET_PANEL_ASPECT_RATIO:()=>/circle/.test(t.options.stylePanelLayout)?1:ll(t.options.stylePanelAspectRatio),GET_ITEM_PANEL_ASPECT_RATIO:()=>t.options.styleItemPanelAspectRatio,GET_ITEMS_BY_STATUS:e=>Me(t.items).filter(n=>n.status===e),GET_TOTAL_ITEMS:()=>Me(t.items).length,SHOULD_UPDATE_FILE_INPUT:()=>t.options.storeAsFile&&eh()&&!zs(t),IS_ASYNC:()=>zs(t),GET_FILE_SIZE_LABELS:e=>({labelBytes:e("GET_LABEL_FILE_SIZE_BYTES")||void 0,labelKilobytes:e("GET_LABEL_FILE_SIZE_KILOBYTES")||void 0,labelMegabytes:e("GET_LABEL_FILE_SIZE_MEGABYTES")||void 0,labelGigabytes:e("GET_LABEL_FILE_SIZE_GIGABYTES")||void 0})}),lh=t=>{const e=Me(t.items).length;if(!t.options.allowMultiple)return e===0;const n=t.options.maxFiles;return n===null||e<n},cl=(t,e,n)=>Math.max(Math.min(n,t),e),ch=(t,e,n)=>t.splice(e,0,n),dh=(t,e,n)=>$e(e)?null:typeof n>"u"?(t.push(e),e):(n=cl(n,0,t.length),ch(t,n,e),e),ii=t=>/^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*)\s*$/i.test(t),pn=t=>`${t}`.split("/").pop().split("?").shift(),yr=t=>t.split(".").pop(),uh=t=>{if(typeof t!="string")return"";const e=t.split("/").pop();return/svg/.test(e)?"svg":/zip|compressed/.test(e)?"zip":/plain/.test(e)?"txt":/msword/.test(e)?"doc":/[a-z]+/.test(e)?e==="jpeg"?"jpg":e:""},Yt=(t,e="")=>(e+t).slice(-e.length),dl=(t=new Date)=>`${t.getFullYear()}-${Yt(t.getMonth()+1,"00")}-${Yt(t.getDate(),"00")}_${Yt(t.getHours(),"00")}-${Yt(t.getMinutes(),"00")}-${Yt(t.getSeconds(),"00")}`,Gt=(t,e,n=null,r=null)=>{const i=typeof n=="string"?t.slice(0,t.size,n):t.slice(0,t.size,t.type);return i.lastModifiedDate=new Date,t._relativePath&&(i._relativePath=t._relativePath),he(e)||(e=dl()),e&&r===null&&yr(e)?i.name=e:(r=r||uh(i.type),i.name=e+(r?"."+r:"")),i},fh=()=>window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,ul=(t,e)=>{const n=fh();if(n){const r=new n;return r.append(t),r.getBlob(e)}return new Blob([t],{type:e})},hh=(t,e)=>{const n=new ArrayBuffer(t.length),r=new Uint8Array(n);for(let i=0;i<t.length;i++)r[i]=t.charCodeAt(i);return ul(n,e)},fl=t=>(/^data:(.+);/.exec(t)||[])[1]||null,ph=t=>t.split(",")[1].replace(/\s/g,""),gh=t=>atob(ph(t)),mh=t=>{const e=fl(t),n=gh(t);return hh(n,e)},Eh=(t,e,n)=>Gt(mh(t),e,null,n),yh=t=>{if(!/^content-disposition:/i.test(t))return null;const e=t.split(/filename=|filename\*=.+''/).splice(1).map(n=>n.trim().replace(/^["']|[;"']{0,2}$/g,"")).filter(n=>n.length);return e.length?decodeURI(e[e.length-1]):null},_h=t=>{if(/content-length:/i.test(t)){const e=t.match(/[0-9]+/)[0];return e?parseInt(e,10):null}return null},vh=t=>/x-content-transfer-id:/i.test(t)&&(t.split(":")[1]||"").trim()||null,ki=t=>{const e={source:null,name:null,size:null},n=t.split(`
`);for(let r of n){const i=yh(r);if(i){e.name=i;continue}const s=_h(r);if(s){e.size=s;continue}const o=vh(r);if(o){e.source=o;continue}}return e},bh=t=>{const e={source:null,complete:!1,progress:0,size:null,timestamp:null,duration:0,request:null},n=()=>e.progress,r=()=>{e.request&&e.request.abort&&e.request.abort()},i=()=>{const a=e.source;o.fire("init",a),a instanceof File?o.fire("load",a):a instanceof Blob?o.fire("load",Gt(a,a.name)):ii(a)?o.fire("load",Eh(a)):s(a)},s=a=>{if(!t){o.fire("error",{type:"error",body:"Can't load URL",code:400});return}e.timestamp=Date.now(),e.request=t(a,l=>{e.duration=Date.now()-e.timestamp,e.complete=!0,l instanceof Blob&&(l=Gt(l,l.name||pn(a))),o.fire("load",l instanceof Blob?l:l?l.body:null)},l=>{o.fire("error",typeof l=="string"?{type:"error",code:0,body:l}:l)},(l,d,c)=>{if(c&&(e.size=c),e.duration=Date.now()-e.timestamp,!l){e.progress=null;return}e.progress=d/c,o.fire("progress",e.progress)},()=>{o.fire("abort")},l=>{const d=ki(typeof l=="string"?l:l.headers);o.fire("meta",{size:e.size||d.size,filename:d.name,source:d.source})})},o={...Er(),setSource:a=>e.source=a,getProgress:n,abort:r,load:i};return o},Ws=t=>/GET|HEAD/.test(t),Et=(t,e,n)=>{const r={onheaders:()=>{},onprogress:()=>{},onload:()=>{},ontimeout:()=>{},onerror:()=>{},onabort:()=>{},abort:()=>{i=!0,o.abort()}};let i=!1,s=!1;n={method:"POST",headers:{},withCredentials:!1,...n},e=encodeURI(e),Ws(n.method)&&t&&(e=`${e}${encodeURIComponent(typeof t=="string"?t:JSON.stringify(t))}`);const o=new XMLHttpRequest,a=Ws(n.method)?o:o.upload;return a.onprogress=l=>{i||r.onprogress(l.lengthComputable,l.loaded,l.total)},o.onreadystatechange=()=>{o.readyState<2||o.readyState===4&&o.status===0||s||(s=!0,r.onheaders(o))},o.onload=()=>{o.status>=200&&o.status<300?r.onload(o):r.onerror(o)},o.onerror=()=>r.onerror(o),o.onabort=()=>{i=!0,r.onabort()},o.ontimeout=()=>r.ontimeout(o),o.open(n.method,e,!0),jt(n.timeout)&&(o.timeout=n.timeout),Object.keys(n.headers).forEach(l=>{const d=unescape(encodeURIComponent(n.headers[l]));o.setRequestHeader(l,d)}),n.responseType&&(o.responseType=n.responseType),n.withCredentials&&(o.withCredentials=!0),o.send(t),r},J=(t,e,n,r)=>({type:t,code:e,body:n,headers:r}),yt=t=>e=>{t(J("error",0,"Timeout",e.getAllResponseHeaders()))},qs=t=>/\?/.test(t),Kt=(...t)=>{let e="";return t.forEach(n=>{e+=qs(e)&&qs(n)?n.replace(/\?/,"&"):n}),e},Cr=(t="",e)=>{if(typeof e=="function")return e;if(!e||!he(e.url))return null;const n=e.onload||(i=>i),r=e.onerror||(i=>null);return(i,s,o,a,l,d)=>{const c=Et(i,Kt(t,e.url),{...e,responseType:"blob"});return c.onload=u=>{const p=u.getAllResponseHeaders(),h=ki(p).name||pn(i);s(J("load",u.status,e.method==="HEAD"?null:Gt(n(u.response),h),p))},c.onerror=u=>{o(J("error",u.status,r(u.response)||u.statusText,u.getAllResponseHeaders()))},c.onheaders=u=>{d(J("headers",u.status,null,u.getAllResponseHeaders()))},c.ontimeout=yt(o),c.onprogress=a,c.onabort=l,c}},Ie={QUEUED:0,COMPLETE:1,PROCESSING:2,ERROR:3,WAITING:4},Th=(t,e,n,r,i,s,o,a,l,d,c)=>{const u=[],{chunkTransferId:p,chunkServer:h,chunkSize:f,chunkRetryDelays:g}=c,m={serverId:p,aborted:!1},_=e.ondata||(C=>C),y=e.onload||((C,z)=>z==="HEAD"?C.getResponseHeader("Upload-Offset"):C.response),v=e.onerror||(C=>null),b=C=>{const z=new FormData;oe(i)&&z.append(n,JSON.stringify(i));const S=typeof e.headers=="function"?e.headers(r,i):{...e.headers,"Upload-Length":r.size},O={...e,headers:S},L=Et(_(z),Kt(t,e.url),O);L.onload=k=>C(y(k,O.method)),L.onerror=k=>o(J("error",k.status,v(k.response)||k.statusText,k.getAllResponseHeaders())),L.ontimeout=yt(o)},A=C=>{const z=Kt(t,h.url,m.serverId),O={headers:typeof e.headers=="function"?e.headers(m.serverId):{...e.headers},method:"HEAD"},L=Et(null,z,O);L.onload=k=>C(y(k,O.method)),L.onerror=k=>o(J("error",k.status,v(k.response)||k.statusText,k.getAllResponseHeaders())),L.ontimeout=yt(o)},D=Math.floor(r.size/f);for(let C=0;C<=D;C++){const z=C*f,S=r.slice(z,z+f,"application/offset+octet-stream");u[C]={index:C,size:S.size,offset:z,data:S,file:r,progress:0,retries:[...g],status:Ie.QUEUED,error:null,request:null,timeout:null}}const M=()=>s(m.serverId),I=C=>C.status===Ie.QUEUED||C.status===Ie.ERROR,N=C=>{if(m.aborted)return;if(C=C||u.find(I),!C){u.every(U=>U.status===Ie.COMPLETE)&&M();return}C.status=Ie.PROCESSING,C.progress=null;const z=h.ondata||(U=>U),S=h.onerror||(U=>null),O=h.onload||(()=>{}),L=Kt(t,h.url,m.serverId),k=typeof h.headers=="function"?h.headers(C):{...h.headers,"Content-Type":"application/offset+octet-stream","Upload-Offset":C.offset,"Upload-Length":r.size,"Upload-Name":r.name},Q=C.request=Et(z(C.data),L,{...h,headers:k});Q.onload=U=>{O(U,C.index,u.length),C.status=Ie.COMPLETE,C.request=null,x()},Q.onprogress=(U,ge,He)=>{C.progress=U?ge:null,P()},Q.onerror=U=>{C.status=Ie.ERROR,C.request=null,C.error=S(U.response)||U.statusText,B(C)||o(J("error",U.status,S(U.response)||U.statusText,U.getAllResponseHeaders()))},Q.ontimeout=U=>{C.status=Ie.ERROR,C.request=null,B(C)||yt(o)(U)},Q.onabort=()=>{C.status=Ie.QUEUED,C.request=null,l()}},B=C=>C.retries.length===0?!1:(C.status=Ie.WAITING,clearTimeout(C.timeout),C.timeout=setTimeout(()=>{N(C)},C.retries.shift()),!0),P=()=>{const C=u.reduce((S,O)=>S===null||O.progress===null?null:S+O.progress,0);if(C===null)return a(!1,0,0);const z=u.reduce((S,O)=>S+O.size,0);a(!0,C,z)},x=()=>{u.filter(z=>z.status===Ie.PROCESSING).length>=1||N()},W=()=>{u.forEach(C=>{clearTimeout(C.timeout),C.request&&C.request.abort()})};return m.serverId?A(C=>{m.aborted||(u.filter(z=>z.offset<C).forEach(z=>{z.status=Ie.COMPLETE,z.progress=z.size}),x())}):b(C=>{m.aborted||(d(C),m.serverId=C,x())}),{abort:()=>{m.aborted=!0,W()}}},Rh=(t,e,n,r)=>(i,s,o,a,l,d,c)=>{if(!i)return;const u=r.chunkUploads,p=u&&i.size>r.chunkSize,h=u&&(p||r.chunkForce);if(i instanceof Blob&&h)return Th(t,e,n,i,s,o,a,l,d,c,r);const f=e.ondata||(A=>A),g=e.onload||(A=>A),m=e.onerror||(A=>null),_=typeof e.headers=="function"?e.headers(i,s)||{}:{...e.headers},y={...e,headers:_};var v=new FormData;oe(s)&&v.append(n,JSON.stringify(s)),(i instanceof Blob?[{name:null,file:i}]:i).forEach(A=>{v.append(n,A.file,A.name===null?A.file.name:`${A.name}${A.file.name}`)});const b=Et(f(v),Kt(t,e.url),y);return b.onload=A=>{o(J("load",A.status,g(A.response),A.getAllResponseHeaders()))},b.onerror=A=>{a(J("error",A.status,m(A.response)||A.statusText,A.getAllResponseHeaders()))},b.ontimeout=yt(a),b.onprogress=l,b.onabort=d,b},Ah=(t="",e,n,r)=>typeof e=="function"?(...i)=>e(n,...i,r):!e||!he(e.url)?null:Rh(t,e,n,r),Qt=(t="",e)=>{if(typeof e=="function")return e;if(!e||!he(e.url))return(i,s)=>s();const n=e.onload||(i=>i),r=e.onerror||(i=>null);return(i,s,o)=>{const a=Et(i,t+e.url,e);return a.onload=l=>{s(J("load",l.status,n(l.response),l.getAllResponseHeaders()))},a.onerror=l=>{o(J("error",l.status,r(l.response)||l.statusText,l.getAllResponseHeaders()))},a.ontimeout=yt(o),a}},hl=(t=0,e=1)=>t+Math.random()*(e-t),Ih=(t,e=1e3,n=0,r=25,i=250)=>{let s=null;const o=Date.now(),a=()=>{let l=Date.now()-o,d=hl(r,i);l+d>e&&(d=l+d-e);let c=l/e;if(c>=1||document.hidden){t(1);return}t(c),s=setTimeout(a,d)};return e>0&&a(),{clear:()=>{clearTimeout(s)}}},Sh=(t,e)=>{const n={complete:!1,perceivedProgress:0,perceivedPerformanceUpdater:null,progress:null,timestamp:null,perceivedDuration:0,duration:0,request:null,response:null},{allowMinimumUploadDuration:r}=e,i=(c,u)=>{const p=()=>{n.duration===0||n.progress===null||d.fire("progress",d.getProgress())},h=()=>{n.complete=!0,d.fire("load-perceived",n.response.body)};d.fire("start"),n.timestamp=Date.now(),n.perceivedPerformanceUpdater=Ih(f=>{n.perceivedProgress=f,n.perceivedDuration=Date.now()-n.timestamp,p(),n.response&&n.perceivedProgress===1&&!n.complete&&h()},r?hl(750,1500):0),n.request=t(c,u,f=>{n.response=oe(f)?f:{type:"load",code:200,body:`${f}`,headers:{}},n.duration=Date.now()-n.timestamp,n.progress=1,d.fire("load",n.response.body),(!r||r&&n.perceivedProgress===1)&&h()},f=>{n.perceivedPerformanceUpdater.clear(),d.fire("error",oe(f)?f:{type:"error",code:0,body:`${f}`})},(f,g,m)=>{n.duration=Date.now()-n.timestamp,n.progress=f?g/m:null,p()},()=>{n.perceivedPerformanceUpdater.clear(),d.fire("abort",n.response?n.response.body:null)},f=>{d.fire("transfer",f)})},s=()=>{n.request&&(n.perceivedPerformanceUpdater.clear(),n.request.abort&&n.request.abort(),n.complete=!0)},o=()=>{s(),n.complete=!1,n.perceivedProgress=0,n.progress=0,n.timestamp=null,n.perceivedDuration=0,n.duration=0,n.request=null,n.response=null},a=r?()=>n.progress?Math.min(n.progress,n.perceivedProgress):null:()=>n.progress||null,l=r?()=>Math.min(n.duration,n.perceivedDuration):()=>n.duration,d={...Er(),process:i,abort:s,getProgress:a,getDuration:l,reset:o};return d},pl=t=>t.substring(0,t.lastIndexOf("."))||t,Dh=t=>{let e=[t.name,t.size,t.type];return t instanceof Blob||ii(t)?e[0]=t.name||dl():ii(t)?(e[1]=t.length,e[2]=fl(t)):he(t)&&(e[0]=pn(t),e[1]=0,e[2]="application/octet-stream"),{name:e[0],size:e[1],type:e[2]}},_t=t=>!!(t instanceof File||t instanceof Blob&&t.name),gl=t=>{if(!oe(t))return t;const e=pr(t)?[]:{};for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n];e[n]=r&&oe(r)?gl(r):r}return e},wh=(t=null,e=null,n=null)=>{const r=Pi(),i={archived:!1,frozen:!1,released:!1,source:null,file:n,serverFileReference:e,transferId:null,processingAborted:!1,status:e?V.PROCESSING_COMPLETE:V.INIT,activeLoader:null,activeProcessor:null};let s=null;const o={},a=I=>i.status=I,l=(I,...N)=>{i.released||i.frozen||D.fire(I,...N)},d=()=>yr(i.file.name),c=()=>i.file.type,u=()=>i.file.size,p=()=>i.file,h=(I,N,B)=>{if(i.source=I,D.fireSync("init"),i.file){D.fireSync("load-skip");return}i.file=Dh(I),N.on("init",()=>{l("load-init")}),N.on("meta",P=>{i.file.size=P.size,i.file.filename=P.filename,P.source&&(t=se.LIMBO,i.serverFileReference=P.source,i.status=V.PROCESSING_COMPLETE),l("load-meta")}),N.on("progress",P=>{a(V.LOADING),l("load-progress",P)}),N.on("error",P=>{a(V.LOAD_ERROR),l("load-request-error",P)}),N.on("abort",()=>{a(V.INIT),l("load-abort")}),N.on("load",P=>{i.activeLoader=null;const x=C=>{i.file=_t(C)?C:i.file,t===se.LIMBO&&i.serverFileReference?a(V.PROCESSING_COMPLETE):a(V.IDLE),l("load")},W=C=>{i.file=P,l("load-meta"),a(V.LOAD_ERROR),l("load-file-error",C)};if(i.serverFileReference){x(P);return}B(P,x,W)}),N.setSource(I),i.activeLoader=N,N.load()},f=()=>{i.activeLoader&&i.activeLoader.load()},g=()=>{if(i.activeLoader){i.activeLoader.abort();return}a(V.INIT),l("load-abort")},m=(I,N)=>{if(i.processingAborted){i.processingAborted=!1;return}if(a(V.PROCESSING),s=null,!(i.file instanceof Blob)){D.on("load",()=>{m(I,N)});return}I.on("load",x=>{i.transferId=null,i.serverFileReference=x}),I.on("transfer",x=>{i.transferId=x}),I.on("load-perceived",x=>{i.activeProcessor=null,i.transferId=null,i.serverFileReference=x,a(V.PROCESSING_COMPLETE),l("process-complete",x)}),I.on("start",()=>{l("process-start")}),I.on("error",x=>{i.activeProcessor=null,a(V.PROCESSING_ERROR),l("process-error",x)}),I.on("abort",x=>{i.activeProcessor=null,i.serverFileReference=x,a(V.IDLE),l("process-abort"),s&&s()}),I.on("progress",x=>{l("process-progress",x)});const B=x=>{i.archived||I.process(x,{...o})},P=console.error;N(i.file,B,P),i.activeProcessor=I},_=()=>{i.processingAborted=!1,a(V.PROCESSING_QUEUED)},y=()=>new Promise(I=>{if(!i.activeProcessor){i.processingAborted=!0,a(V.IDLE),l("process-abort"),I();return}s=()=>{I()},i.activeProcessor.abort()}),v=(I,N)=>new Promise((B,P)=>{const x=i.serverFileReference!==null?i.serverFileReference:i.transferId;if(x===null){B();return}I(x,()=>{i.serverFileReference=null,i.transferId=null,B()},W=>{if(!N){B();return}a(V.PROCESSING_REVERT_ERROR),l("process-revert-error"),P(W)}),a(V.IDLE),l("process-revert")}),b=(I,N,B)=>{const P=I.split("."),x=P[0],W=P.pop();let C=o;P.forEach(z=>C=C[z]),JSON.stringify(C[W])!==JSON.stringify(N)&&(C[W]=N,l("metadata-update",{key:x,value:o[x],silent:B}))},D={id:{get:()=>r},origin:{get:()=>t,set:I=>t=I},serverId:{get:()=>i.serverFileReference},transferId:{get:()=>i.transferId},status:{get:()=>i.status},filename:{get:()=>i.file.name},filenameWithoutExtension:{get:()=>pl(i.file.name)},fileExtension:{get:d},fileType:{get:c},fileSize:{get:u},file:{get:p},relativePath:{get:()=>i.file._relativePath},source:{get:()=>i.source},getMetadata:I=>gl(I?o[I]:o),setMetadata:(I,N,B)=>{if(oe(I)){const P=I;return Object.keys(P).forEach(x=>{b(x,P[x],N)}),I}return b(I,N,B),N},extend:(I,N)=>M[I]=N,abortLoad:g,retryLoad:f,requestProcessing:_,abortProcessing:y,load:h,process:m,revert:v,...Er(),freeze:()=>i.frozen=!0,release:()=>i.released=!0,released:{get:()=>i.released},archive:()=>i.archived=!0,archived:{get:()=>i.archived},setFile:I=>i.file=I},M=nt(D);return M},Ch=(t,e)=>$e(e)?0:he(e)?t.findIndex(n=>n.id===e):-1,js=(t,e)=>{const n=Ch(t,e);if(!(n<0))return t[n]||null},$s=(t,e,n,r,i,s)=>{const o=Et(null,t,{method:"GET",responseType:"blob"});return o.onload=a=>{const l=a.getAllResponseHeaders(),d=ki(l).name||pn(t);e(J("load",a.status,Gt(a.response,d),l))},o.onerror=a=>{n(J("error",a.status,a.statusText,a.getAllResponseHeaders()))},o.onheaders=a=>{s(J("headers",a.status,null,a.getAllResponseHeaders()))},o.ontimeout=yt(n),o.onprogress=r,o.onabort=i,o},Ys=t=>(t.indexOf("//")===0&&(t=location.protocol+t),t.toLowerCase().replace("blob:","").replace(/([a-z])?:\/\//,"$1").split("/")[0]),Oh=t=>(t.indexOf(":")>-1||t.indexOf("//")>-1)&&Ys(location.href)!==Ys(t),bn=t=>(...e)=>pt(t)?t(...e):t,Mh=t=>!_t(t.file),Or=(t,e)=>{clearTimeout(e.listUpdateTimeout),e.listUpdateTimeout=setTimeout(()=>{t("DID_UPDATE_ITEMS",{items:Me(e.items)})},0)},Qs=(t,...e)=>new Promise(n=>{if(!t)return n(!0);const r=t(...e);if(r==null)return n(!0);if(typeof r=="boolean")return n(r);typeof r.then=="function"&&r.then(n)}),Mr=(t,e)=>{t.items.sort((n,r)=>e(Ee(n),Ee(r)))},Se=(t,e)=>({query:n,success:r=()=>{},failure:i=()=>{},...s}={})=>{const o=gt(t.items,n);if(!o){i({error:J("error",0,"Item not found"),file:null});return}e(o,r,i,s||{})},Nh=(t,e,n)=>({ABORT_ALL:()=>{Me(n.items).forEach(r=>{r.freeze(),r.abortLoad(),r.abortProcessing()})},DID_SET_FILES:({value:r=[]})=>{const i=r.map(o=>({source:o.source?o.source:o,options:o.options}));let s=Me(n.items);s.forEach(o=>{i.find(a=>a.source===o.source||a.source===o.file)||t("REMOVE_ITEM",{query:o,remove:!1})}),s=Me(n.items),i.forEach((o,a)=>{s.find(l=>l.source===o.source||l.file===o.source)||t("ADD_ITEM",{...o,interactionMethod:we.NONE,index:a})})},DID_UPDATE_ITEM_METADATA:({id:r,action:i,change:s})=>{s.silent||(clearTimeout(n.itemUpdateTimeout),n.itemUpdateTimeout=setTimeout(()=>{const o=js(n.items,r);if(!e("IS_ASYNC")){Oe("SHOULD_PREPARE_OUTPUT",!1,{item:o,query:e,action:i,change:s}).then(c=>{const u=e("GET_BEFORE_PREPARE_FILE");u&&(c=u(o,c)),c&&t("REQUEST_PREPARE_OUTPUT",{query:r,item:o,success:p=>{t("DID_PREPARE_OUTPUT",{id:r,file:p})}},!0)});return}o.origin===se.LOCAL&&t("DID_LOAD_ITEM",{id:o.id,error:null,serverFileReference:o.source});const a=()=>{setTimeout(()=>{t("REQUEST_ITEM_PROCESSING",{query:r})},32)},l=c=>{o.revert(Qt(n.options.server.url,n.options.server.revert),e("GET_FORCE_REVERT")).then(c?a:()=>{}).catch(()=>{})},d=c=>{o.abortProcessing().then(c?a:()=>{})};if(o.status===V.PROCESSING_COMPLETE)return l(n.options.instantUpload);if(o.status===V.PROCESSING)return d(n.options.instantUpload);n.options.instantUpload&&a()},0))},MOVE_ITEM:({query:r,index:i})=>{const s=gt(n.items,r);if(!s)return;const o=n.items.indexOf(s);i=cl(i,0,n.items.length-1),o!==i&&n.items.splice(i,0,n.items.splice(o,1)[0])},SORT:({compare:r})=>{Mr(n,r),t("DID_SORT_ITEMS",{items:e("GET_ACTIVE_ITEMS")})},ADD_ITEMS:({items:r,index:i,interactionMethod:s,success:o=()=>{},failure:a=()=>{}})=>{let l=i;if(i===-1||typeof i>"u"){const h=e("GET_ITEM_INSERT_LOCATION"),f=e("GET_TOTAL_ITEMS");l=h==="before"?0:f}const d=e("GET_IGNORED_FILES"),c=h=>_t(h)?!d.includes(h.name.toLowerCase()):!$e(h),p=r.filter(c).map(h=>new Promise((f,g)=>{t("ADD_ITEM",{interactionMethod:s,source:h.source||h,success:f,failure:g,index:l++,options:h.options||{}})}));Promise.all(p).then(o).catch(a)},ADD_ITEM:({source:r,index:i=-1,interactionMethod:s,success:o=()=>{},failure:a=()=>{},options:l={}})=>{if($e(r)){a({error:J("error",0,"No source"),file:null});return}if(_t(r)&&n.options.ignoredFiles.includes(r.name.toLowerCase()))return;if(!lh(n)){if(n.options.allowMultiple||!n.options.allowMultiple&&!n.options.allowReplace){const y=J("warning",0,"Max files");t("DID_THROW_MAX_FILES",{source:r,error:y}),a({error:y,file:null});return}const _=Me(n.items)[0];if(_.status===V.PROCESSING_COMPLETE||_.status===V.PROCESSING_REVERT_ERROR){const y=e("GET_FORCE_REVERT");if(_.revert(Qt(n.options.server.url,n.options.server.revert),y).then(()=>{y&&t("ADD_ITEM",{source:r,index:i,interactionMethod:s,success:o,failure:a,options:l})}).catch(()=>{}),y)return}t("REMOVE_ITEM",{query:_.id})}const d=l.type==="local"?se.LOCAL:l.type==="limbo"?se.LIMBO:se.INPUT,c=wh(d,d===se.INPUT?null:r,l.file);Object.keys(l.metadata||{}).forEach(_=>{c.setMetadata(_,l.metadata[_])}),At("DID_CREATE_ITEM",c,{query:e,dispatch:t});const u=e("GET_ITEM_INSERT_LOCATION");n.options.itemInsertLocationFreedom||(i=u==="before"?-1:n.items.length),dh(n.items,c,i),pt(u)&&r&&Mr(n,u);const p=c.id;c.on("init",()=>{t("DID_INIT_ITEM",{id:p})}),c.on("load-init",()=>{t("DID_START_ITEM_LOAD",{id:p})}),c.on("load-meta",()=>{t("DID_UPDATE_ITEM_META",{id:p})}),c.on("load-progress",_=>{t("DID_UPDATE_ITEM_LOAD_PROGRESS",{id:p,progress:_})}),c.on("load-request-error",_=>{const y=bn(n.options.labelFileLoadError)(_);if(_.code>=400&&_.code<500){t("DID_THROW_ITEM_INVALID",{id:p,error:_,status:{main:y,sub:`${_.code} (${_.body})`}}),a({error:_,file:Ee(c)});return}t("DID_THROW_ITEM_LOAD_ERROR",{id:p,error:_,status:{main:y,sub:n.options.labelTapToRetry}})}),c.on("load-file-error",_=>{t("DID_THROW_ITEM_INVALID",{id:p,error:_.status,status:_.status}),a({error:_.status,file:Ee(c)})}),c.on("load-abort",()=>{t("REMOVE_ITEM",{query:p})}),c.on("load-skip",()=>{c.on("metadata-update",_=>{_t(c.file)&&t("DID_UPDATE_ITEM_METADATA",{id:p,change:_})}),t("COMPLETE_LOAD_ITEM",{query:p,item:c,data:{source:r,success:o}})}),c.on("load",()=>{const _=y=>{if(!y){t("REMOVE_ITEM",{query:p});return}c.on("metadata-update",v=>{t("DID_UPDATE_ITEM_METADATA",{id:p,change:v})}),Oe("SHOULD_PREPARE_OUTPUT",!1,{item:c,query:e}).then(v=>{const b=e("GET_BEFORE_PREPARE_FILE");b&&(v=b(c,v));const A=()=>{t("COMPLETE_LOAD_ITEM",{query:p,item:c,data:{source:r,success:o}}),Or(t,n)};if(v){t("REQUEST_PREPARE_OUTPUT",{query:p,item:c,success:D=>{t("DID_PREPARE_OUTPUT",{id:p,file:D}),A()}},!0);return}A()})};Oe("DID_LOAD_ITEM",c,{query:e,dispatch:t}).then(()=>{Qs(e("GET_BEFORE_ADD_FILE"),Ee(c)).then(_)}).catch(y=>{if(!y||!y.error||!y.status)return _(!1);t("DID_THROW_ITEM_INVALID",{id:p,error:y.error,status:y.status})})}),c.on("process-start",()=>{t("DID_START_ITEM_PROCESSING",{id:p})}),c.on("process-progress",_=>{t("DID_UPDATE_ITEM_PROCESS_PROGRESS",{id:p,progress:_})}),c.on("process-error",_=>{t("DID_THROW_ITEM_PROCESSING_ERROR",{id:p,error:_,status:{main:bn(n.options.labelFileProcessingError)(_),sub:n.options.labelTapToRetry}})}),c.on("process-revert-error",_=>{t("DID_THROW_ITEM_PROCESSING_REVERT_ERROR",{id:p,error:_,status:{main:bn(n.options.labelFileProcessingRevertError)(_),sub:n.options.labelTapToRetry}})}),c.on("process-complete",_=>{t("DID_COMPLETE_ITEM_PROCESSING",{id:p,error:null,serverFileReference:_}),t("DID_DEFINE_VALUE",{id:p,value:_})}),c.on("process-abort",()=>{t("DID_ABORT_ITEM_PROCESSING",{id:p})}),c.on("process-revert",()=>{t("DID_REVERT_ITEM_PROCESSING",{id:p}),t("DID_DEFINE_VALUE",{id:p,value:null})}),t("DID_ADD_ITEM",{id:p,index:i,interactionMethod:s}),Or(t,n);const{url:h,load:f,restore:g,fetch:m}=n.options.server||{};c.load(r,bh(d===se.INPUT?he(r)&&Oh(r)&&m?Cr(h,m):$s:d===se.LIMBO?Cr(h,g):Cr(h,f)),(_,y,v)=>{Oe("LOAD_FILE",_,{query:e}).then(y).catch(v)})},REQUEST_PREPARE_OUTPUT:({item:r,success:i,failure:s=()=>{}})=>{const o={error:J("error",0,"Item not found"),file:null};if(r.archived)return s(o);Oe("PREPARE_OUTPUT",r.file,{query:e,item:r}).then(a=>{Oe("COMPLETE_PREPARE_OUTPUT",a,{query:e,item:r}).then(l=>{if(r.archived)return s(o);i(l)})})},COMPLETE_LOAD_ITEM:({item:r,data:i})=>{const{success:s,source:o}=i,a=e("GET_ITEM_INSERT_LOCATION");if(pt(a)&&o&&Mr(n,a),t("DID_LOAD_ITEM",{id:r.id,error:null,serverFileReference:r.origin===se.INPUT?null:o}),s(Ee(r)),r.origin===se.LOCAL){t("DID_LOAD_LOCAL_ITEM",{id:r.id});return}if(r.origin===se.LIMBO){t("DID_COMPLETE_ITEM_PROCESSING",{id:r.id,error:null,serverFileReference:o}),t("DID_DEFINE_VALUE",{id:r.id,value:r.serverId||o});return}e("IS_ASYNC")&&n.options.instantUpload&&t("REQUEST_ITEM_PROCESSING",{query:r.id})},RETRY_ITEM_LOAD:Se(n,r=>{r.retryLoad()}),REQUEST_ITEM_PREPARE:Se(n,(r,i,s)=>{t("REQUEST_PREPARE_OUTPUT",{query:r.id,item:r,success:o=>{t("DID_PREPARE_OUTPUT",{id:r.id,file:o}),i({file:r,output:o})},failure:s},!0)}),REQUEST_ITEM_PROCESSING:Se(n,(r,i,s)=>{if(!(r.status===V.IDLE||r.status===V.PROCESSING_ERROR)){const a=()=>t("REQUEST_ITEM_PROCESSING",{query:r,success:i,failure:s}),l=()=>document.hidden?a():setTimeout(a,32);r.status===V.PROCESSING_COMPLETE||r.status===V.PROCESSING_REVERT_ERROR?r.revert(Qt(n.options.server.url,n.options.server.revert),e("GET_FORCE_REVERT")).then(l).catch(()=>{}):r.status===V.PROCESSING&&r.abortProcessing().then(l);return}r.status!==V.PROCESSING_QUEUED&&(r.requestProcessing(),t("DID_REQUEST_ITEM_PROCESSING",{id:r.id}),t("PROCESS_ITEM",{query:r,success:i,failure:s},!0))}),PROCESS_ITEM:Se(n,(r,i,s)=>{const o=e("GET_MAX_PARALLEL_UPLOADS");if(e("GET_ITEMS_BY_STATUS",V.PROCESSING).length===o){n.processingQueue.push({id:r.id,success:i,failure:s});return}if(r.status===V.PROCESSING)return;const l=()=>{const c=n.processingQueue.shift();if(!c)return;const{id:u,success:p,failure:h}=c,f=gt(n.items,u);if(!f||f.archived){l();return}t("PROCESS_ITEM",{query:u,success:p,failure:h},!0)};r.onOnce("process-complete",()=>{i(Ee(r)),l();const c=n.options.server;if(n.options.instantUpload&&r.origin===se.LOCAL&&pt(c.remove)){const h=()=>{};r.origin=se.LIMBO,n.options.server.remove(r.source,h,h)}e("GET_ITEMS_BY_STATUS",V.PROCESSING_COMPLETE).length===n.items.length&&t("DID_COMPLETE_ITEM_PROCESSING_ALL")}),r.onOnce("process-error",c=>{s({error:c,file:Ee(r)}),l()}),r.onOnce("process-abort",()=>{l()});const d=n.options;r.process(Sh(Ah(d.server.url,d.server.process,d.name,{chunkTransferId:r.transferId,chunkServer:d.server.patch,chunkUploads:d.chunkUploads,chunkForce:d.chunkForce,chunkSize:d.chunkSize,chunkRetryDelays:d.chunkRetryDelays}),{allowMinimumUploadDuration:e("GET_ALLOW_MINIMUM_UPLOAD_DURATION")}),(c,u,p)=>{Oe("PREPARE_OUTPUT",c,{query:e,item:r}).then(h=>{t("DID_PREPARE_OUTPUT",{id:r.id,file:h}),u(h)}).catch(p)})}),RETRY_ITEM_PROCESSING:Se(n,r=>{t("REQUEST_ITEM_PROCESSING",{query:r})}),REQUEST_REMOVE_ITEM:Se(n,r=>{Qs(e("GET_BEFORE_REMOVE_FILE"),Ee(r)).then(i=>{i&&t("REMOVE_ITEM",{query:r})})}),RELEASE_ITEM:Se(n,r=>{r.release()}),REMOVE_ITEM:Se(n,(r,i,s,o)=>{const a=()=>{const d=r.id;js(n.items,d).archive(),t("DID_REMOVE_ITEM",{error:null,id:d,item:r}),Or(t,n),i(Ee(r))},l=n.options.server;r.origin===se.LOCAL&&l&&pt(l.remove)&&o.remove!==!1?(t("DID_START_ITEM_REMOVE",{id:r.id}),l.remove(r.source,()=>a(),d=>{t("DID_THROW_ITEM_REMOVE_ERROR",{id:r.id,error:J("error",0,d,null),status:{main:bn(n.options.labelFileRemoveError)(d),sub:n.options.labelTapToRetry}})})):((o.revert&&r.origin!==se.LOCAL&&r.serverId!==null||n.options.chunkUploads&&r.file.size>n.options.chunkSize||n.options.chunkUploads&&n.options.chunkForce)&&r.revert(Qt(n.options.server.url,n.options.server.revert),e("GET_FORCE_REVERT")),a())}),ABORT_ITEM_LOAD:Se(n,r=>{r.abortLoad()}),ABORT_ITEM_PROCESSING:Se(n,r=>{if(r.serverId){t("REVERT_ITEM_PROCESSING",{id:r.id});return}r.abortProcessing().then(()=>{n.options.instantUpload&&t("REMOVE_ITEM",{query:r.id})})}),REQUEST_REVERT_ITEM_PROCESSING:Se(n,r=>{if(!n.options.instantUpload){t("REVERT_ITEM_PROCESSING",{query:r});return}const i=a=>{a&&t("REVERT_ITEM_PROCESSING",{query:r})},s=e("GET_BEFORE_REMOVE_FILE");if(!s)return i(!0);const o=s(Ee(r));if(o==null)return i(!0);if(typeof o=="boolean")return i(o);typeof o.then=="function"&&o.then(i)}),REVERT_ITEM_PROCESSING:Se(n,r=>{r.revert(Qt(n.options.server.url,n.options.server.revert),e("GET_FORCE_REVERT")).then(()=>{(n.options.instantUpload||Mh(r))&&t("REMOVE_ITEM",{query:r.id})}).catch(()=>{})}),SET_OPTIONS:({options:r})=>{const i=Object.keys(r),s=Ph.filter(a=>i.includes(a));[...s,...Object.keys(r).filter(a=>!s.includes(a))].forEach(a=>{t(`SET_${mr(a,"_").toUpperCase()}`,{value:r[a]})})}}),Ph=["server"],Bi=t=>t,Ye=t=>document.createElement(t),te=(t,e)=>{let n=t.childNodes[0];n?e!==n.nodeValue&&(n.nodeValue=e):(n=document.createTextNode(e),t.appendChild(n))},Zs=(t,e,n,r)=>{const i=(r%360-90)*Math.PI/180;return{x:t+n*Math.cos(i),y:e+n*Math.sin(i)}},xh=(t,e,n,r,i,s)=>{const o=Zs(t,e,n,i),a=Zs(t,e,n,r);return["M",o.x,o.y,"A",n,n,0,s,0,a.x,a.y].join(" ")},Lh=(t,e,n,r,i)=>{let s=1;return i>r&&i-r<=.5&&(s=0),r>i&&r-i>=.5&&(s=0),xh(t,e,n,Math.min(.9999,r)*360,Math.min(.9999,i)*360,s)},kh=({root:t,props:e})=>{e.spin=!1,e.progress=0,e.opacity=0;const n=$n("svg");t.ref.path=$n("path",{"stroke-width":2,"stroke-linecap":"round"}),n.appendChild(t.ref.path),t.ref.svg=n,t.appendChild(n)},Bh=({root:t,props:e})=>{if(e.opacity===0)return;e.align&&(t.element.dataset.align=e.align);const n=parseInt(ie(t.ref.path,"stroke-width"),10),r=t.rect.element.width*.5;let i=0,s=0;e.spin?(i=0,s=.5):(i=0,s=e.progress);const o=Lh(r,r,r-n,i,s);ie(t.ref.path,"d",o),ie(t.ref.path,"stroke-opacity",e.spin||e.progress>0?1:0)},Xs=re({tag:"div",name:"progress-indicator",ignoreRectUpdate:!0,ignoreRect:!0,create:kh,write:Bh,mixins:{apis:["progress","spin","align"],styles:["opacity"],animations:{opacity:{type:"tween",duration:500},progress:{type:"spring",stiffness:.95,damping:.65,mass:10}}}}),Fh=({root:t,props:e})=>{t.element.innerHTML=(e.icon||"")+`<span>${e.label}</span>`,e.isDisabled=!1},Uh=({root:t,props:e})=>{const{isDisabled:n}=e,r=t.query("GET_DISABLED")||e.opacity===0;r&&!n?(e.isDisabled=!0,ie(t.element,"disabled","disabled")):!r&&n&&(e.isDisabled=!1,t.element.removeAttribute("disabled"))},ml=re({tag:"button",attributes:{type:"button"},ignoreRect:!0,ignoreRectUpdate:!0,name:"file-action-button",mixins:{apis:["label"],styles:["translateX","translateY","scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",translateX:"spring",translateY:"spring",opacity:{type:"tween",duration:250}},listeners:!0},create:Fh,write:Uh}),El=(t,e=".",n=1e3,r={})=>{const{labelBytes:i="bytes",labelKilobytes:s="KB",labelMegabytes:o="MB",labelGigabytes:a="GB"}=r;t=Math.round(Math.abs(t));const l=n,d=n*n,c=n*n*n;return t<l?`${t} ${i}`:t<d?`${Math.floor(t/l)} ${s}`:t<c?`${Ks(t/d,1,e)} ${o}`:`${Ks(t/c,2,e)} ${a}`},Ks=(t,e,n)=>t.toFixed(e).split(".").filter(r=>r!=="0").join(n),Gh=({root:t,props:e})=>{const n=Ye("span");n.className="filepond--file-info-main",ie(n,"aria-hidden","true"),t.appendChild(n),t.ref.fileName=n;const r=Ye("span");r.className="filepond--file-info-sub",t.appendChild(r),t.ref.fileSize=r,te(r,t.query("GET_LABEL_FILE_WAITING_FOR_SIZE")),te(n,Bi(t.query("GET_ITEM_NAME",e.id)))},si=({root:t,props:e})=>{te(t.ref.fileSize,El(t.query("GET_ITEM_SIZE",e.id),".",t.query("GET_FILE_SIZE_BASE"),t.query("GET_FILE_SIZE_LABELS",t.query))),te(t.ref.fileName,Bi(t.query("GET_ITEM_NAME",e.id)))},Js=({root:t,props:e})=>{if(jt(t.query("GET_ITEM_SIZE",e.id))){si({root:t,props:e});return}te(t.ref.fileSize,t.query("GET_LABEL_FILE_SIZE_NOT_AVAILABLE"))},Hh=re({name:"file-info",ignoreRect:!0,ignoreRectUpdate:!0,write:pe({DID_LOAD_ITEM:si,DID_UPDATE_ITEM_META:si,DID_THROW_ITEM_LOAD_ERROR:Js,DID_THROW_ITEM_INVALID:Js}),didCreateView:t=>{At("CREATE_VIEW",{...t,view:t})},create:Gh,mixins:{styles:["translateX","translateY"],animations:{translateX:"spring",translateY:"spring"}}}),yl=t=>Math.round(t*100),Vh=({root:t})=>{const e=Ye("span");e.className="filepond--file-status-main",t.appendChild(e),t.ref.main=e;const n=Ye("span");n.className="filepond--file-status-sub",t.appendChild(n),t.ref.sub=n,_l({root:t,action:{progress:null}})},_l=({root:t,action:e})=>{const n=e.progress===null?t.query("GET_LABEL_FILE_LOADING"):`${t.query("GET_LABEL_FILE_LOADING")} ${yl(e.progress)}%`;te(t.ref.main,n),te(t.ref.sub,t.query("GET_LABEL_TAP_TO_CANCEL"))},zh=({root:t,action:e})=>{const n=e.progress===null?t.query("GET_LABEL_FILE_PROCESSING"):`${t.query("GET_LABEL_FILE_PROCESSING")} ${yl(e.progress)}%`;te(t.ref.main,n),te(t.ref.sub,t.query("GET_LABEL_TAP_TO_CANCEL"))},Wh=({root:t})=>{te(t.ref.main,t.query("GET_LABEL_FILE_PROCESSING")),te(t.ref.sub,t.query("GET_LABEL_TAP_TO_CANCEL"))},qh=({root:t})=>{te(t.ref.main,t.query("GET_LABEL_FILE_PROCESSING_ABORTED")),te(t.ref.sub,t.query("GET_LABEL_TAP_TO_RETRY"))},jh=({root:t})=>{te(t.ref.main,t.query("GET_LABEL_FILE_PROCESSING_COMPLETE")),te(t.ref.sub,t.query("GET_LABEL_TAP_TO_UNDO"))},eo=({root:t})=>{te(t.ref.main,""),te(t.ref.sub,"")},Zt=({root:t,action:e})=>{te(t.ref.main,e.status.main),te(t.ref.sub,e.status.sub)},$h=re({name:"file-status",ignoreRect:!0,ignoreRectUpdate:!0,write:pe({DID_LOAD_ITEM:eo,DID_REVERT_ITEM_PROCESSING:eo,DID_REQUEST_ITEM_PROCESSING:Wh,DID_ABORT_ITEM_PROCESSING:qh,DID_COMPLETE_ITEM_PROCESSING:jh,DID_UPDATE_ITEM_PROCESS_PROGRESS:zh,DID_UPDATE_ITEM_LOAD_PROGRESS:_l,DID_THROW_ITEM_LOAD_ERROR:Zt,DID_THROW_ITEM_INVALID:Zt,DID_THROW_ITEM_PROCESSING_ERROR:Zt,DID_THROW_ITEM_PROCESSING_REVERT_ERROR:Zt,DID_THROW_ITEM_REMOVE_ERROR:Zt}),didCreateView:t=>{At("CREATE_VIEW",{...t,view:t})},create:Vh,mixins:{styles:["translateX","translateY","opacity"],animations:{opacity:{type:"tween",duration:250},translateX:"spring",translateY:"spring"}}}),oi={AbortItemLoad:{label:"GET_LABEL_BUTTON_ABORT_ITEM_LOAD",action:"ABORT_ITEM_LOAD",className:"filepond--action-abort-item-load",align:"LOAD_INDICATOR_POSITION"},RetryItemLoad:{label:"GET_LABEL_BUTTON_RETRY_ITEM_LOAD",action:"RETRY_ITEM_LOAD",icon:"GET_ICON_RETRY",className:"filepond--action-retry-item-load",align:"BUTTON_PROCESS_ITEM_POSITION"},RemoveItem:{label:"GET_LABEL_BUTTON_REMOVE_ITEM",action:"REQUEST_REMOVE_ITEM",icon:"GET_ICON_REMOVE",className:"filepond--action-remove-item",align:"BUTTON_REMOVE_ITEM_POSITION"},ProcessItem:{label:"GET_LABEL_BUTTON_PROCESS_ITEM",action:"REQUEST_ITEM_PROCESSING",icon:"GET_ICON_PROCESS",className:"filepond--action-process-item",align:"BUTTON_PROCESS_ITEM_POSITION"},AbortItemProcessing:{label:"GET_LABEL_BUTTON_ABORT_ITEM_PROCESSING",action:"ABORT_ITEM_PROCESSING",className:"filepond--action-abort-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"},RetryItemProcessing:{label:"GET_LABEL_BUTTON_RETRY_ITEM_PROCESSING",action:"RETRY_ITEM_PROCESSING",icon:"GET_ICON_RETRY",className:"filepond--action-retry-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"},RevertItemProcessing:{label:"GET_LABEL_BUTTON_UNDO_ITEM_PROCESSING",action:"REQUEST_REVERT_ITEM_PROCESSING",icon:"GET_ICON_UNDO",className:"filepond--action-revert-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"}},ai=[];K(oi,t=>{ai.push(t)});const Te=t=>{if(li(t)==="right")return 0;const e=t.ref.buttonRemoveItem.rect.element;return e.hidden?null:e.width+e.left},Yh=t=>t.ref.buttonAbortItemLoad.rect.element.width,Tn=t=>Math.floor(t.ref.buttonRemoveItem.rect.element.height/4),Qh=t=>Math.floor(t.ref.buttonRemoveItem.rect.element.left/2),Zh=t=>t.query("GET_STYLE_LOAD_INDICATOR_POSITION"),Xh=t=>t.query("GET_STYLE_PROGRESS_INDICATOR_POSITION"),li=t=>t.query("GET_STYLE_BUTTON_REMOVE_ITEM_POSITION"),Kh={buttonAbortItemLoad:{opacity:0},buttonRetryItemLoad:{opacity:0},buttonRemoveItem:{opacity:0},buttonProcessItem:{opacity:0},buttonAbortItemProcessing:{opacity:0},buttonRetryItemProcessing:{opacity:0},buttonRevertItemProcessing:{opacity:0},loadProgressIndicator:{opacity:0,align:Zh},processProgressIndicator:{opacity:0,align:Xh},processingCompleteIndicator:{opacity:0,scaleX:.75,scaleY:.75},info:{translateX:0,translateY:0,opacity:0},status:{translateX:0,translateY:0,opacity:0}},to={buttonRemoveItem:{opacity:1},buttonProcessItem:{opacity:1},info:{translateX:Te},status:{translateX:Te}},Nr={buttonAbortItemProcessing:{opacity:1},processProgressIndicator:{opacity:1},status:{opacity:1}},Pt={DID_THROW_ITEM_INVALID:{buttonRemoveItem:{opacity:1},info:{translateX:Te},status:{translateX:Te,opacity:1}},DID_START_ITEM_LOAD:{buttonAbortItemLoad:{opacity:1},loadProgressIndicator:{opacity:1},status:{opacity:1}},DID_THROW_ITEM_LOAD_ERROR:{buttonRetryItemLoad:{opacity:1},buttonRemoveItem:{opacity:1},info:{translateX:Te},status:{opacity:1}},DID_START_ITEM_REMOVE:{processProgressIndicator:{opacity:1,align:li},info:{translateX:Te},status:{opacity:0}},DID_THROW_ITEM_REMOVE_ERROR:{processProgressIndicator:{opacity:0,align:li},buttonRemoveItem:{opacity:1},info:{translateX:Te},status:{opacity:1,translateX:Te}},DID_LOAD_ITEM:to,DID_LOAD_LOCAL_ITEM:{buttonRemoveItem:{opacity:1},info:{translateX:Te},status:{translateX:Te}},DID_START_ITEM_PROCESSING:Nr,DID_REQUEST_ITEM_PROCESSING:Nr,DID_UPDATE_ITEM_PROCESS_PROGRESS:Nr,DID_COMPLETE_ITEM_PROCESSING:{buttonRevertItemProcessing:{opacity:1},info:{opacity:1},status:{opacity:1}},DID_THROW_ITEM_PROCESSING_ERROR:{buttonRemoveItem:{opacity:1},buttonRetryItemProcessing:{opacity:1},status:{opacity:1},info:{translateX:Te}},DID_THROW_ITEM_PROCESSING_REVERT_ERROR:{buttonRevertItemProcessing:{opacity:1},status:{opacity:1},info:{opacity:1}},DID_ABORT_ITEM_PROCESSING:{buttonRemoveItem:{opacity:1},buttonProcessItem:{opacity:1},info:{translateX:Te},status:{opacity:1}},DID_REVERT_ITEM_PROCESSING:to},Jh=re({create:({root:t})=>{t.element.innerHTML=t.query("GET_ICON_DONE")},name:"processing-complete-indicator",ignoreRect:!0,mixins:{styles:["scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",opacity:{type:"tween",duration:250}}}}),ep=({root:t,props:e})=>{const n=Object.keys(oi).reduce((f,g)=>(f[g]={...oi[g]},f),{}),{id:r}=e,i=t.query("GET_ALLOW_REVERT"),s=t.query("GET_ALLOW_REMOVE"),o=t.query("GET_ALLOW_PROCESS"),a=t.query("GET_INSTANT_UPLOAD"),l=t.query("IS_ASYNC"),d=t.query("GET_STYLE_BUTTON_REMOVE_ITEM_ALIGN");let c;l?o&&!i?c=f=>!/RevertItemProcessing/.test(f):!o&&i?c=f=>!/ProcessItem|RetryItemProcessing|AbortItemProcessing/.test(f):!o&&!i&&(c=f=>!/Process/.test(f)):c=f=>!/Process/.test(f);const u=c?ai.filter(c):ai.concat();if(a&&i&&(n.RevertItemProcessing.label="GET_LABEL_BUTTON_REMOVE_ITEM",n.RevertItemProcessing.icon="GET_ICON_REMOVE"),l&&!i){const f=Pt.DID_COMPLETE_ITEM_PROCESSING;f.info.translateX=Qh,f.info.translateY=Tn,f.status.translateY=Tn,f.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1}}if(l&&!o&&(["DID_START_ITEM_PROCESSING","DID_REQUEST_ITEM_PROCESSING","DID_UPDATE_ITEM_PROCESS_PROGRESS","DID_THROW_ITEM_PROCESSING_ERROR"].forEach(f=>{Pt[f].status.translateY=Tn}),Pt.DID_THROW_ITEM_PROCESSING_ERROR.status.translateX=Yh),d&&i){n.RevertItemProcessing.align="BUTTON_REMOVE_ITEM_POSITION";const f=Pt.DID_COMPLETE_ITEM_PROCESSING;f.info.translateX=Te,f.status.translateY=Tn,f.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1}}s||(n.RemoveItem.disabled=!0),K(n,(f,g)=>{const m=t.createChildView(ml,{label:t.query(g.label),icon:t.query(g.icon),opacity:0});u.includes(f)&&t.appendChildView(m),g.disabled&&(m.element.setAttribute("disabled","disabled"),m.element.setAttribute("hidden","hidden")),m.element.dataset.align=t.query(`GET_STYLE_${g.align}`),m.element.classList.add(g.className),m.on("click",_=>{_.stopPropagation(),!g.disabled&&t.dispatch(g.action,{query:r})}),t.ref[`button${f}`]=m}),t.ref.processingCompleteIndicator=t.appendChildView(t.createChildView(Jh)),t.ref.processingCompleteIndicator.element.dataset.align=t.query("GET_STYLE_BUTTON_PROCESS_ITEM_POSITION"),t.ref.info=t.appendChildView(t.createChildView(Hh,{id:r})),t.ref.status=t.appendChildView(t.createChildView($h,{id:r}));const p=t.appendChildView(t.createChildView(Xs,{opacity:0,align:t.query("GET_STYLE_LOAD_INDICATOR_POSITION")}));p.element.classList.add("filepond--load-indicator"),t.ref.loadProgressIndicator=p;const h=t.appendChildView(t.createChildView(Xs,{opacity:0,align:t.query("GET_STYLE_PROGRESS_INDICATOR_POSITION")}));h.element.classList.add("filepond--process-indicator"),t.ref.processProgressIndicator=h,t.ref.activeStyles=[]},tp=({root:t,actions:e,props:n})=>{np({root:t,actions:e,props:n});let r=e.concat().filter(i=>/^DID_/.test(i.type)).reverse().find(i=>Pt[i.type]);if(r){t.ref.activeStyles=[];const i=Pt[r.type];K(Kh,(s,o)=>{const a=t.ref[s];K(o,(l,d)=>{const c=i[s]&&typeof i[s][l]<"u"?i[s][l]:d;t.ref.activeStyles.push({control:a,key:l,value:c})})})}t.ref.activeStyles.forEach(({control:i,key:s,value:o})=>{i[s]=typeof o=="function"?o(t):o})},np=pe({DID_SET_LABEL_BUTTON_ABORT_ITEM_PROCESSING:({root:t,action:e})=>{t.ref.buttonAbortItemProcessing.label=e.value},DID_SET_LABEL_BUTTON_ABORT_ITEM_LOAD:({root:t,action:e})=>{t.ref.buttonAbortItemLoad.label=e.value},DID_SET_LABEL_BUTTON_ABORT_ITEM_REMOVAL:({root:t,action:e})=>{t.ref.buttonAbortItemRemoval.label=e.value},DID_REQUEST_ITEM_PROCESSING:({root:t})=>{t.ref.processProgressIndicator.spin=!0,t.ref.processProgressIndicator.progress=0},DID_START_ITEM_LOAD:({root:t})=>{t.ref.loadProgressIndicator.spin=!0,t.ref.loadProgressIndicator.progress=0},DID_START_ITEM_REMOVE:({root:t})=>{t.ref.processProgressIndicator.spin=!0,t.ref.processProgressIndicator.progress=0},DID_UPDATE_ITEM_LOAD_PROGRESS:({root:t,action:e})=>{t.ref.loadProgressIndicator.spin=!1,t.ref.loadProgressIndicator.progress=e.progress},DID_UPDATE_ITEM_PROCESS_PROGRESS:({root:t,action:e})=>{t.ref.processProgressIndicator.spin=!1,t.ref.processProgressIndicator.progress=e.progress}}),rp=re({create:ep,write:tp,didCreateView:t=>{At("CREATE_VIEW",{...t,view:t})},name:"file"}),ip=({root:t,props:e})=>{t.ref.fileName=Ye("legend"),t.appendChild(t.ref.fileName),t.ref.file=t.appendChildView(t.createChildView(rp,{id:e.id})),t.ref.data=!1},sp=({root:t,props:e})=>{te(t.ref.fileName,Bi(t.query("GET_ITEM_NAME",e.id)))},op=re({create:ip,ignoreRect:!0,write:pe({DID_LOAD_ITEM:sp}),didCreateView:t=>{At("CREATE_VIEW",{...t,view:t})},tag:"fieldset",name:"file-wrapper"}),no={type:"spring",damping:.6,mass:7},ap=({root:t,props:e})=>{[{name:"top"},{name:"center",props:{translateY:null,scaleY:null},mixins:{animations:{scaleY:no},styles:["translateY","scaleY"]}},{name:"bottom",props:{translateY:null},mixins:{animations:{translateY:no},styles:["translateY"]}}].forEach(n=>{lp(t,n,e.name)}),t.element.classList.add(`filepond--${e.name}`),t.ref.scalable=null},lp=(t,e,n)=>{const r=re({name:`panel-${e.name} filepond--${n}`,mixins:e.mixins,ignoreRectUpdate:!0}),i=t.createChildView(r,e.props);t.ref[e.name]=t.appendChildView(i)},cp=({root:t,props:e})=>{if((t.ref.scalable===null||e.scalable!==t.ref.scalable)&&(t.ref.scalable=tl(e.scalable)?e.scalable:!0,t.element.dataset.scalable=t.ref.scalable),!e.height)return;const n=t.ref.top.rect.element,r=t.ref.bottom.rect.element,i=Math.max(n.height+r.height,e.height);t.ref.center.translateY=n.height,t.ref.center.scaleY=(i-n.height-r.height)/100,t.ref.bottom.translateY=i-r.height},vl=re({name:"panel",read:({root:t,props:e})=>e.heightCurrent=t.ref.bottom.translateY,write:cp,create:ap,ignoreRect:!0,mixins:{apis:["height","heightCurrent","scalable"]}}),dp=t=>{const e=t.map(r=>r.id);let n;return{setIndex:r=>{n=r},getIndex:()=>n,getItemIndex:r=>e.indexOf(r.id)}},ro={type:"spring",stiffness:.75,damping:.45,mass:10},io="spring",so={DID_START_ITEM_LOAD:"busy",DID_UPDATE_ITEM_LOAD_PROGRESS:"loading",DID_THROW_ITEM_INVALID:"load-invalid",DID_THROW_ITEM_LOAD_ERROR:"load-error",DID_LOAD_ITEM:"idle",DID_THROW_ITEM_REMOVE_ERROR:"remove-error",DID_START_ITEM_REMOVE:"busy",DID_START_ITEM_PROCESSING:"busy processing",DID_REQUEST_ITEM_PROCESSING:"busy processing",DID_UPDATE_ITEM_PROCESS_PROGRESS:"processing",DID_COMPLETE_ITEM_PROCESSING:"processing-complete",DID_THROW_ITEM_PROCESSING_ERROR:"processing-error",DID_THROW_ITEM_PROCESSING_REVERT_ERROR:"processing-revert-error",DID_ABORT_ITEM_PROCESSING:"cancelled",DID_REVERT_ITEM_PROCESSING:"idle"},up=({root:t,props:e})=>{if(t.ref.handleClick=r=>t.dispatch("DID_ACTIVATE_ITEM",{id:e.id}),t.element.id=`filepond--item-${e.id}`,t.element.addEventListener("click",t.ref.handleClick),t.ref.container=t.appendChildView(t.createChildView(op,{id:e.id})),t.ref.panel=t.appendChildView(t.createChildView(vl,{name:"item-panel"})),t.ref.panel.height=null,e.markedForRemoval=!1,!t.query("GET_ALLOW_REORDER"))return;t.element.dataset.dragState="idle";const n=r=>{if(!r.isPrimary)return;let i=!1;const s={x:r.pageX,y:r.pageY};e.dragOrigin={x:t.translateX,y:t.translateY},e.dragCenter={x:r.offsetX,y:r.offsetY};const o=dp(t.query("GET_ACTIVE_ITEMS"));t.dispatch("DID_GRAB_ITEM",{id:e.id,dragState:o});const a=u=>{if(!u.isPrimary)return;u.stopPropagation(),u.preventDefault(),e.dragOffset={x:u.pageX-s.x,y:u.pageY-s.y},e.dragOffset.x*e.dragOffset.x+e.dragOffset.y*e.dragOffset.y>16&&!i&&(i=!0,t.element.removeEventListener("click",t.ref.handleClick)),t.dispatch("DID_DRAG_ITEM",{id:e.id,dragState:o})},l=u=>{u.isPrimary&&(e.dragOffset={x:u.pageX-s.x,y:u.pageY-s.y},c())},d=()=>{c()},c=()=>{document.removeEventListener("pointercancel",d),document.removeEventListener("pointermove",a),document.removeEventListener("pointerup",l),t.dispatch("DID_DROP_ITEM",{id:e.id,dragState:o}),i&&setTimeout(()=>t.element.addEventListener("click",t.ref.handleClick),0)};document.addEventListener("pointercancel",d),document.addEventListener("pointermove",a),document.addEventListener("pointerup",l)};t.element.addEventListener("pointerdown",n)},fp=pe({DID_UPDATE_PANEL_HEIGHT:({root:t,action:e})=>{t.height=e.height}}),hp=pe({DID_GRAB_ITEM:({root:t,props:e})=>{e.dragOrigin={x:t.translateX,y:t.translateY}},DID_DRAG_ITEM:({root:t})=>{t.element.dataset.dragState="drag"},DID_DROP_ITEM:({root:t,props:e})=>{e.dragOffset=null,e.dragOrigin=null,t.element.dataset.dragState="drop"}},({root:t,actions:e,props:n,shouldOptimize:r})=>{t.element.dataset.dragState==="drop"&&t.scaleX<=1&&(t.element.dataset.dragState="idle");let i=e.concat().filter(o=>/^DID_/.test(o.type)).reverse().find(o=>so[o.type]);i&&i.type!==n.currentState&&(n.currentState=i.type,t.element.dataset.filepondItemState=so[n.currentState]||"");const s=t.query("GET_ITEM_PANEL_ASPECT_RATIO")||t.query("GET_PANEL_ASPECT_RATIO");s?r||(t.height=t.rect.element.width*s):(fp({root:t,actions:e,props:n}),!t.height&&t.ref.container.rect.element.height>0&&(t.height=t.ref.container.rect.element.height)),r&&(t.ref.panel.height=null),t.ref.panel.height=t.height}),pp=re({create:up,write:hp,destroy:({root:t,props:e})=>{t.element.removeEventListener("click",t.ref.handleClick),t.dispatch("RELEASE_ITEM",{query:e.id})},tag:"li",name:"item",mixins:{apis:["id","interactionMethod","markedForRemoval","spawnDate","dragCenter","dragOrigin","dragOffset"],styles:["translateX","translateY","scaleX","scaleY","opacity","height"],animations:{scaleX:io,scaleY:io,translateX:ro,translateY:ro,opacity:{type:"tween",duration:150}}}});var Fi=(t,e)=>Math.max(1,Math.floor((t+1)/e));const Ui=(t,e,n)=>{if(!n)return;const r=t.rect.element.width,i=e.length;let s=null;if(i===0||n.top<e[0].rect.element.top)return-1;const a=e[0].rect.element,l=a.marginLeft+a.marginRight,d=a.width+l,c=Fi(r,d);if(c===1){for(let h=0;h<i;h++){const f=e[h],g=f.rect.outer.top+f.rect.element.height*.5;if(n.top<g)return h}return i}const u=a.marginTop+a.marginBottom,p=a.height+u;for(let h=0;h<i;h++){const f=h%c,g=Math.floor(h/c),m=f*d,_=g*p,y=_-a.marginTop,v=m+d,b=_+p+a.marginBottom;if(n.top<b&&n.top>y){if(n.left<v)return h;h!==i-1?s=h:s=null}}return s!==null?s:i},Rn={height:0,width:0,get getHeight(){return this.height},set setHeight(t){(this.height===0||t===0)&&(this.height=t)},get getWidth(){return this.width},set setWidth(t){(this.width===0||t===0)&&(this.width=t)}},gp=({root:t})=>{ie(t.element,"role","list"),t.ref.lastItemSpanwDate=Date.now()},mp=({root:t,action:e})=>{const{id:n,index:r,interactionMethod:i}=e;t.ref.addIndex=r;const s=Date.now();let o=s,a=1;if(i!==we.NONE){a=0;const l=t.query("GET_ITEM_INSERT_INTERVAL"),d=s-t.ref.lastItemSpanwDate;o=d<l?s+(l-d):s}t.ref.lastItemSpanwDate=o,t.appendChildView(t.createChildView(pp,{spawnDate:o,id:n,opacity:a,interactionMethod:i}),r)},oo=(t,e,n,r=0,i=1)=>{t.dragOffset?(t.translateX=null,t.translateY=null,t.translateX=t.dragOrigin.x+t.dragOffset.x,t.translateY=t.dragOrigin.y+t.dragOffset.y,t.scaleX=1.025,t.scaleY=1.025):(t.translateX=e,t.translateY=n,Date.now()>t.spawnDate&&(t.opacity===0&&Ep(t,e,n,r,i),t.scaleX=1,t.scaleY=1,t.opacity=1))},Ep=(t,e,n,r,i)=>{t.interactionMethod===we.NONE?(t.translateX=null,t.translateX=e,t.translateY=null,t.translateY=n):t.interactionMethod===we.DROP?(t.translateX=null,t.translateX=e-r*20,t.translateY=null,t.translateY=n-i*10,t.scaleX=.8,t.scaleY=.8):t.interactionMethod===we.BROWSE?(t.translateY=null,t.translateY=n-30):t.interactionMethod===we.API&&(t.translateX=null,t.translateX=e-30,t.translateY=null)},yp=({root:t,action:e})=>{const{id:n}=e,r=t.childViews.find(i=>i.id===n);r&&(r.scaleX=.9,r.scaleY=.9,r.opacity=0,r.markedForRemoval=!0)},Pr=t=>t.rect.element.height+t.rect.element.marginBottom+t.rect.element.marginTop,_p=t=>t.rect.element.width+t.rect.element.marginLeft*.5+t.rect.element.marginRight*.5,vp=({root:t,action:e})=>{const{id:n,dragState:r}=e,i=t.query("GET_ITEM",{id:n}),s=t.childViews.find(m=>m.id===n),o=t.childViews.length,a=r.getItemIndex(i);if(!s)return;const l={x:s.dragOrigin.x+s.dragOffset.x+s.dragCenter.x,y:s.dragOrigin.y+s.dragOffset.y+s.dragCenter.y},d=Pr(s),c=_p(s);let u=Math.floor(t.rect.outer.width/c);u>o&&(u=o);const p=Math.floor(o/u+1);Rn.setHeight=d*p,Rn.setWidth=c*u;var h={y:Math.floor(l.y/d),x:Math.floor(l.x/c),getGridIndex:function(){return l.y>Rn.getHeight||l.y<0||l.x>Rn.getWidth||l.x<0?a:this.y*u+this.x},getColIndex:function(){const _=t.query("GET_ACTIVE_ITEMS"),y=t.childViews.filter(P=>P.rect.element.height),v=_.map(P=>y.find(x=>x.id===P.id)),b=v.findIndex(P=>P===s),A=Pr(s),D=v.length;let M=D,I=0,N=0,B=0;for(let P=0;P<D;P++)if(I=Pr(v[P]),B=N,N=B+I,l.y<N){if(b>P){if(l.y<B+A){M=P;break}continue}M=P;break}return M}};const f=u>1?h.getGridIndex():h.getColIndex();t.dispatch("MOVE_ITEM",{query:s,index:f});const g=r.getIndex();if(g===void 0||g!==f){if(r.setIndex(f),g===void 0)return;t.dispatch("DID_REORDER_ITEMS",{items:t.query("GET_ACTIVE_ITEMS"),origin:a,target:f})}},bp=pe({DID_ADD_ITEM:mp,DID_REMOVE_ITEM:yp,DID_DRAG_ITEM:vp}),Tp=({root:t,props:e,actions:n,shouldOptimize:r})=>{bp({root:t,props:e,actions:n});const{dragCoordinates:i}=e,s=t.rect.element.width,o=t.childViews.filter(v=>v.rect.element.height),a=t.query("GET_ACTIVE_ITEMS").map(v=>o.find(b=>b.id===v.id)).filter(v=>v),l=i?Ui(t,a,i):null,d=t.ref.addIndex||null;t.ref.addIndex=null;let c=0,u=0,p=0;if(a.length===0)return;const h=a[0].rect.element,f=h.marginTop+h.marginBottom,g=h.marginLeft+h.marginRight,m=h.width+g,_=h.height+f,y=Fi(s,m);if(y===1){let v=0,b=0;a.forEach((A,D)=>{if(l){let N=D-l;N===-2?b=-f*.25:N===-1?b=-f*.75:N===0?b=f*.75:N===1?b=f*.25:b=0}r&&(A.translateX=null,A.translateY=null),A.markedForRemoval||oo(A,0,v+b);let I=(A.rect.element.height+f)*(A.markedForRemoval?A.opacity:1);v+=I})}else{let v=0,b=0;a.forEach((A,D)=>{D===l&&(c=1),D===d&&(p+=1),A.markedForRemoval&&A.opacity<.5&&(u-=1);const M=D+p+c+u,I=M%y,N=Math.floor(M/y),B=I*m,P=N*_,x=Math.sign(B-v),W=Math.sign(P-b);v=B,b=P,!A.markedForRemoval&&(r&&(A.translateX=null,A.translateY=null),oo(A,B,P,x,W))})}},Rp=(t,e)=>e.filter(n=>n.data&&n.data.id?t.id===n.data.id:!0),Ap=re({create:gp,write:Tp,tag:"ul",name:"list",didWriteView:({root:t})=>{t.childViews.filter(e=>e.markedForRemoval&&e.opacity===0&&e.resting).forEach(e=>{e._destroy(),t.removeChildView(e)})},filterFrameActionsForChild:Rp,mixins:{apis:["dragCoordinates"]}}),Ip=({root:t,props:e})=>{t.ref.list=t.appendChildView(t.createChildView(Ap)),e.dragCoordinates=null,e.overflowing=!1},Sp=({root:t,props:e,action:n})=>{t.query("GET_ITEM_INSERT_LOCATION_FREEDOM")&&(e.dragCoordinates={left:n.position.scopeLeft-t.ref.list.rect.element.left,top:n.position.scopeTop-(t.rect.outer.top+t.rect.element.marginTop+t.rect.element.scrollTop)})},Dp=({props:t})=>{t.dragCoordinates=null},wp=pe({DID_DRAG:Sp,DID_END_DRAG:Dp}),Cp=({root:t,props:e,actions:n})=>{if(wp({root:t,props:e,actions:n}),t.ref.list.dragCoordinates=e.dragCoordinates,e.overflowing&&!e.overflow&&(e.overflowing=!1,t.element.dataset.state="",t.height=null),e.overflow){const r=Math.round(e.overflow);r!==t.height&&(e.overflowing=!0,t.element.dataset.state="overflow",t.height=r)}},Op=re({create:Ip,write:Cp,name:"list-scroller",mixins:{apis:["overflow","dragCoordinates"],styles:["height","translateY"],animations:{translateY:"spring"}}}),Ne=(t,e,n,r="")=>{n?ie(t,e,r):t.removeAttribute(e)},Mp=t=>{if(!(!t||t.value==="")){try{t.value=""}catch{}if(t.value){const e=Ye("form"),n=t.parentNode,r=t.nextSibling;e.appendChild(t),e.reset(),r?n.insertBefore(t,r):n.appendChild(t)}}},Np=({root:t,props:e})=>{t.element.id=`filepond--browser-${e.id}`,ie(t.element,"name",t.query("GET_NAME")),ie(t.element,"aria-controls",`filepond--assistant-${e.id}`),ie(t.element,"aria-labelledby",`filepond--drop-label-${e.id}`),bl({root:t,action:{value:t.query("GET_ACCEPTED_FILE_TYPES")}}),Tl({root:t,action:{value:t.query("GET_ALLOW_MULTIPLE")}}),Rl({root:t,action:{value:t.query("GET_ALLOW_DIRECTORIES_ONLY")}}),ci({root:t}),Al({root:t,action:{value:t.query("GET_REQUIRED")}}),Il({root:t,action:{value:t.query("GET_CAPTURE_METHOD")}}),t.ref.handleChange=n=>{if(!t.element.value)return;const r=Array.from(t.element.files).map(i=>(i._relativePath=i.webkitRelativePath,i));setTimeout(()=>{e.onload(r),Mp(t.element)},250)},t.element.addEventListener("change",t.ref.handleChange)},bl=({root:t,action:e})=>{t.query("GET_ALLOW_SYNC_ACCEPT_ATTRIBUTE")&&Ne(t.element,"accept",!!e.value,e.value?e.value.join(","):"")},Tl=({root:t,action:e})=>{Ne(t.element,"multiple",e.value)},Rl=({root:t,action:e})=>{Ne(t.element,"webkitdirectory",e.value)},ci=({root:t})=>{const e=t.query("GET_DISABLED"),n=t.query("GET_ALLOW_BROWSE"),r=e||!n;Ne(t.element,"disabled",r)},Al=({root:t,action:e})=>{e.value?t.query("GET_TOTAL_ITEMS")===0&&Ne(t.element,"required",!0):Ne(t.element,"required",!1)},Il=({root:t,action:e})=>{Ne(t.element,"capture",!!e.value,e.value===!0?"":e.value)},ao=({root:t})=>{const{element:e}=t;if(t.query("GET_TOTAL_ITEMS")>0){Ne(e,"required",!1),Ne(e,"name",!1);const n=t.query("GET_ACTIVE_ITEMS");let r=!1;for(let i=0;i<n.length;i++)n[i].status===V.LOAD_ERROR&&(r=!0);t.element.setCustomValidity(r?t.query("GET_LABEL_INVALID_FIELD"):"")}else Ne(e,"name",!0,t.query("GET_NAME")),t.query("GET_CHECK_VALIDITY")&&e.setCustomValidity(""),t.query("GET_REQUIRED")&&Ne(e,"required",!0)},Pp=({root:t})=>{t.query("GET_CHECK_VALIDITY")&&t.element.setCustomValidity(t.query("GET_LABEL_INVALID_FIELD"))},xp=re({tag:"input",name:"browser",ignoreRect:!0,ignoreRectUpdate:!0,attributes:{type:"file"},create:Np,destroy:({root:t})=>{t.element.removeEventListener("change",t.ref.handleChange)},write:pe({DID_LOAD_ITEM:ao,DID_REMOVE_ITEM:ao,DID_THROW_ITEM_INVALID:Pp,DID_SET_DISABLED:ci,DID_SET_ALLOW_BROWSE:ci,DID_SET_ALLOW_DIRECTORIES_ONLY:Rl,DID_SET_ALLOW_MULTIPLE:Tl,DID_SET_ACCEPTED_FILE_TYPES:bl,DID_SET_CAPTURE_METHOD:Il,DID_SET_REQUIRED:Al})}),lo={ENTER:13,SPACE:32},Lp=({root:t,props:e})=>{const n=Ye("label");ie(n,"for",`filepond--browser-${e.id}`),ie(n,"id",`filepond--drop-label-${e.id}`),t.ref.handleKeyDown=r=>{(r.keyCode===lo.ENTER||r.keyCode===lo.SPACE)&&(r.preventDefault(),t.ref.label.click())},t.ref.handleClick=r=>{r.target===n||n.contains(r.target)||t.ref.label.click()},n.addEventListener("keydown",t.ref.handleKeyDown),t.element.addEventListener("click",t.ref.handleClick),Sl(n,e.caption),t.appendChild(n),t.ref.label=n},Sl=(t,e)=>{t.innerHTML=e;const n=t.querySelector(".filepond--label-action");return n&&ie(n,"tabindex","0"),e},kp=re({name:"drop-label",ignoreRect:!0,create:Lp,destroy:({root:t})=>{t.ref.label.addEventListener("keydown",t.ref.handleKeyDown),t.element.removeEventListener("click",t.ref.handleClick)},write:pe({DID_SET_LABEL_IDLE:({root:t,action:e})=>{Sl(t.ref.label,e.value)}}),mixins:{styles:["opacity","translateX","translateY"],animations:{opacity:{type:"tween",duration:150},translateX:"spring",translateY:"spring"}}}),Bp=re({name:"drip-blob",ignoreRect:!0,mixins:{styles:["translateX","translateY","scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",translateX:"spring",translateY:"spring",opacity:{type:"tween",duration:250}}}}),Fp=({root:t})=>{const e=t.rect.element.width*.5,n=t.rect.element.height*.5;t.ref.blob=t.appendChildView(t.createChildView(Bp,{opacity:0,scaleX:2.5,scaleY:2.5,translateX:e,translateY:n}))},Up=({root:t,action:e})=>{if(!t.ref.blob){Fp({root:t});return}t.ref.blob.translateX=e.position.scopeLeft,t.ref.blob.translateY=e.position.scopeTop,t.ref.blob.scaleX=1,t.ref.blob.scaleY=1,t.ref.blob.opacity=1},Gp=({root:t})=>{t.ref.blob&&(t.ref.blob.opacity=0)},Hp=({root:t})=>{t.ref.blob&&(t.ref.blob.scaleX=2.5,t.ref.blob.scaleY=2.5,t.ref.blob.opacity=0)},Vp=({root:t,props:e,actions:n})=>{zp({root:t,props:e,actions:n});const{blob:r}=t.ref;n.length===0&&r&&r.opacity===0&&(t.removeChildView(r),t.ref.blob=null)},zp=pe({DID_DRAG:Up,DID_DROP:Hp,DID_END_DRAG:Gp}),Wp=re({ignoreRect:!0,ignoreRectUpdate:!0,name:"drip",write:Vp}),Dl=(t,e)=>{try{const n=new DataTransfer;e.forEach(r=>{r instanceof File?n.items.add(r):n.items.add(new File([r],r.name,{type:r.type}))}),t.files=n.files}catch{return!1}return!0},qp=({root:t})=>{t.ref.fields={};const e=document.createElement("legend");e.textContent="Files",t.element.appendChild(e)},_r=(t,e)=>t.ref.fields[e],Gi=t=>{t.query("GET_ACTIVE_ITEMS").forEach(e=>{t.ref.fields[e.id]&&t.element.appendChild(t.ref.fields[e.id])})},co=({root:t})=>Gi(t),jp=({root:t,action:e})=>{const i=!(t.query("GET_ITEM",e.id).origin===se.LOCAL)&&t.query("SHOULD_UPDATE_FILE_INPUT"),s=Ye("input");s.type=i?"file":"hidden",s.name=t.query("GET_NAME"),t.ref.fields[e.id]=s,Gi(t)},$p=({root:t,action:e})=>{const n=_r(t,e.id);if(!n||(e.serverFileReference!==null&&(n.value=e.serverFileReference),!t.query("SHOULD_UPDATE_FILE_INPUT")))return;const r=t.query("GET_ITEM",e.id);Dl(n,[r.file])},Yp=({root:t,action:e})=>{t.query("SHOULD_UPDATE_FILE_INPUT")&&setTimeout(()=>{const n=_r(t,e.id);n&&Dl(n,[e.file])},0)},Qp=({root:t})=>{t.element.disabled=t.query("GET_DISABLED")},Zp=({root:t,action:e})=>{const n=_r(t,e.id);n&&(n.parentNode&&n.parentNode.removeChild(n),delete t.ref.fields[e.id])},Xp=({root:t,action:e})=>{const n=_r(t,e.id);n&&(e.value===null?n.removeAttribute("value"):n.type!="file"&&(n.value=e.value),Gi(t))},Kp=pe({DID_SET_DISABLED:Qp,DID_ADD_ITEM:jp,DID_LOAD_ITEM:$p,DID_REMOVE_ITEM:Zp,DID_DEFINE_VALUE:Xp,DID_PREPARE_OUTPUT:Yp,DID_REORDER_ITEMS:co,DID_SORT_ITEMS:co}),Jp=re({tag:"fieldset",name:"data",create:qp,write:Kp,ignoreRect:!0}),eg=t=>"getRootNode"in t?t.getRootNode():document,tg=["jpg","jpeg","png","gif","bmp","webp","svg","tiff"],ng=["css","csv","html","txt"],rg={zip:"zip|compressed",epub:"application/epub+zip"},wl=(t="")=>(t=t.toLowerCase(),tg.includes(t)?"image/"+(t==="jpg"?"jpeg":t==="svg"?"svg+xml":t):ng.includes(t)?"text/"+t:rg[t]||""),Hi=t=>new Promise((e,n)=>{const r=ug(t);if(r.length&&!ig(t))return e(r);sg(t).then(e)}),ig=t=>t.files?t.files.length>0:!1,sg=t=>new Promise((e,n)=>{const r=(t.items?Array.from(t.items):[]).filter(i=>og(i)).map(i=>ag(i));if(!r.length){e(t.files?Array.from(t.files):[]);return}Promise.all(r).then(i=>{const s=[];i.forEach(o=>{s.push.apply(s,o)}),e(s.filter(o=>o).map(o=>(o._relativePath||(o._relativePath=o.webkitRelativePath),o)))}).catch(console.error)}),og=t=>{if(Cl(t)){const e=Vi(t);if(e)return e.isFile||e.isDirectory}return t.kind==="file"},ag=t=>new Promise((e,n)=>{if(dg(t)){lg(Vi(t)).then(e).catch(n);return}e([t.getAsFile()])}),lg=t=>new Promise((e,n)=>{const r=[];let i=0,s=0;const o=()=>{s===0&&i===0&&e(r)},a=l=>{i++;const d=l.createReader(),c=()=>{d.readEntries(u=>{if(u.length===0){i--,o();return}u.forEach(p=>{p.isDirectory?a(p):(s++,p.file(h=>{const f=cg(h);p.fullPath&&(f._relativePath=p.fullPath),r.push(f),s--,o()}))}),c()},n)};c()};a(t)}),cg=t=>{if(t.type.length)return t;const e=t.lastModifiedDate,n=t.name,r=wl(yr(t.name));return r.length&&(t=t.slice(0,t.size,r),t.name=n,t.lastModifiedDate=e),t},dg=t=>Cl(t)&&(Vi(t)||{}).isDirectory,Cl=t=>"webkitGetAsEntry"in t,Vi=t=>t.webkitGetAsEntry(),ug=t=>{let e=[];try{if(e=hg(t),e.length)return e;e=fg(t)}catch{}return e},fg=t=>{let e=t.getData("url");return typeof e=="string"&&e.length?[e]:[]},hg=t=>{let e=t.getData("text/html");if(typeof e=="string"&&e.length){const n=e.match(/src\s*=\s*"(.+?)"/);if(n)return[n[1]]}return[]},Qn=[],vt=t=>({pageLeft:t.pageX,pageTop:t.pageY,scopeLeft:t.offsetX||t.layerX,scopeTop:t.offsetY||t.layerY}),pg=(t,e,n)=>{const r=gg(e),i={element:t,filterElement:n,state:null,ondrop:()=>{},onenter:()=>{},ondrag:()=>{},onexit:()=>{},onload:()=>{},allowdrop:()=>{}};return i.destroy=r.addListener(i),i},gg=t=>{const e=Qn.find(r=>r.element===t);if(e)return e;const n=mg(t);return Qn.push(n),n},mg=t=>{const e=[],n={dragenter:yg,dragover:_g,dragleave:bg,drop:vg},r={};K(n,(s,o)=>{r[s]=o(t,e),t.addEventListener(s,r[s],!1)});const i={element:t,addListener:s=>(e.push(s),()=>{e.splice(e.indexOf(s),1),e.length===0&&(Qn.splice(Qn.indexOf(i),1),K(n,o=>{t.removeEventListener(o,r[o],!1)}))})};return i},Eg=(t,e)=>("elementFromPoint"in t||(t=document),t.elementFromPoint(e.x,e.y)),zi=(t,e)=>{const n=eg(e),r=Eg(n,{x:t.pageX-window.pageXOffset,y:t.pageY-window.pageYOffset});return r===e||e.contains(r)};let Ol=null;const An=(t,e)=>{try{t.dropEffect=e}catch{}},yg=(t,e)=>n=>{n.preventDefault(),Ol=n.target,e.forEach(r=>{const{element:i,onenter:s}=r;zi(n,i)&&(r.state="enter",s(vt(n)))})},_g=(t,e)=>n=>{n.preventDefault();const r=n.dataTransfer;Hi(r).then(i=>{let s=!1;e.some(o=>{const{filterElement:a,element:l,onenter:d,onexit:c,ondrag:u,allowdrop:p}=o;An(r,"copy");const h=p(i);if(!h){An(r,"none");return}if(zi(n,l)){if(s=!0,o.state===null){o.state="enter",d(vt(n));return}if(o.state="over",a&&!h){An(r,"none");return}u(vt(n))}else a&&!s&&An(r,"none"),o.state&&(o.state=null,c(vt(n)))})})},vg=(t,e)=>n=>{n.preventDefault();const r=n.dataTransfer;Hi(r).then(i=>{e.forEach(s=>{const{filterElement:o,element:a,ondrop:l,onexit:d,allowdrop:c}=s;if(s.state=null,!(o&&!zi(n,a))){if(!c(i))return d(vt(n));l(vt(n),i)}})})},bg=(t,e)=>n=>{Ol===n.target&&e.forEach(r=>{const{onexit:i}=r;r.state=null,i(vt(n))})},Tg=(t,e,n)=>{t.classList.add("filepond--hopper");const{catchesDropsOnPage:r,requiresDropOnElement:i,filterItems:s=c=>c}=n,o=pg(t,r?document.documentElement:t,i);let a="",l="";o.allowdrop=c=>e(s(c)),o.ondrop=(c,u)=>{const p=s(u);if(!e(p)){d.ondragend(c);return}l="drag-drop",d.onload(p,c)},o.ondrag=c=>{d.ondrag(c)},o.onenter=c=>{l="drag-over",d.ondragstart(c)},o.onexit=c=>{l="drag-exit",d.ondragend(c)};const d={updateHopperState:()=>{a!==l&&(t.dataset.hopperState=l,a=l)},onload:()=>{},ondragstart:()=>{},ondrag:()=>{},ondragend:()=>{},destroy:()=>{o.destroy()}};return d};let di=!1;const Lt=[],Ml=t=>{const e=document.activeElement;if(e&&(/textarea|input/i.test(e.nodeName)||e.getAttribute("contenteditable")==="true"||e.getAttribute("contenteditable")==="")){let r=!1,i=e;for(;i!==document.body;){if(i.classList.contains("filepond--root")){r=!0;break}i=i.parentNode}if(!r)return}Hi(t.clipboardData).then(r=>{r.length&&Lt.forEach(i=>i(r))})},Rg=t=>{Lt.includes(t)||(Lt.push(t),!di&&(di=!0,document.addEventListener("paste",Ml)))},Ag=t=>{xi(Lt,Lt.indexOf(t)),Lt.length===0&&(document.removeEventListener("paste",Ml),di=!1)},Ig=()=>{const t=n=>{e.onload(n)},e={destroy:()=>{Ag(t)},onload:()=>{}};return Rg(t),e},Sg=({root:t,props:e})=>{t.element.id=`filepond--assistant-${e.id}`,ie(t.element,"role","alert"),ie(t.element,"aria-live","polite"),ie(t.element,"aria-relevant","additions")};let uo=null,fo=null;const xr=[],vr=(t,e)=>{t.element.textContent=e},Dg=t=>{t.element.textContent=""},Nl=(t,e,n)=>{const r=t.query("GET_TOTAL_ITEMS");vr(t,`${n} ${e}, ${r} ${r===1?t.query("GET_LABEL_FILE_COUNT_SINGULAR"):t.query("GET_LABEL_FILE_COUNT_PLURAL")}`),clearTimeout(fo),fo=setTimeout(()=>{Dg(t)},1500)},Pl=t=>t.element.parentNode.contains(document.activeElement),wg=({root:t,action:e})=>{if(!Pl(t))return;t.element.textContent="";const n=t.query("GET_ITEM",e.id);xr.push(n.filename),clearTimeout(uo),uo=setTimeout(()=>{Nl(t,xr.join(", "),t.query("GET_LABEL_FILE_ADDED")),xr.length=0},750)},Cg=({root:t,action:e})=>{if(!Pl(t))return;const n=e.item;Nl(t,n.filename,t.query("GET_LABEL_FILE_REMOVED"))},Og=({root:t,action:e})=>{const r=t.query("GET_ITEM",e.id).filename,i=t.query("GET_LABEL_FILE_PROCESSING_COMPLETE");vr(t,`${r} ${i}`)},ho=({root:t,action:e})=>{const r=t.query("GET_ITEM",e.id).filename,i=t.query("GET_LABEL_FILE_PROCESSING_ABORTED");vr(t,`${r} ${i}`)},In=({root:t,action:e})=>{const r=t.query("GET_ITEM",e.id).filename;vr(t,`${e.status.main} ${r} ${e.status.sub}`)},Mg=re({create:Sg,ignoreRect:!0,ignoreRectUpdate:!0,write:pe({DID_LOAD_ITEM:wg,DID_REMOVE_ITEM:Cg,DID_COMPLETE_ITEM_PROCESSING:Og,DID_ABORT_ITEM_PROCESSING:ho,DID_REVERT_ITEM_PROCESSING:ho,DID_THROW_ITEM_REMOVE_ERROR:In,DID_THROW_ITEM_LOAD_ERROR:In,DID_THROW_ITEM_INVALID:In,DID_THROW_ITEM_PROCESSING_ERROR:In}),tag:"span",name:"assistant"}),xl=(t,e="-")=>t.replace(new RegExp(`${e}.`,"g"),n=>n.charAt(1).toUpperCase()),Ll=(t,e=16,n=!0)=>{let r=Date.now(),i=null;return(...s)=>{clearTimeout(i);const o=Date.now()-r,a=()=>{r=Date.now(),t(...s)};o<e?n||(i=setTimeout(a,e-o)):a()}},Ng=1e6,Zn=t=>t.preventDefault(),Pg=({root:t,props:e})=>{const n=t.query("GET_ID");n&&(t.element.id=n);const r=t.query("GET_CLASS_NAME");r&&r.split(" ").filter(l=>l.length).forEach(l=>{t.element.classList.add(l)}),t.ref.label=t.appendChildView(t.createChildView(kp,{...e,translateY:null,caption:t.query("GET_LABEL_IDLE")})),t.ref.list=t.appendChildView(t.createChildView(Op,{translateY:null})),t.ref.panel=t.appendChildView(t.createChildView(vl,{name:"panel-root"})),t.ref.assistant=t.appendChildView(t.createChildView(Mg,{...e})),t.ref.data=t.appendChildView(t.createChildView(Jp,{...e})),t.ref.measure=Ye("div"),t.ref.measure.style.height="100%",t.element.appendChild(t.ref.measure),t.ref.bounds=null,t.query("GET_STYLES").filter(l=>!$e(l.value)).map(({name:l,value:d})=>{t.element.dataset[l]=d}),t.ref.widthPrevious=null,t.ref.widthUpdated=Ll(()=>{t.ref.updateHistory=[],t.dispatch("DID_RESIZE_ROOT")},250),t.ref.previousAspectRatio=null,t.ref.updateHistory=[];const i=window.matchMedia("(pointer: fine) and (hover: hover)").matches,s="PointerEvent"in window;t.query("GET_ALLOW_REORDER")&&s&&!i&&(t.element.addEventListener("touchmove",Zn,{passive:!1}),t.element.addEventListener("gesturestart",Zn));const o=t.query("GET_CREDITS");if(o.length===2){const l=document.createElement("a");l.className="filepond--credits",l.href=o[0],l.tabIndex=-1,l.target="_blank",l.rel="noopener noreferrer nofollow",l.textContent=o[1],t.element.appendChild(l),t.ref.credits=l}},xg=({root:t,props:e,actions:n})=>{if(Ug({root:t,props:e,actions:n}),n.filter(D=>/^DID_SET_STYLE_/.test(D.type)).filter(D=>!$e(D.data.value)).map(({type:D,data:M})=>{const I=xl(D.substring(8).toLowerCase(),"_");t.element.dataset[I]=M.value,t.invalidateLayout()}),t.rect.element.hidden)return;t.rect.element.width!==t.ref.widthPrevious&&(t.ref.widthPrevious=t.rect.element.width,t.ref.widthUpdated());let r=t.ref.bounds;r||(r=t.ref.bounds=Bg(t),t.element.removeChild(t.ref.measure),t.ref.measure=null);const{hopper:i,label:s,list:o,panel:a}=t.ref;i&&i.updateHopperState();const l=t.query("GET_PANEL_ASPECT_RATIO"),d=t.query("GET_ALLOW_MULTIPLE"),c=t.query("GET_TOTAL_ITEMS"),u=d?t.query("GET_MAX_FILES")||Ng:1,p=c===u,h=n.find(D=>D.type==="DID_ADD_ITEM");if(p&&h){const D=h.data.interactionMethod;s.opacity=0,d?s.translateY=-40:D===we.API?s.translateX=40:D===we.BROWSE?s.translateY=40:s.translateY=30}else p||(s.opacity=1,s.translateX=0,s.translateY=0);const f=Lg(t),g=kg(t),m=s.rect.element.height,_=!d||p?0:m,y=p?o.rect.element.marginTop:0,v=c===0?0:o.rect.element.marginBottom,b=_+y+g.visual+v,A=_+y+g.bounds+v;if(o.translateY=Math.max(0,_-o.rect.element.marginTop)-f.top,l){const D=t.rect.element.width,M=D*l;l!==t.ref.previousAspectRatio&&(t.ref.previousAspectRatio=l,t.ref.updateHistory=[]);const I=t.ref.updateHistory;I.push(D);const N=2;if(I.length>N*2){const P=I.length,x=P-10;let W=0;for(let C=P;C>=x;C--)if(I[C]===I[C-2]&&W++,W>=N)return}a.scalable=!1,a.height=M;const B=M-_-(v-f.bottom)-(p?y:0);g.visual>B?o.overflow=B:o.overflow=null,t.height=M}else if(r.fixedHeight){a.scalable=!1;const D=r.fixedHeight-_-(v-f.bottom)-(p?y:0);g.visual>D?o.overflow=D:o.overflow=null}else if(r.cappedHeight){const D=b>=r.cappedHeight,M=Math.min(r.cappedHeight,b);a.scalable=!0,a.height=D?M:M-f.top-f.bottom;const I=M-_-(v-f.bottom)-(p?y:0);b>r.cappedHeight&&g.visual>I?o.overflow=I:o.overflow=null,t.height=Math.min(r.cappedHeight,A-f.top-f.bottom)}else{const D=c>0?f.top+f.bottom:0;a.scalable=!0,a.height=Math.max(m,b-D),t.height=Math.max(m,A-D)}t.ref.credits&&a.heightCurrent&&(t.ref.credits.style.transform=`translateY(${a.heightCurrent}px)`)},Lg=t=>{const e=t.ref.list.childViews[0].childViews[0];return e?{top:e.rect.element.marginTop,bottom:e.rect.element.marginBottom}:{top:0,bottom:0}},kg=t=>{let e=0,n=0;const r=t.ref.list,i=r.childViews[0],s=i.childViews.filter(y=>y.rect.element.height),o=t.query("GET_ACTIVE_ITEMS").map(y=>s.find(v=>v.id===y.id)).filter(y=>y);if(o.length===0)return{visual:e,bounds:n};const a=i.rect.element.width,l=Ui(i,o,r.dragCoordinates),d=o[0].rect.element,c=d.marginTop+d.marginBottom,u=d.marginLeft+d.marginRight,p=d.width+u,h=d.height+c,f=typeof l<"u"&&l>=0?1:0,g=o.find(y=>y.markedForRemoval&&y.opacity<.45)?-1:0,m=o.length+f+g,_=Fi(a,p);return _===1?o.forEach(y=>{const v=y.rect.element.height+c;n+=v,e+=v*y.opacity}):(n=Math.ceil(m/_)*h,e=n),{visual:e,bounds:n}},Bg=t=>{const e=t.ref.measureHeight||null;return{cappedHeight:parseInt(t.style.maxHeight,10)||null,fixedHeight:e===0?null:e}},Wi=(t,e)=>{const n=t.query("GET_ALLOW_REPLACE"),r=t.query("GET_ALLOW_MULTIPLE"),i=t.query("GET_TOTAL_ITEMS");let s=t.query("GET_MAX_FILES");const o=e.length;return!r&&o>1?(t.dispatch("DID_THROW_MAX_FILES",{source:e,error:J("warning",0,"Max files")}),!0):(s=r?s:1,!r&&n?!1:jt(s)&&i+o>s?(t.dispatch("DID_THROW_MAX_FILES",{source:e,error:J("warning",0,"Max files")}),!0):!1)},Fg=(t,e,n)=>{const r=t.childViews[0];return Ui(r,e,{left:n.scopeLeft-r.rect.element.left,top:n.scopeTop-(t.rect.outer.top+t.rect.element.marginTop+t.rect.element.scrollTop)})},po=t=>{const e=t.query("GET_ALLOW_DROP"),n=t.query("GET_DISABLED"),r=e&&!n;if(r&&!t.ref.hopper){const i=Tg(t.element,s=>{const o=t.query("GET_BEFORE_DROP_FILE")||(()=>!0);return t.query("GET_DROP_VALIDATION")?s.every(l=>At("ALLOW_HOPPER_ITEM",l,{query:t.query}).every(d=>d===!0)&&o(l)):!0},{filterItems:s=>{const o=t.query("GET_IGNORED_FILES");return s.filter(a=>_t(a)?!o.includes(a.name.toLowerCase()):!0)},catchesDropsOnPage:t.query("GET_DROP_ON_PAGE"),requiresDropOnElement:t.query("GET_DROP_ON_ELEMENT")});i.onload=(s,o)=>{const l=t.ref.list.childViews[0].childViews.filter(c=>c.rect.element.height),d=t.query("GET_ACTIVE_ITEMS").map(c=>l.find(u=>u.id===c.id)).filter(c=>c);Oe("ADD_ITEMS",s,{dispatch:t.dispatch}).then(c=>{if(Wi(t,c))return!1;t.dispatch("ADD_ITEMS",{items:c,index:Fg(t.ref.list,d,o),interactionMethod:we.DROP})}),t.dispatch("DID_DROP",{position:o}),t.dispatch("DID_END_DRAG",{position:o})},i.ondragstart=s=>{t.dispatch("DID_START_DRAG",{position:s})},i.ondrag=Ll(s=>{t.dispatch("DID_DRAG",{position:s})}),i.ondragend=s=>{t.dispatch("DID_END_DRAG",{position:s})},t.ref.hopper=i,t.ref.drip=t.appendChildView(t.createChildView(Wp))}else!r&&t.ref.hopper&&(t.ref.hopper.destroy(),t.ref.hopper=null,t.removeChildView(t.ref.drip))},go=(t,e)=>{const n=t.query("GET_ALLOW_BROWSE"),r=t.query("GET_DISABLED"),i=n&&!r;i&&!t.ref.browser?t.ref.browser=t.appendChildView(t.createChildView(xp,{...e,onload:s=>{Oe("ADD_ITEMS",s,{dispatch:t.dispatch}).then(o=>{if(Wi(t,o))return!1;t.dispatch("ADD_ITEMS",{items:o,index:-1,interactionMethod:we.BROWSE})})}}),0):!i&&t.ref.browser&&(t.removeChildView(t.ref.browser),t.ref.browser=null)},mo=t=>{const e=t.query("GET_ALLOW_PASTE"),n=t.query("GET_DISABLED"),r=e&&!n;r&&!t.ref.paster?(t.ref.paster=Ig(),t.ref.paster.onload=i=>{Oe("ADD_ITEMS",i,{dispatch:t.dispatch}).then(s=>{if(Wi(t,s))return!1;t.dispatch("ADD_ITEMS",{items:s,index:-1,interactionMethod:we.PASTE})})}):!r&&t.ref.paster&&(t.ref.paster.destroy(),t.ref.paster=null)},Ug=pe({DID_SET_ALLOW_BROWSE:({root:t,props:e})=>{go(t,e)},DID_SET_ALLOW_DROP:({root:t})=>{po(t)},DID_SET_ALLOW_PASTE:({root:t})=>{mo(t)},DID_SET_DISABLED:({root:t,props:e})=>{po(t),mo(t),go(t,e),t.query("GET_DISABLED")?t.element.dataset.disabled="disabled":t.element.removeAttribute("data-disabled")}}),Gg=re({name:"root",read:({root:t})=>{t.ref.measure&&(t.ref.measureHeight=t.ref.measure.offsetHeight)},create:Pg,write:xg,destroy:({root:t})=>{t.ref.paster&&t.ref.paster.destroy(),t.ref.hopper&&t.ref.hopper.destroy(),t.element.removeEventListener("touchmove",Zn),t.element.removeEventListener("gesturestart",Zn)},mixins:{styles:["height"]}}),Hg=(t={})=>{let e=null;const n=Yn(),r=nf(Vf(n),[ah,qf(n)],[Nh,Wf(n)]);r.dispatch("SET_OPTIONS",{options:t});const i=()=>{document.hidden||r.dispatch("KICK")};document.addEventListener("visibilitychange",i);let s=null,o=!1,a=!1,l=null,d=null;const c=()=>{o||(o=!0),clearTimeout(s),s=setTimeout(()=>{o=!1,l=null,d=null,a&&(a=!1,r.dispatch("DID_STOP_RESIZE"))},500)};window.addEventListener("resize",c);const u=Gg(r,{id:Pi()});let p=!1,h=!1;const f={_read:()=>{o&&(d=window.innerWidth,l||(l=d),!a&&d!==l&&(r.dispatch("DID_START_RESIZE"),a=!0)),h&&p&&(p=u.element.offsetParent===null),!p&&(u._read(),h=u.rect.element.hidden)},_write:S=>{const O=r.processActionQueue().filter(L=>!/^SET_/.test(L.type));p&&!O.length||(y(O),p=u._write(S,O,a),Yf(r.query("GET_ITEMS")),p&&r.processDispatchQueue())}},g=S=>O=>{const L={type:S};if(!O)return L;if(O.hasOwnProperty("error")&&(L.error=O.error?{...O.error}:null),O.status&&(L.status={...O.status}),O.file&&(L.output=O.file),O.source)L.file=O.source;else if(O.item||O.id){const k=O.item?O.item:r.query("GET_ITEM",O.id);L.file=k?Ee(k):null}return O.items&&(L.items=O.items.map(Ee)),/progress/.test(S)&&(L.progress=O.progress),O.hasOwnProperty("origin")&&O.hasOwnProperty("target")&&(L.origin=O.origin,L.target=O.target),L},m={DID_DESTROY:g("destroy"),DID_INIT:g("init"),DID_THROW_MAX_FILES:g("warning"),DID_INIT_ITEM:g("initfile"),DID_START_ITEM_LOAD:g("addfilestart"),DID_UPDATE_ITEM_LOAD_PROGRESS:g("addfileprogress"),DID_LOAD_ITEM:g("addfile"),DID_THROW_ITEM_INVALID:[g("error"),g("addfile")],DID_THROW_ITEM_LOAD_ERROR:[g("error"),g("addfile")],DID_THROW_ITEM_REMOVE_ERROR:[g("error"),g("removefile")],DID_PREPARE_OUTPUT:g("preparefile"),DID_START_ITEM_PROCESSING:g("processfilestart"),DID_UPDATE_ITEM_PROCESS_PROGRESS:g("processfileprogress"),DID_ABORT_ITEM_PROCESSING:g("processfileabort"),DID_COMPLETE_ITEM_PROCESSING:g("processfile"),DID_COMPLETE_ITEM_PROCESSING_ALL:g("processfiles"),DID_REVERT_ITEM_PROCESSING:g("processfilerevert"),DID_THROW_ITEM_PROCESSING_ERROR:[g("error"),g("processfile")],DID_REMOVE_ITEM:g("removefile"),DID_UPDATE_ITEMS:g("updatefiles"),DID_ACTIVATE_ITEM:g("activatefile"),DID_REORDER_ITEMS:g("reorderfiles")},_=S=>{const O={pond:z,...S};delete O.type,u.element.dispatchEvent(new CustomEvent(`FilePond:${S.type}`,{detail:O,bubbles:!0,cancelable:!0,composed:!0}));const L=[];S.hasOwnProperty("error")&&L.push(S.error),S.hasOwnProperty("file")&&L.push(S.file);const k=["type","error","file"];Object.keys(S).filter(U=>!k.includes(U)).forEach(U=>L.push(S[U])),z.fire(S.type,...L);const Q=r.query(`GET_ON${S.type.toUpperCase()}`);Q&&Q(...L)},y=S=>{S.length&&S.filter(O=>m[O.type]).forEach(O=>{const L=m[O.type];(Array.isArray(L)?L:[L]).forEach(k=>{O.type==="DID_INIT_ITEM"?_(k(O.data)):setTimeout(()=>{_(k(O.data))},0)})})},v=S=>r.dispatch("SET_OPTIONS",{options:S}),b=S=>r.query("GET_ACTIVE_ITEM",S),A=S=>new Promise((O,L)=>{r.dispatch("REQUEST_ITEM_PREPARE",{query:S,success:k=>{O(k)},failure:k=>{L(k)}})}),D=(S,O={})=>new Promise((L,k)=>{N([{source:S,options:O}],{index:O.index}).then(Q=>L(Q&&Q[0])).catch(k)}),M=S=>S.file&&S.id,I=(S,O)=>(typeof S=="object"&&!M(S)&&!O&&(O=S,S=void 0),r.dispatch("REMOVE_ITEM",{...O,query:S}),r.query("GET_ACTIVE_ITEM",S)===null),N=(...S)=>new Promise((O,L)=>{const k=[],Q={};if(pr(S[0]))k.push.apply(k,S[0]),Object.assign(Q,S[1]||{});else{const U=S[S.length-1];typeof U=="object"&&!(U instanceof Blob)&&Object.assign(Q,S.pop()),k.push(...S)}r.dispatch("ADD_ITEMS",{items:k,index:Q.index,interactionMethod:we.API,success:O,failure:L})}),B=()=>r.query("GET_ACTIVE_ITEMS"),P=S=>new Promise((O,L)=>{r.dispatch("REQUEST_ITEM_PROCESSING",{query:S,success:k=>{O(k)},failure:k=>{L(k)}})}),x=(...S)=>{const O=Array.isArray(S[0])?S[0]:S,L=O.length?O:B();return Promise.all(L.map(A))},W=(...S)=>{const O=Array.isArray(S[0])?S[0]:S;if(!O.length){const L=B().filter(k=>!(k.status===V.IDLE&&k.origin===se.LOCAL)&&k.status!==V.PROCESSING&&k.status!==V.PROCESSING_COMPLETE&&k.status!==V.PROCESSING_REVERT_ERROR);return Promise.all(L.map(P))}return Promise.all(O.map(P))},C=(...S)=>{const O=Array.isArray(S[0])?S[0]:S;let L;typeof O[O.length-1]=="object"?L=O.pop():Array.isArray(S[0])&&(L=S[1]);const k=B();return O.length?O.map(U=>ht(U)?k[U]?k[U].id:null:U).filter(U=>U).map(U=>I(U,L)):Promise.all(k.map(U=>I(U,L)))},z={...Er(),...f,...zf(r,n),setOptions:v,addFile:D,addFiles:N,getFile:b,processFile:P,prepareFile:A,removeFile:I,moveFile:(S,O)=>r.dispatch("MOVE_ITEM",{query:S,index:O}),getFiles:B,processFiles:W,removeFiles:C,prepareFiles:x,sort:S=>r.dispatch("SORT",{compare:S}),browse:()=>{var S=u.element.querySelector("input[type=file]");S&&S.click()},destroy:()=>{z.fire("destroy",u.element),r.dispatch("ABORT_ALL"),u._destroy(),window.removeEventListener("resize",c),document.removeEventListener("visibilitychange",i),r.dispatch("DID_DESTROY")},insertBefore:S=>Fs(u.element,S),insertAfter:S=>Us(u.element,S),appendTo:S=>S.appendChild(u.element),replaceElement:S=>{Fs(u.element,S),S.parentNode.removeChild(S),e=S},restoreElement:()=>{e&&(Us(e,u.element),u.element.parentNode.removeChild(u.element),e=null)},isAttachedTo:S=>u.element===S||e===S,element:{get:()=>u.element},status:{get:()=>r.query("GET_STATUS")}};return r.dispatch("DID_INIT"),nt(z)},kl=(t={})=>{const e={};return K(Yn(),(r,i)=>{e[r]=i[0]}),Hg({...e,...t})},Vg=t=>t.charAt(0).toLowerCase()+t.slice(1),zg=t=>xl(t.replace(/^data-/,"")),Bl=(t,e)=>{K(e,(n,r)=>{K(t,(i,s)=>{const o=new RegExp(n);if(!o.test(i)||(delete t[i],r===!1))return;if(he(r)){t[r]=s;return}const l=r.group;oe(r)&&!t[l]&&(t[l]={}),t[l][Vg(i.replace(o,""))]=s}),r.mapping&&Bl(t[r.group],r.mapping)})},Wg=(t,e={})=>{const n=[];K(t.attributes,i=>{n.push(t.attributes[i])});const r=n.filter(i=>i.name).reduce((i,s)=>{const o=ie(t,s.name);return i[zg(s.name)]=o===s.name?!0:o,i},{});return Bl(r,e),r},qg=(t,e={})=>{const n={"^class$":"className","^multiple$":"allowMultiple","^capture$":"captureMethod","^webkitdirectory$":"allowDirectoriesOnly","^server":{group:"server",mapping:{"^process":{group:"process"},"^revert":{group:"revert"},"^fetch":{group:"fetch"},"^restore":{group:"restore"},"^load":{group:"load"}}},"^type$":!1,"^files$":!1};At("SET_ATTRIBUTE_TO_OPTION_MAP",n);const r={...e},i=Wg(t.nodeName==="FIELDSET"?t.querySelector("input[type=file]"):t,n);Object.keys(i).forEach(o=>{oe(i[o])?(oe(r[o])||(r[o]={}),Object.assign(r[o],i[o])):r[o]=i[o]}),r.files=(e.files||[]).concat(Array.from(t.querySelectorAll("input:not([type=file])")).map(o=>({source:o.value,options:{type:o.dataset.type}})));const s=kl(r);return t.files&&Array.from(t.files).forEach(o=>{s.addFile(o)}),s.replaceElement(t),s},jg=(...t)=>tf(t[0])?qg(...t):kl(...t),$g=["fire","_read","_write"],Eo=t=>{const e={};return sl(t,e,$g),e},Yg=(t,e)=>t.replace(/(?:{([a-zA-Z]+)})/g,(n,r)=>e[r]),Qg=t=>{const e=new Blob(["(",t.toString(),")()"],{type:"application/javascript"}),n=URL.createObjectURL(e),r=new Worker(n);return{transfer:(i,s)=>{},post:(i,s,o)=>{const a=Pi();r.onmessage=l=>{l.data.id===a&&s(l.data.message)},r.postMessage({id:a,message:i},o)},terminate:()=>{r.terminate(),URL.revokeObjectURL(n)}}},Zg=t=>new Promise((e,n)=>{const r=new Image;r.onload=()=>{e(r)},r.onerror=i=>{n(i)},r.src=t}),Fl=(t,e)=>{const n=t.slice(0,t.size,t.type);return n.lastModifiedDate=t.lastModifiedDate,n.name=e,n},Xg=t=>Fl(t,t.name),yo=[],Kg=t=>{if(yo.includes(t))return;yo.push(t);const e=t({addFilter:Zf,utils:{Type:w,forin:K,isString:he,isFile:_t,toNaturalFileSize:El,replaceInString:Yg,getExtensionFromFilename:yr,getFilenameWithoutExtension:pl,guesstimateMimeType:wl,getFileFromBlob:Gt,getFilenameFromURL:pn,createRoute:pe,createWorker:Qg,createView:re,createItemAPI:Ee,loadImage:Zg,copyFile:Xg,renameFile:Fl,createBlob:ul,applyFilterChain:Oe,text:te,getNumericAspectRatioFromString:ll},views:{fileActionButton:ml}});Xf(e.options)},Jg=()=>Object.prototype.toString.call(window.operamini)==="[object OperaMini]",em=()=>"Promise"in window,tm=()=>"slice"in Blob.prototype,nm=()=>"URL"in window&&"createObjectURL"in window.URL,rm=()=>"visibilityState"in document,im=()=>"performance"in window,sm=()=>"supports"in(window.CSS||{}),om=()=>/MSIE|Trident/.test(window.navigator.userAgent),_o=(()=>{const t=Ja()&&!Jg()&&rm()&&em()&&tm()&&nm()&&im()&&(sm()||om());return()=>t})(),Ke={apps:[]},am="filepond",It=()=>{};let vo={},Lr=It,kr=It,bo=It,To=It,ui=It,Ro=It,fi=It;if(_o()){wf(()=>{Ke.apps.forEach(n=>n._read())},n=>{Ke.apps.forEach(r=>r._write(n))});const t=()=>{document.dispatchEvent(new CustomEvent("FilePond:loaded",{detail:{supported:_o,create:Lr,destroy:kr,parse:bo,find:To,registerPlugin:ui,setOptions:fi}})),document.removeEventListener("DOMContentLoaded",t)};document.readyState!=="loading"?setTimeout(()=>t(),0):document.addEventListener("DOMContentLoaded",t);const e=()=>K(Yn(),(n,r)=>{vo[n]=r[1]});vo={},e(),Lr=(...n)=>{const r=jg(...n);return r.on("destroy",kr),Ke.apps.push(r),Eo(r)},kr=n=>{const r=Ke.apps.findIndex(i=>i.isAttachedTo(n));return r>=0?(Ke.apps.splice(r,1)[0].restoreElement(),!0):!1},bo=n=>Array.from(n.querySelectorAll(`.${am}`)).filter(s=>!Ke.apps.find(o=>o.isAttachedTo(s))).map(s=>Lr(s)),To=n=>{const r=Ke.apps.find(i=>i.isAttachedTo(n));return r?Eo(r):null},ui=(...n)=>{n.forEach(Kg),e()},Ro=()=>{const n={};return K(Yn(),(r,i)=>{n[r]=i[0]}),n},fi=n=>(oe(n)&&(Ke.apps.forEach(r=>{r.setOptions(n)}),Kf(n)),Ro())}/*!
 * FilePondPluginFileValidateSize 2.2.8
 * Licensed under MIT, https://opensource.org/licenses/MIT/
 * Please visit https://pqina.nl/filepond/ for details.
 */const Ul=({addFilter:t,utils:e})=>{const{Type:n,replaceInString:r,toNaturalFileSize:i}=e;return t("ALLOW_HOPPER_ITEM",(s,{query:o})=>{if(!o("GET_ALLOW_FILE_SIZE_VALIDATION"))return!0;const a=o("GET_MAX_FILE_SIZE");if(a!==null&&s.size>a)return!1;const l=o("GET_MIN_FILE_SIZE");return!(l!==null&&s.size<l)}),t("LOAD_FILE",(s,{query:o})=>new Promise((a,l)=>{if(!o("GET_ALLOW_FILE_SIZE_VALIDATION"))return a(s);const d=o("GET_FILE_VALIDATE_SIZE_FILTER");if(d&&!d(s))return a(s);const c=o("GET_MAX_FILE_SIZE");if(c!==null&&s.size>c){l({status:{main:o("GET_LABEL_MAX_FILE_SIZE_EXCEEDED"),sub:r(o("GET_LABEL_MAX_FILE_SIZE"),{filesize:i(c,".",o("GET_FILE_SIZE_BASE"),o("GET_FILE_SIZE_LABELS",o))})}});return}const u=o("GET_MIN_FILE_SIZE");if(u!==null&&s.size<u){l({status:{main:o("GET_LABEL_MIN_FILE_SIZE_EXCEEDED"),sub:r(o("GET_LABEL_MIN_FILE_SIZE"),{filesize:i(u,".",o("GET_FILE_SIZE_BASE"),o("GET_FILE_SIZE_LABELS",o))})}});return}const p=o("GET_MAX_TOTAL_FILE_SIZE");if(p!==null&&o("GET_ACTIVE_ITEMS").reduce((f,g)=>f+g.fileSize,0)>p){l({status:{main:o("GET_LABEL_MAX_TOTAL_FILE_SIZE_EXCEEDED"),sub:r(o("GET_LABEL_MAX_TOTAL_FILE_SIZE"),{filesize:i(p,".",o("GET_FILE_SIZE_BASE"),o("GET_FILE_SIZE_LABELS",o))})}});return}a(s)})),{options:{allowFileSizeValidation:[!0,n.BOOLEAN],maxFileSize:[null,n.INT],minFileSize:[null,n.INT],maxTotalFileSize:[null,n.INT],fileValidateSizeFilter:[null,n.FUNCTION],labelMinFileSizeExceeded:["File is too small",n.STRING],labelMinFileSize:["Minimum file size is {filesize}",n.STRING],labelMaxFileSizeExceeded:["File is too large",n.STRING],labelMaxFileSize:["Maximum file size is {filesize}",n.STRING],labelMaxTotalFileSizeExceeded:["Maximum total size exceeded",n.STRING],labelMaxTotalFileSize:["Maximum total file size is {filesize}",n.STRING]}}},lm=typeof window<"u"&&typeof window.document<"u";lm&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:Ul}));/*!
 * FilePondPluginFileValidateType 1.2.9
 * Licensed under MIT, https://opensource.org/licenses/MIT/
 * Please visit https://pqina.nl/filepond/ for details.
 */const Gl=({addFilter:t,utils:e})=>{const{Type:n,isString:r,replaceInString:i,guesstimateMimeType:s,getExtensionFromFilename:o,getFilenameFromURL:a}=e,l=(h,f)=>{const g=(/^[^/]+/.exec(h)||[]).pop(),m=f.slice(0,-2);return g===m},d=(h,f)=>h.some(g=>/\*$/.test(g)?l(f,g):g===f),c=h=>{let f="";if(r(h)){const g=a(h),m=o(g);m&&(f=s(m))}else f=h.type;return f},u=(h,f,g)=>{if(f.length===0)return!0;const m=c(h);return g?new Promise((_,y)=>{g(h,m).then(v=>{d(f,v)?_():y()}).catch(y)}):d(f,m)},p=h=>f=>h[f]===null?!1:h[f]||f;return t("SET_ATTRIBUTE_TO_OPTION_MAP",h=>Object.assign(h,{accept:"acceptedFileTypes"})),t("ALLOW_HOPPER_ITEM",(h,{query:f})=>f("GET_ALLOW_FILE_TYPE_VALIDATION")?u(h,f("GET_ACCEPTED_FILE_TYPES")):!0),t("LOAD_FILE",(h,{query:f})=>new Promise((g,m)=>{if(!f("GET_ALLOW_FILE_TYPE_VALIDATION")){g(h);return}const _=f("GET_ACCEPTED_FILE_TYPES"),y=f("GET_FILE_VALIDATE_TYPE_DETECT_TYPE"),v=u(h,_,y),b=()=>{const A=_.map(p(f("GET_FILE_VALIDATE_TYPE_LABEL_EXPECTED_TYPES_MAP"))).filter(M=>M!==!1),D=A.filter((M,I)=>A.indexOf(M)===I);m({status:{main:f("GET_LABEL_FILE_TYPE_NOT_ALLOWED"),sub:i(f("GET_FILE_VALIDATE_TYPE_LABEL_EXPECTED_TYPES"),{allTypes:D.join(", "),allButLastType:D.slice(0,-1).join(", "),lastType:D[D.length-1]})}})};if(typeof v=="boolean")return v?g(h):b();v.then(()=>{g(h)}).catch(b)})),{options:{allowFileTypeValidation:[!0,n.BOOLEAN],acceptedFileTypes:[[],n.ARRAY],labelFileTypeNotAllowed:["File is of invalid type",n.STRING],fileValidateTypeLabelExpectedTypes:["Expects {allButLastType} or {lastType}",n.STRING],fileValidateTypeLabelExpectedTypesMap:[{},n.OBJECT],fileValidateTypeDetectType:[null,n.FUNCTION]}}},cm=typeof window<"u"&&typeof window.document<"u";cm&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:Gl}));/*!
 * FilePondPluginImagePreview 4.6.12
 * Licensed under MIT, https://opensource.org/licenses/MIT/
 * Please visit https://pqina.nl/filepond/ for details.
 */const dm=t=>/^image/.test(t.type),Ao=(t,e)=>rn(t.x*e,t.y*e),Io=(t,e)=>rn(t.x+e.x,t.y+e.y),um=t=>{const e=Math.sqrt(t.x*t.x+t.y*t.y);return e===0?{x:0,y:0}:rn(t.x/e,t.y/e)},Sn=(t,e,n)=>{const r=Math.cos(e),i=Math.sin(e),s=rn(t.x-n.x,t.y-n.y);return rn(n.x+r*s.x-i*s.y,n.y+i*s.x+r*s.y)},rn=(t=0,e=0)=>({x:t,y:e}),ye=(t,e,n=1,r)=>{if(typeof t=="string")return parseFloat(t)*n;if(typeof t=="number")return t*(r?e[r]:Math.min(e.width,e.height))},fm=(t,e,n)=>{const r=t.borderStyle||t.lineStyle||"solid",i=t.backgroundColor||t.fontColor||"transparent",s=t.borderColor||t.lineColor||"transparent",o=ye(t.borderWidth||t.lineWidth,e,n),a=t.lineCap||"round",l=t.lineJoin||"round",d=typeof r=="string"?"":r.map(u=>ye(u,e,n)).join(","),c=t.opacity||1;return{"stroke-linecap":a,"stroke-linejoin":l,"stroke-width":o||0,"stroke-dasharray":d,stroke:s,fill:i,opacity:c}},De=t=>t!=null,hm=(t,e,n=1)=>{let r=ye(t.x,e,n,"width")||ye(t.left,e,n,"width"),i=ye(t.y,e,n,"height")||ye(t.top,e,n,"height"),s=ye(t.width,e,n,"width"),o=ye(t.height,e,n,"height"),a=ye(t.right,e,n,"width"),l=ye(t.bottom,e,n,"height");return De(i)||(De(o)&&De(l)?i=e.height-o-l:i=l),De(r)||(De(s)&&De(a)?r=e.width-s-a:r=a),De(s)||(De(r)&&De(a)?s=e.width-r-a:s=0),De(o)||(De(i)&&De(l)?o=e.height-i-l:o=0),{x:r||0,y:i||0,width:s||0,height:o||0}},pm=t=>t.map((e,n)=>`${n===0?"M":"L"} ${e.x} ${e.y}`).join(" "),Ue=(t,e)=>Object.keys(e).forEach(n=>t.setAttribute(n,e[n])),gm="http://www.w3.org/2000/svg",xt=(t,e)=>{const n=document.createElementNS(gm,t);return e&&Ue(n,e),n},mm=t=>Ue(t,{...t.rect,...t.styles}),Em=t=>{const e=t.rect.x+t.rect.width*.5,n=t.rect.y+t.rect.height*.5,r=t.rect.width*.5,i=t.rect.height*.5;return Ue(t,{cx:e,cy:n,rx:r,ry:i,...t.styles})},ym={contain:"xMidYMid meet",cover:"xMidYMid slice"},_m=(t,e)=>{Ue(t,{...t.rect,...t.styles,preserveAspectRatio:ym[e.fit]||"none"})},vm={left:"start",center:"middle",right:"end"},bm=(t,e,n,r)=>{const i=ye(e.fontSize,n,r),s=e.fontFamily||"sans-serif",o=e.fontWeight||"normal",a=vm[e.textAlign]||"start";Ue(t,{...t.rect,...t.styles,"stroke-width":0,"font-weight":o,"font-size":i,"font-family":s,"text-anchor":a}),t.text!==e.text&&(t.text=e.text,t.textContent=e.text.length?e.text:" ")},Tm=(t,e,n,r)=>{Ue(t,{...t.rect,...t.styles,fill:"none"});const i=t.childNodes[0],s=t.childNodes[1],o=t.childNodes[2],a=t.rect,l={x:t.rect.x+t.rect.width,y:t.rect.y+t.rect.height};if(Ue(i,{x1:a.x,y1:a.y,x2:l.x,y2:l.y}),!e.lineDecoration)return;s.style.display="none",o.style.display="none";const d=um({x:l.x-a.x,y:l.y-a.y}),c=ye(.05,n,r);if(e.lineDecoration.indexOf("arrow-begin")!==-1){const u=Ao(d,c),p=Io(a,u),h=Sn(a,2,p),f=Sn(a,-2,p);Ue(s,{style:"display:block;",d:`M${h.x},${h.y} L${a.x},${a.y} L${f.x},${f.y}`})}if(e.lineDecoration.indexOf("arrow-end")!==-1){const u=Ao(d,-c),p=Io(l,u),h=Sn(l,2,p),f=Sn(l,-2,p);Ue(o,{style:"display:block;",d:`M${h.x},${h.y} L${l.x},${l.y} L${f.x},${f.y}`})}},Rm=(t,e,n,r)=>{Ue(t,{...t.styles,fill:"none",d:pm(e.points.map(i=>({x:ye(i.x,n,r,"width"),y:ye(i.y,n,r,"height")})))})},Dn=t=>e=>xt(t,{id:e.id}),Am=t=>{const e=xt("image",{id:t.id,"stroke-linecap":"round","stroke-linejoin":"round",opacity:"0"});return e.onload=()=>{e.setAttribute("opacity",t.opacity||1)},e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t.src),e},Im=t=>{const e=xt("g",{id:t.id,"stroke-linecap":"round","stroke-linejoin":"round"}),n=xt("line");e.appendChild(n);const r=xt("path");e.appendChild(r);const i=xt("path");return e.appendChild(i),e},Sm={image:Am,rect:Dn("rect"),ellipse:Dn("ellipse"),text:Dn("text"),path:Dn("path"),line:Im},Dm={rect:mm,ellipse:Em,image:_m,text:bm,path:Rm,line:Tm},wm=(t,e)=>Sm[t](e),Cm=(t,e,n,r,i)=>{e!=="path"&&(t.rect=hm(n,r,i)),t.styles=fm(n,r,i),Dm[e](t,n,r,i)},Om=["x","y","left","top","right","bottom","width","height"],Mm=t=>typeof t=="string"&&/%/.test(t)?parseFloat(t)/100:t,Nm=t=>{const[e,n]=t,r=n.points?{}:Om.reduce((i,s)=>(i[s]=Mm(n[s]),i),{});return[e,{zIndex:0,...n,...r}]},Pm=(t,e)=>t[1].zIndex>e[1].zIndex?1:t[1].zIndex<e[1].zIndex?-1:0,xm=t=>t.utils.createView({name:"image-preview-markup",tag:"svg",ignoreRect:!0,mixins:{apis:["width","height","crop","markup","resize","dirty"]},write:({root:e,props:n})=>{if(!n.dirty)return;const{crop:r,resize:i,markup:s}=n,o=n.width,a=n.height;let l=r.width,d=r.height;if(i){const{size:h}=i;let f=h&&h.width,g=h&&h.height;const m=i.mode,_=i.upscale;f&&!g&&(g=f),g&&!f&&(f=g);const y=l<f&&d<g;if(!y||y&&_){let v=f/l,b=g/d;if(m==="force")l=f,d=g;else{let A;m==="cover"?A=Math.max(v,b):m==="contain"&&(A=Math.min(v,b)),l=l*A,d=d*A}}}const c={width:o,height:a};e.element.setAttribute("width",c.width),e.element.setAttribute("height",c.height);const u=Math.min(o/l,a/d);e.element.innerHTML="";const p=e.query("GET_IMAGE_PREVIEW_MARKUP_FILTER");s.filter(p).map(Nm).sort(Pm).forEach(h=>{const[f,g]=h,m=wm(f,g);Cm(m,f,g,c,u),e.element.appendChild(m)})}}),Jt=(t,e)=>({x:t,y:e}),Lm=(t,e)=>t.x*e.x+t.y*e.y,So=(t,e)=>Jt(t.x-e.x,t.y-e.y),km=(t,e)=>Lm(So(t,e),So(t,e)),Do=(t,e)=>Math.sqrt(km(t,e)),wo=(t,e)=>{const n=t,r=1.5707963267948966,i=e,s=1.5707963267948966-e,o=Math.sin(r),a=Math.sin(i),l=Math.sin(s),d=Math.cos(s),c=n/o,u=c*a,p=c*l;return Jt(d*u,d*p)},Bm=(t,e)=>{const n=t.width,r=t.height,i=wo(n,e),s=wo(r,e),o=Jt(t.x+Math.abs(i.x),t.y-Math.abs(i.y)),a=Jt(t.x+t.width+Math.abs(s.y),t.y+Math.abs(s.x)),l=Jt(t.x-Math.abs(s.y),t.y+t.height-Math.abs(s.x));return{width:Do(o,a),height:Do(o,l)}},Fm=(t,e,n=1)=>{const r=t.height/t.width;let i=1,s=e,o=1,a=r;a>s&&(a=s,o=a/r);const l=Math.max(i/o,s/a),d=t.width/(n*l*o),c=d*e;return{width:d,height:c}},Hl=(t,e,n,r)=>{const i=r.x>.5?1-r.x:r.x,s=r.y>.5?1-r.y:r.y,o=i*2*t.width,a=s*2*t.height,l=Bm(e,n);return Math.max(l.width/o,l.height/a)},Vl=(t,e)=>{let n=t.width,r=n*e;r>t.height&&(r=t.height,n=r/e);const i=(t.width-n)*.5,s=(t.height-r)*.5;return{x:i,y:s,width:n,height:r}},Um=(t,e={})=>{let{zoom:n,rotation:r,center:i,aspectRatio:s}=e;s||(s=t.height/t.width);const o=Fm(t,s,n),a={width:o.width,height:o.height},l=typeof e.scaleToFit>"u"||e.scaleToFit,d=Hl(t,Vl(a,s),r,l?i:{x:.5,y:.5}),c=n*d;return{widthFloat:o.width/c,heightFloat:o.height/c,width:Math.round(o.width/c),height:Math.round(o.height/c)}},Be={type:"spring",stiffness:.5,damping:.45,mass:10},Gm=t=>t.utils.createView({name:"image-bitmap",ignoreRect:!0,mixins:{styles:["scaleX","scaleY"]},create:({root:e,props:n})=>{e.appendChild(n.image)}}),Hm=t=>t.utils.createView({name:"image-canvas-wrapper",tag:"div",ignoreRect:!0,mixins:{apis:["crop","width","height"],styles:["originX","originY","translateX","translateY","scaleX","scaleY","rotateZ"],animations:{originX:Be,originY:Be,scaleX:Be,scaleY:Be,translateX:Be,translateY:Be,rotateZ:Be}},create:({root:e,props:n})=>{n.width=n.image.width,n.height=n.image.height,e.ref.bitmap=e.appendChildView(e.createChildView(Gm(t),{image:n.image}))},write:({root:e,props:n})=>{const{flip:r}=n.crop,{bitmap:i}=e.ref;i.scaleX=r.horizontal?-1:1,i.scaleY=r.vertical?-1:1}}),Vm=t=>t.utils.createView({name:"image-clip",tag:"div",ignoreRect:!0,mixins:{apis:["crop","markup","resize","width","height","dirty","background"],styles:["width","height","opacity"],animations:{opacity:{type:"tween",duration:250}}},didWriteView:function({root:e,props:n}){n.background&&(e.element.style.backgroundColor=n.background)},create:({root:e,props:n})=>{e.ref.image=e.appendChildView(e.createChildView(Hm(t),Object.assign({},n))),e.ref.createMarkup=()=>{e.ref.markup||(e.ref.markup=e.appendChildView(e.createChildView(xm(t),Object.assign({},n))))},e.ref.destroyMarkup=()=>{e.ref.markup&&(e.removeChildView(e.ref.markup),e.ref.markup=null)};const r=e.query("GET_IMAGE_PREVIEW_TRANSPARENCY_INDICATOR");r!==null&&(r==="grid"?e.element.dataset.transparencyIndicator=r:e.element.dataset.transparencyIndicator="color")},write:({root:e,props:n,shouldOptimize:r})=>{const{crop:i,markup:s,resize:o,dirty:a,width:l,height:d}=n;e.ref.image.crop=i;const c={width:l,height:d,center:{x:l*.5,y:d*.5}},u={width:e.ref.image.width,height:e.ref.image.height},p={x:i.center.x*u.width,y:i.center.y*u.height},h={x:c.center.x-u.width*i.center.x,y:c.center.y-u.height*i.center.y},f=Math.PI*2+i.rotation%(Math.PI*2),g=i.aspectRatio||u.height/u.width,m=typeof i.scaleToFit>"u"||i.scaleToFit,_=Hl(u,Vl(c,g),f,m?i.center:{x:.5,y:.5}),y=i.zoom*_;s&&s.length?(e.ref.createMarkup(),e.ref.markup.width=l,e.ref.markup.height=d,e.ref.markup.resize=o,e.ref.markup.dirty=a,e.ref.markup.markup=s,e.ref.markup.crop=Um(u,i)):e.ref.markup&&e.ref.destroyMarkup();const v=e.ref.image;if(r){v.originX=null,v.originY=null,v.translateX=null,v.translateY=null,v.rotateZ=null,v.scaleX=null,v.scaleY=null;return}v.originX=p.x,v.originY=p.y,v.translateX=h.x,v.translateY=h.y,v.rotateZ=f,v.scaleX=y,v.scaleY=y}}),zm=t=>t.utils.createView({name:"image-preview",tag:"div",ignoreRect:!0,mixins:{apis:["image","crop","markup","resize","dirty","background"],styles:["translateY","scaleX","scaleY","opacity"],animations:{scaleX:Be,scaleY:Be,translateY:Be,opacity:{type:"tween",duration:400}}},create:({root:e,props:n})=>{e.ref.clip=e.appendChildView(e.createChildView(Vm(t),{id:n.id,image:n.image,crop:n.crop,markup:n.markup,resize:n.resize,dirty:n.dirty,background:n.background}))},write:({root:e,props:n,shouldOptimize:r})=>{const{clip:i}=e.ref,{image:s,crop:o,markup:a,resize:l,dirty:d}=n;if(i.crop=o,i.markup=a,i.resize=l,i.dirty=d,i.opacity=r?0:1,r||e.rect.element.hidden)return;const c=s.height/s.width;let u=o.aspectRatio||c;const p=e.rect.inner.width,h=e.rect.inner.height;let f=e.query("GET_IMAGE_PREVIEW_HEIGHT");const g=e.query("GET_IMAGE_PREVIEW_MIN_HEIGHT"),m=e.query("GET_IMAGE_PREVIEW_MAX_HEIGHT"),_=e.query("GET_PANEL_ASPECT_RATIO"),y=e.query("GET_ALLOW_MULTIPLE");_&&!y&&(f=p*_,u=_);let v=f!==null?f:Math.max(g,Math.min(p*u,m)),b=v/u;b>p&&(b=p,v=b*u),v>h&&(v=h,b=h/u),i.width=b,i.height=v}});let Wm=`<svg width="500" height="200" viewBox="0 0 500 200" preserveAspectRatio="none">
    <defs>
        <radialGradient id="gradient-__UID__" cx=".5" cy="1.25" r="1.15">
            <stop offset='50%' stop-color='#000000'/>
            <stop offset='56%' stop-color='#0a0a0a'/>
            <stop offset='63%' stop-color='#262626'/>
            <stop offset='69%' stop-color='#4f4f4f'/>
            <stop offset='75%' stop-color='#808080'/>
            <stop offset='81%' stop-color='#b1b1b1'/>
            <stop offset='88%' stop-color='#dadada'/>
            <stop offset='94%' stop-color='#f6f6f6'/>
            <stop offset='100%' stop-color='#ffffff'/>
        </radialGradient>
        <mask id="mask-__UID__">
            <rect x="0" y="0" width="500" height="200" fill="url(#gradient-__UID__)"></rect>
        </mask>
    </defs>
    <rect x="0" width="500" height="200" fill="currentColor" mask="url(#mask-__UID__)"></rect>
</svg>`,Co=0;const qm=t=>t.utils.createView({name:"image-preview-overlay",tag:"div",ignoreRect:!0,create:({root:e,props:n})=>{let r=Wm;if(document.querySelector("base")){const i=new URL(window.location.href.replace(window.location.hash,"")).href;r=r.replace(/url\(\#/g,"url("+i+"#")}Co++,e.element.classList.add(`filepond--image-preview-overlay-${n.status}`),e.element.innerHTML=r.replace(/__UID__/g,Co)},mixins:{styles:["opacity"],animations:{opacity:{type:"spring",mass:25}}}}),jm=function(){self.onmessage=t=>{createImageBitmap(t.data.message.file).then(e=>{self.postMessage({id:t.data.id,message:e},[e])})}},$m=function(){self.onmessage=t=>{const e=t.data.message.imageData,n=t.data.message.colorMatrix,r=e.data,i=r.length,s=n[0],o=n[1],a=n[2],l=n[3],d=n[4],c=n[5],u=n[6],p=n[7],h=n[8],f=n[9],g=n[10],m=n[11],_=n[12],y=n[13],v=n[14],b=n[15],A=n[16],D=n[17],M=n[18],I=n[19];let N=0,B=0,P=0,x=0,W=0;for(;N<i;N+=4)B=r[N]/255,P=r[N+1]/255,x=r[N+2]/255,W=r[N+3]/255,r[N]=Math.max(0,Math.min((B*s+P*o+x*a+W*l+d)*255,255)),r[N+1]=Math.max(0,Math.min((B*c+P*u+x*p+W*h+f)*255,255)),r[N+2]=Math.max(0,Math.min((B*g+P*m+x*_+W*y+v)*255,255)),r[N+3]=Math.max(0,Math.min((B*b+P*A+x*D+W*M+I)*255,255));self.postMessage({id:t.data.id,message:e},[e.data.buffer])}},Ym=(t,e)=>{let n=new Image;n.onload=()=>{const r=n.naturalWidth,i=n.naturalHeight;n=null,e(r,i)},n.src=t},Qm={1:()=>[1,0,0,1,0,0],2:t=>[-1,0,0,1,t,0],3:(t,e)=>[-1,0,0,-1,t,e],4:(t,e)=>[1,0,0,-1,0,e],5:()=>[0,1,1,0,0,0],6:(t,e)=>[0,1,-1,0,e,0],7:(t,e)=>[0,-1,-1,0,e,t],8:t=>[0,-1,1,0,0,t]},Zm=(t,e,n,r)=>{r!==-1&&t.transform.apply(t,Qm[r](e,n))},Xm=(t,e,n,r)=>{e=Math.round(e),n=Math.round(n);const i=document.createElement("canvas");i.width=e,i.height=n;const s=i.getContext("2d");return r>=5&&r<=8&&([e,n]=[n,e]),Zm(s,e,n,r),s.drawImage(t,0,0,e,n),i},zl=t=>/^image/.test(t.type)&&!/svg/.test(t.type),Km=10,Jm=10,eE=t=>{const e=Math.min(Km/t.width,Jm/t.height),n=document.createElement("canvas"),r=n.getContext("2d"),i=n.width=Math.ceil(t.width*e),s=n.height=Math.ceil(t.height*e);r.drawImage(t,0,0,i,s);let o=null;try{o=r.getImageData(0,0,i,s).data}catch{return null}const a=o.length;let l=0,d=0,c=0,u=0;for(;u<a;u+=4)l+=o[u]*o[u],d+=o[u+1]*o[u+1],c+=o[u+2]*o[u+2];return l=Br(l,a),d=Br(d,a),c=Br(c,a),{r:l,g:d,b:c}},Br=(t,e)=>Math.floor(Math.sqrt(t/(e/4))),tE=(t,e)=>(e=e||document.createElement("canvas"),e.width=t.width,e.height=t.height,e.getContext("2d").drawImage(t,0,0),e),nE=t=>{let e;try{e=new ImageData(t.width,t.height)}catch{e=document.createElement("canvas").getContext("2d").createImageData(t.width,t.height)}return e.data.set(new Uint8ClampedArray(t.data)),e},rE=t=>new Promise((e,n)=>{const r=new Image;r.crossOrigin="Anonymous",r.onload=()=>{e(r)},r.onerror=i=>{n(i)},r.src=t}),iE=t=>{const e=qm(t),n=zm(t),{createWorker:r}=t.utils,i=(y,v,b)=>new Promise(A=>{y.ref.imageData||(y.ref.imageData=b.getContext("2d").getImageData(0,0,b.width,b.height));const D=nE(y.ref.imageData);if(!v||v.length!==20)return b.getContext("2d").putImageData(D,0,0),A();const M=r($m);M.post({imageData:D,colorMatrix:v},I=>{b.getContext("2d").putImageData(I,0,0),M.terminate(),A()},[D.data.buffer])}),s=(y,v)=>{y.removeChildView(v),v.image.width=1,v.image.height=1,v._destroy()},o=({root:y})=>{const v=y.ref.images.shift();return v.opacity=0,v.translateY=-15,y.ref.imageViewBin.push(v),v},a=({root:y,props:v,image:b})=>{const A=v.id,D=y.query("GET_ITEM",{id:A});if(!D)return;const M=D.getMetadata("crop")||{center:{x:.5,y:.5},flip:{horizontal:!1,vertical:!1},zoom:1,rotation:0,aspectRatio:null},I=y.query("GET_IMAGE_TRANSFORM_CANVAS_BACKGROUND_COLOR");let N,B,P=!1;y.query("GET_IMAGE_PREVIEW_MARKUP_SHOW")&&(N=D.getMetadata("markup")||[],B=D.getMetadata("resize"),P=!0);const x=y.appendChildView(y.createChildView(n,{id:A,image:b,crop:M,resize:B,markup:N,dirty:P,background:I,opacity:0,scaleX:1.15,scaleY:1.15,translateY:15}),y.childViews.length);y.ref.images.push(x),x.opacity=1,x.scaleX=1,x.scaleY=1,x.translateY=0,setTimeout(()=>{y.dispatch("DID_IMAGE_PREVIEW_SHOW",{id:A})},250)},l=({root:y,props:v})=>{const b=y.query("GET_ITEM",{id:v.id});if(!b)return;const A=y.ref.images[y.ref.images.length-1];A.crop=b.getMetadata("crop"),A.background=y.query("GET_IMAGE_TRANSFORM_CANVAS_BACKGROUND_COLOR"),y.query("GET_IMAGE_PREVIEW_MARKUP_SHOW")&&(A.dirty=!0,A.resize=b.getMetadata("resize"),A.markup=b.getMetadata("markup"))},d=({root:y,props:v,action:b})=>{if(!/crop|filter|markup|resize/.test(b.change.key)||!y.ref.images.length)return;const A=y.query("GET_ITEM",{id:v.id});if(A){if(/filter/.test(b.change.key)){const D=y.ref.images[y.ref.images.length-1];i(y,b.change.value,D.image);return}if(/crop|markup|resize/.test(b.change.key)){const D=A.getMetadata("crop"),M=y.ref.images[y.ref.images.length-1];if(D&&D.aspectRatio&&M.crop&&M.crop.aspectRatio&&Math.abs(D.aspectRatio-M.crop.aspectRatio)>1e-5){const I=o({root:y});a({root:y,props:v,image:tE(I.image)})}else l({root:y,props:v})}}},c=y=>{const b=window.navigator.userAgent.match(/Firefox\/([0-9]+)\./),A=b?parseInt(b[1]):null;return A!==null&&A<=58?!1:"createImageBitmap"in window&&zl(y)},u=({root:y,props:v})=>{const{id:b}=v,A=y.query("GET_ITEM",b);if(!A)return;const D=URL.createObjectURL(A.file);Ym(D,(M,I)=>{y.dispatch("DID_IMAGE_PREVIEW_CALCULATE_SIZE",{id:b,width:M,height:I})})},p=({root:y,props:v})=>{const{id:b}=v,A=y.query("GET_ITEM",b);if(!A)return;const D=URL.createObjectURL(A.file),M=()=>{rE(D).then(I)},I=N=>{URL.revokeObjectURL(D);const P=(A.getMetadata("exif")||{}).orientation||-1;let{width:x,height:W}=N;if(!x||!W)return;P>=5&&P<=8&&([x,W]=[W,x]);const C=Math.max(1,window.devicePixelRatio*.75),S=y.query("GET_IMAGE_PREVIEW_ZOOM_FACTOR")*C,O=W/x,L=y.rect.element.width,k=y.rect.element.height;let Q=L,U=Q*O;O>1?(Q=Math.min(x,L*S),U=Q*O):(U=Math.min(W,k*S),Q=U/O);const ge=Xm(N,Q,U,P),He=()=>{const Ct=y.query("GET_IMAGE_PREVIEW_CALCULATE_AVERAGE_IMAGE_COLOR")?eE(data):null;A.setMetadata("color",Ct,!0),"close"in N&&N.close(),y.ref.overlayShadow.opacity=1,a({root:y,props:v,image:ge})},ae=A.getMetadata("filter");ae?i(y,ae,ge).then(He):He()};if(c(A.file)){const N=r(jm);N.post({file:A.file},B=>{if(N.terminate(),!B){M();return}I(B)})}else M()},h=({root:y})=>{const v=y.ref.images[y.ref.images.length-1];v.translateY=0,v.scaleX=1,v.scaleY=1,v.opacity=1},f=({root:y})=>{y.ref.overlayShadow.opacity=1,y.ref.overlayError.opacity=0,y.ref.overlaySuccess.opacity=0},g=({root:y})=>{y.ref.overlayShadow.opacity=.25,y.ref.overlayError.opacity=1},m=({root:y})=>{y.ref.overlayShadow.opacity=.25,y.ref.overlaySuccess.opacity=1},_=({root:y})=>{y.ref.images=[],y.ref.imageData=null,y.ref.imageViewBin=[],y.ref.overlayShadow=y.appendChildView(y.createChildView(e,{opacity:0,status:"idle"})),y.ref.overlaySuccess=y.appendChildView(y.createChildView(e,{opacity:0,status:"success"})),y.ref.overlayError=y.appendChildView(y.createChildView(e,{opacity:0,status:"failure"}))};return t.utils.createView({name:"image-preview-wrapper",create:_,styles:["height"],apis:["height"],destroy:({root:y})=>{y.ref.images.forEach(v=>{v.image.width=1,v.image.height=1})},didWriteView:({root:y})=>{y.ref.images.forEach(v=>{v.dirty=!1})},write:t.utils.createRoute({DID_IMAGE_PREVIEW_DRAW:h,DID_IMAGE_PREVIEW_CONTAINER_CREATE:u,DID_FINISH_CALCULATE_PREVIEWSIZE:p,DID_UPDATE_ITEM_METADATA:d,DID_THROW_ITEM_LOAD_ERROR:g,DID_THROW_ITEM_PROCESSING_ERROR:g,DID_THROW_ITEM_INVALID:g,DID_COMPLETE_ITEM_PROCESSING:m,DID_START_ITEM_PROCESSING:f,DID_REVERT_ITEM_PROCESSING:f},({root:y})=>{const v=y.ref.imageViewBin.filter(b=>b.opacity===0);y.ref.imageViewBin=y.ref.imageViewBin.filter(b=>b.opacity>0),v.forEach(b=>s(y,b)),v.length=0})})},Wl=t=>{const{addFilter:e,utils:n}=t,{Type:r,createRoute:i,isFile:s}=n,o=iE(t);return e("CREATE_VIEW",a=>{const{is:l,view:d,query:c}=a;if(!l("file")||!c("GET_ALLOW_IMAGE_PREVIEW"))return;const u=({root:m,props:_})=>{const{id:y}=_,v=c("GET_ITEM",y);if(!v||!s(v.file)||v.archived)return;const b=v.file;if(!dm(b)||!c("GET_IMAGE_PREVIEW_FILTER_ITEM")(v))return;const A="createImageBitmap"in(window||{}),D=c("GET_IMAGE_PREVIEW_MAX_FILE_SIZE");if(!A&&D&&b.size>D)return;m.ref.imagePreview=d.appendChildView(d.createChildView(o,{id:y}));const M=m.query("GET_IMAGE_PREVIEW_HEIGHT");M&&m.dispatch("DID_UPDATE_PANEL_HEIGHT",{id:v.id,height:M});const I=!A&&b.size>c("GET_IMAGE_PREVIEW_MAX_INSTANT_PREVIEW_FILE_SIZE");m.dispatch("DID_IMAGE_PREVIEW_CONTAINER_CREATE",{id:y},I)},p=(m,_)=>{if(!m.ref.imagePreview)return;let{id:y}=_;const v=m.query("GET_ITEM",{id:y});if(!v)return;const b=m.query("GET_PANEL_ASPECT_RATIO"),A=m.query("GET_ITEM_PANEL_ASPECT_RATIO"),D=m.query("GET_IMAGE_PREVIEW_HEIGHT");if(b||A||D)return;let{imageWidth:M,imageHeight:I}=m.ref;if(!M||!I)return;const N=m.query("GET_IMAGE_PREVIEW_MIN_HEIGHT"),B=m.query("GET_IMAGE_PREVIEW_MAX_HEIGHT"),x=(v.getMetadata("exif")||{}).orientation||-1;if(x>=5&&x<=8&&([M,I]=[I,M]),!zl(v.file)||m.query("GET_IMAGE_PREVIEW_UPSCALE")){const L=2048/M;M*=L,I*=L}const W=I/M,C=(v.getMetadata("crop")||{}).aspectRatio||W;let z=Math.max(N,Math.min(I,B));const S=m.rect.element.width,O=Math.min(S*C,z);m.dispatch("DID_UPDATE_PANEL_HEIGHT",{id:v.id,height:O})},h=({root:m})=>{m.ref.shouldRescale=!0},f=({root:m,action:_})=>{_.change.key==="crop"&&(m.ref.shouldRescale=!0)},g=({root:m,action:_})=>{m.ref.imageWidth=_.width,m.ref.imageHeight=_.height,m.ref.shouldRescale=!0,m.ref.shouldDrawPreview=!0,m.dispatch("KICK")};d.registerWriter(i({DID_RESIZE_ROOT:h,DID_STOP_RESIZE:h,DID_LOAD_ITEM:u,DID_IMAGE_PREVIEW_CALCULATE_SIZE:g,DID_UPDATE_ITEM_METADATA:f},({root:m,props:_})=>{m.ref.imagePreview&&(m.rect.element.hidden||(m.ref.shouldRescale&&(p(m,_),m.ref.shouldRescale=!1),m.ref.shouldDrawPreview&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{m.dispatch("DID_FINISH_CALCULATE_PREVIEWSIZE",{id:_.id})})}),m.ref.shouldDrawPreview=!1)))}))}),{options:{allowImagePreview:[!0,r.BOOLEAN],imagePreviewFilterItem:[()=>!0,r.FUNCTION],imagePreviewHeight:[null,r.INT],imagePreviewMinHeight:[44,r.INT],imagePreviewMaxHeight:[256,r.INT],imagePreviewMaxFileSize:[null,r.INT],imagePreviewZoomFactor:[2,r.INT],imagePreviewUpscale:[!1,r.BOOLEAN],imagePreviewMaxInstantPreviewFileSize:[1e6,r.INT],imagePreviewTransparencyIndicator:[null,r.STRING],imagePreviewCalculateAverageImageColor:[!1,r.BOOLEAN],imagePreviewMarkupShow:[!0,r.BOOLEAN],imagePreviewMarkupFilter:[()=>!0,r.FUNCTION]}}},sE=typeof window<"u"&&typeof window.document<"u";sE&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:Wl}));var br,G,ql,jl,Ht,ut,Oo,$l,Yl,Xn={},Ql=[],oE=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Je(t,e){for(var n in e)t[n]=e[n];return t}function Zl(t){var e=t.parentNode;e&&e.removeChild(t)}function E(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?br.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 Gn(t,o,r,i,null)}function Gn(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??++ql};return i==null&&G.vnode!=null&&G.vnode(s),s}function fe(){return{current:null}}function Y(t){return t.children}function aE(t,e,n,r,i){var s;for(s in n)s==="children"||s==="key"||s in e||Kn(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]||Kn(t,s,e[s],n[s],r)}function Mo(t,e,n){e[0]==="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||oE.test(e)?n:n+"px"}function Kn(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||Mo(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||Mo(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?Po:No,s):t.removeEventListener(e,s?Po:No,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 No(t){Ht=!0;try{return this.l[t.type+!1](G.event?G.event(t):t)}finally{Ht=!1}}function Po(t){Ht=!0;try{return this.l[t.type+!0](G.event?G.event(t):t)}finally{Ht=!1}}function Re(t,e){this.props=t,this.context=e}function sn(t,e){if(e==null)return t.__?sn(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"?sn(t):null}function Xl(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 Xl(t)}}function lE(t){Ht?setTimeout(t):$l(t)}function hi(t){(!t.__d&&(t.__d=!0)&&ut.push(t)&&!Jn.__r++||Oo!==G.debounceRendering)&&((Oo=G.debounceRendering)||lE)(Jn)}function Jn(){var t,e,n,r,i,s,o,a;for(ut.sort(function(l,d){return l.__v.__b-d.__v.__b});t=ut.shift();)t.__d&&(e=ut.length,r=void 0,i=void 0,o=(s=(n=t).__v).__e,(a=n.__P)&&(r=[],(i=Je({},s)).__v=s.__v+1,qi(a,s,i,n.__n,a.ownerSVGElement!==void 0,s.__h!=null?[o]:null,r,o??sn(s),s.__h),nc(r,s),s.__e!=o&&Xl(s)),ut.length>e&&ut.sort(function(l,d){return l.__v.__b-d.__v.__b}));Jn.__r=0}function Kl(t,e,n,r,i,s,o,a,l,d){var c,u,p,h,f,g,m,_=r&&r.__k||Ql,y=_.length;for(n.__k=[],c=0;c<e.length;c++)if((h=n.__k[c]=(h=e[c])==null||typeof h=="boolean"?null:typeof h=="string"||typeof h=="number"||typeof h=="bigint"?Gn(null,h,null,null,h):Array.isArray(h)?Gn(Y,{children:h},null,null,null):h.__b>0?Gn(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)!=null){if(h.__=n,h.__b=n.__b+1,(p=_[c])===null||p&&h.key==p.key&&h.type===p.type)_[c]=void 0;else for(u=0;u<y;u++){if((p=_[u])&&h.key==p.key&&h.type===p.type){_[u]=void 0;break}p=null}qi(t,h,p=p||Xn,i,s,o,a,l,d),f=h.__e,(u=h.ref)&&p.ref!=u&&(m||(m=[]),p.ref&&m.push(p.ref,null,h),m.push(u,h.__c||f,h)),f!=null?(g==null&&(g=f),typeof h.type=="function"&&h.__k===p.__k?h.__d=l=Jl(h,l,t):l=ec(t,h,p,_,f,l),typeof n.type=="function"&&(n.__d=l)):l&&p.__e==l&&l.parentNode!=t&&(l=sn(p))}for(n.__e=g,c=y;c--;)_[c]!=null&&(typeof n.type=="function"&&_[c].__e!=null&&_[c].__e==n.__d&&(n.__d=tc(r).nextSibling),ic(_[c],_[c]));if(m)for(c=0;c<m.length;c++)rc(m[c],m[++c],m[++c])}function Jl(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"?Jl(r,e,n):ec(n,r,r,i,r.__e,e));return e}function er(t,e){return e=e||[],t==null||typeof t=="boolean"||(Array.isArray(t)?t.some(function(n){er(n,e)}):e.push(t)),e}function ec(t,e,n,r,i,s){var o,a,l;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,l=0;(a=a.nextSibling)&&l<r.length;l+=1)if(a==i)break e;t.insertBefore(i,s),o=s}return o!==void 0?o:i.nextSibling}function tc(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=tc(n)))return r}return null}function qi(t,e,n,r,i,s,o,a,l){var d,c,u,p,h,f,g,m,_,y,v,b,A,D,M,I=e.type;if(e.constructor!==void 0)return null;n.__h!=null&&(l=n.__h,a=e.__e=n.__e,e.__h=null,s=[a]),(d=G.__b)&&d(e);try{e:if(typeof I=="function"){if(m=e.props,_=(d=I.contextType)&&r[d.__c],y=d?_?_.props.value:d.__:r,n.__c?g=(c=e.__c=n.__c).__=c.__E:("prototype"in I&&I.prototype.render?e.__c=c=new I(m,y):(e.__c=c=new Re(m,y),c.constructor=I,c.render=dE),_&&_.sub(c),c.props=m,c.state||(c.state={}),c.context=y,c.__n=r,u=c.__d=!0,c.__h=[],c._sb=[]),c.__s==null&&(c.__s=c.state),I.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=Je({},c.__s)),Je(c.__s,I.getDerivedStateFromProps(m,c.__s))),p=c.props,h=c.state,c.__v=e,u)I.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(I.getDerivedStateFromProps==null&&m!==p&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(m,y),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(m,c.__s,y)===!1||e.__v===n.__v){for(e.__v!==n.__v&&(c.props=m,c.state=c.__s,c.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(N){N&&(N.__=e)}),v=0;v<c._sb.length;v++)c.__h.push(c._sb[v]);c._sb=[],c.__h.length&&o.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(m,c.__s,y),c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(p,h,f)})}if(c.context=y,c.props=m,c.__P=t,b=G.__r,A=0,"prototype"in I&&I.prototype.render){for(c.state=c.__s,c.__d=!1,b&&b(e),d=c.render(c.props,c.state,c.context),D=0;D<c._sb.length;D++)c.__h.push(c._sb[D]);c._sb=[]}else do c.__d=!1,b&&b(e),d=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++A<25);c.state=c.__s,c.getChildContext!=null&&(r=Je(Je({},r),c.getChildContext())),u||c.getSnapshotBeforeUpdate==null||(f=c.getSnapshotBeforeUpdate(p,h)),M=d!=null&&d.type===Y&&d.key==null?d.props.children:d,Kl(t,Array.isArray(M)?M:[M],e,n,r,i,s,o,a,l),c.base=e.__e,e.__h=null,c.__h.length&&o.push(c),g&&(c.__E=c.__=null),c.__e=!1}else s==null&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=cE(n.__e,e,n,r,i,s,o,l);(d=G.diffed)&&d(e)}catch(N){e.__v=null,(l||s!=null)&&(e.__e=a,e.__h=!!l,s[s.indexOf(a)]=null),G.__e(N,e,n)}}function nc(t,e){G.__c&&G.__c(e,t),t.some(function(n){try{t=n.__h,n.__h=[],t.some(function(r){r.call(n)})}catch(r){G.__e(r,n.__v)}})}function cE(t,e,n,r,i,s,o,a){var l,d,c,u=n.props,p=e.props,h=e.type,f=0;if(h==="svg"&&(i=!0),s!=null){for(;f<s.length;f++)if((l=s[f])&&"setAttribute"in l==!!h&&(h?l.localName===h:l.nodeType===3)){t=l,s[f]=null;break}}if(t==null){if(h===null)return document.createTextNode(p);t=i?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,p.is&&p),s=null,a=!1}if(h===null)u===p||a&&t.data===p||(t.data=p);else{if(s=s&&br.call(t.childNodes),d=(u=n.props||Xn).dangerouslySetInnerHTML,c=p.dangerouslySetInnerHTML,!a){if(s!=null)for(u={},f=0;f<t.attributes.length;f++)u[t.attributes[f].name]=t.attributes[f].value;(c||d)&&(c&&(d&&c.__html==d.__html||c.__html===t.innerHTML)||(t.innerHTML=c&&c.__html||""))}if(aE(t,p,u,i,a),c)e.__k=[];else if(f=e.props.children,Kl(t,Array.isArray(f)?f:[f],e,n,r,i&&h!=="foreignObject",s,o,s?s[0]:n.__k&&sn(n,0),a),s!=null)for(f=s.length;f--;)s[f]!=null&&Zl(s[f]);a||("value"in p&&(f=p.value)!==void 0&&(f!==t.value||h==="progress"&&!f||h==="option"&&f!==u.value)&&Kn(t,"value",f,u.value,!1),"checked"in p&&(f=p.checked)!==void 0&&f!==t.checked&&Kn(t,"checked",f,u.checked,!1))}return t}function rc(t,e,n){try{typeof t=="function"?t(e):t.current=e}catch(r){G.__e(r,n)}}function ic(t,e,n){var r,i;if(G.unmount&&G.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||rc(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){G.__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]&&ic(r[i],e,n||typeof t.type!="function");n||t.__e==null||Zl(t.__e),t.__=t.__e=t.__d=void 0}function dE(t,e,n){return this.constructor(t,n)}function on(t,e,n){var r,i,s;G.__&&G.__(t,e),i=(r=!1)?null:e.__k,s=[],qi(e,t=e.__k=E(Y,null,[t]),i||Xn,Xn,e.ownerSVGElement!==void 0,i?null:e.firstChild?br.call(e.childNodes):null,s,i?i.__e:e.firstChild,r),nc(s,t)}function uE(t,e){var n={__c:e="__cC"+Yl++,__: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,hi(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}br=Ql.slice,G={__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}},ql=0,jl=function(t){return t!=null&&t.constructor===void 0},Ht=!1,Re.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Je({},this.state),typeof t=="function"&&(t=t(Je({},n),this.props)),t&&Je(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),hi(this))},Re.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),hi(this))},Re.prototype.render=Y,ut=[],$l=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Jn.__r=0,Yl=0;var Fe,Fr,xo,sc=[],Ur=[],Lo=G.__b,ko=G.__r,Bo=G.diffed,Fo=G.__c,Uo=G.unmount;function fE(){for(var t;t=sc.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Hn),t.__H.__h.forEach(pi),t.__H.__h=[]}catch(e){t.__H.__h=[],G.__e(e,t.__v)}}G.__b=function(t){Fe=null,Lo&&Lo(t)},G.__r=function(t){ko&&ko(t);var e=(Fe=t.__c).__H;e&&(Fr===Fe?(e.__h=[],Fe.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Ur,n.__N=n.i=void 0})):(e.__h.forEach(Hn),e.__h.forEach(pi),e.__h=[])),Fr=Fe},G.diffed=function(t){Bo&&Bo(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(sc.push(e)!==1&&xo===G.requestAnimationFrame||((xo=G.requestAnimationFrame)||hE)(fE)),e.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Ur&&(n.__=n.__V),n.i=void 0,n.__V=Ur})),Fr=Fe=null},G.__c=function(t,e){e.some(function(n){try{n.__h.forEach(Hn),n.__h=n.__h.filter(function(r){return!r.__||pi(r)})}catch(r){e.some(function(i){i.__h&&(i.__h=[])}),e=[],G.__e(r,n.__v)}}),Fo&&Fo(t,e)},G.unmount=function(t){Uo&&Uo(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Hn(r)}catch(i){e=i}}),n.__H=void 0,e&&G.__e(e,n.__v))};var Go=typeof requestAnimationFrame=="function";function hE(t){var e,n=function(){clearTimeout(r),Go&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);Go&&(e=requestAnimationFrame(n))}function Hn(t){var e=Fe,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),Fe=e}function pi(t){var e=Fe;t.__c=t.__(),Fe=e}function pE(t,e){for(var n in e)t[n]=e[n];return t}function Ho(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 Vo(t){this.props=t}(Vo.prototype=new Re).isPureReactComponent=!0,Vo.prototype.shouldComponentUpdate=function(t,e){return Ho(this.props,t)||Ho(this.state,e)};var zo=G.__b;G.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),zo&&zo(t)};var gE=G.__e;G.__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)}gE(t,e,n,r)};var Wo=G.unmount;function oc(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=pE({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(r){return oc(r,e,n)})),t}function ac(t,e,n){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(r){return ac(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 Gr(){this.__u=0,this.t=null,this.__b=null}function lc(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function wn(){this.u=null,this.o=null}G.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),Wo&&Wo(t)},(Gr.prototype=new Re).__c=function(t,e){var n=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var i=lc(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 d=r.state.__a;r.__v.__k[0]=ac(d,d.__c.__P,d.__c.__O)}var c;for(r.setState({__a:r.__b=null});c=r.t.pop();)c.forceUpdate()}},l=e.__h===!0;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),t.then(o,o)},Gr.prototype.componentWillUnmount=function(){this.t=[]},Gr.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]=oc(this.__b,n,r.__O=r.__P)}this.__b=null}var i=e.__a&&E(Y,null,t.fallback);return i&&(i.__h=null),[E(Y,null,e.__a?null:t.children),i]};var qo=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 mE(t){return this.getChildContext=function(){return t.context},t.children}function EE(t){var e=this,n=t.i;e.componentWillUnmount=function(){on(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)}}),on(E(mE,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function yE(t,e){var n=E(EE,{__v:t,i:e});return n.containerInfo=e,n}(wn.prototype=new Re).__a=function(t){var e=this,n=lc(e.__v),r=e.o.get(t);return r[0]++,function(i){var s=function(){e.props.revealOrder?(r.push(i),qo(e,t,r)):i()};n?n(s):s()}},wn.prototype.render=function(t){this.u=null,this.o=new Map;var e=er(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},wn.prototype.componentDidUpdate=wn.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){qo(t,n,e)})};var _E=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,vE=/^(?: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]/,bE=typeof document<"u",TE=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};Re.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(Re.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var jo=G.event;function RE(){}function AE(){return this.cancelBubble}function IE(){return this.defaultPrevented}G.event=function(t){return jo&&(t=jo(t)),t.persist=RE,t.isPropagationStopped=AE,t.isDefaultPrevented=IE,t.nativeEvent=t};var $o={configurable:!0,get:function(){return this.class}},Yo=G.vnode;G.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];bE&&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)&&!TE(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&&vE.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=er(n.children).forEach(function(a){a.props.selected=r.value.indexOf(a.props.value)!=-1})),e=="select"&&r.defaultValue!=null&&(r.value=er(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&&($o.enumerable="className"in n,n.className!=null&&(r.class=n.className),Object.defineProperty(r,"className",$o))}t.$$typeof=_E,Yo&&Yo(t)};var Qo=G.__r;G.__r=function(t){Qo&&Qo(t),t.__c};const cc=[],gi=new Map;function Tr(t){cc.push(t),gi.forEach(e=>{uc(e,t)})}function SE(t){t.isConnected&&t.getRootNode&&dc(t.getRootNode())}function dc(t){let e=gi.get(t);if(!e||!e.isConnected){if(e=t.querySelector("style[data-fullcalendar]"),!e){e=document.createElement("style"),e.setAttribute("data-fullcalendar","");const n=wE();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)}gi.set(t,e),DE(e)}}function DE(t){for(const e of cc)uc(t,e)}function uc(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 Hr;function wE(){return Hr===void 0&&(Hr=CE()),Hr}function CE(){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"&&dc(document);var OE=':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)}';Tr(OE);class ji{constructor(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),e==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))}pause(e=""){let{pauseDepths:n}=this;n[e]=(n[e]||0)+1,this.clearTimeout()}resume(e="",n){let{pauseDepths: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 ME(t){t.parentNode&&t.parentNode.removeChild(t)}function ze(t,e){if(t.closest)return t.closest(e);if(!document.documentElement.contains(t))return null;do{if(NE(t,e))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===1);return null}function NE(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector).call(t,e)}function PE(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 xE=/(top|left|right|bottom|width|height)$/i;function LE(t,e){for(let n in e)fc(t,n,e[n])}function fc(t,e,n){n==null?t.style[e]="":typeof n=="number"&&xE.test(e)?t.style[e]=`${n}px`:t.style[e]=n}function kE(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 Zo=0;function rt(){return Zo+=1,"fc-dom-"+Zo}function BE(t,e){return n=>{let r=ze(n.target,t);r&&e.call(r,n,r)}}function hc(t,e,n,r){let i=BE(n,r);return t.addEventListener(e,i),()=>{t.removeEventListener(e,i)}}function FE(t,e,n,r){let i;return hc(t,"mouseover",e,(s,o)=>{if(o!==i){i=o,n(s,o);let a=l=>{i=null,r(l,o),o.removeEventListener("mouseleave",a)};o.addEventListener("mouseleave",a)}})}function pc(t){return Object.assign({onClick:t},gc(t))}function gc(t){return{tabIndex:0,onKeyDown(e){(e.key==="Enter"||e.key===" ")&&(t(e),e.preventDefault())}}}let Xo=0;function St(){return Xo+=1,String(Xo)}function UE(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 GE(t,e,n){let r,i;for(r=0;r<n.length;r+=1)if(i=HE(t,e,n[r]),i)return i;return 0}function HE(t,e,n){return n.func?n.func(t,e):VE(t[n.field],e[n.field])*(n.order||1)}function VE(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 kt(t,e){let n=String(t);return"000".substr(0,e-n.length)+n}function en(t,e,n){return typeof t=="function"?t(...e):typeof t=="string"?e.reduce((r,i,s)=>r.replace("$"+s,i||""),t):n}function Vn(t){return t%1===0}function zE(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 Ko=["years","months","days","milliseconds"],WE=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function j(t,e){return typeof t=="string"?qE(t):typeof t=="object"&&t?Jo(t):typeof t=="number"?Jo({[e||"milliseconds"]:t}):null}function qE(t){let e=WE.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 Jo(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 jE(t,e){return t.years===e.years&&t.months===e.months&&t.days===e.days&&t.milliseconds===e.milliseconds}function mi(t,e){return{years:t.years+e.years,months:t.months+e.months,days:t.days+e.days,milliseconds:t.milliseconds+e.milliseconds}}function $E(t,e){return{years:t.years-e.years,months:t.months-e.months,days:t.days-e.days,milliseconds:t.milliseconds-e.milliseconds}}function YE(t,e){return{years:t.years*e,months:t.months*e,days:t.days*e,milliseconds:t.milliseconds*e}}function QE(t){return Bt(t)/365}function ZE(t){return Bt(t)/30}function Bt(t){return Pe(t)/864e5}function Pe(t){return t.years*(365*864e5)+t.months*(30*864e5)+t.days*864e5+t.milliseconds}function $i(t,e){let n=null;for(let r=0;r<Ko.length;r+=1){let i=Ko[r];if(e[i]){let s=t[i]/e[i];if(!Vn(s)||n!==null&&n!==s)return null;n=s}else if(t[i])return null}return n}function Ei(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 it(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 XE=["sun","mon","tue","wed","thu","fri","sat"];function ea(t,e){let n=et(t);return n[2]+=e*7,_e(n)}function ne(t,e){let n=et(t);return n[2]+=e,_e(n)}function st(t,e){let n=et(t);return n[6]+=e,_e(n)}function KE(t,e){return at(t,e)/7}function at(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60*24)}function JE(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60)}function ey(t,e){return(e.valueOf()-t.valueOf())/(1e3*60)}function ty(t,e){return(e.valueOf()-t.valueOf())/1e3}function ny(t,e){let n=Z(t),r=Z(e);return{years:0,months:0,days:Math.round(at(n,r)),milliseconds:e.valueOf()-r.valueOf()-(t.valueOf()-n.valueOf())}}function ry(t,e){let n=tr(t,e);return n!==null&&n%7===0?n/7:null}function tr(t,e){return tt(t)===tt(e)?Math.round(at(t,e)):null}function Z(t){return _e([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()])}function iy(t){return _e([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours()])}function sy(t){return _e([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes()])}function oy(t){return _e([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()])}function ay(t,e,n){let r=t.getUTCFullYear(),i=Vr(t,r,e,n);if(i<1)return Vr(t,r-1,e,n);let s=Vr(t,r+1,e,n);return s>=1?Math.min(i,s):i}function Vr(t,e,n,r){let i=_e([e,0,1+ly(e,n,r)]),s=Z(t),o=Math.round(at(i,s));return Math.floor(o/7)+1}function ly(t,e,n){let r=7+e-n;return-((7+_e([t,0,r]).getUTCDay()-e)%7)+r-1}function ta(t){return[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()]}function na(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 et(t){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()]}function _e(t){return t.length===1&&(t=t.concat([0])),new Date(Date.UTC(...t))}function mc(t){return!isNaN(t.valueOf())}function tt(t){return t.getUTCHours()*1e3*60*60+t.getUTCMinutes()*1e3*60+t.getUTCSeconds()*1e3+t.getUTCMilliseconds()}function Ec(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",Yi(e,!0)))),r}function gn(t){return t.toISOString().replace(/T.*$/,"")}function cy(t){return t.toISOString().match(/^\d{4}-\d{2}/)[0]}function dy(t){return kt(t.getUTCHours(),2)+":"+kt(t.getUTCMinutes(),2)+":"+kt(t.getUTCSeconds(),2)}function Yi(t,e=!1){let n=t<0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),s=Math.round(r%60);return e?`${n+kt(i,2)}:${kt(s,2)}`:`GMT${n}${i}${s?`:${kt(s,2)}`:""}`}function F(t,e,n){let r,i;return function(...s){if(!r)i=t.apply(this,s);else if(!it(r,s)){let o=t.apply(this,s);(!e||!e(o,i))&&(i=o)}return r=s,i}}function zn(t,e,n){let r,i;return s=>(r?xe(r,s)||(i=t.call(this,s)):i=t.call(this,s),r=s,i)}const zr={week:3,separator:9,omitZeroMinute:9,meridiem:9,omitCommas:9},nr={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Cn=/\s*([ap])\.?m\.?/i,uy=/,/g,fy=/\s+/g,hy=/\u200e/g,py=/UTC|GMT/;class gy{constructor(e){let n={},r={},i=9;for(let s in e)s in zr?(r[s]=e[s],zr[s]<9&&(i=Math.min(zr[s],i))):(n[s]=e[s],s in nr&&(i=Math.min(nr[s],i)));this.standardDateProps=n,this.extendedSettings=r,this.smallestUnitNum=i,this.buildFormattingFunc=F(ra)}format(e,n){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,n)(e)}formatRange(e,n,r,i){let{standardDateProps:s,extendedSettings:o}=this,a=by(e.marker,n.marker,r.calendarSystem);if(!a)return this.format(e,r);let l=a;l>1&&(s.year==="numeric"||s.year==="2-digit")&&(s.month==="numeric"||s.month==="2-digit")&&(s.day==="numeric"||s.day==="2-digit")&&(l=1);let d=this.format(e,r),c=this.format(n,r);if(d===c)return d;let u=Ty(s,l),p=ra(u,o,r),h=p(e),f=p(n),g=Ry(d,h,c,f),m=o.separator||i||r.defaultSeparator||"";return g?g.before+h+m+f+g.after:d+m+c}getSmallestUnit(){switch(this.smallestUnitNum){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}}function ra(t,e,n){let r=Object.keys(t).length;return r===1&&t.timeZoneName==="short"?i=>Yi(i.timeZoneOffset):r===0&&e.week?i=>vy(n.computeWeekNumber(i.marker),n.weekText,n.weekTextLong,n.locale,e.week):my(t,e,n)}function my(t,e,n){t=Object.assign({},t),e=Object.assign({},e),Ey(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 l=a.format(o);return yy(l,s,t,e,n)}}function Ey(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 yy(t,e,n,r,i){return t=t.replace(hy,""),n.timeZoneName==="short"&&(t=_y(t,i.timeZone==="UTC"||e.timeZoneOffset==null?"UTC":Yi(e.timeZoneOffset))),r.omitCommas&&(t=t.replace(uy,"").trim()),r.omitZeroMinute&&(t=t.replace(":00","")),r.meridiem===!1?t=t.replace(Cn,"").trim():r.meridiem==="narrow"?t=t.replace(Cn,(s,o)=>o.toLocaleLowerCase()):r.meridiem==="short"?t=t.replace(Cn,(s,o)=>`${o.toLocaleLowerCase()}m`):r.meridiem==="lowercase"&&(t=t.replace(Cn,s=>s.toLocaleLowerCase())),t=t.replace(fy," "),t=t.trim(),t}function _y(t,e){let n=!1;return t=t.replace(py,()=>(n=!0,e)),n||(t+=` ${e}`),t}function vy(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 by(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:tt(t)!==tt(e)?1:0}function Ty(t,e){let n={};for(let r in t)(!(r in nr)||nr[r]<=e)&&(n[r]=t[r]);return n}function Ry(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),l=0;for(;l<n.length;){let d=n.indexOf(r,l);if(d===-1)break;let c=n.substr(0,d);l=d+r.length;let u=n.substr(l);if(o===c&&a===u)return{before:o,after:a}}}return null}function ia(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 rr(t,e,n,r){let i=ia(t,n.calendarSystem),s=e?ia(e,n.calendarSystem):null;return{date:i,start:i,end:s,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}class Ay{constructor(e){this.cmdStr=e}format(e,n,r){return n.cmdFormatter(this.cmdStr,rr(e,null,n,r))}formatRange(e,n,r,i){return r.cmdFormatter(this.cmdStr,rr(e,n,r,i))}}class Iy{constructor(e){this.func=e}format(e,n,r){return this.func(rr(e,null,n,r))}formatRange(e,n,r,i){return this.func(rr(e,n,r,i))}}function X(t){return typeof t=="object"&&t?new gy(t):typeof t=="string"?new Ay(t):typeof t=="function"?new Iy(t):null}const sa={navLinkDayClick:R,navLinkWeekClick:R,duration:j,bootstrapFontAwesome:R,buttonIcons:R,customButtons:R,defaultAllDayEventDuration:j,defaultTimedEventDuration:j,nextDayThreshold:j,scrollTime:j,scrollTimeReset:Boolean,slotMinTime:j,slotMaxTime:j,dayPopoverFormat:X,slotDuration:j,snapDuration:j,headerToolbar:R,footerToolbar:R,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:X,dayHeaderClassNames:R,dayHeaderContent:R,dayHeaderDidMount:R,dayHeaderWillUnmount:R,dayCellClassNames:R,dayCellContent:R,dayCellDidMount:R,dayCellWillUnmount:R,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:R,weekNumbers:Boolean,weekNumberClassNames:R,weekNumberContent:R,weekNumberDidMount:R,weekNumberWillUnmount:R,editable:Boolean,viewClassNames:R,viewDidMount:R,viewWillUnmount:R,nowIndicator:Boolean,nowIndicatorSnap:R,nowIndicatorClassNames:R,nowIndicatorContent:R,nowIndicatorDidMount:R,nowIndicatorWillUnmount:R,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:R,locale:R,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:R,eventOrder:UE,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:R,contentHeight:R,direction:String,weekNumberFormat:X,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:R,initialDate:R,now:R,eventDataTransform:R,stickyHeaderDates:R,stickyFooterScrollbar:R,viewHeight:R,defaultAllDay:Boolean,eventSourceFailure:R,eventSourceSuccess:R,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:R,eventConstraint:R,eventAllow:R,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:R,eventContent:R,eventDidMount:R,eventWillUnmount:R,selectConstraint:R,selectOverlap:R,selectAllow:R,droppable:Boolean,unselectCancel:String,slotLabelFormat:R,slotLaneClassNames:R,slotLaneContent:R,slotLaneDidMount:R,slotLaneWillUnmount:R,slotLabelClassNames:R,slotLabelContent:R,slotLabelDidMount:R,slotLabelWillUnmount:R,dayMaxEvents:R,dayMaxEventRows:R,dayMinWidth:Number,slotLabelInterval:j,allDayText:String,allDayClassNames:R,allDayContent:R,allDayDidMount:R,allDayWillUnmount:R,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:X,rerenderDelay:Number,moreLinkText:R,moreLinkHint:R,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:R,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:j,hiddenDays:R,fixedWeekCount:Boolean,validRange:R,visibleRange:R,titleFormat:R,eventInteractive:Boolean,noEventsText:String,viewHint:R,navLinkHint:R,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:R,moreLinkClassNames:R,moreLinkContent:R,moreLinkDidMount:R,moreLinkWillUnmount:R,monthStartFormat:X,handleCustomRendering:R,customRenderingMetaMap:R,customRenderingReplaces:Boolean},tn={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"},nowIndicatorSnap:"auto"},oa={datesSet:R,eventsSet:R,eventAdd:R,eventChange:R,eventRemove:R,windowResize:R,eventClick:R,eventMouseEnter:R,eventMouseLeave:R,select:R,unselect:R,loading:R,_unmount:R,_beforeprint:R,_afterprint:R,_noEventDrop:R,_noEventResize:R,_resize:R,_scrollRequest:R},aa={buttonText:R,buttonHints:R,views:R,plugins:R,initialEvents:R,events:R,eventSources:R},ct={headerToolbar:dt,footerToolbar:dt,buttonText:dt,buttonHints:dt,buttonIcons:dt,dateIncrement:dt,plugins:On,events:On,eventSources:On,resources:On};function dt(t,e){return typeof t=="object"&&typeof e=="object"&&t&&e?xe(t,e):t===e}function On(t,e){return Array.isArray(t)&&Array.isArray(e)?it(t,e):t===e}const Sy={type:String,component:R,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:R,usesMinMaxTime:Boolean,classNames:R,content:R,didMount:R,willUnmount:R};function Wr(t){return Zi(t,ct)}function Qi(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 R(t){return t}const{hasOwnProperty:ir}=Object.prototype;function Zi(t,e){let n={};if(e){for(let r in e)if(e[r]===dt){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]=Zi(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 Vt(t,e){let n={};for(let r in t)e(t[r],r)&&(n[r]=t[r]);return n}function Rt(t,e){let n={};for(let r in t)n[r]=e(t[r],r);return n}function yc(t){let e={};for(let n of t)e[n]=!0;return e}function Xi(t){let e=[];for(let n in t)e.push(t[n]);return e}function xe(t,e){if(t===e)return!0;for(let n in t)if(ir.call(t,n)&&!(n in e))return!1;for(let n in e)if(ir.call(e,n)&&t[n]!==e[n])return!1;return!0}const Dy=/^on[A-Z]/;function wy(t,e){const n=Cy(t,e);for(let r of n)if(!Dy.test(r))return!1;return!0}function Cy(t,e){let n=[];for(let r in t)ir.call(t,r)&&(r in e||n.push(r));for(let r in e)ir.call(e,r)&&t[r]!==e[r]&&n.push(r);return n}function qr(t,e,n={}){if(t===e)return!0;for(let r in e)if(!(r in t&&Oy(t[r],e[r],n[r])))return!1;for(let r in t)if(!(r in e))return!1;return!0}function Oy(t,e,n){return t===e||n===!0?!0:n?n(t,e):!1}function My(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 _c={};function Ny(t,e){_c[t]=e}function Py(t){return new _c[t]}class xy{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return _e(e)}markerToArray(e){return et(e)}}Ny("gregory",xy);const Ly=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function ky(t){let e=Ly.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(mc(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 By{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=Py(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()):_e(ta(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=_e(e)),n===null||!mc(n)?null:{marker:n,isTimeUnspecified:!1,forcedTzo:null}}parse(e){let n=ky(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 tt(e)===tt(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 tt(e)===tt(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=ry(e,n),r!==null?{unit:"week",value:r}:(r=tr(e,n),r!==null?{unit:"day",value:r}:(r=JE(e,n),Vn(r)?{unit:"hour",value:r}:(r=ey(e,n),Vn(r)?{unit:"minute",value:r}:(r=ty(e,n),Vn(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/QE(r):r.months&&(i=this.diffWholeMonths(e,n),i!==null)?i/ZE(r):r.days&&(i=tr(e,n),i!==null)?i/Bt(r):(n.valueOf()-e.valueOf())/Pe(r)}startOf(e,n){return n==="year"?this.startOfYear(e):n==="month"?this.startOfMonth(e):n==="week"?this.startOfWeek(e):n==="day"?Z(e):n==="hour"?iy(e):n==="minute"?sy(e):n==="second"?oy(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)):ay(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=st(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)),Ec(e,r,n.omitTime)}timestampToMarker(e){return this.timeZone==="local"?_e(ta(new Date(e))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(e):_e(this.namedTimeZoneImpl.timestampToArray(e))}offsetForMarker(e){return this.timeZone==="local"?-na(et(e)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(et(e)):null}toDate(e,n){return this.timeZone==="local"?na(et(e)):this.timeZone==="UTC"?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-this.namedTimeZoneImpl.offsetForArray(et(e))*1e3*60):new Date(e.valueOf()-(n||0))}}class mn{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)}`:""}}mn.prototype.classes={};mn.prototype.iconClasses={};mn.prototype.baseIconClass="";mn.prototype.iconOverridePrefix="";function sr(t){t();let e=G.debounceRendering,n=[];function r(i){n.push(i)}for(G.debounceRendering=r,on(E(Fy,{}),document.createElement("div"));n.length;)n.shift()();G.debounceRendering=e}class Fy extends Re{render(){return E("div",{})}componentDidMount(){this.setState({})}}function vc(t){let e=uE(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 Uy{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 Ze=vc({});function Gy(t,e,n,r,i,s,o,a,l,d,c,u,p,h){return{dateEnv:i,nowManager:s,options:n,pluginHooks:a,emitter:c,dispatch:l,getCurrentData:d,calendarApi:u,viewSpec:t,viewApi:e,dateProfileGenerator:r,theme:o,isRtl:n.direction==="rtl",addResizeHandler(f){c.on("_resize",f)},removeResizeHandler(f){c.off("_resize",f)},createScrollResponder(f){return new Uy(f,c,j(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:p,unregisterInteractiveComponent:h}}class Dt extends Re{shouldComponentUpdate(e,n){return!qr(this.props,e,this.propEquality)||!qr(this.state,n,this.stateEquality)}safeSetState(e){qr(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}Dt.addPropsEquality=Hy;Dt.addStateEquality=Vy;Dt.contextType=Ze;Dt.prototype.propEquality={};Dt.prototype.stateEquality={};class $ extends Dt{}$.contextType=Ze;function Hy(t){let e=Object.create(this.prototype.propEquality);Object.assign(e,t),this.prototype.propEquality=e}function Vy(t){let e=Object.create(this.prototype.stateEquality);Object.assign(e,t),this.prototype.stateEquality=e}function Ge(t,e){typeof t=="function"?t(e):t&&(t.current=e)}class Ki extends ${constructor(){super(...arguments),this.id=St(),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&&Ge(this.props.elRef,e)}}render(){const{props:e,context:n}=this,{options:r}=n,{customGenerator:i,defaultGenerator:s,renderProps:o}=e,a=bc(e,[],this.handleEl);let l=!1,d,c=[],u;if(i!=null){const p=typeof i=="function"?i(o,E):i;if(p===!0)l=!0;else{const h=p&&typeof p=="object";h&&"html"in p?a.dangerouslySetInnerHTML={__html:p.html}:h&&"domNodes"in p?c=Array.prototype.slice.call(p.domNodes):(h?jl(p):typeof p!="function")?d=p:u=p}}else l=!yi(e.generatorName,r);return l&&s&&(d=s(o)),this.queuedDomNodes=c,this.currentGeneratorMeta=u,E(e.elTag,a,d)}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(zy)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:n}=this,r=this.base;if(!it(e,n)){n.forEach(ME);for(let i of e)r.appendChild(i);this.currentDomNodes=e}}}Ki.addPropsEquality({elClasses:it,elStyle:xe,elAttrs:wy,renderProps:xe});function yi(t,e){var n;return!!(e.handleCustomRendering&&t&&(!((n=e.customRenderingMetaMap)===null||n===void 0)&&n[t]))}function bc(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 zy(t){return!!t}const Tc=vc(0);class de extends Re{constructor(){super(...arguments),this.InnerContent=Wy.bind(void 0,this),this.handleEl=e=>{this.el=e,this.props.elRef&&(Ge(this.props.elRef,e),e&&this.didMountMisfire&&this.componentDidMount())}}render(){const{props:e}=this,n=qy(e.classNameGenerator,e.renderProps);if(e.children){const r=bc(e,n,this.handleEl),i=e.children(this.InnerContent,e.renderProps,r);return e.elTag?E(e.elTag,r,i):i}else return E(Ki,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}))}}de.contextType=Tc;function Wy(t,e){const n=t.props;return E(Ki,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:t.context},e))}function qy(t,e){const n=typeof t=="function"?t(e):t||[];return typeof n=="string"?[n]:n}class an extends ${render(){let{props:e,context:n}=this,{options:r}=n,i={view:n.viewApi};return E(de,{elRef:e.elRef,elTag:e.elTag||"div",elAttrs:e.elAttrs,elClasses:[...Rc(e.viewSpec),...e.elClasses||[]],elStyle:e.elStyle,renderProps:i,classNameGenerator:r.viewClassNames,generatorName:void 0,didMount:r.viewDidMount,willUnmount:r.viewWillUnmount},()=>e.children)}}function Rc(t){return[`fc-${t.type}-view`,"fc-view"]}function jy(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 la(t,e){let n=[],{start:r}=e,i,s;for(t.sort($y),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 $y(t,e){return t.start.valueOf()-e.start.valueOf()}function ot(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 Yy(t,e){return(t.end===null||e.start===null||t.end>e.start)&&(t.start===null||e.end===null||t.start<e.end)}function qe(t,e){return(t.start===null||e>=t.start)&&(t.end===null||e<t.end)}function Qy(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 Ac(t){let e=Math.floor(at(t.start,t.end))||1,n=Z(t.start),r=ne(n,e);return{start:n,end:r}}function Ji(t,e=j(0)){let n=null,r=null;if(t.end){r=Z(t.end);let i=t.end.valueOf()-r.valueOf();i&&i>=Pe(e)&&(r=ne(r,1))}return t.start&&(n=Z(t.start),r&&r<=n&&(r=ne(n,1))),{start:n,end:r}}function Zy(t){let e=Ji(t);return at(e.start,e.end)>1}function Mn(t,e,n,r){return r==="year"?j(n.diffWholeYears(t,e),"year"):r==="month"?j(n.diffWholeMonths(t,e),"month"):ny(t,e)}class Ic{constructor(e){this.props=e,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,l,d,c;return s=this.buildValidRange(),s=this.trimHiddenDays(s),r&&(e=Qy(e,s)),o=this.buildCurrentRangeInfo(e,n),a=/^(year|month|week|day)$/.test(o.unit),l=this.buildRenderRange(this.trimHiddenDays(o.range),o.unit,a),l=this.trimHiddenDays(l),d=l,i.showNonCurrentDates||(d=ot(d,o.range)),d=this.adjustActiveRange(d),d=ot(d,s),c=Yy(o.range,s),qe(l,e)||(e=l.start),{currentDate:e,validRange:s,currentRange:o.range,currentRangeUnit:o.unit,isRangeAllDay:a,activeRange:d,renderRange:l,slotMinTime:i.slotMinTime,slotMaxTime:i.slotMaxTime,isValid:c,dateIncrement:this.buildDateIncrement(o.duration)}}buildValidRange(){let e=this.props.validRangeInput,n=typeof e=="function"?e.call(this.props.calendarApi,this.props.dateEnv.toDate(this.props.nowManager.getDateMarker())):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=Ei(i).unit,o=this.buildRangeFromDuration(e,n,i,s)),{duration:i,unit:s,range:o}}getFallbackDuration(){return j({day:1})}adjustActiveRange(e){let{dateEnv:n,usesMinMaxTime:r,slotMinTime:i,slotMaxTime:s}=this.props,{start:o,end:a}=e;return r&&(Bt(i)<0&&(o=Z(o),o=n.add(o,i)),Bt(s)>1&&(a=Z(a),a=ne(a,-1),a=n.add(a,s))),{start:o,end:a}}buildRangeFromDuration(e,n,r,i){let{dateEnv:s,dateAlignment:o}=this.props,a,l,d;if(!o){let{dateIncrement:u}=this.props;u&&Pe(u)<Pe(r)?o=Ei(u).unit:o=i}Bt(r)<=1&&this.isHiddenDay(a)&&(a=this.skipHiddenDays(a,n),a=Z(a));function c(){a=s.startOf(e,o),l=s.add(a,r),d={start:a,end:l}}return c(),this.trimHiddenDays(d)||(e=this.skipHiddenDays(e,n),c()),d}buildRangeFromDayCount(e,n,r){let{dateEnv:i,dateAlignment:s}=this.props,o=0,a=e,l;s&&(a=i.startOf(a,s)),a=Z(a),a=this.skipHiddenDays(a,n),l=a;do l=ne(l,1),this.isHiddenDay(l)||(o+=1);while(o<r);return{start:a,end:l}}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)?j(1,r):e||j({days:1}))}refineRange(e){if(e){let n=jy(e,this.props.dateEnv);return n&&(n=Ji(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=ne(e,n);return e}}function es(t,e,n,r){return{instanceId:St(),defId:t,range:e,forcedStartTzo:n??null,forcedEndTzo:r??null}}function Xy(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 En(t,e,n){let{dateEnv:r,pluginHooks:i,options:s}=n,{defs:o,instances:a}=t;a=Vt(a,l=>!o[l.defId].recurringDef);for(let l in o){let d=o[l];if(d.recurringDef){let{duration:c}=d.recurringDef;c||(c=d.allDay?s.defaultAllDayEventDuration:s.defaultTimedEventDuration);let u=Ky(d,c,e,r,i.recurringTypes);for(let p of u){let h=es(l,{start:p,end:r.add(p,c)});a[h.instanceId]=h}}}return{defs:o,instances:a}}function Ky(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(Z)),o}const Wn={id:String,groupId:String,title:String,url:String,interactive:Boolean},Sc={start:R,end:R,date:R,allDay:Boolean},Jy=Object.assign(Object.assign(Object.assign({},Wn),Sc),{extendedProps:R});function Dc(t,e,n,r,i=ts(n),s,o){let{refined:a,extra:l}=wc(t,n,i),d=t_(e,n),c=Xy(a,d,n.dateEnv,n.pluginHooks.recurringTypes);if(c){let p=_i(a,l,e?e.sourceId:"",c.allDay,!!c.duration,n,s);return p.recurringDef={typeId:c.typeId,typeData:c.typeData,duration:c.duration},{def:p,instance:null}}let u=e_(a,d,n,r);if(u){let p=_i(a,l,e?e.sourceId:"",u.allDay,u.hasEnd,n,s),h=es(p.defId,u.range,u.forcedStartTzo,u.forcedEndTzo);return o&&p.publicId&&o[p.publicId]&&(h.instanceId=o[p.publicId]),{def:p,instance:h}}return null}function wc(t,e,n=ts(e)){return Qi(t,n)}function ts(t){return Object.assign(Object.assign(Object.assign({},or),Jy),t.pluginHooks.eventRefiners)}function _i(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]:"")||St(),sourceId:n,allDay:r,hasEnd:i,interactive:t.interactive,ui:ar(t,s),extendedProps:Object.assign(Object.assign({},t.extendedProps||{}),e)};for(let l of s.pluginHooks.eventDefMemberAdders)Object.assign(a,l(t));return Object.freeze(a.ui.classNames),Object.freeze(a.extendedProps),a}function e_(t,e,n,r){let{allDay:i}=t,s,o=null,a=!1,l,d=null,c=t.start!=null?t.start:t.date;if(s=n.dateEnv.createMarkerMeta(c),s)o=s.marker;else if(!r)return null;return t.end!=null&&(l=n.dateEnv.createMarkerMeta(t.end)),i==null&&(e!=null?i=e:i=(!s||s.isTimeUnspecified)&&(!l||l.isTimeUnspecified)),i&&o&&(o=Z(o)),l&&(d=l.marker,i&&(d=Z(d)),o&&d<=o&&(d=null)),d?a=!0:r||(a=n.options.forceEventDuration||!1,d=n.dateEnv.add(o,i?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:i,hasEnd:a,range:{start:o,end:d},forcedStartTzo:s?s.forcedTzo:null,forcedEndTzo:l?l.forcedTzo:null}}function t_(t,e){let n=null;return t&&(n=t.defaultAllDay),n==null&&(n=e.options.defaultAllDay),n}function ln(t,e,n,r,i,s){let o=Qe(),a=ts(n);for(let l of t){let d=Dc(l,e,n,r,a,i,s);d&&vi(d,o)}return o}function vi(t,e=Qe()){return e.defs[t.def.defId]=t.def,t.instance&&(e.instances[t.instance.instanceId]=t.instance),e}function n_(t,e){let n=t.instances[e];if(n){let r=t.defs[n.defId],i=rs(t,s=>r_(r,s));return i.defs[r.defId]=r,i.instances[n.instanceId]=n,i}return Qe()}function r_(t,e){return!!(t.groupId&&t.groupId===e.groupId)}function Qe(){return{defs:{},instances:{}}}function ns(t,e){return{defs:Object.assign(Object.assign({},t.defs),e.defs),instances:Object.assign(Object.assign({},t.instances),e.instances)}}function rs(t,e){let n=Vt(t.defs,e),r=Vt(t.instances,i=>n[i.defId]);return{defs:n,instances:r}}function i_(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 s_(t,e){return Array.isArray(t)?ln(t,null,e,!0):typeof t=="object"&&t?ln([t],null,e,!0):t!=null?String(t):null}function ca(t){return Array.isArray(t)?t:typeof t=="string"?t.split(/\s+/):[]}const or={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:R,overlap:R,allow:R,className:ca,classNames:ca,color:String,backgroundColor:String,borderColor:String,textColor:String},o_={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function ar(t,e){let n=s_(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 Cc(t){return t.reduce(a_,o_)}function a_(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 l_={id:String,defaultAllDay:Boolean,url:String,format:String,events:R,eventDataTransform:R,success:R,failure:R};function Oc(t,e,n=Mc(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}=Qi(r,n),o=c_(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:St(),sourceDefId:o.sourceDefId,meta:o.meta,ui:ar(i,e),extendedProps:s}}return null}function Mc(t){return Object.assign(Object.assign(Object.assign({},or),l_),t.pluginHooks.eventSourceRefiners)}function c_(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 d_(t,e,n,r,i){switch(e.type){case"RECEIVE_EVENTS":return u_(t,n[e.sourceId],e.fetchId,e.fetchRange,e.rawEvents,i);case"RESET_RAW_EVENTS":return f_(t,n[e.sourceId],e.rawEvents,r.activeRange,i);case"ADD_EVENTS":return h_(t,e.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return e.eventStore;case"MERGE_EVENTS":return ns(t,e.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?En(t,r.activeRange,i):t;case"REMOVE_EVENTS":return i_(t,e.eventStore);case"REMOVE_EVENT_SOURCE":return Pc(t,e.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return rs(t,s=>!s.sourceId);case"REMOVE_ALL_EVENTS":return Qe();default:return t}}function u_(t,e,n,r,i,s){if(e&&n===e.latestFetchId){let o=ln(Nc(i,e,s),e,s);return r&&(o=En(o,r,s)),ns(Pc(t,e.sourceId),o)}return t}function f_(t,e,n,r,i){const{defIdMap:s,instanceIdMap:o}=p_(t);let a=ln(Nc(n,e,i),e,i,!1,s,o);return En(a,r,i)}function Nc(t,e,n){let r=n.options.eventDataTransform,i=e?e.eventDataTransform:null;return i&&(t=da(t,i)),r&&(t=da(t,r)),t}function da(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 h_(t,e,n,r){return n&&(e=En(e,n,r)),ns(t,e)}function ua(t,e,n){let{defs:r}=t,i=Rt(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 Pc(t,e){return rs(t,n=>n.sourceId!==e)}function p_(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:l}=a;l&&(i[l]=s)}return{defIdMap:r,instanceIdMap:i}}class g_{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,n){m_(this.handlers,e,n)}off(e,n){E_(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 m_(t,e,n){(t[e]||(t[e]=[])).push(n)}function E_(t,e,n){n?t[e]&&(t[e]=t[e].filter(r=>r!==n)):delete t[e]}const y_={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function __(t,e){return ln(v_(t),null,e)}function v_(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({},y_),n)),e}function b_(t,e,n){n.emitter.trigger("select",Object.assign(Object.assign({},R_(t,n)),{jsEvent:null,view:n.viewApi||n.calendarApi.view}))}function T_(t,e){e.emitter.trigger("unselect",{jsEvent:t?t.origEvent:null,view:e.viewApi||e.calendarApi.view})}function R_(t,e){let n={};for(let r of e.pluginHooks.dateSpanTransforms)Object.assign(n,r(t,e));return Object.assign(n,k_(t,e.dateEnv)),n}function fa(t,e,n){let{dateEnv:r,options:i}=n,s=e;return t?(s=Z(s),s=r.add(s,i.defaultAllDayEventDuration)):s=r.add(s,i.defaultTimedEventDuration),s}function A_(t,e,n,r){let i=Lc(t.defs,e),s=Qe();for(let o in t.defs){let a=t.defs[o];s.defs[o]=I_(a,i[o],n,r)}for(let o in t.instances){let a=t.instances[o],l=s.defs[a.defId];s.instances[o]=S_(a,l,i[a.defId],n,r)}return s}function I_(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 S_(t,e,n,r,i){let{dateEnv:s}=i,o=r.standardProps&&r.standardProps.allDay===!0,a=r.standardProps&&r.standardProps.hasEnd===!1,l=Object.assign({},t);return o&&(l.range=Ac(l.range)),r.datesDelta&&n.startEditable&&(l.range={start:s.add(l.range.start,r.datesDelta),end:s.add(l.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(l.range={start:s.add(l.range.start,r.startDelta),end:l.range.end}),r.endDelta&&n.durationEditable&&(l.range={start:l.range.start,end:s.add(l.range.end,r.endDelta)}),a&&(l.range={start:l.range.start,end:fa(e.allDay,l.range.start,i)}),e.allDay&&(l.range={start:Z(l.range.start),end:Z(l.range.end)}),l.range.end<l.range.start&&(l.range.end=fa(e.allDay,l.range.start,i)),l}class Mt{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 Sc)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(e==="id")n=Wn[e](n),this.mutate({standardProps:{publicId:n}});else if(e in Wn)n=Wn[e](n),this.mutate({standardProps:{[e]:n}});else if(e in or){let r=or[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=Mn(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=Mn(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 l=this._instance.range;r.allDay===!0&&(l=Ac(l));let d=Mn(l.start,o,i,r.granularity);if(a){let c=Mn(l.end,a,i,r.granularity);jE(d,c)?this.mutate({datesDelta:d,standardProps:s}):this.mutate({startDelta:d,endDelta:c,standardProps:s})}else s.hasEnd=!1,this.mutate({datesDelta:d,standardProps:s})}}moveStart(e){let n=j(e);n&&this.mutate({startDelta:n})}moveEnd(e){let n=j(e);n&&this.mutate({endDelta:n})}moveDates(e){let n=j(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=X(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=n_(s,n.instanceId);o=A_(o,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,i);let l=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:l,event:this,relatedEvents:is(o,i,n),revert(){i.dispatch({type:"RESET_EVENTS",eventStore:s})}})}}remove(){let e=this._context,n=xc(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 Mt(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 xc(t){let e=t._def,n=t._instance;return{defs:{[e.defId]:e},instances:n?{[n.instanceId]:n}:{}}}function is(t,e,n){let{defs:r,instances:i}=t,s=[],o=n?n.instanceId:"";for(let a in i){let l=i[a],d=r[l.defId];l.instanceId!==o&&s.push(new Ce(e,d,l))}return s}function bi(t,e,n,r){let i={},s={},o={},a=[],l=[],d=Lc(t.defs,e);for(let c in t.defs){let u=t.defs[c];d[u.defId].display==="inverse-background"&&(u.groupId?(i[u.groupId]=[],o[u.groupId]||(o[u.groupId]=u)):s[c]=[])}for(let c in t.instances){let u=t.instances[c],p=t.defs[u.defId],h=d[p.defId],f=u.range,g=!p.allDay&&r?Ji(f,r):f,m=ot(g,n);m&&(h.display==="inverse-background"?p.groupId?i[p.groupId].push(m):s[u.defId].push(m):h.display!=="none"&&(h.display==="background"?a:l).push({def:p,ui:h,instance:u,range:m,isStart:g.start&&g.start.valueOf()===m.start.valueOf(),isEnd:g.end&&g.end.valueOf()===m.end.valueOf()}))}for(let c in i){let u=i[c],p=la(u,n);for(let h of p){let f=o[c],g=d[f.defId];a.push({def:f,ui:g,instance:null,range:h,isStart:!1,isEnd:!1})}}for(let c in s){let u=s[c],p=la(u,n);for(let h of p)a.push({def:t.defs[c],ui:d[c],instance:null,range:h,isStart:!1,isEnd:!1})}return{bg:a,fg:l}}function D_(t){return t.ui.display==="background"||t.ui.display==="inverse-background"}function ha(t,e){t.fcSeg=e}function Ti(t){return t.fcSeg||t.parentNode.fcSeg||null}function Lc(t,e){return Rt(t,n=>kc(n,e))}function kc(t,e){let n=[];return e[""]&&n.push(e[""]),e[t.defId]&&n.push(e[t.defId]),n.push(t.ui),Cc(n)}function ss(t,e){let n=t.map(w_);return n.sort((r,i)=>GE(r,i,e)),n.map(r=>r._seg)}function w_(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 C_(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 O_(t,e){return t.isStart&&t.eventRange.ui.durationEditable&&e.options.eventResizableFromStart}function M_(t,e){return t.isEnd&&t.eventRange.ui.durationEditable}function nn(t,e,n,r,i,s,o){let{dateEnv:a,options:l}=n,{displayEventTime:d,displayEventEnd:c}=l,u=t.eventRange.def,p=t.eventRange.instance;d==null&&(d=r!==!1),c==null&&(c=i!==!1);let h=p.range.start,f=p.range.end,g=s||t.start||t.eventRange.range.start,m=o||t.end||t.eventRange.range.end,_=Z(h).valueOf()===Z(g).valueOf(),y=Z(st(f,-1)).valueOf()===Z(st(m,-1)).valueOf();return d&&!u.allDay&&(_||y)?(g=_?h:g,m=y?f:m,c&&u.hasEnd?a.formatRange(g,m,e,{forcedStartTzo:s?null:p.forcedStartTzo,forcedEndTzo:o?null:p.forcedEndTzo}):a.format(g,e,{forcedTzo:s?null:p.forcedStartTzo})):""}function je(t,e,n){let r=t.eventRange.range;return{isPast:r.end<=(n||e.start),isFuture:r.start>=(n||e.end),isToday:e&&qe(e,r.start)}}function N_(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 Bc(t){return t.instance?t.instance.instanceId:`${t.def.defId}:${t.range.start.toISOString()}`}function os(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?gc(l=>{s.trigger("eventClick",{el:l.target,event:new Ce(e,n,r),jsEvent:l,view:e.viewApi})}):{}}const P_={start:R,end:R,allDay:Boolean};function x_(t,e,n){let r=L_(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 L_(t,e){let{refined:n,extra:r}=Qi(t,P_),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 k_(t,e){return Object.assign(Object.assign({},Uc(t.range,e,t.allDay)),{allDay:t.allDay})}function Fc(t,e,n){return Object.assign(Object.assign({},Uc(t,e,n)),{timeZone:e.timeZone})}function Uc(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 B_(t,e,n){let r=wc({editable:!1},n),i=_i(r.refined,r.extra,"",t.allDay,!0,n);return{def:i,ui:kc(i,e),instance:es(i.defId,t.range),range:t.range,isStart:!0,isEnd:!0}}function F_(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 pa extends Error{constructor(e,n){super(e),this.response=n}}function U_(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 pa("Failure parsing JSON",i)});throw new pa("Request failed",i)})}let jr;function Gc(){return jr==null&&(jr=G_()),jr}function G_(){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 H_ extends ${constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{sr(()=>{this.setState({forPrint:!0})})},this.handleAfterPrint=()=>{sr(()=>{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 Gc()||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 Hc{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function V_(t,e){return{component:t,el:e.el,useEventCenter:e.useEventCenter!=null?e.useEventCenter:!0,isHitComboAllowed:e.isHitComboAllowed||null}}const ga={};class wt extends Re{constructor(e,n){super(e,n),this.handleRefresh=()=>{let r=this.computeTiming();r.state.nowDate.valueOf()!==this.state.nowDate.valueOf()&&this.setState(r.state),this.clearTimeout(),this.setTimeout(r.waitMs)},this.handleVisibilityChange=()=>{document.hidden||this.handleRefresh()},this.state=this.computeTiming().state}render(){let{props:e,state:n}=this;return e.children(n.nowDate,n.todayRange)}componentDidMount(){this.setTimeout(),this.context.nowManager.addResetListener(this.handleRefresh),document.addEventListener("visibilitychange",this.handleVisibilityChange)}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout(),this.context.nowManager.removeResetListener(this.handleRefresh),document.removeEventListener("visibilitychange",this.handleVisibilityChange)}computeTiming(){let{props:e,context:n}=this,r=n.nowManager.getDateMarker(),{nowIndicatorSnap:i}=n.options;i==="auto"&&(i=/year|month|week|day/.test(e.unit)||(e.unitValue||1)===1);let s,o;return i?(s=n.dateEnv.startOf(r,e.unit),o=n.dateEnv.add(s,j(1,e.unit)).valueOf()-r.valueOf()):(s=r,o=1e3*60),o=Math.min(1e3*60*60*24,o),{state:{nowDate:s,todayRange:z_(s)},waitMs:o}}setTimeout(e=this.computeTiming().waitMs){this.timeoutId=setTimeout(()=>{const n=this.computeTiming();this.setState(n.state,()=>{this.setTimeout(n.waitMs)})},e)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}wt.contextType=Ze;function z_(t){let e=Z(t),n=ne(e,1);return{start:e,end:n}}class W_{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:e.nowManager.getDateMarker()})}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=j(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),X(n))}formatRange(e,n,r){let{dateEnv:i}=this.getCurrentData();return i.formatRange(i.createMarker(e),i.createMarker(n),X(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=x_(r,i.dateEnv,j({days:1}));s&&(this.dispatch({type:"SELECT_DATES",selection:s}),b_(s,null,i))}unselect(e){let n=this.getCurrentData();n.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),T_(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:vi({def:o,instance:a})}),this.triggerEventAdd(e)),e}let r=this.getCurrentData(),i;if(n instanceof Mt)i=n.internalEventSource;else if(typeof n=="boolean")n&&([i]=Xi(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=Dc(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:vi(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:xc(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 l=i[a];if(l.defId===o.defId)return new Ce(n,o,l)}}}return null}getEvents(){let e=this.getCurrentData();return is(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 Mt(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 Mt(n,r[i]);return null}addEventSource(e){let n=this.getCurrentData();if(e instanceof Mt)return n.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let r=Oc(e,n);return r?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[r]}),new Mt(n,r)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let n=j(e);n&&this.trigger("_scrollRequest",{time:n})}}function q_(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}const $r=Qe();class j_{constructor(){this.getKeysForEventDefs=F(this._getKeysForEventDefs),this.splitDateSelection=F(this._splitDateSpan),this.splitEventStore=F(this._splitEventStore),this.splitIndividualUi=F(this._splitIndividualUi),this.splitEventDrag=F(this._splitInteraction),this.splitEventResize=F(this._splitInteraction),this.eventUiBuilders={}}splitProps(e){let n=this.getKeyInfo(e),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),l=this.splitEventResize(e.eventResize),d={};this.eventUiBuilders=Rt(n,(c,u)=>this.eventUiBuilders[u]||F($_));for(let c in n){let u=n[c],p=o[c]||$r,h=this.eventUiBuilders[c];d[c]={businessHours:u.businessHours||e.businessHours,dateSelection:i[c]||null,eventStore:p,eventUiBases:h(e.eventUiBases[""],u.ui,s[c]),eventSelection:p.instances[e.eventSelection]?e.eventSelection:"",eventDrag:a[c]||null,eventResize:l[c]||null}}return d}_splitDateSpan(e){let n={};if(e){let r=this.getKeysForDateSpan(e);for(let i of r)n[i]=e}return n}_getKeysForEventDefs(e){return Rt(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]=Qe()),s[a].defs[o]=r[o];for(let o in i){let a=i[o];for(let l of n[a.defId])s[l]&&(s[l].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]||$r,mutatedEvents:s[a]||$r,isEvent:e.isEvent})};for(let a in r)o(a);for(let a in s)o(a)}return n}}function $_(t,e,n){let r=[];t&&r.push(t),e&&r.push(e);let i={"":Cc(r)};return n&&Object.assign(i,n),i}function as(t,e,n,r){return{dow:t.getUTCDay(),isDisabled:!!(r&&(!r.activeRange||!qe(r.activeRange,t))),isOther:!!(r&&!qe(r.currentRange,t)),isToday:!!(e&&qe(e,t)),isPast:!!(n?t<n:e&&t<e.start),isFuture:!!(n?t>n:e&&t>=e.end)}}function Rr(t,e){let n=["fc-day",`fc-day-${XE[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 Y_=X({year:"numeric",month:"long",day:"numeric"}),Q_=X({week:"long"});function zt(t,e,n="day",r=!0){const{dateEnv:i,options:s,calendarApi:o}=t;let a=i.format(e,n==="week"?Q_:Y_);if(s.navLinks){let l=i.toDate(e);const d=c=>{let u=n==="day"?s.navLinkDayClick:n==="week"?s.navLinkWeekClick:null;typeof u=="function"?u.call(o,i.toDate(e),c):(typeof u=="string"&&(n=u),o.zoomTo(e,n))};return Object.assign({title:en(s.navLinkHint,[a,l],a),"data-navlink":""},r?pc(d):{onClick:d})}return{"aria-label":a}}let Yr;function Z_(){return Yr||(Yr=X_()),Yr}function X_(){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=K_(t);return document.body.removeChild(t),e}function K_(t){return{x:t.offsetHeight-t.clientHeight,y:t.offsetWidth-t.clientWidth}}function J_(t){let e=ev(t),n=t.getBoundingClientRect();for(let r of e){let i=q_(n,r.getBoundingClientRect());if(i)n=i;else return null}return n}function ev(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 Wt{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 Nn(this.tops||[],e.tops||[])&&Nn(this.bottoms||[],e.bottoms||[])&&Nn(this.lefts||[],e.lefts||[])&&Nn(this.rights||[],e.rights||[])}}function Nn(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 ke extends ${constructor(){super(...arguments),this.uid=St()}prepareHits(){}queryHit(e,n,r,i){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!ze(e,".fc-event-mirror")}isValidDateDownEl(e){return!ze(e,".fc-event:not(.fc-bg-event)")&&!ze(e,".fc-more-link")&&!ze(e,"a[data-navlink]")&&!ze(e,".fc-popover")}}class Vc{constructor(e=n=>n.thickness||1){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);this.isInsertionValid(r,e)?this.insertEntryAt(e,r):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){if(this.allowReslicing&&e.touchingEntry){const i=Object.assign(Object.assign({},n),{span:ls(n.span,e.touchingEntry.span)});r.push(i),this.splitEntry(n,e.touchingEntry,r)}else r.push(n)}splitEntry(e,n,r){let i=e.span,s=n.span;i.start<s.start&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:i.start,end:s.start}},r),i.end>s.end&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:s.end,end:i.end}},r)}insertEntryAt(e,n){let{entriesByLevel:r,levelCoords:i}=this;n.lateral===-1?(Qr(i,n.level,n.levelCoord),Qr(r,n.level,[e])):Qr(r[n.level],n.lateral,e),this.stackCnts[bt(e)]=n.stackCnt}findInsertion(e){let{levelCoords:n,entriesByLevel:r,strictOrder:i,stackCnts:s}=this,o=n.length,a=0,l=-1,d=-1,c=null,u=0;for(let f=0;f<o;f+=1){const g=n[f];if(!i&&g>=a+this.getEntryThickness(e))break;let m=r[f],_,y=Ai(m,e.span.start,Ri),v=y[0]+y[1];for(;(_=m[v])&&_.span.start<e.span.end;){let b=g+this.getEntryThickness(_);b>a&&(a=b,c=_,l=f,d=v),b===a&&(u=Math.max(u,s[bt(_)]+1)),v+=1}}let p=0;if(c)for(p=l+1;p<o&&n[p]<a;)p+=1;let h=-1;return p<o&&n[p]===a&&(h=Ai(r[p],e.span.end,Ri)[0]),{touchingLevel:l,touchingLateral:d,touchingEntry:c,stackCnt:u,levelCoord:a,level:p,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 l of o)i.push(Object.assign(Object.assign({},l),{thickness:this.getEntryThickness(l),levelCoord:a}))}return i}}function Ri(t){return t.span.end}function bt(t){return t.index+":"+t.span.start}function tv(t){let e=[];for(let n of t){let r=[],i={span:n.span,entries:[n]};for(let s of e)ls(s.span,i.span)?i={entries:s.entries.concat(i.entries),span:nv(s.span,i.span)}:r.push(s);r.push(i),e=r}return e}function nv(t,e){return{start:Math.min(t.start,e.start),end:Math.max(t.end,e.end)}}function ls(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 Qr(t,e,n){t.splice(e,0,n)}function Ai(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]}function rv(t,e){return!t||e>10?X({weekday:"short"}):e>1?X({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):X({weekday:"long"})}const zc="fc-col-header-cell";function Wc(t){return t.text}class iv extends ${render(){let{dateEnv:e,options:n,theme:r,viewApi:i}=this.context,{props:s}=this,{date:o,dateProfile:a}=s,l=as(o,s.todayRange,null,a),d=[zc].concat(Rr(l,r)),c=e.format(o,s.dayHeaderFormat),u=!l.isDisabled&&s.colCnt>1?zt(this.context,o):{},p=e.toDate(o);e.namedTimeZoneImpl&&(p=st(p,36e5));let h=Object.assign(Object.assign(Object.assign({date:p,view:i},s.extraRenderProps),{text:c}),l);return E(de,{elTag:"th",elClasses:d,elAttrs:Object.assign({role:"columnheader",colSpan:s.colSpan,"data-date":l.isDisabled?void 0:gn(o)},s.extraDataAttrs),renderProps:h,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:Wc,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},f=>E("div",{className:"fc-scrollgrid-sync-inner"},!l.isDisabled&&E(f,{elTag:"a",elAttrs:u,elClasses:["fc-col-header-cell-cushion",s.isSticky&&"fc-sticky"]})))}}const sv=X({weekday:"long"});class ov extends ${render(){let{props:e}=this,{dateEnv:n,theme:r,viewApi:i,options:s}=this.context,o=ne(new Date(2592e5),e.dow),a={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},l=n.format(o,e.dayHeaderFormat),d=Object.assign(Object.assign(Object.assign(Object.assign({date:o},a),{view:i}),e.extraRenderProps),{text:l});return E(de,{elTag:"th",elClasses:[zc,...Rr(a,r),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:d,generatorName:"dayHeaderContent",customGenerator:s.dayHeaderContent,defaultGenerator:Wc,classNameGenerator:s.dayHeaderClassNames,didMount:s.dayHeaderDidMount,willUnmount:s.dayHeaderWillUnmount},c=>E("div",{className:"fc-scrollgrid-sync-inner"},E(c,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":n.format(o,sv)}})))}}class qc extends ${constructor(){super(...arguments),this.createDayHeaderFormatter=F(av)}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 E(wt,{unit:"day"},(a,l)=>E("tr",{role:"row"},s&&s("day"),n.map(d=>i?E(iv,{key:d.toISOString(),date:d,dateProfile:r,todayRange:l,colCnt:n.length,dayHeaderFormat:o}):E(ov,{key:d.getUTCDay(),dow:d.getUTCDay(),dayHeaderFormat:o}))))}}function av(t,e,n){return t||rv(e,n)}class jc{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=ne(r,1);this.dates=o,this.indices=s,this.cnt=o.length}sliceRange(e){let n=this.getDateDayIndex(e.start),r=this.getDateDayIndex(ne(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(at(this.dates[0],e));return r<0?n[0]-1:r>=n.length?n[n.length-1]+1:n[r]}}class $c{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 l=Math.floor(a/n),d=Math.min((l+1)*n,o+1);i.push({row:l,firstCol:a%n,lastCol:(d-1)%n,isStart:r.isStart&&a===s,isEnd:r.isEnd&&d-1===o}),a=d}}return i}}class Yc{constructor(){this.sliceBusinessHours=F(this._sliceBusinessHours),this.sliceDateSelection=F(this._sliceDateSpan),this.sliceEventStore=F(this._sliceEventStore),this.sliceEventDrag=F(this._sliceInteraction),this.sliceEventResize=F(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,n,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:st(e,1)},allDay:!1},n,r,{},i,...s)}_sliceBusinessHours(e,n,r,i,...s){return e?this._sliceEventStore(En(e,Pn(n,!!r),i),{},n,r,...s).bg:[]}_sliceEventStore(e,n,r,i,...s){if(e){let o=bi(e,n,Pn(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=bi(e.mutatedEvents,n,Pn(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=Pn(n,!!r),l=ot(e.range,a);if(l){e=Object.assign(Object.assign({},e),{range:l});let d=B_(e,i,s),c=this.sliceRange(e.range,...o);for(let u of c)u.eventRange=d;return c}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:ne(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 Pn(t,e){let n=t.activeRange;return e?n:{start:st(n.start,t.slotMinTime.milliseconds),end:st(n.end,t.slotMaxTime.milliseconds-864e5)}}const xn=/^(visible|hidden)$/;class Qc extends ${constructor(){super(...arguments),this.handleEl=e=>{this.el=e,Ge(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")),E("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(xn.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(xn.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 xn.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return xn.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class We{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(n,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 My(this.currentMap,e,n,r)}getAll(){return Xi(this.currentMap)}}function lv(t){let e=PE(t,".fc-scrollgrid-shrink"),n=0;for(let r of e)n=Math.max(n,zE(r));return Math.ceil(n)}function Zc(t,e){return t.liquid&&e.liquid}function cv(t,e){return e.maxHeight!=null||Zc(t,e)}function dv(t,e,n,r){let{expandRows:i}=n;return typeof e.content=="function"?e.content(n):E("table",{role:"presentation",className:[e.tableClassName,t.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:i?n.clientHeight:""}},n.tableColGroupNode,E(r?"thead":"tbody",{role:"presentation"},typeof e.rowContent=="function"?e.rowContent(n):e.rowContent))}function uv(t,e){return it(t,e,xe)}function fv(t,e){let n=[];for(let r of t){let i=r.span||1;for(let s=0;s<i;s+=1)n.push(E("col",{style:{width:r.width==="shrink"?hv(e):r.width||"",minWidth:r.minWidth||""}}))}return E("colgroup",{},...n)}function hv(t){return t??4}function pv(t){for(let e of t)if(e.width==="shrink")return!0;return!1}function gv(t,e){let n=["fc-scrollgrid",e.theme.getClass("table")];return t&&n.push("fc-scrollgrid-liquid"),n}function mv(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 Ii(t){return E("div",{className:"fc-scrollgrid-sticky-shim",style:{width:t.clientWidth,minWidth:t.tableMinWidth}})}function lr(t){let{stickyHeaderDates:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}function Xc(t){let{stickyFooterScrollbar:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}class cs extends ${constructor(){super(...arguments),this.processCols=F(e=>e,uv),this.renderMicroColGroup=F(fv),this.scrollerRefs=new We,this.scrollerElRefs=new We(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:e,state:n,context:r}=this,i=e.sections||[],s=this.processCols(e.cols),o=this.renderMicroColGroup(s,n.shrinkWidth),a=gv(e.liquid,r);e.collapsibleWidth&&a.push("fc-scrollgrid-collapsible");let l=i.length,d=0,c,u=[],p=[],h=[];for(;d<l&&(c=i[d]).type==="header";)u.push(this.renderSection(c,o,!0)),d+=1;for(;d<l&&(c=i[d]).type==="body";)p.push(this.renderSection(c,o,!1)),d+=1;for(;d<l&&(c=i[d]).type==="footer";)h.push(this.renderSection(c,o,!0)),d+=1;let f=!Gc();const g={role:"rowgroup"};return E("table",{role:"grid",className:a.join(" "),style:{height:e.height}},!!(!f&&u.length)&&E("thead",g,...u),!!(!f&&p.length)&&E("tbody",g,...p),!!(!f&&h.length)&&E("tfoot",g,...h),f&&E("tbody",g,...u,...p,...h))}renderSection(e,n,r){return"outerContent"in e?E(Y,{key:e.key},e.outerContent):E("tr",{key:e.key,role:"presentation",className:mv(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:l}=this.state,d=cv(s,e),c=Zc(s,e),u=s.liquid?o?"scroll":d?"auto":"hidden":"visible",p=e.key,h=dv(e,r,{tableColGroupNode:n,tableMinWidth:"",clientWidth:!s.collapsibleWidth&&a[p]!==void 0?a[p]:null,clientHeight:l[p]!==void 0?l[p]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},i);return E(i?"th":"td",{ref:r.elRef,role:"presentation"},E("div",{className:`fc-scroller-harness${c?" fc-scroller-harness-liquid":""}`},E(Qc,{ref:this.scrollerRefs.createRef(p),elRef:this.scrollerElRefs.createRef(p),overflowY:u,overflowX:s.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:c,liquidIsAbsolute:!0},h)))}_handleScrollerEl(e,n){let r=Ev(this.props.sections,n);r&&Ge(r.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return pv(this.props.cols)?lv(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=Z_(),{scrollerRefs:n,scrollerElRefs:r}=this,i=!1,s={},o={};for(let a in n.currentMap){let l=n.currentMap[a];if(l&&l.needsYScrolling()){i=!0;break}}for(let a of this.props.sections){let l=a.key,d=r.currentMap[l];if(d){let c=d.parentNode;s[l]=Math.floor(c.getBoundingClientRect().width-(i?e.y:0)),o[l]=Math.floor(c.getBoundingClientRect().height)}}return{forceYScrollbars:i,scrollerClientWidths:s,scrollerClientHeights:o}}}cs.addStateEquality({scrollerClientWidths:xe,scrollerClientHeights:xe});function Ev(t,e){for(let n of t)if(n.key===e)return n;return null}class Ar extends ${constructor(){super(...arguments),this.buildPublicEvent=F((e,n,r)=>new Ce(e,n,r)),this.handleEl=e=>{this.el=e,Ge(this.props.elRef,e),e&&ha(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:this.buildPublicEvent(n,s.def,s.instance),view:n.viewApi,timeText:e.timeText,textColor:o.textColor,backgroundColor:o.backgroundColor,borderColor:o.borderColor,isDraggable:!e.disableDragging&&C_(i,n),isStartResizable:!e.disableResizing&&O_(i,n),isEndResizable:!e.disableResizing&&M_(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 E(de,{elRef:this.handleEl,elTag:e.elTag,elAttrs:e.elAttrs,elClasses:[...N_(a),...i.eventRange.ui.classNames,...e.elClasses||[]],elStyle:e.elStyle,renderProps:a,generatorName:"eventContent",customGenerator:r.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:r.eventClassNames,didMount:r.eventDidMount,willUnmount:r.eventWillUnmount},e.children)}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&ha(this.el,this.props.seg)}}class ds extends ${render(){let{props:e,context:n}=this,{options:r}=n,{seg:i}=e,{ui:s}=i.eventRange,o=r.eventTimeFormat||e.defaultTimeFormat,a=nn(i,o,n,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return E(Ar,Object.assign({},e,{elTag:"a",elStyle:{borderColor:s.borderColor,backgroundColor:s.backgroundColor},elAttrs:os(i,n),defaultGenerator:yv,timeText:a}),(l,d)=>E(Y,null,E(l,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:d.textColor}}),!!d.isStartResizable&&E("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!d.isEndResizable&&E("div",{className:"fc-event-resizer fc-event-resizer-end"})))}}ds.addPropsEquality({seg:xe});function yv(t){return E("div",{className:"fc-event-main-frame"},t.timeText&&E("div",{className:"fc-event-time"},t.timeText),E("div",{className:"fc-event-title-container"},E("div",{className:"fc-event-title fc-sticky"},t.event.title||E(Y,null," "))))}const us=t=>E(Ze.Consumer,null,e=>{let{options:n}=e,r={isAxis:t.isAxis,date:e.dateEnv.toDate(t.date),view:e.viewApi};return E(de,{elRef:t.elRef,elTag:t.elTag||"div",elAttrs:t.elAttrs,elClasses:t.elClasses,elStyle:t.elStyle,renderProps:r,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount},t.children)}),_v=X({day:"numeric"});class fs extends ${constructor(){super(...arguments),this.refineRenderProps=zn(vv)}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 E(de,{elRef:e.elRef,elTag:e.elTag,elAttrs:Object.assign(Object.assign({},e.elAttrs),i.isDisabled?{}:{"data-date":gn(e.date)}),elClasses:[...Rr(i,n.theme),...e.elClasses||[]],elStyle:e.elStyle,renderProps:i,generatorName:"dayCellContent",customGenerator:r.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:i.isDisabled?void 0:r.dayCellClassNames,didMount:r.dayCellDidMount,willUnmount:r.dayCellWillUnmount},e.children)}}function hs(t){return!!(t.dayCellContent||yi("dayCellContent",t))}function vv(t){let{date:e,dateEnv:n,dateProfile:r,isMonthStart:i}=t,s=as(e,t.todayRange,null,r),o=t.showDayNumber?n.format(e,i?t.monthStartFormat:_v):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(e),view:t.viewApi},s),{isMonthStart:i,dayNumberText:o}),t.extraRenderProps)}class Kc extends ${render(){let{props:e}=this,{seg:n}=e;return E(Ar,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:n.eventRange.ui.backgroundColor},defaultGenerator:bv,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 bv(t){let{title:e}=t.event;return e&&E("div",{className:"fc-event-title"},t.event.title)}function Jc(t){return E("div",{className:`fc-${t}`})}const ed=t=>E(Ze.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),l={num:o,text:a,date:i};return E(de,{elRef:t.elRef,elTag:t.elTag,elAttrs:t.elAttrs,elClasses:t.elClasses,elStyle:t.elStyle,renderProps:l,generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:Tv,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount},t.children)});function Tv(t){return t.text}const Zr=10;class Rv extends ${constructor(){super(...arguments),this.state={titleId:rt()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&Ge(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const n=kE(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 yE(E("div",Object.assign({},r.extraAttrs,{id:r.id,className:s.join(" "),"aria-labelledby":i.titleId,ref:this.handleRootEl}),E("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},E("span",{className:"fc-popover-title",id:i.titleId},r.title),E("span",{className:"fc-popover-close "+e.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),E("div",{className:"fc-popover-body "+e.getClass("popoverContent")},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=J_(n);if(s){let o=i.getBoundingClientRect(),a=r?ze(n,".fc-scrollgrid").getBoundingClientRect().top:s.top,l=e?s.right-o.width:s.left;a=Math.max(a,Zr),l=Math.min(l,document.documentElement.clientWidth-Zr-o.width),l=Math.max(l,Zr);let d=i.offsetParent.getBoundingClientRect();LE(i,{top:a-d.top,left:l-d.left})}}}class Av extends ke{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 E(fs,{elRef:this.handleRootEl,date:i,dateProfile:o,todayRange:s},(l,d,c)=>E(Rv,{elRef:c.ref,id:r.id,title:a,extraClassNames:["fc-more-popover"].concat(c.className||[]),extraAttrs:c,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},hs(e)&&E(l,{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 td extends ${constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:rt()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&Ge(this.props.elRef,e)},this.handleClick=e=>{let{props:n,context:r}=this,{moreLinkClick:i}=r.options,s=ma(n).start;function o(a){let{def:l,instance:d,range:c}=a.eventRange;return{event:new Ce(r,l,d),start:r.dateEnv.toDate(c.start),end:r.dateEnv.toDate(c.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 E(Ze.Consumer,null,r=>{let{viewApi:i,options:s,calendarApi:o}=r,{moreLinkText:a}=s,{moreCnt:l}=e,d=ma(e),c=typeof a=="function"?a.call(o,l):`+${l} ${a}`,u=en(s.moreLinkHint,[l],c),p={num:l,shortText:`+${l}`,text:c,view:i};return E(Y,null,!!e.moreCnt&&E(de,{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),pc(this.handleClick)),{title:u,"aria-expanded":n.isPopoverOpen,"aria-controls":n.isPopoverOpen?n.popoverId:""}),renderProps:p,generatorName:"moreLinkContent",customGenerator:s.moreLinkContent,defaultGenerator:e.defaultGenerator||Iv,classNameGenerator:s.moreLinkClassNames,didMount:s.moreLinkDidMount,willUnmount:s.moreLinkWillUnmount},e.children),n.isPopoverOpen&&E(Av,{id:n.popoverId,startDate:d.start,endDate:d.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=ze(this.linkEl,".fc-view-harness"))}}function Iv(t){return t.text}function ma(t){if(t.allDayDate)return{start:t.allDayDate,end:ne(t.allDayDate,1)};let{hiddenSegs:e}=t;return{start:nd(e),end:Dv(e)}}function nd(t){return t.reduce(Sv).eventRange.range.start}function Sv(t,e){return t.eventRange.range.start<e.eventRange.range.start?t:e}function Dv(t){return t.reduce(wv).eventRange.range.end}function wv(t,e){return t.eventRange.range.end>e.eventRange.range.end?t:e}const Cv=[],rd={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"},id=Object.assign(Object.assign({},rd),{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 Ov(t){let e=t.length>0?t[0].code:"en",n=Cv.concat(t),r={en:id};for(let i of n)r[i.code]=i;return{map:r,defaultCode:e}}function sd(t,e){return typeof t=="object"&&!Array.isArray(t)?od(t.code,[t.code],t):Mv(t,e)}function Mv(t,e){let n=[].concat(t||[]),r=Nv(n,e)||id;return od(t,n,r)}function Nv(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 od(t,e,n){let r=Zi([rd,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 Xe(t){return{id:St(),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 Pv(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,l=n[a];l===void 0?(n[a]=o.id,i(o.deps),r=Lv(r,o)):l!==o.id&&console.warn(`Duplicate plugin '${a}'`)}}return t&&i(t),i(e),r}function xv(){let t=[],e=[],n;return(r,i)=>((!n||!it(r,t)||!it(i,e))&&(n=Pv(r,i)),t=r,e=i,n)}function Lv(t,e){return{premiumReleaseDate:kv(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 kv(t,e){return t===void 0?e:e===void 0?t:new Date(Math.max(t.valueOf(),e.valueOf()))}class lt extends mn{}lt.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"};lt.prototype.baseIconClass="fc-icon";lt.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"};lt.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"};lt.prototype.iconOverrideOption="buttonIcons";lt.prototype.iconOverrideCustomButtonOption="icon";lt.prototype.iconOverridePrefix="fc-icon-";function Bv(t,e){let n={},r;for(r in t)Si(r,n,t,e);for(r in e)Si(r,n,t,e);return n}function Si(t,e,n,r){if(e[t])return e[t];let i=Fv(t,e,n,r);return i&&(e[t]=i),i}function Fv(t,e,n,r){let i=n[t],s=r[t],o=c=>i&&i[c]!==null?i[c]:s&&s[c]!==null?s[c]:null,a=o("component"),l=o("superType"),d=null;if(l){if(l===t)throw new Error("Can't have a custom view type that references itself");d=Si(l,e,n,r)}return!a&&d&&(a=d.component),a?{type:t,component:a,defaults:Object.assign(Object.assign({},d?d.defaults:{}),i?i.rawOptions:{}),overrides:Object.assign(Object.assign({},d?d.overrides:{}),s?s.rawOptions:{})}:null}function Ea(t){return Rt(t,Uv)}function Uv(t){let e=typeof t=="function"?{component:t}:t,{component:n}=e;return e.content?n=ya(e):n&&!(n.prototype instanceof $)&&(n=ya(Object.assign(Object.assign({},e),{content:n}))),{superType:e.type,component:n,rawOptions:e}}function ya(t){return e=>E(Ze.Consumer,null,n=>E(de,{elTag:"div",elClasses:Rc(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 Gv(t,e,n,r){let i=Ea(t),s=Ea(e.views),o=Bv(i,s);return Rt(o,a=>Hv(a,s,e,n,r))}function Hv(t,e,n,r,i){let s=t.overrides.duration||t.defaults.duration||r.duration||n.duration,o=null,a="",l="",d={};if(s&&(o=Vv(s),o)){let p=Ei(o);a=p.unit,p.value===1&&(l=a,d=e[a]?e[a].rawOptions:{})}let c=p=>{let h=p.buttonText||{},f=t.defaults.buttonTextKey;return f!=null&&h[f]!=null?h[f]:h[t.type]!=null?h[t.type]:h[l]!=null?h[l]:null},u=p=>{let h=p.buttonHints||{},f=t.defaults.buttonTextKey;return f!=null&&h[f]!=null?h[f]:h[t.type]!=null?h[t.type]:h[l]!=null?h[l]:null};return{type:t.type,component:t.component,duration:o,durationUnit:a,singleUnit:l,optionDefaults:t.defaults,optionOverrides:Object.assign(Object.assign({},d),t.overrides),buttonTextOverride:c(r)||c(n)||t.overrides.buttonText,buttonTextDefault:c(i)||t.defaults.buttonText||c(tn)||t.type,buttonTitleOverride:u(r)||u(n)||t.overrides.buttonHint,buttonTitleDefault:u(i)||t.defaults.buttonHint||u(tn)}}let _a={};function Vv(t){let e=JSON.stringify(t),n=_a[e];return n===void 0&&(n=j(t),_a[e]=n),n}function zv(t,e){switch(e.type){case"CHANGE_VIEW_TYPE":t=e.viewType}return t}function Wv(t,e){switch(e.type){case"CHANGE_DATE":return e.dateMarker;default:return t}}function qv(t,e,n){let r=t.initialDate;return r!=null?e.createMarker(r):n.getDateMarker()}function jv(t,e){switch(e.type){case"SET_OPTION":return Object.assign(Object.assign({},t),{[e.optionName]:e.rawOptionValue});default:return t}}function $v(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 Yv(t,e,n){let r=e?e.activeRange:null;return ld({},tb(t,n),r,n)}function Qv(t,e,n,r){let i=n?n.activeRange:null;switch(e.type){case"ADD_EVENT_SOURCES":return ld(t,e.sources,i,r);case"REMOVE_EVENT_SOURCE":return Xv(t,e.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?cd(t,i,r):t;case"FETCH_EVENT_SOURCES":return ps(t,e.sourceIds?yc(e.sourceIds):dd(t,r),i,e.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return eb(t,e.sourceId,e.fetchId,e.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return t}}function Zv(t,e,n){let r=e?e.activeRange:null;return ps(t,dd(t,n),r,!0,n)}function ad(t){for(let e in t)if(t[e].isFetching)return!0;return!1}function ld(t,e,n,r){let i={};for(let s of e)i[s.sourceId]=s;return n&&(i=cd(i,n,r)),Object.assign(Object.assign({},t),i)}function Xv(t,e){return Vt(t,n=>n.sourceId!==e)}function cd(t,e,n){return ps(t,Vt(t,r=>Kv(r,e,n)),e,!1,n)}function Kv(t,e,n){return ud(t,n)?!n.options.lazyFetching||!t.fetchRange||t.isFetching||e.start<t.fetchRange.start||e.end>t.fetchRange.end:!t.latestFetchId}function ps(t,e,n,r,i){let s={};for(let o in t){let a=t[o];e[o]?s[o]=Jv(a,n,r,i):s[o]=a}return s}function Jv(t,e,n,r){let{options:i,calendarApi:s}=r,o=r.pluginHooks.eventSourceDefs[t.sourceDefId],a=St();return o.fetch({eventSource:t,range:e,isRefetch:n,context:r},l=>{let{rawEvents:d}=l;i.eventSourceSuccess&&(d=i.eventSourceSuccess.call(s,d,l.response)||d),t.success&&(d=t.success.call(s,d,l.response)||d),r.dispatch({type:"RECEIVE_EVENTS",sourceId:t.sourceId,fetchId:a,fetchRange:e,rawEvents:d})},l=>{let d=!1;i.eventSourceFailure&&(i.eventSourceFailure.call(s,l),d=!0),t.failure&&(t.failure(l),d=!0),d||console.warn(l.message,l),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:t.sourceId,fetchId:a,fetchRange:e,error:l})}),Object.assign(Object.assign({},t),{isFetching:!0,latestFetchId:a})}function eb(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 dd(t,e){return Vt(t,n=>ud(n,e))}function tb(t,e){let n=Mc(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=Oc(s,e,n);o&&i.push(o)}return i}function ud(t,e){return!e.pluginHooks.eventSourceDefs[t.sourceDefId].ignoreRange}function nb(t,e){switch(e.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return e.selection;default:return t}}function rb(t,e){switch(e.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return e.eventInstanceId;default:return t}}function ib(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 sb(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 ob(t,e,n,r,i){let s=t.headerToolbar?va(t.headerToolbar,t,e,n,r,i):null,o=t.footerToolbar?va(t.footerToolbar,t,e,n,r,i):null;return{header:s,footer:o}}function va(t,e,n,r,i,s){let o={},a=[],l=!1;for(let d in t){let c=t[d],u=ab(c,e,n,r,i,s);o[d]=u.widgets,a.push(...u.viewsWithButtons),l=l||u.hasTitle}return{sectionWidgets:o,viewsWithButtons:a,hasTitle:l}}function ab(t,e,n,r,i,s){let o=e.direction==="rtl",a=e.customButtons||{},l=n.buttonText||{},d=e.buttonText||{},c=n.buttonHints||{},u=e.buttonHints||{},p=t?t.split(" "):[],h=[],f=!1;return{widgets:p.map(m=>m.split(",").map(_=>{if(_==="title")return f=!0,{buttonName:_};let y,v,b,A,D,M;if(y=a[_])b=I=>{y.click&&y.click.call(I.target,I,I.target)},(A=r.getCustomButtonIconClass(y))||(A=r.getIconClass(_,o))||(D=y.text),M=y.hint||y.text;else if(v=i[_]){h.push(_),b=()=>{s.changeView(_)},(D=v.buttonTextOverride)||(A=r.getIconClass(_,o))||(D=v.buttonTextDefault);let I=v.buttonTextOverride||v.buttonTextDefault;M=en(v.buttonTitleOverride||v.buttonTitleDefault||e.viewHint,[I,_],I)}else if(s[_])if(b=()=>{s[_]()},(D=l[_])||(A=r.getIconClass(_,o))||(D=d[_]),_==="prevYear"||_==="nextYear"){let I=_==="prevYear"?"prev":"next";M=en(c[I]||u[I],[d.year||"year","year"],d[_])}else M=I=>en(c[_]||u[_],[d[I]||I,I],d[_]);return{buttonName:_,buttonClick:b,buttonIcon:A,buttonText:D,buttonHint:M}})),viewsWithButtons:h,hasTitle:f}}class lb{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]}}let cb={ignoreRange:!0,parseMeta(t){return Array.isArray(t.events)?t.events:null},fetch(t,e){e({rawEvents:t.eventSource.meta})}};const db=Xe({name:"array-event-source",eventSourceDefs:[cb]});let ub={parseMeta(t){return typeof t.events=="function"?t.events:null},fetch(t,e,n){const{dateEnv:r}=t.context,i=t.eventSource.meta;F_(i.bind(null,Fc(t.range,r)),s=>e({rawEvents:s}),n)}};const fb=Xe({name:"func-event-source",eventSourceDefs:[ub]}),hb={method:String,extraParams:R,startParam:String,endParam:String,timeZoneParam:String};let pb={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=mb(r,t.range,t.context);U_(r.method,r.url,i).then(([s,o])=>{e({rawEvents:s,response:o})},n)}};const gb=Xe({name:"json-event-source",eventSourceRefiners:hb,eventSourceDefs:[pb]});function mb(t,e,n){let{dateEnv:r,options:i}=n,s,o,a,l,d={};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"?l=t.extraParams():l=t.extraParams||{},Object.assign(d,l),d[s]=r.formatIso(e.start),d[o]=r.formatIso(e.end),r.timeZone!=="local"&&(d[a]=r.timeZone),d}const Eb={daysOfWeek:R,startTime:j,endTime:j,duration:j,startRecur:R,endRecur:R};let yb={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,dateEnv:e},r;return t.duration&&(r=t.duration),!r&&t.startTime&&t.endTime&&(r=$E(t.endTime,t.startTime)),{allDayGuess:!t.startTime&&!t.endTime,duration:r,typeData:n}}return null},expand(t,e,n){let r=ot(e,{start:t.startRecur,end:t.endRecur});return r?vb(t.daysOfWeek,t.startTime,t.dateEnv,n,r):[]}};const _b=Xe({name:"simple-recurring-event",recurringTypes:[yb],eventRefiners:Eb});function vb(t,e,n,r,i){let s=t?yc(t):null,o=Z(i.start),a=i.end,l=[];for(e&&(e.milliseconds<0?a=ne(a,1):e.milliseconds>=1e3*60*60*24&&(o=ne(o,-1)));o<a;){let d;(!s||s[o.getUTCDay()])&&(e?d=r.add(o,e):d=o,l.push(r.createMarker(n.toDate(d)))),o=ne(o,1)}return l}const bb=Xe({name:"change-handler",optionChangeHandlers:{events(t,e){ba([t],e)},eventSources:ba}});function ba(t,e){let n=Xi(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 Tb(t,e){e.emitter.trigger("datesSet",Object.assign(Object.assign({},Fc(t.activeRange,e.dateEnv)),{view:e.viewApi}))}function Rb(t,e){let{emitter:n}=e;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",is(t,e))}const Ab=[db,fb,gb,_b,bb,Xe({name:"misc",isLoadingFuncs:[t=>ad(t.eventSources)],propSetHandlers:{dateProfile:Tb,eventStore:Rb}})];class Ib{constructor(e,n){this.runTaskOption=e,this.drainedOption=n,this.queue=[],this.delayedRunner=new ji(this.drain.bind(this))}request(e,n){this.queue.push(e),this.delayedRunner.request(n)}pause(e){this.delayedRunner.pause(e)}resume(e,n){this.delayedRunner.resume(e,n)}drain(){let{queue:e}=this;for(;e.length;){let n=[],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 Sb(t,e,n){let r;return/^(year|month)$/.test(t.currentRangeUnit)?r=t.currentRange:r=t.activeRange,n.formatRange(r.start,r.end,X(e.titleFormat||Db(t)),{isEndExclusive:t.isRangeAllDay,defaultSeparator:e.titleRangeSeparator})}function Db(t){let{currentRangeUnit:e}=t;if(e==="year")return{year:"numeric"};if(e==="month")return{year:"numeric",month:"long"};let n=tr(t.currentRange.start,t.currentRange.end);return n!==null&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}class Ta{constructor(){this.resetListeners=new Set}handleInput(e,n){const r=this.dateEnv;if(e!==r&&(typeof n=="function"?this.nowFn=n:r||(this.nowAnchorDate=e.toDate(n?e.createMarker(n):e.createNowMarker()),this.nowAnchorQueried=Date.now()),this.dateEnv=e,r))for(const i of this.resetListeners.values())i()}getDateMarker(){return this.nowAnchorDate?this.dateEnv.timestampToMarker(this.nowAnchorDate.valueOf()+(Date.now()-this.nowAnchorQueried)):this.dateEnv.createMarker(this.nowFn())}addResetListener(e){this.resetListeners.add(e)}removeResetListener(e){this.resetListeners.delete(e)}}class wb{constructor(e){this.computeCurrentViewData=F(this._computeCurrentViewData),this.organizeRawLocales=F(Ov),this.buildLocale=F(sd),this.buildPluginHooks=xv(),this.buildDateEnv=F(Cb),this.buildTheme=F(Ob),this.parseToolbars=F(ob),this.buildViewSpecs=F(Gv),this.buildDateProfileGenerator=zn(Mb),this.buildViewApi=F(Nb),this.buildViewUiProps=zn(Lb),this.buildEventUiBySource=F(Pb,xe),this.buildEventUiBases=F(xb),this.parseContextBusinessHours=zn(kb),this.buildTitle=F(Sb),this.nowManager=new Ta,this.emitter=new g_,this.actionRunner=new Ib(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=()=>this.data,this.dispatch=p=>{this.actionRunner.request(p)},this.props=e,this.actionRunner.pause(),this.nowManager=new Ta;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={nowManager:this.nowManager,dateEnv:r.dateEnv,options:r.calendarOptions,pluginHooks:r.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},a=qv(r.calendarOptions,r.dateEnv,this.nowManager),l=s.dateProfileGenerator.build(a);qe(l.activeRange,a)||(a=l.currentRange.start);for(let p of r.pluginHooks.contextInit)p(o);let d=Yv(r.calendarOptions,l,o),c={dynamicOptionOverrides:n,currentViewType:i,currentDate:a,dateProfile:l,businessHours:this.parseContextBusinessHours(o),eventSources:d,eventUiBases:{},eventStore:Qe(),renderableEventStore:Qe(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(o).selectionConfig},u=Object.assign(Object.assign({},o),c);for(let p of r.pluginHooks.reducers)Object.assign(c,p(null,null,u));Xr(c,o)&&this.emitter.trigger("loading",!0),this.state=c,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=jv(r.dynamicOptionOverrides,e),o=this.computeOptionsData(n.optionOverrides,s,n.calendarApi),a=zv(r.currentViewType,e),l=this.computeCurrentViewData(a,o,n.optionOverrides,s);n.calendarApi.currentDataManager=this,i.setThisContext(n.calendarApi),i.setOptions(l.options);let d={nowManager:this.nowManager,dateEnv:o.dateEnv,options:o.calendarOptions,pluginHooks:o.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:i,getCurrentData:this.getCurrentData},{currentDate:c,dateProfile:u}=r;this.data&&this.data.dateProfileGenerator!==l.dateProfileGenerator&&(u=l.dateProfileGenerator.build(c)),c=Wv(c,e),u=$v(u,e,c,l.dateProfileGenerator),(e.type==="PREV"||e.type==="NEXT"||!qe(u.currentRange,c))&&(c=u.currentRange.start);let p=Qv(r.eventSources,e,u,d),h=d_(r.eventStore,e,p,u,d),g=ad(p)&&!l.options.progressiveEventRendering&&r.renderableEventStore||h,{eventUiSingleBase:m,selectionConfig:_}=this.buildViewUiProps(d),y=this.buildEventUiBySource(p),v=this.buildEventUiBases(g.defs,m,y),b={dynamicOptionOverrides:s,currentViewType:a,currentDate:c,dateProfile:u,eventSources:p,eventStore:h,renderableEventStore:g,selectionConfig:_,eventUiBases:v,businessHours:this.parseContextBusinessHours(d),dateSelection:nb(r.dateSelection,e),eventSelection:rb(r.eventSelection,e),eventDrag:ib(r.eventDrag,e),eventResize:sb(r.eventResize,e)},A=Object.assign(Object.assign({},d),b);for(let I of o.pluginHooks.reducers)Object.assign(b,I(r,e,A));let D=Xr(r,d),M=Xr(b,d);!D&&M?i.trigger("loading",!0):D&&!M&&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({nowManager:this.nowManager,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,l=r&&r.calendarOptions,d=i.calendarOptions;if(l&&l!==d){l.timeZone!==d.timeZone&&(n.eventSources=o.eventSources=Zv(o.eventSources,n.dateProfile,o),n.eventStore=o.eventStore=ua(o.eventStore,r.dateEnv,o.dateEnv),n.renderableEventStore=o.renderableEventStore=ua(o.renderableEventStore,r.dateEnv,o.dateEnv));for(let c in a)(this.optionsForHandling.indexOf(c)!==-1||l[c]!==d[c])&&a[c](d[c],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:l}=this.processRawCalendarOptions(e,n);Ra(l);let d=this.buildDateEnv(i.timeZone,i.locale,i.weekNumberCalculation,i.firstDay,i.weekText,s,a,i.defaultRangeSeparator),c=this.buildViewSpecs(s.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,o),u=this.buildTheme(i,s),p=this.parseToolbars(i,this.stableOptionOverrides,u,c,r);return this.stableCalendarOptionsData={calendarOptions:i,pluginHooks:s,dateEnv:d,viewSpecs:c,theme:u,toolbarConfig:p,localeDefaults:o,availableRawLocales:a.map}}processRawCalendarOptions(e,n){let{locales:r,locale:i}=Wr([tn,e,n]),s=this.organizeRawLocales(r),o=s.map,a=this.buildLocale(i||s.defaultCode,o).options,l=this.buildPluginHooks(e.plugins||[],Ab),d=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},sa),oa),aa),l.listenerRefiners),l.optionRefiners),c={},u=Wr([tn,a,e,n]),p={},h=this.currentCalendarOptionsInput,f=this.currentCalendarOptionsRefined,g=!1;for(let m in u)this.optionsForRefining.indexOf(m)===-1&&(u[m]===h[m]||ct[m]&&m in h&&ct[m](h[m],u[m]))?p[m]=f[m]:d[m]?(p[m]=d[m](u[m]),g=!0):c[m]=h[m];return g&&(this.currentCalendarOptionsInput=u,this.currentCalendarOptionsRefined=p,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=n),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:l,availableLocaleData:s,localeDefaults:a,extra:c}}_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);Ra(a),this.nowManager.handleInput(n.dateEnv,o.now);let l=this.buildDateProfileGenerator({dateProfileGeneratorClass:s.optionDefaults.dateProfileGeneratorClass,nowManager:this.nowManager,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,validRangeInput:o.validRange,visibleRangeInput:o.visibleRange,fixedWeekCount:o.fixedWeekCount}),d=this.buildViewApi(e,this.getCurrentData,n.dateEnv);return{viewSpec:s,options:o,dateProfileGenerator:l,viewApi:d}}processRawViewOptions(e,n,r,i,s){let o=Wr([tn,e.optionDefaults,r,i,e.optionOverrides,s]),a=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},sa),oa),aa),Sy),n.listenerRefiners),n.optionRefiners),l={},d=this.currentViewOptionsInput,c=this.currentViewOptionsRefined,u=!1,p={};for(let h in o)o[h]===d[h]||ct[h]&&ct[h](o[h],d[h])?l[h]=c[h]:(o[h]===this.currentCalendarOptionsInput[h]||ct[h]&&ct[h](o[h],this.currentCalendarOptionsInput[h])?h in this.currentCalendarOptionsRefined&&(l[h]=this.currentCalendarOptionsRefined[h]):a[h]?l[h]=a[h](o[h]):p[h]=o[h],u=!0);return u&&(this.currentViewOptionsInput=o,this.currentViewOptionsRefined=l),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:p}}}function Cb(t,e,n,r,i,s,o,a){let l=sd(e||o.defaultCode,o.map);return new By({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:s.namedTimeZonedImpl,locale:l,weekNumberCalculation:n,firstDay:r,weekText:i,cmdFormatter:s.cmdFormatter,defaultSeparator:a})}function Ob(t,e){let n=e.themeClasses[t.themeSystem]||lt;return new n(t)}function Mb(t){let e=t.dateProfileGeneratorClass||Ic;return new e(t)}function Nb(t,e,n){return new lb(t,e,n)}function Pb(t){return Rt(t,e=>e.ui)}function xb(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 Lb(t){let{options:e}=t;return{eventUiSingleBase:ar({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:ar({constraint:e.selectConstraint,overlap:typeof e.selectOverlap=="boolean"?e.selectOverlap:void 0,allow:e.selectAllow},t)}}function Xr(t,e){for(let n of e.pluginHooks.isLoadingFuncs)if(n(t))return!0;return!1}function kb(t){return __(t.options.businessHours,t)}function Ra(t,e){for(let n in t)console.warn(`Unknown option '${n}'`)}class Bb extends ${render(){let e=this.props.widgetGroups.map(n=>this.renderWidgetGroup(n));return E("div",{className:"fc-toolbar-chunk"},...e)}renderWidgetGroup(e){let{props:n}=this,{theme:r}=this.context,i=[],s=!0;for(let o of e){let{buttonName:a,buttonClick:l,buttonText:d,buttonIcon:c,buttonHint:u}=o;if(a==="title")s=!1,i.push(E("h2",{className:"fc-toolbar-title",id:n.titleId},n.title));else{let p=a===n.activeButton,h=!n.isTodayEnabled&&a==="today"||!n.isPrevEnabled&&a==="prev"||!n.isNextEnabled&&a==="next",f=[`fc-${a}-button`,r.getClass("button")];p&&f.push(r.getClass("buttonActive")),i.push(E("button",{type:"button",title:typeof u=="function"?u(n.navUnit):u,disabled:h,"aria-pressed":p,className:f.join(" "),onClick:l},d||(c?E("span",{className:c,role:"img"}):"")))}}if(i.length>1){let o=s&&r.getClass("buttonGroup")||"";return E("div",{className:o},...i)}return i[0]}}class Aa extends ${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,E("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 E(Bb,{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 Fb extends ${constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,Ge(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||"",E("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 Ub extends Hc{constructor(e){super(e),this.handleSegClick=(n,r)=>{let{component:i}=this,{context:s}=i,o=Ti(r);if(o&&i.isValidSegDownEl(n.target)){let a=ze(n.target,".fc-event-forced-url"),l=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}),l&&!n.defaultPrevented&&(window.location.href=l)}},this.destroy=hc(e.el,"click",".fc-event",this.handleSegClick)}}class Gb extends Hc{constructor(e){super(e),this.handleEventElRemove=n=>{n===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(n,r)=>{Ti(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=FE(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,n,r){let{component:i}=this,{context:s}=i,o=Ti(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 Hb extends Dt{constructor(){super(...arguments),this.buildViewContext=F(Gy),this.buildViewPropTransformers=F(zb),this.buildToolbarProps=F(Vb),this.headerRef=fe(),this.footerRef=fe(),this.interactionsStore={},this.state={viewLabelId:rt()},this.registerInteractiveComponent=(e,n)=>{let r=V_(e,n),o=[Ub,Gb].concat(this.props.pluginHooks.componentInteractions).map(a=>new a(r));this.interactionsStore[e.uid]=o,ga[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 ga[e.uid]},this.resizeRunner=new ji(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=e=>{let{options:n}=this.props;n.handleWindowResize&&e.target===window&&this.resizeRunner.request(n.windowResizeDelay)}}render(){let{props:e}=this,{toolbarConfig:n,options:r}=e,i=!1,s="",o;e.isHeightAuto||e.forPrint?s="":r.height!=null?i=!0:r.contentHeight!=null?s=r.contentHeight:o=Math.max(r.aspectRatio,.5);let a=this.buildViewContext(e.viewSpec,e.viewApi,e.options,e.dateProfileGenerator,e.dateEnv,e.nowManager,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:void 0;return E(Ze.Provider,{value:a},E(wt,{unit:"day"},d=>{let c=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,d,e.viewTitle);return E(Y,null,n.header&&E(Aa,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:l},c)),E(Fb,{liquid:i,height:s,aspectRatio:o,labeledById:l},this.renderView(e),this.buildAppendContent()),n.footer&&E(Aa,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},c)))}))}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 E(Y,{},...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 E(o,Object.assign({},i))}}function Vb(t,e,n,r,i,s){let o=n.build(i,void 0,!1),a=n.buildPrev(e,r,!1),l=n.buildNext(e,r,!1);return{title:s,activeButton:t.type,navUnit:t.singleUnit,isTodayEnabled:o.isValid&&!qe(e.currentRange,i),isPrevEnabled:a.isValid,isNextEnabled:l.isValid}}function zb(t){return t.map(e=>new e)}class Wb extends W_{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;sr(()=>{on(E(H_,{options:r.calendarOptions,theme:r.theme,emitter:r.emitter},(i,s,o,a)=>(this.setClassNames(i),this.setHeight(s),E(Tc.Provider,{value:this.customContentRenderId},E(Hb,Object.assign({isHeightAuto:o,forPrint:a},r))))),this.el)})}else this.isRendered&&(this.isRendered=!1,on(null,this.el),this.setClassNames([]),this.setHeight(""))},SE(e),this.el=e,this.renderRunner=new ji(this.handleRenderRequest),new wb({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(){sr(()=>{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(!it(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){fc(this.el,"height",e)}}class qb extends ke{constructor(){super(...arguments),this.headerElRef=fe()}renderSimpleLayout(e,n){let{props:r,context:i}=this,s=[],o=lr(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}}),E(an,{elClasses:["fc-daygrid"],viewSpec:i.viewSpec},E(cs,{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,l=!o.forPrint&&lr(a.options),d=!o.forPrint&&Xc(a.options),c=[];return e&&c.push({type:"header",key:"header",isSticky:l,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),c.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:n}]}),d&&c.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:Ii}]}),E(an,{elClasses:["fc-daygrid"],viewSpec:a.viewSpec},E(s,{liquid:!o.isHeightAuto&&!o.forPrint,forPrint:o.forPrint,collapsibleWidth:o.forPrint,colGroups:[{cols:[{span:r,minWidth:i}]}],sections:c}))}}function qn(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 Ln(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 Ia(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 fd=X({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function hd(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 pd extends ${render(){let{props:e}=this;return E(ds,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:fd,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}}class gd extends ${render(){let{props:e,context:n}=this,{options:r}=n,{seg:i}=e,s=r.eventTimeFormat||fd,o=nn(i,s,n,!0,e.defaultDisplayEventEnd);return E(Ar,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:os(e.seg,n),defaultGenerator:jb,timeText:o,isResizing:!1,isDateSelecting:!1}))}}function jb(t){return E(Y,null,E("div",{className:"fc-daygrid-event-dot",style:{borderColor:t.borderColor||t.backgroundColor}}),t.timeText&&E("div",{className:"fc-event-time"},t.timeText),E("div",{className:"fc-event-title"},t.event.title||E(Y,null," ")))}class $b extends ${constructor(){super(...arguments),this.compileSegs=F(Yb)}render(){let{props:e}=this,{allSegs:n,invisibleSegs:r}=this.compileSegs(e.singlePlacements);return E(td,{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 E(Y,null,n.map(s=>{let o=s.eventRange.instance.instanceId;return E("div",{className:"fc-daygrid-event-harness",key:o,style:{visibility:i[o]?"hidden":""}},hd(s)?E(gd,Object.assign({seg:s,isDragging:!1,isSelected:o===e.eventSelection,defaultDisplayEventEnd:!1},je(s,e.todayRange))):E(pd,Object.assign({seg:s,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:o===e.eventSelection,defaultDisplayEventEnd:!1},je(s,e.todayRange))))}))}})}}function Yb(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 Qb=X({week:"narrow"});class Zb extends ke{constructor(){super(...arguments),this.rootElRef=fe(),this.state={dayNumberId:rt()},this.handleRootEl=e=>{Ge(this.rootElRef,e),Ge(this.props.elRef,e)}}render(){let{context:e,props:n,state:r,rootElRef:i}=this,{options:s,dateEnv:o}=e,{date:a,dateProfile:l}=n;const d=n.showDayNumber&&Kb(a,l.currentRange,o);return E(fs,{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:Xb,date:a,dateProfile:l,todayRange:n.todayRange,showDayNumber:n.showDayNumber,isMonthStart:d,extraRenderProps:n.extraRenderProps},(c,u)=>E("div",{ref:n.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:n.minHeight}},n.showWeekNumber&&E(ed,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:zt(e,a,"week"),date:a,defaultFormat:Qb}),!u.isDisabled&&(n.showDayNumber||hs(s)||n.forceDayTop)?E("div",{className:"fc-daygrid-day-top"},E(c,{elTag:"a",elClasses:["fc-daygrid-day-number",d&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},zt(e,a)),{id:r.dayNumberId})})):n.showDayNumber?E("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},E("a",{className:"fc-daygrid-day-number"}," ")):void 0,E("div",{className:"fc-daygrid-day-events",ref:n.fgContentElRef},n.fgContent,E("div",{className:"fc-daygrid-day-bottom",style:{marginTop:n.moreMarginTop}},E($b,{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}))),E("div",{className:"fc-daygrid-day-bg"},n.bgContent)))}}function Xb(t){return t.dayNumberText||E(Y,null," ")}function Kb(t,e,n){const{start:r,end:i}=e,s=st(i,-1),o=n.getYear(r),a=n.getMonth(r),l=n.getYear(s),d=n.getMonth(s);return!(o===l&&a===d)&&(t.valueOf()===r.valueOf()||n.getDay(t)===1&&t.valueOf()<i.valueOf())}function md(t){return t.eventRange.instance.instanceId+":"+t.firstCol}function Ed(t){return md(t)+":"+t.lastCol}function Jb(t,e,n,r,i,s,o){let a=new nT(_=>{let y=t[_.index].eventRange.instance.instanceId+":"+_.span.start+":"+(_.span.end-1);return i[y]||1});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 l=[],d=[];for(let _=0;_<t.length;_+=1){let y=t[_],v=Ed(y);i[v]!=null?l.push({index:_,span:{start:y.firstCol,end:y.lastCol+1}}):d.push(y)}let c=a.addSegs(l),u=a.toRects(),{singleColPlacements:p,multiColPlacements:h,leftoverMargins:f}=eT(u,t,o),g=[],m=[];for(let _ of d){h[_.firstCol].push({seg:_,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let y=_.firstCol;y<=_.lastCol;y+=1)p[y].push({seg:Ft(_,y,y+1,o),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let _=0;_<o.length;_+=1)g.push(0);for(let _ of c){let y=t[_.index],v=_.span;h[v.start].push({seg:Ft(y,v.start,v.end,o),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let b=v.start;b<v.end;b+=1)g[b]+=1,p[b].push({seg:Ft(y,b,b+1,o),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let _=0;_<o.length;_+=1)m.push(f[_]);return{singleColPlacements:p,multiColPlacements:h,moreCnts:g,moreMarginTops:m}}function eT(t,e,n){let r=tT(t,n.length),i=[],s=[],o=[];for(let a=0;a<n.length;a+=1){let l=r[a],d=[],c=0,u=0;for(let h of l){let f=e[h.index];d.push({seg:Ft(f,a,a+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:h.levelCoord,marginTop:h.levelCoord-c}),c=h.levelCoord+h.thickness}let p=[];c=0,u=0;for(let h of l){let f=e[h.index],g=h.span.end-h.span.start>1,m=h.span.start===a;u+=h.levelCoord-c,c=h.levelCoord+h.thickness,g?(u+=h.thickness,m&&p.push({seg:Ft(f,h.span.start,h.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:h.levelCoord,marginTop:0})):m&&(p.push({seg:Ft(f,h.span.start,h.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:h.levelCoord,marginTop:u}),u=0)}i.push(d),s.push(p),o.push(u)}return{singleColPlacements:i,multiColPlacements:s,leftoverMargins:o}}function tT(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 Ft(t,e,n,r){if(t.firstCol===e&&t.lastCol===n-1)return t;let i=t.eventRange,s=i.range,o=ot(s,{start:r[e].date,end:ne(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 nT extends Vc{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){const n=super.addSegs(e),{entriesByLevel:r}=this,i=s=>!this.forceHidden[bt(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:l}=e;if(this.hiddenConsumes&&o){const d=bt(o);if(!s[d])if(this.allowReslicing){const c=Object.assign(Object.assign({},o),{span:ls(o.span,n.span)}),u=bt(c);s[u]=!0,i[a][l]=c,r.push(c),this.splitEntry(o,n,r)}else s[d]=!0,r.push(o)}super.handleInvalidInsertion(e,n,r)}}class yd extends ke{constructor(){super(...arguments),this.cellElRefs=new We,this.frameElRefs=new We,this.fgElRefs=new We,this.segHarnessRefs=new We,this.rootElRef=fe(),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=Ln(e.businessHourSegs,s),a=Ln(e.bgEventSegs,s),l=Ln(this.getHighlightSegs(),s),d=Ln(this.getMirrorSegs(),s),{singleColPlacements:c,multiColPlacements:u,moreCnts:p,moreMarginTops:h}=Jb(ss(e.fgEventSegs,i.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,i.eventOrderStrict,n.segHeights,n.maxContentHeight,e.cells),f=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return E("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map((g,m)=>{let _=this.renderFgSegs(m,e.forPrint?c[m]:u[m],e.todayRange,f),y=this.renderFgSegs(m,rT(d[m],u),e.todayRange,{},!!e.eventDrag,!!e.eventResize,!1);return E(Zb,{key:g.key,elRef:this.cellElRefs.createRef(g.key),innerElRef:this.frameElRefs.createRef(g.key),dateProfile:e.dateProfile,date:g.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&m===0,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:g.extraRenderProps,extraDataAttrs:g.extraDataAttrs,extraClassNames:g.extraClassNames,extraDateSpan:g.extraDateSpan,moreCnt:p[m],moreMarginTop:h[m],singlePlacements:c[m],fgContentElRef:this.fgElRefs.createRef(g.key),fgContent:E(Y,null,E(Y,null,_),E(Y,null,y)),bgContent:E(Y,null,this.renderFillSegs(l[m],"highlight"),this.renderFillSegs(o[m],"non-business"),this.renderFillSegs(a[m],"bg-event")),minHeight:e.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,n){let r=this.props;this.updateSizing(!xe(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:l}=this,{eventSelection:d}=this.props,{framePositions:c}=this.state,u=this.props.cells.length===1,p=s||o||a,h=[];if(c)for(let f of n){let{seg:g}=f,{instanceId:m}=g.eventRange.instance,_=f.isVisible&&!i[m],y=f.isAbsolute,v="",b="";y&&(l.isRtl?(b=0,v=c.lefts[g.lastCol]-c.lefts[g.firstCol]):(v=0,b=c.rights[g.firstCol]-c.rights[g.lastCol])),h.push(E("div",{className:"fc-daygrid-event-harness"+(y?" fc-daygrid-event-harness-abs":""),key:md(g),ref:p?null:this.segHarnessRefs.createRef(Ed(g)),style:{visibility:_?"":"hidden",marginTop:y?"":f.marginTop,top:y?f.absoluteTop:"",left:v,right:b}},hd(g)?E(gd,Object.assign({seg:g,isDragging:s,isSelected:m===d,defaultDisplayEventEnd:u},je(g,r))):E(pd,Object.assign({seg:g,isDragging:s,isResizing:o,isDateSelecting:a,isSelected:m===d,defaultDisplayEventEnd:u},je(g,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 l=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(E("div",{key:Bc(a.eventRange),className:"fc-daygrid-bg-harness",style:l},n==="bg-event"?E(Kc,Object.assign({seg:a},je(a,i))):Jc(n)))}return E(Y,{},...o)}updateSizing(e){let{props:n,state:r,frameElRefs:i}=this;if(!n.forPrint&&n.clientWidth!==null){if(e){let l=n.cells.map(d=>i.currentMap[d.key]);if(l.length){let d=this.rootElRef.current,c=new Wt(d,l,!0,!1);(!r.framePositions||!r.framePositions.similarTo(c))&&this.setState({framePositions:new Wt(d,l,!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])}}yd.addStateEquality({segHeights:xe});function rT(t,e){if(!t.length)return[];let n=iT(e);return t.map(r=>({seg:r,isVisible:!0,isAbsolute:!0,absoluteTop:n[r.eventRange.instance.instanceId],marginTop:0}))}function iT(t){let e={};for(let n of t)for(let r of n)e[r.seg.eventRange.instance.instanceId]=r.absoluteTop;return e}class sT extends ke{constructor(){super(...arguments),this.splitBusinessHourSegs=F(qn),this.splitBgEventSegs=F(oT),this.splitFgEventSegs=F(qn),this.splitDateSelectionSegs=F(qn),this.splitEventDrag=F(Ia),this.splitEventResize=F(Ia),this.rowRefs=new We}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),l=this.splitEventDrag(e.eventDrag,r),d=this.splitEventResize(e.eventResize,r),c=r>=7&&e.clientWidth?e.clientWidth/n.options.aspectRatio/6:null;return E(wt,{unit:"day"},(u,p)=>E(Y,null,e.cells.map((h,f)=>E(yd,{ref:this.rowRefs.createRef(f),key:h.length?h[0].date.toISOString():f,showDayNumbers:r>1,showWeekNumbers:e.showWeekNumbers,todayRange:p,dateProfile:e.dateProfile,cells:h,renderIntro:e.renderRowIntro,businessHourSegs:i[f],eventSelection:e.eventSelection,bgEventSegs:s[f],fgEventSegs:o[f],dateSelectionSegs:a[f],eventDrag:l[f],eventResize:d[f],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:c,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 Wt(this.rootEl,this.rowRefs.collect().map(e=>e.getCellEls()[0]),!1,!0),this.colPositions=new Wt(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=ne(r,1);return{start:r,end:i}}}function oT(t,e){return qn(t.filter(aT),e)}function aT(t){return t.eventRange.def.allDay}class lT extends ke{constructor(){super(...arguments),this.elRef=fe(),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 E("div",{ref:this.elRef,className:o.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},E("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:i?e.clientHeight:""}},e.colGroupNode,E("tbody",{role:"presentation"},E(sT,{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=cT(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 cT(t,e){let n;return e.currentRangeUnit.match(/year|month/)&&(n=t.querySelector(`[data-date="${cy(e.currentDate)}-01"]`)),n||(n=t.querySelector(`[data-date="${gn(e.currentDate)}"]`)),n}class dT extends Yc{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,n){return n.sliceRange(e)}}class _d extends ke{constructor(){super(...arguments),this.slicer=new dT,this.tableRef=fe()}render(){let{props:e,context:n}=this;return E(lT,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 uT extends qb{constructor(){super(...arguments),this.buildDayTableModel=F(fT),this.headerRef=fe(),this.tableRef=fe()}render(){let{options:e,dateProfileGenerator:n}=this.context,{props:r}=this,i=this.buildDayTableModel(r.dateProfile,n),s=e.dayHeaders&&E(qc,{ref:this.headerRef,dateProfile:r.dateProfile,dates:i.headerDates,datesRepDistinctDays:i.rowCnt===1}),o=a=>E(_d,{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 fT(t,e){let n=new jc(t.renderRange,e);return new $c(n,/year|month|week/.test(t.currentRangeUnit))}class hT extends Ic{buildRenderRange(e,n,r){let i=super.buildRenderRange(e,n,r),{props:s}=this;return pT({currentRange:i,snapToWeek:/^(year|month)$/.test(n),fixedWeekCount:s.fixedWeekCount,dateEnv:s.dateEnv})}}function pT(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=ea(s,1))),t.fixedWeekCount){let o=e.startOfWeek(e.startOfMonth(ne(n.end,-1))),a=Math.ceil(KE(o,i));i=ea(i,6-a)}return{start:r,end:i}}var gT=':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}';Tr(gT);var mT=Xe({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:uT,dateProfileGeneratorClass:hT},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:"dayGrid",duration:{years:1}}}});class ET extends j_{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){return e.allDay?["allDay"]:["timed"]}getKeysForEventDef(e){return e.allDay?D_(e)?["timed","allDay"]:["allDay"]:["timed"]}}const yT=X({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function vd(t){let e=["fc-timegrid-slot","fc-timegrid-slot-label",t.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return E(Ze.Consumer,null,n=>{if(!t.isLabeled)return E("td",{className:e.join(" "),"data-time":t.isoTimeStr});let{dateEnv:r,options:i,viewApi:s}=n,o=i.slotLabelFormat==null?yT:Array.isArray(i.slotLabelFormat)?X(i.slotLabelFormat[0]):X(i.slotLabelFormat),a={level:0,time:t.time,date:r.toDate(t.date),view:s,text:r.format(t.date,o)};return E(de,{elTag:"td",elClasses:e,elAttrs:{"data-time":t.isoTimeStr},renderProps:a,generatorName:"slotLabelContent",customGenerator:i.slotLabelContent,defaultGenerator:_T,classNameGenerator:i.slotLabelClassNames,didMount:i.slotLabelDidMount,willUnmount:i.slotLabelWillUnmount},l=>E("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},E(l,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]})))})}function _T(t){return t.text}class vT extends ${render(){return this.props.slatMetas.map(e=>E("tr",{key:e.key},E(vd,Object.assign({},e))))}}const bT=X({week:"short"}),TT=5;class RT extends ke{constructor(){super(...arguments),this.allDaySplitter=new ET,this.headerElRef=fe(),this.rootElRef=fe(),this.scrollerElRef=fe(),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=at(s.start,s.end)===1?zt(this.context,s.start,"week"):{};return r.weekNumbers&&e==="day"?E(ed,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:s.start,defaultFormat:bT},l=>E("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:n}},E(l,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:a}))):E("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},E("div",{className:"fc-timegrid-axis-frame",style:{height:n}}))},this.renderTableRowAxis=e=>{let{options:n,viewApi:r}=this.context,i={text:n.allDayText,view:r};return E(de,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:i,generatorName:"allDayContent",customGenerator:n.allDayContent,defaultGenerator:AT,classNameGenerator:n.allDayClassNames,didMount:n.allDayDidMount,willUnmount:n.allDayWillUnmount},s=>E("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",e==null?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:e}},E(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=lr(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:E("tr",{role:"presentation",className:"fc-scrollgrid-section"},E("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}}),E(an,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:i.viewSpec},E(cs,{liquid:!s.isHeightAuto&&!s.forPrint,collapsibleWidth:s.forPrint,cols:[{width:"shrink"}],sections:o}))}renderHScrollLayout(e,n,r,i,s,o,a){let l=this.context.pluginHooks.scrollGridImpl;if(!l)throw new Error("No ScrollGrid implementation");let{context:d,props:c}=this,u=!c.forPrint&&lr(d.options),p=!c.forPrint&&Xc(d.options),h=[];e&&h.push({type:"header",key:"header",isSticky:u,syncRowHeights:!0,chunks:[{key:"axis",rowContent:g=>E("tr",{role:"presentation"},this.renderHeadAxis("day",g.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),n&&(h.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:g=>E("tr",{role:"presentation"},this.renderTableRowAxis(g.rowSyncHeights[0]))},{key:"cols",content:n}]}),h.push({key:"all-day-divider",type:"body",outerContent:E("tr",{role:"presentation",className:"fc-scrollgrid-section"},E("td",{colSpan:2,className:"fc-timegrid-divider "+d.theme.getClass("tableCellShaded")}))}));let f=d.options.nowIndicator;return h.push({type:"body",key:"body",liquid:!0,expandRows:!!d.options.expandRows,chunks:[{key:"axis",content:g=>E("div",{className:"fc-timegrid-axis-chunk"},E("table",{"aria-hidden":!0,style:{height:g.expandRows?g.clientHeight:""}},g.tableColGroupNode,E("tbody",null,E(vT,{slatMetas:o}))),E("div",{className:"fc-timegrid-now-indicator-container"},E(wt,{unit:f?"minute":"day"},m=>{let _=f&&a&&a.safeComputeTop(m);return typeof _=="number"?E(us,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:_},isAxis:!0,date:m}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:r}]}),p&&h.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:Ii},{key:"cols",content:Ii}]}),E(an,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:d.viewSpec},E(l,{liquid:!c.isHeightAuto&&!c.forPrint,forPrint:c.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=TT),{dayMaxEvents:e,dayMaxEventRows:n}}}function AT(t){return t.text}class IT{constructor(e,n,r){this.positions=e,this.dateProfile=n,this.slotDuration=r}safeComputeTop(e){let{dateProfile:n}=this;if(qe(n.currentRange,e)){let r=Z(e),i=e.valueOf()-r.valueOf();if(i>=Pe(n.slotMinTime)&&i<Pe(n.slotMaxTime))return this.computeTimeTop(j(i))}return null}computeDateTop(e,n){return n||(n=Z(e)),this.computeTimeTop(j(e.valueOf()-n.valueOf()))}computeTimeTop(e){let{positions:n,dateProfile:r}=this,i=n.els.length,s=(e.milliseconds-Pe(r.slotMinTime))/Pe(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 ST extends ${render(){let{props:e,context:n}=this,{options:r}=n,{slatElRefs:i}=e;return E("tbody",null,e.slatMetas.map((s,o)=>{let a={time:s.time,date:n.dateEnv.toDate(s.date),view:n.viewApi};return E("tr",{key:s.key,ref:i.createRef(s.key)},e.axis&&E(vd,Object.assign({},s)),E(de,{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 DT extends ${constructor(){super(...arguments),this.rootElRef=fe(),this.slatElRefs=new We}render(){let{props:e,context:n}=this;return E("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},E("table",{"aria-hidden":!0,className:n.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,E(ST,{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 IT(new Wt(this.rootElRef.current,wT(this.slatElRefs.currentMap,n.slatMetas),!1,!0),this.props.dateProfile,e.options.slotDuration))}}function wT(t,e){return e.map(n=>t[n.key])}function Xt(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 Sa(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 CT extends ${render(){let{props:e}=this;return E(td,{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:()=>Td(e.hiddenSegs,e),defaultGenerator:OT,forceTimed:!0},n=>E(n,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}}function OT(t){return t.shortText}function MT(t,e,n){let r=new Vc;e!=null&&(r.strictOrder=e),n!=null&&(r.maxStackCnt=n);let i=r.addSegs(t),s=tv(i),o=NT(r);return o=kT(o,1),{segRects:BT(o),hiddenGroups:s}}function NT(t){const{entriesByLevel:e}=t,n=gs((r,i)=>r+":"+i,(r,i)=>{let s=LT(t,r,i),o=Da(s,n),a=e[r][i];return[Object.assign(Object.assign({},a),{nextLevelNodes:o[0]}),a.thickness+o[1]]});return Da(e.length?{level:0,lateralStart:0,lateralEnd:e[0].length}:null,n)[0]}function Da(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(PT),[o.map(xT),o[0][1]]}function PT(t,e){return e[1]-t[1]}function xT(t){return t[0]}function LT(t,e,n){let{levelCoords:r,entriesByLevel:i}=t,s=i[e][n],o=r[e]+s.thickness,a=r.length,l=e;for(;l<a&&r[l]<o;l+=1);for(;l<a;l+=1){let d=i[l],c,u=Ai(d,s.span.start,Ri),p=u[0]+u[1],h=p;for(;(c=d[h])&&c.span.start<s.span.end;)h+=1;if(p<h)return{level:l,lateralStart:p,lateralEnd:h}}return null}function kT(t,e){const n=gs((r,i,s)=>bt(r),(r,i,s)=>{let{nextLevelNodes:o,thickness:a}=r,l=a+s,d=a/l,c,u=[];if(!o.length)c=e;else for(let h of o)if(c===void 0){let f=n(h,i,l);c=f[0],u.push(f[1])}else{let f=n(h,c,0);u.push(f[1])}let p=(c-i)*d;return[c-p,Object.assign(Object.assign({},r),{thickness:p,nextLevelNodes:u})]});return t.map(r=>n(r,0,0)[1])}function BT(t){let e=[];const n=gs((i,s,o)=>bt(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 l of i)a=Math.max(n(l,s,o),a);return a}return r(t,0,0),e}function gs(t,e){const n={};return(...r)=>{let i=t(...r);return i in n?n[i]:n[i]=e(...r)}}function wa(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),l=Math.max(a+(r||0),n.computeDateTop(o.end,e));i.push({start:Math.round(a),end:Math.round(l)})}return i}function FT(t,e,n,r){let i=[],s=[];for(let d=0;d<t.length;d+=1){let c=e[d];c?i.push({index:d,thickness:1,span:c}):s.push(t[d])}let{segRects:o,hiddenGroups:a}=MT(i,n,r),l=[];for(let d of o)l.push({seg:t[d.index],rect:d});for(let d of s)l.push({seg:d,rect:null});return{segPlacements:l,hiddenGroups:a}}const UT=X({hour:"numeric",minute:"2-digit",meridiem:!1});class bd extends ${render(){return E(ds,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:UT}))}}class GT extends ${constructor(){super(...arguments),this.sortEventSegs=F(ss)}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 E(fs,{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},l=>E("div",{className:"fc-timegrid-col-frame"},E("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(e.dateSelectionSegs,"highlight")),E("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(a,o,!1,!1,!1)),E("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(s,{},!!e.eventDrag,!!e.eventResize,!!i,"mirror")),E("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(e.nowIndicatorSegs)),hs(r)&&E(l,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(e,n,r,i,s,o){let{props:a}=this;return a.forPrint?Td(e,a):this.renderPositionedFgSegs(e,n,r,i,s,o)}renderPositionedFgSegs(e,n,r,i,s,o){let{eventMaxStack:a,eventShortHeight:l,eventOrderStrict:d,eventMinHeight:c}=this.context.options,{date:u,slatCoords:p,eventSelection:h,todayRange:f,nowDate:g}=this.props,m=r||i||s,_=wa(e,u,p,c),{segPlacements:y,hiddenGroups:v}=FT(e,_,d,a);return E(Y,null,this.renderHiddenGroups(v,e),y.map(b=>{let{seg:A,rect:D}=b,M=A.eventRange.instance.instanceId,I=m||!!(!n[M]&&D),N=Kr(D&&D.span),B=!m&&D?this.computeSegHStyle(D):{left:0,right:0},P=!!D&&D.stackForward>0,x=!!D&&D.span.end-D.span.start<l;return E("div",{className:"fc-timegrid-event-harness"+(P?" fc-timegrid-event-harness-inset":""),key:o||M,style:Object.assign(Object.assign({visibility:I?"":"hidden"},N),B)},E(bd,Object.assign({seg:A,isDragging:r,isResizing:i,isDateSelecting:s,isSelected:M===h,isShort:x},je(A,f,g))))}))}renderHiddenGroups(e,n){let{extraDateSpan:r,dateProfile:i,todayRange:s,nowDate:o,eventSelection:a,eventDrag:l,eventResize:d}=this.props;return E(Y,null,e.map(c=>{let u=Kr(c.span),p=HT(c.entries,n);return E(CT,{key:Ec(nd(p)),hiddenSegs:p,top:u.top,bottom:u.bottom,extraDateSpan:r,dateProfile:i,todayRange:s,nowDate:o,eventSelection:a,eventDrag:l,eventResize:d})}))}renderFillSegs(e,n){let{props:r,context:i}=this,o=wa(e,r.date,r.slatCoords,i.options.eventMinHeight).map((a,l)=>{let d=e[l];return E("div",{key:Bc(d.eventRange),className:"fc-timegrid-bg-harness",style:Kr(a)},n==="bg-event"?E(Kc,Object.assign({seg:d},je(d,r.todayRange,r.nowDate))):Jc(n))});return E(Y,null,o)}renderNowIndicator(e){let{slatCoords:n,date:r}=this.props;return n?e.map((i,s)=>E(us,{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,l;i&&(o=Math.min(1,s+(o-s)*2)),n?(a=1-o,l=s):(a=s,l=1-o);let d={zIndex:e.stackDepth+1,left:a*100+"%",right:l*100+"%"};return i&&!e.stackForward&&(d[n?"marginLeft":"marginRight"]=20),d}}function Td(t,{todayRange:e,nowDate:n,eventSelection:r,eventDrag:i,eventResize:s}){let o=(i?i.affectedInstances:null)||(s?s.affectedInstances:null)||{};return E(Y,null,t.map(a=>{let l=a.eventRange.instance.instanceId;return E("div",{key:l,style:{visibility:o[l]?"hidden":""}},E(bd,Object.assign({seg:a,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:l===r,isShort:!1},je(a,e,n))))}))}function Kr(t){return t?{top:t.start,bottom:-t.end}:{top:"",bottom:""}}function HT(t,e){return t.map(n=>e[n.index])}class VT extends ${constructor(){super(...arguments),this.splitFgEventSegs=F(Xt),this.splitBgEventSegs=F(Xt),this.splitBusinessHourSegs=F(Xt),this.splitNowIndicatorSegs=F(Xt),this.splitDateSelectionSegs=F(Xt),this.splitEventDrag=F(Sa),this.splitEventResize=F(Sa),this.rootElRef=fe(),this.cellElRefs=new We}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),l=this.splitNowIndicatorSegs(e.nowIndicatorSegs,i),d=this.splitDateSelectionSegs(e.dateSelectionSegs,i),c=this.splitEventDrag(e.eventDrag,i),u=this.splitEventResize(e.eventResize,i);return E("div",{className:"fc-timegrid-cols",ref:this.rootElRef},E("table",{role:"presentation",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,E("tbody",{role:"presentation"},E("tr",{role:"row"},e.axis&&E("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},E("div",{className:"fc-timegrid-col-frame"},E("div",{className:"fc-timegrid-now-indicator-container"},typeof r=="number"&&E(us,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:r},isAxis:!0,date:e.nowDate})))),e.cells.map((p,h)=>E(GT,{key:p.key,elRef:this.cellElRefs.createRef(p.key),dateProfile:e.dateProfile,date:p.date,nowDate:e.nowDate,todayRange:e.todayRange,extraRenderProps:p.extraRenderProps,extraDataAttrs:p.extraDataAttrs,extraClassNames:p.extraClassNames,extraDateSpan:p.extraDateSpan,fgEventSegs:s[h],bgEventSegs:o[h],businessHourSegs:a[h],nowIndicatorSegs:l[h],dateSelectionSegs:d[h],eventDrag:c[h],eventResize:u[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 Wt(this.rootElRef.current,zT(this.cellElRefs.currentMap,e.cells),!0,!1))}}function zT(t,e){return e.map(n=>t[n.key])}class WT extends ke{constructor(){super(...arguments),this.processSlotOptions=F(qT),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 E("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},E(DT,{axis:e.axis,dateProfile:e.dateProfile,slatMetas:e.slatMetas,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,tableColGroupNode:e.axis?e.tableColGroupNode:null,onCoords:this.handleSlatCoords}),E(VT,{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:l,snapsPerSlot:d}=this.processSlotOptions(this.props.slotDuration,i.snapDuration),c=s.leftToIndex(e),u=a.positions.topToIndex(n);if(c!=null&&u!=null){let p=this.props.cells[c],h=a.positions.tops[u],f=a.positions.getHeight(u),g=(n-h)/f,m=Math.floor(g*d),_=u*d+m,y=this.props.cells[c].date,v=mi(o.slotMinTime,YE(l,_)),b=r.add(y,v),A=r.add(b,l);return{dateProfile:o,dateSpan:Object.assign({range:{start:b,end:A},allDay:!1},p.extraDateSpan),dayEl:s.els[c],rect:{left:s.lefts[c],right:s.rights[c],top:h,bottom:h+f},layer:0}}return null}}function qT(t,e){let n=e||t,r=$i(t,n);return r===null&&(n=t,r=1),{snapDuration:n,snapsPerSlot:r}}class jT extends Yc{sliceRange(e,n){let r=[];for(let i=0;i<n.length;i+=1){let s=ot(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 $T extends ke{constructor(){super(...arguments),this.buildDayRanges=F(YT),this.slicer=new jT,this.timeColsRef=fe()}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 E(wt,{unit:s?"minute":"day"},(l,d)=>E(WT,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:l,nowIndicatorSegs:s&&this.slicer.sliceNowDate(l,r,o,n,a),todayRange:d,onScrollTopRequest:e.onScrollTopRequest,onSlatCoords:e.onSlatCoords})))}}function YT(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 Ca=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function QT(t,e,n,r,i){let s=new Date(0),o=t,a=j(0),l=n||ZT(r),d=[];for(;Pe(o)<Pe(e);){let c=i.add(s,o),u=$i(a,l)!==null;d.push({date:c,time:o,key:c.toISOString(),isoTimeStr:dy(c),isLabeled:u}),o=mi(o,r),a=mi(a,r)}return d}function ZT(t){let e,n,r;for(e=Ca.length-1;e>=0;e-=1)if(n=j(Ca[e]),r=$i(n,t),r!==null&&r>1)return n;return t}class XT extends RT{constructor(){super(...arguments),this.buildTimeColsModel=F(KT),this.buildSlatMetas=F(QT)}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),l=this.buildSlatMetas(s.slotMinTime,s.slotMaxTime,e.slotLabelInterval,e.slotDuration,n),{dayMinWidth:d}=e,c=!d,u=d,p=e.dayHeaders&&E(qc,{dates:o.headerDates,dateProfile:s,datesRepDistinctDays:!0,renderIntro:c?this.renderHeadAxis:null}),h=e.allDaySlot!==!1&&(g=>E(_d,Object.assign({},a.allDay,{dateProfile:s,dayTableModel:o,nextDayThreshold:e.nextDayThreshold,tableMinWidth:g.tableMinWidth,colGroupNode:g.tableColGroupNode,renderRowIntro:c?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:g.clientWidth,clientHeight:g.clientHeight,forPrint:i.forPrint},this.getAllDayMaxEventProps()))),f=g=>E($T,Object.assign({},a.timed,{dayTableModel:o,dateProfile:s,axis:c,slotDuration:e.slotDuration,slatMetas:l,forPrint:i.forPrint,tableColGroupNode:g.tableColGroupNode,tableMinWidth:g.tableMinWidth,clientWidth:g.clientWidth,clientHeight:g.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:g.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return u?this.renderHScrollLayout(p,h,f,o.colCnt,d,l,this.state.slatCoords):this.renderSimpleLayout(p,h,f)}}function KT(t,e){let n=new jc(t.renderRange,e);return new $c(n,!1)}var JT='.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-arrow,.fc .fc-timegrid-now-indicator-line{pointer-events:none}.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}';Tr(JT);const eR={allDaySlot:Boolean};var tR=Xe({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:eR,views:{timeGrid:{component:XT,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});class nR extends ${constructor(){super(...arguments),this.state={textId:rt()}}render(){let{theme:e,dateEnv:n,options:r,viewApi:i}=this.context,{cellId:s,dayDate:o,todayRange:a}=this.props,{textId:l}=this.state,d=as(o,a),c=r.listDayFormat?n.format(o,r.listDayFormat):"",u=r.listDaySideFormat?n.format(o,r.listDaySideFormat):"",p=Object.assign({date:n.toDate(o),view:i,textId:l,text:c,sideText:u,navLinkAttrs:zt(this.context,o),sideNavLinkAttrs:zt(this.context,o,"day",!1)},d);return E(de,{elTag:"tr",elClasses:["fc-list-day",...Rr(d,e)],elAttrs:{"data-date":gn(o)},renderProps:p,generatorName:"dayHeaderContent",customGenerator:r.dayHeaderContent,defaultGenerator:rR,classNameGenerator:r.dayHeaderClassNames,didMount:r.dayHeaderDidMount,willUnmount:r.dayHeaderWillUnmount},h=>E("th",{scope:"colgroup",colSpan:3,id:s,"aria-labelledby":l},E(h,{elTag:"div",elClasses:["fc-list-day-cushion",e.getClass("tableCellShaded")]})))}}function rR(t){return E(Y,null,t.text&&E("a",Object.assign({id:t.textId,className:"fc-list-day-text"},t.navLinkAttrs),t.text),t.sideText&&E("a",Object.assign({"aria-hidden":!0,className:"fc-list-day-side-text"},t.sideNavLinkAttrs),t.sideText))}const iR=X({hour:"numeric",minute:"2-digit",meridiem:"short"});class sR extends ${render(){let{props:e,context:n}=this,{options:r}=n,{seg:i,timeHeaderId:s,eventHeaderId:o,dateHeaderId:a}=e,l=r.eventTimeFormat||iR;return E(Ar,Object.assign({},e,{elTag:"tr",elClasses:["fc-list-event",i.eventRange.def.url&&"fc-event-forced-url"],defaultGenerator:()=>oR(i,n),seg:i,timeText:"",disableDragging:!0,disableResizing:!0}),(d,c)=>E(Y,null,aR(i,l,n,s,a),E("td",{"aria-hidden":!0,className:"fc-list-event-graphic"},E("span",{className:"fc-list-event-dot",style:{borderColor:c.borderColor||c.backgroundColor}})),E(d,{elTag:"td",elClasses:["fc-list-event-title"],elAttrs:{headers:`${o} ${a}`}})))}}function oR(t,e){let n=os(t,e);return E("a",Object.assign({},n),t.eventRange.def.title)}function aR(t,e,n,r,i){let{options:s}=n;if(s.displayEventTime!==!1){let o=t.eventRange.def,a=t.eventRange.instance,l=!1,d;if(o.allDay?l=!0:Zy(t.eventRange.range)?t.isStart?d=nn(t,e,n,null,null,a.range.start,t.end):t.isEnd?d=nn(t,e,n,null,null,t.start,a.range.end):l=!0:d=nn(t,e,n),l){let c={text:n.options.allDayText,view:n.viewApi};return E(de,{elTag:"td",elClasses:["fc-list-event-time"],elAttrs:{headers:`${r} ${i}`},renderProps:c,generatorName:"allDayContent",customGenerator:s.allDayContent,defaultGenerator:lR,classNameGenerator:s.allDayClassNames,didMount:s.allDayDidMount,willUnmount:s.allDayWillUnmount})}return E("td",{className:"fc-list-event-time"},d)}return null}function lR(t){return t.text}class cR extends ke{constructor(){super(...arguments),this.computeDateVars=F(uR),this.eventStoreToSegs=F(this._eventStoreToSegs),this.state={timeHeaderId:rt(),eventHeaderId:rt(),dateHeaderIdRoot:rt()},this.setRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)}}render(){let{props:e,context:n}=this,{dayDates:r,dayRanges:i}=this.computeDateVars(e.dateProfile),s=this.eventStoreToSegs(e.eventStore,e.eventUiBases,i);return E(an,{elRef:this.setRootEl,elClasses:["fc-list",n.theme.getClass("table"),n.options.stickyHeaderDates!==!1?"fc-list-sticky":""],viewSpec:n.viewSpec},E(Qc,{liquid:!e.isHeightAuto,overflowX:e.isHeightAuto?"visible":"hidden",overflowY:e.isHeightAuto?"visible":"auto"},s.length>0?this.renderSegList(s,r):this.renderEmptyMessage()))}renderEmptyMessage(){let{options:e,viewApi:n}=this.context,r={text:e.noEventsText,view:n};return E(de,{elTag:"div",elClasses:["fc-list-empty"],renderProps:r,generatorName:"noEventsContent",customGenerator:e.noEventsContent,defaultGenerator:dR,classNameGenerator:e.noEventsClassNames,didMount:e.noEventsDidMount,willUnmount:e.noEventsWillUnmount},i=>E(i,{elTag:"div",elClasses:["fc-list-empty-cushion"]}))}renderSegList(e,n){let{theme:r,options:i}=this.context,{timeHeaderId:s,eventHeaderId:o,dateHeaderIdRoot:a}=this.state,l=fR(e);return E(wt,{unit:"day"},(d,c)=>{let u=[];for(let p=0;p<l.length;p+=1){let h=l[p];if(h){let f=gn(n[p]),g=a+"-"+f;u.push(E(nR,{key:f,cellId:g,dayDate:n[p],todayRange:c})),h=ss(h,i.eventOrder);for(let m of h)u.push(E(sR,Object.assign({key:f+":"+m.eventRange.instance.instanceId,seg:m,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,timeHeaderId:s,eventHeaderId:o,dateHeaderId:g},je(m,c,d))))}}return E("table",{className:"fc-list-table "+r.getClass("table")},E("thead",null,E("tr",null,E("th",{scope:"col",id:s},i.timeHint),E("th",{scope:"col","aria-hidden":!0}),E("th",{scope:"col",id:o},i.eventHint))),E("tbody",null,u))})}_eventStoreToSegs(e,n,r){return this.eventRangesToSegs(bi(e,n,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,r)}eventRangesToSegs(e,n){let r=[];for(let i of e)r.push(...this.eventRangeToSegs(i,n));return r}eventRangeToSegs(e,n){let{dateEnv:r}=this.context,{nextDayThreshold:i}=this.context.options,s=e.range,o=e.def.allDay,a,l,d,c=[];for(a=0;a<n.length;a+=1)if(l=ot(s,n[a]),l&&(d={component:this,eventRange:e,start:l.start,end:l.end,isStart:e.isStart&&l.start.valueOf()===s.start.valueOf(),isEnd:e.isEnd&&l.end.valueOf()===s.end.valueOf(),dayIndex:a},c.push(d),!d.isEnd&&!o&&a+1<n.length&&s.end<r.add(n[a+1].start,i))){d.end=s.end,d.isEnd=!0;break}return c}}function dR(t){return t.text}function uR(t){let e=Z(t.renderRange.start),n=t.renderRange.end,r=[],i=[];for(;e<n;)r.push(e),i.push({start:e,end:ne(e,1)}),e=ne(e,1);return{dayDates:r,dayRanges:i}}function fR(t){let e=[],n,r;for(n=0;n<t.length;n+=1)r=t[n],(e[r.dayIndex]||(e[r.dayIndex]=[])).push(r);return e}var hR=':root{--fc-list-event-dot-width:10px;--fc-list-event-hover-bg-color:#f5f5f5}.fc-theme-standard .fc-list{border:1px solid var(--fc-border-color)}.fc .fc-list-empty{align-items:center;background-color:var(--fc-neutral-bg-color);display:flex;height:100%;justify-content:center}.fc .fc-list-empty-cushion{margin:5em 0}.fc .fc-list-table{border-style:hidden;width:100%}.fc .fc-list-table tr>*{border-left:0;border-right:0}.fc .fc-list-sticky .fc-list-day>*{background:var(--fc-page-bg-color);position:sticky;top:0}.fc .fc-list-table thead{left:-10000px;position:absolute}.fc .fc-list-table tbody>tr:first-child th{border-top:0}.fc .fc-list-table th{padding:0}.fc .fc-list-day-cushion,.fc .fc-list-table td{padding:8px 14px}.fc .fc-list-day-cushion:after{clear:both;content:"";display:table}.fc-theme-standard .fc-list-day-cushion{background-color:var(--fc-neutral-bg-color)}.fc-direction-ltr .fc-list-day-text,.fc-direction-rtl .fc-list-day-side-text{float:left}.fc-direction-ltr .fc-list-day-side-text,.fc-direction-rtl .fc-list-day-text{float:right}.fc-direction-ltr .fc-list-table .fc-list-event-graphic{padding-right:0}.fc-direction-rtl .fc-list-table .fc-list-event-graphic{padding-left:0}.fc .fc-list-event.fc-event-forced-url{cursor:pointer}.fc .fc-list-event:hover td{background-color:var(--fc-list-event-hover-bg-color)}.fc .fc-list-event-graphic,.fc .fc-list-event-time{white-space:nowrap;width:1px}.fc .fc-list-event-dot{border:calc(var(--fc-list-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-list-event-dot-width)/2);box-sizing:content-box;display:inline-block;height:0;width:0}.fc .fc-list-event-title a{color:inherit;text-decoration:none}.fc .fc-list-event.fc-event-forced-url:hover a{text-decoration:underline}';Tr(hR);const pR={listDayFormat:Oa,listDaySideFormat:Oa,noEventsClassNames:R,noEventsContent:R,noEventsDidMount:R,noEventsWillUnmount:R};function Oa(t){return t===!1?null:X(t)}var gR=Xe({name:"@fullcalendar/list",optionRefiners:pR,views:{list:{component:cR,buttonTextKey:"list",listDayFormat:{month:"long",day:"numeric",year:"numeric"}},listDay:{type:"list",duration:{days:1},listDayFormat:{weekday:"long"}},listWeek:{type:"list",duration:{weeks:1},listDayFormat:{weekday:"long"},listDaySideFormat:{month:"long",day:"numeric",year:"numeric"}},listMonth:{type:"list",duration:{month:1},listDaySideFormat:{weekday:"long"}},listYear:{type:"list",duration:{year:1},listDaySideFormat:{weekday:"long"}}}});const mR={labelIdle:'Arraste e solte os arquivos ou <span class="filepond--label-action"> clique aqui </span>',labelInvalidField:"Arquivos inválidos",labelFileWaitingForSize:"Calculando o tamanho do arquivo",labelFileSizeNotAvailable:"Tamanho do arquivo indisponível",labelFileLoading:"Carregando",labelFileLoadError:"Erro durante o carregamento",labelFileProcessing:"Enviando",labelFileProcessingComplete:"Envio finalizado",labelFileProcessingAborted:"Envio cancelado",labelFileProcessingError:"Erro durante o envio",labelFileProcessingRevertError:"Erro ao reverter o envio",labelFileRemoveError:"Erro ao remover o arquivo",labelTapToCancel:"clique para cancelar",labelTapToRetry:"clique para reenviar",labelTapToUndo:"clique para desfazer",labelButtonRemoveItem:"Remover",labelButtonAbortItemLoad:"Abortar",labelButtonRetryItemLoad:"Reenviar",labelButtonAbortItemProcessing:"Cancelar",labelButtonUndoItemProcessing:"Desfazer",labelButtonRetryItemProcessing:"Reenviar",labelButtonProcessItem:"Enviar",labelMaxFileSizeExceeded:"Arquivo é muito grande",labelMaxFileSize:"O tamanho máximo permitido: {filesize}",labelMaxTotalFileSizeExceeded:"Tamanho total dos arquivos excedido",labelMaxTotalFileSize:"Tamanho total permitido: {filesize}",labelFileTypeNotAllowed:"Tipo de arquivo inválido",fileValidateTypeLabelExpectedTypes:"Tipos de arquivo suportados são {allButLastType} ou {lastType}",imageValidateSizeLabelFormatError:"Tipo de imagem inválida",imageValidateSizeLabelImageSizeTooSmall:"Imagem muito pequena",imageValidateSizeLabelImageSizeTooBig:"Imagem muito grande",imageValidateSizeLabelExpectedMinSize:"Tamanho mínimo permitida: {minWidth} × {minHeight}",imageValidateSizeLabelExpectedMaxSize:"Tamanho máximo permitido: {maxWidth} × {maxHeight}",imageValidateSizeLabelImageResolutionTooLow:"Resolução muito baixa",imageValidateSizeLabelImageResolutionTooHigh:"Resolução muito alta",imageValidateSizeLabelExpectedMinResolution:"Resolução mínima permitida: {minResolution}",imageValidateSizeLabelExpectedMaxResolution:"Resolução máxima permitida: {maxResolution}"};ui(Ul,Gl,Wl);fi(mR);window.initFilePond=function(){document.querySelectorAll(".filepond").forEach(e=>{e._pond||FilePond.create(e)})};window.FullCalendar={Calendar:Wb,plugins:{dayGridPlugin:mT,timeGridPlugin:tR,listPlugin:gR}};
