@event-calendar/build 5.4.1 → 5.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* EventCalendar v5.4.
|
|
2
|
+
* EventCalendar v5.4.2
|
|
3
3
|
* https://github.com/vkurko/calendar
|
|
4
4
|
*/
|
|
5
|
-
var EventCalendar=(function(sr){"use strict";var Hi=Array.isArray,Wo=Array.prototype.indexOf,Dn=Array.prototype.includes,or=Array.from,zi=Object.defineProperty,En=Object.getOwnPropertyDescriptor,Uo=Object.getOwnPropertyDescriptors,Vo=Object.prototype,Bo=Array.prototype,Wi=Object.getPrototypeOf,Ui=Object.isExtensible;const Wt=()=>{};function Go(e){for(var t=0;t<e.length;t++)e[t]()}function Vi(){var e,t,r=new Promise((i,s)=>{e=i,t=s});return{promise:r,resolve:e,reject:t}}function Yo(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const r=[];for(const i of e)if(r.push(i),r.length===t)break;return r}const Ge=2,Hn=4,zn=8,Lr=1<<24,Ut=16,Dt=32,fn=64,Pr=128,yt=512,He=1024,$e=2048,Et=4096,ft=8192,Vt=16384,dn=32768,Zt=65536,Bi=1<<17,Gi=1<<18,Tn=1<<19,Yi=1<<20,Bt=1<<25,cn=65536,Mr=1<<21,Ar=1<<22,Jt=1<<23,Wn=Symbol("$state"),qo=Symbol("legacy props"),Xo=Symbol(""),hn=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function qi(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Ko(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Zo(e,t,r){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Jo(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Qo(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function jo(e){throw new Error("https://svelte.dev/e/effect_orphan")}function $o(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ea(){throw new Error("https://svelte.dev/e/get_abort_signal_outside_reaction")}function ta(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function na(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ra(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ia(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function sa(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const oa=1,aa=2,Xi=4,la=8,ua=16,fa=1,da=4,ca=8,ha=16,va=1,ga=2,Ye=Symbol(),Ki="http://www.w3.org/1999/xhtml";function ma(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Zi(e){return e===this.v}function pa(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Ji(e){return!pa(e,this.v)}let bd=!1,et=null;function xn(e){et=e}function te(e){return ji().get(e)}function Un(e,t){return ji().set(e,t),t}function pe(e,t=!1,r){et={p:et,i:!1,c:null,e:null,s:e,x:null,l:null}}function ye(e){var t=et,r=t.e;if(r!==null){t.e=null;for(var i of r)_s(i)}return e!==void 0&&(t.x=e),t.i=!0,et=t.p,e??{}}function Qi(){return!0}function ji(e){return et===null&&qi(),et.c??=new Map(ya(et)||void 0)}function ya(e){let t=e.p;for(;t!==null;){const r=t.c;if(r!==null)return r;t=t.p}return null}let vn=[];function $i(){var e=vn;vn=[],Go(e)}function Mt(e){if(vn.length===0&&!Vn){var t=vn;queueMicrotask(()=>{t===vn&&$i()})}vn.push(e)}function _a(){for(;vn.length>0;)$i()}function es(e){var t=we;if(t===null)return fe.f|=Jt,e;if((t.f&dn)===0&&(t.f&Hn)===0)throw e;Qt(e,t)}function Qt(e,t){for(;t!==null;){if((t.f&Pr)!==0){if((t.f&dn)===0)throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}const wa=-7169;function Me(e,t){e.f=e.f&wa|t}function Or(e){(e.f&yt)!==0||e.deps===null?Me(e,He):Me(e,Et)}function ts(e){if(e!==null)for(const t of e)(t.f&Ge)===0||(t.f&cn)===0||(t.f^=cn,ts(t.deps))}function ns(e,t,r){(e.f&$e)!==0?t.add(e):(e.f&Et)!==0&&r.add(e),ts(e.deps),Me(e,He)}const ar=new Set;let Re=null,Tt=null,ot=[],lr=null,Nr=!1,Vn=!1;class jt{current=new Map;previous=new Map;#e=new Set;#n=new Set;#t=0;#i=0;#r=null;#s=new Set;#o=new Set;#a=new Map;is_fork=!1;#l=!1;#f(){return this.is_fork||this.#i>0}skip_effect(t){this.#a.has(t)||this.#a.set(t,{d:[],m:[]})}unskip_effect(t){var r=this.#a.get(t);if(r){this.#a.delete(t);for(var i of r.d)Me(i,$e),xt(i);for(i of r.m)Me(i,Et),xt(i)}}process(t){ot=[],this.apply();var r=[],i=[];for(const s of t)this.#u(s,r,i);if(this.#f()){this.#d(i),this.#d(r);for(const[s,o]of this.#a)as(s,o)}else{for(const s of this.#e)s();this.#e.clear(),this.#t===0&&this.#h(),Re=null,is(i),is(r),this.#r?.resolve()}Tt=null}#u(t,r,i){t.f^=He;for(var s=t.first;s!==null;){var o=s.f,l=(o&(Dt|fn))!==0,u=l&&(o&He)!==0,f=u||(o&ft)!==0||this.#a.has(s);if(!f&&s.fn!==null){l?s.f^=He:(o&Hn)!==0?r.push(s):Yn(s)&&((o&Ut)!==0&&this.#o.add(s),Rn(s));var d=s.first;if(d!==null){s=d;continue}}for(;s!==null;){var c=s.next;if(c!==null){s=c;break}s=s.parent}}}#d(t){for(var r=0;r<t.length;r+=1)ns(t[r],this.#s,this.#o)}capture(t,r){r!==Ye&&!this.previous.has(t)&&this.previous.set(t,r),(t.f&Jt)===0&&(this.current.set(t,t.v),Tt?.set(t,t.v))}activate(){Re=this,this.apply()}deactivate(){Re===this&&(Re=null,Tt=null)}flush(){if(this.activate(),ot.length>0){if(rs(),Re!==null&&Re!==this)return}else this.#t===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#n)t(this);this.#n.clear()}#h(){if(ar.size>1){this.previous.clear();var t=Tt,r=!0;for(const s of ar){if(s===this){r=!1;continue}const o=[];for(const[u,f]of this.current){if(s.current.has(u))if(r&&f!==s.current.get(u))s.current.set(u,f);else continue;o.push(u)}if(o.length===0)continue;const l=[...s.current.keys()].filter(u=>!this.current.has(u));if(l.length>0){var i=ot;ot=[];const u=new Set,f=new Map;for(const d of o)ss(d,l,u,f);if(ot.length>0){Re=s,s.apply();for(const d of ot)s.#u(d,[],[]);s.deactivate()}ot=i}}Re=null,Tt=t}ar.delete(this)}increment(t){this.#t+=1,t&&(this.#i+=1)}decrement(t){this.#t-=1,t&&(this.#i-=1),!this.#l&&(this.#l=!0,Mt(()=>{this.#l=!1,this.#f()?ot.length>0&&this.flush():this.revive()}))}revive(){for(const t of this.#s)this.#o.delete(t),Me(t,$e),xt(t);for(const t of this.#o)Me(t,Et),xt(t);this.flush()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#r??=Vi()).promise}static ensure(){if(Re===null){const t=Re=new jt;ar.add(Re),Vn||Mt(()=>{Re===t&&t.flush()})}return Re}apply(){}}function ba(e){var t=Vn;Vn=!0;try{for(var r;;){if(_a(),ot.length===0&&(Re?.flush(),ot.length===0))return lr=null,r;rs()}}finally{Vn=t}}function rs(){Nr=!0;var e=null;try{for(var t=0;ot.length>0;){var r=jt.ensure();if(t++>1e3){var i,s;ka()}r.process(ot),$t.clear()}}finally{ot=[],Nr=!1,lr=null}}function ka(){try{$o()}catch(e){Qt(e,lr)}}let Gt=null;function is(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var i=e[r++];if((i.f&(Vt|ft))===0&&Yn(i)&&(Gt=new Set,Rn(i),i.deps===null&&i.first===null&&i.nodes===null&&i.teardown===null&&i.ac===null&&ks(i),Gt?.size>0)){$t.clear();for(const s of Gt){if((s.f&(Vt|ft))!==0)continue;const o=[s];let l=s.parent;for(;l!==null;)Gt.has(l)&&(Gt.delete(l),o.push(l)),l=l.parent;for(let u=o.length-1;u>=0;u--){const f=o[u];(f.f&(Vt|ft))===0&&Rn(f)}}Gt.clear()}}Gt=null}}function ss(e,t,r,i){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const s of e.reactions){const o=s.f;(o&Ge)!==0?ss(s,t,r,i):(o&(Ar|Ut))!==0&&(o&$e)===0&&os(s,t,i)&&(Me(s,$e),xt(s))}}function os(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(Dn.call(t,s))return!0;if((s.f&Ge)!==0&&os(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function xt(e){var t=lr=e,r=t.b;if(r?.is_pending&&(e.f&(Hn|zn|Lr))!==0&&(e.f&dn)===0){r.defer_effect(e);return}for(;t.parent!==null;){t=t.parent;var i=t.f;if(Nr&&t===we&&(i&Ut)!==0&&(i&Gi)===0&&(i&dn)!==0)return;if((i&(fn|Dt))!==0){if((i&He)===0)return;t.f^=He}}ot.push(t)}function as(e,t){if(!((e.f&Dt)!==0&&(e.f&He)!==0)){(e.f&$e)!==0?t.d.push(e):(e.f&Et)!==0&&t.m.push(e),Me(e,He);for(var r=e.first;r!==null;)as(r,t),r=r.next}}function Ca(e){let t=0,r=en(0),i;return()=>{Ur()&&(n(r),ws(()=>(t===0&&(i=J(()=>e(()=>At(r)))),t+=1,()=>{Mt(()=>{t-=1,t===0&&(i?.(),i=void 0,At(r))})})))}}var Da=Zt|Tn;function Ea(e,t,r,i){new Ta(e,t,r,i)}class Ta{parent;is_pending=!1;transform_error;#e;#n=null;#t;#i;#r;#s=null;#o=null;#a=null;#l=null;#f=0;#u=0;#d=!1;#h=new Set;#v=new Set;#c=null;#_=Ca(()=>(this.#c=en(this.#f),()=>{this.#c=null}));constructor(t,r,i,s){this.#e=t,this.#t=r,this.#i=o=>{var l=we;l.b=this,l.f|=Pr,i(o)},this.parent=we.b,this.transform_error=s??this.parent?.transform_error??(o=>o),this.#r=Gn(()=>{this.#p()},Da)}#w(){try{this.#s=dt(()=>this.#i(this.#e))}catch(t){this.error(t)}}#b(t){const r=this.#t.failed;r&&(this.#a=dt(()=>{r(this.#e,()=>t,()=>()=>{})}))}#k(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#o=dt(()=>t(this.#e)),Mt(()=>{var r=this.#l=document.createDocumentFragment(),i=tn();r.append(i),this.#s=this.#m(()=>(jt.ensure(),dt(()=>this.#i(i)))),this.#u===0&&(this.#e.before(r),this.#l=null,mn(this.#o,()=>{this.#o=null}),this.#g())}))}#p(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#f=0,this.#s=dt(()=>{this.#i(this.#e)}),this.#u>0){var t=this.#l=document.createDocumentFragment();Es(this.#s,t);const r=this.#t.pending;this.#o=dt(()=>r(this.#e))}else this.#g()}catch(r){this.error(r)}}#g(){this.is_pending=!1;for(const t of this.#h)Me(t,$e),xt(t);for(const t of this.#v)Me(t,Et),xt(t);this.#h.clear(),this.#v.clear()}defer_effect(t){ns(t,this.#h,this.#v)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#m(t){var r=we,i=fe,s=et;Ot(this.#r),_t(this.#r),xn(this.#r.ctx);try{return t()}catch(o){return es(o),null}finally{Ot(r),_t(i),xn(s)}}#y(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(t);return}this.#u+=t,this.#u===0&&(this.#g(),this.#o&&mn(this.#o,()=>{this.#o=null}),this.#l&&(this.#e.before(this.#l),this.#l=null))}update_pending_count(t){this.#y(t),this.#f+=t,!(!this.#c||this.#d)&&(this.#d=!0,Mt(()=>{this.#d=!1,this.#c&&Sn(this.#c,this.#f)}))}get_effect_pending(){return this.#_(),n(this.#c)}error(t){var r=this.#t.onerror;let i=this.#t.failed;if(!r&&!i)throw t;this.#s&&(st(this.#s),this.#s=null),this.#o&&(st(this.#o),this.#o=null),this.#a&&(st(this.#a),this.#a=null);var s=!1,o=!1;const l=()=>{if(s){ma();return}s=!0,o&&sa(),this.#a!==null&&mn(this.#a,()=>{this.#a=null}),this.#m(()=>{jt.ensure(),this.#p()})},u=f=>{try{o=!0,r?.(f,l),o=!1}catch(d){Qt(d,this.#r&&this.#r.parent)}i&&(this.#a=this.#m(()=>{jt.ensure();try{return dt(()=>{var d=we;d.b=this,d.f|=Pr,i(this.#e,()=>f,()=>l)})}catch(d){return Qt(d,this.#r.parent),null}}))};Mt(()=>{var f;try{f=this.transform_error(t)}catch(d){Qt(d,this.#r&&this.#r.parent);return}f!==null&&typeof f=="object"&&typeof f.then=="function"?f.then(u,d=>Qt(d,this.#r&&this.#r.parent)):u(f)})}}function xa(e,t,r,i){const s=ur;var o=e.filter(g=>!g.settled);if(r.length===0&&o.length===0){i(t.map(s));return}var l=we,u=Sa(),f=o.length===1?o[0].promise:o.length>1?Promise.all(o.map(g=>g.promise)):null;function d(g){u();try{i(g)}catch(h){(l.f&Vt)===0&&Qt(h,l)}Fr()}if(r.length===0){f.then(()=>d(t.map(s)));return}function c(){u(),Promise.all(r.map(g=>Ia(g))).then(g=>d([...t.map(s),...g])).catch(g=>Qt(g,l))}f?f.then(c):c()}function Sa(){var e=we,t=fe,r=et,i=Re;return function(o=!0){Ot(e),_t(t),xn(r),o&&i?.activate()}}function Fr(e=!0){Ot(null),_t(null),xn(null),e&&Re?.deactivate()}function Ra(){var e=we.b,t=Re,r=e.is_rendered();return e.update_pending_count(1),t.increment(r),()=>{e.update_pending_count(-1),t.decrement(r)}}function ur(e){var t=Ge|$e,r=fe!==null&&(fe.f&Ge)!==0?fe:null;return we!==null&&(we.f|=Tn),{ctx:et,deps:null,effects:null,equals:Zi,f:t,fn:e,reactions:null,rv:0,v:Ye,wv:0,parent:r??we,ac:null}}function Ia(e,t,r){we===null&&Ko();var s=void 0,o=en(Ye),l=!fe,u=new Map;return Ua(()=>{var f=Vi();s=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).finally(Fr)}catch(h){f.reject(h),Fr()}var d=Re;if(l){var c=Ra();u.get(d)?.reject(hn),u.delete(d),u.set(d,f)}const g=(h,v=void 0)=>{if(d.activate(),v)v!==hn&&(o.f|=Jt,Sn(o,v));else{(o.f&Jt)!==0&&(o.f^=Jt),Sn(o,h);for(const[p,y]of u){if(u.delete(p),p===d)break;y.reject(hn)}}c&&c()};f.promise.then(g,h=>g(null,h||"unknown"))}),Vr(()=>{for(const f of u.values())f.reject(hn)}),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=ur(e);return xs(t),t}function ls(e){const t=ur(e);return t.equals=Ji,t}function La(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)st(t[r])}}function Pa(e){for(var t=e.parent;t!==null;){if((t.f&Ge)===0)return(t.f&Vt)===0?t:null;t=t.parent}return null}function Hr(e){var t,r=we;Ot(Pa(e));try{e.f&=~cn,La(e),t=Ps(e)}finally{Ot(r)}return t}function us(e){var t=Hr(e);if(!e.equals(t)&&(e.wv=Is(),(!Re?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){Me(e,He);return}nn||(Tt!==null?(Ur()||Re?.is_fork)&&Tt.set(e,t):Or(e))}function Ma(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(hn),t.teardown=Wt,t.ac=null,qn(t,0),Gr(t))}function fs(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Rn(t)}let zr=new Set;const $t=new Map;let ds=!1;function en(e,t){var r={f:0,v:e,reactions:null,equals:Zi,rv:0,wv:0};return r}function B(e,t){const r=en(e);return xs(r),r}function cs(e,t=!1,r=!0){const i=en(e);return t||(i.equals=Ji),i}function b(e,t,r=!1){fe!==null&&(!It||(fe.f&Bi)!==0)&&Qi()&&(fe.f&(Ge|Ut|Ar|Bi))!==0&&(wt===null||!Dn.call(wt,e))&&ia();let i=r?qe(t):t;return Sn(e,i)}function Sn(e,t){if(!e.equals(t)){var r=e.v;nn?$t.set(e,t):$t.set(e,r),e.v=t;var i=jt.ensure();if(i.capture(e,r),(e.f&Ge)!==0){const s=e;(e.f&$e)!==0&&Hr(s),Or(s)}e.wv=Is(),hs(e,$e),we!==null&&(we.f&He)!==0&&(we.f&(Dt|fn))===0&&(bt===null?Ya([e]):bt.push(e)),!i.is_fork&&zr.size>0&&!ds&&Aa()}return t}function Aa(){ds=!1;for(const e of zr)(e.f&He)!==0&&Me(e,Et),Yn(e)&&Rn(e);zr.clear()}function At(e){b(e,e.v+1)}function hs(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&$e)===0;if(u&&Me(o,t),(l&Ge)!==0){var f=o;Tt?.delete(f),(l&cn)===0&&(l&yt&&(o.f|=cn),hs(f,Et))}else u&&((l&Ut)!==0&&Gt!==null&&Gt.add(o),xt(o))}}function qe(e){if(typeof e!="object"||e===null||Wn in e)return e;const t=Wi(e);if(t!==Vo&&t!==Bo)return e;var r=new Map,i=Hi(e),s=B(0),o=Yt,l=u=>{if(Yt===o)return u();var f=fe,d=Yt;_t(null),Rs(o);var c=u();return _t(f),Rs(d),c};return i&&r.set("length",B(e.length)),new Proxy(e,{defineProperty(u,f,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&na();var c=r.get(f);return c===void 0?l(()=>{var g=B(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(()=>B(Ye));r.set(f,c),At(s)}}else b(d,Ye),At(s);return!0},get(u,f,d){if(f===Wn)return e;var c=r.get(f),g=f in u;if(c===void 0&&(!g||En(u,f)?.writable)&&(c=l(()=>{var v=qe(g?u[f]:Ye),p=B(v);return p}),r.set(f,c)),c!==void 0){var h=n(c);return h===Ye?void 0:h}return Reflect.get(u,f,d)},getOwnPropertyDescriptor(u,f){var d=Reflect.getOwnPropertyDescriptor(u,f);if(d&&"value"in d){var c=r.get(f);c&&(d.value=n(c))}else if(d===void 0){var g=r.get(f),h=g?.v;if(g!==void 0&&h!==Ye)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return d},has(u,f){if(f===Wn)return!0;var d=r.get(f),c=d!==void 0&&d.v!==Ye||Reflect.has(u,f);if(d!==void 0||we!==null&&(!c||En(u,f)?.writable)){d===void 0&&(d=l(()=>{var h=c?qe(u[f]):Ye,v=B(h);return v}),r.set(f,d));var g=n(d);if(g===Ye)return!1}return c},set(u,f,d,c){var g=r.get(f),h=f in u;if(i&&f==="length")for(var v=d;v<g.v;v+=1){var p=r.get(v+"");p!==void 0?b(p,Ye):v in u&&(p=l(()=>B(Ye)),r.set(v+"",p))}if(g===void 0)(!h||En(u,f)?.writable)&&(g=l(()=>B(void 0)),b(g,qe(d)),r.set(f,g));else{h=g.v!==Ye;var y=l(()=>qe(d));b(g,y)}var m=Reflect.getOwnPropertyDescriptor(u,f);if(m?.set&&m.set.call(c,d),!h){if(i&&typeof f=="string"){var _=r.get("length"),T=Number(f);Number.isInteger(T)&&T>=_.v&&b(_,T+1)}At(s)}return!0},ownKeys(u){n(s);var f=Reflect.ownKeys(u).filter(g=>{var h=r.get(g);return h===void 0||h.v!==Ye});for(var[d,c]of r)c.v!==Ye&&!(d in u)&&f.push(d);return f},setPrototypeOf(){ra()}})}var St,vs,gs,ms;function Oa(){if(St===void 0){St=window,vs=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;gs=En(t,"firstChild").get,ms=En(t,"nextSibling").get,Ui(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Ui(r)&&(r.__t=void 0)}}function tn(e=""){return document.createTextNode(e)}function fr(e){return gs.call(e)}function Bn(e){return ms.call(e)}function ue(e,t){return fr(e)}function ne(e,t=!1){{var r=fr(e);return r instanceof Comment&&r.data===""?Bn(r):r}}function re(e,t=1,r=!1){let i=e;for(;t--;)i=Bn(i);return i}function Na(e){e.textContent=""}function ps(){return!1}function Fa(e,t,r){return document.createElementNS(Ki,e,void 0)}function Ha(e,t){{const r=document.body;e.autofocus=!0,Mt(()=>{document.activeElement===r&&e.focus()})}}function Wr(e){var t=fe,r=we;_t(null),Ot(null);try{return e()}finally{_t(t),Ot(r)}}function ys(e){we===null&&(fe===null&&jo(),Qo()),nn&&Jo()}function za(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function Rt(e,t,r){var i=we;i!==null&&(i.f&ft)!==0&&(e|=ft);var s={ctx:et,deps:null,nodes:null,f:e|$e|yt,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{Rn(s)}catch(u){throw st(s),u}else t!==null&&xt(s);var o=s;if(r&&o.deps===null&&o.teardown===null&&o.nodes===null&&o.first===o.last&&(o.f&Tn)===0&&(o=o.first,(e&Ut)!==0&&(e&Zt)!==0&&o!==null&&(o.f|=Zt)),o!==null&&(o.parent=i,i!==null&&za(o,i),fe!==null&&(fe.f&Ge)!==0&&(e&fn)===0)){var l=fe;(l.effects??=[]).push(o)}return s}function Ur(){return fe!==null&&!It}function Vr(e){const t=Rt(zn,null,!1);return Me(t,He),t.teardown=e,t}function Xe(e){ys();var t=we.f,r=!fe&&(t&Dt)!==0&&(t&dn)===0;if(r){var i=et;(i.e??=[]).push(e)}else return _s(e)}function _s(e){return Rt(Hn|Yi,e,!1)}function gn(e){return ys(),Rt(zn|Yi,e,!0)}function Wa(e){jt.ensure();const t=Rt(fn|Tn,e,!0);return(r={})=>new Promise(i=>{r.outro?mn(t,()=>{st(t),i(void 0)}):(st(t),i(void 0))})}function Br(e){return Rt(Hn,e,!1)}function Ua(e){return Rt(Ar|Tn,e,!0)}function ws(e,t=0){return Rt(zn|t,e,!0)}function se(e,t=[],r=[],i=[]){xa(i,t,r,s=>{Rt(zn,()=>e(...s.map(n)),!0)})}function Gn(e,t=0){var r=Rt(Ut|t,e,!0);return r}function Va(e,t=0){var r=Rt(Lr|t,e,!0);return r}function dt(e){return Rt(Dt|Tn,e,!0)}function bs(e){var t=e.teardown;if(t!==null){const r=nn,i=fe;Ts(!0),_t(null);try{t.call(null)}finally{Ts(r),_t(i)}}}function Gr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&Wr(()=>{s.abort(hn)});var i=r.next;(r.f&fn)!==0?r.parent=null:st(r,t),r=i}}function Ba(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Dt)===0&&st(t),t=r}}function st(e,t=!0){var r=!1;(t||(e.f&Gi)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Ga(e.nodes.start,e.nodes.end),r=!0),Gr(e,t&&!r),qn(e,0),Me(e,Vt);var i=e.nodes&&e.nodes.t;if(i!==null)for(const o of i)o.stop();bs(e);var s=e.parent;s!==null&&s.first!==null&&ks(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Ga(e,t){for(;e!==null;){var r=e===t?null:Bn(e);e.remove(),e=r}}function ks(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 mn(e,t,r=!0){var i=[];Cs(e,i,!0);var s=()=>{r&&st(e),t&&t()},o=i.length;if(o>0){var l=()=>--o||s();for(var u of i)u.out(l)}else s()}function Cs(e,t,r){if((e.f&ft)===0){e.f^=ft;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&Zt)!==0||(s.f&Dt)!==0&&(e.f&Ut)!==0;Cs(s,t,l?r:!1),s=o}}}function Yr(e){Ds(e,!0)}function Ds(e,t){if((e.f&ft)!==0){e.f^=ft,(e.f&He)===0&&(Me(e,$e),xt(e));for(var r=e.first;r!==null;){var i=r.next,s=(r.f&Zt)!==0||(r.f&Dt)!==0;Ds(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 Es(e,t){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end;r!==null;){var s=r===i?null:Bn(r);t.append(r),r=s}}let dr=!1,nn=!1;function Ts(e){nn=e}let fe=null,It=!1;function _t(e){fe=e}let we=null;function Ot(e){we=e}let wt=null;function xs(e){fe!==null&&(wt===null?wt=[e]:wt.push(e))}let at=null,ct=0,bt=null;function Ya(e){bt=e}let Ss=1,pn=0,Yt=pn;function Rs(e){Yt=e}function Is(){return++Ss}function Yn(e){var t=e.f;if((t&$e)!==0)return!0;if(t&Ge&&(e.f&=~cn),(t&Et)!==0){for(var r=e.deps,i=r.length,s=0;s<i;s++){var o=r[s];if(Yn(o)&&us(o),o.wv>e.wv)return!0}(t&yt)!==0&&Tt===null&&Me(e,He)}return!1}function Ls(e,t,r=!0){var i=e.reactions;if(i!==null&&!(wt!==null&&Dn.call(wt,e)))for(var s=0;s<i.length;s++){var o=i[s];(o.f&Ge)!==0?Ls(o,t,!1):t===o&&(r?Me(o,$e):(o.f&He)!==0&&Me(o,Et),xt(o))}}function Ps(e){var t=at,r=ct,i=bt,s=fe,o=wt,l=et,u=It,f=Yt,d=e.f;at=null,ct=0,bt=null,fe=(d&(Dt|fn))===0?e:null,wt=null,xn(e.ctx),It=!1,Yt=++pn,e.ac!==null&&(Wr(()=>{e.ac.abort(hn)}),e.ac=null);try{e.f|=Mr;var c=e.fn,g=c();e.f|=dn;var h=e.deps,v=Re?.is_fork;if(at!==null){var p;if(v||qn(e,ct),h!==null&&ct>0)for(h.length=ct+at.length,p=0;p<at.length;p++)h[ct+p]=at[p];else e.deps=h=at;if(Ur()&&(e.f&yt)!==0)for(p=ct;p<h.length;p++)(h[p].reactions??=[]).push(e)}else!v&&h!==null&&ct<h.length&&(qn(e,ct),h.length=ct);if(Qi()&&bt!==null&&!It&&h!==null&&(e.f&(Ge|Et|$e))===0)for(p=0;p<bt.length;p++)Ls(bt[p],e);if(s!==null&&s!==e){if(pn++,s.deps!==null)for(let y=0;y<r;y+=1)s.deps[y].rv=pn;if(t!==null)for(const y of t)y.rv=pn;bt!==null&&(i===null?i=bt:i.push(...bt))}return(e.f&Jt)!==0&&(e.f^=Jt),g}catch(y){return es(y)}finally{e.f^=Mr,at=t,ct=r,bt=i,fe=s,wt=o,xn(l),It=u,Yt=f}}function qa(e,t){let r=t.reactions;if(r!==null){var i=Wo.call(r,e);if(i!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[i]=r[s],r.pop())}}if(r===null&&(t.f&Ge)!==0&&(at===null||!Dn.call(at,t))){var o=t;(o.f&yt)!==0&&(o.f^=yt,o.f&=~cn),Or(o),Ma(o),qn(o,0)}}function qn(e,t){var r=e.deps;if(r!==null)for(var i=t;i<r.length;i++)qa(e,r[i])}function Rn(e){var t=e.f;if((t&Vt)===0){Me(e,He);var r=we,i=dr;we=e,dr=!0;try{(t&(Ut|Lr))!==0?Ba(e):Gr(e),bs(e);var s=Ps(e);e.teardown=typeof s=="function"?s:null,e.wv=Ss;var o}finally{dr=i,we=r}}}async function yn(){await Promise.resolve(),ba()}function n(e){var t=e.f,r=(t&Ge)!==0;if(fe!==null&&!It){var i=we!==null&&(we.f&Vt)!==0;if(!i&&(wt===null||!Dn.call(wt,e))){var s=fe.deps;if((fe.f&Mr)!==0)e.rv<pn&&(e.rv=pn,at===null&&s!==null&&s[ct]===e?ct++:at===null?at=[e]:at.push(e));else{(fe.deps??=[]).push(e);var o=e.reactions;o===null?e.reactions=[fe]:Dn.call(o,fe)||o.push(fe)}}}if(nn&&$t.has(e))return $t.get(e);if(r){var l=e;if(nn){var u=l.v;return((l.f&He)===0&&l.reactions!==null||As(l))&&(u=Hr(l)),$t.set(l,u),u}var f=(l.f&yt)===0&&!It&&fe!==null&&(dr||(fe.f&yt)!==0),d=(l.f&dn)===0;Yn(l)&&(f&&(l.f|=yt),us(l)),f&&!d&&(fs(l),Ms(l))}if(Tt?.has(e))return Tt.get(e);if((e.f&Jt)!==0)throw e.v;return e.v}function Ms(e){if(e.f|=yt,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&Ge)!==0&&(t.f&yt)===0&&(fs(t),Ms(t))}function As(e){if(e.v===Ye)return!0;if(e.deps===null)return!1;for(const t of e.deps)if($t.has(t)||(t.f&Ge)!==0&&As(t))return!0;return!1}function J(e){var t=It;try{return It=!0,e()}finally{It=t}}const Xa=["touchstart","touchmove"];function Ka(e){return Xa.includes(e)}const Xn=Symbol("events"),Os=new Set,qr=new Set;function Za(e,t,r,i={}){function s(o){if(i.capture||Xr.call(t,o),!o.cancelBubble)return Wr(()=>r?.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Mt(()=>{t.addEventListener(e,s,i)}):t.addEventListener(e,s,i),s}function ht(e,t,r,i,s){var o={capture:i,passive:s},l=Za(e,t,r,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Vr(()=>{t.removeEventListener(e,l,o)})}function ze(e,t,r){(t[Xn]??={})[e]=r}function rn(e){for(var t=0;t<e.length;t++)Os.add(e[t]);for(var r of qr)r(e)}let Ns=null;function Xr(e){var t=this,r=t.ownerDocument,i=e.type,s=e.composedPath?.()||[],o=s[0]||e.target;Ns=e;var l=0,u=Ns===e&&e[Xn];if(u){var f=s.indexOf(u);if(f!==-1&&(t===document||t===window)){e[Xn]=t;return}var d=s.indexOf(t);if(d===-1)return;f<=d&&(l=f)}if(o=s[l]||e.target,o!==t){zi(e,"currentTarget",{configurable:!0,get(){return o||r}});var c=fe,g=we;_t(null),Ot(null);try{for(var h,v=[];o!==null;){var p=o.assignedSlot||o.parentNode||o.host||null;try{var y=o[Xn]?.[i];y!=null&&(!o.disabled||e.target===o)&&y.call(o,e)}catch(m){h?v.push(m):h=m}if(e.cancelBubble||p===t||p===null)break;o=p}if(h){for(let m of v)queueMicrotask(()=>{throw m});throw h}}finally{e[Xn]=t,delete e.currentTarget,_t(c),Ot(g)}}}const Ja=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Qa(e){return Ja?.createHTML(e)??e}function ja(e){var t=Fa("template");return t.innerHTML=Qa(e.replaceAll("<!>","<!---->")),t.content}function Kr(e,t){var r=we;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function Q(e,t){var r=(t&va)!==0,i=(t&ga)!==0,s,o=!e.startsWith("<!>");return()=>{s===void 0&&(s=ja(o?e:"<!>"+e),r||(s=fr(s)));var l=i||vs?document.importNode(s,!0):s.cloneNode(!0);if(r){var u=fr(l),f=l.lastChild;Kr(u,f)}else Kr(l,l);return l}}function he(){var e=document.createDocumentFragment(),t=document.createComment(""),r=tn();return e.append(t,r),Kr(t,r),e}function L(e,t){e!==null&&e.before(t)}function Fs(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function $a(e,t){return el(e,t)}const cr=new Map;function el(e,{target:t,anchor:r,props:i={},events:s,context:o,intro:l=!0,transformError:u}){Oa();var f=void 0,d=Wa(()=>{var c=r??t.appendChild(tn());Ea(c,{pending:()=>{}},v=>{pe({});var p=et;o&&(p.c=o),s&&(i.$$events=s),f=e(v,i)||{},ye()},u);var g=new Set,h=v=>{for(var p=0;p<v.length;p++){var y=v[p];if(!g.has(y)){g.add(y);var m=Ka(y);for(const x of[t,document]){var _=cr.get(x);_===void 0&&(_=new Map,cr.set(x,_));var T=_.get(y);T===void 0?(x.addEventListener(y,Xr,{passive:m}),_.set(y,1)):_.set(y,T+1)}}}};return h(or(Os)),qr.add(h),()=>{for(var v of g)for(const m of[t,document]){var p=cr.get(m),y=p.get(v);--y==0?(m.removeEventListener(v,Xr),p.delete(v),p.size===0&&cr.delete(m)):p.set(v,y)}qr.delete(h),c!==r&&c.parentNode?.removeChild(c)}});return Zr.set(f,d),f}let Zr=new WeakMap;function tl(e,t){const r=Zr.get(e);return r?(Zr.delete(e),r(t)):Promise.resolve()}class Jr{anchor;#e=new Map;#n=new Map;#t=new Map;#i=new Set;#r=!0;constructor(t,r=!0){this.anchor=t,this.#r=r}#s=()=>{var t=Re;if(this.#e.has(t)){var r=this.#e.get(t),i=this.#n.get(r);if(i)Yr(i),this.#i.delete(r);else{var s=this.#t.get(r);s&&(this.#n.set(r,s.effect),this.#t.delete(r),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),i=s.effect)}for(const[o,l]of this.#e){if(this.#e.delete(o),o===t)break;const u=this.#t.get(l);u&&(st(u.effect),this.#t.delete(l))}for(const[o,l]of this.#n){if(o===r||this.#i.has(o))continue;const u=()=>{if(Array.from(this.#e.values()).includes(o)){var d=document.createDocumentFragment();Es(l,d),d.append(tn()),this.#t.set(o,{effect:l,fragment:d})}else st(l);this.#i.delete(o),this.#n.delete(o)};this.#r||!i?(this.#i.add(o),mn(l,u,!1)):u()}}};#o=t=>{this.#e.delete(t);const r=Array.from(this.#e.values());for(const[i,s]of this.#t)r.includes(i)||(st(s.effect),this.#t.delete(i))};ensure(t,r){var i=Re,s=ps();if(r&&!this.#n.has(t)&&!this.#t.has(t))if(s){var o=document.createDocumentFragment(),l=tn();o.append(l),this.#t.set(t,{effect:dt(()=>r(l)),fragment:o})}else this.#n.set(t,dt(()=>r(this.anchor)));if(this.#e.set(i,t),s){for(const[u,f]of this.#n)u===t?i.unskip_effect(f):i.skip_effect(f);for(const[u,f]of this.#t)u===t?i.unskip_effect(f.effect):i.skip_effect(f.effect);i.oncommit(this.#s),i.ondiscard(this.#o)}else this.#s()}}function be(e,t,r=!1){var i=new Jr(e),s=r?Zt:0;function o(l,u){i.ensure(l,u)}Gn(()=>{var l=!1;t((u,f=0)=>{l=!0,o(f,u)}),l||o(!1,null)},s)}function Ce(e,t){return t}function nl(e,t,r){for(var i=[],s=t.length,o,l=t.length,u=0;u<s;u++){let g=t[u];mn(g,()=>{if(o){if(o.pending.delete(g),o.done.add(g),o.pending.size===0){var h=e.outrogroups;Qr(or(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;Na(c),c.append(d),e.items.clear()}Qr(t,!f)}else o={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(o)}function Qr(e,t=!0){for(var r=0;r<e.length;r++)st(e[r],t)}var Hs;function oe(e,t,r,i,s,o=null){var l=e,u=new Map,f=(t&Xi)!==0;if(f){var d=e;l=d.appendChild(tn())}var c=null,g=ls(()=>{var _=r();return Hi(_)?_:_==null?[]:or(_)}),h,v=!0;function p(){m.fallback=c,rl(m,h,l,t,i),c!==null&&(h.length===0?(c.f&Bt)===0?Yr(c):(c.f^=Bt,Zn(c,null,l)):mn(c,()=>{c=null}))}var y=Gn(()=>{h=n(g);for(var _=h.length,T=new Set,x=Re,E=ps(),k=0;k<_;k+=1){var w=h[k],C=i(w,k),F=v?null:u.get(C);F?(F.v&&Sn(F.v,w),F.i&&Sn(F.i,k),E&&x.unskip_effect(F.e)):(F=il(u,v?l:Hs??=tn(),w,C,k,s,t,r),v||(F.e.f|=Bt),u.set(C,F)),T.add(C)}if(_===0&&o&&!c&&(v?c=dt(()=>o(l)):(c=dt(()=>o(Hs??=tn())),c.f|=Bt)),_>T.size&&Zo(),!v)if(E){for(const[V,P]of u)T.has(V)||x.skip_effect(P.e);x.oncommit(p),x.ondiscard(()=>{})}else p();n(g)}),m={effect:y,items:u,outrogroups:null,fallback:c};v=!1}function Kn(e){for(;e!==null&&(e.f&Dt)===0;)e=e.next;return e}function rl(e,t,r,i,s){var o=(i&la)!==0,l=t.length,u=e.items,f=Kn(e.effect.first),d,c=null,g,h=[],v=[],p,y,m,_;if(o)for(_=0;_<l;_+=1)p=t[_],y=s(p,_),m=u.get(y).e,(m.f&Bt)===0&&(m.nodes?.a?.measure(),(g??=new Set).add(m));for(_=0;_<l;_+=1){if(p=t[_],y=s(p,_),m=u.get(y).e,e.outrogroups!==null)for(const P of e.outrogroups)P.pending.delete(m),P.done.delete(m);if((m.f&Bt)!==0)if(m.f^=Bt,m===f)Zn(m,null,r);else{var T=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),sn(e,c,m),sn(e,m,T),Zn(m,T,r),c=m,h=[],v=[],f=Kn(c.next);continue}if((m.f&ft)!==0&&(Yr(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 x=v[0],E;c=x.prev;var k=h[0],w=h[h.length-1];for(E=0;E<h.length;E+=1)Zn(h[E],x,r);for(E=0;E<v.length;E+=1)d.delete(v[E]);sn(e,k.prev,w.next),sn(e,c,k),sn(e,w,x),f=x,c=w,_-=1,h=[],v=[]}else d.delete(m),Zn(m,f,r),sn(e,m.prev,m.next),sn(e,m,c===null?e.effect.first:c.next),sn(e,c,m),c=m;continue}for(h=[],v=[];f!==null&&f!==m;)(d??=new Set).add(f),v.push(f),f=Kn(f.next);if(f===null)continue}(m.f&Bt)===0&&h.push(m),c=m,f=Kn(m.next)}if(e.outrogroups!==null){for(const P of e.outrogroups)P.pending.size===0&&(Qr(or(P.done)),e.outrogroups?.delete(P));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&ft)===0&&C.push(m);for(;f!==null;)(f.f&ft)===0&&f!==e.fallback&&C.push(f),f=Kn(f.next);var F=C.length;if(F>0){var V=(i&Xi)!==0&&l===0?r:null;if(o){for(_=0;_<F;_+=1)C[_].nodes?.a?.measure();for(_=0;_<F;_+=1)C[_].nodes?.a?.fix()}nl(e,C,V)}}o&&Mt(()=>{if(g!==void 0)for(m of g)m.nodes?.a?.apply()})}function il(e,t,r,i,s,o,l,u){var f=(l&oa)!==0?(l&ua)===0?cs(r,!1,!1):en(r):null,d=(l&aa)!==0?en(s):null;return{v:f,i:d,e:dt(()=>(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&Bt)===0?t.nodes.start:r;i!==null;){var l=Bn(i);if(o.before(i),i===s)return;i=l}}function sn(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function qt(e,t,...r){var i=new Jr(e);Gn(()=>{const s=t()??null;i.ensure(s,s&&(o=>s(o,...r)))},Zt)}function jr(e,t,r){var i=new Jr(e);Gn(()=>{var s=t()??null;i.ensure(s,s&&(o=>r(o,s)))},Zt)}function Le(e,t){var r=void 0,i;Va(()=>{r!==(r=t())&&(i&&(st(i),i=null),r&&(i=dt(()=>{Br(()=>r(e))})))})}function zs(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=zs(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function sl(){for(var e,t,r=0,i="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=zs(e))&&(i&&(i+=" "),i+=t);return i}function Nt(e){return typeof e=="object"?sl(e):e??""}function ol(e,t,r){var i=e==null?"":""+e;return i===""?null:i}function Ws(e,t=!1){var r=t?" !important;":";",i="";for(var s of Object.keys(e)){var o=e[s];o!=null&&o!==""&&(i+=" "+s+": "+o+r)}return i}function $r(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function al(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($r)),s&&f.push(...Object.keys(s).map($r));var d=0,c=-1;const y=e.length;for(var g=0;g<y;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===y-1){if(c!==-1){var v=$r(e.substring(d,c).trim());if(!f.includes(v)){h!==";"&&g++;var p=e.substring(d,g).trim();r+=" "+p+";"}}d=g+1,c=-1}}}}return i&&(r+=Ws(i)),s&&(r+=Ws(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=ol(r);u==null?e.removeAttribute("class"):e.className=u,e.__className=r}return o}function ei(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 Lt(e,t,r,i){var s=e.__style;if(s!==t){var o=al(t,i);o==null?e.removeAttribute("style"):e.style.cssText=o,e.__style=t}else i&&(Array.isArray(i)?(ei(e,r?.[0],i[0]),ei(e,r?.[1],i[1],"important")):ei(e,r,i));return i}const ll=Symbol("is custom element"),ul=Symbol("is html");function xe(e,t,r,i){var s=fl(e);s[t]!==(s[t]=r)&&(t==="loading"&&(e[Xo]=r),r==null?e.removeAttribute(t):typeof r!="string"&&dl(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function fl(e){return e.__attributes??={[ll]:e.nodeName.includes("-"),[ul]:e.namespaceURI===Ki}}var Us=new Map;function dl(e){var t=e.getAttribute("is")||e.nodeName,r=Us.get(t);if(r)return r;Us.set(t,r=[]);for(var i,s=e,o=Element.prototype;o!==s;){i=Uo(s);for(var l in i)i[l].set&&r.push(l);s=Wi(s)}return r}class ti{#e=new WeakMap;#n;#t;static entries=new WeakMap;constructor(t){this.#t=t}observe(t,r){var i=this.#e.get(t)||new Set;return i.add(r),this.#e.set(t,i),this.#i().observe(t,this.#t),()=>{var s=this.#e.get(t);s.delete(r),s.size===0&&(this.#e.delete(t),this.#n.unobserve(t))}}#i(){return this.#n??(this.#n=new ResizeObserver(t=>{for(var r of t){ti.entries.set(r.target,r);for(var i of this.#e.get(r.target)||[])i(r)}}))}}var cl=new ti({box:"border-box"});function hr(e,t,r){var i=cl.observe(e,()=>r(e[t]));Br(()=>(J(()=>r(e[t])),i))}function Vs(e,t){return e===t||e?.[Wn]===t}function lt(e={},t,r,i){return Br(()=>{var s,o;return ws(()=>{s=o,o=i?.()||[],J(()=>{e!==r(...o)&&(t(e,...o),s&&Vs(r(...s),e)&&t(null,...s))})}),()=>{Mt(()=>{o&&Vs(r(...o),e)&&t(null,...o)})}}),e}function Bs(e,t,r){if(e==null)return t(void 0),Wt;const i=J(()=>e.subscribe(t,r));return i.unsubscribe?()=>i.unsubscribe():i}function hl(e){let t;return Bs(e,r=>t=r)(),t}let vr=!1,ni=Symbol();function vl(e,t,r){const i=r[t]??={store:null,source:cs(void 0),unsubscribe:Wt};if(i.store!==e&&!(ni in r))if(i.unsubscribe(),i.store=e??null,e==null)i.source.v=void 0,i.unsubscribe=Wt;else{var s=!0;i.unsubscribe=Bs(e,o=>{s?i.source.v=o:b(i.source,o)}),s=!1}return e&&ni in r?hl(e):n(i.source)}function gl(){const e={};function t(){Vr(()=>{for(var r in e)e[r].unsubscribe();zi(e,ni,{enumerable:!1,value:!0})})}return[e,t]}function ml(e){var t=vr;try{return vr=!1,[e(),vr]}finally{vr=t}}function ke(e,t,r,i){var s=(r&ca)!==0,o=(r&ha)!==0,l=i,u=!0,f=()=>(u&&(u=!1,l=o?J(i):i),l),d;if(s){var c=Wn in e||qo in e;d=En(e,t)?.set??(c&&t in e?T=>e[t]=T:void 0)}var g,h=!1;s?[g,h]=ml(()=>e[t]):g=e[t],g===void 0&&i!==void 0&&(g=f(),d&&(ta(),d(g)));var v;if(v=()=>{var T=e[t];return T===void 0?f():(u=!0,T)},(r&da)===0)return v;if(d){var p=e.$$legacy;return(function(T,x){return arguments.length>0?((!x||p||h)&&d(x?v():T),T):v()})}var y=!1,m=((r&fa)!==0?ur:ls)(()=>(y=!1,v()));s&&n(m);var _=we;return(function(T,x){if(arguments.length>0){const E=x?n(m):s?qe(T):T;return b(m,E),y=!0,l!==void 0&&(l=E),T}return nn&&y||(_.f&Vt)!==0?m.v:n(m)})}function pl(){return fe===null&&ea(),(fe.ac??=new AbortController).signal}function Jn(e){et===null&&qi(),Xe(()=>{const t=J(e);if(typeof t=="function")return t})}const yl="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(yl);function ri(e,t=void 0){return function(r){return r.key==="Enter"||r.key===" "&&!r.preventDefault()?e.call(t,r):void 0}}function Ke(e){return t=>{typeof e=="string"?t.innerText=e:e?.domNodes?t.replaceChildren(...e.domNodes):e?.html&&(t.innerHTML=e.html)}}function _l(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 ii(e){return t=>{let r=new ResizeObserver(i=>{for(let s of i)e(t,s)});return r.observe(t),()=>{r.unobserve(t)}}}function Gs(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 j(...e){return Object.assign(...e)}function _n(e){return Object.keys(e)}function wl(e){return Object.entries(e)}function si(e,t){return Object.hasOwn(e,t)}function oi(e){return Math.floor(e)}function bl(e){return Math.ceil(e)}function Ft(...e){return Math.min(...e)}function vt(...e){return Math.max(...e)}function kl(){return Symbol("ec")}function De(e){return e.length}function kt(e){return!De(e)}function Qn(e){return Array.isArray(e)}function _e(e){return typeof e=="function"}function Cl(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function ai(e){return e instanceof Date}function Dl(e){return e()}function El(e){e.forEach(Dl)}function Tl(){}const gr=e=>e;function wn(){return window.getComputedStyle(document.documentElement).direction==="rtl"}const mr=86400;function Ht(e=void 0){return e!==void 0?ai(e)?Js(e):Rl(e):Js(new Date)}function Oe(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 ai(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 G(e){return new Date(e.getTime())}function Ee(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;)In(e);return e.setUTCDate(e.getUTCDate()+r*t.days),e.setUTCSeconds(e.getUTCSeconds()+r*t.seconds),e}function pr(e,t,r=1){return Ee(e,t,-r)}function Ct(e,t=1){return e.setUTCDate(e.getUTCDate()+t),e}function In(e,t=1){return Ct(e,-t)}function Pt(e){return e.setUTCHours(0,0,0,0),e}function We(e){return new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds())}function gt(e,t=19){return e.toISOString().substring(0,t)}function tt(e,...t){return t.every(r=>e.getTime()===r.getTime())}function xl(e,t){let r=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(r>=0?r:r+7)),e}function Ys(e,t){let r=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(r<=0?r:r-7)),e}function qs(e){return typeof e=="string"&&e.length<=10}function li(e,t){return e.setUTCHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),0),e}function ve(e){return e.seconds}function Xs(e,t,r){return Ee(e,t),Zs(e,r,Ct),e}function Ks(e,t,r){return pr(e,t),Zs(e,r,In),e}function Zs(e,t,r){if(t.length&&t.length<7)for(;t.includes(e.getUTCDay());)r(e)}function Sl(e,t){e=G(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/mr+1)/7)}function Js(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 ui=kl();function Qs(e,t){e[ui]=t}function Il(e){return!!e?.[ui]}function Xt(e){return e[ui]}function js(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 on(e){return e.getBoundingClientRect()}function $s(e,t){for(;t--;)e=e.parentElement;return e}function bn(e){return on(e).height}function Ln(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=Ln(e,t,s.shadowRoot,i);if(o)return o}}return null}function jn(e,t,r,i){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r,i)}function fi(e,t=void 0){return function(r){r.stopPropagation(),e&&e.call(t,r)}}function Ll(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=j({},e),e.currentStart=We(e.currentStart),e.currentEnd=We(e.currentEnd),e.activeStart=We(e.activeStart),e.activeEnd=We(e.activeEnd),e}let Pl=1;function yr(e){return e.map(t=>{let r={id:"id"in t?String(t.id):`{generated-${Pl++}}`,resourceIds:di(t,"resourceId").map(String),allDay:t.allDay??(qs(t.start)&&qs(t.end)),start:Ht(t.start),end:Ht(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:di(t,"className"),styles:di(t,"style")};if(r.allDay){Pt(r.start);let i=G(r.end);Pt(r.end),(!tt(r.end,i)||tt(r.end,r.start))&&Ct(r.end)}return r})}function di(e,t){let r=e[t+"s"]??e[t]??[];return Qn(r)?r:[r]}function Ml(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 Al(e,t,r,i,s,o){let l=s.formatRange(e.start,t&&e.event.display!=="pointer"&&!e.zeroDuration?li(G(e.start),e.end):e.start),u;if(r&&(u=_e(r)?r({event:Je(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?[]:[eo(l,e,i)];break;default:f=[...e.event.allDay?[]:[eo(l,e,i)],js("h4",i.eventTitle,e.event.title)]}u={domNodes:f}}return[l,u]}function eo(e,t,r){return js("time",r.eventTime,e,[["datetime",gt(t.start)]])}function Ol(e,t,r){let i=t.classNames;return e&&(_e(e)&&(e=e({event:Je(t),view:Ze(r)})),i=[...Qn(e)?e:[e],...i]),i}function Je(e){return to(e,We)}function ci(e){return to(e,G)}function to(e,t){return e=j({},e),e.start=t(e.start),e.end=t(e.end),e}function hi(e,t){e.length=t.length;for(let r of e)r?.reposition()}function Pn(e,t,r,i=void 0){return(!i||e.resourceIds.includes(i.id))&&e.start<r&&e.end>t}function _r(e){return Nl(e)||Fl(e)||Hl(e)}function mt(e){return e==="background"}function Nl(e){return e==="preview"}function Fl(e){return e==="ghost"}function Hl(e){return e==="pointer"}function $n(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:tt(t,r)}}function Mn(e,t,r=!0){let i=[],s,o,l,u;for(let{gridColumn:f,gridRow:d,resource:c,dayStart:g,dayEnd:h,disabled:v}of t)!v&&Pn(e,g,h,c)&&(i.push(g),s=h,o||(o=f,l=d,u=c));if(i.length){let f=$n(e,i[0],s);return j(f,{gridColumn:o,gridRow:l,resource:u,dates:i}),r&&vi(f),[f]}return[]}function no(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 ro(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 j(e,{top:r,bottom:i}),r}const io=new WeakMap;let zl=1;function vi(e){let{event:t,gridColumn:r,gridRow:i}=e,s=io.get(t);s||(s=zl++,io.set(t,s)),e.id=`${s}-${r}-${i}`}function kn(e,t){return()=>{let{options:{locale:r}}=e,i=e.options[t],s;return J(()=>{s=_e(i)?{format:i}:new Intl.DateTimeFormat(r,i)}),{format:o=>s.format(We(o))}}}function so(e,t){return()=>{let{options:{locale:r}}=e,i=e.options[t],s;return J(()=>{if(_e(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+=Wl(c[1-v],f),g[v]=!0):d+=h.value}return d}}}}),{formatRange:(o,l)=>s(We(o),We(l))}}}function Wl(e,t){let r="";for(let i of t)i.source==e&&(r+=i.value);return r}function er(e){return wr(e,"day")}function tr(e){return wr(e,"week")}function gi(e){return wr(e,"month")}function Ul(e){return wr(e,"year")}function wr(e,t){return{...e,next:"Next "+t,prev:"Previous "+t}}function ut(e){return t=>({...t,view:e})}function Vl(e){let t,r;return e&&({start:t,end:r}=e,t&&(t=Pt(Ht(t))),r&&(r=Pt(Ht(r)))),{start:t,end:r}}function An(e,t){return t.start&&e<t.start||t.end&&e>t.end}function mi(e){let t=[];return oo(e,0,!1,t),t}function oo(e,t,r,i){let s=[];for(let o of e){let l=Bl(o);s.push(l),i.push(l);let u={level:t,children:[],hidden:r};Qs(l,u),o.children&&(u.children=oo(o.children,t+1,r||!l.expanded,i))}return s}function Bl(e){return{id:String(e.id),title:e.title||"",eventBackgroundColor:ao(e),eventTextColor:lo(e),expanded:e.expanded??!0,extendedProps:e.extendedProps??{}}}function ao(e){return e?.eventBackgroundColor}function lo(e){return e?.eventTextColor}function uo(e,t){return kt(e.resourceIds)?void 0:t.find(r=>e.resourceIds.includes(r.id))}function fo(e,t,r,i,s){let o=[];e=G(e);let l=G(e);for(Ee(e,i.min),Ee(l,i.max);e<l;)o.push([gt(e),s.format(e)]),Ee(e,t,r);let u=oi((e-l)/1e3/ve(t));return u&&u!==r&&(o.at(-1)[2]=r-u),o}function co(e,t,r,i,s){let o=Oe(e),l=Oe(t);if(r){let u=Oe(Ft(ve(o),vt(0,ve(l)-mr))),f=Oe(vt(ve(l),ve(u)+mr)),d=_e(r?.eventFilter)?r.eventFilter:c=>!mt(c.display);e:for(let c of i){let g=Ee(G(c),o),h=Ee(G(c),l),v=Ee(G(c),u),p=Ee(G(c),f);for(let y of s)if(!y.allDay&&d(y)&&y.start<p&&y.end>v){if(y.start<g){let m=vt((y.start-c)/1e3,ve(u));m<ve(o)&&(o.seconds=m)}if(y.end>h){let m=Ft((y.end-c)/1e3,ve(f));m>ve(l)&&(l.seconds=m)}if(ve(o)===ve(u)&&ve(l)===ve(f))break e}}}return{min:o,max:l}}class ho extends Map{#e=new Map;#n=B(0);#t=B(0);#i=Yt||-1;constructor(t){if(super(),t){for(var[r,i]of t)super.set(r,i);this.#t.v=super.size}}#r(t){return Yt===this.#i?B(t):en(t)}has(t){var r=this.#e,i=r.get(t);if(i===void 0){var s=super.get(t);if(s!==void 0)i=this.#r(0),r.set(t,i);else return n(this.#n),!1}return n(i),!0}forEach(t,r){this.#s(),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.#r(0),r.set(t,i);else{n(this.#n);return}}return n(i),super.get(t)}set(t,r){var i=this.#e,s=i.get(t),o=super.get(t),l=super.set(t,r),u=this.#n;if(s===void 0)s=this.#r(0),i.set(t,s),b(this.#t,super.size),At(u);else if(o!==r){At(s);var f=u.reactions===null?null:new Set(u.reactions),d=f===null||!s.reactions?.every(c=>f.has(c));d&&At(u)}return l}delete(t){var r=this.#e,i=r.get(t),s=super.delete(t);return i!==void 0&&(r.delete(t),b(this.#t,super.size),b(i,-1),At(this.#n)),s}clear(){if(super.size!==0){super.clear();var t=this.#e;b(this.#t,0);for(var r of t.values())b(r,-1);At(this.#n),t.clear()}}#s(){n(this.#n);var t=this.#e;if(this.#t.v!==t.size){for(var r of super.keys())if(!t.has(r)){var i=this.#r(0);t.set(r,i)}}for([,i]of this.#e)n(i)}keys(){return n(this.#n),super.keys()}values(){return this.#s(),super.values()}entries(){return this.#s(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return n(this.#t),super.size}}function br(e){let t=0,r=B(qe(t));return vo(e,()=>n(r),()=>!0,()=>b(r,++t,!0))}function Gl(e){let t=0,r=qe({});return vo(e,i=>r[i],(i,s)=>i!==s,i=>r[i]=++t)}function vo(e,t,r,i){return new Proxy(e,{get(s,o,l){return si(s,o)&&t(o),Reflect.get(s,o,l)},set(s,o,l,u){let f=r(s[o],l),d=Reflect.set(s,o,l,u);return f&&i(o),d}})}function Yl(e){let t={buttonText:{today:"today"},customButtons:{},customScrollbars:!1,date:new Date,datesSet:void 0,dayHeaderFormat:{weekday:"short",month:"numeric",day:"numeric"},dayHeaderAriaLabelFormat:{dateStyle:"full"},displayEventEnd:!0,duration:{weeks:1},events:[],eventAllUpdated:void 0,eventBackgroundColor:void 0,eventClassNames:void 0,eventClick:void 0,eventColor:void 0,eventContent:void 0,eventDidMount:void 0,eventFilter:void 0,eventMouseEnter:void 0,eventMouseLeave:void 0,eventOrder:void 0,eventSources:[],eventTextColor:void 0,eventTimeFormat:{hour:"numeric",minute:"2-digit"},filterEventsWithResources:!1,firstDay:0,headerToolbar:{start:"title",center:"",end:"today prev,next"},height:void 0,hiddenDays:[],highlightedDates:[],icons:{},lazyFetching:!0,loading:void 0,locale:void 0,refetchResourcesOnNavigate:!1,resources:[],selectable:!1,theme:{active:"ec-active",bgEvent:"ec-bg-event",bgEvents:"ec-bg-events",body:"ec-body",button:"ec-button",buttonGroup:"ec-button-group",calendar:"ec",colHead:"ec-col-head",customScrollbars:"ec-custom-scrollbars",day:"ec-day",dayHead:"ec-day-head",disabled:"ec-disabled",event:"ec-event",eventBody:"ec-event-body",eventTime:"ec-event-time",eventTitle:"ec-event-title",events:"ec-events",grid:"ec-grid",header:"ec-header",hidden:"ec-hidden",highlight:"ec-highlight",icon:"ec-icon",main:"ec-main",noBeb:"ec-no-beb",noIeb:"ec-no-ieb",today:"ec-today",title:"ec-title",toolbar:"ec-toolbar",view:"",weekdays:["ec-sun","ec-mon","ec-tue","ec-wed","ec-thu","ec-fri","ec-sat"]},titleFormat:{year:"numeric",month:"short",day:"numeric"},validRange:void 0,view:void 0,viewDidMount:void 0,views:{}};for(let r of e)r.createOptions?.(t);return t}function ql(e){let t={date:r=>Pt(Ht(r)),duration:Oe,events:yr,eventSources:Ml,hiddenDays:r=>[...new Set(r)],highlightedDates:r=>r.map(i=>Pt(Ht(i))),resources:r=>Qn(r)?mi(r):r,validRange:Vl};for(let r of e)r.createParsers?.(t);return t}const go=["buttonText","customButtons","icons","theme"];function Xl(e,t){let r=Yl(e),i=ql(e);r=pi(r,i),t=pi(t,i);let s=yi(r,"views")??{},o=yi(t,"views")??{},l=Gl({});j(l,r),t.view&&(l.view=t.view);let u={},f={},d={},c=new Set([..._n(s),..._n(o)]);for(let g of c){let h=o[g]??{},v=mo(r,s[g]??s[h.type]??{}),p=mo(v,t,h),y=yi(p,"component");delete p.view;for(let m of _n(p))si(l,m)?(u[m]||(u[m]=[]),u[m].push(go.includes(m)?_=>p[m]=_e(_)?_(v[m]):_:_=>p[m]=_)):delete p[m];f[g]=p,d[g]=y}return j(l,f[l.view]),[l,function(h,v,p=!0){si(l,h)&&(p||(h in i?v=i[h](v):Cl(v)?v={...v}:Qn(v)&&(v=[...v])),u[h]?.forEach(y=>y(v)),l[h]=v)},function(h){return j(l,f[h]),d[h]}]}function pi(e,t){let r={...e};for(let i of _n(t))i in r&&(r[i]=t[i](r[i]));if(e.views){r.views={};for(let i of _n(e.views))r.views[i]=pi(e.views[i],t)}return r}function yi(e,t){let r=e[t];return delete e[t],r}function mo(...e){let t={};for(let r of e){let i={};for(let s of go)_e(r[s])&&(i[s]=r[s](t[s]));t={...t,...r,...i}}return t}function Kl(e,t){let r=[];for(let i of _n(e))e[i]!==t[i]&&r.push([i,e[i]]);return r}function Zl(e){return()=>{let{options:{view:t}}=e;J(()=>{let r=e.setViewOptions(t);e.extensions={},e.features=[],e.viewComponent=r(e)})}}function Jl(e,t){return()=>{let{activeRange:r,fetchedRange:{events:i},viewDates:s,options:{events:o,eventSources:l,lazyFetching:u}}=e;J(()=>{po(l.map(f=>_e(f.events)?f.events:f),o,yr,f=>e.events=br(f),r,i,s,!0,u,t)})}}function Ql(e,t){return()=>{let{activeRange:r,fetchedRange:{resources:i},viewDates:s,options:{lazyFetching:o,refetchResourcesOnNavigate:l,resources:u}}=e;J(()=>{po(Qn(u)?[]:[u],u,mi,f=>e.resources=br(f),r,i,s,l,o,t)})}}function po(e,t,r,i,s,o,l,u,f,d){if(!kt(l)){if(kt(e)){i(t);return}if((u||!o.start)&&(!f||!o.start||o.start>s.start||o.end<s.end)){let c=[],g=y=>d.stop(),h=y=>{c=c.concat(r(y)),i(c),d.stop()},v=gt(s.start),p=gt(s.end);for(let y of e)if(d.start(),_e(y)){let m=y(u?{start:We(s.start),end:We(s.end),startStr:v,endStr:p}:{},h,g);m!==void 0&&Promise.resolve(m).then(h,g)}else{let m=_e(y.extraParams)?y.extraParams():j({},y.extraParams);u&&(m.start=v,m.end=p),m=new URLSearchParams(m);let _=y.url,T={},x;["GET","HEAD"].includes(y.method)?_+=(_.includes("?")?"&":"?")+m:(T["content-type"]="application/x-www-form-urlencoded;charset=UTF-8",x=String(m)),fetch(_,{method:y.method,headers:T,body:x,signal:pl(),credentials:"same-origin"}).then(E=>E.json()).then(h).catch(g)}j(o,s)}}}function jl(e){let t=0;function r(i){let{options:{loading:s}}=e;_e(s)&&s(i)}return{start:()=>++t===1&&r(!0),stop:()=>--t===0&&r(!1)}}function $l(e){return()=>{let t=setInterval(()=>{let r=Ht(),i=Pt(G(r));e.now=r,tt(e.today,i)||(e.today=i)},1e3);return()=>clearInterval(t)}}function eu(e){return()=>{let{activeRange:t,options:{datesSet:r}}=e;J(()=>{_e(r)&&r({start:We(t.start),end:We(t.end),startStr:gt(t.start),endStr:gt(t.end),view:Ze(e.view)})})}}function tu(e){let t;return()=>{let{filteredEvents:r,options:{eventAllUpdated:i}}=e;J(()=>{_e(i)&&(t||(t=setTimeout(()=>{t=null,i({view:Ze(e.view)})})))})}}function nu(e){return()=>{let{options:{view:t,viewDidMount:r}}=e;J(()=>{_e(r)&&yn().then(()=>r({view:Ze(e.view)}))})}}function ru(e){return()=>{let{options:{date:t,duration:r,firstDay:i}}=e,s,o;return J(()=>{s=G(t),r.months?s.setUTCDate(1):r.inWeeks&&Ys(s,i),o=Ee(G(s),r)}),{start:s,end:o}}}function iu(e){return()=>{let{currentRange:t,extensions:{activeRange:r}}=e,i,s;return J(()=>{i=G(t.start),s=G(t.end)}),r?r(i,s):{start:i,end:s}}}function su(e){return()=>{let{events:t,options:{eventFilter:r,eventOrder:i,filterEventsWithResources:s,resources:o,view:l}}=e,u=[...t];return J(()=>{if(_e(r)){let f=t.map(Je),d=Ze(e.view);u=u.filter((c,g)=>r({event:Je(c),index:g,events:f,view:d}))}s&&(u=u.filter(f=>o.some(d=>f.resourceIds.includes(d.id)))),_e(i)?u.sort((f,d)=>i(Je(f),Je(d))):u.sort((f,d)=>f.start-d.start||d.allDay-f.allDay)}),u}}function ou(e){return()=>{let{options:t,activeRange:r}=e,{hiddenDays:i}=t,s=[];return J(()=>{let o=Pt(G(r.start)),l=Pt(G(r.end));for(;o<l;)i.includes(o.getUTCDay())||s.push(G(o)),Ct(o);if(!s.length&&i.length&&i.length<7){for(;i.includes(o.getUTCDay());)Ct(o);yn().then(()=>{e.setOption("date",o)})}}),s}}function au(e){return()=>{let{currentRange:t,intlTitle:r}=e,i;return J(()=>{i=r.formatRange(t.start,In(G(t.end)))}),i}}function lu(e){return()=>{let{activeRange:t,currentRange:r,viewTitle:i,options:{view:s}}=e,o;return J(()=>{o=Ll(s,i,r,t)}),o}}class uu{#e;get auxComponents(){return n(this.#e)}set auxComponents(t){b(this.#e,t,!0)}#n;get currentRange(){return n(this.#n)}set currentRange(t){b(this.#n,t)}#t;get activeRange(){return n(this.#t)}set activeRange(t){b(this.#t,t)}#i;get fetchedRange(){return n(this.#i)}set fetchedRange(t){b(this.#i,t,!0)}#r;get events(){return n(this.#r)}set events(t){b(this.#r,t)}#s;get filteredEvents(){return n(this.#s)}set filteredEvents(t){b(this.#s,t)}#o;get mainEl(){return n(this.#o)}set mainEl(t){b(this.#o,t,!0)}#a;get now(){return n(this.#a)}set now(t){b(this.#a,t,!0)}#l;get resources(){return n(this.#l)}set resources(t){b(this.#l,t)}#f;get today(){return n(this.#f)}set today(t){b(this.#f,t,!0)}#u;get intlEventTime(){return n(this.#u)}set intlEventTime(t){b(this.#u,t)}#d;get intlDayHeader(){return n(this.#d)}set intlDayHeader(t){b(this.#d,t)}#h;get intlDayHeaderAL(){return n(this.#h)}set intlDayHeaderAL(t){b(this.#h,t)}#v;get intlTitle(){return n(this.#v)}set intlTitle(t){b(this.#v,t)}#c;get viewDates(){return n(this.#c)}set viewDates(t){b(this.#c,t)}#_;get viewTitle(){return n(this.#_)}set viewTitle(t){b(this.#_,t)}#w;get view(){return n(this.#w)}set view(t){b(this.#w,t)}#b;get viewComponent(){return n(this.#b)}set viewComponent(t){b(this.#b,t,!0)}#k;get extensions(){return n(this.#k)}set extensions(t){b(this.#k,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)}#y;get iClass(){return n(this.#y)}set iClass(t){b(this.#y,t,!0)}options;setOption;setViewOptions;constructor(t,r){[this.options,this.setOption,this.setViewOptions]=Xl(t,r),this.#e=B(qe([])),this.#n=a(ru(this)),this.#t=a(iu(this)),this.#i=B(qe({events:{},resources:{}})),this.#r=B(br(this.options.events)),this.#s=a(su(this)),this.#o=B(),this.#a=B(qe(Ht())),this.#l=B(br(this.options.resources)),this.#f=B(qe(Pt(Ht()))),this.#u=a(so(this,"eventTimeFormat")),this.#d=a(kn(this,"dayHeaderFormat")),this.#h=a(kn(this,"dayHeaderAriaLabelFormat")),this.#v=a(so(this,"titleFormat")),this.#c=a(ou(this)),this.#_=a(au(this)),this.#w=a(lu(this)),this.#b=B(),this.#k=B(qe({})),this.#p=B(qe([])),this.#g=B(qe({})),this.iEvents=new ho,this.#m=B(qe(gr)),this.#y=B();for(let i of t)i.initState?.(this);this.#C()}#C(){let t=jl(this);gn(Zl(this)),gn($l(this)),Xe(Jl(this,t)),Xe(Ql(this,t)),Xe(eu(this)),Xe(tu(this)),Xe(nu(this))}}var fu=Q("<h2></h2>"),du=Q("<button><i></i></button>"),cu=Q("<button><i></i></button>"),hu=Q("<button> </button>"),vu=Q("<button></button>"),gu=Q("<button> </button>");function yo(e,t){pe(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),p=a(()=>r.options.view),y=B(!1),m=B(!1),_=B(!1),T=!1;gn(()=>{n(l),n(v),t.buttons,J(()=>{T||(T=!0,t.buttons.includes("prev")&&(b(y,!1),n(v).start&&b(y,x(E),!0)),t.buttons.includes("next")&&(b(m,!1),n(v).end&&b(m,x(k),!0)),t.buttons.includes("today")&&(b(_,n(s)>=n(i).start&&n(s)<n(i).end,!0),!n(_)&&(n(v).start||n(v).end)&&b(_,x(w),!0)),yn().then(()=>T=!1))})});function x(V){let P=n(d);V();let X=n(l).every(ae=>An(ae,n(v)));return r.setOption("date",P),X}function E(){r.setOption("date",Ks(G(n(d)),n(c),n(g)))}function k(){r.setOption("date",Xs(G(n(d)),n(c),n(g)))}function w(){r.setOption("date",G(n(s)))}var C=he(),F=ne(C);oe(F,17,()=>t.buttons,Ce,(V,P)=>{var X=he(),ae=ne(X);{var de=S=>{var M=fu();Le(M,()=>Ke(n(o))),se(()=>N(M,1,n(h).title)),L(S,M)},ee=S=>{var M=du(),U=ue(M);se(()=>{N(M,1,`${n(h).button??""} ec-${n(P)??""}`),xe(M,"aria-label",n(u).prev),xe(M,"title",n(u).prev),M.disabled=n(y),N(U,1,`${n(h).icon??""} ec-${n(P)??""}`)}),ze("click",M,E),L(S,M)},K=S=>{var M=cu(),U=ue(M);se(()=>{N(M,1,`${n(h).button??""} ec-${n(P)??""}`),xe(M,"aria-label",n(u).next),xe(M,"title",n(u).next),M.disabled=n(m),N(U,1,`${n(h).icon??""} ec-${n(P)??""}`)}),ze("click",M,k),L(S,M)},le=S=>{var M=hu(),U=ue(M);se(()=>{N(M,1,`${n(h).button??""} ec-${n(P)??""}`),M.disabled=n(_),Fs(U,n(u)[n(P)])}),ze("click",M,w),L(S,M)},Z=S=>{var M=vu();Le(M,()=>Ke(n(f)[n(P)].text)),se(()=>N(M,1,Nt([n(h).button,`ec-${n(P)}`,n(f)[n(P)].active&&n(h).active]))),ze("click",M,function(...U){n(f)[n(P)].click?.apply(this,U)}),L(S,M)},A=S=>{var M=gu(),U=ue(M);se(()=>{N(M,1,Nt([n(h).button,`ec-${n(P)}`,n(p)===n(P)&&n(h).active])),Fs(U,n(u)[n(P)])}),ze("click",M,()=>r.setOption("view",n(P))),L(S,M)};be(ae,S=>{n(P)==="title"?S(de):n(P)==="prev"?S(ee,1):n(P)==="next"?S(K,2):n(P)==="today"?S(le,3):n(f)[n(P)]?S(Z,4):n(P)!==""&&S(A,5)})}L(V,X)}),L(e,C),ye()}rn(["click"]);var mu=Q("<div><!></div>"),pu=Q("<div></div>"),yu=Q("<nav></nav>");function _u(e,t){pe(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=yu();oe(l,21,()=>_n(n(o)),Ce,(u,f)=>{var d=pu();oe(d,21,()=>n(o)[n(f)],Ce,(c,g)=>{var h=he(),v=ne(h);{var p=m=>{var _=mu(),T=ue(_);yo(T,{get buttons(){return n(g)}}),se(()=>N(_,1,n(s).buttonGroup)),L(m,_)},y=m=>{yo(m,{get buttons(){return n(g)}})};be(v,m=>{n(g).length>1?m(p):m(y,!1)})}L(c,h)}),se(()=>N(d,1,`ec-${n(f)??""}`)),L(u,d)}),se(()=>N(l,1,n(s).toolbar)),L(e,l),ye()}var wu=Q("<div><!> <!> <!></div>");function bu(e,t){pe(t,!0);let r=ke(t,"plugins",19,()=>[]),i=ke(t,"options",19,()=>({})),s=new uu(r(),i());Un("state",s);let o=a(()=>s.auxComponents),l=a(()=>s.features),u=a(()=>s.events),f=a(()=>s.interaction),d=a(()=>s.iClass),c=a(()=>s.view),g=a(()=>s.viewComponent),h=a(()=>s.options.date),v=a(()=>s.options.duration),p=a(()=>s.options.height),y=a(()=>s.options.hiddenDays),m=a(()=>s.options.customScrollbars),_=a(()=>s.options.theme),T={...i()};gn(()=>{for(let[D,z]of Kl(i(),T))J(()=>{x(D,z)});j(T,i())});function x(D,z){return s.setOption(D,z,!1),this}function E(D){let z=s.options[D];return ai(z)?We(z):z}function k(){return s.fetchedRange.resources={},this}function w(){return s.fetchedRange.events={},this}function C(){return n(u).map(Je)}function F(D){D=String(D);for(let z of n(u))if(z.id===D)return Je(z);return null}function V(D){return D=yr([D])[0],n(u).push(D),Je(D)}function P(D){let z=String(D.id),I=n(u).findIndex(ge=>ge.id===z);return I>=0?(D=yr([D])[0],n(u)[I]=D,Je(D)):null}function X(D){D=String(D);let z=n(u).findIndex(I=>I.id===D);return z>=0&&n(u).splice(z,1),this}function ae(){return Ze(n(c))}function de(){return n(f).action?.unselect(),this}function ee(D,z){let I=Ln(D,z);if(I){let ge=Xt(I)(D,z);return ge.date=We(ge.date),ge}return null}function K(){return s.setOption("date",Xs(G(n(h)),n(v),n(y))),this}function le(){return s.setOption("date",Ks(G(n(h)),n(v),n(y))),this}var Z={setOption:x,getOption:E,refetchResources:k,refetchEvents:w,getEvents:C,getEventById:F,addEvent:V,updateEvent:P,removeEventById:X,getView:ae,unselect:de,dateFromPoint:ee,next:K,prev:le},A=wu();let S;var M=ue(A);_u(M,{});var U=re(M,2);jr(U,()=>n(g),(D,z)=>{z(D,{})});var ie=re(U,2);return oe(ie,17,()=>n(o),Ce,(D,z)=>{var I=he(),ge=ne(I);jr(ge,()=>n(z),(Ne,Fe)=>{Fe(Ne,{})}),L(D,I)}),se(D=>{N(A,1,Nt([n(_).calendar,n(_).view,n(d)&&n(_)[n(d)],n(m)&&n(_).customScrollbars])),xe(A,"role",D),S=Lt(A,"",S,{height:n(p)})},[()=>n(l).includes("list")?"list":"table"]),L(e,A),ye(Z)}function ku(e){return()=>{let{viewDates:t,options:{duration:r,hiddenDays:i}}=e,s;return J(()=>s=r.months||r.inWeeks?7-i.length:t.length),s}}function Cu(e,t){return()=>{let{options:{highlightedDates:r,validRange:i},viewDates:s}=e,{colsCount:o}=t,l=[];return J(()=>{let u=[],f=1,d=1;for(let c of s)u.push({gridColumn:f,gridRow:d,resource:void 0,dayStart:c,dayEnd:Ct(G(c)),disabled:An(c,i),highlight:r.some(g=>tt(g,c))}),f===o&&(l.push(u),u=[],f=0,++d),++f}),l}}function Du(e,t){return()=>{let{filteredEvents:r}=e,{grid:i}=t,s=[],o=[];return J(()=>{for(let l of r)for(let u of i)mt(l.display)?l.allDay&&(o=o.concat(Mn(l,u))):s=s.concat(Mn(l,u));no(s)}),{chunks:s,bgChunks:o}}}function Eu(e,t){return()=>{let{iEvents:r}=e,{grid:i}=t,s=[];for(let[,o]of r)o&&J(()=>{for(let l of i)s=s.concat(Mn(o,l,!1))});return s}}let Tu=class{#e;get colsCount(){return n(this.#e)}set colsCount(t){b(this.#e,t)}#n;get grid(){return n(this.#n)}set grid(t){b(this.#n,t)}#t;get gridEl(){return n(this.#t)}set gridEl(t){b(this.#t,t,!0)}#i;get chunks(){return n(this.#i)}set chunks(t){b(this.#i,t)}#r;get bgChunks(){return n(this.#r)}set bgChunks(t){b(this.#r,t)}#s;get iChunks(){return n(this.#s)}set iChunks(t){b(this.#s,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(ku(t)),this.#n=a(Cu(t,this)),this.#t=B();let r=a(Du(t,this)),i=a(()=>n(r).chunks),s=a(()=>n(r).bgChunks);this.#i=a(()=>n(i)),this.#r=a(()=>n(s)),this.#s=a(Eu(t,this)),this.hiddenChunks=new ho,this.#o=a(kn(t,"dayCellFormat")),this.#a=a(kn(t,"dayPopoverFormat")),this.#l=B(null)}};var xu=Q("<div><!></div>");function kr(e,t){pe(t,!0);let r=ke(t,"el",15),i=ke(t,"allDay",3,!1),s=ke(t,"resource",3,void 0),o=ke(t,"dateFromPoint",3,()=>t.date),l=ke(t,"classes",3,gr),u=ke(t,"disabled",3,!1),f=ke(t,"highlight",3,!1),d=ke(t,"role",3,"cell"),c=ke(t,"noIeb",3,!1),g=ke(t,"noBeb",3,!1),h=a(()=>te("state")),v=a(()=>n(h).today),p=a(()=>n(h).interaction.action),y=a(()=>n(h).options.theme),m=a(()=>te("view-state")),_=a(()=>n(m).snap),T=a(()=>tt(t.date,n(v))),x=a(()=>l()([n(y).day,n(y).weekdays?.[t.date.getUTCDay()],n(T)&&n(y).today,f()&&n(y).highlight,u()&&n(y).disabled,c()&&n(y).noIeb,g()&&n(y).noBeb]));Jn(()=>{Qs(r(),(C,F)=>({allDay:i(),date:o()(C,F),resource:s(),dayEl:r(),disabled:u()}))});let E=a(()=>!u()&&n(p)?C=>n(p).select(C,n(_)):void 0);var k=xu(),w=ue(k);qt(w,()=>t.children??Wt),lt(k,C=>r(C),()=>r()),se(()=>{N(k,1,Nt(n(x))),xe(k,"role",d())}),ze("pointerdown",k,function(...C){n(E)?.apply(this,C)}),L(e,k),ye()}rn(["pointerdown"]);var Su=Q("<div></div>"),Ru=Q("<article><!></article>");function _o(e,t){pe(t,!0);let r=ke(t,"el",15),i=ke(t,"classes",3,gr),s=ke(t,"styles",3,gr),o=a(()=>te("state")),l=a(()=>n(o).intlEventTime),u=a(()=>n(o).resources),f=a(()=>n(o).view),d=a(()=>n(o).options.displayEventEnd),c=a(()=>n(o).options.eventBackgroundColor),g=a(()=>n(o).options.eventColor),h=a(()=>n(o).options.eventContent),v=a(()=>n(o).options.eventClick),p=a(()=>n(o).options.eventDidMount),y=a(()=>n(o).options.eventClassNames),m=a(()=>n(o).options.eventMouseEnter),_=a(()=>n(o).options.eventMouseLeave),T=a(()=>n(o).options.eventTextColor),x=a(()=>n(o).options.theme),E=a(()=>t.chunk.event),k=a(()=>t.chunk.event.display),w=a(()=>n(E).backgroundColor??ao(t.chunk.resource??uo(n(E),n(u)))??n(c)??n(g)),C=a(()=>n(E).textColor??lo(t.chunk.resource??uo(n(E),n(u)))??n(T)),F=a(()=>wl(s()({"background-color":n(w),color:n(C)})).map(D=>`${D[0]}:${D[1]}`).concat(n(E).styles).join(";")),V=a(()=>i()([mt(n(k))?n(x).bgEvent:n(x).event,...Ol(n(y),n(E),n(f))])),P=a(()=>Al(t.chunk,n(d),n(h),n(x),n(l),n(f))),X=a(()=>Yo(n(P),2)),ae=a(()=>n(X)[0]),de=a(()=>n(X)[1]);Jn(()=>{_e(n(p))&&n(p)({event:Je(n(E)),timeText:n(ae),el:r(),view:Ze(n(f))})});function ee(D,z){return _e(D)&&!_r(z)?I=>D({event:Je(n(E)),el:r(),jsEvent:I,view:Ze(n(f))}):void 0}let K=a(()=>!mt(n(k))&&ee(n(v),n(k))||void 0),le=a(()=>n(K)&&ri(n(K))),Z=a(()=>ee(n(m),n(k))),A=a(()=>ee(n(_),n(k)));var S=Ru();{const D=z=>{var I=Su();Le(I,()=>Ke(n(de))),se(()=>N(I,1,Nt(n(x).eventBody))),L(z,I)};var M=ue(S);{var U=z=>{var I=he(),ge=ne(I);qt(ge,()=>t.body,()=>D,()=>n(w),()=>n(C)),L(z,I)},ie=z=>{D(z)};be(M,z=>{t.body?z(U):z(ie,!1)})}lt(S,z=>r(z),()=>r())}se(()=>{N(S,1,Nt(n(V))),Lt(S,n(F)),xe(S,"role",n(K)?"button":void 0),xe(S,"tabindex",n(K)?0:void 0)}),ze("click",S,function(...D){n(K)?.apply(this,D)}),ze("keydown",S,function(...D){n(le)?.apply(this,D)}),ht("mouseenter",S,function(...D){n(Z)?.apply(this,D)}),ht("mouseleave",S,function(...D){n(A)?.apply(this,D)}),ze("pointerdown",S,function(...D){t.onpointerdown?.apply(this,D)}),L(e,S),ye()}rn(["click","keydown","pointerdown"]);var Iu=Q("<div><!></div>");function nr(e,t){pe(t,!0);let r=ke(t,"weekday",3,!0),i=ke(t,"colSpan",3,1),s=ke(t,"ariaHidden",3,!1),o=ke(t,"disabled",3,!1),l=ke(t,"highlight",3,!1),u=a(()=>te("state")),f=a(()=>n(u).today),d=a(()=>n(u).options.theme);var c=Iu(),g=ue(c);qt(g,()=>t.children),se(h=>{N(c,1,h),xe(c,"role",s()?null:"columnheader"),xe(c,"aria-colspan",s()||i()<=1?null:i()),xe(c,"aria-colindex",s()?null:t.colIndex),xe(c,"aria-hidden",s()?"true":null)},[()=>Nt([t.className??n(d).colHead,r()&&n(d).weekdays?.[t.date.getUTCDay()],r()&&tt(t.date,n(f))&&n(d).today,l()&&n(d).highlight,o()&&n(d).disabled])]),L(e,c),ye()}var Lu=Q("<time></time>");function Cr(e,t){pe(t,!0);let r=ke(t,"alPrefix",3,""),i=a(()=>te("state")),s=a(()=>n(i).intlDayHeader),o=a(()=>n(i).intlDayHeaderAL);var l=Lu();Le(l,()=>Ke(n(s).format(t.date))),se((u,f)=>{xe(l,"datetime",u),xe(l,"aria-label",`${r()??""}${f??""}`)},[()=>gt(t.date,10),()=>n(o).format(t.date)]),L(e,l),ye()}function Dr(e,t){pe(t,!0);let r=ke(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(()=>p=>n(s)(p,n(d)));function h(p){return n(o)?.draggable(p)?y=>n(o).drag(p,y,t.forceDate,t.forceMargin,n(f)):n(o)?.noAction}let v=a(()=>!mt(n(c))&&!_r(n(c))?h(n(d)):void 0);_o(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(y){r(y)},body:(y,m=Wt)=>{var _=he(),T=ne(_);{var x=k=>{var w=he(),C=ne(w);jr(C,()=>n(l),(F,V)=>{V(F,{get chunk(){return t.chunk},get axis(){return t.axis},get forceDate(){return t.forceDate},get forceMargin(){return t.forceMargin},children:(P,X)=>{var ae=he(),de=ne(ae);qt(de,m),L(P,ae)},$$slots:{default:!0}})}),L(k,w)},E=k=>{var w=he(),C=ne(w);qt(C,m),L(k,w)};be(T,k=>{n(l)?k(x):k(E,!1)})}L(y,_)},$$slots:{body:!0}}),ye()}var Pu=Q("<time></time>"),Mu=Q("<span></span>"),Au=Q('<a role="button" tabindex="0" aria-haspopup="dialog"></a>'),Ou=Q("<div><!> <!></div> <div><!></div>",1);function Nu(e,t){pe(t,!0);const r=()=>vl(n(d),"$firstDay",i),[i,s]=gl();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),p=a(()=>l.hiddenChunks),y=a(()=>l.intlDayCell),m=a(()=>t.day.dayStart),_=a(()=>t.day.disabled),T=a(()=>t.day.highlight),x=a(()=>n(m).getUTCMonth()!==n(f).getUTCMonth()),E=a(()=>P=>[...P,n(x)&&n(g).otherMonth]),k=a(()=>n(h)&&n(m).getUTCDay()===(n(d)?1:0)),w=a(()=>{let P;if(n(k)){let X=Sl(n(m),r());n(v)?P=_e(n(v))?n(v)({date:We(n(m)),week:X}):n(v):P="W"+String(X).padStart(2,"0")}return P}),C=a(()=>n(p).get(n(m).getTime())),F=a(()=>{let P="";if(n(C)){let X="+"+n(C).length+" more";n(c)?P=_e(n(c))?n(c)({num:n(C).length,text:X}):n(c):P=X}return P});function V(){l.popupDay=t.day}kr(e,{get date(){return n(m)},allDay:!0,get classes(){return n(E)},get disabled(){return n(_)},get highlight(){return n(T)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},children:(P,X)=>{var ae=Ou(),de=ne(ae),ee=ue(de);{var K=ie=>{var D=Pu();Le(D,()=>Ke(n(y).format(n(m)))),se(z=>xe(D,"datetime",z),[()=>gt(n(m),10)]),L(ie,D)},le=a(()=>n(u).includes("dayNumber"));be(ee,ie=>{n(le)&&ie(K)})}var Z=re(ee,2);{var A=ie=>{var D=Mu();Le(D,()=>Ke(n(w))),se(()=>N(D,1,n(g).weekNumber)),L(ie,D)};be(Z,ie=>{n(k)&&ie(A)})}var S=re(de,2),M=ue(S);{var U=ie=>{var D=Au(),z=a(()=>fi(V)),I=a(()=>ri(V)),ge=a(fi);Le(D,()=>Ke(n(F))),ze("click",D,function(...Ne){n(z)?.apply(this,Ne)}),ze("keydown",D,function(...Ne){n(I)?.apply(this,Ne)}),ze("pointerdown",D,function(...Ne){n(ge)?.apply(this,Ne)}),L(ie,D)};be(M,ie=>{n(C)&&ie(U)})}se(()=>{N(de,1,n(g).dayHead),N(S,1,n(g).dayFoot)}),L(P,ae)},$$slots:{default:!0}}),ye(),s()}rn(["click","keydown","pointerdown"]);function Er(e,t){pe(t,!0);let r=ke(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=B(void 0),g=B(1),h=B(!1),v=a(()=>t.chunk.event),p=a(()=>t.chunk.event.display),y=a(()=>n(u).children.item((t.chunk.gridRow-1)*n(l)+t.chunk.gridColumn-1));Xe(()=>{r()||b(g,bn(n(y).firstElementChild)||1,!0)});let m=a(()=>k=>{if(k["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,k["grid-row"]=t.chunk.gridRow,!mt(n(p))){let w=r()?1:n(g);if(n(v)._margin){let[C,F]=n(v)._margin;C>w&&t.chunk.gridRow===F&&(w=C)}k["margin-block-start"]=`${w}px`}return n(h)&&(k.visibility="hidden"),k});function _(){b(g,ro(t.chunk,bn(n(c)),bn(n(y).firstElementChild)||1),!0)}function T(){if(n(s)===!0){let k=bn(n(y))-x(n(y));if(b(h,t.chunk.bottom>k),n(h))for(let w of t.chunk.dates){let C=w.getTime();if(n(f).has(C)){let F=n(f).get(C);F.includes(t.chunk)||n(f).set(C,[...F,t.chunk])}else n(f).set(C,[t.chunk])}}else b(h,!1),n(f).size&&n(f).clear()}function x(k){let w=0;for(let C=0;C<t.chunk.dates.length&&(w=vt(w,bn(k.lastElementChild)),k=k.nextElementSibling,!!k);++C);return w}var E={reposition:_,hide:T};{let k=a(()=>r()&&n(d).dayStart),w=a(()=>[n(g),t.chunk.gridRow]);Dr(e,{get chunk(){return t.chunk},get styles(){return n(m)},axis:"x",get forceDate(){return n(k)},get forceMargin(){return n(w)},get el(){return n(c)},set el(C){b(c,C,!0)}})}return ye(E)}var Fu=Q('<dialog closedby="closerequest"><header><time></time> <a role="button" tabindex="0">×</a></header> <div></div></dialog>');function Hu(e,t){pe(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=B(void 0),v=B(""),p=a(()=>n(g).gridColumn),y=a(()=>n(g).gridRow),m=a(()=>n(g).dayStart),_=a(()=>n(g).dayEnd),T=a(()=>{let ee=[];for(let K of n(f))K.gridRow===n(y)&&K.gridColumn<=n(p)&&K.gridColumn+K.dates.length>n(p)&&ee.push(j({},K,$n(K.event,n(m),n(_))));return ee.sort((K,le)=>K.top-le.top),ee});Jn(()=>{n(h).show()}),Xe(()=>{n(T).length?J(x):E()});function x(){let ee=n(d).children.item((n(y)-1)*n(u)+n(p)-1),K=on(n(h)),le=on(ee),Z=on(n(d));b(v,"");let A;if(K.width>=Z.width){A=Z.left-le.left;let M=le.right-Z.right;b(v,n(v)+`inset-inline-end:${M}px;`)}else A=(le.width-K.width)/2,le.left+A<Z.left?A=Z.left-le.left:le.left+A+K.width>Z.right&&(A=Z.right-le.left-K.width);b(v,n(v)+`inset-inline-start:${A}px;`);let S;K.height>=Z.height?(S=Z.top-le.top,b(v,n(v)+`block-size:${Z.height}px;`)):(S=(le.height-K.height)/2,le.top+S<Z.top?S=Z.top-le.top:le.top+S+K.height>Z.bottom&&(S=Z.bottom-le.top-K.height)),b(v,n(v)+`inset-block-start:${S}px;`)}function E(){r.popupDay=null}function k(){E(),n(s).action?.noClick()}var w=Fu();let C;var F=ue(w),V=ue(F);Le(V,()=>Ke(n(c).format(n(m))));var P=re(V,2);Ha(P);var X=a(()=>fi(E)),ae=a(()=>ri(E)),de=re(F,2);oe(de,21,()=>n(T),Ce,(ee,K)=>{Er(ee,{get chunk(){return n(K)},inPopup:!0})}),lt(w,ee=>b(h,ee),()=>n(h)),Le(w,()=>_l("pointerdown")),se(ee=>{N(w,1,n(l).popup),C=Lt(w,n(v),C,{"grid-area":`${n(y)+1} / ${n(p)}`}),N(F,1,n(l).dayHead),xe(V,"datetime",ee),xe(P,"aria-label",n(o).close),N(de,1,n(l).events)},[()=>gt(n(m),10)]),ht("pointerdownoutside",w,k),ht("close",w,E),ze("click",P,function(...ee){n(X)?.apply(this,ee)}),ze("keydown",P,function(...ee){n(ae)?.apply(this,ee)}),L(e,w),ye()}rn(["click","keydown"]);var zu=Q('<div role="columnheader"><span></span></div>'),Wu=Q('<section><header><div role="row"></div></header> <div><div></div> <div><!> <!> <!></div></div> <!></section>');function _i(e,t){pe(t,!0);let r=te("state"),i=new Tu(r);Un("view-state",i);let s=a(()=>r.intlDayHeader),o=a(()=>r.intlDayHeaderAL),l=a(()=>r.options.dayMaxEvents),u=a(()=>r.options.theme),f=a(()=>i.grid),d=a(()=>i.chunks),c=a(()=>i.bgChunks),g=a(()=>i.iChunks),h=a(()=>i.hiddenChunks),v=a(()=>i.popupDay),p=[];function y(){hi(p,n(d)),n(h).clear(),yn().then(m)}function m(){n(h).size,p.forEach(k=>k?.hide())}Xe(y),Xe(m);var _=he(),T=ne(_);{var x=k=>{var w=Wu();let C;var F=ue(w),V=ue(F);oe(V,21,()=>n(f)[0],Ce,(A,S,M)=>{let U=()=>n(S).dayStart;var ie=zu();xe(ie,"aria-colindex",1+M);var D=ue(ie);Le(D,()=>Ke(n(s).format(U()))),se((z,I)=>{N(ie,1,z),xe(D,"aria-label",I)},[()=>Nt([n(u).colHead,n(u).weekdays?.[U().getUTCDay()]]),()=>n(o).format(U())]),L(A,ie)});var P=re(F,2),X=ue(P);oe(X,21,()=>n(f),Ce,(A,S,M)=>{var U=he(),ie=ne(U);oe(ie,17,()=>n(S),Ce,(D,z,I)=>{{let ge=a(()=>I+1===De(n(S))),Ne=a(()=>M+1===De(n(f)));Nu(D,{get day(){return n(z)},get noIeb(){return n(ge)},get noBeb(){return n(Ne)}})}}),L(A,U)}),lt(X,A=>i.gridEl=A,()=>i?.gridEl);var ae=re(X,2),de=ue(ae);oe(de,19,()=>n(d),A=>A.id,(A,S,M)=>{lt(Er(A,{get chunk(){return n(S)}}),(U,ie)=>p[ie]=U,U=>p?.[U],()=>[n(M)])});var ee=re(de,2);oe(ee,17,()=>n(c),A=>A.id,(A,S)=>{Er(A,{get chunk(){return n(S)}})});var K=re(ee,2);oe(K,17,()=>n(g),Ce,(A,S)=>{Er(A,{get chunk(){return n(S)}})});var le=re(P,2);{var Z=A=>{Hu(A,{})};be(le,A=>{n(v)&&A(Z)})}lt(w,A=>r.mainEl=A,()=>r?.mainEl),Le(w,()=>ii(y)),se(A=>{N(w,1,Nt([n(u).main,n(l)===!0&&n(u).uniform])),C=Lt(w,"",C,A),N(F,1,n(u).header),N(V,1,n(u).grid),N(P,1,n(u).body),N(X,1,n(u).grid),N(ae,1,n(u).events)},[()=>({"--ec-grid-cols":De(n(f)[0]),"--ec-grid-rows":De(n(f))})]),L(k,w)},E=a(()=>!kt(n(f))&&!kt(n(f)[0]));be(T,k=>{n(E)&&k(x)})}L(e,_),ye()}const Uu={createOptions(e){j(e,{dayMaxEvents:!1,dayCellFormat:{day:"numeric"},dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},moreLinkContent:void 0,weekNumbers:!1,weekNumberContent:void 0,view:"dayGridMonth"}),j(e.buttonText,{dayGridDay:"day",dayGridMonth:"month",dayGridWeek:"week",close:"Close"}),j(e.theme,{uniform:"ec-uniform",dayFoot:"ec-day-foot",otherMonth:"ec-other-month",popup:"ec-popup",weekNumber:"ec-week-number"}),j(e.views,{dayGridDay:{buttonText:er,component:()=>_i,dayHeaderFormat:{weekday:"long"},displayEventEnd:!1,duration:{days:1},theme:ut("ec-day-grid ec-day-view")},dayGridWeek:{buttonText:tr,component:()=>_i,displayEventEnd:!1,theme:ut("ec-day-grid ec-week-view")},dayGridMonth:{buttonText:gi,component:Vu,dayHeaderFormat:{weekday:"short"},dayHeaderAriaLabelFormat:{weekday:"long"},displayEventEnd:!1,duration:{months:1},theme:ut("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:Ys(t,i),end:xl(r,i)}},_i}function wo(e,t,r){return e.startEditable??t??e.editable??r}function Bu(e,t,r){return e.durationEditable??t??e.editable??r}let wi=!1;function Gu(e){wi||(wi=!0,window.requestAnimationFrame(()=>{e(),wi=!1}))}function bo(e,t,r){return vt(t,Ft(r,e))}function Yu(e){return()=>{let{options:{editable:t,eventStartEditable:r,theme:i}}=e;e.iClasses=(s,o)=>{let{display:l}=o;return[...s,_r(l)?[i[l]]:!mt(l)&&wo(o,r,t)?[i.draggable]:[]]}}}function qu(e){return()=>{let{interaction:t,mainEl:r}=e;if(r)return jn(r,"scroll",()=>{t.action.handleScroll(),t.pointer?.handleScroll()})}}class Xu{constructor(t){this.#e(t)}#e(t){gn(Yu(t)),Xe(qu(t))}}function Ku(e,t){pe(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),p=a(()=>r.options.eventDragStart),y=a(()=>r.options.eventDragStop),m=a(()=>r.options.eventDrop),_=a(()=>r.options.eventLongPressDelay),T=a(()=>r.options.eventResizeStart),x=a(()=>r.options.eventResizeStop),E=a(()=>r.options.eventResize),k=a(()=>r.options.longPressDelay),w=a(()=>r.options.resizeConstraint),C=a(()=>r.options.selectable),F=a(()=>r.options.select),V=a(()=>r.options.selectBackgroundColor),P=a(()=>r.options.selectConstraint),X=a(()=>r.options.selectLongPressDelay),ae=a(()=>r.options.selectMinDistance),de=a(()=>r.options.unselect),ee=a(()=>r.options.unselectAuto),K=a(()=>r.options.unselectCancel),le=a(()=>r.options.validRange);const Z=1,A=2,S=3,M=4,U=5,ie=6;let D,z,I,ge,Ne,Fe,zt,Qe,pt,Kt,an,Ae,W,Ie,Ue,H,Y,Te,q,Pe,Se,je,nt,me,Ve,rt,Be;function ln(R){return wo(R,n(h),n(g))}function On(R,O,ce,$,it){D||(D=Oi(O)?Z:ie,Cn()&&(I=R,Ai(O,it),ce&&(Fe=ce),$&&(Ve=$),Te="dragging",Nn(O)))}function Li(R,O,ce,$,it,ir,Fi,_d){D||(D=Oi(O)?ce?S:A:ie,Cn()&&(I=R,Ai(O,_d),it&&(Fe=it),ir&&(Ve=ir),Te=$==="x"?"resizingX":"resizingY",Rr()?(q=G(I.end),Y?(li(q,I.start),q>=I.end&&In(q)):(pr(q,rt),q<I.start&&(q=I.start),Fe=I.start)):(q=G(I.start),Y?(li(q,I.end),q<=I.start&&!Fi&&Ct(q)):(Ee(q,rt),q>I.end&&(q=I.end),Fe=I.end,Fi||(Fe=pr(G(Fe),rt))),Fi&&!Y&&(Be=rt)),Nn(O)))}function Pi(R,O){D||(D=Oi(R)?n(C)&&!n(o).includes("list")?M:U:ie,Cn()&&(Ai(R,O),Te="selecting",Pe=Y?Oe({day:1}):rt,I={allDay:Y,start:Fe,end:Ee(G(Fe),Pe),resourceIds:Qe?[Qe.id]:[]},Nn(R)))}function Mi(){D||(D=ie)}function Ai(R,O){window.getSelection().removeAllRanges(),Kt=Ae=R.clientX,an=W=R.clientY,rt=O?.duration;let ce=Ln(Ae,W);({allDay:Y,date:Fe,resource:Qe}=Xt(ce)(Ae,W)),Ue=n(u)!==$s(ce,3),Ie=$s(ce,1),Ao(),R.pointerType!=="mouse"&&(nt=setTimeout(()=>{D&&(z=!0,Nn(R))},(un()?n(X):n(_))??n(k)))}function Nn(R){if(z||R&&R.pointerType==="mouse"&&cd()>=(un()?n(ae):n(v))){z=!0,Ir(R),r.iClass=Te,ge||(un()?dd():fd(R,Fn()?n(T):n(p)));let O=rr(ud());if(O){let ce;if({allDay:ce,date:zt,resource:pt}=O,ce===Y){let $=Sr({},ge),it=n(w);H=Oe((zt-Fe)/1e3),Rr()?($.start=Ee(G(I.start),H),$.start>q&&($.start=q,H=Oe((q-I.start)/1e3))):($.end=Ee(G(I.end),H),Be&&Ee($.end,Be),Fn()?$.end<q&&($.end=q,H=Oe((q-I.end)/1e3)):un()?($.end<I.end?($.start=pr($.end,Pe),$.end=I.end):$.start=I.start,it=n(P)):($.start=Ee(G(I.start),H),Qe&&($.resourceIds=I.resourceIds.filter(ir=>ir!==Qe.id),$.resourceIds.push(pt.id)),it=n(d)));do{if(it!==void 0&&($=Sr(ci(I),$),it(un()?Ho($,R):zo($,I,R))===!1)){Fo(I);break}Fo($)}while(!1)}}}if(n(c)){let O=24,ce=24;Gu(()=>{me&&(Ue||(W<me.top+O&&(n(u).scrollTop+=vt(-8,(W-me.top-O)/3)),W>me.bottom-O&&(n(u).scrollTop+=Ft(8,(W-me.bottom+O)/3))),Ae<me.left+ce&&(n(u).scrollLeft+=vt(-8,(Ae-me.left-ce)/3)),Ae>me.right-ce&&(n(u).scrollLeft+=Ft(8,(Ae-me.right+ce)/3)),W<O&&window.scrollBy(0,vt(-8,(W-O)/3)),W>window.innerHeight-O&&window.scrollBy(0,Ft(8,(W-window.innerHeight+O)/3)))})}}function Po(){Cn()&&(Ao(),Nn())}function ad(R){Cn()&&R.isPrimary&&(Ae=R.clientX,W=R.clientY,Nn(R))}function ld(R){if(Se&&n(ee)&&!(n(K)&&R.target.closest(n(K)))&&Ir(R),D&&R.isPrimary){if(z)if(un()){if(Se=!0,_e(n(F))){let O=Ho(ge,R);n(F)(O)}}else{I.display=Ne;let O=Fn()?n(x):n(y);_e(O)&&O({event:Je(I),jsEvent:R,view:Ze(n(l))});let ce=ci(I);if(No(I,ge),Oo(),O=Fn()?n(E):n(m),_e(O)){let $=I,it=zo(I,ce,R);O(j(it,{revert(){No($,ce)}}))}}else if((hd()||un())&&_e(n(f))&&!je){Ae=R.clientX,W=R.clientY;let O=Ln(Ae,W);if(O){let{allDay:ce,date:$,resource:it}=Xt(O)(Ae,W);n(f)({allDay:ce,date:We($),dateStr:gt($),dayEl:O,jsEvent:R,view:Ze(n(l)),resource:it})}}Mo()}je=!1}function Mo(){z=!1,D=Kt=an=Ae=W=I=Ne=Fe=zt=Qe=pt=H=Be=Y=q=Pe=Ve=Ie=me=rt=void 0,r.iClass=void 0,nt&&(clearTimeout(nt),nt=void 0)}function ud(){return Ln(bo(Ae,me.left,me.right),bo(W,me.top,me.bottom))}function rr(R){if(R){let O=Xt(R)(Ae,W);if(O.disabled){if(!n(le).end||O.date<n(le).end)return rr(R.nextElementSibling);if(!n(le).start||O.date>n(le).start)return rr(R.previousElementSibling)}else return(un()||Fn())&&O.resource&&!ge.resourceIds.includes(O.resource.id)&&!n(o).includes("timeline")?Ae>Kt?rr(R.previousElementSibling):rr(R.nextElementSibling):O}return null}function Ao(){let R=on(n(u)),O=on(Ie),ce=R.width/n(u).offsetWidth,$=R.height/n(u).offsetHeight,it=wn();me={left:vt(0,it?R.right-n(u).clientWidth*ce:O.left+n(u).scrollLeft*ce),right:Ft(document.documentElement.clientWidth,it?O.right+n(u).scrollLeft*ce:R.left+n(u).clientWidth*ce)-2,top:vt(0,O.top+(Ue?0:n(u).scrollTop)*$),bottom:Ft(document.documentElement.clientHeight,Ue?O.bottom:R.top+n(u).clientHeight*$)-2}}function fd(R,O){_e(O)&&O({event:Je(I),jsEvent:R,view:Ze(n(l))}),Ne=I.display,I.display="preview",ge=ci(I),Ve!==void 0&&(ge._margin=Ve),Be&&Ee(ge.end,Be),I.display="ghost",n(i).length=n(i).length}function dd(){ge={id:"{select}",allDay:I.allDay,start:I.start,title:"",display:"preview",extendedProps:{},backgroundColor:n(V),resourceIds:I.resourceIds,classNames:[],styles:[]}}function Oo(){ge=void 0,n(s).delete("action")}function Sr(R,O){return R.start=O.start,R.end=O.end,R.resourceIds=O.resourceIds,{...R}}function No(R,O){Sr(R,O),n(i).length=n(i).length}function Fo(R){ge=Sr(ge,R),n(s).set("action",ge)}function Ho(R,O){let{start:ce,end:$}=Je(R);return{start:ce,end:$,startStr:gt(R.start),endStr:gt(R.end),allDay:Y,view:Ze(n(l)),resource:Qe,jsEvent:O}}function zo(R,O,ce){let $;return Fn()?$=Rr()?{startDelta:H,endDelta:Oe(0)}:{startDelta:Oe(0),endDelta:H}:$={delta:H,oldResource:Qe!==pt?Qe:void 0,newResource:Qe!==pt?pt:void 0},j($,{event:Je(R),oldEvent:Je(O),view:Ze(n(l)),jsEvent:ce}),$}function cd(){return Math.sqrt(Math.pow(Ae-Kt,2)+Math.pow(W-an,2))}function Fn(){return D===A||Rr()}function Rr(){return D===S}function hd(){return D===U}function un(){return D===M}function Cn(){return D&&D<U}function Oi(R){return R.isPrimary&&(R.pointerType!=="mouse"||R.buttons&1)}function Ir(R){Se&&(Se=!1,Oo(),_e(n(de))&&n(de)({jsEvent:R,view:Ze(n(l))}))}gn(()=>{n(l),Ir()});function vd(){je=!0}function gd(R){if(Cn()){let O=R.target,ce=[],$=()=>El(ce);ce.push(jn(O,"touchmove",Ni(()=>z))),ce.push(jn(O,"touchend",$)),ce.push(jn(O,"touchcancel",$))}}function Ni(R){return O=>{R()&&O.preventDefault()}}Jn(()=>jn(window,"touchmove",Tl,{passive:!1}));var md={draggable:ln,drag:On,resize:Li,select:Pi,noAction:Mi,handleScroll:Po,unselect:Ir,noClick:vd};ht("pointermove",St,ad),ht("pointerup",St,ld),ht("pointercancel",St,Mo),ht("scroll",St,Po);var pd=a(()=>Ni(Cn));ht("selectstart",St,function(...R){n(pd)?.apply(this,R)});var yd=a(()=>Ni(()=>nt));return ht("contextmenu",St,function(...R){n(yd)?.apply(this,R)}),ht("touchstart",St,gd,void 0,!0),ye(md)}function Zu(e,t){pe(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 y=Ln(o,l);if(y&&!n(i).has("action")){let{allDay:m,date:_,resource:T,disabled:x}=Xt(y)(o,l);if(!x){u||g(),u.allDay=m,u.start=_,u.end=Ee(G(_),n(s)),u.resourceIds=T?[T.id]:[],n(i).set("pointer",{...u});return}}h()}function d(){f()}function c(y){v(y)&&(o=y.clientX,l=y.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(y){return y.isPrimary&&y.pointerType==="mouse"}var p={handleScroll:d};return ht("pointermove",St,c),ht("scroll",St,d),ye(p)}var Ju=Q("<div></div>"),Qu=Q("<div></div>"),ju=Q("<!> <!> <!>",1);function $u(e,t){pe(t,!0);let r=ke(t,"forceDate",3,void 0),i=ke(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),p=a(()=>!mt(n(v))&&!_r(n(v))&&Bu(n(h),n(u),n(l)));function y(w){return C=>n(o).resize(n(h),C,w,t.axis,r(),i(),t.chunk.zeroDuration,n(g))}var m=ju(),_=ne(m);{var T=w=>{var C=Ju(),F=a(()=>y(!0));se(()=>N(C,1,`${n(d).resizer??""} ${n(d).start??""}`)),ze("pointerdown",C,function(...V){n(F)?.apply(this,V)}),L(w,C)};be(_,w=>{n(p)&&n(f)&&w(T)})}var x=re(_,2);qt(x,()=>t.children);var E=re(x,2);{var k=w=>{var C=Qu(),F=a(()=>y(!1));se(()=>N(C,1,n(d).resizer)),ze("pointerdown",C,function(...V){n(F)?.apply(this,V)}),L(w,C)};be(E,w=>{n(p)&&w(k)})}L(e,m),ye()}rn(["pointerdown"]);var ef=Q("<!> <!>",1);function tf(e,t){pe(t,!0);let r=te("state");new Xu(r);let i=a(()=>r.interaction),s=a(()=>r.options.pointer);n(i).resizer=$u;var o=ef(),l=ne(o);lt(Ku(l,{}),d=>n(i).action=d,()=>n(i)?.action);var u=re(l,2);{var f=d=>{lt(Zu(d,{}),c=>n(i).pointer=c,()=>n(i)?.pointer)};be(u,d=>{n(s)&&d(f)})}L(e,o),ye()}const nf={createOptions(e){j(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:""}),j(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(tf)}};let rf=class{#e;get intlListDay(){return n(this.#e)}set intlListDay(t){b(this.#e,t)}#n;get intlListDaySide(){return n(this.#n)}set intlListDaySide(t){b(this.#n,t)}constructor(t){this.#e=a(kn(t,"listDayFormat")),this.#n=a(kn(t,"listDaySideFormat"))}};var sf=Q("<div></div> <!>",1);function of(e,t){pe(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=Wt,c=Wt,g=Wt)=>{var h=sf(),v=ne(h);let p;var y=re(v,2);qt(y,d),se(()=>{N(v,1,n(s).eventTag),p=Lt(v,"",p,{"background-color":c()})}),L(f,h)};let u=a(()=>n(i).action?.noAction);_o(e,{get chunk(){return t.chunk},get styles(){return n(o)},get onpointerdown(){return n(u)},body:l,$$slots:{body:!0}})}ye()}var af=Q("<h4><time></time> <time></time></h4> <!>",1);function lf(e,t){pe(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(_=>tt(_,t.date))),g=a(()=>An(t.date,n(l))),h=a(()=>gt(t.date,10)),v=a(()=>{let _=[];if(!n(g)){let T=t.date,x=Ct(G(t.date));for(let E of n(i))if(!mt(E.display)&&Pn(E,T,x)){let k=$n(E,T,x);_.push(k)}}return _});var p=he(),y=ne(p);{var m=_=>{kr(_,{get date(){return t.date},allDay:!0,role:"listitem",get disabled(){return n(g)},get highlight(){return n(c)},children:(T,x)=>{var E=af(),k=ne(E),w=ue(k);Le(w,()=>Ke(n(f).format(t.date)));var C=re(w,2);Le(C,()=>Ke(n(d).format(t.date)));var F=re(k,2);oe(F,17,()=>n(v),V=>V.event,(V,P)=>{of(V,{get chunk(){return n(P)}})}),se(()=>{N(k,1,n(o).dayHead),xe(w,"datetime",n(h)),N(C,1,n(o).daySide),xe(C,"datetime",n(h))}),L(T,E)},$$slots:{default:!0}})};be(y,_=>{n(v).length&&_(m)})}L(e,p),ye()}var uf=Q("<div></div>"),ff=Q("<section><!></section>");function df(e,t){pe(t,!0);let r=te("state"),i=new rf(r);Un("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 _=!0;if(!kt(n(l))){let T=n(l)[0],x=Ct(G(n(l).at(-1)));for(let E of n(s))if(!mt(E.display)&&E.start<x&&E.end>T){_=!1;break}}return _}),g=a(()=>_e(n(f))?n(f)():n(f));function h(_){_e(n(u))&&n(u)({jsEvent:_,view:Ze(n(o))})}var v=ff(),p=ue(v);{var y=_=>{var T=uf();Le(T,()=>Ke(n(g))),se(()=>N(T,1,n(d).noEvents)),ze("click",T,h),L(_,T)},m=_=>{var T=he(),x=ne(T);oe(x,17,()=>n(l),Ce,(E,k)=>{lf(E,{get date(){return n(k)}})}),L(_,T)};be(p,_=>{n(c)?_(y):_(m,!1)})}lt(v,_=>r.mainEl=_,()=>r?.mainEl),se(()=>N(v,1,n(d).main)),L(e,v),ye()}rn(["click"]);const cf={createOptions(e){j(e,{listDayFormat:{weekday:"long"},listDaySideFormat:{year:"numeric",month:"long",day:"numeric"},noEventsClick:void 0,noEventsContent:"No events",view:"listWeek"}),j(e.buttonText,{listDay:"list",listWeek:"list",listMonth:"list",listYear:"list"}),j(e.theme,{daySide:"ec-day-side",eventTag:"ec-event-tag",noEvents:"ec-no-events"}),j(e.views,{listDay:{buttonText:er,component:Tr,duration:{days:1},theme:ut("ec-list ec-day-view")},listWeek:{buttonText:tr,component:Tr,duration:{weeks:1},theme:ut("ec-list ec-week-view")},listMonth:{buttonText:gi,component:Tr,duration:{months:1},theme:ut("ec-list ec-month-view")},listYear:{buttonText:Ul,component:Tr,duration:{years:1},theme:ut("ec-list ec-year-view")}})}};function Tr(e){return e.features=["list"],df}function bi(e,t,r=!0){let i=[];for(let{gridColumn:s,gridRow:o,resource:l,start:u,end:f,disabled:d}of t)if(!d&&Pn(e,u,f,l)){let c=$n(e,u,f);j(c,{gridColumn:s,gridRow:o,resource:l,top:(c.start-u)/1e3,height:(c.end-c.start)/1e3,maxHeight:(f-c.start)/1e3}),r&&vi(c),i.push(c)}return i}function hf(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 vf(e){let t="all-day",r;return e?(r=_e(e)?e({text:t}):e,typeof r=="string"&&(r={html:r})):r={html:t},r}function ki(e){e.extensions.activeRange=(t,r)=>{let{options:{slotMaxTime:i}}=e;if(i.days||i.seconds>mr){Ee(In(r),i);let s=In(G(r));s<t&&(t=s)}return{start:t,end:r}}}function Ci(e){"scrollTime"in e||(j(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}),j(e.theme,{nowIndicator:"ec-now-indicator",sidebar:"ec-sidebar",slot:"ec-slot"}))}function ko(e){"allDaySlot"in e||(j(e,{allDayContent:void 0,allDaySlot:!0,slotEventOverlap:!0}),j(e.theme,{allDay:"ec-all-day"}))}function Di(e){"scrollTime"in e||j(e,{scrollTime:Oe,slotDuration:Oe,slotLabelInterval:t=>t!==void 0?Oe(t):void 0,slotMaxTime:Oe,slotMinTime:Oe,snapDuration:t=>t!==void 0?Oe(t):void 0})}function Co(e){"resourceLabelContent"in e||(e.filterResourcesWithEvents=!1,e.resourceLabelContent=void 0,e.resourceLabelDidMount=void 0)}function gf(e,t){return()=>{let{viewDates:r,options:{highlightedDates:i,validRange:s}}=e,{slotTimeLimits:o}=t,l=[];return J(()=>{let u=1;for(let f of r)l.push({gridColumn:u,gridRow:1,resource:void 0,start:Ee(G(f),o.min),end:Ee(G(f),o.max),dayStart:f,dayEnd:Ct(G(f)),disabled:An(f,s),highlight:i.some(d=>tt(d,f))}),++u}),[l]}}function mf(e,t){return()=>{let{filteredEvents:r}=e,{grid:i}=t,s=[],o=[],l=[],u=[];return J(()=>{for(let f of r)for(let d of i)mt(f.display)?(o=o.concat(bi(f,d)),f.allDay&&(u=u.concat(Mn(f,d)))):f.allDay?l=l.concat(Mn(f,d)):s=s.concat(bi(f,d));hf(s),no(l)}),{chunks:s,bgChunks:o,allDayChunks:l,allDayBgChunks:u}}}function pf(e,t){return()=>{let{iEvents:r}=e,{grid:i}=t,s=[],o=[];for(let[,l]of r)l&&J(()=>{for(let u of i)l.allDay?o=o.concat(Mn(l,u,!1)):s=s.concat(bi(l,u,!1))});return{iChunks:s,allDayIChunks:o}}}function yf(e){return()=>{let{filteredEvents:t,viewDates:r,options:{flexibleSlotTimeLimits:i,slotMinTime:s,slotMaxTime:o}}=e,l;return J(()=>{l=co(s,o,i,r,t)}),l}}function _f(e){return()=>{let{options:{slotDuration:t,slotLabelInterval:r}}=e,i;return J(()=>{i=r===void 0?ve(t)<3600?2:1:bl(ve(r)/ve(t))||1}),i}}function wf(e,t){return()=>{let{options:{slotDuration:r}}=e,{intlSlotLabel:i,slotLabelPeriodicity:s,slotTimeLimits:o}=t,l;return J(()=>{l=fo(Pt(Ht()),r,s,o,i)}),l}}function bf(e){return()=>{let{options:{slotDuration:t,snapDuration:r}}=e;return r??=t,{duration:r,ratio:ve(r)/ve(t)}}}function Ei(){return class{#e;get intlSlotLabel(){return n(this.#e)}set intlSlotLabel(e){b(this.#e,e)}#n;get slotLabelPeriodicity(){return n(this.#n)}set slotLabelPeriodicity(e){b(this.#n,e)}#t;get sidebarWidth(){return n(this.#t)}set sidebarWidth(e){b(this.#t,e,!0)}#i;get snap(){return n(this.#i)}set snap(e){b(this.#i,e)}constructor(e){this.#e=a(kn(e,"slotLabelFormat")),this.#n=a(_f(e)),this.#t=B(0),this.#i=a(bf(e))}}}function Do(e){return class extends e{#e;get slotTimeLimits(){return n(this.#e)}set slotTimeLimits(t){b(this.#e,t)}#n;get slots(){return n(this.#n)}set slots(t){b(this.#n,t)}#t;get chunks(){return n(this.#t)}set chunks(t){b(this.#t,t)}#i;get bgChunks(){return n(this.#i)}set bgChunks(t){b(this.#i,t)}#r;get allDayChunks(){return n(this.#r)}set allDayChunks(t){b(this.#r,t)}#s;get allDayBgChunks(){return n(this.#s)}set allDayBgChunks(t){b(this.#s,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(yf(t)),this.#n=a(wf(t,this));let r=a(mf(t,this)),i=a(()=>n(r).chunks),s=a(()=>n(r).bgChunks),o=a(()=>n(r).allDayChunks),l=a(()=>n(r).allDayBgChunks);this.#t=a(()=>n(i)),this.#i=a(()=>n(s)),this.#r=a(()=>n(o)),this.#s=a(()=>n(l));let u=a(pf(t,this)),f=a(()=>n(u).iChunks),d=a(()=>n(u).allDayIChunks);this.#o=a(()=>n(f)),this.#a=a(()=>n(d))}}}let kf=class extends Do(Ei()){#e;get grid(){return n(this.#e)}set grid(t){b(this.#e,t)}constructor(t){super(t),this.#e=a(gf(t,this))}};function Cf(e){return()=>{let{activeRange:t,filteredEvents:r,resources:i,options:{filterResourcesWithEvents:s},extensions:{viewResources:o}}=e,l=o?o(i):i;return J(()=>{s&&(l=i.filter(u=>r.some(f=>!mt(f.display)&&Pn(f,t.start,t.end,u)))),l.length||(l=mi([{}]))}),l}}function Df(e,t){return()=>{let{viewDates:r,options:{datesAboveResources:i,highlightedDates:s,validRange:o}}=e,{slotTimeLimits:l,viewResources:u}=t,f=[];return J(()=>{let d=1,c=i?[r,u]:[u,r];for(let g of c[0]){let h=[];for(let v of c[1]){let p=i?g:v,y=i?v:g;h.push({gridColumn:d,gridRow:1,resource:y,start:Ee(G(p),l.min),end:Ee(G(p),l.max),dayStart:p,dayEnd:Ct(G(p)),disabled:An(p,o),highlight:s.some(m=>tt(m,p))}),++d}f.push(h)}}),f}}function Eo(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(Cf(t))}}}let Ef=class extends Eo(Do(Ei())){#e;get grid(){return n(this.#e)}set grid(t){b(this.#e,t)}constructor(t){super(t),this.#e=a(Df(t,this))}};var Tf=Q("<span></span>");function Ti(e,t){pe(t,!0);let r=ke(t,"date",3,void 0),i=ke(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=B(void 0),d=a(()=>n(l)?_e(n(l))?n(l)({resource:t.resource,date:r()?We(r()):void 0}):n(l):t.resource.title),c=B(void 0);Xe(()=>{n(d),J(()=>{r()?b(c,n(o).format(r())+", "+n(f).innerText):i()&&(b(c,void 0),i()(n(f).innerText))})}),Jn(()=>{_e(n(u))&&n(u)({resource:t.resource,date:r()?We(r()):void 0,el:n(f)})});var g=Tf();lt(g,h=>b(f,h),()=>n(f)),Le(g,()=>Ke(n(d))),se(()=>xe(g,"aria-label",n(c))),L(e,g),ye()}function To(e,t){pe(t,!0);let r=ke(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=B(void 0);function v(p,y){if(r())return n(u);{let m=on(n(h)),_=m.height/n(h).offsetHeight;return Ee(G(n(f)),n(l).duration,oi((y-m.top)/(n(s)*n(l).ratio*_)))}}kr(e,{get date(){return n(u)},get allDay(){return r()},get resource(){return n(d)},dateFromPoint:v,get disabled(){return n(c)},get highlight(){return n(g)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return n(h)},set el(p){b(h,p,!0)}}),ye()}function xi(e,t){pe(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=ve(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});Dr(e,{get chunk(){return t.chunk},get styles(){return n(l)},axis:"y"}),ye()}function Si(e,t){pe(t,!0);let r=B(void 0),i=B(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,ro(t.chunk,bn(n(r))),!0)}var u={reposition:l};return Dr(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)}}),ye(u)}var xf=Q("<div></div>");function xr(e,t){pe(t,!0);let r=ke(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(tt(w.dayStart,n(l)))return w;return{}}),v=a(()=>n(h).gridColumn),p=a(()=>n(h).start),y=a(()=>n(h).end),m=a(()=>{if(n(o)<n(p)||n(o)>n(y))return null;let w=ve(n(u));return(n(o)-n(p))/1e3/w*n(f)}),_=a(()=>({root:n(s),rootMargin:wn()?`0px -${n(g)+5.5}px 0px 0px`:`0px 0px 0px -${n(g)+5.5}px`,threshold:0}));function T(w,C){w.classList.toggle(n(d).hidden,!C.isIntersecting)}var x=he(),E=ne(x);{var k=w=>{var C=xf();let F;Le(C,()=>Gs(T,n(_))),se(()=>{N(C,1,n(d).nowIndicator),F=Lt(C,"",F,{"grid-column":`${n(v)+1} / span ${r()??""}`,"inset-block-start":`${n(m)??""}px`})}),L(w,C)};be(E,w=>{n(v)&&n(m)!==null&&w(k)})}L(e,x),ye()}var Sf=Q('<div><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div>'),Rf=Q("<div><time></time></div>"),If=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 xo(e,t){pe(t,!0);let r=ke(t,"viewState",7),i=te("state");r()||r(new kf(i)),Un("view-state",r());let s=a(()=>i.mainEl),o=a(()=>i.viewDates),l=a(()=>i.options.allDayContent),u=a(()=>i.options.allDaySlot),f=a(()=>i.options.columnWidth),d=a(()=>i.options.nowIndicator),c=a(()=>i.options.scrollTime),g=a(()=>i.options.slotHeight),h=a(()=>i.options.slotDuration),v=a(()=>i.options.theme),p=a(()=>r().allDayChunks),y=a(()=>r().allDayBgChunks),m=a(()=>r().allDayIChunks),_=a(()=>r().bgChunks),T=a(()=>r().chunks),x=a(()=>r().iChunks),E=a(()=>r().grid),k=a(()=>r().sidebarWidth),w=a(()=>r().slots),C=a(()=>r().slotLabelPeriodicity),F=a(()=>r().slotTimeLimits),V=B(0),P=a(()=>vf(n(l)));Xe(()=>{n(c),kt(n(o))||yn().then(X)});function X(){n(s).scrollTop=((ve(n(c))-ve(n(F).min))/ve(n(h))-.5)*n(g)}let ae=[];function de(){hi(ae,n(p))}Xe(de);var ee=he(),K=ne(ee);{var le=A=>{var S=If();let M;var U=ue(S),ie=ue(U),D=re(ie,2),z=ue(D);{var I=H=>{var Y=he(),Te=ne(Y);qt(Te,()=>t.header),L(H,Y)},ge=H=>{var Y=he(),Te=ne(Y);oe(Te,17,()=>n(E)[0],Ce,(q,Pe,Se)=>{let je=()=>n(Pe).dayStart,nt=()=>n(Pe).disabled,me=()=>n(Pe).highlight;nr(q,{get date(){return je()},colIndex:1+Se,get disabled(){return nt()},get highlight(){return me()},children:(Ve,rt)=>{Cr(Ve,{get date(){return je()}})},$$slots:{default:!0}})}),L(H,Y)};be(z,H=>{t.header?H(I):H(ge,!1)})}var Ne=re(D,2);{var Fe=H=>{var Y=Sf(),Te=ue(Y);Le(Te,()=>Ke(n(P)));var q=re(Te,2);oe(q,21,()=>n(E),Ce,(me,Ve,rt)=>{var Be=he(),ln=ne(Be);oe(ln,17,()=>n(Ve),Ce,(On,Li,Pi)=>{{let Mi=a(()=>rt+1===De(n(E))&&Pi+1===De(n(Ve)));To(On,{get day(){return n(Li)},allDay:!0,get noIeb(){return n(Mi)}})}}),L(me,Be)});var Pe=re(q,2),Se=ue(Pe);oe(Se,19,()=>n(p),me=>me.id,(me,Ve,rt)=>{lt(Si(me,{get chunk(){return n(Ve)}}),(Be,ln)=>ae[ln]=Be,Be=>ae?.[Be],()=>[n(rt)])});var je=re(Se,2);oe(je,17,()=>n(y),me=>me.id,(me,Ve)=>{Si(me,{get chunk(){return n(Ve)}})});var nt=re(je,2);oe(nt,17,()=>n(m),Ce,(me,Ve)=>{Si(me,{get chunk(){return n(Ve)}})}),se(()=>{N(Y,1,n(v).allDay),N(Te,1,n(v).sidebar),N(q,1,n(v).grid),N(Pe,1,n(v).events)}),L(H,Y)};be(Ne,H=>{n(u)&&H(Fe)})}var zt=re(U,2),Qe=ue(zt);oe(Qe,21,()=>n(w),Ce,(H,Y,Te)=>{var q=Rf();let Pe;var Se=ue(q);Le(Se,()=>Ke(n(Y)[1])),se(()=>{N(q,1,Nt([n(v).slot,!Te&&n(v).hidden])),Pe=Lt(q,"",Pe,{"--ec-slot-label-periodicity":n(Y)[2]}),xe(Se,"datetime",n(Y)[0])}),L(H,q)});var pt=re(Qe,2);oe(pt,21,()=>n(E),Ce,(H,Y,Te)=>{var q=he(),Pe=ne(q);oe(Pe,17,()=>n(Y),Ce,(Se,je,nt)=>{{let me=a(()=>Te+1===De(n(E))&&nt+1===De(n(Y)));To(Se,{get day(){return n(je)},get noIeb(){return n(me)},noBeb:!0})}}),L(H,q)});var Kt=re(pt,2),an=ue(Kt);oe(an,17,()=>n(T),H=>H.id,(H,Y)=>{xi(H,{get chunk(){return n(Y)}})});var Ae=re(an,2);oe(Ae,17,()=>n(_),H=>H.id,(H,Y)=>{xi(H,{get chunk(){return n(Y)}})});var W=re(Ae,2);oe(W,17,()=>n(x),Ce,(H,Y)=>{xi(H,{get chunk(){return n(Y)}})});var Ie=re(zt,2);{var Ue=H=>{var Y=he(),Te=ne(Y);{var q=Se=>{var je=he(),nt=ne(je);qt(nt,()=>t.nowIndicator),L(Se,je)},Pe=Se=>{xr(Se,{get days(){return n(E)[0]}})};be(Te,Se=>{t.nowIndicator?Se(q):Se(Pe,!1)})}L(H,Y)};be(Ie,H=>{n(d)&&H(Ue)})}lt(S,H=>i.mainEl=H,()=>i?.mainEl),Le(S,()=>ii(de)),se(H=>{N(S,1,n(v).main),M=Lt(S,"",M,H),N(U,1,n(v).header),N(ie,1,n(v).sidebar),N(D,1,n(v).grid),N(zt,1,n(v).body),N(Qe,1,n(v).sidebar),N(pt,1,n(v).grid),N(Kt,1,n(v).events)},[()=>({"--ec-grid-cols":De(n(E))*De(n(E)[0]),"--ec-col-group-span":De(n(E)[0]),"--ec-col-width":n(f)??"minmax(0, 1fr)","--ec-slot-label-periodicity":n(C),"--ec-slot-height":`${n(g)??""}px`,"--ec-header-height":`${n(V)??""}px`,"--ec-sidebar-width":`${n(k)??""}px`})]),hr(ie,"offsetWidth",H=>r().sidebarWidth=H),hr(U,"offsetHeight",H=>b(V,H)),L(A,S)},Z=a(()=>!kt(n(E))&&!kt(n(E)[0]));be(K,A=>{n(Z)&&A(le)})}L(e,ee),ye()}var Lf=Q("<!> <!>",1);function Pf(e,t){pe(t,!0);let r=te("state"),i=new Ef(r),s=a(()=>r.today),o=a(()=>r.mainEl),l=a(()=>r.viewDates),u=a(()=>r.options.scrollTime),f=a(()=>r.options.datesAboveResources),d=a(()=>r.options.theme),c=a(()=>i.grid),g=a(()=>i.sidebarWidth),h=qe([]);Xe(()=>{n(f)&&(n(l),n(u),yn().then(v))});function v(){if(n(s)>=n(l)[0]&&n(s)<=n(l).at(-1))for(let p of n(c)){let y=p[0];if(tt(y.dayStart,n(s))){n(o).scrollLeft=(n(o).scrollWidth-n(g))/(De(n(c))*De(p))*(y.gridColumn-1)*(wn()?-1:1);break}}}xo(e,{get viewState(){return i},header:m=>{var _=Lf(),T=ne(_);oe(T,17,()=>n(c),Ce,(w,C,F)=>{const V=a(()=>{const{dayStart:P,resource:X,disabled:ae,highlight:de}=n(C)[0];return{date:P,resource:X,disabled:ae,highlight:de}});{let P=a(()=>De(n(c)[0])>1?n(d).colGroup:void 0),X=a(()=>De(n(C))),ae=a(()=>1+F*De(n(C))),de=a(()=>n(f)&&n(V).disabled),ee=a(()=>n(f)&&n(V).highlight);nr(w,{get date(){return n(V).date},get className(){return n(P)},get weekday(){return n(f)},get colSpan(){return n(X)},get colIndex(){return n(ae)},get disabled(){return n(de)},get highlight(){return n(ee)},children:(K,le)=>{var Z=he(),A=ne(Z);{var S=U=>{Cr(U,{get date(){return n(V).date}})},M=U=>{Ti(U,{get resource(){return n(V).resource},setLabel:ie=>h[F]=ie+", "})};be(A,U=>{n(f)?U(S):U(M,!1)})}L(K,Z)},$$slots:{default:!0}})}});var x=re(T,2);{var E=w=>{var C=he(),F=ne(C);oe(F,17,()=>n(c),Ce,(V,P,X)=>{var ae=he(),de=ne(ae);oe(de,17,()=>n(P),Ce,(ee,K,le)=>{const Z=a(()=>{const{dayStart:A,resource:S,disabled:M,highlight:U}=n(K);return{date:A,resource:S,disabled:M,highlight:U}});{let A=a(()=>1+le+X*De(n(P)));nr(ee,{get date(){return n(Z).date},get colIndex(){return n(A)},get disabled(){return n(Z).disabled},get highlight(){return n(Z).highlight},children:(S,M)=>{var U=he(),ie=ne(U);{var D=I=>{Ti(I,{get resource(){return n(Z).resource},get date(){return n(Z).date}})},z=I=>{Cr(I,{get date(){return n(Z).date},get alPrefix(){return h[X]}})};be(ie,I=>{n(f)?I(D):I(z,!1)})}L(S,U)},$$slots:{default:!0}})}}),L(V,ae)}),L(w,C)},k=a(()=>De(n(c)[0])>1);be(x,w=>{n(k)&&w(E)})}L(m,_)},nowIndicator:m=>{var _=he(),T=ne(_);{var x=k=>{{let w=a(()=>n(c).flat()),C=a(()=>De(n(c)[0]));xr(k,{get days(){return n(w)},get span(){return n(C)}})}},E=k=>{var w=he(),C=ne(w);{var F=X=>{var ae=he(),de=ne(ae);oe(de,17,()=>n(c),Ce,(ee,K)=>{xr(ee,{get days(){return n(K)}})}),L(X,ae)},V=a(()=>De(n(c)[0])>1),P=X=>{{let ae=a(()=>n(c).flat()),de=a(()=>De(n(c)));xr(X,{get days(){return n(ae)},get span(){return n(de)}})}};be(C,X=>{n(V)?X(F):X(P,!1)})}L(k,w)};be(T,k=>{n(f)?k(x):k(E,!1)})}L(m,_)},$$slots:{header:!0,nowIndicator:!0}}),ye()}const Mf={createOptions(e){ko(e),Ci(e),Co(e),j(e,{datesAboveResources:!1,view:"resourceTimeGridWeek"}),j(e.buttonText,{resourceTimeGridDay:"resources",resourceTimeGridWeek:"resources"}),j(e.theme,{colGroup:"ec-col-group"}),j(e.views,{resourceTimeGridDay:{buttonText:er,component:So,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:ut("ec-resource ec-time-grid ec-day-view")},resourceTimeGridWeek:{buttonText:tr,component:So,duration:{weeks:1},theme:ut("ec-resource ec-time-grid ec-week-view")}})},createParsers(e){Di(e)}};function So(e){return ki(e),Pf}function Ri(e,t,r,i=!0){let s=[],o,l,u,f,d,c,g=0;for(let{gridColumn:h,gridRow:v,resource:p,dayStart:y,dayEnd:m,start:_,end:T,disabled:x}of t)x||(r?Pn(e,y,m,p)&&(s.length||(o=y,u=h,f=v,d=p),s.push(y),l=T):Pn(e,_,T,p)&&(s.length||(o=_,u=h,f=v,d=p,c=vt(e.start-_,0)/1e3),s.push(y),l=T,g+=(Ft(T,e.end)-vt(_,e.start))/1e3));if(s.length){let h=$n(e,o,l);return j(h,{gridColumn:u,gridRow:f,resource:d,dates:s,left:c,width:g}),i&&vi(h),[h]}return[]}function Af(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 Of(e,t,r){let i=1,s=i+t,o=e.day;o.sort((l,u)=>(l.top??Number.POSITIVE_INFINITY)-(u.top??Number.POSITIVE_INFINITY));for(let l of o)if(!(l===e||!("top"in l))&&(r||e.start<l.end&&e.end>l.start)&&i<l.bottom&&s>l.top){let u=l.bottom-i+1;i+=u,s+=u}return j(e,{top:i,bottom:s}),i}function Nf(e,t){return e[t.getTime()]??{min:Oe(0),max:Oe("24:00:00")}}function Ff(e,t){return()=>{let{viewDates:r,options:{highlightedDates:i,validRange:s}}=e,{dayTimeLimits:o,viewResources:l}=t,u=[];return J(()=>{let f=1;for(let d of l){let c=[],g=1;for(let h of r){let v=o[h.getTime()];c.push({gridColumn:g,gridRow:f,resource:d,start:Ee(G(h),v.min),end:Ee(G(h),v.max),dayStart:h,dayEnd:Ct(G(h)),disabled:An(h,s),highlight:i.some(p=>tt(p,h))}),++g}u.push(c),++f}}),u}}function Hf(e,t){return()=>{let{filteredEvents:r}=e,{grid:i,monthView:s}=t,o=[],l=[];return J(()=>{for(let u of r)for(let f of i)mt(u.display)?(!s||u.allDay)&&(l=l.concat(Ri(u,f,s))):o=o.concat(Ri(u,f,s));Af(o)}),{chunks:o,bgChunks:l}}}function zf(e,t){return()=>{let{iEvents:r}=e,{grid:i,monthView:s}=t,o=[];for(let[,l]of r)l&&J(()=>{for(let u of i)o=o.concat(Ri(l,u,s,!1))});return o}}function Wf(e){return()=>{let{filteredEvents:t,viewDates:r,options:{flexibleSlotTimeLimits:i,slotMinTime:s,slotMaxTime:o}}=e,l={};return J(()=>{for(let u of r)l[u.getTime()]=co(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 J(()=>{for(let f of r){let d=f.getTime();u[d]=d in s?fo(f,i,l,s[d],o):[]}}),u}}function Vf(e){return()=>{let{resources:t}=e,r;return J(()=>{r=t.some(i=>Xt(i).children.length)}),r}}function Bf(e){return()=>{let{options:{slotDuration:t}}=e,r;return J(()=>{r=!ve(t)}),r}}class Gf extends Eo(Ei()){#e;get dayTimeLimits(){return n(this.#e)}set dayTimeLimits(t){b(this.#e,t)}#n;get daySlots(){return n(this.#n)}set daySlots(t){b(this.#n,t)}#t;get grid(){return n(this.#t)}set grid(t){b(this.#t,t)}#i;get monthView(){return n(this.#i)}set monthView(t){b(this.#i,t)}#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)}#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(Wf(t)),this.#n=a(Uf(t,this)),this.#t=a(Ff(t,this)),this.#i=a(Bf(t));let r=a(Hf(t,this)),i=a(()=>n(r).chunks),s=a(()=>n(r).bgChunks);this.#r=a(()=>n(i)),this.#s=a(()=>n(s)),this.#o=a(zf(t,this)),this.#a=a(Vf(t))}}function Yf(e,t){pe(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=B(void 0);function v(p,y){if(n(o))return n(u);{let m=on(n(h)),_=m.width/n(h).offsetWidth;return Ee(G(n(f)),n(l).duration,oi((wn()?m.right-p:p-m.left)/(n(i)*n(l).ratio*_)))}}kr(e,{get allDay(){return n(o)},get date(){return n(u)},get resource(){return n(d)},dateFromPoint:v,get disabled(){return n(c)},get highlight(){return n(g)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return n(h)},set el(p){b(h,p,!0)}}),ye()}function Ii(e,t){pe(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=B(void 0),f=B(1),d=a(()=>t.chunk.event),c=a(()=>v=>{if(v["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,v["grid-row"]=t.chunk.gridRow,!n(l)){let y=t.chunk.left/ve(n(i))*n(s);v["inset-inline-start"]=`${y}px`,v["inline-size"]=`${t.chunk.width/ve(n(i))*n(s)}px`}let p=n(f);if(n(d)._margin){let[y,m]=n(d)._margin;t.chunk.gridRow===m&&(p=y)}return v["margin-block-start"]=`${p}px`,v});function g(){b(f,Of(t.chunk,bn(n(u)),n(l)),!0)}var h={reposition:g};{let v=a(()=>[n(f),t.chunk.gridRow]);Dr(e,{get chunk(){return t.chunk},get styles(){return n(c)},axis:"x",get forceMargin(){return n(v)},get el(){return n(u)},set el(p){b(u,p,!0)}})}return ye(h)}var qf=Q("<span></span>"),Xf=Q("<button></button>"),Kf=Q("<!> <span><!></span>",1);function Zf(e,t){pe(t,!0);let r=ke(t,"resource",7),i=a(()=>te("state")),s=a(()=>n(i).resources),o=a(()=>n(i).view),l=a(()=>n(i).options.buttonText),u=a(()=>n(i).options.icons),f=a(()=>n(i).options.resourceExpand),d=a(()=>n(i).options.theme),c=B({}),g=a(()=>r().expanded),h=a(()=>n(l)[n(g)?"collapse":"expand"]);gn(()=>{b(c,Xt(r()))});function v(E){r().expanded=b(g,!n(g)),p(n(c).children),n(s).length=n(s).length,_e(n(f))&&n(f)({resource:r(),jsEvent:E,view:Ze(n(o))})}function p(E){for(let k of E){let w=Xt(k);w.hidden=!n(g),k.expanded&&p(w.children)}}var y=Kf(),m=ne(y);oe(m,17,()=>Array(n(c).level),Ce,(E,k)=>{var w=qf();se(()=>N(w,1,n(d).expander)),L(E,w)});var _=re(m,2),T=ue(_);{var x=E=>{var k=Xf();Le(k,()=>Ke(n(u)[n(g)?"collapse":"expand"])),se(()=>{N(k,1,n(d).button),xe(k,"aria-label",n(h)),xe(k,"title",n(h))}),ze("click",k,v),L(E,k)};be(T,E=>{n(c).children?.length&&E(x)})}se(()=>N(_,1,n(d).expander)),L(e,y),ye()}rn(["click"]);var Jf=Q("<div></div>");function Qf(e,t){pe(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(tt(w.dayStart,n(o)))return w;return{}}),v=a(()=>n(h).gridColumn),p=a(()=>n(h).start),y=a(()=>n(h).end),m=a(()=>{if(n(s)<n(p)||n(s)>n(y))return null;let w=ve(n(l));return(n(s)-n(p))/1e3/w*n(u)}),_=a(()=>({root:n(i),rootMargin:wn()?`0px -${n(g)+1}px 0px 0px`:`0px 0px 0px -${n(g)+1}px`,threshold:0}));function T(w,C){w.classList.toggle(n(f).hidden,!C.isIntersecting)}var x=he(),E=ne(x);{var k=w=>{var C=Jf();let F;Le(C,()=>Gs(T,n(_))),se(()=>{N(C,1,n(f).nowIndicator),F=Lt(C,"",F,{"grid-column":n(v)+1,"grid-row":`2 / span ${n(c).length??""}`,"inset-inline-start":`${n(m)??""}px`})}),L(w,C)};be(E,w=>{n(v)&&n(m)!==null&&w(k)})}L(e,x),ye()}var jf=Q("<div><time></time></div>"),$f=Q('<div role="rowheader"><!> <!></div>'),ed=Q('<section><header><aside></aside> <div role="row"><!> <!></div></header> <div role="rowgroup"><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div> <!></section>');function td(e,t){pe(t,!0);let r=te("state"),i=new Gf(r);Un("view-state",i);let s=a(()=>r.mainEl),o=a(()=>r.today),l=a(()=>r.viewDates),u=a(()=>r.options.columnWidth),f=a(()=>r.options.nowIndicator),d=a(()=>r.options.scrollTime),c=a(()=>r.options.slotDuration),g=a(()=>r.options.slotHeight),h=a(()=>r.options.slotWidth),v=a(()=>r.options.theme),p=a(()=>i.chunks),y=a(()=>i.bgChunks),m=a(()=>i.iChunks),_=a(()=>i.daySlots),T=a(()=>i.dayTimeLimits),x=a(()=>i.grid),E=a(()=>i.monthView),k=a(()=>i.nestedResources),w=a(()=>i.sidebarWidth),C=a(()=>i.slotLabelPeriodicity),F=a(()=>i.viewResources),V=B(0);Xe(()=>{n(d),kt(n(l))||yn().then(P)});function P(){let Z=0,A=n(o)<n(l)[0]||n(o)>n(l).at(-1);if(n(E)){if(!A){let S=n(x)[0];for(let M of S)if(tt(M.dayStart,n(o))){n(s).scrollLeft=(n(s).scrollWidth-n(w))/De(S)*(M.gridColumn-1)*(wn()?-1:1);break}}}else{for(let S of n(l)){let M=Nf(n(T),S);if(A||tt(S,n(o))){Z+=vt(Ft(ve(n(d)),ve(M.max))-ve(M.min),0);break}else Z+=ve(M.max)-ve(M.min)}n(s).scrollLeft=Z/ve(n(c))*n(h)*(wn()?-1:1)}}let X=[];function ae(){hi(X,n(p))}Xe(ae);var de=he(),ee=ne(de);{var K=Z=>{var A=ed();let S;var M=ue(A),U=ue(M),ie=re(U,2),D=ue(ie);oe(D,17,()=>n(x)[0],Ce,(W,Ie,Ue)=>{let H=()=>n(Ie).dayStart,Y=()=>n(Ie).disabled,Te=()=>n(Ie).highlight;nr(W,{get date(){return H()},colIndex:1+Ue,get disabled(){return Y()},get highlight(){return Te()},children:(q,Pe)=>{Cr(q,{get date(){return H()}})},$$slots:{default:!0}})});var z=re(D,2);{var I=W=>{var Ie=he(),Ue=ne(Ie);oe(Ue,17,()=>n(x)[0],Ce,(H,Y)=>{let Te=()=>n(Y).dayStart,q=()=>n(Y).disabled,Pe=()=>n(Y).highlight;nr(H,{get date(){return Te()},get className(){return n(v).slots},get disabled(){return q()},get highlight(){return Pe()},ariaHidden:!0,children:(Se,je)=>{var nt=he(),me=ne(nt);oe(me,17,()=>n(_)[Te().getTime()],Ce,(Ve,rt)=>{var Be=jf();let ln;var On=ue(Be);Le(On,()=>Ke(n(rt)[1])),se(()=>{N(Be,1,n(v).slot),ln=Lt(Be,"",ln,{"--ec-slot-label-periodicity":n(rt)[2]}),xe(On,"datetime",n(rt)[0])}),L(Ve,Be)}),L(Se,nt)},$$slots:{default:!0}})}),L(W,Ie)};be(z,W=>{n(E)||W(I)})}var ge=re(M,2),Ne=ue(ge);oe(Ne,21,()=>n(F),Ce,(W,Ie)=>{var Ue=$f(),H=ue(Ue);{var Y=q=>{Zf(q,{get resource(){return n(Ie)}})};be(H,q=>{n(k)&&q(Y)})}var Te=re(H,2);Ti(Te,{get resource(){return n(Ie)}}),se(()=>N(Ue,1,n(v).rowHead)),L(W,Ue)});var Fe=re(Ne,2);oe(Fe,21,()=>n(x),Ce,(W,Ie,Ue)=>{var H=he(),Y=ne(H);oe(Y,17,()=>n(Ie),Ce,(Te,q,Pe)=>{{let Se=a(()=>Pe+1===De(n(Ie))),je=a(()=>Ue+1===De(n(x)));Yf(Te,{get day(){return n(q)},get noIeb(){return n(Se)},get noBeb(){return n(je)}})}}),L(W,H)});var zt=re(Fe,2),Qe=ue(zt);oe(Qe,19,()=>n(p),W=>W.id,(W,Ie,Ue)=>{lt(Ii(W,{get chunk(){return n(Ie)}}),(H,Y)=>X[Y]=H,H=>X?.[H],()=>[n(Ue)])});var pt=re(Qe,2);oe(pt,17,()=>n(y),W=>W.id,(W,Ie)=>{Ii(W,{get chunk(){return n(Ie)}})});var Kt=re(pt,2);oe(Kt,17,()=>n(m),Ce,(W,Ie)=>{Ii(W,{get chunk(){return n(Ie)}})});var an=re(ge,2);{var Ae=W=>{Qf(W,{})};be(an,W=>{n(f)&&!n(E)&&W(Ae)})}lt(A,W=>r.mainEl=W,()=>r?.mainEl),Le(A,()=>ii(ae)),se(W=>{N(A,1,n(v).main),S=Lt(A,"",S,W),N(M,1,n(v).header),N(U,1,n(v).sidebar),N(ie,1,n(v).grid),N(ge,1,n(v).body),N(Ne,1,n(v).sidebar),N(Fe,1,n(v).grid),N(zt,1,n(v).events)},[()=>({"--ec-grid-cols":De(n(x)[0]),"--ec-grid-rows":`${De(n(x))>1?`repeat(${De(n(x))-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(V)??""}px`,"--ec-sidebar-width":`${n(w)??""}px`})]),hr(U,"offsetWidth",W=>i.sidebarWidth=W),hr(M,"offsetHeight",W=>b(V,W)),L(Z,A)},le=a(()=>!kt(n(x))&&!kt(n(x)[0]));be(ee,Z=>{n(le)&&Z(K)})}L(e,de),ye()}const nd={createOptions(e){Ci(e),Co(e),j(e,{resourceExpand:void 0,slotWidth:32,view:"resourceTimelineWeek"}),j(e.buttonText,{expand:"Expand",collapse:"Collapse",resourceTimelineDay:"timeline",resourceTimelineWeek:"timeline",resourceTimelineMonth:"timeline"}),j(e.icons,{collapse:{html:"−"},expand:{html:"+"}}),j(e.theme,{expander:"ec-expander",rowHead:"ec-row-head",slots:"ec-slots"}),j(e.views,{resourceTimelineDay:{buttonText:er,component:Ro,displayEventEnd:!1,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:ut("ec-resource ec-timeline ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},resourceTimelineWeek:{buttonText:tr,component:Ro,displayEventEnd:!1,duration:{weeks:1},theme:ut("ec-resource ec-timeline ec-week-view")},resourceTimelineMonth:{buttonText:gi,component:Io,displayEventEnd:!1,dayHeaderFormat:{weekday:"short",day:"numeric"},duration:{months:1},slotDuration:{days:1},theme:ut("ec-resource ec-timeline ec-month-view"),titleFormat:{year:"numeric",month:"long"}}})},createParsers(e){Di(e)}};function Ro(e){return ki(e),Io(e)}function Io(e){return e.features=["timeline"],e.extensions.viewResources=t=>t.filter(r=>!Xt(r).hidden),td}const rd={createOptions(e){Ci(e),ko(e),j(e.buttonText,{timeGridDay:"day",timeGridWeek:"week"}),j(e,{view:"timeGridWeek"}),j(e.views,{timeGridDay:{buttonText:er,component:Lo,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:ut("ec-time-grid ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},timeGridWeek:{buttonText:tr,component:Lo,duration:{weeks:1},theme:ut("ec-time-grid ec-week-view")}})},createParsers(e){Di(e)}};function Lo(e){return ki(e),xo}function id(e,t,r){return $a(bu,{target:e,props:{plugins:t,options:r}})}function sd(e){return tl(e)}function od(e,t){return id(e,[Uu,nf,cf,Mf,nd,rd],t)}return sr.create=od,sr.destroy=sd,Object.defineProperty(sr,Symbol.toStringTag,{value:"Module"}),sr})({});
|
|
5
|
+
var EventCalendar=(function(sr){"use strict";var zi=Array.isArray,Ho=Array.prototype.indexOf,bn=Array.prototype.includes,or=Array.from,zo=Object.defineProperty,kn=Object.getOwnPropertyDescriptor,Wo=Object.getOwnPropertyDescriptors,Uo=Object.prototype,Vo=Array.prototype,Wi=Object.getPrototypeOf,Ui=Object.isExtensible;const Cn=()=>{};function Bo(e){for(var t=0;t<e.length;t++)e[t]()}function Vi(){var e,t,r=new Promise((i,s)=>{e=i,t=s});return{promise:r,resolve:e,reject:t}}function Go(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 Fe=2,Dn=4,Hn=8,Lr=1<<24,qt=16,Dt=32,an=64,Pr=128,pt=512,He=1024,$e=2048,Et=4096,at=8192,yt=16384,un=32768,Mr=1<<25,Xt=65536,Bi=1<<17,Yo=1<<18,En=1<<19,Gi=1<<20,Pt=1<<25,dn=65536,Ar=1<<21,Or=1<<22,Kt=1<<23,zn=Symbol("$state"),qo=Symbol("legacy props"),Xo=Symbol(""),zt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function Yi(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Ko(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Zo(e,t,r){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Jo(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Qo(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function jo(e){throw new Error("https://svelte.dev/e/effect_orphan")}function $o(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function el(){throw new Error("https://svelte.dev/e/get_abort_signal_outside_reaction")}function tl(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function nl(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function rl(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function il(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function sl(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const ol=1,ll=2,qi=4,al=8,ul=16,dl=1,fl=4,cl=8,hl=16,vl=1,gl=2,Ge=Symbol(),Xi="http://www.w3.org/1999/xhtml";function ml(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Ki(e){return e===this.v}function pl(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Zi(e){return!pl(e,this.v)}let _f=!1,Ye=null;function Tn(e){Ye=e}function ee(e){return Qi().get(e)}function Wn(e,t){return Qi().set(e,t),t}function me(e,t=!1,r){Ye={p:Ye,i:!1,c:null,e:null,s:e,x:null,r:fe,l:null}}function pe(e){var t=Ye,r=t.e;if(r!==null){t.e=null;for(var i of r)_s(i)}return e!==void 0&&(t.x=e),t.i=!0,Ye=t.p,e??{}}function Ji(){return!0}function Qi(e){return Ye===null&&Yi(),Ye.c??=new Map(yl(Ye)||void 0)}function yl(e){let t=e.p;for(;t!==null;){const r=t.c;if(r!==null)return r;t=t.p}return null}let fn=[];function ji(){var e=fn;fn=[],Bo(e)}function Wt(e){if(fn.length===0&&!Vn){var t=fn;queueMicrotask(()=>{t===fn&&ji()})}fn.push(e)}function _l(){for(;fn.length>0;)ji()}function $i(e){var t=fe;if(t===null)return le.f|=Kt,e;if((t.f&un)===0&&(t.f&Dn)===0)throw e;Zt(e,t)}function Zt(e,t){for(;t!==null;){if((t.f&Pr)!==0){if((t.f&un)===0)throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}const wl=-7169;function Me(e,t){e.f=e.f&wl|t}function Nr(e){(e.f&pt)!==0||e.deps===null?Me(e,He):Me(e,Et)}function es(e){if(e!==null)for(const t of e)(t.f&Fe)===0||(t.f&dn)===0||(t.f^=dn,es(t.deps))}function ts(e,t,r){(e.f&$e)!==0?t.add(e):(e.f&Et)!==0&&r.add(e),es(e.deps),Me(e,He)}let lr=!1;function bl(e){var t=lr;try{return lr=!1,[e(),lr]}finally{lr=t}}const Un=new Set;let Ee=null,Tt=null,Fr=null,Vn=!1,Hr=!1,xn=null,ar=null;var ns=0;let kl=1;class Jt{id=kl++;current=new Map;previous=new Map;#e=new Set;#n=new Set;#t=0;#s=0;#i=null;#r=[];#o=new Set;#l=new Set;#a=new Map;is_fork=!1;#u=!1;#d(){return this.is_fork||this.#s>0}skip_effect(t){this.#a.has(t)||this.#a.set(t,{d:[],m:[]})}unskip_effect(t){var r=this.#a.get(t);if(r){this.#a.delete(t);for(var i of r.d)Me(i,$e),this.schedule(i);for(i of r.m)Me(i,Et),this.schedule(i)}}#c(){ns++>1e3&&Dl();const t=this.#r;this.#r=[],this.apply();var r=xn=[],i=[],s=ar=[];for(const u of t)this.#h(u,r,i);if(Ee=null,s.length>0){var o=Jt.ensure();for(const u of s)o.schedule(u)}if(xn=null,ar=null,this.#d()){this.#v(i),this.#v(r);for(const[u,d]of this.#a)os(u,d)}else{this.#o.clear(),this.#l.clear();for(const u of this.#e)u(this);this.#e.clear(),rs(i),rs(r),this.#t===0&&this.#f(),this.#i?.resolve()}var a=Ee;if(this.#r.length>0){const u=a??=this;u.#r.push(...this.#r.filter(d=>!u.#r.includes(d)))}a!==null&&(Un.add(a),a.#c())}#h(t,r,i){t.f^=He;for(var s=t.first;s!==null;){var o=s.f,a=(o&(Dt|an))!==0,u=a&&(o&He)!==0,d=u||(o&at)!==0||this.#a.has(s);if(!d&&s.fn!==null){a?s.f^=He:(o&Dn)!==0?r.push(s):Yn(s)&&((o&qt)!==0&&this.#l.add(s),Rn(s));var f=s.first;if(f!==null){s=f;continue}}for(;s!==null;){var c=s.next;if(c!==null){s=c;break}s=s.parent}}}#v(t){for(var r=0;r<t.length;r+=1)ts(t[r],this.#o,this.#l)}capture(t,r){r!==Ge&&!this.previous.has(t)&&this.previous.set(t,r),(t.f&Kt)===0&&(this.current.set(t,t.v),Tt?.set(t,t.v))}activate(){Ee=this}deactivate(){Ee=null,Tt=null}flush(){try{if(Hr=!0,Ee=this,!this.#d()){for(const t of this.#o)this.#l.delete(t),Me(t,$e),this.schedule(t);for(const t of this.#l)Me(t,Et),this.schedule(t)}this.#c()}finally{ns=0,Fr=null,xn=null,ar=null,Hr=!1,Ee=null,Tt=null,Qt.clear()}}discard(){for(const t of this.#n)t(this);this.#n.clear()}#f(){if(Un.size>1){this.previous.clear();var t=Ee,r=Tt,i=!0;for(const s of Un){if(s===this){i=!1;continue}const o=[];for(const[u,d]of this.current){if(s.current.has(u))if(i&&d!==s.current.get(u))s.current.set(u,d);else continue;o.push(u)}if(o.length===0)continue;const a=[...s.current.keys()].filter(u=>!this.current.has(u));if(a.length>0){s.activate();const u=new Set,d=new Map;for(const f of o)is(f,a,u,d);if(s.#r.length>0){s.apply();for(const f of s.#r)s.#h(f,[],[])}s.deactivate()}}Ee=t,Tt=r}this.#a.clear(),Un.delete(this)}increment(t){this.#t+=1,t&&(this.#s+=1)}decrement(t,r){this.#t-=1,t&&(this.#s-=1),!(this.#u||r)&&(this.#u=!0,Wt(()=>{this.#u=!1,this.flush()}))}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#i??=Vi()).promise}static ensure(){if(Ee===null){const t=Ee=new Jt;Hr||(Un.add(Ee),Vn||Wt(()=>{Ee===t&&t.flush()}))}return Ee}apply(){}schedule(t){if(Fr=t,t.b?.is_pending&&(t.f&(Dn|Hn|Lr))!==0&&(t.f&un)===0){t.b.defer_effect(t);return}for(var r=t;r.parent!==null;){r=r.parent;var i=r.f;if(xn!==null&&r===fe&&(le===null||(le.f&Fe)===0))return;if((i&(an|Dt))!==0){if((i&He)===0)return;r.f^=He}}this.#r.push(r)}}function Cl(e){var t=Vn;Vn=!0;try{for(var r;;){if(_l(),Ee===null)return r;Ee.flush()}}finally{Vn=t}}function Dl(){try{$o()}catch(e){Zt(e,Fr)}}let Ut=null;function rs(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var i=e[r++];if((i.f&(yt|at))===0&&Yn(i)&&(Ut=new Set,Rn(i),i.deps===null&&i.first===null&&i.nodes===null&&i.teardown===null&&i.ac===null&&ks(i),Ut?.size>0)){Qt.clear();for(const s of Ut){if((s.f&(yt|at))!==0)continue;const o=[s];let a=s.parent;for(;a!==null;)Ut.has(a)&&(Ut.delete(a),o.push(a)),a=a.parent;for(let u=o.length-1;u>=0;u--){const d=o[u];(d.f&(yt|at))===0&&Rn(d)}}Ut.clear()}}Ut=null}}function is(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&Fe)!==0?is(s,t,r,i):(o&(Or|qt))!==0&&(o&$e)===0&&ss(s,t,i)&&(Me(s,$e),zr(s))}}function ss(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(bn.call(t,s))return!0;if((s.f&Fe)!==0&&ss(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function zr(e){Ee.schedule(e)}function os(e,t){if(!((e.f&Dt)!==0&&(e.f&He)!==0)){(e.f&$e)!==0?t.d.push(e):(e.f&Et)!==0&&t.m.push(e),Me(e,He);for(var r=e.first;r!==null;)os(r,t),r=r.next}}function El(e){let t=0,r=jt(0),i;return()=>{Br()&&(n(r),ws(()=>(t===0&&(i=$(()=>e(()=>Mt(r)))),t+=1,()=>{Wt(()=>{t-=1,t===0&&(i?.(),i=void 0,Mt(r))})})))}}var Tl=Xt|En;function xl(e,t,r,i){new Sl(e,t,r,i)}class Sl{parent;is_pending=!1;transform_error;#e;#n=null;#t;#s;#i;#r=null;#o=null;#l=null;#a=null;#u=0;#d=0;#c=!1;#h=new Set;#v=new Set;#f=null;#_=El(()=>(this.#f=jt(this.#u),()=>{this.#f=null}));constructor(t,r,i,s){this.#e=t,this.#t=r,this.#s=o=>{var a=fe;a.b=this,a.f|=Pr,i(o)},this.parent=fe.b,this.transform_error=s??this.parent?.transform_error??(o=>o),this.#i=Gn(()=>{this.#p()},Tl)}#w(){try{this.#r=ut(()=>this.#s(this.#e))}catch(t){this.error(t)}}#b(t){const r=this.#t.failed;r&&(this.#l=ut(()=>{r(this.#e,()=>t,()=>()=>{})}))}#k(){const t=this.#t.pending;if(t){this.is_pending=!0,this.#o=ut(()=>t(this.#e));var r=Ee;Wt(()=>{var i=this.#a=document.createDocumentFragment(),s=$t();i.append(s),this.#r=this.#m(()=>ut(()=>this.#s(s))),this.#d===0&&(this.#e.before(i),this.#a=null,hn(this.#o,()=>{this.#o=null}),this.#g(r))})}}#p(){var t=Ee;try{if(this.is_pending=this.has_pending_snippet(),this.#d=0,this.#u=0,this.#r=ut(()=>{this.#s(this.#e)}),this.#d>0){var r=this.#a=document.createDocumentFragment();Xr(this.#r,r);const i=this.#t.pending;this.#o=ut(()=>i(this.#e))}else this.#g(t)}catch(i){this.error(i)}}#g(t){this.is_pending=!1;for(const r of this.#h)Me(r,$e),t.schedule(r);for(const r of this.#v)Me(r,Et),t.schedule(r);this.#h.clear(),this.#v.clear()}defer_effect(t){ts(t,this.#h,this.#v)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#m(t){var r=fe,i=le,s=Ye;At(this.#i),_t(this.#i),Tn(this.#i.ctx);try{return Jt.ensure(),t()}catch(o){return $i(o),null}finally{At(r),_t(i),Tn(s)}}#y(t,r){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(t,r);return}this.#d+=t,this.#d===0&&(this.#g(r),this.#o&&hn(this.#o,()=>{this.#o=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(t,r){this.#y(t,r),this.#u+=t,!(!this.#f||this.#c)&&(this.#c=!0,Wt(()=>{this.#c=!1,this.#f&&Sn(this.#f,this.#u)}))}get_effect_pending(){return this.#_(),n(this.#f)}error(t){var r=this.#t.onerror;let i=this.#t.failed;if(!r&&!i)throw t;this.#r&&(it(this.#r),this.#r=null),this.#o&&(it(this.#o),this.#o=null),this.#l&&(it(this.#l),this.#l=null);var s=!1,o=!1;const a=()=>{if(s){ml();return}s=!0,o&&sl(),this.#l!==null&&hn(this.#l,()=>{this.#l=null}),this.#m(()=>{this.#p()})},u=d=>{try{o=!0,r?.(d,a),o=!1}catch(f){Zt(f,this.#i&&this.#i.parent)}i&&(this.#l=this.#m(()=>{try{return ut(()=>{var f=fe;f.b=this,f.f|=Pr,i(this.#e,()=>d,()=>a)})}catch(f){return Zt(f,this.#i.parent),null}}))};Wt(()=>{var d;try{d=this.transform_error(t)}catch(f){Zt(f,this.#i&&this.#i.parent);return}d!==null&&typeof d=="object"&&typeof d.then=="function"?d.then(u,f=>Zt(f,this.#i&&this.#i.parent)):u(d)})}}function Rl(e,t,r,i){const s=dr;var o=e.filter(h=>!h.settled);if(r.length===0&&o.length===0){i(t.map(s));return}var a=fe,u=Il(),d=o.length===1?o[0].promise:o.length>1?Promise.all(o.map(h=>h.promise)):null;function f(h){u();try{i(h)}catch(v){(a.f&yt)===0&&Zt(v,a)}ur()}if(r.length===0){d.then(()=>f(t.map(s)));return}var c=ls();function g(){Promise.all(r.map(h=>Ll(h))).then(h=>f([...t.map(s),...h])).catch(h=>Zt(h,a)).finally(()=>c())}d?d.then(()=>{u(),g(),ur()}):g()}function Il(){var e=fe,t=le,r=Ye,i=Ee;return function(o=!0){At(e),_t(t),Tn(r),o&&(e.f&yt)===0&&(i?.activate(),i?.apply())}}function ur(e=!0){At(null),_t(null),Tn(null),e&&Ee?.deactivate()}function ls(){var e=fe.b,t=Ee,r=e.is_rendered();return e.update_pending_count(1,t),t.increment(r),(i=!1)=>{e.update_pending_count(-1,t),t.decrement(r,i)}}function dr(e){var t=Fe|$e,r=le!==null&&(le.f&Fe)!==0?le:null;return fe!==null&&(fe.f|=En),{ctx:Ye,deps:null,effects:null,equals:Ki,f:t,fn:e,reactions:null,rv:0,v:Ge,wv:0,parent:r??fe,ac:null}}function Ll(e,t,r){let i=fe;i===null&&Ko();var s=void 0,o=jt(Ge),a=!le,u=new Map;return Bl(()=>{var d=fe,f=Vi();s=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).finally(ur)}catch(v){f.reject(v),ur()}var c=Ee;if(a){if((d.f&un)!==0)var g=ls();if(i.b.is_rendered())u.get(c)?.reject(zt),u.delete(c);else{for(const v of u.values())v.reject(zt);u.clear()}u.set(c,f)}const h=(v,p=void 0)=>{if(g){var y=p===zt;g(y)}if(!(p===zt||(d.f&yt)!==0)){if(c.activate(),p)o.f|=Kt,Sn(o,p);else{(o.f&Kt)!==0&&(o.f^=Kt),Sn(o,v);for(const[m,_]of u){if(u.delete(m),m===c)break;_.reject(zt)}}c.deactivate()}};f.promise.then(h,v=>h(null,v||"unknown"))}),ys(()=>{for(const d of u.values())d.reject(zt)}),new Promise(d=>{function f(c){function g(){c===s?d(o):f(s)}c.then(g,g)}f(s)})}function l(e){const t=dr(e);return Ts(t),t}function as(e){const t=dr(e);return t.equals=Zi,t}function Pl(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)it(t[r])}}function Ml(e){for(var t=e.parent;t!==null;){if((t.f&Fe)===0)return(t.f&yt)===0?t:null;t=t.parent}return null}function Wr(e){var t,r=fe;At(Ml(e));try{e.f&=~dn,Pl(e),t=Ls(e)}finally{At(r)}return t}function us(e){var t=Wr(e);if(!e.equals(t)&&(e.wv=Rs(),(!Ee?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){Me(e,He);return}en||(Tt!==null?(Br()||Ee?.is_fork)&&Tt.set(e,t):Nr(e))}function Al(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(zt),t.teardown=Cn,t.ac=null,qn(t,0),Yr(t))}function ds(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Rn(t)}let Ur=new Set;const Qt=new Map;let fs=!1;function jt(e,t){var r={f:0,v:e,reactions:null,equals:Ki,rv:0,wv:0};return r}function B(e,t){const r=jt(e);return Ts(r),r}function Ol(e,t=!1,r=!0){const i=jt(e);return t||(i.equals=Zi),i}function C(e,t,r=!1){le!==null&&(!Rt||(le.f&Bi)!==0)&&Ji()&&(le.f&(Fe|qt|Or|Bi))!==0&&(wt===null||!bn.call(wt,e))&&il();let i=r?qe(t):t;return Sn(e,i,ar)}function Sn(e,t,r=null){if(!e.equals(t)){var i=e.v;en?Qt.set(e,t):Qt.set(e,i),e.v=t;var s=Jt.ensure();if(s.capture(e,i),(e.f&Fe)!==0){const o=e;(e.f&$e)!==0&&Wr(o),Nr(o)}e.wv=Rs(),cs(e,$e,r),fe!==null&&(fe.f&He)!==0&&(fe.f&(Dt|an))===0&&(bt===null?Xl([e]):bt.push(e)),!s.is_fork&&Ur.size>0&&!fs&&Nl()}return t}function Nl(){fs=!1;for(const e of Ur)(e.f&He)!==0&&Me(e,Et),Yn(e)&&Rn(e);Ur.clear()}function Mt(e){C(e,e.v+1)}function cs(e,t,r){var i=e.reactions;if(i!==null)for(var s=i.length,o=0;o<s;o++){var a=i[o],u=a.f,d=(u&$e)===0;if(d&&Me(a,t),(u&Fe)!==0){var f=a;Tt?.delete(f),(u&dn)===0&&(u&pt&&(a.f|=dn),cs(f,Et,r))}else if(d){var c=a;(u&qt)!==0&&Ut!==null&&Ut.add(c),r!==null?r.push(c):zr(c)}}}function qe(e){if(typeof e!="object"||e===null||zn in e)return e;const t=Wi(e);if(t!==Uo&&t!==Vo)return e;var r=new Map,i=zi(e),s=B(0),o=Vt,a=u=>{if(Vt===o)return u();var d=le,f=Vt;_t(null),Ss(o);var c=u();return _t(d),Ss(f),c};return i&&r.set("length",B(e.length)),new Proxy(e,{defineProperty(u,d,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&nl();var c=r.get(d);return c===void 0?a(()=>{var g=B(f.value);return r.set(d,g),g}):C(c,f.value,!0),!0},deleteProperty(u,d){var f=r.get(d);if(f===void 0){if(d in u){const c=a(()=>B(Ge));r.set(d,c),Mt(s)}}else C(f,Ge),Mt(s);return!0},get(u,d,f){if(d===zn)return e;var c=r.get(d),g=d in u;if(c===void 0&&(!g||kn(u,d)?.writable)&&(c=a(()=>{var v=qe(g?u[d]:Ge),p=B(v);return p}),r.set(d,c)),c!==void 0){var h=n(c);return h===Ge?void 0:h}return Reflect.get(u,d,f)},getOwnPropertyDescriptor(u,d){var f=Reflect.getOwnPropertyDescriptor(u,d);if(f&&"value"in f){var c=r.get(d);c&&(f.value=n(c))}else if(f===void 0){var g=r.get(d),h=g?.v;if(g!==void 0&&h!==Ge)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return f},has(u,d){if(d===zn)return!0;var f=r.get(d),c=f!==void 0&&f.v!==Ge||Reflect.has(u,d);if(f!==void 0||fe!==null&&(!c||kn(u,d)?.writable)){f===void 0&&(f=a(()=>{var h=c?qe(u[d]):Ge,v=B(h);return v}),r.set(d,f));var g=n(f);if(g===Ge)return!1}return c},set(u,d,f,c){var g=r.get(d),h=d in u;if(i&&d==="length")for(var v=f;v<g.v;v+=1){var p=r.get(v+"");p!==void 0?C(p,Ge):v in u&&(p=a(()=>B(Ge)),r.set(v+"",p))}if(g===void 0)(!h||kn(u,d)?.writable)&&(g=a(()=>B(void 0)),C(g,qe(f)),r.set(d,g));else{h=g.v!==Ge;var y=a(()=>qe(f));C(g,y)}var m=Reflect.getOwnPropertyDescriptor(u,d);if(m?.set&&m.set.call(c,f),!h){if(i&&typeof d=="string"){var _=r.get("length"),E=Number(d);Number.isInteger(E)&&E>=_.v&&C(_,E+1)}Mt(s)}return!0},ownKeys(u){n(s);var d=Reflect.ownKeys(u).filter(g=>{var h=r.get(g);return h===void 0||h.v!==Ge});for(var[f,c]of r)c.v!==Ge&&!(f in u)&&d.push(f);return d},setPrototypeOf(){rl()}})}var xt,hs,vs,gs;function Fl(){if(xt===void 0){xt=window,hs=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;vs=kn(t,"firstChild").get,gs=kn(t,"nextSibling").get,Ui(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Ui(r)&&(r.__t=void 0)}}function $t(e=""){return document.createTextNode(e)}function fr(e){return vs.call(e)}function Bn(e){return gs.call(e)}function ue(e,t){return fr(e)}function ne(e,t=!1){{var r=fr(e);return r instanceof Comment&&r.data===""?Bn(r):r}}function re(e,t=1,r=!1){let i=e;for(;t--;)i=Bn(i);return i}function Hl(e){e.textContent=""}function ms(){return!1}function zl(e,t,r){return document.createElementNS(Xi,e,void 0)}function Wl(e,t){{const r=document.body;e.autofocus=!0,Wt(()=>{document.activeElement===r&&e.focus()})}}function Vr(e){var t=le,r=fe;_t(null),At(null);try{return e()}finally{_t(t),At(r)}}function ps(e){fe===null&&(le===null&&jo(),Qo()),en&&Jo()}function Ul(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function St(e,t){var r=fe;r!==null&&(r.f&at)!==0&&(e|=at);var i={ctx:Ye,deps:null,nodes:null,f:e|$e|pt,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null},s=i;if((e&Dn)!==0)xn!==null?xn.push(i):Jt.ensure().schedule(i);else if(t!==null){try{Rn(i)}catch(a){throw it(i),a}s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&En)===0&&(s=s.first,(e&qt)!==0&&(e&Xt)!==0&&s!==null&&(s.f|=Xt))}if(s!==null&&(s.parent=r,r!==null&&Ul(s,r),le!==null&&(le.f&Fe)!==0&&(e&an)===0)){var o=le;(o.effects??=[]).push(s)}return i}function Br(){return le!==null&&!Rt}function ys(e){const t=St(Hn,null);return Me(t,He),t.teardown=e,t}function Xe(e){ps();var t=fe.f,r=!le&&(t&Dt)!==0&&(t&un)===0;if(r){var i=Ye;(i.e??=[]).push(e)}else return _s(e)}function _s(e){return St(Dn|Gi,e)}function cn(e){return ps(),St(Hn|Gi,e)}function Vl(e){Jt.ensure();const t=St(an|En,e);return(r={})=>new Promise(i=>{r.outro?hn(t,()=>{it(t),i(void 0)}):(it(t),i(void 0))})}function Gr(e){return St(Dn,e)}function Bl(e){return St(Or|En,e)}function ws(e,t=0){return St(Hn|t,e)}function se(e,t=[],r=[],i=[]){Rl(i,t,r,s=>{St(Hn,()=>e(...s.map(n)))})}function Gn(e,t=0){var r=St(qt|t,e);return r}function Gl(e,t=0){var r=St(Lr|t,e);return r}function ut(e){return St(Dt|En,e)}function bs(e){var t=e.teardown;if(t!==null){const r=en,i=le;Es(!0),_t(null);try{t.call(null)}finally{Es(r),_t(i)}}}function Yr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&Vr(()=>{s.abort(zt)});var i=r.next;(r.f&an)!==0?r.parent=null:it(r,t),r=i}}function Yl(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Dt)===0&&it(t),t=r}}function it(e,t=!0){var r=!1;(t||(e.f&Yo)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(ql(e.nodes.start,e.nodes.end),r=!0),Me(e,Mr),Yr(e,t&&!r),qn(e,0);var i=e.nodes&&e.nodes.t;if(i!==null)for(const o of i)o.stop();bs(e),e.f^=Mr,e.f|=yt;var s=e.parent;s!==null&&s.first!==null&&ks(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function ql(e,t){for(;e!==null;){var r=e===t?null:Bn(e);e.remove(),e=r}}function ks(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 hn(e,t,r=!0){var i=[];Cs(e,i,!0);var s=()=>{r&&it(e),t&&t()},o=i.length;if(o>0){var a=()=>--o||s();for(var u of i)u.out(a)}else s()}function Cs(e,t,r){if((e.f&at)===0){e.f^=at;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,a=(s.f&Xt)!==0||(s.f&Dt)!==0&&(e.f&qt)!==0;Cs(s,t,a?r:!1),s=o}}}function qr(e){Ds(e,!0)}function Ds(e,t){if((e.f&at)!==0){e.f^=at,(e.f&He)===0&&(Me(e,$e),Jt.ensure().schedule(e));for(var r=e.first;r!==null;){var i=r.next,s=(r.f&Xt)!==0||(r.f&Dt)!==0;Ds(r,s?t:!1),r=i}var o=e.nodes&&e.nodes.t;if(o!==null)for(const a of o)(a.is_global||t)&&a.in()}}function Xr(e,t){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end;r!==null;){var s=r===i?null:Bn(r);t.append(r),r=s}}let cr=!1,en=!1;function Es(e){en=e}let le=null,Rt=!1;function _t(e){le=e}let fe=null;function At(e){fe=e}let wt=null;function Ts(e){le!==null&&(wt===null?wt=[e]:wt.push(e))}let st=null,dt=0,bt=null;function Xl(e){bt=e}let xs=1,vn=0,Vt=vn;function Ss(e){Vt=e}function Rs(){return++xs}function Yn(e){var t=e.f;if((t&$e)!==0)return!0;if(t&Fe&&(e.f&=~dn),(t&Et)!==0){for(var r=e.deps,i=r.length,s=0;s<i;s++){var o=r[s];if(Yn(o)&&us(o),o.wv>e.wv)return!0}(t&pt)!==0&&Tt===null&&Me(e,He)}return!1}function Is(e,t,r=!0){var i=e.reactions;if(i!==null&&!(wt!==null&&bn.call(wt,e)))for(var s=0;s<i.length;s++){var o=i[s];(o.f&Fe)!==0?Is(o,t,!1):t===o&&(r?Me(o,$e):(o.f&He)!==0&&Me(o,Et),zr(o))}}function Ls(e){var t=st,r=dt,i=bt,s=le,o=wt,a=Ye,u=Rt,d=Vt,f=e.f;st=null,dt=0,bt=null,le=(f&(Dt|an))===0?e:null,wt=null,Tn(e.ctx),Rt=!1,Vt=++vn,e.ac!==null&&(Vr(()=>{e.ac.abort(zt)}),e.ac=null);try{e.f|=Ar;var c=e.fn,g=c();e.f|=un;var h=e.deps,v=Ee?.is_fork;if(st!==null){var p;if(v||qn(e,dt),h!==null&&dt>0)for(h.length=dt+st.length,p=0;p<st.length;p++)h[dt+p]=st[p];else e.deps=h=st;if(Br()&&(e.f&pt)!==0)for(p=dt;p<h.length;p++)(h[p].reactions??=[]).push(e)}else!v&&h!==null&&dt<h.length&&(qn(e,dt),h.length=dt);if(Ji()&&bt!==null&&!Rt&&h!==null&&(e.f&(Fe|Et|$e))===0)for(p=0;p<bt.length;p++)Is(bt[p],e);if(s!==null&&s!==e){if(vn++,s.deps!==null)for(let y=0;y<r;y+=1)s.deps[y].rv=vn;if(t!==null)for(const y of t)y.rv=vn;bt!==null&&(i===null?i=bt:i.push(...bt))}return(e.f&Kt)!==0&&(e.f^=Kt),g}catch(y){return $i(y)}finally{e.f^=Ar,st=t,dt=r,bt=i,le=s,wt=o,Tn(a),Rt=u,Vt=d}}function Kl(e,t){let r=t.reactions;if(r!==null){var i=Ho.call(r,e);if(i!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[i]=r[s],r.pop())}}if(r===null&&(t.f&Fe)!==0&&(st===null||!bn.call(st,t))){var o=t;(o.f&pt)!==0&&(o.f^=pt,o.f&=~dn),Nr(o),Al(o),qn(o,0)}}function qn(e,t){var r=e.deps;if(r!==null)for(var i=t;i<r.length;i++)Kl(e,r[i])}function Rn(e){var t=e.f;if((t&yt)===0){Me(e,He);var r=fe,i=cr;fe=e,cr=!0;try{(t&(qt|Lr))!==0?Yl(e):Yr(e),bs(e);var s=Ls(e);e.teardown=typeof s=="function"?s:null,e.wv=xs;var o}finally{cr=i,fe=r}}}async function gn(){await Promise.resolve(),Cl()}function n(e){var t=e.f,r=(t&Fe)!==0;if(le!==null&&!Rt){var i=fe!==null&&(fe.f&yt)!==0;if(!i&&(wt===null||!bn.call(wt,e))){var s=le.deps;if((le.f&Ar)!==0)e.rv<vn&&(e.rv=vn,st===null&&s!==null&&s[dt]===e?dt++:st===null?st=[e]:st.push(e));else{(le.deps??=[]).push(e);var o=e.reactions;o===null?e.reactions=[le]:bn.call(o,le)||o.push(le)}}}if(en&&Qt.has(e))return Qt.get(e);if(r){var a=e;if(en){var u=a.v;return((a.f&He)===0&&a.reactions!==null||Ms(a))&&(u=Wr(a)),Qt.set(a,u),u}var d=(a.f&pt)===0&&!Rt&&le!==null&&(cr||(le.f&pt)!==0),f=(a.f&un)===0;Yn(a)&&(d&&(a.f|=pt),us(a)),d&&!f&&(ds(a),Ps(a))}if(Tt?.has(e))return Tt.get(e);if((e.f&Kt)!==0)throw e.v;return e.v}function Ps(e){if(e.f|=pt,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&Fe)!==0&&(t.f&pt)===0&&(ds(t),Ps(t))}function Ms(e){if(e.v===Ge)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Qt.has(t)||(t.f&Fe)!==0&&Ms(t))return!0;return!1}function $(e){var t=Rt;try{return Rt=!0,e()}finally{Rt=t}}const Zl=["touchstart","touchmove"];function Jl(e){return Zl.includes(e)}const Xn=Symbol("events"),As=new Set,Kr=new Set;function Ql(e,t,r,i={}){function s(o){if(i.capture||Zr.call(t,o),!o.cancelBubble)return Vr(()=>r?.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Wt(()=>{t.addEventListener(e,s,i)}):t.addEventListener(e,s,i),s}function ft(e,t,r,i,s){var o={capture:i,passive:s},a=Ql(e,t,r,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&ys(()=>{t.removeEventListener(e,a,o)})}function ze(e,t,r){(t[Xn]??={})[e]=r}function tn(e){for(var t=0;t<e.length;t++)As.add(e[t]);for(var r of Kr)r(e)}let Os=null;function Zr(e){var t=this,r=t.ownerDocument,i=e.type,s=e.composedPath?.()||[],o=s[0]||e.target;Os=e;var a=0,u=Os===e&&e[Xn];if(u){var d=s.indexOf(u);if(d!==-1&&(t===document||t===window)){e[Xn]=t;return}var f=s.indexOf(t);if(f===-1)return;d<=f&&(a=d)}if(o=s[a]||e.target,o!==t){zo(e,"currentTarget",{configurable:!0,get(){return o||r}});var c=le,g=fe;_t(null),At(null);try{for(var h,v=[];o!==null;){var p=o.assignedSlot||o.parentNode||o.host||null;try{var y=o[Xn]?.[i];y!=null&&(!o.disabled||e.target===o)&&y.call(o,e)}catch(m){h?v.push(m):h=m}if(e.cancelBubble||p===t||p===null)break;o=p}if(h){for(let m of v)queueMicrotask(()=>{throw m});throw h}}finally{e[Xn]=t,delete e.currentTarget,_t(c),At(g)}}}const jl=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function $l(e){return jl?.createHTML(e)??e}function ea(e){var t=zl("template");return t.innerHTML=$l(e.replaceAll("<!>","<!---->")),t.content}function Jr(e,t){var r=fe;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function J(e,t){var r=(t&vl)!==0,i=(t&gl)!==0,s,o=!e.startsWith("<!>");return()=>{s===void 0&&(s=ea(o?e:"<!>"+e),r||(s=fr(s)));var a=i||hs?document.importNode(s,!0):s.cloneNode(!0);if(r){var u=fr(a),d=a.lastChild;Jr(u,d)}else Jr(a,a);return a}}function he(){var e=document.createDocumentFragment(),t=document.createComment(""),r=$t();return e.append(t,r),Jr(t,r),e}function P(e,t){e!==null&&e.before(t)}function Ns(e,t){var r=t==null?"":typeof t=="object"?`${t}`:t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=`${r}`)}function ta(e,t){return na(e,t)}const hr=new Map;function na(e,{target:t,anchor:r,props:i={},events:s,context:o,intro:a=!0,transformError:u}){Fl();var d=void 0,f=Vl(()=>{var c=r??t.appendChild($t());xl(c,{pending:()=>{}},v=>{me({});var p=Ye;o&&(p.c=o),s&&(i.$$events=s),d=e(v,i)||{},pe()},u);var g=new Set,h=v=>{for(var p=0;p<v.length;p++){var y=v[p];if(!g.has(y)){g.add(y);var m=Jl(y);for(const T of[t,document]){var _=hr.get(T);_===void 0&&(_=new Map,hr.set(T,_));var E=_.get(y);E===void 0?(T.addEventListener(y,Zr,{passive:m}),_.set(y,1)):_.set(y,E+1)}}}};return h(or(As)),Kr.add(h),()=>{for(var v of g)for(const m of[t,document]){var p=hr.get(m),y=p.get(v);--y==0?(m.removeEventListener(v,Zr),p.delete(v),p.size===0&&hr.delete(m)):p.set(v,y)}Kr.delete(h),c!==r&&c.parentNode?.removeChild(c)}});return Qr.set(d,f),d}let Qr=new WeakMap;function ra(e,t){const r=Qr.get(e);return r?(Qr.delete(e),r(t)):Promise.resolve()}class jr{anchor;#e=new Map;#n=new Map;#t=new Map;#s=new Set;#i=!0;constructor(t,r=!0){this.anchor=t,this.#i=r}#r=t=>{if(this.#e.has(t)){var r=this.#e.get(t),i=this.#n.get(r);if(i)qr(i),this.#s.delete(r);else{var s=this.#t.get(r);s&&(this.#n.set(r,s.effect),this.#t.delete(r),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),i=s.effect)}for(const[o,a]of this.#e){if(this.#e.delete(o),o===t)break;const u=this.#t.get(a);u&&(it(u.effect),this.#t.delete(a))}for(const[o,a]of this.#n){if(o===r||this.#s.has(o))continue;const u=()=>{if(Array.from(this.#e.values()).includes(o)){var f=document.createDocumentFragment();Xr(a,f),f.append($t()),this.#t.set(o,{effect:a,fragment:f})}else it(a);this.#s.delete(o),this.#n.delete(o)};this.#i||!i?(this.#s.add(o),hn(a,u,!1)):u()}}};#o=t=>{this.#e.delete(t);const r=Array.from(this.#e.values());for(const[i,s]of this.#t)r.includes(i)||(it(s.effect),this.#t.delete(i))};ensure(t,r){var i=Ee,s=ms();if(r&&!this.#n.has(t)&&!this.#t.has(t))if(s){var o=document.createDocumentFragment(),a=$t();o.append(a),this.#t.set(t,{effect:ut(()=>r(a)),fragment:o})}else this.#n.set(t,ut(()=>r(this.anchor)));if(this.#e.set(i,t),s){for(const[u,d]of this.#n)u===t?i.unskip_effect(d):i.skip_effect(d);for(const[u,d]of this.#t)u===t?i.unskip_effect(d.effect):i.skip_effect(d.effect);i.oncommit(this.#r),i.ondiscard(this.#o)}else this.#r(i)}}function _e(e,t,r=!1){var i=new jr(e),s=r?Xt:0;function o(a,u){i.ensure(a,u)}Gn(()=>{var a=!1;t((u,d=0)=>{a=!0,o(d,u)}),a||o(-1,null)},s)}function ke(e,t){return t}function ia(e,t,r){for(var i=[],s=t.length,o,a=t.length,u=0;u<s;u++){let g=t[u];hn(g,()=>{if(o){if(o.pending.delete(g),o.done.add(g),o.pending.size===0){var h=e.outrogroups;$r(e,or(o.done)),h.delete(o),h.size===0&&(e.outrogroups=null)}}else a-=1},!1)}if(a===0){var d=i.length===0&&r!==null;if(d){var f=r,c=f.parentNode;Hl(c),c.append(f),e.items.clear()}$r(e,t,!d)}else o={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(o)}function $r(e,t,r=!0){var i;if(e.pending.size>0){i=new Set;for(const a of e.pending.values())for(const u of a)i.add(e.items.get(u).e)}for(var s=0;s<t.length;s++){var o=t[s];if(i?.has(o)){o.f|=Pt;const a=document.createDocumentFragment();Xr(o,a)}else it(t[s],r)}}var Fs;function oe(e,t,r,i,s,o=null){var a=e,u=new Map,d=(t&qi)!==0;if(d){var f=e;a=f.appendChild($t())}var c=null,g=as(()=>{var T=r();return zi(T)?T:T==null?[]:or(T)}),h,v=new Map,p=!0;function y(T){(E.effect.f&yt)===0&&(E.pending.delete(T),E.fallback=c,sa(E,h,a,t,i),c!==null&&(h.length===0?(c.f&Pt)===0?qr(c):(c.f^=Pt,Zn(c,null,a)):hn(c,()=>{c=null})))}function m(T){E.pending.delete(T)}var _=Gn(()=>{h=n(g);for(var T=h.length,k=new Set,D=Ee,w=ms(),b=0;b<T;b+=1){var F=h[b],V=i(F,b),M=p?null:u.get(V);M?(M.v&&Sn(M.v,F),M.i&&Sn(M.i,b),w&&D.unskip_effect(M.e)):(M=oa(u,p?a:Fs??=$t(),F,V,b,s,t,r),p||(M.e.f|=Pt),u.set(V,M)),k.add(V)}if(T===0&&o&&!c&&(p?c=ut(()=>o(a)):(c=ut(()=>o(Fs??=$t())),c.f|=Pt)),T>k.size&&Zo(),!p)if(v.set(D,k),w){for(const[Z,ie]of u)k.has(Z)||D.skip_effect(ie.e);D.oncommit(y),D.ondiscard(m)}else y(D);n(g)}),E={effect:_,items:u,pending:v,outrogroups:null,fallback:c};p=!1}function Kn(e){for(;e!==null&&(e.f&Dt)===0;)e=e.next;return e}function sa(e,t,r,i,s){var o=(i&al)!==0,a=t.length,u=e.items,d=Kn(e.effect.first),f,c=null,g,h=[],v=[],p,y,m,_;if(o)for(_=0;_<a;_+=1)p=t[_],y=s(p,_),m=u.get(y).e,(m.f&Pt)===0&&(m.nodes?.a?.measure(),(g??=new Set).add(m));for(_=0;_<a;_+=1){if(p=t[_],y=s(p,_),m=u.get(y).e,e.outrogroups!==null)for(const M of e.outrogroups)M.pending.delete(m),M.done.delete(m);if((m.f&Pt)!==0)if(m.f^=Pt,m===d)Zn(m,null,r);else{var E=c?c.next:d;m===e.effect.last&&(e.effect.last=m.prev),m.prev&&(m.prev.next=m.next),m.next&&(m.next.prev=m.prev),nn(e,c,m),nn(e,m,E),Zn(m,E,r),c=m,h=[],v=[],d=Kn(c.next);continue}if((m.f&at)!==0&&(qr(m),o&&(m.nodes?.a?.unfix(),(g??=new Set).delete(m))),m!==d){if(f!==void 0&&f.has(m)){if(h.length<v.length){var T=v[0],k;c=T.prev;var D=h[0],w=h[h.length-1];for(k=0;k<h.length;k+=1)Zn(h[k],T,r);for(k=0;k<v.length;k+=1)f.delete(v[k]);nn(e,D.prev,w.next),nn(e,c,D),nn(e,w,T),d=T,c=w,_-=1,h=[],v=[]}else f.delete(m),Zn(m,d,r),nn(e,m.prev,m.next),nn(e,m,c===null?e.effect.first:c.next),nn(e,c,m),c=m;continue}for(h=[],v=[];d!==null&&d!==m;)(f??=new Set).add(d),v.push(d),d=Kn(d.next);if(d===null)continue}(m.f&Pt)===0&&h.push(m),c=m,d=Kn(m.next)}if(e.outrogroups!==null){for(const M of e.outrogroups)M.pending.size===0&&($r(e,or(M.done)),e.outrogroups?.delete(M));e.outrogroups.size===0&&(e.outrogroups=null)}if(d!==null||f!==void 0){var b=[];if(f!==void 0)for(m of f)(m.f&at)===0&&b.push(m);for(;d!==null;)(d.f&at)===0&&d!==e.fallback&&b.push(d),d=Kn(d.next);var F=b.length;if(F>0){var V=(i&qi)!==0&&a===0?r:null;if(o){for(_=0;_<F;_+=1)b[_].nodes?.a?.measure();for(_=0;_<F;_+=1)b[_].nodes?.a?.fix()}ia(e,b,V)}}o&&Wt(()=>{if(g!==void 0)for(m of g)m.nodes?.a?.apply()})}function oa(e,t,r,i,s,o,a,u){var d=(a&ol)!==0?(a&ul)===0?Ol(r,!1,!1):jt(r):null,f=(a&ll)!==0?jt(s):null;return{v:d,i:f,e:ut(()=>(o(t,d??r,f??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&Pt)===0?t.nodes.start:r;i!==null;){var a=Bn(i);if(o.before(i),i===s)return;i=a}}function nn(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function Bt(e,t,...r){var i=new jr(e);Gn(()=>{const s=t()??null;i.ensure(s,s&&(o=>s(o,...r)))},Xt)}function ei(e,t,r){var i=new jr(e);Gn(()=>{var s=t()??null;i.ensure(s,s&&(o=>r(o,s)))},Xt)}function Le(e,t){var r=void 0,i;Gl(()=>{r!==(r=t())&&(i&&(it(i),i=null),r&&(i=ut(()=>{Gr(()=>r(e))})))})}function Hs(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=Hs(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=Hs(e))&&(i&&(i+=" "),i+=t);return i}function Ot(e){return typeof e=="object"?la(e):e??""}function aa(e,t,r){var i=e==null?"":""+e;return i===""?null:i}function zs(e,t=!1){var r=t?" !important;":";",i="";for(var s of Object.keys(e)){var o=e[s];o!=null&&o!==""&&(i+=" "+s+": "+o+r)}return i}function ti(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function ua(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,a=0,u=!1,d=[];i&&d.push(...Object.keys(i).map(ti)),s&&d.push(...Object.keys(s).map(ti));var f=0,c=-1;const y=e.length;for(var g=0;g<y;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==="("?a++:h===")"&&a--,!u&&o===!1&&a===0){if(h===":"&&c===-1)c=g;else if(h===";"||g===y-1){if(c!==-1){var v=ti(e.substring(f,c).trim());if(!d.includes(v)){h!==";"&&g++;var p=e.substring(f,g).trim();r+=" "+p+";"}}f=g+1,c=-1}}}}return i&&(r+=zs(i)),s&&(r+=zs(s,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function N(e,t,r,i,s,o){var a=e.__className;if(a!==r||a===void 0){var u=aa(r);u==null?e.removeAttribute("class"):e.className=u,e.__className=r}return o}function ni(e,t={},r,i){for(var s in r){var o=r[s];t[s]!==o&&(r[s]==null?e.style.removeProperty(s):e.style.setProperty(s,o,i))}}function It(e,t,r,i){var s=e.__style;if(s!==t){var o=ua(t,i);o==null?e.removeAttribute("style"):e.style.cssText=o,e.__style=t}else i&&(Array.isArray(i)?(ni(e,r?.[0],i[0]),ni(e,r?.[1],i[1],"important")):ni(e,r,i));return i}const da=Symbol("is custom element"),fa=Symbol("is html");function Se(e,t,r,i){var s=ca(e);s[t]!==(s[t]=r)&&(t==="loading"&&(e[Xo]=r),r==null?e.removeAttribute(t):typeof r!="string"&&ha(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function ca(e){return e.__attributes??={[da]:e.nodeName.includes("-"),[fa]:e.namespaceURI===Xi}}var Ws=new Map;function ha(e){var t=e.getAttribute("is")||e.nodeName,r=Ws.get(t);if(r)return r;Ws.set(t,r=[]);for(var i,s=e,o=Element.prototype;o!==s;){i=Wo(s);for(var a in i)i[a].set&&r.push(a);s=Wi(s)}return r}class ri{#e=new WeakMap;#n;#t;static entries=new WeakMap;constructor(t){this.#t=t}observe(t,r){var i=this.#e.get(t)||new Set;return i.add(r),this.#e.set(t,i),this.#s().observe(t,this.#t),()=>{var s=this.#e.get(t);s.delete(r),s.size===0&&(this.#e.delete(t),this.#n.unobserve(t))}}#s(){return this.#n??(this.#n=new ResizeObserver(t=>{for(var r of t){ri.entries.set(r.target,r);for(var i of this.#e.get(r.target)||[])i(r)}}))}}var va=new ri({box:"border-box"});function vr(e,t,r){var i=va.observe(e,()=>r(e[t]));Gr(()=>($(()=>r(e[t])),i))}function Us(e,t){return e===t||e?.[zn]===t}function ot(e={},t,r,i){var s=Ye.r,o=fe;return Gr(()=>{var a,u;return ws(()=>{a=u,u=i?.()||[],$(()=>{e!==r(...u)&&(t(e,...u),a&&Us(r(...a),e)&&t(null,...a))})}),()=>{let d=o;for(;d!==s&&d.parent!==null&&d.parent.f&Mr;)d=d.parent;const f=()=>{u&&Us(r(...u),e)&&t(null,...u)},c=d.teardown;d.teardown=()=>{f(),c?.()}}}),e}function we(e,t,r,i){var s=(r&cl)!==0,o=(r&hl)!==0,a=i,u=!0,d=()=>(u&&(u=!1,a=o?$(i):i),a);let f;if(s){var c=zn in e||qo in e;f=kn(e,t)?.set??(c&&t in e?E=>e[t]=E:void 0)}var g,h=!1;s?[g,h]=bl(()=>e[t]):g=e[t],g===void 0&&i!==void 0&&(g=d(),f&&(tl(),f(g)));var v;if(v=()=>{var E=e[t];return E===void 0?d():(u=!0,E)},(r&fl)===0)return v;if(f){var p=e.$$legacy;return(function(E,T){return arguments.length>0?((!T||p||h)&&f(T?v():E),E):v()})}var y=!1,m=((r&dl)!==0?dr:as)(()=>(y=!1,v()));s&&n(m);var _=fe;return(function(E,T){if(arguments.length>0){const k=T?n(m):s?qe(E):E;return C(m,k),y=!0,a!==void 0&&(a=k),E}return en&&y||(_.f&yt)!==0?m.v:n(m)})}function ga(){return le===null&&el(),(le.ac??=new AbortController).signal}function Jn(e){Ye===null&&Yi(),Xe(()=>{const t=$(e);if(typeof t=="function")return t})}const ma="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(ma);function ii(e,t=void 0){return function(r){return r.key==="Enter"||r.key===" "&&!r.preventDefault()?e.call(t,r):void 0}}function Ke(e){return t=>{typeof e=="string"?t.innerText=e:e?.domNodes?t.replaceChildren(...e.domNodes):e?.html&&(t.innerHTML=e.html)}}function pa(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 si(e){return t=>{let r=new ResizeObserver(i=>{for(let s of i)e(t,s)});return r.observe(t),()=>{r.unobserve(t)}}}function Vs(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 Q(...e){return Object.assign(...e)}function mn(e){return Object.keys(e)}function ya(e){return Object.entries(e)}function oi(e,t){return Object.hasOwn(e,t)}function li(e){return Math.floor(e)}function _a(e){return Math.ceil(e)}function Nt(...e){return Math.min(...e)}function ct(...e){return Math.max(...e)}function wa(){return Symbol("ec")}function De(e){return e.length}function kt(e){return!De(e)}function Qn(e){return Array.isArray(e)}function ye(e){return typeof e=="function"}function ba(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function ai(e){return e instanceof Date}function ka(e){return e()}function Ca(e){e.forEach(ka)}function Da(){}const gr=e=>e;function pn(){return window.getComputedStyle(document.documentElement).direction==="rtl"}const mr=86400;function Ft(e=void 0){return e!==void 0?ai(e)?Ks(e):xa(e):Ks(new Date)}function Oe(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 ai(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 G(e){return new Date(e.getTime())}function Te(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;)In(e);return e.setUTCDate(e.getUTCDate()+r*t.days),e.setUTCSeconds(e.getUTCSeconds()+r*t.seconds),e}function pr(e,t,r=1){return Te(e,t,-r)}function Ct(e,t=1){return e.setUTCDate(e.getUTCDate()+t),e}function In(e,t=1){return Ct(e,-t)}function Lt(e){return e.setUTCHours(0,0,0,0),e}function We(e){return new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds())}function ht(e,t=19){return e.toISOString().substring(0,t)}function et(e,...t){return t.every(r=>e.getTime()===r.getTime())}function Ea(e,t){let r=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(r>=0?r:r+7)),e}function Bs(e,t){let r=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(r<=0?r:r-7)),e}function Gs(e){return typeof e=="string"&&e.length<=10}function ui(e,t){return e.setUTCHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),0),e}function ve(e){return e.seconds}function Ys(e,t,r){return Te(e,t),Xs(e,r,Ct),e}function qs(e,t,r){return pr(e,t),Xs(e,r,In),e}function Xs(e,t,r){if(t.length&&t.length<7)for(;t.includes(e.getUTCDay());)r(e)}function Ta(e,t){e=G(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/mr+1)/7)}function Ks(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()))}function xa(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 di=wa();function Zs(e,t){e[di]=t}function Sa(e){return!!e?.[di]}function Gt(e){return e[di]}function Js(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 rn(e){return e.getBoundingClientRect()}function Qs(e,t){for(;t--;)e=e.parentElement;return e}function yn(e){return rn(e).height}function Ln(e,t,r=document,i=[]){i.push(r);for(let s of r.elementsFromPoint(e,t)){if(Sa(s))return s;if(s.shadowRoot&&!i.includes(s.shadowRoot)){let o=Ln(e,t,s.shadowRoot,i);if(o)return o}}return null}function jn(e,t,r,i){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r,i)}function fi(e,t=void 0){return function(r){r.stopPropagation(),e&&e.call(t,r)}}function Ra(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=Q({},e),e.currentStart=We(e.currentStart),e.currentEnd=We(e.currentEnd),e.activeStart=We(e.activeStart),e.activeEnd=We(e.activeEnd),e}let Ia=1;function yr(e){return e.map(t=>{let r={id:"id"in t?String(t.id):`{generated-${Ia++}}`,resourceIds:ci(t,"resourceId").map(String),allDay:t.allDay??(Gs(t.start)&&Gs(t.end)),start:Ft(t.start),end:Ft(t.end),title:t.title??"",editable:t.editable,startEditable:t.startEditable,durationEditable:t.durationEditable,display:t.display??"auto",extendedProps:t.extendedProps??{},backgroundColor:t.backgroundColor??t.color,textColor:t.textColor,classNames:ci(t,"className"),styles:ci(t,"style")};if(r.allDay){Lt(r.start);let i=G(r.end);Lt(r.end),(!et(r.end,i)||et(r.end,r.start))&&Ct(r.end)}return r})}function ci(e,t){let r=e[t+"s"]??e[t]??[];return Qn(r)?r:[r]}function La(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 Pa(e,t,r,i,s,o){let a=s.formatRange(e.start,t&&e.event.display!=="pointer"&&!e.zeroDuration?ui(G(e.start),e.end):e.start),u;if(r&&(u=ye(r)?r({event:Je(e.event),timeText:a,view:Ze(o)}):r),u===void 0){let d;switch(e.event.display){case"background":d=[];break;case"pointer":d=e.event.allDay?[]:[js(a,e,i)];break;default:d=[...e.event.allDay?[]:[js(a,e,i)],Js("h4",i.eventTitle,e.event.title)]}u={domNodes:d}}return[a,u]}function js(e,t,r){return Js("time",r.eventTime,e,[["datetime",ht(t.start)]])}function Ma(e,t,r){let i=t.classNames;return e&&(ye(e)&&(e=e({event:Je(t),view:Ze(r)})),i=[...Qn(e)?e:[e],...i]),i}function Je(e){return $s(e,We)}function hi(e){return $s(e,G)}function $s(e,t){return e=Q({},e),e.start=t(e.start),e.end=t(e.end),e}function vi(e,t){e.length=t.length;for(let r of e)r?.reposition()}function Pn(e,t,r,i=void 0){return(!i||e.resourceIds.includes(i.id))&&e.start<r&&e.end>t}function _r(e){return Aa(e)||Oa(e)||Na(e)}function vt(e){return e==="background"}function Aa(e){return e==="preview"}function Oa(e){return e==="ghost"}function Na(e){return e==="pointer"}function $n(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:et(t,r)}}function Mn(e,t,r=!0){let i=[],s,o,a,u;for(let{gridColumn:d,gridRow:f,resource:c,dayStart:g,dayEnd:h,disabled:v}of t)!v&&Pn(e,g,h,c)&&(i.push(g),s=h,o||(o=d,a=f,u=c));if(i.length){let d=$n(e,i[0],s);return Q(d,{gridColumn:o,gridRow:a,resource:u,dates:i}),r&&gi(d),[d]}return[]}function eo(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 d=`${o}_${s+u}`;r[d]?r[d].chunks.push(i):r[d]={sorted:!1,chunks:[i]}}let a=`${o}_${s}`;i.long=r[a],i.prev=t[a],t[a]=i}}function to(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,a)=>o.top-a.top),s.sorted=!0);for(let o of s.chunks)if(r<o.bottom&&i>o.top){let a=o.bottom-r+1;r+=a,i+=a}}return Q(e,{top:r,bottom:i}),r}const no=new WeakMap;let Fa=1;function gi(e){let{event:t,gridColumn:r,gridRow:i}=e,s=no.get(t);s||(s=Fa++,no.set(t,s)),e.id=`${s}-${r}-${i}`}function _n(e,t){return()=>{let{options:{locale:r}}=e,i=e.options[t],s;return $(()=>{s=ye(i)?{format:i}:new Intl.DateTimeFormat(r,i)}),{format:o=>s.format(We(o))}}}function ro(e,t){return()=>{let{options:{locale:r}}=e,i=e.options[t],s;return $(()=>{if(ye(i))s=i;else{let o=new Intl.DateTimeFormat(r,i);s=(a,u)=>{if(a<=u)return o.formatRange(a,u);{let d=o.formatRangeToParts(u,a),f="",c=["startRange","endRange"],g=[!1,!1];for(let h of d){let v=c.indexOf(h.source);v>=0?g[v]||(f+=Ha(c[1-v],d),g[v]=!0):f+=h.value}return f}}}}),{formatRange:(o,a)=>s(We(o),We(a))}}}function Ha(e,t){let r="";for(let i of t)i.source==e&&(r+=i.value);return r}function er(e){return wr(e,"day")}function tr(e){return wr(e,"week")}function mi(e){return wr(e,"month")}function za(e){return wr(e,"year")}function wr(e,t){return{...e,next:"Next "+t,prev:"Previous "+t}}function lt(e){return t=>({...t,view:e})}function Wa(e){let t,r;return e&&({start:t,end:r}=e,t&&(t=Lt(Ft(t))),r&&(r=Lt(Ft(r)))),{start:t,end:r}}function An(e,t){return t.start&&e<t.start||t.end&&e>t.end}function pi(e){let t=[];return io(e,0,!1,t),t}function io(e,t,r,i){let s=[];for(let o of e){let a=Ua(o);s.push(a),i.push(a);let u={level:t,children:[],hidden:r};Zs(a,u),o.children&&(u.children=io(o.children,t+1,r||!a.expanded,i))}return s}function Ua(e){return{id:String(e.id),title:e.title||"",eventBackgroundColor:so(e),eventTextColor:oo(e),expanded:e.expanded??!0,extendedProps:e.extendedProps??{}}}function so(e){return e?.eventBackgroundColor}function oo(e){return e?.eventTextColor}function lo(e,t){return kt(e.resourceIds)?void 0:t.find(r=>e.resourceIds.includes(r.id))}function ao(e,t,r,i,s){let o=[];e=G(e);let a=G(e);for(Te(e,i.min),Te(a,i.max);e<a;)o.push([ht(e),s.format(e)]),Te(e,t,r);let u=li((e-a)/1e3/ve(t));return u&&u!==r&&(o.at(-1)[2]=r-u),o}function uo(e,t,r,i,s){let o=Oe(e),a=Oe(t);if(r){let u=Oe(Nt(ve(o),ct(0,ve(a)-mr))),d=Oe(ct(ve(a),ve(u)+mr)),f=ye(r?.eventFilter)?r.eventFilter:c=>!vt(c.display);e:for(let c of i){let g=Te(G(c),o),h=Te(G(c),a),v=Te(G(c),u),p=Te(G(c),d);for(let y of s)if(!y.allDay&&f(y)&&y.start<p&&y.end>v){if(y.start<g){let m=ct((y.start-c)/1e3,ve(u));m<ve(o)&&(o.seconds=m)}if(y.end>h){let m=Nt((y.end-c)/1e3,ve(d));m>ve(a)&&(a.seconds=m)}if(ve(o)===ve(u)&&ve(a)===ve(d))break e}}}return{min:o,max:a}}class fo extends Map{#e=new Map;#n=B(0);#t=B(0);#s=Vt||-1;constructor(t){if(super(),t){for(var[r,i]of t)super.set(r,i);this.#t.v=super.size}}#i(t){return Vt===this.#s?B(t):jt(t)}has(t){var r=this.#e,i=r.get(t);if(i===void 0)if(super.has(t))i=this.#i(0),r.set(t,i);else return n(this.#n),!1;return n(i),!0}forEach(t,r){this.#r(),super.forEach(t,r)}get(t){var r=this.#e,i=r.get(t);if(i===void 0)if(super.has(t))i=this.#i(0),r.set(t,i);else{n(this.#n);return}return n(i),super.get(t)}set(t,r){var i=this.#e,s=i.get(t),o=super.get(t),a=super.set(t,r),u=this.#n;if(s===void 0)s=this.#i(0),i.set(t,s),C(this.#t,super.size),Mt(u);else if(o!==r){Mt(s);var d=u.reactions===null?null:new Set(u.reactions),f=d===null||!s.reactions?.every(c=>d.has(c));f&&Mt(u)}return a}delete(t){var r=this.#e,i=r.get(t),s=super.delete(t);return i!==void 0&&(r.delete(t),C(i,-1)),s&&(C(this.#t,super.size),Mt(this.#n)),s}clear(){if(super.size!==0){super.clear();var t=this.#e;C(this.#t,0);for(var r of t.values())C(r,-1);Mt(this.#n),t.clear()}}#r(){n(this.#n);var t=this.#e;if(this.#t.v!==t.size){for(var r of super.keys())if(!t.has(r)){var i=this.#i(0);t.set(r,i)}}for([,i]of this.#e)n(i)}keys(){return n(this.#n),super.keys()}values(){return this.#r(),super.values()}entries(){return this.#r(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return n(this.#t),super.size}}function br(e){let t=0,r=B(qe(t));return co(e,()=>n(r),()=>!0,()=>C(r,++t,!0))}function Va(e){let t=0,r=qe({});return co(e,i=>r[i],(i,s)=>i!==s,i=>r[i]=++t)}function co(e,t,r,i){return new Proxy(e,{get(s,o,a){return oi(s,o)&&t(o),Reflect.get(s,o,a)},set(s,o,a,u){let d=r(s[o],a),f=Reflect.set(s,o,a,u);return d&&i(o),f}})}function Ba(e){let t={buttonText:{today:"today"},customButtons:{},customScrollbars:!1,date:new Date,datesSet:void 0,dayHeaderFormat:{weekday:"short",month:"numeric",day:"numeric"},dayHeaderAriaLabelFormat:{dateStyle:"full"},displayEventEnd:!0,duration:{weeks:1},events:[],eventAllUpdated:void 0,eventBackgroundColor:void 0,eventClassNames:void 0,eventClick:void 0,eventColor:void 0,eventContent:void 0,eventDidMount:void 0,eventFilter:void 0,eventMouseEnter:void 0,eventMouseLeave:void 0,eventOrder:void 0,eventSources:[],eventTextColor:void 0,eventTimeFormat:{hour:"numeric",minute:"2-digit"},filterEventsWithResources:!1,firstDay:0,headerToolbar:{start:"title",center:"",end:"today prev,next"},height:void 0,hiddenDays:[],highlightedDates:[],icons:{},lazyFetching:!0,loading:void 0,locale:void 0,refetchResourcesOnNavigate:!1,resources:[],selectable:!1,theme:{active:"ec-active",bgEvent:"ec-bg-event",bgEvents:"ec-bg-events",body:"ec-body",button:"ec-button",buttonGroup:"ec-button-group",calendar:"ec",colHead:"ec-col-head",customScrollbars:"ec-custom-scrollbars",day:"ec-day",dayHead:"ec-day-head",disabled:"ec-disabled",event:"ec-event",eventBody:"ec-event-body",eventTime:"ec-event-time",eventTitle:"ec-event-title",events:"ec-events",grid:"ec-grid",header:"ec-header",hidden:"ec-hidden",highlight:"ec-highlight",icon:"ec-icon",main:"ec-main",noBeb:"ec-no-beb",noIeb:"ec-no-ieb",today:"ec-today",title:"ec-title",toolbar:"ec-toolbar",view:"",weekdays:["ec-sun","ec-mon","ec-tue","ec-wed","ec-thu","ec-fri","ec-sat"]},titleFormat:{year:"numeric",month:"short",day:"numeric"},validRange:void 0,view:void 0,viewDidMount:void 0,views:{}};for(let r of e)r.createOptions?.(t);return t}function Ga(e){let t={date:r=>Lt(Ft(r)),duration:Oe,events:yr,eventSources:La,hiddenDays:r=>[...new Set(r)],highlightedDates:r=>r.map(i=>Lt(Ft(i))),resources:r=>Qn(r)?pi(r):r,validRange:Wa};for(let r of e)r.createParsers?.(t);return t}const ho=["buttonText","customButtons","icons","theme"];function Ya(e,t){let r=Ba(e),i=Ga(e);r=yi(r,i),t=yi(t,i);let s=_i(r,"views")??{},o=_i(t,"views")??{},a=Va({});Q(a,r),t.view&&(a.view=t.view);let u={},d={},f={},c=new Set([...mn(s),...mn(o)]);for(let g of c){let h=o[g]??{},v=vo(r,s[g]??s[h.type]??{}),p=vo(v,t,h),y=_i(p,"component");delete p.view;for(let m of mn(p))oi(a,m)?(u[m]||(u[m]=[]),u[m].push(ho.includes(m)?_=>p[m]=ye(_)?_(v[m]):_:_=>p[m]=_)):delete p[m];d[g]=p,f[g]=y}return Q(a,d[a.view]),[a,function(h,v,p=!0){oi(a,h)&&(p||(h in i?v=i[h](v):ba(v)?v={...v}:Qn(v)&&(v=[...v])),u[h]?.forEach(y=>y(v)),a[h]=v)},function(h){return Q(a,d[h]),f[h]}]}function yi(e,t){let r={...e};for(let i of mn(t))i in r&&(r[i]=t[i](r[i]));if(e.views){r.views={};for(let i of mn(e.views))r.views[i]=yi(e.views[i],t)}return r}function _i(e,t){let r=e[t];return delete e[t],r}function vo(...e){let t={};for(let r of e){let i={};for(let s of ho)ye(r[s])&&(i[s]=r[s](t[s]));t={...t,...r,...i}}return t}function qa(e,t){let r=[];for(let i of mn(e))e[i]!==t[i]&&r.push([i,e[i]]);return r}function Xa(e){return()=>{let{options:{view:t}}=e;$(()=>{let r=e.setViewOptions(t);e.extensions={},e.features=[],e.viewComponent=r(e)})}}function Ka(e,t){return()=>{let{activeRange:r,fetchedRange:{events:i},viewDates:s,options:{events:o,eventSources:a,lazyFetching:u}}=e;$(()=>{go(a.map(d=>ye(d.events)?d.events:d),o,yr,d=>e.events=br(d),r,i,s,!0,u,t)})}}function Za(e,t){return()=>{let{activeRange:r,fetchedRange:{resources:i},viewDates:s,options:{lazyFetching:o,refetchResourcesOnNavigate:a,resources:u}}=e;$(()=>{go(Qn(u)?[]:[u],u,pi,d=>e.resources=br(d),r,i,s,a,o,t)})}}function go(e,t,r,i,s,o,a,u,d,f){if(!kt(a)){if(kt(e)){i(t);return}if((u||!o.start)&&(!d||!o.start||o.start>s.start||o.end<s.end)){let c=[],g=y=>f.stop(),h=y=>{c=c.concat(r(y)),i(c),f.stop()},v=ht(s.start),p=ht(s.end);for(let y of e)if(f.start(),ye(y)){let m=y(u?{start:We(s.start),end:We(s.end),startStr:v,endStr:p}:{},h,g);m!==void 0&&Promise.resolve(m).then(h,g)}else{let m=ye(y.extraParams)?y.extraParams():Q({},y.extraParams);u&&(m.start=v,m.end=p),m=new URLSearchParams(m);let _=y.url,E={},T;["GET","HEAD"].includes(y.method)?_+=(_.includes("?")?"&":"?")+m:(E["content-type"]="application/x-www-form-urlencoded;charset=UTF-8",T=String(m)),fetch(_,{method:y.method,headers:E,body:T,signal:ga(),credentials:"same-origin"}).then(k=>k.json()).then(h).catch(g)}Q(o,s)}}}function Ja(e){let t=0;function r(i){let{options:{loading:s}}=e;ye(s)&&s(i)}return{start:()=>++t===1&&r(!0),stop:()=>--t===0&&r(!1)}}function Qa(e){return()=>{let t=setInterval(()=>{let r=Ft(),i=Lt(G(r));e.now=r,et(e.today,i)||(e.today=i)},1e3);return()=>clearInterval(t)}}function ja(e){return()=>{let{activeRange:t,options:{datesSet:r}}=e;$(()=>{ye(r)&&r({start:We(t.start),end:We(t.end),startStr:ht(t.start),endStr:ht(t.end),view:Ze(e.view)})})}}function $a(e){let t;return()=>{let{filteredEvents:r,options:{eventAllUpdated:i}}=e;$(()=>{ye(i)&&(t||(t=setTimeout(()=>{t=null,i({view:Ze(e.view)})})))})}}function eu(e){return()=>{let{options:{view:t,viewDidMount:r}}=e;$(()=>{ye(r)&&gn().then(()=>r({view:Ze(e.view)}))})}}function tu(e){return()=>{let{options:{date:t,duration:r,firstDay:i}}=e,s,o;return $(()=>{s=G(t),r.months?s.setUTCDate(1):r.inWeeks&&Bs(s,i),o=Te(G(s),r)}),{start:s,end:o}}}function nu(e){return()=>{let{currentRange:t,extensions:{activeRange:r}}=e,i,s;return $(()=>{i=G(t.start),s=G(t.end)}),r?r(i,s):{start:i,end:s}}}function ru(e){return()=>{let{events:t,options:{eventFilter:r,eventOrder:i,filterEventsWithResources:s,resources:o,view:a}}=e,u=[...t];return $(()=>{if(ye(r)){let d=t.map(Je),f=Ze(e.view);u=u.filter((c,g)=>r({event:Je(c),index:g,events:d,view:f}))}s&&(u=u.filter(d=>o.some(f=>d.resourceIds.includes(f.id)))),ye(i)?u.sort((d,f)=>i(Je(d),Je(f))):u.sort((d,f)=>d.start-f.start||f.allDay-d.allDay)}),u}}function iu(e){return()=>{let{options:t,activeRange:r}=e,{hiddenDays:i}=t,s=[];return $(()=>{let o=Lt(G(r.start)),a=Lt(G(r.end));for(;o<a;)i.includes(o.getUTCDay())||s.push(G(o)),Ct(o);if(!s.length&&i.length&&i.length<7){for(;i.includes(o.getUTCDay());)Ct(o);gn().then(()=>{e.setOption("date",o)})}}),s}}function su(e){return()=>{let{currentRange:t,intlTitle:r}=e,i;return $(()=>{i=r.formatRange(t.start,In(G(t.end)))}),i}}function ou(e){return()=>{let{activeRange:t,currentRange:r,viewTitle:i,options:{view:s}}=e,o;return $(()=>{o=Ra(s,i,r,t)}),o}}class lu{#e;get auxComponents(){return n(this.#e)}set auxComponents(t){C(this.#e,t,!0)}#n;get currentRange(){return n(this.#n)}set currentRange(t){C(this.#n,t)}#t;get activeRange(){return n(this.#t)}set activeRange(t){C(this.#t,t)}#s;get fetchedRange(){return n(this.#s)}set fetchedRange(t){C(this.#s,t,!0)}#i;get events(){return n(this.#i)}set events(t){C(this.#i,t)}#r;get filteredEvents(){return n(this.#r)}set filteredEvents(t){C(this.#r,t)}#o;get mainEl(){return n(this.#o)}set mainEl(t){C(this.#o,t,!0)}#l;get now(){return n(this.#l)}set now(t){C(this.#l,t,!0)}#a;get resources(){return n(this.#a)}set resources(t){C(this.#a,t)}#u;get today(){return n(this.#u)}set today(t){C(this.#u,t,!0)}#d;get intlEventTime(){return n(this.#d)}set intlEventTime(t){C(this.#d,t)}#c;get intlDayHeader(){return n(this.#c)}set intlDayHeader(t){C(this.#c,t)}#h;get intlDayHeaderAL(){return n(this.#h)}set intlDayHeaderAL(t){C(this.#h,t)}#v;get intlTitle(){return n(this.#v)}set intlTitle(t){C(this.#v,t)}#f;get viewDates(){return n(this.#f)}set viewDates(t){C(this.#f,t)}#_;get viewTitle(){return n(this.#_)}set viewTitle(t){C(this.#_,t)}#w;get view(){return n(this.#w)}set view(t){C(this.#w,t)}#b;get viewComponent(){return n(this.#b)}set viewComponent(t){C(this.#b,t,!0)}#k;get extensions(){return n(this.#k)}set extensions(t){C(this.#k,t,!0)}#p;get features(){return n(this.#p)}set features(t){C(this.#p,t,!0)}#g;get interaction(){return n(this.#g)}set interaction(t){C(this.#g,t,!0)}#m;get iClasses(){return n(this.#m)}set iClasses(t){C(this.#m,t,!0)}#y;get iClass(){return n(this.#y)}set iClass(t){C(this.#y,t,!0)}options;setOption;setViewOptions;constructor(t,r){[this.options,this.setOption,this.setViewOptions]=Ya(t,r),this.#e=B(qe([])),this.#n=l(tu(this)),this.#t=l(nu(this)),this.#s=B(qe({events:{},resources:{}})),this.#i=B(br(this.options.events)),this.#r=l(ru(this)),this.#o=B(),this.#l=B(qe(Ft())),this.#a=B(br(this.options.resources)),this.#u=B(qe(Lt(Ft()))),this.#d=l(ro(this,"eventTimeFormat")),this.#c=l(_n(this,"dayHeaderFormat")),this.#h=l(_n(this,"dayHeaderAriaLabelFormat")),this.#v=l(ro(this,"titleFormat")),this.#f=l(iu(this)),this.#_=l(su(this)),this.#w=l(ou(this)),this.#b=B(),this.#k=B(qe({})),this.#p=B(qe([])),this.#g=B(qe({})),this.iEvents=new fo,this.#m=B(qe(gr)),this.#y=B();for(let i of t)i.initState?.(this);this.#C()}#C(){let t=Ja(this);cn(Xa(this)),cn(Qa(this)),Xe(Ka(this,t)),Xe(Za(this,t)),Xe(ja(this)),Xe($a(this)),Xe(eu(this))}}var au=J("<h2></h2>"),uu=J("<button><i></i></button>"),du=J("<button><i></i></button>"),fu=J("<button> </button>"),cu=J("<button></button>"),hu=J("<button> </button>");function mo(e,t){me(t,!0);let r=ee("state"),i=l(()=>r.currentRange),s=l(()=>r.today),o=l(()=>r.viewTitle),a=l(()=>r.viewDates),u=l(()=>r.options.buttonText),d=l(()=>r.options.customButtons),f=l(()=>r.options.date),c=l(()=>r.options.duration),g=l(()=>r.options.hiddenDays),h=l(()=>r.options.theme),v=l(()=>r.options.validRange),p=l(()=>r.options.view),y=B(!1),m=B(!1),_=B(!1),E=!1;cn(()=>{n(a),n(v),t.buttons,$(()=>{E||(E=!0,t.buttons.includes("prev")&&(C(y,!1),n(v).start&&C(y,T(k),!0)),t.buttons.includes("next")&&(C(m,!1),n(v).end&&C(m,T(D),!0)),t.buttons.includes("today")&&(C(_,n(s)>=n(i).start&&n(s)<n(i).end,!0),!n(_)&&(n(v).start||n(v).end)&&C(_,T(w),!0)),gn().then(()=>E=!1))})});function T(V){let M=n(f);V();let Z=n(a).every(ie=>An(ie,n(v)));return r.setOption("date",M),Z}function k(){r.setOption("date",qs(G(n(f)),n(c),n(g)))}function D(){r.setOption("date",Ys(G(n(f)),n(c),n(g)))}function w(){r.setOption("date",G(n(s)))}var b=he(),F=ne(b);oe(F,17,()=>t.buttons,ke,(V,M)=>{var Z=he(),ie=ne(Z);{var ce=x=>{var S=au();Le(S,()=>Ke(n(o))),se(()=>N(S,1,n(h).title)),P(x,S)},te=x=>{var S=uu(),W=ue(S);se(()=>{N(S,1,`${n(h).button??""} ec-${n(M)??""}`),Se(S,"aria-label",n(u).prev),Se(S,"title",n(u).prev),S.disabled=n(y),N(W,1,`${n(h).icon??""} ec-${n(M)??""}`)}),ze("click",S,k),P(x,S)},X=x=>{var S=du(),W=ue(S);se(()=>{N(S,1,`${n(h).button??""} ec-${n(M)??""}`),Se(S,"aria-label",n(u).next),Se(S,"title",n(u).next),S.disabled=n(m),N(W,1,`${n(h).icon??""} ec-${n(M)??""}`)}),ze("click",S,D),P(x,S)},ae=x=>{var S=fu(),W=ue(S);se(()=>{N(S,1,`${n(h).button??""} ec-${n(M)??""}`),S.disabled=n(_),Ns(W,n(u)[n(M)])}),ze("click",S,w),P(x,S)},K=x=>{var S=cu();Le(S,()=>Ke(n(d)[n(M)].text)),se(()=>N(S,1,Ot([n(h).button,`ec-${n(M)}`,n(d)[n(M)].active&&n(h).active]))),ze("click",S,function(...W){n(d)[n(M)].click?.apply(this,W)}),P(x,S)},A=x=>{var S=hu(),W=ue(S);se(()=>{N(S,1,Ot([n(h).button,`ec-${n(M)}`,n(p)===n(M)&&n(h).active])),Ns(W,n(u)[n(M)])}),ze("click",S,()=>r.setOption("view",n(M))),P(x,S)};_e(ie,x=>{n(M)==="title"?x(ce):n(M)==="prev"?x(te,1):n(M)==="next"?x(X,2):n(M)==="today"?x(ae,3):n(d)[n(M)]?x(K,4):n(M)!==""&&x(A,5)})}P(V,Z)}),P(e,b),pe()}tn(["click"]);var vu=J("<div><!></div>"),gu=J("<div></div>"),mu=J("<nav></nav>");function pu(e,t){me(t,!0);let r=l(()=>ee("state")),i=l(()=>n(r).options.headerToolbar),s=l(()=>n(r).options.theme),o=l(()=>{let u={};for(let d of["start","center","end"])u[d]=n(i)[d]?.split(" ").map(f=>f.split(","))??[];return u});var a=mu();oe(a,21,()=>mn(n(o)),ke,(u,d)=>{var f=gu();oe(f,21,()=>n(o)[n(d)],ke,(c,g)=>{var h=he(),v=ne(h);{var p=m=>{var _=vu(),E=ue(_);mo(E,{get buttons(){return n(g)}}),se(()=>N(_,1,n(s).buttonGroup)),P(m,_)},y=m=>{mo(m,{get buttons(){return n(g)}})};_e(v,m=>{n(g).length>1?m(p):m(y,-1)})}P(c,h)}),se(()=>N(f,1,`ec-${n(d)??""}`)),P(u,f)}),se(()=>N(a,1,n(s).toolbar)),P(e,a),pe()}var yu=J("<div><!> <!> <!></div>");function _u(e,t){me(t,!0);let r=we(t,"plugins",19,()=>[]),i=we(t,"options",19,()=>({})),s=new lu(r(),i());Wn("state",s);let o=l(()=>s.auxComponents),a=l(()=>s.features),u=l(()=>s.events),d=l(()=>s.interaction),f=l(()=>s.iClass),c=l(()=>s.view),g=l(()=>s.viewComponent),h=l(()=>s.options.date),v=l(()=>s.options.duration),p=l(()=>s.options.height),y=l(()=>s.options.hiddenDays),m=l(()=>s.options.customScrollbars),_=l(()=>s.options.theme),E={...i()};cn(()=>{for(let[R,z]of qa(i(),E))$(()=>{T(R,z)});Q(E,i())});function T(R,z){return s.setOption(R,z,!1),this}function k(R){let z=s.options[R];return ai(z)?We(z):z}function D(){return s.fetchedRange.resources={},this}function w(){return s.fetchedRange.events={},this}function b(){return n(u).map(Je)}function F(R){R=String(R);for(let z of n(u))if(z.id===R)return Je(z);return null}function V(R){return R=yr([R])[0],n(u).push(R),Je(R)}function M(R){let z=String(R.id),L=n(u).findIndex(be=>be.id===z);return L>=0?(R=yr([R])[0],n(u)[L]=R,Je(R)):null}function Z(R){R=String(R);let z=n(u).findIndex(L=>L.id===R);return z>=0&&n(u).splice(z,1),this}function ie(){return Ze(n(c))}function ce(){return n(d).action?.unselect(),this}function te(R,z){let L=Ln(R,z);if(L){let be=Gt(L)(R,z);return be.date=We(be.date),be}return null}function X(){return s.setOption("date",Ys(G(n(h)),n(v),n(y))),this}function ae(){return s.setOption("date",qs(G(n(h)),n(v),n(y))),this}var K={setOption:T,getOption:k,refetchResources:D,refetchEvents:w,getEvents:b,getEventById:F,addEvent:V,updateEvent:M,removeEventById:Z,getView:ie,unselect:ce,dateFromPoint:te,next:X,prev:ae},A=yu();let x;var S=ue(A);pu(S,{});var W=re(S,2);ei(W,()=>n(g),(R,z)=>{z(R,{})});var Ce=re(W,2);return oe(Ce,17,()=>n(o),ke,(R,z)=>{var L=he(),be=ne(L);ei(be,()=>n(z),(gt,Ne)=>{Ne(gt,{})}),P(R,L)}),se(R=>{N(A,1,Ot([n(_).calendar,n(_).view,n(f)&&n(_)[n(f)],n(m)&&n(_).customScrollbars])),Se(A,"role",R),x=It(A,"",x,{height:n(p)})},[()=>n(a).includes("list")?"list":"table"]),P(e,A),pe(K)}function wu(e){return()=>{let{viewDates:t,options:{duration:r,hiddenDays:i}}=e,s;return $(()=>s=r.months||r.inWeeks?7-i.length:t.length),s}}function bu(e,t){return()=>{let{options:{highlightedDates:r,validRange:i},viewDates:s}=e,{colsCount:o}=t,a=[];return $(()=>{let u=[],d=1,f=1;for(let c of s)u.push({gridColumn:d,gridRow:f,resource:void 0,dayStart:c,dayEnd:Ct(G(c)),disabled:An(c,i),highlight:r.some(g=>et(g,c))}),d===o&&(a.push(u),u=[],d=0,++f),++d}),a}}function ku(e,t){return()=>{let{filteredEvents:r}=e,{grid:i}=t,s=[],o=[];return $(()=>{for(let a of r)for(let u of i)vt(a.display)?a.allDay&&(o=o.concat(Mn(a,u))):s=s.concat(Mn(a,u));eo(s)}),{chunks:s,bgChunks:o}}}function Cu(e,t){return()=>{let{iEvents:r}=e,{grid:i}=t,s=[];for(let[,o]of r)o&&$(()=>{for(let a of i)s=s.concat(Mn(o,a,!1))});return s}}let Du=class{#e;get colsCount(){return n(this.#e)}set colsCount(t){C(this.#e,t)}#n;get grid(){return n(this.#n)}set grid(t){C(this.#n,t)}#t;get gridEl(){return n(this.#t)}set gridEl(t){C(this.#t,t,!0)}#s;get chunks(){return n(this.#s)}set chunks(t){C(this.#s,t)}#i;get bgChunks(){return n(this.#i)}set bgChunks(t){C(this.#i,t)}#r;get iChunks(){return n(this.#r)}set iChunks(t){C(this.#r,t)}#o;get intlDayCell(){return n(this.#o)}set intlDayCell(t){C(this.#o,t)}#l;get intlDayPopover(){return n(this.#l)}set intlDayPopover(t){C(this.#l,t)}#a;get popupDay(){return n(this.#a)}set popupDay(t){C(this.#a,t,!0)}constructor(t){this.#e=l(wu(t)),this.#n=l(bu(t,this)),this.#t=B();let r=l(ku(t,this)),i=l(()=>n(r).chunks),s=l(()=>n(r).bgChunks);this.#s=l(()=>n(i)),this.#i=l(()=>n(s)),this.#r=l(Cu(t,this)),this.hiddenChunks=new fo,this.#o=l(_n(t,"dayCellFormat")),this.#l=l(_n(t,"dayPopoverFormat")),this.#a=B(null)}};var Eu=J("<div><!></div>");function kr(e,t){me(t,!0);let r=we(t,"el",15),i=we(t,"allDay",3,!1),s=we(t,"resource",3,void 0),o=we(t,"dateFromPoint",3,()=>t.date),a=we(t,"classes",3,gr),u=we(t,"disabled",3,!1),d=we(t,"highlight",3,!1),f=we(t,"role",3,"cell"),c=we(t,"noIeb",3,!1),g=we(t,"noBeb",3,!1),h=l(()=>ee("state")),v=l(()=>n(h).today),p=l(()=>n(h).interaction.action),y=l(()=>n(h).options.theme),m=l(()=>ee("view-state")),_=l(()=>n(m).snap),E=l(()=>et(t.date,n(v))),T=l(()=>a()([n(y).day,n(y).weekdays?.[t.date.getUTCDay()],n(E)&&n(y).today,d()&&n(y).highlight,u()&&n(y).disabled,c()&&n(y).noIeb,g()&&n(y).noBeb]));Jn(()=>{Zs(r(),(b,F)=>({allDay:i(),date:o()(b,F),resource:s(),dayEl:r(),disabled:u()}))});let k=l(()=>!u()&&n(p)?b=>n(p).select(b,n(_)):void 0);var D=Eu(),w=ue(D);Bt(w,()=>t.children??Cn),ot(D,b=>r(b),()=>r()),se(()=>{N(D,1,Ot(n(T))),Se(D,"role",f())}),ze("pointerdown",D,function(...b){n(k)?.apply(this,b)}),P(e,D),pe()}tn(["pointerdown"]);var Tu=J("<div></div>"),xu=J("<article><!></article>");function po(e,t){me(t,!0);let r=we(t,"el",15),i=we(t,"classes",3,gr),s=we(t,"styles",3,gr),o=l(()=>ee("state")),a=l(()=>n(o).intlEventTime),u=l(()=>n(o).resources),d=l(()=>n(o).view),f=l(()=>n(o).options.displayEventEnd),c=l(()=>n(o).options.eventBackgroundColor),g=l(()=>n(o).options.eventColor),h=l(()=>n(o).options.eventContent),v=l(()=>n(o).options.eventClick),p=l(()=>n(o).options.eventDidMount),y=l(()=>n(o).options.eventClassNames),m=l(()=>n(o).options.eventMouseEnter),_=l(()=>n(o).options.eventMouseLeave),E=l(()=>n(o).options.eventTextColor),T=l(()=>n(o).options.theme),k=l(()=>t.chunk.event),D=l(()=>t.chunk.event.display),w=l(()=>n(k).backgroundColor??so(t.chunk.resource??lo(n(k),n(u)))??n(c)??n(g)),b=l(()=>n(k).textColor??oo(t.chunk.resource??lo(n(k),n(u)))??n(E)),F=l(()=>ya(s()({"background-color":n(w),color:n(b)})).map(R=>`${R[0]}:${R[1]}`).concat(n(k).styles).join(";")),V=l(()=>i()([vt(n(D))?n(T).bgEvent:n(T).event,...Ma(n(y),n(k),n(d))])),M=l(()=>Pa(t.chunk,n(f),n(h),n(T),n(a),n(d))),Z=l(()=>Go(n(M),2)),ie=l(()=>n(Z)[0]),ce=l(()=>n(Z)[1]);Jn(()=>{ye(n(p))&&n(p)({event:Je(n(k)),timeText:n(ie),el:r(),view:Ze(n(d))})});function te(R,z){return ye(R)&&!_r(z)?L=>R({event:Je(n(k)),el:r(),jsEvent:L,view:Ze(n(d))}):void 0}let X=l(()=>!vt(n(D))&&te(n(v),n(D))||void 0),ae=l(()=>n(X)&&ii(n(X))),K=l(()=>te(n(m),n(D))),A=l(()=>te(n(_),n(D)));var x=xu();{const R=z=>{var L=Tu();Le(L,()=>Ke(n(ce))),se(()=>N(L,1,Ot(n(T).eventBody))),P(z,L)};var S=ue(x);{var W=z=>{var L=he(),be=ne(L);Bt(be,()=>t.body,()=>R,()=>n(w),()=>n(b)),P(z,L)},Ce=z=>{R(z)};_e(S,z=>{t.body?z(W):z(Ce,-1)})}ot(x,z=>r(z),()=>r())}se(()=>{N(x,1,Ot(n(V))),It(x,n(F)),Se(x,"role",n(X)?"button":void 0),Se(x,"tabindex",n(X)?0:void 0)}),ze("click",x,function(...R){n(X)?.apply(this,R)}),ze("keydown",x,function(...R){n(ae)?.apply(this,R)}),ft("mouseenter",x,function(...R){n(K)?.apply(this,R)}),ft("mouseleave",x,function(...R){n(A)?.apply(this,R)}),ze("pointerdown",x,function(...R){t.onpointerdown?.apply(this,R)}),P(e,x),pe()}tn(["click","keydown","pointerdown"]);var Su=J("<div><!></div>");function nr(e,t){me(t,!0);let r=we(t,"weekday",3,!0),i=we(t,"colSpan",3,1),s=we(t,"ariaHidden",3,!1),o=we(t,"disabled",3,!1),a=we(t,"highlight",3,!1),u=l(()=>ee("state")),d=l(()=>n(u).today),f=l(()=>n(u).options.theme);var c=Su(),g=ue(c);Bt(g,()=>t.children),se(h=>{N(c,1,h),Se(c,"role",s()?null:"columnheader"),Se(c,"aria-colspan",s()||i()<=1?null:i()),Se(c,"aria-colindex",s()?null:t.colIndex),Se(c,"aria-hidden",s()?"true":null)},[()=>Ot([t.className??n(f).colHead,r()&&n(f).weekdays?.[t.date.getUTCDay()],r()&&et(t.date,n(d))&&n(f).today,a()&&n(f).highlight,o()&&n(f).disabled])]),P(e,c),pe()}var Ru=J("<time></time>");function Cr(e,t){me(t,!0);let r=we(t,"alPrefix",3,""),i=l(()=>ee("state")),s=l(()=>n(i).intlDayHeader),o=l(()=>n(i).intlDayHeaderAL);var a=Ru();Le(a,()=>Ke(n(s).format(t.date))),se((u,d)=>{Se(a,"datetime",u),Se(a,"aria-label",`${r()??""}${d??""}`)},[()=>ht(t.date,10),()=>n(o).format(t.date)]),P(e,a),pe()}function Dr(e,t){me(t,!0);let r=we(t,"el",15),i=l(()=>ee("state")),s=l(()=>n(i).iClasses),o=l(()=>n(i).interaction.action),a=l(()=>n(i).interaction.resizer),u=l(()=>ee("view-state")),d=l(()=>n(u).snap),f=l(()=>t.chunk.event),c=l(()=>t.chunk.event.display),g=l(()=>p=>n(s)(p,n(f)));function h(p){return n(o)?.draggable(p)?y=>n(o).drag(p,y,t.forceDate,t.forceMargin,n(d)):n(o)?.noAction}let v=l(()=>!vt(n(c))&&!_r(n(c))?h(n(f)):void 0);po(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(y){r(y)},body:(y,m=Cn)=>{var _=he(),E=ne(_);{var T=D=>{var w=he(),b=ne(w);ei(b,()=>n(a),(F,V)=>{V(F,{get chunk(){return t.chunk},get axis(){return t.axis},get forceDate(){return t.forceDate},get forceMargin(){return t.forceMargin},children:(M,Z)=>{var ie=he(),ce=ne(ie);Bt(ce,m),P(M,ie)},$$slots:{default:!0}})}),P(D,w)},k=D=>{var w=he(),b=ne(w);Bt(b,m),P(D,w)};_e(E,D=>{n(a)?D(T):D(k,-1)})}P(y,_)},$$slots:{body:!0}}),pe()}var Iu=J("<time></time>"),Lu=J("<span></span>"),Pu=J('<a role="button" tabindex="0" aria-haspopup="dialog"></a>'),Mu=J("<div><!> <!></div> <div><!></div>",1);function Au(e,t){me(t,!0);let r=ee("state"),i=ee("view-state"),s=l(()=>r.features),o=l(()=>r.options.date),a=l(()=>r.options.firstDay),u=l(()=>r.options.moreLinkContent),d=l(()=>r.options.theme),f=l(()=>r.options.weekNumbers),c=l(()=>r.options.weekNumberContent),g=l(()=>i.hiddenChunks),h=l(()=>i.intlDayCell),v=l(()=>t.day.dayStart),p=l(()=>t.day.disabled),y=l(()=>t.day.highlight),m=l(()=>n(v).getUTCMonth()!==n(o).getUTCMonth()),_=l(()=>b=>[...b,n(m)&&n(d).otherMonth]),E=l(()=>n(f)&&n(v).getUTCDay()===(n(a)?1:0)),T=l(()=>{let b;if(n(E)){let F=Ta(n(v),n(a));n(c)?b=ye(n(c))?n(c)({date:We(n(v)),week:F}):n(c):b="W"+String(F).padStart(2,"0")}return b}),k=l(()=>n(g).get(n(v).getTime())),D=l(()=>{let b="";if(n(k)){let F="+"+n(k).length+" more";n(u)?b=ye(n(u))?n(u)({num:n(k).length,text:F}):n(u):b=F}return b});function w(){i.popupDay=t.day}kr(e,{get date(){return n(v)},allDay:!0,get classes(){return n(_)},get disabled(){return n(p)},get highlight(){return n(y)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},children:(b,F)=>{var V=Mu(),M=ne(V),Z=ue(M);{var ie=x=>{var S=Iu();Le(S,()=>Ke(n(h).format(n(v)))),se(W=>Se(S,"datetime",W),[()=>ht(n(v),10)]),P(x,S)},ce=l(()=>n(s).includes("dayNumber"));_e(Z,x=>{n(ce)&&x(ie)})}var te=re(Z,2);{var X=x=>{var S=Lu();Le(S,()=>Ke(n(T))),se(()=>N(S,1,n(d).weekNumber)),P(x,S)};_e(te,x=>{n(E)&&x(X)})}var ae=re(M,2),K=ue(ae);{var A=x=>{var S=Pu(),W=l(()=>fi(w)),Ce=l(()=>ii(w)),R=l(fi);Le(S,()=>Ke(n(D))),ze("click",S,function(...z){n(W)?.apply(this,z)}),ze("keydown",S,function(...z){n(Ce)?.apply(this,z)}),ze("pointerdown",S,function(...z){n(R)?.apply(this,z)}),P(x,S)};_e(K,x=>{n(k)&&x(A)})}se(()=>{N(M,1,n(d).dayHead),N(ae,1,n(d).dayFoot)}),P(b,V)},$$slots:{default:!0}}),pe()}tn(["click","keydown","pointerdown"]);function Er(e,t){me(t,!0);let r=we(t,"inPopup",3,!1),i=l(()=>ee("state")),s=l(()=>n(i).options.dayMaxEvents),o=l(()=>ee("view-state")),a=l(()=>n(o).colsCount),u=l(()=>n(o).gridEl),d=l(()=>n(o).hiddenChunks),f=l(()=>n(o).popupDay),c=B(void 0),g=B(1),h=B(!1),v=l(()=>t.chunk.event),p=l(()=>t.chunk.event.display),y=l(()=>n(u).children.item((t.chunk.gridRow-1)*n(a)+t.chunk.gridColumn-1));Xe(()=>{r()||C(g,yn(n(y).firstElementChild)||1,!0)});let m=l(()=>D=>{if(D["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,D["grid-row"]=t.chunk.gridRow,!vt(n(p))){let w=r()?1:n(g);if(n(v)._margin){let[b,F]=n(v)._margin;b>w&&t.chunk.gridRow===F&&(w=b)}D["margin-block-start"]=`${w}px`}return n(h)&&(D.visibility="hidden"),D});function _(){C(g,to(t.chunk,yn(n(c)),yn(n(y).firstElementChild)||1),!0)}function E(){if(n(s)===!0){let D=yn(n(y))-T(n(y));if(C(h,t.chunk.bottom>D),n(h))for(let w of t.chunk.dates){let b=w.getTime();if(n(d).has(b)){let F=n(d).get(b);F.includes(t.chunk)||n(d).set(b,[...F,t.chunk])}else n(d).set(b,[t.chunk])}}else C(h,!1),n(d).size&&n(d).clear()}function T(D){let w=0;for(let b=0;b<t.chunk.dates.length&&(w=ct(w,yn(D.lastElementChild)),D=D.nextElementSibling,!!D);++b);return w}var k={reposition:_,hide:E};{let D=l(()=>r()&&n(f).dayStart),w=l(()=>[n(g),t.chunk.gridRow]);Dr(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(b){C(c,b,!0)}})}return pe(k)}var Ou=J('<dialog closedby="closerequest"><header><time></time> <a role="button" tabindex="0">×</a></header> <div></div></dialog>');function Nu(e,t){me(t,!0);let r=ee("view-state"),i=l(()=>ee("state")),s=l(()=>n(i).interaction),o=l(()=>n(i).options.buttonText),a=l(()=>n(i).options.theme),u=l(()=>r.colsCount),d=l(()=>r.chunks),f=l(()=>r.gridEl),c=l(()=>r.intlDayPopover),g=l(()=>r.popupDay),h=B(void 0),v=B(""),p=l(()=>n(g).gridColumn),y=l(()=>n(g).gridRow),m=l(()=>n(g).dayStart),_=l(()=>n(g).dayEnd),E=l(()=>{let te=[];for(let X of n(d))X.gridRow===n(y)&&X.gridColumn<=n(p)&&X.gridColumn+X.dates.length>n(p)&&te.push(Q({},X,$n(X.event,n(m),n(_))));return te.sort((X,ae)=>X.top-ae.top),te});Jn(()=>{n(h).show()}),Xe(()=>{n(E).length?$(T):k()});function T(){let te=n(f).children.item((n(y)-1)*n(u)+n(p)-1),X=rn(n(h)),ae=rn(te),K=rn(n(f));C(v,"");let A;if(X.width>=K.width){A=K.left-ae.left;let S=ae.right-K.right;C(v,n(v)+`inset-inline-end:${S}px;`)}else A=(ae.width-X.width)/2,ae.left+A<K.left?A=K.left-ae.left:ae.left+A+X.width>K.right&&(A=K.right-ae.left-X.width);C(v,n(v)+`inset-inline-start:${A}px;`);let x;X.height>=K.height?(x=K.top-ae.top,C(v,n(v)+`block-size:${K.height}px;`)):(x=(ae.height-X.height)/2,ae.top+x<K.top?x=K.top-ae.top:ae.top+x+X.height>K.bottom&&(x=K.bottom-ae.top-X.height)),C(v,n(v)+`inset-block-start:${x}px;`)}function k(){r.popupDay=null}function D(){k(),n(s).action?.noClick()}var w=Ou();let b;var F=ue(w),V=ue(F);Le(V,()=>Ke(n(c).format(n(m))));var M=re(V,2);Wl(M);var Z=l(()=>fi(k)),ie=l(()=>ii(k)),ce=re(F,2);oe(ce,21,()=>n(E),ke,(te,X)=>{Er(te,{get chunk(){return n(X)},inPopup:!0})}),ot(w,te=>C(h,te),()=>n(h)),Le(w,()=>pa("pointerdown")),se(te=>{N(w,1,n(a).popup),b=It(w,n(v),b,{"grid-area":`${n(y)+1} / ${n(p)}`}),N(F,1,n(a).dayHead),Se(V,"datetime",te),Se(M,"aria-label",n(o).close),N(ce,1,n(a).events)},[()=>ht(n(m),10)]),ft("pointerdownoutside",w,D),ft("close",w,k),ze("click",M,function(...te){n(Z)?.apply(this,te)}),ze("keydown",M,function(...te){n(ie)?.apply(this,te)}),P(e,w),pe()}tn(["click","keydown"]);var Fu=J('<div role="columnheader"><span></span></div>'),Hu=J('<section><header><div role="row"></div></header> <div><div></div> <div><!> <!> <!></div></div> <!></section>');function wi(e,t){me(t,!0);let r=ee("state"),i=new Du(r);Wn("view-state",i);let s=l(()=>r.intlDayHeader),o=l(()=>r.intlDayHeaderAL),a=l(()=>r.options.dayMaxEvents),u=l(()=>r.options.theme),d=l(()=>i.grid),f=l(()=>i.chunks),c=l(()=>i.bgChunks),g=l(()=>i.iChunks),h=l(()=>i.hiddenChunks),v=l(()=>i.popupDay),p=[];function y(){vi(p,n(f)),n(h).clear(),gn().then(m)}function m(){n(h).size,p.forEach(D=>D?.hide())}Xe(y),Xe(m);var _=he(),E=ne(_);{var T=D=>{var w=Hu();let b;var F=ue(w),V=ue(F);oe(V,21,()=>n(d)[0],ke,(A,x,S)=>{let W=()=>n(x).dayStart;var Ce=Fu();Se(Ce,"aria-colindex",1+S);var R=ue(Ce);Le(R,()=>Ke(n(s).format(W()))),se((z,L)=>{N(Ce,1,z),Se(R,"aria-label",L)},[()=>Ot([n(u).colHead,n(u).weekdays?.[W().getUTCDay()]]),()=>n(o).format(W())]),P(A,Ce)});var M=re(F,2),Z=ue(M);oe(Z,21,()=>n(d),ke,(A,x,S)=>{var W=he(),Ce=ne(W);oe(Ce,17,()=>n(x),ke,(R,z,L)=>{{let be=l(()=>L+1===De(n(x))),gt=l(()=>S+1===De(n(d)));Au(R,{get day(){return n(z)},get noIeb(){return n(be)},get noBeb(){return n(gt)}})}}),P(A,W)}),ot(Z,A=>i.gridEl=A,()=>i?.gridEl);var ie=re(Z,2),ce=ue(ie);oe(ce,19,()=>n(f),A=>A.id,(A,x,S)=>{ot(Er(A,{get chunk(){return n(x)}}),(W,Ce)=>p[Ce]=W,W=>p?.[W],()=>[n(S)])});var te=re(ce,2);oe(te,17,()=>n(c),A=>A.id,(A,x)=>{Er(A,{get chunk(){return n(x)}})});var X=re(te,2);oe(X,17,()=>n(g),ke,(A,x)=>{Er(A,{get chunk(){return n(x)}})});var ae=re(M,2);{var K=A=>{Nu(A,{})};_e(ae,A=>{n(v)&&A(K)})}ot(w,A=>r.mainEl=A,()=>r?.mainEl),Le(w,()=>si(y)),se(A=>{N(w,1,Ot([n(u).main,n(a)===!0&&n(u).uniform])),b=It(w,"",b,A),N(F,1,n(u).header),N(V,1,n(u).grid),N(M,1,n(u).body),N(Z,1,n(u).grid),N(ie,1,n(u).events)},[()=>({"--ec-grid-cols":De(n(d)[0]),"--ec-grid-rows":De(n(d))})]),P(D,w)},k=l(()=>!kt(n(d))&&!kt(n(d)[0]));_e(E,D=>{n(k)&&D(T)})}P(e,_),pe()}const zu={createOptions(e){Q(e,{dayMaxEvents:!1,dayCellFormat:{day:"numeric"},dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},moreLinkContent:void 0,weekNumbers:!1,weekNumberContent:void 0,view:"dayGridMonth"}),Q(e.buttonText,{dayGridDay:"day",dayGridMonth:"month",dayGridWeek:"week",close:"Close"}),Q(e.theme,{uniform:"ec-uniform",dayFoot:"ec-day-foot",otherMonth:"ec-other-month",popup:"ec-popup",weekNumber:"ec-week-number"}),Q(e.views,{dayGridDay:{buttonText:er,component:()=>wi,dayHeaderFormat:{weekday:"long"},displayEventEnd:!1,duration:{days:1},theme:lt("ec-day-grid ec-day-view")},dayGridWeek:{buttonText:tr,component:()=>wi,displayEventEnd:!1,theme:lt("ec-day-grid ec-week-view")},dayGridMonth:{buttonText:mi,component:Wu,dayHeaderFormat:{weekday:"short"},dayHeaderAriaLabelFormat:{weekday:"long"},displayEventEnd:!1,duration:{months:1},theme:lt("ec-day-grid ec-month-view"),titleFormat:{year:"numeric",month:"long"}}})}};function Wu(e){return e.features=["dayNumber"],e.extensions.activeRange=(t,r)=>{let{options:{firstDay:i}}=e;return{start:Bs(t,i),end:Ea(r,i)}},wi}function yo(e,t,r){return e.startEditable??t??e.editable??r}function Uu(e,t,r){return e.durationEditable??t??e.editable??r}let bi=!1;function Vu(e){bi||(bi=!0,window.requestAnimationFrame(()=>{e(),bi=!1}))}function _o(e,t,r){return ct(t,Nt(r,e))}function Bu(e){return()=>{let{options:{editable:t,eventStartEditable:r,theme:i}}=e;e.iClasses=(s,o)=>{let{display:a}=o;return[...s,_r(a)?[i[a]]:!vt(a)&&yo(o,r,t)?[i.draggable]:[]]}}}function Gu(e){return()=>{let{interaction:t,mainEl:r}=e;if(r)return jn(r,"scroll",()=>{t.action.handleScroll(),t.pointer?.handleScroll()})}}class Yu{constructor(t){this.#e(t)}#e(t){cn(Bu(t)),Xe(Gu(t))}}function qu(e,t){me(t,!0);let r=ee("state"),i=l(()=>r.events),s=l(()=>r.iEvents),o=l(()=>r.features),a=l(()=>r.view),u=l(()=>r.mainEl),d=l(()=>r.options.dateClick),f=l(()=>r.options.dragConstraint),c=l(()=>r.options.dragScroll),g=l(()=>r.options.editable),h=l(()=>r.options.eventStartEditable),v=l(()=>r.options.eventDragMinDistance),p=l(()=>r.options.eventDragStart),y=l(()=>r.options.eventDragStop),m=l(()=>r.options.eventDrop),_=l(()=>r.options.eventLongPressDelay),E=l(()=>r.options.eventResizeStart),T=l(()=>r.options.eventResizeStop),k=l(()=>r.options.eventResize),D=l(()=>r.options.longPressDelay),w=l(()=>r.options.resizeConstraint),b=l(()=>r.options.selectable),F=l(()=>r.options.select),V=l(()=>r.options.selectBackgroundColor),M=l(()=>r.options.selectConstraint),Z=l(()=>r.options.selectLongPressDelay),ie=l(()=>r.options.selectMinDistance),ce=l(()=>r.options.unselect),te=l(()=>r.options.unselectAuto),X=l(()=>r.options.unselectCancel),ae=l(()=>r.options.validRange);const K=1,A=2,x=3,S=4,W=5,Ce=6;let R,z,L,be,gt,Ne,Ht,Qe,mt,Yt,sn,Ae,U,Ie,Ue,H,Y,xe,q,Pe,Re,je,tt,ge,Ve,nt,Be;function on(I){return yo(I,n(h),n(g))}function On(I,O,de,j,rt){R||(R=Ni(O)?K:Ce,wn()&&(L=I,Oi(O,rt),de&&(Ne=de),j&&(Ve=j),xe="dragging",Nn(O)))}function Pi(I,O,de,j,rt,ir,Hi,pf){R||(R=Ni(O)?de?x:A:Ce,wn()&&(L=I,Oi(O,pf),rt&&(Ne=rt),ir&&(Ve=ir),xe=j==="x"?"resizingX":"resizingY",Rr()?(q=G(L.end),Y?(ui(q,L.start),q>=L.end&&In(q)):(pr(q,nt),q<L.start&&(q=L.start),Ne=L.start)):(q=G(L.start),Y?(ui(q,L.end),q<=L.start&&!Hi&&Ct(q)):(Te(q,nt),q>L.end&&(q=L.end),Ne=L.end,Hi||(Ne=pr(G(Ne),nt))),Hi&&!Y&&(Be=nt)),Nn(O)))}function Mi(I,O){R||(R=Ni(I)?n(b)&&!n(o).includes("list")?S:W:Ce,wn()&&(Oi(I,O),xe="selecting",Pe=Y?Oe({day:1}):nt,L={allDay:Y,start:Ne,end:Te(G(Ne),Pe),resourceIds:Qe?[Qe.id]:[]},Nn(I)))}function Ai(){R||(R=Ce)}function Oi(I,O){window.getSelection().removeAllRanges(),Yt=Ae=I.clientX,sn=U=I.clientY,nt=O?.duration;let de=Ln(Ae,U);({allDay:Y,date:Ne,resource:Qe}=Gt(de)(Ae,U)),Ue=n(u)!==Qs(de,3),Ie=Qs(de,1),Po(),I.pointerType!=="mouse"&&(tt=setTimeout(()=>{R&&(z=!0,Nn(I))},(ln()?n(Z):n(_))??n(D)))}function Nn(I){if(z||I&&I.pointerType==="mouse"&&df()>=(ln()?n(ie):n(v))){z=!0,Ir(I),r.iClass=xe,be||(ln()?uf():af(I,Fn()?n(E):n(p)));let O=rr(lf());if(O){let de;if({allDay:de,date:Ht,resource:mt}=O,de===Y){let j=Sr({},be),rt=n(w);H=Oe((Ht-Ne)/1e3),Rr()?(j.start=Te(G(L.start),H),j.start>q&&(j.start=q,H=Oe((q-L.start)/1e3))):(j.end=Te(G(L.end),H),Be&&Te(j.end,Be),Fn()?j.end<q&&(j.end=q,H=Oe((q-L.end)/1e3)):ln()?(j.end<L.end?(j.start=pr(j.end,Pe),j.end=L.end):j.start=L.start,rt=n(M)):(j.start=Te(G(L.start),H),Qe&&(j.resourceIds=L.resourceIds.filter(ir=>ir!==Qe.id),j.resourceIds.push(mt.id)),rt=n(f)));do{if(rt!==void 0&&(j=Sr(hi(L),j),rt(ln()?No(j,I):Fo(j,L,I))===!1)){Oo(L);break}Oo(j)}while(!1)}}}if(n(c)){let O=24,de=24;Vu(()=>{ge&&(Ue||(U<ge.top+O&&(n(u).scrollTop+=ct(-8,(U-ge.top-O)/3)),U>ge.bottom-O&&(n(u).scrollTop+=Nt(8,(U-ge.bottom+O)/3))),Ae<ge.left+de&&(n(u).scrollLeft+=ct(-8,(Ae-ge.left-de)/3)),Ae>ge.right-de&&(n(u).scrollLeft+=Nt(8,(Ae-ge.right+de)/3)),U<O&&window.scrollBy(0,ct(-8,(U-O)/3)),U>window.innerHeight-O&&window.scrollBy(0,Nt(8,(U-window.innerHeight+O)/3)))})}}function Io(){wn()&&(Po(),Nn())}function sf(I){wn()&&I.isPrimary&&(Ae=I.clientX,U=I.clientY,Nn(I))}function of(I){if(Re&&n(te)&&!(n(X)&&I.target.closest(n(X)))&&Ir(I),R&&I.isPrimary){if(z)if(ln()){if(Re=!0,ye(n(F))){let O=No(be,I);n(F)(O)}}else{L.display=gt;let O=Fn()?n(T):n(y);ye(O)&&O({event:Je(L),jsEvent:I,view:Ze(n(a))});let de=hi(L);if(Ao(L,be),Mo(),O=Fn()?n(k):n(m),ye(O)){let j=L,rt=Fo(L,de,I);O(Q(rt,{revert(){Ao(j,de)}}))}}else if((ff()||ln())&&ye(n(d))&&!je){Ae=I.clientX,U=I.clientY;let O=Ln(Ae,U);if(O){let{allDay:de,date:j,resource:rt}=Gt(O)(Ae,U);n(d)({allDay:de,date:We(j),dateStr:ht(j),dayEl:O,jsEvent:I,view:Ze(n(a)),resource:rt})}}Lo()}je=!1}function Lo(){z=!1,R=Yt=sn=Ae=U=L=gt=Ne=Ht=Qe=mt=H=Be=Y=q=Pe=Ve=Ie=ge=nt=void 0,r.iClass=void 0,tt&&(clearTimeout(tt),tt=void 0)}function lf(){return Ln(_o(Ae,ge.left,ge.right),_o(U,ge.top,ge.bottom))}function rr(I){if(I){let O=Gt(I)(Ae,U);if(O.disabled){if(!n(ae).end||O.date<n(ae).end)return rr(I.nextElementSibling);if(!n(ae).start||O.date>n(ae).start)return rr(I.previousElementSibling)}else return(ln()||Fn())&&O.resource&&!be.resourceIds.includes(O.resource.id)&&!n(o).includes("timeline")?Ae>Yt?rr(I.previousElementSibling):rr(I.nextElementSibling):O}return null}function Po(){let I=rn(n(u)),O=rn(Ie),de=I.width/n(u).offsetWidth,j=I.height/n(u).offsetHeight,rt=pn();ge={left:ct(0,rt?I.right-n(u).clientWidth*de:O.left+n(u).scrollLeft*de),right:Nt(document.documentElement.clientWidth,rt?O.right+n(u).scrollLeft*de:I.left+n(u).clientWidth*de)-2,top:ct(0,O.top+(Ue?0:n(u).scrollTop)*j),bottom:Nt(document.documentElement.clientHeight,Ue?O.bottom:I.top+n(u).clientHeight*j)-2}}function af(I,O){ye(O)&&O({event:Je(L),jsEvent:I,view:Ze(n(a))}),gt=L.display,L.display="preview",be=hi(L),Ve!==void 0&&(be._margin=Ve),Be&&Te(be.end,Be),L.display="ghost",n(i).length=n(i).length}function uf(){be={id:"{select}",allDay:L.allDay,start:L.start,title:"",display:"preview",extendedProps:{},backgroundColor:n(V),resourceIds:L.resourceIds,classNames:[],styles:[]}}function Mo(){be=void 0,n(s).delete("action")}function Sr(I,O){return I.start=O.start,I.end=O.end,I.resourceIds=O.resourceIds,{...I}}function Ao(I,O){Sr(I,O),n(i).length=n(i).length}function Oo(I){be=Sr(be,I),n(s).set("action",be)}function No(I,O){let{start:de,end:j}=Je(I);return{start:de,end:j,startStr:ht(I.start),endStr:ht(I.end),allDay:Y,view:Ze(n(a)),resource:Qe,jsEvent:O}}function Fo(I,O,de){let j;return Fn()?j=Rr()?{startDelta:H,endDelta:Oe(0)}:{startDelta:Oe(0),endDelta:H}:j={delta:H,oldResource:Qe!==mt?Qe:void 0,newResource:Qe!==mt?mt:void 0},Q(j,{event:Je(I),oldEvent:Je(O),view:Ze(n(a)),jsEvent:de}),j}function df(){return Math.sqrt(Math.pow(Ae-Yt,2)+Math.pow(U-sn,2))}function Fn(){return R===A||Rr()}function Rr(){return R===x}function ff(){return R===W}function ln(){return R===S}function wn(){return R&&R<W}function Ni(I){return I.isPrimary&&(I.pointerType!=="mouse"||I.buttons&1)}function Ir(I){Re&&(Re=!1,Mo(),ye(n(ce))&&n(ce)({jsEvent:I,view:Ze(n(a))}))}cn(()=>{n(a),Ir()});function cf(){je=!0}function hf(I){if(wn()){let O=I.target,de=[],j=()=>Ca(de);de.push(jn(O,"touchmove",Fi(()=>z))),de.push(jn(O,"touchend",j)),de.push(jn(O,"touchcancel",j))}}function Fi(I){return O=>{I()&&O.preventDefault()}}Jn(()=>jn(window,"touchmove",Da,{passive:!1}));var vf={draggable:on,drag:On,resize:Pi,select:Mi,noAction:Ai,handleScroll:Io,unselect:Ir,noClick:cf};ft("pointermove",xt,sf),ft("pointerup",xt,of),ft("pointercancel",xt,Lo),ft("scroll",xt,Io);var gf=l(()=>Fi(wn));ft("selectstart",xt,function(...I){n(gf)?.apply(this,I)});var mf=l(()=>Fi(()=>tt));return ft("contextmenu",xt,function(...I){n(mf)?.apply(this,I)}),ft("touchstart",xt,hf,void 0,!0),pe(vf)}function Xu(e,t){me(t,!0);let r=l(()=>ee("state")),i=l(()=>n(r).iEvents),s=l(()=>n(r).options.slotDuration),o=0,a=0,u;function d(){let y=Ln(o,a);if(y&&!n(i).has("action")){let{allDay:m,date:_,resource:E,disabled:T}=Gt(y)(o,a);if(!T){u||g(),u.allDay=m,u.start=_,u.end=Te(G(_),n(s)),u.resourceIds=E?[E.id]:[],n(i).set("pointer",{...u});return}}h()}function f(){d()}function c(y){v(y)&&(o=y.clientX,a=y.clientY,d())}function g(){u={id:"{pointer}",title:"",display:"pointer",extendedProps:{},backgroundColor:"transparent",classNames:[],styles:[]}}function h(){u=void 0,n(i).delete("pointer")}function v(y){return y.isPrimary&&y.pointerType==="mouse"}var p={handleScroll:f};return ft("pointermove",xt,c),ft("scroll",xt,f),pe(p)}var Ku=J("<div></div>"),Zu=J("<div></div>"),Ju=J("<!> <!> <!>",1);function Qu(e,t){me(t,!0);let r=we(t,"forceDate",3,void 0),i=we(t,"forceMargin",3,void 0),s=l(()=>ee("state")),o=l(()=>n(s).interaction.action),a=l(()=>n(s).options.editable),u=l(()=>n(s).options.eventDurationEditable),d=l(()=>n(s).options.eventResizableFromStart),f=l(()=>n(s).options.theme),c=l(()=>ee("view-state")),g=l(()=>n(c).snap),h=l(()=>t.chunk.event),v=l(()=>t.chunk.event.display),p=l(()=>!vt(n(v))&&!_r(n(v))&&Uu(n(h),n(u),n(a)));function y(w){return b=>n(o).resize(n(h),b,w,t.axis,r(),i(),t.chunk.zeroDuration,n(g))}var m=Ju(),_=ne(m);{var E=w=>{var b=Ku(),F=l(()=>y(!0));se(()=>N(b,1,`${n(f).resizer??""} ${n(f).start??""}`)),ze("pointerdown",b,function(...V){n(F)?.apply(this,V)}),P(w,b)};_e(_,w=>{n(p)&&n(d)&&w(E)})}var T=re(_,2);Bt(T,()=>t.children);var k=re(T,2);{var D=w=>{var b=Zu(),F=l(()=>y(!1));se(()=>N(b,1,n(f).resizer)),ze("pointerdown",b,function(...V){n(F)?.apply(this,V)}),P(w,b)};_e(k,w=>{n(p)&&w(D)})}P(e,m),pe()}tn(["pointerdown"]);var ju=J("<!> <!>",1);function $u(e,t){me(t,!0);let r=ee("state");new Yu(r);let i=l(()=>r.interaction),s=l(()=>r.options.pointer);n(i).resizer=Qu;var o=ju(),a=ne(o);ot(qu(a,{}),f=>n(i).action=f,()=>n(i)?.action);var u=re(a,2);{var d=f=>{ot(Xu(f,{}),c=>n(i).pointer=c,()=>n(i)?.pointer)};_e(u,f=>{n(s)&&f(d)})}P(e,o),pe()}const ed={createOptions(e){Q(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:""}),Q(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($u)}};let td=class{#e;get intlListDay(){return n(this.#e)}set intlListDay(t){C(this.#e,t)}#n;get intlListDaySide(){return n(this.#n)}set intlListDaySide(t){C(this.#n,t)}constructor(t){this.#e=l(_n(t,"listDayFormat")),this.#n=l(_n(t,"listDaySideFormat"))}};var nd=J("<div></div> <!>",1);function rd(e,t){me(t,!0);let r=l(()=>ee("state")),i=l(()=>n(r).interaction),s=l(()=>n(r).options.theme),o=l(()=>a=>(delete a["background-color"],delete a.color,a));{const a=(d,f=Cn,c=Cn,g=Cn)=>{var h=nd(),v=ne(h);let p;var y=re(v,2);Bt(y,f),se(()=>{N(v,1,n(s).eventTag),p=It(v,"",p,{"background-color":c()})}),P(d,h)};let u=l(()=>n(i).action?.noAction);po(e,{get chunk(){return t.chunk},get styles(){return n(o)},get onpointerdown(){return n(u)},body:a,$$slots:{body:!0}})}pe()}var id=J("<h4><time></time> <time></time></h4> <!>",1);function sd(e,t){me(t,!0);let r=l(()=>ee("state")),i=l(()=>n(r).filteredEvents),s=l(()=>n(r).options.highlightedDates),o=l(()=>n(r).options.theme),a=l(()=>n(r).options.validRange),u=l(()=>ee("view-state")),d=l(()=>n(u).intlListDay),f=l(()=>n(u).intlListDaySide),c=l(()=>n(s).some(_=>et(_,t.date))),g=l(()=>An(t.date,n(a))),h=l(()=>ht(t.date,10)),v=l(()=>{let _=[];if(!n(g)){let E=t.date,T=Ct(G(t.date));for(let k of n(i))if(!vt(k.display)&&Pn(k,E,T)){let D=$n(k,E,T);_.push(D)}}return _});var p=he(),y=ne(p);{var m=_=>{kr(_,{get date(){return t.date},allDay:!0,role:"listitem",get disabled(){return n(g)},get highlight(){return n(c)},children:(E,T)=>{var k=id(),D=ne(k),w=ue(D);Le(w,()=>Ke(n(d).format(t.date)));var b=re(w,2);Le(b,()=>Ke(n(f).format(t.date)));var F=re(D,2);oe(F,17,()=>n(v),V=>V.event,(V,M)=>{rd(V,{get chunk(){return n(M)}})}),se(()=>{N(D,1,n(o).dayHead),Se(w,"datetime",n(h)),N(b,1,n(o).daySide),Se(b,"datetime",n(h))}),P(E,k)},$$slots:{default:!0}})};_e(y,_=>{n(v).length&&_(m)})}P(e,p),pe()}var od=J("<div></div>"),ld=J("<section><!></section>");function ad(e,t){me(t,!0);let r=ee("state"),i=new td(r);Wn("view-state",i);let s=l(()=>r.filteredEvents),o=l(()=>r.view),a=l(()=>r.viewDates),u=l(()=>r.options.noEventsClick),d=l(()=>r.options.noEventsContent),f=l(()=>r.options.theme),c=l(()=>{let _=!0;if(!kt(n(a))){let E=n(a)[0],T=Ct(G(n(a).at(-1)));for(let k of n(s))if(!vt(k.display)&&k.start<T&&k.end>E){_=!1;break}}return _}),g=l(()=>ye(n(d))?n(d)():n(d));function h(_){ye(n(u))&&n(u)({jsEvent:_,view:Ze(n(o))})}var v=ld(),p=ue(v);{var y=_=>{var E=od();Le(E,()=>Ke(n(g))),se(()=>N(E,1,n(f).noEvents)),ze("click",E,h),P(_,E)},m=_=>{var E=he(),T=ne(E);oe(T,17,()=>n(a),ke,(k,D)=>{sd(k,{get date(){return n(D)}})}),P(_,E)};_e(p,_=>{n(c)?_(y):_(m,-1)})}ot(v,_=>r.mainEl=_,()=>r?.mainEl),se(()=>N(v,1,n(f).main)),P(e,v),pe()}tn(["click"]);const ud={createOptions(e){Q(e,{listDayFormat:{weekday:"long"},listDaySideFormat:{year:"numeric",month:"long",day:"numeric"},noEventsClick:void 0,noEventsContent:"No events",view:"listWeek"}),Q(e.buttonText,{listDay:"list",listWeek:"list",listMonth:"list",listYear:"list"}),Q(e.theme,{daySide:"ec-day-side",eventTag:"ec-event-tag",noEvents:"ec-no-events"}),Q(e.views,{listDay:{buttonText:er,component:Tr,duration:{days:1},theme:lt("ec-list ec-day-view")},listWeek:{buttonText:tr,component:Tr,duration:{weeks:1},theme:lt("ec-list ec-week-view")},listMonth:{buttonText:mi,component:Tr,duration:{months:1},theme:lt("ec-list ec-month-view")},listYear:{buttonText:za,component:Tr,duration:{years:1},theme:lt("ec-list ec-year-view")}})}};function Tr(e){return e.features=["list"],ad}function ki(e,t,r=!0){let i=[];for(let{gridColumn:s,gridRow:o,resource:a,start:u,end:d,disabled:f}of t)if(!f&&Pn(e,u,d,a)){let c=$n(e,u,d);Q(c,{gridColumn:s,gridRow:o,resource:a,top:(c.start-u)/1e3,height:(c.end-c.start)/1e3,maxHeight:(d-c.start)/1e3}),r&&gi(c),i.push(c)}return i}function dd(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 fd(e){let t="all-day",r;return e?(r=ye(e)?e({text:t}):e,typeof r=="string"&&(r={html:r})):r={html:t},r}function Ci(e){e.extensions.activeRange=(t,r)=>{let{options:{slotMaxTime:i}}=e;if(i.days||i.seconds>mr){Te(In(r),i);let s=In(G(r));s<t&&(t=s)}return{start:t,end:r}}}function Di(e){"scrollTime"in e||(Q(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}),Q(e.theme,{nowIndicator:"ec-now-indicator",sidebar:"ec-sidebar",slot:"ec-slot"}))}function wo(e){"allDaySlot"in e||(Q(e,{allDayContent:void 0,allDaySlot:!0,slotEventOverlap:!0}),Q(e.theme,{allDay:"ec-all-day"}))}function Ei(e){"scrollTime"in e||Q(e,{scrollTime:Oe,slotDuration:Oe,slotLabelInterval:t=>t!==void 0?Oe(t):void 0,slotMaxTime:Oe,slotMinTime:Oe,snapDuration:t=>t!==void 0?Oe(t):void 0})}function bo(e){"resourceLabelContent"in e||(e.filterResourcesWithEvents=!1,e.resourceLabelContent=void 0,e.resourceLabelDidMount=void 0)}function cd(e,t){return()=>{let{viewDates:r,options:{highlightedDates:i,validRange:s}}=e,{slotTimeLimits:o}=t,a=[];return $(()=>{let u=1;for(let d of r)a.push({gridColumn:u,gridRow:1,resource:void 0,start:Te(G(d),o.min),end:Te(G(d),o.max),dayStart:d,dayEnd:Ct(G(d)),disabled:An(d,s),highlight:i.some(f=>et(f,d))}),++u}),[a]}}function hd(e,t){return()=>{let{filteredEvents:r}=e,{grid:i}=t,s=[],o=[],a=[],u=[];return $(()=>{for(let d of r)for(let f of i)vt(d.display)?(o=o.concat(ki(d,f)),d.allDay&&(u=u.concat(Mn(d,f)))):d.allDay?a=a.concat(Mn(d,f)):s=s.concat(ki(d,f));dd(s),eo(a)}),{chunks:s,bgChunks:o,allDayChunks:a,allDayBgChunks:u}}}function vd(e,t){return()=>{let{iEvents:r}=e,{grid:i}=t,s=[],o=[];for(let[,a]of r)a&&$(()=>{for(let u of i)a.allDay?o=o.concat(Mn(a,u,!1)):s=s.concat(ki(a,u,!1))});return{iChunks:s,allDayIChunks:o}}}function gd(e){return()=>{let{filteredEvents:t,viewDates:r,options:{flexibleSlotTimeLimits:i,slotMinTime:s,slotMaxTime:o}}=e,a;return $(()=>{a=uo(s,o,i,r,t)}),a}}function md(e){return()=>{let{options:{slotDuration:t,slotLabelInterval:r}}=e,i;return $(()=>{i=r===void 0?ve(t)<3600?2:1:_a(ve(r)/ve(t))||1}),i}}function pd(e,t){return()=>{let{options:{slotDuration:r}}=e,{intlSlotLabel:i,slotLabelPeriodicity:s,slotTimeLimits:o}=t,a;return $(()=>{a=ao(Lt(Ft()),r,s,o,i)}),a}}function yd(e){return()=>{let{options:{slotDuration:t,snapDuration:r}}=e;return r??=t,{duration:r,ratio:ve(r)/ve(t)}}}function Ti(){return class{#e;get intlSlotLabel(){return n(this.#e)}set intlSlotLabel(e){C(this.#e,e)}#n;get slotLabelPeriodicity(){return n(this.#n)}set slotLabelPeriodicity(e){C(this.#n,e)}#t;get sidebarWidth(){return n(this.#t)}set sidebarWidth(e){C(this.#t,e,!0)}#s;get snap(){return n(this.#s)}set snap(e){C(this.#s,e)}constructor(e){this.#e=l(_n(e,"slotLabelFormat")),this.#n=l(md(e)),this.#t=B(0),this.#s=l(yd(e))}}}function ko(e){return class extends e{#e;get slotTimeLimits(){return n(this.#e)}set slotTimeLimits(t){C(this.#e,t)}#n;get slots(){return n(this.#n)}set slots(t){C(this.#n,t)}#t;get chunks(){return n(this.#t)}set chunks(t){C(this.#t,t)}#s;get bgChunks(){return n(this.#s)}set bgChunks(t){C(this.#s,t)}#i;get allDayChunks(){return n(this.#i)}set allDayChunks(t){C(this.#i,t)}#r;get allDayBgChunks(){return n(this.#r)}set allDayBgChunks(t){C(this.#r,t)}#o;get iChunks(){return n(this.#o)}set iChunks(t){C(this.#o,t)}#l;get allDayIChunks(){return n(this.#l)}set allDayIChunks(t){C(this.#l,t)}constructor(t){super(t),this.#e=l(gd(t)),this.#n=l(pd(t,this));let r=l(hd(t,this)),i=l(()=>n(r).chunks),s=l(()=>n(r).bgChunks),o=l(()=>n(r).allDayChunks),a=l(()=>n(r).allDayBgChunks);this.#t=l(()=>n(i)),this.#s=l(()=>n(s)),this.#i=l(()=>n(o)),this.#r=l(()=>n(a));let u=l(vd(t,this)),d=l(()=>n(u).iChunks),f=l(()=>n(u).allDayIChunks);this.#o=l(()=>n(d)),this.#l=l(()=>n(f))}}}let _d=class extends ko(Ti()){#e;get grid(){return n(this.#e)}set grid(t){C(this.#e,t)}constructor(t){super(t),this.#e=l(cd(t,this))}};function wd(e){return()=>{let{activeRange:t,filteredEvents:r,resources:i,options:{filterResourcesWithEvents:s},extensions:{viewResources:o}}=e,a=o?o(i):i;return $(()=>{s&&(a=i.filter(u=>r.some(d=>!vt(d.display)&&Pn(d,t.start,t.end,u)))),a.length||(a=pi([{}]))}),a}}function bd(e,t){return()=>{let{viewDates:r,options:{datesAboveResources:i,highlightedDates:s,validRange:o}}=e,{slotTimeLimits:a,viewResources:u}=t,d=[];return $(()=>{let f=1,c=i?[r,u]:[u,r];for(let g of c[0]){let h=[];for(let v of c[1]){let p=i?g:v,y=i?v:g;h.push({gridColumn:f,gridRow:1,resource:y,start:Te(G(p),a.min),end:Te(G(p),a.max),dayStart:p,dayEnd:Ct(G(p)),disabled:An(p,o),highlight:s.some(m=>et(m,p))}),++f}d.push(h)}}),d}}function Co(e){return class extends e{#e;get viewResources(){return n(this.#e)}set viewResources(t){C(this.#e,t)}constructor(t){super(t),this.#e=l(wd(t))}}}let kd=class extends Co(ko(Ti())){#e;get grid(){return n(this.#e)}set grid(t){C(this.#e,t)}constructor(t){super(t),this.#e=l(bd(t,this))}};var Cd=J("<span></span>");function xi(e,t){me(t,!0);let r=we(t,"date",3,void 0),i=we(t,"setLabel",3,void 0),s=l(()=>ee("state")),o=l(()=>n(s).intlDayHeaderAL),a=l(()=>n(s).options.resourceLabelContent),u=l(()=>n(s).options.resourceLabelDidMount),d=B(void 0),f=l(()=>n(a)?ye(n(a))?n(a)({resource:t.resource,date:r()?We(r()):void 0}):n(a):t.resource.title),c=B(void 0);Xe(()=>{n(f),$(()=>{r()?C(c,n(o).format(r())+", "+n(d).innerText):i()&&(C(c,void 0),i()(n(d).innerText))})}),Jn(()=>{ye(n(u))&&n(u)({resource:t.resource,date:r()?We(r()):void 0,el:n(d)})});var g=Cd();ot(g,h=>C(d,h),()=>n(d)),Le(g,()=>Ke(n(f))),se(()=>Se(g,"aria-label",n(c))),P(e,g),pe()}function Do(e,t){me(t,!0);let r=we(t,"allDay",3,!1),i=l(()=>ee("state")),s=l(()=>n(i).options.slotHeight),o=l(()=>ee("view-state")),a=l(()=>n(o).snap),u=l(()=>t.day.dayStart),d=l(()=>t.day.start),f=l(()=>t.day.resource),c=l(()=>t.day.disabled),g=l(()=>t.day.highlight),h=B(void 0);function v(p,y){if(r())return n(u);{let m=rn(n(h)),_=m.height/n(h).offsetHeight;return Te(G(n(d)),n(a).duration,li((y-m.top)/(n(s)*n(a).ratio*_)))}}kr(e,{get date(){return n(u)},get allDay(){return r()},get resource(){return n(f)},dateFromPoint:v,get disabled(){return n(c)},get highlight(){return n(g)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return n(h)},set el(p){C(h,p,!0)}}),pe()}function Si(e,t){me(t,!0);let r=l(()=>ee("state")),i=l(()=>n(r).options.slotEventOverlap),s=l(()=>n(r).options.slotDuration),o=l(()=>n(r).options.slotHeight),a=l(()=>u=>{let d=ve(n(s)),f=t.chunk.top/d*n(o),c=t.chunk.height/d*n(o)||n(o),g=t.chunk.maxHeight/d*n(o);u["grid-column"]=t.chunk.gridColumn,u["inset-block-start"]=`${f}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});Dr(e,{get chunk(){return t.chunk},get styles(){return n(a)},axis:"y"}),pe()}function Ri(e,t){me(t,!0);let r=B(void 0),i=B(0),s=l(()=>t.chunk.event),o=l(()=>d=>(d["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,(n(i)||n(s)._margin)&&(d["margin-block-start"]=`${n(s)._margin??n(i)}px`),d));function a(){C(i,to(t.chunk,yn(n(r))),!0)}var u={reposition:a};return Dr(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(d){C(r,d,!0)}}),pe(u)}var Dd=J("<div></div>");function xr(e,t){me(t,!0);let r=we(t,"span",3,1),i=l(()=>ee("state")),s=l(()=>n(i).mainEl),o=l(()=>n(i).now),a=l(()=>n(i).today),u=l(()=>n(i).options.slotDuration),d=l(()=>n(i).options.slotHeight),f=l(()=>n(i).options.theme),c=l(()=>ee("view-state")),g=l(()=>n(c).sidebarWidth),h=l(()=>{for(let w of t.days)if(et(w.dayStart,n(a)))return w;return{}}),v=l(()=>n(h).gridColumn),p=l(()=>n(h).start),y=l(()=>n(h).end),m=l(()=>{if(n(o)<n(p)||n(o)>n(y))return null;let w=ve(n(u));return(n(o)-n(p))/1e3/w*n(d)}),_=l(()=>({root:n(s),rootMargin:pn()?`0px -${n(g)+5.5}px 0px 0px`:`0px 0px 0px -${n(g)+5.5}px`,threshold:0}));function E(w,b){w.classList.toggle(n(f).hidden,!b.isIntersecting)}var T=he(),k=ne(T);{var D=w=>{var b=Dd();let F;Le(b,()=>Vs(E,n(_))),se(()=>{N(b,1,n(f).nowIndicator),F=It(b,"",F,{"grid-column":`${n(v)+1} / span ${r()??""}`,"inset-block-start":`${n(m)??""}px`})}),P(w,b)};_e(k,w=>{n(v)&&n(m)!==null&&w(D)})}P(e,T),pe()}var Ed=J('<div><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div>'),Td=J("<div><time></time></div>"),xd=J('<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 Eo(e,t){me(t,!0);let r=we(t,"viewState",7),i=ee("state");r()||r(new _d(i)),Wn("view-state",r());let s=l(()=>i.mainEl),o=l(()=>i.viewDates),a=l(()=>i.options.allDayContent),u=l(()=>i.options.allDaySlot),d=l(()=>i.options.columnWidth),f=l(()=>i.options.nowIndicator),c=l(()=>i.options.scrollTime),g=l(()=>i.options.slotHeight),h=l(()=>i.options.slotDuration),v=l(()=>i.options.theme),p=l(()=>r().allDayChunks),y=l(()=>r().allDayBgChunks),m=l(()=>r().allDayIChunks),_=l(()=>r().bgChunks),E=l(()=>r().chunks),T=l(()=>r().iChunks),k=l(()=>r().grid),D=l(()=>r().sidebarWidth),w=l(()=>r().slots),b=l(()=>r().slotLabelPeriodicity),F=l(()=>r().slotTimeLimits),V=B(0),M=l(()=>fd(n(a)));Xe(()=>{n(c),kt(n(o))||gn().then(Z)});function Z(){n(s).scrollTop=((ve(n(c))-ve(n(F).min))/ve(n(h))-.5)*n(g)}let ie=[];function ce(){vi(ie,n(p))}Xe(ce);var te=he(),X=ne(te);{var ae=A=>{var x=xd();let S;var W=ue(x),Ce=ue(W),R=re(Ce,2),z=ue(R);{var L=H=>{var Y=he(),xe=ne(Y);Bt(xe,()=>t.header),P(H,Y)},be=H=>{var Y=he(),xe=ne(Y);oe(xe,17,()=>n(k)[0],ke,(q,Pe,Re)=>{let je=()=>n(Pe).dayStart,tt=()=>n(Pe).disabled,ge=()=>n(Pe).highlight;nr(q,{get date(){return je()},colIndex:1+Re,get disabled(){return tt()},get highlight(){return ge()},children:(Ve,nt)=>{Cr(Ve,{get date(){return je()}})},$$slots:{default:!0}})}),P(H,Y)};_e(z,H=>{t.header?H(L):H(be,-1)})}var gt=re(R,2);{var Ne=H=>{var Y=Ed(),xe=ue(Y);Le(xe,()=>Ke(n(M)));var q=re(xe,2);oe(q,21,()=>n(k),ke,(ge,Ve,nt)=>{var Be=he(),on=ne(Be);oe(on,17,()=>n(Ve),ke,(On,Pi,Mi)=>{{let Ai=l(()=>nt+1===De(n(k))&&Mi+1===De(n(Ve)));Do(On,{get day(){return n(Pi)},allDay:!0,get noIeb(){return n(Ai)}})}}),P(ge,Be)});var Pe=re(q,2),Re=ue(Pe);oe(Re,19,()=>n(p),ge=>ge.id,(ge,Ve,nt)=>{ot(Ri(ge,{get chunk(){return n(Ve)}}),(Be,on)=>ie[on]=Be,Be=>ie?.[Be],()=>[n(nt)])});var je=re(Re,2);oe(je,17,()=>n(y),ge=>ge.id,(ge,Ve)=>{Ri(ge,{get chunk(){return n(Ve)}})});var tt=re(je,2);oe(tt,17,()=>n(m),ke,(ge,Ve)=>{Ri(ge,{get chunk(){return n(Ve)}})}),se(()=>{N(Y,1,n(v).allDay),N(xe,1,n(v).sidebar),N(q,1,n(v).grid),N(Pe,1,n(v).events)}),P(H,Y)};_e(gt,H=>{n(u)&&H(Ne)})}var Ht=re(W,2),Qe=ue(Ht);oe(Qe,21,()=>n(w),ke,(H,Y,xe)=>{var q=Td();let Pe;var Re=ue(q);Le(Re,()=>Ke(n(Y)[1])),se(()=>{N(q,1,Ot([n(v).slot,!xe&&n(v).hidden])),Pe=It(q,"",Pe,{"--ec-slot-label-periodicity":n(Y)[2]}),Se(Re,"datetime",n(Y)[0])}),P(H,q)});var mt=re(Qe,2);oe(mt,21,()=>n(k),ke,(H,Y,xe)=>{var q=he(),Pe=ne(q);oe(Pe,17,()=>n(Y),ke,(Re,je,tt)=>{{let ge=l(()=>xe+1===De(n(k))&&tt+1===De(n(Y)));Do(Re,{get day(){return n(je)},get noIeb(){return n(ge)},noBeb:!0})}}),P(H,q)});var Yt=re(mt,2),sn=ue(Yt);oe(sn,17,()=>n(E),H=>H.id,(H,Y)=>{Si(H,{get chunk(){return n(Y)}})});var Ae=re(sn,2);oe(Ae,17,()=>n(_),H=>H.id,(H,Y)=>{Si(H,{get chunk(){return n(Y)}})});var U=re(Ae,2);oe(U,17,()=>n(T),ke,(H,Y)=>{Si(H,{get chunk(){return n(Y)}})});var Ie=re(Ht,2);{var Ue=H=>{var Y=he(),xe=ne(Y);{var q=Re=>{var je=he(),tt=ne(je);Bt(tt,()=>t.nowIndicator),P(Re,je)},Pe=Re=>{xr(Re,{get days(){return n(k)[0]}})};_e(xe,Re=>{t.nowIndicator?Re(q):Re(Pe,-1)})}P(H,Y)};_e(Ie,H=>{n(f)&&H(Ue)})}ot(x,H=>i.mainEl=H,()=>i?.mainEl),Le(x,()=>si(ce)),se(H=>{N(x,1,n(v).main),S=It(x,"",S,H),N(W,1,n(v).header),N(Ce,1,n(v).sidebar),N(R,1,n(v).grid),N(Ht,1,n(v).body),N(Qe,1,n(v).sidebar),N(mt,1,n(v).grid),N(Yt,1,n(v).events)},[()=>({"--ec-grid-cols":De(n(k))*De(n(k)[0]),"--ec-col-group-span":De(n(k)[0]),"--ec-col-width":n(d)??"minmax(0, 1fr)","--ec-slot-label-periodicity":n(b),"--ec-slot-height":`${n(g)??""}px`,"--ec-header-height":`${n(V)??""}px`,"--ec-sidebar-width":`${n(D)??""}px`})]),vr(Ce,"offsetWidth",H=>r().sidebarWidth=H),vr(W,"offsetHeight",H=>C(V,H)),P(A,x)},K=l(()=>!kt(n(k))&&!kt(n(k)[0]));_e(X,A=>{n(K)&&A(ae)})}P(e,te),pe()}var Sd=J("<!> <!>",1);function Rd(e,t){me(t,!0);let r=ee("state"),i=new kd(r),s=l(()=>r.today),o=l(()=>r.mainEl),a=l(()=>r.viewDates),u=l(()=>r.options.scrollTime),d=l(()=>r.options.datesAboveResources),f=l(()=>r.options.theme),c=l(()=>i.grid),g=l(()=>i.sidebarWidth),h=qe([]);Xe(()=>{n(d)&&(n(a),n(u),gn().then(v))});function v(){if(n(s)>=n(a)[0]&&n(s)<=n(a).at(-1))for(let p of n(c)){let y=p[0];if(et(y.dayStart,n(s))){n(o).scrollLeft=(n(o).scrollWidth-n(g))/(De(n(c))*De(p))*(y.gridColumn-1)*(pn()?-1:1);break}}}Eo(e,{get viewState(){return i},header:m=>{var _=Sd(),E=ne(_);oe(E,17,()=>n(c),ke,(w,b,F)=>{const V=l(()=>{const{dayStart:M,resource:Z,disabled:ie,highlight:ce}=n(b)[0];return{date:M,resource:Z,disabled:ie,highlight:ce}});{let M=l(()=>De(n(c)[0])>1?n(f).colGroup:void 0),Z=l(()=>De(n(b))),ie=l(()=>1+F*De(n(b))),ce=l(()=>n(d)&&n(V).disabled),te=l(()=>n(d)&&n(V).highlight);nr(w,{get date(){return n(V).date},get className(){return n(M)},get weekday(){return n(d)},get colSpan(){return n(Z)},get colIndex(){return n(ie)},get disabled(){return n(ce)},get highlight(){return n(te)},children:(X,ae)=>{var K=he(),A=ne(K);{var x=W=>{Cr(W,{get date(){return n(V).date}})},S=W=>{xi(W,{get resource(){return n(V).resource},setLabel:Ce=>h[F]=Ce+", "})};_e(A,W=>{n(d)?W(x):W(S,-1)})}P(X,K)},$$slots:{default:!0}})}});var T=re(E,2);{var k=w=>{var b=he(),F=ne(b);oe(F,17,()=>n(c),ke,(V,M,Z)=>{var ie=he(),ce=ne(ie);oe(ce,17,()=>n(M),ke,(te,X,ae)=>{const K=l(()=>{const{dayStart:A,resource:x,disabled:S,highlight:W}=n(X);return{date:A,resource:x,disabled:S,highlight:W}});{let A=l(()=>1+ae+Z*De(n(M)));nr(te,{get date(){return n(K).date},get colIndex(){return n(A)},get disabled(){return n(K).disabled},get highlight(){return n(K).highlight},children:(x,S)=>{var W=he(),Ce=ne(W);{var R=L=>{xi(L,{get resource(){return n(K).resource},get date(){return n(K).date}})},z=L=>{Cr(L,{get date(){return n(K).date},get alPrefix(){return h[Z]}})};_e(Ce,L=>{n(d)?L(R):L(z,-1)})}P(x,W)},$$slots:{default:!0}})}}),P(V,ie)}),P(w,b)},D=l(()=>De(n(c)[0])>1);_e(T,w=>{n(D)&&w(k)})}P(m,_)},nowIndicator:m=>{var _=he(),E=ne(_);{var T=D=>{{let w=l(()=>n(c).flat()),b=l(()=>De(n(c)[0]));xr(D,{get days(){return n(w)},get span(){return n(b)}})}},k=D=>{var w=he(),b=ne(w);{var F=Z=>{var ie=he(),ce=ne(ie);oe(ce,17,()=>n(c),ke,(te,X)=>{xr(te,{get days(){return n(X)}})}),P(Z,ie)},V=l(()=>De(n(c)[0])>1),M=Z=>{{let ie=l(()=>n(c).flat()),ce=l(()=>De(n(c)));xr(Z,{get days(){return n(ie)},get span(){return n(ce)}})}};_e(b,Z=>{n(V)?Z(F):Z(M,-1)})}P(D,w)};_e(E,D=>{n(d)?D(T):D(k,-1)})}P(m,_)},$$slots:{header:!0,nowIndicator:!0}}),pe()}const Id={createOptions(e){wo(e),Di(e),bo(e),Q(e,{datesAboveResources:!1,view:"resourceTimeGridWeek"}),Q(e.buttonText,{resourceTimeGridDay:"resources",resourceTimeGridWeek:"resources"}),Q(e.theme,{colGroup:"ec-col-group"}),Q(e.views,{resourceTimeGridDay:{buttonText:er,component:To,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:lt("ec-resource ec-time-grid ec-day-view")},resourceTimeGridWeek:{buttonText:tr,component:To,duration:{weeks:1},theme:lt("ec-resource ec-time-grid ec-week-view")}})},createParsers(e){Ei(e)}};function To(e){return Ci(e),Rd}function Ii(e,t,r,i=!0){let s=[],o,a,u,d,f,c,g=0;for(let{gridColumn:h,gridRow:v,resource:p,dayStart:y,dayEnd:m,start:_,end:E,disabled:T}of t)T||(r?Pn(e,y,m,p)&&(s.length||(o=y,u=h,d=v,f=p),s.push(y),a=E):Pn(e,_,E,p)&&(s.length||(o=_,u=h,d=v,f=p,c=ct(e.start-_,0)/1e3),s.push(y),a=E,g+=(Nt(E,e.end)-ct(_,e.start))/1e3));if(s.length){let h=$n(e,o,a);return Q(h,{gridColumn:u,gridRow:d,resource:f,dates:s,left:c,width:g}),i&&gi(h),[h]}return[]}function Ld(e){let t={};for(let r of e){let{gridColumn:i,gridRow:s}=r;for(let a=0;a<r.dates.length;++a){let u=`${s}_${i+a}`;t[u]?t[u].push(r):t[u]=[r]}let o=`${s}_${i}`;r.day=t[o]}}function Pd(e,t,r){let i=1,s=i+t,o=e.day;o.sort((a,u)=>(a.top??Number.POSITIVE_INFINITY)-(u.top??Number.POSITIVE_INFINITY));for(let a of o)if(!(a===e||!("top"in a))&&(r||e.start<a.end&&e.end>a.start)&&i<a.bottom&&s>a.top){let u=a.bottom-i+1;i+=u,s+=u}return Q(e,{top:i,bottom:s}),i}function Md(e,t){return e[t.getTime()]??{min:Oe(0),max:Oe("24:00:00")}}function Ad(e,t){return()=>{let{viewDates:r,options:{highlightedDates:i,validRange:s}}=e,{dayTimeLimits:o,viewResources:a}=t,u=[];return $(()=>{let d=1;for(let f of a){let c=[],g=1;for(let h of r){let v=o[h.getTime()];c.push({gridColumn:g,gridRow:d,resource:f,start:Te(G(h),v.min),end:Te(G(h),v.max),dayStart:h,dayEnd:Ct(G(h)),disabled:An(h,s),highlight:i.some(p=>et(p,h))}),++g}u.push(c),++d}}),u}}function Od(e,t){return()=>{let{filteredEvents:r}=e,{grid:i,monthView:s}=t,o=[],a=[];return $(()=>{for(let u of r)for(let d of i)vt(u.display)?(!s||u.allDay)&&(a=a.concat(Ii(u,d,s))):o=o.concat(Ii(u,d,s));Ld(o)}),{chunks:o,bgChunks:a}}}function Nd(e,t){return()=>{let{iEvents:r}=e,{grid:i,monthView:s}=t,o=[];for(let[,a]of r)a&&$(()=>{for(let u of i)o=o.concat(Ii(a,u,s,!1))});return o}}function Fd(e){return()=>{let{filteredEvents:t,viewDates:r,options:{flexibleSlotTimeLimits:i,slotMinTime:s,slotMaxTime:o}}=e,a={};return $(()=>{for(let u of r)a[u.getTime()]=uo(s,o,i,[u],t)}),a}}function Hd(e,t){return()=>{let{viewDates:r,options:{slotDuration:i}}=e,{dayTimeLimits:s,intlSlotLabel:o,slotLabelPeriodicity:a}=t,u={};return $(()=>{for(let d of r){let f=d.getTime();u[f]=f in s?ao(d,i,a,s[f],o):[]}}),u}}function zd(e){return()=>{let{resources:t}=e,r;return $(()=>{r=t.some(i=>Gt(i).children.length)}),r}}function Wd(e){return()=>{let{options:{slotDuration:t}}=e,r;return $(()=>{r=!ve(t)}),r}}class Ud extends Co(Ti()){#e;get dayTimeLimits(){return n(this.#e)}set dayTimeLimits(t){C(this.#e,t)}#n;get daySlots(){return n(this.#n)}set daySlots(t){C(this.#n,t)}#t;get grid(){return n(this.#t)}set grid(t){C(this.#t,t)}#s;get monthView(){return n(this.#s)}set monthView(t){C(this.#s,t)}#i;get chunks(){return n(this.#i)}set chunks(t){C(this.#i,t)}#r;get bgChunks(){return n(this.#r)}set bgChunks(t){C(this.#r,t)}#o;get iChunks(){return n(this.#o)}set iChunks(t){C(this.#o,t)}#l;get nestedResources(){return n(this.#l)}set nestedResources(t){C(this.#l,t)}constructor(t){super(t),this.#e=l(Fd(t)),this.#n=l(Hd(t,this)),this.#t=l(Ad(t,this)),this.#s=l(Wd(t));let r=l(Od(t,this)),i=l(()=>n(r).chunks),s=l(()=>n(r).bgChunks);this.#i=l(()=>n(i)),this.#r=l(()=>n(s)),this.#o=l(Nd(t,this)),this.#l=l(zd(t))}}function Vd(e,t){me(t,!0);let r=l(()=>ee("state")),i=l(()=>n(r).options.slotWidth),s=l(()=>ee("view-state")),o=l(()=>n(s).monthView),a=l(()=>n(s).snap),u=l(()=>t.day.dayStart),d=l(()=>t.day.start),f=l(()=>t.day.resource),c=l(()=>t.day.disabled),g=l(()=>t.day.highlight),h=B(void 0);function v(p,y){if(n(o))return n(u);{let m=rn(n(h)),_=m.width/n(h).offsetWidth;return Te(G(n(d)),n(a).duration,li((pn()?m.right-p:p-m.left)/(n(i)*n(a).ratio*_)))}}kr(e,{get allDay(){return n(o)},get date(){return n(u)},get resource(){return n(f)},dateFromPoint:v,get disabled(){return n(c)},get highlight(){return n(g)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return n(h)},set el(p){C(h,p,!0)}}),pe()}function Li(e,t){me(t,!0);let r=l(()=>ee("state")),i=l(()=>n(r).options.slotDuration),s=l(()=>n(r).options.slotWidth),o=l(()=>ee("view-state")),a=l(()=>n(o).monthView),u=B(void 0),d=B(1),f=l(()=>t.chunk.event),c=l(()=>v=>{if(v["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,v["grid-row"]=t.chunk.gridRow,!n(a)){let y=t.chunk.left/ve(n(i))*n(s);v["inset-inline-start"]=`${y}px`,v["inline-size"]=`${t.chunk.width/ve(n(i))*n(s)}px`}let p=n(d);if(n(f)._margin){let[y,m]=n(f)._margin;t.chunk.gridRow===m&&(p=y)}return v["margin-block-start"]=`${p}px`,v});function g(){C(d,Pd(t.chunk,yn(n(u)),n(a)),!0)}var h={reposition:g};{let v=l(()=>[n(d),t.chunk.gridRow]);Dr(e,{get chunk(){return t.chunk},get styles(){return n(c)},axis:"x",get forceMargin(){return n(v)},get el(){return n(u)},set el(p){C(u,p,!0)}})}return pe(h)}var Bd=J("<span></span>"),Gd=J("<button></button>"),Yd=J("<!> <span><!></span>",1);function qd(e,t){me(t,!0);let r=we(t,"resource",7),i=l(()=>ee("state")),s=l(()=>n(i).resources),o=l(()=>n(i).view),a=l(()=>n(i).options.buttonText),u=l(()=>n(i).options.icons),d=l(()=>n(i).options.resourceExpand),f=l(()=>n(i).options.theme),c=B({}),g=l(()=>r().expanded),h=l(()=>n(a)[n(g)?"collapse":"expand"]);cn(()=>{C(c,Gt(r()))});function v(k){r().expanded=C(g,!n(g)),p(n(c).children),n(s).length=n(s).length,ye(n(d))&&n(d)({resource:r(),jsEvent:k,view:Ze(n(o))})}function p(k){for(let D of k){let w=Gt(D);w.hidden=!n(g),D.expanded&&p(w.children)}}var y=Yd(),m=ne(y);oe(m,17,()=>Array(n(c).level),ke,(k,D)=>{var w=Bd();se(()=>N(w,1,n(f).expander)),P(k,w)});var _=re(m,2),E=ue(_);{var T=k=>{var D=Gd();Le(D,()=>Ke(n(u)[n(g)?"collapse":"expand"])),se(()=>{N(D,1,n(f).button),Se(D,"aria-label",n(h)),Se(D,"title",n(h))}),ze("click",D,v),P(k,D)};_e(E,k=>{n(c).children?.length&&k(T)})}se(()=>N(_,1,n(f).expander)),P(e,y),pe()}tn(["click"]);var Xd=J("<div></div>");function Kd(e,t){me(t,!0);let r=l(()=>ee("state")),i=l(()=>n(r).mainEl),s=l(()=>n(r).now),o=l(()=>n(r).today),a=l(()=>n(r).options.slotDuration),u=l(()=>n(r).options.slotWidth),d=l(()=>n(r).options.theme),f=l(()=>ee("view-state")),c=l(()=>n(f).grid),g=l(()=>n(f).sidebarWidth),h=l(()=>{for(let w of n(c)[0])if(et(w.dayStart,n(o)))return w;return{}}),v=l(()=>n(h).gridColumn),p=l(()=>n(h).start),y=l(()=>n(h).end),m=l(()=>{if(n(s)<n(p)||n(s)>n(y))return null;let w=ve(n(a));return(n(s)-n(p))/1e3/w*n(u)}),_=l(()=>({root:n(i),rootMargin:pn()?`0px -${n(g)+1}px 0px 0px`:`0px 0px 0px -${n(g)+1}px`,threshold:0}));function E(w,b){w.classList.toggle(n(d).hidden,!b.isIntersecting)}var T=he(),k=ne(T);{var D=w=>{var b=Xd();let F;Le(b,()=>Vs(E,n(_))),se(()=>{N(b,1,n(d).nowIndicator),F=It(b,"",F,{"grid-column":n(v)+1,"grid-row":`2 / span ${n(c).length??""}`,"inset-inline-start":`${n(m)??""}px`})}),P(w,b)};_e(k,w=>{n(v)&&n(m)!==null&&w(D)})}P(e,T),pe()}var Zd=J("<div><time></time></div>"),Jd=J('<div role="rowheader"><!> <!></div>'),Qd=J('<section><header><aside></aside> <div role="row"><!> <!></div></header> <div role="rowgroup"><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div> <!></section>');function jd(e,t){me(t,!0);let r=ee("state"),i=new Ud(r);Wn("view-state",i);let s=l(()=>r.mainEl),o=l(()=>r.today),a=l(()=>r.viewDates),u=l(()=>r.options.columnWidth),d=l(()=>r.options.nowIndicator),f=l(()=>r.options.scrollTime),c=l(()=>r.options.slotDuration),g=l(()=>r.options.slotHeight),h=l(()=>r.options.slotWidth),v=l(()=>r.options.theme),p=l(()=>i.chunks),y=l(()=>i.bgChunks),m=l(()=>i.iChunks),_=l(()=>i.daySlots),E=l(()=>i.dayTimeLimits),T=l(()=>i.grid),k=l(()=>i.monthView),D=l(()=>i.nestedResources),w=l(()=>i.sidebarWidth),b=l(()=>i.slotLabelPeriodicity),F=l(()=>i.viewResources),V=B(0);Xe(()=>{n(f),kt(n(a))||gn().then(M)});function M(){let K=0,A=n(o)<n(a)[0]||n(o)>n(a).at(-1);if(n(k)){if(!A){let x=n(T)[0];for(let S of x)if(et(S.dayStart,n(o))){n(s).scrollLeft=(n(s).scrollWidth-n(w))/De(x)*(S.gridColumn-1)*(pn()?-1:1);break}}}else{for(let x of n(a)){let S=Md(n(E),x);if(A||et(x,n(o))){K+=ct(Nt(ve(n(f)),ve(S.max))-ve(S.min),0);break}else K+=ve(S.max)-ve(S.min)}n(s).scrollLeft=K/ve(n(c))*n(h)*(pn()?-1:1)}}let Z=[];function ie(){vi(Z,n(p))}Xe(ie);var ce=he(),te=ne(ce);{var X=K=>{var A=Qd();let x;var S=ue(A),W=ue(S),Ce=re(W,2),R=ue(Ce);oe(R,17,()=>n(T)[0],ke,(U,Ie,Ue)=>{let H=()=>n(Ie).dayStart,Y=()=>n(Ie).disabled,xe=()=>n(Ie).highlight;nr(U,{get date(){return H()},colIndex:1+Ue,get disabled(){return Y()},get highlight(){return xe()},children:(q,Pe)=>{Cr(q,{get date(){return H()}})},$$slots:{default:!0}})});var z=re(R,2);{var L=U=>{var Ie=he(),Ue=ne(Ie);oe(Ue,17,()=>n(T)[0],ke,(H,Y)=>{let xe=()=>n(Y).dayStart,q=()=>n(Y).disabled,Pe=()=>n(Y).highlight;nr(H,{get date(){return xe()},get className(){return n(v).slots},get disabled(){return q()},get highlight(){return Pe()},ariaHidden:!0,children:(Re,je)=>{var tt=he(),ge=ne(tt);oe(ge,17,()=>n(_)[xe().getTime()],ke,(Ve,nt)=>{var Be=Zd();let on;var On=ue(Be);Le(On,()=>Ke(n(nt)[1])),se(()=>{N(Be,1,n(v).slot),on=It(Be,"",on,{"--ec-slot-label-periodicity":n(nt)[2]}),Se(On,"datetime",n(nt)[0])}),P(Ve,Be)}),P(Re,tt)},$$slots:{default:!0}})}),P(U,Ie)};_e(z,U=>{n(k)||U(L)})}var be=re(S,2),gt=ue(be);oe(gt,21,()=>n(F),ke,(U,Ie)=>{var Ue=Jd(),H=ue(Ue);{var Y=q=>{qd(q,{get resource(){return n(Ie)}})};_e(H,q=>{n(D)&&q(Y)})}var xe=re(H,2);xi(xe,{get resource(){return n(Ie)}}),se(()=>N(Ue,1,n(v).rowHead)),P(U,Ue)});var Ne=re(gt,2);oe(Ne,21,()=>n(T),ke,(U,Ie,Ue)=>{var H=he(),Y=ne(H);oe(Y,17,()=>n(Ie),ke,(xe,q,Pe)=>{{let Re=l(()=>Pe+1===De(n(Ie))),je=l(()=>Ue+1===De(n(T)));Vd(xe,{get day(){return n(q)},get noIeb(){return n(Re)},get noBeb(){return n(je)}})}}),P(U,H)});var Ht=re(Ne,2),Qe=ue(Ht);oe(Qe,19,()=>n(p),U=>U.id,(U,Ie,Ue)=>{ot(Li(U,{get chunk(){return n(Ie)}}),(H,Y)=>Z[Y]=H,H=>Z?.[H],()=>[n(Ue)])});var mt=re(Qe,2);oe(mt,17,()=>n(y),U=>U.id,(U,Ie)=>{Li(U,{get chunk(){return n(Ie)}})});var Yt=re(mt,2);oe(Yt,17,()=>n(m),ke,(U,Ie)=>{Li(U,{get chunk(){return n(Ie)}})});var sn=re(be,2);{var Ae=U=>{Kd(U,{})};_e(sn,U=>{n(d)&&!n(k)&&U(Ae)})}ot(A,U=>r.mainEl=U,()=>r?.mainEl),Le(A,()=>si(ie)),se(U=>{N(A,1,n(v).main),x=It(A,"",x,U),N(S,1,n(v).header),N(W,1,n(v).sidebar),N(Ce,1,n(v).grid),N(be,1,n(v).body),N(gt,1,n(v).sidebar),N(Ne,1,n(v).grid),N(Ht,1,n(v).events)},[()=>({"--ec-grid-cols":De(n(T)[0]),"--ec-grid-rows":`${De(n(T))>1?`repeat(${De(n(T))-1}, auto)`:""} 1fr`,"--ec-col-width":n(u)??"minmax(4em, 1fr)","--ec-slot-label-periodicity":n(b),"--ec-slot-height":`${n(g)??""}px`,"--ec-slot-width":`${n(h)??""}px`,"--ec-header-height":`${n(V)??""}px`,"--ec-sidebar-width":`${n(w)??""}px`})]),vr(W,"offsetWidth",U=>i.sidebarWidth=U),vr(S,"offsetHeight",U=>C(V,U)),P(K,A)},ae=l(()=>!kt(n(T))&&!kt(n(T)[0]));_e(te,K=>{n(ae)&&K(X)})}P(e,ce),pe()}const $d={createOptions(e){Di(e),bo(e),Q(e,{resourceExpand:void 0,slotWidth:32,view:"resourceTimelineWeek"}),Q(e.buttonText,{expand:"Expand",collapse:"Collapse",resourceTimelineDay:"timeline",resourceTimelineWeek:"timeline",resourceTimelineMonth:"timeline"}),Q(e.icons,{collapse:{html:"−"},expand:{html:"+"}}),Q(e.theme,{expander:"ec-expander",rowHead:"ec-row-head",slots:"ec-slots"}),Q(e.views,{resourceTimelineDay:{buttonText:er,component:xo,displayEventEnd:!1,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:lt("ec-resource ec-timeline ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},resourceTimelineWeek:{buttonText:tr,component:xo,displayEventEnd:!1,duration:{weeks:1},theme:lt("ec-resource ec-timeline ec-week-view")},resourceTimelineMonth:{buttonText:mi,component:So,displayEventEnd:!1,dayHeaderFormat:{weekday:"short",day:"numeric"},duration:{months:1},slotDuration:{days:1},theme:lt("ec-resource ec-timeline ec-month-view"),titleFormat:{year:"numeric",month:"long"}}})},createParsers(e){Ei(e)}};function xo(e){return Ci(e),So(e)}function So(e){return e.features=["timeline"],e.extensions.viewResources=t=>t.filter(r=>!Gt(r).hidden),jd}const ef={createOptions(e){Di(e),wo(e),Q(e.buttonText,{timeGridDay:"day",timeGridWeek:"week"}),Q(e,{view:"timeGridWeek"}),Q(e.views,{timeGridDay:{buttonText:er,component:Ro,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:lt("ec-time-grid ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},timeGridWeek:{buttonText:tr,component:Ro,duration:{weeks:1},theme:lt("ec-time-grid ec-week-view")}})},createParsers(e){Ei(e)}};function Ro(e){return Ci(e),Eo}function tf(e,t,r){return ta(_u,{target:e,props:{plugins:t,options:r}})}function nf(e){return ra(e)}function rf(e,t){return tf(e,[zu,ed,ud,Id,$d,ef],t)}return sr.create=rf,sr.destroy=nf,Object.defineProperty(sr,Symbol.toStringTag,{value:"Module"}),sr})({});
|
|
6
6
|
//# sourceMappingURL=event-calendar.min.js.map
|