@event-calendar/build 5.1.4 → 5.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * EventCalendar v5.1.4
2
+ * EventCalendar v5.2.1
3
3
  * https://github.com/vkurko/calendar
4
4
  */
5
- var EventCalendar=(function(Kn){"use strict";var bi=Array.isArray,_o=Array.prototype.indexOf,Zn=Array.from,ki=Object.defineProperty,mn=Object.getOwnPropertyDescriptor,yo=Object.getOwnPropertyDescriptors,wo=Object.prototype,bo=Array.prototype,Ci=Object.getPrototypeOf,Di=Object.isExtensible;const Yt=()=>{};function ko(e){for(var t=0;t<e.length;t++)e[t]()}function Ei(){var e,t,r=new Promise((i,s)=>{e=i,t=s});return{promise:r,resolve:e,reject:t}}function Co(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 Ue=2,Er=4,Jn=8,Ti=1<<24,Mt=16,At=32,en=64,Qn=128,_t=512,Ve=1024,it=2048,Dt=4096,st=8192,Ot=16384,Tr=32768,Gt=65536,xi=1<<17,Si=1<<18,pn=1<<19,Ri=1<<20,Nt=1<<25,tn=32768,xr=1<<21,Sr=1<<22,qt=1<<23,In=Symbol("$state"),Do=Symbol("legacy props"),Eo=Symbol(""),_n=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function Ii(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function To(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function xo(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function So(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ro(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Io(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Lo(){throw new Error("https://svelte.dev/e/get_abort_signal_outside_reaction")}function Po(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Mo(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Ao(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Oo(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function No(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Fo=1,Ho=2,Li=4,Uo=8,Wo=16,zo=1,Vo=4,Bo=8,Yo=16,Go=1,qo=2,Be=Symbol(),Xo="http://www.w3.org/1999/xhtml";function Ko(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Pi(e){return e===this.v}function Zo(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Mi(e){return!Zo(e,this.v)}let Xf=!1,Ye=null;function yn(e){Ye=e}function te(e){return Oi().get(e)}function Ln(e,t){return Oi().set(e,t),t}function be(e,t=!1,r){Ye={p:Ye,i:!1,c:null,e:null,s:e,x:null,l:null}}function ke(e){var t=Ye,r=t.e;if(r!==null){t.e=null;for(var i of r)$i(i)}return e!==void 0&&(t.x=e),t.i=!0,Ye=t.p,e??{}}function Ai(){return!0}function Oi(e){return Ye===null&&Ii(),Ye.c??=new Map(Jo(Ye)||void 0)}function Jo(e){let t=e.p;for(;t!==null;){const r=t.c;if(r!==null)return r;t=t.p}return null}let nn=[];function Ni(){var e=nn;nn=[],ko(e)}function rn(e){if(nn.length===0&&!Pn){var t=nn;queueMicrotask(()=>{t===nn&&Ni()})}nn.push(e)}function Qo(){for(;nn.length>0;)Ni()}function Fi(e){var t=Te;if(t===null)return ge.f|=qt,e;if((t.f&Tr)===0){if((t.f&Qn)===0)throw e;t.b.error(e)}else wn(e,t)}function wn(e,t){for(;t!==null;){if((t.f&Qn)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const jn=new Set;let Le=null,ct=null,ht=[],$n=null,Rr=!1,Pn=!1;class Et{committed=!1;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=0;#r=0;#s=null;#i=new Set;#o=new Set;skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#r>0}process(t){ht=[],this.apply();var r={parent:null,effect:null,effects:[],render_effects:[]};for(const i of t)this.#a(i,r);this.is_fork||this.#f(),this.is_deferred()?(this.#l(r.effects),this.#l(r.render_effects)):(Le=null,Ui(r.render_effects),Ui(r.effects),this.#s?.resolve()),ct=null}#a(t,r){t.f^=Ve;for(var i=t.first;i!==null;){var s=i.f,o=(s&(At|en))!==0,l=o&&(s&Ve)!==0,u=l||(s&st)!==0||this.skipped_effects.has(i);if((i.f&Qn)!==0&&i.b?.is_pending()&&(r={parent:r,effect:i,effects:[],render_effects:[]}),!u&&i.fn!==null){o?i.f^=Ve:(s&Er)!==0?r.effects.push(i):Fn(i)&&((i.f&Mt)!==0&&this.#i.add(i),Hn(i));var f=i.first;if(f!==null){i=f;continue}}var d=i.parent;for(i=i.next;i===null&&d!==null;)d===r.effect&&(this.#l(r.effects),this.#l(r.render_effects),r=r.parent),i=d.next,d=d.parent}}#l(t){for(const r of t)(r.f&it)!==0?this.#i.add(r):(r.f&Dt)!==0&&this.#o.add(r),this.#u(r.deps),qe(r,Ve)}#u(t){if(t!==null)for(const r of t)(r.f&Ue)===0||(r.f&tn)===0||(r.f^=tn,this.#u(r.deps))}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&qt)===0&&(this.current.set(t,t.v),ct?.set(t,t.v))}activate(){Le=this,this.apply()}deactivate(){Le===this&&(Le=null,ct=null)}flush(){if(this.activate(),ht.length>0){if(Hi(),Le!==null&&Le!==this)return}else this.#n===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#t)t(this);this.#t.clear()}#f(){if(this.#r===0){for(const t of this.#e)t();this.#e.clear()}this.#n===0&&this.#d()}#d(){if(jn.size>1){this.previous.clear();var t=ct,r=!0,i={parent:null,effect:null,effects:[],render_effects:[]};for(const o of jn){if(o===this){r=!1;continue}const l=[];for(const[f,d]of this.current){if(o.current.has(f))if(r&&d!==o.current.get(f))o.current.set(f,d);else continue;l.push(f)}if(l.length===0)continue;const u=[...o.current.keys()].filter(f=>!this.current.has(f));if(u.length>0){var s=ht;ht=[];const f=new Set,d=new Map;for(const h of l)Wi(h,u,f,d);if(ht.length>0){Le=o,o.apply();for(const h of ht)o.#a(h,i);o.deactivate()}ht=s}}Le=null,ct=t}this.committed=!0,jn.delete(this)}increment(t){this.#n+=1,t&&(this.#r+=1)}decrement(t){this.#n-=1,t&&(this.#r-=1),this.revive()}revive(){for(const t of this.#i)this.#o.delete(t),qe(t,it),sn(t);for(const t of this.#o)qe(t,Dt),sn(t);this.flush()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#t.add(t)}settled(){return(this.#s??=Ei()).promise}static ensure(){if(Le===null){const t=Le=new Et;jn.add(Le),Pn||Et.enqueue(()=>{Le===t&&t.flush()})}return Le}static enqueue(t){rn(t)}apply(){}}function jo(e){var t=Pn;Pn=!0;try{for(var r;;){if(Qo(),ht.length===0&&(Le?.flush(),ht.length===0))return $n=null,r;Hi()}}finally{Pn=t}}function Hi(){var e=ln;Rr=!0;var t=null;try{var r=0;for(rr(!0);ht.length>0;){var i=Et.ensure();if(r++>1e3){var s,o;$o()}i.process(ht),Xt.clear()}}finally{Rr=!1,rr(e),$n=null}}function $o(){try{Io()}catch(e){wn(e,$n)}}let Ft=null;function Ui(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var i=e[r++];if((i.f&(Ot|st))===0&&Fn(i)&&(Ft=new Set,Hn(i),i.deps===null&&i.first===null&&i.nodes===null&&(i.teardown===null&&i.ac===null?rs(i):i.fn=null),Ft?.size>0)){Xt.clear();for(const s of Ft){if((s.f&(Ot|st))!==0)continue;const o=[s];let l=s.parent;for(;l!==null;)Ft.has(l)&&(Ft.delete(l),o.push(l)),l=l.parent;for(let u=o.length-1;u>=0;u--){const f=o[u];(f.f&(Ot|st))===0&&Hn(f)}}Ft.clear()}}Ft=null}}function Wi(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&Ue)!==0?Wi(s,t,r,i):(o&(Sr|Mt))!==0&&(o&it)===0&&zi(s,t,i)&&(qe(s,it),sn(s))}}function zi(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(t.includes(s))return!0;if((s.f&Ue)!==0&&zi(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function sn(e){for(var t=$n=e;t.parent!==null;){t=t.parent;var r=t.f;if(Rr&&t===Te&&(r&Mt)!==0&&(r&Si)===0)return;if((r&(en|At))!==0){if((r&Ve)===0)return;t.f^=Ve}}ht.push(t)}function ea(e){let t=0,r=Kt(0),i;return()=>{An()&&(n(r),es(()=>(t===0&&(i=$(()=>e(()=>Tt(r)))),t+=1,()=>{rn(()=>{t-=1,t===0&&(i?.(),i=void 0,Tt(r))})})))}}var ta=Gt|pn|Qn;function na(e,t,r){new ra(e,t,r)}class ra{parent;#e=!1;#t;#n=null;#r;#s;#i;#o=null;#a=null;#l=null;#u=null;#f=null;#d=0;#c=0;#v=!1;#h=null;#y=ea(()=>(this.#h=Kt(this.#d),()=>{this.#h=null}));constructor(t,r,i){this.#t=t,this.#r=r,this.#s=i,this.parent=Te.b,this.#e=!!this.#r.pending,this.#i=On(()=>{Te.b=this;{var s=this.#p();try{this.#o=ot(()=>i(s))}catch(o){this.error(o)}this.#c>0?this.#m():this.#e=!1}return()=>{this.#f?.remove()}},ta)}#w(){try{this.#o=ot(()=>this.#s(this.#t))}catch(t){this.error(t)}this.#e=!1}#b(){const t=this.#r.pending;t&&(this.#a=ot(()=>t(this.#t)),Et.enqueue(()=>{var r=this.#p();this.#o=this.#g(()=>(Et.ensure(),ot(()=>this.#s(r)))),this.#c>0?this.#m():(an(this.#a,()=>{this.#a=null}),this.#e=!1)}))}#p(){var t=this.#t;return this.#e&&(this.#f=Ht(),this.#t.before(this.#f),t=this.#f),t}is_pending(){return this.#e||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#r.pending}#g(t){var r=Te,i=ge,s=Ye;St(this.#i),tt(this.#i),yn(this.#i.ctx);try{return t()}catch(o){return Fi(o),null}finally{St(r),tt(i),yn(s)}}#m(){const t=this.#r.pending;this.#o!==null&&(this.#u=document.createDocumentFragment(),this.#u.append(this.#f),os(this.#o,this.#u)),this.#a===null&&(this.#a=ot(()=>t(this.#t)))}#_(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#_(t);return}this.#c+=t,this.#c===0&&(this.#e=!1,this.#a&&an(this.#a,()=>{this.#a=null}),this.#u&&(this.#t.before(this.#u),this.#u=null))}update_pending_count(t){this.#_(t),this.#d+=t,this.#h&&bn(this.#h,this.#d)}get_effect_pending(){return this.#y(),n(this.#h)}error(t){var r=this.#r.onerror;let i=this.#r.failed;if(this.#v||!r&&!i)throw t;this.#o&&(Qe(this.#o),this.#o=null),this.#a&&(Qe(this.#a),this.#a=null),this.#l&&(Qe(this.#l),this.#l=null);var s=!1,o=!1;const l=()=>{if(s){Ko();return}s=!0,o&&No(),Et.ensure(),this.#d=0,this.#l!==null&&an(this.#l,()=>{this.#l=null}),this.#e=this.has_pending_snippet(),this.#o=this.#g(()=>(this.#v=!1,ot(()=>this.#s(this.#t)))),this.#c>0?this.#m():this.#e=!1};var u=ge;try{tt(null),o=!0,r?.(t,l),o=!1}catch(f){wn(f,this.#i&&this.#i.parent)}finally{tt(u)}i&&rn(()=>{this.#l=this.#g(()=>{Et.ensure(),this.#v=!0;try{return ot(()=>{i(this.#t,()=>t,()=>l)})}catch(f){return wn(f,this.#i.parent),null}finally{this.#v=!1}})})}}function ia(e,t,r,i){const s=tr;if(r.length===0&&e.length===0){i(t.map(s));return}var o=Le,l=Te,u=sa();function f(){Promise.all(r.map(d=>oa(d))).then(d=>{u();try{i([...t.map(s),...d])}catch(h){(l.f&Ot)===0&&wn(h,l)}o?.deactivate(),er()}).catch(d=>{wn(d,l)})}e.length>0?Promise.all(e).then(()=>{u();try{return f()}finally{o?.deactivate(),er()}}):f()}function sa(){var e=Te,t=ge,r=Ye,i=Le;return function(o=!0){St(e),tt(t),yn(r),o&&i?.activate()}}function er(){St(null),tt(null),yn(null)}function tr(e){var t=Ue|it,r=ge!==null&&(ge.f&Ue)!==0?ge:null;return Te!==null&&(Te.f|=pn),{ctx:Ye,deps:null,effects:null,equals:Pi,f:t,fn:e,reactions:null,rv:0,v:Be,wv:0,parent:r??Te,ac:null}}function oa(e,t){let r=Te;r===null&&To();var i=r.b,s=void 0,o=Kt(Be),l=!ge,u=new Map;return va(()=>{var f=Ei();s=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).then(()=>{d===Le&&d.committed&&d.deactivate(),er()})}catch(c){f.reject(c),er()}var d=Le;if(l){var h=!i.is_pending();i.update_pending_count(1),d.increment(h),u.get(d)?.reject(_n),u.delete(d),u.set(d,f)}const g=(c,v=void 0)=>{if(d.activate(),v)v!==_n&&(o.f|=qt,bn(o,v));else{(o.f&qt)!==0&&(o.f^=qt),bn(o,c);for(const[_,p]of u){if(u.delete(_),_===d)break;p.reject(_n)}}l&&(i.update_pending_count(-1),d.decrement(h))};f.promise.then(g,c=>g(null,c||"unknown"))}),Mr(()=>{for(const f of u.values())f.reject(_n)}),new Promise(f=>{function d(h){function g(){h===s?f(o):d(s)}h.then(g,g)}d(s)})}function a(e){const t=tr(e);return ls(t),t}function Vi(e){const t=tr(e);return t.equals=Mi,t}function Bi(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)Qe(t[r])}}function aa(e){for(var t=e.parent;t!==null;){if((t.f&Ue)===0)return(t.f&Ot)===0?t:null;t=t.parent}return null}function Ir(e){var t,r=Te;St(aa(e));try{e.f&=~tn,Bi(e),t=hs(e)}finally{St(r)}return t}function Yi(e){var t=Ir(e);if(e.equals(t)||(Le?.is_fork||(e.v=t),e.wv=ds()),!un)if(ct!==null)(An()||Le?.is_fork)&&ct.set(e,t);else{var r=(e.f&_t)===0?Dt:Ve;qe(e,r)}}let Lr=new Set;const Xt=new Map;let Gi=!1;function Kt(e,t){var r={f:0,v:e,reactions:null,equals:Pi,rv:0,wv:0};return r}function K(e,t){const r=Kt(e);return ls(r),r}function qi(e,t=!1,r=!0){const i=Kt(e);return t||(i.equals=Mi),i}function b(e,t,r=!1){ge!==null&&(!xt||(ge.f&xi)!==0)&&Ai()&&(ge.f&(Ue|Mt|Sr|xi))!==0&&!Ut?.includes(e)&&Oo();let i=r?et(t):t;return bn(e,i)}function bn(e,t){if(!e.equals(t)){var r=e.v;un?Xt.set(e,t):Xt.set(e,r),e.v=t;var i=Et.ensure();i.capture(e,r),(e.f&Ue)!==0&&((e.f&it)!==0&&Ir(e),qe(e,(e.f&_t)!==0?Ve:Dt)),e.wv=ds(),Xi(e,it),Te!==null&&(Te.f&Ve)!==0&&(Te.f&(At|en))===0&&(vt===null?_a([e]):vt.push(e)),!i.is_fork&&Lr.size>0&&!Gi&&la()}return t}function la(){Gi=!1;var e=ln;rr(!0);const t=Array.from(Lr);try{for(const r of t)(r.f&Ve)!==0&&qe(r,Dt),Fn(r)&&Hn(r)}finally{rr(e)}Lr.clear()}function Tt(e){b(e,e.v+1)}function Xi(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&it)===0;if(u&&qe(o,t),(l&Ue)!==0){var f=o;ct?.delete(f),(l&tn)===0&&(l&_t&&(o.f|=tn),Xi(f,Dt))}else u&&((l&Mt)!==0&&Ft!==null&&Ft.add(o),sn(o))}}function et(e){if(typeof e!="object"||e===null||In in e)return e;const t=Ci(e);if(t!==wo&&t!==bo)return e;var r=new Map,i=bi(e),s=K(0),o=Wt,l=u=>{if(Wt===o)return u();var f=ge,d=Wt;tt(null),fs(o);var h=u();return tt(f),fs(d),h};return i&&r.set("length",K(e.length)),new Proxy(e,{defineProperty(u,f,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&Mo();var h=r.get(f);return h===void 0?h=l(()=>{var g=K(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(()=>K(Be));r.set(f,h),Tt(s)}}else b(d,Be),Tt(s);return!0},get(u,f,d){if(f===In)return e;var h=r.get(f),g=f in u;if(h===void 0&&(!g||mn(u,f)?.writable)&&(h=l(()=>{var v=et(g?u[f]:Be),_=K(v);return _}),r.set(f,h)),h!==void 0){var c=n(h);return c===Be?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!==Be)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return d},has(u,f){if(f===In)return!0;var d=r.get(f),h=d!==void 0&&d.v!==Be||Reflect.has(u,f);if(d!==void 0||Te!==null&&(!h||mn(u,f)?.writable)){d===void 0&&(d=l(()=>{var c=h?et(u[f]):Be,v=K(c);return v}),r.set(f,d));var g=n(d);if(g===Be)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 _=r.get(v+"");_!==void 0?b(_,Be):v in u&&(_=l(()=>K(Be)),r.set(v+"",_))}if(g===void 0)(!c||mn(u,f)?.writable)&&(g=l(()=>K(void 0)),b(g,et(d)),r.set(f,g));else{c=g.v!==Be;var p=l(()=>et(d));b(g,p)}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"),k=Number(f);Number.isInteger(k)&&k>=y.v&&b(y,k+1)}Tt(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!==Be});for(var[d,h]of r)h.v!==Be&&!(d in u)&&f.push(d);return f},setPrototypeOf(){Ao()}})}var yt,Ki,Zi,Ji;function ua(){if(yt===void 0){yt=window,Ki=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Zi=mn(t,"firstChild").get,Ji=mn(t,"nextSibling").get,Di(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Di(r)&&(r.__t=void 0)}}function Ht(e=""){return document.createTextNode(e)}function nr(e){return Zi.call(e)}function Mn(e){return Ji.call(e)}function le(e,t){return nr(e)}function J(e,t=!1){{var r=nr(e);return r instanceof Comment&&r.data===""?Mn(r):r}}function ne(e,t=1,r=!1){let i=e;for(;t--;)i=Mn(i);return i}function fa(e){e.textContent=""}function Qi(){return!1}function da(e,t){{const r=document.body;e.autofocus=!0,rn(()=>{document.activeElement===r&&e.focus()})}}function Pr(e){var t=ge,r=Te;tt(null),St(null);try{return e()}finally{tt(t),St(r)}}function ji(e){Te===null&&(ge===null&&Ro(),So()),un&&xo()}function ca(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function wt(e,t,r){var i=Te;i!==null&&(i.f&st)!==0&&(e|=st);var s={ctx:Ye,deps:null,nodes:null,f:e|it|_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{Hn(s),s.f|=Tr}catch(u){throw Qe(s),u}else t!==null&&sn(s);var o=s;if(r&&o.deps===null&&o.teardown===null&&o.nodes===null&&o.first===o.last&&(o.f&pn)===0&&(o=o.first,(e&Mt)!==0&&(e&Gt)!==0&&o!==null&&(o.f|=Gt)),o!==null&&(o.parent=i,i!==null&&ca(o,i),ge!==null&&(ge.f&Ue)!==0&&(e&en)===0)){var l=ge;(l.effects??=[]).push(o)}return s}function An(){return ge!==null&&!xt}function Mr(e){const t=wt(Jn,null,!1);return qe(t,Ve),t.teardown=e,t}function Ge(e){ji();var t=Te.f,r=!ge&&(t&At)!==0&&(t&Tr)===0;if(r){var i=Ye;(i.e??=[]).push(e)}else return $i(e)}function $i(e){return wt(Er|Ri,e,!1)}function on(e){return ji(),wt(Jn|Ri,e,!0)}function ha(e){Et.ensure();const t=wt(en|pn,e,!0);return(r={})=>new Promise(i=>{r.outro?an(t,()=>{Qe(t),i(void 0)}):(Qe(t),i(void 0))})}function Ar(e){return wt(Er,e,!1)}function va(e){return wt(Sr|pn,e,!0)}function es(e,t=0){return wt(Jn|t,e,!0)}function se(e,t=[],r=[],i=[]){ia(i,t,r,s=>{wt(Jn,()=>e(...s.map(n)),!0)})}function On(e,t=0){var r=wt(Mt|t,e,!0);return r}function ga(e,t=0){var r=wt(Ti|t,e,!0);return r}function ot(e){return wt(At|pn,e,!0)}function ts(e){var t=e.teardown;if(t!==null){const r=un,i=ge;as(!0),tt(null);try{t.call(null)}finally{as(r),tt(i)}}}function ns(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&Pr(()=>{s.abort(_n)});var i=r.next;(r.f&en)!==0?r.parent=null:Qe(r,t),r=i}}function ma(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&At)===0&&Qe(t),t=r}}function Qe(e,t=!0){var r=!1;(t||(e.f&Si)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(pa(e.nodes.start,e.nodes.end),r=!0),ns(e,t&&!r),ir(e,0),qe(e,Ot);var i=e.nodes&&e.nodes.t;if(i!==null)for(const o of i)o.stop();ts(e);var s=e.parent;s!==null&&s.first!==null&&rs(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function pa(e,t){for(;e!==null;){var r=e===t?null:Mn(e);e.remove(),e=r}}function rs(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 an(e,t,r=!0){var i=[];is(e,i,!0);var s=()=>{r&&Qe(e),t&&t()},o=i.length;if(o>0){var l=()=>--o||s();for(var u of i)u.out(l)}else s()}function is(e,t,r){if((e.f&st)===0){e.f^=st;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&Gt)!==0||(s.f&At)!==0&&(e.f&Mt)!==0;is(s,t,l?r:!1),s=o}}}function Or(e){ss(e,!0)}function ss(e,t){if((e.f&st)!==0){e.f^=st,(e.f&Ve)===0&&(qe(e,it),sn(e));for(var r=e.first;r!==null;){var i=r.next,s=(r.f&Gt)!==0||(r.f&At)!==0;ss(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 os(e,t){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end;r!==null;){var s=r===i?null:Mn(r);t.append(r),r=s}}let ln=!1;function rr(e){ln=e}let un=!1;function as(e){un=e}let ge=null,xt=!1;function tt(e){ge=e}let Te=null;function St(e){Te=e}let Ut=null;function ls(e){ge!==null&&(Ut===null?Ut=[e]:Ut.push(e))}let je=null,at=0,vt=null;function _a(e){vt=e}let us=1,Nn=0,Wt=Nn;function fs(e){Wt=e}function ds(){return++us}function Fn(e){var t=e.f;if((t&it)!==0)return!0;if(t&Ue&&(e.f&=~tn),(t&Dt)!==0){var r=e.deps;if(r!==null)for(var i=r.length,s=0;s<i;s++){var o=r[s];if(Fn(o)&&Yi(o),o.wv>e.wv)return!0}(t&_t)!==0&&ct===null&&qe(e,Ve)}return!1}function cs(e,t,r=!0){var i=e.reactions;if(i!==null&&!Ut?.includes(e))for(var s=0;s<i.length;s++){var o=i[s];(o.f&Ue)!==0?cs(o,t,!1):t===o&&(r?qe(o,it):(o.f&Ve)!==0&&qe(o,Dt),sn(o))}}function hs(e){var t=je,r=at,i=vt,s=ge,o=Ut,l=Ye,u=xt,f=Wt,d=e.f;je=null,at=0,vt=null,ge=(d&(At|en))===0?e:null,Ut=null,yn(e.ctx),xt=!1,Wt=++Nn,e.ac!==null&&(Pr(()=>{e.ac.abort(_n)}),e.ac=null);try{e.f|=xr;var h=e.fn,g=h(),c=e.deps;if(je!==null){var v;if(ir(e,at),c!==null&&at>0)for(c.length=at+je.length,v=0;v<je.length;v++)c[at+v]=je[v];else e.deps=c=je;if(An()&&(e.f&_t)!==0)for(v=at;v<c.length;v++)(c[v].reactions??=[]).push(e)}else c!==null&&at<c.length&&(ir(e,at),c.length=at);if(Ai()&&vt!==null&&!xt&&c!==null&&(e.f&(Ue|Dt|it))===0)for(v=0;v<vt.length;v++)cs(vt[v],e);return s!==null&&s!==e&&(Nn++,vt!==null&&(i===null?i=vt:i.push(...vt))),(e.f&qt)!==0&&(e.f^=qt),g}catch(_){return Fi(_)}finally{e.f^=xr,je=t,at=r,vt=i,ge=s,Ut=o,yn(l),xt=u,Wt=f}}function ya(e,t){let r=t.reactions;if(r!==null){var i=_o.call(r,e);if(i!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[i]=r[s],r.pop())}}r===null&&(t.f&Ue)!==0&&(je===null||!je.includes(t))&&(qe(t,Dt),(t.f&_t)!==0&&(t.f^=_t,t.f&=~tn),Bi(t),ir(t,0))}function ir(e,t){var r=e.deps;if(r!==null)for(var i=t;i<r.length;i++)ya(e,r[i])}function Hn(e){var t=e.f;if((t&Ot)===0){qe(e,Ve);var r=Te,i=ln;Te=e,ln=!0;try{(t&(Mt|Ti))!==0?ma(e):ns(e),ts(e);var s=hs(e);e.teardown=typeof s=="function"?s:null,e.wv=us;var o}finally{ln=i,Te=r}}}async function Un(){await Promise.resolve(),jo()}function n(e){var t=e.f,r=(t&Ue)!==0;if(ge!==null&&!xt){var i=Te!==null&&(Te.f&Ot)!==0;if(!i&&!Ut?.includes(e)){var s=ge.deps;if((ge.f&xr)!==0)e.rv<Nn&&(e.rv=Nn,je===null&&s!==null&&s[at]===e?at++:je===null?je=[e]:je.includes(e)||je.push(e));else{(ge.deps??=[]).push(e);var o=e.reactions;o===null?e.reactions=[ge]:o.includes(ge)||o.push(ge)}}}if(un){if(Xt.has(e))return Xt.get(e);if(r){var l=e,u=l.v;return((l.f&Ve)===0&&l.reactions!==null||gs(l))&&(u=Ir(l)),Xt.set(l,u),u}}else r&&(!ct?.has(e)||Le?.is_fork&&!An())&&(l=e,Fn(l)&&Yi(l),ln&&An()&&(l.f&_t)===0&&vs(l));if(ct?.has(e))return ct.get(e);if((e.f&qt)!==0)throw e.v;return e.v}function vs(e){if(e.deps!==null){e.f^=_t;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&Ue)!==0&&(t.f&_t)===0&&vs(t)}}function gs(e){if(e.v===Be)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Xt.has(t)||(t.f&Ue)!==0&&gs(t))return!0;return!1}function $(e){var t=xt;try{return xt=!0,e()}finally{xt=t}}const wa=-7169;function qe(e,t){e.f=e.f&wa|t}const ba=["touchstart","touchmove"];function ka(e){return ba.includes(e)}const ms=new Set,Nr=new Set;function Ca(e,t,r,i={}){function s(o){if(i.capture||Wn.call(t,o),!o.cancelBubble)return Pr(()=>r?.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?rn(()=>{t.addEventListener(e,s,i)}):t.addEventListener(e,s,i),s}function lt(e,t,r,i,s){var o={capture:i,passive:s},l=Ca(e,t,r,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Mr(()=>{t.removeEventListener(e,l,o)})}function Zt(e){for(var t=0;t<e.length;t++)ms.add(e[t]);for(var r of Nr)r(e)}let ps=null;function Wn(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){ki(e,"currentTarget",{configurable:!0,get(){return o||r}});var h=ge,g=Te;tt(null),St(null);try{for(var c,v=[];o!==null;){var _=o.assignedSlot||o.parentNode||o.host||null;try{var p=o["__"+i];p!=null&&(!o.disabled||e.target===o)&&p.call(o,e)}catch(m){c?v.push(m):c=m}if(e.cancelBubble||_===t||_===null)break;o=_}if(c){for(let m of v)queueMicrotask(()=>{throw m});throw c}}finally{e.__root=t,delete e.currentTarget,tt(h),St(g)}}}function Da(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function sr(e,t){var r=Te;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function ee(e,t){var r=(t&Go)!==0,i=(t&qo)!==0,s,o=!e.startsWith("<!>");return()=>{s===void 0&&(s=Da(o?e:"<!>"+e),r||(s=nr(s)));var l=i||Ki?document.importNode(s,!0):s.cloneNode(!0);if(r){var u=nr(l),f=l.lastChild;sr(u,f)}else sr(l,l);return l}}function _s(e=""){{var t=Ht(e+"");return sr(t,t),t}}function he(){var e=document.createDocumentFragment(),t=document.createComment(""),r=Ht();return e.append(t,r),sr(t,r),e}function T(e,t){e!==null&&e.before(t)}function ys(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function Ea(e,t){return Ta(e,t)}const kn=new Map;function Ta(e,{target:t,anchor:r,props:i={},events:s,context:o,intro:l=!0}){ua();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 _=ka(v);t.addEventListener(v,Wn,{passive:_});var p=kn.get(v);p===void 0?(document.addEventListener(v,Wn,{passive:_}),kn.set(v,1)):kn.set(v,p+1)}}};f(Zn(ms)),Nr.add(f);var d=void 0,h=ha(()=>{var g=r??t.appendChild(Ht());return na(g,{pending:()=>{}},c=>{if(o){be({});var v=Ye;v.c=o}s&&(i.$$events=s),d=e(c,i)||{},o&&ke()}),()=>{for(var c of u){t.removeEventListener(c,Wn);var v=kn.get(c);--v===0?(document.removeEventListener(c,Wn),kn.delete(c)):kn.set(c,v)}Nr.delete(f),g!==r&&g.parentNode?.removeChild(g)}});return Fr.set(d,h),d}let Fr=new WeakMap;function xa(e,t){const r=Fr.get(e);return r?(Fr.delete(e),r(t)):Promise.resolve()}class Hr{anchor;#e=new Map;#t=new Map;#n=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.#t.get(r);if(i)Or(i),this.#r.delete(r);else{var s=this.#n.get(r);s&&(this.#t.set(r,s.effect),this.#n.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.#n.get(l);u&&(Qe(u.effect),this.#n.delete(l))}for(const[o,l]of this.#t){if(o===r||this.#r.has(o))continue;const u=()=>{if(Array.from(this.#e.values()).includes(o)){var d=document.createDocumentFragment();os(l,d),d.append(Ht()),this.#n.set(o,{effect:l,fragment:d})}else Qe(l);this.#r.delete(o),this.#t.delete(o)};this.#s||!i?(this.#r.add(o),an(l,u,!1)):u()}}};#o=t=>{this.#e.delete(t);const r=Array.from(this.#e.values());for(const[i,s]of this.#n)r.includes(i)||(Qe(s.effect),this.#n.delete(i))};ensure(t,r){var i=Le,s=Qi();if(r&&!this.#t.has(t)&&!this.#n.has(t))if(s){var o=document.createDocumentFragment(),l=Ht();o.append(l),this.#n.set(t,{effect:ot(()=>r(l)),fragment:o})}else this.#t.set(t,ot(()=>r(this.anchor)));if(this.#e.set(i,t),s){for(const[u,f]of this.#t)u===t?i.skipped_effects.delete(f):i.skipped_effects.add(f);for(const[u,f]of this.#n)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 _e(e,t,r=!1){var i=new Hr(e),s=r?Gt:0;function o(l,u){i.ensure(l,u)}On(()=>{var l=!1;t((u,f=!0)=>{l=!0,o(f,u)}),l||o(!1,null)},s)}function oe(e,t){return t}function Sa(e,t,r){for(var i=[],s=t.length,o,l=t.length,u=0;u<s;u++){let g=t[u];an(g,()=>{if(o){if(o.pending.delete(g),o.done.add(g),o.pending.size===0){var c=e.outrogroups;Ur(Zn(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;fa(h),h.append(d),e.items.clear()}Ur(t,!f)}else o={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(o)}function Ur(e,t=!0){for(var r=0;r<e.length;r++)Qe(e[r],t)}var ws;function re(e,t,r,i,s,o=null){var l=e,u=new Map,f=(t&Li)!==0;if(f){var d=e;l=d.appendChild(Ht())}var h=null,g=Vi(()=>{var y=r();return bi(y)?y:y==null?[]:Zn(y)}),c,v=!0;function _(){m.fallback=h,Ra(m,c,l,t,i),h!==null&&(c.length===0?(h.f&Nt)===0?Or(h):(h.f^=Nt,zn(h,null,l)):an(h,()=>{h=null}))}var p=On(()=>{c=n(g);for(var y=c.length,k=new Set,S=Le,D=Qi(),C=0;C<y;C+=1){var w=c[C],E=i(w,C),P=v?null:u.get(E);P?(P.v&&bn(P.v,w),P.i&&bn(P.i,C),D&&S.skipped_effects.delete(P.e)):(P=Ia(u,v?l:ws??=Ht(),w,E,C,s,t,r),v||(P.e.f|=Nt),u.set(E,P)),k.add(E)}if(y===0&&o&&!h&&(v?h=ot(()=>o(l)):(h=ot(()=>o(ws??=Ht())),h.f|=Nt)),!v)if(D){for(const[H,L]of u)k.has(H)||S.skipped_effects.add(L.e);S.oncommit(_),S.ondiscard(()=>{})}else _();n(g)}),m={effect:p,items:u,outrogroups:null,fallback:h};v=!1}function Ra(e,t,r,i,s){var o=(i&Uo)!==0,l=t.length,u=e.items,f=e.effect.first,d,h=null,g,c=[],v=[],_,p,m,y;if(o)for(y=0;y<l;y+=1)_=t[y],p=s(_,y),m=u.get(p).e,(m.f&Nt)===0&&(m.nodes?.a?.measure(),(g??=new Set).add(m));for(y=0;y<l;y+=1){if(_=t[y],p=s(_,y),m=u.get(p).e,e.outrogroups!==null)for(const L of e.outrogroups)L.pending.delete(m),L.done.delete(m);if((m.f&Nt)!==0)if(m.f^=Nt,m===f)zn(m,null,r);else{var k=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),Jt(e,h,m),Jt(e,m,k),zn(m,k,r),h=m,c=[],v=[],f=h.next;continue}if((m.f&st)!==0&&(Or(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 S=v[0],D;h=S.prev;var C=c[0],w=c[c.length-1];for(D=0;D<c.length;D+=1)zn(c[D],S,r);for(D=0;D<v.length;D+=1)d.delete(v[D]);Jt(e,C.prev,w.next),Jt(e,h,C),Jt(e,w,S),f=S,h=w,y-=1,c=[],v=[]}else d.delete(m),zn(m,f,r),Jt(e,m.prev,m.next),Jt(e,m,h===null?e.effect.first:h.next),Jt(e,h,m),h=m;continue}for(c=[],v=[];f!==null&&f!==m;)(d??=new Set).add(f),v.push(f),f=f.next;if(f===null)continue}(m.f&Nt)===0&&c.push(m),h=m,f=m.next}if(e.outrogroups!==null){for(const L of e.outrogroups)L.pending.size===0&&(Ur(Zn(L.done)),e.outrogroups?.delete(L));e.outrogroups.size===0&&(e.outrogroups=null)}if(f!==null||d!==void 0){var E=[];if(d!==void 0)for(m of d)(m.f&st)===0&&E.push(m);for(;f!==null;)(f.f&st)===0&&f!==e.fallback&&E.push(f),f=f.next;var P=E.length;if(P>0){var H=(i&Li)!==0&&l===0?r:null;if(o){for(y=0;y<P;y+=1)E[y].nodes?.a?.measure();for(y=0;y<P;y+=1)E[y].nodes?.a?.fix()}Sa(e,E,H)}}o&&rn(()=>{if(g!==void 0)for(m of g)m.nodes?.a?.apply()})}function Ia(e,t,r,i,s,o,l,u){var f=(l&Fo)!==0?(l&Wo)===0?qi(r,!1,!1):Kt(r):null,d=(l&Ho)!==0?Kt(s):null;return{v:f,i:d,e:ot(()=>(o(t,f??r,d??s,u),()=>{e.delete(i)}))}}function zn(e,t,r){if(e.nodes)for(var i=e.nodes.start,s=e.nodes.end,o=t&&(t.f&Nt)===0?t.nodes.start:r;i!==null;){var l=Mn(i);if(o.before(i),i===s)return;i=l}}function Jt(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function zt(e,t,...r){var i=new Hr(e);On(()=>{const s=t()??null;i.ensure(s,s&&(o=>s(o,...r)))},Gt)}function Wr(e,t,r){var i=new Hr(e);On(()=>{var s=t()??null;i.ensure(s,s&&(o=>r(o,s)))},Gt)}function Me(e,t){var r=void 0,i;ga(()=>{r!==(r=t())&&(i&&(Qe(i),i=null),r&&(i=ot(()=>{Ar(()=>r(e))})))})}function bs(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=bs(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function La(){for(var e,t,r=0,i="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=bs(e))&&(i&&(i+=" "),i+=t);return i}function Rt(e){return typeof e=="object"?La(e):e??""}function Pa(e,t,r){var i=e==null?"":""+e;return i===""?null:i}function ks(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 Ma(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 p=e.length;for(var g=0;g<p;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===p-1){if(h!==-1){var v=zr(e.substring(d,h).trim());if(!f.includes(v)){c!==";"&&g++;var _=e.substring(d,g).trim();r+=" "+_+";"}}d=g+1,h=-1}}}}return i&&(r+=ks(i)),s&&(r+=ks(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=Pa(r);u==null?e.removeAttribute("class"):e.className=u,e.__className=r}return o}function Vr(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 bt(e,t,r,i){var s=e.__style;if(s!==t){var o=Ma(t,i);o==null?e.removeAttribute("style"):e.style.cssText=o,e.__style=t}else i&&(Array.isArray(i)?(Vr(e,r?.[0],i[0]),Vr(e,r?.[1],i[1],"important")):Vr(e,r,i));return i}const Aa=Symbol("is custom element"),Oa=Symbol("is html");function Pe(e,t,r,i){var s=Na(e);s[t]!==(s[t]=r)&&(t==="loading"&&(e[Eo]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Fa(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Na(e){return e.__attributes??={[Aa]:e.nodeName.includes("-"),[Oa]:e.namespaceURI===Xo}}var Cs=new Map;function Fa(e){var t=e.getAttribute("is")||e.nodeName,r=Cs.get(t);if(r)return r;Cs.set(t,r=[]);for(var i,s=e,o=Element.prototype;o!==s;){i=yo(s);for(var l in i)i[l].set&&r.push(l);s=Ci(s)}return r}class Br{#e=new WeakMap;#t;#n;static entries=new WeakMap;constructor(t){this.#n=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.#n),()=>{var s=this.#e.get(t);s.delete(r),s.size===0&&(this.#e.delete(t),this.#t.unobserve(t))}}#r(){return this.#t??(this.#t=new ResizeObserver(t=>{for(var r of t){Br.entries.set(r.target,r);for(var i of this.#e.get(r.target)||[])i(r)}}))}}var Ha=new Br({box:"border-box"});function or(e,t,r){var i=Ha.observe(e,()=>r(e[t]));Ar(()=>($(()=>r(e[t])),i))}function Ds(e,t){return e===t||e?.[In]===t}function nt(e={},t,r,i){return Ar(()=>{var s,o;return es(()=>{s=o,o=i?.()||[],$(()=>{e!==r(...o)&&(t(e,...o),s&&Ds(r(...s),e)&&t(null,...s))})}),()=>{rn(()=>{o&&Ds(r(...o),e)&&t(null,...o)})}}),e}function Es(e,t,r){if(e==null)return t(void 0),Yt;const i=$(()=>e.subscribe(t,r));return i.unsubscribe?()=>i.unsubscribe():i}function Ua(e){let t;return Es(e,r=>t=r)(),t}let ar=!1,Yr=Symbol();function Wa(e,t,r){const i=r[t]??={store:null,source:qi(void 0),unsubscribe:Yt};if(i.store!==e&&!(Yr in r))if(i.unsubscribe(),i.store=e??null,e==null)i.source.v=void 0,i.unsubscribe=Yt;else{var s=!0;i.unsubscribe=Es(e,o=>{s?i.source.v=o:b(i.source,o)}),s=!1}return e&&Yr in r?Ua(e):n(i.source)}function za(){const e={};function t(){Mr(()=>{for(var r in e)e[r].unsubscribe();ki(e,Yr,{enumerable:!1,value:!0})})}return[e,t]}function Va(e){var t=ar;try{return ar=!1,[e(),ar]}finally{ar=t}}function De(e,t,r,i){var s=(r&Bo)!==0,o=(r&Yo)!==0,l=i,u=!0,f=()=>(u&&(u=!1,l=o?$(i):i),l),d;if(s){var h=In in e||Do in e;d=mn(e,t)?.set??(h&&t in e?k=>e[t]=k:void 0)}var g,c=!1;s?[g,c]=Va(()=>e[t]):g=e[t],g===void 0&&i!==void 0&&(g=f(),d&&(Po(),d(g)));var v;if(v=()=>{var k=e[t];return k===void 0?f():(u=!0,k)},(r&Vo)===0)return v;if(d){var _=e.$$legacy;return(function(k,S){return arguments.length>0?((!S||_||c)&&d(S?v():k),k):v()})}var p=!1,m=((r&zo)!==0?tr:Vi)(()=>(p=!1,v()));s&&n(m);var y=Te;return(function(k,S){if(arguments.length>0){const D=S?n(m):s?et(k):k;return b(m,D),p=!0,l!==void 0&&(l=D),k}return un&&p||(y.f&Ot)!==0?m.v:n(m)})}function Ba(){return ge===null&&Lo(),(ge.ac??=new AbortController).signal}function Vn(e){Ye===null&&Ii(),Ge(()=>{const t=$(e);if(typeof t=="function")return t})}const Ya="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Ya);function Gr(e,t=void 0){return function(r){return r.key==="Enter"||r.key===" "&&!r.preventDefault()?e.call(t,r):void 0}}function Xe(e){return t=>{typeof e=="string"?t.innerText=e:e?.domNodes?t.replaceChildren(...e.domNodes):e?.html&&(t.innerHTML=e.html)}}function Ga(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 qr(e){return t=>{let r=new ResizeObserver(i=>{for(let s of i)e(t,s)});return r.observe(t),()=>{r.unobserve(t)}}}function Ts(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 me(...e){return Object.assign(...e)}function fn(e){return Object.keys(e)}function xs(e){return Object.entries(e)}function Xr(e){return Math.floor(e)}function qa(e){return Math.ceil(e)}function It(...e){return Math.min(...e)}function ut(...e){return Math.max(...e)}function Xa(){return Symbol("ec")}function Kr(e){return Array.isArray(e)}function Ce(e){return typeof e=="function"}function Ka(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Zr(e){return e instanceof Date}function Za(e){return e()}function Ja(e){e.forEach(Za)}function Qa(){}const lr=e=>e;function Jr(e,t=void 0){return function(r){r.stopPropagation(),e&&e.call(t,r)}}function dn(){return window.getComputedStyle(document.documentElement).direction==="rtl"}const ur=86400;function Lt(e=void 0){return e!==void 0?Zr(e)?Ps(e):el(e):Ps(new Date)}function Ne(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 Zr(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 q(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;)Cn(e);return e.setUTCDate(e.getUTCDate()+r*t.days),e.setUTCSeconds(e.getUTCSeconds()+r*t.seconds),e}function fr(e,t,r=1){return Se(e,t,-r)}function kt(e,t=1){return e.setUTCDate(e.getUTCDate()+t),e}function Cn(e,t=1){return kt(e,-t)}function Ct(e){return e.setUTCHours(0,0,0,0),e}function Fe(e){return new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds())}function ft(e,t=19){return e.toISOString().substring(0,t)}function Ke(e,...t){return t.every(r=>e.getTime()===r.getTime())}function ja(e,t){let r=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(r>=0?r:r+7)),e}function Ss(e,t){let r=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(r<=0?r:r-7)),e}function Rs(e){return typeof e=="string"&&e.length<=10}function Qr(e,t){return e.setUTCHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),0),e}function ye(e){return e.seconds}function Is(e,t){return Se(e,t),e}function Ls(e,t,r){if(fr(e,t),r.length&&r.length<7)for(;r.includes(e.getUTCDay());)Cn(e);return e}function $a(e,t){e=q(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/ur+1)/7)}function Ps(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()))}function el(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 jr=Xa();function Ms(e,t){e[jr]=t}function tl(e){return!!e?.[jr]}function Vt(e){return e[jr]}function As(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 Qt(e){return e.getBoundingClientRect()}function Os(e,t){for(;t--;)e=e.parentElement;return e}function cn(e){return Qt(e).height}function Dn(e,t,r=document,i=[]){i.push(r);for(let s of r.elementsFromPoint(e,t)){if(tl(s))return s;if(s.shadowRoot&&!i.includes(s.shadowRoot)){let o=Dn(e,t,s.shadowRoot,i);if(o)return o}}return null}function Bn(e,t,r,i){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r,i)}function nl(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 Ze(e){return e=me({},e),e.currentStart=Fe(e.currentStart),e.currentEnd=Fe(e.currentEnd),e.activeStart=Fe(e.activeStart),e.activeEnd=Fe(e.activeEnd),e}let rl=1;function dr(e){return e.map(t=>{let r={id:"id"in t?String(t.id):`{generated-${rl++}}`,resourceIds:$r(t,"resourceId").map(String),allDay:t.allDay??(Rs(t.start)&&Rs(t.end)),start:Lt(t.start),end:Lt(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:$r(t,"className"),styles:$r(t,"style")};if(r.allDay){Ct(r.start);let i=q(r.end);Ct(r.end),(!Ke(r.end,i)||Ke(r.end,r.start))&&kt(r.end)}return r})}function $r(e,t){let r=e[t+"s"]??e[t]??[];return Kr(r)?r:[r]}function il(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 sl(e,t,r,i,s,o){let l=s.formatRange(e.start,t&&e.event.display!=="pointer"&&!e.zeroDuration?Qr(q(e.start),e.end):e.start),u;if(r&&(u=Ce(r)?r({event:We(e.event),timeText:l,view:Ze(o)}):r),u===void 0){let f;switch(e.event.display){case"background":f=[];break;case"pointer":f=e.event.allDay?[]:[Ns(l,e,i)];break;default:f=[...e.event.allDay?[]:[Ns(l,e,i)],As("h4",i.eventTitle,e.event.title)]}u={domNodes:f}}return[l,u]}function Ns(e,t,r){return As("time",r.eventTime,e,[["datetime",ft(t.start)]])}function ol(e,t,r){let i=t.classNames;return e&&(Ce(e)&&(e=e({event:We(t),view:Ze(r)})),i=[...Kr(e)?e:[e],...i]),i}function We(e){return Fs(e,Fe)}function ei(e){return Fs(e,q)}function Fs(e,t){return e=me({},e),e.start=t(e.start),e.end=t(e.end),e}function ti(e,t){e.length=t.length;for(let r of e)r?.reposition()}function En(e,t,r,i=void 0){return(!i||e.resourceIds.includes(i.id))&&e.start<r&&e.end>t}function cr(e){return al(e)||ll(e)||ul(e)}function gt(e){return e==="background"}function al(e){return e==="preview"}function ll(e){return e==="ghost"}function ul(e){return e==="pointer"}function Yn(e,t,r){let i={start:e.start>t?e.start:t,end:e.end<r?e.end:r,event:e};return i.zeroDuration=Ke(i.start,i.end),i}function Tn(e,t){let r=[],i,s,o;for(let{gridColumn:l,gridRow:u,resource:f,dayStart:d,dayEnd:h,disabled:g}of t)!g&&En(e,d,h,f)&&(r.push(d),i=h,s||(s=l,o=u));if(r.length){let l=Yn(e,r[0],i);return me(l,{gridColumn:s,gridRow:o,dates:r}),[l]}return[]}function Hs(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 Us(e,t,r=0){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 me(e,{top:r,bottom:i}),r}function hn(e,t){return()=>{let{options:{locale:r}}=e,i=e.options[t],s;return $(()=>{s=Ce(i)?{format:i}:new Intl.DateTimeFormat(r,i)}),{format:o=>s.format(Fe(o))}}}function Ws(e,t){return()=>{let{options:{locale:r}}=e,i=e.options[t],s;return $(()=>{if(Ce(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+=fl(h[1-v],f),g[v]=!0):d+=c.value}return d}}}}),{formatRange:(o,l)=>s(Fe(o),Fe(l))}}}function fl(e,t){let r="";for(let i of t)i.source==e&&(r+=i.value);return r}function hr(e){return gr(e,"day")}function vr(e){return gr(e,"week")}function ni(e){return gr(e,"month")}function dl(e){return gr(e,"year")}function gr(e,t){return{...e,next:"Next "+t,prev:"Previous "+t}}function mt(e){return t=>({...t,view:e})}function cl(e){let t,r;return e&&({start:t,end:r}=e,t&&(t=Ct(Lt(t))),r&&(r=Ct(Lt(r)))),{start:t,end:r}}function xn(e,t){return t.start&&e<t.start||t.end&&e>t.end}function zs(e){let t=[];return Vs(e,0,t),t}function Vs(e,t,r){let i=[];for(let s of e){let o=hl(s);i.push(o),r.push(o);let l={level:t,children:[],expanded:!0,hidden:!1};Ms(o,l),s.children&&(l.children=Vs(s.children,t+1,r))}return i}function hl(e){return{id:String(e.id),title:e.title||"",eventBackgroundColor:e.eventBackgroundColor,eventTextColor:e.eventTextColor,extendedProps:e.extendedProps??{}}}function vl(e,t){return Bs(e,t)?.eventBackgroundColor}function gl(e,t){return Bs(e,t)?.eventTextColor}function Bs(e,t){return t.find(r=>e.resourceIds.includes(r.id))}function Ys(e,t,r,i,s){let o=[];e=q(e);let l=q(e);for(Se(e,i.min),Se(l,i.max);e<l;)o.push([ft(e),s.format(e)]),Se(e,t,r);let u=Xr((e-l)/1e3/ye(t));return u&&u!==r&&(o.at(-1)[2]=r-u),o}function Gs(e,t,r,i,s){let o=Ne(e),l=Ne(t);if(r){let u=Ne(It(ye(o),ut(0,ye(l)-ur))),f=Ne(ut(ye(l),ye(u)+ur)),d=Ce(r?.eventFilter)?r.eventFilter:h=>!gt(h.display);e:for(let h of i){let g=Se(q(h),o),c=Se(q(h),l),v=Se(q(h),u),_=Se(q(h),f);for(let p of s)if(!p.allDay&&d(p)&&p.start<_&&p.end>v){if(p.start<g){let m=ut((p.start-h)/1e3,ye(u));m<ye(o)&&(o.seconds=m)}if(p.end>c){let m=It((p.end-h)/1e3,ye(f));m>ye(l)&&(l.seconds=m)}if(ye(o)===ye(u)&&ye(l)===ye(f))break e}}}return{min:o,max:l}}class ri extends Map{#e=new Map;#t=K(0);#n=K(0);#r=Wt||-1;constructor(t){if(super(),t){for(var[r,i]of t)super.set(r,i);this.#n.v=super.size}}#s(t){return Wt===this.#r?K(t):Kt(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.#t),!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.#t);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.#t;if(s===void 0)s=this.#s(0),i.set(t,s),b(this.#n,super.size),Tt(u);else if(o!==r){Tt(s);var f=u.reactions===null?null:new Set(u.reactions),d=f===null||!s.reactions?.every(h=>f.has(h));d&&Tt(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.#n,super.size),b(i,-1),Tt(this.#t)),s}clear(){if(super.size!==0){super.clear();var t=this.#e;b(this.#n,0);for(var r of t.values())b(r,-1);Tt(this.#t),t.clear()}}#i(){n(this.#t);var t=this.#e;if(this.#n.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.#t),super.keys()}values(){return this.#i(),super.values()}entries(){return this.#i(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return n(this.#n),super.size}}function ml(e){let t={buttonText:{today:"today"},customButtons:{},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,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",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 pl(e){let t={date:r=>Ct(Lt(r)),duration:Ne,events:dr,eventSources:il,hiddenDays:r=>[...new Set(r)],highlightedDates:r=>r.map(i=>Ct(Lt(i))),resources:zs,validRange:cl};for(let r of e)r.createParsers?.(t);return t}const qs=["buttonText","customButtons","theme"];function _l(e,t,r){let i=ml(t),s=pl(t);i=ii(i,s),r=ii(r,s);let o=si(i,"views")??{},l=si(r,"views")??{},u=new ri;Ks(u,i);let f={},d={};function h(){r.view&&u.set("view",r.view);let g=new Set([...fn(o),...fn(l)]);for(let c of g){let v=l[c]??{},_=Xs(i,o[c]??o[v.type]??{}),p=Xs(_,r,v),m=si(p,"component");delete p.view;for(let y of fn(p))u.has(y)?(f[y]||(f[y]=[]),f[y].push(qs.includes(y)?k=>p[y]=Ce(k)?k(_[y]):k:k=>p[y]=k)):delete p[y];on(()=>{let y=u.get("view");$(()=>{y===c&&(e.setViewComponent(m),d=p,Ks(u,p))})})}}return{proxy:new Proxy(u,{set(g,c,v){return d[c]=v,g.set(c,v),!0},get(g,c){return g.get(c)}}),setOption(g,c,v){u.has(g)&&(!v&&g in s&&(c=s[g](c)),f[g]?.forEach(_=>_(c)),u.set(g,d[g]??c))},initEffects:h}}function ii(e,t){let r={...e};for(let i of fn(t))i in r&&(r[i]=t[i](r[i]));if(e.views){r.views={};for(let i of fn(e.views))r.views[i]=ii(e.views[i],t)}return r}function si(e,t){let r=e[t];return delete e[t],r}function Xs(...e){let t={};for(let r of e){let i={};for(let s of qs)Ce(r[s])&&(i[s]=r[s](t[s]));t={...t,...r,...i}}return t}function Ks(e,t){for(let[r,i]of xs(t))e.set(r,i)}function yl(e,t){let r=[];for(let i of fn(e))e[i]!==t[i]&&r.push([i,e[i]]);return r}function wl(e){let t=0;return()=>{let{activeRange:r,fetchedRange:i,options:{events:s,eventSources:o,lazyFetching:l,loading:u}}=e;$(()=>{if(o.length||(e.events=s),!i.start||i.start>r.start||i.end<r.end||!l){Ce(u)&&!t&&u(!0);let f=()=>{--t===0&&Ce(u)&&u(!1)},d=[],h=_=>f(),g=_=>{d=d.concat(dr(_)),e.events=d,f()},c=ft(r.start),v=ft(r.end);for(let _ of o){if(Ce(_.events)){let p=_.events({start:Fe(r.start),end:Fe(r.end),startStr:c,endStr:v},g,h);p!==void 0&&Promise.resolve(p).then(g,h)}else{let p=Ce(_.extraParams)?_.extraParams():me({},_.extraParams);p.start=c,p.end=v,p=new URLSearchParams(p);let m=_.url,y={},k;["GET","HEAD"].includes(_.method)?m+=(m.includes("?")?"&":"?")+p:(y["content-type"]="application/x-www-form-urlencoded;charset=UTF-8",k=String(p)),fetch(m,{method:_.method,headers:y,body:k,signal:Ba(),credentials:"same-origin"}).then(S=>S.json()).then(g).catch(h)}++t}me(i,r)}})}}function bl(e){return()=>{let t=setInterval(()=>{let r=Lt(),i=Ct(q(r));e.now=r,Ke(e.today,i)||(e.today=i)},1e3);return()=>clearInterval(t)}}function kl(e){return()=>{let{activeRange:t,options:{datesSet:r}}=e;$(()=>{Ce(r)&&r({start:Fe(t.start),end:Fe(t.end),startStr:ft(t.start),endStr:ft(t.end),view:Ze(e.view)})})}}function Cl(e){let t;return()=>{let{filteredEvents:r,options:{eventAllUpdated:i}}=e;$(()=>{Ce(i)&&(t||(t=setTimeout(()=>{t=null,i({view:Ze(e.view)})})))})}}function Dl(e){return()=>{let{options:{view:t,viewDidMount:r}}=e;$(()=>{Ce(r)&&Un().then(()=>r({view:Ze(e.view)}))})}}function El(e){return()=>{let{options:{date:t,duration:r,firstDay:i}}=e,s,o;return $(()=>{s=q(t),r.months?s.setUTCDate(1):r.inWeeks&&Ss(s,i),o=Se(q(s),r)}),{start:s,end:o}}}function Tl(e){return()=>{let{currentRange:t,extensions:{activeRange:r}}=e,i,s;return $(()=>{i=q(t.start),s=q(t.end)}),r?r(i,s):{start:i,end:s}}}function xl(e){return()=>{let{events:t,options:{eventFilter:r,eventOrder:i,filterEventsWithResources:s,resources:o}}=e,l=[...t];return $(()=>{if(Ce(r)){let u=t.map(We),f=Ze(e.view);l=l.filter((d,h)=>r({event:We(d),index:h,events:u,view:f}))}s&&(l=l.filter(u=>o.some(f=>u.resourceIds.includes(f.id)))),Ce(i)?l.sort((u,f)=>i(We(u),We(f))):l.sort((u,f)=>u.start-f.start||f.allDay-u.allDay)}),l}}function Sl(e){return()=>{let{options:t,activeRange:r}=e,{hiddenDays:i}=t,s=[];return $(()=>{let o=Ct(q(r.start)),l=Ct(q(r.end));for(;o<l;)i.includes(o.getUTCDay())||s.push(q(o)),kt(o);if(!s.length&&i.length&&i.length<7)for(;i.includes(t.date.getUTCDay());)e.setOption("date",kt(q(t.date)))}),s}}function Rl(e){return()=>{let{activeRange:t,intlTitle:r,features:i,options:{date:s}}=e,o;return $(()=>{o=i.includes("day-grid")?r.formatRange(s,s):r.formatRange(t.start,Cn(q(t.end)))}),o}}function Il(e){return()=>{let{activeRange:t,currentRange:r,viewTitle:i,options:{view:s}}=e,o;return $(()=>{o=nl(s,i,r,t)}),o}}class Ll{#e;get auxComponents(){return n(this.#e)}set auxComponents(t){b(this.#e,t,!0)}#t;get currentRange(){return n(this.#t)}set currentRange(t){b(this.#t,t)}#n;get activeRange(){return n(this.#n)}set activeRange(t){b(this.#n,t)}#r;get fetchedRange(){return n(this.#r)}set fetchedRange(t){b(this.#r,t)}#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 today(){return n(this.#l)}set today(t){b(this.#l,t,!0)}#u;get intlEventTime(){return n(this.#u)}set intlEventTime(t){b(this.#u,t)}#f;get intlDayHeader(){return n(this.#f)}set intlDayHeader(t){b(this.#f,t)}#d;get intlDayHeaderAL(){return n(this.#d)}set intlDayHeaderAL(t){b(this.#d,t)}#c;get intlTitle(){return n(this.#c)}set intlTitle(t){b(this.#c,t)}#v;get viewDates(){return n(this.#v)}set viewDates(t){b(this.#v,t)}#h;get viewTitle(){return n(this.#h)}set viewTitle(t){b(this.#h,t)}#y;get view(){return n(this.#y)}set view(t){b(this.#y,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)}#p;get features(){return n(this.#p)}set features(t){b(this.#p,t,!0)}#g;get interaction(){return n(this.#g)}set interaction(t){b(this.#g,t,!0)}#m;get iClasses(){return n(this.#m)}set iClasses(t){b(this.#m,t,!0)}#_;get iClass(){return n(this.#_)}set iClass(t){b(this.#_,t,!0)}#k;constructor(t,r){let{proxy:i,setOption:s,initEffects:o}=_l(this,t,r);this.options=i,this.#k=s,this.#e=K(et([])),this.#t=a(El(this)),this.#n=a(Tl(this)),this.#r=K({start:void 0,end:void 0}),this.#s=K([]),this.#i=a(xl(this)),this.#o=K(),this.#a=K(et(Lt())),this.#l=K(et(Ct(Lt()))),this.#u=a(Ws(this,"eventTimeFormat")),this.#f=a(hn(this,"dayHeaderFormat")),this.#d=a(hn(this,"dayHeaderAriaLabelFormat")),this.#c=a(Ws(this,"titleFormat")),this.#v=a(Sl(this)),this.#h=a(Rl(this)),this.#y=a(Il(this)),this.#w=K(),this.#b=K(et({})),this.#p=K(et([])),this.#g=K(et({})),this.iEvents=new ri,this.#m=K(et(lr)),this.#_=K();for(let l of t)l.initState?.(this);o(),this.#C()}#C(){on(bl(this)),Ge(wl(this)),Ge(kl(this)),Ge(Cl(this)),Ge(Dl(this))}setViewComponent(t){this.extensions={},this.features=[],this.viewComponent=t(this)}setOption(t,r,i=!0){this.#k(t,r,i)}}var Pl=ee("<h2></h2>"),Ml=ee("<button><i></i></button>"),Al=ee("<button><i></i></button>"),Ol=ee("<button> </button>"),Nl=ee("<button></button>"),Fl=ee("<button> </button>");function Zs(e,t){be(t,!0);let r=te("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),_=a(()=>r.options.view),p=K(!1),m=K(!1),y=K(!1),k=!1;on(()=>{n(l),n(v),t.buttons,$(()=>{k||(k=!0,t.buttons.includes("prev")&&(b(p,!1),n(v).start&&b(p,S(D),!0)),t.buttons.includes("next")&&(b(m,!1),n(v).end&&b(m,S(C),!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,S(w),!0)),Un().then(()=>k=!1))})});function S(H){let L=n(d);H();let ue=n(l).every(B=>xn(B,n(v)));return r.setOption("date",L),ue}function D(){r.setOption("date",Ls(q(n(d)),n(h),n(g)))}function C(){r.setOption("date",Is(q(n(d)),n(h)))}function w(){r.setOption("date",q(n(s)))}var E=he(),P=J(E);re(P,17,()=>t.buttons,oe,(H,L)=>{var ue=he(),B=J(ue);{var Z=N=>{var A=Pl();Me(A,()=>Xe(n(o))),se(()=>O(A,1,n(c).title)),T(N,A)},X=N=>{var A=he(),Q=J(A);{var ve=ae=>{var Ee=Ml();Ee.__click=D;var W=le(Ee);se(()=>{O(Ee,1,`${n(c).button??""} ec-${n(L)??""}`),Pe(Ee,"aria-label",n(u).prev),Pe(Ee,"title",n(u).prev),Ee.disabled=n(p),O(W,1,`${n(c).icon??""} ec-${n(L)??""}`)}),T(ae,Ee)},U=ae=>{var Ee=he(),W=J(Ee);{var R=I=>{var fe=Al();fe.__click=C;var rt=le(fe);se(()=>{O(fe,1,`${n(c).button??""} ec-${n(L)??""}`),Pe(fe,"aria-label",n(u).next),Pe(fe,"title",n(u).next),fe.disabled=n(m),O(rt,1,`${n(c).icon??""} ec-${n(L)??""}`)}),T(I,fe)},V=I=>{var fe=he(),rt=J(fe);{var He=Y=>{var ie=Ol();ie.__click=w;var xe=le(ie);se(()=>{O(ie,1,`${n(c).button??""} ec-${n(L)??""}`),ie.disabled=n(y),ys(xe,n(u)[n(L)])}),T(Y,ie)},Pt=Y=>{var ie=he(),xe=J(ie);{var F=G=>{var de=Nl();de.__click=function(...Re){n(f)[n(L)].click?.apply(this,Re)},Me(de,()=>Xe(n(f)[n(L)].text)),se(()=>O(de,1,Rt([n(c).button,`ec-${n(L)}`,n(f)[n(L)].active&&n(c).active]))),T(G,de)},z=G=>{var de=he(),Re=J(de);{var we=Ie=>{var Ae=Fl();Ae.__click=()=>r.setOption("view",n(L));var ce=le(Ae);se(()=>{O(Ae,1,Rt([n(c).button,`ec-${n(L)}`,n(_)===n(L)&&n(c).active])),ys(ce,n(u)[n(L)])}),T(Ie,Ae)};_e(Re,Ie=>{n(L)!==""&&Ie(we)},!0)}T(G,de)};_e(xe,G=>{n(f)[n(L)]?G(F):G(z,!1)},!0)}T(Y,ie)};_e(rt,Y=>{n(L)==="today"?Y(He):Y(Pt,!1)},!0)}T(I,fe)};_e(W,I=>{n(L)==="next"?I(R):I(V,!1)},!0)}T(ae,Ee)};_e(Q,ae=>{n(L)==="prev"?ae(ve):ae(U,!1)},!0)}T(N,A)};_e(B,N=>{n(L)==="title"?N(Z):N(X,!1)})}T(H,ue)}),T(e,E),ke()}Zt(["click"]);var Hl=ee("<div><!></div>"),Ul=ee("<div></div>"),Wl=ee("<nav></nav>");function zl(e,t){be(t,!0);let r=a(()=>te("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=Wl();re(l,21,()=>fn(n(o)),oe,(u,f)=>{var d=Ul();re(d,21,()=>n(o)[n(f)],oe,(h,g)=>{var c=he(),v=J(c);{var _=m=>{var y=Hl(),k=le(y);Zs(k,{get buttons(){return n(g)}}),se(()=>O(y,1,n(s).buttonGroup)),T(m,y)},p=m=>{Zs(m,{get buttons(){return n(g)}})};_e(v,m=>{n(g).length>1?m(_):m(p,!1)})}T(h,c)}),se(()=>O(d,1,`ec-${n(f)??""}`)),T(u,d)}),se(()=>O(l,1,n(s).toolbar)),T(e,l),ke()}var Vl=ee("<div><!> <!> <!></div>");function Bl(e,t){be(t,!0);let r=De(t,"plugins",19,()=>[]),i=De(t,"options",19,()=>({})),s=new Ll(r(),i());Ln("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),_=a(()=>s.options.height),p=a(()=>s.options.hiddenDays),m=a(()=>s.options.theme),y={...i()};on(()=>{for(let[W,R]of yl(i(),y))$(()=>{k(W,R)});me(y,i())});function k(W,R){return Ka(R)&&(R={...R}),Kr(R)&&(R=[...R]),s.setOption(W,R,!1),this}function S(W){let R=s.options[W];return Zr(R)?Fe(R):R}function D(){return s.fetchedRange={start:void 0,end:void 0},this}function C(){return n(u).map(We)}function w(W){W=String(W);for(let R of n(u))if(R.id===W)return We(R);return null}function E(W){return W=dr([W])[0],n(u).push(W),s.events=[...n(u)],We(W)}function P(W){let R=String(W.id),V=n(u).findIndex(I=>I.id===R);return V>=0?(W=dr([W])[0],n(u)[V]=W,s.events=[...n(u)],We(W)):null}function H(W){W=String(W);let R=n(u).findIndex(V=>V.id===W);return R>=0&&(n(u).splice(R,1),s.events=[...n(u)]),this}function L(){return Ze(n(h))}function ue(){return n(f).action?.unselect(),this}function B(W,R){let V=Dn(W,R);if(V){let I=Vt(V)(W,R);return I.date=Fe(I.date),I}return null}function Z(){return s.setOption("date",Is(q(n(c)),n(v))),this}function X(){return s.setOption("date",Ls(q(n(c)),n(v),n(p))),this}var N={setOption:k,getOption:S,refetchEvents:D,getEvents:C,getEventById:w,addEvent:E,updateEvent:P,removeEventById:H,getView:L,unselect:ue,dateFromPoint:B,next:Z,prev:X},A=Vl();let Q;var ve=le(A);zl(ve,{});var U=ne(ve,2);{var ae=W=>{var R=he(),V=J(R);Wr(V,()=>n(g),(I,fe)=>{fe(I,{})}),T(W,R)};_e(U,W=>{n(g)&&W(ae)})}var Ee=ne(U,2);return re(Ee,17,()=>n(o),oe,(W,R)=>{var V=he(),I=J(V);Wr(I,()=>n(R),(fe,rt)=>{rt(fe,{})}),T(W,V)}),se(W=>{O(A,1,Rt([n(m).calendar,n(m).view,n(d)&&n(m)[n(d)]])),Pe(A,"role",W),Q=bt(A,"",Q,{height:n(_)})},[()=>n(l).includes("list")?"list":"table"]),T(e,A),ke(N)}function Yl(e){return()=>{let{options:{hiddenDays:t}}=e,r;return $(()=>r=7-t.length),r}}function Gl(e,t){return()=>{let{options:{highlightedDates:r,validRange:i},viewDates:s}=e,{colsCount:o}=t,l=[];return $(()=>{let u=[],f=1,d=1;for(let h of s)u.push({gridColumn:f,gridRow:d,resource:void 0,dayStart:h,dayEnd:kt(q(h)),disabled:xn(h,i),highlight:r.some(g=>Ke(g,h))}),f===o&&(l.push(u),u=[],f=0,++d),++f}),l}}function ql(e,t){return()=>{let{filteredEvents:r}=e,{grid:i}=t,s=[],o=[];return $(()=>{for(let l of r)for(let u of i)gt(l.display)?l.allDay&&(o=o.concat(Tn(l,u))):s=s.concat(Tn(l,u));Hs(s)}),{chunks:s,bgChunks:o}}}function Xl(e,t){return()=>{let{iEvents:r}=e,{grid:i}=t,s=[];for(let[,o]of r)o&&$(()=>{for(let l of i)s=s.concat(Tn(o,l))});return s}}let Kl=class{#e;get colsCount(){return n(this.#e)}set colsCount(t){b(this.#e,t)}#t;get grid(){return n(this.#t)}set grid(t){b(this.#t,t)}#n;get gridEl(){return n(this.#n)}set gridEl(t){b(this.#n,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(Yl(t)),this.#t=a(Gl(t,this)),this.#n=K();let r=a(ql(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(Xl(t,this)),this.hiddenChunks=new ri,this.#o=a(hn(t,"dayCellFormat")),this.#a=a(hn(t,"dayPopoverFormat")),this.#l=K(null)}};var Zl=ee("<div><!></div>");function mr(e,t){be(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,lr),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(()=>te("state")),v=a(()=>n(c).today),_=a(()=>n(c).interaction.action),p=a(()=>n(c).options.theme),m=a(()=>te("view-state")),y=a(()=>n(m).snap),k=a(()=>Ke(t.date,n(v))),S=a(()=>l()([n(p).day,n(p).weekdays?.[t.date.getUTCDay()],n(k)&&n(p).today,f()&&n(p).highlight,u()&&n(p).disabled,h()&&n(p).noIeb,g()&&n(p).noBeb]));Vn(()=>{Ms(r(),(E,P)=>({allDay:i(),date:o()(E,P),resource:s(),dayEl:r(),disabled:u()}))});let D=a(()=>!u()&&n(_)?E=>n(_).select(E,n(y)):void 0);var C=Zl();C.__pointerdown=function(...E){n(D)?.apply(this,E)};var w=le(C);zt(w,()=>t.children??Yt),nt(C,E=>r(E),()=>r()),se(()=>{O(C,1,Rt(n(S))),Pe(C,"role",d())}),T(e,C),ke()}Zt(["pointerdown"]);var Jl=ee("<div></div>"),Ql=ee("<article><!></article>");function Js(e,t){be(t,!0);let r=De(t,"el",15),i=De(t,"classes",3,lr),s=De(t,"styles",3,lr),o=a(()=>te("state")),l=a(()=>n(o).intlEventTime),u=a(()=>n(o).view),f=a(()=>n(o).options.displayEventEnd),d=a(()=>n(o).options.eventBackgroundColor),h=a(()=>n(o).options.eventColor),g=a(()=>n(o).options.eventContent),c=a(()=>n(o).options.eventClick),v=a(()=>n(o).options.eventDidMount),_=a(()=>n(o).options.eventClassNames),p=a(()=>n(o).options.eventMouseEnter),m=a(()=>n(o).options.eventMouseLeave),y=a(()=>n(o).options.eventTextColor),k=a(()=>n(o).options.resources),S=a(()=>n(o).options.theme),D=a(()=>t.chunk.event),C=a(()=>t.chunk.event.display),w=a(()=>n(D).backgroundColor??vl(n(D),n(k))??n(d)??n(h)),E=a(()=>n(D).textColor??gl(n(D),n(k))??n(y)),P=a(()=>xs(s()({"background-color":n(w),color:n(E)})).map(R=>`${R[0]}:${R[1]}`).concat(n(D).styles).join(";")),H=a(()=>i()([gt(n(C))?n(S).bgEvent:n(S).event,...ol(n(_),n(D),n(u))])),L=a(()=>sl(t.chunk,n(f),n(g),n(S),n(l),n(u))),ue=a(()=>Co(n(L),2)),B=a(()=>n(ue)[0]),Z=a(()=>n(ue)[1]);Vn(()=>{Ce(n(v))&&n(v)({event:We(n(D)),timeText:n(B),el:r(),view:Ze(n(u))})});function X(R,V){return Ce(R)&&!cr(V)?I=>R({event:We(n(D)),el:r(),jsEvent:I,view:Ze(n(u))}):void 0}let N=a(()=>!gt(n(C))&&X(n(c),n(C))||void 0),A=a(()=>n(N)&&Gr(n(N))),Q=a(()=>X(n(p),n(C))),ve=a(()=>X(n(m),n(C)));var U=Ql();U.__click=function(...R){n(N)?.apply(this,R)},U.__keydown=function(...R){n(A)?.apply(this,R)},U.__pointerdown=function(...R){t.onpointerdown?.apply(this,R)};{const R=V=>{var I=Jl();Me(I,()=>Xe(n(Z))),se(()=>O(I,1,Rt(n(S).eventBody))),T(V,I)};var ae=le(U);{var Ee=V=>{var I=he(),fe=J(I);zt(fe,()=>t.body,()=>R,()=>n(w),()=>n(E)),T(V,I)},W=V=>{R(V)};_e(ae,V=>{t.body?V(Ee):V(W,!1)})}nt(U,V=>r(V),()=>r())}se(()=>{O(U,1,Rt(n(H))),bt(U,n(P)),Pe(U,"role",n(N)?"button":void 0),Pe(U,"tabindex",n(N)?0:void 0)}),lt("mouseenter",U,function(...R){n(Q)?.apply(this,R)}),lt("mouseleave",U,function(...R){n(ve)?.apply(this,R)}),T(e,U),ke()}Zt(["click","keydown","pointerdown"]);var jl=ee("<div><!></div>");function Gn(e,t){be(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(()=>te("state")),f=a(()=>n(u).today),d=a(()=>n(u).options.theme);var h=jl(),g=le(h);zt(g,()=>t.children),se(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)},[()=>Rt([t.className??n(d).colHead,r()&&n(d).weekdays?.[t.date.getUTCDay()],r()&&Ke(t.date,n(f))&&n(d).today,l()&&n(d).highlight,o()&&n(d).disabled])]),T(e,h),ke()}var $l=ee("<time></time>");function pr(e,t){be(t,!0);let r=De(t,"alPrefix",3,""),i=a(()=>te("state")),s=a(()=>n(i).intlDayHeader),o=a(()=>n(i).intlDayHeaderAL);var l=$l();Me(l,()=>Xe(n(s).format(t.date))),se((u,f)=>{Pe(l,"datetime",u),Pe(l,"aria-label",`${r()??""}${f??""}`)},[()=>ft(t.date,10),()=>n(o).format(t.date)]),T(e,l),ke()}function _r(e,t){be(t,!0);let r=De(t,"el",15),i=a(()=>te("state")),s=a(()=>n(i).iClasses),o=a(()=>n(i).interaction.action),l=a(()=>n(i).interaction.resizer),u=a(()=>te("view-state")),f=a(()=>n(u).snap),d=a(()=>t.chunk.event),h=a(()=>t.chunk.event.display),g=a(()=>_=>n(s)(_,n(d)));function c(_){return n(o)?.draggable(_)?p=>n(o).drag(_,p,t.forceDate,t.forceMargin,n(f)):n(o)?.noAction}let v=a(()=>!gt(n(h))&&!cr(n(h))?c(n(d)):void 0);Js(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(p){r(p)},body:(p,m=Yt)=>{var y=he(),k=J(y);{var S=C=>{var w=he(),E=J(w);Wr(E,()=>n(l),(P,H)=>{H(P,{get chunk(){return t.chunk},get axis(){return t.axis},get forceDate(){return t.forceDate},get forceMargin(){return t.forceMargin},children:(L,ue)=>{var B=he(),Z=J(B);zt(Z,m),T(L,B)},$$slots:{default:!0}})}),T(C,w)},D=C=>{var w=he(),E=J(w);zt(E,m),T(C,w)};_e(k,C=>{n(l)?C(S):C(D,!1)})}T(p,y)},$$slots:{body:!0}}),ke()}var eu=ee("<span></span>"),tu=ee('<a role="button" tabindex="0" aria-haspopup="dialog"></a>'),nu=ee("<div><time></time> <!></div> <div><!></div>",1);function ru(e,t){be(t,!0);const r=()=>Wa(n(f),"$firstDay",i),[i,s]=za();let o=te("state"),l=te("view-state"),u=a(()=>o.options.date),f=a(()=>o.options.firstDay),d=a(()=>o.options.moreLinkContent),h=a(()=>o.options.theme),g=a(()=>o.options.weekNumbers),c=a(()=>o.options.weekNumberContent),v=a(()=>l.hiddenChunks),_=a(()=>l.intlDayCell),p=a(()=>t.day.dayStart),m=a(()=>t.day.disabled),y=a(()=>t.day.highlight),k=a(()=>n(p).getUTCMonth()!==n(u).getUTCMonth()),S=a(()=>H=>[...H,n(k)&&n(h).otherMonth]),D=a(()=>n(g)&&n(p).getUTCDay()===(n(f)?1:0)),C=a(()=>{let H;if(n(D)){let L=$a(n(p),r());n(c)?H=Ce(n(c))?n(c)({date:Fe(n(p)),week:L}):n(c):H="W"+String(L).padStart(2,"0")}return H}),w=a(()=>n(v).get(n(p).getTime())),E=a(()=>{let H="";if(n(w)){let L="+"+n(w).length+" more";n(d)?H=Ce(n(d))?n(d)({num:n(w).length,text:L}):n(d):H=L}return H});function P(){l.popupDay=t.day}mr(e,{get date(){return n(p)},allDay:!0,get classes(){return n(S)},get disabled(){return n(m)},get highlight(){return n(y)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},children:(H,L)=>{var ue=nu(),B=J(ue),Z=le(B);Me(Z,()=>Xe(n(_).format(n(p))));var X=ne(Z,2);{var N=U=>{var ae=eu();Me(ae,()=>Xe(n(C))),se(()=>O(ae,1,n(h).weekNumber)),T(U,ae)};_e(X,U=>{n(D)&&U(N)})}var A=ne(B,2),Q=le(A);{var ve=U=>{var ae=tu(),Ee=a(()=>Jr(P));ae.__click=function(...V){n(Ee)?.apply(this,V)};var W=a(()=>Gr(P));ae.__keydown=function(...V){n(W)?.apply(this,V)};var R=a(Jr);ae.__pointerdown=function(...V){n(R)?.apply(this,V)},Me(ae,()=>Xe(n(E))),T(U,ae)};_e(Q,U=>{n(w)&&U(ve)})}se(U=>{O(B,1,n(h).dayHead),Pe(Z,"datetime",U),O(A,1,n(h).dayFoot)},[()=>ft(n(p),10)]),T(H,ue)},$$slots:{default:!0}}),ke(),s()}Zt(["click","keydown","pointerdown"]);function yr(e,t){be(t,!0);let r=De(t,"inPopup",3,!1),i=a(()=>te("state")),s=a(()=>n(i).options.dayMaxEvents),o=a(()=>te("view-state")),l=a(()=>n(o).colsCount),u=a(()=>n(o).gridEl),f=a(()=>n(o).hiddenChunks),d=a(()=>n(o).popupDay),h=K(void 0),g=K(0),c=K(!1),v=a(()=>t.chunk.event),_=a(()=>t.chunk.event.display),p=a(()=>n(u).children.item((t.chunk.gridRow-1)*n(l)+t.chunk.gridColumn-1));Ge(()=>{r()||b(g,cn(n(p).firstElementChild),!0)});let m=a(()=>C=>{if(C["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,C["grid-row"]=t.chunk.gridRow,!gt(n(_))){let w=r()?1:n(g);if(n(v)._margin){let[E,P]=n(v)._margin;E>w&&t.chunk.gridRow===P&&(w=E)}C["margin-block-start"]=`${w}px`}return n(c)&&(C.visibility="hidden"),C});function y(){b(g,Us(t.chunk,cn(n(h)),cn(n(p).firstElementChild)),!0)}function k(){if(n(s)===!0){let C=cn(n(p))-S(n(p));if(b(c,t.chunk.bottom>C),n(c))for(let w of t.chunk.dates){let E=w.getTime();if(n(f).has(E)){let P=n(f).get(E);P.includes(t.chunk)||n(f).set(E,[...P,t.chunk])}else n(f).set(E,[t.chunk])}}else b(c,!1),n(f).size&&n(f).clear()}function S(C){let w=0;for(let E=0;E<t.chunk.dates.length&&(w=ut(w,cn(C.lastElementChild)),C=C.nextElementSibling,!!C);++E);return w}var D={reposition:y,hide:k};{let C=a(()=>r()&&n(d).dayStart),w=a(()=>[n(g),t.chunk.gridRow]);_r(e,{get chunk(){return t.chunk},get styles(){return n(m)},axis:"x",get forceDate(){return n(C)},get forceMargin(){return n(w)},get el(){return n(h)},set el(E){b(h,E,!0)}})}return ke(D)}var iu=ee('<dialog closedby="closerequest"><header><time></time> <a role="button" tabindex="0">&times;</a></header> <div></div></dialog>');function su(e,t){be(t,!0);let r=te("view-state"),i=a(()=>te("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=K(void 0),v=K(""),_=a(()=>n(g).gridColumn),p=a(()=>n(g).gridRow),m=a(()=>n(g).dayStart),y=a(()=>n(g).dayEnd),k=a(()=>{let X=[];for(let N of n(f))N.gridRow===n(p)&&N.gridColumn<=n(_)&&N.gridColumn+N.dates.length>n(_)&&X.push(me({},N,Yn(N.event,n(m),n(y))));return X.sort((N,A)=>N.top-A.top),X});Vn(()=>{n(c).show()}),Ge(()=>{n(k).length?$(S):D()});function S(){let X=n(d).children.item((n(p)-1)*n(u)+n(_)-1),N=Qt(n(c)),A=Qt(X),Q=Qt(n(d));b(v,"");let ve;if(N.width>=Q.width){ve=Q.left-A.left;let ae=A.right-Q.right;b(v,n(v)+`inset-inline-end:${ae}px;`)}else ve=(A.width-N.width)/2,A.left+ve<Q.left?ve=Q.left-A.left:A.left+ve+N.width>Q.right&&(ve=Q.right-A.left-N.width);b(v,n(v)+`inset-inline-start:${ve}px;`);let U;N.height>=Q.height?(U=Q.top-A.top,b(v,n(v)+`block-size:${Q.height}px;`)):(U=(A.height-N.height)/2,A.top+U<Q.top?U=Q.top-A.top:A.top+U+N.height>Q.bottom&&(U=Q.bottom-A.top-N.height)),b(v,n(v)+`inset-block-start:${U}px;`)}function D(){r.popupDay=null}function C(){D(),n(s).action?.noClick()}var w=iu();let E;var P=le(w),H=le(P);Me(H,()=>Xe(n(h).format(n(m))));var L=ne(H,2);da(L);var ue=a(()=>Jr(D));L.__click=function(...X){n(ue)?.apply(this,X)};var B=a(()=>Gr(D));L.__keydown=function(...X){n(B)?.apply(this,X)};var Z=ne(P,2);re(Z,21,()=>n(k),oe,(X,N)=>{yr(X,{get chunk(){return n(N)},inPopup:!0})}),nt(w,X=>b(c,X),()=>n(c)),Me(w,()=>Ga("pointerdown")),se(X=>{O(w,1,n(l).popup),E=bt(w,n(v),E,{"grid-area":`${n(p)+1} / ${n(_)}`}),O(P,1,n(l).dayHead),Pe(H,"datetime",X),Pe(L,"aria-label",n(o).close),O(Z,1,n(l).events)},[()=>ft(n(m),10)]),lt("pointerdownoutside",w,C),lt("close",w,D),T(e,w),ke()}Zt(["click","keydown"]);var ou=ee('<div role="columnheader"><span></span></div>'),au=ee('<section><header><div role="row"></div></header> <div><div></div> <div><!> <!> <!></div></div> <!></section>');function lu(e,t){be(t,!0);let r=te("state"),i=new Kl(r);Ln("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),_=[];function p(){n(c).clear(),ti(_,n(d))}Ge(p),Ge(()=>{n(d),_.forEach(B=>B.hide())});var m=au();let y;var k=le(m),S=le(k);re(S,21,()=>n(f)[0],oe,(B,Z,X)=>{let N=()=>n(Z).dayStart;var A=ou();Pe(A,"aria-colindex",1+X);var Q=le(A);Me(Q,()=>Xe(n(s).format(N()))),se((ve,U)=>{O(A,1,ve),Pe(Q,"aria-label",U)},[()=>Rt([n(u).colHead,n(u).weekdays?.[N().getUTCDay()]]),()=>n(o).format(N())]),T(B,A)});var D=ne(k,2),C=le(D);re(C,21,()=>n(f),oe,(B,Z,X)=>{var N=he(),A=J(N);re(A,17,()=>n(Z),oe,(Q,ve,U)=>{{let ae=a(()=>U+1===n(Z).length),Ee=a(()=>X+1===n(f).length);ru(Q,{get day(){return n(ve)},get noIeb(){return n(ae)},get noBeb(){return n(Ee)}})}}),T(B,N)}),nt(C,B=>i.gridEl=B,()=>i?.gridEl);var w=ne(C,2),E=le(w);re(E,17,()=>n(d),oe,(B,Z,X)=>{nt(yr(B,{get chunk(){return n(Z)}}),(N,A)=>_[A]=N,N=>_?.[N],()=>[X])});var P=ne(E,2);re(P,17,()=>n(h),oe,(B,Z)=>{yr(B,{get chunk(){return n(Z)}})});var H=ne(P,2);re(H,17,()=>n(g),oe,(B,Z)=>{yr(B,{get chunk(){return n(Z)}})});var L=ne(D,2);{var ue=B=>{su(B,{})};_e(L,B=>{n(v)&&B(ue)})}nt(m,B=>r.mainEl=B,()=>r?.mainEl),Me(m,()=>qr(p)),se(()=>{O(m,1,Rt([n(u).main,n(l)===!0&&n(u).uniform])),y=bt(m,"",y,{"--ec-grid-cols":n(f)[0].length,"--ec-grid-rows":n(f).length}),O(k,1,n(u).header),O(S,1,n(u).grid),O(D,1,n(u).body),O(C,1,n(u).grid),O(w,1,n(u).events)}),T(e,m),ke()}const uu={createOptions(e){me(e,{dayMaxEvents:!1,dayCellFormat:{day:"numeric"},dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},moreLinkContent:void 0,weekNumbers:!1,weekNumberContent:void 0,view:"dayGridMonth"}),me(e.buttonText,{dayGridMonth:"month",close:"Close"}),me(e.theme,{uniform:"ec-uniform",dayFoot:"ec-day-foot",otherMonth:"ec-other-month",popup:"ec-popup",weekNumber:"ec-week-number"}),me(e.views,{dayGridMonth:{buttonText:ni,component:fu,dayHeaderFormat:{weekday:"short"},dayHeaderAriaLabelFormat:{weekday:"long"},displayEventEnd:!1,duration:{months:1},theme:mt("ec-day-grid ec-month-view"),titleFormat:{year:"numeric",month:"long"}}})}};function fu(e){return e.features=["day-grid"],e.extensions.activeRange=(t,r)=>{let{options:{firstDay:i}}=e;return{start:Ss(t,i),end:ja(r,i)}},lu}function Qs(e,t,r){return e.startEditable??t??e.editable??r}function du(e,t,r){return e.durationEditable??t??e.editable??r}let oi=!1;function cu(e){oi||(oi=!0,window.requestAnimationFrame(()=>{e(),oi=!1}))}function js(e,t,r){return ut(t,It(r,e))}function hu(e){return()=>{let{options:{editable:t,eventStartEditable:r,theme:i}}=e;e.iClasses=(s,o)=>{let{display:l}=o;return[...s,cr(l)?[i[l]]:!gt(l)&&Qs(o,r,t)?[i.draggable]:[]]}}}function vu(e){return()=>{let{interaction:t,mainEl:r}=e;if(r)return Bn(r,"scroll",()=>{t.action.handleScroll(),t.pointer?.handleScroll()})}}class gu{constructor(t){this.#e(t)}#e(t){on(hu(t)),Ge(vu(t))}}function mu(e,t){be(t,!0);let r=te("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),_=a(()=>r.options.eventDragStart),p=a(()=>r.options.eventDragStop),m=a(()=>r.options.eventDrop),y=a(()=>r.options.eventLongPressDelay),k=a(()=>r.options.eventResizeStart),S=a(()=>r.options.eventResizeStop),D=a(()=>r.options.eventResize),C=a(()=>r.options.longPressDelay),w=a(()=>r.options.resizeConstraint),E=a(()=>r.options.selectable),P=a(()=>r.options.select),H=a(()=>r.options.selectBackgroundColor),L=a(()=>r.options.selectConstraint),ue=a(()=>r.options.selectLongPressDelay),B=a(()=>r.options.selectMinDistance),Z=a(()=>r.options.unselect),X=a(()=>r.options.unselectAuto),N=a(()=>r.options.unselectCancel),A=a(()=>r.options.validRange);const Q=1,ve=2,U=3,ae=4,Ee=5,W=6;let R,V,I,fe,rt,He,Pt,Y,ie,xe,F,z,G,de,Re,we,Ie,Ae,ce,ze,dt,$e,pt,Oe,vn,Bt,jt;function Rf(x){return Qs(x,n(c),n(g))}function If(x,M,pe,j,Je){R||(R=_i(M)?Q:W,gn()&&(I=x,pi(M,Je),pe&&(He=pe),j&&(vn=j),Ae="dragging",Sn(M)))}function Lf(x,M,pe,j,Je,Xn,wi,Gf){R||(R=_i(M)?pe?U:ve:W,gn()&&(I=x,pi(M,Gf),Je&&(He=Je),Xn&&(vn=Xn),Ae=j==="x"?"resizingX":"resizingY",Cr()?(ce=q(I.end),Ie?(Qr(ce,I.start),ce>=I.end&&Cn(ce)):(fr(ce,Bt),ce<I.start&&(ce=I.start),He=I.start)):(ce=q(I.start),Ie?(Qr(ce,I.end),ce<=I.start&&!wi&&kt(ce)):(Se(ce,Bt),ce>I.end&&(ce=I.end),He=I.end,wi||(He=fr(q(He),Bt))),wi&&!Ie&&(jt=Bt)),Sn(M)))}function Pf(x,M){R||(R=_i(x)?n(E)&&!n(o).includes("list")?ae:Ee:W,gn()&&(pi(x,M),Ae="selecting",ze=Ie?Ne({day:1}):Bt,I={allDay:Ie,start:He,end:Se(q(He),ze),resourceIds:Y?[Y.id]:[]},Sn(x)))}function Mf(){R||(R=W)}function pi(x,M){window.getSelection().removeAllRanges(),xe=z=x.clientX,F=G=x.clientY,Bt=M?.duration;let pe=Dn(z,G);({allDay:Ie,date:He,resource:Y}=Vt(pe)(z,G)),Re=n(u)!==Os(pe,3),de=Os(pe,1),co(),x.pointerType!=="mouse"&&(pt=setTimeout(()=>{R&&(V=!0,Sn(x))},($t()?n(ue):n(y))??n(C)))}function Sn(x){if(V||x&&x.pointerType==="mouse"&&Hf()>=($t()?n(B):n(v))){V=!0,Dr(x),r.iClass=Ae,fe||($t()?Ff():Nf(x,Rn()?n(k):n(_)));let M=qn(Of());if(M){let pe;if({allDay:pe,date:Pt,resource:ie}=M,pe===Ie){let j=kr({},fe),Je=n(w);we=Ne((Pt-He)/1e3),Cr()?(j.start=Se(q(I.start),we),j.start>ce&&(j.start=ce,we=Ne((ce-I.start)/1e3))):(j.end=Se(q(I.end),we),jt&&Se(j.end,jt),Rn()?j.end<ce&&(j.end=ce,we=Ne((ce-I.end)/1e3)):$t()?(j.end<I.end?(j.start=fr(j.end,ze),j.end=I.end):j.start=I.start,Je=n(L)):(j.start=Se(q(I.start),we),Y&&(j.resourceIds=I.resourceIds.filter(Xn=>Xn!==Y.id),j.resourceIds.push(ie.id)),Je=n(d)));do{if(Je!==void 0&&(j=kr(ei(I),j),Je($t()?mo(j,x):po(j,I,x))===!1)){go(I);break}go(j)}while(!1)}}}if(n(h)){let M=24,pe=24;cu(()=>{Oe&&(Re||(G<Oe.top+M&&(n(u).scrollTop+=ut(-8,(G-Oe.top-M)/3)),G>Oe.bottom-M&&(n(u).scrollTop+=It(8,(G-Oe.bottom+M)/3))),z<Oe.left+pe&&(n(u).scrollLeft+=ut(-8,(z-Oe.left-pe)/3)),z>Oe.right-pe&&(n(u).scrollLeft+=It(8,(z-Oe.right+pe)/3)),G<M&&window.scrollBy(0,ut(-8,(G-M)/3)),G>window.innerHeight-M&&window.scrollBy(0,It(8,(G-window.innerHeight+M)/3)))})}}function uo(){gn()&&(co(),Sn())}function Af(x){gn()&&x.isPrimary&&(z=x.clientX,G=x.clientY,Sn(x))}function fo(x){if(dt&&n(X)&&!(n(N)&&x.target.closest(n(N)))&&Dr(x),R&&x.isPrimary){if(V)if($t()){if(dt=!0,Ce(n(P))){let M=mo(fe,x);n(P)(M)}}else{I.display=rt;let M=Rn()?n(S):n(p);Ce(M)&&M({event:We(I),jsEvent:x,view:Ze(n(l))});let pe=ei(I);if(vo(I,fe),ho(),M=Rn()?n(D):n(m),Ce(M)){let j=I,Je=po(I,pe,x);M(me(Je,{revert(){vo(j,pe)}}))}}else if((Uf()||$t())&&Ce(n(f))&&!$e){z=x.clientX,G=x.clientY;let M=Dn(z,G);if(M){let{allDay:pe,date:j,resource:Je}=Vt(M)(z,G);n(f)({allDay:pe,date:Fe(j),dateStr:ft(j),dayEl:M,jsEvent:x,view:Ze(n(l)),resource:Je})}}V=!1,R=xe=F=z=G=I=rt=He=Pt=Y=ie=we=jt=Ie=ce=ze=vn=de=Oe=Bt=void 0,r.iClass=void 0,pt&&(clearTimeout(pt),pt=void 0)}$e=!1}function Of(){return Dn(js(z,Oe.left,Oe.right),js(G,Oe.top,Oe.bottom))}function qn(x){if(x){let M=Vt(x)(z,G);if(M.disabled){if(!n(A).end||M.date<n(A).end)return qn(x.nextElementSibling);if(!n(A).start||M.date>n(A).start)return qn(x.previousElementSibling)}else return($t()||Rn())&&M.resource&&!fe.resourceIds.includes(M.resource.id)&&!n(o).includes("timeline")?z>xe?qn(x.previousElementSibling):qn(x.nextElementSibling):M}return null}function co(){let x=Qt(n(u)),M=Qt(de),pe=x.width/n(u).offsetWidth,j=x.height/n(u).offsetHeight,Je=dn();Oe={left:ut(0,Je?x.right-n(u).clientWidth*pe:M.left+n(u).scrollLeft*pe),right:It(document.documentElement.clientWidth,Je?M.right+n(u).scrollLeft*pe:x.left+n(u).clientWidth*pe)-2,top:ut(0,M.top+(Re?0:n(u).scrollTop)*j),bottom:It(document.documentElement.clientHeight,Re?M.bottom:x.top+n(u).clientHeight*j)-2}}function Nf(x,M){Ce(M)&&M({event:We(I),jsEvent:x,view:Ze(n(l))}),rt=I.display,I.display="preview",fe=ei(I),vn!==void 0&&(fe._margin=vn),jt&&Se(fe.end,jt),I.display="ghost",r.events=[...n(i)]}function Ff(){fe={id:"{select}",allDay:I.allDay,start:I.start,title:"",display:"preview",extendedProps:{},backgroundColor:n(H),resourceIds:I.resourceIds,classNames:[],styles:[]}}function ho(){fe=void 0,n(s).delete("action")}function kr(x,M){return x.start=M.start,x.end=M.end,x.resourceIds=M.resourceIds,{...x}}function vo(x,M){kr(x,M),r.events=[...n(i)]}function go(x){fe=kr(fe,x),n(s).set("action",fe)}function mo(x,M){let{start:pe,end:j}=We(x);return{start:pe,end:j,startStr:ft(x.start),endStr:ft(x.end),allDay:Ie,view:Ze(n(l)),resource:Y,jsEvent:M}}function po(x,M,pe){let j;return Rn()?j=Cr()?{startDelta:we,endDelta:Ne(0)}:{startDelta:Ne(0),endDelta:we}:j={delta:we,oldResource:Y!==ie?Y:void 0,newResource:Y!==ie?ie:void 0},me(j,{event:We(x),oldEvent:We(M),view:Ze(n(l)),jsEvent:pe}),j}function Hf(){return Math.sqrt(Math.pow(z-xe,2)+Math.pow(G-F,2))}function Rn(){return R===ve||Cr()}function Cr(){return R===U}function Uf(){return R===Ee}function $t(){return R===ae}function gn(){return R&&R<Ee}function _i(x){return x.isPrimary&&(x.pointerType!=="mouse"||x.buttons&1)}function Dr(x){dt&&(dt=!1,ho(),Ce(n(Z))&&n(Z)({jsEvent:x,view:Ze(n(l))}))}on(()=>{n(l),Dr()});function Wf(){$e=!0}function zf(x){if(gn()){let M=x.target,pe=[],j=()=>Ja(pe);pe.push(Bn(M,"touchmove",yi(()=>V))),pe.push(Bn(M,"touchend",j)),pe.push(Bn(M,"touchcancel",j))}}function yi(x){return M=>{x()&&M.preventDefault()}}Vn(()=>Bn(window,"touchmove",Qa,{passive:!1}));var Vf={draggable:Rf,drag:If,resize:Lf,select:Pf,noAction:Mf,handleScroll:uo,unselect:Dr,noClick:Wf};lt("pointermove",yt,Af),lt("pointerup",yt,fo),lt("pointercancel",yt,fo),lt("scroll",yt,uo);var Bf=a(()=>yi(gn));lt("selectstart",yt,function(...x){n(Bf)?.apply(this,x)});var Yf=a(()=>yi(()=>pt));return lt("contextmenu",yt,function(...x){n(Yf)?.apply(this,x)}),lt("touchstart",yt,zf,void 0,!0),ke(Vf)}function pu(e,t){be(t,!0);let r=a(()=>te("state")),i=a(()=>n(r).iEvents),s=a(()=>n(r).options.slotDuration),o=0,l=0,u;function f(){let p=Dn(o,l);if(p&&!n(i).has("action")){let{allDay:m,date:y,resource:k,disabled:S}=Vt(p)(o,l);if(!S){u||g(),u.allDay=m,u.start=y,u.end=Se(q(y),n(s)),u.resourceIds=k?[k.id]:[],n(i).set("pointer",{...u});return}}c()}function d(){f()}function h(p){v(p)&&(o=p.clientX,l=p.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(p){return p.isPrimary&&p.pointerType==="mouse"}var _={handleScroll:d};return lt("pointermove",yt,h),lt("scroll",yt,d),ke(_)}var _u=ee("<div></div>"),yu=ee("<div></div>"),wu=ee("<!> <!> <!>",1);function bu(e,t){be(t,!0);let r=De(t,"forceDate",3,void 0),i=De(t,"forceMargin",3,void 0),s=a(()=>te("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(()=>te("view-state")),g=a(()=>n(h).snap),c=a(()=>t.chunk.event),v=a(()=>t.chunk.event.display),_=a(()=>!gt(n(v))&&!cr(n(v))&&du(n(c),n(u),n(l)));function p(w){return E=>n(o).resize(n(c),E,w,t.axis,r(),i(),t.chunk.zeroDuration,n(g))}var m=wu(),y=J(m);{var k=w=>{var E=_u(),P=a(()=>p(!0));E.__pointerdown=function(...H){n(P)?.apply(this,H)},se(()=>O(E,1,`${n(d).resizer??""} ${n(d).start??""}`)),T(w,E)};_e(y,w=>{n(_)&&n(f)&&w(k)})}var S=ne(y,2);zt(S,()=>t.children);var D=ne(S,2);{var C=w=>{var E=yu(),P=a(()=>p(!1));E.__pointerdown=function(...H){n(P)?.apply(this,H)},se(()=>O(E,1,n(d).resizer)),T(w,E)};_e(D,w=>{n(_)&&w(C)})}T(e,m),ke()}Zt(["pointerdown"]);var ku=ee("<!> <!>",1);function Cu(e,t){be(t,!0);let r=te("state");new gu(r);let i=a(()=>r.interaction),s=a(()=>r.options.pointer);n(i).resizer=bu;var o=ku(),l=J(o);nt(mu(l,{}),d=>n(i).action=d,()=>n(i)?.action);var u=ne(l,2);{var f=d=>{nt(pu(d,{}),h=>n(i).pointer=h,()=>n(i)?.pointer)};_e(u,d=>{n(s)&&d(f)})}T(e,o),ke()}const Du={createOptions(e){me(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:""}),me(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(Cu)}};let Eu=class{#e;get intlListDay(){return n(this.#e)}set intlListDay(t){b(this.#e,t)}#t;get intlListDaySide(){return n(this.#t)}set intlListDaySide(t){b(this.#t,t)}constructor(t){this.#e=a(hn(t,"listDayFormat")),this.#t=a(hn(t,"listDaySideFormat"))}};var Tu=ee("<div></div> <!>",1);function xu(e,t){be(t,!0);let r=a(()=>te("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=Yt,h=Yt,g=Yt)=>{var c=Tu(),v=J(c);let _;var p=ne(v,2);zt(p,d),se(()=>{O(v,1,n(s).eventTag),_=bt(v,"",_,{"background-color":h()})}),T(f,c)};let u=a(()=>n(i).action?.noAction);Js(e,{get chunk(){return t.chunk},get styles(){return n(o)},get onpointerdown(){return n(u)},body:l,$$slots:{body:!0}})}ke()}var Su=ee("<h4><time></time> <time></time></h4> <!>",1);function Ru(e,t){be(t,!0);let r=a(()=>te("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(()=>te("view-state")),f=a(()=>n(u).intlListDay),d=a(()=>n(u).intlListDaySide),h=a(()=>n(s).some(y=>Ke(y,t.date))),g=a(()=>xn(t.date,n(l))),c=a(()=>ft(t.date,10)),v=a(()=>{let y=[];if(!n(g)){let k=t.date,S=kt(q(t.date));for(let D of n(i))if(!gt(D.display)&&En(D,k,S)){let C=Yn(D,k,S);y.push(C)}}return y});var _=he(),p=J(_);{var m=y=>{mr(y,{get date(){return t.date},allDay:!0,role:"listitem",get disabled(){return n(g)},get highlight(){return n(h)},children:(k,S)=>{var D=Su(),C=J(D),w=le(C);Me(w,()=>Xe(n(f).format(t.date)));var E=ne(w,2);Me(E,()=>Xe(n(d).format(t.date)));var P=ne(C,2);re(P,17,()=>n(v),H=>H.event,(H,L)=>{xu(H,{get chunk(){return n(L)}})}),se(()=>{O(C,1,n(o).dayHead),Pe(w,"datetime",n(c)),O(E,1,n(o).daySide),Pe(E,"datetime",n(c))}),T(k,D)},$$slots:{default:!0}})};_e(p,y=>{n(v).length&&y(m)})}T(e,_),ke()}var Iu=ee("<div></div>"),Lu=ee("<section><!></section>");function Pu(e,t){be(t,!0);let r=te("state"),i=new Eu(r);Ln("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(n(l).length){let k=n(l)[0],S=kt(q(n(l).at(-1)));for(let D of n(s))if(!gt(D.display)&&D.start<S&&D.end>k){y=!1;break}}return y}),g=a(()=>Ce(n(f))?n(f)():n(f));function c(y){Ce(n(u))&&n(u)({jsEvent:y,view:Ze(n(o))})}var v=Lu(),_=le(v);{var p=y=>{var k=Iu();k.__click=c,Me(k,()=>Xe(n(g))),se(()=>O(k,1,n(d).noEvents)),T(y,k)},m=y=>{var k=he(),S=J(k);re(S,17,()=>n(l),oe,(D,C)=>{Ru(D,{get date(){return n(C)}})}),T(y,k)};_e(_,y=>{n(h)?y(p):y(m,!1)})}nt(v,y=>r.mainEl=y,()=>r?.mainEl),se(()=>O(v,1,n(d).main)),T(e,v),ke()}Zt(["click"]);const Mu={createOptions(e){me(e,{listDayFormat:{weekday:"long"},listDaySideFormat:{year:"numeric",month:"long",day:"numeric"},noEventsClick:void 0,noEventsContent:"No events",view:"listWeek"}),me(e.buttonText,{listDay:"list",listWeek:"list",listMonth:"list",listYear:"list"}),me(e.theme,{daySide:"ec-day-side",eventTag:"ec-event-tag",noEvents:"ec-no-events"}),me(e.views,{listDay:{buttonText:hr,component:wr,duration:{days:1},theme:mt("ec-list ec-day-view")},listWeek:{buttonText:vr,component:wr,duration:{weeks:1},theme:mt("ec-list ec-week-view")},listMonth:{buttonText:ni,component:wr,duration:{months:1},theme:mt("ec-list ec-month-view")},listYear:{buttonText:dl,component:wr,duration:{years:1},theme:mt("ec-list ec-year-view")}})}};function wr(e){return e.features=["list"],Pu}function ai(e,t){let r=[];for(let{gridColumn:i,gridRow:s,resource:o,start:l,end:u,disabled:f}of t)if(!f&&En(e,l,u,o)){let d=Yn(e,l,u);me(d,{gridColumn:i,gridRow:s,top:(d.start-l)/1e3,height:(d.end-d.start)/1e3,maxHeight:(u-d.start)/1e3}),r.push(d)}return r}function Au(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 Ou(e){let t="all-day",r;return e?(r=Ce(e)?e({text:t}):e,typeof r=="string"&&(r={html:r})):r={html:t},r}function li(e){e.extensions.activeRange=(t,r)=>{let{options:{slotMaxTime:i}}=e;if(i.days||i.seconds>ur){Se(Cn(r),i);let s=Cn(q(r));s<t&&(t=s)}return{start:t,end:r}}}function ui(e){"scrollTime"in e||(me(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}),me(e.theme,{nowIndicator:"ec-now-indicator",sidebar:"ec-sidebar",slot:"ec-slot"}))}function $s(e){"allDaySlot"in e||(me(e,{allDayContent:void 0,allDaySlot:!0,slotEventOverlap:!0}),me(e.theme,{allDay:"ec-all-day"}))}function fi(e){"scrollTime"in e||me(e,{scrollTime:Ne,slotDuration:Ne,slotLabelInterval:t=>t!==void 0?Ne(t):void 0,slotMaxTime:Ne,slotMinTime:Ne,snapDuration:t=>t!==void 0?Ne(t):void 0})}function eo(e){"resourceLabelContent"in e||(e.filterResourcesWithEvents=!1,e.resourceLabelContent=void 0,e.resourceLabelDidMount=void 0)}function Nu(e,t){return()=>{let{viewDates:r,options:{highlightedDates:i,validRange:s}}=e,{slotTimeLimits:o}=t,l=[];return $(()=>{let u=1;for(let f of r)l.push({gridColumn:u,gridRow:1,resource:void 0,start:Se(q(f),o.min),end:Se(q(f),o.max),dayStart:f,dayEnd:kt(q(f)),disabled:xn(f,s),highlight:i.some(d=>Ke(d,f))}),++u}),[l]}}function Fu(e,t){return()=>{let{filteredEvents:r}=e,{grid:i}=t,s=[],o=[],l=[],u=[];return $(()=>{for(let f of r)for(let d of i)gt(f.display)?(o=o.concat(ai(f,d)),f.allDay&&(u=u.concat(Tn(f,d)))):f.allDay?l=l.concat(Tn(f,d)):s=s.concat(ai(f,d));Au(s),Hs(l)}),{chunks:s,bgChunks:o,allDayChunks:l,allDayBgChunks:u}}}function Hu(e,t){return()=>{let{iEvents:r}=e,{grid:i}=t,s=[],o=[];for(let[,l]of r)l&&$(()=>{for(let u of i)l.allDay?o=o.concat(Tn(l,u)):s=s.concat(ai(l,u))});return{iChunks:s,allDayIChunks:o}}}function Uu(e){return()=>{let{filteredEvents:t,viewDates:r,options:{flexibleSlotTimeLimits:i,slotMinTime:s,slotMaxTime:o}}=e,l;return $(()=>{l=Gs(s,o,i,r,t)}),l}}function Wu(e){return()=>{let{options:{slotDuration:t,slotLabelInterval:r}}=e,i;return $(()=>{i=r===void 0?ye(t)<3600?2:1:qa(ye(r)/ye(t))||1}),i}}function zu(e,t){return()=>{let{options:{slotDuration:r}}=e,{intlSlotLabel:i,slotLabelPeriodicity:s,slotTimeLimits:o}=t,l;return $(()=>{l=Ys(Ct(Lt()),r,s,o,i)}),l}}function Vu(e){return()=>{let{options:{slotDuration:t,snapDuration:r}}=e;return r??=t,{duration:r,ratio:ye(r)/ye(t)}}}function di(){return class{#e;get intlSlotLabel(){return n(this.#e)}set intlSlotLabel(e){b(this.#e,e)}#t;get slotLabelPeriodicity(){return n(this.#t)}set slotLabelPeriodicity(e){b(this.#t,e)}#n;get sidebarWidth(){return n(this.#n)}set sidebarWidth(e){b(this.#n,e,!0)}#r;get snap(){return n(this.#r)}set snap(e){b(this.#r,e)}constructor(e){this.#e=a(hn(e,"slotLabelFormat")),this.#t=a(Wu(e)),this.#n=K(0),this.#r=a(Vu(e))}}}function to(e){return class extends e{#e;get slotTimeLimits(){return n(this.#e)}set slotTimeLimits(t){b(this.#e,t)}#t;get slots(){return n(this.#t)}set slots(t){b(this.#t,t)}#n;get chunks(){return n(this.#n)}set chunks(t){b(this.#n,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(Uu(t)),this.#t=a(zu(t,this));let r=a(Fu(t,this)),i=a(()=>n(r).chunks),s=a(()=>n(r).bgChunks),o=a(()=>n(r).allDayChunks),l=a(()=>n(r).allDayBgChunks);this.#n=a(()=>n(i)),this.#r=a(()=>n(s)),this.#s=a(()=>n(o)),this.#i=a(()=>n(l));let u=a(Hu(t,this)),f=a(()=>n(u).iChunks),d=a(()=>n(u).allDayIChunks);this.#o=a(()=>n(f)),this.#a=a(()=>n(d))}}}let Bu=class extends to(di()){#e;get grid(){return n(this.#e)}set grid(t){b(this.#e,t)}constructor(t){super(t),this.#e=a(Nu(t,this))}};function Yu(e){return()=>{let{activeRange:t,filteredEvents:r,options:{filterResourcesWithEvents:i,resources:s},extensions:{viewResources:o}}=e,l=o?o(s):s;return $(()=>{i&&(l=s.filter(u=>r.some(f=>En(f,t.start,t.end,u)))),l.length||(l=zs([{}]))}),l}}function Gu(e,t){return()=>{let{viewDates:r,options:{datesAboveResources:i,highlightedDates:s,validRange:o}}=e,{slotTimeLimits:l,viewResources:u}=t,f=[];return $(()=>{let d=1,h=i?[r,u]:[u,r];for(let g of h[0]){let c=[];for(let v of h[1]){let _=i?g:v,p=i?v:g;c.push({gridColumn:d,gridRow:1,resource:p,start:Se(q(_),l.min),end:Se(q(_),l.max),dayStart:_,dayEnd:kt(q(_)),disabled:xn(_,o),highlight:s.some(m=>Ke(m,_))}),++d}f.push(c)}}),f}}function no(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(Yu(t))}}}let qu=class extends no(to(di())){#e;get grid(){return n(this.#e)}set grid(t){b(this.#e,t)}constructor(t){super(t),this.#e=a(Gu(t,this))}};var Xu=ee("<span></span>");function ci(e,t){be(t,!0);let r=De(t,"date",3,void 0),i=De(t,"setLabel",3,void 0),s=a(()=>te("state")),o=a(()=>n(s).intlDayHeaderAL),l=a(()=>n(s).options.resourceLabelContent),u=a(()=>n(s).options.resourceLabelDidMount),f=K(void 0),d=a(()=>n(l)?Ce(n(l))?n(l)({resource:t.resource,date:r()?Fe(r()):void 0}):n(l):t.resource.title),h=K(void 0);Ge(()=>{n(d),$(()=>{r()?b(h,n(o).format(r())+", "+n(f).innerText):i()&&(b(h,void 0),i()(n(f).innerText))})}),Vn(()=>{Ce(n(u))&&n(u)({resource:t.resource,date:r()?Fe(r()):void 0,el:n(f)})});var g=Xu();nt(g,c=>b(f,c),()=>n(f)),Me(g,()=>Xe(n(d))),se(()=>Pe(g,"aria-label",n(h))),T(e,g),ke()}function ro(e,t){be(t,!0);let r=De(t,"allDay",3,!1),i=a(()=>te("state")),s=a(()=>n(i).options.slotHeight),o=a(()=>te("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=K(void 0);function v(_,p){if(r())return n(u);{let m=Qt(n(c)),y=m.height/n(c).offsetHeight;return Se(q(n(f)),n(l).duration,Xr((p-m.top)/(n(s)*n(l).ratio*y)))}}mr(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(_){b(c,_,!0)}}),ke()}function hi(e,t){be(t,!0);let r=a(()=>te("state")),i=a(()=>n(r).options.slotEventOverlap),s=a(()=>n(r).options.slotDuration),o=a(()=>n(r).options.slotHeight),l=a(()=>u=>{let f=ye(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});_r(e,{get chunk(){return t.chunk},get styles(){return n(l)},axis:"y"}),ke()}function vi(e,t){be(t,!0);let r=K(void 0),i=K(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,Us(t.chunk,cn(n(r))),!0)}var u={reposition:l};return _r(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)}}),ke(u)}var Ku=ee("<div></div>");function br(e,t){be(t,!0);let r=De(t,"span",3,1),i=a(()=>te("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(()=>te("view-state")),g=a(()=>n(h).sidebarWidth),c=a(()=>{for(let w of t.days)if(Ke(w.dayStart,n(l)))return w;return{}}),v=a(()=>n(c).gridColumn),_=a(()=>n(c).start),p=a(()=>n(c).end),m=a(()=>{if(n(o)<n(_)||n(o)>n(p))return null;let w=ye(n(u));return(n(o)-n(_))/1e3/w*n(f)}),y=a(()=>({root:n(s),rootMargin:dn()?`0px -${n(g)+5.5}px 0px 0px`:`0px 0px 0px -${n(g)+5.5}px`,threshold:0}));function k(w,E){w.classList.toggle(n(d).hidden,!E.isIntersecting)}var S=he(),D=J(S);{var C=w=>{var E=Ku();let P;Me(E,()=>Ts(k,n(y))),se(()=>{O(E,1,n(d).nowIndicator),P=bt(E,"",P,{"grid-column":`${n(v)+1} / span ${r()??""}`,"inset-block-start":`${n(m)??""}px`})}),T(w,E)};_e(D,w=>{n(v)&&n(m)!==null&&w(C)})}T(e,S),ke()}var Zu=ee('<div><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div>'),Ju=ee("<div><time></time></div>"),Qu=ee('<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 io(e,t){be(t,!0);let r=De(t,"viewState",7),i=te("state");r()||r(new Bu(i)),Ln("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),_=a(()=>r().allDayChunks),p=a(()=>r().allDayBgChunks),m=a(()=>r().allDayIChunks),y=a(()=>r().bgChunks),k=a(()=>r().chunks),S=a(()=>r().iChunks),D=a(()=>r().grid),C=a(()=>r().sidebarWidth),w=a(()=>r().slots),E=a(()=>r().slotLabelPeriodicity),P=a(()=>r().slotTimeLimits),H=K(0),L=a(()=>Ou(n(l)));Ge(()=>{n(o),n(h),Un().then(ue)});function ue(){n(s).scrollTop=((ye(n(h))-ye(n(P).min))/ye(n(c))-.5)*n(g)}let B=[];function Z(){ti(B,n(_))}Ge(Z);var X=Qu();let N;var A=le(X),Q=le(A),ve=ne(Q,2),U=le(ve);{var ae=F=>{var z=he(),G=J(z);zt(G,()=>t.header),T(F,z)},Ee=F=>{var z=he(),G=J(z);re(G,17,()=>n(D)[0],oe,(de,Re,we)=>{let Ie=()=>n(Re).dayStart,Ae=()=>n(Re).disabled,ce=()=>n(Re).highlight;Gn(de,{get date(){return Ie()},colIndex:1+we,get disabled(){return Ae()},get highlight(){return ce()},children:(ze,dt)=>{pr(ze,{get date(){return Ie()}})},$$slots:{default:!0}})}),T(F,z)};_e(U,F=>{t.header?F(ae):F(Ee,!1)})}var W=ne(ve,2);{var R=F=>{var z=Zu(),G=le(z);Me(G,()=>Xe(n(L)));var de=ne(G,2);re(de,21,()=>n(D),oe,(ce,ze,dt)=>{var $e=he(),pt=J($e);re(pt,17,()=>n(ze),oe,(Oe,vn,Bt)=>{{let jt=a(()=>dt+1===n(D).length&&Bt+1===n(ze).length);ro(Oe,{get day(){return n(vn)},allDay:!0,get noIeb(){return n(jt)}})}}),T(ce,$e)});var Re=ne(de,2),we=le(Re);re(we,17,()=>n(_),oe,(ce,ze,dt)=>{nt(vi(ce,{get chunk(){return n(ze)}}),($e,pt)=>B[pt]=$e,$e=>B?.[$e],()=>[dt])});var Ie=ne(we,2);re(Ie,17,()=>n(p),oe,(ce,ze)=>{vi(ce,{get chunk(){return n(ze)}})});var Ae=ne(Ie,2);re(Ae,17,()=>n(m),oe,(ce,ze)=>{vi(ce,{get chunk(){return n(ze)}})}),se(()=>{O(z,1,n(v).allDay),O(G,1,n(v).sidebar),O(de,1,n(v).grid),O(Re,1,n(v).events)}),T(F,z)};_e(W,F=>{n(u)&&F(R)})}var V=ne(A,2),I=le(V);re(I,21,()=>n(w),oe,(F,z,G)=>{var de=Ju();let Re;var we=le(de);Me(we,()=>Xe(n(z)[1])),se(()=>{O(de,1,Rt([n(v).slot,!G&&n(v).hidden])),Re=bt(de,"",Re,{"--ec-slot-label-periodicity":n(z)[2]}),Pe(we,"datetime",n(z)[0])}),T(F,de)});var fe=ne(I,2);re(fe,21,()=>n(D),oe,(F,z,G)=>{var de=he(),Re=J(de);re(Re,17,()=>n(z),oe,(we,Ie,Ae)=>{{let ce=a(()=>G+1===n(D).length&&Ae+1===n(z).length);ro(we,{get day(){return n(Ie)},get noIeb(){return n(ce)},noBeb:!0})}}),T(F,de)});var rt=ne(fe,2),He=le(rt);re(He,17,()=>n(k),oe,(F,z)=>{hi(F,{get chunk(){return n(z)}})});var Pt=ne(He,2);re(Pt,17,()=>n(y),oe,(F,z)=>{hi(F,{get chunk(){return n(z)}})});var Y=ne(Pt,2);re(Y,17,()=>n(S),oe,(F,z)=>{hi(F,{get chunk(){return n(z)}})});var ie=ne(V,2);{var xe=F=>{var z=he(),G=J(z);{var de=we=>{var Ie=he(),Ae=J(Ie);zt(Ae,()=>t.nowIndicator),T(we,Ie)},Re=we=>{br(we,{get days(){return n(D)[0]}})};_e(G,we=>{t.nowIndicator?we(de):we(Re,!1)})}T(F,z)};_e(ie,F=>{n(d)&&F(xe)})}nt(X,F=>i.mainEl=F,()=>i?.mainEl),Me(X,()=>qr(Z)),se(()=>{O(X,1,n(v).main),N=bt(X,"",N,{"--ec-grid-cols":n(D).length*n(D)[0].length,"--ec-col-group-span":n(D)[0].length,"--ec-col-width":n(f)??"minmax(0, 1fr)","--ec-slot-label-periodicity":n(E),"--ec-slot-height":`${n(g)??""}px`,"--ec-header-height":`${n(H)??""}px`,"--ec-sidebar-width":`${n(C)??""}px`}),O(A,1,n(v).header),O(Q,1,n(v).sidebar),O(ve,1,n(v).grid),O(V,1,n(v).body),O(I,1,n(v).sidebar),O(fe,1,n(v).grid),O(rt,1,n(v).events)}),or(Q,"offsetWidth",F=>r().sidebarWidth=F),or(A,"offsetHeight",F=>b(H,F)),T(e,X),ke()}var ju=ee("<!> <!>",1);function $u(e,t){be(t,!0);let r=te("state"),i=new qu(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=et([]);Ge(()=>{n(f)&&(n(l),n(u),Un().then(v))});function v(){if(n(s)>=n(l)[0]&&n(s)<=n(l).at(-1))for(let _ of n(h)){let p=_[0];if(Ke(p.dayStart,n(s))){n(o).scrollLeft=(n(o).scrollWidth-n(g))/(n(h).length*_.length)*(p.gridColumn-1)*(dn()?-1:1);break}}}io(e,{get viewState(){return i},header:m=>{var y=ju(),k=J(y);re(k,17,()=>n(h),oe,(C,w,E)=>{const P=a(()=>{const{dayStart:H,resource:L,disabled:ue,highlight:B}=n(w)[0];return{date:H,resource:L,disabled:ue,highlight:B}});{let H=a(()=>n(h)[0].length>1?n(d).colGroup:void 0),L=a(()=>1+E*n(w).length),ue=a(()=>n(f)&&n(P).disabled),B=a(()=>n(f)&&n(P).highlight);Gn(C,{get date(){return n(P).date},get className(){return n(H)},get weekday(){return n(f)},get colSpan(){return n(w).length},get colIndex(){return n(L)},get disabled(){return n(ue)},get highlight(){return n(B)},children:(Z,X)=>{var N=he(),A=J(N);{var Q=U=>{pr(U,{get date(){return n(P).date}})},ve=U=>{ci(U,{get resource(){return n(P).resource},setLabel:ae=>c[E]=ae+", "})};_e(A,U=>{n(f)?U(Q):U(ve,!1)})}T(Z,N)},$$slots:{default:!0}})}});var S=ne(k,2);{var D=C=>{var w=he(),E=J(w);re(E,17,()=>n(h),oe,(P,H,L)=>{var ue=he(),B=J(ue);re(B,17,()=>n(H),oe,(Z,X,N)=>{const A=a(()=>{const{dayStart:Q,resource:ve,disabled:U,highlight:ae}=n(X);return{date:Q,resource:ve,disabled:U,highlight:ae}});{let Q=a(()=>1+N+L*n(H).length);Gn(Z,{get date(){return n(A).date},get colIndex(){return n(Q)},get disabled(){return n(A).disabled},get highlight(){return n(A).highlight},children:(ve,U)=>{var ae=he(),Ee=J(ae);{var W=V=>{ci(V,{get resource(){return n(A).resource},get date(){return n(A).date}})},R=V=>{pr(V,{get date(){return n(A).date},get alPrefix(){return c[L]}})};_e(Ee,V=>{n(f)?V(W):V(R,!1)})}T(ve,ae)},$$slots:{default:!0}})}}),T(P,ue)}),T(C,w)};_e(S,C=>{n(h)[0].length>1&&C(D)})}T(m,y)},nowIndicator:m=>{var y=he(),k=J(y);{var S=C=>{{let w=a(()=>n(h).flat());br(C,{get days(){return n(w)},get span(){return n(h)[0].length}})}},D=C=>{var w=he(),E=J(w);{var P=L=>{var ue=he(),B=J(ue);re(B,17,()=>n(h),oe,(Z,X)=>{br(Z,{get days(){return n(X)}})}),T(L,ue)},H=L=>{{let ue=a(()=>n(h).flat());br(L,{get days(){return n(ue)},get span(){return n(h).length}})}};_e(E,L=>{n(h)[0].length>1?L(P):L(H,!1)})}T(C,w)};_e(k,C=>{n(f)?C(S):C(D,!1)})}T(m,y)},$$slots:{header:!0,nowIndicator:!0}}),ke()}const ef={createOptions(e){$s(e),ui(e),eo(e),me(e,{datesAboveResources:!1,view:"resourceTimeGridWeek"}),me(e.buttonText,{resourceTimeGridDay:"resources",resourceTimeGridWeek:"resources"}),me(e.theme,{colGroup:"ec-col-group"}),me(e.views,{resourceTimeGridDay:{buttonText:hr,component:so,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:mt("ec-resource ec-time-grid ec-day-view")},resourceTimeGridWeek:{buttonText:vr,component:so,duration:{weeks:1},theme:mt("ec-resource ec-time-grid ec-week-view")}})},createParsers(e){fi(e)}};function so(e){return li(e),$u}function gi(e,t,r){let i=[],s,o,l,u,f,d=0;for(let{gridColumn:h,gridRow:g,resource:c,dayStart:v,dayEnd:_,start:p,end:m,disabled:y}of t)y||(r?En(e,v,_,c)&&(i.length||(s=v,l=h,u=g),i.push(v),o=m):En(e,p,m,c)&&(i.length||(s=p,l=h,u=g,f=ut(e.start-p,0)/1e3),i.push(v),o=m,d+=(It(m,e.end)-ut(p,e.start))/1e3));if(i.length){let h=Yn(e,s,o);return me(h,{gridColumn:l,gridRow:u,dates:i,left:f,width:d}),[h]}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 nf(e,t,r){let i=0,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 me(e,{top:i,bottom:s}),i}function rf(e,t){return e[t.getTime()]??{min:Ne(0),max:Ne("24:00:00")}}function sf(e,t){return()=>{let{viewDates:r,options:{highlightedDates:i,validRange:s}}=e,{dayTimeLimits:o,viewResources:l}=t,u=[];return $(()=>{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(q(c),v.min),end:Se(q(c),v.max),dayStart:c,dayEnd:kt(q(c)),disabled:xn(c,s),highlight:i.some(_=>Ke(_,c))}),++g}u.push(h),++f}}),u}}function of(e,t){return()=>{let{filteredEvents:r}=e,{grid:i,monthView:s}=t,o=[],l=[];return $(()=>{for(let u of r)for(let f of i)gt(u.display)?(!s||u.allDay)&&(l=l.concat(gi(u,f,s))):o=o.concat(gi(u,f,s));tf(o)}),{chunks:o,bgChunks:l}}}function af(e,t){return()=>{let{iEvents:r}=e,{grid:i}=t,s=[];for(let[,o]of r)o&&$(()=>{for(let l of i)s=s.concat(gi(o,l))});return s}}function lf(e){return()=>{let{filteredEvents:t,viewDates:r,options:{flexibleSlotTimeLimits:i,slotMinTime:s,slotMaxTime:o}}=e,l={};return $(()=>{for(let u of r)l[u.getTime()]=Gs(s,o,i,[u],t)}),l}}function uf(e,t){return()=>{let{viewDates:r,options:{slotDuration:i}}=e,{dayTimeLimits:s,intlSlotLabel:o,slotLabelPeriodicity:l}=t,u={};return $(()=>{for(let f of r){let d=f.getTime();u[d]=d in s?Ys(f,i,l,s[d],o):[]}}),u}}function ff(e){return()=>{let{options:{resources:t}}=e,r;return $(()=>{r=t.some(i=>Vt(i).children.length)}),r}}function df(e){return()=>{let{options:{slotDuration:t}}=e,r;return $(()=>{r=!ye(t)}),r}}class cf extends no(di()){#e;get dayTimeLimits(){return n(this.#e)}set dayTimeLimits(t){b(this.#e,t)}#t;get daySlots(){return n(this.#t)}set daySlots(t){b(this.#t,t)}#n;get grid(){return n(this.#n)}set grid(t){b(this.#n,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(lf(t)),this.#t=a(uf(t,this)),this.#n=a(sf(t,this)),this.#r=a(df(t));let r=a(of(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(af(t,this)),this.#a=a(ff(t))}}function hf(e,t){be(t,!0);let r=a(()=>te("state")),i=a(()=>n(r).options.slotWidth),s=a(()=>te("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=K(void 0);function v(_,p){if(n(o))return n(u);{let m=Qt(n(c)),y=m.width/n(c).offsetWidth;return Se(q(n(f)),n(l).duration,Xr((dn()?m.right-_:_-m.left)/(n(i)*n(l).ratio*y)))}}mr(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(_){b(c,_,!0)}}),ke()}function mi(e,t){be(t,!0);let r=a(()=>te("state")),i=a(()=>n(r).options.slotDuration),s=a(()=>n(r).options.slotWidth),o=a(()=>te("view-state")),l=a(()=>n(o).monthView),u=K(void 0),f=K(0),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 p=t.chunk.left/ye(n(i))*n(s);v["inset-inline-start"]=`${p}px`,v["inline-size"]=`${t.chunk.width/ye(n(i))*n(s)}px`}let _=n(f);if(n(d)._margin){let[p,m]=n(d)._margin;t.chunk.gridRow===m&&(_=p)}return v["margin-block-start"]=`${_}px`,v});function g(){b(f,nf(t.chunk,cn(n(u)),n(l)),!0)}var c={reposition:g};{let v=a(()=>[n(f),t.chunk.gridRow]);_r(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(_){b(u,_,!0)}})}return ke(c)}var vf=ee("<span></span>"),gf=ee("<button><!></button>"),mf=ee("<!> <span><!></span>",1);function pf(e,t){be(t,!0);let r=a(()=>te("state")),i=a(()=>n(r).options),s=a(()=>n(i).resources),o=a(()=>n(i).theme),l=K({}),u=K(!0);on(()=>{b(l,Vt(t.resource)),b(u,n(l).expanded,!0)});function f(){b(u,!n(u)),n(l).expanded=n(u),d(n(l).children,n(u)),n(i).resources=[...n(s)]}function d(p,m){for(let y of p){let k=Vt(y);k.hidden=!m,k.expanded&&d(k.children,m)}}var h=mf(),g=J(h);re(g,17,()=>Array(n(l).level),oe,(p,m)=>{var y=vf();se(()=>O(y,1,n(o).expander)),T(p,y)});var c=ne(g,2),v=le(c);{var _=p=>{var m=gf();m.__click=f;var y=le(m);{var k=D=>{var C=_s("−");T(D,C)},S=D=>{var C=_s("+");T(D,C)};_e(y,D=>{n(u)?D(k):D(S,!1)})}se(()=>O(m,1,n(o).button)),T(p,m)};_e(v,p=>{n(l).children?.length&&p(_)})}se(()=>O(c,1,n(o).expander)),T(e,h),ke()}Zt(["click"]);var _f=ee("<div></div>");function yf(e,t){be(t,!0);let r=a(()=>te("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(()=>te("view-state")),h=a(()=>n(d).grid),g=a(()=>n(d).sidebarWidth),c=a(()=>{for(let w of n(h)[0])if(Ke(w.dayStart,n(o)))return w;return{}}),v=a(()=>n(c).gridColumn),_=a(()=>n(c).start),p=a(()=>n(c).end),m=a(()=>{if(n(s)<n(_)||n(s)>n(p))return null;let w=ye(n(l));return(n(s)-n(_))/1e3/w*n(u)}),y=a(()=>({root:n(i),rootMargin:dn()?`0px -${n(g)+1}px 0px 0px`:`0px 0px 0px -${n(g)+1}px`,threshold:0}));function k(w,E){w.classList.toggle(n(f).hidden,!E.isIntersecting)}var S=he(),D=J(S);{var C=w=>{var E=_f();let P;Me(E,()=>Ts(k,n(y))),se(()=>{O(E,1,n(f).nowIndicator),P=bt(E,"",P,{"grid-column":n(v)+1,"grid-row":`2 / span ${n(h).length??""}`,"inset-inline-start":`${n(m)??""}px`})}),T(w,E)};_e(D,w=>{n(v)&&n(m)!==null&&w(C)})}T(e,S),ke()}var wf=ee("<div><time></time></div>"),bf=ee('<div role="rowheader"><!> <!></div>'),kf=ee('<section><header><aside></aside> <div role="row"><!> <!></div></header> <div role="rowgroup"><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div> <!></section>');function Cf(e,t){be(t,!0);let r=te("state"),i=new cf(r);Ln("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),_=a(()=>i.chunks),p=a(()=>i.bgChunks),m=a(()=>i.iChunks),y=a(()=>i.daySlots),k=a(()=>i.dayTimeLimits),S=a(()=>i.grid),D=a(()=>i.monthView),C=a(()=>i.nestedResources),w=a(()=>i.sidebarWidth),E=a(()=>i.slotLabelPeriodicity),P=a(()=>i.viewResources),H=K(0);Ge(()=>{n(l),n(d),Un().then(L)});function L(){let Y=0,ie=n(o)<n(l)[0]||n(o)>n(l).at(-1);if(n(D)){if(!ie){let xe=n(S)[0];for(let F of xe)if(Ke(F.dayStart,n(o))){n(s).scrollLeft=(n(s).scrollWidth-n(w))/xe.length*(F.gridColumn-1)*(dn()?-1:1);break}}}else{for(let xe of n(l)){let F=rf(n(k),xe);if(ie||Ke(xe,n(o))){Y+=ut(It(ye(n(d)),ye(F.max))-ye(F.min),0);break}else Y+=ye(F.max)-ye(F.min)}n(s).scrollLeft=Y/ye(n(h))*n(c)*(dn()?-1:1)}}let ue=[];function B(){ti(ue,n(_))}Ge(B);var Z=kf();let X;var N=le(Z),A=le(N),Q=ne(A,2),ve=le(Q);re(ve,17,()=>n(S)[0],oe,(Y,ie,xe)=>{let F=()=>n(ie).dayStart,z=()=>n(ie).disabled,G=()=>n(ie).highlight;Gn(Y,{get date(){return F()},colIndex:1+xe,get disabled(){return z()},get highlight(){return G()},children:(de,Re)=>{pr(de,{get date(){return F()}})},$$slots:{default:!0}})});var U=ne(ve,2);{var ae=Y=>{var ie=he(),xe=J(ie);re(xe,17,()=>n(S)[0],oe,(F,z)=>{let G=()=>n(z).dayStart,de=()=>n(z).disabled,Re=()=>n(z).highlight;Gn(F,{get date(){return G()},get className(){return n(v).slots},get disabled(){return de()},get highlight(){return Re()},ariaHidden:!0,children:(we,Ie)=>{var Ae=he(),ce=J(Ae);re(ce,17,()=>n(y)[G().getTime()],oe,(ze,dt)=>{var $e=wf();let pt;var Oe=le($e);Me(Oe,()=>Xe(n(dt)[1])),se(()=>{O($e,1,n(v).slot),pt=bt($e,"",pt,{"--ec-slot-label-periodicity":n(dt)[2]}),Pe(Oe,"datetime",n(dt)[0])}),T(ze,$e)}),T(we,Ae)},$$slots:{default:!0}})}),T(Y,ie)};_e(U,Y=>{n(D)||Y(ae)})}var Ee=ne(N,2),W=le(Ee);re(W,21,()=>n(P),oe,(Y,ie)=>{var xe=bf(),F=le(xe);{var z=de=>{pf(de,{get resource(){return n(ie)}})};_e(F,de=>{n(C)&&de(z)})}var G=ne(F,2);ci(G,{get resource(){return n(ie)}}),se(()=>O(xe,1,n(v).rowHead)),T(Y,xe)});var R=ne(W,2);re(R,21,()=>n(S),oe,(Y,ie,xe)=>{var F=he(),z=J(F);re(z,17,()=>n(ie),oe,(G,de,Re)=>{{let we=a(()=>Re+1===n(ie).length),Ie=a(()=>xe+1===n(S).length);hf(G,{get day(){return n(de)},get noIeb(){return n(we)},get noBeb(){return n(Ie)}})}}),T(Y,F)});var V=ne(R,2),I=le(V);re(I,17,()=>n(_),oe,(Y,ie,xe)=>{nt(mi(Y,{get chunk(){return n(ie)}}),(F,z)=>ue[z]=F,F=>ue?.[F],()=>[xe])});var fe=ne(I,2);re(fe,17,()=>n(p),oe,(Y,ie)=>{mi(Y,{get chunk(){return n(ie)}})});var rt=ne(fe,2);re(rt,17,()=>n(m),oe,(Y,ie)=>{mi(Y,{get chunk(){return n(ie)}})});var He=ne(Ee,2);{var Pt=Y=>{yf(Y,{})};_e(He,Y=>{n(f)&&!n(D)&&Y(Pt)})}nt(Z,Y=>r.mainEl=Y,()=>r?.mainEl),Me(Z,()=>qr(B)),se(()=>{O(Z,1,n(v).main),X=bt(Z,"",X,{"--ec-grid-cols":n(S)[0].length,"--ec-grid-rows":`${n(S).length>1?`repeat(${n(S).length-1}, auto)`:""} 1fr`,"--ec-col-width":n(u)??"minmax(4em, 1fr)","--ec-slot-label-periodicity":n(E),"--ec-slot-height":`${n(g)??""}px`,"--ec-slot-width":`${n(c)??""}px`,"--ec-header-height":`${n(H)??""}px`,"--ec-sidebar-width":`${n(w)??""}px`}),O(N,1,n(v).header),O(A,1,n(v).sidebar),O(Q,1,n(v).grid),O(Ee,1,n(v).body),O(W,1,n(v).sidebar),O(R,1,n(v).grid),O(V,1,n(v).events)}),or(A,"offsetWidth",Y=>i.sidebarWidth=Y),or(N,"offsetHeight",Y=>b(H,Y)),T(e,Z),ke()}const Df={createOptions(e){ui(e),eo(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:hr,component:oo,displayEventEnd:!1,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:mt("ec-resource ec-timeline ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},e.views.resourceTimelineWeek={buttonText:vr,component:oo,displayEventEnd:!1,duration:{weeks:1},theme:mt("ec-resource ec-timeline ec-week-view")},e.views.resourceTimelineMonth={buttonText:ni,component:ao,displayEventEnd:!1,dayHeaderFormat:{weekday:"short",day:"numeric"},duration:{months:1},slotDuration:{days:1},theme:mt("ec-resource ec-timeline ec-month-view"),titleFormat:{year:"numeric",month:"long"}}},createParsers(e){fi(e)}};function oo(e){return li(e),ao(e)}function ao(e){return e.features=["timeline"],e.extensions.viewResources=t=>t.filter(r=>!Vt(r).hidden),Cf}const Ef={createOptions(e){ui(e),$s(e),me(e.buttonText,{timeGridDay:"day",timeGridWeek:"week"}),me(e,{view:"timeGridWeek"}),me(e.views,{timeGridDay:{buttonText:hr,component:lo,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:mt("ec-time-grid ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},timeGridWeek:{buttonText:vr,component:lo,duration:{weeks:1},theme:mt("ec-time-grid ec-week-view")}})},createParsers(e){fi(e)}};function lo(e){return li(e),io}function Tf(e,t,r){return Ea(Bl,{target:e,props:{plugins:t,options:r}})}function xf(e){return xa(e)}function Sf(e,t){return Tf(e,[uu,Du,Mu,ef,Df,Ef],t)}return Kn.create=Sf,Kn.destroy=xf,Object.defineProperty(Kn,Symbol.toStringTag,{value:"Module"}),Kn})({});
5
+ var EventCalendar=(function(Jn){"use strict";var Ci=Array.isArray,bo=Array.prototype.indexOf,Qn=Array.from,Di=Object.defineProperty,mn=Object.getOwnPropertyDescriptor,ko=Object.getOwnPropertyDescriptors,Co=Object.prototype,Do=Array.prototype,Ei=Object.getPrototypeOf,Ti=Object.isExtensible;const Gt=()=>{};function Eo(e){for(var t=0;t<e.length;t++)e[t]()}function xi(){var e,t,r=new Promise((i,s)=>{e=i,t=s});return{promise:r,resolve:e,reject:t}}function To(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 We=2,Er=4,jn=8,Si=1<<24,Pt=16,Mt=32,en=64,$n=128,_t=512,Ve=1024,st=2048,Ct=4096,ot=8192,At=16384,Tr=32768,Yt=65536,Ri=1<<17,Ii=1<<18,pn=1<<19,Li=1<<20,Ot=1<<25,tn=32768,xr=1<<21,Sr=1<<22,qt=1<<23,Ln=Symbol("$state"),xo=Symbol("legacy props"),So=Symbol(""),_n=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function Pi(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Ro(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Io(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Lo(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Po(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Mo(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Ao(){throw new Error("https://svelte.dev/e/get_abort_signal_outside_reaction")}function Oo(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function No(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Fo(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ho(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Wo(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Uo=1,zo=2,Mi=4,Vo=8,Bo=16,Go=1,Yo=4,qo=8,Xo=16,Ko=1,Zo=2,Be=Symbol(),Jo="http://www.w3.org/1999/xhtml";function Qo(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Ai(e){return e===this.v}function jo(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Oi(e){return!jo(e,this.v)}let Qf=!1,Ge=null;function yn(e){Ge=e}function te(e){return Fi().get(e)}function Pn(e,t){return Fi().set(e,t),t}function we(e,t=!1,r){Ge={p:Ge,i:!1,c:null,e:null,s:e,x:null,l:null}}function be(e){var t=Ge,r=t.e;if(r!==null){t.e=null;for(var i of r)ts(i)}return e!==void 0&&(t.x=e),t.i=!0,Ge=t.p,e??{}}function Ni(){return!0}function Fi(e){return Ge===null&&Pi(),Ge.c??=new Map($o(Ge)||void 0)}function $o(e){let t=e.p;for(;t!==null;){const r=t.c;if(r!==null)return r;t=t.p}return null}let nn=[];function Hi(){var e=nn;nn=[],Eo(e)}function rn(e){if(nn.length===0&&!Mn){var t=nn;queueMicrotask(()=>{t===nn&&Hi()})}nn.push(e)}function ea(){for(;nn.length>0;)Hi()}function Wi(e){var t=Te;if(t===null)return he.f|=qt,e;if((t.f&Tr)===0){if((t.f&$n)===0)throw e;t.b.error(e)}else wn(e,t)}function wn(e,t){for(;t!==null;){if((t.f&$n)!==0)try{t.b.error(e);return}catch(r){e=r}t=t.parent}throw e}const er=new Set;let Le=null,ht=null,vt=[],tr=null,Rr=!1,Mn=!1;class Dt{committed=!1;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=0;#r=0;#s=null;#i=new Set;#o=new Set;skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#r>0}process(t){vt=[],this.apply();var r={parent:null,effect:null,effects:[],render_effects:[]};for(const i of t)this.#a(i,r);this.is_fork||this.#f(),this.is_deferred()?(this.#l(r.effects),this.#l(r.render_effects)):(Le=null,zi(r.render_effects),zi(r.effects),this.#s?.resolve()),ht=null}#a(t,r){t.f^=Ve;for(var i=t.first;i!==null;){var s=i.f,o=(s&(Mt|en))!==0,l=o&&(s&Ve)!==0,u=l||(s&ot)!==0||this.skipped_effects.has(i);if((i.f&$n)!==0&&i.b?.is_pending()&&(r={parent:r,effect:i,effects:[],render_effects:[]}),!u&&i.fn!==null){o?i.f^=Ve:(s&Er)!==0?r.effects.push(i):Hn(i)&&((i.f&Pt)!==0&&this.#i.add(i),Wn(i));var f=i.first;if(f!==null){i=f;continue}}var d=i.parent;for(i=i.next;i===null&&d!==null;)d===r.effect&&(this.#l(r.effects),this.#l(r.render_effects),r=r.parent),i=d.next,d=d.parent}}#l(t){for(const r of t)(r.f&st)!==0?this.#i.add(r):(r.f&Ct)!==0&&this.#o.add(r),this.#u(r.deps),qe(r,Ve)}#u(t){if(t!==null)for(const r of t)(r.f&We)===0||(r.f&tn)===0||(r.f^=tn,this.#u(r.deps))}capture(t,r){this.previous.has(t)||this.previous.set(t,r),(t.f&qt)===0&&(this.current.set(t,t.v),ht?.set(t,t.v))}activate(){Le=this,this.apply()}deactivate(){Le===this&&(Le=null,ht=null)}flush(){if(this.activate(),vt.length>0){if(Ui(),Le!==null&&Le!==this)return}else this.#n===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#t)t(this);this.#t.clear()}#f(){if(this.#r===0){for(const t of this.#e)t();this.#e.clear()}this.#n===0&&this.#d()}#d(){if(er.size>1){this.previous.clear();var t=ht,r=!0,i={parent:null,effect:null,effects:[],render_effects:[]};for(const o of er){if(o===this){r=!1;continue}const l=[];for(const[f,d]of this.current){if(o.current.has(f))if(r&&d!==o.current.get(f))o.current.set(f,d);else continue;l.push(f)}if(l.length===0)continue;const u=[...o.current.keys()].filter(f=>!this.current.has(f));if(u.length>0){var s=vt;vt=[];const f=new Set,d=new Map;for(const c of l)Vi(c,u,f,d);if(vt.length>0){Le=o,o.apply();for(const c of vt)o.#a(c,i);o.deactivate()}vt=s}}Le=null,ht=t}this.committed=!0,er.delete(this)}increment(t){this.#n+=1,t&&(this.#r+=1)}decrement(t){this.#n-=1,t&&(this.#r-=1),this.revive()}revive(){for(const t of this.#i)this.#o.delete(t),qe(t,st),sn(t);for(const t of this.#o)qe(t,Ct),sn(t);this.flush()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#t.add(t)}settled(){return(this.#s??=xi()).promise}static ensure(){if(Le===null){const t=Le=new Dt;er.add(Le),Mn||Dt.enqueue(()=>{Le===t&&t.flush()})}return Le}static enqueue(t){rn(t)}apply(){}}function ta(e){var t=Mn;Mn=!0;try{for(var r;;){if(ea(),vt.length===0&&(Le?.flush(),vt.length===0))return tr=null,r;Ui()}}finally{Mn=t}}function Ui(){var e=ln;Rr=!0;var t=null;try{var r=0;for(sr(!0);vt.length>0;){var i=Dt.ensure();if(r++>1e3){var s,o;na()}i.process(vt),Xt.clear()}}finally{Rr=!1,sr(e),tr=null}}function na(){try{Mo()}catch(e){wn(e,tr)}}let Nt=null;function zi(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var i=e[r++];if((i.f&(At|ot))===0&&Hn(i)&&(Nt=new Set,Wn(i),i.deps===null&&i.first===null&&i.nodes===null&&(i.teardown===null&&i.ac===null?ss(i):i.fn=null),Nt?.size>0)){Xt.clear();for(const s of Nt){if((s.f&(At|ot))!==0)continue;const o=[s];let l=s.parent;for(;l!==null;)Nt.has(l)&&(Nt.delete(l),o.push(l)),l=l.parent;for(let u=o.length-1;u>=0;u--){const f=o[u];(f.f&(At|ot))===0&&Wn(f)}}Nt.clear()}}Nt=null}}function Vi(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&We)!==0?Vi(s,t,r,i):(o&(Sr|Pt))!==0&&(o&st)===0&&Bi(s,t,i)&&(qe(s,st),sn(s))}}function Bi(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(t.includes(s))return!0;if((s.f&We)!==0&&Bi(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function sn(e){for(var t=tr=e;t.parent!==null;){t=t.parent;var r=t.f;if(Rr&&t===Te&&(r&Pt)!==0&&(r&Ii)===0)return;if((r&(en|Mt))!==0){if((r&Ve)===0)return;t.f^=Ve}}vt.push(t)}function ra(e){let t=0,r=Kt(0),i;return()=>{On()&&(n(r),ns(()=>(t===0&&(i=ee(()=>e(()=>Et(r)))),t+=1,()=>{rn(()=>{t-=1,t===0&&(i?.(),i=void 0,Et(r))})})))}}var ia=Yt|pn|$n;function sa(e,t,r){new oa(e,t,r)}class oa{parent;#e=!1;#t;#n=null;#r;#s;#i;#o=null;#a=null;#l=null;#u=null;#f=null;#d=0;#c=0;#v=!1;#h=null;#y=ra(()=>(this.#h=Kt(this.#d),()=>{this.#h=null}));constructor(t,r,i){this.#t=t,this.#r=r,this.#s=i,this.parent=Te.b,this.#e=!!this.#r.pending,this.#i=Nn(()=>{Te.b=this;{var s=this.#p();try{this.#o=at(()=>i(s))}catch(o){this.error(o)}this.#c>0?this.#m():this.#e=!1}return()=>{this.#f?.remove()}},ia)}#w(){try{this.#o=at(()=>this.#s(this.#t))}catch(t){this.error(t)}this.#e=!1}#b(){const t=this.#r.pending;t&&(this.#a=at(()=>t(this.#t)),Dt.enqueue(()=>{var r=this.#p();this.#o=this.#g(()=>(Dt.ensure(),at(()=>this.#s(r)))),this.#c>0?this.#m():(an(this.#a,()=>{this.#a=null}),this.#e=!1)}))}#p(){var t=this.#t;return this.#e&&(this.#f=Ft(),this.#t.before(this.#f),t=this.#f),t}is_pending(){return this.#e||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#r.pending}#g(t){var r=Te,i=he,s=Ge;xt(this.#i),tt(this.#i),yn(this.#i.ctx);try{return t()}catch(o){return Wi(o),null}finally{xt(r),tt(i),yn(s)}}#m(){const t=this.#r.pending;this.#o!==null&&(this.#u=document.createDocumentFragment(),this.#u.append(this.#f),ls(this.#o,this.#u)),this.#a===null&&(this.#a=at(()=>t(this.#t)))}#_(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#_(t);return}this.#c+=t,this.#c===0&&(this.#e=!1,this.#a&&an(this.#a,()=>{this.#a=null}),this.#u&&(this.#t.before(this.#u),this.#u=null))}update_pending_count(t){this.#_(t),this.#d+=t,this.#h&&bn(this.#h,this.#d)}get_effect_pending(){return this.#y(),n(this.#h)}error(t){var r=this.#r.onerror;let i=this.#r.failed;if(this.#v||!r&&!i)throw t;this.#o&&(Qe(this.#o),this.#o=null),this.#a&&(Qe(this.#a),this.#a=null),this.#l&&(Qe(this.#l),this.#l=null);var s=!1,o=!1;const l=()=>{if(s){Qo();return}s=!0,o&&Wo(),Dt.ensure(),this.#d=0,this.#l!==null&&an(this.#l,()=>{this.#l=null}),this.#e=this.has_pending_snippet(),this.#o=this.#g(()=>(this.#v=!1,at(()=>this.#s(this.#t)))),this.#c>0?this.#m():this.#e=!1};var u=he;try{tt(null),o=!0,r?.(t,l),o=!1}catch(f){wn(f,this.#i&&this.#i.parent)}finally{tt(u)}i&&rn(()=>{this.#l=this.#g(()=>{Dt.ensure(),this.#v=!0;try{return at(()=>{i(this.#t,()=>t,()=>l)})}catch(f){return wn(f,this.#i.parent),null}finally{this.#v=!1}})})}}function aa(e,t,r,i){const s=rr;if(r.length===0&&e.length===0){i(t.map(s));return}var o=Le,l=Te,u=la();function f(){Promise.all(r.map(d=>ua(d))).then(d=>{u();try{i([...t.map(s),...d])}catch(c){(l.f&At)===0&&wn(c,l)}o?.deactivate(),nr()}).catch(d=>{wn(d,l)})}e.length>0?Promise.all(e).then(()=>{u();try{return f()}finally{o?.deactivate(),nr()}}):f()}function la(){var e=Te,t=he,r=Ge,i=Le;return function(o=!0){xt(e),tt(t),yn(r),o&&i?.activate()}}function nr(){xt(null),tt(null),yn(null)}function rr(e){var t=We|st,r=he!==null&&(he.f&We)!==0?he:null;return Te!==null&&(Te.f|=pn),{ctx:Ge,deps:null,effects:null,equals:Ai,f:t,fn:e,reactions:null,rv:0,v:Be,wv:0,parent:r??Te,ac:null}}function ua(e,t){let r=Te;r===null&&Ro();var i=r.b,s=void 0,o=Kt(Be),l=!he,u=new Map;return pa(()=>{var f=xi();s=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).then(()=>{d===Le&&d.committed&&d.deactivate(),nr()})}catch(h){f.reject(h),nr()}var d=Le;if(l){var c=!i.is_pending();i.update_pending_count(1),d.increment(c),u.get(d)?.reject(_n),u.delete(d),u.set(d,f)}const g=(h,v=void 0)=>{if(d.activate(),v)v!==_n&&(o.f|=qt,bn(o,v));else{(o.f&qt)!==0&&(o.f^=qt),bn(o,h);for(const[_,p]of u){if(u.delete(_),_===d)break;p.reject(_n)}}l&&(i.update_pending_count(-1),d.decrement(c))};f.promise.then(g,h=>g(null,h||"unknown"))}),Mr(()=>{for(const f of u.values())f.reject(_n)}),new Promise(f=>{function d(c){function g(){c===s?f(o):d(s)}c.then(g,g)}d(s)})}function a(e){const t=rr(e);return fs(t),t}function Gi(e){const t=rr(e);return t.equals=Oi,t}function Yi(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)Qe(t[r])}}function fa(e){for(var t=e.parent;t!==null;){if((t.f&We)===0)return(t.f&At)===0?t:null;t=t.parent}return null}function Ir(e){var t,r=Te;xt(fa(e));try{e.f&=~tn,Yi(e),t=gs(e)}finally{xt(r)}return t}function qi(e){var t=Ir(e);if(e.equals(t)||(Le?.is_fork||(e.v=t),e.wv=hs()),!un)if(ht!==null)(On()||Le?.is_fork)&&ht.set(e,t);else{var r=(e.f&_t)===0?Ct:Ve;qe(e,r)}}let Lr=new Set;const Xt=new Map;let Xi=!1;function Kt(e,t){var r={f:0,v:e,reactions:null,equals:Ai,rv:0,wv:0};return r}function Z(e,t){const r=Kt(e);return fs(r),r}function Ki(e,t=!1,r=!0){const i=Kt(e);return t||(i.equals=Oi),i}function b(e,t,r=!1){he!==null&&(!Tt||(he.f&Ri)!==0)&&Ni()&&(he.f&(We|Pt|Sr|Ri))!==0&&!Ht?.includes(e)&&Ho();let i=r?et(t):t;return bn(e,i)}function bn(e,t){if(!e.equals(t)){var r=e.v;un?Xt.set(e,t):Xt.set(e,r),e.v=t;var i=Dt.ensure();i.capture(e,r),(e.f&We)!==0&&((e.f&st)!==0&&Ir(e),qe(e,(e.f&_t)!==0?Ve:Ct)),e.wv=hs(),Zi(e,st),Te!==null&&(Te.f&Ve)!==0&&(Te.f&(Mt|en))===0&&(gt===null?ba([e]):gt.push(e)),!i.is_fork&&Lr.size>0&&!Xi&&da()}return t}function da(){Xi=!1;var e=ln;sr(!0);const t=Array.from(Lr);try{for(const r of t)(r.f&Ve)!==0&&qe(r,Ct),Hn(r)&&Wn(r)}finally{sr(e)}Lr.clear()}function Et(e){b(e,e.v+1)}function Zi(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&st)===0;if(u&&qe(o,t),(l&We)!==0){var f=o;ht?.delete(f),(l&tn)===0&&(l&_t&&(o.f|=tn),Zi(f,Ct))}else u&&((l&Pt)!==0&&Nt!==null&&Nt.add(o),sn(o))}}function et(e){if(typeof e!="object"||e===null||Ln in e)return e;const t=Ei(e);if(t!==Co&&t!==Do)return e;var r=new Map,i=Ci(e),s=Z(0),o=Wt,l=u=>{if(Wt===o)return u();var f=he,d=Wt;tt(null),cs(o);var c=u();return tt(f),cs(d),c};return i&&r.set("length",Z(e.length)),new Proxy(e,{defineProperty(u,f,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&No();var c=r.get(f);return c===void 0?c=l(()=>{var g=Z(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(()=>Z(Be));r.set(f,c),Et(s)}}else b(d,Be),Et(s);return!0},get(u,f,d){if(f===Ln)return e;var c=r.get(f),g=f in u;if(c===void 0&&(!g||mn(u,f)?.writable)&&(c=l(()=>{var v=et(g?u[f]:Be),_=Z(v);return _}),r.set(f,c)),c!==void 0){var h=n(c);return h===Be?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!==Be)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return d},has(u,f){if(f===Ln)return!0;var d=r.get(f),c=d!==void 0&&d.v!==Be||Reflect.has(u,f);if(d!==void 0||Te!==null&&(!c||mn(u,f)?.writable)){d===void 0&&(d=l(()=>{var h=c?et(u[f]):Be,v=Z(h);return v}),r.set(f,d));var g=n(d);if(g===Be)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 _=r.get(v+"");_!==void 0?b(_,Be):v in u&&(_=l(()=>Z(Be)),r.set(v+"",_))}if(g===void 0)(!h||mn(u,f)?.writable)&&(g=l(()=>Z(void 0)),b(g,et(d)),r.set(f,g));else{h=g.v!==Be;var p=l(()=>et(d));b(g,p)}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"),k=Number(f);Number.isInteger(k)&&k>=y.v&&b(y,k+1)}Et(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!==Be});for(var[d,c]of r)c.v!==Be&&!(d in u)&&f.push(d);return f},setPrototypeOf(){Fo()}})}var yt,Ji,Qi,ji;function ca(){if(yt===void 0){yt=window,Ji=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Qi=mn(t,"firstChild").get,ji=mn(t,"nextSibling").get,Ti(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Ti(r)&&(r.__t=void 0)}}function Ft(e=""){return document.createTextNode(e)}function ir(e){return Qi.call(e)}function An(e){return ji.call(e)}function fe(e,t){return ir(e)}function J(e,t=!1){{var r=ir(e);return r instanceof Comment&&r.data===""?An(r):r}}function ie(e,t=1,r=!1){let i=e;for(;t--;)i=An(i);return i}function ha(e){e.textContent=""}function $i(){return!1}function va(e,t){{const r=document.body;e.autofocus=!0,rn(()=>{document.activeElement===r&&e.focus()})}}function Pr(e){var t=he,r=Te;tt(null),xt(null);try{return e()}finally{tt(t),xt(r)}}function es(e){Te===null&&(he===null&&Po(),Lo()),un&&Io()}function ga(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function wt(e,t,r){var i=Te;i!==null&&(i.f&ot)!==0&&(e|=ot);var s={ctx:Ge,deps:null,nodes:null,f:e|st|_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{Wn(s),s.f|=Tr}catch(u){throw Qe(s),u}else t!==null&&sn(s);var o=s;if(r&&o.deps===null&&o.teardown===null&&o.nodes===null&&o.first===o.last&&(o.f&pn)===0&&(o=o.first,(e&Pt)!==0&&(e&Yt)!==0&&o!==null&&(o.f|=Yt)),o!==null&&(o.parent=i,i!==null&&ga(o,i),he!==null&&(he.f&We)!==0&&(e&en)===0)){var l=he;(l.effects??=[]).push(o)}return s}function On(){return he!==null&&!Tt}function Mr(e){const t=wt(jn,null,!1);return qe(t,Ve),t.teardown=e,t}function Ye(e){es();var t=Te.f,r=!he&&(t&Mt)!==0&&(t&Tr)===0;if(r){var i=Ge;(i.e??=[]).push(e)}else return ts(e)}function ts(e){return wt(Er|Li,e,!1)}function on(e){return es(),wt(jn|Li,e,!0)}function ma(e){Dt.ensure();const t=wt(en|pn,e,!0);return(r={})=>new Promise(i=>{r.outro?an(t,()=>{Qe(t),i(void 0)}):(Qe(t),i(void 0))})}function Ar(e){return wt(Er,e,!1)}function pa(e){return wt(Sr|pn,e,!0)}function ns(e,t=0){return wt(jn|t,e,!0)}function oe(e,t=[],r=[],i=[]){aa(i,t,r,s=>{wt(jn,()=>e(...s.map(n)),!0)})}function Nn(e,t=0){var r=wt(Pt|t,e,!0);return r}function _a(e,t=0){var r=wt(Si|t,e,!0);return r}function at(e){return wt(Mt|pn,e,!0)}function rs(e){var t=e.teardown;if(t!==null){const r=un,i=he;us(!0),tt(null);try{t.call(null)}finally{us(r),tt(i)}}}function is(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&Pr(()=>{s.abort(_n)});var i=r.next;(r.f&en)!==0?r.parent=null:Qe(r,t),r=i}}function ya(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Mt)===0&&Qe(t),t=r}}function Qe(e,t=!0){var r=!1;(t||(e.f&Ii)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(wa(e.nodes.start,e.nodes.end),r=!0),is(e,t&&!r),or(e,0),qe(e,At);var i=e.nodes&&e.nodes.t;if(i!==null)for(const o of i)o.stop();rs(e);var s=e.parent;s!==null&&s.first!==null&&ss(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function wa(e,t){for(;e!==null;){var r=e===t?null:An(e);e.remove(),e=r}}function ss(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 an(e,t,r=!0){var i=[];os(e,i,!0);var s=()=>{r&&Qe(e),t&&t()},o=i.length;if(o>0){var l=()=>--o||s();for(var u of i)u.out(l)}else s()}function os(e,t,r){if((e.f&ot)===0){e.f^=ot;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&Yt)!==0||(s.f&Mt)!==0&&(e.f&Pt)!==0;os(s,t,l?r:!1),s=o}}}function Or(e){as(e,!0)}function as(e,t){if((e.f&ot)!==0){e.f^=ot,(e.f&Ve)===0&&(qe(e,st),sn(e));for(var r=e.first;r!==null;){var i=r.next,s=(r.f&Yt)!==0||(r.f&Mt)!==0;as(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 ls(e,t){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end;r!==null;){var s=r===i?null:An(r);t.append(r),r=s}}let ln=!1;function sr(e){ln=e}let un=!1;function us(e){un=e}let he=null,Tt=!1;function tt(e){he=e}let Te=null;function xt(e){Te=e}let Ht=null;function fs(e){he!==null&&(Ht===null?Ht=[e]:Ht.push(e))}let je=null,lt=0,gt=null;function ba(e){gt=e}let ds=1,Fn=0,Wt=Fn;function cs(e){Wt=e}function hs(){return++ds}function Hn(e){var t=e.f;if((t&st)!==0)return!0;if(t&We&&(e.f&=~tn),(t&Ct)!==0){var r=e.deps;if(r!==null)for(var i=r.length,s=0;s<i;s++){var o=r[s];if(Hn(o)&&qi(o),o.wv>e.wv)return!0}(t&_t)!==0&&ht===null&&qe(e,Ve)}return!1}function vs(e,t,r=!0){var i=e.reactions;if(i!==null&&!Ht?.includes(e))for(var s=0;s<i.length;s++){var o=i[s];(o.f&We)!==0?vs(o,t,!1):t===o&&(r?qe(o,st):(o.f&Ve)!==0&&qe(o,Ct),sn(o))}}function gs(e){var t=je,r=lt,i=gt,s=he,o=Ht,l=Ge,u=Tt,f=Wt,d=e.f;je=null,lt=0,gt=null,he=(d&(Mt|en))===0?e:null,Ht=null,yn(e.ctx),Tt=!1,Wt=++Fn,e.ac!==null&&(Pr(()=>{e.ac.abort(_n)}),e.ac=null);try{e.f|=xr;var c=e.fn,g=c(),h=e.deps;if(je!==null){var v;if(or(e,lt),h!==null&&lt>0)for(h.length=lt+je.length,v=0;v<je.length;v++)h[lt+v]=je[v];else e.deps=h=je;if(On()&&(e.f&_t)!==0)for(v=lt;v<h.length;v++)(h[v].reactions??=[]).push(e)}else h!==null&&lt<h.length&&(or(e,lt),h.length=lt);if(Ni()&&gt!==null&&!Tt&&h!==null&&(e.f&(We|Ct|st))===0)for(v=0;v<gt.length;v++)vs(gt[v],e);return s!==null&&s!==e&&(Fn++,gt!==null&&(i===null?i=gt:i.push(...gt))),(e.f&qt)!==0&&(e.f^=qt),g}catch(_){return Wi(_)}finally{e.f^=xr,je=t,lt=r,gt=i,he=s,Ht=o,yn(l),Tt=u,Wt=f}}function ka(e,t){let r=t.reactions;if(r!==null){var i=bo.call(r,e);if(i!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[i]=r[s],r.pop())}}r===null&&(t.f&We)!==0&&(je===null||!je.includes(t))&&(qe(t,Ct),(t.f&_t)!==0&&(t.f^=_t,t.f&=~tn),Yi(t),or(t,0))}function or(e,t){var r=e.deps;if(r!==null)for(var i=t;i<r.length;i++)ka(e,r[i])}function Wn(e){var t=e.f;if((t&At)===0){qe(e,Ve);var r=Te,i=ln;Te=e,ln=!0;try{(t&(Pt|Si))!==0?ya(e):is(e),rs(e);var s=gs(e);e.teardown=typeof s=="function"?s:null,e.wv=ds;var o}finally{ln=i,Te=r}}}async function kn(){await Promise.resolve(),ta()}function n(e){var t=e.f,r=(t&We)!==0;if(he!==null&&!Tt){var i=Te!==null&&(Te.f&At)!==0;if(!i&&!Ht?.includes(e)){var s=he.deps;if((he.f&xr)!==0)e.rv<Fn&&(e.rv=Fn,je===null&&s!==null&&s[lt]===e?lt++:je===null?je=[e]:je.includes(e)||je.push(e));else{(he.deps??=[]).push(e);var o=e.reactions;o===null?e.reactions=[he]:o.includes(he)||o.push(he)}}}if(un){if(Xt.has(e))return Xt.get(e);if(r){var l=e,u=l.v;return((l.f&Ve)===0&&l.reactions!==null||ps(l))&&(u=Ir(l)),Xt.set(l,u),u}}else r&&(!ht?.has(e)||Le?.is_fork&&!On())&&(l=e,Hn(l)&&qi(l),ln&&On()&&(l.f&_t)===0&&ms(l));if(ht?.has(e))return ht.get(e);if((e.f&qt)!==0)throw e.v;return e.v}function ms(e){if(e.deps!==null){e.f^=_t;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&We)!==0&&(t.f&_t)===0&&ms(t)}}function ps(e){if(e.v===Be)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Xt.has(t)||(t.f&We)!==0&&ps(t))return!0;return!1}function ee(e){var t=Tt;try{return Tt=!0,e()}finally{Tt=t}}const Ca=-7169;function qe(e,t){e.f=e.f&Ca|t}const Da=["touchstart","touchmove"];function Ea(e){return Da.includes(e)}const _s=new Set,Nr=new Set;function Ta(e,t,r,i={}){function s(o){if(i.capture||Un.call(t,o),!o.cancelBubble)return Pr(()=>r?.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?rn(()=>{t.addEventListener(e,s,i)}):t.addEventListener(e,s,i),s}function ut(e,t,r,i,s){var o={capture:i,passive:s},l=Ta(e,t,r,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Mr(()=>{t.removeEventListener(e,l,o)})}function Zt(e){for(var t=0;t<e.length;t++)_s.add(e[t]);for(var r of Nr)r(e)}let ys=null;function Un(e){var t=this,r=t.ownerDocument,i=e.type,s=e.composedPath?.()||[],o=s[0]||e.target;ys=e;var l=0,u=ys===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){Di(e,"currentTarget",{configurable:!0,get(){return o||r}});var c=he,g=Te;tt(null),xt(null);try{for(var h,v=[];o!==null;){var _=o.assignedSlot||o.parentNode||o.host||null;try{var p=o["__"+i];p!=null&&(!o.disabled||e.target===o)&&p.call(o,e)}catch(m){h?v.push(m):h=m}if(e.cancelBubble||_===t||_===null)break;o=_}if(h){for(let m of v)queueMicrotask(()=>{throw m});throw h}}finally{e.__root=t,delete e.currentTarget,tt(c),xt(g)}}}function xa(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function ar(e,t){var r=Te;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function Q(e,t){var r=(t&Ko)!==0,i=(t&Zo)!==0,s,o=!e.startsWith("<!>");return()=>{s===void 0&&(s=xa(o?e:"<!>"+e),r||(s=ir(s)));var l=i||Ji?document.importNode(s,!0):s.cloneNode(!0);if(r){var u=ir(l),f=l.lastChild;ar(u,f)}else ar(l,l);return l}}function ws(e=""){{var t=Ft(e+"");return ar(t,t),t}}function ce(){var e=document.createDocumentFragment(),t=document.createComment(""),r=Ft();return e.append(t,r),ar(t,r),e}function T(e,t){e!==null&&e.before(t)}function bs(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function Sa(e,t){return Ra(e,t)}const Cn=new Map;function Ra(e,{target:t,anchor:r,props:i={},events:s,context:o,intro:l=!0}){ca();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 _=Ea(v);t.addEventListener(v,Un,{passive:_});var p=Cn.get(v);p===void 0?(document.addEventListener(v,Un,{passive:_}),Cn.set(v,1)):Cn.set(v,p+1)}}};f(Qn(_s)),Nr.add(f);var d=void 0,c=ma(()=>{var g=r??t.appendChild(Ft());return sa(g,{pending:()=>{}},h=>{if(o){we({});var v=Ge;v.c=o}s&&(i.$$events=s),d=e(h,i)||{},o&&be()}),()=>{for(var h of u){t.removeEventListener(h,Un);var v=Cn.get(h);--v===0?(document.removeEventListener(h,Un),Cn.delete(h)):Cn.set(h,v)}Nr.delete(f),g!==r&&g.parentNode?.removeChild(g)}});return Fr.set(d,c),d}let Fr=new WeakMap;function Ia(e,t){const r=Fr.get(e);return r?(Fr.delete(e),r(t)):Promise.resolve()}class Hr{anchor;#e=new Map;#t=new Map;#n=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.#t.get(r);if(i)Or(i),this.#r.delete(r);else{var s=this.#n.get(r);s&&(this.#t.set(r,s.effect),this.#n.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.#n.get(l);u&&(Qe(u.effect),this.#n.delete(l))}for(const[o,l]of this.#t){if(o===r||this.#r.has(o))continue;const u=()=>{if(Array.from(this.#e.values()).includes(o)){var d=document.createDocumentFragment();ls(l,d),d.append(Ft()),this.#n.set(o,{effect:l,fragment:d})}else Qe(l);this.#r.delete(o),this.#t.delete(o)};this.#s||!i?(this.#r.add(o),an(l,u,!1)):u()}}};#o=t=>{this.#e.delete(t);const r=Array.from(this.#e.values());for(const[i,s]of this.#n)r.includes(i)||(Qe(s.effect),this.#n.delete(i))};ensure(t,r){var i=Le,s=$i();if(r&&!this.#t.has(t)&&!this.#n.has(t))if(s){var o=document.createDocumentFragment(),l=Ft();o.append(l),this.#n.set(t,{effect:at(()=>r(l)),fragment:o})}else this.#t.set(t,at(()=>r(this.anchor)));if(this.#e.set(i,t),s){for(const[u,f]of this.#t)u===t?i.skipped_effects.delete(f):i.skipped_effects.add(f);for(const[u,f]of this.#n)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 ve(e,t,r=!1){var i=new Hr(e),s=r?Yt:0;function o(l,u){i.ensure(l,u)}Nn(()=>{var l=!1;t((u,f=!0)=>{l=!0,o(f,u)}),l||o(!1,null)},s)}function De(e,t){return t}function La(e,t,r){for(var i=[],s=t.length,o,l=t.length,u=0;u<s;u++){let g=t[u];an(g,()=>{if(o){if(o.pending.delete(g),o.done.add(g),o.pending.size===0){var h=e.outrogroups;Wr(Qn(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;ha(c),c.append(d),e.items.clear()}Wr(t,!f)}else o={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(o)}function Wr(e,t=!0){for(var r=0;r<e.length;r++)Qe(e[r],t)}var ks;function ae(e,t,r,i,s,o=null){var l=e,u=new Map,f=(t&Mi)!==0;if(f){var d=e;l=d.appendChild(Ft())}var c=null,g=Gi(()=>{var y=r();return Ci(y)?y:y==null?[]:Qn(y)}),h,v=!0;function _(){m.fallback=c,Pa(m,h,l,t,i),c!==null&&(h.length===0?(c.f&Ot)===0?Or(c):(c.f^=Ot,zn(c,null,l)):an(c,()=>{c=null}))}var p=Nn(()=>{h=n(g);for(var y=h.length,k=new Set,R=Le,E=$i(),D=0;D<y;D+=1){var w=h[D],C=i(w,D),M=v?null:u.get(C);M?(M.v&&bn(M.v,w),M.i&&bn(M.i,D),E&&R.skipped_effects.delete(M.e)):(M=Ma(u,v?l:ks??=Ft(),w,C,D,s,t,r),v||(M.e.f|=Ot),u.set(C,M)),k.add(C)}if(y===0&&o&&!c&&(v?c=at(()=>o(l)):(c=at(()=>o(ks??=Ft())),c.f|=Ot)),!v)if(E){for(const[q,I]of u)k.has(q)||R.skipped_effects.add(I.e);R.oncommit(_),R.ondiscard(()=>{})}else _();n(g)}),m={effect:p,items:u,outrogroups:null,fallback:c};v=!1}function Pa(e,t,r,i,s){var o=(i&Vo)!==0,l=t.length,u=e.items,f=e.effect.first,d,c=null,g,h=[],v=[],_,p,m,y;if(o)for(y=0;y<l;y+=1)_=t[y],p=s(_,y),m=u.get(p).e,(m.f&Ot)===0&&(m.nodes?.a?.measure(),(g??=new Set).add(m));for(y=0;y<l;y+=1){if(_=t[y],p=s(_,y),m=u.get(p).e,e.outrogroups!==null)for(const I of e.outrogroups)I.pending.delete(m),I.done.delete(m);if((m.f&Ot)!==0)if(m.f^=Ot,m===f)zn(m,null,r);else{var k=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),Jt(e,c,m),Jt(e,m,k),zn(m,k,r),c=m,h=[],v=[],f=c.next;continue}if((m.f&ot)!==0&&(Or(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 R=v[0],E;c=R.prev;var D=h[0],w=h[h.length-1];for(E=0;E<h.length;E+=1)zn(h[E],R,r);for(E=0;E<v.length;E+=1)d.delete(v[E]);Jt(e,D.prev,w.next),Jt(e,c,D),Jt(e,w,R),f=R,c=w,y-=1,h=[],v=[]}else d.delete(m),zn(m,f,r),Jt(e,m.prev,m.next),Jt(e,m,c===null?e.effect.first:c.next),Jt(e,c,m),c=m;continue}for(h=[],v=[];f!==null&&f!==m;)(d??=new Set).add(f),v.push(f),f=f.next;if(f===null)continue}(m.f&Ot)===0&&h.push(m),c=m,f=m.next}if(e.outrogroups!==null){for(const I of e.outrogroups)I.pending.size===0&&(Wr(Qn(I.done)),e.outrogroups?.delete(I));e.outrogroups.size===0&&(e.outrogroups=null)}if(f!==null||d!==void 0){var C=[];if(d!==void 0)for(m of d)(m.f&ot)===0&&C.push(m);for(;f!==null;)(f.f&ot)===0&&f!==e.fallback&&C.push(f),f=f.next;var M=C.length;if(M>0){var q=(i&Mi)!==0&&l===0?r:null;if(o){for(y=0;y<M;y+=1)C[y].nodes?.a?.measure();for(y=0;y<M;y+=1)C[y].nodes?.a?.fix()}La(e,C,q)}}o&&rn(()=>{if(g!==void 0)for(m of g)m.nodes?.a?.apply()})}function Ma(e,t,r,i,s,o,l,u){var f=(l&Uo)!==0?(l&Bo)===0?Ki(r,!1,!1):Kt(r):null,d=(l&zo)!==0?Kt(s):null;return{v:f,i:d,e:at(()=>(o(t,f??r,d??s,u),()=>{e.delete(i)}))}}function zn(e,t,r){if(e.nodes)for(var i=e.nodes.start,s=e.nodes.end,o=t&&(t.f&Ot)===0?t.nodes.start:r;i!==null;){var l=An(i);if(o.before(i),i===s)return;i=l}}function Jt(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function Ut(e,t,...r){var i=new Hr(e);Nn(()=>{const s=t()??null;i.ensure(s,s&&(o=>s(o,...r)))},Yt)}function Ur(e,t,r){var i=new Hr(e);Nn(()=>{var s=t()??null;i.ensure(s,s&&(o=>r(o,s)))},Yt)}function Me(e,t){var r=void 0,i;_a(()=>{r!==(r=t())&&(i&&(Qe(i),i=null),r&&(i=at(()=>{Ar(()=>r(e))})))})}function Cs(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=Cs(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function Aa(){for(var e,t,r=0,i="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=Cs(e))&&(i&&(i+=" "),i+=t);return i}function St(e){return typeof e=="object"?Aa(e):e??""}function Oa(e,t,r){var i=e==null?"":""+e;return i===""?null:i}function Ds(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 Na(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 p=e.length;for(var g=0;g<p;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===p-1){if(c!==-1){var v=zr(e.substring(d,c).trim());if(!f.includes(v)){h!==";"&&g++;var _=e.substring(d,g).trim();r+=" "+_+";"}}d=g+1,c=-1}}}}return i&&(r+=Ds(i)),s&&(r+=Ds(s,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function N(e,t,r,i,s,o){var l=e.__className;if(l!==r||l===void 0){var u=Oa(r);u==null?e.removeAttribute("class"):e.className=u,e.__className=r}return o}function Vr(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 bt(e,t,r,i){var s=e.__style;if(s!==t){var o=Na(t,i);o==null?e.removeAttribute("style"):e.style.cssText=o,e.__style=t}else i&&(Array.isArray(i)?(Vr(e,r?.[0],i[0]),Vr(e,r?.[1],i[1],"important")):Vr(e,r,i));return i}const Fa=Symbol("is custom element"),Ha=Symbol("is html");function Pe(e,t,r,i){var s=Wa(e);s[t]!==(s[t]=r)&&(t==="loading"&&(e[So]=r),r==null?e.removeAttribute(t):typeof r!="string"&&Ua(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function Wa(e){return e.__attributes??={[Fa]:e.nodeName.includes("-"),[Ha]:e.namespaceURI===Jo}}var Es=new Map;function Ua(e){var t=e.getAttribute("is")||e.nodeName,r=Es.get(t);if(r)return r;Es.set(t,r=[]);for(var i,s=e,o=Element.prototype;o!==s;){i=ko(s);for(var l in i)i[l].set&&r.push(l);s=Ei(s)}return r}class Br{#e=new WeakMap;#t;#n;static entries=new WeakMap;constructor(t){this.#n=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.#n),()=>{var s=this.#e.get(t);s.delete(r),s.size===0&&(this.#e.delete(t),this.#t.unobserve(t))}}#r(){return this.#t??(this.#t=new ResizeObserver(t=>{for(var r of t){Br.entries.set(r.target,r);for(var i of this.#e.get(r.target)||[])i(r)}}))}}var za=new Br({box:"border-box"});function lr(e,t,r){var i=za.observe(e,()=>r(e[t]));Ar(()=>(ee(()=>r(e[t])),i))}function Ts(e,t){return e===t||e?.[Ln]===t}function nt(e={},t,r,i){return Ar(()=>{var s,o;return ns(()=>{s=o,o=i?.()||[],ee(()=>{e!==r(...o)&&(t(e,...o),s&&Ts(r(...s),e)&&t(null,...s))})}),()=>{rn(()=>{o&&Ts(r(...o),e)&&t(null,...o)})}}),e}function xs(e,t,r){if(e==null)return t(void 0),Gt;const i=ee(()=>e.subscribe(t,r));return i.unsubscribe?()=>i.unsubscribe():i}function Va(e){let t;return xs(e,r=>t=r)(),t}let ur=!1,Gr=Symbol();function Ba(e,t,r){const i=r[t]??={store:null,source:Ki(void 0),unsubscribe:Gt};if(i.store!==e&&!(Gr in r))if(i.unsubscribe(),i.store=e??null,e==null)i.source.v=void 0,i.unsubscribe=Gt;else{var s=!0;i.unsubscribe=xs(e,o=>{s?i.source.v=o:b(i.source,o)}),s=!1}return e&&Gr in r?Va(e):n(i.source)}function Ga(){const e={};function t(){Mr(()=>{for(var r in e)e[r].unsubscribe();Di(e,Gr,{enumerable:!1,value:!0})})}return[e,t]}function Ya(e){var t=ur;try{return ur=!1,[e(),ur]}finally{ur=t}}function Ee(e,t,r,i){var s=(r&qo)!==0,o=(r&Xo)!==0,l=i,u=!0,f=()=>(u&&(u=!1,l=o?ee(i):i),l),d;if(s){var c=Ln in e||xo in e;d=mn(e,t)?.set??(c&&t in e?k=>e[t]=k:void 0)}var g,h=!1;s?[g,h]=Ya(()=>e[t]):g=e[t],g===void 0&&i!==void 0&&(g=f(),d&&(Oo(),d(g)));var v;if(v=()=>{var k=e[t];return k===void 0?f():(u=!0,k)},(r&Yo)===0)return v;if(d){var _=e.$$legacy;return(function(k,R){return arguments.length>0?((!R||_||h)&&d(R?v():k),k):v()})}var p=!1,m=((r&Go)!==0?rr:Gi)(()=>(p=!1,v()));s&&n(m);var y=Te;return(function(k,R){if(arguments.length>0){const E=R?n(m):s?et(k):k;return b(m,E),p=!0,l!==void 0&&(l=E),k}return un&&p||(y.f&At)!==0?m.v:n(m)})}function qa(){return he===null&&Ao(),(he.ac??=new AbortController).signal}function Vn(e){Ge===null&&Pi(),Ye(()=>{const t=ee(e);if(typeof t=="function")return t})}const Xa="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Xa);function Yr(e,t=void 0){return function(r){return r.key==="Enter"||r.key===" "&&!r.preventDefault()?e.call(t,r):void 0}}function Xe(e){return t=>{typeof e=="string"?t.innerText=e:e?.domNodes?t.replaceChildren(...e.domNodes):e?.html&&(t.innerHTML=e.html)}}function Ka(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 qr(e){return t=>{let r=new ResizeObserver(i=>{for(let s of i)e(t,s)});return r.observe(t),()=>{r.unobserve(t)}}}function Ss(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 ge(...e){return Object.assign(...e)}function fn(e){return Object.keys(e)}function Rs(e){return Object.entries(e)}function Xr(e){return Math.floor(e)}function Za(e){return Math.ceil(e)}function Rt(...e){return Math.min(...e)}function ft(...e){return Math.max(...e)}function Ja(){return Symbol("ec")}function Kr(e){return Array.isArray(e)}function Ce(e){return typeof e=="function"}function Qa(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Zr(e){return e instanceof Date}function ja(e){return e()}function $a(e){e.forEach(ja)}function el(){}const fr=e=>e;function Jr(e,t=void 0){return function(r){r.stopPropagation(),e&&e.call(t,r)}}function dn(){return window.getComputedStyle(document.documentElement).direction==="rtl"}const dr=86400;function It(e=void 0){return e!==void 0?Zr(e)?As(e):rl(e):As(new Date)}function Ne(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 Zr(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 Y(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;)Dn(e);return e.setUTCDate(e.getUTCDate()+r*t.days),e.setUTCSeconds(e.getUTCSeconds()+r*t.seconds),e}function cr(e,t,r=1){return Se(e,t,-r)}function kt(e,t=1){return e.setUTCDate(e.getUTCDate()+t),e}function Dn(e,t=1){return kt(e,-t)}function zt(e){return e.setUTCHours(0,0,0,0),e}function Fe(e){return new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds())}function dt(e,t=19){return e.toISOString().substring(0,t)}function Ke(e,...t){return t.every(r=>e.getTime()===r.getTime())}function tl(e,t){let r=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(r>=0?r:r+7)),e}function Is(e,t){let r=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(r<=0?r:r-7)),e}function Ls(e){return typeof e=="string"&&e.length<=10}function Qr(e,t){return e.setUTCHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),0),e}function _e(e){return e.seconds}function Ps(e,t){return Se(e,t),e}function Ms(e,t,r){if(cr(e,t),r.length&&r.length<7)for(;r.includes(e.getUTCDay());)Dn(e);return e}function nl(e,t){e=Y(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/dr+1)/7)}function As(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()))}function rl(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 jr=Ja();function Os(e,t){e[jr]=t}function il(e){return!!e?.[jr]}function Vt(e){return e[jr]}function Ns(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 Qt(e){return e.getBoundingClientRect()}function Fs(e,t){for(;t--;)e=e.parentElement;return e}function cn(e){return Qt(e).height}function En(e,t,r=document,i=[]){i.push(r);for(let s of r.elementsFromPoint(e,t)){if(il(s))return s;if(s.shadowRoot&&!i.includes(s.shadowRoot)){let o=En(e,t,s.shadowRoot,i);if(o)return o}}return null}function Bn(e,t,r,i){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r,i)}function sl(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 Ze(e){return e=ge({},e),e.currentStart=Fe(e.currentStart),e.currentEnd=Fe(e.currentEnd),e.activeStart=Fe(e.activeStart),e.activeEnd=Fe(e.activeEnd),e}let ol=1;function hr(e){return e.map(t=>{let r={id:"id"in t?String(t.id):`{generated-${ol++}}`,resourceIds:$r(t,"resourceId").map(String),allDay:t.allDay??(Ls(t.start)&&Ls(t.end)),start:It(t.start),end:It(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:$r(t,"className"),styles:$r(t,"style")};if(r.allDay){zt(r.start);let i=Y(r.end);zt(r.end),(!Ke(r.end,i)||Ke(r.end,r.start))&&kt(r.end)}return r})}function $r(e,t){let r=e[t+"s"]??e[t]??[];return Kr(r)?r:[r]}function al(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 ll(e,t,r,i,s,o){let l=s.formatRange(e.start,t&&e.event.display!=="pointer"&&!e.zeroDuration?Qr(Y(e.start),e.end):e.start),u;if(r&&(u=Ce(r)?r({event:Ue(e.event),timeText:l,view:Ze(o)}):r),u===void 0){let f;switch(e.event.display){case"background":f=[];break;case"pointer":f=e.event.allDay?[]:[Hs(l,e,i)];break;default:f=[...e.event.allDay?[]:[Hs(l,e,i)],Ns("h4",i.eventTitle,e.event.title)]}u={domNodes:f}}return[l,u]}function Hs(e,t,r){return Ns("time",r.eventTime,e,[["datetime",dt(t.start)]])}function ul(e,t,r){let i=t.classNames;return e&&(Ce(e)&&(e=e({event:Ue(t),view:Ze(r)})),i=[...Kr(e)?e:[e],...i]),i}function Ue(e){return Ws(e,Fe)}function ei(e){return Ws(e,Y)}function Ws(e,t){return e=ge({},e),e.start=t(e.start),e.end=t(e.end),e}function ti(e,t){e.length=t.length;for(let r of e)r?.reposition()}function Tn(e,t,r,i=void 0){return(!i||e.resourceIds.includes(i.id))&&e.start<r&&e.end>t}function vr(e){return fl(e)||dl(e)||cl(e)}function mt(e){return e==="background"}function fl(e){return e==="preview"}function dl(e){return e==="ghost"}function cl(e){return e==="pointer"}function Gn(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:Ke(t,r)}}function xn(e,t,r=!0){let i=[],s,o,l;for(let{gridColumn:u,gridRow:f,resource:d,dayStart:c,dayEnd:g,disabled:h}of t)!h&&Tn(e,c,g,d)&&(i.push(c),s=g,o||(o=u,l=f));if(i.length){let u=Gn(e,i[0],s);return ge(u,{gridColumn:o,gridRow:l,dates:i}),r&&ni(u),[u]}return[]}function Us(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 zs(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 ge(e,{top:r,bottom:i}),r}const Vs=new WeakMap;let hl=1;function ni(e){let{event:t,gridColumn:r,gridRow:i}=e,s=Vs.get(t);s||(s=hl++,Vs.set(t,s)),e.id=`${s}-${r}-${i}`}function hn(e,t){return()=>{let{options:{locale:r}}=e,i=e.options[t],s;return ee(()=>{s=Ce(i)?{format:i}:new Intl.DateTimeFormat(r,i)}),{format:o=>s.format(Fe(o))}}}function Bs(e,t){return()=>{let{options:{locale:r}}=e,i=e.options[t],s;return ee(()=>{if(Ce(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+=vl(c[1-v],f),g[v]=!0):d+=h.value}return d}}}}),{formatRange:(o,l)=>s(Fe(o),Fe(l))}}}function vl(e,t){let r="";for(let i of t)i.source==e&&(r+=i.value);return r}function Yn(e){return gr(e,"day")}function qn(e){return gr(e,"week")}function ri(e){return gr(e,"month")}function gl(e){return gr(e,"year")}function gr(e,t){return{...e,next:"Next "+t,prev:"Previous "+t}}function rt(e){return t=>({...t,view:e})}function ml(e){let t,r;return e&&({start:t,end:r}=e,t&&(t=zt(It(t))),r&&(r=zt(It(r)))),{start:t,end:r}}function Sn(e,t){return t.start&&e<t.start||t.end&&e>t.end}function Gs(e){let t=[];return Ys(e,0,t),t}function Ys(e,t,r){let i=[];for(let s of e){let o=pl(s);i.push(o),r.push(o);let l={level:t,children:[],expanded:!0,hidden:!1};Os(o,l),s.children&&(l.children=Ys(s.children,t+1,r))}return i}function pl(e){return{id:String(e.id),title:e.title||"",eventBackgroundColor:e.eventBackgroundColor,eventTextColor:e.eventTextColor,extendedProps:e.extendedProps??{}}}function _l(e,t){return qs(e,t)?.eventBackgroundColor}function yl(e,t){return qs(e,t)?.eventTextColor}function qs(e,t){return t.find(r=>e.resourceIds.includes(r.id))}function Xs(e,t,r,i,s){let o=[];e=Y(e);let l=Y(e);for(Se(e,i.min),Se(l,i.max);e<l;)o.push([dt(e),s.format(e)]),Se(e,t,r);let u=Xr((e-l)/1e3/_e(t));return u&&u!==r&&(o.at(-1)[2]=r-u),o}function Ks(e,t,r,i,s){let o=Ne(e),l=Ne(t);if(r){let u=Ne(Rt(_e(o),ft(0,_e(l)-dr))),f=Ne(ft(_e(l),_e(u)+dr)),d=Ce(r?.eventFilter)?r.eventFilter:c=>!mt(c.display);e:for(let c of i){let g=Se(Y(c),o),h=Se(Y(c),l),v=Se(Y(c),u),_=Se(Y(c),f);for(let p of s)if(!p.allDay&&d(p)&&p.start<_&&p.end>v){if(p.start<g){let m=ft((p.start-c)/1e3,_e(u));m<_e(o)&&(o.seconds=m)}if(p.end>h){let m=Rt((p.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 ii extends Map{#e=new Map;#t=Z(0);#n=Z(0);#r=Wt||-1;constructor(t){if(super(),t){for(var[r,i]of t)super.set(r,i);this.#n.v=super.size}}#s(t){return Wt===this.#r?Z(t):Kt(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.#t),!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.#t);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.#t;if(s===void 0)s=this.#s(0),i.set(t,s),b(this.#n,super.size),Et(u);else if(o!==r){Et(s);var f=u.reactions===null?null:new Set(u.reactions),d=f===null||!s.reactions?.every(c=>f.has(c));d&&Et(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.#n,super.size),b(i,-1),Et(this.#t)),s}clear(){if(super.size!==0){super.clear();var t=this.#e;b(this.#n,0);for(var r of t.values())b(r,-1);Et(this.#t),t.clear()}}#i(){n(this.#t);var t=this.#e;if(this.#n.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.#t),super.keys()}values(){return this.#i(),super.values()}entries(){return this.#i(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return n(this.#n),super.size}}function wl(e){let t={buttonText:{today:"today"},customButtons:{},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,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",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 bl(e){let t={date:r=>zt(It(r)),duration:Ne,events:hr,eventSources:al,hiddenDays:r=>[...new Set(r)],highlightedDates:r=>r.map(i=>zt(It(i))),resources:Gs,validRange:ml};for(let r of e)r.createParsers?.(t);return t}const Zs=["buttonText","customButtons","theme"];function kl(e,t,r){let i=wl(t),s=bl(t);i=si(i,s),r=si(r,s);let o=oi(i,"views")??{},l=oi(r,"views")??{},u=new ii;Qs(u,i);let f={},d={};function c(){r.view&&u.set("view",r.view);let g=new Set([...fn(o),...fn(l)]);for(let h of g){let v=l[h]??{},_=Js(i,o[h]??o[v.type]??{}),p=Js(_,r,v),m=oi(p,"component");delete p.view;for(let y of fn(p))u.has(y)?(f[y]||(f[y]=[]),f[y].push(Zs.includes(y)?k=>p[y]=Ce(k)?k(_[y]):k:k=>p[y]=k)):delete p[y];on(()=>{let y=u.get("view");ee(()=>{y===h&&(e.setViewComponent(m),d=p,Qs(u,p))})})}}return{proxy:new Proxy(u,{set(g,h,v){return d[h]=v,g.set(h,v),!0},get(g,h){return g.get(h)}}),setOption(g,h,v){u.has(g)&&(!v&&g in s&&(h=s[g](h)),f[g]?.forEach(_=>_(h)),u.set(g,d[g]??h))},initEffects:c}}function si(e,t){let r={...e};for(let i of fn(t))i in r&&(r[i]=t[i](r[i]));if(e.views){r.views={};for(let i of fn(e.views))r.views[i]=si(e.views[i],t)}return r}function oi(e,t){let r=e[t];return delete e[t],r}function Js(...e){let t={};for(let r of e){let i={};for(let s of Zs)Ce(r[s])&&(i[s]=r[s](t[s]));t={...t,...r,...i}}return t}function Qs(e,t){for(let[r,i]of Rs(t))e.set(r,i)}function Cl(e,t){let r=[];for(let i of fn(e))e[i]!==t[i]&&r.push([i,e[i]]);return r}function Dl(e){let t=0;return()=>{let{activeRange:r,fetchedRange:i,options:{events:s,eventSources:o,lazyFetching:l,loading:u}}=e;ee(()=>{if(o.length||(e.events=s),!i.start||i.start>r.start||i.end<r.end||!l){Ce(u)&&!t&&u(!0);let f=()=>{--t===0&&Ce(u)&&u(!1)},d=[],c=_=>f(),g=_=>{d=d.concat(hr(_)),e.events=d,f()},h=dt(r.start),v=dt(r.end);for(let _ of o){if(Ce(_.events)){let p=_.events({start:Fe(r.start),end:Fe(r.end),startStr:h,endStr:v},g,c);p!==void 0&&Promise.resolve(p).then(g,c)}else{let p=Ce(_.extraParams)?_.extraParams():ge({},_.extraParams);p.start=h,p.end=v,p=new URLSearchParams(p);let m=_.url,y={},k;["GET","HEAD"].includes(_.method)?m+=(m.includes("?")?"&":"?")+p:(y["content-type"]="application/x-www-form-urlencoded;charset=UTF-8",k=String(p)),fetch(m,{method:_.method,headers:y,body:k,signal:qa(),credentials:"same-origin"}).then(R=>R.json()).then(g).catch(c)}++t}ge(i,r)}})}}function El(e){return()=>{let t=setInterval(()=>{let r=It(),i=zt(Y(r));e.now=r,Ke(e.today,i)||(e.today=i)},1e3);return()=>clearInterval(t)}}function Tl(e){return()=>{let{activeRange:t,options:{datesSet:r}}=e;ee(()=>{Ce(r)&&r({start:Fe(t.start),end:Fe(t.end),startStr:dt(t.start),endStr:dt(t.end),view:Ze(e.view)})})}}function xl(e){let t;return()=>{let{filteredEvents:r,options:{eventAllUpdated:i}}=e;ee(()=>{Ce(i)&&(t||(t=setTimeout(()=>{t=null,i({view:Ze(e.view)})})))})}}function Sl(e){return()=>{let{options:{view:t,viewDidMount:r}}=e;ee(()=>{Ce(r)&&kn().then(()=>r({view:Ze(e.view)}))})}}function Rl(e){return()=>{let{options:{date:t,duration:r,firstDay:i}}=e,s,o;return ee(()=>{s=Y(t),r.months?s.setUTCDate(1):r.inWeeks&&Is(s,i),o=Se(Y(s),r)}),{start:s,end:o}}}function Il(e){return()=>{let{currentRange:t,extensions:{activeRange:r}}=e,i,s;return ee(()=>{i=Y(t.start),s=Y(t.end)}),r?r(i,s):{start:i,end:s}}}function Ll(e){return()=>{let{events:t,options:{eventFilter:r,eventOrder:i,filterEventsWithResources:s,resources:o}}=e,l=[...t];return ee(()=>{if(Ce(r)){let u=t.map(Ue),f=Ze(e.view);l=l.filter((d,c)=>r({event:Ue(d),index:c,events:u,view:f}))}s&&(l=l.filter(u=>o.some(f=>u.resourceIds.includes(f.id)))),Ce(i)?l.sort((u,f)=>i(Ue(u),Ue(f))):l.sort((u,f)=>u.start-f.start||f.allDay-u.allDay)}),l}}function Pl(e){return()=>{let{options:t,activeRange:r}=e,{hiddenDays:i}=t,s=[];return ee(()=>{let o=Y(r.start),l=Y(r.end);for(;o<l;)i.includes(o.getUTCDay())||s.push(Y(o)),kt(o);if(!s.length&&i.length&&i.length<7)for(;i.includes(t.date.getUTCDay());)e.setOption("date",kt(Y(t.date)))}),s}}function Ml(e){return()=>{let{currentRange:t,intlTitle:r}=e,i;return ee(()=>{i=r.formatRange(t.start,Dn(Y(t.end)))}),i}}function Al(e){return()=>{let{activeRange:t,currentRange:r,viewTitle:i,options:{view:s}}=e,o;return ee(()=>{o=sl(s,i,r,t)}),o}}class Ol{#e;get auxComponents(){return n(this.#e)}set auxComponents(t){b(this.#e,t,!0)}#t;get currentRange(){return n(this.#t)}set currentRange(t){b(this.#t,t)}#n;get activeRange(){return n(this.#n)}set activeRange(t){b(this.#n,t)}#r;get fetchedRange(){return n(this.#r)}set fetchedRange(t){b(this.#r,t)}#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 today(){return n(this.#l)}set today(t){b(this.#l,t,!0)}#u;get intlEventTime(){return n(this.#u)}set intlEventTime(t){b(this.#u,t)}#f;get intlDayHeader(){return n(this.#f)}set intlDayHeader(t){b(this.#f,t)}#d;get intlDayHeaderAL(){return n(this.#d)}set intlDayHeaderAL(t){b(this.#d,t)}#c;get intlTitle(){return n(this.#c)}set intlTitle(t){b(this.#c,t)}#v;get viewDates(){return n(this.#v)}set viewDates(t){b(this.#v,t)}#h;get viewTitle(){return n(this.#h)}set viewTitle(t){b(this.#h,t)}#y;get view(){return n(this.#y)}set view(t){b(this.#y,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)}#p;get features(){return n(this.#p)}set features(t){b(this.#p,t,!0)}#g;get interaction(){return n(this.#g)}set interaction(t){b(this.#g,t,!0)}#m;get iClasses(){return n(this.#m)}set iClasses(t){b(this.#m,t,!0)}#_;get iClass(){return n(this.#_)}set iClass(t){b(this.#_,t,!0)}#k;constructor(t,r){let{proxy:i,setOption:s,initEffects:o}=kl(this,t,r);this.options=i,this.#k=s,this.#e=Z(et([])),this.#t=a(Rl(this)),this.#n=a(Il(this)),this.#r=Z({start:void 0,end:void 0}),this.#s=Z([]),this.#i=a(Ll(this)),this.#o=Z(),this.#a=Z(et(It())),this.#l=Z(et(zt(It()))),this.#u=a(Bs(this,"eventTimeFormat")),this.#f=a(hn(this,"dayHeaderFormat")),this.#d=a(hn(this,"dayHeaderAriaLabelFormat")),this.#c=a(Bs(this,"titleFormat")),this.#v=a(Pl(this)),this.#h=a(Ml(this)),this.#y=a(Al(this)),this.#w=Z(),this.#b=Z(et({})),this.#p=Z(et([])),this.#g=Z(et({})),this.iEvents=new ii,this.#m=Z(et(fr)),this.#_=Z();for(let l of t)l.initState?.(this);o(),this.#C()}#C(){on(El(this)),Ye(Dl(this)),Ye(Tl(this)),Ye(xl(this)),Ye(Sl(this))}setViewComponent(t){this.extensions={},this.features=[],this.viewComponent=t(this)}setOption(t,r,i=!0){this.#k(t,r,i)}}var Nl=Q("<h2></h2>"),Fl=Q("<button><i></i></button>"),Hl=Q("<button><i></i></button>"),Wl=Q("<button> </button>"),Ul=Q("<button></button>"),zl=Q("<button> </button>");function js(e,t){we(t,!0);let r=te("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),_=a(()=>r.options.view),p=Z(!1),m=Z(!1),y=Z(!1),k=!1;on(()=>{n(l),n(v),t.buttons,ee(()=>{k||(k=!0,t.buttons.includes("prev")&&(b(p,!1),n(v).start&&b(p,R(E),!0)),t.buttons.includes("next")&&(b(m,!1),n(v).end&&b(m,R(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,R(w),!0)),kn().then(()=>k=!1))})});function R(q){let I=n(d);q();let ne=n(l).every(pe=>Sn(pe,n(v)));return r.setOption("date",I),ne}function E(){r.setOption("date",Ms(Y(n(d)),n(c),n(g)))}function D(){r.setOption("date",Ps(Y(n(d)),n(c)))}function w(){r.setOption("date",Y(n(s)))}var C=ce(),M=J(C);ae(M,17,()=>t.buttons,De,(q,I)=>{var ne=ce(),pe=J(ne);{var W=H=>{var A=Nl();Me(A,()=>Xe(n(o))),oe(()=>N(A,1,n(h).title)),T(H,A)},z=H=>{var A=ce(),K=J(A);{var ue=ke=>{var se=Fl();se.__click=E;var P=fe(se);oe(()=>{N(se,1,`${n(h).button??""} ec-${n(I)??""}`),Pe(se,"aria-label",n(u).prev),Pe(se,"title",n(u).prev),se.disabled=n(p),N(P,1,`${n(h).icon??""} ec-${n(I)??""}`)}),T(ke,se)},X=ke=>{var se=ce(),P=J(se);{var x=L=>{var j=Hl();j.__click=D;var it=fe(j);oe(()=>{N(j,1,`${n(h).button??""} ec-${n(I)??""}`),Pe(j,"aria-label",n(u).next),Pe(j,"title",n(u).next),j.disabled=n(m),N(it,1,`${n(h).icon??""} ec-${n(I)??""}`)}),T(L,j)},B=L=>{var j=ce(),it=J(j);{var He=V=>{var le=Wl();le.__click=w;var xe=fe(le);oe(()=>{N(le,1,`${n(h).button??""} ec-${n(I)??""}`),le.disabled=n(y),bs(xe,n(u)[n(I)])}),T(V,le)},Lt=V=>{var le=ce(),xe=J(le);{var F=G=>{var de=Ul();de.__click=function(...Re){n(f)[n(I)].click?.apply(this,Re)},Me(de,()=>Xe(n(f)[n(I)].text)),oe(()=>N(de,1,St([n(h).button,`ec-${n(I)}`,n(f)[n(I)].active&&n(h).active]))),T(G,de)},U=G=>{var de=ce(),Re=J(de);{var ye=Ie=>{var Ae=zl();Ae.__click=()=>r.setOption("view",n(I));var re=fe(Ae);oe(()=>{N(Ae,1,St([n(h).button,`ec-${n(I)}`,n(_)===n(I)&&n(h).active])),bs(re,n(u)[n(I)])}),T(Ie,Ae)};ve(Re,Ie=>{n(I)!==""&&Ie(ye)},!0)}T(G,de)};ve(xe,G=>{n(f)[n(I)]?G(F):G(U,!1)},!0)}T(V,le)};ve(it,V=>{n(I)==="today"?V(He):V(Lt,!1)},!0)}T(L,j)};ve(P,L=>{n(I)==="next"?L(x):L(B,!1)},!0)}T(ke,se)};ve(K,ke=>{n(I)==="prev"?ke(ue):ke(X,!1)},!0)}T(H,A)};ve(pe,H=>{n(I)==="title"?H(W):H(z,!1)})}T(q,ne)}),T(e,C),be()}Zt(["click"]);var Vl=Q("<div><!></div>"),Bl=Q("<div></div>"),Gl=Q("<nav></nav>");function Yl(e,t){we(t,!0);let r=a(()=>te("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=Gl();ae(l,21,()=>fn(n(o)),De,(u,f)=>{var d=Bl();ae(d,21,()=>n(o)[n(f)],De,(c,g)=>{var h=ce(),v=J(h);{var _=m=>{var y=Vl(),k=fe(y);js(k,{get buttons(){return n(g)}}),oe(()=>N(y,1,n(s).buttonGroup)),T(m,y)},p=m=>{js(m,{get buttons(){return n(g)}})};ve(v,m=>{n(g).length>1?m(_):m(p,!1)})}T(c,h)}),oe(()=>N(d,1,`ec-${n(f)??""}`)),T(u,d)}),oe(()=>N(l,1,n(s).toolbar)),T(e,l),be()}var ql=Q("<div><!> <!> <!></div>");function Xl(e,t){we(t,!0);let r=Ee(t,"plugins",19,()=>[]),i=Ee(t,"options",19,()=>({})),s=new Ol(r(),i());Pn("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),_=a(()=>s.options.height),p=a(()=>s.options.hiddenDays),m=a(()=>s.options.theme),y={...i()};on(()=>{for(let[P,x]of Cl(i(),y))ee(()=>{k(P,x)});ge(y,i())});function k(P,x){return Qa(x)&&(x={...x}),Kr(x)&&(x=[...x]),s.setOption(P,x,!1),this}function R(P){let x=s.options[P];return Zr(x)?Fe(x):x}function E(){return s.fetchedRange={start:void 0,end:void 0},this}function D(){return n(u).map(Ue)}function w(P){P=String(P);for(let x of n(u))if(x.id===P)return Ue(x);return null}function C(P){return P=hr([P])[0],n(u).push(P),s.events=[...n(u)],Ue(P)}function M(P){let x=String(P.id),B=n(u).findIndex(L=>L.id===x);return B>=0?(P=hr([P])[0],n(u)[B]=P,s.events=[...n(u)],Ue(P)):null}function q(P){P=String(P);let x=n(u).findIndex(B=>B.id===P);return x>=0&&(n(u).splice(x,1),s.events=[...n(u)]),this}function I(){return Ze(n(c))}function ne(){return n(f).action?.unselect(),this}function pe(P,x){let B=En(P,x);if(B){let L=Vt(B)(P,x);return L.date=Fe(L.date),L}return null}function W(){return s.setOption("date",Ps(Y(n(h)),n(v))),this}function z(){return s.setOption("date",Ms(Y(n(h)),n(v),n(p))),this}var H={setOption:k,getOption:R,refetchEvents:E,getEvents:D,getEventById:w,addEvent:C,updateEvent:M,removeEventById:q,getView:I,unselect:ne,dateFromPoint:pe,next:W,prev:z},A=ql();let K;var ue=fe(A);Yl(ue,{});var X=ie(ue,2);{var ke=P=>{var x=ce(),B=J(x);Ur(B,()=>n(g),(L,j)=>{j(L,{})}),T(P,x)};ve(X,P=>{n(g)&&P(ke)})}var se=ie(X,2);return ae(se,17,()=>n(o),De,(P,x)=>{var B=ce(),L=J(B);Ur(L,()=>n(x),(j,it)=>{it(j,{})}),T(P,B)}),oe(P=>{N(A,1,St([n(m).calendar,n(m).view,n(d)&&n(m)[n(d)]])),Pe(A,"role",P),K=bt(A,"",K,{height:n(_)})},[()=>n(l).includes("list")?"list":"table"]),T(e,A),be(H)}function Kl(e){return()=>{let{viewDates:t,options:{duration:r,hiddenDays:i}}=e,s;return ee(()=>s=r.months||r.inWeeks?7-i.length:t.length),s}}function Zl(e,t){return()=>{let{options:{highlightedDates:r,validRange:i},viewDates:s}=e,{colsCount:o}=t,l=[];return ee(()=>{let u=[],f=1,d=1;for(let c of s)u.push({gridColumn:f,gridRow:d,resource:void 0,dayStart:c,dayEnd:kt(Y(c)),disabled:Sn(c,i),highlight:r.some(g=>Ke(g,c))}),f===o&&(l.push(u),u=[],f=0,++d),++f}),l}}function Jl(e,t){return()=>{let{filteredEvents:r}=e,{grid:i}=t,s=[],o=[];return ee(()=>{for(let l of r)for(let u of i)mt(l.display)?l.allDay&&(o=o.concat(xn(l,u))):s=s.concat(xn(l,u));Us(s)}),{chunks:s,bgChunks:o}}}function Ql(e,t){return()=>{let{iEvents:r}=e,{grid:i}=t,s=[];for(let[,o]of r)o&&ee(()=>{for(let l of i)s=s.concat(xn(o,l,!1))});return s}}let jl=class{#e;get colsCount(){return n(this.#e)}set colsCount(t){b(this.#e,t)}#t;get grid(){return n(this.#t)}set grid(t){b(this.#t,t)}#n;get gridEl(){return n(this.#n)}set gridEl(t){b(this.#n,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(Kl(t)),this.#t=a(Zl(t,this)),this.#n=Z();let r=a(Jl(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(Ql(t,this)),this.hiddenChunks=new ii,this.#o=a(hn(t,"dayCellFormat")),this.#a=a(hn(t,"dayPopoverFormat")),this.#l=Z(null)}};var $l=Q("<div><!></div>");function mr(e,t){we(t,!0);let r=Ee(t,"el",15),i=Ee(t,"allDay",3,!1),s=Ee(t,"resource",3,void 0),o=Ee(t,"dateFromPoint",3,()=>t.date),l=Ee(t,"classes",3,fr),u=Ee(t,"disabled",3,!1),f=Ee(t,"highlight",3,!1),d=Ee(t,"role",3,"cell"),c=Ee(t,"noIeb",3,!1),g=Ee(t,"noBeb",3,!1),h=a(()=>te("state")),v=a(()=>n(h).today),_=a(()=>n(h).interaction.action),p=a(()=>n(h).options.theme),m=a(()=>te("view-state")),y=a(()=>n(m).snap),k=a(()=>Ke(t.date,n(v))),R=a(()=>l()([n(p).day,n(p).weekdays?.[t.date.getUTCDay()],n(k)&&n(p).today,f()&&n(p).highlight,u()&&n(p).disabled,c()&&n(p).noIeb,g()&&n(p).noBeb]));Vn(()=>{Os(r(),(C,M)=>({allDay:i(),date:o()(C,M),resource:s(),dayEl:r(),disabled:u()}))});let E=a(()=>!u()&&n(_)?C=>n(_).select(C,n(y)):void 0);var D=$l();D.__pointerdown=function(...C){n(E)?.apply(this,C)};var w=fe(D);Ut(w,()=>t.children??Gt),nt(D,C=>r(C),()=>r()),oe(()=>{N(D,1,St(n(R))),Pe(D,"role",d())}),T(e,D),be()}Zt(["pointerdown"]);var eu=Q("<div></div>"),tu=Q("<article><!></article>");function $s(e,t){we(t,!0);let r=Ee(t,"el",15),i=Ee(t,"classes",3,fr),s=Ee(t,"styles",3,fr),o=a(()=>te("state")),l=a(()=>n(o).intlEventTime),u=a(()=>n(o).view),f=a(()=>n(o).options.displayEventEnd),d=a(()=>n(o).options.eventBackgroundColor),c=a(()=>n(o).options.eventColor),g=a(()=>n(o).options.eventContent),h=a(()=>n(o).options.eventClick),v=a(()=>n(o).options.eventDidMount),_=a(()=>n(o).options.eventClassNames),p=a(()=>n(o).options.eventMouseEnter),m=a(()=>n(o).options.eventMouseLeave),y=a(()=>n(o).options.eventTextColor),k=a(()=>n(o).options.resources),R=a(()=>n(o).options.theme),E=a(()=>t.chunk.event),D=a(()=>t.chunk.event.display),w=a(()=>n(E).backgroundColor??_l(n(E),n(k))??n(d)??n(c)),C=a(()=>n(E).textColor??yl(n(E),n(k))??n(y)),M=a(()=>Rs(s()({"background-color":n(w),color:n(C)})).map(x=>`${x[0]}:${x[1]}`).concat(n(E).styles).join(";")),q=a(()=>i()([mt(n(D))?n(R).bgEvent:n(R).event,...ul(n(_),n(E),n(u))])),I=a(()=>ll(t.chunk,n(f),n(g),n(R),n(l),n(u))),ne=a(()=>To(n(I),2)),pe=a(()=>n(ne)[0]),W=a(()=>n(ne)[1]);Vn(()=>{Ce(n(v))&&n(v)({event:Ue(n(E)),timeText:n(pe),el:r(),view:Ze(n(u))})});function z(x,B){return Ce(x)&&!vr(B)?L=>x({event:Ue(n(E)),el:r(),jsEvent:L,view:Ze(n(u))}):void 0}let H=a(()=>!mt(n(D))&&z(n(h),n(D))||void 0),A=a(()=>n(H)&&Yr(n(H))),K=a(()=>z(n(p),n(D))),ue=a(()=>z(n(m),n(D)));var X=tu();X.__click=function(...x){n(H)?.apply(this,x)},X.__keydown=function(...x){n(A)?.apply(this,x)},X.__pointerdown=function(...x){t.onpointerdown?.apply(this,x)};{const x=B=>{var L=eu();Me(L,()=>Xe(n(W))),oe(()=>N(L,1,St(n(R).eventBody))),T(B,L)};var ke=fe(X);{var se=B=>{var L=ce(),j=J(L);Ut(j,()=>t.body,()=>x,()=>n(w),()=>n(C)),T(B,L)},P=B=>{x(B)};ve(ke,B=>{t.body?B(se):B(P,!1)})}nt(X,B=>r(B),()=>r())}oe(()=>{N(X,1,St(n(q))),bt(X,n(M)),Pe(X,"role",n(H)?"button":void 0),Pe(X,"tabindex",n(H)?0:void 0)}),ut("mouseenter",X,function(...x){n(K)?.apply(this,x)}),ut("mouseleave",X,function(...x){n(ue)?.apply(this,x)}),T(e,X),be()}Zt(["click","keydown","pointerdown"]);var nu=Q("<div><!></div>");function Xn(e,t){we(t,!0);let r=Ee(t,"weekday",3,!0),i=Ee(t,"colSpan",3,1),s=Ee(t,"ariaHidden",3,!1),o=Ee(t,"disabled",3,!1),l=Ee(t,"highlight",3,!1),u=a(()=>te("state")),f=a(()=>n(u).today),d=a(()=>n(u).options.theme);var c=nu(),g=fe(c);Ut(g,()=>t.children),oe(h=>{N(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)},[()=>St([t.className??n(d).colHead,r()&&n(d).weekdays?.[t.date.getUTCDay()],r()&&Ke(t.date,n(f))&&n(d).today,l()&&n(d).highlight,o()&&n(d).disabled])]),T(e,c),be()}var ru=Q("<time></time>");function pr(e,t){we(t,!0);let r=Ee(t,"alPrefix",3,""),i=a(()=>te("state")),s=a(()=>n(i).intlDayHeader),o=a(()=>n(i).intlDayHeaderAL);var l=ru();Me(l,()=>Xe(n(s).format(t.date))),oe((u,f)=>{Pe(l,"datetime",u),Pe(l,"aria-label",`${r()??""}${f??""}`)},[()=>dt(t.date,10),()=>n(o).format(t.date)]),T(e,l),be()}function _r(e,t){we(t,!0);let r=Ee(t,"el",15),i=a(()=>te("state")),s=a(()=>n(i).iClasses),o=a(()=>n(i).interaction.action),l=a(()=>n(i).interaction.resizer),u=a(()=>te("view-state")),f=a(()=>n(u).snap),d=a(()=>t.chunk.event),c=a(()=>t.chunk.event.display),g=a(()=>_=>n(s)(_,n(d)));function h(_){return n(o)?.draggable(_)?p=>n(o).drag(_,p,t.forceDate,t.forceMargin,n(f)):n(o)?.noAction}let v=a(()=>!mt(n(c))&&!vr(n(c))?h(n(d)):void 0);$s(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(p){r(p)},body:(p,m=Gt)=>{var y=ce(),k=J(y);{var R=D=>{var w=ce(),C=J(w);Ur(C,()=>n(l),(M,q)=>{q(M,{get chunk(){return t.chunk},get axis(){return t.axis},get forceDate(){return t.forceDate},get forceMargin(){return t.forceMargin},children:(I,ne)=>{var pe=ce(),W=J(pe);Ut(W,m),T(I,pe)},$$slots:{default:!0}})}),T(D,w)},E=D=>{var w=ce(),C=J(w);Ut(C,m),T(D,w)};ve(k,D=>{n(l)?D(R):D(E,!1)})}T(p,y)},$$slots:{body:!0}}),be()}var iu=Q("<time></time>"),su=Q("<span></span>"),ou=Q('<a role="button" tabindex="0" aria-haspopup="dialog"></a>'),au=Q("<div><!> <!></div> <div><!></div>",1);function lu(e,t){we(t,!0);const r=()=>Ba(n(d),"$firstDay",i),[i,s]=Ga();let o=te("state"),l=te("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),_=a(()=>l.hiddenChunks),p=a(()=>l.intlDayCell),m=a(()=>t.day.dayStart),y=a(()=>t.day.disabled),k=a(()=>t.day.highlight),R=a(()=>n(m).getUTCMonth()!==n(f).getUTCMonth()),E=a(()=>I=>[...I,n(R)&&n(g).otherMonth]),D=a(()=>n(h)&&n(m).getUTCDay()===(n(d)?1:0)),w=a(()=>{let I;if(n(D)){let ne=nl(n(m),r());n(v)?I=Ce(n(v))?n(v)({date:Fe(n(m)),week:ne}):n(v):I="W"+String(ne).padStart(2,"0")}return I}),C=a(()=>n(_).get(n(m).getTime())),M=a(()=>{let I="";if(n(C)){let ne="+"+n(C).length+" more";n(c)?I=Ce(n(c))?n(c)({num:n(C).length,text:ne}):n(c):I=ne}return I});function q(){l.popupDay=t.day}mr(e,{get date(){return n(m)},allDay:!0,get classes(){return n(E)},get disabled(){return n(y)},get highlight(){return n(k)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},children:(I,ne)=>{var pe=au(),W=J(pe),z=fe(W);{var H=se=>{var P=iu();Me(P,()=>Xe(n(p).format(n(m)))),oe(x=>Pe(P,"datetime",x),[()=>dt(n(m),10)]),T(se,P)};ve(z,se=>{n(u).includes("dayNumber")&&se(H)})}var A=ie(z,2);{var K=se=>{var P=su();Me(P,()=>Xe(n(w))),oe(()=>N(P,1,n(g).weekNumber)),T(se,P)};ve(A,se=>{n(D)&&se(K)})}var ue=ie(W,2),X=fe(ue);{var ke=se=>{var P=ou(),x=a(()=>Jr(q));P.__click=function(...j){n(x)?.apply(this,j)};var B=a(()=>Yr(q));P.__keydown=function(...j){n(B)?.apply(this,j)};var L=a(Jr);P.__pointerdown=function(...j){n(L)?.apply(this,j)},Me(P,()=>Xe(n(M))),T(se,P)};ve(X,se=>{n(C)&&se(ke)})}oe(()=>{N(W,1,n(g).dayHead),N(ue,1,n(g).dayFoot)}),T(I,pe)},$$slots:{default:!0}}),be(),s()}Zt(["click","keydown","pointerdown"]);function yr(e,t){we(t,!0);let r=Ee(t,"inPopup",3,!1),i=a(()=>te("state")),s=a(()=>n(i).options.dayMaxEvents),o=a(()=>te("view-state")),l=a(()=>n(o).colsCount),u=a(()=>n(o).gridEl),f=a(()=>n(o).hiddenChunks),d=a(()=>n(o).popupDay),c=Z(void 0),g=Z(1),h=Z(!1),v=a(()=>t.chunk.event),_=a(()=>t.chunk.event.display),p=a(()=>n(u).children.item((t.chunk.gridRow-1)*n(l)+t.chunk.gridColumn-1));Ye(()=>{r()||b(g,cn(n(p).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,!mt(n(_))){let w=r()?1:n(g);if(n(v)._margin){let[C,M]=n(v)._margin;C>w&&t.chunk.gridRow===M&&(w=C)}D["margin-block-start"]=`${w}px`}return n(h)&&(D.visibility="hidden"),D});function y(){b(g,zs(t.chunk,cn(n(c)),cn(n(p).firstElementChild)||1),!0)}function k(){if(n(s)===!0){let D=cn(n(p))-R(n(p));if(b(h,t.chunk.bottom>D),n(h))for(let w of t.chunk.dates){let C=w.getTime();if(n(f).has(C)){let M=n(f).get(C);M.includes(t.chunk)||n(f).set(C,[...M,t.chunk])}else n(f).set(C,[t.chunk])}}else b(h,!1),n(f).size&&n(f).clear()}function R(D){let w=0;for(let C=0;C<t.chunk.dates.length&&(w=ft(w,cn(D.lastElementChild)),D=D.nextElementSibling,!!D);++C);return w}var E={reposition:y,hide:k};{let D=a(()=>r()&&n(d).dayStart),w=a(()=>[n(g),t.chunk.gridRow]);_r(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(C){b(c,C,!0)}})}return be(E)}var uu=Q('<dialog closedby="closerequest"><header><time></time> <a role="button" tabindex="0">&times;</a></header> <div></div></dialog>');function fu(e,t){we(t,!0);let r=te("view-state"),i=a(()=>te("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=Z(void 0),v=Z(""),_=a(()=>n(g).gridColumn),p=a(()=>n(g).gridRow),m=a(()=>n(g).dayStart),y=a(()=>n(g).dayEnd),k=a(()=>{let z=[];for(let H of n(f))H.gridRow===n(p)&&H.gridColumn<=n(_)&&H.gridColumn+H.dates.length>n(_)&&z.push(ge({},H,Gn(H.event,n(m),n(y))));return z.sort((H,A)=>H.top-A.top),z});Vn(()=>{n(h).show()}),Ye(()=>{n(k).length?ee(R):E()});function R(){let z=n(d).children.item((n(p)-1)*n(u)+n(_)-1),H=Qt(n(h)),A=Qt(z),K=Qt(n(d));b(v,"");let ue;if(H.width>=K.width){ue=K.left-A.left;let ke=A.right-K.right;b(v,n(v)+`inset-inline-end:${ke}px;`)}else ue=(A.width-H.width)/2,A.left+ue<K.left?ue=K.left-A.left:A.left+ue+H.width>K.right&&(ue=K.right-A.left-H.width);b(v,n(v)+`inset-inline-start:${ue}px;`);let X;H.height>=K.height?(X=K.top-A.top,b(v,n(v)+`block-size:${K.height}px;`)):(X=(A.height-H.height)/2,A.top+X<K.top?X=K.top-A.top:A.top+X+H.height>K.bottom&&(X=K.bottom-A.top-H.height)),b(v,n(v)+`inset-block-start:${X}px;`)}function E(){r.popupDay=null}function D(){E(),n(s).action?.noClick()}var w=uu();let C;var M=fe(w),q=fe(M);Me(q,()=>Xe(n(c).format(n(m))));var I=ie(q,2);va(I);var ne=a(()=>Jr(E));I.__click=function(...z){n(ne)?.apply(this,z)};var pe=a(()=>Yr(E));I.__keydown=function(...z){n(pe)?.apply(this,z)};var W=ie(M,2);ae(W,21,()=>n(k),De,(z,H)=>{yr(z,{get chunk(){return n(H)},inPopup:!0})}),nt(w,z=>b(h,z),()=>n(h)),Me(w,()=>Ka("pointerdown")),oe(z=>{N(w,1,n(l).popup),C=bt(w,n(v),C,{"grid-area":`${n(p)+1} / ${n(_)}`}),N(M,1,n(l).dayHead),Pe(q,"datetime",z),Pe(I,"aria-label",n(o).close),N(W,1,n(l).events)},[()=>dt(n(m),10)]),ut("pointerdownoutside",w,D),ut("close",w,E),T(e,w),be()}Zt(["click","keydown"]);var du=Q('<div role="columnheader"><span></span></div>'),cu=Q('<section><header><div role="row"></div></header> <div><div></div> <div><!> <!> <!></div></div> <!></section>');function ai(e,t){we(t,!0);let r=te("state"),i=new jl(r);Pn("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),_=[];function p(){ti(_,n(d)),n(h).clear(),kn().then(m)}function m(){n(h).size,_.forEach(W=>W.hide())}Ye(p),Ye(m);var y=cu();let k;var R=fe(y),E=fe(R);ae(E,21,()=>n(f)[0],De,(W,z,H)=>{let A=()=>n(z).dayStart;var K=du();Pe(K,"aria-colindex",1+H);var ue=fe(K);Me(ue,()=>Xe(n(s).format(A()))),oe((X,ke)=>{N(K,1,X),Pe(ue,"aria-label",ke)},[()=>St([n(u).colHead,n(u).weekdays?.[A().getUTCDay()]]),()=>n(o).format(A())]),T(W,K)});var D=ie(R,2),w=fe(D);ae(w,21,()=>n(f),De,(W,z,H)=>{var A=ce(),K=J(A);ae(K,17,()=>n(z),De,(ue,X,ke)=>{{let se=a(()=>ke+1===n(z).length),P=a(()=>H+1===n(f).length);lu(ue,{get day(){return n(X)},get noIeb(){return n(se)},get noBeb(){return n(P)}})}}),T(W,A)}),nt(w,W=>i.gridEl=W,()=>i?.gridEl);var C=ie(w,2),M=fe(C);ae(M,19,()=>n(d),W=>W.id,(W,z,H)=>{nt(yr(W,{get chunk(){return n(z)}}),(A,K)=>_[K]=A,A=>_?.[A],()=>[n(H)])});var q=ie(M,2);ae(q,17,()=>n(c),W=>W.id,(W,z)=>{yr(W,{get chunk(){return n(z)}})});var I=ie(q,2);ae(I,17,()=>n(g),De,(W,z)=>{yr(W,{get chunk(){return n(z)}})});var ne=ie(D,2);{var pe=W=>{fu(W,{})};ve(ne,W=>{n(v)&&W(pe)})}nt(y,W=>r.mainEl=W,()=>r?.mainEl),Me(y,()=>qr(p)),oe(()=>{N(y,1,St([n(u).main,n(l)===!0&&n(u).uniform])),k=bt(y,"",k,{"--ec-grid-cols":n(f)[0].length,"--ec-grid-rows":n(f).length}),N(R,1,n(u).header),N(E,1,n(u).grid),N(D,1,n(u).body),N(w,1,n(u).grid),N(C,1,n(u).events)}),T(e,y),be()}const hu={createOptions(e){ge(e,{dayMaxEvents:!1,dayCellFormat:{day:"numeric"},dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},moreLinkContent:void 0,weekNumbers:!1,weekNumberContent:void 0,view:"dayGridMonth"}),ge(e.buttonText,{dayGridDay:"day",dayGridMonth:"month",dayGridWeek:"week",close:"Close"}),ge(e.theme,{uniform:"ec-uniform",dayFoot:"ec-day-foot",otherMonth:"ec-other-month",popup:"ec-popup",weekNumber:"ec-week-number"}),ge(e.views,{dayGridDay:{buttonText:Yn,component:()=>ai,dayHeaderFormat:{weekday:"long"},displayEventEnd:!1,duration:{days:1},theme:rt("ec-day-grid ec-day-view")},dayGridWeek:{buttonText:qn,component:()=>ai,displayEventEnd:!1,theme:rt("ec-day-grid ec-week-view")},dayGridMonth:{buttonText:ri,component:vu,dayHeaderFormat:{weekday:"short"},dayHeaderAriaLabelFormat:{weekday:"long"},displayEventEnd:!1,duration:{months:1},theme:rt("ec-day-grid ec-month-view"),titleFormat:{year:"numeric",month:"long"}}})}};function vu(e){return e.features=["dayNumber"],e.extensions.activeRange=(t,r)=>{let{options:{firstDay:i}}=e;return{start:Is(t,i),end:tl(r,i)}},ai}function eo(e,t,r){return e.startEditable??t??e.editable??r}function gu(e,t,r){return e.durationEditable??t??e.editable??r}let li=!1;function mu(e){li||(li=!0,window.requestAnimationFrame(()=>{e(),li=!1}))}function to(e,t,r){return ft(t,Rt(r,e))}function pu(e){return()=>{let{options:{editable:t,eventStartEditable:r,theme:i}}=e;e.iClasses=(s,o)=>{let{display:l}=o;return[...s,vr(l)?[i[l]]:!mt(l)&&eo(o,r,t)?[i.draggable]:[]]}}}function _u(e){return()=>{let{interaction:t,mainEl:r}=e;if(r)return Bn(r,"scroll",()=>{t.action.handleScroll(),t.pointer?.handleScroll()})}}class yu{constructor(t){this.#e(t)}#e(t){on(pu(t)),Ye(_u(t))}}function wu(e,t){we(t,!0);let r=te("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),_=a(()=>r.options.eventDragStart),p=a(()=>r.options.eventDragStop),m=a(()=>r.options.eventDrop),y=a(()=>r.options.eventLongPressDelay),k=a(()=>r.options.eventResizeStart),R=a(()=>r.options.eventResizeStop),E=a(()=>r.options.eventResize),D=a(()=>r.options.longPressDelay),w=a(()=>r.options.resizeConstraint),C=a(()=>r.options.selectable),M=a(()=>r.options.select),q=a(()=>r.options.selectBackgroundColor),I=a(()=>r.options.selectConstraint),ne=a(()=>r.options.selectLongPressDelay),pe=a(()=>r.options.selectMinDistance),W=a(()=>r.options.unselect),z=a(()=>r.options.unselectAuto),H=a(()=>r.options.unselectCancel),A=a(()=>r.options.validRange);const K=1,ue=2,X=3,ke=4,se=5,P=6;let x,B,L,j,it,He,Lt,V,le,xe,F,U,G,de,Re,ye,Ie,Ae,re,ze,ct,$e,pt,Oe,vn,Bt,jt;function Mf(S){return eo(S,n(h),n(g))}function Af(S,O,me,$,Je){x||(x=wi(O)?K:P,gn()&&(L=S,yi(O,Je),me&&(He=me),$&&(vn=$),Ae="dragging",Rn(O)))}function Of(S,O,me,$,Je,Zn,ki,Zf){x||(x=wi(O)?me?X:ue:P,gn()&&(L=S,yi(O,Zf),Je&&(He=Je),Zn&&(vn=Zn),Ae=$==="x"?"resizingX":"resizingY",Cr()?(re=Y(L.end),Ie?(Qr(re,L.start),re>=L.end&&Dn(re)):(cr(re,Bt),re<L.start&&(re=L.start),He=L.start)):(re=Y(L.start),Ie?(Qr(re,L.end),re<=L.start&&!ki&&kt(re)):(Se(re,Bt),re>L.end&&(re=L.end),He=L.end,ki||(He=cr(Y(He),Bt))),ki&&!Ie&&(jt=Bt)),Rn(O)))}function Nf(S,O){x||(x=wi(S)?n(C)&&!n(o).includes("list")?ke:se:P,gn()&&(yi(S,O),Ae="selecting",ze=Ie?Ne({day:1}):Bt,L={allDay:Ie,start:He,end:Se(Y(He),ze),resourceIds:V?[V.id]:[]},Rn(S)))}function Ff(){x||(x=P)}function yi(S,O){window.getSelection().removeAllRanges(),xe=U=S.clientX,F=G=S.clientY,Bt=O?.duration;let me=En(U,G);({allDay:Ie,date:He,resource:V}=Vt(me)(U,G)),Re=n(u)!==Fs(me,3),de=Fs(me,1),go(),S.pointerType!=="mouse"&&(pt=setTimeout(()=>{x&&(B=!0,Rn(S))},($t()?n(ne):n(y))??n(D)))}function Rn(S){if(B||S&&S.pointerType==="mouse"&&Vf()>=($t()?n(pe):n(v))){B=!0,Dr(S),r.iClass=Ae,j||($t()?zf():Uf(S,In()?n(k):n(_)));let O=Kn(Wf());if(O){let me;if({allDay:me,date:Lt,resource:le}=O,me===Ie){let $=kr({},j),Je=n(w);ye=Ne((Lt-He)/1e3),Cr()?($.start=Se(Y(L.start),ye),$.start>re&&($.start=re,ye=Ne((re-L.start)/1e3))):($.end=Se(Y(L.end),ye),jt&&Se($.end,jt),In()?$.end<re&&($.end=re,ye=Ne((re-L.end)/1e3)):$t()?($.end<L.end?($.start=cr($.end,ze),$.end=L.end):$.start=L.start,Je=n(I)):($.start=Se(Y(L.start),ye),V&&($.resourceIds=L.resourceIds.filter(Zn=>Zn!==V.id),$.resourceIds.push(le.id)),Je=n(d)));do{if(Je!==void 0&&($=kr(ei(L),$),Je($t()?yo($,S):wo($,L,S))===!1)){_o(L);break}_o($)}while(!1)}}}if(n(c)){let O=24,me=24;mu(()=>{Oe&&(Re||(G<Oe.top+O&&(n(u).scrollTop+=ft(-8,(G-Oe.top-O)/3)),G>Oe.bottom-O&&(n(u).scrollTop+=Rt(8,(G-Oe.bottom+O)/3))),U<Oe.left+me&&(n(u).scrollLeft+=ft(-8,(U-Oe.left-me)/3)),U>Oe.right-me&&(n(u).scrollLeft+=Rt(8,(U-Oe.right+me)/3)),G<O&&window.scrollBy(0,ft(-8,(G-O)/3)),G>window.innerHeight-O&&window.scrollBy(0,Rt(8,(G-window.innerHeight+O)/3)))})}}function ho(){gn()&&(go(),Rn())}function Hf(S){gn()&&S.isPrimary&&(U=S.clientX,G=S.clientY,Rn(S))}function vo(S){if(ct&&n(z)&&!(n(H)&&S.target.closest(n(H)))&&Dr(S),x&&S.isPrimary){if(B)if($t()){if(ct=!0,Ce(n(M))){let O=yo(j,S);n(M)(O)}}else{L.display=it;let O=In()?n(R):n(p);Ce(O)&&O({event:Ue(L),jsEvent:S,view:Ze(n(l))});let me=ei(L);if(po(L,j),mo(),O=In()?n(E):n(m),Ce(O)){let $=L,Je=wo(L,me,S);O(ge(Je,{revert(){po($,me)}}))}}else if((Bf()||$t())&&Ce(n(f))&&!$e){U=S.clientX,G=S.clientY;let O=En(U,G);if(O){let{allDay:me,date:$,resource:Je}=Vt(O)(U,G);n(f)({allDay:me,date:Fe($),dateStr:dt($),dayEl:O,jsEvent:S,view:Ze(n(l)),resource:Je})}}B=!1,x=xe=F=U=G=L=it=He=Lt=V=le=ye=jt=Ie=re=ze=vn=de=Oe=Bt=void 0,r.iClass=void 0,pt&&(clearTimeout(pt),pt=void 0)}$e=!1}function Wf(){return En(to(U,Oe.left,Oe.right),to(G,Oe.top,Oe.bottom))}function Kn(S){if(S){let O=Vt(S)(U,G);if(O.disabled){if(!n(A).end||O.date<n(A).end)return Kn(S.nextElementSibling);if(!n(A).start||O.date>n(A).start)return Kn(S.previousElementSibling)}else return($t()||In())&&O.resource&&!j.resourceIds.includes(O.resource.id)&&!n(o).includes("timeline")?U>xe?Kn(S.previousElementSibling):Kn(S.nextElementSibling):O}return null}function go(){let S=Qt(n(u)),O=Qt(de),me=S.width/n(u).offsetWidth,$=S.height/n(u).offsetHeight,Je=dn();Oe={left:ft(0,Je?S.right-n(u).clientWidth*me:O.left+n(u).scrollLeft*me),right:Rt(document.documentElement.clientWidth,Je?O.right+n(u).scrollLeft*me:S.left+n(u).clientWidth*me)-2,top:ft(0,O.top+(Re?0:n(u).scrollTop)*$),bottom:Rt(document.documentElement.clientHeight,Re?O.bottom:S.top+n(u).clientHeight*$)-2}}function Uf(S,O){Ce(O)&&O({event:Ue(L),jsEvent:S,view:Ze(n(l))}),it=L.display,L.display="preview",j=ei(L),vn!==void 0&&(j._margin=vn),jt&&Se(j.end,jt),L.display="ghost",r.events=[...n(i)]}function zf(){j={id:"{select}",allDay:L.allDay,start:L.start,title:"",display:"preview",extendedProps:{},backgroundColor:n(q),resourceIds:L.resourceIds,classNames:[],styles:[]}}function mo(){j=void 0,n(s).delete("action")}function kr(S,O){return S.start=O.start,S.end=O.end,S.resourceIds=O.resourceIds,{...S}}function po(S,O){kr(S,O),r.events=[...n(i)]}function _o(S){j=kr(j,S),n(s).set("action",j)}function yo(S,O){let{start:me,end:$}=Ue(S);return{start:me,end:$,startStr:dt(S.start),endStr:dt(S.end),allDay:Ie,view:Ze(n(l)),resource:V,jsEvent:O}}function wo(S,O,me){let $;return In()?$=Cr()?{startDelta:ye,endDelta:Ne(0)}:{startDelta:Ne(0),endDelta:ye}:$={delta:ye,oldResource:V!==le?V:void 0,newResource:V!==le?le:void 0},ge($,{event:Ue(S),oldEvent:Ue(O),view:Ze(n(l)),jsEvent:me}),$}function Vf(){return Math.sqrt(Math.pow(U-xe,2)+Math.pow(G-F,2))}function In(){return x===ue||Cr()}function Cr(){return x===X}function Bf(){return x===se}function $t(){return x===ke}function gn(){return x&&x<se}function wi(S){return S.isPrimary&&(S.pointerType!=="mouse"||S.buttons&1)}function Dr(S){ct&&(ct=!1,mo(),Ce(n(W))&&n(W)({jsEvent:S,view:Ze(n(l))}))}on(()=>{n(l),Dr()});function Gf(){$e=!0}function Yf(S){if(gn()){let O=S.target,me=[],$=()=>$a(me);me.push(Bn(O,"touchmove",bi(()=>B))),me.push(Bn(O,"touchend",$)),me.push(Bn(O,"touchcancel",$))}}function bi(S){return O=>{S()&&O.preventDefault()}}Vn(()=>Bn(window,"touchmove",el,{passive:!1}));var qf={draggable:Mf,drag:Af,resize:Of,select:Nf,noAction:Ff,handleScroll:ho,unselect:Dr,noClick:Gf};ut("pointermove",yt,Hf),ut("pointerup",yt,vo),ut("pointercancel",yt,vo),ut("scroll",yt,ho);var Xf=a(()=>bi(gn));ut("selectstart",yt,function(...S){n(Xf)?.apply(this,S)});var Kf=a(()=>bi(()=>pt));return ut("contextmenu",yt,function(...S){n(Kf)?.apply(this,S)}),ut("touchstart",yt,Yf,void 0,!0),be(qf)}function bu(e,t){we(t,!0);let r=a(()=>te("state")),i=a(()=>n(r).iEvents),s=a(()=>n(r).options.slotDuration),o=0,l=0,u;function f(){let p=En(o,l);if(p&&!n(i).has("action")){let{allDay:m,date:y,resource:k,disabled:R}=Vt(p)(o,l);if(!R){u||g(),u.allDay=m,u.start=y,u.end=Se(Y(y),n(s)),u.resourceIds=k?[k.id]:[],n(i).set("pointer",{...u});return}}h()}function d(){f()}function c(p){v(p)&&(o=p.clientX,l=p.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(p){return p.isPrimary&&p.pointerType==="mouse"}var _={handleScroll:d};return ut("pointermove",yt,c),ut("scroll",yt,d),be(_)}var ku=Q("<div></div>"),Cu=Q("<div></div>"),Du=Q("<!> <!> <!>",1);function Eu(e,t){we(t,!0);let r=Ee(t,"forceDate",3,void 0),i=Ee(t,"forceMargin",3,void 0),s=a(()=>te("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(()=>te("view-state")),g=a(()=>n(c).snap),h=a(()=>t.chunk.event),v=a(()=>t.chunk.event.display),_=a(()=>!mt(n(v))&&!vr(n(v))&&gu(n(h),n(u),n(l)));function p(w){return C=>n(o).resize(n(h),C,w,t.axis,r(),i(),t.chunk.zeroDuration,n(g))}var m=Du(),y=J(m);{var k=w=>{var C=ku(),M=a(()=>p(!0));C.__pointerdown=function(...q){n(M)?.apply(this,q)},oe(()=>N(C,1,`${n(d).resizer??""} ${n(d).start??""}`)),T(w,C)};ve(y,w=>{n(_)&&n(f)&&w(k)})}var R=ie(y,2);Ut(R,()=>t.children);var E=ie(R,2);{var D=w=>{var C=Cu(),M=a(()=>p(!1));C.__pointerdown=function(...q){n(M)?.apply(this,q)},oe(()=>N(C,1,n(d).resizer)),T(w,C)};ve(E,w=>{n(_)&&w(D)})}T(e,m),be()}Zt(["pointerdown"]);var Tu=Q("<!> <!>",1);function xu(e,t){we(t,!0);let r=te("state");new yu(r);let i=a(()=>r.interaction),s=a(()=>r.options.pointer);n(i).resizer=Eu;var o=Tu(),l=J(o);nt(wu(l,{}),d=>n(i).action=d,()=>n(i)?.action);var u=ie(l,2);{var f=d=>{nt(bu(d,{}),c=>n(i).pointer=c,()=>n(i)?.pointer)};ve(u,d=>{n(s)&&d(f)})}T(e,o),be()}const Su={createOptions(e){ge(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:""}),ge(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 Ru=class{#e;get intlListDay(){return n(this.#e)}set intlListDay(t){b(this.#e,t)}#t;get intlListDaySide(){return n(this.#t)}set intlListDaySide(t){b(this.#t,t)}constructor(t){this.#e=a(hn(t,"listDayFormat")),this.#t=a(hn(t,"listDaySideFormat"))}};var Iu=Q("<div></div> <!>",1);function Lu(e,t){we(t,!0);let r=a(()=>te("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=Gt,c=Gt,g=Gt)=>{var h=Iu(),v=J(h);let _;var p=ie(v,2);Ut(p,d),oe(()=>{N(v,1,n(s).eventTag),_=bt(v,"",_,{"background-color":c()})}),T(f,h)};let u=a(()=>n(i).action?.noAction);$s(e,{get chunk(){return t.chunk},get styles(){return n(o)},get onpointerdown(){return n(u)},body:l,$$slots:{body:!0}})}be()}var Pu=Q("<h4><time></time> <time></time></h4> <!>",1);function Mu(e,t){we(t,!0);let r=a(()=>te("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(()=>te("view-state")),f=a(()=>n(u).intlListDay),d=a(()=>n(u).intlListDaySide),c=a(()=>n(s).some(y=>Ke(y,t.date))),g=a(()=>Sn(t.date,n(l))),h=a(()=>dt(t.date,10)),v=a(()=>{let y=[];if(!n(g)){let k=t.date,R=kt(Y(t.date));for(let E of n(i))if(!mt(E.display)&&Tn(E,k,R)){let D=Gn(E,k,R);y.push(D)}}return y});var _=ce(),p=J(_);{var m=y=>{mr(y,{get date(){return t.date},allDay:!0,role:"listitem",get disabled(){return n(g)},get highlight(){return n(c)},children:(k,R)=>{var E=Pu(),D=J(E),w=fe(D);Me(w,()=>Xe(n(f).format(t.date)));var C=ie(w,2);Me(C,()=>Xe(n(d).format(t.date)));var M=ie(D,2);ae(M,17,()=>n(v),q=>q.event,(q,I)=>{Lu(q,{get chunk(){return n(I)}})}),oe(()=>{N(D,1,n(o).dayHead),Pe(w,"datetime",n(h)),N(C,1,n(o).daySide),Pe(C,"datetime",n(h))}),T(k,E)},$$slots:{default:!0}})};ve(p,y=>{n(v).length&&y(m)})}T(e,_),be()}var Au=Q("<div></div>"),Ou=Q("<section><!></section>");function Nu(e,t){we(t,!0);let r=te("state"),i=new Ru(r);Pn("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(n(l).length){let k=n(l)[0],R=kt(Y(n(l).at(-1)));for(let E of n(s))if(!mt(E.display)&&E.start<R&&E.end>k){y=!1;break}}return y}),g=a(()=>Ce(n(f))?n(f)():n(f));function h(y){Ce(n(u))&&n(u)({jsEvent:y,view:Ze(n(o))})}var v=Ou(),_=fe(v);{var p=y=>{var k=Au();k.__click=h,Me(k,()=>Xe(n(g))),oe(()=>N(k,1,n(d).noEvents)),T(y,k)},m=y=>{var k=ce(),R=J(k);ae(R,17,()=>n(l),De,(E,D)=>{Mu(E,{get date(){return n(D)}})}),T(y,k)};ve(_,y=>{n(c)?y(p):y(m,!1)})}nt(v,y=>r.mainEl=y,()=>r?.mainEl),oe(()=>N(v,1,n(d).main)),T(e,v),be()}Zt(["click"]);const Fu={createOptions(e){ge(e,{listDayFormat:{weekday:"long"},listDaySideFormat:{year:"numeric",month:"long",day:"numeric"},noEventsClick:void 0,noEventsContent:"No events",view:"listWeek"}),ge(e.buttonText,{listDay:"list",listWeek:"list",listMonth:"list",listYear:"list"}),ge(e.theme,{daySide:"ec-day-side",eventTag:"ec-event-tag",noEvents:"ec-no-events"}),ge(e.views,{listDay:{buttonText:Yn,component:wr,duration:{days:1},theme:rt("ec-list ec-day-view")},listWeek:{buttonText:qn,component:wr,duration:{weeks:1},theme:rt("ec-list ec-week-view")},listMonth:{buttonText:ri,component:wr,duration:{months:1},theme:rt("ec-list ec-month-view")},listYear:{buttonText:gl,component:wr,duration:{years:1},theme:rt("ec-list ec-year-view")}})}};function wr(e){return e.features=["list"],Nu}function ui(e,t,r=!0){let i=[];for(let{gridColumn:s,gridRow:o,resource:l,start:u,end:f,disabled:d}of t)if(!d&&Tn(e,u,f,l)){let c=Gn(e,u,f);ge(c,{gridColumn:s,gridRow:o,top:(c.start-u)/1e3,height:(c.end-c.start)/1e3,maxHeight:(f-c.start)/1e3}),r&&ni(c),i.push(c)}return i}function Hu(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 Wu(e){let t="all-day",r;return e?(r=Ce(e)?e({text:t}):e,typeof r=="string"&&(r={html:r})):r={html:t},r}function fi(e){e.extensions.activeRange=(t,r)=>{let{options:{slotMaxTime:i}}=e;if(i.days||i.seconds>dr){Se(Dn(r),i);let s=Dn(Y(r));s<t&&(t=s)}return{start:t,end:r}}}function di(e){"scrollTime"in e||(ge(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}),ge(e.theme,{nowIndicator:"ec-now-indicator",sidebar:"ec-sidebar",slot:"ec-slot"}))}function no(e){"allDaySlot"in e||(ge(e,{allDayContent:void 0,allDaySlot:!0,slotEventOverlap:!0}),ge(e.theme,{allDay:"ec-all-day"}))}function ci(e){"scrollTime"in e||ge(e,{scrollTime:Ne,slotDuration:Ne,slotLabelInterval:t=>t!==void 0?Ne(t):void 0,slotMaxTime:Ne,slotMinTime:Ne,snapDuration:t=>t!==void 0?Ne(t):void 0})}function ro(e){"resourceLabelContent"in e||(e.filterResourcesWithEvents=!1,e.resourceLabelContent=void 0,e.resourceLabelDidMount=void 0)}function Uu(e,t){return()=>{let{viewDates:r,options:{highlightedDates:i,validRange:s}}=e,{slotTimeLimits:o}=t,l=[];return ee(()=>{let u=1;for(let f of r)l.push({gridColumn:u,gridRow:1,resource:void 0,start:Se(Y(f),o.min),end:Se(Y(f),o.max),dayStart:f,dayEnd:kt(Y(f)),disabled:Sn(f,s),highlight:i.some(d=>Ke(d,f))}),++u}),[l]}}function zu(e,t){return()=>{let{filteredEvents:r}=e,{grid:i}=t,s=[],o=[],l=[],u=[];return ee(()=>{for(let f of r)for(let d of i)mt(f.display)?(o=o.concat(ui(f,d)),f.allDay&&(u=u.concat(xn(f,d)))):f.allDay?l=l.concat(xn(f,d)):s=s.concat(ui(f,d));Hu(s),Us(l)}),{chunks:s,bgChunks:o,allDayChunks:l,allDayBgChunks:u}}}function Vu(e,t){return()=>{let{iEvents:r}=e,{grid:i}=t,s=[],o=[];for(let[,l]of r)l&&ee(()=>{for(let u of i)l.allDay?o=o.concat(xn(l,u,!1)):s=s.concat(ui(l,u,!1))});return{iChunks:s,allDayIChunks:o}}}function Bu(e){return()=>{let{filteredEvents:t,viewDates:r,options:{flexibleSlotTimeLimits:i,slotMinTime:s,slotMaxTime:o}}=e,l;return ee(()=>{l=Ks(s,o,i,r,t)}),l}}function Gu(e){return()=>{let{options:{slotDuration:t,slotLabelInterval:r}}=e,i;return ee(()=>{i=r===void 0?_e(t)<3600?2:1:Za(_e(r)/_e(t))||1}),i}}function Yu(e,t){return()=>{let{options:{slotDuration:r}}=e,{intlSlotLabel:i,slotLabelPeriodicity:s,slotTimeLimits:o}=t,l;return ee(()=>{l=Xs(zt(It()),r,s,o,i)}),l}}function qu(e){return()=>{let{options:{slotDuration:t,snapDuration:r}}=e;return r??=t,{duration:r,ratio:_e(r)/_e(t)}}}function hi(){return class{#e;get intlSlotLabel(){return n(this.#e)}set intlSlotLabel(e){b(this.#e,e)}#t;get slotLabelPeriodicity(){return n(this.#t)}set slotLabelPeriodicity(e){b(this.#t,e)}#n;get sidebarWidth(){return n(this.#n)}set sidebarWidth(e){b(this.#n,e,!0)}#r;get snap(){return n(this.#r)}set snap(e){b(this.#r,e)}constructor(e){this.#e=a(hn(e,"slotLabelFormat")),this.#t=a(Gu(e)),this.#n=Z(0),this.#r=a(qu(e))}}}function io(e){return class extends e{#e;get slotTimeLimits(){return n(this.#e)}set slotTimeLimits(t){b(this.#e,t)}#t;get slots(){return n(this.#t)}set slots(t){b(this.#t,t)}#n;get chunks(){return n(this.#n)}set chunks(t){b(this.#n,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(Bu(t)),this.#t=a(Yu(t,this));let r=a(zu(t,this)),i=a(()=>n(r).chunks),s=a(()=>n(r).bgChunks),o=a(()=>n(r).allDayChunks),l=a(()=>n(r).allDayBgChunks);this.#n=a(()=>n(i)),this.#r=a(()=>n(s)),this.#s=a(()=>n(o)),this.#i=a(()=>n(l));let u=a(Vu(t,this)),f=a(()=>n(u).iChunks),d=a(()=>n(u).allDayIChunks);this.#o=a(()=>n(f)),this.#a=a(()=>n(d))}}}let Xu=class extends io(hi()){#e;get grid(){return n(this.#e)}set grid(t){b(this.#e,t)}constructor(t){super(t),this.#e=a(Uu(t,this))}};function Ku(e){return()=>{let{activeRange:t,filteredEvents:r,options:{filterResourcesWithEvents:i,resources:s},extensions:{viewResources:o}}=e,l=o?o(s):s;return ee(()=>{i&&(l=s.filter(u=>r.some(f=>Tn(f,t.start,t.end,u)))),l.length||(l=Gs([{}]))}),l}}function Zu(e,t){return()=>{let{viewDates:r,options:{datesAboveResources:i,highlightedDates:s,validRange:o}}=e,{slotTimeLimits:l,viewResources:u}=t,f=[];return ee(()=>{let d=1,c=i?[r,u]:[u,r];for(let g of c[0]){let h=[];for(let v of c[1]){let _=i?g:v,p=i?v:g;h.push({gridColumn:d,gridRow:1,resource:p,start:Se(Y(_),l.min),end:Se(Y(_),l.max),dayStart:_,dayEnd:kt(Y(_)),disabled:Sn(_,o),highlight:s.some(m=>Ke(m,_))}),++d}f.push(h)}}),f}}function so(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(Ku(t))}}}let Ju=class extends so(io(hi())){#e;get grid(){return n(this.#e)}set grid(t){b(this.#e,t)}constructor(t){super(t),this.#e=a(Zu(t,this))}};var Qu=Q("<span></span>");function vi(e,t){we(t,!0);let r=Ee(t,"date",3,void 0),i=Ee(t,"setLabel",3,void 0),s=a(()=>te("state")),o=a(()=>n(s).intlDayHeaderAL),l=a(()=>n(s).options.resourceLabelContent),u=a(()=>n(s).options.resourceLabelDidMount),f=Z(void 0),d=a(()=>n(l)?Ce(n(l))?n(l)({resource:t.resource,date:r()?Fe(r()):void 0}):n(l):t.resource.title),c=Z(void 0);Ye(()=>{n(d),ee(()=>{r()?b(c,n(o).format(r())+", "+n(f).innerText):i()&&(b(c,void 0),i()(n(f).innerText))})}),Vn(()=>{Ce(n(u))&&n(u)({resource:t.resource,date:r()?Fe(r()):void 0,el:n(f)})});var g=Qu();nt(g,h=>b(f,h),()=>n(f)),Me(g,()=>Xe(n(d))),oe(()=>Pe(g,"aria-label",n(c))),T(e,g),be()}function oo(e,t){we(t,!0);let r=Ee(t,"allDay",3,!1),i=a(()=>te("state")),s=a(()=>n(i).options.slotHeight),o=a(()=>te("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=Z(void 0);function v(_,p){if(r())return n(u);{let m=Qt(n(h)),y=m.height/n(h).offsetHeight;return Se(Y(n(f)),n(l).duration,Xr((p-m.top)/(n(s)*n(l).ratio*y)))}}mr(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(_){b(h,_,!0)}}),be()}function gi(e,t){we(t,!0);let r=a(()=>te("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});_r(e,{get chunk(){return t.chunk},get styles(){return n(l)},axis:"y"}),be()}function mi(e,t){we(t,!0);let r=Z(void 0),i=Z(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,zs(t.chunk,cn(n(r))),!0)}var u={reposition:l};return _r(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)}}),be(u)}var ju=Q("<div></div>");function br(e,t){we(t,!0);let r=Ee(t,"span",3,1),i=a(()=>te("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(()=>te("view-state")),g=a(()=>n(c).sidebarWidth),h=a(()=>{for(let w of t.days)if(Ke(w.dayStart,n(l)))return w;return{}}),v=a(()=>n(h).gridColumn),_=a(()=>n(h).start),p=a(()=>n(h).end),m=a(()=>{if(n(o)<n(_)||n(o)>n(p))return null;let w=_e(n(u));return(n(o)-n(_))/1e3/w*n(f)}),y=a(()=>({root:n(s),rootMargin:dn()?`0px -${n(g)+5.5}px 0px 0px`:`0px 0px 0px -${n(g)+5.5}px`,threshold:0}));function k(w,C){w.classList.toggle(n(d).hidden,!C.isIntersecting)}var R=ce(),E=J(R);{var D=w=>{var C=ju();let M;Me(C,()=>Ss(k,n(y))),oe(()=>{N(C,1,n(d).nowIndicator),M=bt(C,"",M,{"grid-column":`${n(v)+1} / span ${r()??""}`,"inset-block-start":`${n(m)??""}px`})}),T(w,C)};ve(E,w=>{n(v)&&n(m)!==null&&w(D)})}T(e,R),be()}var $u=Q('<div><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div>'),ef=Q("<div><time></time></div>"),tf=Q('<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 ao(e,t){we(t,!0);let r=Ee(t,"viewState",7),i=te("state");r()||r(new Xu(i)),Pn("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),_=a(()=>r().allDayChunks),p=a(()=>r().allDayBgChunks),m=a(()=>r().allDayIChunks),y=a(()=>r().bgChunks),k=a(()=>r().chunks),R=a(()=>r().iChunks),E=a(()=>r().grid),D=a(()=>r().sidebarWidth),w=a(()=>r().slots),C=a(()=>r().slotLabelPeriodicity),M=a(()=>r().slotTimeLimits),q=Z(0),I=a(()=>Wu(n(l)));Ye(()=>{n(o),n(c),kn().then(ne)});function ne(){n(s).scrollTop=((_e(n(c))-_e(n(M).min))/_e(n(h))-.5)*n(g)}let pe=[];function W(){ti(pe,n(_))}Ye(W);var z=tf();let H;var A=fe(z),K=fe(A),ue=ie(K,2),X=fe(ue);{var ke=F=>{var U=ce(),G=J(U);Ut(G,()=>t.header),T(F,U)},se=F=>{var U=ce(),G=J(U);ae(G,17,()=>n(E)[0],De,(de,Re,ye)=>{let Ie=()=>n(Re).dayStart,Ae=()=>n(Re).disabled,re=()=>n(Re).highlight;Xn(de,{get date(){return Ie()},colIndex:1+ye,get disabled(){return Ae()},get highlight(){return re()},children:(ze,ct)=>{pr(ze,{get date(){return Ie()}})},$$slots:{default:!0}})}),T(F,U)};ve(X,F=>{t.header?F(ke):F(se,!1)})}var P=ie(ue,2);{var x=F=>{var U=$u(),G=fe(U);Me(G,()=>Xe(n(I)));var de=ie(G,2);ae(de,21,()=>n(E),De,(re,ze,ct)=>{var $e=ce(),pt=J($e);ae(pt,17,()=>n(ze),De,(Oe,vn,Bt)=>{{let jt=a(()=>ct+1===n(E).length&&Bt+1===n(ze).length);oo(Oe,{get day(){return n(vn)},allDay:!0,get noIeb(){return n(jt)}})}}),T(re,$e)});var Re=ie(de,2),ye=fe(Re);ae(ye,19,()=>n(_),re=>re.id,(re,ze,ct)=>{nt(mi(re,{get chunk(){return n(ze)}}),($e,pt)=>pe[pt]=$e,$e=>pe?.[$e],()=>[n(ct)])});var Ie=ie(ye,2);ae(Ie,17,()=>n(p),re=>re.id,(re,ze)=>{mi(re,{get chunk(){return n(ze)}})});var Ae=ie(Ie,2);ae(Ae,17,()=>n(m),De,(re,ze)=>{mi(re,{get chunk(){return n(ze)}})}),oe(()=>{N(U,1,n(v).allDay),N(G,1,n(v).sidebar),N(de,1,n(v).grid),N(Re,1,n(v).events)}),T(F,U)};ve(P,F=>{n(u)&&F(x)})}var B=ie(A,2),L=fe(B);ae(L,21,()=>n(w),De,(F,U,G)=>{var de=ef();let Re;var ye=fe(de);Me(ye,()=>Xe(n(U)[1])),oe(()=>{N(de,1,St([n(v).slot,!G&&n(v).hidden])),Re=bt(de,"",Re,{"--ec-slot-label-periodicity":n(U)[2]}),Pe(ye,"datetime",n(U)[0])}),T(F,de)});var j=ie(L,2);ae(j,21,()=>n(E),De,(F,U,G)=>{var de=ce(),Re=J(de);ae(Re,17,()=>n(U),De,(ye,Ie,Ae)=>{{let re=a(()=>G+1===n(E).length&&Ae+1===n(U).length);oo(ye,{get day(){return n(Ie)},get noIeb(){return n(re)},noBeb:!0})}}),T(F,de)});var it=ie(j,2),He=fe(it);ae(He,17,()=>n(k),F=>F.id,(F,U)=>{gi(F,{get chunk(){return n(U)}})});var Lt=ie(He,2);ae(Lt,17,()=>n(y),F=>F.id,(F,U)=>{gi(F,{get chunk(){return n(U)}})});var V=ie(Lt,2);ae(V,17,()=>n(R),De,(F,U)=>{gi(F,{get chunk(){return n(U)}})});var le=ie(B,2);{var xe=F=>{var U=ce(),G=J(U);{var de=ye=>{var Ie=ce(),Ae=J(Ie);Ut(Ae,()=>t.nowIndicator),T(ye,Ie)},Re=ye=>{br(ye,{get days(){return n(E)[0]}})};ve(G,ye=>{t.nowIndicator?ye(de):ye(Re,!1)})}T(F,U)};ve(le,F=>{n(d)&&F(xe)})}nt(z,F=>i.mainEl=F,()=>i?.mainEl),Me(z,()=>qr(W)),oe(()=>{N(z,1,n(v).main),H=bt(z,"",H,{"--ec-grid-cols":n(E).length*n(E)[0].length,"--ec-col-group-span":n(E)[0].length,"--ec-col-width":n(f)??"minmax(0, 1fr)","--ec-slot-label-periodicity":n(C),"--ec-slot-height":`${n(g)??""}px`,"--ec-header-height":`${n(q)??""}px`,"--ec-sidebar-width":`${n(D)??""}px`}),N(A,1,n(v).header),N(K,1,n(v).sidebar),N(ue,1,n(v).grid),N(B,1,n(v).body),N(L,1,n(v).sidebar),N(j,1,n(v).grid),N(it,1,n(v).events)}),lr(K,"offsetWidth",F=>r().sidebarWidth=F),lr(A,"offsetHeight",F=>b(q,F)),T(e,z),be()}var nf=Q("<!> <!>",1);function rf(e,t){we(t,!0);let r=te("state"),i=new Ju(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=et([]);Ye(()=>{n(f)&&(n(l),n(u),kn().then(v))});function v(){if(n(s)>=n(l)[0]&&n(s)<=n(l).at(-1))for(let _ of n(c)){let p=_[0];if(Ke(p.dayStart,n(s))){n(o).scrollLeft=(n(o).scrollWidth-n(g))/(n(c).length*_.length)*(p.gridColumn-1)*(dn()?-1:1);break}}}ao(e,{get viewState(){return i},header:m=>{var y=nf(),k=J(y);ae(k,17,()=>n(c),De,(D,w,C)=>{const M=a(()=>{const{dayStart:q,resource:I,disabled:ne,highlight:pe}=n(w)[0];return{date:q,resource:I,disabled:ne,highlight:pe}});{let q=a(()=>n(c)[0].length>1?n(d).colGroup:void 0),I=a(()=>1+C*n(w).length),ne=a(()=>n(f)&&n(M).disabled),pe=a(()=>n(f)&&n(M).highlight);Xn(D,{get date(){return n(M).date},get className(){return n(q)},get weekday(){return n(f)},get colSpan(){return n(w).length},get colIndex(){return n(I)},get disabled(){return n(ne)},get highlight(){return n(pe)},children:(W,z)=>{var H=ce(),A=J(H);{var K=X=>{pr(X,{get date(){return n(M).date}})},ue=X=>{vi(X,{get resource(){return n(M).resource},setLabel:ke=>h[C]=ke+", "})};ve(A,X=>{n(f)?X(K):X(ue,!1)})}T(W,H)},$$slots:{default:!0}})}});var R=ie(k,2);{var E=D=>{var w=ce(),C=J(w);ae(C,17,()=>n(c),De,(M,q,I)=>{var ne=ce(),pe=J(ne);ae(pe,17,()=>n(q),De,(W,z,H)=>{const A=a(()=>{const{dayStart:K,resource:ue,disabled:X,highlight:ke}=n(z);return{date:K,resource:ue,disabled:X,highlight:ke}});{let K=a(()=>1+H+I*n(q).length);Xn(W,{get date(){return n(A).date},get colIndex(){return n(K)},get disabled(){return n(A).disabled},get highlight(){return n(A).highlight},children:(ue,X)=>{var ke=ce(),se=J(ke);{var P=B=>{vi(B,{get resource(){return n(A).resource},get date(){return n(A).date}})},x=B=>{pr(B,{get date(){return n(A).date},get alPrefix(){return h[I]}})};ve(se,B=>{n(f)?B(P):B(x,!1)})}T(ue,ke)},$$slots:{default:!0}})}}),T(M,ne)}),T(D,w)};ve(R,D=>{n(c)[0].length>1&&D(E)})}T(m,y)},nowIndicator:m=>{var y=ce(),k=J(y);{var R=D=>{{let w=a(()=>n(c).flat());br(D,{get days(){return n(w)},get span(){return n(c)[0].length}})}},E=D=>{var w=ce(),C=J(w);{var M=I=>{var ne=ce(),pe=J(ne);ae(pe,17,()=>n(c),De,(W,z)=>{br(W,{get days(){return n(z)}})}),T(I,ne)},q=I=>{{let ne=a(()=>n(c).flat());br(I,{get days(){return n(ne)},get span(){return n(c).length}})}};ve(C,I=>{n(c)[0].length>1?I(M):I(q,!1)})}T(D,w)};ve(k,D=>{n(f)?D(R):D(E,!1)})}T(m,y)},$$slots:{header:!0,nowIndicator:!0}}),be()}const sf={createOptions(e){no(e),di(e),ro(e),ge(e,{datesAboveResources:!1,view:"resourceTimeGridWeek"}),ge(e.buttonText,{resourceTimeGridDay:"resources",resourceTimeGridWeek:"resources"}),ge(e.theme,{colGroup:"ec-col-group"}),ge(e.views,{resourceTimeGridDay:{buttonText:Yn,component:lo,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:rt("ec-resource ec-time-grid ec-day-view")},resourceTimeGridWeek:{buttonText:qn,component:lo,duration:{weeks:1},theme:rt("ec-resource ec-time-grid ec-week-view")}})},createParsers(e){ci(e)}};function lo(e){return fi(e),rf}function pi(e,t,r,i=!0){let s=[],o,l,u,f,d,c=0;for(let{gridColumn:g,gridRow:h,resource:v,dayStart:_,dayEnd:p,start:m,end:y,disabled:k}of t)k||(r?Tn(e,_,p,v)&&(s.length||(o=_,u=g,f=h),s.push(_),l=y):Tn(e,m,y,v)&&(s.length||(o=m,u=g,f=h,d=ft(e.start-m,0)/1e3),s.push(_),l=y,c+=(Rt(y,e.end)-ft(m,e.start))/1e3));if(s.length){let g=Gn(e,o,l);return ge(g,{gridColumn:u,gridRow:f,dates:s,left:d,width:c}),i&&ni(g),[g]}return[]}function of(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 af(e,t,r){let i=0,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 ge(e,{top:i,bottom:s}),i}function lf(e,t){return e[t.getTime()]??{min:Ne(0),max:Ne("24:00:00")}}function uf(e,t){return()=>{let{viewDates:r,options:{highlightedDates:i,validRange:s}}=e,{dayTimeLimits:o,viewResources:l}=t,u=[];return ee(()=>{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(Y(h),v.min),end:Se(Y(h),v.max),dayStart:h,dayEnd:kt(Y(h)),disabled:Sn(h,s),highlight:i.some(_=>Ke(_,h))}),++g}u.push(c),++f}}),u}}function ff(e,t){return()=>{let{filteredEvents:r}=e,{grid:i,monthView:s}=t,o=[],l=[];return ee(()=>{for(let u of r)for(let f of i)mt(u.display)?(!s||u.allDay)&&(l=l.concat(pi(u,f,s))):o=o.concat(pi(u,f,s));of(o)}),{chunks:o,bgChunks:l}}}function df(e,t){return()=>{let{iEvents:r}=e,{grid:i,monthView:s}=t,o=[];for(let[,l]of r)l&&ee(()=>{for(let u of i)o=o.concat(pi(l,u,s,!1))});return o}}function cf(e){return()=>{let{filteredEvents:t,viewDates:r,options:{flexibleSlotTimeLimits:i,slotMinTime:s,slotMaxTime:o}}=e,l={};return ee(()=>{for(let u of r)l[u.getTime()]=Ks(s,o,i,[u],t)}),l}}function hf(e,t){return()=>{let{viewDates:r,options:{slotDuration:i}}=e,{dayTimeLimits:s,intlSlotLabel:o,slotLabelPeriodicity:l}=t,u={};return ee(()=>{for(let f of r){let d=f.getTime();u[d]=d in s?Xs(f,i,l,s[d],o):[]}}),u}}function vf(e){return()=>{let{options:{resources:t}}=e,r;return ee(()=>{r=t.some(i=>Vt(i).children.length)}),r}}function gf(e){return()=>{let{options:{slotDuration:t}}=e,r;return ee(()=>{r=!_e(t)}),r}}class mf extends so(hi()){#e;get dayTimeLimits(){return n(this.#e)}set dayTimeLimits(t){b(this.#e,t)}#t;get daySlots(){return n(this.#t)}set daySlots(t){b(this.#t,t)}#n;get grid(){return n(this.#n)}set grid(t){b(this.#n,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(cf(t)),this.#t=a(hf(t,this)),this.#n=a(uf(t,this)),this.#r=a(gf(t));let r=a(ff(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(df(t,this)),this.#a=a(vf(t))}}function pf(e,t){we(t,!0);let r=a(()=>te("state")),i=a(()=>n(r).options.slotWidth),s=a(()=>te("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=Z(void 0);function v(_,p){if(n(o))return n(u);{let m=Qt(n(h)),y=m.width/n(h).offsetWidth;return Se(Y(n(f)),n(l).duration,Xr((dn()?m.right-_:_-m.left)/(n(i)*n(l).ratio*y)))}}mr(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(_){b(h,_,!0)}}),be()}function _i(e,t){we(t,!0);let r=a(()=>te("state")),i=a(()=>n(r).options.slotDuration),s=a(()=>n(r).options.slotWidth),o=a(()=>te("view-state")),l=a(()=>n(o).monthView),u=Z(void 0),f=Z(0),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 p=t.chunk.left/_e(n(i))*n(s);v["inset-inline-start"]=`${p}px`,v["inline-size"]=`${t.chunk.width/_e(n(i))*n(s)}px`}let _=n(f);if(n(d)._margin){let[p,m]=n(d)._margin;t.chunk.gridRow===m&&(_=p)}return v["margin-block-start"]=`${_}px`,v});function g(){b(f,af(t.chunk,cn(n(u)),n(l)),!0)}var h={reposition:g};{let v=a(()=>[n(f),t.chunk.gridRow]);_r(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(_){b(u,_,!0)}})}return be(h)}var _f=Q("<span></span>"),yf=Q("<button><!></button>"),wf=Q("<!> <span><!></span>",1);function bf(e,t){we(t,!0);let r=a(()=>te("state")),i=a(()=>n(r).options),s=a(()=>n(i).resources),o=a(()=>n(i).theme),l=Z({}),u=Z(!0);on(()=>{b(l,Vt(t.resource)),b(u,n(l).expanded,!0)});function f(){b(u,!n(u)),n(l).expanded=n(u),d(n(l).children,n(u)),n(i).resources=[...n(s)]}function d(p,m){for(let y of p){let k=Vt(y);k.hidden=!m,k.expanded&&d(k.children,m)}}var c=wf(),g=J(c);ae(g,17,()=>Array(n(l).level),De,(p,m)=>{var y=_f();oe(()=>N(y,1,n(o).expander)),T(p,y)});var h=ie(g,2),v=fe(h);{var _=p=>{var m=yf();m.__click=f;var y=fe(m);{var k=E=>{var D=ws("−");T(E,D)},R=E=>{var D=ws("+");T(E,D)};ve(y,E=>{n(u)?E(k):E(R,!1)})}oe(()=>N(m,1,n(o).button)),T(p,m)};ve(v,p=>{n(l).children?.length&&p(_)})}oe(()=>N(h,1,n(o).expander)),T(e,c),be()}Zt(["click"]);var kf=Q("<div></div>");function Cf(e,t){we(t,!0);let r=a(()=>te("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(()=>te("view-state")),c=a(()=>n(d).grid),g=a(()=>n(d).sidebarWidth),h=a(()=>{for(let w of n(c)[0])if(Ke(w.dayStart,n(o)))return w;return{}}),v=a(()=>n(h).gridColumn),_=a(()=>n(h).start),p=a(()=>n(h).end),m=a(()=>{if(n(s)<n(_)||n(s)>n(p))return null;let w=_e(n(l));return(n(s)-n(_))/1e3/w*n(u)}),y=a(()=>({root:n(i),rootMargin:dn()?`0px -${n(g)+1}px 0px 0px`:`0px 0px 0px -${n(g)+1}px`,threshold:0}));function k(w,C){w.classList.toggle(n(f).hidden,!C.isIntersecting)}var R=ce(),E=J(R);{var D=w=>{var C=kf();let M;Me(C,()=>Ss(k,n(y))),oe(()=>{N(C,1,n(f).nowIndicator),M=bt(C,"",M,{"grid-column":n(v)+1,"grid-row":`2 / span ${n(c).length??""}`,"inset-inline-start":`${n(m)??""}px`})}),T(w,C)};ve(E,w=>{n(v)&&n(m)!==null&&w(D)})}T(e,R),be()}var Df=Q("<div><time></time></div>"),Ef=Q('<div role="rowheader"><!> <!></div>'),Tf=Q('<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){we(t,!0);let r=te("state"),i=new mf(r);Pn("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),_=a(()=>i.chunks),p=a(()=>i.bgChunks),m=a(()=>i.iChunks),y=a(()=>i.daySlots),k=a(()=>i.dayTimeLimits),R=a(()=>i.grid),E=a(()=>i.monthView),D=a(()=>i.nestedResources),w=a(()=>i.sidebarWidth),C=a(()=>i.slotLabelPeriodicity),M=a(()=>i.viewResources),q=Z(0);Ye(()=>{n(l),n(d),kn().then(I)});function I(){let V=0,le=n(o)<n(l)[0]||n(o)>n(l).at(-1);if(n(E)){if(!le){let xe=n(R)[0];for(let F of xe)if(Ke(F.dayStart,n(o))){n(s).scrollLeft=(n(s).scrollWidth-n(w))/xe.length*(F.gridColumn-1)*(dn()?-1:1);break}}}else{for(let xe of n(l)){let F=lf(n(k),xe);if(le||Ke(xe,n(o))){V+=ft(Rt(_e(n(d)),_e(F.max))-_e(F.min),0);break}else V+=_e(F.max)-_e(F.min)}n(s).scrollLeft=V/_e(n(c))*n(h)*(dn()?-1:1)}}let ne=[];function pe(){ti(ne,n(_))}Ye(pe);var W=Tf();let z;var H=fe(W),A=fe(H),K=ie(A,2),ue=fe(K);ae(ue,17,()=>n(R)[0],De,(V,le,xe)=>{let F=()=>n(le).dayStart,U=()=>n(le).disabled,G=()=>n(le).highlight;Xn(V,{get date(){return F()},colIndex:1+xe,get disabled(){return U()},get highlight(){return G()},children:(de,Re)=>{pr(de,{get date(){return F()}})},$$slots:{default:!0}})});var X=ie(ue,2);{var ke=V=>{var le=ce(),xe=J(le);ae(xe,17,()=>n(R)[0],De,(F,U)=>{let G=()=>n(U).dayStart,de=()=>n(U).disabled,Re=()=>n(U).highlight;Xn(F,{get date(){return G()},get className(){return n(v).slots},get disabled(){return de()},get highlight(){return Re()},ariaHidden:!0,children:(ye,Ie)=>{var Ae=ce(),re=J(Ae);ae(re,17,()=>n(y)[G().getTime()],De,(ze,ct)=>{var $e=Df();let pt;var Oe=fe($e);Me(Oe,()=>Xe(n(ct)[1])),oe(()=>{N($e,1,n(v).slot),pt=bt($e,"",pt,{"--ec-slot-label-periodicity":n(ct)[2]}),Pe(Oe,"datetime",n(ct)[0])}),T(ze,$e)}),T(ye,Ae)},$$slots:{default:!0}})}),T(V,le)};ve(X,V=>{n(E)||V(ke)})}var se=ie(H,2),P=fe(se);ae(P,21,()=>n(M),De,(V,le)=>{var xe=Ef(),F=fe(xe);{var U=de=>{bf(de,{get resource(){return n(le)}})};ve(F,de=>{n(D)&&de(U)})}var G=ie(F,2);vi(G,{get resource(){return n(le)}}),oe(()=>N(xe,1,n(v).rowHead)),T(V,xe)});var x=ie(P,2);ae(x,21,()=>n(R),De,(V,le,xe)=>{var F=ce(),U=J(F);ae(U,17,()=>n(le),De,(G,de,Re)=>{{let ye=a(()=>Re+1===n(le).length),Ie=a(()=>xe+1===n(R).length);pf(G,{get day(){return n(de)},get noIeb(){return n(ye)},get noBeb(){return n(Ie)}})}}),T(V,F)});var B=ie(x,2),L=fe(B);ae(L,19,()=>n(_),V=>V.id,(V,le,xe)=>{nt(_i(V,{get chunk(){return n(le)}}),(F,U)=>ne[U]=F,F=>ne?.[F],()=>[n(xe)])});var j=ie(L,2);ae(j,17,()=>n(p),V=>V.id,(V,le)=>{_i(V,{get chunk(){return n(le)}})});var it=ie(j,2);ae(it,17,()=>n(m),De,(V,le)=>{_i(V,{get chunk(){return n(le)}})});var He=ie(se,2);{var Lt=V=>{Cf(V,{})};ve(He,V=>{n(f)&&!n(E)&&V(Lt)})}nt(W,V=>r.mainEl=V,()=>r?.mainEl),Me(W,()=>qr(pe)),oe(()=>{N(W,1,n(v).main),z=bt(W,"",z,{"--ec-grid-cols":n(R)[0].length,"--ec-grid-rows":`${n(R).length>1?`repeat(${n(R).length-1}, auto)`:""} 1fr`,"--ec-col-width":n(u)??"minmax(4em, 1fr)","--ec-slot-label-periodicity":n(C),"--ec-slot-height":`${n(g)??""}px`,"--ec-slot-width":`${n(h)??""}px`,"--ec-header-height":`${n(q)??""}px`,"--ec-sidebar-width":`${n(w)??""}px`}),N(H,1,n(v).header),N(A,1,n(v).sidebar),N(K,1,n(v).grid),N(se,1,n(v).body),N(P,1,n(v).sidebar),N(x,1,n(v).grid),N(B,1,n(v).events)}),lr(A,"offsetWidth",V=>i.sidebarWidth=V),lr(H,"offsetHeight",V=>b(q,V)),T(e,W),be()}const Sf={createOptions(e){di(e),ro(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:Yn,component:uo,displayEventEnd:!1,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:rt("ec-resource ec-timeline ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},e.views.resourceTimelineWeek={buttonText:qn,component:uo,displayEventEnd:!1,duration:{weeks:1},theme:rt("ec-resource ec-timeline ec-week-view")},e.views.resourceTimelineMonth={buttonText:ri,component:fo,displayEventEnd:!1,dayHeaderFormat:{weekday:"short",day:"numeric"},duration:{months:1},slotDuration:{days:1},theme:rt("ec-resource ec-timeline ec-month-view"),titleFormat:{year:"numeric",month:"long"}}},createParsers(e){ci(e)}};function uo(e){return fi(e),fo(e)}function fo(e){return e.features=["timeline"],e.extensions.viewResources=t=>t.filter(r=>!Vt(r).hidden),xf}const Rf={createOptions(e){di(e),no(e),ge(e.buttonText,{timeGridDay:"day",timeGridWeek:"week"}),ge(e,{view:"timeGridWeek"}),ge(e.views,{timeGridDay:{buttonText:Yn,component:co,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:rt("ec-time-grid ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},timeGridWeek:{buttonText:qn,component:co,duration:{weeks:1},theme:rt("ec-time-grid ec-week-view")}})},createParsers(e){ci(e)}};function co(e){return fi(e),ao}function If(e,t,r){return Sa(Xl,{target:e,props:{plugins:t,options:r}})}function Lf(e){return Ia(e)}function Pf(e,t){return If(e,[hu,Su,Fu,sf,Sf,Rf],t)}return Jn.create=Pf,Jn.destroy=Lf,Object.defineProperty(Jn,Symbol.toStringTag,{value:"Module"}),Jn})({});
6
6
  //# sourceMappingURL=event-calendar.min.js.map