@event-calendar/build 5.3.2 → 5.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * EventCalendar v5.3.2
2
+ * EventCalendar v5.3.3
3
3
  * https://github.com/vkurko/calendar
4
4
  */
5
- var EventCalendar=(function(tr){"use strict";var Ai=Array.isArray,Fo=Array.prototype.indexOf,yn=Array.prototype.includes,nr=Array.from,Oi=Object.defineProperty,wn=Object.getOwnPropertyDescriptor,Ho=Object.getOwnPropertyDescriptors,Wo=Object.prototype,Uo=Array.prototype,Ni=Object.getPrototypeOf,Fi=Object.isExtensible;const Zt=()=>{};function zo(e){for(var t=0;t<e.length;t++)e[t]()}function Hi(){var e,t,r=new Promise((i,s)=>{e=i,t=s});return{promise:r,resolve:e,reject:t}}function Vo(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const r=[];for(const i of e)if(r.push(i),r.length===t)break;return r}const Ge=2,rr=4,On=8,Rr=1<<24,Wt=16,Et=32,an=64,Ir=128,_t=512,ze=1024,nt=2048,Ut=4096,lt=8192,zt=16384,Lr=32768,Jt=65536,Wi=1<<17,Ui=1<<18,bn=1<<19,zi=1<<20,Vt=1<<25,ln=32768,Pr=1<<21,Mr=1<<22,Qt=1<<23,Nn=Symbol("$state"),Bo=Symbol("legacy props"),Go=Symbol(""),kn=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function Vi(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Yo(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function qo(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Xo(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ko(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Zo(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Jo(){throw new Error("https://svelte.dev/e/get_abort_signal_outside_reaction")}function Qo(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function jo(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function $o(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ea(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function ta(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const na=1,ra=2,Bi=4,ia=8,sa=16,oa=1,aa=4,la=8,ua=16,fa=1,da=2,Ye=Symbol(),ca="http://www.w3.org/1999/xhtml";function ha(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Gi(e){return e===this.v}function va(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Yi(e){return!va(e,this.v)}let cd=!1,Ze=null;function Cn(e){Ze=e}function re(e){return Xi().get(e)}function Fn(e,t){return Xi().set(e,t),t}function ye(e,t=!1,r){Ze={p:Ze,i:!1,c:null,e:null,s:e,x:null,l:null}}function we(e){var t=Ze,r=t.e;if(r!==null){t.e=null;for(var i of r)vs(i)}return e!==void 0&&(t.x=e),t.i=!0,Ze=t.p,e??{}}function qi(){return!0}function Xi(e){return Ze===null&&Vi(),Ze.c??=new Map(ga(Ze)||void 0)}function ga(e){let t=e.p;for(;t!==null;){const r=t.c;if(r!==null)return r;t=t.p}return null}let un=[];function Ki(){var e=un;un=[],zo(e)}function Pt(e){if(un.length===0&&!Hn){var t=un;queueMicrotask(()=>{t===un&&Ki()})}un.push(e)}function ma(){for(;un.length>0;)Ki()}function Zi(e){var t=Ee;if(t===null)return ve.f|=Qt,e;if((t.f&Lr)===0){if((t.f&Ir)===0)throw e;t.b.error(e)}else Dn(e,t)}function Dn(e,t){for(;t!==null;){if((t.f&Ir)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const pa=-7169;function He(e,t){e.f=e.f&pa|t}function Ar(e){(e.f&_t)!==0||e.deps===null?He(e,ze):He(e,Ut)}function Ji(e){if(e!==null)for(const t of e)(t.f&Ge)===0||(t.f&ln)===0||(t.f^=ln,Ji(t.deps))}function Qi(e,t,r){(e.f&nt)!==0?t.add(e):(e.f&Ut)!==0&&r.add(e),Ji(e.deps),He(e,ze)}const ir=new Set;let Le=null,Tt=null,ut=[],sr=null,Or=!1,Hn=!1;class jt{committed=!1;current=new Map;previous=new Map;#e=new Set;#n=new Set;#t=0;#r=0;#s=null;#i=new Set;#o=new Set;skipped_effects=new Set;is_fork=!1;#a=!1;is_deferred(){return this.is_fork||this.#r>0}process(t){ut=[],this.apply();var r=[],i=[];for(const s of t)this.#l(s,r,i);if(this.is_deferred()){this.#u(i),this.#u(r);for(const s of this.skipped_effects)ns(s)}else{for(const s of this.#e)s();this.#e.clear(),this.#t===0&&this.#f(),Le=null,$i(i),$i(r),this.#s?.resolve()}Tt=null}#l(t,r,i){t.f^=ze;for(var s=t.first,o=null;s!==null;){var l=s.f,u=(l&(Et|an))!==0,f=u&&(l&ze)!==0,d=f||(l&lt)!==0||this.skipped_effects.has(s);if(!d&&s.fn!==null){u?s.f^=ze:o!==null&&(l&(rr|On|Rr))!==0?o.b.defer_effect(s):(l&rr)!==0?r.push(s):zn(s)&&((l&Wt)!==0&&this.#o.add(s),Vn(s));var c=s.first;if(c!==null){s=c;continue}}var g=s.parent;for(s=s.next;s===null&&g!==null;)g===o&&(o=null),s=g.next,g=g.parent}}#u(t){for(var r=0;r<t.length;r+=1)Qi(t[r],this.#i,this.#o)}capture(t,r){r!==Ye&&!this.previous.has(t)&&this.previous.set(t,r),(t.f&Qt)===0&&(this.current.set(t,t.v),Tt?.set(t,t.v))}activate(){Le=this,this.apply()}deactivate(){Le===this&&(Le=null,Tt=null)}flush(){if(this.activate(),ut.length>0){if(ji(),Le!==null&&Le!==this)return}else this.#t===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#n)t(this);this.#n.clear()}#f(){if(ir.size>1){this.previous.clear();var t=Tt,r=!0;for(const s of ir){if(s===this){r=!1;continue}const o=[];for(const[u,f]of this.current){if(s.current.has(u))if(r&&f!==s.current.get(u))s.current.set(u,f);else continue;o.push(u)}if(o.length===0)continue;const l=[...s.current.keys()].filter(u=>!this.current.has(u));if(l.length>0){var i=ut;ut=[];const u=new Set,f=new Map;for(const d of o)es(d,l,u,f);if(ut.length>0){Le=s,s.apply();for(const d of ut)s.#l(d,[],[]);s.deactivate()}ut=i}}Le=null,Tt=t}this.committed=!0,ir.delete(this)}increment(t){this.#t+=1,t&&(this.#r+=1)}decrement(t){this.#t-=1,t&&(this.#r-=1),!this.#a&&(this.#a=!0,Pt(()=>{this.#a=!1,this.is_deferred()?ut.length>0&&this.flush():this.revive()}))}revive(){for(const t of this.#i)this.#o.delete(t),He(t,nt),Gt(t);for(const t of this.#o)He(t,Ut),Gt(t);this.flush()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#s??=Hi()).promise}static ensure(){if(Le===null){const t=Le=new jt;ir.add(Le),Hn||Pt(()=>{Le===t&&t.flush()})}return Le}apply(){}}function _a(e){var t=Hn;Hn=!0;try{for(var r;;){if(ma(),ut.length===0&&(Le?.flush(),ut.length===0))return sr=null,r;ji()}}finally{Hn=t}}function ji(){Or=!0;var e=null;try{for(var t=0;ut.length>0;){var r=jt.ensure();if(t++>1e3){var i,s;ya()}r.process(ut),$t.clear()}}finally{Or=!1,sr=null}}function ya(){try{Zo()}catch(e){Dn(e,sr)}}let Bt=null;function $i(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var i=e[r++];if((i.f&(zt|lt))===0&&zn(i)&&(Bt=new Set,Vn(i),i.deps===null&&i.first===null&&i.nodes===null&&(i.teardown===null&&i.ac===null?_s(i):i.fn=null),Bt?.size>0)){$t.clear();for(const s of Bt){if((s.f&(zt|lt))!==0)continue;const o=[s];let l=s.parent;for(;l!==null;)Bt.has(l)&&(Bt.delete(l),o.push(l)),l=l.parent;for(let u=o.length-1;u>=0;u--){const f=o[u];(f.f&(zt|lt))===0&&Vn(f)}}Bt.clear()}}Bt=null}}function es(e,t,r,i){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const s of e.reactions){const o=s.f;(o&Ge)!==0?es(s,t,r,i):(o&(Mr|Wt))!==0&&(o&nt)===0&&ts(s,t,i)&&(He(s,nt),Gt(s))}}function ts(e,t,r){const i=r.get(e);if(i!==void 0)return i;if(e.deps!==null)for(const s of e.deps){if(yn.call(t,s))return!0;if((s.f&Ge)!==0&&ts(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function Gt(e){for(var t=sr=e;t.parent!==null;){t=t.parent;var r=t.f;if(Or&&t===Ee&&(r&Wt)!==0&&(r&Ui)===0)return;if((r&(an|Et))!==0){if((r&ze)===0)return;t.f^=ze}}ut.push(t)}function ns(e){if(!((e.f&Et)!==0&&(e.f&ze)!==0)){He(e,ze);for(var t=e.first;t!==null;)ns(t),t=t.next}}function wa(e){let t=0,r=en(0),i;return()=>{Ur()&&(n(r),gs(()=>(t===0&&(i=j(()=>e(()=>Mt(r)))),t+=1,()=>{Pt(()=>{t-=1,t===0&&(i?.(),i=void 0,Mt(r))})})))}}var ba=Jt|bn|Ir;function ka(e,t,r){new Ca(e,t,r)}class Ca{parent;is_pending=!1;#e;#n=null;#t;#r;#s;#i=null;#o=null;#a=null;#l=null;#u=null;#f=0;#c=0;#v=!1;#h=!1;#g=new Set;#m=new Set;#d=null;#w=wa(()=>(this.#d=en(this.#f),()=>{this.#d=null}));constructor(t,r,i){this.#e=t,this.#t=r,this.#r=i,this.parent=Ee.b,this.is_pending=!!this.#t.pending,this.#s=Un(()=>{Ee.b=this;{var s=this.#y();try{this.#i=ft(()=>i(s))}catch(o){this.error(o)}this.#c>0?this.#_():this.is_pending=!1}return()=>{this.#u?.remove()}},ba)}#k(){try{this.#i=ft(()=>this.#r(this.#e))}catch(t){this.error(t)}}#C(){const t=this.#t.pending;t&&(this.#o=ft(()=>t(this.#e)),Pt(()=>{var r=this.#y();this.#i=this.#p(()=>(jt.ensure(),ft(()=>this.#r(r)))),this.#c>0?this.#_():(dn(this.#o,()=>{this.#o=null}),this.is_pending=!1)}))}#y(){var t=this.#e;return this.is_pending&&(this.#u=Yt(),this.#e.before(this.#u),t=this.#u),t}defer_effect(t){Qi(t,this.#g,this.#m)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#p(t){var r=Ee,i=ve,s=Ze;At(this.#s),yt(this.#s),Cn(this.#s.ctx);try{return t()}catch(o){return Zi(o),null}finally{At(r),yt(i),Cn(s)}}#_(){const t=this.#t.pending;this.#i!==null&&(this.#l=document.createDocumentFragment(),this.#l.append(this.#u),bs(this.#i,this.#l)),this.#o===null&&(this.#o=ft(()=>t(this.#e)))}#b(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#b(t);return}if(this.#c+=t,this.#c===0){this.is_pending=!1;for(const r of this.#g)He(r,nt),Gt(r);for(const r of this.#m)He(r,Ut),Gt(r);this.#g.clear(),this.#m.clear(),this.#o&&dn(this.#o,()=>{this.#o=null}),this.#l&&(this.#e.before(this.#l),this.#l=null)}}update_pending_count(t){this.#b(t),this.#f+=t,!(!this.#d||this.#v)&&(this.#v=!0,Pt(()=>{this.#v=!1,this.#d&&En(this.#d,this.#f)}))}get_effect_pending(){return this.#w(),n(this.#d)}error(t){var r=this.#t.onerror;let i=this.#t.failed;if(this.#h||!r&&!i)throw t;this.#i&&(et(this.#i),this.#i=null),this.#o&&(et(this.#o),this.#o=null),this.#a&&(et(this.#a),this.#a=null);var s=!1,o=!1;const l=()=>{if(s){ha();return}s=!0,o&&ta(),jt.ensure(),this.#f=0,this.#a!==null&&dn(this.#a,()=>{this.#a=null}),this.is_pending=this.has_pending_snippet(),this.#i=this.#p(()=>(this.#h=!1,ft(()=>this.#r(this.#e)))),this.#c>0?this.#_():this.is_pending=!1};Pt(()=>{try{o=!0,r?.(t,l),o=!1}catch(u){Dn(u,this.#s&&this.#s.parent)}i&&(this.#a=this.#p(()=>{jt.ensure(),this.#h=!0;try{return ft(()=>{i(this.#e,()=>t,()=>l)})}catch(u){return Dn(u,this.#s.parent),null}finally{this.#h=!1}}))})}}function Da(e,t,r,i){const s=or;var o=e.filter(h=>!h.settled);if(r.length===0&&o.length===0){i(t.map(s));return}var l=Le,u=Ee,f=Ea(),d=o.length===1?o[0].promise:o.length>1?Promise.all(o.map(h=>h.promise)):null;function c(h){f();try{i(h)}catch(v){(u.f&zt)===0&&Dn(v,u)}l?.deactivate(),Nr()}if(r.length===0){d.then(()=>c(t.map(s)));return}function g(){f(),Promise.all(r.map(h=>Ta(h))).then(h=>c([...t.map(s),...h])).catch(h=>Dn(h,u))}d?d.then(g):g()}function Ea(){var e=Ee,t=ve,r=Ze,i=Le;return function(o=!0){At(e),yt(t),Cn(r),o&&i?.activate()}}function Nr(){At(null),yt(null),Cn(null)}function or(e){var t=Ge|nt,r=ve!==null&&(ve.f&Ge)!==0?ve:null;return Ee!==null&&(Ee.f|=bn),{ctx:Ze,deps:null,effects:null,equals:Gi,f:t,fn:e,reactions:null,rv:0,v:Ye,wv:0,parent:r??Ee,ac:null}}function Ta(e,t,r){let i=Ee;i===null&&Yo();var s=i.b,o=void 0,l=en(Ye),u=!ve,f=new Map;return Aa(()=>{var d=Hi();o=d.promise;try{Promise.resolve(e()).then(d.resolve,d.reject).then(()=>{c===Le&&c.committed&&c.deactivate(),Nr()})}catch(v){d.reject(v),Nr()}var c=Le;if(u){var g=s.is_rendered();s.update_pending_count(1),c.increment(g),f.get(c)?.reject(kn),f.delete(c),f.set(c,d)}const h=(v,p=void 0)=>{if(c.activate(),p)p!==kn&&(l.f|=Qt,En(l,p));else{(l.f&Qt)!==0&&(l.f^=Qt),En(l,v);for(const[_,m]of f){if(f.delete(_),_===c)break;m.reject(kn)}}u&&(s.update_pending_count(-1),c.decrement(g))};d.promise.then(h,v=>h(null,v||"unknown"))}),zr(()=>{for(const d of f.values())d.reject(kn)}),new Promise(d=>{function c(g){function h(){g===o?d(l):c(o)}g.then(h,h)}c(o)})}function a(e){const t=or(e);return Cs(t),t}function rs(e){const t=or(e);return t.equals=Yi,t}function is(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)et(t[r])}}function xa(e){for(var t=e.parent;t!==null;){if((t.f&Ge)===0)return(t.f&zt)===0?t:null;t=t.parent}return null}function Fr(e){var t,r=Ee;At(xa(e));try{e.f&=~ln,is(e),t=Ss(e)}finally{At(r)}return t}function ss(e){var t=Fr(e);if(!e.equals(t)&&(e.wv=Ts(),(!Le?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){He(e,ze);return}tn||(Tt!==null?(Ur()||Le?.is_fork)&&Tt.set(e,t):Ar(e))}let Hr=new Set;const $t=new Map;let os=!1;function en(e,t){var r={f:0,v:e,reactions:null,equals:Gi,rv:0,wv:0};return r}function q(e,t){const r=en(e);return Cs(r),r}function as(e,t=!1,r=!0){const i=en(e);return t||(i.equals=Yi),i}function b(e,t,r=!1){ve!==null&&(!Rt||(ve.f&Wi)!==0)&&qi()&&(ve.f&(Ge|Wt|Mr|Wi))!==0&&(wt===null||!yn.call(wt,e))&&ea();let i=r?qe(t):t;return En(e,i)}function En(e,t){if(!e.equals(t)){var r=e.v;tn?$t.set(e,t):$t.set(e,r),e.v=t;var i=jt.ensure();if(i.capture(e,r),(e.f&Ge)!==0){const s=e;(e.f&nt)!==0&&Fr(s),Ar(s)}e.wv=Ts(),ls(e,nt),Ee!==null&&(Ee.f&ze)!==0&&(Ee.f&(Et|an))===0&&(bt===null?Ha([e]):bt.push(e)),!i.is_fork&&Hr.size>0&&!os&&Sa()}return t}function Sa(){os=!1;for(const e of Hr)(e.f&ze)!==0&&He(e,Ut),zn(e)&&Vn(e);Hr.clear()}function Mt(e){b(e,e.v+1)}function ls(e,t){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var o=r[s],l=o.f,u=(l&nt)===0;if(u&&He(o,t),(l&Ge)!==0){var f=o;Tt?.delete(f),(l&ln)===0&&(l&_t&&(o.f|=ln),ls(f,Ut))}else u&&((l&Wt)!==0&&Bt!==null&&Bt.add(o),Gt(o))}}function qe(e){if(typeof e!="object"||e===null||Nn in e)return e;const t=Ni(e);if(t!==Wo&&t!==Uo)return e;var r=new Map,i=Ai(e),s=q(0),o=qt,l=u=>{if(qt===o)return u();var f=ve,d=qt;yt(null),Es(o);var c=u();return yt(f),Es(d),c};return i&&r.set("length",q(e.length)),new Proxy(e,{defineProperty(u,f,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&jo();var c=r.get(f);return c===void 0?c=l(()=>{var g=q(d.value);return r.set(f,g),g}):b(c,d.value,!0),!0},deleteProperty(u,f){var d=r.get(f);if(d===void 0){if(f in u){const c=l(()=>q(Ye));r.set(f,c),Mt(s)}}else b(d,Ye),Mt(s);return!0},get(u,f,d){if(f===Nn)return e;var c=r.get(f),g=f in u;if(c===void 0&&(!g||wn(u,f)?.writable)&&(c=l(()=>{var v=qe(g?u[f]:Ye),p=q(v);return p}),r.set(f,c)),c!==void 0){var h=n(c);return h===Ye?void 0:h}return Reflect.get(u,f,d)},getOwnPropertyDescriptor(u,f){var d=Reflect.getOwnPropertyDescriptor(u,f);if(d&&"value"in d){var c=r.get(f);c&&(d.value=n(c))}else if(d===void 0){var g=r.get(f),h=g?.v;if(g!==void 0&&h!==Ye)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return d},has(u,f){if(f===Nn)return!0;var d=r.get(f),c=d!==void 0&&d.v!==Ye||Reflect.has(u,f);if(d!==void 0||Ee!==null&&(!c||wn(u,f)?.writable)){d===void 0&&(d=l(()=>{var h=c?qe(u[f]):Ye,v=q(h);return v}),r.set(f,d));var g=n(d);if(g===Ye)return!1}return c},set(u,f,d,c){var g=r.get(f),h=f in u;if(i&&f==="length")for(var v=d;v<g.v;v+=1){var p=r.get(v+"");p!==void 0?b(p,Ye):v in u&&(p=l(()=>q(Ye)),r.set(v+"",p))}if(g===void 0)(!h||wn(u,f)?.writable)&&(g=l(()=>q(void 0)),b(g,qe(d)),r.set(f,g));else{h=g.v!==Ye;var _=l(()=>qe(d));b(g,_)}var m=Reflect.getOwnPropertyDescriptor(u,f);if(m?.set&&m.set.call(c,d),!h){if(i&&typeof f=="string"){var y=r.get("length"),E=Number(f);Number.isInteger(E)&&E>=y.v&&b(y,E+1)}Mt(s)}return!0},ownKeys(u){n(s);var f=Reflect.ownKeys(u).filter(g=>{var h=r.get(g);return h===void 0||h.v!==Ye});for(var[d,c]of r)c.v!==Ye&&!(d in u)&&f.push(d);return f},setPrototypeOf(){$o()}})}var xt,us,fs,ds;function Ra(){if(xt===void 0){xt=window,us=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;fs=wn(t,"firstChild").get,ds=wn(t,"nextSibling").get,Fi(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Fi(r)&&(r.__t=void 0)}}function Yt(e=""){return document.createTextNode(e)}function ar(e){return fs.call(e)}function Wn(e){return ds.call(e)}function fe(e,t){return ar(e)}function Q(e,t=!1){{var r=ar(e);return r instanceof Comment&&r.data===""?Wn(r):r}}function se(e,t=1,r=!1){let i=e;for(;t--;)i=Wn(i);return i}function Ia(e){e.textContent=""}function cs(){return!1}function La(e,t){{const r=document.body;e.autofocus=!0,Pt(()=>{document.activeElement===r&&e.focus()})}}function Wr(e){var t=ve,r=Ee;yt(null),At(null);try{return e()}finally{yt(t),At(r)}}function hs(e){Ee===null&&(ve===null&&Ko(),Xo()),tn&&qo()}function Pa(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function St(e,t,r){var i=Ee;i!==null&&(i.f&lt)!==0&&(e|=lt);var s={ctx:Ze,deps:null,nodes:null,f:e|nt|_t,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,wv:0,ac:null};if(r)try{Vn(s),s.f|=Lr}catch(u){throw et(s),u}else t!==null&&Gt(s);var o=s;if(r&&o.deps===null&&o.teardown===null&&o.nodes===null&&o.first===o.last&&(o.f&bn)===0&&(o=o.first,(e&Wt)!==0&&(e&Jt)!==0&&o!==null&&(o.f|=Jt)),o!==null&&(o.parent=i,i!==null&&Pa(o,i),ve!==null&&(ve.f&Ge)!==0&&(e&an)===0)){var l=ve;(l.effects??=[]).push(o)}return s}function Ur(){return ve!==null&&!Rt}function zr(e){const t=St(On,null,!1);return He(t,ze),t.teardown=e,t}function Xe(e){hs();var t=Ee.f,r=!ve&&(t&Et)!==0&&(t&Lr)===0;if(r){var i=Ze;(i.e??=[]).push(e)}else return vs(e)}function vs(e){return St(rr|zi,e,!1)}function fn(e){return hs(),St(On|zi,e,!0)}function Ma(e){jt.ensure();const t=St(an|bn,e,!0);return(r={})=>new Promise(i=>{r.outro?dn(t,()=>{et(t),i(void 0)}):(et(t),i(void 0))})}function Vr(e){return St(rr,e,!1)}function Aa(e){return St(Mr|bn,e,!0)}function gs(e,t=0){return St(On|t,e,!0)}function ae(e,t=[],r=[],i=[]){Da(i,t,r,s=>{St(On,()=>e(...s.map(n)),!0)})}function Un(e,t=0){var r=St(Wt|t,e,!0);return r}function Oa(e,t=0){var r=St(Rr|t,e,!0);return r}function ft(e){return St(Et|bn,e,!0)}function ms(e){var t=e.teardown;if(t!==null){const r=tn,i=ve;ks(!0),yt(null);try{t.call(null)}finally{ks(r),yt(i)}}}function ps(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&Wr(()=>{s.abort(kn)});var i=r.next;(r.f&an)!==0?r.parent=null:et(r,t),r=i}}function Na(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Et)===0&&et(t),t=r}}function et(e,t=!0){var r=!1;(t||(e.f&Ui)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Fa(e.nodes.start,e.nodes.end),r=!0),ps(e,t&&!r),ur(e,0),He(e,zt);var i=e.nodes&&e.nodes.t;if(i!==null)for(const o of i)o.stop();ms(e);var s=e.parent;s!==null&&s.first!==null&&_s(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Fa(e,t){for(;e!==null;){var r=e===t?null:Wn(e);e.remove(),e=r}}function _s(e){var t=e.parent,r=e.prev,i=e.next;r!==null&&(r.next=i),i!==null&&(i.prev=r),t!==null&&(t.first===e&&(t.first=i),t.last===e&&(t.last=r))}function dn(e,t,r=!0){var i=[];ys(e,i,!0);var s=()=>{r&&et(e),t&&t()},o=i.length;if(o>0){var l=()=>--o||s();for(var u of i)u.out(l)}else s()}function ys(e,t,r){if((e.f&lt)===0){e.f^=lt;var i=e.nodes&&e.nodes.t;if(i!==null)for(const u of i)(u.is_global||r)&&t.push(u);for(var s=e.first;s!==null;){var o=s.next,l=(s.f&Jt)!==0||(s.f&Et)!==0&&(e.f&Wt)!==0;ys(s,t,l?r:!1),s=o}}}function Br(e){ws(e,!0)}function ws(e,t){if((e.f&lt)!==0){e.f^=lt,(e.f&ze)===0&&(He(e,nt),Gt(e));for(var r=e.first;r!==null;){var i=r.next,s=(r.f&Jt)!==0||(r.f&Et)!==0;ws(r,s?t:!1),r=i}var o=e.nodes&&e.nodes.t;if(o!==null)for(const l of o)(l.is_global||t)&&l.in()}}function bs(e,t){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end;r!==null;){var s=r===i?null:Wn(r);t.append(r),r=s}}let lr=!1,tn=!1;function ks(e){tn=e}let ve=null,Rt=!1;function yt(e){ve=e}let Ee=null;function At(e){Ee=e}let wt=null;function Cs(e){ve!==null&&(wt===null?wt=[e]:wt.push(e))}let rt=null,dt=0,bt=null;function Ha(e){bt=e}let Ds=1,cn=0,qt=cn;function Es(e){qt=e}function Ts(){return++Ds}function zn(e){var t=e.f;if((t&nt)!==0)return!0;if(t&Ge&&(e.f&=~ln),(t&Ut)!==0){for(var r=e.deps,i=r.length,s=0;s<i;s++){var o=r[s];if(zn(o)&&ss(o),o.wv>e.wv)return!0}(t&_t)!==0&&Tt===null&&He(e,ze)}return!1}function xs(e,t,r=!0){var i=e.reactions;if(i!==null&&!(wt!==null&&yn.call(wt,e)))for(var s=0;s<i.length;s++){var o=i[s];(o.f&Ge)!==0?xs(o,t,!1):t===o&&(r?He(o,nt):(o.f&ze)!==0&&He(o,Ut),Gt(o))}}function Ss(e){var t=rt,r=dt,i=bt,s=ve,o=wt,l=Ze,u=Rt,f=qt,d=e.f;rt=null,dt=0,bt=null,ve=(d&(Et|an))===0?e:null,wt=null,Cn(e.ctx),Rt=!1,qt=++cn,e.ac!==null&&(Wr(()=>{e.ac.abort(kn)}),e.ac=null);try{e.f|=Pr;var c=e.fn,g=c(),h=e.deps,v=Le?.is_fork;if(rt!==null){var p;if(v||ur(e,dt),h!==null&&dt>0)for(h.length=dt+rt.length,p=0;p<rt.length;p++)h[dt+p]=rt[p];else e.deps=h=rt;if(Ur()&&(e.f&_t)!==0)for(p=dt;p<h.length;p++)(h[p].reactions??=[]).push(e)}else!v&&h!==null&&dt<h.length&&(ur(e,dt),h.length=dt);if(qi()&&bt!==null&&!Rt&&h!==null&&(e.f&(Ge|Ut|nt))===0)for(p=0;p<bt.length;p++)xs(bt[p],e);if(s!==null&&s!==e){if(cn++,s.deps!==null)for(let _=0;_<r;_+=1)s.deps[_].rv=cn;if(t!==null)for(const _ of t)_.rv=cn;bt!==null&&(i===null?i=bt:i.push(...bt))}return(e.f&Qt)!==0&&(e.f^=Qt),g}catch(_){return Zi(_)}finally{e.f^=Pr,rt=t,dt=r,bt=i,ve=s,wt=o,Cn(l),Rt=u,qt=f}}function Wa(e,t){let r=t.reactions;if(r!==null){var i=Fo.call(r,e);if(i!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[i]=r[s],r.pop())}}if(r===null&&(t.f&Ge)!==0&&(rt===null||!yn.call(rt,t))){var o=t;(o.f&_t)!==0&&(o.f^=_t,o.f&=~ln),Ar(o),is(o),ur(o,0)}}function ur(e,t){var r=e.deps;if(r!==null)for(var i=t;i<r.length;i++)Wa(e,r[i])}function Vn(e){var t=e.f;if((t&zt)===0){He(e,ze);var r=Ee,i=lr;Ee=e,lr=!0;try{(t&(Wt|Rr))!==0?Na(e):ps(e),ms(e);var s=Ss(e);e.teardown=typeof s=="function"?s:null,e.wv=Ds;var o}finally{lr=i,Ee=r}}}async function hn(){await Promise.resolve(),_a()}function n(e){var t=e.f,r=(t&Ge)!==0;if(ve!==null&&!Rt){var i=Ee!==null&&(Ee.f&zt)!==0;if(!i&&(wt===null||!yn.call(wt,e))){var s=ve.deps;if((ve.f&Pr)!==0)e.rv<cn&&(e.rv=cn,rt===null&&s!==null&&s[dt]===e?dt++:rt===null?rt=[e]:rt.push(e));else{(ve.deps??=[]).push(e);var o=e.reactions;o===null?e.reactions=[ve]:yn.call(o,ve)||o.push(ve)}}}if(tn&&$t.has(e))return $t.get(e);if(r){var l=e;if(tn){var u=l.v;return((l.f&ze)===0&&l.reactions!==null||Is(l))&&(u=Fr(l)),$t.set(l,u),u}var f=(l.f&_t)===0&&!Rt&&ve!==null&&(lr||(ve.f&_t)!==0),d=l.deps===null;zn(l)&&(f&&(l.f|=_t),ss(l)),f&&!d&&Rs(l)}if(Tt?.has(e))return Tt.get(e);if((e.f&Qt)!==0)throw e.v;return e.v}function Rs(e){if(e.deps!==null){e.f|=_t;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&Ge)!==0&&(t.f&_t)===0&&Rs(t)}}function Is(e){if(e.v===Ye)return!0;if(e.deps===null)return!1;for(const t of e.deps)if($t.has(t)||(t.f&Ge)!==0&&Is(t))return!0;return!1}function j(e){var t=Rt;try{return Rt=!0,e()}finally{Rt=t}}const Ua=["touchstart","touchmove"];function za(e){return Ua.includes(e)}const Ls=new Set,Gr=new Set;function Va(e,t,r,i={}){function s(o){if(i.capture||Bn.call(t,o),!o.cancelBubble)return Wr(()=>r?.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Pt(()=>{t.addEventListener(e,s,i)}):t.addEventListener(e,s,i),s}function ct(e,t,r,i,s){var o={capture:i,passive:s},l=Va(e,t,r,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&zr(()=>{t.removeEventListener(e,l,o)})}function nn(e){for(var t=0;t<e.length;t++)Ls.add(e[t]);for(var r of Gr)r(e)}let Ps=null;function Bn(e){var t=this,r=t.ownerDocument,i=e.type,s=e.composedPath?.()||[],o=s[0]||e.target;Ps=e;var l=0,u=Ps===e&&e.__root;if(u){var f=s.indexOf(u);if(f!==-1&&(t===document||t===window)){e.__root=t;return}var d=s.indexOf(t);if(d===-1)return;f<=d&&(l=f)}if(o=s[l]||e.target,o!==t){Oi(e,"currentTarget",{configurable:!0,get(){return o||r}});var c=ve,g=Ee;yt(null),At(null);try{for(var h,v=[];o!==null;){var p=o.assignedSlot||o.parentNode||o.host||null;try{var _=o["__"+i];_!=null&&(!o.disabled||e.target===o)&&_.call(o,e)}catch(m){h?v.push(m):h=m}if(e.cancelBubble||p===t||p===null)break;o=p}if(h){for(let m of v)queueMicrotask(()=>{throw m});throw h}}finally{e.__root=t,delete e.currentTarget,yt(c),At(g)}}}function Ba(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function fr(e,t){var r=Ee;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function $(e,t){var r=(t&fa)!==0,i=(t&da)!==0,s,o=!e.startsWith("<!>");return()=>{s===void 0&&(s=Ba(o?e:"<!>"+e),r||(s=ar(s)));var l=i||us?document.importNode(s,!0):s.cloneNode(!0);if(r){var u=ar(l),f=l.lastChild;fr(u,f)}else fr(l,l);return l}}function Ms(e=""){{var t=Yt(e+"");return fr(t,t),t}}function ue(){var e=document.createDocumentFragment(),t=document.createComment(""),r=Yt();return e.append(t,r),fr(t,r),e}function S(e,t){e!==null&&e.before(t)}function As(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function Ga(e,t){return Ya(e,t)}const Tn=new Map;function Ya(e,{target:t,anchor:r,props:i={},events:s,context:o,intro:l=!0}){Ra();var u=new Set,f=g=>{for(var h=0;h<g.length;h++){var v=g[h];if(!u.has(v)){u.add(v);var p=za(v);t.addEventListener(v,Bn,{passive:p});var _=Tn.get(v);_===void 0?(document.addEventListener(v,Bn,{passive:p}),Tn.set(v,1)):Tn.set(v,_+1)}}};f(nr(Ls)),Gr.add(f);var d=void 0,c=Ma(()=>{var g=r??t.appendChild(Yt());return ka(g,{pending:()=>{}},h=>{if(o){ye({});var v=Ze;v.c=o}s&&(i.$$events=s),d=e(h,i)||{},o&&we()}),()=>{for(var h of u){t.removeEventListener(h,Bn);var v=Tn.get(h);--v===0?(document.removeEventListener(h,Bn),Tn.delete(h)):Tn.set(h,v)}Gr.delete(f),g!==r&&g.parentNode?.removeChild(g)}});return Yr.set(d,c),d}let Yr=new WeakMap;function qa(e,t){const r=Yr.get(e);return r?(Yr.delete(e),r(t)):Promise.resolve()}class qr{anchor;#e=new Map;#n=new Map;#t=new Map;#r=new Set;#s=!0;constructor(t,r=!0){this.anchor=t,this.#s=r}#i=()=>{var t=Le;if(this.#e.has(t)){var r=this.#e.get(t),i=this.#n.get(r);if(i)Br(i),this.#r.delete(r);else{var s=this.#t.get(r);s&&(this.#n.set(r,s.effect),this.#t.delete(r),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),i=s.effect)}for(const[o,l]of this.#e){if(this.#e.delete(o),o===t)break;const u=this.#t.get(l);u&&(et(u.effect),this.#t.delete(l))}for(const[o,l]of this.#n){if(o===r||this.#r.has(o))continue;const u=()=>{if(Array.from(this.#e.values()).includes(o)){var d=document.createDocumentFragment();bs(l,d),d.append(Yt()),this.#t.set(o,{effect:l,fragment:d})}else et(l);this.#r.delete(o),this.#n.delete(o)};this.#s||!i?(this.#r.add(o),dn(l,u,!1)):u()}}};#o=t=>{this.#e.delete(t);const r=Array.from(this.#e.values());for(const[i,s]of this.#t)r.includes(i)||(et(s.effect),this.#t.delete(i))};ensure(t,r){var i=Le,s=cs();if(r&&!this.#n.has(t)&&!this.#t.has(t))if(s){var o=document.createDocumentFragment(),l=Yt();o.append(l),this.#t.set(t,{effect:ft(()=>r(l)),fragment:o})}else this.#n.set(t,ft(()=>r(this.anchor)));if(this.#e.set(i,t),s){for(const[u,f]of this.#n)u===t?i.skipped_effects.delete(f):i.skipped_effects.add(f);for(const[u,f]of this.#t)u===t?i.skipped_effects.delete(f.effect):i.skipped_effects.add(f.effect);i.oncommit(this.#i),i.ondiscard(this.#o)}else this.#i()}}function de(e,t,r=!1){var i=new qr(e),s=r?Jt:0;function o(l,u){i.ensure(l,u)}Un(()=>{var l=!1;t((u,f=!0)=>{l=!0,o(f,u)}),l||o(!1,null)},s)}function Ce(e,t){return t}function Xa(e,t,r){for(var i=[],s=t.length,o,l=t.length,u=0;u<s;u++){let g=t[u];dn(g,()=>{if(o){if(o.pending.delete(g),o.done.add(g),o.pending.size===0){var h=e.outrogroups;Xr(nr(o.done)),h.delete(o),h.size===0&&(e.outrogroups=null)}}else l-=1},!1)}if(l===0){var f=i.length===0&&r!==null;if(f){var d=r,c=d.parentNode;Ia(c),c.append(d),e.items.clear()}Xr(t,!f)}else o={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(o)}function Xr(e,t=!0){for(var r=0;r<e.length;r++)et(e[r],t)}var Os;function le(e,t,r,i,s,o=null){var l=e,u=new Map,f=(t&Bi)!==0;if(f){var d=e;l=d.appendChild(Yt())}var c=null,g=rs(()=>{var y=r();return Ai(y)?y:y==null?[]:nr(y)}),h,v=!0;function p(){m.fallback=c,Ka(m,h,l,t,i),c!==null&&(h.length===0?(c.f&Vt)===0?Br(c):(c.f^=Vt,Yn(c,null,l)):dn(c,()=>{c=null}))}var _=Un(()=>{h=n(g);for(var y=h.length,E=new Set,T=Le,C=cs(),D=0;D<y;D+=1){var w=h[D],k=i(w,D),M=v?null:u.get(k);M?(M.v&&En(M.v,w),M.i&&En(M.i,D),C&&T.skipped_effects.delete(M.e)):(M=Za(u,v?l:Os??=Yt(),w,k,D,s,t,r),v||(M.e.f|=Vt),u.set(k,M)),E.add(k)}if(y===0&&o&&!c&&(v?c=ft(()=>o(l)):(c=ft(()=>o(Os??=Yt())),c.f|=Vt)),!v)if(C){for(const[Y,R]of u)E.has(Y)||T.skipped_effects.add(R.e);T.oncommit(p),T.ondiscard(()=>{})}else p();n(g)}),m={effect:_,items:u,outrogroups:null,fallback:c};v=!1}function Gn(e){for(;e!==null&&(e.f&Et)===0;)e=e.next;return e}function Ka(e,t,r,i,s){var o=(i&ia)!==0,l=t.length,u=e.items,f=Gn(e.effect.first),d,c=null,g,h=[],v=[],p,_,m,y;if(o)for(y=0;y<l;y+=1)p=t[y],_=s(p,y),m=u.get(_).e,(m.f&Vt)===0&&(m.nodes?.a?.measure(),(g??=new Set).add(m));for(y=0;y<l;y+=1){if(p=t[y],_=s(p,y),m=u.get(_).e,e.outrogroups!==null)for(const R of e.outrogroups)R.pending.delete(m),R.done.delete(m);if((m.f&Vt)!==0)if(m.f^=Vt,m===f)Yn(m,null,r);else{var E=c?c.next:f;m===e.effect.last&&(e.effect.last=m.prev),m.prev&&(m.prev.next=m.next),m.next&&(m.next.prev=m.prev),rn(e,c,m),rn(e,m,E),Yn(m,E,r),c=m,h=[],v=[],f=Gn(c.next);continue}if((m.f&lt)!==0&&(Br(m),o&&(m.nodes?.a?.unfix(),(g??=new Set).delete(m))),m!==f){if(d!==void 0&&d.has(m)){if(h.length<v.length){var T=v[0],C;c=T.prev;var D=h[0],w=h[h.length-1];for(C=0;C<h.length;C+=1)Yn(h[C],T,r);for(C=0;C<v.length;C+=1)d.delete(v[C]);rn(e,D.prev,w.next),rn(e,c,D),rn(e,w,T),f=T,c=w,y-=1,h=[],v=[]}else d.delete(m),Yn(m,f,r),rn(e,m.prev,m.next),rn(e,m,c===null?e.effect.first:c.next),rn(e,c,m),c=m;continue}for(h=[],v=[];f!==null&&f!==m;)(d??=new Set).add(f),v.push(f),f=Gn(f.next);if(f===null)continue}(m.f&Vt)===0&&h.push(m),c=m,f=Gn(m.next)}if(e.outrogroups!==null){for(const R of e.outrogroups)R.pending.size===0&&(Xr(nr(R.done)),e.outrogroups?.delete(R));e.outrogroups.size===0&&(e.outrogroups=null)}if(f!==null||d!==void 0){var k=[];if(d!==void 0)for(m of d)(m.f&lt)===0&&k.push(m);for(;f!==null;)(f.f&lt)===0&&f!==e.fallback&&k.push(f),f=Gn(f.next);var M=k.length;if(M>0){var Y=(i&Bi)!==0&&l===0?r:null;if(o){for(y=0;y<M;y+=1)k[y].nodes?.a?.measure();for(y=0;y<M;y+=1)k[y].nodes?.a?.fix()}Xa(e,k,Y)}}o&&Pt(()=>{if(g!==void 0)for(m of g)m.nodes?.a?.apply()})}function Za(e,t,r,i,s,o,l,u){var f=(l&na)!==0?(l&sa)===0?as(r,!1,!1):en(r):null,d=(l&ra)!==0?en(s):null;return{v:f,i:d,e:ft(()=>(o(t,f??r,d??s,u),()=>{e.delete(i)}))}}function Yn(e,t,r){if(e.nodes)for(var i=e.nodes.start,s=e.nodes.end,o=t&&(t.f&Vt)===0?t.nodes.start:r;i!==null;){var l=Wn(i);if(o.before(i),i===s)return;i=l}}function rn(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function Xt(e,t,...r){var i=new qr(e);Un(()=>{const s=t()??null;i.ensure(s,s&&(o=>s(o,...r)))},Jt)}function Kr(e,t,r){var i=new qr(e);Un(()=>{var s=t()??null;i.ensure(s,s&&(o=>r(o,s)))},Jt)}function Oe(e,t){var r=void 0,i;Oa(()=>{r!==(r=t())&&(i&&(et(i),i=null),r&&(i=ft(()=>{Vr(()=>r(e))})))})}function Ns(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=Ns(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function Ja(){for(var e,t,r=0,i="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=Ns(e))&&(i&&(i+=" "),i+=t);return i}function Ot(e){return typeof e=="object"?Ja(e):e??""}function Qa(e,t,r){var i=e==null?"":""+e;return i===""?null:i}function Fs(e,t=!1){var r=t?" !important;":";",i="";for(var s in e){var o=e[s];o!=null&&o!==""&&(i+=" "+s+": "+o+r)}return i}function Zr(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function ja(e,t){if(t){var r="",i,s;if(Array.isArray(t)?(i=t[0],s=t[1]):i=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var o=!1,l=0,u=!1,f=[];i&&f.push(...Object.keys(i).map(Zr)),s&&f.push(...Object.keys(s).map(Zr));var d=0,c=-1;const _=e.length;for(var g=0;g<_;g++){var h=e[g];if(u?h==="/"&&e[g-1]==="*"&&(u=!1):o?o===h&&(o=!1):h==="/"&&e[g+1]==="*"?u=!0:h==='"'||h==="'"?o=h:h==="("?l++:h===")"&&l--,!u&&o===!1&&l===0){if(h===":"&&c===-1)c=g;else if(h===";"||g===_-1){if(c!==-1){var v=Zr(e.substring(d,c).trim());if(!f.includes(v)){h!==";"&&g++;var p=e.substring(d,g).trim();r+=" "+p+";"}}d=g+1,c=-1}}}}return i&&(r+=Fs(i)),s&&(r+=Fs(s,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function O(e,t,r,i,s,o){var l=e.__className;if(l!==r||l===void 0){var u=Qa(r);u==null?e.removeAttribute("class"):e.className=u,e.__className=r}return o}function Jr(e,t={},r,i){for(var s in r){var o=r[s];t[s]!==o&&(r[s]==null?e.style.removeProperty(s):e.style.setProperty(s,o,i))}}function It(e,t,r,i){var s=e.__style;if(s!==t){var o=ja(t,i);o==null?e.removeAttribute("style"):e.style.cssText=o,e.__style=t}else i&&(Array.isArray(i)?(Jr(e,r?.[0],i[0]),Jr(e,r?.[1],i[1],"important")):Jr(e,r,i));return i}const $a=Symbol("is custom element"),el=Symbol("is html");function Pe(e,t,r,i){var s=tl(e);s[t]!==(s[t]=r)&&(t==="loading"&&(e[Go]=r),r==null?e.removeAttribute(t):typeof r!="string"&&nl(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function tl(e){return e.__attributes??={[$a]:e.nodeName.includes("-"),[el]:e.namespaceURI===ca}}var Hs=new Map;function nl(e){var t=e.getAttribute("is")||e.nodeName,r=Hs.get(t);if(r)return r;Hs.set(t,r=[]);for(var i,s=e,o=Element.prototype;o!==s;){i=Ho(s);for(var l in i)i[l].set&&r.push(l);s=Ni(s)}return r}class Qr{#e=new WeakMap;#n;#t;static entries=new WeakMap;constructor(t){this.#t=t}observe(t,r){var i=this.#e.get(t)||new Set;return i.add(r),this.#e.set(t,i),this.#r().observe(t,this.#t),()=>{var s=this.#e.get(t);s.delete(r),s.size===0&&(this.#e.delete(t),this.#n.unobserve(t))}}#r(){return this.#n??(this.#n=new ResizeObserver(t=>{for(var r of t){Qr.entries.set(r.target,r);for(var i of this.#e.get(r.target)||[])i(r)}}))}}var rl=new Qr({box:"border-box"});function dr(e,t,r){var i=rl.observe(e,()=>r(e[t]));Vr(()=>(j(()=>r(e[t])),i))}function Ws(e,t){return e===t||e?.[Nn]===t}function it(e={},t,r,i){return Vr(()=>{var s,o;return gs(()=>{s=o,o=i?.()||[],j(()=>{e!==r(...o)&&(t(e,...o),s&&Ws(r(...s),e)&&t(null,...s))})}),()=>{Pt(()=>{o&&Ws(r(...o),e)&&t(null,...o)})}}),e}function Us(e,t,r){if(e==null)return t(void 0),Zt;const i=j(()=>e.subscribe(t,r));return i.unsubscribe?()=>i.unsubscribe():i}function il(e){let t;return Us(e,r=>t=r)(),t}let cr=!1,jr=Symbol();function sl(e,t,r){const i=r[t]??={store:null,source:as(void 0),unsubscribe:Zt};if(i.store!==e&&!(jr in r))if(i.unsubscribe(),i.store=e??null,e==null)i.source.v=void 0,i.unsubscribe=Zt;else{var s=!0;i.unsubscribe=Us(e,o=>{s?i.source.v=o:b(i.source,o)}),s=!1}return e&&jr in r?il(e):n(i.source)}function ol(){const e={};function t(){zr(()=>{for(var r in e)e[r].unsubscribe();Oi(e,jr,{enumerable:!1,value:!0})})}return[e,t]}function al(e){var t=cr;try{return cr=!1,[e(),cr]}finally{cr=t}}function De(e,t,r,i){var s=(r&la)!==0,o=(r&ua)!==0,l=i,u=!0,f=()=>(u&&(u=!1,l=o?j(i):i),l),d;if(s){var c=Nn in e||Bo in e;d=wn(e,t)?.set??(c&&t in e?E=>e[t]=E:void 0)}var g,h=!1;s?[g,h]=al(()=>e[t]):g=e[t],g===void 0&&i!==void 0&&(g=f(),d&&(Qo(),d(g)));var v;if(v=()=>{var E=e[t];return E===void 0?f():(u=!0,E)},(r&aa)===0)return v;if(d){var p=e.$$legacy;return(function(E,T){return arguments.length>0?((!T||p||h)&&d(T?v():E),E):v()})}var _=!1,m=((r&oa)!==0?or:rs)(()=>(_=!1,v()));s&&n(m);var y=Ee;return(function(E,T){if(arguments.length>0){const C=T?n(m):s?qe(E):E;return b(m,C),_=!0,l!==void 0&&(l=C),E}return tn&&_||(y.f&zt)!==0?m.v:n(m)})}function ll(){return ve===null&&Jo(),(ve.ac??=new AbortController).signal}function qn(e){Ze===null&&Vi(),Xe(()=>{const t=j(e);if(typeof t=="function")return t})}const ul="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(ul);function $r(e,t=void 0){return function(r){return r.key==="Enter"||r.key===" "&&!r.preventDefault()?e.call(t,r):void 0}}function Je(e){return t=>{typeof e=="string"?t.innerText=e:e?.domNodes?t.replaceChildren(...e.domNodes):e?.html&&(t.innerHTML=e.html)}}function fl(e){return t=>{let r=i=>{t&&!t.contains(i.target)&&t.dispatchEvent(new CustomEvent(e+"outside",{detail:{jsEvent:i}}))};return document.addEventListener(e,r,!0),()=>{document.removeEventListener(e,r,!0)}}}function ei(e){return t=>{let r=new ResizeObserver(i=>{for(let s of i)e(t,s)});return r.observe(t),()=>{r.unobserve(t)}}}function zs(e,t){return r=>{let i=new IntersectionObserver(s=>{for(let o of s)e(r,o)},t);return i.observe(r),()=>{i.unobserve(r)}}}function ce(...e){return Object.assign(...e)}function vn(e){return Object.keys(e)}function dl(e){return Object.entries(e)}function ti(e,t){return Object.hasOwn(e,t)}function ni(e){return Math.floor(e)}function cl(e){return Math.ceil(e)}function Nt(...e){return Math.min(...e)}function ht(...e){return Math.max(...e)}function hl(){return Symbol("ec")}function Te(e){return e.length}function kt(e){return!Te(e)}function Xn(e){return Array.isArray(e)}function ke(e){return typeof e=="function"}function vl(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function ri(e){return e instanceof Date}function gl(e){return e()}function ml(e){e.forEach(gl)}function pl(){}const hr=e=>e;function gn(){return window.getComputedStyle(document.documentElement).direction==="rtl"}const vr=86400;function Ft(e=void 0){return e!==void 0?ri(e)?Xs(e):wl(e):Xs(new Date)}function We(e){if(typeof e=="number")e={seconds:e};else if(typeof e=="string"){let r=0,i=2;for(let s of e.split(":",3))r+=parseInt(s,10)*Math.pow(60,i--);e={seconds:r}}else ri(e)&&(e={hours:e.getUTCHours(),minutes:e.getUTCMinutes(),seconds:e.getUTCSeconds()});let t=e.weeks||e.week||0;return{years:e.years||e.year||0,months:e.months||e.month||0,days:t*7+(e.days||e.day||0),seconds:(e.hours||e.hour||0)*60*60+(e.minutes||e.minute||0)*60+(e.seconds||e.second||0),inWeeks:!!t}}function Z(e){return new Date(e.getTime())}function Se(e,t,r=1){e.setUTCFullYear(e.getUTCFullYear()+r*t.years);let i=e.getUTCMonth()+r*t.months;for(e.setUTCMonth(i),i%=12,i<0&&(i+=12);e.getUTCMonth()!==i;)xn(e);return e.setUTCDate(e.getUTCDate()+r*t.days),e.setUTCSeconds(e.getUTCSeconds()+r*t.seconds),e}function gr(e,t,r=1){return Se(e,t,-r)}function Ct(e,t=1){return e.setUTCDate(e.getUTCDate()+t),e}function xn(e,t=1){return Ct(e,-t)}function Lt(e){return e.setUTCHours(0,0,0,0),e}function Ve(e){return new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds())}function vt(e,t=19){return e.toISOString().substring(0,t)}function Qe(e,...t){return t.every(r=>e.getTime()===r.getTime())}function _l(e,t){let r=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(r>=0?r:r+7)),e}function Vs(e,t){let r=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(r<=0?r:r-7)),e}function Bs(e){return typeof e=="string"&&e.length<=10}function ii(e,t){return e.setUTCHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),0),e}function _e(e){return e.seconds}function Gs(e,t,r){return Se(e,t),qs(e,r,Ct),e}function Ys(e,t,r){return gr(e,t),qs(e,r,xn),e}function qs(e,t,r){if(t.length&&t.length<7)for(;t.includes(e.getUTCDay());)r(e)}function yl(e,t){e=Z(e),t===0?e.setUTCDate(e.getUTCDate()+6-e.getUTCDay()):e.setUTCDate(e.getUTCDate()+4-(e.getUTCDay()||7));let r=new Date(Date.UTC(e.getUTCFullYear(),0,1));return Math.ceil(((e-r)/1e3/vr+1)/7)}function Xs(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()))}function wl(e){const t=e.match(/\d+/g);return new Date(Date.UTC(Number(t[0]),Number(t[1])-1,Number(t[2]),Number(t[3]||0),Number(t[4]||0),Number(t[5]||0)))}let si=hl();function Ks(e,t){e[si]=t}function bl(e){return!!e?.[si]}function Kt(e){return e[si]}function Zs(e,t,r,i=[]){let s=document.createElement(e);s.className=t,typeof r=="string"?s.innerText=r:r.domNodes?s.replaceChildren(...r.domNodes):r.html&&(s.innerHTML=r.html);for(let o of i)s.setAttribute(...o);return s}function sn(e){return e.getBoundingClientRect()}function Js(e,t){for(;t--;)e=e.parentElement;return e}function mn(e){return sn(e).height}function Sn(e,t,r=document,i=[]){i.push(r);for(let s of r.elementsFromPoint(e,t)){if(bl(s))return s;if(s.shadowRoot&&!i.includes(s.shadowRoot)){let o=Sn(e,t,s.shadowRoot,i);if(o)return o}}return null}function Kn(e,t,r,i){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r,i)}function oi(e,t=void 0){return function(r){r.stopPropagation(),e&&e.call(t,r)}}function kl(e,t,r,i){return{type:e,title:t,currentStart:r.start,currentEnd:r.end,activeStart:i.start,activeEnd:i.end,calendar:void 0}}function je(e){return e=ce({},e),e.currentStart=Ve(e.currentStart),e.currentEnd=Ve(e.currentEnd),e.activeStart=Ve(e.activeStart),e.activeEnd=Ve(e.activeEnd),e}let Cl=1;function mr(e){return e.map(t=>{let r={id:"id"in t?String(t.id):`{generated-${Cl++}}`,resourceIds:ai(t,"resourceId").map(String),allDay:t.allDay??(Bs(t.start)&&Bs(t.end)),start:Ft(t.start),end:Ft(t.end),title:t.title??"",editable:t.editable,startEditable:t.startEditable,durationEditable:t.durationEditable,display:t.display??"auto",extendedProps:t.extendedProps??{},backgroundColor:t.backgroundColor??t.color,textColor:t.textColor,classNames:ai(t,"className"),styles:ai(t,"style")};if(r.allDay){Lt(r.start);let i=Z(r.end);Lt(r.end),(!Qe(r.end,i)||Qe(r.end,r.start))&&Ct(r.end)}return r})}function ai(e,t){let r=e[t+"s"]??e[t]??[];return Xn(r)?r:[r]}function Dl(e){return e.map(t=>({events:t.events,url:t.url&&t.url.trimEnd("&")||"",method:t.method&&t.method.toUpperCase()||"GET",extraParams:t.extraParams||{}}))}function El(e,t,r,i,s,o){let l=s.formatRange(e.start,t&&e.event.display!=="pointer"&&!e.zeroDuration?ii(Z(e.start),e.end):e.start),u;if(r&&(u=ke(r)?r({event:Ke(e.event),timeText:l,view:je(o)}):r),u===void 0){let f;switch(e.event.display){case"background":f=[];break;case"pointer":f=e.event.allDay?[]:[Qs(l,e,i)];break;default:f=[...e.event.allDay?[]:[Qs(l,e,i)],Zs("h4",i.eventTitle,e.event.title)]}u={domNodes:f}}return[l,u]}function Qs(e,t,r){return Zs("time",r.eventTime,e,[["datetime",vt(t.start)]])}function Tl(e,t,r){let i=t.classNames;return e&&(ke(e)&&(e=e({event:Ke(t),view:je(r)})),i=[...Xn(e)?e:[e],...i]),i}function Ke(e){return js(e,Ve)}function li(e){return js(e,Z)}function js(e,t){return e=ce({},e),e.start=t(e.start),e.end=t(e.end),e}function ui(e,t){e.length=t.length;for(let r of e)r?.reposition()}function Rn(e,t,r,i=void 0){return(!i||e.resourceIds.includes(i.id))&&e.start<r&&e.end>t}function pr(e){return xl(e)||Sl(e)||Rl(e)}function gt(e){return e==="background"}function xl(e){return e==="preview"}function Sl(e){return e==="ghost"}function Rl(e){return e==="pointer"}function Zn(e,t,r){return t=e.start>t?e.start:t,r=e.end<r?e.end:r,{start:t,end:r,event:e,zeroDuration:Qe(t,r)}}function In(e,t,r=!0){let i=[],s,o,l,u;for(let{gridColumn:f,gridRow:d,resource:c,dayStart:g,dayEnd:h,disabled:v}of t)!v&&Rn(e,g,h,c)&&(i.push(g),s=h,o||(o=f,l=d,u=c));if(i.length){let f=Zn(e,i[0],s);return ce(f,{gridColumn:o,gridRow:l,resource:u,dates:i}),r&&fi(f),[f]}return[]}function $s(e){let t={},r={};for(let i of e){let{gridColumn:s,gridRow:o}=i;for(let u=1;u<i.dates.length;++u){let f=`${o}_${s+u}`;r[f]?r[f].chunks.push(i):r[f]={sorted:!1,chunks:[i]}}let l=`${o}_${s}`;i.long=r[l],i.prev=t[l],t[l]=i}}function eo(e,t,r=1){e.prev&&(r=e.prev.bottom+1);let i=r+t;if(e.long){let s=e.long;s.sorted||(s.chunks.sort((o,l)=>o.top-l.top),s.sorted=!0);for(let o of s.chunks)if(r<o.bottom&&i>o.top){let l=o.bottom-r+1;r+=l,i+=l}}return ce(e,{top:r,bottom:i}),r}const to=new WeakMap;let Il=1;function fi(e){let{event:t,gridColumn:r,gridRow:i}=e,s=to.get(t);s||(s=Il++,to.set(t,s)),e.id=`${s}-${r}-${i}`}function pn(e,t){return()=>{let{options:{locale:r}}=e,i=e.options[t],s;return j(()=>{s=ke(i)?{format:i}:new Intl.DateTimeFormat(r,i)}),{format:o=>s.format(Ve(o))}}}function no(e,t){return()=>{let{options:{locale:r}}=e,i=e.options[t],s;return j(()=>{if(ke(i))s=i;else{let o=new Intl.DateTimeFormat(r,i);s=(l,u)=>{if(l<=u)return o.formatRange(l,u);{let f=o.formatRangeToParts(u,l),d="",c=["startRange","endRange"],g=[!1,!1];for(let h of f){let v=c.indexOf(h.source);v>=0?g[v]||(d+=Ll(c[1-v],f),g[v]=!0):d+=h.value}return d}}}}),{formatRange:(o,l)=>s(Ve(o),Ve(l))}}}function Ll(e,t){let r="";for(let i of t)i.source==e&&(r+=i.value);return r}function Jn(e){return _r(e,"day")}function Qn(e){return _r(e,"week")}function di(e){return _r(e,"month")}function Pl(e){return _r(e,"year")}function _r(e,t){return{...e,next:"Next "+t,prev:"Previous "+t}}function st(e){return t=>({...t,view:e})}function Ml(e){let t,r;return e&&({start:t,end:r}=e,t&&(t=Lt(Ft(t))),r&&(r=Lt(Ft(r)))),{start:t,end:r}}function Ln(e,t){return t.start&&e<t.start||t.end&&e>t.end}function ci(e){let t=[];return ro(e,0,t),t}function ro(e,t,r){let i=[];for(let s of e){let o=Al(s);i.push(o),r.push(o);let l={level:t,children:[],expanded:!0,hidden:!1};Ks(o,l),s.children&&(l.children=ro(s.children,t+1,r))}return i}function Al(e){return{id:String(e.id),title:e.title||"",eventBackgroundColor:io(e),eventTextColor:so(e),extendedProps:e.extendedProps??{}}}function io(e){return e?.eventBackgroundColor}function so(e){return e?.eventTextColor}function oo(e,t){return kt(e.resourceIds)?void 0:t.find(r=>e.resourceIds.includes(r.id))}function ao(e,t,r,i,s){let o=[];e=Z(e);let l=Z(e);for(Se(e,i.min),Se(l,i.max);e<l;)o.push([vt(e),s.format(e)]),Se(e,t,r);let u=ni((e-l)/1e3/_e(t));return u&&u!==r&&(o.at(-1)[2]=r-u),o}function lo(e,t,r,i,s){let o=We(e),l=We(t);if(r){let u=We(Nt(_e(o),ht(0,_e(l)-vr))),f=We(ht(_e(l),_e(u)+vr)),d=ke(r?.eventFilter)?r.eventFilter:c=>!gt(c.display);e:for(let c of i){let g=Se(Z(c),o),h=Se(Z(c),l),v=Se(Z(c),u),p=Se(Z(c),f);for(let _ of s)if(!_.allDay&&d(_)&&_.start<p&&_.end>v){if(_.start<g){let m=ht((_.start-c)/1e3,_e(u));m<_e(o)&&(o.seconds=m)}if(_.end>h){let m=Nt((_.end-c)/1e3,_e(f));m>_e(l)&&(l.seconds=m)}if(_e(o)===_e(u)&&_e(l)===_e(f))break e}}}return{min:o,max:l}}class uo extends Map{#e=new Map;#n=q(0);#t=q(0);#r=qt||-1;constructor(t){if(super(),t){for(var[r,i]of t)super.set(r,i);this.#t.v=super.size}}#s(t){return qt===this.#r?q(t):en(t)}has(t){var r=this.#e,i=r.get(t);if(i===void 0){var s=super.get(t);if(s!==void 0)i=this.#s(0),r.set(t,i);else return n(this.#n),!1}return n(i),!0}forEach(t,r){this.#i(),super.forEach(t,r)}get(t){var r=this.#e,i=r.get(t);if(i===void 0){var s=super.get(t);if(s!==void 0)i=this.#s(0),r.set(t,i);else{n(this.#n);return}}return n(i),super.get(t)}set(t,r){var i=this.#e,s=i.get(t),o=super.get(t),l=super.set(t,r),u=this.#n;if(s===void 0)s=this.#s(0),i.set(t,s),b(this.#t,super.size),Mt(u);else if(o!==r){Mt(s);var f=u.reactions===null?null:new Set(u.reactions),d=f===null||!s.reactions?.every(c=>f.has(c));d&&Mt(u)}return l}delete(t){var r=this.#e,i=r.get(t),s=super.delete(t);return i!==void 0&&(r.delete(t),b(this.#t,super.size),b(i,-1),Mt(this.#n)),s}clear(){if(super.size!==0){super.clear();var t=this.#e;b(this.#t,0);for(var r of t.values())b(r,-1);Mt(this.#n),t.clear()}}#i(){n(this.#n);var t=this.#e;if(this.#t.v!==t.size){for(var r of super.keys())if(!t.has(r)){var i=this.#s(0);t.set(r,i)}}for([,i]of this.#e)n(i)}keys(){return n(this.#n),super.keys()}values(){return this.#i(),super.values()}entries(){return this.#i(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return n(this.#t),super.size}}function yr(e){let t=0,r=q(qe(t));return fo(e,()=>n(r),()=>!0,()=>b(r,++t,!0))}function Ol(e){let t=0,r=qe({});return fo(e,i=>r[i],(i,s)=>i!==s,i=>r[i]=++t)}function fo(e,t,r,i){return new Proxy(e,{get(s,o,l){return ti(s,o)&&t(o),Reflect.get(s,o,l)},set(s,o,l,u){let f=r(s[o],l);return Reflect.set(s,o,l,u),f&&i(o),!0}})}function Nl(e){let t={buttonText:{today:"today"},customButtons:{},customScrollbars:!1,date:new Date,datesSet:void 0,dayHeaderFormat:{weekday:"short",month:"numeric",day:"numeric"},dayHeaderAriaLabelFormat:{dateStyle:"full"},displayEventEnd:!0,duration:{weeks:1},events:[],eventAllUpdated:void 0,eventBackgroundColor:void 0,eventClassNames:void 0,eventClick:void 0,eventColor:void 0,eventContent:void 0,eventDidMount:void 0,eventFilter:void 0,eventMouseEnter:void 0,eventMouseLeave:void 0,eventOrder:void 0,eventSources:[],eventTextColor:void 0,eventTimeFormat:{hour:"numeric",minute:"2-digit"},filterEventsWithResources:!1,firstDay:0,headerToolbar:{start:"title",center:"",end:"today prev,next"},height:void 0,hiddenDays:[],highlightedDates:[],lazyFetching:!0,loading:void 0,locale:void 0,refetchResourcesOnNavigate:!1,resources:[],selectable:!1,theme:{active:"ec-active",bgEvent:"ec-bg-event",bgEvents:"ec-bg-events",body:"ec-body",button:"ec-button",buttonGroup:"ec-button-group",calendar:"ec",colHead:"ec-col-head",customScrollbars:"ec-custom-scrollbars",day:"ec-day",dayHead:"ec-day-head",disabled:"ec-disabled",event:"ec-event",eventBody:"ec-event-body",eventTime:"ec-event-time",eventTitle:"ec-event-title",events:"ec-events",grid:"ec-grid",header:"ec-header",hidden:"ec-hidden",highlight:"ec-highlight",icon:"ec-icon",main:"ec-main",noBeb:"ec-no-beb",noIeb:"ec-no-ieb",today:"ec-today",title:"ec-title",toolbar:"ec-toolbar",view:"",weekdays:["ec-sun","ec-mon","ec-tue","ec-wed","ec-thu","ec-fri","ec-sat"]},titleFormat:{year:"numeric",month:"short",day:"numeric"},validRange:void 0,view:void 0,viewDidMount:void 0,views:{}};for(let r of e)r.createOptions?.(t);return t}function Fl(e){let t={date:r=>Lt(Ft(r)),duration:We,events:mr,eventSources:Dl,hiddenDays:r=>[...new Set(r)],highlightedDates:r=>r.map(i=>Lt(Ft(i))),resources:r=>Xn(r)?ci(r):r,validRange:Ml};for(let r of e)r.createParsers?.(t);return t}const co=["buttonText","customButtons","theme"];function Hl(e,t,r){let i=Nl(t),s=Fl(t);i=hi(i,s),r=hi(r,s);let o=vi(i,"views")??{},l=vi(r,"views")??{},u=Ol({});ce(u,i);let f={};function d(){r.view&&(u.view=r.view);let c=new Set([...vn(o),...vn(l)]);for(let g of c){let h=l[g]??{},v=ho(i,o[g]??o[h.type]??{}),p=ho(v,r,h),_=vi(p,"component");delete p.view;for(let m of vn(p))ti(u,m)?(f[m]||(f[m]=[]),f[m].push(co.includes(m)?y=>p[m]=ke(y)?y(v[m]):y:y=>p[m]=y)):delete p[m];fn(()=>{let m=u.view;j(()=>{m===g&&(e.setViewComponent(_),ce(u,p))})})}}return{state:u,setOption(c,g,h){ti(u,c)&&(h||(c in s?g=s[c](g):vl(g)?g={...g}:Xn(g)&&(g=[...g])),f[c]?.forEach(v=>v(g)),u[c]=g)},initEffects:d}}function hi(e,t){let r={...e};for(let i of vn(t))i in r&&(r[i]=t[i](r[i]));if(e.views){r.views={};for(let i of vn(e.views))r.views[i]=hi(e.views[i],t)}return r}function vi(e,t){let r=e[t];return delete e[t],r}function ho(...e){let t={};for(let r of e){let i={};for(let s of co)ke(r[s])&&(i[s]=r[s](t[s]));t={...t,...r,...i}}return t}function Wl(e,t){let r=[];for(let i of vn(e))e[i]!==t[i]&&r.push([i,e[i]]);return r}function Ul(e,t){return()=>{let{activeRange:r,fetchedRange:{events:i},viewDates:s,options:{events:o,eventSources:l,lazyFetching:u}}=e;j(()=>{vo(l.map(f=>ke(f.events)?f.events:f),o,mr,f=>e.events=yr(f),r,i,s,!0,u,t)})}}function zl(e,t){return()=>{let{activeRange:r,fetchedRange:{resources:i},viewDates:s,options:{lazyFetching:o,refetchResourcesOnNavigate:l,resources:u}}=e;j(()=>{vo(Xn(u)?[]:[u],u,ci,f=>e.resources=yr(f),r,i,s,l,o,t)})}}function vo(e,t,r,i,s,o,l,u,f,d){if(!kt(l)){if(kt(e)){i(t);return}if((u||!o.start)&&(!f||!o.start||o.start>s.start||o.end<s.end)){let c=[],g=_=>d.stop(),h=_=>{c=c.concat(r(_)),i(c),d.stop()},v=vt(s.start),p=vt(s.end);for(let _ of e)if(d.start(),ke(_)){let m=_(u?{start:Ve(s.start),end:Ve(s.end),startStr:v,endStr:p}:{},h,g);m!==void 0&&Promise.resolve(m).then(h,g)}else{let m=ke(_.extraParams)?_.extraParams():ce({},_.extraParams);u&&(m.start=v,m.end=p),m=new URLSearchParams(m);let y=_.url,E={},T;["GET","HEAD"].includes(_.method)?y+=(y.includes("?")?"&":"?")+m:(E["content-type"]="application/x-www-form-urlencoded;charset=UTF-8",T=String(m)),fetch(y,{method:_.method,headers:E,body:T,signal:ll(),credentials:"same-origin"}).then(C=>C.json()).then(h).catch(g)}ce(o,s)}}}function Vl(e){let t=0;function r(i){let{loading:s}=e;ke(s)&&s(i)}return{start:()=>++t===1&&r(!0),stop:()=>--t===0&&r(!1)}}function Bl(e){return()=>{let t=setInterval(()=>{let r=Ft(),i=Lt(Z(r));e.now=r,Qe(e.today,i)||(e.today=i)},1e3);return()=>clearInterval(t)}}function Gl(e){return()=>{let{activeRange:t,options:{datesSet:r}}=e;j(()=>{ke(r)&&r({start:Ve(t.start),end:Ve(t.end),startStr:vt(t.start),endStr:vt(t.end),view:je(e.view)})})}}function Yl(e){let t;return()=>{let{filteredEvents:r,options:{eventAllUpdated:i}}=e;j(()=>{ke(i)&&(t||(t=setTimeout(()=>{t=null,i({view:je(e.view)})})))})}}function ql(e){return()=>{let{options:{view:t,viewDidMount:r}}=e;j(()=>{ke(r)&&hn().then(()=>r({view:je(e.view)}))})}}function Xl(e){return()=>{let{options:{date:t,duration:r,firstDay:i}}=e,s,o;return j(()=>{s=Z(t),r.months?s.setUTCDate(1):r.inWeeks&&Vs(s,i),o=Se(Z(s),r)}),{start:s,end:o}}}function Kl(e){return()=>{let{currentRange:t,extensions:{activeRange:r}}=e,i,s;return j(()=>{i=Z(t.start),s=Z(t.end)}),r?r(i,s):{start:i,end:s}}}function Zl(e){return()=>{let{events:t,options:{eventFilter:r,eventOrder:i,filterEventsWithResources:s,resources:o,view:l}}=e,u=[...t];return j(()=>{if(ke(r)){let f=t.map(Ke),d=je(e.view);u=u.filter((c,g)=>r({event:Ke(c),index:g,events:f,view:d}))}s&&(u=u.filter(f=>o.some(d=>f.resourceIds.includes(d.id)))),ke(i)?u.sort((f,d)=>i(Ke(f),Ke(d))):u.sort((f,d)=>f.start-d.start||d.allDay-f.allDay)}),u}}function Jl(e){return()=>{let{options:t,activeRange:r}=e,{hiddenDays:i}=t,s=[];return j(()=>{let o=Lt(Z(r.start)),l=Lt(Z(r.end));for(;o<l;)i.includes(o.getUTCDay())||s.push(Z(o)),Ct(o);if(!s.length&&i.length&&i.length<7){for(;i.includes(o.getUTCDay());)Ct(o);hn().then(()=>{e.setOption("date",o)})}}),s}}function Ql(e){return()=>{let{currentRange:t,intlTitle:r}=e,i;return j(()=>{i=r.formatRange(t.start,xn(Z(t.end)))}),i}}function jl(e){return()=>{let{activeRange:t,currentRange:r,viewTitle:i,options:{view:s}}=e,o;return j(()=>{o=kl(s,i,r,t)}),o}}class $l{#e;get auxComponents(){return n(this.#e)}set auxComponents(t){b(this.#e,t,!0)}#n;get currentRange(){return n(this.#n)}set currentRange(t){b(this.#n,t)}#t;get activeRange(){return n(this.#t)}set activeRange(t){b(this.#t,t)}#r;get fetchedRange(){return n(this.#r)}set fetchedRange(t){b(this.#r,t,!0)}#s;get events(){return n(this.#s)}set events(t){b(this.#s,t)}#i;get filteredEvents(){return n(this.#i)}set filteredEvents(t){b(this.#i,t)}#o;get mainEl(){return n(this.#o)}set mainEl(t){b(this.#o,t,!0)}#a;get now(){return n(this.#a)}set now(t){b(this.#a,t,!0)}#l;get resources(){return n(this.#l)}set resources(t){b(this.#l,t)}#u;get today(){return n(this.#u)}set today(t){b(this.#u,t,!0)}#f;get intlEventTime(){return n(this.#f)}set intlEventTime(t){b(this.#f,t)}#c;get intlDayHeader(){return n(this.#c)}set intlDayHeader(t){b(this.#c,t)}#v;get intlDayHeaderAL(){return n(this.#v)}set intlDayHeaderAL(t){b(this.#v,t)}#h;get intlTitle(){return n(this.#h)}set intlTitle(t){b(this.#h,t)}#g;get viewDates(){return n(this.#g)}set viewDates(t){b(this.#g,t)}#m;get viewTitle(){return n(this.#m)}set viewTitle(t){b(this.#m,t)}#d;get view(){return n(this.#d)}set view(t){b(this.#d,t)}#w;get viewComponent(){return n(this.#w)}set viewComponent(t){b(this.#w,t,!0)}#k;get extensions(){return n(this.#k)}set extensions(t){b(this.#k,t,!0)}#C;get features(){return n(this.#C)}set features(t){b(this.#C,t,!0)}#y;get interaction(){return n(this.#y)}set interaction(t){b(this.#y,t,!0)}#p;get iClasses(){return n(this.#p)}set iClasses(t){b(this.#p,t,!0)}#_;get iClass(){return n(this.#_)}set iClass(t){b(this.#_,t,!0)}#b;constructor(t,r){let{state:i,setOption:s,initEffects:o}=Hl(this,t,r);this.options=i,this.#b=s,this.#e=q(qe([])),this.#n=a(Xl(this)),this.#t=a(Kl(this)),this.#r=q(qe({events:{},resources:{}})),this.#s=q(yr([])),this.#i=a(Zl(this)),this.#o=q(),this.#a=q(qe(Ft())),this.#l=q(yr([])),this.#u=q(qe(Lt(Ft()))),this.#f=a(no(this,"eventTimeFormat")),this.#c=a(pn(this,"dayHeaderFormat")),this.#v=a(pn(this,"dayHeaderAriaLabelFormat")),this.#h=a(no(this,"titleFormat")),this.#g=a(Jl(this)),this.#m=a(Ql(this)),this.#d=a(jl(this)),this.#w=q(),this.#k=q(qe({})),this.#C=q(qe([])),this.#y=q(qe({})),this.iEvents=new uo,this.#p=q(qe(hr)),this.#_=q();for(let l of t)l.initState?.(this);o(),this.#D()}#D(){let t=Vl(this.options);fn(Bl(this)),Xe(Ul(this,t)),Xe(zl(this,t)),Xe(Gl(this)),Xe(Yl(this)),Xe(ql(this))}setViewComponent(t){this.extensions={},this.features=[],this.viewComponent=t(this)}setOption(t,r,i=!0){this.#b(t,r,i)}}var eu=$("<h2></h2>"),tu=$("<button><i></i></button>"),nu=$("<button><i></i></button>"),ru=$("<button> </button>"),iu=$("<button></button>"),su=$("<button> </button>");function go(e,t){ye(t,!0);let r=re("state"),i=a(()=>r.currentRange),s=a(()=>r.today),o=a(()=>r.viewTitle),l=a(()=>r.viewDates),u=a(()=>r.options.buttonText),f=a(()=>r.options.customButtons),d=a(()=>r.options.date),c=a(()=>r.options.duration),g=a(()=>r.options.hiddenDays),h=a(()=>r.options.theme),v=a(()=>r.options.validRange),p=a(()=>r.options.view),_=q(!1),m=q(!1),y=q(!1),E=!1;fn(()=>{n(l),n(v),t.buttons,j(()=>{E||(E=!0,t.buttons.includes("prev")&&(b(_,!1),n(v).start&&b(_,T(C),!0)),t.buttons.includes("next")&&(b(m,!1),n(v).end&&b(m,T(D),!0)),t.buttons.includes("today")&&(b(y,n(s)>=n(i).start&&n(s)<n(i).end,!0),!n(y)&&(n(v).start||n(v).end)&&b(y,T(w),!0)),hn().then(()=>E=!1))})});function T(Y){let R=n(d);Y();let te=n(l).every(he=>Ln(he,n(v)));return r.setOption("date",R),te}function C(){r.setOption("date",Ys(Z(n(d)),n(c),n(g)))}function D(){r.setOption("date",Gs(Z(n(d)),n(c),n(g)))}function w(){r.setOption("date",Z(n(s)))}var k=ue(),M=Q(k);le(M,17,()=>t.buttons,Ce,(Y,R)=>{var te=ue(),he=Q(te);{var be=X=>{var U=eu();Oe(U,()=>Je(n(o))),ae(()=>O(U,1,n(h).title)),S(X,U)},ie=X=>{var U=ue(),P=Q(U);{var W=B=>{var V=tu();V.__click=C;var oe=fe(V);ae(()=>{O(V,1,`${n(h).button??""} ec-${n(R)??""}`),Pe(V,"aria-label",n(u).prev),Pe(V,"title",n(u).prev),V.disabled=n(_),O(oe,1,`${n(h).icon??""} ec-${n(R)??""}`)}),S(B,V)},H=B=>{var V=ue(),oe=Q(V);{var x=L=>{var K=nu();K.__click=D;var tt=fe(K);ae(()=>{O(K,1,`${n(h).button??""} ec-${n(R)??""}`),Pe(K,"aria-label",n(u).next),Pe(K,"title",n(u).next),K.disabled=n(m),O(tt,1,`${n(h).icon??""} ec-${n(R)??""}`)}),S(L,K)},N=L=>{var K=ue(),tt=Q(K);{var Ne=Me=>{var Fe=ru();Fe.__click=w;var mt=fe(Fe);ae(()=>{O(Fe,1,`${n(h).button??""} ec-${n(R)??""}`),Fe.disabled=n(y),As(mt,n(u)[n(R)])}),S(Me,Fe)},Dt=Me=>{var Fe=ue(),mt=Q(Fe);{var Ht=J=>{var Re=iu();Re.__click=function(...F){n(f)[n(R)].click?.apply(this,F)},Oe(Re,()=>Je(n(f)[n(R)].text)),ae(()=>O(Re,1,Ot([n(h).button,`ec-${n(R)}`,n(f)[n(R)].active&&n(h).active]))),S(J,Re)},z=J=>{var Re=ue(),F=Q(Re);{var G=ge=>{var me=su();me.__click=()=>r.setOption("view",n(R));var ne=fe(me);ae(()=>{O(me,1,Ot([n(h).button,`ec-${n(R)}`,n(p)===n(R)&&n(h).active])),As(ne,n(u)[n(R)])}),S(ge,me)};de(F,ge=>{n(R)!==""&&ge(G)},!0)}S(J,Re)};de(mt,J=>{n(f)[n(R)]?J(Ht):J(z,!1)},!0)}S(Me,Fe)};de(tt,Me=>{n(R)==="today"?Me(Ne):Me(Dt,!1)},!0)}S(L,K)};de(oe,L=>{n(R)==="next"?L(x):L(N,!1)},!0)}S(B,V)};de(P,B=>{n(R)==="prev"?B(W):B(H,!1)},!0)}S(X,U)};de(he,X=>{n(R)==="title"?X(be):X(ie,!1)})}S(Y,te)}),S(e,k),we()}nn(["click"]);var ou=$("<div><!></div>"),au=$("<div></div>"),lu=$("<nav></nav>");function uu(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).options.headerToolbar),s=a(()=>n(r).options.theme),o=a(()=>{let u={};for(let f of["start","center","end"])u[f]=n(i)[f]?.split(" ").map(d=>d.split(","))??[];return u});var l=lu();le(l,21,()=>vn(n(o)),Ce,(u,f)=>{var d=au();le(d,21,()=>n(o)[n(f)],Ce,(c,g)=>{var h=ue(),v=Q(h);{var p=m=>{var y=ou(),E=fe(y);go(E,{get buttons(){return n(g)}}),ae(()=>O(y,1,n(s).buttonGroup)),S(m,y)},_=m=>{go(m,{get buttons(){return n(g)}})};de(v,m=>{n(g).length>1?m(p):m(_,!1)})}S(c,h)}),ae(()=>O(d,1,`ec-${n(f)??""}`)),S(u,d)}),ae(()=>O(l,1,n(s).toolbar)),S(e,l),we()}var fu=$("<div><!> <!> <!></div>");function du(e,t){ye(t,!0);let r=De(t,"plugins",19,()=>[]),i=De(t,"options",19,()=>({})),s=new $l(r(),i());Fn("state",s);let o=a(()=>s.auxComponents),l=a(()=>s.features),u=a(()=>s.events),f=a(()=>s.interaction),d=a(()=>s.iClass),c=a(()=>s.view),g=a(()=>s.viewComponent),h=a(()=>s.options.date),v=a(()=>s.options.duration),p=a(()=>s.options.height),_=a(()=>s.options.hiddenDays),m=a(()=>s.options.customScrollbars),y=a(()=>s.options.theme),E={...i()};fn(()=>{for(let[x,N]of Wl(i(),E))j(()=>{T(x,N)});ce(E,i())});function T(x,N){return s.setOption(x,N,!1),this}function C(x){let N=s.options[x];return ri(N)?Ve(N):N}function D(){return s.fetchedRange.resources={},this}function w(){return s.fetchedRange.events={},this}function k(){return n(u).map(Ke)}function M(x){x=String(x);for(let N of n(u))if(N.id===x)return Ke(N);return null}function Y(x){return x=mr([x])[0],n(u).push(x),Ke(x)}function R(x){let N=String(x.id),L=n(u).findIndex(K=>K.id===N);return L>=0?(x=mr([x])[0],n(u)[L]=x,Ke(x)):null}function te(x){x=String(x);let N=n(u).findIndex(L=>L.id===x);return N>=0&&n(u).splice(N,1),this}function he(){return je(n(c))}function be(){return n(f).action?.unselect(),this}function ie(x,N){let L=Sn(x,N);if(L){let K=Kt(L)(x,N);return K.date=Ve(K.date),K}return null}function X(){return s.setOption("date",Gs(Z(n(h)),n(v),n(_))),this}function U(){return s.setOption("date",Ys(Z(n(h)),n(v),n(_))),this}var P={setOption:T,getOption:C,refetchResources:D,refetchEvents:w,getEvents:k,getEventById:M,addEvent:Y,updateEvent:R,removeEventById:te,getView:he,unselect:be,dateFromPoint:ie,next:X,prev:U},W=fu();let H;var B=fe(W);uu(B,{});var V=se(B,2);Kr(V,()=>n(g),(x,N)=>{N(x,{})});var oe=se(V,2);return le(oe,17,()=>n(o),Ce,(x,N)=>{var L=ue(),K=Q(L);Kr(K,()=>n(N),(tt,Ne)=>{Ne(tt,{})}),S(x,L)}),ae(x=>{O(W,1,Ot([n(y).calendar,n(y).view,n(d)&&n(y)[n(d)],n(m)&&n(y).customScrollbars])),Pe(W,"role",x),H=It(W,"",H,{height:n(p)})},[()=>n(l).includes("list")?"list":"table"]),S(e,W),we(P)}function cu(e){return()=>{let{viewDates:t,options:{duration:r,hiddenDays:i}}=e,s;return j(()=>s=r.months||r.inWeeks?7-i.length:t.length),s}}function hu(e,t){return()=>{let{options:{highlightedDates:r,validRange:i},viewDates:s}=e,{colsCount:o}=t,l=[];return j(()=>{let u=[],f=1,d=1;for(let c of s)u.push({gridColumn:f,gridRow:d,resource:void 0,dayStart:c,dayEnd:Ct(Z(c)),disabled:Ln(c,i),highlight:r.some(g=>Qe(g,c))}),f===o&&(l.push(u),u=[],f=0,++d),++f}),l}}function vu(e,t){return()=>{let{filteredEvents:r}=e,{grid:i}=t,s=[],o=[];return j(()=>{for(let l of r)for(let u of i)gt(l.display)?l.allDay&&(o=o.concat(In(l,u))):s=s.concat(In(l,u));$s(s)}),{chunks:s,bgChunks:o}}}function gu(e,t){return()=>{let{iEvents:r}=e,{grid:i}=t,s=[];for(let[,o]of r)o&&j(()=>{for(let l of i)s=s.concat(In(o,l,!1))});return s}}let mu=class{#e;get colsCount(){return n(this.#e)}set colsCount(t){b(this.#e,t)}#n;get grid(){return n(this.#n)}set grid(t){b(this.#n,t)}#t;get gridEl(){return n(this.#t)}set gridEl(t){b(this.#t,t,!0)}#r;get chunks(){return n(this.#r)}set chunks(t){b(this.#r,t)}#s;get bgChunks(){return n(this.#s)}set bgChunks(t){b(this.#s,t)}#i;get iChunks(){return n(this.#i)}set iChunks(t){b(this.#i,t)}#o;get intlDayCell(){return n(this.#o)}set intlDayCell(t){b(this.#o,t)}#a;get intlDayPopover(){return n(this.#a)}set intlDayPopover(t){b(this.#a,t)}#l;get popupDay(){return n(this.#l)}set popupDay(t){b(this.#l,t,!0)}constructor(t){this.#e=a(cu(t)),this.#n=a(hu(t,this)),this.#t=q();let r=a(vu(t,this)),i=a(()=>n(r).chunks),s=a(()=>n(r).bgChunks);this.#r=a(()=>n(i)),this.#s=a(()=>n(s)),this.#i=a(gu(t,this)),this.hiddenChunks=new uo,this.#o=a(pn(t,"dayCellFormat")),this.#a=a(pn(t,"dayPopoverFormat")),this.#l=q(null)}};var pu=$("<div><!></div>");function wr(e,t){ye(t,!0);let r=De(t,"el",15),i=De(t,"allDay",3,!1),s=De(t,"resource",3,void 0),o=De(t,"dateFromPoint",3,()=>t.date),l=De(t,"classes",3,hr),u=De(t,"disabled",3,!1),f=De(t,"highlight",3,!1),d=De(t,"role",3,"cell"),c=De(t,"noIeb",3,!1),g=De(t,"noBeb",3,!1),h=a(()=>re("state")),v=a(()=>n(h).today),p=a(()=>n(h).interaction.action),_=a(()=>n(h).options.theme),m=a(()=>re("view-state")),y=a(()=>n(m).snap),E=a(()=>Qe(t.date,n(v))),T=a(()=>l()([n(_).day,n(_).weekdays?.[t.date.getUTCDay()],n(E)&&n(_).today,f()&&n(_).highlight,u()&&n(_).disabled,c()&&n(_).noIeb,g()&&n(_).noBeb]));qn(()=>{Ks(r(),(k,M)=>({allDay:i(),date:o()(k,M),resource:s(),dayEl:r(),disabled:u()}))});let C=a(()=>!u()&&n(p)?k=>n(p).select(k,n(y)):void 0);var D=pu();D.__pointerdown=function(...k){n(C)?.apply(this,k)};var w=fe(D);Xt(w,()=>t.children??Zt),it(D,k=>r(k),()=>r()),ae(()=>{O(D,1,Ot(n(T))),Pe(D,"role",d())}),S(e,D),we()}nn(["pointerdown"]);var _u=$("<div></div>"),yu=$("<article><!></article>");function mo(e,t){ye(t,!0);let r=De(t,"el",15),i=De(t,"classes",3,hr),s=De(t,"styles",3,hr),o=a(()=>re("state")),l=a(()=>n(o).intlEventTime),u=a(()=>n(o).resources),f=a(()=>n(o).view),d=a(()=>n(o).options.displayEventEnd),c=a(()=>n(o).options.eventBackgroundColor),g=a(()=>n(o).options.eventColor),h=a(()=>n(o).options.eventContent),v=a(()=>n(o).options.eventClick),p=a(()=>n(o).options.eventDidMount),_=a(()=>n(o).options.eventClassNames),m=a(()=>n(o).options.eventMouseEnter),y=a(()=>n(o).options.eventMouseLeave),E=a(()=>n(o).options.eventTextColor),T=a(()=>n(o).options.theme),C=a(()=>t.chunk.event),D=a(()=>t.chunk.event.display),w=a(()=>n(C).backgroundColor??io(t.chunk.resource??oo(n(C),n(u)))??n(c)??n(g)),k=a(()=>n(C).textColor??so(t.chunk.resource??oo(n(C),n(u)))??n(E)),M=a(()=>dl(s()({"background-color":n(w),color:n(k)})).map(x=>`${x[0]}:${x[1]}`).concat(n(C).styles).join(";")),Y=a(()=>i()([gt(n(D))?n(T).bgEvent:n(T).event,...Tl(n(_),n(C),n(f))])),R=a(()=>El(t.chunk,n(d),n(h),n(T),n(l),n(f))),te=a(()=>Vo(n(R),2)),he=a(()=>n(te)[0]),be=a(()=>n(te)[1]);qn(()=>{ke(n(p))&&n(p)({event:Ke(n(C)),timeText:n(he),el:r(),view:je(n(f))})});function ie(x,N){return ke(x)&&!pr(N)?L=>x({event:Ke(n(C)),el:r(),jsEvent:L,view:je(n(f))}):void 0}let X=a(()=>!gt(n(D))&&ie(n(v),n(D))||void 0),U=a(()=>n(X)&&$r(n(X))),P=a(()=>ie(n(m),n(D))),W=a(()=>ie(n(y),n(D)));var H=yu();H.__click=function(...x){n(X)?.apply(this,x)},H.__keydown=function(...x){n(U)?.apply(this,x)},H.__pointerdown=function(...x){t.onpointerdown?.apply(this,x)};{const x=N=>{var L=_u();Oe(L,()=>Je(n(be))),ae(()=>O(L,1,Ot(n(T).eventBody))),S(N,L)};var B=fe(H);{var V=N=>{var L=ue(),K=Q(L);Xt(K,()=>t.body,()=>x,()=>n(w),()=>n(k)),S(N,L)},oe=N=>{x(N)};de(B,N=>{t.body?N(V):N(oe,!1)})}it(H,N=>r(N),()=>r())}ae(()=>{O(H,1,Ot(n(Y))),It(H,n(M)),Pe(H,"role",n(X)?"button":void 0),Pe(H,"tabindex",n(X)?0:void 0)}),ct("mouseenter",H,function(...x){n(P)?.apply(this,x)}),ct("mouseleave",H,function(...x){n(W)?.apply(this,x)}),S(e,H),we()}nn(["click","keydown","pointerdown"]);var wu=$("<div><!></div>");function jn(e,t){ye(t,!0);let r=De(t,"weekday",3,!0),i=De(t,"colSpan",3,1),s=De(t,"ariaHidden",3,!1),o=De(t,"disabled",3,!1),l=De(t,"highlight",3,!1),u=a(()=>re("state")),f=a(()=>n(u).today),d=a(()=>n(u).options.theme);var c=wu(),g=fe(c);Xt(g,()=>t.children),ae(h=>{O(c,1,h),Pe(c,"role",s()?null:"columnheader"),Pe(c,"aria-colspan",s()||i()<=1?null:i()),Pe(c,"aria-colindex",s()?null:t.colIndex),Pe(c,"aria-hidden",s()?"true":null)},[()=>Ot([t.className??n(d).colHead,r()&&n(d).weekdays?.[t.date.getUTCDay()],r()&&Qe(t.date,n(f))&&n(d).today,l()&&n(d).highlight,o()&&n(d).disabled])]),S(e,c),we()}var bu=$("<time></time>");function br(e,t){ye(t,!0);let r=De(t,"alPrefix",3,""),i=a(()=>re("state")),s=a(()=>n(i).intlDayHeader),o=a(()=>n(i).intlDayHeaderAL);var l=bu();Oe(l,()=>Je(n(s).format(t.date))),ae((u,f)=>{Pe(l,"datetime",u),Pe(l,"aria-label",`${r()??""}${f??""}`)},[()=>vt(t.date,10),()=>n(o).format(t.date)]),S(e,l),we()}function kr(e,t){ye(t,!0);let r=De(t,"el",15),i=a(()=>re("state")),s=a(()=>n(i).iClasses),o=a(()=>n(i).interaction.action),l=a(()=>n(i).interaction.resizer),u=a(()=>re("view-state")),f=a(()=>n(u).snap),d=a(()=>t.chunk.event),c=a(()=>t.chunk.event.display),g=a(()=>p=>n(s)(p,n(d)));function h(p){return n(o)?.draggable(p)?_=>n(o).drag(p,_,t.forceDate,t.forceMargin,n(f)):n(o)?.noAction}let v=a(()=>!gt(n(c))&&!pr(n(c))?h(n(d)):void 0);mo(e,{get chunk(){return t.chunk},get classes(){return n(g)},get styles(){return t.styles},get onpointerdown(){return n(v)},get el(){return r()},set el(_){r(_)},body:(_,m=Zt)=>{var y=ue(),E=Q(y);{var T=D=>{var w=ue(),k=Q(w);Kr(k,()=>n(l),(M,Y)=>{Y(M,{get chunk(){return t.chunk},get axis(){return t.axis},get forceDate(){return t.forceDate},get forceMargin(){return t.forceMargin},children:(R,te)=>{var he=ue(),be=Q(he);Xt(be,m),S(R,he)},$$slots:{default:!0}})}),S(D,w)},C=D=>{var w=ue(),k=Q(w);Xt(k,m),S(D,w)};de(E,D=>{n(l)?D(T):D(C,!1)})}S(_,y)},$$slots:{body:!0}}),we()}var ku=$("<time></time>"),Cu=$("<span></span>"),Du=$('<a role="button" tabindex="0" aria-haspopup="dialog"></a>'),Eu=$("<div><!> <!></div> <div><!></div>",1);function Tu(e,t){ye(t,!0);const r=()=>sl(n(d),"$firstDay",i),[i,s]=ol();let o=re("state"),l=re("view-state"),u=a(()=>o.features),f=a(()=>o.options.date),d=a(()=>o.options.firstDay),c=a(()=>o.options.moreLinkContent),g=a(()=>o.options.theme),h=a(()=>o.options.weekNumbers),v=a(()=>o.options.weekNumberContent),p=a(()=>l.hiddenChunks),_=a(()=>l.intlDayCell),m=a(()=>t.day.dayStart),y=a(()=>t.day.disabled),E=a(()=>t.day.highlight),T=a(()=>n(m).getUTCMonth()!==n(f).getUTCMonth()),C=a(()=>R=>[...R,n(T)&&n(g).otherMonth]),D=a(()=>n(h)&&n(m).getUTCDay()===(n(d)?1:0)),w=a(()=>{let R;if(n(D)){let te=yl(n(m),r());n(v)?R=ke(n(v))?n(v)({date:Ve(n(m)),week:te}):n(v):R="W"+String(te).padStart(2,"0")}return R}),k=a(()=>n(p).get(n(m).getTime())),M=a(()=>{let R="";if(n(k)){let te="+"+n(k).length+" more";n(c)?R=ke(n(c))?n(c)({num:n(k).length,text:te}):n(c):R=te}return R});function Y(){l.popupDay=t.day}wr(e,{get date(){return n(m)},allDay:!0,get classes(){return n(C)},get disabled(){return n(y)},get highlight(){return n(E)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},children:(R,te)=>{var he=Eu(),be=Q(he),ie=fe(be);{var X=V=>{var oe=ku();Oe(oe,()=>Je(n(_).format(n(m)))),ae(x=>Pe(oe,"datetime",x),[()=>vt(n(m),10)]),S(V,oe)};de(ie,V=>{n(u).includes("dayNumber")&&V(X)})}var U=se(ie,2);{var P=V=>{var oe=Cu();Oe(oe,()=>Je(n(w))),ae(()=>O(oe,1,n(g).weekNumber)),S(V,oe)};de(U,V=>{n(D)&&V(P)})}var W=se(be,2),H=fe(W);{var B=V=>{var oe=Du(),x=a(()=>oi(Y));oe.__click=function(...K){n(x)?.apply(this,K)};var N=a(()=>$r(Y));oe.__keydown=function(...K){n(N)?.apply(this,K)};var L=a(oi);oe.__pointerdown=function(...K){n(L)?.apply(this,K)},Oe(oe,()=>Je(n(M))),S(V,oe)};de(H,V=>{n(k)&&V(B)})}ae(()=>{O(be,1,n(g).dayHead),O(W,1,n(g).dayFoot)}),S(R,he)},$$slots:{default:!0}}),we(),s()}nn(["click","keydown","pointerdown"]);function Cr(e,t){ye(t,!0);let r=De(t,"inPopup",3,!1),i=a(()=>re("state")),s=a(()=>n(i).options.dayMaxEvents),o=a(()=>re("view-state")),l=a(()=>n(o).colsCount),u=a(()=>n(o).gridEl),f=a(()=>n(o).hiddenChunks),d=a(()=>n(o).popupDay),c=q(void 0),g=q(1),h=q(!1),v=a(()=>t.chunk.event),p=a(()=>t.chunk.event.display),_=a(()=>n(u).children.item((t.chunk.gridRow-1)*n(l)+t.chunk.gridColumn-1));Xe(()=>{r()||b(g,mn(n(_).firstElementChild)||1,!0)});let m=a(()=>D=>{if(D["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,D["grid-row"]=t.chunk.gridRow,!gt(n(p))){let w=r()?1:n(g);if(n(v)._margin){let[k,M]=n(v)._margin;k>w&&t.chunk.gridRow===M&&(w=k)}D["margin-block-start"]=`${w}px`}return n(h)&&(D.visibility="hidden"),D});function y(){b(g,eo(t.chunk,mn(n(c)),mn(n(_).firstElementChild)||1),!0)}function E(){if(n(s)===!0){let D=mn(n(_))-T(n(_));if(b(h,t.chunk.bottom>D),n(h))for(let w of t.chunk.dates){let k=w.getTime();if(n(f).has(k)){let M=n(f).get(k);M.includes(t.chunk)||n(f).set(k,[...M,t.chunk])}else n(f).set(k,[t.chunk])}}else b(h,!1),n(f).size&&n(f).clear()}function T(D){let w=0;for(let k=0;k<t.chunk.dates.length&&(w=ht(w,mn(D.lastElementChild)),D=D.nextElementSibling,!!D);++k);return w}var C={reposition:y,hide:E};{let D=a(()=>r()&&n(d).dayStart),w=a(()=>[n(g),t.chunk.gridRow]);kr(e,{get chunk(){return t.chunk},get styles(){return n(m)},axis:"x",get forceDate(){return n(D)},get forceMargin(){return n(w)},get el(){return n(c)},set el(k){b(c,k,!0)}})}return we(C)}var xu=$('<dialog closedby="closerequest"><header><time></time> <a role="button" tabindex="0">&times;</a></header> <div></div></dialog>');function Su(e,t){ye(t,!0);let r=re("view-state"),i=a(()=>re("state")),s=a(()=>n(i).interaction),o=a(()=>n(i).options.buttonText),l=a(()=>n(i).options.theme),u=a(()=>r.colsCount),f=a(()=>r.chunks),d=a(()=>r.gridEl),c=a(()=>r.intlDayPopover),g=a(()=>r.popupDay),h=q(void 0),v=q(""),p=a(()=>n(g).gridColumn),_=a(()=>n(g).gridRow),m=a(()=>n(g).dayStart),y=a(()=>n(g).dayEnd),E=a(()=>{let ie=[];for(let X of n(f))X.gridRow===n(_)&&X.gridColumn<=n(p)&&X.gridColumn+X.dates.length>n(p)&&ie.push(ce({},X,Zn(X.event,n(m),n(y))));return ie.sort((X,U)=>X.top-U.top),ie});qn(()=>{n(h).show()}),Xe(()=>{n(E).length?j(T):C()});function T(){let ie=n(d).children.item((n(_)-1)*n(u)+n(p)-1),X=sn(n(h)),U=sn(ie),P=sn(n(d));b(v,"");let W;if(X.width>=P.width){W=P.left-U.left;let B=U.right-P.right;b(v,n(v)+`inset-inline-end:${B}px;`)}else W=(U.width-X.width)/2,U.left+W<P.left?W=P.left-U.left:U.left+W+X.width>P.right&&(W=P.right-U.left-X.width);b(v,n(v)+`inset-inline-start:${W}px;`);let H;X.height>=P.height?(H=P.top-U.top,b(v,n(v)+`block-size:${P.height}px;`)):(H=(U.height-X.height)/2,U.top+H<P.top?H=P.top-U.top:U.top+H+X.height>P.bottom&&(H=P.bottom-U.top-X.height)),b(v,n(v)+`inset-block-start:${H}px;`)}function C(){r.popupDay=null}function D(){C(),n(s).action?.noClick()}var w=xu();let k;var M=fe(w),Y=fe(M);Oe(Y,()=>Je(n(c).format(n(m))));var R=se(Y,2);La(R);var te=a(()=>oi(C));R.__click=function(...ie){n(te)?.apply(this,ie)};var he=a(()=>$r(C));R.__keydown=function(...ie){n(he)?.apply(this,ie)};var be=se(M,2);le(be,21,()=>n(E),Ce,(ie,X)=>{Cr(ie,{get chunk(){return n(X)},inPopup:!0})}),it(w,ie=>b(h,ie),()=>n(h)),Oe(w,()=>fl("pointerdown")),ae(ie=>{O(w,1,n(l).popup),k=It(w,n(v),k,{"grid-area":`${n(_)+1} / ${n(p)}`}),O(M,1,n(l).dayHead),Pe(Y,"datetime",ie),Pe(R,"aria-label",n(o).close),O(be,1,n(l).events)},[()=>vt(n(m),10)]),ct("pointerdownoutside",w,D),ct("close",w,C),S(e,w),we()}nn(["click","keydown"]);var Ru=$('<div role="columnheader"><span></span></div>'),Iu=$('<section><header><div role="row"></div></header> <div><div></div> <div><!> <!> <!></div></div> <!></section>');function gi(e,t){ye(t,!0);let r=re("state"),i=new mu(r);Fn("view-state",i);let s=a(()=>r.intlDayHeader),o=a(()=>r.intlDayHeaderAL),l=a(()=>r.options.dayMaxEvents),u=a(()=>r.options.theme),f=a(()=>i.grid),d=a(()=>i.chunks),c=a(()=>i.bgChunks),g=a(()=>i.iChunks),h=a(()=>i.hiddenChunks),v=a(()=>i.popupDay),p=[];function _(){ui(p,n(d)),n(h).clear(),hn().then(m)}function m(){n(h).size,p.forEach(C=>C?.hide())}Xe(_),Xe(m);var y=ue(),E=Q(y);{var T=C=>{var D=Iu();let w;var k=fe(D),M=fe(k);le(M,21,()=>n(f)[0],Ce,(P,W,H)=>{let B=()=>n(W).dayStart;var V=Ru();Pe(V,"aria-colindex",1+H);var oe=fe(V);Oe(oe,()=>Je(n(s).format(B()))),ae((x,N)=>{O(V,1,x),Pe(oe,"aria-label",N)},[()=>Ot([n(u).colHead,n(u).weekdays?.[B().getUTCDay()]]),()=>n(o).format(B())]),S(P,V)});var Y=se(k,2),R=fe(Y);le(R,21,()=>n(f),Ce,(P,W,H)=>{var B=ue(),V=Q(B);le(V,17,()=>n(W),Ce,(oe,x,N)=>{{let L=a(()=>N+1===Te(n(W))),K=a(()=>H+1===Te(n(f)));Tu(oe,{get day(){return n(x)},get noIeb(){return n(L)},get noBeb(){return n(K)}})}}),S(P,B)}),it(R,P=>i.gridEl=P,()=>i?.gridEl);var te=se(R,2),he=fe(te);le(he,19,()=>n(d),P=>P.id,(P,W,H)=>{it(Cr(P,{get chunk(){return n(W)}}),(B,V)=>p[V]=B,B=>p?.[B],()=>[n(H)])});var be=se(he,2);le(be,17,()=>n(c),P=>P.id,(P,W)=>{Cr(P,{get chunk(){return n(W)}})});var ie=se(be,2);le(ie,17,()=>n(g),Ce,(P,W)=>{Cr(P,{get chunk(){return n(W)}})});var X=se(Y,2);{var U=P=>{Su(P,{})};de(X,P=>{n(v)&&P(U)})}it(D,P=>r.mainEl=P,()=>r?.mainEl),Oe(D,()=>ei(_)),ae(P=>{O(D,1,Ot([n(u).main,n(l)===!0&&n(u).uniform])),w=It(D,"",w,P),O(k,1,n(u).header),O(M,1,n(u).grid),O(Y,1,n(u).body),O(R,1,n(u).grid),O(te,1,n(u).events)},[()=>({"--ec-grid-cols":Te(n(f)[0]),"--ec-grid-rows":Te(n(f))})]),S(C,D)};de(E,C=>{!kt(n(f))&&!kt(n(f)[0])&&C(T)})}S(e,y),we()}const Lu={createOptions(e){ce(e,{dayMaxEvents:!1,dayCellFormat:{day:"numeric"},dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},moreLinkContent:void 0,weekNumbers:!1,weekNumberContent:void 0,view:"dayGridMonth"}),ce(e.buttonText,{dayGridDay:"day",dayGridMonth:"month",dayGridWeek:"week",close:"Close"}),ce(e.theme,{uniform:"ec-uniform",dayFoot:"ec-day-foot",otherMonth:"ec-other-month",popup:"ec-popup",weekNumber:"ec-week-number"}),ce(e.views,{dayGridDay:{buttonText:Jn,component:()=>gi,dayHeaderFormat:{weekday:"long"},displayEventEnd:!1,duration:{days:1},theme:st("ec-day-grid ec-day-view")},dayGridWeek:{buttonText:Qn,component:()=>gi,displayEventEnd:!1,theme:st("ec-day-grid ec-week-view")},dayGridMonth:{buttonText:di,component:Pu,dayHeaderFormat:{weekday:"short"},dayHeaderAriaLabelFormat:{weekday:"long"},displayEventEnd:!1,duration:{months:1},theme:st("ec-day-grid ec-month-view"),titleFormat:{year:"numeric",month:"long"}}})}};function Pu(e){return e.features=["dayNumber"],e.extensions.activeRange=(t,r)=>{let{options:{firstDay:i}}=e;return{start:Vs(t,i),end:_l(r,i)}},gi}function po(e,t,r){return e.startEditable??t??e.editable??r}function Mu(e,t,r){return e.durationEditable??t??e.editable??r}let mi=!1;function Au(e){mi||(mi=!0,window.requestAnimationFrame(()=>{e(),mi=!1}))}function _o(e,t,r){return ht(t,Nt(r,e))}function Ou(e){return()=>{let{options:{editable:t,eventStartEditable:r,theme:i}}=e;e.iClasses=(s,o)=>{let{display:l}=o;return[...s,pr(l)?[i[l]]:!gt(l)&&po(o,r,t)?[i.draggable]:[]]}}}function Nu(e){return()=>{let{interaction:t,mainEl:r}=e;if(r)return Kn(r,"scroll",()=>{t.action.handleScroll(),t.pointer?.handleScroll()})}}class Fu{constructor(t){this.#e(t)}#e(t){fn(Ou(t)),Xe(Nu(t))}}function Hu(e,t){ye(t,!0);let r=re("state"),i=a(()=>r.events),s=a(()=>r.iEvents),o=a(()=>r.features),l=a(()=>r.view),u=a(()=>r.mainEl),f=a(()=>r.options.dateClick),d=a(()=>r.options.dragConstraint),c=a(()=>r.options.dragScroll),g=a(()=>r.options.editable),h=a(()=>r.options.eventStartEditable),v=a(()=>r.options.eventDragMinDistance),p=a(()=>r.options.eventDragStart),_=a(()=>r.options.eventDragStop),m=a(()=>r.options.eventDrop),y=a(()=>r.options.eventLongPressDelay),E=a(()=>r.options.eventResizeStart),T=a(()=>r.options.eventResizeStop),C=a(()=>r.options.eventResize),D=a(()=>r.options.longPressDelay),w=a(()=>r.options.resizeConstraint),k=a(()=>r.options.selectable),M=a(()=>r.options.select),Y=a(()=>r.options.selectBackgroundColor),R=a(()=>r.options.selectConstraint),te=a(()=>r.options.selectLongPressDelay),he=a(()=>r.options.selectMinDistance),be=a(()=>r.options.unselect),ie=a(()=>r.options.unselectAuto),X=a(()=>r.options.unselectCancel),U=a(()=>r.options.validRange);const P=1,W=2,H=3,B=4,V=5,oe=6;let x,N,L,K,tt,Ne,Dt,Me,Fe,mt,Ht,z,J,Re,F,G,ge,me,ne,Ie,Be,ot,Ae,xe,at,Ue,pt;function Pn(I){return po(I,n(h),n(g))}function xi(I,A,pe,ee,$e){x||(x=Li(A)?P:oe,_n()&&(L=I,Ii(A,$e),pe&&(Ne=pe),ee&&(at=ee),me="dragging",Mn(A)))}function Si(I,A,pe,ee,$e,er,Mi,fd){x||(x=Li(A)?pe?H:W:oe,_n()&&(L=I,Ii(A,fd),$e&&(Ne=$e),er&&(at=er),me=ee==="x"?"resizingX":"resizingY",xr()?(ne=Z(L.end),ge?(ii(ne,L.start),ne>=L.end&&xn(ne)):(gr(ne,Ue),ne<L.start&&(ne=L.start),Ne=L.start)):(ne=Z(L.start),ge?(ii(ne,L.end),ne<=L.start&&!Mi&&Ct(ne)):(Se(ne,Ue),ne>L.end&&(ne=L.end),Ne=L.end,Mi||(Ne=gr(Z(Ne),Ue))),Mi&&!ge&&(pt=Ue)),Mn(A)))}function Ri(I,A){x||(x=Li(I)?n(k)&&!n(o).includes("list")?B:V:oe,_n()&&(Ii(I,A),me="selecting",Ie=ge?We({day:1}):Ue,L={allDay:ge,start:Ne,end:Se(Z(Ne),Ie),resourceIds:Me?[Me.id]:[]},Mn(I)))}function Qf(){x||(x=oe)}function Ii(I,A){window.getSelection().removeAllRanges(),mt=z=I.clientX,Ht=J=I.clientY,Ue=A?.duration;let pe=Sn(z,J);({allDay:ge,date:Ne,resource:Me}=Kt(pe)(z,J)),F=n(u)!==Js(pe,3),Re=Js(pe,1),Lo(),I.pointerType!=="mouse"&&(Ae=setTimeout(()=>{x&&(N=!0,Mn(I))},(on()?n(te):n(y))??n(D)))}function Mn(I){if(N||I&&I.pointerType==="mouse"&&rd()>=(on()?n(he):n(v))){N=!0,Sr(I),r.iClass=me,K||(on()?nd():td(I,An()?n(E):n(p)));let A=$n(ed());if(A){let pe;if({allDay:pe,date:Dt,resource:Fe}=A,pe===ge){let ee=Tr({},K),$e=n(w);G=We((Dt-Ne)/1e3),xr()?(ee.start=Se(Z(L.start),G),ee.start>ne&&(ee.start=ne,G=We((ne-L.start)/1e3))):(ee.end=Se(Z(L.end),G),pt&&Se(ee.end,pt),An()?ee.end<ne&&(ee.end=ne,G=We((ne-L.end)/1e3)):on()?(ee.end<L.end?(ee.start=gr(ee.end,Ie),ee.end=L.end):ee.start=L.start,$e=n(R)):(ee.start=Se(Z(L.start),G),Me&&(ee.resourceIds=L.resourceIds.filter(er=>er!==Me.id),ee.resourceIds.push(Fe.id)),$e=n(d)));do{if($e!==void 0&&(ee=Tr(li(L),ee),$e(on()?Oo(ee,I):No(ee,L,I))===!1)){Ao(L);break}Ao(ee)}while(!1)}}}if(n(c)){let A=24,pe=24;Au(()=>{xe&&(F||(J<xe.top+A&&(n(u).scrollTop+=ht(-8,(J-xe.top-A)/3)),J>xe.bottom-A&&(n(u).scrollTop+=Nt(8,(J-xe.bottom+A)/3))),z<xe.left+pe&&(n(u).scrollLeft+=ht(-8,(z-xe.left-pe)/3)),z>xe.right-pe&&(n(u).scrollLeft+=Nt(8,(z-xe.right+pe)/3)),J<A&&window.scrollBy(0,ht(-8,(J-A)/3)),J>window.innerHeight-A&&window.scrollBy(0,Nt(8,(J-window.innerHeight+A)/3)))})}}function Ro(){_n()&&(Lo(),Mn())}function jf(I){_n()&&I.isPrimary&&(z=I.clientX,J=I.clientY,Mn(I))}function $f(I){if(Be&&n(ie)&&!(n(X)&&I.target.closest(n(X)))&&Sr(I),x&&I.isPrimary){if(N)if(on()){if(Be=!0,ke(n(M))){let A=Oo(K,I);n(M)(A)}}else{L.display=tt;let A=An()?n(T):n(_);ke(A)&&A({event:Ke(L),jsEvent:I,view:je(n(l))});let pe=li(L);if(Mo(L,K),Po(),A=An()?n(C):n(m),ke(A)){let ee=L,$e=No(L,pe,I);A(ce($e,{revert(){Mo(ee,pe)}}))}}else if((id()||on())&&ke(n(f))&&!ot){z=I.clientX,J=I.clientY;let A=Sn(z,J);if(A){let{allDay:pe,date:ee,resource:$e}=Kt(A)(z,J);n(f)({allDay:pe,date:Ve(ee),dateStr:vt(ee),dayEl:A,jsEvent:I,view:je(n(l)),resource:$e})}}Io()}ot=!1}function Io(){N=!1,x=mt=Ht=z=J=L=tt=Ne=Dt=Me=Fe=G=pt=ge=ne=Ie=at=Re=xe=Ue=void 0,r.iClass=void 0,Ae&&(clearTimeout(Ae),Ae=void 0)}function ed(){return Sn(_o(z,xe.left,xe.right),_o(J,xe.top,xe.bottom))}function $n(I){if(I){let A=Kt(I)(z,J);if(A.disabled){if(!n(U).end||A.date<n(U).end)return $n(I.nextElementSibling);if(!n(U).start||A.date>n(U).start)return $n(I.previousElementSibling)}else return(on()||An())&&A.resource&&!K.resourceIds.includes(A.resource.id)&&!n(o).includes("timeline")?z>mt?$n(I.previousElementSibling):$n(I.nextElementSibling):A}return null}function Lo(){let I=sn(n(u)),A=sn(Re),pe=I.width/n(u).offsetWidth,ee=I.height/n(u).offsetHeight,$e=gn();xe={left:ht(0,$e?I.right-n(u).clientWidth*pe:A.left+n(u).scrollLeft*pe),right:Nt(document.documentElement.clientWidth,$e?A.right+n(u).scrollLeft*pe:I.left+n(u).clientWidth*pe)-2,top:ht(0,A.top+(F?0:n(u).scrollTop)*ee),bottom:Nt(document.documentElement.clientHeight,F?A.bottom:I.top+n(u).clientHeight*ee)-2}}function td(I,A){ke(A)&&A({event:Ke(L),jsEvent:I,view:je(n(l))}),tt=L.display,L.display="preview",K=li(L),at!==void 0&&(K._margin=at),pt&&Se(K.end,pt),L.display="ghost",n(i).length=n(i).length}function nd(){K={id:"{select}",allDay:L.allDay,start:L.start,title:"",display:"preview",extendedProps:{},backgroundColor:n(Y),resourceIds:L.resourceIds,classNames:[],styles:[]}}function Po(){K=void 0,n(s).delete("action")}function Tr(I,A){return I.start=A.start,I.end=A.end,I.resourceIds=A.resourceIds,{...I}}function Mo(I,A){Tr(I,A),n(i).length=n(i).length}function Ao(I){K=Tr(K,I),n(s).set("action",K)}function Oo(I,A){let{start:pe,end:ee}=Ke(I);return{start:pe,end:ee,startStr:vt(I.start),endStr:vt(I.end),allDay:ge,view:je(n(l)),resource:Me,jsEvent:A}}function No(I,A,pe){let ee;return An()?ee=xr()?{startDelta:G,endDelta:We(0)}:{startDelta:We(0),endDelta:G}:ee={delta:G,oldResource:Me!==Fe?Me:void 0,newResource:Me!==Fe?Fe:void 0},ce(ee,{event:Ke(I),oldEvent:Ke(A),view:je(n(l)),jsEvent:pe}),ee}function rd(){return Math.sqrt(Math.pow(z-mt,2)+Math.pow(J-Ht,2))}function An(){return x===W||xr()}function xr(){return x===H}function id(){return x===V}function on(){return x===B}function _n(){return x&&x<V}function Li(I){return I.isPrimary&&(I.pointerType!=="mouse"||I.buttons&1)}function Sr(I){Be&&(Be=!1,Po(),ke(n(be))&&n(be)({jsEvent:I,view:je(n(l))}))}fn(()=>{n(l),Sr()});function sd(){ot=!0}function od(I){if(_n()){let A=I.target,pe=[],ee=()=>ml(pe);pe.push(Kn(A,"touchmove",Pi(()=>N))),pe.push(Kn(A,"touchend",ee)),pe.push(Kn(A,"touchcancel",ee))}}function Pi(I){return A=>{I()&&A.preventDefault()}}qn(()=>Kn(window,"touchmove",pl,{passive:!1}));var ad={draggable:Pn,drag:xi,resize:Si,select:Ri,noAction:Qf,handleScroll:Ro,unselect:Sr,noClick:sd};ct("pointermove",xt,jf),ct("pointerup",xt,$f),ct("pointercancel",xt,Io),ct("scroll",xt,Ro);var ld=a(()=>Pi(_n));ct("selectstart",xt,function(...I){n(ld)?.apply(this,I)});var ud=a(()=>Pi(()=>Ae));return ct("contextmenu",xt,function(...I){n(ud)?.apply(this,I)}),ct("touchstart",xt,od,void 0,!0),we(ad)}function Wu(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).iEvents),s=a(()=>n(r).options.slotDuration),o=0,l=0,u;function f(){let _=Sn(o,l);if(_&&!n(i).has("action")){let{allDay:m,date:y,resource:E,disabled:T}=Kt(_)(o,l);if(!T){u||g(),u.allDay=m,u.start=y,u.end=Se(Z(y),n(s)),u.resourceIds=E?[E.id]:[],n(i).set("pointer",{...u});return}}h()}function d(){f()}function c(_){v(_)&&(o=_.clientX,l=_.clientY,f())}function g(){u={id:"{pointer}",title:"",display:"pointer",extendedProps:{},backgroundColor:"transparent",classNames:[],styles:[]}}function h(){u=void 0,n(i).delete("pointer")}function v(_){return _.isPrimary&&_.pointerType==="mouse"}var p={handleScroll:d};return ct("pointermove",xt,c),ct("scroll",xt,d),we(p)}var Uu=$("<div></div>"),zu=$("<div></div>"),Vu=$("<!> <!> <!>",1);function Bu(e,t){ye(t,!0);let r=De(t,"forceDate",3,void 0),i=De(t,"forceMargin",3,void 0),s=a(()=>re("state")),o=a(()=>n(s).interaction.action),l=a(()=>n(s).options.editable),u=a(()=>n(s).options.eventDurationEditable),f=a(()=>n(s).options.eventResizableFromStart),d=a(()=>n(s).options.theme),c=a(()=>re("view-state")),g=a(()=>n(c).snap),h=a(()=>t.chunk.event),v=a(()=>t.chunk.event.display),p=a(()=>!gt(n(v))&&!pr(n(v))&&Mu(n(h),n(u),n(l)));function _(w){return k=>n(o).resize(n(h),k,w,t.axis,r(),i(),t.chunk.zeroDuration,n(g))}var m=Vu(),y=Q(m);{var E=w=>{var k=Uu(),M=a(()=>_(!0));k.__pointerdown=function(...Y){n(M)?.apply(this,Y)},ae(()=>O(k,1,`${n(d).resizer??""} ${n(d).start??""}`)),S(w,k)};de(y,w=>{n(p)&&n(f)&&w(E)})}var T=se(y,2);Xt(T,()=>t.children);var C=se(T,2);{var D=w=>{var k=zu(),M=a(()=>_(!1));k.__pointerdown=function(...Y){n(M)?.apply(this,Y)},ae(()=>O(k,1,n(d).resizer)),S(w,k)};de(C,w=>{n(p)&&w(D)})}S(e,m),we()}nn(["pointerdown"]);var Gu=$("<!> <!>",1);function Yu(e,t){ye(t,!0);let r=re("state");new Fu(r);let i=a(()=>r.interaction),s=a(()=>r.options.pointer);n(i).resizer=Bu;var o=Gu(),l=Q(o);it(Hu(l,{}),d=>n(i).action=d,()=>n(i)?.action);var u=se(l,2);{var f=d=>{it(Wu(d,{}),c=>n(i).pointer=c,()=>n(i)?.pointer)};de(u,d=>{n(s)&&d(f)})}S(e,o),we()}const qu={createOptions(e){ce(e,{dateClick:void 0,dragConstraint:void 0,dragScroll:!0,editable:!1,eventDragMinDistance:5,eventDragStart:void 0,eventDragStop:void 0,eventDrop:void 0,eventDurationEditable:!0,eventLongPressDelay:void 0,eventResizableFromStart:!1,eventResizeStart:void 0,eventResizeStop:void 0,eventResize:void 0,eventStartEditable:!0,longPressDelay:1e3,pointer:!1,resizeConstraint:void 0,select:void 0,selectBackgroundColor:void 0,selectConstraint:void 0,selectLongPressDelay:void 0,selectMinDistance:5,snapDuration:void 0,unselect:void 0,unselectAuto:!0,unselectCancel:""}),ce(e.theme,{draggable:"ec-draggable",ghost:"ec-ghost",preview:"ec-preview",pointer:"ec-pointer",resizer:"ec-resizer",start:"ec-start",dragging:"ec-dragging",resizingY:"ec-resizing-y",resizingX:"ec-resizing-x",selecting:"ec-selecting"})},initState(e){e.auxComponents.push(Yu)}};let Xu=class{#e;get intlListDay(){return n(this.#e)}set intlListDay(t){b(this.#e,t)}#n;get intlListDaySide(){return n(this.#n)}set intlListDaySide(t){b(this.#n,t)}constructor(t){this.#e=a(pn(t,"listDayFormat")),this.#n=a(pn(t,"listDaySideFormat"))}};var Ku=$("<div></div> <!>",1);function Zu(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).interaction),s=a(()=>n(r).options.theme),o=a(()=>l=>(delete l["background-color"],delete l.color,l));{const l=(f,d=Zt,c=Zt,g=Zt)=>{var h=Ku(),v=Q(h);let p;var _=se(v,2);Xt(_,d),ae(()=>{O(v,1,n(s).eventTag),p=It(v,"",p,{"background-color":c()})}),S(f,h)};let u=a(()=>n(i).action?.noAction);mo(e,{get chunk(){return t.chunk},get styles(){return n(o)},get onpointerdown(){return n(u)},body:l,$$slots:{body:!0}})}we()}var Ju=$("<h4><time></time> <time></time></h4> <!>",1);function Qu(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).filteredEvents),s=a(()=>n(r).options.highlightedDates),o=a(()=>n(r).options.theme),l=a(()=>n(r).options.validRange),u=a(()=>re("view-state")),f=a(()=>n(u).intlListDay),d=a(()=>n(u).intlListDaySide),c=a(()=>n(s).some(y=>Qe(y,t.date))),g=a(()=>Ln(t.date,n(l))),h=a(()=>vt(t.date,10)),v=a(()=>{let y=[];if(!n(g)){let E=t.date,T=Ct(Z(t.date));for(let C of n(i))if(!gt(C.display)&&Rn(C,E,T)){let D=Zn(C,E,T);y.push(D)}}return y});var p=ue(),_=Q(p);{var m=y=>{wr(y,{get date(){return t.date},allDay:!0,role:"listitem",get disabled(){return n(g)},get highlight(){return n(c)},children:(E,T)=>{var C=Ju(),D=Q(C),w=fe(D);Oe(w,()=>Je(n(f).format(t.date)));var k=se(w,2);Oe(k,()=>Je(n(d).format(t.date)));var M=se(D,2);le(M,17,()=>n(v),Y=>Y.event,(Y,R)=>{Zu(Y,{get chunk(){return n(R)}})}),ae(()=>{O(D,1,n(o).dayHead),Pe(w,"datetime",n(h)),O(k,1,n(o).daySide),Pe(k,"datetime",n(h))}),S(E,C)},$$slots:{default:!0}})};de(_,y=>{n(v).length&&y(m)})}S(e,p),we()}var ju=$("<div></div>"),$u=$("<section><!></section>");function ef(e,t){ye(t,!0);let r=re("state"),i=new Xu(r);Fn("view-state",i);let s=a(()=>r.filteredEvents),o=a(()=>r.view),l=a(()=>r.viewDates),u=a(()=>r.options.noEventsClick),f=a(()=>r.options.noEventsContent),d=a(()=>r.options.theme),c=a(()=>{let y=!0;if(!kt(n(l))){let E=n(l)[0],T=Ct(Z(n(l).at(-1)));for(let C of n(s))if(!gt(C.display)&&C.start<T&&C.end>E){y=!1;break}}return y}),g=a(()=>ke(n(f))?n(f)():n(f));function h(y){ke(n(u))&&n(u)({jsEvent:y,view:je(n(o))})}var v=$u(),p=fe(v);{var _=y=>{var E=ju();E.__click=h,Oe(E,()=>Je(n(g))),ae(()=>O(E,1,n(d).noEvents)),S(y,E)},m=y=>{var E=ue(),T=Q(E);le(T,17,()=>n(l),Ce,(C,D)=>{Qu(C,{get date(){return n(D)}})}),S(y,E)};de(p,y=>{n(c)?y(_):y(m,!1)})}it(v,y=>r.mainEl=y,()=>r?.mainEl),ae(()=>O(v,1,n(d).main)),S(e,v),we()}nn(["click"]);const tf={createOptions(e){ce(e,{listDayFormat:{weekday:"long"},listDaySideFormat:{year:"numeric",month:"long",day:"numeric"},noEventsClick:void 0,noEventsContent:"No events",view:"listWeek"}),ce(e.buttonText,{listDay:"list",listWeek:"list",listMonth:"list",listYear:"list"}),ce(e.theme,{daySide:"ec-day-side",eventTag:"ec-event-tag",noEvents:"ec-no-events"}),ce(e.views,{listDay:{buttonText:Jn,component:Dr,duration:{days:1},theme:st("ec-list ec-day-view")},listWeek:{buttonText:Qn,component:Dr,duration:{weeks:1},theme:st("ec-list ec-week-view")},listMonth:{buttonText:di,component:Dr,duration:{months:1},theme:st("ec-list ec-month-view")},listYear:{buttonText:Pl,component:Dr,duration:{years:1},theme:st("ec-list ec-year-view")}})}};function Dr(e){return e.features=["list"],ef}function pi(e,t,r=!0){let i=[];for(let{gridColumn:s,gridRow:o,resource:l,start:u,end:f,disabled:d}of t)if(!d&&Rn(e,u,f,l)){let c=Zn(e,u,f);ce(c,{gridColumn:s,gridRow:o,resource:l,top:(c.start-u)/1e3,height:(c.end-c.start)/1e3,maxHeight:(f-c.start)/1e3}),r&&fi(c),i.push(c)}return i}function nf(e){let t={};for(let r of e){let{gridColumn:i}=r,s=t[i],o=0;if(s&&r.start<s.end){for(;o<s.columns.length&&!(s.columns[o].at(-1).end<=r.start);++o);r.end>s.end&&(s.end=r.end)}else s={columns:[],end:r.end};s.columns.length<o+1&&s.columns.push([]),s.columns[o].push(r),t[i]=s,r.group=s,r.groupColumn=o}}function rf(e){let t="all-day",r;return e?(r=ke(e)?e({text:t}):e,typeof r=="string"&&(r={html:r})):r={html:t},r}function _i(e){e.extensions.activeRange=(t,r)=>{let{options:{slotMaxTime:i}}=e;if(i.days||i.seconds>vr){Se(xn(r),i);let s=xn(Z(r));s<t&&(t=s)}return{start:t,end:r}}}function yi(e){"scrollTime"in e||(ce(e,{columnWidth:void 0,flexibleSlotTimeLimits:!1,nowIndicator:!1,scrollTime:"06:00:00",slotDuration:"00:30:00",slotHeight:24,slotLabelInterval:void 0,slotLabelFormat:{hour:"numeric",minute:"2-digit"},slotMaxTime:"24:00:00",slotMinTime:"00:00:00",snapDuration:void 0}),ce(e.theme,{nowIndicator:"ec-now-indicator",sidebar:"ec-sidebar",slot:"ec-slot"}))}function yo(e){"allDaySlot"in e||(ce(e,{allDayContent:void 0,allDaySlot:!0,slotEventOverlap:!0}),ce(e.theme,{allDay:"ec-all-day"}))}function wi(e){"scrollTime"in e||ce(e,{scrollTime:We,slotDuration:We,slotLabelInterval:t=>t!==void 0?We(t):void 0,slotMaxTime:We,slotMinTime:We,snapDuration:t=>t!==void 0?We(t):void 0})}function wo(e){"resourceLabelContent"in e||(e.filterResourcesWithEvents=!1,e.resourceLabelContent=void 0,e.resourceLabelDidMount=void 0)}function sf(e,t){return()=>{let{viewDates:r,options:{highlightedDates:i,validRange:s}}=e,{slotTimeLimits:o}=t,l=[];return j(()=>{let u=1;for(let f of r)l.push({gridColumn:u,gridRow:1,resource:void 0,start:Se(Z(f),o.min),end:Se(Z(f),o.max),dayStart:f,dayEnd:Ct(Z(f)),disabled:Ln(f,s),highlight:i.some(d=>Qe(d,f))}),++u}),[l]}}function of(e,t){return()=>{let{filteredEvents:r}=e,{grid:i}=t,s=[],o=[],l=[],u=[];return j(()=>{for(let f of r)for(let d of i)gt(f.display)?(o=o.concat(pi(f,d)),f.allDay&&(u=u.concat(In(f,d)))):f.allDay?l=l.concat(In(f,d)):s=s.concat(pi(f,d));nf(s),$s(l)}),{chunks:s,bgChunks:o,allDayChunks:l,allDayBgChunks:u}}}function af(e,t){return()=>{let{iEvents:r}=e,{grid:i}=t,s=[],o=[];for(let[,l]of r)l&&j(()=>{for(let u of i)l.allDay?o=o.concat(In(l,u,!1)):s=s.concat(pi(l,u,!1))});return{iChunks:s,allDayIChunks:o}}}function lf(e){return()=>{let{filteredEvents:t,viewDates:r,options:{flexibleSlotTimeLimits:i,slotMinTime:s,slotMaxTime:o}}=e,l;return j(()=>{l=lo(s,o,i,r,t)}),l}}function uf(e){return()=>{let{options:{slotDuration:t,slotLabelInterval:r}}=e,i;return j(()=>{i=r===void 0?_e(t)<3600?2:1:cl(_e(r)/_e(t))||1}),i}}function ff(e,t){return()=>{let{options:{slotDuration:r}}=e,{intlSlotLabel:i,slotLabelPeriodicity:s,slotTimeLimits:o}=t,l;return j(()=>{l=ao(Lt(Ft()),r,s,o,i)}),l}}function df(e){return()=>{let{options:{slotDuration:t,snapDuration:r}}=e;return r??=t,{duration:r,ratio:_e(r)/_e(t)}}}function bi(){return class{#e;get intlSlotLabel(){return n(this.#e)}set intlSlotLabel(e){b(this.#e,e)}#n;get slotLabelPeriodicity(){return n(this.#n)}set slotLabelPeriodicity(e){b(this.#n,e)}#t;get sidebarWidth(){return n(this.#t)}set sidebarWidth(e){b(this.#t,e,!0)}#r;get snap(){return n(this.#r)}set snap(e){b(this.#r,e)}constructor(e){this.#e=a(pn(e,"slotLabelFormat")),this.#n=a(uf(e)),this.#t=q(0),this.#r=a(df(e))}}}function bo(e){return class extends e{#e;get slotTimeLimits(){return n(this.#e)}set slotTimeLimits(t){b(this.#e,t)}#n;get slots(){return n(this.#n)}set slots(t){b(this.#n,t)}#t;get chunks(){return n(this.#t)}set chunks(t){b(this.#t,t)}#r;get bgChunks(){return n(this.#r)}set bgChunks(t){b(this.#r,t)}#s;get allDayChunks(){return n(this.#s)}set allDayChunks(t){b(this.#s,t)}#i;get allDayBgChunks(){return n(this.#i)}set allDayBgChunks(t){b(this.#i,t)}#o;get iChunks(){return n(this.#o)}set iChunks(t){b(this.#o,t)}#a;get allDayIChunks(){return n(this.#a)}set allDayIChunks(t){b(this.#a,t)}constructor(t){super(t),this.#e=a(lf(t)),this.#n=a(ff(t,this));let r=a(of(t,this)),i=a(()=>n(r).chunks),s=a(()=>n(r).bgChunks),o=a(()=>n(r).allDayChunks),l=a(()=>n(r).allDayBgChunks);this.#t=a(()=>n(i)),this.#r=a(()=>n(s)),this.#s=a(()=>n(o)),this.#i=a(()=>n(l));let u=a(af(t,this)),f=a(()=>n(u).iChunks),d=a(()=>n(u).allDayIChunks);this.#o=a(()=>n(f)),this.#a=a(()=>n(d))}}}let cf=class extends bo(bi()){#e;get grid(){return n(this.#e)}set grid(t){b(this.#e,t)}constructor(t){super(t),this.#e=a(sf(t,this))}};function hf(e){return()=>{let{activeRange:t,filteredEvents:r,resources:i,options:{filterResourcesWithEvents:s},extensions:{viewResources:o}}=e,l=o?o(i):i;return j(()=>{s&&(l=i.filter(u=>r.some(f=>!gt(f.display)&&Rn(f,t.start,t.end,u)))),l.length||(l=ci([{}]))}),l}}function vf(e,t){return()=>{let{viewDates:r,options:{datesAboveResources:i,highlightedDates:s,validRange:o}}=e,{slotTimeLimits:l,viewResources:u}=t,f=[];return j(()=>{let d=1,c=i?[r,u]:[u,r];for(let g of c[0]){let h=[];for(let v of c[1]){let p=i?g:v,_=i?v:g;h.push({gridColumn:d,gridRow:1,resource:_,start:Se(Z(p),l.min),end:Se(Z(p),l.max),dayStart:p,dayEnd:Ct(Z(p)),disabled:Ln(p,o),highlight:s.some(m=>Qe(m,p))}),++d}f.push(h)}}),f}}function ko(e){return class extends e{#e;get viewResources(){return n(this.#e)}set viewResources(t){b(this.#e,t)}constructor(t){super(t),this.#e=a(hf(t))}}}let gf=class extends ko(bo(bi())){#e;get grid(){return n(this.#e)}set grid(t){b(this.#e,t)}constructor(t){super(t),this.#e=a(vf(t,this))}};var mf=$("<span></span>");function ki(e,t){ye(t,!0);let r=De(t,"date",3,void 0),i=De(t,"setLabel",3,void 0),s=a(()=>re("state")),o=a(()=>n(s).intlDayHeaderAL),l=a(()=>n(s).options.resourceLabelContent),u=a(()=>n(s).options.resourceLabelDidMount),f=q(void 0),d=a(()=>n(l)?ke(n(l))?n(l)({resource:t.resource,date:r()?Ve(r()):void 0}):n(l):t.resource.title),c=q(void 0);Xe(()=>{n(d),j(()=>{r()?b(c,n(o).format(r())+", "+n(f).innerText):i()&&(b(c,void 0),i()(n(f).innerText))})}),qn(()=>{ke(n(u))&&n(u)({resource:t.resource,date:r()?Ve(r()):void 0,el:n(f)})});var g=mf();it(g,h=>b(f,h),()=>n(f)),Oe(g,()=>Je(n(d))),ae(()=>Pe(g,"aria-label",n(c))),S(e,g),we()}function Co(e,t){ye(t,!0);let r=De(t,"allDay",3,!1),i=a(()=>re("state")),s=a(()=>n(i).options.slotHeight),o=a(()=>re("view-state")),l=a(()=>n(o).snap),u=a(()=>t.day.dayStart),f=a(()=>t.day.start),d=a(()=>t.day.resource),c=a(()=>t.day.disabled),g=a(()=>t.day.highlight),h=q(void 0);function v(p,_){if(r())return n(u);{let m=sn(n(h)),y=m.height/n(h).offsetHeight;return Se(Z(n(f)),n(l).duration,ni((_-m.top)/(n(s)*n(l).ratio*y)))}}wr(e,{get date(){return n(u)},get allDay(){return r()},get resource(){return n(d)},dateFromPoint:v,get disabled(){return n(c)},get highlight(){return n(g)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return n(h)},set el(p){b(h,p,!0)}}),we()}function Ci(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).options.slotEventOverlap),s=a(()=>n(r).options.slotDuration),o=a(()=>n(r).options.slotHeight),l=a(()=>u=>{let f=_e(n(s)),d=t.chunk.top/f*n(o),c=t.chunk.height/f*n(o)||n(o),g=t.chunk.maxHeight/f*n(o);u["grid-column"]=t.chunk.gridColumn,u["inset-block-start"]=`${d}px`,u["min-block-size"]=`${c}px`,u["block-size"]=`${c}px`,u["max-block-size"]=`${g}px`;let h="100% - var(--ec-event-col-gap)";if(t.chunk.group){let v=t.chunk.group.columns.length;u["z-index"]=`${t.chunk.groupColumn+1}`,u["inset-inline-start"]=`calc((${h}) / ${v} * ${t.chunk.groupColumn})`,u["inline-size"]=`calc((${h}) / ${v} * ${n(i)?.5*(1+v-t.chunk.groupColumn):1})`}return u});kr(e,{get chunk(){return t.chunk},get styles(){return n(l)},axis:"y"}),we()}function Di(e,t){ye(t,!0);let r=q(void 0),i=q(0),s=a(()=>t.chunk.event),o=a(()=>f=>(f["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,(n(i)||n(s)._margin)&&(f["margin-block-start"]=`${n(s)._margin??n(i)}px`),f));function l(){b(i,eo(t.chunk,mn(n(r))),!0)}var u={reposition:l};return kr(e,{get chunk(){return t.chunk},get styles(){return n(o)},axis:"x",get forceMargin(){return n(i)},get el(){return n(r)},set el(f){b(r,f,!0)}}),we(u)}var pf=$("<div></div>");function Er(e,t){ye(t,!0);let r=De(t,"span",3,1),i=a(()=>re("state")),s=a(()=>n(i).mainEl),o=a(()=>n(i).now),l=a(()=>n(i).today),u=a(()=>n(i).options.slotDuration),f=a(()=>n(i).options.slotHeight),d=a(()=>n(i).options.theme),c=a(()=>re("view-state")),g=a(()=>n(c).sidebarWidth),h=a(()=>{for(let w of t.days)if(Qe(w.dayStart,n(l)))return w;return{}}),v=a(()=>n(h).gridColumn),p=a(()=>n(h).start),_=a(()=>n(h).end),m=a(()=>{if(n(o)<n(p)||n(o)>n(_))return null;let w=_e(n(u));return(n(o)-n(p))/1e3/w*n(f)}),y=a(()=>({root:n(s),rootMargin:gn()?`0px -${n(g)+5.5}px 0px 0px`:`0px 0px 0px -${n(g)+5.5}px`,threshold:0}));function E(w,k){w.classList.toggle(n(d).hidden,!k.isIntersecting)}var T=ue(),C=Q(T);{var D=w=>{var k=pf();let M;Oe(k,()=>zs(E,n(y))),ae(()=>{O(k,1,n(d).nowIndicator),M=It(k,"",M,{"grid-column":`${n(v)+1} / span ${r()??""}`,"inset-block-start":`${n(m)??""}px`})}),S(w,k)};de(C,w=>{n(v)&&n(m)!==null&&w(D)})}S(e,T),we()}var _f=$('<div><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div>'),yf=$("<div><time></time></div>"),wf=$('<section><header><aside></aside> <div role="row"><!></div> <!></header> <div role="rowgroup"><aside aria-hidden="true"></aside> <div role="row"></div> <div><!> <!> <!></div></div> <!></section>');function Do(e,t){ye(t,!0);let r=De(t,"viewState",7),i=re("state");r()||r(new cf(i)),Fn("view-state",r());let s=a(()=>i.mainEl),o=a(()=>i.viewDates),l=a(()=>i.options.allDayContent),u=a(()=>i.options.allDaySlot),f=a(()=>i.options.columnWidth),d=a(()=>i.options.nowIndicator),c=a(()=>i.options.scrollTime),g=a(()=>i.options.slotHeight),h=a(()=>i.options.slotDuration),v=a(()=>i.options.theme),p=a(()=>r().allDayChunks),_=a(()=>r().allDayBgChunks),m=a(()=>r().allDayIChunks),y=a(()=>r().bgChunks),E=a(()=>r().chunks),T=a(()=>r().iChunks),C=a(()=>r().grid),D=a(()=>r().sidebarWidth),w=a(()=>r().slots),k=a(()=>r().slotLabelPeriodicity),M=a(()=>r().slotTimeLimits),Y=q(0),R=a(()=>rf(n(l)));Xe(()=>{n(c),kt(n(o))||hn().then(te)});function te(){n(s).scrollTop=((_e(n(c))-_e(n(M).min))/_e(n(h))-.5)*n(g)}let he=[];function be(){ui(he,n(p))}Xe(be);var ie=ue(),X=Q(ie);{var U=P=>{var W=wf();let H;var B=fe(W),V=fe(B),oe=se(V,2),x=fe(oe);{var N=F=>{var G=ue(),ge=Q(G);Xt(ge,()=>t.header),S(F,G)},L=F=>{var G=ue(),ge=Q(G);le(ge,17,()=>n(C)[0],Ce,(me,ne,Ie)=>{let Be=()=>n(ne).dayStart,ot=()=>n(ne).disabled,Ae=()=>n(ne).highlight;jn(me,{get date(){return Be()},colIndex:1+Ie,get disabled(){return ot()},get highlight(){return Ae()},children:(xe,at)=>{br(xe,{get date(){return Be()}})},$$slots:{default:!0}})}),S(F,G)};de(x,F=>{t.header?F(N):F(L,!1)})}var K=se(oe,2);{var tt=F=>{var G=_f(),ge=fe(G);Oe(ge,()=>Je(n(R)));var me=se(ge,2);le(me,21,()=>n(C),Ce,(Ae,xe,at)=>{var Ue=ue(),pt=Q(Ue);le(pt,17,()=>n(xe),Ce,(Pn,xi,Si)=>{{let Ri=a(()=>at+1===Te(n(C))&&Si+1===Te(n(xe)));Co(Pn,{get day(){return n(xi)},allDay:!0,get noIeb(){return n(Ri)}})}}),S(Ae,Ue)});var ne=se(me,2),Ie=fe(ne);le(Ie,19,()=>n(p),Ae=>Ae.id,(Ae,xe,at)=>{it(Di(Ae,{get chunk(){return n(xe)}}),(Ue,pt)=>he[pt]=Ue,Ue=>he?.[Ue],()=>[n(at)])});var Be=se(Ie,2);le(Be,17,()=>n(_),Ae=>Ae.id,(Ae,xe)=>{Di(Ae,{get chunk(){return n(xe)}})});var ot=se(Be,2);le(ot,17,()=>n(m),Ce,(Ae,xe)=>{Di(Ae,{get chunk(){return n(xe)}})}),ae(()=>{O(G,1,n(v).allDay),O(ge,1,n(v).sidebar),O(me,1,n(v).grid),O(ne,1,n(v).events)}),S(F,G)};de(K,F=>{n(u)&&F(tt)})}var Ne=se(B,2),Dt=fe(Ne);le(Dt,21,()=>n(w),Ce,(F,G,ge)=>{var me=yf();let ne;var Ie=fe(me);Oe(Ie,()=>Je(n(G)[1])),ae(()=>{O(me,1,Ot([n(v).slot,!ge&&n(v).hidden])),ne=It(me,"",ne,{"--ec-slot-label-periodicity":n(G)[2]}),Pe(Ie,"datetime",n(G)[0])}),S(F,me)});var Me=se(Dt,2);le(Me,21,()=>n(C),Ce,(F,G,ge)=>{var me=ue(),ne=Q(me);le(ne,17,()=>n(G),Ce,(Ie,Be,ot)=>{{let Ae=a(()=>ge+1===Te(n(C))&&ot+1===Te(n(G)));Co(Ie,{get day(){return n(Be)},get noIeb(){return n(Ae)},noBeb:!0})}}),S(F,me)});var Fe=se(Me,2),mt=fe(Fe);le(mt,17,()=>n(E),F=>F.id,(F,G)=>{Ci(F,{get chunk(){return n(G)}})});var Ht=se(mt,2);le(Ht,17,()=>n(y),F=>F.id,(F,G)=>{Ci(F,{get chunk(){return n(G)}})});var z=se(Ht,2);le(z,17,()=>n(T),Ce,(F,G)=>{Ci(F,{get chunk(){return n(G)}})});var J=se(Ne,2);{var Re=F=>{var G=ue(),ge=Q(G);{var me=Ie=>{var Be=ue(),ot=Q(Be);Xt(ot,()=>t.nowIndicator),S(Ie,Be)},ne=Ie=>{Er(Ie,{get days(){return n(C)[0]}})};de(ge,Ie=>{t.nowIndicator?Ie(me):Ie(ne,!1)})}S(F,G)};de(J,F=>{n(d)&&F(Re)})}it(W,F=>i.mainEl=F,()=>i?.mainEl),Oe(W,()=>ei(be)),ae(F=>{O(W,1,n(v).main),H=It(W,"",H,F),O(B,1,n(v).header),O(V,1,n(v).sidebar),O(oe,1,n(v).grid),O(Ne,1,n(v).body),O(Dt,1,n(v).sidebar),O(Me,1,n(v).grid),O(Fe,1,n(v).events)},[()=>({"--ec-grid-cols":Te(n(C))*Te(n(C)[0]),"--ec-col-group-span":Te(n(C)[0]),"--ec-col-width":n(f)??"minmax(0, 1fr)","--ec-slot-label-periodicity":n(k),"--ec-slot-height":`${n(g)??""}px`,"--ec-header-height":`${n(Y)??""}px`,"--ec-sidebar-width":`${n(D)??""}px`})]),dr(V,"offsetWidth",F=>r().sidebarWidth=F),dr(B,"offsetHeight",F=>b(Y,F)),S(P,W)};de(X,P=>{!kt(n(C))&&!kt(n(C)[0])&&P(U)})}S(e,ie),we()}var bf=$("<!> <!>",1);function kf(e,t){ye(t,!0);let r=re("state"),i=new gf(r),s=a(()=>r.today),o=a(()=>r.mainEl),l=a(()=>r.viewDates),u=a(()=>r.options.scrollTime),f=a(()=>r.options.datesAboveResources),d=a(()=>r.options.theme),c=a(()=>i.grid),g=a(()=>i.sidebarWidth),h=qe([]);Xe(()=>{n(f)&&(n(l),n(u),hn().then(v))});function v(){if(n(s)>=n(l)[0]&&n(s)<=n(l).at(-1))for(let p of n(c)){let _=p[0];if(Qe(_.dayStart,n(s))){n(o).scrollLeft=(n(o).scrollWidth-n(g))/(Te(n(c))*Te(p))*(_.gridColumn-1)*(gn()?-1:1);break}}}Do(e,{get viewState(){return i},header:m=>{var y=bf(),E=Q(y);le(E,17,()=>n(c),Ce,(D,w,k)=>{const M=a(()=>{const{dayStart:Y,resource:R,disabled:te,highlight:he}=n(w)[0];return{date:Y,resource:R,disabled:te,highlight:he}});{let Y=a(()=>Te(n(c)[0])>1?n(d).colGroup:void 0),R=a(()=>Te(n(w))),te=a(()=>1+k*Te(n(w))),he=a(()=>n(f)&&n(M).disabled),be=a(()=>n(f)&&n(M).highlight);jn(D,{get date(){return n(M).date},get className(){return n(Y)},get weekday(){return n(f)},get colSpan(){return n(R)},get colIndex(){return n(te)},get disabled(){return n(he)},get highlight(){return n(be)},children:(ie,X)=>{var U=ue(),P=Q(U);{var W=B=>{br(B,{get date(){return n(M).date}})},H=B=>{ki(B,{get resource(){return n(M).resource},setLabel:V=>h[k]=V+", "})};de(P,B=>{n(f)?B(W):B(H,!1)})}S(ie,U)},$$slots:{default:!0}})}});var T=se(E,2);{var C=D=>{var w=ue(),k=Q(w);le(k,17,()=>n(c),Ce,(M,Y,R)=>{var te=ue(),he=Q(te);le(he,17,()=>n(Y),Ce,(be,ie,X)=>{const U=a(()=>{const{dayStart:P,resource:W,disabled:H,highlight:B}=n(ie);return{date:P,resource:W,disabled:H,highlight:B}});{let P=a(()=>1+X+R*Te(n(Y)));jn(be,{get date(){return n(U).date},get colIndex(){return n(P)},get disabled(){return n(U).disabled},get highlight(){return n(U).highlight},children:(W,H)=>{var B=ue(),V=Q(B);{var oe=N=>{ki(N,{get resource(){return n(U).resource},get date(){return n(U).date}})},x=N=>{br(N,{get date(){return n(U).date},get alPrefix(){return h[R]}})};de(V,N=>{n(f)?N(oe):N(x,!1)})}S(W,B)},$$slots:{default:!0}})}}),S(M,te)}),S(D,w)};de(T,D=>{Te(n(c)[0])>1&&D(C)})}S(m,y)},nowIndicator:m=>{var y=ue(),E=Q(y);{var T=D=>{{let w=a(()=>n(c).flat()),k=a(()=>Te(n(c)[0]));Er(D,{get days(){return n(w)},get span(){return n(k)}})}},C=D=>{var w=ue(),k=Q(w);{var M=R=>{var te=ue(),he=Q(te);le(he,17,()=>n(c),Ce,(be,ie)=>{Er(be,{get days(){return n(ie)}})}),S(R,te)},Y=R=>{{let te=a(()=>n(c).flat()),he=a(()=>Te(n(c)));Er(R,{get days(){return n(te)},get span(){return n(he)}})}};de(k,R=>{Te(n(c)[0])>1?R(M):R(Y,!1)})}S(D,w)};de(E,D=>{n(f)?D(T):D(C,!1)})}S(m,y)},$$slots:{header:!0,nowIndicator:!0}}),we()}const Cf={createOptions(e){yo(e),yi(e),wo(e),ce(e,{datesAboveResources:!1,view:"resourceTimeGridWeek"}),ce(e.buttonText,{resourceTimeGridDay:"resources",resourceTimeGridWeek:"resources"}),ce(e.theme,{colGroup:"ec-col-group"}),ce(e.views,{resourceTimeGridDay:{buttonText:Jn,component:Eo,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:st("ec-resource ec-time-grid ec-day-view")},resourceTimeGridWeek:{buttonText:Qn,component:Eo,duration:{weeks:1},theme:st("ec-resource ec-time-grid ec-week-view")}})},createParsers(e){wi(e)}};function Eo(e){return _i(e),kf}function Ei(e,t,r,i=!0){let s=[],o,l,u,f,d,c,g=0;for(let{gridColumn:h,gridRow:v,resource:p,dayStart:_,dayEnd:m,start:y,end:E,disabled:T}of t)T||(r?Rn(e,_,m,p)&&(s.length||(o=_,u=h,f=v,d=p),s.push(_),l=E):Rn(e,y,E,p)&&(s.length||(o=y,u=h,f=v,d=p,c=ht(e.start-y,0)/1e3),s.push(_),l=E,g+=(Nt(E,e.end)-ht(y,e.start))/1e3));if(s.length){let h=Zn(e,o,l);return ce(h,{gridColumn:u,gridRow:f,resource:d,dates:s,left:c,width:g}),i&&fi(h),[h]}return[]}function Df(e){let t={};for(let r of e){let{gridColumn:i,gridRow:s}=r;for(let l=0;l<r.dates.length;++l){let u=`${s}_${i+l}`;t[u]?t[u].push(r):t[u]=[r]}let o=`${s}_${i}`;r.day=t[o]}}function Ef(e,t,r){let i=1,s=i+t,o=e.day;o.sort((l,u)=>(l.top??Number.POSITIVE_INFINITY)-(u.top??Number.POSITIVE_INFINITY));for(let l of o)if(!(l===e||!("top"in l))&&(r||e.start<l.end&&e.end>l.start)&&i<l.bottom&&s>l.top){let u=l.bottom-i+1;i+=u,s+=u}return ce(e,{top:i,bottom:s}),i}function Tf(e,t){return e[t.getTime()]??{min:We(0),max:We("24:00:00")}}function xf(e,t){return()=>{let{viewDates:r,options:{highlightedDates:i,validRange:s}}=e,{dayTimeLimits:o,viewResources:l}=t,u=[];return j(()=>{let f=1;for(let d of l){let c=[],g=1;for(let h of r){let v=o[h.getTime()];c.push({gridColumn:g,gridRow:f,resource:d,start:Se(Z(h),v.min),end:Se(Z(h),v.max),dayStart:h,dayEnd:Ct(Z(h)),disabled:Ln(h,s),highlight:i.some(p=>Qe(p,h))}),++g}u.push(c),++f}}),u}}function Sf(e,t){return()=>{let{filteredEvents:r}=e,{grid:i,monthView:s}=t,o=[],l=[];return j(()=>{for(let u of r)for(let f of i)gt(u.display)?(!s||u.allDay)&&(l=l.concat(Ei(u,f,s))):o=o.concat(Ei(u,f,s));Df(o)}),{chunks:o,bgChunks:l}}}function Rf(e,t){return()=>{let{iEvents:r}=e,{grid:i,monthView:s}=t,o=[];for(let[,l]of r)l&&j(()=>{for(let u of i)o=o.concat(Ei(l,u,s,!1))});return o}}function If(e){return()=>{let{filteredEvents:t,viewDates:r,options:{flexibleSlotTimeLimits:i,slotMinTime:s,slotMaxTime:o}}=e,l={};return j(()=>{for(let u of r)l[u.getTime()]=lo(s,o,i,[u],t)}),l}}function Lf(e,t){return()=>{let{viewDates:r,options:{slotDuration:i}}=e,{dayTimeLimits:s,intlSlotLabel:o,slotLabelPeriodicity:l}=t,u={};return j(()=>{for(let f of r){let d=f.getTime();u[d]=d in s?ao(f,i,l,s[d],o):[]}}),u}}function Pf(e){return()=>{let{resources:t}=e,r;return j(()=>{r=t.some(i=>Kt(i).children.length)}),r}}function Mf(e){return()=>{let{options:{slotDuration:t}}=e,r;return j(()=>{r=!_e(t)}),r}}class Af extends ko(bi()){#e;get dayTimeLimits(){return n(this.#e)}set dayTimeLimits(t){b(this.#e,t)}#n;get daySlots(){return n(this.#n)}set daySlots(t){b(this.#n,t)}#t;get grid(){return n(this.#t)}set grid(t){b(this.#t,t)}#r;get monthView(){return n(this.#r)}set monthView(t){b(this.#r,t)}#s;get chunks(){return n(this.#s)}set chunks(t){b(this.#s,t)}#i;get bgChunks(){return n(this.#i)}set bgChunks(t){b(this.#i,t)}#o;get iChunks(){return n(this.#o)}set iChunks(t){b(this.#o,t)}#a;get nestedResources(){return n(this.#a)}set nestedResources(t){b(this.#a,t)}constructor(t){super(t),this.#e=a(If(t)),this.#n=a(Lf(t,this)),this.#t=a(xf(t,this)),this.#r=a(Mf(t));let r=a(Sf(t,this)),i=a(()=>n(r).chunks),s=a(()=>n(r).bgChunks);this.#s=a(()=>n(i)),this.#i=a(()=>n(s)),this.#o=a(Rf(t,this)),this.#a=a(Pf(t))}}function Of(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).options.slotWidth),s=a(()=>re("view-state")),o=a(()=>n(s).monthView),l=a(()=>n(s).snap),u=a(()=>t.day.dayStart),f=a(()=>t.day.start),d=a(()=>t.day.resource),c=a(()=>t.day.disabled),g=a(()=>t.day.highlight),h=q(void 0);function v(p,_){if(n(o))return n(u);{let m=sn(n(h)),y=m.width/n(h).offsetWidth;return Se(Z(n(f)),n(l).duration,ni((gn()?m.right-p:p-m.left)/(n(i)*n(l).ratio*y)))}}wr(e,{get allDay(){return n(o)},get date(){return n(u)},get resource(){return n(d)},dateFromPoint:v,get disabled(){return n(c)},get highlight(){return n(g)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return n(h)},set el(p){b(h,p,!0)}}),we()}function Ti(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).options.slotDuration),s=a(()=>n(r).options.slotWidth),o=a(()=>re("view-state")),l=a(()=>n(o).monthView),u=q(void 0),f=q(1),d=a(()=>t.chunk.event),c=a(()=>v=>{if(v["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,v["grid-row"]=t.chunk.gridRow,!n(l)){let _=t.chunk.left/_e(n(i))*n(s);v["inset-inline-start"]=`${_}px`,v["inline-size"]=`${t.chunk.width/_e(n(i))*n(s)}px`}let p=n(f);if(n(d)._margin){let[_,m]=n(d)._margin;t.chunk.gridRow===m&&(p=_)}return v["margin-block-start"]=`${p}px`,v});function g(){b(f,Ef(t.chunk,mn(n(u)),n(l)),!0)}var h={reposition:g};{let v=a(()=>[n(f),t.chunk.gridRow]);kr(e,{get chunk(){return t.chunk},get styles(){return n(c)},axis:"x",get forceMargin(){return n(v)},get el(){return n(u)},set el(p){b(u,p,!0)}})}return we(h)}var Nf=$("<span></span>"),Ff=$("<button><!></button>"),Hf=$("<!> <span><!></span>",1);function Wf(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).resources),s=a(()=>n(r).options.theme),o=q({}),l=q(!0);fn(()=>{b(o,Kt(t.resource)),b(l,n(o).expanded,!0)});function u(){b(l,!n(l)),n(o).expanded=n(l),f(n(o).children,n(l)),n(i).length=n(i).length}function f(p,_){for(let m of p){let y=Kt(m);y.hidden=!_,y.expanded&&f(y.children,_)}}var d=Hf(),c=Q(d);le(c,17,()=>Array(n(o).level),Ce,(p,_)=>{var m=Nf();ae(()=>O(m,1,n(s).expander)),S(p,m)});var g=se(c,2),h=fe(g);{var v=p=>{var _=Ff();_.__click=u;var m=fe(_);{var y=T=>{var C=Ms("−");S(T,C)},E=T=>{var C=Ms("+");S(T,C)};de(m,T=>{n(l)?T(y):T(E,!1)})}ae(()=>O(_,1,n(s).button)),S(p,_)};de(h,p=>{n(o).children?.length&&p(v)})}ae(()=>O(g,1,n(s).expander)),S(e,d),we()}nn(["click"]);var Uf=$("<div></div>");function zf(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).mainEl),s=a(()=>n(r).now),o=a(()=>n(r).today),l=a(()=>n(r).options.slotDuration),u=a(()=>n(r).options.slotWidth),f=a(()=>n(r).options.theme),d=a(()=>re("view-state")),c=a(()=>n(d).grid),g=a(()=>n(d).sidebarWidth),h=a(()=>{for(let w of n(c)[0])if(Qe(w.dayStart,n(o)))return w;return{}}),v=a(()=>n(h).gridColumn),p=a(()=>n(h).start),_=a(()=>n(h).end),m=a(()=>{if(n(s)<n(p)||n(s)>n(_))return null;let w=_e(n(l));return(n(s)-n(p))/1e3/w*n(u)}),y=a(()=>({root:n(i),rootMargin:gn()?`0px -${n(g)+1}px 0px 0px`:`0px 0px 0px -${n(g)+1}px`,threshold:0}));function E(w,k){w.classList.toggle(n(f).hidden,!k.isIntersecting)}var T=ue(),C=Q(T);{var D=w=>{var k=Uf();let M;Oe(k,()=>zs(E,n(y))),ae(()=>{O(k,1,n(f).nowIndicator),M=It(k,"",M,{"grid-column":n(v)+1,"grid-row":`2 / span ${n(c).length??""}`,"inset-inline-start":`${n(m)??""}px`})}),S(w,k)};de(C,w=>{n(v)&&n(m)!==null&&w(D)})}S(e,T),we()}var Vf=$("<div><time></time></div>"),Bf=$('<div role="rowheader"><!> <!></div>'),Gf=$('<section><header><aside></aside> <div role="row"><!> <!></div></header> <div role="rowgroup"><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div> <!></section>');function Yf(e,t){ye(t,!0);let r=re("state"),i=new Af(r);Fn("view-state",i);let s=a(()=>r.mainEl),o=a(()=>r.today),l=a(()=>r.viewDates),u=a(()=>r.options.columnWidth),f=a(()=>r.options.nowIndicator),d=a(()=>r.options.scrollTime),c=a(()=>r.options.slotDuration),g=a(()=>r.options.slotHeight),h=a(()=>r.options.slotWidth),v=a(()=>r.options.theme),p=a(()=>i.chunks),_=a(()=>i.bgChunks),m=a(()=>i.iChunks),y=a(()=>i.daySlots),E=a(()=>i.dayTimeLimits),T=a(()=>i.grid),C=a(()=>i.monthView),D=a(()=>i.nestedResources),w=a(()=>i.sidebarWidth),k=a(()=>i.slotLabelPeriodicity),M=a(()=>i.viewResources),Y=q(0);Xe(()=>{n(d),kt(n(l))||hn().then(R)});function R(){let U=0,P=n(o)<n(l)[0]||n(o)>n(l).at(-1);if(n(C)){if(!P){let W=n(T)[0];for(let H of W)if(Qe(H.dayStart,n(o))){n(s).scrollLeft=(n(s).scrollWidth-n(w))/Te(W)*(H.gridColumn-1)*(gn()?-1:1);break}}}else{for(let W of n(l)){let H=Tf(n(E),W);if(P||Qe(W,n(o))){U+=ht(Nt(_e(n(d)),_e(H.max))-_e(H.min),0);break}else U+=_e(H.max)-_e(H.min)}n(s).scrollLeft=U/_e(n(c))*n(h)*(gn()?-1:1)}}let te=[];function he(){ui(te,n(p))}Xe(he);var be=ue(),ie=Q(be);{var X=U=>{var P=Gf();let W;var H=fe(P),B=fe(H),V=se(B,2),oe=fe(V);le(oe,17,()=>n(T)[0],Ce,(z,J,Re)=>{let F=()=>n(J).dayStart,G=()=>n(J).disabled,ge=()=>n(J).highlight;jn(z,{get date(){return F()},colIndex:1+Re,get disabled(){return G()},get highlight(){return ge()},children:(me,ne)=>{br(me,{get date(){return F()}})},$$slots:{default:!0}})});var x=se(oe,2);{var N=z=>{var J=ue(),Re=Q(J);le(Re,17,()=>n(T)[0],Ce,(F,G)=>{let ge=()=>n(G).dayStart,me=()=>n(G).disabled,ne=()=>n(G).highlight;jn(F,{get date(){return ge()},get className(){return n(v).slots},get disabled(){return me()},get highlight(){return ne()},ariaHidden:!0,children:(Ie,Be)=>{var ot=ue(),Ae=Q(ot);le(Ae,17,()=>n(y)[ge().getTime()],Ce,(xe,at)=>{var Ue=Vf();let pt;var Pn=fe(Ue);Oe(Pn,()=>Je(n(at)[1])),ae(()=>{O(Ue,1,n(v).slot),pt=It(Ue,"",pt,{"--ec-slot-label-periodicity":n(at)[2]}),Pe(Pn,"datetime",n(at)[0])}),S(xe,Ue)}),S(Ie,ot)},$$slots:{default:!0}})}),S(z,J)};de(x,z=>{n(C)||z(N)})}var L=se(H,2),K=fe(L);le(K,21,()=>n(M),Ce,(z,J)=>{var Re=Bf(),F=fe(Re);{var G=me=>{Wf(me,{get resource(){return n(J)}})};de(F,me=>{n(D)&&me(G)})}var ge=se(F,2);ki(ge,{get resource(){return n(J)}}),ae(()=>O(Re,1,n(v).rowHead)),S(z,Re)});var tt=se(K,2);le(tt,21,()=>n(T),Ce,(z,J,Re)=>{var F=ue(),G=Q(F);le(G,17,()=>n(J),Ce,(ge,me,ne)=>{{let Ie=a(()=>ne+1===Te(n(J))),Be=a(()=>Re+1===Te(n(T)));Of(ge,{get day(){return n(me)},get noIeb(){return n(Ie)},get noBeb(){return n(Be)}})}}),S(z,F)});var Ne=se(tt,2),Dt=fe(Ne);le(Dt,19,()=>n(p),z=>z.id,(z,J,Re)=>{it(Ti(z,{get chunk(){return n(J)}}),(F,G)=>te[G]=F,F=>te?.[F],()=>[n(Re)])});var Me=se(Dt,2);le(Me,17,()=>n(_),z=>z.id,(z,J)=>{Ti(z,{get chunk(){return n(J)}})});var Fe=se(Me,2);le(Fe,17,()=>n(m),Ce,(z,J)=>{Ti(z,{get chunk(){return n(J)}})});var mt=se(L,2);{var Ht=z=>{zf(z,{})};de(mt,z=>{n(f)&&!n(C)&&z(Ht)})}it(P,z=>r.mainEl=z,()=>r?.mainEl),Oe(P,()=>ei(he)),ae(z=>{O(P,1,n(v).main),W=It(P,"",W,z),O(H,1,n(v).header),O(B,1,n(v).sidebar),O(V,1,n(v).grid),O(L,1,n(v).body),O(K,1,n(v).sidebar),O(tt,1,n(v).grid),O(Ne,1,n(v).events)},[()=>({"--ec-grid-cols":Te(n(T)[0]),"--ec-grid-rows":`${Te(n(T))>1?`repeat(${Te(n(T))-1}, auto)`:""} 1fr`,"--ec-col-width":n(u)??"minmax(4em, 1fr)","--ec-slot-label-periodicity":n(k),"--ec-slot-height":`${n(g)??""}px`,"--ec-slot-width":`${n(h)??""}px`,"--ec-header-height":`${n(Y)??""}px`,"--ec-sidebar-width":`${n(w)??""}px`})]),dr(B,"offsetWidth",z=>i.sidebarWidth=z),dr(H,"offsetHeight",z=>b(Y,z)),S(U,P)};de(ie,U=>{!kt(n(T))&&!kt(n(T)[0])&&U(X)})}S(e,be),we()}const qf={createOptions(e){yi(e),wo(e),e.slotWidth=32,e.buttonText.resourceTimelineDay="timeline",e.buttonText.resourceTimelineWeek="timeline",e.buttonText.resourceTimelineMonth="timeline",e.theme.expander="ec-expander",e.theme.rowHead="ec-row-head",e.theme.slots="ec-slots",e.view="resourceTimelineWeek",e.views.resourceTimelineDay={buttonText:Jn,component:To,displayEventEnd:!1,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:st("ec-resource ec-timeline ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},e.views.resourceTimelineWeek={buttonText:Qn,component:To,displayEventEnd:!1,duration:{weeks:1},theme:st("ec-resource ec-timeline ec-week-view")},e.views.resourceTimelineMonth={buttonText:di,component:xo,displayEventEnd:!1,dayHeaderFormat:{weekday:"short",day:"numeric"},duration:{months:1},slotDuration:{days:1},theme:st("ec-resource ec-timeline ec-month-view"),titleFormat:{year:"numeric",month:"long"}}},createParsers(e){wi(e)}};function To(e){return _i(e),xo(e)}function xo(e){return e.features=["timeline"],e.extensions.viewResources=t=>t.filter(r=>!Kt(r).hidden),Yf}const Xf={createOptions(e){yi(e),yo(e),ce(e.buttonText,{timeGridDay:"day",timeGridWeek:"week"}),ce(e,{view:"timeGridWeek"}),ce(e.views,{timeGridDay:{buttonText:Jn,component:So,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:st("ec-time-grid ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},timeGridWeek:{buttonText:Qn,component:So,duration:{weeks:1},theme:st("ec-time-grid ec-week-view")}})},createParsers(e){wi(e)}};function So(e){return _i(e),Do}function Kf(e,t,r){return Ga(du,{target:e,props:{plugins:t,options:r}})}function Zf(e){return qa(e)}function Jf(e,t){return Kf(e,[Lu,qu,tf,Cf,qf,Xf],t)}return tr.create=Jf,tr.destroy=Zf,Object.defineProperty(tr,Symbol.toStringTag,{value:"Module"}),tr})({});
5
+ var EventCalendar=(function(tr){"use strict";var Ai=Array.isArray,Fo=Array.prototype.indexOf,yn=Array.prototype.includes,nr=Array.from,Oi=Object.defineProperty,wn=Object.getOwnPropertyDescriptor,Ho=Object.getOwnPropertyDescriptors,Wo=Object.prototype,zo=Array.prototype,Ni=Object.getPrototypeOf,Fi=Object.isExtensible;const Zt=()=>{};function Uo(e){for(var t=0;t<e.length;t++)e[t]()}function Hi(){var e,t,r=new Promise((i,s)=>{e=i,t=s});return{promise:r,resolve:e,reject:t}}function Vo(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const r=[];for(const i of e)if(r.push(i),r.length===t)break;return r}const Ge=2,rr=4,On=8,Rr=1<<24,Ut=16,Et=32,an=64,Ir=128,_t=512,Ue=1024,Ze=2048,Tt=4096,ut=8192,Vt=16384,Lr=32768,Jt=65536,Wi=1<<17,zi=1<<18,bn=1<<19,Ui=1<<20,Bt=1<<25,ln=32768,Pr=1<<21,Mr=1<<22,Qt=1<<23,Nn=Symbol("$state"),Bo=Symbol("legacy props"),Go=Symbol(""),kn=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function Vi(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Yo(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function qo(e,t,r){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Xo(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Ko(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Zo(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Jo(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Qo(){throw new Error("https://svelte.dev/e/get_abort_signal_outside_reaction")}function jo(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function $o(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ea(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ta(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function na(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const ra=1,ia=2,Bi=4,sa=8,oa=16,aa=1,la=4,ua=8,fa=16,da=1,ca=2,Ye=Symbol(),ha="http://www.w3.org/1999/xhtml";function va(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Gi(e){return e===this.v}function ga(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Yi(e){return!ga(e,this.v)}let vd=!1,Je=null;function Cn(e){Je=e}function re(e){return Xi().get(e)}function Fn(e,t){return Xi().set(e,t),t}function ye(e,t=!1,r){Je={p:Je,i:!1,c:null,e:null,s:e,x:null,l:null}}function we(e){var t=Je,r=t.e;if(r!==null){t.e=null;for(var i of r)vs(i)}return e!==void 0&&(t.x=e),t.i=!0,Je=t.p,e??{}}function qi(){return!0}function Xi(e){return Je===null&&Vi(),Je.c??=new Map(ma(Je)||void 0)}function ma(e){let t=e.p;for(;t!==null;){const r=t.c;if(r!==null)return r;t=t.p}return null}let un=[];function Ki(){var e=un;un=[],Uo(e)}function At(e){if(un.length===0&&!Hn){var t=un;queueMicrotask(()=>{t===un&&Ki()})}un.push(e)}function pa(){for(;un.length>0;)Ki()}function Zi(e){var t=Ee;if(t===null)return ve.f|=Qt,e;if((t.f&Lr)===0){if((t.f&Ir)===0)throw e;t.b.error(e)}else Dn(e,t)}function Dn(e,t){for(;t!==null;){if((t.f&Ir)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const _a=-7169;function Fe(e,t){e.f=e.f&_a|t}function Ar(e){(e.f&_t)!==0||e.deps===null?Fe(e,Ue):Fe(e,Tt)}function Ji(e){if(e!==null)for(const t of e)(t.f&Ge)===0||(t.f&ln)===0||(t.f^=ln,Ji(t.deps))}function Qi(e,t,r){(e.f&Ze)!==0?t.add(e):(e.f&Tt)!==0&&r.add(e),Ji(e.deps),Fe(e,Ue)}const ir=new Set;let Le=null,xt=null,rt=[],sr=null,Or=!1,Hn=!1;class jt{committed=!1;current=new Map;previous=new Map;#e=new Set;#n=new Set;#t=0;#r=0;#s=null;#i=new Set;#o=new Set;#a=new Map;is_fork=!1;#l=!1;is_deferred(){return this.is_fork||this.#r>0}skip_effect(t){this.#a.has(t)||this.#a.set(t,{d:[],m:[]})}unskip_effect(t){var r=this.#a.get(t);if(r){this.#a.delete(t);for(var i of r.d)Fe(i,Ze),St(i);for(i of r.m)Fe(i,Tt),St(i)}}process(t){rt=[],this.apply();var r=[],i=[];for(const s of t)this.#u(s,r,i);if(this.is_deferred()){this.#f(i),this.#f(r);for(const[s,o]of this.#a)ns(s,o)}else{for(const s of this.#e)s();this.#e.clear(),this.#t===0&&this.#d(),Le=null,$i(i),$i(r),this.#s?.resolve()}xt=null}#u(t,r,i){t.f^=Ue;for(var s=t.first,o=null;s!==null;){var l=s.f,u=(l&(Et|an))!==0,f=u&&(l&Ue)!==0,d=f||(l&ut)!==0||this.#a.has(s);if(!d&&s.fn!==null){u?s.f^=Ue:o!==null&&(l&(rr|On|Rr))!==0?o.b.defer_effect(s):(l&rr)!==0?r.push(s):Un(s)&&((l&Ut)!==0&&this.#o.add(s),Vn(s));var h=s.first;if(h!==null){s=h;continue}}var g=s.parent;for(s=s.next;s===null&&g!==null;)g===o&&(o=null),s=g.next,g=g.parent}}#f(t){for(var r=0;r<t.length;r+=1)Qi(t[r],this.#i,this.#o)}capture(t,r){r!==Ye&&!this.previous.has(t)&&this.previous.set(t,r),(t.f&Qt)===0&&(this.current.set(t,t.v),xt?.set(t,t.v))}activate(){Le=this,this.apply()}deactivate(){Le===this&&(Le=null,xt=null)}flush(){if(this.activate(),rt.length>0){if(ji(),Le!==null&&Le!==this)return}else this.#t===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#n)t(this);this.#n.clear()}#d(){if(ir.size>1){this.previous.clear();var t=xt,r=!0;for(const s of ir){if(s===this){r=!1;continue}const o=[];for(const[u,f]of this.current){if(s.current.has(u))if(r&&f!==s.current.get(u))s.current.set(u,f);else continue;o.push(u)}if(o.length===0)continue;const l=[...s.current.keys()].filter(u=>!this.current.has(u));if(l.length>0){var i=rt;rt=[];const u=new Set,f=new Map;for(const d of o)es(d,l,u,f);if(rt.length>0){Le=s,s.apply();for(const d of rt)s.#u(d,[],[]);s.deactivate()}rt=i}}Le=null,xt=t}this.committed=!0,ir.delete(this)}increment(t){this.#t+=1,t&&(this.#r+=1)}decrement(t){this.#t-=1,t&&(this.#r-=1),!this.#l&&(this.#l=!0,At(()=>{this.#l=!1,this.is_deferred()?rt.length>0&&this.flush():this.revive()}))}revive(){for(const t of this.#i)this.#o.delete(t),Fe(t,Ze),St(t);for(const t of this.#o)Fe(t,Tt),St(t);this.flush()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#s??=Hi()).promise}static ensure(){if(Le===null){const t=Le=new jt;ir.add(Le),Hn||At(()=>{Le===t&&t.flush()})}return Le}apply(){}}function ya(e){var t=Hn;Hn=!0;try{for(var r;;){if(pa(),rt.length===0&&(Le?.flush(),rt.length===0))return sr=null,r;ji()}}finally{Hn=t}}function ji(){Or=!0;var e=null;try{for(var t=0;rt.length>0;){var r=jt.ensure();if(t++>1e3){var i,s;wa()}r.process(rt),$t.clear()}}finally{rt=[],Or=!1,sr=null}}function wa(){try{Jo()}catch(e){Dn(e,sr)}}let Gt=null;function $i(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var i=e[r++];if((i.f&(Vt|ut))===0&&Un(i)&&(Gt=new Set,Vn(i),i.deps===null&&i.first===null&&i.nodes===null&&(i.teardown===null&&i.ac===null?_s(i):i.fn=null),Gt?.size>0)){$t.clear();for(const s of Gt){if((s.f&(Vt|ut))!==0)continue;const o=[s];let l=s.parent;for(;l!==null;)Gt.has(l)&&(Gt.delete(l),o.push(l)),l=l.parent;for(let u=o.length-1;u>=0;u--){const f=o[u];(f.f&(Vt|ut))===0&&Vn(f)}}Gt.clear()}}Gt=null}}function es(e,t,r,i){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const s of e.reactions){const o=s.f;(o&Ge)!==0?es(s,t,r,i):(o&(Mr|Ut))!==0&&(o&Ze)===0&&ts(s,t,i)&&(Fe(s,Ze),St(s))}}function ts(e,t,r){const i=r.get(e);if(i!==void 0)return i;if(e.deps!==null)for(const s of e.deps){if(yn.call(t,s))return!0;if((s.f&Ge)!==0&&ts(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function St(e){for(var t=sr=e;t.parent!==null;){t=t.parent;var r=t.f;if(Or&&t===Ee&&(r&Ut)!==0&&(r&zi)===0)return;if((r&(an|Et))!==0){if((r&Ue)===0)return;t.f^=Ue}}rt.push(t)}function ns(e,t){if(!((e.f&Et)!==0&&(e.f&Ue)!==0)){(e.f&Ze)!==0?t.d.push(e):(e.f&Tt)!==0&&t.m.push(e),Fe(e,Ue);for(var r=e.first;r!==null;)ns(r,t),r=r.next}}function ba(e){let t=0,r=en(0),i;return()=>{zr()&&(n(r),gs(()=>(t===0&&(i=j(()=>e(()=>Ot(r)))),t+=1,()=>{At(()=>{t-=1,t===0&&(i?.(),i=void 0,Ot(r))})})))}}var ka=Jt|bn|Ir;function Ca(e,t,r){new Da(e,t,r)}class Da{parent;is_pending=!1;#e;#n=null;#t;#r;#s;#i=null;#o=null;#a=null;#l=null;#u=null;#f=0;#d=0;#v=!1;#h=!1;#g=new Set;#m=new Set;#c=null;#w=ba(()=>(this.#c=en(this.#f),()=>{this.#c=null}));constructor(t,r,i){this.#e=t,this.#t=r,this.#r=i,this.parent=Ee.b,this.is_pending=!!this.#t.pending,this.#s=zn(()=>{Ee.b=this;{var s=this.#y();try{this.#i=ft(()=>i(s))}catch(o){this.error(o)}this.#d>0?this.#_():this.is_pending=!1}return()=>{this.#u?.remove()}},ka)}#b(){try{this.#i=ft(()=>this.#r(this.#e))}catch(t){this.error(t)}}#k(){const t=this.#t.pending;t&&(this.#o=ft(()=>t(this.#e)),At(()=>{var r=this.#y();this.#i=this.#p(()=>(jt.ensure(),ft(()=>this.#r(r)))),this.#d>0?this.#_():(dn(this.#o,()=>{this.#o=null}),this.is_pending=!1)}))}#y(){var t=this.#e;return this.is_pending&&(this.#u=Yt(),this.#e.before(this.#u),t=this.#u),t}defer_effect(t){Qi(t,this.#g,this.#m)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#p(t){var r=Ee,i=ve,s=Je;Nt(this.#s),yt(this.#s),Cn(this.#s.ctx);try{return t()}catch(o){return Zi(o),null}finally{Nt(r),yt(i),Cn(s)}}#_(){const t=this.#t.pending;this.#i!==null&&(this.#l=document.createDocumentFragment(),this.#l.append(this.#u),bs(this.#i,this.#l)),this.#o===null&&(this.#o=ft(()=>t(this.#e)))}#C(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#C(t);return}if(this.#d+=t,this.#d===0){this.is_pending=!1;for(const r of this.#g)Fe(r,Ze),St(r);for(const r of this.#m)Fe(r,Tt),St(r);this.#g.clear(),this.#m.clear(),this.#o&&dn(this.#o,()=>{this.#o=null}),this.#l&&(this.#e.before(this.#l),this.#l=null)}}update_pending_count(t){this.#C(t),this.#f+=t,!(!this.#c||this.#v)&&(this.#v=!0,At(()=>{this.#v=!1,this.#c&&En(this.#c,this.#f)}))}get_effect_pending(){return this.#w(),n(this.#c)}error(t){var r=this.#t.onerror;let i=this.#t.failed;if(this.#h||!r&&!i)throw t;this.#i&&(tt(this.#i),this.#i=null),this.#o&&(tt(this.#o),this.#o=null),this.#a&&(tt(this.#a),this.#a=null);var s=!1,o=!1;const l=()=>{if(s){va();return}s=!0,o&&na(),jt.ensure(),this.#f=0,this.#a!==null&&dn(this.#a,()=>{this.#a=null}),this.is_pending=this.has_pending_snippet(),this.#i=this.#p(()=>(this.#h=!1,ft(()=>this.#r(this.#e)))),this.#d>0?this.#_():this.is_pending=!1};At(()=>{try{o=!0,r?.(t,l),o=!1}catch(u){Dn(u,this.#s&&this.#s.parent)}i&&(this.#a=this.#p(()=>{jt.ensure(),this.#h=!0;try{return ft(()=>{i(this.#e,()=>t,()=>l)})}catch(u){return Dn(u,this.#s.parent),null}finally{this.#h=!1}}))})}}function Ea(e,t,r,i){const s=or;var o=e.filter(c=>!c.settled);if(r.length===0&&o.length===0){i(t.map(s));return}var l=Le,u=Ee,f=Ta(),d=o.length===1?o[0].promise:o.length>1?Promise.all(o.map(c=>c.promise)):null;function h(c){f();try{i(c)}catch(v){(u.f&Vt)===0&&Dn(v,u)}l?.deactivate(),Nr()}if(r.length===0){d.then(()=>h(t.map(s)));return}function g(){f(),Promise.all(r.map(c=>xa(c))).then(c=>h([...t.map(s),...c])).catch(c=>Dn(c,u))}d?d.then(g):g()}function Ta(){var e=Ee,t=ve,r=Je,i=Le;return function(o=!0){Nt(e),yt(t),Cn(r),o&&i?.activate()}}function Nr(){Nt(null),yt(null),Cn(null)}function or(e){var t=Ge|Ze,r=ve!==null&&(ve.f&Ge)!==0?ve:null;return Ee!==null&&(Ee.f|=bn),{ctx:Je,deps:null,effects:null,equals:Gi,f:t,fn:e,reactions:null,rv:0,v:Ye,wv:0,parent:r??Ee,ac:null}}function xa(e,t,r){let i=Ee;i===null&&Yo();var s=i.b,o=void 0,l=en(Ye),u=!ve,f=new Map;return Oa(()=>{var d=Hi();o=d.promise;try{Promise.resolve(e()).then(d.resolve,d.reject).then(()=>{h===Le&&h.committed&&h.deactivate(),Nr()})}catch(v){d.reject(v),Nr()}var h=Le;if(u){var g=s.is_rendered();s.update_pending_count(1),h.increment(g),f.get(h)?.reject(kn),f.delete(h),f.set(h,d)}const c=(v,p=void 0)=>{if(h.activate(),p)p!==kn&&(l.f|=Qt,En(l,p));else{(l.f&Qt)!==0&&(l.f^=Qt),En(l,v);for(const[_,m]of f){if(f.delete(_),_===h)break;m.reject(kn)}}u&&(s.update_pending_count(-1),h.decrement(g))};d.promise.then(c,v=>c(null,v||"unknown"))}),Ur(()=>{for(const d of f.values())d.reject(kn)}),new Promise(d=>{function h(g){function c(){g===o?d(l):h(o)}g.then(c,c)}h(o)})}function a(e){const t=or(e);return Cs(t),t}function rs(e){const t=or(e);return t.equals=Yi,t}function is(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)tt(t[r])}}function Sa(e){for(var t=e.parent;t!==null;){if((t.f&Ge)===0)return(t.f&Vt)===0?t:null;t=t.parent}return null}function Fr(e){var t,r=Ee;Nt(Sa(e));try{e.f&=~ln,is(e),t=Ss(e)}finally{Nt(r)}return t}function ss(e){var t=Fr(e);if(!e.equals(t)&&(e.wv=Ts(),(!Le?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){Fe(e,Ue);return}tn||(xt!==null?(zr()||Le?.is_fork)&&xt.set(e,t):Ar(e))}let Hr=new Set;const $t=new Map;let os=!1;function en(e,t){var r={f:0,v:e,reactions:null,equals:Gi,rv:0,wv:0};return r}function q(e,t){const r=en(e);return Cs(r),r}function as(e,t=!1,r=!0){const i=en(e);return t||(i.equals=Yi),i}function b(e,t,r=!1){ve!==null&&(!Lt||(ve.f&Wi)!==0)&&qi()&&(ve.f&(Ge|Ut|Mr|Wi))!==0&&(wt===null||!yn.call(wt,e))&&ta();let i=r?qe(t):t;return En(e,i)}function En(e,t){if(!e.equals(t)){var r=e.v;tn?$t.set(e,t):$t.set(e,r),e.v=t;var i=jt.ensure();if(i.capture(e,r),(e.f&Ge)!==0){const s=e;(e.f&Ze)!==0&&Fr(s),Ar(s)}e.wv=Ts(),ls(e,Ze),Ee!==null&&(Ee.f&Ue)!==0&&(Ee.f&(Et|an))===0&&(bt===null?Wa([e]):bt.push(e)),!i.is_fork&&Hr.size>0&&!os&&Ra()}return t}function Ra(){os=!1;for(const e of Hr)(e.f&Ue)!==0&&Fe(e,Tt),Un(e)&&Vn(e);Hr.clear()}function Ot(e){b(e,e.v+1)}function ls(e,t){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var o=r[s],l=o.f,u=(l&Ze)===0;if(u&&Fe(o,t),(l&Ge)!==0){var f=o;xt?.delete(f),(l&ln)===0&&(l&_t&&(o.f|=ln),ls(f,Tt))}else u&&((l&Ut)!==0&&Gt!==null&&Gt.add(o),St(o))}}function qe(e){if(typeof e!="object"||e===null||Nn in e)return e;const t=Ni(e);if(t!==Wo&&t!==zo)return e;var r=new Map,i=Ai(e),s=q(0),o=qt,l=u=>{if(qt===o)return u();var f=ve,d=qt;yt(null),Es(o);var h=u();return yt(f),Es(d),h};return i&&r.set("length",q(e.length)),new Proxy(e,{defineProperty(u,f,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&$o();var h=r.get(f);return h===void 0?h=l(()=>{var g=q(d.value);return r.set(f,g),g}):b(h,d.value,!0),!0},deleteProperty(u,f){var d=r.get(f);if(d===void 0){if(f in u){const h=l(()=>q(Ye));r.set(f,h),Ot(s)}}else b(d,Ye),Ot(s);return!0},get(u,f,d){if(f===Nn)return e;var h=r.get(f),g=f in u;if(h===void 0&&(!g||wn(u,f)?.writable)&&(h=l(()=>{var v=qe(g?u[f]:Ye),p=q(v);return p}),r.set(f,h)),h!==void 0){var c=n(h);return c===Ye?void 0:c}return Reflect.get(u,f,d)},getOwnPropertyDescriptor(u,f){var d=Reflect.getOwnPropertyDescriptor(u,f);if(d&&"value"in d){var h=r.get(f);h&&(d.value=n(h))}else if(d===void 0){var g=r.get(f),c=g?.v;if(g!==void 0&&c!==Ye)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return d},has(u,f){if(f===Nn)return!0;var d=r.get(f),h=d!==void 0&&d.v!==Ye||Reflect.has(u,f);if(d!==void 0||Ee!==null&&(!h||wn(u,f)?.writable)){d===void 0&&(d=l(()=>{var c=h?qe(u[f]):Ye,v=q(c);return v}),r.set(f,d));var g=n(d);if(g===Ye)return!1}return h},set(u,f,d,h){var g=r.get(f),c=f in u;if(i&&f==="length")for(var v=d;v<g.v;v+=1){var p=r.get(v+"");p!==void 0?b(p,Ye):v in u&&(p=l(()=>q(Ye)),r.set(v+"",p))}if(g===void 0)(!c||wn(u,f)?.writable)&&(g=l(()=>q(void 0)),b(g,qe(d)),r.set(f,g));else{c=g.v!==Ye;var _=l(()=>qe(d));b(g,_)}var m=Reflect.getOwnPropertyDescriptor(u,f);if(m?.set&&m.set.call(h,d),!c){if(i&&typeof f=="string"){var y=r.get("length"),E=Number(f);Number.isInteger(E)&&E>=y.v&&b(y,E+1)}Ot(s)}return!0},ownKeys(u){n(s);var f=Reflect.ownKeys(u).filter(g=>{var c=r.get(g);return c===void 0||c.v!==Ye});for(var[d,h]of r)h.v!==Ye&&!(d in u)&&f.push(d);return f},setPrototypeOf(){ea()}})}var Rt,us,fs,ds;function Ia(){if(Rt===void 0){Rt=window,us=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;fs=wn(t,"firstChild").get,ds=wn(t,"nextSibling").get,Fi(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Fi(r)&&(r.__t=void 0)}}function Yt(e=""){return document.createTextNode(e)}function ar(e){return fs.call(e)}function Wn(e){return ds.call(e)}function de(e,t){return ar(e)}function Q(e,t=!1){{var r=ar(e);return r instanceof Comment&&r.data===""?Wn(r):r}}function se(e,t=1,r=!1){let i=e;for(;t--;)i=Wn(i);return i}function La(e){e.textContent=""}function cs(){return!1}function Pa(e,t){{const r=document.body;e.autofocus=!0,At(()=>{document.activeElement===r&&e.focus()})}}function Wr(e){var t=ve,r=Ee;yt(null),Nt(null);try{return e()}finally{yt(t),Nt(r)}}function hs(e){Ee===null&&(ve===null&&Zo(),Ko()),tn&&Xo()}function Ma(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function It(e,t,r){var i=Ee;i!==null&&(i.f&ut)!==0&&(e|=ut);var s={ctx:Je,deps:null,nodes:null,f:e|Ze|_t,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,wv:0,ac:null};if(r)try{Vn(s),s.f|=Lr}catch(u){throw tt(s),u}else t!==null&&St(s);var o=s;if(r&&o.deps===null&&o.teardown===null&&o.nodes===null&&o.first===o.last&&(o.f&bn)===0&&(o=o.first,(e&Ut)!==0&&(e&Jt)!==0&&o!==null&&(o.f|=Jt)),o!==null&&(o.parent=i,i!==null&&Ma(o,i),ve!==null&&(ve.f&Ge)!==0&&(e&an)===0)){var l=ve;(l.effects??=[]).push(o)}return s}function zr(){return ve!==null&&!Lt}function Ur(e){const t=It(On,null,!1);return Fe(t,Ue),t.teardown=e,t}function Xe(e){hs();var t=Ee.f,r=!ve&&(t&Et)!==0&&(t&Lr)===0;if(r){var i=Je;(i.e??=[]).push(e)}else return vs(e)}function vs(e){return It(rr|Ui,e,!1)}function fn(e){return hs(),It(On|Ui,e,!0)}function Aa(e){jt.ensure();const t=It(an|bn,e,!0);return(r={})=>new Promise(i=>{r.outro?dn(t,()=>{tt(t),i(void 0)}):(tt(t),i(void 0))})}function Vr(e){return It(rr,e,!1)}function Oa(e){return It(Mr|bn,e,!0)}function gs(e,t=0){return It(On|t,e,!0)}function ae(e,t=[],r=[],i=[]){Ea(i,t,r,s=>{It(On,()=>e(...s.map(n)),!0)})}function zn(e,t=0){var r=It(Ut|t,e,!0);return r}function Na(e,t=0){var r=It(Rr|t,e,!0);return r}function ft(e){return It(Et|bn,e,!0)}function ms(e){var t=e.teardown;if(t!==null){const r=tn,i=ve;ks(!0),yt(null);try{t.call(null)}finally{ks(r),yt(i)}}}function ps(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&Wr(()=>{s.abort(kn)});var i=r.next;(r.f&an)!==0?r.parent=null:tt(r,t),r=i}}function Fa(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Et)===0&&tt(t),t=r}}function tt(e,t=!0){var r=!1;(t||(e.f&zi)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Ha(e.nodes.start,e.nodes.end),r=!0),ps(e,t&&!r),ur(e,0),Fe(e,Vt);var i=e.nodes&&e.nodes.t;if(i!==null)for(const o of i)o.stop();ms(e);var s=e.parent;s!==null&&s.first!==null&&_s(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Ha(e,t){for(;e!==null;){var r=e===t?null:Wn(e);e.remove(),e=r}}function _s(e){var t=e.parent,r=e.prev,i=e.next;r!==null&&(r.next=i),i!==null&&(i.prev=r),t!==null&&(t.first===e&&(t.first=i),t.last===e&&(t.last=r))}function dn(e,t,r=!0){var i=[];ys(e,i,!0);var s=()=>{r&&tt(e),t&&t()},o=i.length;if(o>0){var l=()=>--o||s();for(var u of i)u.out(l)}else s()}function ys(e,t,r){if((e.f&ut)===0){e.f^=ut;var i=e.nodes&&e.nodes.t;if(i!==null)for(const u of i)(u.is_global||r)&&t.push(u);for(var s=e.first;s!==null;){var o=s.next,l=(s.f&Jt)!==0||(s.f&Et)!==0&&(e.f&Ut)!==0;ys(s,t,l?r:!1),s=o}}}function Br(e){ws(e,!0)}function ws(e,t){if((e.f&ut)!==0){e.f^=ut,(e.f&Ue)===0&&(Fe(e,Ze),St(e));for(var r=e.first;r!==null;){var i=r.next,s=(r.f&Jt)!==0||(r.f&Et)!==0;ws(r,s?t:!1),r=i}var o=e.nodes&&e.nodes.t;if(o!==null)for(const l of o)(l.is_global||t)&&l.in()}}function bs(e,t){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end;r!==null;){var s=r===i?null:Wn(r);t.append(r),r=s}}let lr=!1,tn=!1;function ks(e){tn=e}let ve=null,Lt=!1;function yt(e){ve=e}let Ee=null;function Nt(e){Ee=e}let wt=null;function Cs(e){ve!==null&&(wt===null?wt=[e]:wt.push(e))}let it=null,dt=0,bt=null;function Wa(e){bt=e}let Ds=1,cn=0,qt=cn;function Es(e){qt=e}function Ts(){return++Ds}function Un(e){var t=e.f;if((t&Ze)!==0)return!0;if(t&Ge&&(e.f&=~ln),(t&Tt)!==0){for(var r=e.deps,i=r.length,s=0;s<i;s++){var o=r[s];if(Un(o)&&ss(o),o.wv>e.wv)return!0}(t&_t)!==0&&xt===null&&Fe(e,Ue)}return!1}function xs(e,t,r=!0){var i=e.reactions;if(i!==null&&!(wt!==null&&yn.call(wt,e)))for(var s=0;s<i.length;s++){var o=i[s];(o.f&Ge)!==0?xs(o,t,!1):t===o&&(r?Fe(o,Ze):(o.f&Ue)!==0&&Fe(o,Tt),St(o))}}function Ss(e){var t=it,r=dt,i=bt,s=ve,o=wt,l=Je,u=Lt,f=qt,d=e.f;it=null,dt=0,bt=null,ve=(d&(Et|an))===0?e:null,wt=null,Cn(e.ctx),Lt=!1,qt=++cn,e.ac!==null&&(Wr(()=>{e.ac.abort(kn)}),e.ac=null);try{e.f|=Pr;var h=e.fn,g=h(),c=e.deps,v=Le?.is_fork;if(it!==null){var p;if(v||ur(e,dt),c!==null&&dt>0)for(c.length=dt+it.length,p=0;p<it.length;p++)c[dt+p]=it[p];else e.deps=c=it;if(zr()&&(e.f&_t)!==0)for(p=dt;p<c.length;p++)(c[p].reactions??=[]).push(e)}else!v&&c!==null&&dt<c.length&&(ur(e,dt),c.length=dt);if(qi()&&bt!==null&&!Lt&&c!==null&&(e.f&(Ge|Tt|Ze))===0)for(p=0;p<bt.length;p++)xs(bt[p],e);if(s!==null&&s!==e){if(cn++,s.deps!==null)for(let _=0;_<r;_+=1)s.deps[_].rv=cn;if(t!==null)for(const _ of t)_.rv=cn;bt!==null&&(i===null?i=bt:i.push(...bt))}return(e.f&Qt)!==0&&(e.f^=Qt),g}catch(_){return Zi(_)}finally{e.f^=Pr,it=t,dt=r,bt=i,ve=s,wt=o,Cn(l),Lt=u,qt=f}}function za(e,t){let r=t.reactions;if(r!==null){var i=Fo.call(r,e);if(i!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[i]=r[s],r.pop())}}if(r===null&&(t.f&Ge)!==0&&(it===null||!yn.call(it,t))){var o=t;(o.f&_t)!==0&&(o.f^=_t,o.f&=~ln),Ar(o),is(o),ur(o,0)}}function ur(e,t){var r=e.deps;if(r!==null)for(var i=t;i<r.length;i++)za(e,r[i])}function Vn(e){var t=e.f;if((t&Vt)===0){Fe(e,Ue);var r=Ee,i=lr;Ee=e,lr=!0;try{(t&(Ut|Rr))!==0?Fa(e):ps(e),ms(e);var s=Ss(e);e.teardown=typeof s=="function"?s:null,e.wv=Ds;var o}finally{lr=i,Ee=r}}}async function hn(){await Promise.resolve(),ya()}function n(e){var t=e.f,r=(t&Ge)!==0;if(ve!==null&&!Lt){var i=Ee!==null&&(Ee.f&Vt)!==0;if(!i&&(wt===null||!yn.call(wt,e))){var s=ve.deps;if((ve.f&Pr)!==0)e.rv<cn&&(e.rv=cn,it===null&&s!==null&&s[dt]===e?dt++:it===null?it=[e]:it.push(e));else{(ve.deps??=[]).push(e);var o=e.reactions;o===null?e.reactions=[ve]:yn.call(o,ve)||o.push(ve)}}}if(tn&&$t.has(e))return $t.get(e);if(r){var l=e;if(tn){var u=l.v;return((l.f&Ue)===0&&l.reactions!==null||Is(l))&&(u=Fr(l)),$t.set(l,u),u}var f=(l.f&_t)===0&&!Lt&&ve!==null&&(lr||(ve.f&_t)!==0),d=l.deps===null;Un(l)&&(f&&(l.f|=_t),ss(l)),f&&!d&&Rs(l)}if(xt?.has(e))return xt.get(e);if((e.f&Qt)!==0)throw e.v;return e.v}function Rs(e){if(e.deps!==null){e.f|=_t;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&Ge)!==0&&(t.f&_t)===0&&Rs(t)}}function Is(e){if(e.v===Ye)return!0;if(e.deps===null)return!1;for(const t of e.deps)if($t.has(t)||(t.f&Ge)!==0&&Is(t))return!0;return!1}function j(e){var t=Lt;try{return Lt=!0,e()}finally{Lt=t}}const Ua=["touchstart","touchmove"];function Va(e){return Ua.includes(e)}const Ls=new Set,Gr=new Set;function Ba(e,t,r,i={}){function s(o){if(i.capture||Bn.call(t,o),!o.cancelBubble)return Wr(()=>r?.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?At(()=>{t.addEventListener(e,s,i)}):t.addEventListener(e,s,i),s}function ct(e,t,r,i,s){var o={capture:i,passive:s},l=Ba(e,t,r,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Ur(()=>{t.removeEventListener(e,l,o)})}function nn(e){for(var t=0;t<e.length;t++)Ls.add(e[t]);for(var r of Gr)r(e)}let Ps=null;function Bn(e){var t=this,r=t.ownerDocument,i=e.type,s=e.composedPath?.()||[],o=s[0]||e.target;Ps=e;var l=0,u=Ps===e&&e.__root;if(u){var f=s.indexOf(u);if(f!==-1&&(t===document||t===window)){e.__root=t;return}var d=s.indexOf(t);if(d===-1)return;f<=d&&(l=f)}if(o=s[l]||e.target,o!==t){Oi(e,"currentTarget",{configurable:!0,get(){return o||r}});var h=ve,g=Ee;yt(null),Nt(null);try{for(var c,v=[];o!==null;){var p=o.assignedSlot||o.parentNode||o.host||null;try{var _=o["__"+i];_!=null&&(!o.disabled||e.target===o)&&_.call(o,e)}catch(m){c?v.push(m):c=m}if(e.cancelBubble||p===t||p===null)break;o=p}if(c){for(let m of v)queueMicrotask(()=>{throw m});throw c}}finally{e.__root=t,delete e.currentTarget,yt(h),Nt(g)}}}function Ga(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function fr(e,t){var r=Ee;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function $(e,t){var r=(t&da)!==0,i=(t&ca)!==0,s,o=!e.startsWith("<!>");return()=>{s===void 0&&(s=Ga(o?e:"<!>"+e),r||(s=ar(s)));var l=i||us?document.importNode(s,!0):s.cloneNode(!0);if(r){var u=ar(l),f=l.lastChild;fr(u,f)}else fr(l,l);return l}}function Ms(e=""){{var t=Yt(e+"");return fr(t,t),t}}function ue(){var e=document.createDocumentFragment(),t=document.createComment(""),r=Yt();return e.append(t,r),fr(t,r),e}function S(e,t){e!==null&&e.before(t)}function As(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function Ya(e,t){return qa(e,t)}const Tn=new Map;function qa(e,{target:t,anchor:r,props:i={},events:s,context:o,intro:l=!0}){Ia();var u=new Set,f=g=>{for(var c=0;c<g.length;c++){var v=g[c];if(!u.has(v)){u.add(v);var p=Va(v);t.addEventListener(v,Bn,{passive:p});var _=Tn.get(v);_===void 0?(document.addEventListener(v,Bn,{passive:p}),Tn.set(v,1)):Tn.set(v,_+1)}}};f(nr(Ls)),Gr.add(f);var d=void 0,h=Aa(()=>{var g=r??t.appendChild(Yt());return Ca(g,{pending:()=>{}},c=>{ye({});var v=Je;o&&(v.c=o),s&&(i.$$events=s),d=e(c,i)||{},we()}),()=>{for(var c of u){t.removeEventListener(c,Bn);var v=Tn.get(c);--v===0?(document.removeEventListener(c,Bn),Tn.delete(c)):Tn.set(c,v)}Gr.delete(f),g!==r&&g.parentNode?.removeChild(g)}});return Yr.set(d,h),d}let Yr=new WeakMap;function Xa(e,t){const r=Yr.get(e);return r?(Yr.delete(e),r(t)):Promise.resolve()}class qr{anchor;#e=new Map;#n=new Map;#t=new Map;#r=new Set;#s=!0;constructor(t,r=!0){this.anchor=t,this.#s=r}#i=()=>{var t=Le;if(this.#e.has(t)){var r=this.#e.get(t),i=this.#n.get(r);if(i)Br(i),this.#r.delete(r);else{var s=this.#t.get(r);s&&(this.#n.set(r,s.effect),this.#t.delete(r),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),i=s.effect)}for(const[o,l]of this.#e){if(this.#e.delete(o),o===t)break;const u=this.#t.get(l);u&&(tt(u.effect),this.#t.delete(l))}for(const[o,l]of this.#n){if(o===r||this.#r.has(o))continue;const u=()=>{if(Array.from(this.#e.values()).includes(o)){var d=document.createDocumentFragment();bs(l,d),d.append(Yt()),this.#t.set(o,{effect:l,fragment:d})}else tt(l);this.#r.delete(o),this.#n.delete(o)};this.#s||!i?(this.#r.add(o),dn(l,u,!1)):u()}}};#o=t=>{this.#e.delete(t);const r=Array.from(this.#e.values());for(const[i,s]of this.#t)r.includes(i)||(tt(s.effect),this.#t.delete(i))};ensure(t,r){var i=Le,s=cs();if(r&&!this.#n.has(t)&&!this.#t.has(t))if(s){var o=document.createDocumentFragment(),l=Yt();o.append(l),this.#t.set(t,{effect:ft(()=>r(l)),fragment:o})}else this.#n.set(t,ft(()=>r(this.anchor)));if(this.#e.set(i,t),s){for(const[u,f]of this.#n)u===t?i.unskip_effect(f):i.skip_effect(f);for(const[u,f]of this.#t)u===t?i.unskip_effect(f.effect):i.skip_effect(f.effect);i.oncommit(this.#i),i.ondiscard(this.#o)}else this.#i()}}function ce(e,t,r=!1){var i=new qr(e),s=r?Jt:0;function o(l,u){i.ensure(l,u)}zn(()=>{var l=!1;t((u,f=!0)=>{l=!0,o(f,u)}),l||o(!1,null)},s)}function Ce(e,t){return t}function Ka(e,t,r){for(var i=[],s=t.length,o,l=t.length,u=0;u<s;u++){let g=t[u];dn(g,()=>{if(o){if(o.pending.delete(g),o.done.add(g),o.pending.size===0){var c=e.outrogroups;Xr(nr(o.done)),c.delete(o),c.size===0&&(e.outrogroups=null)}}else l-=1},!1)}if(l===0){var f=i.length===0&&r!==null;if(f){var d=r,h=d.parentNode;La(h),h.append(d),e.items.clear()}Xr(t,!f)}else o={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(o)}function Xr(e,t=!0){for(var r=0;r<e.length;r++)tt(e[r],t)}var Os;function le(e,t,r,i,s,o=null){var l=e,u=new Map,f=(t&Bi)!==0;if(f){var d=e;l=d.appendChild(Yt())}var h=null,g=rs(()=>{var y=r();return Ai(y)?y:y==null?[]:nr(y)}),c,v=!0;function p(){m.fallback=h,Za(m,c,l,t,i),h!==null&&(c.length===0?(h.f&Bt)===0?Br(h):(h.f^=Bt,Yn(h,null,l)):dn(h,()=>{h=null}))}var _=zn(()=>{c=n(g);for(var y=c.length,E=new Set,T=Le,C=cs(),D=0;D<y;D+=1){var w=c[D],k=i(w,D),M=v?null:u.get(k);M?(M.v&&En(M.v,w),M.i&&En(M.i,D),C&&T.unskip_effect(M.e)):(M=Ja(u,v?l:Os??=Yt(),w,k,D,s,t,r),v||(M.e.f|=Bt),u.set(k,M)),E.add(k)}if(y===0&&o&&!h&&(v?h=ft(()=>o(l)):(h=ft(()=>o(Os??=Yt())),h.f|=Bt)),y>E.size&&qo(),!v)if(C){for(const[Y,R]of u)E.has(Y)||T.skip_effect(R.e);T.oncommit(p),T.ondiscard(()=>{})}else p();n(g)}),m={effect:_,items:u,outrogroups:null,fallback:h};v=!1}function Gn(e){for(;e!==null&&(e.f&Et)===0;)e=e.next;return e}function Za(e,t,r,i,s){var o=(i&sa)!==0,l=t.length,u=e.items,f=Gn(e.effect.first),d,h=null,g,c=[],v=[],p,_,m,y;if(o)for(y=0;y<l;y+=1)p=t[y],_=s(p,y),m=u.get(_).e,(m.f&Bt)===0&&(m.nodes?.a?.measure(),(g??=new Set).add(m));for(y=0;y<l;y+=1){if(p=t[y],_=s(p,y),m=u.get(_).e,e.outrogroups!==null)for(const R of e.outrogroups)R.pending.delete(m),R.done.delete(m);if((m.f&Bt)!==0)if(m.f^=Bt,m===f)Yn(m,null,r);else{var E=h?h.next:f;m===e.effect.last&&(e.effect.last=m.prev),m.prev&&(m.prev.next=m.next),m.next&&(m.next.prev=m.prev),rn(e,h,m),rn(e,m,E),Yn(m,E,r),h=m,c=[],v=[],f=Gn(h.next);continue}if((m.f&ut)!==0&&(Br(m),o&&(m.nodes?.a?.unfix(),(g??=new Set).delete(m))),m!==f){if(d!==void 0&&d.has(m)){if(c.length<v.length){var T=v[0],C;h=T.prev;var D=c[0],w=c[c.length-1];for(C=0;C<c.length;C+=1)Yn(c[C],T,r);for(C=0;C<v.length;C+=1)d.delete(v[C]);rn(e,D.prev,w.next),rn(e,h,D),rn(e,w,T),f=T,h=w,y-=1,c=[],v=[]}else d.delete(m),Yn(m,f,r),rn(e,m.prev,m.next),rn(e,m,h===null?e.effect.first:h.next),rn(e,h,m),h=m;continue}for(c=[],v=[];f!==null&&f!==m;)(d??=new Set).add(f),v.push(f),f=Gn(f.next);if(f===null)continue}(m.f&Bt)===0&&c.push(m),h=m,f=Gn(m.next)}if(e.outrogroups!==null){for(const R of e.outrogroups)R.pending.size===0&&(Xr(nr(R.done)),e.outrogroups?.delete(R));e.outrogroups.size===0&&(e.outrogroups=null)}if(f!==null||d!==void 0){var k=[];if(d!==void 0)for(m of d)(m.f&ut)===0&&k.push(m);for(;f!==null;)(f.f&ut)===0&&f!==e.fallback&&k.push(f),f=Gn(f.next);var M=k.length;if(M>0){var Y=(i&Bi)!==0&&l===0?r:null;if(o){for(y=0;y<M;y+=1)k[y].nodes?.a?.measure();for(y=0;y<M;y+=1)k[y].nodes?.a?.fix()}Ka(e,k,Y)}}o&&At(()=>{if(g!==void 0)for(m of g)m.nodes?.a?.apply()})}function Ja(e,t,r,i,s,o,l,u){var f=(l&ra)!==0?(l&oa)===0?as(r,!1,!1):en(r):null,d=(l&ia)!==0?en(s):null;return{v:f,i:d,e:ft(()=>(o(t,f??r,d??s,u),()=>{e.delete(i)}))}}function Yn(e,t,r){if(e.nodes)for(var i=e.nodes.start,s=e.nodes.end,o=t&&(t.f&Bt)===0?t.nodes.start:r;i!==null;){var l=Wn(i);if(o.before(i),i===s)return;i=l}}function rn(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function Xt(e,t,...r){var i=new qr(e);zn(()=>{const s=t()??null;i.ensure(s,s&&(o=>s(o,...r)))},Jt)}function Kr(e,t,r){var i=new qr(e);zn(()=>{var s=t()??null;i.ensure(s,s&&(o=>r(o,s)))},Jt)}function Oe(e,t){var r=void 0,i;Na(()=>{r!==(r=t())&&(i&&(tt(i),i=null),r&&(i=ft(()=>{Vr(()=>r(e))})))})}function Ns(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=Ns(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function Qa(){for(var e,t,r=0,i="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=Ns(e))&&(i&&(i+=" "),i+=t);return i}function Ft(e){return typeof e=="object"?Qa(e):e??""}function ja(e,t,r){var i=e==null?"":""+e;return i===""?null:i}function Fs(e,t=!1){var r=t?" !important;":";",i="";for(var s in e){var o=e[s];o!=null&&o!==""&&(i+=" "+s+": "+o+r)}return i}function Zr(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function $a(e,t){if(t){var r="",i,s;if(Array.isArray(t)?(i=t[0],s=t[1]):i=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var o=!1,l=0,u=!1,f=[];i&&f.push(...Object.keys(i).map(Zr)),s&&f.push(...Object.keys(s).map(Zr));var d=0,h=-1;const _=e.length;for(var g=0;g<_;g++){var c=e[g];if(u?c==="/"&&e[g-1]==="*"&&(u=!1):o?o===c&&(o=!1):c==="/"&&e[g+1]==="*"?u=!0:c==='"'||c==="'"?o=c:c==="("?l++:c===")"&&l--,!u&&o===!1&&l===0){if(c===":"&&h===-1)h=g;else if(c===";"||g===_-1){if(h!==-1){var v=Zr(e.substring(d,h).trim());if(!f.includes(v)){c!==";"&&g++;var p=e.substring(d,g).trim();r+=" "+p+";"}}d=g+1,h=-1}}}}return i&&(r+=Fs(i)),s&&(r+=Fs(s,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function O(e,t,r,i,s,o){var l=e.__className;if(l!==r||l===void 0){var u=ja(r);u==null?e.removeAttribute("class"):e.className=u,e.__className=r}return o}function Jr(e,t={},r,i){for(var s in r){var o=r[s];t[s]!==o&&(r[s]==null?e.style.removeProperty(s):e.style.setProperty(s,o,i))}}function Pt(e,t,r,i){var s=e.__style;if(s!==t){var o=$a(t,i);o==null?e.removeAttribute("style"):e.style.cssText=o,e.__style=t}else i&&(Array.isArray(i)?(Jr(e,r?.[0],i[0]),Jr(e,r?.[1],i[1],"important")):Jr(e,r,i));return i}const el=Symbol("is custom element"),tl=Symbol("is html");function Pe(e,t,r,i){var s=nl(e);s[t]!==(s[t]=r)&&(t==="loading"&&(e[Go]=r),r==null?e.removeAttribute(t):typeof r!="string"&&rl(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function nl(e){return e.__attributes??={[el]:e.nodeName.includes("-"),[tl]:e.namespaceURI===ha}}var Hs=new Map;function rl(e){var t=e.getAttribute("is")||e.nodeName,r=Hs.get(t);if(r)return r;Hs.set(t,r=[]);for(var i,s=e,o=Element.prototype;o!==s;){i=Ho(s);for(var l in i)i[l].set&&r.push(l);s=Ni(s)}return r}class Qr{#e=new WeakMap;#n;#t;static entries=new WeakMap;constructor(t){this.#t=t}observe(t,r){var i=this.#e.get(t)||new Set;return i.add(r),this.#e.set(t,i),this.#r().observe(t,this.#t),()=>{var s=this.#e.get(t);s.delete(r),s.size===0&&(this.#e.delete(t),this.#n.unobserve(t))}}#r(){return this.#n??(this.#n=new ResizeObserver(t=>{for(var r of t){Qr.entries.set(r.target,r);for(var i of this.#e.get(r.target)||[])i(r)}}))}}var il=new Qr({box:"border-box"});function dr(e,t,r){var i=il.observe(e,()=>r(e[t]));Vr(()=>(j(()=>r(e[t])),i))}function Ws(e,t){return e===t||e?.[Nn]===t}function st(e={},t,r,i){return Vr(()=>{var s,o;return gs(()=>{s=o,o=i?.()||[],j(()=>{e!==r(...o)&&(t(e,...o),s&&Ws(r(...s),e)&&t(null,...s))})}),()=>{At(()=>{o&&Ws(r(...o),e)&&t(null,...o)})}}),e}function zs(e,t,r){if(e==null)return t(void 0),Zt;const i=j(()=>e.subscribe(t,r));return i.unsubscribe?()=>i.unsubscribe():i}function sl(e){let t;return zs(e,r=>t=r)(),t}let cr=!1,jr=Symbol();function ol(e,t,r){const i=r[t]??={store:null,source:as(void 0),unsubscribe:Zt};if(i.store!==e&&!(jr in r))if(i.unsubscribe(),i.store=e??null,e==null)i.source.v=void 0,i.unsubscribe=Zt;else{var s=!0;i.unsubscribe=zs(e,o=>{s?i.source.v=o:b(i.source,o)}),s=!1}return e&&jr in r?sl(e):n(i.source)}function al(){const e={};function t(){Ur(()=>{for(var r in e)e[r].unsubscribe();Oi(e,jr,{enumerable:!1,value:!0})})}return[e,t]}function ll(e){var t=cr;try{return cr=!1,[e(),cr]}finally{cr=t}}function De(e,t,r,i){var s=(r&ua)!==0,o=(r&fa)!==0,l=i,u=!0,f=()=>(u&&(u=!1,l=o?j(i):i),l),d;if(s){var h=Nn in e||Bo in e;d=wn(e,t)?.set??(h&&t in e?E=>e[t]=E:void 0)}var g,c=!1;s?[g,c]=ll(()=>e[t]):g=e[t],g===void 0&&i!==void 0&&(g=f(),d&&(jo(),d(g)));var v;if(v=()=>{var E=e[t];return E===void 0?f():(u=!0,E)},(r&la)===0)return v;if(d){var p=e.$$legacy;return(function(E,T){return arguments.length>0?((!T||p||c)&&d(T?v():E),E):v()})}var _=!1,m=((r&aa)!==0?or:rs)(()=>(_=!1,v()));s&&n(m);var y=Ee;return(function(E,T){if(arguments.length>0){const C=T?n(m):s?qe(E):E;return b(m,C),_=!0,l!==void 0&&(l=C),E}return tn&&_||(y.f&Vt)!==0?m.v:n(m)})}function ul(){return ve===null&&Qo(),(ve.ac??=new AbortController).signal}function qn(e){Je===null&&Vi(),Xe(()=>{const t=j(e);if(typeof t=="function")return t})}const fl="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(fl);function $r(e,t=void 0){return function(r){return r.key==="Enter"||r.key===" "&&!r.preventDefault()?e.call(t,r):void 0}}function Qe(e){return t=>{typeof e=="string"?t.innerText=e:e?.domNodes?t.replaceChildren(...e.domNodes):e?.html&&(t.innerHTML=e.html)}}function dl(e){return t=>{let r=i=>{t&&!t.contains(i.target)&&t.dispatchEvent(new CustomEvent(e+"outside",{detail:{jsEvent:i}}))};return document.addEventListener(e,r,!0),()=>{document.removeEventListener(e,r,!0)}}}function ei(e){return t=>{let r=new ResizeObserver(i=>{for(let s of i)e(t,s)});return r.observe(t),()=>{r.unobserve(t)}}}function Us(e,t){return r=>{let i=new IntersectionObserver(s=>{for(let o of s)e(r,o)},t);return i.observe(r),()=>{i.unobserve(r)}}}function fe(...e){return Object.assign(...e)}function vn(e){return Object.keys(e)}function cl(e){return Object.entries(e)}function ti(e,t){return Object.hasOwn(e,t)}function ni(e){return Math.floor(e)}function hl(e){return Math.ceil(e)}function Ht(...e){return Math.min(...e)}function ht(...e){return Math.max(...e)}function vl(){return Symbol("ec")}function Te(e){return e.length}function kt(e){return!Te(e)}function Xn(e){return Array.isArray(e)}function ke(e){return typeof e=="function"}function gl(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function ri(e){return e instanceof Date}function ml(e){return e()}function pl(e){e.forEach(ml)}function _l(){}const hr=e=>e;function gn(){return window.getComputedStyle(document.documentElement).direction==="rtl"}const vr=86400;function Wt(e=void 0){return e!==void 0?ri(e)?Xs(e):bl(e):Xs(new Date)}function We(e){if(typeof e=="number")e={seconds:e};else if(typeof e=="string"){let r=0,i=2;for(let s of e.split(":",3))r+=parseInt(s,10)*Math.pow(60,i--);e={seconds:r}}else ri(e)&&(e={hours:e.getUTCHours(),minutes:e.getUTCMinutes(),seconds:e.getUTCSeconds()});let t=e.weeks||e.week||0;return{years:e.years||e.year||0,months:e.months||e.month||0,days:t*7+(e.days||e.day||0),seconds:(e.hours||e.hour||0)*60*60+(e.minutes||e.minute||0)*60+(e.seconds||e.second||0),inWeeks:!!t}}function Z(e){return new Date(e.getTime())}function Se(e,t,r=1){e.setUTCFullYear(e.getUTCFullYear()+r*t.years);let i=e.getUTCMonth()+r*t.months;for(e.setUTCMonth(i),i%=12,i<0&&(i+=12);e.getUTCMonth()!==i;)xn(e);return e.setUTCDate(e.getUTCDate()+r*t.days),e.setUTCSeconds(e.getUTCSeconds()+r*t.seconds),e}function gr(e,t,r=1){return Se(e,t,-r)}function Ct(e,t=1){return e.setUTCDate(e.getUTCDate()+t),e}function xn(e,t=1){return Ct(e,-t)}function Mt(e){return e.setUTCHours(0,0,0,0),e}function Ve(e){return new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds())}function vt(e,t=19){return e.toISOString().substring(0,t)}function je(e,...t){return t.every(r=>e.getTime()===r.getTime())}function yl(e,t){let r=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(r>=0?r:r+7)),e}function Vs(e,t){let r=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(r<=0?r:r-7)),e}function Bs(e){return typeof e=="string"&&e.length<=10}function ii(e,t){return e.setUTCHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),0),e}function _e(e){return e.seconds}function Gs(e,t,r){return Se(e,t),qs(e,r,Ct),e}function Ys(e,t,r){return gr(e,t),qs(e,r,xn),e}function qs(e,t,r){if(t.length&&t.length<7)for(;t.includes(e.getUTCDay());)r(e)}function wl(e,t){e=Z(e),t===0?e.setUTCDate(e.getUTCDate()+6-e.getUTCDay()):e.setUTCDate(e.getUTCDate()+4-(e.getUTCDay()||7));let r=new Date(Date.UTC(e.getUTCFullYear(),0,1));return Math.ceil(((e-r)/1e3/vr+1)/7)}function Xs(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()))}function bl(e){const t=e.match(/\d+/g);return new Date(Date.UTC(Number(t[0]),Number(t[1])-1,Number(t[2]),Number(t[3]||0),Number(t[4]||0),Number(t[5]||0)))}let si=vl();function Ks(e,t){e[si]=t}function kl(e){return!!e?.[si]}function Kt(e){return e[si]}function Zs(e,t,r,i=[]){let s=document.createElement(e);s.className=t,typeof r=="string"?s.innerText=r:r.domNodes?s.replaceChildren(...r.domNodes):r.html&&(s.innerHTML=r.html);for(let o of i)s.setAttribute(...o);return s}function sn(e){return e.getBoundingClientRect()}function Js(e,t){for(;t--;)e=e.parentElement;return e}function mn(e){return sn(e).height}function Sn(e,t,r=document,i=[]){i.push(r);for(let s of r.elementsFromPoint(e,t)){if(kl(s))return s;if(s.shadowRoot&&!i.includes(s.shadowRoot)){let o=Sn(e,t,s.shadowRoot,i);if(o)return o}}return null}function Kn(e,t,r,i){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r,i)}function oi(e,t=void 0){return function(r){r.stopPropagation(),e&&e.call(t,r)}}function Cl(e,t,r,i){return{type:e,title:t,currentStart:r.start,currentEnd:r.end,activeStart:i.start,activeEnd:i.end,calendar:void 0}}function $e(e){return e=fe({},e),e.currentStart=Ve(e.currentStart),e.currentEnd=Ve(e.currentEnd),e.activeStart=Ve(e.activeStart),e.activeEnd=Ve(e.activeEnd),e}let Dl=1;function mr(e){return e.map(t=>{let r={id:"id"in t?String(t.id):`{generated-${Dl++}}`,resourceIds:ai(t,"resourceId").map(String),allDay:t.allDay??(Bs(t.start)&&Bs(t.end)),start:Wt(t.start),end:Wt(t.end),title:t.title??"",editable:t.editable,startEditable:t.startEditable,durationEditable:t.durationEditable,display:t.display??"auto",extendedProps:t.extendedProps??{},backgroundColor:t.backgroundColor??t.color,textColor:t.textColor,classNames:ai(t,"className"),styles:ai(t,"style")};if(r.allDay){Mt(r.start);let i=Z(r.end);Mt(r.end),(!je(r.end,i)||je(r.end,r.start))&&Ct(r.end)}return r})}function ai(e,t){let r=e[t+"s"]??e[t]??[];return Xn(r)?r:[r]}function El(e){return e.map(t=>({events:t.events,url:t.url&&t.url.trimEnd("&")||"",method:t.method&&t.method.toUpperCase()||"GET",extraParams:t.extraParams||{}}))}function Tl(e,t,r,i,s,o){let l=s.formatRange(e.start,t&&e.event.display!=="pointer"&&!e.zeroDuration?ii(Z(e.start),e.end):e.start),u;if(r&&(u=ke(r)?r({event:Ke(e.event),timeText:l,view:$e(o)}):r),u===void 0){let f;switch(e.event.display){case"background":f=[];break;case"pointer":f=e.event.allDay?[]:[Qs(l,e,i)];break;default:f=[...e.event.allDay?[]:[Qs(l,e,i)],Zs("h4",i.eventTitle,e.event.title)]}u={domNodes:f}}return[l,u]}function Qs(e,t,r){return Zs("time",r.eventTime,e,[["datetime",vt(t.start)]])}function xl(e,t,r){let i=t.classNames;return e&&(ke(e)&&(e=e({event:Ke(t),view:$e(r)})),i=[...Xn(e)?e:[e],...i]),i}function Ke(e){return js(e,Ve)}function li(e){return js(e,Z)}function js(e,t){return e=fe({},e),e.start=t(e.start),e.end=t(e.end),e}function ui(e,t){e.length=t.length;for(let r of e)r?.reposition()}function Rn(e,t,r,i=void 0){return(!i||e.resourceIds.includes(i.id))&&e.start<r&&e.end>t}function pr(e){return Sl(e)||Rl(e)||Il(e)}function gt(e){return e==="background"}function Sl(e){return e==="preview"}function Rl(e){return e==="ghost"}function Il(e){return e==="pointer"}function Zn(e,t,r){return t=e.start>t?e.start:t,r=e.end<r?e.end:r,{start:t,end:r,event:e,zeroDuration:je(t,r)}}function In(e,t,r=!0){let i=[],s,o,l,u;for(let{gridColumn:f,gridRow:d,resource:h,dayStart:g,dayEnd:c,disabled:v}of t)!v&&Rn(e,g,c,h)&&(i.push(g),s=c,o||(o=f,l=d,u=h));if(i.length){let f=Zn(e,i[0],s);return fe(f,{gridColumn:o,gridRow:l,resource:u,dates:i}),r&&fi(f),[f]}return[]}function $s(e){let t={},r={};for(let i of e){let{gridColumn:s,gridRow:o}=i;for(let u=1;u<i.dates.length;++u){let f=`${o}_${s+u}`;r[f]?r[f].chunks.push(i):r[f]={sorted:!1,chunks:[i]}}let l=`${o}_${s}`;i.long=r[l],i.prev=t[l],t[l]=i}}function eo(e,t,r=1){e.prev&&(r=e.prev.bottom+1);let i=r+t;if(e.long){let s=e.long;s.sorted||(s.chunks.sort((o,l)=>o.top-l.top),s.sorted=!0);for(let o of s.chunks)if(r<o.bottom&&i>o.top){let l=o.bottom-r+1;r+=l,i+=l}}return fe(e,{top:r,bottom:i}),r}const to=new WeakMap;let Ll=1;function fi(e){let{event:t,gridColumn:r,gridRow:i}=e,s=to.get(t);s||(s=Ll++,to.set(t,s)),e.id=`${s}-${r}-${i}`}function pn(e,t){return()=>{let{options:{locale:r}}=e,i=e.options[t],s;return j(()=>{s=ke(i)?{format:i}:new Intl.DateTimeFormat(r,i)}),{format:o=>s.format(Ve(o))}}}function no(e,t){return()=>{let{options:{locale:r}}=e,i=e.options[t],s;return j(()=>{if(ke(i))s=i;else{let o=new Intl.DateTimeFormat(r,i);s=(l,u)=>{if(l<=u)return o.formatRange(l,u);{let f=o.formatRangeToParts(u,l),d="",h=["startRange","endRange"],g=[!1,!1];for(let c of f){let v=h.indexOf(c.source);v>=0?g[v]||(d+=Pl(h[1-v],f),g[v]=!0):d+=c.value}return d}}}}),{formatRange:(o,l)=>s(Ve(o),Ve(l))}}}function Pl(e,t){let r="";for(let i of t)i.source==e&&(r+=i.value);return r}function Jn(e){return _r(e,"day")}function Qn(e){return _r(e,"week")}function di(e){return _r(e,"month")}function Ml(e){return _r(e,"year")}function _r(e,t){return{...e,next:"Next "+t,prev:"Previous "+t}}function ot(e){return t=>({...t,view:e})}function Al(e){let t,r;return e&&({start:t,end:r}=e,t&&(t=Mt(Wt(t))),r&&(r=Mt(Wt(r)))),{start:t,end:r}}function Ln(e,t){return t.start&&e<t.start||t.end&&e>t.end}function ci(e){let t=[];return ro(e,0,t),t}function ro(e,t,r){let i=[];for(let s of e){let o=Ol(s);i.push(o),r.push(o);let l={level:t,children:[],expanded:!0,hidden:!1};Ks(o,l),s.children&&(l.children=ro(s.children,t+1,r))}return i}function Ol(e){return{id:String(e.id),title:e.title||"",eventBackgroundColor:io(e),eventTextColor:so(e),extendedProps:e.extendedProps??{}}}function io(e){return e?.eventBackgroundColor}function so(e){return e?.eventTextColor}function oo(e,t){return kt(e.resourceIds)?void 0:t.find(r=>e.resourceIds.includes(r.id))}function ao(e,t,r,i,s){let o=[];e=Z(e);let l=Z(e);for(Se(e,i.min),Se(l,i.max);e<l;)o.push([vt(e),s.format(e)]),Se(e,t,r);let u=ni((e-l)/1e3/_e(t));return u&&u!==r&&(o.at(-1)[2]=r-u),o}function lo(e,t,r,i,s){let o=We(e),l=We(t);if(r){let u=We(Ht(_e(o),ht(0,_e(l)-vr))),f=We(ht(_e(l),_e(u)+vr)),d=ke(r?.eventFilter)?r.eventFilter:h=>!gt(h.display);e:for(let h of i){let g=Se(Z(h),o),c=Se(Z(h),l),v=Se(Z(h),u),p=Se(Z(h),f);for(let _ of s)if(!_.allDay&&d(_)&&_.start<p&&_.end>v){if(_.start<g){let m=ht((_.start-h)/1e3,_e(u));m<_e(o)&&(o.seconds=m)}if(_.end>c){let m=Ht((_.end-h)/1e3,_e(f));m>_e(l)&&(l.seconds=m)}if(_e(o)===_e(u)&&_e(l)===_e(f))break e}}}return{min:o,max:l}}class uo extends Map{#e=new Map;#n=q(0);#t=q(0);#r=qt||-1;constructor(t){if(super(),t){for(var[r,i]of t)super.set(r,i);this.#t.v=super.size}}#s(t){return qt===this.#r?q(t):en(t)}has(t){var r=this.#e,i=r.get(t);if(i===void 0){var s=super.get(t);if(s!==void 0)i=this.#s(0),r.set(t,i);else return n(this.#n),!1}return n(i),!0}forEach(t,r){this.#i(),super.forEach(t,r)}get(t){var r=this.#e,i=r.get(t);if(i===void 0){var s=super.get(t);if(s!==void 0)i=this.#s(0),r.set(t,i);else{n(this.#n);return}}return n(i),super.get(t)}set(t,r){var i=this.#e,s=i.get(t),o=super.get(t),l=super.set(t,r),u=this.#n;if(s===void 0)s=this.#s(0),i.set(t,s),b(this.#t,super.size),Ot(u);else if(o!==r){Ot(s);var f=u.reactions===null?null:new Set(u.reactions),d=f===null||!s.reactions?.every(h=>f.has(h));d&&Ot(u)}return l}delete(t){var r=this.#e,i=r.get(t),s=super.delete(t);return i!==void 0&&(r.delete(t),b(this.#t,super.size),b(i,-1),Ot(this.#n)),s}clear(){if(super.size!==0){super.clear();var t=this.#e;b(this.#t,0);for(var r of t.values())b(r,-1);Ot(this.#n),t.clear()}}#i(){n(this.#n);var t=this.#e;if(this.#t.v!==t.size){for(var r of super.keys())if(!t.has(r)){var i=this.#s(0);t.set(r,i)}}for([,i]of this.#e)n(i)}keys(){return n(this.#n),super.keys()}values(){return this.#i(),super.values()}entries(){return this.#i(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return n(this.#t),super.size}}function yr(e){let t=0,r=q(qe(t));return fo(e,()=>n(r),()=>!0,()=>b(r,++t,!0))}function Nl(e){let t=0,r=qe({});return fo(e,i=>r[i],(i,s)=>i!==s,i=>r[i]=++t)}function fo(e,t,r,i){return new Proxy(e,{get(s,o,l){return ti(s,o)&&t(o),Reflect.get(s,o,l)},set(s,o,l,u){let f=r(s[o],l),d=Reflect.set(s,o,l,u);return f&&i(o),d}})}function Fl(e){let t={buttonText:{today:"today"},customButtons:{},customScrollbars:!1,date:new Date,datesSet:void 0,dayHeaderFormat:{weekday:"short",month:"numeric",day:"numeric"},dayHeaderAriaLabelFormat:{dateStyle:"full"},displayEventEnd:!0,duration:{weeks:1},events:[],eventAllUpdated:void 0,eventBackgroundColor:void 0,eventClassNames:void 0,eventClick:void 0,eventColor:void 0,eventContent:void 0,eventDidMount:void 0,eventFilter:void 0,eventMouseEnter:void 0,eventMouseLeave:void 0,eventOrder:void 0,eventSources:[],eventTextColor:void 0,eventTimeFormat:{hour:"numeric",minute:"2-digit"},filterEventsWithResources:!1,firstDay:0,headerToolbar:{start:"title",center:"",end:"today prev,next"},height:void 0,hiddenDays:[],highlightedDates:[],lazyFetching:!0,loading:void 0,locale:void 0,refetchResourcesOnNavigate:!1,resources:[],selectable:!1,theme:{active:"ec-active",bgEvent:"ec-bg-event",bgEvents:"ec-bg-events",body:"ec-body",button:"ec-button",buttonGroup:"ec-button-group",calendar:"ec",colHead:"ec-col-head",customScrollbars:"ec-custom-scrollbars",day:"ec-day",dayHead:"ec-day-head",disabled:"ec-disabled",event:"ec-event",eventBody:"ec-event-body",eventTime:"ec-event-time",eventTitle:"ec-event-title",events:"ec-events",grid:"ec-grid",header:"ec-header",hidden:"ec-hidden",highlight:"ec-highlight",icon:"ec-icon",main:"ec-main",noBeb:"ec-no-beb",noIeb:"ec-no-ieb",today:"ec-today",title:"ec-title",toolbar:"ec-toolbar",view:"",weekdays:["ec-sun","ec-mon","ec-tue","ec-wed","ec-thu","ec-fri","ec-sat"]},titleFormat:{year:"numeric",month:"short",day:"numeric"},validRange:void 0,view:void 0,viewDidMount:void 0,views:{}};for(let r of e)r.createOptions?.(t);return t}function Hl(e){let t={date:r=>Mt(Wt(r)),duration:We,events:mr,eventSources:El,hiddenDays:r=>[...new Set(r)],highlightedDates:r=>r.map(i=>Mt(Wt(i))),resources:r=>Xn(r)?ci(r):r,validRange:Al};for(let r of e)r.createParsers?.(t);return t}const co=["buttonText","customButtons","theme"];function Wl(e,t){let r=Fl(e),i=Hl(e);r=hi(r,i),t=hi(t,i);let s=vi(r,"views")??{},o=vi(t,"views")??{},l=Nl({});fe(l,r),t.view&&(l.view=t.view);let u={},f={},d={},h=new Set([...vn(s),...vn(o)]);for(let g of h){let c=o[g]??{},v=ho(r,s[g]??s[c.type]??{}),p=ho(v,t,c),_=vi(p,"component");delete p.view;for(let m of vn(p))ti(l,m)?(u[m]||(u[m]=[]),u[m].push(co.includes(m)?y=>p[m]=ke(y)?y(v[m]):y:y=>p[m]=y)):delete p[m];f[g]=p,d[g]=_}return fe(l,f[l.view]),[l,function(c,v,p=!0){ti(l,c)&&(p||(c in i?v=i[c](v):gl(v)?v={...v}:Xn(v)&&(v=[...v])),u[c]?.forEach(_=>_(v)),l[c]=v)},function(c){return fe(l,f[c]),d[c]}]}function hi(e,t){let r={...e};for(let i of vn(t))i in r&&(r[i]=t[i](r[i]));if(e.views){r.views={};for(let i of vn(e.views))r.views[i]=hi(e.views[i],t)}return r}function vi(e,t){let r=e[t];return delete e[t],r}function ho(...e){let t={};for(let r of e){let i={};for(let s of co)ke(r[s])&&(i[s]=r[s](t[s]));t={...t,...r,...i}}return t}function zl(e,t){let r=[];for(let i of vn(e))e[i]!==t[i]&&r.push([i,e[i]]);return r}function Ul(e){return()=>{let{options:{view:t}}=e;j(()=>{let r=e.setViewOptions(t);e.extensions={},e.features=[],e.viewComponent=r(e)})}}function Vl(e,t){return()=>{let{activeRange:r,fetchedRange:{events:i},viewDates:s,options:{events:o,eventSources:l,lazyFetching:u}}=e;j(()=>{vo(l.map(f=>ke(f.events)?f.events:f),o,mr,f=>e.events=yr(f),r,i,s,!0,u,t)})}}function Bl(e,t){return()=>{let{activeRange:r,fetchedRange:{resources:i},viewDates:s,options:{lazyFetching:o,refetchResourcesOnNavigate:l,resources:u}}=e;j(()=>{vo(Xn(u)?[]:[u],u,ci,f=>e.resources=yr(f),r,i,s,l,o,t)})}}function vo(e,t,r,i,s,o,l,u,f,d){if(!kt(l)){if(kt(e)){i(t);return}if((u||!o.start)&&(!f||!o.start||o.start>s.start||o.end<s.end)){let h=[],g=_=>d.stop(),c=_=>{h=h.concat(r(_)),i(h),d.stop()},v=vt(s.start),p=vt(s.end);for(let _ of e)if(d.start(),ke(_)){let m=_(u?{start:Ve(s.start),end:Ve(s.end),startStr:v,endStr:p}:{},c,g);m!==void 0&&Promise.resolve(m).then(c,g)}else{let m=ke(_.extraParams)?_.extraParams():fe({},_.extraParams);u&&(m.start=v,m.end=p),m=new URLSearchParams(m);let y=_.url,E={},T;["GET","HEAD"].includes(_.method)?y+=(y.includes("?")?"&":"?")+m:(E["content-type"]="application/x-www-form-urlencoded;charset=UTF-8",T=String(m)),fetch(y,{method:_.method,headers:E,body:T,signal:ul(),credentials:"same-origin"}).then(C=>C.json()).then(c).catch(g)}fe(o,s)}}}function Gl(e){let t=0;function r(i){let{options:{loading:s}}=e;ke(s)&&s(i)}return{start:()=>++t===1&&r(!0),stop:()=>--t===0&&r(!1)}}function Yl(e){return()=>{let t=setInterval(()=>{let r=Wt(),i=Mt(Z(r));e.now=r,je(e.today,i)||(e.today=i)},1e3);return()=>clearInterval(t)}}function ql(e){return()=>{let{activeRange:t,options:{datesSet:r}}=e;j(()=>{ke(r)&&r({start:Ve(t.start),end:Ve(t.end),startStr:vt(t.start),endStr:vt(t.end),view:$e(e.view)})})}}function Xl(e){let t;return()=>{let{filteredEvents:r,options:{eventAllUpdated:i}}=e;j(()=>{ke(i)&&(t||(t=setTimeout(()=>{t=null,i({view:$e(e.view)})})))})}}function Kl(e){return()=>{let{options:{view:t,viewDidMount:r}}=e;j(()=>{ke(r)&&hn().then(()=>r({view:$e(e.view)}))})}}function Zl(e){return()=>{let{options:{date:t,duration:r,firstDay:i}}=e,s,o;return j(()=>{s=Z(t),r.months?s.setUTCDate(1):r.inWeeks&&Vs(s,i),o=Se(Z(s),r)}),{start:s,end:o}}}function Jl(e){return()=>{let{currentRange:t,extensions:{activeRange:r}}=e,i,s;return j(()=>{i=Z(t.start),s=Z(t.end)}),r?r(i,s):{start:i,end:s}}}function Ql(e){return()=>{let{events:t,options:{eventFilter:r,eventOrder:i,filterEventsWithResources:s,resources:o,view:l}}=e,u=[...t];return j(()=>{if(ke(r)){let f=t.map(Ke),d=$e(e.view);u=u.filter((h,g)=>r({event:Ke(h),index:g,events:f,view:d}))}s&&(u=u.filter(f=>o.some(d=>f.resourceIds.includes(d.id)))),ke(i)?u.sort((f,d)=>i(Ke(f),Ke(d))):u.sort((f,d)=>f.start-d.start||d.allDay-f.allDay)}),u}}function jl(e){return()=>{let{options:t,activeRange:r}=e,{hiddenDays:i}=t,s=[];return j(()=>{let o=Mt(Z(r.start)),l=Mt(Z(r.end));for(;o<l;)i.includes(o.getUTCDay())||s.push(Z(o)),Ct(o);if(!s.length&&i.length&&i.length<7){for(;i.includes(o.getUTCDay());)Ct(o);hn().then(()=>{e.setOption("date",o)})}}),s}}function $l(e){return()=>{let{currentRange:t,intlTitle:r}=e,i;return j(()=>{i=r.formatRange(t.start,xn(Z(t.end)))}),i}}function eu(e){return()=>{let{activeRange:t,currentRange:r,viewTitle:i,options:{view:s}}=e,o;return j(()=>{o=Cl(s,i,r,t)}),o}}class tu{#e;get auxComponents(){return n(this.#e)}set auxComponents(t){b(this.#e,t,!0)}#n;get currentRange(){return n(this.#n)}set currentRange(t){b(this.#n,t)}#t;get activeRange(){return n(this.#t)}set activeRange(t){b(this.#t,t)}#r;get fetchedRange(){return n(this.#r)}set fetchedRange(t){b(this.#r,t,!0)}#s;get events(){return n(this.#s)}set events(t){b(this.#s,t)}#i;get filteredEvents(){return n(this.#i)}set filteredEvents(t){b(this.#i,t)}#o;get mainEl(){return n(this.#o)}set mainEl(t){b(this.#o,t,!0)}#a;get now(){return n(this.#a)}set now(t){b(this.#a,t,!0)}#l;get resources(){return n(this.#l)}set resources(t){b(this.#l,t)}#u;get today(){return n(this.#u)}set today(t){b(this.#u,t,!0)}#f;get intlEventTime(){return n(this.#f)}set intlEventTime(t){b(this.#f,t)}#d;get intlDayHeader(){return n(this.#d)}set intlDayHeader(t){b(this.#d,t)}#v;get intlDayHeaderAL(){return n(this.#v)}set intlDayHeaderAL(t){b(this.#v,t)}#h;get intlTitle(){return n(this.#h)}set intlTitle(t){b(this.#h,t)}#g;get viewDates(){return n(this.#g)}set viewDates(t){b(this.#g,t)}#m;get viewTitle(){return n(this.#m)}set viewTitle(t){b(this.#m,t)}#c;get view(){return n(this.#c)}set view(t){b(this.#c,t)}#w;get viewComponent(){return n(this.#w)}set viewComponent(t){b(this.#w,t,!0)}#b;get extensions(){return n(this.#b)}set extensions(t){b(this.#b,t,!0)}#k;get features(){return n(this.#k)}set features(t){b(this.#k,t,!0)}#y;get interaction(){return n(this.#y)}set interaction(t){b(this.#y,t,!0)}#p;get iClasses(){return n(this.#p)}set iClasses(t){b(this.#p,t,!0)}#_;get iClass(){return n(this.#_)}set iClass(t){b(this.#_,t,!0)}options;setOption;setViewOptions;constructor(t,r){[this.options,this.setOption,this.setViewOptions]=Wl(t,r),this.#e=q(qe([])),this.#n=a(Zl(this)),this.#t=a(Jl(this)),this.#r=q(qe({events:{},resources:{}})),this.#s=q(yr(this.options.events)),this.#i=a(Ql(this)),this.#o=q(),this.#a=q(qe(Wt())),this.#l=q(yr(this.options.resources)),this.#u=q(qe(Mt(Wt()))),this.#f=a(no(this,"eventTimeFormat")),this.#d=a(pn(this,"dayHeaderFormat")),this.#v=a(pn(this,"dayHeaderAriaLabelFormat")),this.#h=a(no(this,"titleFormat")),this.#g=a(jl(this)),this.#m=a($l(this)),this.#c=a(eu(this)),this.#w=q(),this.#b=q(qe({})),this.#k=q(qe([])),this.#y=q(qe({})),this.iEvents=new uo,this.#p=q(qe(hr)),this.#_=q();for(let i of t)i.initState?.(this);this.#C()}#C(){let t=Gl(this);fn(Ul(this)),fn(Yl(this)),Xe(Vl(this,t)),Xe(Bl(this,t)),Xe(ql(this)),Xe(Xl(this)),Xe(Kl(this))}}var nu=$("<h2></h2>"),ru=$("<button><i></i></button>"),iu=$("<button><i></i></button>"),su=$("<button> </button>"),ou=$("<button></button>"),au=$("<button> </button>");function go(e,t){ye(t,!0);let r=re("state"),i=a(()=>r.currentRange),s=a(()=>r.today),o=a(()=>r.viewTitle),l=a(()=>r.viewDates),u=a(()=>r.options.buttonText),f=a(()=>r.options.customButtons),d=a(()=>r.options.date),h=a(()=>r.options.duration),g=a(()=>r.options.hiddenDays),c=a(()=>r.options.theme),v=a(()=>r.options.validRange),p=a(()=>r.options.view),_=q(!1),m=q(!1),y=q(!1),E=!1;fn(()=>{n(l),n(v),t.buttons,j(()=>{E||(E=!0,t.buttons.includes("prev")&&(b(_,!1),n(v).start&&b(_,T(C),!0)),t.buttons.includes("next")&&(b(m,!1),n(v).end&&b(m,T(D),!0)),t.buttons.includes("today")&&(b(y,n(s)>=n(i).start&&n(s)<n(i).end,!0),!n(y)&&(n(v).start||n(v).end)&&b(y,T(w),!0)),hn().then(()=>E=!1))})});function T(Y){let R=n(d);Y();let te=n(l).every(he=>Ln(he,n(v)));return r.setOption("date",R),te}function C(){r.setOption("date",Ys(Z(n(d)),n(h),n(g)))}function D(){r.setOption("date",Gs(Z(n(d)),n(h),n(g)))}function w(){r.setOption("date",Z(n(s)))}var k=ue(),M=Q(k);le(M,17,()=>t.buttons,Ce,(Y,R)=>{var te=ue(),he=Q(te);{var be=X=>{var z=nu();Oe(z,()=>Qe(n(o))),ae(()=>O(z,1,n(c).title)),S(X,z)},ie=X=>{var z=ue(),P=Q(z);{var W=B=>{var V=ru();V.__click=C;var oe=de(V);ae(()=>{O(V,1,`${n(c).button??""} ec-${n(R)??""}`),Pe(V,"aria-label",n(u).prev),Pe(V,"title",n(u).prev),V.disabled=n(_),O(oe,1,`${n(c).icon??""} ec-${n(R)??""}`)}),S(B,V)},H=B=>{var V=ue(),oe=Q(V);{var x=L=>{var K=iu();K.__click=D;var nt=de(K);ae(()=>{O(K,1,`${n(c).button??""} ec-${n(R)??""}`),Pe(K,"aria-label",n(u).next),Pe(K,"title",n(u).next),K.disabled=n(m),O(nt,1,`${n(c).icon??""} ec-${n(R)??""}`)}),S(L,K)},N=L=>{var K=ue(),nt=Q(K);{var Ne=Me=>{var He=su();He.__click=w;var mt=de(He);ae(()=>{O(He,1,`${n(c).button??""} ec-${n(R)??""}`),He.disabled=n(y),As(mt,n(u)[n(R)])}),S(Me,He)},Dt=Me=>{var He=ue(),mt=Q(He);{var zt=J=>{var Re=ou();Re.__click=function(...F){n(f)[n(R)].click?.apply(this,F)},Oe(Re,()=>Qe(n(f)[n(R)].text)),ae(()=>O(Re,1,Ft([n(c).button,`ec-${n(R)}`,n(f)[n(R)].active&&n(c).active]))),S(J,Re)},U=J=>{var Re=ue(),F=Q(Re);{var G=ge=>{var me=au();me.__click=()=>r.setOption("view",n(R));var ne=de(me);ae(()=>{O(me,1,Ft([n(c).button,`ec-${n(R)}`,n(p)===n(R)&&n(c).active])),As(ne,n(u)[n(R)])}),S(ge,me)};ce(F,ge=>{n(R)!==""&&ge(G)},!0)}S(J,Re)};ce(mt,J=>{n(f)[n(R)]?J(zt):J(U,!1)},!0)}S(Me,He)};ce(nt,Me=>{n(R)==="today"?Me(Ne):Me(Dt,!1)},!0)}S(L,K)};ce(oe,L=>{n(R)==="next"?L(x):L(N,!1)},!0)}S(B,V)};ce(P,B=>{n(R)==="prev"?B(W):B(H,!1)},!0)}S(X,z)};ce(he,X=>{n(R)==="title"?X(be):X(ie,!1)})}S(Y,te)}),S(e,k),we()}nn(["click"]);var lu=$("<div><!></div>"),uu=$("<div></div>"),fu=$("<nav></nav>");function du(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).options.headerToolbar),s=a(()=>n(r).options.theme),o=a(()=>{let u={};for(let f of["start","center","end"])u[f]=n(i)[f]?.split(" ").map(d=>d.split(","))??[];return u});var l=fu();le(l,21,()=>vn(n(o)),Ce,(u,f)=>{var d=uu();le(d,21,()=>n(o)[n(f)],Ce,(h,g)=>{var c=ue(),v=Q(c);{var p=m=>{var y=lu(),E=de(y);go(E,{get buttons(){return n(g)}}),ae(()=>O(y,1,n(s).buttonGroup)),S(m,y)},_=m=>{go(m,{get buttons(){return n(g)}})};ce(v,m=>{n(g).length>1?m(p):m(_,!1)})}S(h,c)}),ae(()=>O(d,1,`ec-${n(f)??""}`)),S(u,d)}),ae(()=>O(l,1,n(s).toolbar)),S(e,l),we()}var cu=$("<div><!> <!> <!></div>");function hu(e,t){ye(t,!0);let r=De(t,"plugins",19,()=>[]),i=De(t,"options",19,()=>({})),s=new tu(r(),i());Fn("state",s);let o=a(()=>s.auxComponents),l=a(()=>s.features),u=a(()=>s.events),f=a(()=>s.interaction),d=a(()=>s.iClass),h=a(()=>s.view),g=a(()=>s.viewComponent),c=a(()=>s.options.date),v=a(()=>s.options.duration),p=a(()=>s.options.height),_=a(()=>s.options.hiddenDays),m=a(()=>s.options.customScrollbars),y=a(()=>s.options.theme),E={...i()};fn(()=>{for(let[x,N]of zl(i(),E))j(()=>{T(x,N)});fe(E,i())});function T(x,N){return s.setOption(x,N,!1),this}function C(x){let N=s.options[x];return ri(N)?Ve(N):N}function D(){return s.fetchedRange.resources={},this}function w(){return s.fetchedRange.events={},this}function k(){return n(u).map(Ke)}function M(x){x=String(x);for(let N of n(u))if(N.id===x)return Ke(N);return null}function Y(x){return x=mr([x])[0],n(u).push(x),Ke(x)}function R(x){let N=String(x.id),L=n(u).findIndex(K=>K.id===N);return L>=0?(x=mr([x])[0],n(u)[L]=x,Ke(x)):null}function te(x){x=String(x);let N=n(u).findIndex(L=>L.id===x);return N>=0&&n(u).splice(N,1),this}function he(){return $e(n(h))}function be(){return n(f).action?.unselect(),this}function ie(x,N){let L=Sn(x,N);if(L){let K=Kt(L)(x,N);return K.date=Ve(K.date),K}return null}function X(){return s.setOption("date",Gs(Z(n(c)),n(v),n(_))),this}function z(){return s.setOption("date",Ys(Z(n(c)),n(v),n(_))),this}var P={setOption:T,getOption:C,refetchResources:D,refetchEvents:w,getEvents:k,getEventById:M,addEvent:Y,updateEvent:R,removeEventById:te,getView:he,unselect:be,dateFromPoint:ie,next:X,prev:z},W=cu();let H;var B=de(W);du(B,{});var V=se(B,2);Kr(V,()=>n(g),(x,N)=>{N(x,{})});var oe=se(V,2);return le(oe,17,()=>n(o),Ce,(x,N)=>{var L=ue(),K=Q(L);Kr(K,()=>n(N),(nt,Ne)=>{Ne(nt,{})}),S(x,L)}),ae(x=>{O(W,1,Ft([n(y).calendar,n(y).view,n(d)&&n(y)[n(d)],n(m)&&n(y).customScrollbars])),Pe(W,"role",x),H=Pt(W,"",H,{height:n(p)})},[()=>n(l).includes("list")?"list":"table"]),S(e,W),we(P)}function vu(e){return()=>{let{viewDates:t,options:{duration:r,hiddenDays:i}}=e,s;return j(()=>s=r.months||r.inWeeks?7-i.length:t.length),s}}function gu(e,t){return()=>{let{options:{highlightedDates:r,validRange:i},viewDates:s}=e,{colsCount:o}=t,l=[];return j(()=>{let u=[],f=1,d=1;for(let h of s)u.push({gridColumn:f,gridRow:d,resource:void 0,dayStart:h,dayEnd:Ct(Z(h)),disabled:Ln(h,i),highlight:r.some(g=>je(g,h))}),f===o&&(l.push(u),u=[],f=0,++d),++f}),l}}function mu(e,t){return()=>{let{filteredEvents:r}=e,{grid:i}=t,s=[],o=[];return j(()=>{for(let l of r)for(let u of i)gt(l.display)?l.allDay&&(o=o.concat(In(l,u))):s=s.concat(In(l,u));$s(s)}),{chunks:s,bgChunks:o}}}function pu(e,t){return()=>{let{iEvents:r}=e,{grid:i}=t,s=[];for(let[,o]of r)o&&j(()=>{for(let l of i)s=s.concat(In(o,l,!1))});return s}}let _u=class{#e;get colsCount(){return n(this.#e)}set colsCount(t){b(this.#e,t)}#n;get grid(){return n(this.#n)}set grid(t){b(this.#n,t)}#t;get gridEl(){return n(this.#t)}set gridEl(t){b(this.#t,t,!0)}#r;get chunks(){return n(this.#r)}set chunks(t){b(this.#r,t)}#s;get bgChunks(){return n(this.#s)}set bgChunks(t){b(this.#s,t)}#i;get iChunks(){return n(this.#i)}set iChunks(t){b(this.#i,t)}#o;get intlDayCell(){return n(this.#o)}set intlDayCell(t){b(this.#o,t)}#a;get intlDayPopover(){return n(this.#a)}set intlDayPopover(t){b(this.#a,t)}#l;get popupDay(){return n(this.#l)}set popupDay(t){b(this.#l,t,!0)}constructor(t){this.#e=a(vu(t)),this.#n=a(gu(t,this)),this.#t=q();let r=a(mu(t,this)),i=a(()=>n(r).chunks),s=a(()=>n(r).bgChunks);this.#r=a(()=>n(i)),this.#s=a(()=>n(s)),this.#i=a(pu(t,this)),this.hiddenChunks=new uo,this.#o=a(pn(t,"dayCellFormat")),this.#a=a(pn(t,"dayPopoverFormat")),this.#l=q(null)}};var yu=$("<div><!></div>");function wr(e,t){ye(t,!0);let r=De(t,"el",15),i=De(t,"allDay",3,!1),s=De(t,"resource",3,void 0),o=De(t,"dateFromPoint",3,()=>t.date),l=De(t,"classes",3,hr),u=De(t,"disabled",3,!1),f=De(t,"highlight",3,!1),d=De(t,"role",3,"cell"),h=De(t,"noIeb",3,!1),g=De(t,"noBeb",3,!1),c=a(()=>re("state")),v=a(()=>n(c).today),p=a(()=>n(c).interaction.action),_=a(()=>n(c).options.theme),m=a(()=>re("view-state")),y=a(()=>n(m).snap),E=a(()=>je(t.date,n(v))),T=a(()=>l()([n(_).day,n(_).weekdays?.[t.date.getUTCDay()],n(E)&&n(_).today,f()&&n(_).highlight,u()&&n(_).disabled,h()&&n(_).noIeb,g()&&n(_).noBeb]));qn(()=>{Ks(r(),(k,M)=>({allDay:i(),date:o()(k,M),resource:s(),dayEl:r(),disabled:u()}))});let C=a(()=>!u()&&n(p)?k=>n(p).select(k,n(y)):void 0);var D=yu();D.__pointerdown=function(...k){n(C)?.apply(this,k)};var w=de(D);Xt(w,()=>t.children??Zt),st(D,k=>r(k),()=>r()),ae(()=>{O(D,1,Ft(n(T))),Pe(D,"role",d())}),S(e,D),we()}nn(["pointerdown"]);var wu=$("<div></div>"),bu=$("<article><!></article>");function mo(e,t){ye(t,!0);let r=De(t,"el",15),i=De(t,"classes",3,hr),s=De(t,"styles",3,hr),o=a(()=>re("state")),l=a(()=>n(o).intlEventTime),u=a(()=>n(o).resources),f=a(()=>n(o).view),d=a(()=>n(o).options.displayEventEnd),h=a(()=>n(o).options.eventBackgroundColor),g=a(()=>n(o).options.eventColor),c=a(()=>n(o).options.eventContent),v=a(()=>n(o).options.eventClick),p=a(()=>n(o).options.eventDidMount),_=a(()=>n(o).options.eventClassNames),m=a(()=>n(o).options.eventMouseEnter),y=a(()=>n(o).options.eventMouseLeave),E=a(()=>n(o).options.eventTextColor),T=a(()=>n(o).options.theme),C=a(()=>t.chunk.event),D=a(()=>t.chunk.event.display),w=a(()=>n(C).backgroundColor??io(t.chunk.resource??oo(n(C),n(u)))??n(h)??n(g)),k=a(()=>n(C).textColor??so(t.chunk.resource??oo(n(C),n(u)))??n(E)),M=a(()=>cl(s()({"background-color":n(w),color:n(k)})).map(x=>`${x[0]}:${x[1]}`).concat(n(C).styles).join(";")),Y=a(()=>i()([gt(n(D))?n(T).bgEvent:n(T).event,...xl(n(_),n(C),n(f))])),R=a(()=>Tl(t.chunk,n(d),n(c),n(T),n(l),n(f))),te=a(()=>Vo(n(R),2)),he=a(()=>n(te)[0]),be=a(()=>n(te)[1]);qn(()=>{ke(n(p))&&n(p)({event:Ke(n(C)),timeText:n(he),el:r(),view:$e(n(f))})});function ie(x,N){return ke(x)&&!pr(N)?L=>x({event:Ke(n(C)),el:r(),jsEvent:L,view:$e(n(f))}):void 0}let X=a(()=>!gt(n(D))&&ie(n(v),n(D))||void 0),z=a(()=>n(X)&&$r(n(X))),P=a(()=>ie(n(m),n(D))),W=a(()=>ie(n(y),n(D)));var H=bu();H.__click=function(...x){n(X)?.apply(this,x)},H.__keydown=function(...x){n(z)?.apply(this,x)},H.__pointerdown=function(...x){t.onpointerdown?.apply(this,x)};{const x=N=>{var L=wu();Oe(L,()=>Qe(n(be))),ae(()=>O(L,1,Ft(n(T).eventBody))),S(N,L)};var B=de(H);{var V=N=>{var L=ue(),K=Q(L);Xt(K,()=>t.body,()=>x,()=>n(w),()=>n(k)),S(N,L)},oe=N=>{x(N)};ce(B,N=>{t.body?N(V):N(oe,!1)})}st(H,N=>r(N),()=>r())}ae(()=>{O(H,1,Ft(n(Y))),Pt(H,n(M)),Pe(H,"role",n(X)?"button":void 0),Pe(H,"tabindex",n(X)?0:void 0)}),ct("mouseenter",H,function(...x){n(P)?.apply(this,x)}),ct("mouseleave",H,function(...x){n(W)?.apply(this,x)}),S(e,H),we()}nn(["click","keydown","pointerdown"]);var ku=$("<div><!></div>");function jn(e,t){ye(t,!0);let r=De(t,"weekday",3,!0),i=De(t,"colSpan",3,1),s=De(t,"ariaHidden",3,!1),o=De(t,"disabled",3,!1),l=De(t,"highlight",3,!1),u=a(()=>re("state")),f=a(()=>n(u).today),d=a(()=>n(u).options.theme);var h=ku(),g=de(h);Xt(g,()=>t.children),ae(c=>{O(h,1,c),Pe(h,"role",s()?null:"columnheader"),Pe(h,"aria-colspan",s()||i()<=1?null:i()),Pe(h,"aria-colindex",s()?null:t.colIndex),Pe(h,"aria-hidden",s()?"true":null)},[()=>Ft([t.className??n(d).colHead,r()&&n(d).weekdays?.[t.date.getUTCDay()],r()&&je(t.date,n(f))&&n(d).today,l()&&n(d).highlight,o()&&n(d).disabled])]),S(e,h),we()}var Cu=$("<time></time>");function br(e,t){ye(t,!0);let r=De(t,"alPrefix",3,""),i=a(()=>re("state")),s=a(()=>n(i).intlDayHeader),o=a(()=>n(i).intlDayHeaderAL);var l=Cu();Oe(l,()=>Qe(n(s).format(t.date))),ae((u,f)=>{Pe(l,"datetime",u),Pe(l,"aria-label",`${r()??""}${f??""}`)},[()=>vt(t.date,10),()=>n(o).format(t.date)]),S(e,l),we()}function kr(e,t){ye(t,!0);let r=De(t,"el",15),i=a(()=>re("state")),s=a(()=>n(i).iClasses),o=a(()=>n(i).interaction.action),l=a(()=>n(i).interaction.resizer),u=a(()=>re("view-state")),f=a(()=>n(u).snap),d=a(()=>t.chunk.event),h=a(()=>t.chunk.event.display),g=a(()=>p=>n(s)(p,n(d)));function c(p){return n(o)?.draggable(p)?_=>n(o).drag(p,_,t.forceDate,t.forceMargin,n(f)):n(o)?.noAction}let v=a(()=>!gt(n(h))&&!pr(n(h))?c(n(d)):void 0);mo(e,{get chunk(){return t.chunk},get classes(){return n(g)},get styles(){return t.styles},get onpointerdown(){return n(v)},get el(){return r()},set el(_){r(_)},body:(_,m=Zt)=>{var y=ue(),E=Q(y);{var T=D=>{var w=ue(),k=Q(w);Kr(k,()=>n(l),(M,Y)=>{Y(M,{get chunk(){return t.chunk},get axis(){return t.axis},get forceDate(){return t.forceDate},get forceMargin(){return t.forceMargin},children:(R,te)=>{var he=ue(),be=Q(he);Xt(be,m),S(R,he)},$$slots:{default:!0}})}),S(D,w)},C=D=>{var w=ue(),k=Q(w);Xt(k,m),S(D,w)};ce(E,D=>{n(l)?D(T):D(C,!1)})}S(_,y)},$$slots:{body:!0}}),we()}var Du=$("<time></time>"),Eu=$("<span></span>"),Tu=$('<a role="button" tabindex="0" aria-haspopup="dialog"></a>'),xu=$("<div><!> <!></div> <div><!></div>",1);function Su(e,t){ye(t,!0);const r=()=>ol(n(d),"$firstDay",i),[i,s]=al();let o=re("state"),l=re("view-state"),u=a(()=>o.features),f=a(()=>o.options.date),d=a(()=>o.options.firstDay),h=a(()=>o.options.moreLinkContent),g=a(()=>o.options.theme),c=a(()=>o.options.weekNumbers),v=a(()=>o.options.weekNumberContent),p=a(()=>l.hiddenChunks),_=a(()=>l.intlDayCell),m=a(()=>t.day.dayStart),y=a(()=>t.day.disabled),E=a(()=>t.day.highlight),T=a(()=>n(m).getUTCMonth()!==n(f).getUTCMonth()),C=a(()=>R=>[...R,n(T)&&n(g).otherMonth]),D=a(()=>n(c)&&n(m).getUTCDay()===(n(d)?1:0)),w=a(()=>{let R;if(n(D)){let te=wl(n(m),r());n(v)?R=ke(n(v))?n(v)({date:Ve(n(m)),week:te}):n(v):R="W"+String(te).padStart(2,"0")}return R}),k=a(()=>n(p).get(n(m).getTime())),M=a(()=>{let R="";if(n(k)){let te="+"+n(k).length+" more";n(h)?R=ke(n(h))?n(h)({num:n(k).length,text:te}):n(h):R=te}return R});function Y(){l.popupDay=t.day}wr(e,{get date(){return n(m)},allDay:!0,get classes(){return n(C)},get disabled(){return n(y)},get highlight(){return n(E)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},children:(R,te)=>{var he=xu(),be=Q(he),ie=de(be);{var X=V=>{var oe=Du();Oe(oe,()=>Qe(n(_).format(n(m)))),ae(x=>Pe(oe,"datetime",x),[()=>vt(n(m),10)]),S(V,oe)};ce(ie,V=>{n(u).includes("dayNumber")&&V(X)})}var z=se(ie,2);{var P=V=>{var oe=Eu();Oe(oe,()=>Qe(n(w))),ae(()=>O(oe,1,n(g).weekNumber)),S(V,oe)};ce(z,V=>{n(D)&&V(P)})}var W=se(be,2),H=de(W);{var B=V=>{var oe=Tu(),x=a(()=>oi(Y));oe.__click=function(...K){n(x)?.apply(this,K)};var N=a(()=>$r(Y));oe.__keydown=function(...K){n(N)?.apply(this,K)};var L=a(oi);oe.__pointerdown=function(...K){n(L)?.apply(this,K)},Oe(oe,()=>Qe(n(M))),S(V,oe)};ce(H,V=>{n(k)&&V(B)})}ae(()=>{O(be,1,n(g).dayHead),O(W,1,n(g).dayFoot)}),S(R,he)},$$slots:{default:!0}}),we(),s()}nn(["click","keydown","pointerdown"]);function Cr(e,t){ye(t,!0);let r=De(t,"inPopup",3,!1),i=a(()=>re("state")),s=a(()=>n(i).options.dayMaxEvents),o=a(()=>re("view-state")),l=a(()=>n(o).colsCount),u=a(()=>n(o).gridEl),f=a(()=>n(o).hiddenChunks),d=a(()=>n(o).popupDay),h=q(void 0),g=q(1),c=q(!1),v=a(()=>t.chunk.event),p=a(()=>t.chunk.event.display),_=a(()=>n(u).children.item((t.chunk.gridRow-1)*n(l)+t.chunk.gridColumn-1));Xe(()=>{r()||b(g,mn(n(_).firstElementChild)||1,!0)});let m=a(()=>D=>{if(D["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,D["grid-row"]=t.chunk.gridRow,!gt(n(p))){let w=r()?1:n(g);if(n(v)._margin){let[k,M]=n(v)._margin;k>w&&t.chunk.gridRow===M&&(w=k)}D["margin-block-start"]=`${w}px`}return n(c)&&(D.visibility="hidden"),D});function y(){b(g,eo(t.chunk,mn(n(h)),mn(n(_).firstElementChild)||1),!0)}function E(){if(n(s)===!0){let D=mn(n(_))-T(n(_));if(b(c,t.chunk.bottom>D),n(c))for(let w of t.chunk.dates){let k=w.getTime();if(n(f).has(k)){let M=n(f).get(k);M.includes(t.chunk)||n(f).set(k,[...M,t.chunk])}else n(f).set(k,[t.chunk])}}else b(c,!1),n(f).size&&n(f).clear()}function T(D){let w=0;for(let k=0;k<t.chunk.dates.length&&(w=ht(w,mn(D.lastElementChild)),D=D.nextElementSibling,!!D);++k);return w}var C={reposition:y,hide:E};{let D=a(()=>r()&&n(d).dayStart),w=a(()=>[n(g),t.chunk.gridRow]);kr(e,{get chunk(){return t.chunk},get styles(){return n(m)},axis:"x",get forceDate(){return n(D)},get forceMargin(){return n(w)},get el(){return n(h)},set el(k){b(h,k,!0)}})}return we(C)}var Ru=$('<dialog closedby="closerequest"><header><time></time> <a role="button" tabindex="0">&times;</a></header> <div></div></dialog>');function Iu(e,t){ye(t,!0);let r=re("view-state"),i=a(()=>re("state")),s=a(()=>n(i).interaction),o=a(()=>n(i).options.buttonText),l=a(()=>n(i).options.theme),u=a(()=>r.colsCount),f=a(()=>r.chunks),d=a(()=>r.gridEl),h=a(()=>r.intlDayPopover),g=a(()=>r.popupDay),c=q(void 0),v=q(""),p=a(()=>n(g).gridColumn),_=a(()=>n(g).gridRow),m=a(()=>n(g).dayStart),y=a(()=>n(g).dayEnd),E=a(()=>{let ie=[];for(let X of n(f))X.gridRow===n(_)&&X.gridColumn<=n(p)&&X.gridColumn+X.dates.length>n(p)&&ie.push(fe({},X,Zn(X.event,n(m),n(y))));return ie.sort((X,z)=>X.top-z.top),ie});qn(()=>{n(c).show()}),Xe(()=>{n(E).length?j(T):C()});function T(){let ie=n(d).children.item((n(_)-1)*n(u)+n(p)-1),X=sn(n(c)),z=sn(ie),P=sn(n(d));b(v,"");let W;if(X.width>=P.width){W=P.left-z.left;let B=z.right-P.right;b(v,n(v)+`inset-inline-end:${B}px;`)}else W=(z.width-X.width)/2,z.left+W<P.left?W=P.left-z.left:z.left+W+X.width>P.right&&(W=P.right-z.left-X.width);b(v,n(v)+`inset-inline-start:${W}px;`);let H;X.height>=P.height?(H=P.top-z.top,b(v,n(v)+`block-size:${P.height}px;`)):(H=(z.height-X.height)/2,z.top+H<P.top?H=P.top-z.top:z.top+H+X.height>P.bottom&&(H=P.bottom-z.top-X.height)),b(v,n(v)+`inset-block-start:${H}px;`)}function C(){r.popupDay=null}function D(){C(),n(s).action?.noClick()}var w=Ru();let k;var M=de(w),Y=de(M);Oe(Y,()=>Qe(n(h).format(n(m))));var R=se(Y,2);Pa(R);var te=a(()=>oi(C));R.__click=function(...ie){n(te)?.apply(this,ie)};var he=a(()=>$r(C));R.__keydown=function(...ie){n(he)?.apply(this,ie)};var be=se(M,2);le(be,21,()=>n(E),Ce,(ie,X)=>{Cr(ie,{get chunk(){return n(X)},inPopup:!0})}),st(w,ie=>b(c,ie),()=>n(c)),Oe(w,()=>dl("pointerdown")),ae(ie=>{O(w,1,n(l).popup),k=Pt(w,n(v),k,{"grid-area":`${n(_)+1} / ${n(p)}`}),O(M,1,n(l).dayHead),Pe(Y,"datetime",ie),Pe(R,"aria-label",n(o).close),O(be,1,n(l).events)},[()=>vt(n(m),10)]),ct("pointerdownoutside",w,D),ct("close",w,C),S(e,w),we()}nn(["click","keydown"]);var Lu=$('<div role="columnheader"><span></span></div>'),Pu=$('<section><header><div role="row"></div></header> <div><div></div> <div><!> <!> <!></div></div> <!></section>');function gi(e,t){ye(t,!0);let r=re("state"),i=new _u(r);Fn("view-state",i);let s=a(()=>r.intlDayHeader),o=a(()=>r.intlDayHeaderAL),l=a(()=>r.options.dayMaxEvents),u=a(()=>r.options.theme),f=a(()=>i.grid),d=a(()=>i.chunks),h=a(()=>i.bgChunks),g=a(()=>i.iChunks),c=a(()=>i.hiddenChunks),v=a(()=>i.popupDay),p=[];function _(){ui(p,n(d)),n(c).clear(),hn().then(m)}function m(){n(c).size,p.forEach(C=>C?.hide())}Xe(_),Xe(m);var y=ue(),E=Q(y);{var T=C=>{var D=Pu();let w;var k=de(D),M=de(k);le(M,21,()=>n(f)[0],Ce,(P,W,H)=>{let B=()=>n(W).dayStart;var V=Lu();Pe(V,"aria-colindex",1+H);var oe=de(V);Oe(oe,()=>Qe(n(s).format(B()))),ae((x,N)=>{O(V,1,x),Pe(oe,"aria-label",N)},[()=>Ft([n(u).colHead,n(u).weekdays?.[B().getUTCDay()]]),()=>n(o).format(B())]),S(P,V)});var Y=se(k,2),R=de(Y);le(R,21,()=>n(f),Ce,(P,W,H)=>{var B=ue(),V=Q(B);le(V,17,()=>n(W),Ce,(oe,x,N)=>{{let L=a(()=>N+1===Te(n(W))),K=a(()=>H+1===Te(n(f)));Su(oe,{get day(){return n(x)},get noIeb(){return n(L)},get noBeb(){return n(K)}})}}),S(P,B)}),st(R,P=>i.gridEl=P,()=>i?.gridEl);var te=se(R,2),he=de(te);le(he,19,()=>n(d),P=>P.id,(P,W,H)=>{st(Cr(P,{get chunk(){return n(W)}}),(B,V)=>p[V]=B,B=>p?.[B],()=>[n(H)])});var be=se(he,2);le(be,17,()=>n(h),P=>P.id,(P,W)=>{Cr(P,{get chunk(){return n(W)}})});var ie=se(be,2);le(ie,17,()=>n(g),Ce,(P,W)=>{Cr(P,{get chunk(){return n(W)}})});var X=se(Y,2);{var z=P=>{Iu(P,{})};ce(X,P=>{n(v)&&P(z)})}st(D,P=>r.mainEl=P,()=>r?.mainEl),Oe(D,()=>ei(_)),ae(P=>{O(D,1,Ft([n(u).main,n(l)===!0&&n(u).uniform])),w=Pt(D,"",w,P),O(k,1,n(u).header),O(M,1,n(u).grid),O(Y,1,n(u).body),O(R,1,n(u).grid),O(te,1,n(u).events)},[()=>({"--ec-grid-cols":Te(n(f)[0]),"--ec-grid-rows":Te(n(f))})]),S(C,D)};ce(E,C=>{!kt(n(f))&&!kt(n(f)[0])&&C(T)})}S(e,y),we()}const Mu={createOptions(e){fe(e,{dayMaxEvents:!1,dayCellFormat:{day:"numeric"},dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},moreLinkContent:void 0,weekNumbers:!1,weekNumberContent:void 0,view:"dayGridMonth"}),fe(e.buttonText,{dayGridDay:"day",dayGridMonth:"month",dayGridWeek:"week",close:"Close"}),fe(e.theme,{uniform:"ec-uniform",dayFoot:"ec-day-foot",otherMonth:"ec-other-month",popup:"ec-popup",weekNumber:"ec-week-number"}),fe(e.views,{dayGridDay:{buttonText:Jn,component:()=>gi,dayHeaderFormat:{weekday:"long"},displayEventEnd:!1,duration:{days:1},theme:ot("ec-day-grid ec-day-view")},dayGridWeek:{buttonText:Qn,component:()=>gi,displayEventEnd:!1,theme:ot("ec-day-grid ec-week-view")},dayGridMonth:{buttonText:di,component:Au,dayHeaderFormat:{weekday:"short"},dayHeaderAriaLabelFormat:{weekday:"long"},displayEventEnd:!1,duration:{months:1},theme:ot("ec-day-grid ec-month-view"),titleFormat:{year:"numeric",month:"long"}}})}};function Au(e){return e.features=["dayNumber"],e.extensions.activeRange=(t,r)=>{let{options:{firstDay:i}}=e;return{start:Vs(t,i),end:yl(r,i)}},gi}function po(e,t,r){return e.startEditable??t??e.editable??r}function Ou(e,t,r){return e.durationEditable??t??e.editable??r}let mi=!1;function Nu(e){mi||(mi=!0,window.requestAnimationFrame(()=>{e(),mi=!1}))}function _o(e,t,r){return ht(t,Ht(r,e))}function Fu(e){return()=>{let{options:{editable:t,eventStartEditable:r,theme:i}}=e;e.iClasses=(s,o)=>{let{display:l}=o;return[...s,pr(l)?[i[l]]:!gt(l)&&po(o,r,t)?[i.draggable]:[]]}}}function Hu(e){return()=>{let{interaction:t,mainEl:r}=e;if(r)return Kn(r,"scroll",()=>{t.action.handleScroll(),t.pointer?.handleScroll()})}}class Wu{constructor(t){this.#e(t)}#e(t){fn(Fu(t)),Xe(Hu(t))}}function zu(e,t){ye(t,!0);let r=re("state"),i=a(()=>r.events),s=a(()=>r.iEvents),o=a(()=>r.features),l=a(()=>r.view),u=a(()=>r.mainEl),f=a(()=>r.options.dateClick),d=a(()=>r.options.dragConstraint),h=a(()=>r.options.dragScroll),g=a(()=>r.options.editable),c=a(()=>r.options.eventStartEditable),v=a(()=>r.options.eventDragMinDistance),p=a(()=>r.options.eventDragStart),_=a(()=>r.options.eventDragStop),m=a(()=>r.options.eventDrop),y=a(()=>r.options.eventLongPressDelay),E=a(()=>r.options.eventResizeStart),T=a(()=>r.options.eventResizeStop),C=a(()=>r.options.eventResize),D=a(()=>r.options.longPressDelay),w=a(()=>r.options.resizeConstraint),k=a(()=>r.options.selectable),M=a(()=>r.options.select),Y=a(()=>r.options.selectBackgroundColor),R=a(()=>r.options.selectConstraint),te=a(()=>r.options.selectLongPressDelay),he=a(()=>r.options.selectMinDistance),be=a(()=>r.options.unselect),ie=a(()=>r.options.unselectAuto),X=a(()=>r.options.unselectCancel),z=a(()=>r.options.validRange);const P=1,W=2,H=3,B=4,V=5,oe=6;let x,N,L,K,nt,Ne,Dt,Me,He,mt,zt,U,J,Re,F,G,ge,me,ne,Ie,Be,at,Ae,xe,lt,ze,pt;function Pn(I){return po(I,n(c),n(g))}function xi(I,A,pe,ee,et){x||(x=Li(A)?P:oe,_n()&&(L=I,Ii(A,et),pe&&(Ne=pe),ee&&(lt=ee),me="dragging",Mn(A)))}function Si(I,A,pe,ee,et,er,Mi,cd){x||(x=Li(A)?pe?H:W:oe,_n()&&(L=I,Ii(A,cd),et&&(Ne=et),er&&(lt=er),me=ee==="x"?"resizingX":"resizingY",xr()?(ne=Z(L.end),ge?(ii(ne,L.start),ne>=L.end&&xn(ne)):(gr(ne,ze),ne<L.start&&(ne=L.start),Ne=L.start)):(ne=Z(L.start),ge?(ii(ne,L.end),ne<=L.start&&!Mi&&Ct(ne)):(Se(ne,ze),ne>L.end&&(ne=L.end),Ne=L.end,Mi||(Ne=gr(Z(Ne),ze))),Mi&&!ge&&(pt=ze)),Mn(A)))}function Ri(I,A){x||(x=Li(I)?n(k)&&!n(o).includes("list")?B:V:oe,_n()&&(Ii(I,A),me="selecting",Ie=ge?We({day:1}):ze,L={allDay:ge,start:Ne,end:Se(Z(Ne),Ie),resourceIds:Me?[Me.id]:[]},Mn(I)))}function $f(){x||(x=oe)}function Ii(I,A){window.getSelection().removeAllRanges(),mt=U=I.clientX,zt=J=I.clientY,ze=A?.duration;let pe=Sn(U,J);({allDay:ge,date:Ne,resource:Me}=Kt(pe)(U,J)),F=n(u)!==Js(pe,3),Re=Js(pe,1),Lo(),I.pointerType!=="mouse"&&(Ae=setTimeout(()=>{x&&(N=!0,Mn(I))},(on()?n(te):n(y))??n(D)))}function Mn(I){if(N||I&&I.pointerType==="mouse"&&sd()>=(on()?n(he):n(v))){N=!0,Sr(I),r.iClass=me,K||(on()?id():rd(I,An()?n(E):n(p)));let A=$n(nd());if(A){let pe;if({allDay:pe,date:Dt,resource:He}=A,pe===ge){let ee=Tr({},K),et=n(w);G=We((Dt-Ne)/1e3),xr()?(ee.start=Se(Z(L.start),G),ee.start>ne&&(ee.start=ne,G=We((ne-L.start)/1e3))):(ee.end=Se(Z(L.end),G),pt&&Se(ee.end,pt),An()?ee.end<ne&&(ee.end=ne,G=We((ne-L.end)/1e3)):on()?(ee.end<L.end?(ee.start=gr(ee.end,Ie),ee.end=L.end):ee.start=L.start,et=n(R)):(ee.start=Se(Z(L.start),G),Me&&(ee.resourceIds=L.resourceIds.filter(er=>er!==Me.id),ee.resourceIds.push(He.id)),et=n(d)));do{if(et!==void 0&&(ee=Tr(li(L),ee),et(on()?Oo(ee,I):No(ee,L,I))===!1)){Ao(L);break}Ao(ee)}while(!1)}}}if(n(h)){let A=24,pe=24;Nu(()=>{xe&&(F||(J<xe.top+A&&(n(u).scrollTop+=ht(-8,(J-xe.top-A)/3)),J>xe.bottom-A&&(n(u).scrollTop+=Ht(8,(J-xe.bottom+A)/3))),U<xe.left+pe&&(n(u).scrollLeft+=ht(-8,(U-xe.left-pe)/3)),U>xe.right-pe&&(n(u).scrollLeft+=Ht(8,(U-xe.right+pe)/3)),J<A&&window.scrollBy(0,ht(-8,(J-A)/3)),J>window.innerHeight-A&&window.scrollBy(0,Ht(8,(J-window.innerHeight+A)/3)))})}}function Ro(){_n()&&(Lo(),Mn())}function ed(I){_n()&&I.isPrimary&&(U=I.clientX,J=I.clientY,Mn(I))}function td(I){if(Be&&n(ie)&&!(n(X)&&I.target.closest(n(X)))&&Sr(I),x&&I.isPrimary){if(N)if(on()){if(Be=!0,ke(n(M))){let A=Oo(K,I);n(M)(A)}}else{L.display=nt;let A=An()?n(T):n(_);ke(A)&&A({event:Ke(L),jsEvent:I,view:$e(n(l))});let pe=li(L);if(Mo(L,K),Po(),A=An()?n(C):n(m),ke(A)){let ee=L,et=No(L,pe,I);A(fe(et,{revert(){Mo(ee,pe)}}))}}else if((od()||on())&&ke(n(f))&&!at){U=I.clientX,J=I.clientY;let A=Sn(U,J);if(A){let{allDay:pe,date:ee,resource:et}=Kt(A)(U,J);n(f)({allDay:pe,date:Ve(ee),dateStr:vt(ee),dayEl:A,jsEvent:I,view:$e(n(l)),resource:et})}}Io()}at=!1}function Io(){N=!1,x=mt=zt=U=J=L=nt=Ne=Dt=Me=He=G=pt=ge=ne=Ie=lt=Re=xe=ze=void 0,r.iClass=void 0,Ae&&(clearTimeout(Ae),Ae=void 0)}function nd(){return Sn(_o(U,xe.left,xe.right),_o(J,xe.top,xe.bottom))}function $n(I){if(I){let A=Kt(I)(U,J);if(A.disabled){if(!n(z).end||A.date<n(z).end)return $n(I.nextElementSibling);if(!n(z).start||A.date>n(z).start)return $n(I.previousElementSibling)}else return(on()||An())&&A.resource&&!K.resourceIds.includes(A.resource.id)&&!n(o).includes("timeline")?U>mt?$n(I.previousElementSibling):$n(I.nextElementSibling):A}return null}function Lo(){let I=sn(n(u)),A=sn(Re),pe=I.width/n(u).offsetWidth,ee=I.height/n(u).offsetHeight,et=gn();xe={left:ht(0,et?I.right-n(u).clientWidth*pe:A.left+n(u).scrollLeft*pe),right:Ht(document.documentElement.clientWidth,et?A.right+n(u).scrollLeft*pe:I.left+n(u).clientWidth*pe)-2,top:ht(0,A.top+(F?0:n(u).scrollTop)*ee),bottom:Ht(document.documentElement.clientHeight,F?A.bottom:I.top+n(u).clientHeight*ee)-2}}function rd(I,A){ke(A)&&A({event:Ke(L),jsEvent:I,view:$e(n(l))}),nt=L.display,L.display="preview",K=li(L),lt!==void 0&&(K._margin=lt),pt&&Se(K.end,pt),L.display="ghost",n(i).length=n(i).length}function id(){K={id:"{select}",allDay:L.allDay,start:L.start,title:"",display:"preview",extendedProps:{},backgroundColor:n(Y),resourceIds:L.resourceIds,classNames:[],styles:[]}}function Po(){K=void 0,n(s).delete("action")}function Tr(I,A){return I.start=A.start,I.end=A.end,I.resourceIds=A.resourceIds,{...I}}function Mo(I,A){Tr(I,A),n(i).length=n(i).length}function Ao(I){K=Tr(K,I),n(s).set("action",K)}function Oo(I,A){let{start:pe,end:ee}=Ke(I);return{start:pe,end:ee,startStr:vt(I.start),endStr:vt(I.end),allDay:ge,view:$e(n(l)),resource:Me,jsEvent:A}}function No(I,A,pe){let ee;return An()?ee=xr()?{startDelta:G,endDelta:We(0)}:{startDelta:We(0),endDelta:G}:ee={delta:G,oldResource:Me!==He?Me:void 0,newResource:Me!==He?He:void 0},fe(ee,{event:Ke(I),oldEvent:Ke(A),view:$e(n(l)),jsEvent:pe}),ee}function sd(){return Math.sqrt(Math.pow(U-mt,2)+Math.pow(J-zt,2))}function An(){return x===W||xr()}function xr(){return x===H}function od(){return x===V}function on(){return x===B}function _n(){return x&&x<V}function Li(I){return I.isPrimary&&(I.pointerType!=="mouse"||I.buttons&1)}function Sr(I){Be&&(Be=!1,Po(),ke(n(be))&&n(be)({jsEvent:I,view:$e(n(l))}))}fn(()=>{n(l),Sr()});function ad(){at=!0}function ld(I){if(_n()){let A=I.target,pe=[],ee=()=>pl(pe);pe.push(Kn(A,"touchmove",Pi(()=>N))),pe.push(Kn(A,"touchend",ee)),pe.push(Kn(A,"touchcancel",ee))}}function Pi(I){return A=>{I()&&A.preventDefault()}}qn(()=>Kn(window,"touchmove",_l,{passive:!1}));var ud={draggable:Pn,drag:xi,resize:Si,select:Ri,noAction:$f,handleScroll:Ro,unselect:Sr,noClick:ad};ct("pointermove",Rt,ed),ct("pointerup",Rt,td),ct("pointercancel",Rt,Io),ct("scroll",Rt,Ro);var fd=a(()=>Pi(_n));ct("selectstart",Rt,function(...I){n(fd)?.apply(this,I)});var dd=a(()=>Pi(()=>Ae));return ct("contextmenu",Rt,function(...I){n(dd)?.apply(this,I)}),ct("touchstart",Rt,ld,void 0,!0),we(ud)}function Uu(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).iEvents),s=a(()=>n(r).options.slotDuration),o=0,l=0,u;function f(){let _=Sn(o,l);if(_&&!n(i).has("action")){let{allDay:m,date:y,resource:E,disabled:T}=Kt(_)(o,l);if(!T){u||g(),u.allDay=m,u.start=y,u.end=Se(Z(y),n(s)),u.resourceIds=E?[E.id]:[],n(i).set("pointer",{...u});return}}c()}function d(){f()}function h(_){v(_)&&(o=_.clientX,l=_.clientY,f())}function g(){u={id:"{pointer}",title:"",display:"pointer",extendedProps:{},backgroundColor:"transparent",classNames:[],styles:[]}}function c(){u=void 0,n(i).delete("pointer")}function v(_){return _.isPrimary&&_.pointerType==="mouse"}var p={handleScroll:d};return ct("pointermove",Rt,h),ct("scroll",Rt,d),we(p)}var Vu=$("<div></div>"),Bu=$("<div></div>"),Gu=$("<!> <!> <!>",1);function Yu(e,t){ye(t,!0);let r=De(t,"forceDate",3,void 0),i=De(t,"forceMargin",3,void 0),s=a(()=>re("state")),o=a(()=>n(s).interaction.action),l=a(()=>n(s).options.editable),u=a(()=>n(s).options.eventDurationEditable),f=a(()=>n(s).options.eventResizableFromStart),d=a(()=>n(s).options.theme),h=a(()=>re("view-state")),g=a(()=>n(h).snap),c=a(()=>t.chunk.event),v=a(()=>t.chunk.event.display),p=a(()=>!gt(n(v))&&!pr(n(v))&&Ou(n(c),n(u),n(l)));function _(w){return k=>n(o).resize(n(c),k,w,t.axis,r(),i(),t.chunk.zeroDuration,n(g))}var m=Gu(),y=Q(m);{var E=w=>{var k=Vu(),M=a(()=>_(!0));k.__pointerdown=function(...Y){n(M)?.apply(this,Y)},ae(()=>O(k,1,`${n(d).resizer??""} ${n(d).start??""}`)),S(w,k)};ce(y,w=>{n(p)&&n(f)&&w(E)})}var T=se(y,2);Xt(T,()=>t.children);var C=se(T,2);{var D=w=>{var k=Bu(),M=a(()=>_(!1));k.__pointerdown=function(...Y){n(M)?.apply(this,Y)},ae(()=>O(k,1,n(d).resizer)),S(w,k)};ce(C,w=>{n(p)&&w(D)})}S(e,m),we()}nn(["pointerdown"]);var qu=$("<!> <!>",1);function Xu(e,t){ye(t,!0);let r=re("state");new Wu(r);let i=a(()=>r.interaction),s=a(()=>r.options.pointer);n(i).resizer=Yu;var o=qu(),l=Q(o);st(zu(l,{}),d=>n(i).action=d,()=>n(i)?.action);var u=se(l,2);{var f=d=>{st(Uu(d,{}),h=>n(i).pointer=h,()=>n(i)?.pointer)};ce(u,d=>{n(s)&&d(f)})}S(e,o),we()}const Ku={createOptions(e){fe(e,{dateClick:void 0,dragConstraint:void 0,dragScroll:!0,editable:!1,eventDragMinDistance:5,eventDragStart:void 0,eventDragStop:void 0,eventDrop:void 0,eventDurationEditable:!0,eventLongPressDelay:void 0,eventResizableFromStart:!1,eventResizeStart:void 0,eventResizeStop:void 0,eventResize:void 0,eventStartEditable:!0,longPressDelay:1e3,pointer:!1,resizeConstraint:void 0,select:void 0,selectBackgroundColor:void 0,selectConstraint:void 0,selectLongPressDelay:void 0,selectMinDistance:5,snapDuration:void 0,unselect:void 0,unselectAuto:!0,unselectCancel:""}),fe(e.theme,{draggable:"ec-draggable",ghost:"ec-ghost",preview:"ec-preview",pointer:"ec-pointer",resizer:"ec-resizer",start:"ec-start",dragging:"ec-dragging",resizingY:"ec-resizing-y",resizingX:"ec-resizing-x",selecting:"ec-selecting"})},initState(e){e.auxComponents.push(Xu)}};let Zu=class{#e;get intlListDay(){return n(this.#e)}set intlListDay(t){b(this.#e,t)}#n;get intlListDaySide(){return n(this.#n)}set intlListDaySide(t){b(this.#n,t)}constructor(t){this.#e=a(pn(t,"listDayFormat")),this.#n=a(pn(t,"listDaySideFormat"))}};var Ju=$("<div></div> <!>",1);function Qu(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).interaction),s=a(()=>n(r).options.theme),o=a(()=>l=>(delete l["background-color"],delete l.color,l));{const l=(f,d=Zt,h=Zt,g=Zt)=>{var c=Ju(),v=Q(c);let p;var _=se(v,2);Xt(_,d),ae(()=>{O(v,1,n(s).eventTag),p=Pt(v,"",p,{"background-color":h()})}),S(f,c)};let u=a(()=>n(i).action?.noAction);mo(e,{get chunk(){return t.chunk},get styles(){return n(o)},get onpointerdown(){return n(u)},body:l,$$slots:{body:!0}})}we()}var ju=$("<h4><time></time> <time></time></h4> <!>",1);function $u(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).filteredEvents),s=a(()=>n(r).options.highlightedDates),o=a(()=>n(r).options.theme),l=a(()=>n(r).options.validRange),u=a(()=>re("view-state")),f=a(()=>n(u).intlListDay),d=a(()=>n(u).intlListDaySide),h=a(()=>n(s).some(y=>je(y,t.date))),g=a(()=>Ln(t.date,n(l))),c=a(()=>vt(t.date,10)),v=a(()=>{let y=[];if(!n(g)){let E=t.date,T=Ct(Z(t.date));for(let C of n(i))if(!gt(C.display)&&Rn(C,E,T)){let D=Zn(C,E,T);y.push(D)}}return y});var p=ue(),_=Q(p);{var m=y=>{wr(y,{get date(){return t.date},allDay:!0,role:"listitem",get disabled(){return n(g)},get highlight(){return n(h)},children:(E,T)=>{var C=ju(),D=Q(C),w=de(D);Oe(w,()=>Qe(n(f).format(t.date)));var k=se(w,2);Oe(k,()=>Qe(n(d).format(t.date)));var M=se(D,2);le(M,17,()=>n(v),Y=>Y.event,(Y,R)=>{Qu(Y,{get chunk(){return n(R)}})}),ae(()=>{O(D,1,n(o).dayHead),Pe(w,"datetime",n(c)),O(k,1,n(o).daySide),Pe(k,"datetime",n(c))}),S(E,C)},$$slots:{default:!0}})};ce(_,y=>{n(v).length&&y(m)})}S(e,p),we()}var ef=$("<div></div>"),tf=$("<section><!></section>");function nf(e,t){ye(t,!0);let r=re("state"),i=new Zu(r);Fn("view-state",i);let s=a(()=>r.filteredEvents),o=a(()=>r.view),l=a(()=>r.viewDates),u=a(()=>r.options.noEventsClick),f=a(()=>r.options.noEventsContent),d=a(()=>r.options.theme),h=a(()=>{let y=!0;if(!kt(n(l))){let E=n(l)[0],T=Ct(Z(n(l).at(-1)));for(let C of n(s))if(!gt(C.display)&&C.start<T&&C.end>E){y=!1;break}}return y}),g=a(()=>ke(n(f))?n(f)():n(f));function c(y){ke(n(u))&&n(u)({jsEvent:y,view:$e(n(o))})}var v=tf(),p=de(v);{var _=y=>{var E=ef();E.__click=c,Oe(E,()=>Qe(n(g))),ae(()=>O(E,1,n(d).noEvents)),S(y,E)},m=y=>{var E=ue(),T=Q(E);le(T,17,()=>n(l),Ce,(C,D)=>{$u(C,{get date(){return n(D)}})}),S(y,E)};ce(p,y=>{n(h)?y(_):y(m,!1)})}st(v,y=>r.mainEl=y,()=>r?.mainEl),ae(()=>O(v,1,n(d).main)),S(e,v),we()}nn(["click"]);const rf={createOptions(e){fe(e,{listDayFormat:{weekday:"long"},listDaySideFormat:{year:"numeric",month:"long",day:"numeric"},noEventsClick:void 0,noEventsContent:"No events",view:"listWeek"}),fe(e.buttonText,{listDay:"list",listWeek:"list",listMonth:"list",listYear:"list"}),fe(e.theme,{daySide:"ec-day-side",eventTag:"ec-event-tag",noEvents:"ec-no-events"}),fe(e.views,{listDay:{buttonText:Jn,component:Dr,duration:{days:1},theme:ot("ec-list ec-day-view")},listWeek:{buttonText:Qn,component:Dr,duration:{weeks:1},theme:ot("ec-list ec-week-view")},listMonth:{buttonText:di,component:Dr,duration:{months:1},theme:ot("ec-list ec-month-view")},listYear:{buttonText:Ml,component:Dr,duration:{years:1},theme:ot("ec-list ec-year-view")}})}};function Dr(e){return e.features=["list"],nf}function pi(e,t,r=!0){let i=[];for(let{gridColumn:s,gridRow:o,resource:l,start:u,end:f,disabled:d}of t)if(!d&&Rn(e,u,f,l)){let h=Zn(e,u,f);fe(h,{gridColumn:s,gridRow:o,resource:l,top:(h.start-u)/1e3,height:(h.end-h.start)/1e3,maxHeight:(f-h.start)/1e3}),r&&fi(h),i.push(h)}return i}function sf(e){let t={};for(let r of e){let{gridColumn:i}=r,s=t[i],o=0;if(s&&r.start<s.end){for(;o<s.columns.length&&!(s.columns[o].at(-1).end<=r.start);++o);r.end>s.end&&(s.end=r.end)}else s={columns:[],end:r.end};s.columns.length<o+1&&s.columns.push([]),s.columns[o].push(r),t[i]=s,r.group=s,r.groupColumn=o}}function of(e){let t="all-day",r;return e?(r=ke(e)?e({text:t}):e,typeof r=="string"&&(r={html:r})):r={html:t},r}function _i(e){e.extensions.activeRange=(t,r)=>{let{options:{slotMaxTime:i}}=e;if(i.days||i.seconds>vr){Se(xn(r),i);let s=xn(Z(r));s<t&&(t=s)}return{start:t,end:r}}}function yi(e){"scrollTime"in e||(fe(e,{columnWidth:void 0,flexibleSlotTimeLimits:!1,nowIndicator:!1,scrollTime:"06:00:00",slotDuration:"00:30:00",slotHeight:24,slotLabelInterval:void 0,slotLabelFormat:{hour:"numeric",minute:"2-digit"},slotMaxTime:"24:00:00",slotMinTime:"00:00:00",snapDuration:void 0}),fe(e.theme,{nowIndicator:"ec-now-indicator",sidebar:"ec-sidebar",slot:"ec-slot"}))}function yo(e){"allDaySlot"in e||(fe(e,{allDayContent:void 0,allDaySlot:!0,slotEventOverlap:!0}),fe(e.theme,{allDay:"ec-all-day"}))}function wi(e){"scrollTime"in e||fe(e,{scrollTime:We,slotDuration:We,slotLabelInterval:t=>t!==void 0?We(t):void 0,slotMaxTime:We,slotMinTime:We,snapDuration:t=>t!==void 0?We(t):void 0})}function wo(e){"resourceLabelContent"in e||(e.filterResourcesWithEvents=!1,e.resourceLabelContent=void 0,e.resourceLabelDidMount=void 0)}function af(e,t){return()=>{let{viewDates:r,options:{highlightedDates:i,validRange:s}}=e,{slotTimeLimits:o}=t,l=[];return j(()=>{let u=1;for(let f of r)l.push({gridColumn:u,gridRow:1,resource:void 0,start:Se(Z(f),o.min),end:Se(Z(f),o.max),dayStart:f,dayEnd:Ct(Z(f)),disabled:Ln(f,s),highlight:i.some(d=>je(d,f))}),++u}),[l]}}function lf(e,t){return()=>{let{filteredEvents:r}=e,{grid:i}=t,s=[],o=[],l=[],u=[];return j(()=>{for(let f of r)for(let d of i)gt(f.display)?(o=o.concat(pi(f,d)),f.allDay&&(u=u.concat(In(f,d)))):f.allDay?l=l.concat(In(f,d)):s=s.concat(pi(f,d));sf(s),$s(l)}),{chunks:s,bgChunks:o,allDayChunks:l,allDayBgChunks:u}}}function uf(e,t){return()=>{let{iEvents:r}=e,{grid:i}=t,s=[],o=[];for(let[,l]of r)l&&j(()=>{for(let u of i)l.allDay?o=o.concat(In(l,u,!1)):s=s.concat(pi(l,u,!1))});return{iChunks:s,allDayIChunks:o}}}function ff(e){return()=>{let{filteredEvents:t,viewDates:r,options:{flexibleSlotTimeLimits:i,slotMinTime:s,slotMaxTime:o}}=e,l;return j(()=>{l=lo(s,o,i,r,t)}),l}}function df(e){return()=>{let{options:{slotDuration:t,slotLabelInterval:r}}=e,i;return j(()=>{i=r===void 0?_e(t)<3600?2:1:hl(_e(r)/_e(t))||1}),i}}function cf(e,t){return()=>{let{options:{slotDuration:r}}=e,{intlSlotLabel:i,slotLabelPeriodicity:s,slotTimeLimits:o}=t,l;return j(()=>{l=ao(Mt(Wt()),r,s,o,i)}),l}}function hf(e){return()=>{let{options:{slotDuration:t,snapDuration:r}}=e;return r??=t,{duration:r,ratio:_e(r)/_e(t)}}}function bi(){return class{#e;get intlSlotLabel(){return n(this.#e)}set intlSlotLabel(e){b(this.#e,e)}#n;get slotLabelPeriodicity(){return n(this.#n)}set slotLabelPeriodicity(e){b(this.#n,e)}#t;get sidebarWidth(){return n(this.#t)}set sidebarWidth(e){b(this.#t,e,!0)}#r;get snap(){return n(this.#r)}set snap(e){b(this.#r,e)}constructor(e){this.#e=a(pn(e,"slotLabelFormat")),this.#n=a(df(e)),this.#t=q(0),this.#r=a(hf(e))}}}function bo(e){return class extends e{#e;get slotTimeLimits(){return n(this.#e)}set slotTimeLimits(t){b(this.#e,t)}#n;get slots(){return n(this.#n)}set slots(t){b(this.#n,t)}#t;get chunks(){return n(this.#t)}set chunks(t){b(this.#t,t)}#r;get bgChunks(){return n(this.#r)}set bgChunks(t){b(this.#r,t)}#s;get allDayChunks(){return n(this.#s)}set allDayChunks(t){b(this.#s,t)}#i;get allDayBgChunks(){return n(this.#i)}set allDayBgChunks(t){b(this.#i,t)}#o;get iChunks(){return n(this.#o)}set iChunks(t){b(this.#o,t)}#a;get allDayIChunks(){return n(this.#a)}set allDayIChunks(t){b(this.#a,t)}constructor(t){super(t),this.#e=a(ff(t)),this.#n=a(cf(t,this));let r=a(lf(t,this)),i=a(()=>n(r).chunks),s=a(()=>n(r).bgChunks),o=a(()=>n(r).allDayChunks),l=a(()=>n(r).allDayBgChunks);this.#t=a(()=>n(i)),this.#r=a(()=>n(s)),this.#s=a(()=>n(o)),this.#i=a(()=>n(l));let u=a(uf(t,this)),f=a(()=>n(u).iChunks),d=a(()=>n(u).allDayIChunks);this.#o=a(()=>n(f)),this.#a=a(()=>n(d))}}}let vf=class extends bo(bi()){#e;get grid(){return n(this.#e)}set grid(t){b(this.#e,t)}constructor(t){super(t),this.#e=a(af(t,this))}};function gf(e){return()=>{let{activeRange:t,filteredEvents:r,resources:i,options:{filterResourcesWithEvents:s},extensions:{viewResources:o}}=e,l=o?o(i):i;return j(()=>{s&&(l=i.filter(u=>r.some(f=>!gt(f.display)&&Rn(f,t.start,t.end,u)))),l.length||(l=ci([{}]))}),l}}function mf(e,t){return()=>{let{viewDates:r,options:{datesAboveResources:i,highlightedDates:s,validRange:o}}=e,{slotTimeLimits:l,viewResources:u}=t,f=[];return j(()=>{let d=1,h=i?[r,u]:[u,r];for(let g of h[0]){let c=[];for(let v of h[1]){let p=i?g:v,_=i?v:g;c.push({gridColumn:d,gridRow:1,resource:_,start:Se(Z(p),l.min),end:Se(Z(p),l.max),dayStart:p,dayEnd:Ct(Z(p)),disabled:Ln(p,o),highlight:s.some(m=>je(m,p))}),++d}f.push(c)}}),f}}function ko(e){return class extends e{#e;get viewResources(){return n(this.#e)}set viewResources(t){b(this.#e,t)}constructor(t){super(t),this.#e=a(gf(t))}}}let pf=class extends ko(bo(bi())){#e;get grid(){return n(this.#e)}set grid(t){b(this.#e,t)}constructor(t){super(t),this.#e=a(mf(t,this))}};var _f=$("<span></span>");function ki(e,t){ye(t,!0);let r=De(t,"date",3,void 0),i=De(t,"setLabel",3,void 0),s=a(()=>re("state")),o=a(()=>n(s).intlDayHeaderAL),l=a(()=>n(s).options.resourceLabelContent),u=a(()=>n(s).options.resourceLabelDidMount),f=q(void 0),d=a(()=>n(l)?ke(n(l))?n(l)({resource:t.resource,date:r()?Ve(r()):void 0}):n(l):t.resource.title),h=q(void 0);Xe(()=>{n(d),j(()=>{r()?b(h,n(o).format(r())+", "+n(f).innerText):i()&&(b(h,void 0),i()(n(f).innerText))})}),qn(()=>{ke(n(u))&&n(u)({resource:t.resource,date:r()?Ve(r()):void 0,el:n(f)})});var g=_f();st(g,c=>b(f,c),()=>n(f)),Oe(g,()=>Qe(n(d))),ae(()=>Pe(g,"aria-label",n(h))),S(e,g),we()}function Co(e,t){ye(t,!0);let r=De(t,"allDay",3,!1),i=a(()=>re("state")),s=a(()=>n(i).options.slotHeight),o=a(()=>re("view-state")),l=a(()=>n(o).snap),u=a(()=>t.day.dayStart),f=a(()=>t.day.start),d=a(()=>t.day.resource),h=a(()=>t.day.disabled),g=a(()=>t.day.highlight),c=q(void 0);function v(p,_){if(r())return n(u);{let m=sn(n(c)),y=m.height/n(c).offsetHeight;return Se(Z(n(f)),n(l).duration,ni((_-m.top)/(n(s)*n(l).ratio*y)))}}wr(e,{get date(){return n(u)},get allDay(){return r()},get resource(){return n(d)},dateFromPoint:v,get disabled(){return n(h)},get highlight(){return n(g)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return n(c)},set el(p){b(c,p,!0)}}),we()}function Ci(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).options.slotEventOverlap),s=a(()=>n(r).options.slotDuration),o=a(()=>n(r).options.slotHeight),l=a(()=>u=>{let f=_e(n(s)),d=t.chunk.top/f*n(o),h=t.chunk.height/f*n(o)||n(o),g=t.chunk.maxHeight/f*n(o);u["grid-column"]=t.chunk.gridColumn,u["inset-block-start"]=`${d}px`,u["min-block-size"]=`${h}px`,u["block-size"]=`${h}px`,u["max-block-size"]=`${g}px`;let c="100% - var(--ec-event-col-gap)";if(t.chunk.group){let v=t.chunk.group.columns.length;u["z-index"]=`${t.chunk.groupColumn+1}`,u["inset-inline-start"]=`calc((${c}) / ${v} * ${t.chunk.groupColumn})`,u["inline-size"]=`calc((${c}) / ${v} * ${n(i)?.5*(1+v-t.chunk.groupColumn):1})`}return u});kr(e,{get chunk(){return t.chunk},get styles(){return n(l)},axis:"y"}),we()}function Di(e,t){ye(t,!0);let r=q(void 0),i=q(0),s=a(()=>t.chunk.event),o=a(()=>f=>(f["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,(n(i)||n(s)._margin)&&(f["margin-block-start"]=`${n(s)._margin??n(i)}px`),f));function l(){b(i,eo(t.chunk,mn(n(r))),!0)}var u={reposition:l};return kr(e,{get chunk(){return t.chunk},get styles(){return n(o)},axis:"x",get forceMargin(){return n(i)},get el(){return n(r)},set el(f){b(r,f,!0)}}),we(u)}var yf=$("<div></div>");function Er(e,t){ye(t,!0);let r=De(t,"span",3,1),i=a(()=>re("state")),s=a(()=>n(i).mainEl),o=a(()=>n(i).now),l=a(()=>n(i).today),u=a(()=>n(i).options.slotDuration),f=a(()=>n(i).options.slotHeight),d=a(()=>n(i).options.theme),h=a(()=>re("view-state")),g=a(()=>n(h).sidebarWidth),c=a(()=>{for(let w of t.days)if(je(w.dayStart,n(l)))return w;return{}}),v=a(()=>n(c).gridColumn),p=a(()=>n(c).start),_=a(()=>n(c).end),m=a(()=>{if(n(o)<n(p)||n(o)>n(_))return null;let w=_e(n(u));return(n(o)-n(p))/1e3/w*n(f)}),y=a(()=>({root:n(s),rootMargin:gn()?`0px -${n(g)+5.5}px 0px 0px`:`0px 0px 0px -${n(g)+5.5}px`,threshold:0}));function E(w,k){w.classList.toggle(n(d).hidden,!k.isIntersecting)}var T=ue(),C=Q(T);{var D=w=>{var k=yf();let M;Oe(k,()=>Us(E,n(y))),ae(()=>{O(k,1,n(d).nowIndicator),M=Pt(k,"",M,{"grid-column":`${n(v)+1} / span ${r()??""}`,"inset-block-start":`${n(m)??""}px`})}),S(w,k)};ce(C,w=>{n(v)&&n(m)!==null&&w(D)})}S(e,T),we()}var wf=$('<div><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div>'),bf=$("<div><time></time></div>"),kf=$('<section><header><aside></aside> <div role="row"><!></div> <!></header> <div role="rowgroup"><aside aria-hidden="true"></aside> <div role="row"></div> <div><!> <!> <!></div></div> <!></section>');function Do(e,t){ye(t,!0);let r=De(t,"viewState",7),i=re("state");r()||r(new vf(i)),Fn("view-state",r());let s=a(()=>i.mainEl),o=a(()=>i.viewDates),l=a(()=>i.options.allDayContent),u=a(()=>i.options.allDaySlot),f=a(()=>i.options.columnWidth),d=a(()=>i.options.nowIndicator),h=a(()=>i.options.scrollTime),g=a(()=>i.options.slotHeight),c=a(()=>i.options.slotDuration),v=a(()=>i.options.theme),p=a(()=>r().allDayChunks),_=a(()=>r().allDayBgChunks),m=a(()=>r().allDayIChunks),y=a(()=>r().bgChunks),E=a(()=>r().chunks),T=a(()=>r().iChunks),C=a(()=>r().grid),D=a(()=>r().sidebarWidth),w=a(()=>r().slots),k=a(()=>r().slotLabelPeriodicity),M=a(()=>r().slotTimeLimits),Y=q(0),R=a(()=>of(n(l)));Xe(()=>{n(h),kt(n(o))||hn().then(te)});function te(){n(s).scrollTop=((_e(n(h))-_e(n(M).min))/_e(n(c))-.5)*n(g)}let he=[];function be(){ui(he,n(p))}Xe(be);var ie=ue(),X=Q(ie);{var z=P=>{var W=kf();let H;var B=de(W),V=de(B),oe=se(V,2),x=de(oe);{var N=F=>{var G=ue(),ge=Q(G);Xt(ge,()=>t.header),S(F,G)},L=F=>{var G=ue(),ge=Q(G);le(ge,17,()=>n(C)[0],Ce,(me,ne,Ie)=>{let Be=()=>n(ne).dayStart,at=()=>n(ne).disabled,Ae=()=>n(ne).highlight;jn(me,{get date(){return Be()},colIndex:1+Ie,get disabled(){return at()},get highlight(){return Ae()},children:(xe,lt)=>{br(xe,{get date(){return Be()}})},$$slots:{default:!0}})}),S(F,G)};ce(x,F=>{t.header?F(N):F(L,!1)})}var K=se(oe,2);{var nt=F=>{var G=wf(),ge=de(G);Oe(ge,()=>Qe(n(R)));var me=se(ge,2);le(me,21,()=>n(C),Ce,(Ae,xe,lt)=>{var ze=ue(),pt=Q(ze);le(pt,17,()=>n(xe),Ce,(Pn,xi,Si)=>{{let Ri=a(()=>lt+1===Te(n(C))&&Si+1===Te(n(xe)));Co(Pn,{get day(){return n(xi)},allDay:!0,get noIeb(){return n(Ri)}})}}),S(Ae,ze)});var ne=se(me,2),Ie=de(ne);le(Ie,19,()=>n(p),Ae=>Ae.id,(Ae,xe,lt)=>{st(Di(Ae,{get chunk(){return n(xe)}}),(ze,pt)=>he[pt]=ze,ze=>he?.[ze],()=>[n(lt)])});var Be=se(Ie,2);le(Be,17,()=>n(_),Ae=>Ae.id,(Ae,xe)=>{Di(Ae,{get chunk(){return n(xe)}})});var at=se(Be,2);le(at,17,()=>n(m),Ce,(Ae,xe)=>{Di(Ae,{get chunk(){return n(xe)}})}),ae(()=>{O(G,1,n(v).allDay),O(ge,1,n(v).sidebar),O(me,1,n(v).grid),O(ne,1,n(v).events)}),S(F,G)};ce(K,F=>{n(u)&&F(nt)})}var Ne=se(B,2),Dt=de(Ne);le(Dt,21,()=>n(w),Ce,(F,G,ge)=>{var me=bf();let ne;var Ie=de(me);Oe(Ie,()=>Qe(n(G)[1])),ae(()=>{O(me,1,Ft([n(v).slot,!ge&&n(v).hidden])),ne=Pt(me,"",ne,{"--ec-slot-label-periodicity":n(G)[2]}),Pe(Ie,"datetime",n(G)[0])}),S(F,me)});var Me=se(Dt,2);le(Me,21,()=>n(C),Ce,(F,G,ge)=>{var me=ue(),ne=Q(me);le(ne,17,()=>n(G),Ce,(Ie,Be,at)=>{{let Ae=a(()=>ge+1===Te(n(C))&&at+1===Te(n(G)));Co(Ie,{get day(){return n(Be)},get noIeb(){return n(Ae)},noBeb:!0})}}),S(F,me)});var He=se(Me,2),mt=de(He);le(mt,17,()=>n(E),F=>F.id,(F,G)=>{Ci(F,{get chunk(){return n(G)}})});var zt=se(mt,2);le(zt,17,()=>n(y),F=>F.id,(F,G)=>{Ci(F,{get chunk(){return n(G)}})});var U=se(zt,2);le(U,17,()=>n(T),Ce,(F,G)=>{Ci(F,{get chunk(){return n(G)}})});var J=se(Ne,2);{var Re=F=>{var G=ue(),ge=Q(G);{var me=Ie=>{var Be=ue(),at=Q(Be);Xt(at,()=>t.nowIndicator),S(Ie,Be)},ne=Ie=>{Er(Ie,{get days(){return n(C)[0]}})};ce(ge,Ie=>{t.nowIndicator?Ie(me):Ie(ne,!1)})}S(F,G)};ce(J,F=>{n(d)&&F(Re)})}st(W,F=>i.mainEl=F,()=>i?.mainEl),Oe(W,()=>ei(be)),ae(F=>{O(W,1,n(v).main),H=Pt(W,"",H,F),O(B,1,n(v).header),O(V,1,n(v).sidebar),O(oe,1,n(v).grid),O(Ne,1,n(v).body),O(Dt,1,n(v).sidebar),O(Me,1,n(v).grid),O(He,1,n(v).events)},[()=>({"--ec-grid-cols":Te(n(C))*Te(n(C)[0]),"--ec-col-group-span":Te(n(C)[0]),"--ec-col-width":n(f)??"minmax(0, 1fr)","--ec-slot-label-periodicity":n(k),"--ec-slot-height":`${n(g)??""}px`,"--ec-header-height":`${n(Y)??""}px`,"--ec-sidebar-width":`${n(D)??""}px`})]),dr(V,"offsetWidth",F=>r().sidebarWidth=F),dr(B,"offsetHeight",F=>b(Y,F)),S(P,W)};ce(X,P=>{!kt(n(C))&&!kt(n(C)[0])&&P(z)})}S(e,ie),we()}var Cf=$("<!> <!>",1);function Df(e,t){ye(t,!0);let r=re("state"),i=new pf(r),s=a(()=>r.today),o=a(()=>r.mainEl),l=a(()=>r.viewDates),u=a(()=>r.options.scrollTime),f=a(()=>r.options.datesAboveResources),d=a(()=>r.options.theme),h=a(()=>i.grid),g=a(()=>i.sidebarWidth),c=qe([]);Xe(()=>{n(f)&&(n(l),n(u),hn().then(v))});function v(){if(n(s)>=n(l)[0]&&n(s)<=n(l).at(-1))for(let p of n(h)){let _=p[0];if(je(_.dayStart,n(s))){n(o).scrollLeft=(n(o).scrollWidth-n(g))/(Te(n(h))*Te(p))*(_.gridColumn-1)*(gn()?-1:1);break}}}Do(e,{get viewState(){return i},header:m=>{var y=Cf(),E=Q(y);le(E,17,()=>n(h),Ce,(D,w,k)=>{const M=a(()=>{const{dayStart:Y,resource:R,disabled:te,highlight:he}=n(w)[0];return{date:Y,resource:R,disabled:te,highlight:he}});{let Y=a(()=>Te(n(h)[0])>1?n(d).colGroup:void 0),R=a(()=>Te(n(w))),te=a(()=>1+k*Te(n(w))),he=a(()=>n(f)&&n(M).disabled),be=a(()=>n(f)&&n(M).highlight);jn(D,{get date(){return n(M).date},get className(){return n(Y)},get weekday(){return n(f)},get colSpan(){return n(R)},get colIndex(){return n(te)},get disabled(){return n(he)},get highlight(){return n(be)},children:(ie,X)=>{var z=ue(),P=Q(z);{var W=B=>{br(B,{get date(){return n(M).date}})},H=B=>{ki(B,{get resource(){return n(M).resource},setLabel:V=>c[k]=V+", "})};ce(P,B=>{n(f)?B(W):B(H,!1)})}S(ie,z)},$$slots:{default:!0}})}});var T=se(E,2);{var C=D=>{var w=ue(),k=Q(w);le(k,17,()=>n(h),Ce,(M,Y,R)=>{var te=ue(),he=Q(te);le(he,17,()=>n(Y),Ce,(be,ie,X)=>{const z=a(()=>{const{dayStart:P,resource:W,disabled:H,highlight:B}=n(ie);return{date:P,resource:W,disabled:H,highlight:B}});{let P=a(()=>1+X+R*Te(n(Y)));jn(be,{get date(){return n(z).date},get colIndex(){return n(P)},get disabled(){return n(z).disabled},get highlight(){return n(z).highlight},children:(W,H)=>{var B=ue(),V=Q(B);{var oe=N=>{ki(N,{get resource(){return n(z).resource},get date(){return n(z).date}})},x=N=>{br(N,{get date(){return n(z).date},get alPrefix(){return c[R]}})};ce(V,N=>{n(f)?N(oe):N(x,!1)})}S(W,B)},$$slots:{default:!0}})}}),S(M,te)}),S(D,w)};ce(T,D=>{Te(n(h)[0])>1&&D(C)})}S(m,y)},nowIndicator:m=>{var y=ue(),E=Q(y);{var T=D=>{{let w=a(()=>n(h).flat()),k=a(()=>Te(n(h)[0]));Er(D,{get days(){return n(w)},get span(){return n(k)}})}},C=D=>{var w=ue(),k=Q(w);{var M=R=>{var te=ue(),he=Q(te);le(he,17,()=>n(h),Ce,(be,ie)=>{Er(be,{get days(){return n(ie)}})}),S(R,te)},Y=R=>{{let te=a(()=>n(h).flat()),he=a(()=>Te(n(h)));Er(R,{get days(){return n(te)},get span(){return n(he)}})}};ce(k,R=>{Te(n(h)[0])>1?R(M):R(Y,!1)})}S(D,w)};ce(E,D=>{n(f)?D(T):D(C,!1)})}S(m,y)},$$slots:{header:!0,nowIndicator:!0}}),we()}const Ef={createOptions(e){yo(e),yi(e),wo(e),fe(e,{datesAboveResources:!1,view:"resourceTimeGridWeek"}),fe(e.buttonText,{resourceTimeGridDay:"resources",resourceTimeGridWeek:"resources"}),fe(e.theme,{colGroup:"ec-col-group"}),fe(e.views,{resourceTimeGridDay:{buttonText:Jn,component:Eo,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:ot("ec-resource ec-time-grid ec-day-view")},resourceTimeGridWeek:{buttonText:Qn,component:Eo,duration:{weeks:1},theme:ot("ec-resource ec-time-grid ec-week-view")}})},createParsers(e){wi(e)}};function Eo(e){return _i(e),Df}function Ei(e,t,r,i=!0){let s=[],o,l,u,f,d,h,g=0;for(let{gridColumn:c,gridRow:v,resource:p,dayStart:_,dayEnd:m,start:y,end:E,disabled:T}of t)T||(r?Rn(e,_,m,p)&&(s.length||(o=_,u=c,f=v,d=p),s.push(_),l=E):Rn(e,y,E,p)&&(s.length||(o=y,u=c,f=v,d=p,h=ht(e.start-y,0)/1e3),s.push(_),l=E,g+=(Ht(E,e.end)-ht(y,e.start))/1e3));if(s.length){let c=Zn(e,o,l);return fe(c,{gridColumn:u,gridRow:f,resource:d,dates:s,left:h,width:g}),i&&fi(c),[c]}return[]}function Tf(e){let t={};for(let r of e){let{gridColumn:i,gridRow:s}=r;for(let l=0;l<r.dates.length;++l){let u=`${s}_${i+l}`;t[u]?t[u].push(r):t[u]=[r]}let o=`${s}_${i}`;r.day=t[o]}}function xf(e,t,r){let i=1,s=i+t,o=e.day;o.sort((l,u)=>(l.top??Number.POSITIVE_INFINITY)-(u.top??Number.POSITIVE_INFINITY));for(let l of o)if(!(l===e||!("top"in l))&&(r||e.start<l.end&&e.end>l.start)&&i<l.bottom&&s>l.top){let u=l.bottom-i+1;i+=u,s+=u}return fe(e,{top:i,bottom:s}),i}function Sf(e,t){return e[t.getTime()]??{min:We(0),max:We("24:00:00")}}function Rf(e,t){return()=>{let{viewDates:r,options:{highlightedDates:i,validRange:s}}=e,{dayTimeLimits:o,viewResources:l}=t,u=[];return j(()=>{let f=1;for(let d of l){let h=[],g=1;for(let c of r){let v=o[c.getTime()];h.push({gridColumn:g,gridRow:f,resource:d,start:Se(Z(c),v.min),end:Se(Z(c),v.max),dayStart:c,dayEnd:Ct(Z(c)),disabled:Ln(c,s),highlight:i.some(p=>je(p,c))}),++g}u.push(h),++f}}),u}}function If(e,t){return()=>{let{filteredEvents:r}=e,{grid:i,monthView:s}=t,o=[],l=[];return j(()=>{for(let u of r)for(let f of i)gt(u.display)?(!s||u.allDay)&&(l=l.concat(Ei(u,f,s))):o=o.concat(Ei(u,f,s));Tf(o)}),{chunks:o,bgChunks:l}}}function Lf(e,t){return()=>{let{iEvents:r}=e,{grid:i,monthView:s}=t,o=[];for(let[,l]of r)l&&j(()=>{for(let u of i)o=o.concat(Ei(l,u,s,!1))});return o}}function Pf(e){return()=>{let{filteredEvents:t,viewDates:r,options:{flexibleSlotTimeLimits:i,slotMinTime:s,slotMaxTime:o}}=e,l={};return j(()=>{for(let u of r)l[u.getTime()]=lo(s,o,i,[u],t)}),l}}function Mf(e,t){return()=>{let{viewDates:r,options:{slotDuration:i}}=e,{dayTimeLimits:s,intlSlotLabel:o,slotLabelPeriodicity:l}=t,u={};return j(()=>{for(let f of r){let d=f.getTime();u[d]=d in s?ao(f,i,l,s[d],o):[]}}),u}}function Af(e){return()=>{let{resources:t}=e,r;return j(()=>{r=t.some(i=>Kt(i).children.length)}),r}}function Of(e){return()=>{let{options:{slotDuration:t}}=e,r;return j(()=>{r=!_e(t)}),r}}class Nf extends ko(bi()){#e;get dayTimeLimits(){return n(this.#e)}set dayTimeLimits(t){b(this.#e,t)}#n;get daySlots(){return n(this.#n)}set daySlots(t){b(this.#n,t)}#t;get grid(){return n(this.#t)}set grid(t){b(this.#t,t)}#r;get monthView(){return n(this.#r)}set monthView(t){b(this.#r,t)}#s;get chunks(){return n(this.#s)}set chunks(t){b(this.#s,t)}#i;get bgChunks(){return n(this.#i)}set bgChunks(t){b(this.#i,t)}#o;get iChunks(){return n(this.#o)}set iChunks(t){b(this.#o,t)}#a;get nestedResources(){return n(this.#a)}set nestedResources(t){b(this.#a,t)}constructor(t){super(t),this.#e=a(Pf(t)),this.#n=a(Mf(t,this)),this.#t=a(Rf(t,this)),this.#r=a(Of(t));let r=a(If(t,this)),i=a(()=>n(r).chunks),s=a(()=>n(r).bgChunks);this.#s=a(()=>n(i)),this.#i=a(()=>n(s)),this.#o=a(Lf(t,this)),this.#a=a(Af(t))}}function Ff(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).options.slotWidth),s=a(()=>re("view-state")),o=a(()=>n(s).monthView),l=a(()=>n(s).snap),u=a(()=>t.day.dayStart),f=a(()=>t.day.start),d=a(()=>t.day.resource),h=a(()=>t.day.disabled),g=a(()=>t.day.highlight),c=q(void 0);function v(p,_){if(n(o))return n(u);{let m=sn(n(c)),y=m.width/n(c).offsetWidth;return Se(Z(n(f)),n(l).duration,ni((gn()?m.right-p:p-m.left)/(n(i)*n(l).ratio*y)))}}wr(e,{get allDay(){return n(o)},get date(){return n(u)},get resource(){return n(d)},dateFromPoint:v,get disabled(){return n(h)},get highlight(){return n(g)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return n(c)},set el(p){b(c,p,!0)}}),we()}function Ti(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).options.slotDuration),s=a(()=>n(r).options.slotWidth),o=a(()=>re("view-state")),l=a(()=>n(o).monthView),u=q(void 0),f=q(1),d=a(()=>t.chunk.event),h=a(()=>v=>{if(v["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,v["grid-row"]=t.chunk.gridRow,!n(l)){let _=t.chunk.left/_e(n(i))*n(s);v["inset-inline-start"]=`${_}px`,v["inline-size"]=`${t.chunk.width/_e(n(i))*n(s)}px`}let p=n(f);if(n(d)._margin){let[_,m]=n(d)._margin;t.chunk.gridRow===m&&(p=_)}return v["margin-block-start"]=`${p}px`,v});function g(){b(f,xf(t.chunk,mn(n(u)),n(l)),!0)}var c={reposition:g};{let v=a(()=>[n(f),t.chunk.gridRow]);kr(e,{get chunk(){return t.chunk},get styles(){return n(h)},axis:"x",get forceMargin(){return n(v)},get el(){return n(u)},set el(p){b(u,p,!0)}})}return we(c)}var Hf=$("<span></span>"),Wf=$("<button><!></button>"),zf=$("<!> <span><!></span>",1);function Uf(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).resources),s=a(()=>n(r).options.theme),o=q({}),l=q(!0);fn(()=>{b(o,Kt(t.resource)),b(l,n(o).expanded,!0)});function u(){b(l,!n(l)),n(o).expanded=n(l),f(n(o).children,n(l)),n(i).length=n(i).length}function f(p,_){for(let m of p){let y=Kt(m);y.hidden=!_,y.expanded&&f(y.children,_)}}var d=zf(),h=Q(d);le(h,17,()=>Array(n(o).level),Ce,(p,_)=>{var m=Hf();ae(()=>O(m,1,n(s).expander)),S(p,m)});var g=se(h,2),c=de(g);{var v=p=>{var _=Wf();_.__click=u;var m=de(_);{var y=T=>{var C=Ms("−");S(T,C)},E=T=>{var C=Ms("+");S(T,C)};ce(m,T=>{n(l)?T(y):T(E,!1)})}ae(()=>O(_,1,n(s).button)),S(p,_)};ce(c,p=>{n(o).children?.length&&p(v)})}ae(()=>O(g,1,n(s).expander)),S(e,d),we()}nn(["click"]);var Vf=$("<div></div>");function Bf(e,t){ye(t,!0);let r=a(()=>re("state")),i=a(()=>n(r).mainEl),s=a(()=>n(r).now),o=a(()=>n(r).today),l=a(()=>n(r).options.slotDuration),u=a(()=>n(r).options.slotWidth),f=a(()=>n(r).options.theme),d=a(()=>re("view-state")),h=a(()=>n(d).grid),g=a(()=>n(d).sidebarWidth),c=a(()=>{for(let w of n(h)[0])if(je(w.dayStart,n(o)))return w;return{}}),v=a(()=>n(c).gridColumn),p=a(()=>n(c).start),_=a(()=>n(c).end),m=a(()=>{if(n(s)<n(p)||n(s)>n(_))return null;let w=_e(n(l));return(n(s)-n(p))/1e3/w*n(u)}),y=a(()=>({root:n(i),rootMargin:gn()?`0px -${n(g)+1}px 0px 0px`:`0px 0px 0px -${n(g)+1}px`,threshold:0}));function E(w,k){w.classList.toggle(n(f).hidden,!k.isIntersecting)}var T=ue(),C=Q(T);{var D=w=>{var k=Vf();let M;Oe(k,()=>Us(E,n(y))),ae(()=>{O(k,1,n(f).nowIndicator),M=Pt(k,"",M,{"grid-column":n(v)+1,"grid-row":`2 / span ${n(h).length??""}`,"inset-inline-start":`${n(m)??""}px`})}),S(w,k)};ce(C,w=>{n(v)&&n(m)!==null&&w(D)})}S(e,T),we()}var Gf=$("<div><time></time></div>"),Yf=$('<div role="rowheader"><!> <!></div>'),qf=$('<section><header><aside></aside> <div role="row"><!> <!></div></header> <div role="rowgroup"><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div> <!></section>');function Xf(e,t){ye(t,!0);let r=re("state"),i=new Nf(r);Fn("view-state",i);let s=a(()=>r.mainEl),o=a(()=>r.today),l=a(()=>r.viewDates),u=a(()=>r.options.columnWidth),f=a(()=>r.options.nowIndicator),d=a(()=>r.options.scrollTime),h=a(()=>r.options.slotDuration),g=a(()=>r.options.slotHeight),c=a(()=>r.options.slotWidth),v=a(()=>r.options.theme),p=a(()=>i.chunks),_=a(()=>i.bgChunks),m=a(()=>i.iChunks),y=a(()=>i.daySlots),E=a(()=>i.dayTimeLimits),T=a(()=>i.grid),C=a(()=>i.monthView),D=a(()=>i.nestedResources),w=a(()=>i.sidebarWidth),k=a(()=>i.slotLabelPeriodicity),M=a(()=>i.viewResources),Y=q(0);Xe(()=>{n(d),kt(n(l))||hn().then(R)});function R(){let z=0,P=n(o)<n(l)[0]||n(o)>n(l).at(-1);if(n(C)){if(!P){let W=n(T)[0];for(let H of W)if(je(H.dayStart,n(o))){n(s).scrollLeft=(n(s).scrollWidth-n(w))/Te(W)*(H.gridColumn-1)*(gn()?-1:1);break}}}else{for(let W of n(l)){let H=Sf(n(E),W);if(P||je(W,n(o))){z+=ht(Ht(_e(n(d)),_e(H.max))-_e(H.min),0);break}else z+=_e(H.max)-_e(H.min)}n(s).scrollLeft=z/_e(n(h))*n(c)*(gn()?-1:1)}}let te=[];function he(){ui(te,n(p))}Xe(he);var be=ue(),ie=Q(be);{var X=z=>{var P=qf();let W;var H=de(P),B=de(H),V=se(B,2),oe=de(V);le(oe,17,()=>n(T)[0],Ce,(U,J,Re)=>{let F=()=>n(J).dayStart,G=()=>n(J).disabled,ge=()=>n(J).highlight;jn(U,{get date(){return F()},colIndex:1+Re,get disabled(){return G()},get highlight(){return ge()},children:(me,ne)=>{br(me,{get date(){return F()}})},$$slots:{default:!0}})});var x=se(oe,2);{var N=U=>{var J=ue(),Re=Q(J);le(Re,17,()=>n(T)[0],Ce,(F,G)=>{let ge=()=>n(G).dayStart,me=()=>n(G).disabled,ne=()=>n(G).highlight;jn(F,{get date(){return ge()},get className(){return n(v).slots},get disabled(){return me()},get highlight(){return ne()},ariaHidden:!0,children:(Ie,Be)=>{var at=ue(),Ae=Q(at);le(Ae,17,()=>n(y)[ge().getTime()],Ce,(xe,lt)=>{var ze=Gf();let pt;var Pn=de(ze);Oe(Pn,()=>Qe(n(lt)[1])),ae(()=>{O(ze,1,n(v).slot),pt=Pt(ze,"",pt,{"--ec-slot-label-periodicity":n(lt)[2]}),Pe(Pn,"datetime",n(lt)[0])}),S(xe,ze)}),S(Ie,at)},$$slots:{default:!0}})}),S(U,J)};ce(x,U=>{n(C)||U(N)})}var L=se(H,2),K=de(L);le(K,21,()=>n(M),Ce,(U,J)=>{var Re=Yf(),F=de(Re);{var G=me=>{Uf(me,{get resource(){return n(J)}})};ce(F,me=>{n(D)&&me(G)})}var ge=se(F,2);ki(ge,{get resource(){return n(J)}}),ae(()=>O(Re,1,n(v).rowHead)),S(U,Re)});var nt=se(K,2);le(nt,21,()=>n(T),Ce,(U,J,Re)=>{var F=ue(),G=Q(F);le(G,17,()=>n(J),Ce,(ge,me,ne)=>{{let Ie=a(()=>ne+1===Te(n(J))),Be=a(()=>Re+1===Te(n(T)));Ff(ge,{get day(){return n(me)},get noIeb(){return n(Ie)},get noBeb(){return n(Be)}})}}),S(U,F)});var Ne=se(nt,2),Dt=de(Ne);le(Dt,19,()=>n(p),U=>U.id,(U,J,Re)=>{st(Ti(U,{get chunk(){return n(J)}}),(F,G)=>te[G]=F,F=>te?.[F],()=>[n(Re)])});var Me=se(Dt,2);le(Me,17,()=>n(_),U=>U.id,(U,J)=>{Ti(U,{get chunk(){return n(J)}})});var He=se(Me,2);le(He,17,()=>n(m),Ce,(U,J)=>{Ti(U,{get chunk(){return n(J)}})});var mt=se(L,2);{var zt=U=>{Bf(U,{})};ce(mt,U=>{n(f)&&!n(C)&&U(zt)})}st(P,U=>r.mainEl=U,()=>r?.mainEl),Oe(P,()=>ei(he)),ae(U=>{O(P,1,n(v).main),W=Pt(P,"",W,U),O(H,1,n(v).header),O(B,1,n(v).sidebar),O(V,1,n(v).grid),O(L,1,n(v).body),O(K,1,n(v).sidebar),O(nt,1,n(v).grid),O(Ne,1,n(v).events)},[()=>({"--ec-grid-cols":Te(n(T)[0]),"--ec-grid-rows":`${Te(n(T))>1?`repeat(${Te(n(T))-1}, auto)`:""} 1fr`,"--ec-col-width":n(u)??"minmax(4em, 1fr)","--ec-slot-label-periodicity":n(k),"--ec-slot-height":`${n(g)??""}px`,"--ec-slot-width":`${n(c)??""}px`,"--ec-header-height":`${n(Y)??""}px`,"--ec-sidebar-width":`${n(w)??""}px`})]),dr(B,"offsetWidth",U=>i.sidebarWidth=U),dr(H,"offsetHeight",U=>b(Y,U)),S(z,P)};ce(ie,z=>{!kt(n(T))&&!kt(n(T)[0])&&z(X)})}S(e,be),we()}const Kf={createOptions(e){yi(e),wo(e),e.slotWidth=32,e.buttonText.resourceTimelineDay="timeline",e.buttonText.resourceTimelineWeek="timeline",e.buttonText.resourceTimelineMonth="timeline",e.theme.expander="ec-expander",e.theme.rowHead="ec-row-head",e.theme.slots="ec-slots",e.view="resourceTimelineWeek",e.views.resourceTimelineDay={buttonText:Jn,component:To,displayEventEnd:!1,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:ot("ec-resource ec-timeline ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},e.views.resourceTimelineWeek={buttonText:Qn,component:To,displayEventEnd:!1,duration:{weeks:1},theme:ot("ec-resource ec-timeline ec-week-view")},e.views.resourceTimelineMonth={buttonText:di,component:xo,displayEventEnd:!1,dayHeaderFormat:{weekday:"short",day:"numeric"},duration:{months:1},slotDuration:{days:1},theme:ot("ec-resource ec-timeline ec-month-view"),titleFormat:{year:"numeric",month:"long"}}},createParsers(e){wi(e)}};function To(e){return _i(e),xo(e)}function xo(e){return e.features=["timeline"],e.extensions.viewResources=t=>t.filter(r=>!Kt(r).hidden),Xf}const Zf={createOptions(e){yi(e),yo(e),fe(e.buttonText,{timeGridDay:"day",timeGridWeek:"week"}),fe(e,{view:"timeGridWeek"}),fe(e.views,{timeGridDay:{buttonText:Jn,component:So,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:ot("ec-time-grid ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},timeGridWeek:{buttonText:Qn,component:So,duration:{weeks:1},theme:ot("ec-time-grid ec-week-view")}})},createParsers(e){wi(e)}};function So(e){return _i(e),Do}function Jf(e,t,r){return Ya(hu,{target:e,props:{plugins:t,options:r}})}function Qf(e){return Xa(e)}function jf(e,t){return Jf(e,[Mu,Ku,rf,Ef,Kf,Zf],t)}return tr.create=jf,tr.destroy=Qf,Object.defineProperty(tr,Symbol.toStringTag,{value:"Module"}),tr})({});
6
6
  //# sourceMappingURL=event-calendar.min.js.map