@event-calendar/build 5.5.0 → 5.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +119 -19
- package/dist/event-calendar.min.css +1 -1
- package/dist/event-calendar.min.js +3 -3
- package/dist/event-calendar.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* EventCalendar v5.
|
|
2
|
+
* EventCalendar v5.6.0
|
|
3
3
|
* https://github.com/vkurko/calendar
|
|
4
4
|
*/
|
|
5
|
-
var EventCalendar=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Array.isArray,n=Array.prototype.indexOf,r=Array.prototype.includes,i=Array.from;Object.keys;var a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyDescriptors,c=Object.prototype,l=Array.prototype,u=Object.getPrototypeOf,d=Object.isExtensible,f=()=>{};function p(e){for(var t=0;t<e.length;t++)e[t]()}function m(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function h(e,t){if(Array.isArray(e))return e;if(t===void 0||!(Symbol.iterator in e))return Array.from(e);let n=[];for(let r of e)if(n.push(r),n.length===t)break;return n}var g=1<<24,_=1024,v=2048,y=4096,b=8192,x=16384,S=32768,ee=1<<25,te=65536,ne=1<<19,re=1<<20,ie=1<<25,ae=65536,oe=1<<21,se=1<<22,ce=1<<23,le=Symbol(`$state`),ue=Symbol(`legacy props`),de=Symbol(``),C=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},w=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function fe(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function pe(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function me(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function he(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function ge(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function _e(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function ve(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function ye(){throw Error(`https://svelte.dev/e/get_abort_signal_outside_reaction`)}function be(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function xe(){throw Error(`https://svelte.dev/e/set_context_after_init`)}function Se(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Ce(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function we(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Te(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var Ee={},De=Symbol(),Oe=`http://www.w3.org/1999/xhtml`;function ke(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Ae(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var T=!1;function je(e){T=e}var E;function Me(e){if(e===null)throw ke(),Ee;return E=e}function Ne(){return Me(ln(E))}function D(e){if(T){if(ln(E)!==null)throw ke(),Ee;E=e}}function Pe(e=1){if(T){for(var t=e,n=E;t--;)n=ln(n);E=n}}function Fe(e=!0){for(var t=0,n=E;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=ln(n);e&&n.remove(),n=i}}function Ie(e){if(!e||e.nodeType!==8)throw ke(),Ee;return e.data}function Le(e){return e===this.v}function Re(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function ze(e){return!Re(e,this.v)}var Be=!1,Ve=!1,He=null;function Ue(e){He=e}function O(e){return Ke(`getContext`).get(e)}function We(e,t){let n=Ke(`setContext`);if(Be){var r=z.f;!R&&r&32&&!He.i||xe()}return n.set(e,t),t}function k(e,t=!1,n){He={p:He,i:!1,c:null,e:null,s:e,x:null,r:z,l:Ve&&!t?{s:null,u:null,$:[]}:null}}function A(e){var t=He,n=t.e;if(n!==null){t.e=null;for(var r of n)Sn(r)}return e!==void 0&&(t.x=e),t.i=!0,He=t.p,e??{}}function Ge(){return!Ve||He!==null&&He.l===null}function Ke(e){return He===null&&fe(e),He.c??=new Map(qe(He)||void 0)}function qe(e){let t=e.p;for(;t!==null;){let e=t.c;if(e!==null)return e;t=t.p}return null}var Je=[];function Ye(){var e=Je;Je=[],p(e)}function Xe(e){if(Je.length===0&&!ft){var t=Je;queueMicrotask(()=>{t===Je&&Ye()})}Je.push(e)}function Ze(){for(;Je.length>0;)Ye()}function Qe(e){var t=z;if(t===null)return R.f|=ce,e;if(!(t.f&32768)&&!(t.f&4))throw e;$e(e,t)}function $e(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var et=~(v|y|_);function tt(e,t){e.f=e.f&et|t}function nt(e){e.f&512||e.deps===null?tt(e,_):tt(e,y)}function rt(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=ae,rt(t.deps))}function it(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),rt(e.deps),tt(e,_)}var at=!1,ot=!1;function st(e){var t=ot;try{return ot=!1,[e(),ot]}finally{ot=t}}var ct=new Set,lt=null,ut=null,dt=null,ft=!1,pt=!1,mt=null,ht=null,gt=0,_t=1,vt=class e{id=_t++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=0;#r=0;#i=null;#a=[];#o=new Set;#s=new Set;#c=new Map;is_fork=!1;#l=!1;#u(){return this.is_fork||this.#r>0}skip_effect(e){this.#c.has(e)||this.#c.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#c.get(e);if(t){this.#c.delete(e);for(var n of t.d)tt(n,v),this.schedule(n);for(n of t.m)tt(n,y),this.schedule(n)}}#d(){if(gt++>1e3&&(ct.delete(this),bt()),!this.#u()){for(let e of this.#o)this.#s.delete(e),tt(e,v),this.schedule(e);for(let e of this.#s)tt(e,y),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=mt=[],r=[],i=ht=[];for(let e of t)try{this.#f(e,n,r)}catch(t){throw Dt(e),t}if(lt=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(mt=null,ht=null,this.#u()){this.#p(r),this.#p(n);for(let[e,t]of this.#c)Et(e,t)}else{this.#n===0&&ct.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),St(r),St(n),this.#i?.resolve()}var o=lt;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(ct.add(o),o.#d()),ct.has(this)||this.#m()}#f(e,t,n){e.f^=_;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#c.has(r))&&r.fn!==null){a?r.f^=_:i&4?t.push(r):Be&&i&16777224?n.push(r):or(r)&&(i&16&&this.#s.add(r),dr(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#p(e){for(var t=0;t<e.length;t+=1)it(e[t],this.#o,this.#s)}capture(e,t){t!==De&&!this.previous.has(e)&&this.previous.set(e,t),e.f&8388608||(this.current.set(e,e.v),ut?.set(e,e.v))}activate(){lt=this}deactivate(){lt=null,ut=null}flush(){try{pt=!0,lt=this,this.#d()}finally{gt=0,dt=null,mt=null,ht=null,pt=!1,lt=null,ut=null,Kt.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear()}#m(){for(let s of ct){var e=s.id<this.id,t=[];for(let[n,r]of this.current){if(s.current.has(n))if(e&&r!==s.current.get(n))s.current.set(n,r);else continue;t.push(n)}if(t.length!==0){var n=[...s.current.keys()].filter(e=>!this.current.has(e));if(n.length>0){s.activate();var r=new Set,i=new Map;for(var a of t)Ct(a,n,r,i);if(s.#a.length>0){s.apply();for(var o of s.#a)s.#f(o,[],[]);s.#a=[]}s.deactivate()}}}}increment(e){this.#n+=1,e&&(this.#r+=1)}decrement(e,t){--this.#n,e&&--this.#r,!(this.#l||t)&&(this.#l=!0,Xe(()=>{this.#l=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#o.add(t);for(let e of t)this.#s.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=m()).promise}static ensure(){if(lt===null){let t=lt=new e;pt||(ct.add(lt),ft||Xe(()=>{lt===t&&t.flush()}))}return lt}apply(){if(!Be||!this.is_fork&&ct.size===1){ut=null;return}ut=new Map(this.current);for(let e of ct)if(!(e===this||e.is_fork))for(let[t,n]of e.previous)ut.has(t)||ut.set(t,n)}schedule(e){if(dt=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(mt!==null&&t===z&&(Be||(R===null||!(R.f&2))&&!at))return;if(n&96){if(!(n&1024))return;t.f^=_}}this.#a.push(t)}};function yt(e){var t=ft;ft=!0;try{var n;for(e&&(lt!==null&&!lt.is_fork&<.flush(),n=e());;){if(Ze(),lt===null)return n;lt.flush()}}finally{ft=t}}function bt(){try{ve()}catch(e){$e(e,dt)}}var xt=null;function St(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&or(r)&&(xt=new Set,dr(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&In(r),xt?.size>0)){Kt.clear();for(let e of xt){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)xt.has(n)&&(xt.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||dr(n)}}xt.clear()}}xt=null}}function Ct(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?Ct(i,t,n,r):e&4194320&&!(e&2048)&&wt(i,t,r)&&(tt(i,v),Tt(i))}}function wt(e,t,n){let i=n.get(e);if(i!==void 0)return i;if(e.deps!==null)for(let i of e.deps){if(r.call(t,i))return!0;if(i.f&2&&wt(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function Tt(e){lt.schedule(e)}function Et(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),tt(e,_);for(var n=e.first;n!==null;)Et(n,t),n=n.next}}function Dt(e){tt(e,_);for(var t=e.first;t!==null;)Dt(t),t=t.next}function Ot(e){let t=0,n=Jt(0),r;return()=>{yn()&&(B(n),Dn(()=>(t===0&&(r=V(()=>e(()=>Qt(n)))),t+=1,()=>{Xe(()=>{--t,t===0&&(r?.(),r=void 0,Qt(n))})})))}}var kt=te|ne;function At(e,t,n,r){new jt(e,t,n,r)}var jt=class{parent;is_pending=!1;transform_error;#e;#t=T?E:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=Ot(()=>(this.#m=Jt(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=z;t.b=this,t.f|=128,n(e)},this.parent=z.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=On(()=>{if(T){let e=this.#t;Ne();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},kt),T&&(this.#e=E)}#g(){try{this.#a=An(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=An(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=An(()=>e(this.#e)),Xe(()=>{var e=this.#c=document.createDocumentFragment(),t=sn();e.append(t),this.#a=this.#x(()=>An(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,Ln(this.#o,()=>{this.#o=null}),this.#b(lt))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=An(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Vn(this.#a,e);let t=this.#n.pending;this.#o=An(()=>t(this.#e))}else this.#b(lt)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){it(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=z,n=R,r=He;Jn(this.#i),qn(this.#i),Ue(this.#i.ctx);try{return vt.ensure(),e()}catch(e){return Qe(e),null}finally{Jn(t),qn(n),Ue(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&Ln(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,Xe(()=>{this.#d=!1,this.#m&&Xt(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),B(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(Pn(this.#a),null),this.#o&&=(Pn(this.#o),null),this.#s&&=(Pn(this.#s),null),T&&(Me(this.#t),Pe(),Me(Fe()));var r=!1,i=!1;let a=()=>{if(r){Ae();return}r=!0,i&&Te(),this.#s!==null&&Ln(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){$e(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return An(()=>{var t=z;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return $e(e,this.#i.parent),null}}))};Xe(()=>{var t;try{t=this.transform_error(e)}catch(e){$e(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>$e(e,this.#i&&this.#i.parent)):o(t)})}};function Mt(e,t,n,r){let i=Ge()?It:Rt;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=z,s=Nt(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){s();try{r(e)}catch(e){o.f&16384||$e(e,o)}Pt()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=Ft();function d(){Promise.all(n.map(e=>Lt(e))).then(e=>l([...t.map(i),...e])).catch(e=>$e(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),Pt()}):d()}function Nt(){var e=z,t=R,n=He,r=lt;return function(i=!0){Jn(e),qn(t),Ue(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Pt(e=!0){Jn(null),qn(null),Ue(null),e&<?.deactivate()}function Ft(){var e=z.b,t=lt,n=e.is_rendered();return e.update_pending_count(1,t),t.increment(n),(r=!1)=>{e.update_pending_count(-1,t),t.decrement(n,r)}}function It(e){var t=2|v,n=R!==null&&R.f&2?R:null;return z!==null&&(z.f|=ne),{ctx:He,deps:null,effects:null,equals:Le,f:t,fn:e,reactions:null,rv:0,v:De,wv:0,parent:n??z,ac:null}}function Lt(e,t,n){let r=z;r===null&&pe();var i=void 0,a=Jt(De),o=!R,s=new Map;return En(()=>{var t=z,n=m();i=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(Pt)}catch(e){n.reject(e),Pt()}var c=lt;if(o){if(t.f&32768)var l=Ft();if(r.b.is_rendered())s.get(c)?.reject(C),s.delete(c);else{for(let e of s.values())e.reject(C);s.clear()}s.set(c,n)}let u=(e,n=void 0)=>{if(l&&l(n===C),!(n===C||t.f&16384)){if(c.activate(),n)a.f|=ce,Xt(a,n);else{a.f&8388608&&(a.f^=ce),Xt(a,e);for(let[e,t]of s){if(s.delete(e),e===c)break;t.reject(C)}}c.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),bn(()=>{for(let e of s.values())e.reject(C)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function j(e){let t=It(e);return Be||Xn(t),t}function Rt(e){let t=It(e);return t.equals=ze,t}function zt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)Pn(t[n])}}function Bt(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function Vt(e){var t,n=z;Jn(Bt(e));try{e.f&=~ae,zt(e),t=cr(e)}finally{Jn(n)}return t}function Ht(e){var t=e.v,n=Vt(e);if(!e.equals(n)&&(e.wv=ar(),(!lt?.is_fork||e.deps===null)&&(e.v=n,lt?.capture(e,t),e.deps===null))){tt(e,_);return}Wn||(ut===null?nt(e):(yn()||lt?.is_fork)&&ut.set(e,n))}function Ut(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(C),t.teardown=f,t.ac=null,ur(t,0),Mn(t))}function Wt(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&dr(t)}var Gt=new Set,Kt=new Map,qt=!1;function Jt(e,t){return{f:0,v:e,reactions:null,equals:Le,rv:0,wv:0}}function M(e,t){let n=Jt(e,t);return Xn(n),n}function Yt(e,t=!1,n=!0){let r=Jt(e);return t||(r.equals=ze),Ve&&n&&He!==null&&He.l!==null&&(He.l.s??=[]).push(r),r}function N(e,t,n=!1){return R!==null&&(!Kn||R.f&131072)&&Ge()&&R.f&4325394&&(Yn===null||!r.call(Yn,e))&&we(),Xt(e,n?en(t):t,ht)}function Xt(e,t,n=null){if(!e.equals(t)){var r=e.v;Wn?Kt.set(e,t):Kt.set(e,r),e.v=t;var i=vt.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&Vt(t),ut===null&&nt(t)}e.wv=ar(),$t(e,v,n),Ge()&&z!==null&&z.f&1024&&!(z.f&96)&&($n===null?er([e]):$n.push(e)),!i.is_fork&&Gt.size>0&&!qt&&Zt()}return t}function Zt(){qt=!1;for(let e of Gt)e.f&1024&&tt(e,y),or(e)&&dr(e);Gt.clear()}function Qt(e){N(e,e.v+1)}function $t(e,t,n){var r=e.reactions;if(r!==null)for(var i=Ge(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===z)){var l=(c&v)===0;if(l&&tt(s,t),c&2){var u=s;ut?.delete(u),c&65536||(c&512&&(s.f|=ae),$t(u,y,n))}else if(l){var d=s;c&16&&xt!==null&&xt.add(d),n===null?Tt(d):n.push(d)}}}}function en(e){if(typeof e!=`object`||!e||le in e)return e;let n=u(e);if(n!==c&&n!==l)return e;var r=new Map,i=t(e),a=M(0),s=null,d=rr,f=e=>{if(rr===d)return e();var t=R,n=rr;qn(null),ir(d);var r=e();return qn(t),ir(n),r};return i&&r.set(`length`,M(e.length,s)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&Se();var i=r.get(t);return i===void 0?f(()=>{var e=M(n.value,s);return r.set(t,e),e}):N(i,n.value,!0),!0},deleteProperty(e,t){var n=r.get(t);if(n===void 0){if(t in e){let e=f(()=>M(De,s));r.set(t,e),Qt(a)}}else N(n,De),Qt(a);return!0},get(t,n,i){if(n===le)return e;var a=r.get(n),c=n in t;if(a===void 0&&(!c||o(t,n)?.writable)&&(a=f(()=>M(en(c?t[n]:De),s)),r.set(n,a)),a!==void 0){var l=B(a);return l===De?void 0:l}return Reflect.get(t,n,i)},getOwnPropertyDescriptor(e,t){var n=Reflect.getOwnPropertyDescriptor(e,t);if(n&&`value`in n){var i=r.get(t);i&&(n.value=B(i))}else if(n===void 0){var a=r.get(t),o=a?.v;if(a!==void 0&&o!==De)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return n},has(e,t){if(t===le)return!0;var n=r.get(t),i=n!==void 0&&n.v!==De||Reflect.has(e,t);return(n!==void 0||z!==null&&(!i||o(e,t)?.writable))&&(n===void 0&&(n=f(()=>M(i?en(e[t]):De,s)),r.set(t,n)),B(n)===De)?!1:i},set(e,t,n,c){var l=r.get(t),u=t in e;if(i&&t===`length`)for(var d=n;d<l.v;d+=1){var p=r.get(d+``);p===void 0?d in e&&(p=f(()=>M(De,s)),r.set(d+``,p)):N(p,De)}if(l===void 0)(!u||o(e,t)?.writable)&&(l=f(()=>M(void 0,s)),N(l,en(n)),r.set(t,l));else{u=l.v!==De;var m=f(()=>en(n));N(l,m)}var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(c,n),!u){if(i&&typeof t==`string`){var g=r.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&N(g,_+1)}Qt(a)}return!0},ownKeys(e){B(a);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==De});for(var[n,i]of r)i.v!==De&&!(n in e)&&t.push(n);return t},setPrototypeOf(){Ce()}})}var tn,nn,rn,an;function on(){if(tn===void 0){tn=window,document,nn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;rn=o(t,`firstChild`).get,an=o(t,`nextSibling`).get,d(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),d(n)&&(n.__t=void 0)}}function sn(e=``){return document.createTextNode(e)}function cn(e){return rn.call(e)}function ln(e){return an.call(e)}function P(e,t){if(!T)return cn(e);var n=cn(E);if(n===null)n=E.appendChild(sn());else if(t&&n.nodeType!==3){var r=sn();return n?.before(r),Me(r),r}return t&&pn(n),Me(n),n}function F(e,t=!1){if(!T){var n=cn(e);return n instanceof Comment&&n.data===``?ln(n):n}if(t){if(E?.nodeType!==3){var r=sn();return E?.before(r),Me(r),r}pn(E)}return E}function I(e,t=1,n=!1){let r=T?E:e;for(var i;t--;)i=r,r=ln(r);if(!T)return r;if(n){if(r?.nodeType!==3){var a=sn();return r===null?i?.after(a):r.before(a),Me(a),a}pn(r)}return Me(r),r}function un(e){e.textContent=``}function dn(){return!Be||xt!==null?!1:(z.f&S)!==0}function fn(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function pn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function mn(e,t){if(t){let t=document.body;e.autofocus=!0,Xe(()=>{document.activeElement===t&&e.focus()})}}function hn(e){var t=R,n=z;qn(null),Jn(null);try{return e()}finally{qn(t),Jn(n)}}function gn(e){z===null&&(R===null&&_e(e),ge()),Wn&&he(e)}function _n(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function vn(e,t){var n=z;n!==null&&n.f&8192&&(e|=b);var r={ctx:He,deps:null,nodes:null,f:e|v|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if(e&4)mt===null?vt.ensure().schedule(r):mt.push(r);else if(t!==null){try{dr(r)}catch(e){throw Pn(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=te))}if(i!==null&&(i.parent=n,n!==null&&_n(i,n),R!==null&&R.f&2&&!(e&64))){var a=R;(a.effects??=[]).push(i)}return r}function yn(){return R!==null&&!Kn}function bn(e){let t=vn(8,null);return tt(t,_),t.teardown=e,t}function xn(e){gn(`$effect`);var t=z.f;if(!R&&t&32&&!(t&32768)){var n=He;(n.e??=[]).push(e)}else return Sn(e)}function Sn(e){return vn(4|re,e)}function Cn(e){return gn(`$effect.pre`),vn(8|re,e)}function wn(e){vt.ensure();let t=vn(64|ne,e);return(e={})=>new Promise(n=>{e.outro?Ln(t,()=>{Pn(t),n(void 0)}):(Pn(t),n(void 0))})}function Tn(e){return vn(4,e)}function En(e){return vn(se|ne,e)}function Dn(e,t=0){return vn(8|t,e)}function L(e,t=[],n=[],r=[]){Mt(r,t,n,t=>{vn(8,()=>e(...t.map(B)))})}function On(e,t=0){return vn(16|t,e)}function kn(e,t=0){return vn(g|t,e)}function An(e){return vn(32|ne,e)}function jn(e){var t=e.teardown;if(t!==null){let e=Wn,n=R;Gn(!0),qn(null);try{t.call(null)}finally{Gn(e),qn(n)}}}function Mn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&hn(()=>{e.abort(C)});var r=n.next;n.f&64?n.parent=null:Pn(n,t),n=r}}function Nn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||Pn(t),t=n}}function Pn(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(Fn(e.nodes.start,e.nodes.end),n=!0),tt(e,ee),Mn(e,t&&!n),ur(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();jn(e),e.f^=ee,e.f|=x;var i=e.parent;i!==null&&i.first!==null&&In(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Fn(e,t){for(;e!==null;){var n=e===t?null:ln(e);e.remove(),e=n}}function In(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Ln(e,t,n=!0){var r=[];Rn(e,r,!0);var i=()=>{n&&Pn(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function Rn(e,t,n){if(!(e.f&8192)){e.f^=b;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next,o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;Rn(i,t,o?n:!1),i=a}}}function zn(e){Bn(e,!0)}function Bn(e,t){if(e.f&8192){e.f^=b,e.f&1024||(tt(e,v),vt.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;Bn(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function Vn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:ln(n);t.append(n),n=i}}var Hn=null,Un=!1,Wn=!1;function Gn(e){Wn=e}var R=null,Kn=!1;function qn(e){R=e}var z=null;function Jn(e){z=e}var Yn=null;function Xn(e){R!==null&&(!Be||R.f&2)&&(Yn===null?Yn=[e]:Yn.push(e))}var Zn=null,Qn=0,$n=null;function er(e){$n=e}var tr=1,nr=0,rr=nr;function ir(e){rr=e}function ar(){return++tr}function or(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~ae),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(or(a)&&Ht(a),a.wv>e.wv)return!0}t&512&&ut===null&&tt(e,_)}return!1}function sr(e,t,n=!0){var i=e.reactions;if(i!==null&&!(!Be&&Yn!==null&&r.call(Yn,e)))for(var a=0;a<i.length;a++){var o=i[a];o.f&2?sr(o,t,!1):t===o&&(n?tt(o,v):o.f&1024&&tt(o,y),Tt(o))}}function cr(e){var t=Zn,n=Qn,r=$n,i=R,a=Yn,o=He,s=Kn,c=rr,l=e.f;Zn=null,Qn=0,$n=null,R=l&96?null:e,Yn=null,Ue(e.ctx),Kn=!1,rr=++nr,e.ac!==null&&(hn(()=>{e.ac.abort(C)}),e.ac=null);try{e.f|=oe;var u=e.fn,d=u();e.f|=S;var f=e.deps,p=lt?.is_fork;if(Zn!==null){var m;if(p||ur(e,Qn),f!==null&&Qn>0)for(f.length=Qn+Zn.length,m=0;m<Zn.length;m++)f[Qn+m]=Zn[m];else e.deps=f=Zn;if(yn()&&e.f&512)for(m=Qn;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&Qn<f.length&&(ur(e,Qn),f.length=Qn);if(Ge()&&$n!==null&&!Kn&&f!==null&&!(e.f&6146))for(m=0;m<$n.length;m++)sr($n[m],e);if(i!==null&&i!==e){if(nr++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=nr;if(t!==null)for(let e of t)e.rv=nr;$n!==null&&(r===null?r=$n:r.push(...$n))}return e.f&8388608&&(e.f^=ce),d}catch(e){return Qe(e)}finally{e.f^=oe,Zn=t,Qn=n,$n=r,R=i,Yn=a,Ue(o),Kn=s,rr=c}}function lr(e,t){let i=t.reactions;if(i!==null){var a=n.call(i,e);if(a!==-1){var o=i.length-1;o===0?i=t.reactions=null:(i[a]=i[o],i.pop())}}if(i===null&&t.f&2&&(Zn===null||!r.call(Zn,t))){var s=t;s.f&512&&(s.f^=512,s.f&=~ae),nt(s),Ut(s),ur(s,0)}}function ur(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)lr(e,n[r])}function dr(e){var t=e.f;if(!(t&16384)){tt(e,_);var n=z,r=Un;z=e,Un=!0;try{t&16777232?Nn(e):Mn(e),jn(e);var i=cr(e);e.teardown=typeof i==`function`?i:null,e.wv=tr}finally{Un=r,z=n}}}async function fr(){if(Be)return new Promise(e=>{requestAnimationFrame(()=>e()),setTimeout(()=>e())});await Promise.resolve(),yt()}function B(e){var t=(e.f&2)!=0;if(Hn?.add(e),R!==null&&!Kn&&!(z!==null&&z.f&16384)&&(Yn===null||!r.call(Yn,e))){var n=R.deps;if(R.f&2097152)e.rv<nr&&(e.rv=nr,Zn===null&&n!==null&&n[Qn]===e?Qn++:Zn===null?Zn=[e]:Zn.push(e));else{(R.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[R]:r.call(i,R)||i.push(R)}}if(Wn&&Kt.has(e))return Kt.get(e);if(t){var a=e;if(Wn){var o=a.v;return(!(a.f&1024)&&a.reactions!==null||mr(a))&&(o=Vt(a)),Kt.set(a,o),o}var s=(a.f&512)==0&&!Kn&&R!==null&&(Un||(R.f&512)!=0),c=(a.f&S)===0;or(a)&&(s&&(a.f|=512),Ht(a)),s&&!c&&(Wt(a),pr(a))}if(ut?.has(e))return ut.get(e);if(e.f&8388608)throw e.v;return e.v}function pr(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Wt(t),pr(t))}function mr(e){if(e.v===De)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Kt.has(t)||t.f&2&&mr(t))return!0;return!1}function V(e){var t=Kn;try{return Kn=!0,e()}finally{Kn=t}}[...`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`)];var hr=[`touchstart`,`touchmove`];function gr(e){return hr.includes(e)}var _r=Symbol(`events`),vr=new Set,yr=new Set;function br(e,t,n,r={}){function i(e){if(r.capture||Tr.call(t,e),!e.cancelBubble)return hn(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?Xe(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function xr(e,t,n,r,i){var a={capture:r,passive:i},o=br(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&bn(()=>{t.removeEventListener(e,o,a)})}function Sr(e,t,n){(t[_r]??={})[e]=n}function Cr(e){for(var t=0;t<e.length;t++)vr.add(e[t]);for(var n of yr)n(e)}var wr=null;function Tr(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],o=i[0]||e.target;wr=e;var s=0,c=wr===e&&e[_r];if(c){var l=i.indexOf(c);if(l!==-1&&(t===document||t===window)){e[_r]=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(s=l)}if(o=i[s]||e.target,o!==t){a(e,`currentTarget`,{configurable:!0,get(){return o||n}});var d=R,f=z;qn(null),Jn(null);try{for(var p,m=[];o!==null;){var h=o.assignedSlot||o.parentNode||o.host||null;try{var g=o[_r]?.[r];g!=null&&(!o.disabled||e.target===o)&&g.call(o,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble||h===t||h===null)break;o=h}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[_r]=t,delete e.currentTarget,qn(d),Jn(f)}}}var Er=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function Dr(e){return Er?.createHTML(e)??e}function Or(e){var t=fn(`template`);return t.innerHTML=Dr(e.replaceAll(`<!>`,`<!---->`)),t.content}function kr(e,t){var n=z;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function H(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(T)return kr(E,null),E;i===void 0&&(i=Or(a?e:`<!>`+e),n||(i=cn(i)));var t=r||nn?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=cn(t),s=t.lastChild;kr(o,s)}else kr(t,t);return t}}function U(){if(T)return kr(E,null),E;var e=document.createDocumentFragment(),t=document.createComment(``),n=sn();return e.append(t,n),kr(t,n),e}function W(e,t){if(T){var n=z;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=E),Ne();return}e!==null&&e.before(t)}function Ar(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function jr(e,t){return Nr(e,t)}var Mr=new Map;function Nr(e,{target:t,anchor:n,props:r={},events:a,context:o,intro:s=!0,transformError:c}){on();var l=void 0,u=wn(()=>{var s=n??t.appendChild(sn());At(s,{pending:()=>{}},t=>{k({});var n=He;if(o&&(n.c=o),a&&(r.$$events=a),T&&kr(t,null),l=e(t,r)||{},T&&(z.nodes.end=E,E===null||E.nodeType!==8||E.data!==`]`))throw ke(),Ee;A()},c);var u=new Set,d=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!u.has(r)){u.add(r);var i=gr(r);for(let e of[t,document]){var a=Mr.get(e);a===void 0&&(a=new Map,Mr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,Tr,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return d(i(vr)),yr.add(d),()=>{for(var e of u)for(let n of[t,document]){var r=Mr.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,Tr),r.delete(e),r.size===0&&Mr.delete(n)):r.set(e,i)}yr.delete(d),s!==n&&s.parentNode?.removeChild(s)}});return Pr.set(l,u),l}var Pr=new WeakMap;function Fr(e,t){let n=Pr.get(e);return n?(Pr.delete(e),n(t)):Promise.resolve()}var Ir=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)zn(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(Pn(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();Vn(r,t),t.append(sn()),this.#n.set(e,{effect:r,fragment:t})}else Pn(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),Ln(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(Pn(n.effect),this.#n.delete(e))};ensure(e,t){var n=lt,r=dn();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=sn();i.append(a),this.#n.set(e,{effect:An(()=>t(a)),fragment:i})}else this.#t.set(e,An(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else T&&(this.anchor=E),this.#a(n)}};function G(e,t,n=!1){var r;T&&(r=E,Ne());var i=new Ir(e),a=n?te:0;function o(e,t){if(T){var n=Ie(r);if(e!==parseInt(n.substring(1))){var a=Fe();Me(a),i.anchor=a,je(!1),i.ensure(e,t),je(!0);return}}i.ensure(e,t)}On(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function K(e,t){return t}function Lr(e,t,n){for(var r=[],a=t.length,o,s=t.length,c=0;c<a;c++){let n=t[c];Ln(n,()=>{if(o){if(o.pending.delete(n),o.done.add(n),o.pending.size===0){var t=e.outrogroups;Rr(e,i(o.done)),t.delete(o),t.size===0&&(e.outrogroups=null)}}else --s},!1)}if(s===0){var l=r.length===0&&n!==null;if(l){var u=n,d=u.parentNode;un(d),d.append(u),e.items.clear()}Rr(e,t,!l)}else o={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(o)}function Rr(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=ie,Vn(a,document.createDocumentFragment())):Pn(t[i],n)}}var zr;function q(e,n,r,a,o,s=null){var c=e,l=new Map;if(n&4){var u=e;c=T?Me(cn(u)):u.appendChild(sn())}T&&Ne();var d=null,f=Rt(()=>{var e=r();return t(e)?e:e==null?[]:i(e)}),p,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=d,Vr(v,p,c,n,a),d!==null&&(p.length===0?d.f&33554432?(d.f^=ie,Ur(d,null,c)):zn(d):Ln(d,()=>{d=null})))}function _(e){v.pending.delete(e)}var v={effect:On(()=>{p=B(f);var e=p.length;let t=!1;T&&Ie(c)===`[!`!=(e===0)&&(c=Fe(),Me(c),je(!1),t=!0);for(var i=new Set,u=lt,v=dn(),y=0;y<e;y+=1){T&&E.nodeType===8&&E.data===`]`&&(c=E,t=!0,je(!1));var b=p[y],x=a(b,y),S=h?null:l.get(x);S?(S.v&&Xt(S.v,b),S.i&&Xt(S.i,y),v&&u.unskip_effect(S.e)):(S=Hr(l,h?c:zr??=sn(),b,x,y,o,n,r),h||(S.e.f|=ie),l.set(x,S)),i.add(x)}if(e===0&&s&&!d&&(h?d=An(()=>s(c)):(d=An(()=>s(zr??=sn())),d.f|=ie)),e>i.size&&me(``,``,``),T&&e>0&&Me(Fe()),!h)if(m.set(u,i),v){for(let[e,t]of l)i.has(e)||u.skip_effect(t.e);u.oncommit(g),u.ondiscard(_)}else g(u);t&&je(!0),B(f)}),flags:n,items:l,pending:m,outrogroups:null,fallback:d};h=!1,T&&(c=E)}function Br(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function Vr(e,t,n,r,a){var o=(r&8)!=0,s=t.length,c=e.items,l=Br(e.effect.first),u,d=null,f,p=[],m=[],h,g,_,v;if(o)for(v=0;v<s;v+=1)h=t[v],g=a(h,v),_=c.get(g).e,_.f&33554432||(_.nodes?.a?.measure(),(f??=new Set).add(_));for(v=0;v<s;v+=1){if(h=t[v],g=a(h,v),_=c.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&33554432)if(_.f^=ie,_===l)Ur(_,null,n);else{var y=d?d.next:l;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),Wr(e,d,_),Wr(e,_,y),Ur(_,y,n),d=_,p=[],m=[],l=Br(d.next);continue}if(_.f&8192&&(zn(_),o&&(_.nodes?.a?.unfix(),(f??=new Set).delete(_))),_!==l){if(u!==void 0&&u.has(_)){if(p.length<m.length){var b=m[0],x;d=b.prev;var S=p[0],ee=p[p.length-1];for(x=0;x<p.length;x+=1)Ur(p[x],b,n);for(x=0;x<m.length;x+=1)u.delete(m[x]);Wr(e,S.prev,ee.next),Wr(e,d,S),Wr(e,ee,b),l=b,d=ee,--v,p=[],m=[]}else u.delete(_),Ur(_,l,n),Wr(e,_.prev,_.next),Wr(e,_,d===null?e.effect.first:d.next),Wr(e,d,_),d=_;continue}for(p=[],m=[];l!==null&&l!==_;)(u??=new Set).add(l),m.push(l),l=Br(l.next);if(l===null)continue}_.f&33554432||p.push(_),d=_,l=Br(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(Rr(e,i(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var te=[];if(u!==void 0)for(_ of u)_.f&8192||te.push(_);for(;l!==null;)!(l.f&8192)&&l!==e.fallback&&te.push(l),l=Br(l.next);var ne=te.length;if(ne>0){var re=r&4&&s===0?n:null;if(o){for(v=0;v<ne;v+=1)te[v].nodes?.a?.measure();for(v=0;v<ne;v+=1)te[v].nodes?.a?.fix()}Lr(e,te,re)}}o&&Xe(()=>{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function Hr(e,t,n,r,i,a,o,s){var c=o&1?o&16?Jt(n):Yt(n,!1,!1):null,l=o&2?Jt(i):null;return{v:c,i:l,e:An(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function Ur(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=ln(r);if(a.before(r),r===i)return;r=o}}function Wr(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Gr(e,t,...n){var r=new Ir(e);On(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},te)}function Kr(e,t,n){var r;T&&(r=E,Ne());var i=new Ir(e);On(()=>{var e=t()??null;if(T&&Ie(r)===`[`!=(e!==null)){var a=Fe();Me(a),i.anchor=a,je(!1),i.ensure(e,e&&(t=>n(t,e))),je(!0);return}i.ensure(e,e&&(t=>n(t,e)))},te)}function qr(e,t){var n=void 0,r;kn(()=>{n!==(n=t())&&(r&&=(Pn(r),null),n&&(r=An(()=>{Tn(()=>n(e))})))})}function Jr(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Jr(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Yr(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Jr(e))&&(r&&(r+=` `),r+=t);return r}function Xr(e){return typeof e==`object`?Yr(e):e??``}var Zr=[...`
|
|
6
|
-
\r\f\xA0\v`];function Qr(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||Zr.includes(r[o-1]))&&(s===r.length||Zr.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function $r(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function ei(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function ti(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(ei)),i&&c.push(...Object.keys(i).map(ei));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=ei(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=$r(r)),i&&(n+=$r(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function J(e,t,n,r,i,a){var o=e.__className;if(T||o!==n||o===void 0){var s=Qr(n,r,a);(!T||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e.__className=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function ni(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function ri(e,t,n,r){var i=e.__style;if(T||i!==t){var a=ti(t,r);(!T||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e.__style=t}else r&&(Array.isArray(r)?(ni(e,n?.[0],r[0]),ni(e,n?.[1],r[1],`important`)):ni(e,n,r));return r}var ii=Symbol(`is custom element`),ai=Symbol(`is html`),oi=w?`link`:`LINK`;function si(e,t,n,r){var i=ci(e);T&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===oi)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[de]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&ui(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function ci(e){return e.__attributes??={[ii]:e.nodeName.includes(`-`),[ai]:e.namespaceURI===Oe}}var li=new Map;function ui(e){var t=e.getAttribute(`is`)||e.nodeName,n=li.get(t);if(n)return n;li.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=s(i),r)r[o].set&&n.push(o);i=u(i)}return n}var di=new class e{#e=new WeakMap;#t;#n;static entries=new WeakMap;constructor(e){this.#n=e}observe(e,t){var n=this.#e.get(e)||new Set;return n.add(t),this.#e.set(e,n),this.#r().observe(e,this.#n),()=>{var n=this.#e.get(e);n.delete(t),n.size===0&&(this.#e.delete(e),this.#t.unobserve(e))}}#r(){return this.#t??=new ResizeObserver(t=>{for(var n of t){e.entries.set(n.target,n);for(var r of this.#e.get(n.target)||[])r(n)}})}}({box:`border-box`});function fi(e,t,n){var r=di.observe(e,()=>n(e[t]));Tn(()=>(V(()=>n(e[t])),r))}function pi(e,t){return e===t||e?.[le]===t}function mi(e={},t,n,r){var i=He.r,a=z;return Tn(()=>{var o,s;return Dn(()=>{o=s,s=r?.()||[],V(()=>{e!==n(...s)&&(t(e,...s),o&&pi(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&pi(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function Y(e,t,n,r){var i=!Ve||(n&2)!=0,a=(n&8)!=0,s=(n&16)!=0,c=r,l=!0,u=()=>(l&&(l=!1,c=s?V(r):r),c);let d;if(a){var f=le in e||ue in e;d=o(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=st(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=u(),d&&(i&&be(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?u():(l=!0,n)}:()=>{var n=e[t];return n!==void 0&&(c=void 0),n===void 0?c:n};if(i&&!(n&4))return h;if(d){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&d(t?h():e),e):h()})}var _=!1,v=(n&1?It:Rt)(()=>(_=!1,h()));a&&B(v);var y=z;return(function(e,t){if(arguments.length>0){let n=t?B(v):i&&a?en(e):e;return N(v,n),_=!0,c!==void 0&&(c=n),e}return Wn&&_||y.f&16384?v.v:B(v)})}function hi(){return R===null&&ye(),(R.ac??=new AbortController).signal}function gi(e){He===null&&fe(`onMount`),Ve&&He.l!==null?_i(He).m.push(e):xn(()=>{let t=V(e);if(typeof t==`function`)return t})}function _i(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);function vi(e,t=void 0){return function(n){return n.key===`Enter`||n.key===` `&&!n.preventDefault()?e.call(t,n):void 0}}function yi(e){return t=>{typeof e==`string`?t.innerText=e:e?.domNodes?t.replaceChildren(...e.domNodes):e?.html&&(t.innerHTML=e.html)}}function bi(e){return t=>{let n=n=>{t&&!t.contains(n.target)&&t.dispatchEvent(new CustomEvent(e+`outside`,{detail:{jsEvent:n}}))};return document.addEventListener(e,n,!0),()=>{document.removeEventListener(e,n,!0)}}}function xi(e){return t=>{let n=new ResizeObserver(n=>{for(let r of n)e(t,r)});return n.observe(t),()=>{n.unobserve(t)}}}function Si(e,t){return n=>{let r=new IntersectionObserver(t=>{for(let r of t)e(n,r)},t);return r.observe(n),()=>{r.unobserve(n)}}}function X(...e){return Object.assign(...e)}function Ci(e){return Object.keys(e)}function wi(e){return Object.entries(e)}function Ti(e,t){return Object.hasOwn(e,t)}function Ei(e){return Math.floor(e)}function Di(e){return Math.ceil(e)}function Oi(...e){return Math.min(...e)}function ki(...e){return Math.max(...e)}function Ai(){return Symbol(`ec`)}function ji(e){return e.length}function Mi(e){return!ji(e)}function Ni(e){return Array.isArray(e)}function Z(e){return typeof e==`function`}function Pi(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Fi(e){return e instanceof Date}function Ii(e){return e()}function Li(e){e.forEach(Ii)}function Ri(){}var zi=e=>e;function Bi(){return window.getComputedStyle(document.documentElement).direction===`rtl`}var Vi=86400;function Hi(e=void 0){return e===void 0?sa(new Date):Fi(e)?sa(e):ca(e)}function Ui(e){if(typeof e==`number`)e={seconds:e};else if(typeof e==`string`){let t=0,n=2;for(let r of e.split(`:`,3))t+=parseInt(r,10)*60**n--;e={seconds:t}}else Fi(e)&&(e={hours:e.getUTCHours(),minutes:e.getUTCMinutes(),seconds:e.getUTCSeconds()});let t=e.weeks||e.week||0;return{years:e.years||e.year||0,months:e.months||e.month||0,days:t*7+(e.days||e.day||0),seconds:(e.hours||e.hour||0)*60*60+(e.minutes||e.minute||0)*60+(e.seconds||e.second||0),inWeeks:!!t}}function Q(e){return new Date(e.getTime())}function Wi(e,t,n=1){e.setUTCFullYear(e.getUTCFullYear()+n*t.years);let r=e.getUTCMonth()+n*t.months;for(e.setUTCMonth(r),r%=12,r<0&&(r+=12);e.getUTCMonth()!==r;)qi(e);return e.setUTCDate(e.getUTCDate()+n*t.days),e.setUTCSeconds(e.getUTCSeconds()+n*t.seconds),e}function Gi(e,t,n=1){return Wi(e,t,-n)}function Ki(e,t=1){return e.setUTCDate(e.getUTCDate()+t),e}function qi(e,t=1){return Ki(e,-t)}function Ji(e){return e.setUTCHours(0,0,0,0),e}function Yi(e){return new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds())}function Xi(e,t=19){return e.toISOString().substring(0,t)}function Zi(e,...t){return t.every(t=>e.getTime()===t.getTime())}function Qi(e,t){let n=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(n>=0?n:n+7)),e}function $i(e,t){let n=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(n<=0?n:n-7)),e}function ea(e){return typeof e==`string`&&e.length<=10}function ta(e,t){return e.setUTCHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),0),e}function $(e){return e.seconds}function na(e,t,n){return Wi(e,t),ia(e,n,Ki),e}function ra(e,t,n){return Gi(e,t),ia(e,n,qi),e}function ia(e,t,n){if(t.length&&t.length<7)for(;t.includes(e.getUTCDay());)n(e)}function aa(e,t){e=Q(e),t===0?e.setUTCDate(e.getUTCDate()+6-e.getUTCDay()):e.setUTCDate(e.getUTCDate()+4-(e.getUTCDay()||7));let n=new Date(Date.UTC(e.getUTCFullYear(),0,1));return Math.ceil(((e-n)/1e3/Vi+1)/7)}function oa(e,t,n){return t?Z(t)?t({date:Yi(n),week:e}):t:`W`+String(e).padStart(2,`0`)}function sa(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()))}function ca(e){let 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)))}var la=Ai();function ua(e,t){e[la]=t}function da(e){return!!e?.[la]}function fa(e){return e[la]}function pa(e,t,n,r=[]){let i=document.createElement(e);i.className=t,typeof n==`string`?i.innerText=n:n.domNodes?i.replaceChildren(...n.domNodes):n.html&&(i.innerHTML=n.html);for(let e of r)i.setAttribute(...e);return i}function ma(e){return e.getBoundingClientRect()}function ha(e,t){for(;t--;)e=e.parentElement;return e}function ga(e){return ma(e).height}function _a(e,t,n=document,r=[]){r.push(n);for(let i of n.elementsFromPoint(e,t)){if(da(i))return i;if(i.shadowRoot&&!r.includes(i.shadowRoot)){let n=_a(e,t,i.shadowRoot,r);if(n)return n}}return null}function va(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function ya(e,t=void 0){return function(n){n.stopPropagation(),e&&e.call(t,n)}}function ba(e,t,n,r){return{type:e,title:t,currentStart:n.start,currentEnd:n.end,activeStart:r.start,activeEnd:r.end,calendar:void 0}}function xa(e){return e=X({},e),e.currentStart=Yi(e.currentStart),e.currentEnd=Yi(e.currentEnd),e.activeStart=Yi(e.activeStart),e.activeEnd=Yi(e.activeEnd),e}var Sa=1;function Ca(e){return e.map(e=>{let t={id:`id`in e?String(e.id):`{generated-${Sa++}}`,resourceIds:wa(e,`resourceId`).map(String),allDay:e.allDay??(ea(e.start)&&ea(e.end)),start:Hi(e.start),end:Hi(e.end),title:e.title??``,editable:e.editable,startEditable:e.startEditable,durationEditable:e.durationEditable,display:e.display??`auto`,extendedProps:e.extendedProps??{},backgroundColor:e.backgroundColor??e.color,textColor:e.textColor,classNames:wa(e,`className`),styles:wa(e,`style`)};if(t.allDay){Ji(t.start);let e=Q(t.end);Ji(t.end),(!Zi(t.end,e)||Zi(t.end,t.start))&&Ki(t.end)}return t})}function wa(e,t){let n=e[t+`s`]??e[t]??[];return Ni(n)?n:[n]}function Ta(e){return e.map(e=>({events:e.events,url:e.url&&e.url.trimEnd(`&`)||``,method:e.method&&e.method.toUpperCase()||`GET`,extraParams:e.extraParams||{}}))}function Ea(e,t,n,r,i,a){let o=i.formatRange(e.start,t&&e.event.display!==`pointer`&&!e.zeroDuration?ta(Q(e.start),e.end):e.start),s;if(n&&(s=Z(n)?n({event:ka(e.event),timeText:o,view:xa(a)}):n),s===void 0){let t;switch(e.event.display){case`background`:t=[];break;case`pointer`:t=e.event.allDay?[]:[Da(o,e,r)];break;default:t=[...e.event.allDay?[]:[Da(o,e,r)],pa(`h4`,r.eventTitle,e.event.title)]}s={domNodes:t}}return[o,s]}function Da(e,t,n){return pa(`time`,n.eventTime,e,[[`datetime`,Xi(t.start)]])}function Oa(e,t,n){let r=t.classNames;return e&&(Z(e)&&(e=e({event:ka(t),view:xa(n)})),r=[...Ni(e)?e:[e],...r]),r}function ka(e){return ja(e,Yi)}function Aa(e){return ja(e,Q)}function ja(e,t){return e=X({},e),e.start=t(e.start),e.end=t(e.end),e}function Ma(e,t){e.length=t.length;for(let t of e)t?.reposition()}function Na(e,t,n,r=void 0){return(!r||e.resourceIds.includes(r.id))&&e.start<n&&e.end>t}function Pa(e){return Ia(e)||La(e)||Ra(e)}function Fa(e){return e===`background`}function Ia(e){return e===`preview`}function La(e){return e===`ghost`}function Ra(e){return e===`pointer`}function za(e,t,n){return t=e.start>t?e.start:t,n=e.end<n?e.end:n,{start:t,end:n,event:e,zeroDuration:Zi(t,n)}}function Ba(e,t,n=!0){let r=[],i,a,o,s;for(let{gridColumn:n,gridRow:c,resource:l,dayStart:u,dayEnd:d,disabled:f}of t)!f&&Na(e,u,d,l)&&(r.push(u),i=d,a||(a=n,o=c,s=l));if(r.length){let t=za(e,r[0],i);return X(t,{gridColumn:a,gridRow:o,resource:s,dates:r}),n&&Ga(t),[t]}return[]}function Va(e){let t={},n={};for(let r of e){let{gridColumn:e,gridRow:i}=r;for(let t=1;t<r.dates.length;++t){let a=`${i}_${e+t}`;n[a]?n[a].chunks.push(r):n[a]={sorted:!1,chunks:[r]}}let a=`${i}_${e}`;r.long=n[a],r.prev=t[a],t[a]=r}}function Ha(e,t,n=1){e.prev&&(n=e.prev.bottom+1);let r=n+t;if(e.long){let t=e.long;t.sorted||=(t.chunks.sort((e,t)=>e.top-t.top),!0);for(let e of t.chunks)if(n<e.bottom&&r>e.top){let t=e.bottom-n+1;n+=t,r+=t}}return X(e,{top:n,bottom:r}),n}var Ua=new WeakMap,Wa=1;function Ga(e){let{event:t,gridColumn:n,gridRow:r}=e,i=Ua.get(t);i||(i=Wa++,Ua.set(t,i)),e.id=`${i}-${n}-${r}`}function Ka(e,t){return()=>{let{options:{locale:n}}=e,r=e.options[t],i;return V(()=>{i=Z(r)?{format:r}:new Intl.DateTimeFormat(n,r)}),{format:e=>i.format(Yi(e))}}}function qa(e,t){return()=>{let{options:{locale:n}}=e,r=e.options[t],i;return V(()=>{if(Z(r))i=r;else{let e=new Intl.DateTimeFormat(n,r);i=(t,n)=>{if(t<=n)return e.formatRange(t,n);{let r=e.formatRangeToParts(n,t),i=``,a=[`startRange`,`endRange`],o=[!1,!1];for(let e of r){let t=a.indexOf(e.source);t>=0?o[t]||(i+=Ja(a[1-t],r),o[t]=!0):i+=e.value}return i}}}}),{formatRange:(e,t)=>i(Yi(e),Yi(t))}}}function Ja(e,t){let n=``;for(let r of t)r.source==e&&(n+=r.value);return n}function Ya(e){return $a(e,`day`)}function Xa(e){return $a(e,`week`)}function Za(e){return $a(e,`month`)}function Qa(e){return $a(e,`year`)}function $a(e,t){return{...e,next:`Next `+t,prev:`Previous `+t}}function eo(e){return t=>({...t,view:e})}function to(e){let t,n;return e&&({start:t,end:n}=e,t&&=Ji(Hi(t)),n&&=Ji(Hi(n))),{start:t,end:n}}function no(e,t){return t.start&&e<t.start||t.end&&e>t.end}function ro(e){let t=[];return io(e,0,!1,t),t}function io(e,t,n,r){let i=[];for(let a of e){let e=ao(a);i.push(e),r.push(e);let o={level:t,children:[],hidden:n};ua(e,o),a.children&&(o.children=io(a.children,t+1,n||!e.expanded,r))}return i}function ao(e){return{id:String(e.id),title:e.title||``,eventBackgroundColor:oo(e),eventTextColor:so(e),expanded:e.expanded??!0,extendedProps:e.extendedProps??{}}}function oo(e){return e?.eventBackgroundColor}function so(e){return e?.eventTextColor}function co(e,t){return Mi(e.resourceIds)?void 0:t.find(t=>e.resourceIds.includes(t.id))}function lo(e,t,n,r,i){let a=[];e=Q(e);let o=Q(e);for(Wi(e,r.min),Wi(o,r.max);e<o;)a.push([Xi(e),i.format(e)]),Wi(e,t,n);let s=Ei((e-o)/1e3/$(t));return s&&s!==n&&(a.at(-1)[2]=n-s),a}function uo(e,t,n,r,i){let a=Ui(e),o=Ui(t);if(n){let e=Ui(Oi($(a),ki(0,$(o)-Vi))),t=Ui(ki($(o),$(e)+Vi)),s=Z(n?.eventFilter)?n.eventFilter:e=>!Fa(e.display);loop:for(let n of r){let r=Wi(Q(n),a),c=Wi(Q(n),o),l=Wi(Q(n),e),u=Wi(Q(n),t);for(let d of i)if(!d.allDay&&s(d)&&d.start<u&&d.end>l){if(d.start<r){let t=ki((d.start-n)/1e3,$(e));t<$(a)&&(a.seconds=t)}if(d.end>c){let e=Oi((d.end-n)/1e3,$(t));e>$(o)&&(o.seconds=e)}if($(a)===$(e)&&$(o)===$(t))break loop}}}return{min:a,max:o}}var fo=class extends Map{#e=new Map;#t=M(0);#n=M(0);#r=rr||-1;constructor(e){if(super(),e){for(var[t,n]of e)super.set(t,n);this.#n.v=super.size}}#i(e){return rr===this.#r?M(e):Jt(e)}has(e){var t=this.#e,n=t.get(e);if(n===void 0)if(super.has(e))n=this.#i(0),t.set(e,n);else return B(this.#t),!1;return B(n),!0}forEach(e,t){this.#a(),super.forEach(e,t)}get(e){var t=this.#e,n=t.get(e);if(n===void 0)if(super.has(e))n=this.#i(0),t.set(e,n);else{B(this.#t);return}return B(n),super.get(e)}set(e,t){var n=this.#e,r=n.get(e),i=super.get(e),a=super.set(e,t),o=this.#t;if(r===void 0)r=this.#i(0),n.set(e,r),N(this.#n,super.size),Qt(o);else if(i!==t){Qt(r);var s=o.reactions===null?null:new Set(o.reactions);(s===null||!r.reactions?.every(e=>s.has(e)))&&Qt(o)}return a}delete(e){var t=this.#e,n=t.get(e),r=super.delete(e);return n!==void 0&&(t.delete(e),N(n,-1)),r&&(N(this.#n,super.size),Qt(this.#t)),r}clear(){if(super.size!==0){super.clear();var e=this.#e;N(this.#n,0);for(var t of e.values())N(t,-1);Qt(this.#t),e.clear()}}#a(){B(this.#t);var e=this.#e;if(this.#n.v!==e.size){for(var t of super.keys())if(!e.has(t)){var n=this.#i(0);e.set(t,n)}}for([,n]of this.#e)B(n)}keys(){return B(this.#t),super.keys()}values(){return this.#a(),super.values()}entries(){return this.#a(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return B(this.#n),super.size}};URLSearchParams,Symbol.iterator;function po(e){let t=0,n=M(en(t));return ho(e,()=>B(n),()=>!0,()=>N(n,++t,!0))}function mo(e){let t=0,n=en({});return ho(e,e=>n[e],(e,t)=>e!==t,e=>n[e]=++t)}function ho(e,t,n,r){return new Proxy(e,{get(e,n,r){return Ti(e,n)&&t(n),Reflect.get(e,n,r)},set(e,t,i,a){let o=n(e[t],i),s=Reflect.set(e,t,i,a);return o&&r(t),s}})}function go(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`],weekNumber:`ec-week-number`},titleFormat:{year:`numeric`,month:`short`,day:`numeric`},validRange:void 0,view:void 0,viewDidMount:void 0,views:{}};for(let n of e)n.createOptions?.(t);return t}function _o(e){let t={date:e=>Ji(Hi(e)),duration:Ui,events:Ca,eventSources:Ta,hiddenDays:e=>[...new Set(e)],highlightedDates:e=>e.map(e=>Ji(Hi(e))),resources:e=>Ni(e)?ro(e):e,validRange:to};for(let n of e)n.createParsers?.(t);return t}var vo=[`buttonText`,`customButtons`,`icons`,`theme`];function yo(e,t){let n=go(e),r=_o(e);n=bo(n,r),t=bo(t,r);let i=xo(n,`views`)??{},a=xo(t,`views`)??{},o=mo({});X(o,n),t.view&&(o.view=t.view);let s={},c={},l={},u=new Set([...Ci(i),...Ci(a)]);for(let e of u){let r=a[e]??{},u=So(n,i[e]??i[r.type]??{}),d=So(u,t,r),f=xo(d,`component`);delete d.view;for(let e of Ci(d))Ti(o,e)?(s[e]||(s[e]=[]),s[e].push(vo.includes(e)?t=>d[e]=Z(t)?t(u[e]):t:t=>d[e]=t)):delete d[e];c[e]=d,l[e]=f}return X(o,c[o.view]),[o,function(e,t,n=!0){Ti(o,e)&&(n||(e in r?t=r[e](t):Pi(t)?t={...t}:Ni(t)&&(t=[...t])),s[e]?.forEach(e=>e(t)),o[e]=t)},function(e){return X(o,c[e]),l[e]}]}function bo(e,t){let n={...e};for(let e of Ci(t))e in n&&(n[e]=t[e](n[e]));if(e.views){n.views={};for(let r of Ci(e.views))n.views[r]=bo(e.views[r],t)}return n}function xo(e,t){let n=e[t];return delete e[t],n}function So(...e){let t={};for(let n of e){let e={};for(let r of vo)Z(n[r])&&(e[r]=n[r](t[r]));t={...t,...n,...e}}return t}function Co(e,t){let n=[];for(let r of Ci(e))e[r]!==t[r]&&n.push([r,e[r]]);return n}function wo(e){return()=>{let{options:{view:t}}=e;V(()=>{let n=e.setViewOptions(t);e.extensions={},e.features=[],e.viewComponent=n(e)})}}function To(e,t){return()=>{let{activeRange:n,fetchedRange:{events:r},viewDates:i,options:{events:a,eventSources:o,lazyFetching:s}}=e;V(()=>{Do(o.map(e=>Z(e.events)?e.events:e),a,Ca,t=>e.events=po(t),n,r,i,!0,s,t)})}}function Eo(e,t){return()=>{let{activeRange:n,fetchedRange:{resources:r},viewDates:i,options:{lazyFetching:a,refetchResourcesOnNavigate:o,resources:s}}=e;V(()=>{Do(Ni(s)?[]:[s],s,ro,t=>e.resources=po(t),n,r,i,o,a,t)})}}function Do(e,t,n,r,i,a,o,s,c,l){if(!Mi(o)){if(Mi(e)){r(t);return}if((s||!a.start)&&(!c||!a.start||a.start>i.start||a.end<i.end)){let t=[],o=e=>l.stop(),c=e=>{t=t.concat(n(e)),r(t),l.stop()},u=Xi(i.start),d=Xi(i.end);for(let t of e)if(l.start(),Z(t)){let e=t(s?{start:Yi(i.start),end:Yi(i.end),startStr:u,endStr:d}:{},c,o);e!==void 0&&Promise.resolve(e).then(c,o)}else{let e=Z(t.extraParams)?t.extraParams():X({},t.extraParams);s&&(e.start=u,e.end=d),e=new URLSearchParams(e);let n=t.url,r={},i;[`GET`,`HEAD`].includes(t.method)?n+=(n.includes(`?`)?`&`:`?`)+e:(r[`content-type`]=`application/x-www-form-urlencoded;charset=UTF-8`,i=String(e)),fetch(n,{method:t.method,headers:r,body:i,signal:hi(),credentials:`same-origin`}).then(e=>e.json()).then(c).catch(o)}X(a,i)}}}function Oo(e){let t=0;function n(t){let{options:{loading:n}}=e;Z(n)&&n(t)}return{start:()=>++t===1&&n(!0),stop:()=>--t===0&&n(!1)}}function ko(e){return()=>{let t=setInterval(()=>{let t=Hi(),n=Ji(Q(t));e.now=t,Zi(e.today,n)||(e.today=n)},1e3);return()=>clearInterval(t)}}function Ao(e){return()=>{let{activeRange:t,options:{datesSet:n}}=e;V(()=>{Z(n)&&n({start:Yi(t.start),end:Yi(t.end),startStr:Xi(t.start),endStr:Xi(t.end),view:xa(e.view)})})}}function jo(e){let t;return()=>{let{filteredEvents:n,options:{eventAllUpdated:r}}=e;V(()=>{Z(r)&&(t||=setTimeout(()=>{t=null,r({view:xa(e.view)})}))})}}function Mo(e){return()=>{let{options:{view:t,viewDidMount:n}}=e;V(()=>{Z(n)&&fr().then(()=>n({view:xa(e.view)}))})}}function No(e){return()=>{let{options:{date:t,duration:n,firstDay:r}}=e,i,a;return V(()=>{i=Q(t),n.years?(i.setUTCMonth(0),i.setUTCDate(1)):n.months?i.setUTCDate(1):n.inWeeks&&$i(i,r),a=Wi(Q(i),n)}),{start:i,end:a}}}function Po(e){return()=>{let{currentRange:t,extensions:{activeRange:n}}=e,r,i;return V(()=>{r=Q(t.start),i=Q(t.end)}),n?n(r,i):{start:r,end:i}}}function Fo(e){return()=>{let{events:t,options:{eventFilter:n,eventOrder:r,filterEventsWithResources:i,resources:a,view:o}}=e,s=[...t];return V(()=>{if(Z(n)){let r=t.map(ka),i=xa(e.view);s=s.filter((e,t)=>n({event:ka(e),index:t,events:r,view:i}))}i&&(s=s.filter(e=>a.some(t=>e.resourceIds.includes(t.id)))),Z(r)?s.sort((e,t)=>r(ka(e),ka(t))):s.sort((e,t)=>e.start-t.start||t.allDay-e.allDay)}),s}}function Io(e){return()=>{let{options:t,activeRange:n}=e,{hiddenDays:r}=t,i=[];return V(()=>{let t=Ji(Q(n.start)),a=Ji(Q(n.end));for(;t<a;)r.includes(t.getUTCDay())||i.push(Q(t)),Ki(t);if(!i.length&&r.length&&r.length<7){for(;r.includes(t.getUTCDay());)Ki(t);fr().then(()=>{e.setOption(`date`,t)})}}),i}}function Lo(e){return()=>{let{currentRange:t,intlTitle:n}=e,r;return V(()=>{r=n.formatRange(t.start,qi(Q(t.end)))}),r}}function Ro(e){return()=>{let{activeRange:t,currentRange:n,viewTitle:r,options:{view:i}}=e,a;return V(()=>{a=ba(i,r,n,t)}),a}}var zo=class{#e;get auxComponents(){return B(this.#e)}set auxComponents(e){N(this.#e,e,!0)}#t;get currentRange(){return B(this.#t)}set currentRange(e){N(this.#t,e)}#n;get activeRange(){return B(this.#n)}set activeRange(e){N(this.#n,e)}#r;get fetchedRange(){return B(this.#r)}set fetchedRange(e){N(this.#r,e,!0)}#i;get events(){return B(this.#i)}set events(e){N(this.#i,e)}#a;get filteredEvents(){return B(this.#a)}set filteredEvents(e){N(this.#a,e)}#o;get mainEl(){return B(this.#o)}set mainEl(e){N(this.#o,e,!0)}#s;get now(){return B(this.#s)}set now(e){N(this.#s,e,!0)}#c;get resources(){return B(this.#c)}set resources(e){N(this.#c,e)}#l;get today(){return B(this.#l)}set today(e){N(this.#l,e,!0)}#u;get intlEventTime(){return B(this.#u)}set intlEventTime(e){N(this.#u,e)}#d;get intlDayHeader(){return B(this.#d)}set intlDayHeader(e){N(this.#d,e)}#f;get intlDayHeaderAL(){return B(this.#f)}set intlDayHeaderAL(e){N(this.#f,e)}#p;get intlTitle(){return B(this.#p)}set intlTitle(e){N(this.#p,e)}#m;get viewDates(){return B(this.#m)}set viewDates(e){N(this.#m,e)}#h;get viewTitle(){return B(this.#h)}set viewTitle(e){N(this.#h,e)}#g;get view(){return B(this.#g)}set view(e){N(this.#g,e)}#_;get viewComponent(){return B(this.#_)}set viewComponent(e){N(this.#_,e,!0)}#v;get extensions(){return B(this.#v)}set extensions(e){N(this.#v,e,!0)}#y;get features(){return B(this.#y)}set features(e){N(this.#y,e,!0)}#b;get interaction(){return B(this.#b)}set interaction(e){N(this.#b,e,!0)}#x;get iClasses(){return B(this.#x)}set iClasses(e){N(this.#x,e,!0)}#S;get iClass(){return B(this.#S)}set iClass(e){N(this.#S,e,!0)}options;setOption;setViewOptions;constructor(e,t){[this.options,this.setOption,this.setViewOptions]=yo(e,t),this.#e=M(en([])),this.#t=j(No(this)),this.#n=j(Po(this)),this.#r=M(en({events:{},resources:{}})),this.#i=M(po(this.options.events)),this.#a=j(Fo(this)),this.#o=M(),this.#s=M(en(Hi())),this.#c=M(po(this.options.resources)),this.#l=M(en(Ji(Q(this.now)))),this.#u=j(qa(this,`eventTimeFormat`)),this.#d=j(Ka(this,`dayHeaderFormat`)),this.#f=j(Ka(this,`dayHeaderAriaLabelFormat`)),this.#p=j(qa(this,`titleFormat`)),this.#m=j(Io(this)),this.#h=j(Lo(this)),this.#g=j(Ro(this)),this.#_=M(),this.#v=M(en({})),this.#y=M(en([])),this.#b=M(en({})),this.iEvents=new fo,this.#x=M(en(zi)),this.#S=M();for(let t of e)t.initState?.(this);this.#C()}#C(){let e=Oo(this);Cn(wo(this)),Cn(ko(this)),xn(To(this,e)),xn(Eo(this,e)),xn(Ao(this)),xn(jo(this)),xn(Mo(this))}},Bo=H(`<h2></h2>`),Vo=H(`<button><i></i></button>`),Ho=H(`<button><i></i></button>`),Uo=H(`<button> </button>`),Wo=H(`<button></button>`),Go=H(`<button> </button>`);function Ko(e,t){k(t,!0);let n=O(`state`),r=j(()=>n.currentRange),i=j(()=>n.today),a=j(()=>n.viewTitle),o=j(()=>n.viewDates),s=j(()=>n.options.buttonText),c=j(()=>n.options.customButtons),l=j(()=>n.options.date),u=j(()=>n.options.duration),d=j(()=>n.options.hiddenDays),f=j(()=>n.options.theme),p=j(()=>n.options.validRange),m=j(()=>n.options.view),h=M(!1),g=M(!1),_=M(!1),v=!1;Cn(()=>{B(o),B(p),t.buttons,V(()=>{v||(v=!0,t.buttons.includes(`prev`)&&(N(h,!1),B(p).start&&N(h,y(b),!0)),t.buttons.includes(`next`)&&(N(g,!1),B(p).end&&N(g,y(x),!0)),t.buttons.includes(`today`)&&(N(_,B(i)>=B(r).start&&B(i)<B(r).end,!0),!B(_)&&(B(p).start||B(p).end)&&N(_,y(S),!0)),fr().then(()=>v=!1))})});function y(e){let t=B(l);e();let r=B(o).every(e=>no(e,B(p)));return n.setOption(`date`,t),r}function b(){n.setOption(`date`,ra(Q(B(l)),B(u),B(d)))}function x(){n.setOption(`date`,na(Q(B(l)),B(u),B(d)))}function S(){n.setOption(`date`,Q(B(i)))}var ee=U();q(F(ee),17,()=>t.buttons,K,(e,t)=>{var r=U(),i=F(r),o=e=>{var t=Bo();qr(t,()=>yi(B(a))),L(()=>J(t,1,B(f).title)),W(e,t)},l=e=>{var n=Vo(),r=P(n);D(n),L(()=>{J(n,1,`${B(f).button??``} ec-${B(t)??``}`),si(n,`aria-label`,B(s).prev),si(n,`title`,B(s).prev),n.disabled=B(h),J(r,1,`${B(f).icon??``} ec-${B(t)??``}`)}),Sr(`click`,n,b),W(e,n)},u=e=>{var n=Ho(),r=P(n);D(n),L(()=>{J(n,1,`${B(f).button??``} ec-${B(t)??``}`),si(n,`aria-label`,B(s).next),si(n,`title`,B(s).next),n.disabled=B(g),J(r,1,`${B(f).icon??``} ec-${B(t)??``}`)}),Sr(`click`,n,x),W(e,n)},d=e=>{var n=Uo(),r=P(n,!0);D(n),L(()=>{J(n,1,`${B(f).button??``} ec-${B(t)??``}`),n.disabled=B(_),Ar(r,B(s)[B(t)])}),Sr(`click`,n,S),W(e,n)},p=e=>{var n=Wo();qr(n,()=>yi(B(c)[B(t)].text)),L(()=>J(n,1,Xr([B(f).button,`ec-${B(t)}`,B(c)[B(t)].active&&B(f).active]))),Sr(`click`,n,function(...e){B(c)[B(t)].click?.apply(this,e)}),W(e,n)},v=e=>{var r=Go(),i=P(r,!0);D(r),L(()=>{J(r,1,Xr([B(f).button,`ec-${B(t)}`,B(m)===B(t)&&B(f).active])),Ar(i,B(s)[B(t)])}),Sr(`click`,r,()=>n.setOption(`view`,B(t))),W(e,r)};G(i,e=>{B(t)===`title`?e(o):B(t)===`prev`?e(l,1):B(t)===`next`?e(u,2):B(t)===`today`?e(d,3):B(c)[B(t)]?e(p,4):B(t)!==``&&e(v,5)}),W(e,r)}),W(e,ee),A()}Cr([`click`]);var qo=H(`<div><!></div>`),Jo=H(`<div></div>`),Yo=H(`<nav></nav>`);function Xo(e,t){k(t,!0);let n=j(()=>O(`state`)),r=j(()=>B(n).options.headerToolbar),i=j(()=>B(n).options.theme),a=j(()=>{let e={};for(let t of[`start`,`center`,`end`])e[t]=B(r)[t]?.split(` `).map(e=>e.split(`,`))??[];return e});var o=Yo();q(o,21,()=>Ci(B(a)),K,(e,t)=>{var n=Jo();q(n,21,()=>B(a)[B(t)],K,(e,t)=>{var n=U(),r=F(n),a=e=>{var n=qo();Ko(P(n),{get buttons(){return B(t)}}),D(n),L(()=>J(n,1,B(i).buttonGroup)),W(e,n)},o=e=>{Ko(e,{get buttons(){return B(t)}})};G(r,e=>{B(t).length>1?e(a):e(o,-1)}),W(e,n)}),D(n),L(()=>J(n,1,`ec-${B(t)??``}`)),W(e,n)}),D(o),L(()=>J(o,1,B(i).toolbar)),W(e,o),A()}var Zo=H(`<div><!> <!> <!></div>`);function Qo(e,t){k(t,!0);let n=Y(t,`plugins`,19,()=>[]),r=Y(t,`options`,19,()=>({})),i=new zo(n(),r());We(`state`,i);let a=j(()=>i.auxComponents),o=j(()=>i.features),s=j(()=>i.events),c=j(()=>i.interaction),l=j(()=>i.iClass),u=j(()=>i.view),d=j(()=>i.viewComponent),f=j(()=>i.options.date),p=j(()=>i.options.duration),m=j(()=>i.options.height),h=j(()=>i.options.hiddenDays),g=j(()=>i.options.customScrollbars),_=j(()=>i.options.theme),v={...r()};Cn(()=>{for(let[e,t]of Co(r(),v))V(()=>{y(e,t)});X(v,r())});function y(e,t){return i.setOption(e,t,!1),this}function b(e){let t=i.options[e];return Fi(t)?Yi(t):t}function x(){return i.fetchedRange.resources={},this}function S(){return i.fetchedRange.events={},this}function ee(){return B(s).map(ka)}function te(e){e=String(e);for(let t of B(s))if(t.id===e)return ka(t);return null}function ne(e){return e=Ca([e])[0],B(s).push(e),ka(e)}function re(e){let t=String(e.id),n=B(s).findIndex(e=>e.id===t);return n>=0?(e=Ca([e])[0],B(s)[n]=e,ka(e)):null}function ie(e){e=String(e);let t=B(s).findIndex(t=>t.id===e);return t>=0&&B(s).splice(t,1),this}function ae(){return xa(B(u))}function oe(){return B(c).action?.unselect(),this}function se(e,t){let n=_a(e,t);if(n){let r=fa(n)(e,t);return r.date=Yi(r.date),r}return null}function ce(){return i.setOption(`date`,na(Q(B(f)),B(p),B(h))),this}function le(){return i.setOption(`date`,ra(Q(B(f)),B(p),B(h))),this}var ue={setOption:y,getOption:b,refetchResources:x,refetchEvents:S,getEvents:ee,getEventById:te,addEvent:ne,updateEvent:re,removeEventById:ie,getView:ae,unselect:oe,dateFromPoint:se,next:ce,prev:le},de=Zo();let C;var w=P(de);Xo(w,{});var fe=I(w,2);return Kr(fe,()=>B(d),(e,t)=>{t(e,{})}),q(I(fe,2),17,()=>B(a),K,(e,t)=>{var n=U();Kr(F(n),()=>B(t),(e,t)=>{t(e,{})}),W(e,n)}),D(de),L(e=>{J(de,1,Xr([B(_).calendar,B(_).view,B(l)&&B(_)[B(l)],B(g)&&B(_).customScrollbars])),si(de,`role`,e),C=ri(de,``,C,{height:B(m)})},[()=>B(o).includes(`list`)?`list`:`table`]),W(e,de),A(ue)}function $o(e){return()=>{let{viewDates:t,options:{duration:n,hiddenDays:r}}=e,i;return V(()=>i=n.months||n.inWeeks?7-r.length:t.length),i}}function es(e,t){return()=>{let{options:{highlightedDates:n,validRange:r},viewDates:i}=e,{colsCount:a}=t,o=[];return V(()=>{let e=[],t=1,s=1;for(let c of i)e.push({gridColumn:t,gridRow:s,resource:void 0,dayStart:c,dayEnd:Ki(Q(c)),disabled:no(c,r),highlight:n.some(e=>Zi(e,c))}),t===a&&(o.push(e),e=[],t=0,++s),++t}),o}}function ts(e,t){return()=>{let{filteredEvents:n}=e,{grid:r}=t,i=[],a=[];return V(()=>{for(let e of n)for(let t of r)Fa(e.display)?e.allDay&&(a=a.concat(Ba(e,t))):i=i.concat(Ba(e,t));Va(i)}),{chunks:i,bgChunks:a}}}function ns(e,t){return()=>{let{iEvents:n}=e,{grid:r}=t,i=[];for(let[,e]of n)e&&V(()=>{for(let t of r)i=i.concat(Ba(e,t,!1))});return i}}var rs=class{#e;get colsCount(){return B(this.#e)}set colsCount(e){N(this.#e,e)}#t;get grid(){return B(this.#t)}set grid(e){N(this.#t,e)}#n;get gridEl(){return B(this.#n)}set gridEl(e){N(this.#n,e,!0)}#r;get chunks(){return B(this.#r)}set chunks(e){N(this.#r,e)}#i;get bgChunks(){return B(this.#i)}set bgChunks(e){N(this.#i,e)}#a;get iChunks(){return B(this.#a)}set iChunks(e){N(this.#a,e)}#o;get intlDayCell(){return B(this.#o)}set intlDayCell(e){N(this.#o,e)}#s;get intlDayPopover(){return B(this.#s)}set intlDayPopover(e){N(this.#s,e)}#c;get popupDay(){return B(this.#c)}set popupDay(e){N(this.#c,e,!0)}constructor(e){this.#e=j($o(e)),this.#t=j(es(e,this)),this.#n=M();let t=j(ts(e,this)),n=j(()=>B(t).chunks),r=j(()=>B(t).bgChunks);this.#r=j(()=>B(n)),this.#i=j(()=>B(r)),this.#a=j(ns(e,this)),this.hiddenChunks=new fo,this.#o=j(Ka(e,`dayCellFormat`)),this.#s=j(Ka(e,`dayPopoverFormat`)),this.#c=M(null)}},is=H(`<div><!></div>`);function as(e,t){k(t,!0);let n=Y(t,`el`,15),r=Y(t,`allDay`,3,!1),i=Y(t,`resource`,3,void 0),a=Y(t,`dateFromPoint`,3,()=>t.date),o=Y(t,`classes`,3,zi),s=Y(t,`disabled`,3,!1),c=Y(t,`highlight`,3,!1),l=Y(t,`role`,3,`cell`),u=Y(t,`noIeb`,3,!1),d=Y(t,`noBeb`,3,!1),p=j(()=>O(`state`)),m=j(()=>B(p).today),h=j(()=>B(p).interaction.action),g=j(()=>B(p).options.theme),_=j(()=>O(`view-state`)),v=j(()=>B(_).snap),y=j(()=>Zi(t.date,B(m))),b=j(()=>o()([B(g).day,B(g).weekdays?.[t.date.getUTCDay()],B(y)&&B(g).today,c()&&B(g).highlight,s()&&B(g).disabled,u()&&B(g).noIeb,d()&&B(g).noBeb]));gi(()=>{ua(n(),(e,t)=>({allDay:r(),date:a()(e,t),resource:i(),dayEl:n(),disabled:s()}))});let x=j(()=>!s()&&B(h)?e=>B(h).select(e,B(v)):void 0);var S=is();Gr(P(S),()=>t.children??f),D(S),mi(S,e=>n(e),()=>n()),L(()=>{J(S,1,Xr(B(b))),si(S,`role`,l())}),Sr(`pointerdown`,S,function(...e){B(x)?.apply(this,e)}),W(e,S),A()}Cr([`pointerdown`]);var os=H(`<div></div>`),ss=H(`<article><!></article>`);function cs(e,t){k(t,!0);let n=Y(t,`el`,15),r=Y(t,`classes`,3,zi),i=Y(t,`styles`,3,zi),a=j(()=>O(`state`)),o=j(()=>B(a).intlEventTime),s=j(()=>B(a).resources),c=j(()=>B(a).view),l=j(()=>B(a).options.displayEventEnd),u=j(()=>B(a).options.eventBackgroundColor),d=j(()=>B(a).options.eventColor),f=j(()=>B(a).options.eventContent),p=j(()=>B(a).options.eventClick),m=j(()=>B(a).options.eventDidMount),g=j(()=>B(a).options.eventClassNames),_=j(()=>B(a).options.eventMouseEnter),v=j(()=>B(a).options.eventMouseLeave),y=j(()=>B(a).options.eventTextColor),b=j(()=>B(a).options.theme),x=j(()=>t.chunk.event),S=j(()=>t.chunk.event.display),ee=j(()=>B(x).backgroundColor??oo(t.chunk.resource??co(B(x),B(s)))??B(u)??B(d)),te=j(()=>B(x).textColor??so(t.chunk.resource??co(B(x),B(s)))??B(y)),ne=j(()=>wi(i()({"background-color":B(ee),color:B(te)})).map(e=>`${e[0]}:${e[1]}`).concat(B(x).styles).join(`;`)),re=j(()=>r()([Fa(B(S))?B(b).bgEvent:B(b).event,...Oa(B(g),B(x),B(c))])),ie=j(()=>Ea(t.chunk,B(l),B(f),B(b),B(o),B(c))),ae=j(()=>h(B(ie),2)),oe=j(()=>B(ae)[0]),se=j(()=>B(ae)[1]);gi(()=>{Z(B(m))&&B(m)({event:ka(B(x)),timeText:B(oe),el:n(),view:xa(B(c))})});function ce(e,t){return Z(e)&&!Pa(t)?t=>e({event:ka(B(x)),el:n(),jsEvent:t,view:xa(B(c))}):void 0}let le=j(()=>!Fa(B(S))&&ce(B(p),B(S))||void 0),ue=j(()=>B(le)&&vi(B(le))),de=j(()=>ce(B(_),B(S))),C=j(()=>ce(B(v),B(S)));var w=ss();{let e=e=>{var t=os();qr(t,()=>yi(B(se))),L(()=>J(t,1,Xr(B(b).eventBody))),W(e,t)};var fe=P(w),pe=n=>{var r=U();Gr(F(r),()=>t.body,()=>e,()=>B(ee),()=>B(te)),W(n,r)},me=t=>{e(t)};G(fe,e=>{t.body?e(pe):e(me,-1)}),D(w),mi(w,e=>n(e),()=>n())}L(()=>{J(w,1,Xr(B(re))),ri(w,B(ne)),si(w,`role`,B(le)?`button`:void 0),si(w,`tabindex`,B(le)?0:void 0)}),Sr(`click`,w,function(...e){B(le)?.apply(this,e)}),Sr(`keydown`,w,function(...e){B(ue)?.apply(this,e)}),xr(`mouseenter`,w,function(...e){B(de)?.apply(this,e)}),xr(`mouseleave`,w,function(...e){B(C)?.apply(this,e)}),Sr(`pointerdown`,w,function(...e){t.onpointerdown?.apply(this,e)}),W(e,w),A()}Cr([`click`,`keydown`,`pointerdown`]);var ls=H(`<div><!></div>`);function us(e,t){k(t,!0);let n=Y(t,`weekday`,3,!0),r=Y(t,`colSpan`,3,1),i=Y(t,`ariaHidden`,3,!1),a=Y(t,`disabled`,3,!1),o=Y(t,`highlight`,3,!1),s=Y(t,`cssSpan`,3,!1),c=j(()=>O(`state`)),l=j(()=>B(c).today),u=j(()=>B(c).options.theme);var d=ls();let f;Gr(P(d),()=>t.children),D(d),L(e=>{J(d,1,e),si(d,`role`,i()?null:`columnheader`),si(d,`aria-colspan`,i()||r()<=1?null:r()),si(d,`aria-colindex`,i()?null:t.colIndex),si(d,`aria-hidden`,i()?`true`:null),f=ri(d,``,f,{"--ec-col-group-span":s()?r():void 0})},[()=>Xr([t.className??B(u).colHead,n()&&B(u).weekdays?.[t.date.getUTCDay()],n()&&Zi(t.date,B(l))&&B(u).today,o()&&B(u).highlight,a()&&B(u).disabled])]),W(e,d),A()}var ds=H(`<time></time>`);function fs(e,t){k(t,!0);let n=Y(t,`alPrefix`,3,``),r=j(()=>O(`state`)),i=j(()=>B(r).intlDayHeader),a=j(()=>B(r).intlDayHeaderAL);var o=ds();qr(o,()=>yi(B(i).format(t.date))),L((e,t)=>{si(o,`datetime`,e),si(o,`aria-label`,`${n()??``}${t??``}`)},[()=>Xi(t.date,10),()=>B(a).format(t.date)]),W(e,o),A()}function ps(e,t){k(t,!0);let n=Y(t,`el`,15),r=j(()=>O(`state`)),i=j(()=>B(r).iClasses),a=j(()=>B(r).interaction.action),o=j(()=>B(r).interaction.resizer),s=j(()=>O(`view-state`)),c=j(()=>B(s).snap),l=j(()=>t.chunk.event),u=j(()=>t.chunk.event.display),d=j(()=>e=>B(i)(e,B(l)));function p(e){return B(a)?.draggable(e)?n=>B(a).drag(e,n,t.forceDate,t.forceMargin,B(c)):B(a)?.noAction}let m=j(()=>!Fa(B(u))&&!Pa(B(u))?p(B(l)):void 0);cs(e,{get chunk(){return t.chunk},get classes(){return B(d)},get styles(){return t.styles},get onpointerdown(){return B(m)},get el(){return n()},set el(e){n(e)},body:(e,n=f)=>{var r=U(),i=F(r),a=e=>{var r=U();Kr(F(r),()=>B(o),(e,r)=>{r(e,{get chunk(){return t.chunk},get axis(){return t.axis},get forceDate(){return t.forceDate},get forceMargin(){return t.forceMargin},children:(e,t)=>{var r=U();Gr(F(r),n),W(e,r)},$$slots:{default:!0}})}),W(e,r)},s=e=>{var t=U();Gr(F(t),n),W(e,t)};G(i,e=>{B(o)?e(a):e(s,-1)}),W(e,r)},$$slots:{body:!0}}),A()}var ms=H(`<time></time>`),hs=H(`<span></span>`),gs=H(`<a role="button" tabindex="0" aria-haspopup="dialog"></a>`),_s=H(`<div><!> <!></div> <div><!></div>`,1);function vs(e,t){k(t,!0);let n=O(`state`),r=O(`view-state`),i=j(()=>n.features),a=j(()=>n.options.date),o=j(()=>n.options.firstDay),s=j(()=>n.options.moreLinkContent),c=j(()=>n.options.theme),l=j(()=>n.options.weekNumbers),u=j(()=>n.options.weekNumberContent),d=j(()=>r.hiddenChunks),f=j(()=>r.intlDayCell),p=j(()=>t.day.dayStart),m=j(()=>t.day.disabled),h=j(()=>t.day.highlight),g=j(()=>B(p).getUTCMonth()!==B(a).getUTCMonth()),_=j(()=>e=>[...e,B(g)&&B(c).otherMonth]),v=j(()=>B(l)&&B(p).getUTCDay()===(B(o)?1:0)),y=j(()=>B(v)?oa(aa(B(p),B(o)),B(u),B(p)):void 0),b=j(()=>B(d).get(B(p).getTime())),x=j(()=>{let e=``;if(B(b)){let t=`+`+B(b).length+` more`;e=B(s)?Z(B(s))?B(s)({num:B(b).length,text:t}):B(s):t}return e});function S(){r.popupDay=t.day}as(e,{get date(){return B(p)},allDay:!0,get classes(){return B(_)},get disabled(){return B(m)},get highlight(){return B(h)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},children:(e,t)=>{var n=_s(),r=F(n),a=P(r),o=e=>{var t=ms();qr(t,()=>yi(B(f).format(B(p)))),L(e=>si(t,`datetime`,e),[()=>Xi(B(p),10)]),W(e,t)},s=j(()=>B(i).includes(`dayNumber`));G(a,e=>{B(s)&&e(o)});var l=I(a,2),u=e=>{var t=hs();qr(t,()=>yi(B(y))),L(()=>J(t,1,B(c).weekNumber)),W(e,t)};G(l,e=>{B(v)&&e(u)}),D(r);var d=I(r,2),m=P(d),h=e=>{var t=gs(),n=j(()=>ya(S)),r=j(()=>vi(S)),i=j(ya);qr(t,()=>yi(B(x))),Sr(`click`,t,function(...e){B(n)?.apply(this,e)}),Sr(`keydown`,t,function(...e){B(r)?.apply(this,e)}),Sr(`pointerdown`,t,function(...e){B(i)?.apply(this,e)}),W(e,t)};G(m,e=>{B(b)&&e(h)}),D(d),L(()=>{J(r,1,B(c).dayHead),J(d,1,B(c).dayFoot)}),W(e,n)},$$slots:{default:!0}}),A()}Cr([`click`,`keydown`,`pointerdown`]);function ys(e,t){k(t,!0);let n=Y(t,`inPopup`,3,!1),r=j(()=>O(`state`)),i=j(()=>B(r).options.dayMaxEvents),a=j(()=>O(`view-state`)),o=j(()=>B(a).colsCount),s=j(()=>B(a).gridEl),c=j(()=>B(a).hiddenChunks),l=j(()=>B(a).popupDay),u=M(void 0),d=M(1),f=M(!1),p=j(()=>t.chunk.event),m=j(()=>t.chunk.event.display),h=j(()=>B(s).children.item((t.chunk.gridRow-1)*B(o)+t.chunk.gridColumn-1));xn(()=>{n()||N(d,ga(B(h).firstElementChild)||1,!0)});let g=j(()=>e=>{if(e[`grid-column`]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,e[`grid-row`]=t.chunk.gridRow,!Fa(B(m))){let r=n()?1:B(d);if(B(p)._margin){let[e,n]=B(p)._margin;e>r&&t.chunk.gridRow===n&&(r=e)}e[`margin-block-start`]=`${r}px`}return B(f)&&(e.visibility=`hidden`),e});function _(){N(d,Ha(t.chunk,ga(B(u)),ga(B(h).firstElementChild)||1),!0)}function v(){if(B(i)===!0){let e=ga(B(h))-y(B(h));if(N(f,t.chunk.bottom>e),B(f))for(let e of t.chunk.dates){let n=e.getTime();if(B(c).has(n)){let e=B(c).get(n);e.includes(t.chunk)||B(c).set(n,[...e,t.chunk])}else B(c).set(n,[t.chunk])}}else N(f,!1),B(c).size&&B(c).clear()}function y(e){let n=0;for(let r=0;r<t.chunk.dates.length&&(n=ki(n,ga(e.lastElementChild)),e=e.nextElementSibling,e);++r);return n}var b={reposition:_,hide:v};{let r=j(()=>n()&&B(l).dayStart),i=j(()=>[B(d),t.chunk.gridRow]);ps(e,{get chunk(){return t.chunk},get styles(){return B(g)},axis:`x`,get forceDate(){return B(r)},get forceMargin(){return B(i)},get el(){return B(u)},set el(e){N(u,e,!0)}})}return A(b)}var bs=H(`<dialog closedby="closerequest"><header><time></time> <a role="button" tabindex="0">×</a></header> <div></div></dialog>`);function xs(e,t){k(t,!0);let n=O(`view-state`),r=j(()=>O(`state`)),i=j(()=>B(r).interaction),a=j(()=>B(r).options.buttonText),o=j(()=>B(r).options.theme),s=j(()=>n.colsCount),c=j(()=>n.chunks),l=j(()=>n.gridEl),u=j(()=>n.intlDayPopover),d=j(()=>n.popupDay),f=M(void 0),p=M(``),m=j(()=>B(d).gridColumn),h=j(()=>B(d).gridRow),g=j(()=>B(d).dayStart),_=j(()=>B(d).dayEnd),v=j(()=>{let e=[];for(let t of B(c))t.gridRow===B(h)&&t.gridColumn<=B(m)&&t.gridColumn+t.dates.length>B(m)&&e.push(X({},t,za(t.event,B(g),B(_))));return e.sort((e,t)=>e.top-t.top),e});gi(()=>{B(f).show()}),xn(()=>{B(v).length?V(y):b()});function y(){let e=B(l).children.item((B(h)-1)*B(s)+B(m)-1),t=ma(B(f)),n=ma(e),r=ma(B(l));N(p,``);let i;if(t.width>=r.width){i=r.left-n.left;let e=n.right-r.right;N(p,B(p)+`inset-inline-end:${e}px;`)}else i=(n.width-t.width)/2,n.left+i<r.left?i=r.left-n.left:n.left+i+t.width>r.right&&(i=r.right-n.left-t.width);N(p,B(p)+`inset-inline-start:${i}px;`);let a;t.height>=r.height?(a=r.top-n.top,N(p,B(p)+`block-size:${r.height}px;`)):(a=(n.height-t.height)/2,n.top+a<r.top?a=r.top-n.top:n.top+a+t.height>r.bottom&&(a=r.bottom-n.top-t.height)),N(p,B(p)+`inset-block-start:${a}px;`)}function b(){n.popupDay=null}function x(){b(),B(i).action?.noClick()}var S=bs();let ee;var te=P(S),ne=P(te);qr(ne,()=>yi(B(u).format(B(g))));var re=I(ne,2);mn(re,!0);var ie=j(()=>ya(b)),ae=j(()=>vi(b));D(te);var oe=I(te,2);q(oe,21,()=>B(v),K,(e,t)=>{ys(e,{get chunk(){return B(t)},inPopup:!0})}),D(oe),D(S),mi(S,e=>N(f,e),()=>B(f)),qr(S,()=>bi(`pointerdown`)),L(e=>{J(S,1,B(o).popup),ee=ri(S,B(p),ee,{"grid-area":`${B(h)+1} / ${B(m)}`}),J(te,1,B(o).dayHead),si(ne,`datetime`,e),si(re,`aria-label`,B(a).close),J(oe,1,B(o).events)},[()=>Xi(B(g),10)]),xr(`pointerdownoutside`,S,x),xr(`close`,S,b),Sr(`click`,re,function(...e){B(ie)?.apply(this,e)}),Sr(`keydown`,re,function(...e){B(ae)?.apply(this,e)}),W(e,S),A()}Cr([`click`,`keydown`]);var Ss=H(`<div role="columnheader"><span></span></div>`),Cs=H(`<section><header><div role="row"></div></header> <div><div></div> <div><!> <!> <!></div></div> <!></section>`);function ws(e,t){k(t,!0);let n=O(`state`),r=new rs(n);We(`view-state`,r);let i=j(()=>n.intlDayHeader),a=j(()=>n.intlDayHeaderAL),o=j(()=>n.options.dayMaxEvents),s=j(()=>n.options.theme),c=j(()=>r.grid),l=j(()=>r.chunks),u=j(()=>r.bgChunks),d=j(()=>r.iChunks),f=j(()=>r.hiddenChunks),p=j(()=>r.popupDay),m=[];function h(){Ma(m,B(l)),B(f).clear(),fr().then(g)}function g(){B(f).size,m.forEach(e=>e?.hide())}xn(h),xn(g);var _=U(),v=F(_),y=e=>{var t=Cs();let f;var g=P(t),_=P(g);q(_,21,()=>B(c)[0],K,(e,t,n)=>{let r=()=>B(t).dayStart;var o=Ss();si(o,`aria-colindex`,1+n);var c=P(o);qr(c,()=>yi(B(i).format(r()))),D(o),L((e,t)=>{J(o,1,e),si(c,`aria-label`,t)},[()=>Xr([B(s).colHead,B(s).weekdays?.[r().getUTCDay()]]),()=>B(a).format(r())]),W(e,o)}),D(_),D(g);var v=I(g,2),y=P(v);q(y,21,()=>B(c),K,(e,t,n)=>{var r=U();q(F(r),17,()=>B(t),K,(e,r,i)=>{{let a=j(()=>i+1===ji(B(t))),o=j(()=>n+1===ji(B(c)));vs(e,{get day(){return B(r)},get noIeb(){return B(a)},get noBeb(){return B(o)}})}}),W(e,r)}),D(y),mi(y,e=>r.gridEl=e,()=>r?.gridEl);var b=I(y,2),x=P(b);q(x,19,()=>B(l),e=>e.id,(e,t,n)=>{mi(ys(e,{get chunk(){return B(t)}}),(e,t)=>m[t]=e,e=>m?.[e],()=>[B(n)])});var S=I(x,2);q(S,17,()=>B(u),e=>e.id,(e,t)=>{ys(e,{get chunk(){return B(t)}})}),q(I(S,2),17,()=>B(d),K,(e,t)=>{ys(e,{get chunk(){return B(t)}})}),D(b),D(v);var ee=I(v,2),te=e=>{xs(e,{})};G(ee,e=>{B(p)&&e(te)}),D(t),mi(t,e=>n.mainEl=e,()=>n?.mainEl),qr(t,()=>xi(h)),L(e=>{J(t,1,Xr([B(s).main,B(o)===!0&&B(s).uniform])),f=ri(t,``,f,e),J(g,1,B(s).header),J(_,1,B(s).grid),J(v,1,B(s).body),J(y,1,B(s).grid),J(b,1,B(s).events)},[()=>({"--ec-grid-cols":ji(B(c)[0]),"--ec-grid-rows":ji(B(c))})]),W(e,t)},b=j(()=>!Mi(B(c))&&!Mi(B(c)[0]));G(v,e=>{B(b)&&e(y)}),W(e,_),A()}var Ts={createOptions(e){X(e,{dayMaxEvents:!1,dayCellFormat:{day:`numeric`},dayPopoverFormat:{month:`long`,day:`numeric`,year:`numeric`},moreLinkContent:void 0,weekNumbers:!1,weekNumberContent:void 0,view:`dayGridMonth`}),X(e.buttonText,{dayGridDay:`day`,dayGridMonth:`month`,dayGridWeek:`week`,close:`Close`}),X(e.theme,{uniform:`ec-uniform`,dayFoot:`ec-day-foot`,otherMonth:`ec-other-month`,popup:`ec-popup`}),X(e.views,{dayGridDay:{buttonText:Ya,component:()=>ws,dayHeaderFormat:{weekday:`long`},displayEventEnd:!1,duration:{days:1},theme:eo(`ec-day-grid ec-day-view`)},dayGridWeek:{buttonText:Xa,component:()=>ws,displayEventEnd:!1,theme:eo(`ec-day-grid ec-week-view`)},dayGridMonth:{buttonText:Za,component:Es,dayHeaderFormat:{weekday:`short`},dayHeaderAriaLabelFormat:{weekday:`long`},displayEventEnd:!1,duration:{months:1},theme:eo(`ec-day-grid ec-month-view`),titleFormat:{year:`numeric`,month:`long`}}})}};function Es(e){return e.features=[`dayNumber`],e.extensions.activeRange=(t,n)=>{let{options:{firstDay:r}}=e;return{start:$i(t,r),end:Qi(n,r)}},ws}function Ds(e,t,n){return e.startEditable??t??e.editable??n}function Os(e,t,n){return e.durationEditable??t??e.editable??n}var ks=!1;function As(e){ks||(ks=!0,window.requestAnimationFrame(()=>{e(),ks=!1}))}function js(e,t,n){return ki(t,Oi(n,e))}function Ms(e){return()=>{let{options:{editable:t,eventStartEditable:n,theme:r}}=e;e.iClasses=(e,i)=>{let{display:a}=i;return[...e,Pa(a)?[r[a]]:!Fa(a)&&Ds(i,n,t)?[r.draggable]:[]]}}}function Ns(e){return()=>{let{interaction:t,mainEl:n}=e;if(n)return va(n,`scroll`,()=>{t.action.handleScroll(),t.pointer?.handleScroll()})}}var Ps=class{constructor(e){this.#e(e)}#e(e){Cn(Ms(e)),xn(Ns(e))}};function Fs(e,t){k(t,!0);let n=O(`state`),r=j(()=>n.events),i=j(()=>n.iEvents),a=j(()=>n.features),o=j(()=>n.view),s=j(()=>n.mainEl),c=j(()=>n.options.dateClick),l=j(()=>n.options.dragConstraint),u=j(()=>n.options.dragScroll),d=j(()=>n.options.editable),f=j(()=>n.options.eventStartEditable),p=j(()=>n.options.eventDragMinDistance),m=j(()=>n.options.eventDragStart),h=j(()=>n.options.eventDragStop),g=j(()=>n.options.eventDrop),_=j(()=>n.options.eventLongPressDelay),v=j(()=>n.options.eventResizeStart),y=j(()=>n.options.eventResizeStop),b=j(()=>n.options.eventResize),x=j(()=>n.options.longPressDelay),S=j(()=>n.options.resizeConstraint),ee=j(()=>n.options.selectable),te=j(()=>n.options.select),ne=j(()=>n.options.selectBackgroundColor),re=j(()=>n.options.selectConstraint),ie=j(()=>n.options.selectLongPressDelay),ae=j(()=>n.options.selectMinDistance),oe=j(()=>n.options.unselect),se=j(()=>n.options.unselectAuto),ce=j(()=>n.options.unselectCancel),le=j(()=>n.options.validRange),ue,de,C,w,fe,pe,me,he,ge,_e,ve,ye,be,xe,Se,Ce,we,Te,Ee,De,Oe,ke,Ae,T,je,E,Me;function Ne(e){return Ds(e,B(f),B(d))}function D(e,t,n,r,i){ue||(ue=ot(t)?1:6,at()&&(C=e,Le(t,i),n&&(pe=n),r&&(je=r),Te=`dragging`,Re(t)))}function Pe(e,t,n,r,i,a,o,s){ue||(ue=ot(t)?n?3:2:6,at()&&(C=e,Le(t,s),i&&(pe=i),a&&(je=a),Te=r===`x`?`resizingX`:`resizingY`,nt()?(Ee=Q(C.end),we?(ta(Ee,C.start),Ee>=C.end&&qi(Ee)):(Gi(Ee,E),Ee<C.start&&(Ee=C.start),pe=C.start)):(Ee=Q(C.start),we?(ta(Ee,C.end),Ee<=C.start&&!o&&Ki(Ee)):(Wi(Ee,E),Ee>C.end&&(Ee=C.end),pe=C.end,o||(pe=Gi(Q(pe),E))),o&&!we&&(Me=E)),Re(t)))}function Fe(e,t){ue||(ue=ot(e)?B(ee)&&!B(a).includes(`list`)?4:5:6,at()&&(Le(e,t),Te=`selecting`,De=we?Ui({day:1}):E,C={allDay:we,start:pe,end:Wi(Q(pe),De),resourceIds:he?[he.id]:[]},Re(e)))}function Ie(){ue||=6}function Le(e,t){window.getSelection().removeAllRanges(),_e=ye=e.clientX,ve=be=e.clientY,E=t?.duration;let n=_a(ye,be);({allDay:we,date:pe,resource:he}=fa(n)(ye,be)),Se=B(s)!==ha(n,3),xe=ha(n,1),Ge(),e.pointerType!==`mouse`&&(Ae=setTimeout(()=>{ue&&(de=!0,Re(e))},(it()?B(ie):B(_))??B(x)))}function Re(e){if(de||e&&e.pointerType===`mouse`&&et()>=(it()?B(ae):B(p))){de=!0,st(e),n.iClass=Te,w||(it()?qe():Ke(e,tt()?B(v):B(m)));let t=We(Ue());if(t){let n;if({allDay:n,date:me,resource:ge}=t,n===we){let t=Ye({},w),n=B(S);Ce=Ui((me-pe)/1e3),nt()?(t.start=Wi(Q(C.start),Ce),t.start>Ee&&(t.start=Ee,Ce=Ui((Ee-C.start)/1e3))):(t.end=Wi(Q(C.end),Ce),Me&&Wi(t.end,Me),tt()?t.end<Ee&&(t.end=Ee,Ce=Ui((Ee-C.end)/1e3)):it()?(t.end<C.end?(t.start=Gi(t.end,De),t.end=C.end):t.start=C.start,n=B(re)):(t.start=Wi(Q(C.start),Ce),he&&(t.resourceIds=C.resourceIds.filter(e=>e!==he.id),t.resourceIds.push(ge.id)),n=B(l)));do{if(n!==void 0&&(t=Ye(Aa(C),t),n(it()?Qe(t,e):$e(t,C,e))===!1)){Ze(C);break}Ze(t)}while(0)}}}B(u)&&As(()=>{T&&(Se||(be<T.top+24&&(B(s).scrollTop+=ki(-8,(be-T.top-24)/3)),be>T.bottom-24&&(B(s).scrollTop+=Oi(8,(be-T.bottom+24)/3))),ye<T.left+24&&(B(s).scrollLeft+=ki(-8,(ye-T.left-24)/3)),ye>T.right-24&&(B(s).scrollLeft+=Oi(8,(ye-T.right+24)/3)),be<24&&window.scrollBy(0,ki(-8,(be-24)/3)),be>window.innerHeight-24&&window.scrollBy(0,Oi(8,(be-window.innerHeight+24)/3)))})}function ze(){at()&&(Ge(),Re())}function Be(e){at()&&e.isPrimary&&(ye=e.clientX,be=e.clientY,Re(e))}function Ve(e){if(Oe&&B(se)&&!(B(ce)&&e.target.closest(B(ce)))&&st(e),ue&&e.isPrimary){if(de)if(it()){if(Oe=!0,Z(B(te))){let t=Qe(w,e);B(te)(t)}}else{C.display=fe;let t=tt()?B(y):B(h);Z(t)&&t({event:ka(C),jsEvent:e,view:xa(B(o))});let n=Aa(C);if(Xe(C,w),Je(),t=tt()?B(b):B(g),Z(t)){let r=C,i=$e(C,n,e);t(X(i,{revert(){Xe(r,n)}}))}}else if((rt()||it())&&Z(B(c))&&!ke){ye=e.clientX,be=e.clientY;let t=_a(ye,be);if(t){let{allDay:n,date:r,resource:i}=fa(t)(ye,be);B(c)({allDay:n,date:Yi(r),dateStr:Xi(r),dayEl:t,jsEvent:e,view:xa(B(o)),resource:i})}}He()}ke=!1}function He(){de=!1,ue=_e=ve=ye=be=C=fe=pe=me=he=ge=Ce=Me=we=Ee=De=je=xe=T=E=void 0,n.iClass=void 0,Ae&&=(clearTimeout(Ae),void 0)}function Ue(){return _a(js(ye,T.left,T.right),js(be,T.top,T.bottom))}function We(e){if(e){let t=fa(e)(ye,be);if(t.disabled){if(!B(le).end||t.date<B(le).end)return We(e.nextElementSibling);if(!B(le).start||t.date>B(le).start)return We(e.previousElementSibling)}else return(it()||tt())&&t.resource&&!w.resourceIds.includes(t.resource.id)&&!B(a).includes(`timeline`)?We(ye>_e?e.previousElementSibling:e.nextElementSibling):t}return null}function Ge(){let e=ma(B(s)),t=ma(xe),n=e.width/B(s).offsetWidth,r=e.height/B(s).offsetHeight,i=Bi();T={left:ki(0,i?e.right-B(s).clientWidth*n:t.left+B(s).scrollLeft*n),right:Oi(document.documentElement.clientWidth,i?t.right+B(s).scrollLeft*n:e.left+B(s).clientWidth*n)-2,top:ki(0,t.top+(Se?0:B(s).scrollTop)*r),bottom:Oi(document.documentElement.clientHeight,Se?t.bottom:e.top+B(s).clientHeight*r)-2}}function Ke(e,t){Z(t)&&t({event:ka(C),jsEvent:e,view:xa(B(o))}),fe=C.display,C.display=`preview`,w=Aa(C),je!==void 0&&(w._margin=je),Me&&Wi(w.end,Me),C.display=`ghost`,B(r).length=B(r).length}function qe(){w={id:`{select}`,allDay:C.allDay,start:C.start,title:``,display:`preview`,extendedProps:{},backgroundColor:B(ne),resourceIds:C.resourceIds,classNames:[],styles:[]}}function Je(){w=void 0,B(i).delete(`action`)}function Ye(e,t){return e.start=t.start,e.end=t.end,e.resourceIds=t.resourceIds,{...e}}function Xe(e,t){Ye(e,t),B(r).length=B(r).length}function Ze(e){w=Ye(w,e),B(i).set(`action`,w)}function Qe(e,t){let{start:n,end:r}=ka(e);return{start:n,end:r,startStr:Xi(e.start),endStr:Xi(e.end),allDay:we,view:xa(B(o)),resource:he,jsEvent:t}}function $e(e,t,n){let r;return r=tt()?nt()?{startDelta:Ce,endDelta:Ui(0)}:{startDelta:Ui(0),endDelta:Ce}:{delta:Ce,oldResource:he===ge?void 0:he,newResource:he===ge?void 0:ge},X(r,{event:ka(e),oldEvent:ka(t),view:xa(B(o)),jsEvent:n}),r}function et(){return Math.sqrt((ye-_e)**2+(be-ve)**2)}function tt(){return ue===2||nt()}function nt(){return ue===3}function rt(){return ue===5}function it(){return ue===4}function at(){return ue&&ue<5}function ot(e){return e.isPrimary&&(e.pointerType!==`mouse`||e.buttons&1)}function st(e){Oe&&(Oe=!1,Je(),Z(B(oe))&&B(oe)({jsEvent:e,view:xa(B(o))}))}Cn(()=>{B(o),st()});function ct(){ke=!0}function lt(e){if(at()){let t=e.target,n=[],r=()=>Li(n);n.push(va(t,`touchmove`,ut(()=>de))),n.push(va(t,`touchend`,r)),n.push(va(t,`touchcancel`,r))}}function ut(e){return t=>{e()&&t.preventDefault()}}gi(()=>va(window,`touchmove`,Ri,{passive:!1}));var dt={draggable:Ne,drag:D,resize:Pe,select:Fe,noAction:Ie,handleScroll:ze,unselect:st,noClick:ct};xr(`pointermove`,tn,Be),xr(`pointerup`,tn,Ve),xr(`pointercancel`,tn,He),xr(`scroll`,tn,ze);var ft=j(()=>ut(at));xr(`selectstart`,tn,function(...e){B(ft)?.apply(this,e)});var pt=j(()=>ut(()=>Ae));return xr(`contextmenu`,tn,function(...e){B(pt)?.apply(this,e)}),xr(`touchstart`,tn,lt,void 0,!0),A(dt)}function Is(e,t){k(t,!0);let n=j(()=>O(`state`)),r=j(()=>B(n).iEvents),i=j(()=>B(n).options.slotDuration),a=0,o=0,s;function c(){let e=_a(a,o);if(e&&!B(r).has(`action`)){let{allDay:t,date:n,resource:c,disabled:l}=fa(e)(a,o);if(!l){s||d(),s.allDay=t,s.start=n,s.end=Wi(Q(n),B(i)),s.resourceIds=c?[c.id]:[],B(r).set(`pointer`,{...s});return}}f()}function l(){c()}function u(e){p(e)&&(a=e.clientX,o=e.clientY,c())}function d(){s={id:`{pointer}`,title:``,display:`pointer`,extendedProps:{},backgroundColor:`transparent`,classNames:[],styles:[]}}function f(){s=void 0,B(r).delete(`pointer`)}function p(e){return e.isPrimary&&e.pointerType===`mouse`}var m={handleScroll:l};return xr(`pointermove`,tn,u),xr(`scroll`,tn,l),A(m)}var Ls=H(`<div></div>`),Rs=H(`<div></div>`),zs=H(`<!> <!> <!>`,1);function Bs(e,t){k(t,!0);let n=Y(t,`forceDate`,3,void 0),r=Y(t,`forceMargin`,3,void 0),i=j(()=>O(`state`)),a=j(()=>B(i).interaction.action),o=j(()=>B(i).options.editable),s=j(()=>B(i).options.eventDurationEditable),c=j(()=>B(i).options.eventResizableFromStart),l=j(()=>B(i).options.theme),u=j(()=>O(`view-state`)),d=j(()=>B(u).snap),f=j(()=>t.chunk.event),p=j(()=>t.chunk.event.display),m=j(()=>!Fa(B(p))&&!Pa(B(p))&&Os(B(f),B(s),B(o)));function h(e){return i=>B(a).resize(B(f),i,e,t.axis,n(),r(),t.chunk.zeroDuration,B(d))}var g=zs(),_=F(g),v=e=>{var t=Ls(),n=j(()=>h(!0));L(()=>J(t,1,`${B(l).resizer??``} ${B(l).start??``}`)),Sr(`pointerdown`,t,function(...e){B(n)?.apply(this,e)}),W(e,t)};G(_,e=>{B(m)&&B(c)&&e(v)});var y=I(_,2);Gr(y,()=>t.children);var b=I(y,2),x=e=>{var t=Rs(),n=j(()=>h(!1));L(()=>J(t,1,B(l).resizer)),Sr(`pointerdown`,t,function(...e){B(n)?.apply(this,e)}),W(e,t)};G(b,e=>{B(m)&&e(x)}),W(e,g),A()}Cr([`pointerdown`]);var Vs=H(`<!> <!>`,1);function Hs(e,t){k(t,!0);let n=O(`state`);new Ps(n);let r=j(()=>n.interaction),i=j(()=>n.options.pointer);B(r).resizer=Bs;var a=Vs(),o=F(a);mi(Fs(o,{}),e=>B(r).action=e,()=>B(r)?.action);var s=I(o,2),c=e=>{mi(Is(e,{}),e=>B(r).pointer=e,()=>B(r)?.pointer)};G(s,e=>{B(i)&&e(c)}),W(e,a),A()}var Us={createOptions(e){X(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:``}),X(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(Hs)}},Ws=class{#e;get intlListDay(){return B(this.#e)}set intlListDay(e){N(this.#e,e)}#t;get intlListDaySide(){return B(this.#t)}set intlListDaySide(e){N(this.#t,e)}constructor(e){this.#e=j(Ka(e,`listDayFormat`)),this.#t=j(Ka(e,`listDaySideFormat`))}},Gs=H(`<div></div> <!>`,1);function Ks(e,t){k(t,!0);let n=j(()=>O(`state`)),r=j(()=>B(n).interaction),i=j(()=>B(n).options.theme),a=j(()=>e=>(delete e[`background-color`],delete e.color,e));{let n=(e,t=f,n=f,r=f)=>{var a=Gs(),o=F(a);let s;Gr(I(o,2),t),L(()=>{J(o,1,B(i).eventTag),s=ri(o,``,s,{"background-color":n()})}),W(e,a)},o=j(()=>B(r).action?.noAction);cs(e,{get chunk(){return t.chunk},get styles(){return B(a)},get onpointerdown(){return B(o)},body:n,$$slots:{body:!0}})}A()}var qs=H(`<h4><time></time> <time></time></h4> <!>`,1);function Js(e,t){k(t,!0);let n=j(()=>O(`state`)),r=j(()=>B(n).filteredEvents),i=j(()=>B(n).options.highlightedDates),a=j(()=>B(n).options.theme),o=j(()=>B(n).options.validRange),s=j(()=>O(`view-state`)),c=j(()=>B(s).intlListDay),l=j(()=>B(s).intlListDaySide),u=j(()=>B(i).some(e=>Zi(e,t.date))),d=j(()=>no(t.date,B(o))),f=j(()=>Xi(t.date,10)),p=j(()=>{let e=[];if(!B(d)){let n=t.date,i=Ki(Q(t.date));for(let t of B(r))if(!Fa(t.display)&&Na(t,n,i)){let r=za(t,n,i);e.push(r)}}return e});var m=U(),h=F(m),g=e=>{as(e,{get date(){return t.date},allDay:!0,role:`listitem`,get disabled(){return B(d)},get highlight(){return B(u)},children:(e,n)=>{var r=qs(),i=F(r),o=P(i);qr(o,()=>yi(B(c).format(t.date)));var s=I(o,2);qr(s,()=>yi(B(l).format(t.date))),D(i),q(I(i,2),17,()=>B(p),e=>e.event,(e,t)=>{Ks(e,{get chunk(){return B(t)}})}),L(()=>{J(i,1,B(a).dayHead),si(o,`datetime`,B(f)),J(s,1,B(a).daySide),si(s,`datetime`,B(f))}),W(e,r)},$$slots:{default:!0}})};G(h,e=>{B(p).length&&e(g)}),W(e,m),A()}var Ys=H(`<div></div>`),Xs=H(`<section><!></section>`);function Zs(e,t){k(t,!0);let n=O(`state`);We(`view-state`,new Ws(n));let r=j(()=>n.filteredEvents),i=j(()=>n.view),a=j(()=>n.viewDates),o=j(()=>n.options.noEventsClick),s=j(()=>n.options.noEventsContent),c=j(()=>n.options.theme),l=j(()=>{let e=!0;if(!Mi(B(a))){let t=B(a)[0],n=Ki(Q(B(a).at(-1)));for(let i of B(r))if(!Fa(i.display)&&i.start<n&&i.end>t){e=!1;break}}return e}),u=j(()=>Z(B(s))?B(s)():B(s));function d(e){Z(B(o))&&B(o)({jsEvent:e,view:xa(B(i))})}var f=Xs(),p=P(f),m=e=>{var t=Ys();qr(t,()=>yi(B(u))),L(()=>J(t,1,B(c).noEvents)),Sr(`click`,t,d),W(e,t)},h=e=>{var t=U();q(F(t),17,()=>B(a),K,(e,t)=>{Js(e,{get date(){return B(t)}})}),W(e,t)};G(p,e=>{B(l)?e(m):e(h,-1)}),D(f),mi(f,e=>n.mainEl=e,()=>n?.mainEl),L(()=>J(f,1,B(c).main)),W(e,f),A()}Cr([`click`]);var Qs={createOptions(e){X(e,{listDayFormat:{weekday:`long`},listDaySideFormat:{year:`numeric`,month:`long`,day:`numeric`},noEventsClick:void 0,noEventsContent:`No events`,view:`listWeek`}),X(e.buttonText,{listDay:`list`,listWeek:`list`,listMonth:`list`,listYear:`list`}),X(e.theme,{daySide:`ec-day-side`,eventTag:`ec-event-tag`,noEvents:`ec-no-events`}),X(e.views,{listDay:{buttonText:Ya,component:$s,duration:{days:1},theme:eo(`ec-list ec-day-view`),titleFormat:{year:`numeric`,month:`long`,day:`numeric`}},listWeek:{buttonText:Xa,component:$s,duration:{weeks:1},theme:eo(`ec-list ec-week-view`)},listMonth:{buttonText:Za,component:$s,duration:{months:1},theme:eo(`ec-list ec-month-view`),titleFormat:{year:`numeric`,month:`long`}},listYear:{buttonText:Qa,component:$s,duration:{years:1},theme:eo(`ec-list ec-year-view`),titleFormat:{year:`numeric`}}})}};function $s(e){return e.features=[`list`],Zs}function ec(e,t,n=!0){let r=[];for(let{gridColumn:i,gridRow:a,resource:o,start:s,end:c,disabled:l}of t)if(!l&&Na(e,s,c,o)){let t=za(e,s,c);X(t,{gridColumn:i,gridRow:a,resource:o,top:(t.start-s)/1e3,height:(t.end-t.start)/1e3,maxHeight:(c-t.start)/1e3}),n&&Ga(t),r.push(t)}return r}function tc(e){let t={};for(let n of e){let{gridColumn:e}=n,r=t[e],i=0;if(r&&n.start<r.end){for(;i<r.columns.length&&!(r.columns[i].at(-1).end<=n.start);++i);n.end>r.end&&(r.end=n.end)}else r={columns:[],end:n.end};r.columns.length<i+1&&r.columns.push([]),r.columns[i].push(n),t[e]=r,n.group=r,n.groupColumn=i}}function nc(e){let t=`all-day`,n;return e?(n=Z(e)?e({text:t}):e,typeof n==`string`&&(n={html:n})):n={html:t},n}function rc(e){e.extensions.activeRange=(t,n)=>{let{options:{slotMaxTime:r}}=e;if(r.days||r.seconds>86400){Wi(qi(n),r);let e=qi(Q(n));e<t&&(t=e)}return{start:t,end:n}}}function ic(e){`scrollTime`in e||(X(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}),X(e.theme,{nowIndicator:`ec-now-indicator`,sidebar:`ec-sidebar`,slot:`ec-slot`}))}function ac(e){`allDaySlot`in e||(X(e,{allDayContent:void 0,allDaySlot:!0,slotEventOverlap:!0}),X(e.theme,{allDay:`ec-all-day`}))}function oc(e){`scrollTime`in e||X(e,{scrollTime:Ui,slotDuration:Ui,slotLabelInterval:e=>e===void 0?void 0:Ui(e),slotMaxTime:Ui,slotMinTime:Ui,snapDuration:e=>e===void 0?void 0:Ui(e)})}function sc(e){`resourceLabelContent`in e||(e.filterResourcesWithEvents=!1,e.resourceLabelContent=void 0,e.resourceLabelDidMount=void 0)}function cc(e,t){return()=>{let{viewDates:n,options:{highlightedDates:r,validRange:i}}=e,{slotTimeLimits:a}=t,o=[];return V(()=>{let e=1;for(let t of n)o.push({gridColumn:e,gridRow:1,resource:void 0,start:Wi(Q(t),a.min),end:Wi(Q(t),a.max),dayStart:t,dayEnd:Ki(Q(t)),disabled:no(t,i),highlight:r.some(e=>Zi(e,t))}),++e}),[o]}}function lc(e,t){return()=>{let{filteredEvents:n}=e,{grid:r}=t,i=[],a=[],o=[],s=[];return V(()=>{for(let e of n)for(let t of r)Fa(e.display)?(a=a.concat(ec(e,t)),e.allDay&&(s=s.concat(Ba(e,t)))):e.allDay?o=o.concat(Ba(e,t)):i=i.concat(ec(e,t));tc(i),Va(o)}),{chunks:i,bgChunks:a,allDayChunks:o,allDayBgChunks:s}}}function uc(e,t){return()=>{let{iEvents:n}=e,{grid:r}=t,i=[],a=[];for(let[,e]of n)e&&V(()=>{for(let t of r)e.allDay?a=a.concat(Ba(e,t,!1)):i=i.concat(ec(e,t,!1))});return{iChunks:i,allDayIChunks:a}}}function dc(e){return()=>{let{filteredEvents:t,viewDates:n,options:{flexibleSlotTimeLimits:r,slotMinTime:i,slotMaxTime:a}}=e,o;return V(()=>{o=uo(i,a,r,n,t)}),o}}function fc(e){return()=>{let{options:{slotDuration:t,slotLabelInterval:n}}=e,r;return V(()=>{r=n===void 0?$(t)<3600?2:1:Di($(n)/$(t))||1}),r}}function pc(e,t){return()=>{let{options:{slotDuration:n}}=e,{intlSlotLabel:r,slotLabelPeriodicity:i,slotTimeLimits:a}=t,o;return V(()=>{o=lo(Ji(Hi()),n,i,a,r)}),o}}function mc(e){return()=>{let{options:{slotDuration:t,snapDuration:n}}=e;return n??=t,{duration:n,ratio:$(n)/$(t)}}}function hc(){return class{#e;get intlSlotLabel(){return B(this.#e)}set intlSlotLabel(e){N(this.#e,e)}#t;get slotLabelPeriodicity(){return B(this.#t)}set slotLabelPeriodicity(e){N(this.#t,e)}#n;get sidebarWidth(){return B(this.#n)}set sidebarWidth(e){N(this.#n,e,!0)}#r;get snap(){return B(this.#r)}set snap(e){N(this.#r,e)}constructor(e){this.#e=j(Ka(e,`slotLabelFormat`)),this.#t=j(fc(e)),this.#n=M(0),this.#r=j(mc(e))}}}function gc(e){return class extends e{#e;get slotTimeLimits(){return B(this.#e)}set slotTimeLimits(e){N(this.#e,e)}#t;get slots(){return B(this.#t)}set slots(e){N(this.#t,e)}#n;get chunks(){return B(this.#n)}set chunks(e){N(this.#n,e)}#r;get bgChunks(){return B(this.#r)}set bgChunks(e){N(this.#r,e)}#i;get allDayChunks(){return B(this.#i)}set allDayChunks(e){N(this.#i,e)}#a;get allDayBgChunks(){return B(this.#a)}set allDayBgChunks(e){N(this.#a,e)}#o;get iChunks(){return B(this.#o)}set iChunks(e){N(this.#o,e)}#s;get allDayIChunks(){return B(this.#s)}set allDayIChunks(e){N(this.#s,e)}constructor(e){super(e),this.#e=j(dc(e)),this.#t=j(pc(e,this));let t=j(lc(e,this)),n=j(()=>B(t).chunks),r=j(()=>B(t).bgChunks),i=j(()=>B(t).allDayChunks),a=j(()=>B(t).allDayBgChunks);this.#n=j(()=>B(n)),this.#r=j(()=>B(r)),this.#i=j(()=>B(i)),this.#a=j(()=>B(a));let o=j(uc(e,this)),s=j(()=>B(o).iChunks),c=j(()=>B(o).allDayIChunks);this.#o=j(()=>B(s)),this.#s=j(()=>B(c))}}}var _c=class extends gc(hc()){#e;get grid(){return B(this.#e)}set grid(e){N(this.#e,e)}constructor(e){super(e),this.#e=j(cc(e,this))}};function vc(e){return()=>{let{activeRange:t,filteredEvents:n,resources:r,options:{filterResourcesWithEvents:i},extensions:{viewResources:a}}=e,o=a?a(r):r;return V(()=>{i&&(o=r.filter(e=>n.some(n=>!Fa(n.display)&&Na(n,t.start,t.end,e)))),o.length||(o=ro([{}]))}),o}}function yc(e,t){return()=>{let{viewDates:n,options:{datesAboveResources:r,highlightedDates:i,validRange:a}}=e,{slotTimeLimits:o,viewResources:s}=t,c=[];return V(()=>{let e=1,t=r?[n,s]:[s,n];for(let n of t[0]){let s=[];for(let c of t[1]){let t=r?n:c,l=r?c:n;s.push({gridColumn:e,gridRow:1,resource:l,start:Wi(Q(t),o.min),end:Wi(Q(t),o.max),dayStart:t,dayEnd:Ki(Q(t)),disabled:no(t,a),highlight:i.some(e=>Zi(e,t))}),++e}c.push(s)}}),c}}function bc(e){return class extends e{#e;get viewResources(){return B(this.#e)}set viewResources(e){N(this.#e,e)}constructor(e){super(e),this.#e=j(vc(e))}}}var xc=class extends bc(gc(hc())){#e;get grid(){return B(this.#e)}set grid(e){N(this.#e,e)}constructor(e){super(e),this.#e=j(yc(e,this))}},Sc=H(`<span></span>`);function Cc(e,t){k(t,!0);let n=Y(t,`date`,3,void 0),r=Y(t,`setLabel`,3,void 0),i=j(()=>O(`state`)),a=j(()=>B(i).intlDayHeaderAL),o=j(()=>B(i).options.resourceLabelContent),s=j(()=>B(i).options.resourceLabelDidMount),c=M(void 0),l=j(()=>B(o)?Z(B(o))?B(o)({resource:t.resource,date:n()?Yi(n()):void 0}):B(o):t.resource.title),u=M(void 0);xn(()=>{B(l),V(()=>{n()?N(u,B(a).format(n())+`, `+B(c).innerText):r()&&(N(u,void 0),r()(B(c).innerText))})}),gi(()=>{Z(B(s))&&B(s)({resource:t.resource,date:n()?Yi(n()):void 0,el:B(c)})});var d=Sc();mi(d,e=>N(c,e),()=>B(c)),qr(d,()=>yi(B(l))),L(()=>si(d,`aria-label`,B(u))),W(e,d),A()}function wc(e,t){k(t,!0);let n=Y(t,`allDay`,3,!1),r=j(()=>O(`state`)),i=j(()=>B(r).options.slotHeight),a=j(()=>O(`view-state`)),o=j(()=>B(a).snap),s=j(()=>t.day.dayStart),c=j(()=>t.day.start),l=j(()=>t.day.resource),u=j(()=>t.day.disabled),d=j(()=>t.day.highlight),f=M(void 0);function p(e,t){if(n())return B(s);{let e=ma(B(f)),n=e.height/B(f).offsetHeight;return Wi(Q(B(c)),B(o).duration,Ei((t-e.top)/(B(i)*B(o).ratio*n)))}}as(e,{get date(){return B(s)},get allDay(){return n()},get resource(){return B(l)},dateFromPoint:p,get disabled(){return B(u)},get highlight(){return B(d)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return B(f)},set el(e){N(f,e,!0)}}),A()}function Tc(e,t){k(t,!0);let n=j(()=>O(`state`)),r=j(()=>B(n).options.slotEventOverlap),i=j(()=>B(n).options.slotDuration),a=j(()=>B(n).options.slotHeight),o=j(()=>e=>{let n=$(B(i)),o=t.chunk.top/n*B(a),s=t.chunk.height/n*B(a)||B(a),c=t.chunk.maxHeight/n*B(a);e[`grid-column`]=t.chunk.gridColumn,e[`inset-block-start`]=`${o}px`,e[`min-block-size`]=`${s}px`,e[`block-size`]=`${s}px`,e[`max-block-size`]=`${c}px`;let l=`100% - var(--ec-event-col-gap)`;if(t.chunk.group){let n=t.chunk.group.columns.length;e[`z-index`]=`${t.chunk.groupColumn+1}`,e[`inset-inline-start`]=`calc((${l}) / ${n} * ${t.chunk.groupColumn})`,e[`inline-size`]=`calc((${l}) / ${n} * ${B(r)?.5*(1+n-t.chunk.groupColumn):1})`}return e});ps(e,{get chunk(){return t.chunk},get styles(){return B(o)},axis:`y`}),A()}function Ec(e,t){k(t,!0);let n=M(void 0),r=M(0),i=j(()=>t.chunk.event),a=j(()=>e=>(e[`grid-column`]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,(B(r)||B(i)._margin)&&(e[`margin-block-start`]=`${B(i)._margin??B(r)}px`),e));function o(){N(r,Ha(t.chunk,ga(B(n))),!0)}var s={reposition:o};return ps(e,{get chunk(){return t.chunk},get styles(){return B(a)},axis:`x`,get forceMargin(){return B(r)},get el(){return B(n)},set el(e){N(n,e,!0)}}),A(s)}var Dc=H(`<div></div>`);function Oc(e,t){k(t,!0);let n=Y(t,`span`,3,1),r=j(()=>O(`state`)),i=j(()=>B(r).mainEl),a=j(()=>B(r).now),o=j(()=>B(r).today),s=j(()=>B(r).options.slotDuration),c=j(()=>B(r).options.slotHeight),l=j(()=>B(r).options.theme),u=j(()=>O(`view-state`)),d=j(()=>B(u).sidebarWidth),f=j(()=>{for(let e of t.days)if(Zi(e.dayStart,B(o)))return e;return{}}),p=j(()=>B(f).gridColumn),m=j(()=>B(f).start),h=j(()=>B(f).end),g=j(()=>{if(B(a)<B(m)||B(a)>B(h))return null;let e=$(B(s));return(B(a)-B(m))/1e3/e*B(c)}),_=j(()=>({root:B(i),rootMargin:Bi()?`0px -${B(d)+5.5}px 0px 0px`:`0px 0px 0px -${B(d)+5.5}px`,threshold:0}));function v(e,t){e.classList.toggle(B(l).hidden,!t.isIntersecting)}var y=U(),b=F(y),x=e=>{var t=Dc();let r;qr(t,()=>Si(v,B(_))),L(()=>{J(t,1,B(l).nowIndicator),r=ri(t,``,r,{"grid-column":`${B(p)+1} / span ${n()??``}`,"inset-block-start":`${B(g)??``}px`})}),W(e,t)};G(b,e=>{B(p)&&B(g)!==null&&e(x)}),W(e,y),A()}var kc=H(`<div><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div>`),Ac=H(`<div><time></time></div>`),jc=H(`<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 Mc(e,t){k(t,!0);let n=Y(t,`viewState`,7),r=O(`state`);n()||n(new _c(r)),We(`view-state`,n());let i=j(()=>r.mainEl),a=j(()=>r.viewDates),o=j(()=>r.options.allDayContent),s=j(()=>r.options.allDaySlot),c=j(()=>r.options.columnWidth),l=j(()=>r.options.nowIndicator),u=j(()=>r.options.scrollTime),d=j(()=>r.options.slotHeight),f=j(()=>r.options.slotDuration),p=j(()=>r.options.theme),m=j(()=>n().allDayChunks),h=j(()=>n().allDayBgChunks),g=j(()=>n().allDayIChunks),_=j(()=>n().bgChunks),v=j(()=>n().chunks),y=j(()=>n().iChunks),b=j(()=>n().grid),x=j(()=>n().sidebarWidth),S=j(()=>n().slots),ee=j(()=>n().slotLabelPeriodicity),te=j(()=>n().slotTimeLimits),ne=M(0),re=j(()=>nc(B(o)));xn(()=>{B(u),Mi(B(a))||fr().then(ie)});function ie(){B(i).scrollTop=(($(B(u))-$(B(te).min))/$(B(f))-.5)*B(d)}let ae=[];function oe(){Ma(ae,B(m))}xn(oe);var se=U(),ce=F(se),le=e=>{var i=jc();let a;var o=P(i),u=P(o),f=I(u,2),te=P(f),ie=e=>{var n=U();Gr(F(n),()=>t.header),W(e,n)},se=e=>{var t=U();q(F(t),17,()=>B(b)[0],K,(e,t,n)=>{let r=()=>B(t).dayStart,i=()=>B(t).disabled,a=()=>B(t).highlight;us(e,{get date(){return r()},colIndex:1+n,get disabled(){return i()},get highlight(){return a()},children:(e,t)=>{fs(e,{get date(){return r()}})},$$slots:{default:!0}})}),W(e,t)};G(te,e=>{t.header?e(ie):e(se,-1)}),D(f);var ce=I(f,2),le=e=>{var t=kc(),n=P(t);qr(n,()=>yi(B(re)));var r=I(n,2);q(r,21,()=>B(b),K,(e,t,n)=>{var r=U();q(F(r),17,()=>B(t),K,(e,r,i)=>{{let a=j(()=>n+1===ji(B(b))&&i+1===ji(B(t)));wc(e,{get day(){return B(r)},allDay:!0,get noIeb(){return B(a)}})}}),W(e,r)}),D(r);var i=I(r,2),a=P(i);q(a,19,()=>B(m),e=>e.id,(e,t,n)=>{mi(Ec(e,{get chunk(){return B(t)}}),(e,t)=>ae[t]=e,e=>ae?.[e],()=>[B(n)])});var o=I(a,2);q(o,17,()=>B(h),e=>e.id,(e,t)=>{Ec(e,{get chunk(){return B(t)}})}),q(I(o,2),17,()=>B(g),K,(e,t)=>{Ec(e,{get chunk(){return B(t)}})}),D(i),D(t),L(()=>{J(t,1,B(p).allDay),J(n,1,B(p).sidebar),J(r,1,B(p).grid),J(i,1,B(p).events)}),W(e,t)};G(ce,e=>{B(s)&&e(le)}),D(o);var ue=I(o,2),de=P(ue);q(de,21,()=>B(S),K,(e,t,n)=>{var r=Ac();let i;var a=P(r);qr(a,()=>yi(B(t)[1])),D(r),L(()=>{J(r,1,Xr([B(p).slot,!n&&B(p).hidden])),i=ri(r,``,i,{"--ec-slot-label-periodicity":B(t)[2]}),si(a,`datetime`,B(t)[0])}),W(e,r)}),D(de);var C=I(de,2);q(C,21,()=>B(b),K,(e,t,n)=>{var r=U();q(F(r),17,()=>B(t),K,(e,r,i)=>{{let a=j(()=>n+1===ji(B(b))&&i+1===ji(B(t)));wc(e,{get day(){return B(r)},get noIeb(){return B(a)},noBeb:!0})}}),W(e,r)}),D(C);var w=I(C,2),fe=P(w);q(fe,17,()=>B(v),e=>e.id,(e,t)=>{Tc(e,{get chunk(){return B(t)}})});var pe=I(fe,2);q(pe,17,()=>B(_),e=>e.id,(e,t)=>{Tc(e,{get chunk(){return B(t)}})}),q(I(pe,2),17,()=>B(y),K,(e,t)=>{Tc(e,{get chunk(){return B(t)}})}),D(w),D(ue);var me=I(ue,2),he=e=>{var n=U(),r=F(n),i=e=>{var n=U();Gr(F(n),()=>t.nowIndicator),W(e,n)},a=e=>{Oc(e,{get days(){return B(b)[0]}})};G(r,e=>{t.nowIndicator?e(i):e(a,-1)}),W(e,n)};G(me,e=>{B(l)&&e(he)}),D(i),mi(i,e=>r.mainEl=e,()=>r?.mainEl),qr(i,()=>xi(oe)),L(e=>{J(i,1,B(p).main),a=ri(i,``,a,e),J(o,1,B(p).header),J(u,1,B(p).sidebar),J(f,1,B(p).grid),J(ue,1,B(p).body),J(de,1,B(p).sidebar),J(C,1,B(p).grid),J(w,1,B(p).events)},[()=>({"--ec-grid-cols":ji(B(b))*ji(B(b)[0]),"--ec-col-group-span":ji(B(b)[0]),"--ec-col-width":B(c)??`minmax(0, 1fr)`,"--ec-slot-label-periodicity":B(ee),"--ec-slot-height":`${B(d)??``}px`,"--ec-header-height":`${B(ne)??``}px`,"--ec-sidebar-width":`${B(x)??``}px`})]),fi(u,`offsetWidth`,e=>n().sidebarWidth=e),fi(o,`offsetHeight`,e=>N(ne,e)),W(e,i)},ue=j(()=>!Mi(B(b))&&!Mi(B(b)[0]));G(ce,e=>{B(ue)&&e(le)}),W(e,se),A()}var Nc=H(`<!> <!>`,1);function Pc(e,t){k(t,!0);let n=O(`state`),r=new xc(n),i=j(()=>n.today),a=j(()=>n.mainEl),o=j(()=>n.viewDates),s=j(()=>n.options.scrollTime),c=j(()=>n.options.datesAboveResources),l=j(()=>n.options.theme),u=j(()=>r.grid),d=j(()=>r.sidebarWidth),f=en([]);xn(()=>{B(c)&&(B(o),B(s),fr().then(p))});function p(){if(B(i)>=B(o)[0]&&B(i)<=B(o).at(-1))for(let e of B(u)){let t=e[0];if(Zi(t.dayStart,B(i))){B(a).scrollLeft=(B(a).scrollWidth-B(d))/(ji(B(u))*ji(e))*(t.gridColumn-1)*(Bi()?-1:1);break}}}Mc(e,{get viewState(){return r},header:e=>{var t=Nc(),n=F(t);q(n,17,()=>B(u),K,(e,t,n)=>{let r=j(()=>{let{dayStart:e,resource:n,disabled:r,highlight:i}=B(t)[0];return{date:e,resource:n,disabled:r,highlight:i}});{let i=j(()=>ji(B(u)[0])>1?B(l).colGroup:void 0),a=j(()=>ji(B(t))),o=j(()=>1+n*ji(B(t))),s=j(()=>B(c)&&B(r).disabled),d=j(()=>B(c)&&B(r).highlight);us(e,{get date(){return B(r).date},get className(){return B(i)},get weekday(){return B(c)},get colSpan(){return B(a)},get colIndex(){return B(o)},get disabled(){return B(s)},get highlight(){return B(d)},children:(e,t)=>{var i=U(),a=F(i),o=e=>{fs(e,{get date(){return B(r).date}})},s=e=>{Cc(e,{get resource(){return B(r).resource},setLabel:e=>f[n]=e+`, `})};G(a,e=>{B(c)?e(o):e(s,-1)}),W(e,i)},$$slots:{default:!0}})}});var r=I(n,2),i=e=>{var t=U();q(F(t),17,()=>B(u),K,(e,t,n)=>{var r=U();q(F(r),17,()=>B(t),K,(e,r,i)=>{let a=j(()=>{let{dayStart:e,resource:t,disabled:n,highlight:i}=B(r);return{date:e,resource:t,disabled:n,highlight:i}});{let r=j(()=>1+i+n*ji(B(t)));us(e,{get date(){return B(a).date},get colIndex(){return B(r)},get disabled(){return B(a).disabled},get highlight(){return B(a).highlight},children:(e,t)=>{var r=U(),i=F(r),o=e=>{Cc(e,{get resource(){return B(a).resource},get date(){return B(a).date}})},s=e=>{fs(e,{get date(){return B(a).date},get alPrefix(){return f[n]}})};G(i,e=>{B(c)?e(o):e(s,-1)}),W(e,r)},$$slots:{default:!0}})}}),W(e,r)}),W(e,t)},a=j(()=>ji(B(u)[0])>1);G(r,e=>{B(a)&&e(i)}),W(e,t)},nowIndicator:e=>{var t=U(),n=F(t),r=e=>{{let t=j(()=>B(u).flat()),n=j(()=>ji(B(u)[0]));Oc(e,{get days(){return B(t)},get span(){return B(n)}})}},i=e=>{var t=U(),n=F(t),r=e=>{var t=U();q(F(t),17,()=>B(u),K,(e,t)=>{Oc(e,{get days(){return B(t)}})}),W(e,t)},i=j(()=>ji(B(u)[0])>1),a=e=>{{let t=j(()=>B(u).flat()),n=j(()=>ji(B(u)));Oc(e,{get days(){return B(t)},get span(){return B(n)}})}};G(n,e=>{B(i)?e(r):e(a,-1)}),W(e,t)};G(n,e=>{B(c)?e(r):e(i,-1)}),W(e,t)},$$slots:{header:!0,nowIndicator:!0}}),A()}var Fc={createOptions(e){ac(e),ic(e),sc(e),X(e,{datesAboveResources:!1,view:`resourceTimeGridWeek`}),X(e.buttonText,{resourceTimeGridDay:`resources`,resourceTimeGridWeek:`resources`}),X(e.theme,{colGroup:`ec-col-group`}),X(e.views,{resourceTimeGridDay:{buttonText:Ya,component:Ic,dayHeaderFormat:{weekday:`long`},duration:{days:1},theme:eo(`ec-resource ec-time-grid ec-day-view`)},resourceTimeGridWeek:{buttonText:Xa,component:Ic,duration:{weeks:1},theme:eo(`ec-resource ec-time-grid ec-week-view`)}})},createParsers(e){oc(e)}};function Ic(e){return rc(e),Pc}function Lc(e,t,n,r=!0){let i=[],a,o,s,c,l,u,d=0;for(let{gridColumn:r,gridRow:f,resource:p,dayStart:m,dayEnd:h,start:g,end:_,disabled:v}of t)v||(n?Na(e,m,h,p)&&(i.length||(a=m,s=r,c=f,l=p),i.push(m),o=_):Na(e,g,_,p)&&(i.length||(a=g,s=r,c=f,l=p,u=ki(e.start-g,0)/1e3),i.push(m),o=_,d+=(Oi(_,e.end)-ki(g,e.start))/1e3));if(i.length){let t=za(e,a,o);return X(t,{gridColumn:s,gridRow:c,resource:l,dates:i,left:u,width:d}),r&&Ga(t),[t]}return[]}function Rc(e){let t={};for(let n of e){let{gridColumn:e,gridRow:r}=n;for(let i=0;i<n.dates.length;++i){let a=`${r}_${e+i}`;t[a]?t[a].push(n):t[a]=[n]}n.day=t[`${r}_${e}`]}}function zc(e,t,n){let r=1,i=r+t,a=e.day;a.sort((e,t)=>(e.top??1/0)-(t.top??1/0));for(let t of a)if(!(t===e||!(`top`in t))&&(n||e.start<t.end&&e.end>t.start)&&r<t.bottom&&i>t.top){let e=t.bottom-r+1;r+=e,i+=e}return X(e,{top:r,bottom:i}),r}function Bc(e,t){return e[t.getTime()]??{min:Ui(0),max:Ui(`24:00:00`)}}function Vc(e,t){return()=>{let{viewDates:n,options:{highlightedDates:r,validRange:i}}=e,{dayTimeLimits:a,viewResources:o}=t,s=[];return V(()=>{let e=1;for(let t of o){let o=[],c=1;for(let s of n){let n=a[s.getTime()];o.push({gridColumn:c,gridRow:e,resource:t,start:Wi(Q(s),n.min),end:Wi(Q(s),n.max),dayStart:s,dayEnd:Ki(Q(s)),disabled:no(s,i),highlight:r.some(e=>Zi(e,s))}),++c}s.push(o),++e}}),s}}function Hc(e,t){return()=>{let{options:{firstDay:n,weekNumbers:r}}=e,{grid:i}=t,a=[],o=[];return V(()=>{let e,t;if(!Mi(i)){for(let{dayStart:s,gridColumn:c}of i[0])if(e&&e.date.getUTCMonth()===s.getUTCMonth()?++e.span:(e={date:s,gridColumn:c,span:1},a.push(e)),r){let e=aa(s,n);t&&t.number===e?++t.span:(t={number:e,date:s,gridColumn:c,span:1},o.push(t))}}}),{months:a,weeks:o}}}function Uc(e,t){return()=>{let{filteredEvents:n}=e,{grid:r,monthView:i}=t,a=[],o=[];return V(()=>{for(let e of n)for(let t of r)Fa(e.display)?(!i||e.allDay)&&(o=o.concat(Lc(e,t,i))):a=a.concat(Lc(e,t,i));Rc(a)}),{chunks:a,bgChunks:o}}}function Wc(e,t){return()=>{let{iEvents:n}=e,{grid:r,monthView:i}=t,a=[];for(let[,e]of n)e&&V(()=>{for(let t of r)a=a.concat(Lc(e,t,i,!1))});return a}}function Gc(e){return()=>{let{filteredEvents:t,viewDates:n,options:{flexibleSlotTimeLimits:r,slotMinTime:i,slotMaxTime:a}}=e,o={};return V(()=>{for(let e of n)o[e.getTime()]=uo(i,a,r,[e],t)}),o}}function Kc(e,t){return()=>{let{viewDates:n,options:{slotDuration:r}}=e,{dayTimeLimits:i,intlSlotLabel:a,slotLabelPeriodicity:o}=t,s={};return V(()=>{for(let e of n){let t=e.getTime();s[t]=t in i?lo(e,r,o,i[t],a):[]}}),s}}function qc(e){return()=>{let{resources:t}=e,n;return V(()=>{n=t.some(e=>fa(e).children.length)}),n}}function Jc(e){return()=>{let{options:{slotDuration:t}}=e,n;return V(()=>{n=!$(t)}),n}}var Yc=class extends bc(hc()){#e;get dayTimeLimits(){return B(this.#e)}set dayTimeLimits(e){N(this.#e,e)}#t;get daySlots(){return B(this.#t)}set daySlots(e){N(this.#t,e)}#n;get grid(){return B(this.#n)}set grid(e){N(this.#n,e)}#r;get extraHeads(){return B(this.#r)}set extraHeads(e){N(this.#r,e)}#i;get intlMonthHeader(){return B(this.#i)}set intlMonthHeader(e){N(this.#i,e)}#a;get monthView(){return B(this.#a)}set monthView(e){N(this.#a,e)}#o;get chunks(){return B(this.#o)}set chunks(e){N(this.#o,e)}#s;get bgChunks(){return B(this.#s)}set bgChunks(e){N(this.#s,e)}#c;get iChunks(){return B(this.#c)}set iChunks(e){N(this.#c,e)}#l;get nestedResources(){return B(this.#l)}set nestedResources(e){N(this.#l,e)}constructor(e){super(e),this.#e=j(Gc(e)),this.#t=j(Kc(e,this)),this.#n=j(Vc(e,this)),this.#r=j(Hc(e,this)),this.#i=j(Ka(e,`monthHeaderFormat`)),this.#a=j(Jc(e));let t=j(Uc(e,this)),n=j(()=>B(t).chunks),r=j(()=>B(t).bgChunks);this.#o=j(()=>B(n)),this.#s=j(()=>B(r)),this.#c=j(Wc(e,this)),this.#l=j(qc(e))}};function Xc(e,t){k(t,!0);let n=j(()=>O(`state`)),r=j(()=>B(n).options.slotWidth),i=j(()=>O(`view-state`)),a=j(()=>B(i).monthView),o=j(()=>B(i).snap),s=j(()=>t.day.dayStart),c=j(()=>t.day.start),l=j(()=>t.day.resource),u=j(()=>t.day.disabled),d=j(()=>t.day.highlight),f=M(void 0);function p(e,t){if(B(a))return B(s);{let t=ma(B(f)),n=t.width/B(f).offsetWidth;return Wi(Q(B(c)),B(o).duration,Ei((Bi()?t.right-e:e-t.left)/(B(r)*B(o).ratio*n)))}}as(e,{get allDay(){return B(a)},get date(){return B(s)},get resource(){return B(l)},dateFromPoint:p,get disabled(){return B(u)},get highlight(){return B(d)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return B(f)},set el(e){N(f,e,!0)}}),A()}function Zc(e,t){k(t,!0);let n=j(()=>O(`state`)),r=j(()=>B(n).options.slotDuration),i=j(()=>B(n).options.slotWidth),a=j(()=>O(`view-state`)),o=j(()=>B(a).monthView),s=M(void 0),c=M(1),l=j(()=>t.chunk.event),u=j(()=>e=>{e[`grid-column`]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,e[`grid-row`]=t.chunk.gridRow,B(o)||(e[`inset-inline-start`]=`${t.chunk.left/$(B(r))*B(i)}px`,e[`inline-size`]=`${t.chunk.width/$(B(r))*B(i)}px`);let n=B(c);if(B(l)._margin){let[e,r]=B(l)._margin;t.chunk.gridRow===r&&(n=e)}return e[`margin-block-start`]=`${n}px`,e});function d(){N(c,zc(t.chunk,ga(B(s)),B(o)),!0)}var f={reposition:d};{let n=j(()=>[B(c),t.chunk.gridRow]);ps(e,{get chunk(){return t.chunk},get styles(){return B(u)},axis:`x`,get forceMargin(){return B(n)},get el(){return B(s)},set el(e){N(s,e,!0)}})}return A(f)}var Qc=H(`<span></span>`),$c=H(`<button></button>`),el=H(`<!> <span><!></span>`,1);function tl(e,t){k(t,!0);let n=Y(t,`resource`,7),r=j(()=>O(`state`)),i=j(()=>B(r).resources),a=j(()=>B(r).view),o=j(()=>B(r).options.buttonText),s=j(()=>B(r).options.icons),c=j(()=>B(r).options.resourceExpand),l=j(()=>B(r).options.theme),u=M({}),d=j(()=>n().expanded),f=j(()=>B(o)[B(d)?`collapse`:`expand`]);Cn(()=>{N(u,fa(n()))});function p(e){n().expanded=N(d,!B(d)),m(B(u).children),B(i).length=B(i).length,Z(B(c))&&B(c)({resource:n(),jsEvent:e,view:xa(B(a))})}function m(e){for(let t of e){let e=fa(t);e.hidden=!B(d),t.expanded&&m(e.children)}}var h=el(),g=F(h);q(g,17,()=>Array(B(u).level),K,(e,t)=>{var n=Qc();L(()=>J(n,1,B(l).expander)),W(e,n)});var _=I(g,2),v=P(_),y=e=>{var t=$c();qr(t,()=>yi(B(s)[B(d)?`collapse`:`expand`])),L(()=>{J(t,1,B(l).button),si(t,`aria-label`,B(f)),si(t,`title`,B(f))}),Sr(`click`,t,p),W(e,t)};G(v,e=>{B(u).children?.length&&e(y)}),D(_),L(()=>J(_,1,B(l).expander)),W(e,h),A()}Cr([`click`]);var nl=H(`<div></div>`);function rl(e,t){k(t,!0);let n=j(()=>O(`state`)),r=j(()=>B(n).mainEl),i=j(()=>B(n).now),a=j(()=>B(n).today),o=j(()=>B(n).options.slotDuration),s=j(()=>B(n).options.slotWidth),c=j(()=>B(n).options.theme),l=j(()=>O(`view-state`)),u=j(()=>B(l).grid),d=j(()=>B(l).sidebarWidth),f=j(()=>{for(let e of B(u)[0])if(Zi(e.dayStart,B(a)))return e;return{}}),p=j(()=>B(f).gridColumn),m=j(()=>B(f).start),h=j(()=>B(f).end),g=j(()=>{if(B(i)<B(m)||B(i)>B(h))return null;let e=$(B(o));return(B(i)-B(m))/1e3/e*B(s)}),_=j(()=>({root:B(r),rootMargin:Bi()?`0px -${B(d)+1}px 0px 0px`:`0px 0px 0px -${B(d)+1}px`,threshold:0}));function v(e,t){e.classList.toggle(B(c).hidden,!t.isIntersecting)}var y=U(),b=F(y),x=e=>{var t=nl();let n;qr(t,()=>Si(v,B(_))),L(()=>{J(t,1,B(c).nowIndicator),n=ri(t,``,n,{"grid-column":B(p)+1,"grid-row":`2 / span ${B(u).length??``}`,"inset-inline-start":`${B(g)??``}px`})}),W(e,t)};G(b,e=>{B(p)&&B(g)!==null&&e(x)}),W(e,y),A()}var il=H(`<time></time>`),al=H(`<span></span>`),ol=H(`<div><time></time></div>`),sl=H(`<div role="rowheader"><!> <!></div>`),cl=H(`<section><header><aside></aside> <div role="row"><!> <!> <!> <!></div></header> <div role="rowgroup"><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div> <!></section>`);function ll(e,t){k(t,!0);let n=O(`state`),r=new Yc(n);We(`view-state`,r);let i=j(()=>n.mainEl),a=j(()=>n.today),o=j(()=>n.viewDates),s=j(()=>n.options.columnWidth),c=j(()=>n.options.nowIndicator),l=j(()=>n.options.scrollTime),u=j(()=>n.options.slotDuration),d=j(()=>n.options.slotHeight),f=j(()=>n.options.slotWidth),p=j(()=>n.options.theme),m=j(()=>n.options.weekNumberContent),h=j(()=>r.chunks),g=j(()=>r.bgChunks),_=j(()=>r.iChunks),v=j(()=>r.daySlots),y=j(()=>r.dayTimeLimits),b=j(()=>r.grid),x=j(()=>r.extraHeads),S=j(()=>r.intlMonthHeader),ee=j(()=>r.monthView),te=j(()=>r.nestedResources),ne=j(()=>r.sidebarWidth),re=j(()=>r.slotLabelPeriodicity),ie=j(()=>r.viewResources),ae=M(0);xn(()=>{B(l),Mi(B(o))||fr().then(oe)});function oe(){let e=0,t=B(a)<B(o)[0]||B(a)>B(o).at(-1);if(B(ee)){if(!t){let e=B(b)[0];for(let t of e)if(Zi(t.dayStart,B(a))){B(i).scrollLeft=(B(i).scrollWidth-B(ne))/ji(e)*(t.gridColumn-1)*(Bi()?-1:1);break}}}else{for(let n of B(o)){let r=Bc(B(y),n);if(t||Zi(n,B(a))){e+=ki(Oi($(B(l)),$(r.max))-$(r.min),0);break}else e+=$(r.max)-$(r.min)}B(i).scrollLeft=e/$(B(u))*B(f)*(Bi()?-1:1)}}let se=[];function ce(){Ma(se,B(h))}xn(ce);var le=U(),ue=F(le),de=e=>{var t=cl();let i;var a=P(t),o=P(a),l=I(o,2),u=P(l),y=e=>{var t=U();q(F(t),17,()=>B(x).months,K,(e,t)=>{let n=()=>B(t).date,r=()=>B(t).gridColumn,i=()=>B(t).span;us(e,{get className(){return B(p).colGroup},get colIndex(){return r()},get colSpan(){return i()},cssSpan:!0,weekday:!1,children:(e,t)=>{var r=il();qr(r,()=>yi(B(S).format(n()))),L(e=>si(r,`datetime`,e),[()=>Xi(n(),10)]),W(e,r)},$$slots:{default:!0}})}),W(e,t)},oe=j(()=>ji(B(x).months)>1);G(u,e=>{B(oe)&&e(y)});var le=I(u,2),ue=e=>{var t=U();q(F(t),17,()=>B(x).weeks,K,(e,t)=>{let n=()=>B(t).number,r=()=>B(t).date,i=()=>B(t).gridColumn,a=()=>B(t).span;us(e,{get className(){return B(p).colGroup},get colIndex(){return i()},get colSpan(){return a()},cssSpan:!0,weekday:!1,children:(e,t)=>{var i=al();qr(i,()=>yi(oa(n(),B(m),r()))),L(()=>J(i,1,B(p).weekNumber)),W(e,i)},$$slots:{default:!0}})}),W(e,t)},de=j(()=>ji(B(x).weeks)>1);G(le,e=>{B(de)&&e(ue)});var C=I(le,2);q(C,17,()=>B(b)[0],K,(e,t,n)=>{let r=()=>B(t).dayStart,i=()=>B(t).disabled,a=()=>B(t).highlight;us(e,{get date(){return r()},colIndex:1+n,get disabled(){return i()},get highlight(){return a()},children:(e,t)=>{fs(e,{get date(){return r()}})},$$slots:{default:!0}})});var w=I(C,2),fe=e=>{var t=U();q(F(t),17,()=>B(b)[0],K,(e,t)=>{let n=()=>B(t).dayStart,r=()=>B(t).disabled,i=()=>B(t).highlight;us(e,{get date(){return n()},get className(){return B(p).slots},get disabled(){return r()},get highlight(){return i()},ariaHidden:!0,children:(e,t)=>{var r=U();q(F(r),17,()=>B(v)[n().getTime()],K,(e,t)=>{var n=ol();let r;var i=P(n);qr(i,()=>yi(B(t)[1])),D(n),L(()=>{J(n,1,B(p).slot),r=ri(n,``,r,{"--ec-slot-label-periodicity":B(t)[2]}),si(i,`datetime`,B(t)[0])}),W(e,n)}),W(e,r)},$$slots:{default:!0}})}),W(e,t)};G(w,e=>{B(ee)||e(fe)}),D(l),D(a);var pe=I(a,2),me=P(pe);q(me,21,()=>B(ie),K,(e,t)=>{var n=sl(),r=P(n),i=e=>{tl(e,{get resource(){return B(t)}})};G(r,e=>{B(te)&&e(i)}),Cc(I(r,2),{get resource(){return B(t)}}),D(n),L(()=>J(n,1,B(p).rowHead)),W(e,n)}),D(me);var he=I(me,2);q(he,21,()=>B(b),K,(e,t,n)=>{var r=U();q(F(r),17,()=>B(t),K,(e,r,i)=>{{let a=j(()=>i+1===ji(B(t))),o=j(()=>n+1===ji(B(b)));Xc(e,{get day(){return B(r)},get noIeb(){return B(a)},get noBeb(){return B(o)}})}}),W(e,r)}),D(he);var ge=I(he,2),_e=P(ge);q(_e,19,()=>B(h),e=>e.id,(e,t,n)=>{mi(Zc(e,{get chunk(){return B(t)}}),(e,t)=>se[t]=e,e=>se?.[e],()=>[B(n)])});var ve=I(_e,2);q(ve,17,()=>B(g),e=>e.id,(e,t)=>{Zc(e,{get chunk(){return B(t)}})}),q(I(ve,2),17,()=>B(_),K,(e,t)=>{Zc(e,{get chunk(){return B(t)}})}),D(ge),D(pe);var ye=I(pe,2),be=e=>{rl(e,{})};G(ye,e=>{B(c)&&!B(ee)&&e(be)}),D(t),mi(t,e=>n.mainEl=e,()=>n?.mainEl),qr(t,()=>xi(ce)),L(e=>{J(t,1,B(p).main),i=ri(t,``,i,e),J(a,1,B(p).header),J(o,1,B(p).sidebar),J(l,1,B(p).grid),J(pe,1,B(p).body),J(me,1,B(p).sidebar),J(he,1,B(p).grid),J(ge,1,B(p).events)},[()=>({"--ec-grid-cols":ji(B(b)[0]),"--ec-grid-rows":`${ji(B(b))>1?`repeat(${ji(B(b))-1}, auto)`:``} 1fr`,"--ec-col-width":B(s)??`minmax(4em, 1fr)`,"--ec-slot-label-periodicity":B(re),"--ec-slot-height":`${B(d)??``}px`,"--ec-slot-width":`${B(f)??``}px`,"--ec-header-height":`${B(ae)??``}px`,"--ec-sidebar-width":`${B(ne)??``}px`})]),fi(o,`offsetWidth`,e=>r.sidebarWidth=e),fi(a,`offsetHeight`,e=>N(ae,e)),W(e,t)},C=j(()=>!Mi(B(b))&&!Mi(B(b)[0]));G(ue,e=>{B(C)&&e(de)}),W(e,le),A()}var ul={createOptions(e){ic(e),sc(e),X(e,{monthHeaderFormat:{month:`long`},resourceExpand:void 0,slotWidth:32,view:`resourceTimelineWeek`}),X(e.buttonText,{expand:`Expand`,collapse:`Collapse`,resourceTimelineDay:`timeline`,resourceTimelineWeek:`timeline`,resourceTimelineMonth:`timeline`,resourceTimelineYear:`timeline`}),X(e.icons,{collapse:{html:`−`},expand:{html:`+`}}),X(e.theme,{expander:`ec-expander`,rowHead:`ec-row-head`,slots:`ec-slots`}),X(e.views,{resourceTimelineDay:{buttonText:Ya,component:dl,displayEventEnd:!1,dayHeaderFormat:{weekday:`long`},duration:{days:1},theme:eo(`ec-resource ec-timeline ec-day-view`),titleFormat:{year:`numeric`,month:`long`,day:`numeric`}},resourceTimelineWeek:{buttonText:Xa,component:dl,displayEventEnd:!1,duration:{weeks:1},theme:eo(`ec-resource ec-timeline ec-week-view`)},resourceTimelineMonth:{buttonText:Za,component:fl,displayEventEnd:!1,dayHeaderFormat:{weekday:`short`,day:`numeric`},duration:{months:1},slotDuration:{days:1},theme:eo(`ec-resource ec-timeline ec-month-view`),titleFormat:{year:`numeric`,month:`long`}},resourceTimelineYear:{buttonText:Qa,component:fl,displayEventEnd:!1,dayHeaderFormat:{weekday:`short`,day:`numeric`},duration:{years:1},slotDuration:{days:1},theme:eo(`ec-resource ec-timeline ec-year-view`),titleFormat:{year:`numeric`}}})},createParsers(e){oc(e)}};function dl(e){return rc(e),pl(e)}function fl(e){return pl(e)}function pl(e){return e.features=[`timeline`],e.extensions.viewResources=e=>e.filter(e=>!fa(e).hidden),ll}var ml={createOptions(e){ic(e),ac(e),X(e.buttonText,{timeGridDay:`day`,timeGridWeek:`week`}),X(e,{view:`timeGridWeek`}),X(e.views,{timeGridDay:{buttonText:Ya,component:hl,dayHeaderFormat:{weekday:`long`},duration:{days:1},theme:eo(`ec-time-grid ec-day-view`),titleFormat:{year:`numeric`,month:`long`,day:`numeric`}},timeGridWeek:{buttonText:Xa,component:hl,duration:{weeks:1},theme:eo(`ec-time-grid ec-week-view`)}})},createParsers(e){oc(e)}};function hl(e){return rc(e),Mc}function gl(e,t,n){return jr(Qo,{target:e,props:{plugins:t,options:n}})}function _l(e){return Fr(e)}function vl(e,t){return gl(e,[Ts,Us,Qs,Fc,ul,ml],t)}return e.create=vl,e.destroy=_l,e})({});
|
|
5
|
+
var EventCalendar=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Array.isArray,n=Array.prototype.indexOf,r=Array.prototype.includes,i=Array.from,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyDescriptors,c=Object.prototype,l=Array.prototype,u=Object.getPrototypeOf,d=Object.isExtensible,f=()=>{};function p(e){for(var t=0;t<e.length;t++)e[t]()}function m(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function h(e,t){if(Array.isArray(e))return e;if(t===void 0||!(Symbol.iterator in e))return Array.from(e);let n=[];for(let r of e)if(n.push(r),n.length===t)break;return n}var g=1<<24,_=1024,v=2048,y=4096,b=8192,x=16384,S=32768,ee=1<<25,C=65536,te=1<<19,ne=1<<20,re=1<<25,ie=65536,ae=1<<21,oe=1<<22,se=1<<23,ce=Symbol(`$state`),le=Symbol(`legacy props`),ue=Symbol(``),w=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},T=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function de(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function fe(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function pe(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function me(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function he(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function ge(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function _e(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function ve(){throw Error(`https://svelte.dev/e/get_abort_signal_outside_reaction`)}function ye(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function be(){throw Error(`https://svelte.dev/e/set_context_after_init`)}function xe(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Se(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Ce(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function we(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var Te={},Ee=Symbol(),De=`http://www.w3.org/1999/xhtml`;function Oe(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function ke(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var E=!1;function Ae(e){E=e}var D;function je(e){if(e===null)throw Oe(),Te;return D=e}function Me(){return je(cn(D))}function O(e){if(E){if(cn(D)!==null)throw Oe(),Te;D=e}}function Ne(e=1){if(E){for(var t=e,n=D;t--;)n=cn(n);D=n}}function Pe(e=!0){for(var t=0,n=D;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=cn(n);e&&n.remove(),n=i}}function Fe(e){if(!e||e.nodeType!==8)throw Oe(),Te;return e.data}function Ie(e){return e===this.v}function Le(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Re(e){return!Le(e,this.v)}var ze=!1,Be=!1,Ve=null;function He(e){Ve=e}function k(e){return Ge(`getContext`).get(e)}function Ue(e,t){let n=Ge(`setContext`);if(ze){var r=B.f;!z&&r&32&&!Ve.i||be()}return n.set(e,t),t}function A(e,t=!1,n){Ve={p:Ve,i:!1,c:null,e:null,s:e,x:null,r:B,l:Be&&!t?{s:null,u:null,$:[]}:null}}function j(e){var t=Ve,n=t.e;if(n!==null){t.e=null;for(var r of n)xn(r)}return e!==void 0&&(t.x=e),t.i=!0,Ve=t.p,e??{}}function We(){return!Be||Ve!==null&&Ve.l===null}function Ge(e){return Ve===null&&de(e),Ve.c??=new Map(Ke(Ve)||void 0)}function Ke(e){let t=e.p;for(;t!==null;){let e=t.c;if(e!==null)return e;t=t.p}return null}var qe=[];function Je(){var e=qe;qe=[],p(e)}function Ye(e){if(qe.length===0&&!dt){var t=qe;queueMicrotask(()=>{t===qe&&Je()})}qe.push(e)}function Xe(){for(;qe.length>0;)Je()}function Ze(e){var t=B;if(t===null)return z.f|=se,e;if(!(t.f&32768)&&!(t.f&4))throw e;Qe(e,t)}function Qe(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var $e=~(v|y|_);function et(e,t){e.f=e.f&$e|t}function tt(e){e.f&512||e.deps===null?et(e,_):et(e,y)}function nt(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=ie,nt(t.deps))}function rt(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),nt(e.deps),et(e,_)}var it=!1,at=!1;function ot(e){var t=at;try{return at=!1,[e(),at]}finally{at=t}}var st=new Set,ct=null,lt=null,ut=null,dt=!1,ft=!1,pt=null,mt=null,ht=0,gt=1,_t=class e{id=gt++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=new Map;#r=new Map;#i=null;#a=[];#o=new Set;#s=new Set;#c=new Map;is_fork=!1;#l=!1;#u=new Set;#d(){return this.is_fork||this.#r.size>0}#f(){for(let n of this.#u)for(let r of n.#r.keys()){for(var e=!1,t=r;t.parent!==null;){if(this.#c.has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}skip_effect(e){this.#c.has(e)||this.#c.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#c.get(e);if(t){this.#c.delete(e);for(var n of t.d)et(n,v),this.schedule(n);for(n of t.m)et(n,y),this.schedule(n)}}#p(){if(ht++>1e3&&(st.delete(this),yt()),!this.#d()){for(let e of this.#o)this.#s.delete(e),et(e,v),this.schedule(e);for(let e of this.#s)et(e,y),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=pt=[],r=[],i=mt=[];for(let e of t)try{this.#m(e,n,r)}catch(t){throw Et(e),t}if(ct=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(pt=null,mt=null,this.#d()||this.#f()){this.#h(r),this.#h(n);for(let[e,t]of this.#c)Tt(e,t)}else{this.#n.size===0&&st.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),xt(r),xt(n),this.#i?.resolve()}var o=ct;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(st.add(o),o.#p()),st.has(this)||this.#g()}#m(e,t,n){e.f^=_;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#c.has(r))&&r.fn!==null){a?r.f^=_:i&4?t.push(r):ze&&i&16777224?n.push(r):ar(r)&&(i&16&&this.#s.add(r),ur(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#h(e){for(var t=0;t<e.length;t+=1)rt(e[t],this.#o,this.#s)}capture(e,t,n=!1){t!==Ee&&!this.previous.has(e)&&this.previous.set(e,t),e.f&8388608||(this.current.set(e,[e.v,n]),lt?.set(e,e.v))}activate(){ct=this}deactivate(){ct=null,lt=null}flush(){try{ft=!0,ct=this,this.#p()}finally{ht=0,ut=null,pt=null,mt=null,ft=!1,ct=null,lt=null,Gt.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),st.delete(this)}#g(){for(let c of st){var e=c.id<this.id,t=[];for(let[r,[i,a]]of this.current){if(c.current.has(r)){var n=c.current.get(r)[0];if(e&&i!==n)c.current.set(r,[i,a]);else continue}t.push(r)}var r=[...c.current.keys()].filter(e=>!this.current.has(e));if(r.length===0)e&&c.discard();else if(t.length>0){c.activate();var i=new Set,a=new Map;for(var o of t)St(o,r,i,a);if(c.#a.length>0){c.apply();for(var s of c.#a)c.#m(s,[],[]);c.#a=[]}c.deactivate()}}for(let e of st)e.#u.has(this)&&(e.#u.delete(this),e.#u.size===0&&!e.#d()&&(e.activate(),e.#p()))}increment(e,t){let n=this.#n.get(t)??0;if(this.#n.set(t,n+1),e){let e=this.#r.get(t)??0;this.#r.set(t,e+1)}}decrement(e,t,n){let r=this.#n.get(t)??0;if(r===1?this.#n.delete(t):this.#n.set(t,r-1),e){let e=this.#r.get(t)??0;e===1?this.#r.delete(t):this.#r.set(t,e-1)}this.#l||n||(this.#l=!0,Ye(()=>{this.#l=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#o.add(t);for(let e of t)this.#s.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=m()).promise}static ensure(){if(ct===null){let t=ct=new e;ft||(st.add(ct),dt||Ye(()=>{ct===t&&t.flush()}))}return ct}apply(){if(!ze||!this.is_fork&&st.size===1){lt=null;return}lt=new Map;for(let[e,[t]]of this.current)lt.set(e,t);for(let n of st)if(!(n===this||n.is_fork)){var e=!1,t=!1;if(n.id<this.id)for(let[r,[,i]]of n.current)i||(e||=this.current.has(r),t||=!this.current.has(r));if(e&&t)this.#u.add(n);else for(let[e,t]of n.previous)lt.has(e)||lt.set(e,t)}}schedule(e){if(ut=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(pt!==null&&t===B&&(ze||(z===null||!(z.f&2))&&!it))return;if(n&96){if(!(n&1024))return;t.f^=_}}this.#a.push(t)}};function vt(e){var t=dt;dt=!0;try{var n;for(e&&(ct!==null&&!ct.is_fork&&ct.flush(),n=e());;){if(Xe(),ct===null)return n;ct.flush()}}finally{dt=t}}function yt(){try{_e()}catch(e){Qe(e,ut)}}var bt=null;function xt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&ar(r)&&(bt=new Set,ur(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Fn(r),bt?.size>0)){Gt.clear();for(let e of bt){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)bt.has(n)&&(bt.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||ur(n)}}bt.clear()}}bt=null}}function St(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?St(i,t,n,r):e&4194320&&!(e&2048)&&Ct(i,t,r)&&(et(i,v),wt(i))}}function Ct(e,t,n){let i=n.get(e);if(i!==void 0)return i;if(e.deps!==null)for(let i of e.deps){if(r.call(t,i))return!0;if(i.f&2&&Ct(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function wt(e){ct.schedule(e)}function Tt(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),et(e,_);for(var n=e.first;n!==null;)Tt(n,t),n=n.next}}function Et(e){et(e,_);for(var t=e.first;t!==null;)Et(t),t=t.next}function Dt(e){let t=0,n=qt(0),r;return()=>{vn()&&(V(n),En(()=>(t===0&&(r=H(()=>e(()=>Zt(n)))),t+=1,()=>{Ye(()=>{--t,t===0&&(r?.(),r=void 0,Zt(n))})})))}}var Ot=C|te;function kt(e,t,n,r){new At(e,t,n,r)}var At=class{parent;is_pending=!1;transform_error;#e;#t=E?D:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=Dt(()=>(this.#m=qt(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=B;t.b=this,t.f|=128,n(e)},this.parent=B.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=Dn(()=>{if(E){let e=this.#t;Me();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},Ot),E&&(this.#e=D)}#g(){try{this.#a=kn(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=kn(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=kn(()=>e(this.#e)),Ye(()=>{var e=this.#c=document.createDocumentFragment(),t=on();e.append(t),this.#a=this.#x(()=>kn(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,In(this.#o,()=>{this.#o=null}),this.#b(ct))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=kn(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Bn(this.#a,e);let t=this.#n.pending;this.#o=kn(()=>t(this.#e))}else this.#b(ct)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){rt(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=B,n=z,r=Ve;qn(this.#i),Kn(this.#i),He(this.#i.ctx);try{return _t.ensure(),e()}catch(e){return Ze(e),null}finally{qn(t),Kn(n),He(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&In(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,Ye(()=>{this.#d=!1,this.#m&&Yt(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),V(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(Nn(this.#a),null),this.#o&&=(Nn(this.#o),null),this.#s&&=(Nn(this.#s),null),E&&(je(this.#t),Ne(),je(Pe()));var r=!1,i=!1;let a=()=>{if(r){ke();return}r=!0,i&&we(),this.#s!==null&&In(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){Qe(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return kn(()=>{var t=B;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return Qe(e,this.#i.parent),null}}))};Ye(()=>{var t;try{t=this.transform_error(e)}catch(e){Qe(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>Qe(e,this.#i&&this.#i.parent)):o(t)})}};function jt(e,t,n,r){let i=We()?Ft:Lt;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=B,s=Mt(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){s();try{r(e)}catch(e){o.f&16384||Qe(e,o)}Nt()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=Pt();function d(){Promise.all(n.map(e=>It(e))).then(e=>l([...t.map(i),...e])).catch(e=>Qe(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),Nt()}):d()}function Mt(){var e=B,t=z,n=Ve,r=ct;return function(i=!0){qn(e),Kn(t),He(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Nt(e=!0){qn(null),Kn(null),He(null),e&&ct?.deactivate()}function Pt(){var e=B,t=e.b,n=ct,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function Ft(e){var t=2|v,n=z!==null&&z.f&2?z:null;return B!==null&&(B.f|=te),{ctx:Ve,deps:null,effects:null,equals:Ie,f:t,fn:e,reactions:null,rv:0,v:Ee,wv:0,parent:n??B,ac:null}}function It(e,t,n){let r=B;r===null&&fe();var i=void 0,a=qt(Ee),o=!z,s=new Map;return Tn(()=>{var t=B,n=m();i=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(Nt)}catch(e){n.reject(e),Nt()}var c=ct;if(o){if(t.f&32768)var l=Pt();if(r.b.is_rendered())s.get(c)?.reject(w),s.delete(c);else{for(let e of s.values())e.reject(w);s.clear()}s.set(c,n)}let u=(e,n=void 0)=>{if(l&&l(n===w),!(n===w||t.f&16384)){if(c.activate(),n)a.f|=se,Yt(a,n);else{a.f&8388608&&(a.f^=se),Yt(a,e);for(let[e,t]of s){if(s.delete(e),e===c)break;t.reject(w)}}c.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),yn(()=>{for(let e of s.values())e.reject(w)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function M(e){let t=Ft(e);return ze||Yn(t),t}function Lt(e){let t=Ft(e);return t.equals=Re,t}function Rt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)Nn(t[n])}}function zt(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function Bt(e){var t,n=B;qn(zt(e));try{e.f&=~ie,Rt(e),t=sr(e)}finally{qn(n)}return t}function Vt(e){var t=e.v,n=Bt(e);if(!e.equals(n)&&(e.wv=ir(),(!ct?.is_fork||e.deps===null)&&(e.v=n,ct?.capture(e,t,!0),e.deps===null))){et(e,_);return}Un||(lt===null?tt(e):(vn()||ct?.is_fork)&<.set(e,n))}function Ht(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(w),t.teardown=f,t.ac=null,lr(t,0),jn(t))}function Ut(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&ur(t)}var Wt=new Set,Gt=new Map,Kt=!1;function qt(e,t){return{f:0,v:e,reactions:null,equals:Ie,rv:0,wv:0}}function N(e,t){let n=qt(e,t);return Yn(n),n}function Jt(e,t=!1,n=!0){let r=qt(e);return t||(r.equals=Re),Be&&n&&Ve!==null&&Ve.l!==null&&(Ve.l.s??=[]).push(r),r}function P(e,t,n=!1){return z!==null&&(!Gn||z.f&131072)&&We()&&z.f&4325394&&(Jn===null||!r.call(Jn,e))&&Ce(),Yt(e,n?$t(t):t,mt)}function Yt(e,t,n=null){if(!e.equals(t)){var r=e.v;Un?Gt.set(e,t):Gt.set(e,r),e.v=t;var i=_t.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&Bt(t),lt===null&&tt(t)}e.wv=ir(),Qt(e,v,n),We()&&B!==null&&B.f&1024&&!(B.f&96)&&(Qn===null?$n([e]):Qn.push(e)),!i.is_fork&&Wt.size>0&&!Kt&&Xt()}return t}function Xt(){Kt=!1;for(let e of Wt)e.f&1024&&et(e,y),ar(e)&&ur(e);Wt.clear()}function Zt(e){P(e,e.v+1)}function Qt(e,t,n){var r=e.reactions;if(r!==null)for(var i=We(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===B)){var l=(c&v)===0;if(l&&et(s,t),c&2){var u=s;lt?.delete(u),c&65536||(c&512&&(s.f|=ie),Qt(u,y,n))}else if(l){var d=s;c&16&&bt!==null&&bt.add(d),n===null?wt(d):n.push(d)}}}}function $t(e){if(typeof e!=`object`||!e||ce in e)return e;let n=u(e);if(n!==c&&n!==l)return e;var r=new Map,i=t(e),a=N(0),s=null,d=nr,f=e=>{if(nr===d)return e();var t=z,n=nr;Kn(null),rr(d);var r=e();return Kn(t),rr(n),r};return i&&r.set(`length`,N(e.length,s)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&xe();var i=r.get(t);return i===void 0?f(()=>{var e=N(n.value,s);return r.set(t,e),e}):P(i,n.value,!0),!0},deleteProperty(e,t){var n=r.get(t);if(n===void 0){if(t in e){let e=f(()=>N(Ee,s));r.set(t,e),Zt(a)}}else P(n,Ee),Zt(a);return!0},get(t,n,i){if(n===ce)return e;var a=r.get(n),c=n in t;if(a===void 0&&(!c||o(t,n)?.writable)&&(a=f(()=>N($t(c?t[n]:Ee),s)),r.set(n,a)),a!==void 0){var l=V(a);return l===Ee?void 0:l}return Reflect.get(t,n,i)},getOwnPropertyDescriptor(e,t){var n=Reflect.getOwnPropertyDescriptor(e,t);if(n&&`value`in n){var i=r.get(t);i&&(n.value=V(i))}else if(n===void 0){var a=r.get(t),o=a?.v;if(a!==void 0&&o!==Ee)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return n},has(e,t){if(t===ce)return!0;var n=r.get(t),i=n!==void 0&&n.v!==Ee||Reflect.has(e,t);return(n!==void 0||B!==null&&(!i||o(e,t)?.writable))&&(n===void 0&&(n=f(()=>N(i?$t(e[t]):Ee,s)),r.set(t,n)),V(n)===Ee)?!1:i},set(e,t,n,c){var l=r.get(t),u=t in e;if(i&&t===`length`)for(var d=n;d<l.v;d+=1){var p=r.get(d+``);p===void 0?d in e&&(p=f(()=>N(Ee,s)),r.set(d+``,p)):P(p,Ee)}if(l===void 0)(!u||o(e,t)?.writable)&&(l=f(()=>N(void 0,s)),P(l,$t(n)),r.set(t,l));else{u=l.v!==Ee;var m=f(()=>$t(n));P(l,m)}var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(c,n),!u){if(i&&typeof t==`string`){var g=r.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&P(g,_+1)}Zt(a)}return!0},ownKeys(e){V(a);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==Ee});for(var[n,i]of r)i.v!==Ee&&!(n in e)&&t.push(n);return t},setPrototypeOf(){Se()}})}var en,tn,nn,rn;function an(){if(en===void 0){en=window,tn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;nn=o(t,`firstChild`).get,rn=o(t,`nextSibling`).get,d(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),d(n)&&(n.__t=void 0)}}function on(e=``){return document.createTextNode(e)}function sn(e){return nn.call(e)}function cn(e){return rn.call(e)}function F(e,t){if(!E)return sn(e);var n=sn(D);if(n===null)n=D.appendChild(on());else if(t&&n.nodeType!==3){var r=on();return n?.before(r),je(r),r}return t&&fn(n),je(n),n}function I(e,t=!1){if(!E){var n=sn(e);return n instanceof Comment&&n.data===``?cn(n):n}if(t){if(D?.nodeType!==3){var r=on();return D?.before(r),je(r),r}fn(D)}return D}function L(e,t=1,n=!1){let r=E?D:e;for(var i;t--;)i=r,r=cn(r);if(!E)return r;if(n){if(r?.nodeType!==3){var a=on();return r===null?i?.after(a):r.before(a),je(a),a}fn(r)}return je(r),r}function ln(e){e.textContent=``}function un(){return!ze||bt!==null?!1:(B.f&S)!==0}function dn(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function fn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function pn(e,t){if(t){let t=document.body;e.autofocus=!0,Ye(()=>{document.activeElement===t&&e.focus()})}}function mn(e){var t=z,n=B;Kn(null),qn(null);try{return e()}finally{Kn(t),qn(n)}}function hn(e){B===null&&(z===null&&ge(e),he()),Un&&me(e)}function gn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function _n(e,t){var n=B;n!==null&&n.f&8192&&(e|=b);var r={ctx:Ve,deps:null,nodes:null,f:e|v|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if(e&4)pt===null?_t.ensure().schedule(r):pt.push(r);else if(t!==null){try{ur(r)}catch(e){throw Nn(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=C))}if(i!==null&&(i.parent=n,n!==null&&gn(i,n),z!==null&&z.f&2&&!(e&64))){var a=z;(a.effects??=[]).push(i)}return r}function vn(){return z!==null&&!Gn}function yn(e){let t=_n(8,null);return et(t,_),t.teardown=e,t}function bn(e){hn(`$effect`);var t=B.f;if(!z&&t&32&&!(t&32768)){var n=Ve;(n.e??=[]).push(e)}else return xn(e)}function xn(e){return _n(4|ne,e)}function Sn(e){return hn(`$effect.pre`),_n(8|ne,e)}function Cn(e){_t.ensure();let t=_n(64|te,e);return(e={})=>new Promise(n=>{e.outro?In(t,()=>{Nn(t),n(void 0)}):(Nn(t),n(void 0))})}function wn(e){return _n(4,e)}function Tn(e){return _n(oe|te,e)}function En(e,t=0){return _n(8|t,e)}function R(e,t=[],n=[],r=[]){jt(r,t,n,t=>{_n(8,()=>e(...t.map(V)))})}function Dn(e,t=0){return _n(16|t,e)}function On(e,t=0){return _n(g|t,e)}function kn(e){return _n(32|te,e)}function An(e){var t=e.teardown;if(t!==null){let e=Un,n=z;Wn(!0),Kn(null);try{t.call(null)}finally{Wn(e),Kn(n)}}}function jn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&mn(()=>{e.abort(w)});var r=n.next;n.f&64?n.parent=null:Nn(n,t),n=r}}function Mn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||Nn(t),t=n}}function Nn(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(Pn(e.nodes.start,e.nodes.end),n=!0),et(e,ee),jn(e,t&&!n),lr(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();An(e),e.f^=ee,e.f|=x;var i=e.parent;i!==null&&i.first!==null&&Fn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Pn(e,t){for(;e!==null;){var n=e===t?null:cn(e);e.remove(),e=n}}function Fn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function In(e,t,n=!0){var r=[];Ln(e,r,!0);var i=()=>{n&&Nn(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function Ln(e,t,n){if(!(e.f&8192)){e.f^=b;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next,o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;Ln(i,t,o?n:!1),i=a}}}function Rn(e){zn(e,!0)}function zn(e,t){if(e.f&8192){e.f^=b,e.f&1024||(et(e,v),_t.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;zn(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function Bn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:cn(n);t.append(n),n=i}}var Vn=null,Hn=!1,Un=!1;function Wn(e){Un=e}var z=null,Gn=!1;function Kn(e){z=e}var B=null;function qn(e){B=e}var Jn=null;function Yn(e){z!==null&&(!ze||z.f&2)&&(Jn===null?Jn=[e]:Jn.push(e))}var Xn=null,Zn=0,Qn=null;function $n(e){Qn=e}var er=1,tr=0,nr=tr;function rr(e){nr=e}function ir(){return++er}function ar(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~ie),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(ar(a)&&Vt(a),a.wv>e.wv)return!0}t&512&<===null&&et(e,_)}return!1}function or(e,t,n=!0){var i=e.reactions;if(i!==null&&!(!ze&&Jn!==null&&r.call(Jn,e)))for(var a=0;a<i.length;a++){var o=i[a];o.f&2?or(o,t,!1):t===o&&(n?et(o,v):o.f&1024&&et(o,y),wt(o))}}function sr(e){var t=Xn,n=Zn,r=Qn,i=z,a=Jn,o=Ve,s=Gn,c=nr,l=e.f;Xn=null,Zn=0,Qn=null,z=l&96?null:e,Jn=null,He(e.ctx),Gn=!1,nr=++tr,e.ac!==null&&(mn(()=>{e.ac.abort(w)}),e.ac=null);try{e.f|=ae;var u=e.fn,d=u();e.f|=S;var f=e.deps,p=ct?.is_fork;if(Xn!==null){var m;if(p||lr(e,Zn),f!==null&&Zn>0)for(f.length=Zn+Xn.length,m=0;m<Xn.length;m++)f[Zn+m]=Xn[m];else e.deps=f=Xn;if(vn()&&e.f&512)for(m=Zn;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&Zn<f.length&&(lr(e,Zn),f.length=Zn);if(We()&&Qn!==null&&!Gn&&f!==null&&!(e.f&6146))for(m=0;m<Qn.length;m++)or(Qn[m],e);if(i!==null&&i!==e){if(tr++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=tr;if(t!==null)for(let e of t)e.rv=tr;Qn!==null&&(r===null?r=Qn:r.push(...Qn))}return e.f&8388608&&(e.f^=se),d}catch(e){return Ze(e)}finally{e.f^=ae,Xn=t,Zn=n,Qn=r,z=i,Jn=a,He(o),Gn=s,nr=c}}function cr(e,t){let i=t.reactions;if(i!==null){var a=n.call(i,e);if(a!==-1){var o=i.length-1;o===0?i=t.reactions=null:(i[a]=i[o],i.pop())}}if(i===null&&t.f&2&&(Xn===null||!r.call(Xn,t))){var s=t;s.f&512&&(s.f^=512,s.f&=~ie),tt(s),Ht(s),lr(s,0)}}function lr(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)cr(e,n[r])}function ur(e){var t=e.f;if(!(t&16384)){et(e,_);var n=B,r=Hn;B=e,Hn=!0;try{t&16777232?Mn(e):jn(e),An(e);var i=sr(e);e.teardown=typeof i==`function`?i:null,e.wv=er}finally{Hn=r,B=n}}}async function dr(){if(ze)return new Promise(e=>{requestAnimationFrame(()=>e()),setTimeout(()=>e())});await Promise.resolve(),vt()}function V(e){var t=(e.f&2)!=0;if(Vn?.add(e),z!==null&&!Gn&&!(B!==null&&B.f&16384)&&(Jn===null||!r.call(Jn,e))){var n=z.deps;if(z.f&2097152)e.rv<tr&&(e.rv=tr,Xn===null&&n!==null&&n[Zn]===e?Zn++:Xn===null?Xn=[e]:Xn.push(e));else{(z.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[z]:r.call(i,z)||i.push(z)}}if(Un&&Gt.has(e))return Gt.get(e);if(t){var a=e;if(Un){var o=a.v;return(!(a.f&1024)&&a.reactions!==null||pr(a))&&(o=Bt(a)),Gt.set(a,o),o}var s=(a.f&512)==0&&!Gn&&z!==null&&(Hn||(z.f&512)!=0),c=(a.f&S)===0;ar(a)&&(s&&(a.f|=512),Vt(a)),s&&!c&&(Ut(a),fr(a))}if(lt?.has(e))return lt.get(e);if(e.f&8388608)throw e.v;return e.v}function fr(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Ut(t),fr(t))}function pr(e){if(e.v===Ee)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Gt.has(t)||t.f&2&&pr(t))return!0;return!1}function H(e){var t=Gn;try{return Gn=!0,e()}finally{Gn=t}}[...`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`)];var mr=[`touchstart`,`touchmove`];function hr(e){return mr.includes(e)}var gr=Symbol(`events`),_r=new Set,vr=new Set;function yr(e,t,n,r={}){function i(e){if(r.capture||wr.call(t,e),!e.cancelBubble)return mn(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?Ye(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function br(e,t,n,r,i){var a={capture:r,passive:i},o=yr(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&yn(()=>{t.removeEventListener(e,o,a)})}function xr(e,t,n){(t[gr]??={})[e]=n}function Sr(e){for(var t=0;t<e.length;t++)_r.add(e[t]);for(var n of vr)n(e)}var Cr=null;function wr(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],o=i[0]||e.target;Cr=e;var s=0,c=Cr===e&&e[gr];if(c){var l=i.indexOf(c);if(l!==-1&&(t===document||t===window)){e[gr]=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(s=l)}if(o=i[s]||e.target,o!==t){a(e,`currentTarget`,{configurable:!0,get(){return o||n}});var d=z,f=B;Kn(null),qn(null);try{for(var p,m=[];o!==null;){var h=o.assignedSlot||o.parentNode||o.host||null;try{var g=o[gr]?.[r];g!=null&&(!o.disabled||e.target===o)&&g.call(o,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble||h===t||h===null)break;o=h}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[gr]=t,delete e.currentTarget,Kn(d),qn(f)}}}var Tr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function Er(e){return Tr?.createHTML(e)??e}function Dr(e){var t=dn(`template`);return t.innerHTML=Er(e.replaceAll(`<!>`,`<!---->`)),t.content}function Or(e,t){var n=B;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function U(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(E)return Or(D,null),D;i===void 0&&(i=Dr(a?e:`<!>`+e),n||(i=sn(i)));var t=r||tn?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=sn(t),s=t.lastChild;Or(o,s)}else Or(t,t);return t}}function W(){if(E)return Or(D,null),D;var e=document.createDocumentFragment(),t=document.createComment(``),n=on();return e.append(t,n),Or(t,n),e}function G(e,t){if(E){var n=B;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=D),Me();return}e!==null&&e.before(t)}function kr(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function Ar(e,t){return Mr(e,t)}var jr=new Map;function Mr(e,{target:t,anchor:n,props:r={},events:a,context:o,intro:s=!0,transformError:c}){an();var l=void 0,u=Cn(()=>{var s=n??t.appendChild(on());kt(s,{pending:()=>{}},t=>{A({});var n=Ve;if(o&&(n.c=o),a&&(r.$$events=a),E&&Or(t,null),l=e(t,r)||{},E&&(B.nodes.end=D,D===null||D.nodeType!==8||D.data!==`]`))throw Oe(),Te;j()},c);var u=new Set,d=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!u.has(r)){u.add(r);var i=hr(r);for(let e of[t,document]){var a=jr.get(e);a===void 0&&(a=new Map,jr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,wr,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return d(i(_r)),vr.add(d),()=>{for(var e of u)for(let n of[t,document]){var r=jr.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,wr),r.delete(e),r.size===0&&jr.delete(n)):r.set(e,i)}vr.delete(d),s!==n&&s.parentNode?.removeChild(s)}});return Nr.set(l,u),l}var Nr=new WeakMap;function Pr(e,t){let n=Nr.get(e);return n?(Nr.delete(e),n(t)):Promise.resolve()}var Fr=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)Rn(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(Nn(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();Bn(r,t),t.append(on()),this.#n.set(e,{effect:r,fragment:t})}else Nn(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),In(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(Nn(n.effect),this.#n.delete(e))};ensure(e,t){var n=ct,r=un();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=on();i.append(a),this.#n.set(e,{effect:kn(()=>t(a)),fragment:i})}else this.#t.set(e,kn(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else E&&(this.anchor=D),this.#a(n)}};function K(e,t,n=!1){var r;E&&(r=D,Me());var i=new Fr(e),a=n?C:0;function o(e,t){if(E){var n=Fe(r);if(e!==parseInt(n.substring(1))){var a=Pe();je(a),i.anchor=a,Ae(!1),i.ensure(e,t),Ae(!0);return}}i.ensure(e,t)}Dn(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function q(e,t){return t}function Ir(e,t,n){for(var r=[],a=t.length,o,s=t.length,c=0;c<a;c++){let n=t[c];In(n,()=>{if(o){if(o.pending.delete(n),o.done.add(n),o.pending.size===0){var t=e.outrogroups;Lr(e,i(o.done)),t.delete(o),t.size===0&&(e.outrogroups=null)}}else --s},!1)}if(s===0){var l=r.length===0&&n!==null;if(l){var u=n,d=u.parentNode;ln(d),d.append(u),e.items.clear()}Lr(e,t,!l)}else o={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(o)}function Lr(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=re,Bn(a,document.createDocumentFragment())):Nn(t[i],n)}}var Rr;function J(e,n,r,a,o,s=null){var c=e,l=new Map;if(n&4){var u=e;c=E?je(sn(u)):u.appendChild(on())}E&&Me();var d=null,f=Lt(()=>{var e=r();return t(e)?e:e==null?[]:i(e)}),p,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=d,Br(v,p,c,n,a),d!==null&&(p.length===0?d.f&33554432?(d.f^=re,Hr(d,null,c)):Rn(d):In(d,()=>{d=null})))}function _(e){v.pending.delete(e)}var v={effect:Dn(()=>{p=V(f);var e=p.length;let t=!1;E&&Fe(c)===`[!`!=(e===0)&&(c=Pe(),je(c),Ae(!1),t=!0);for(var i=new Set,u=ct,v=un(),y=0;y<e;y+=1){E&&D.nodeType===8&&D.data===`]`&&(c=D,t=!0,Ae(!1));var b=p[y],x=a(b,y),S=h?null:l.get(x);S?(S.v&&Yt(S.v,b),S.i&&Yt(S.i,y),v&&u.unskip_effect(S.e)):(S=Vr(l,h?c:Rr??=on(),b,x,y,o,n,r),h||(S.e.f|=re),l.set(x,S)),i.add(x)}if(e===0&&s&&!d&&(h?d=kn(()=>s(c)):(d=kn(()=>s(Rr??=on())),d.f|=re)),e>i.size&&pe(``,``,``),E&&e>0&&je(Pe()),!h)if(m.set(u,i),v){for(let[e,t]of l)i.has(e)||u.skip_effect(t.e);u.oncommit(g),u.ondiscard(_)}else g(u);t&&Ae(!0),V(f)}),flags:n,items:l,pending:m,outrogroups:null,fallback:d};h=!1,E&&(c=D)}function zr(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function Br(e,t,n,r,a){var o=(r&8)!=0,s=t.length,c=e.items,l=zr(e.effect.first),u,d=null,f,p=[],m=[],h,g,_,v;if(o)for(v=0;v<s;v+=1)h=t[v],g=a(h,v),_=c.get(g).e,_.f&33554432||(_.nodes?.a?.measure(),(f??=new Set).add(_));for(v=0;v<s;v+=1){if(h=t[v],g=a(h,v),_=c.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&8192&&(Rn(_),o&&(_.nodes?.a?.unfix(),(f??=new Set).delete(_))),_.f&33554432)if(_.f^=re,_===l)Hr(_,null,n);else{var y=d?d.next:l;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),Ur(e,d,_),Ur(e,_,y),Hr(_,y,n),d=_,p=[],m=[],l=zr(d.next);continue}if(_!==l){if(u!==void 0&&u.has(_)){if(p.length<m.length){var b=m[0],x;d=b.prev;var S=p[0],ee=p[p.length-1];for(x=0;x<p.length;x+=1)Hr(p[x],b,n);for(x=0;x<m.length;x+=1)u.delete(m[x]);Ur(e,S.prev,ee.next),Ur(e,d,S),Ur(e,ee,b),l=b,d=ee,--v,p=[],m=[]}else u.delete(_),Hr(_,l,n),Ur(e,_.prev,_.next),Ur(e,_,d===null?e.effect.first:d.next),Ur(e,d,_),d=_;continue}for(p=[],m=[];l!==null&&l!==_;)(u??=new Set).add(l),m.push(l),l=zr(l.next);if(l===null)continue}_.f&33554432||p.push(_),d=_,l=zr(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(Lr(e,i(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var C=[];if(u!==void 0)for(_ of u)_.f&8192||C.push(_);for(;l!==null;)!(l.f&8192)&&l!==e.fallback&&C.push(l),l=zr(l.next);var te=C.length;if(te>0){var ne=r&4&&s===0?n:null;if(o){for(v=0;v<te;v+=1)C[v].nodes?.a?.measure();for(v=0;v<te;v+=1)C[v].nodes?.a?.fix()}Ir(e,C,ne)}}o&&Ye(()=>{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function Vr(e,t,n,r,i,a,o,s){var c=o&1?o&16?qt(n):Jt(n,!1,!1):null,l=o&2?qt(i):null;return{v:c,i:l,e:kn(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function Hr(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=cn(r);if(a.before(r),r===i)return;r=o}}function Ur(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Wr(e,t,...n){var r=new Fr(e);Dn(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},C)}function Gr(e,t,n){var r;E&&(r=D,Me());var i=new Fr(e);Dn(()=>{var e=t()??null;if(E&&Fe(r)===`[`!=(e!==null)){var a=Pe();je(a),i.anchor=a,Ae(!1),i.ensure(e,e&&(t=>n(t,e))),Ae(!0);return}i.ensure(e,e&&(t=>n(t,e)))},C)}function Kr(e,t){var n=void 0,r;On(()=>{n!==(n=t())&&(r&&=(Nn(r),null),n&&(r=kn(()=>{wn(()=>n(e))})))})}function qr(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=qr(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Jr(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=qr(e))&&(r&&(r+=` `),r+=t);return r}function Yr(e){return typeof e==`object`?Jr(e):e??``}var Xr=[...`
|
|
6
|
+
\r\f\xA0\v`];function Zr(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||Xr.includes(r[o-1]))&&(s===r.length||Xr.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Qr(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function $r(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function ei(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map($r)),i&&c.push(...Object.keys(i).map($r));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=$r(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=Qr(r)),i&&(n+=Qr(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function Y(e,t,n,r,i,a){var o=e.__className;if(E||o!==n||o===void 0){var s=Zr(n,r,a);(!E||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e.__className=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function ti(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function ni(e,t,n,r){var i=e.__style;if(E||i!==t){var a=ei(t,r);(!E||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e.__style=t}else r&&(Array.isArray(r)?(ti(e,n?.[0],r[0]),ti(e,n?.[1],r[1],`important`)):ti(e,n,r));return r}var ri=Symbol(`is custom element`),ii=Symbol(`is html`),ai=T?`link`:`LINK`;function oi(e,t,n,r){var i=si(e);E&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===ai)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[ue]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&li(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function si(e){return e.__attributes??={[ri]:e.nodeName.includes(`-`),[ii]:e.namespaceURI===De}}var ci=new Map;function li(e){var t=e.getAttribute(`is`)||e.nodeName,n=ci.get(t);if(n)return n;ci.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=s(i),r)r[o].set&&n.push(o);i=u(i)}return n}var ui=new class e{#e=new WeakMap;#t;#n;static entries=new WeakMap;constructor(e){this.#n=e}observe(e,t){var n=this.#e.get(e)||new Set;return n.add(t),this.#e.set(e,n),this.#r().observe(e,this.#n),()=>{var n=this.#e.get(e);n.delete(t),n.size===0&&(this.#e.delete(e),this.#t.unobserve(e))}}#r(){return this.#t??=new ResizeObserver(t=>{for(var n of t){e.entries.set(n.target,n);for(var r of this.#e.get(n.target)||[])r(n)}})}}({box:`border-box`});function di(e,t,n){var r=ui.observe(e,()=>n(e[t]));wn(()=>(H(()=>n(e[t])),r))}function fi(e,t){return e===t||e?.[ce]===t}function pi(e={},t,n,r){var i=Ve.r,a=B;return wn(()=>{var o,s;return En(()=>{o=s,s=r?.()||[],H(()=>{e!==n(...s)&&(t(e,...s),o&&fi(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&fi(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function mi(e,t,n,r){var i=!Be||(n&2)!=0,a=(n&8)!=0,s=(n&16)!=0,c=r,l=!0,u=()=>(l&&(l=!1,c=s?H(r):r),c);let d;if(a){var f=ce in e||le in e;d=o(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=ot(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=u(),d&&(i&&ye(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?u():(l=!0,n)}:()=>{var n=e[t];return n!==void 0&&(c=void 0),n===void 0?c:n};if(i&&!(n&4))return h;if(d){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&d(t?h():e),e):h()})}var _=!1,v=(n&1?Ft:Lt)(()=>(_=!1,h()));a&&V(v);var y=B;return(function(e,t){if(arguments.length>0){let n=t?V(v):i&&a?$t(e):e;return P(v,n),_=!0,c!==void 0&&(c=n),e}return Un&&_||y.f&16384?v.v:V(v)})}function hi(){return z===null&&ve(),(z.ac??=new AbortController).signal}function gi(e){Ve===null&&de(`onMount`),Be&&Ve.l!==null?_i(Ve).m.push(e):bn(()=>{let t=H(e);if(typeof t==`function`)return t})}function _i(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);function vi(e,t=void 0){return function(n){return n.key===`Enter`||n.key===` `&&!n.preventDefault()?e.call(t,n):void 0}}function yi(e){return t=>{typeof e==`string`?t.innerText=e:e?.domNodes?t.replaceChildren(...e.domNodes):e?.html&&(t.innerHTML=e.html)}}function bi(e){return t=>{let n=n=>{t&&!t.contains(n.target)&&t.dispatchEvent(new CustomEvent(e+`outside`,{detail:{jsEvent:n}}))};return document.addEventListener(e,n,!0),()=>{document.removeEventListener(e,n,!0)}}}function xi(e){return t=>{let n=new ResizeObserver(n=>{for(let r of n)e(t,r)});return n.observe(t),()=>{n.unobserve(t)}}}function Si(e,t){return n=>{let r=new IntersectionObserver(t=>{for(let r of t)e(n,r)},t);return r.observe(n),()=>{r.unobserve(n)}}}function X(...e){return Object.assign(...e)}function Ci(e){return Object.keys(e)}function wi(e){return Object.entries(e)}function Ti(e,t){return Object.hasOwn(e,t)}function Ei(e){return Math.floor(e)}function Di(e){return Math.ceil(e)}function Oi(...e){return Math.min(...e)}function ki(...e){return Math.max(...e)}function Ai(){return Symbol(`ec`)}function ji(e){return e.length}function Mi(e){return!ji(e)}function Ni(e){return Array.isArray(e)}function Z(e){return typeof e==`function`}function Pi(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Fi(e){return e instanceof Date}function Ii(e){return e()}function Li(e){e.forEach(Ii)}function Ri(){}var zi=e=>e;function Bi(){return window.getComputedStyle(document.documentElement).direction===`rtl`}function Vi(e){return t=>t===void 0?void 0:e(t)}var Hi=86400;function Ui(e=void 0){return e===void 0?ca(new Date):Fi(e)?ca(e):la(e)}function Wi(e){if(typeof e==`number`)e={seconds:e};else if(typeof e==`string`){let t=0,n=2;for(let r of e.split(`:`,3))t+=parseInt(r,10)*60**n--;e={seconds:t}}else Fi(e)&&(e={hours:e.getUTCHours(),minutes:e.getUTCMinutes(),seconds:e.getUTCSeconds()});let t=e.weeks||e.week||0;return{years:e.years||e.year||0,months:e.months||e.month||0,days:t*7+(e.days||e.day||0),seconds:(e.hours||e.hour||0)*60*60+(e.minutes||e.minute||0)*60+(e.seconds||e.second||0),inWeeks:!!t}}function Q(e){return new Date(e.getTime())}function Gi(e,t,n=1){e.setUTCFullYear(e.getUTCFullYear()+n*t.years);let r=e.getUTCMonth()+n*t.months;for(e.setUTCMonth(r),r%=12,r<0&&(r+=12);e.getUTCMonth()!==r;)Ji(e);return e.setUTCDate(e.getUTCDate()+n*t.days),e.setUTCSeconds(e.getUTCSeconds()+n*t.seconds),e}function Ki(e,t,n=1){return Gi(e,t,-n)}function qi(e,t=1){return e.setUTCDate(e.getUTCDate()+t),e}function Ji(e,t=1){return qi(e,-t)}function Yi(e){return e.setUTCHours(0,0,0,0),e}function Xi(e){return new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds())}function Zi(e,t=19){return e.toISOString().substring(0,t)}function Qi(e,...t){return t.every(t=>e.getTime()===t.getTime())}function $i(e,t){let n=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(n>=0?n:n+7)),e}function ea(e,t){let n=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(n<=0?n:n-7)),e}function ta(e){return typeof e==`string`&&e.length<=10}function na(e,t){return e.setUTCHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),0),e}function $(e){return e.seconds}function ra(e,t,n){return Gi(e,t),aa(e,n,qi),e}function ia(e,t,n){return Ki(e,t),aa(e,n,Ji),e}function aa(e,t,n){if(t.length&&t.length<7)for(;t.includes(e.getUTCDay());)n(e)}function oa(e,t){e=Q(e),t===0?e.setUTCDate(e.getUTCDate()+6-e.getUTCDay()):e.setUTCDate(e.getUTCDate()+4-(e.getUTCDay()||7));let n=new Date(Date.UTC(e.getUTCFullYear(),0,1));return Math.ceil(((e-n)/1e3/Hi+1)/7)}function sa(e,t,n){return t?Z(t)?t({date:Xi(n),week:e}):t:`W`+String(e).padStart(2,`0`)}function ca(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()))}function la(e){let 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)))}var ua=Ai();function da(e,t){e[ua]=t}function fa(e){return!!e?.[ua]}function pa(e){return e[ua]}function ma(e,t,n,r=[]){let i=document.createElement(e);i.className=t,typeof n==`string`?i.innerText=n:n.domNodes?i.replaceChildren(...n.domNodes):n.html&&(i.innerHTML=n.html);for(let e of r)i.setAttribute(...e);return i}function ha(e){return e.getBoundingClientRect()}function ga(e,t){for(;t--;)e=e.parentElement;return e}function _a(e){return ha(e).height}function va(e,t,n=document,r=[]){r.push(n);for(let i of n.elementsFromPoint(e,t)){if(fa(i))return i;if(i.shadowRoot&&!r.includes(i.shadowRoot)){let n=va(e,t,i.shadowRoot,r);if(n)return n}}return null}function ya(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function ba(e,t=void 0){return function(n){n.stopPropagation(),e&&e.call(t,n)}}function xa(e,t,n,r){return{type:e,title:t,currentStart:n.start,currentEnd:n.end,activeStart:r.start,activeEnd:r.end,calendar:void 0}}function Sa(e){return e=X({},e),e.currentStart=Xi(e.currentStart),e.currentEnd=Xi(e.currentEnd),e.activeStart=Xi(e.activeStart),e.activeEnd=Xi(e.activeEnd),e}var Ca=1;function wa(e){return e.map(e=>{let t={id:`id`in e?String(e.id):`{generated-${Ca++}}`,resourceIds:Ta(e,`resourceId`).map(String),allDay:e.allDay??(ta(e.start)&&ta(e.end)),start:Ui(e.start),end:Ui(e.end),title:e.title??``,editable:e.editable,startEditable:e.startEditable,durationEditable:e.durationEditable,display:e.display??`auto`,extendedProps:e.extendedProps??{},backgroundColor:e.backgroundColor??e.color,textColor:e.textColor,classNames:Ta(e,`className`),styles:Ta(e,`style`)};if(t.allDay){Yi(t.start);let e=Q(t.end);Yi(t.end),(!Qi(t.end,e)||Qi(t.end,t.start))&&qi(t.end)}return t})}function Ta(e,t){let n=e[t+`s`]??e[t]??[];return Ni(n)?n:[n]}function Ea(e){return e.map(e=>({events:e.events,url:e.url&&e.url.trimEnd(`&`)||``,method:e.method&&e.method.toUpperCase()||`GET`,extraParams:e.extraParams||{}}))}function Da(e,t,n,r,i,a){let o=i.formatRange(e.start,t&&e.event.display!==`pointer`&&!e.zeroDuration?na(Q(e.start),e.end):e.start),s;if(n&&(s=Z(n)?n({event:Aa(e.event),timeText:o,view:Sa(a)}):n),s===void 0){let t;switch(e.event.display){case`background`:t=[];break;case`pointer`:t=e.event.allDay?[]:[Oa(o,e,r)];break;default:t=[...e.event.allDay?[]:[Oa(o,e,r)],ma(`h4`,r.eventTitle,e.event.title)]}s={domNodes:t}}return[o,s]}function Oa(e,t,n){return ma(`time`,n.eventTime,e,[[`datetime`,Zi(t.start)]])}function ka(e,t,n){let r=t.classNames;return e&&(Z(e)&&(e=e({event:Aa(t),view:Sa(n)})),r=[...Ni(e)?e:[e],...r]),r}function Aa(e){return Ma(e,Xi)}function ja(e){return Ma(e,Q)}function Ma(e,t){return e=X({},e),e.start=t(e.start),e.end=t(e.end),e}function Na(e,t){e.length=t.length;for(let t of e)t?.reposition()}function Pa(e,t,n,r=void 0){return(!r||e.resourceIds.includes(r.id))&&e.start<n&&e.end>t}function Fa(e){return La(e)||Ra(e)||za(e)}function Ia(e){return e===`background`}function La(e){return e===`preview`}function Ra(e){return e===`ghost`}function za(e){return e===`pointer`}function Ba(e,t,n){return t=e.start>t?e.start:t,n=e.end<n?e.end:n,{start:t,end:n,event:e,zeroDuration:Qi(t,n)}}function Va(e,t,n=!0){let r=[],i,a,o,s;for(let{gridColumn:n,gridRow:c,resource:l,dayStart:u,dayEnd:d,disabled:f}of t)!f&&Pa(e,u,d,l)&&(r.push(u),i=d,a||(a=n,o=c,s=l));if(r.length){let t=Ba(e,r[0],i);return X(t,{gridColumn:a,gridRow:o,resource:s,dates:r}),n&&Ka(t),[t]}return[]}function Ha(e){let t={},n={};for(let r of e){let{gridColumn:e,gridRow:i}=r;for(let t=1;t<r.dates.length;++t){let a=`${i}_${e+t}`;n[a]?n[a].chunks.push(r):n[a]={sorted:!1,chunks:[r]}}let a=`${i}_${e}`;r.long=n[a],r.prev=t[a],t[a]=r}}function Ua(e,t,n=1){e.prev&&(n=e.prev.bottom+1);let r=n+t;if(e.long){let t=e.long;t.sorted||=(t.chunks.sort((e,t)=>e.top-t.top),!0);for(let e of t.chunks)if(n<e.bottom&&r>e.top){let t=e.bottom-n+1;n+=t,r+=t}}return X(e,{top:n,bottom:r}),n}var Wa=new WeakMap,Ga=1;function Ka(e){let{event:t,gridColumn:n,gridRow:r}=e,i=Wa.get(t);i||(i=Ga++,Wa.set(t,i)),e.id=`${i}-${n}-${r}`}function qa(e,t){return()=>{let{options:{locale:n}}=e,r=e.options[t],i;return H(()=>{i=Z(r)?{format:r}:new Intl.DateTimeFormat(n,r)}),{format:e=>i.format(Xi(e))}}}function Ja(e,t){return()=>{let{options:{locale:n}}=e,r=e.options[t],i;return H(()=>{if(Z(r))i=r;else{let e=new Intl.DateTimeFormat(n,r);i=(t,n)=>{if(t<=n)return e.formatRange(t,n);{let r=e.formatRangeToParts(n,t),i=``,a=[`startRange`,`endRange`],o=[!1,!1];for(let e of r){let t=a.indexOf(e.source);t>=0?o[t]||(i+=Ya(a[1-t],r),o[t]=!0):i+=e.value}return i}}}}),{formatRange:(e,t)=>i(Xi(e),Xi(t))}}}function Ya(e,t){let n=``;for(let r of t)r.source==e&&(n+=r.value);return n}function Xa(e){return eo(e,`day`)}function Za(e){return eo(e,`week`)}function Qa(e){return eo(e,`month`)}function $a(e){return eo(e,`year`)}function eo(e,t){return{...e,next:`Next `+t,prev:`Previous `+t}}function to(e){return t=>({...t,view:e})}function no(e){let t,n;return e&&({start:t,end:n}=e,t&&=Yi(Ui(t)),n&&=Yi(Ui(n))),{start:t,end:n}}function ro(e,t){return t.start&&e<t.start||t.end&&e>t.end}function io(e){let t=[];return ao(e,0,!1,t),t}function ao(e,t,n,r){let i=[];for(let a of e){let e=oo(a);i.push(e),r.push(e);let o={level:t,children:[],hidden:n};da(e,o),a.children&&(o.children=ao(a.children,t+1,n||!e.expanded,r))}return i}function oo(e){return{id:String(e.id),title:e.title||``,eventBackgroundColor:so(e),eventTextColor:co(e),expanded:e.expanded??!0,extendedProps:e.extendedProps??{}}}function so(e){return e?.eventBackgroundColor}function co(e){return e?.eventTextColor}function lo(e,t){return Mi(e.resourceIds)?void 0:t.find(t=>e.resourceIds.includes(t.id))}function uo(e,t,n,r,i){let a=[];e=Q(e);let o=Q(e);for(Gi(e,r.min),Gi(o,r.max);e<o;)a.push([Zi(e),i.format(e)]),Gi(e,t,n);let s=Ei((e-o)/1e3/$(t));return s&&s!==n&&(a.at(-1)[2]=n-s),a}function fo(e,t,n,r,i){let a=Wi(e),o=Wi(t);if(n){let e=Wi(Oi($(a),ki(0,$(o)-Hi))),t=Wi(ki($(o),$(e)+Hi)),s=Z(n?.eventFilter)?n.eventFilter:e=>!Ia(e.display);loop:for(let n of r){let r=Gi(Q(n),a),c=Gi(Q(n),o),l=Gi(Q(n),e),u=Gi(Q(n),t);for(let d of i)if(!d.allDay&&s(d)&&d.start<u&&d.end>l){if(d.start<r){let t=ki((d.start-n)/1e3,$(e));t<$(a)&&(a.seconds=t)}if(d.end>c){let e=Oi((d.end-n)/1e3,$(t));e>$(o)&&(o.seconds=e)}if($(a)===$(e)&&$(o)===$(t))break loop}}}return{min:a,max:o}}var po=class extends Map{#e=new Map;#t=N(0);#n=N(0);#r=nr||-1;constructor(e){if(super(),e){for(var[t,n]of e)super.set(t,n);this.#n.v=super.size}}#i(e){return nr===this.#r?N(e):qt(e)}has(e){var t=this.#e,n=t.get(e);if(n===void 0)if(super.has(e))n=this.#i(0),t.set(e,n);else return V(this.#t),!1;return V(n),!0}forEach(e,t){this.#a(),super.forEach(e,t)}get(e){var t=this.#e,n=t.get(e);if(n===void 0)if(super.has(e))n=this.#i(0),t.set(e,n);else{V(this.#t);return}return V(n),super.get(e)}set(e,t){var n=this.#e,r=n.get(e),i=super.get(e),a=super.set(e,t),o=this.#t;if(r===void 0)r=this.#i(0),n.set(e,r),P(this.#n,super.size),Zt(o);else if(i!==t){Zt(r);var s=o.reactions===null?null:new Set(o.reactions);(s===null||!r.reactions?.every(e=>s.has(e)))&&Zt(o)}return a}delete(e){var t=this.#e,n=t.get(e),r=super.delete(e);return n!==void 0&&(t.delete(e),P(n,-1)),r&&(P(this.#n,super.size),Zt(this.#t)),r}clear(){if(super.size!==0){super.clear();var e=this.#e;P(this.#n,0);for(var t of e.values())P(t,-1);Zt(this.#t),e.clear()}}#a(){V(this.#t);var e=this.#e;if(this.#n.v!==e.size){for(var t of super.keys())if(!e.has(t)){var n=this.#i(0);e.set(t,n)}}for([,n]of this.#e)V(n)}keys(){return V(this.#t),super.keys()}values(){return this.#a(),super.values()}entries(){return this.#a(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return V(this.#n),super.size}};function mo(e){let t=0,n=N($t(t));return go(e,()=>V(n),()=>!0,()=>P(n,++t,!0))}function ho(e){let t=0,n=$t({});return go(e,e=>n[e],(e,t)=>e!==t,e=>n[e]=++t)}function go(e,t,n,r){return new Proxy(e,{get(e,n,r){return Ti(e,n)&&t(n),Reflect.get(e,n,r)},set(e,t,i,a){let o=n(e[t],i),s=Reflect.set(e,t,i,a);return o&&r(t),s}})}function _o(e){let t={buttonText:{today:`today`},customButtons:{},customScrollbars:!1,date:new Date,dateIncrement:void 0,datesSet:void 0,dayCellContent: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`],weekNumber:`ec-week-number`},titleFormat:{year:`numeric`,month:`short`,day:`numeric`},validRange:void 0,view:void 0,viewDidMount:void 0,views:{}};for(let n of e)n.createOptions?.(t);return t}function vo(e){let t={date:e=>Yi(Ui(e)),dateIncrement:Vi(Wi),duration:Wi,events:wa,eventSources:Ea,hiddenDays:e=>[...new Set(e)],highlightedDates:e=>e.map(e=>Yi(Ui(e))),resources:e=>Ni(e)?io(e):e,validRange:no};for(let n of e)n.createParsers?.(t);return t}var yo=[`buttonText`,`customButtons`,`icons`,`theme`];function bo(e,t){let n=_o(e),r=vo(e);n=xo(n,r),t=xo(t,r);let i=So(n,`views`)??{},a=So(t,`views`)??{},o=ho({});X(o,n),t.view&&(o.view=t.view);let s={},c={},l={},u=new Set([...Ci(i),...Ci(a)]);for(let e of u){let r=a[e]??{},u=Co(n,i[e]??i[r.type]??{}),d=Co(u,t,r),f=So(d,`component`);delete d.view;for(let e of Ci(d))Ti(o,e)?(s[e]||(s[e]=[]),s[e].push(yo.includes(e)?t=>d[e]=Z(t)?t(u[e]):t:t=>d[e]=t)):delete d[e];c[e]=d,l[e]=f}return X(o,c[o.view]),[o,function(e,t,n=!0){Ti(o,e)&&(n||(e in r?t=r[e](t):Pi(t)?t={...t}:Ni(t)&&(t=[...t])),s[e]?.forEach(e=>e(t)),o[e]=t)},function(e){return X(o,c[e]),l[e]}]}function xo(e,t){let n={...e};for(let e of Ci(t))e in n&&(n[e]=t[e](n[e]));if(e.views){n.views={};for(let r of Ci(e.views))n.views[r]=xo(e.views[r],t)}return n}function So(e,t){let n=e[t];return delete e[t],n}function Co(...e){let t={};for(let n of e){let e={};for(let r of yo)Z(n[r])&&(e[r]=n[r](t[r]));t={...t,...n,...e}}return t}function wo(e,t){let n=[];for(let r of Ci(e))e[r]!==t[r]&&n.push([r,e[r]]);return n}function To(e){return()=>{let{options:{view:t}}=e;H(()=>{let n=e.setViewOptions(t);e.extensions={},e.features=[],e.viewComponent=n(e)})}}function Eo(e,t){return()=>{let{activeRange:n,fetchedRange:{events:r},viewDates:i,options:{events:a,eventSources:o,lazyFetching:s}}=e;H(()=>{Oo(o.map(e=>Z(e.events)?e.events:e),a,wa,t=>e.events=mo(t),n,r,i,!0,s,t)})}}function Do(e,t){return()=>{let{activeRange:n,fetchedRange:{resources:r},viewDates:i,options:{lazyFetching:a,refetchResourcesOnNavigate:o,resources:s}}=e;H(()=>{Oo(Ni(s)?[]:[s],s,io,t=>e.resources=mo(t),n,r,i,o,a,t)})}}function Oo(e,t,n,r,i,a,o,s,c,l){if(!Mi(o)){if(Mi(e)){r(t);return}if((s||!a.start)&&(!c||!a.start||a.start>i.start||a.end<i.end)){let t=[],o=e=>l.stop(),c=e=>{t=t.concat(n(e)),r(t),l.stop()},u=Zi(i.start),d=Zi(i.end);for(let t of e)if(l.start(),Z(t)){let e=t(s?{start:Xi(i.start),end:Xi(i.end),startStr:u,endStr:d}:{},c,o);e!==void 0&&Promise.resolve(e).then(c,o)}else{let e=Z(t.extraParams)?t.extraParams():X({},t.extraParams);s&&(e.start=u,e.end=d),e=new URLSearchParams(e);let n=t.url,r={},i;[`GET`,`HEAD`].includes(t.method)?n+=(n.includes(`?`)?`&`:`?`)+e:(r[`content-type`]=`application/x-www-form-urlencoded;charset=UTF-8`,i=String(e)),fetch(n,{method:t.method,headers:r,body:i,signal:hi(),credentials:`same-origin`}).then(e=>e.json()).then(c).catch(o)}X(a,i)}}}function ko(e){let t=0;function n(t){let{options:{loading:n}}=e;Z(n)&&n(t)}return{start:()=>++t===1&&n(!0),stop:()=>--t===0&&n(!1)}}function Ao(e){return()=>{let t=setInterval(()=>{let t=Ui(),n=Yi(Q(t));e.now=t,Qi(e.today,n)||(e.today=n)},1e3);return()=>clearInterval(t)}}function jo(e){return()=>{let{activeRange:t,options:{datesSet:n}}=e;H(()=>{Z(n)&&n({start:Xi(t.start),end:Xi(t.end),startStr:Zi(t.start),endStr:Zi(t.end),view:Sa(e.view)})})}}function Mo(e){let t;return()=>{let{filteredEvents:n,options:{eventAllUpdated:r}}=e;H(()=>{Z(r)&&(t||=setTimeout(()=>{t=null,r({view:Sa(e.view)})}))})}}function No(e){return()=>{let{options:{view:t,viewDidMount:n}}=e;H(()=>{Z(n)&&dr().then(()=>n({view:Sa(e.view)}))})}}function Po(e){return()=>{let{options:{date:t,duration:n,firstDay:r}}=e,i,a;return H(()=>{i=Q(t),n.years?(i.setUTCMonth(0),i.setUTCDate(1)):n.months?i.setUTCDate(1):n.inWeeks&&ea(i,r),a=Gi(Q(i),n)}),{start:i,end:a}}}function Fo(e){return()=>{let{currentRange:t,extensions:{activeRange:n}}=e,r,i;return H(()=>{r=Q(t.start),i=Q(t.end)}),n?n(r,i):{start:r,end:i}}}function Io(e){return()=>{let{events:t,options:{eventFilter:n,eventOrder:r,filterEventsWithResources:i,resources:a,view:o}}=e,s=[...t];return H(()=>{if(Z(n)){let r=t.map(Aa),i=Sa(e.view);s=s.filter((e,t)=>n({event:Aa(e),index:t,events:r,view:i}))}i&&(s=s.filter(e=>a.some(t=>e.resourceIds.includes(t.id)))),Z(r)?s.sort((e,t)=>r(Aa(e),Aa(t))):s.sort((e,t)=>e.start-t.start||t.allDay-e.allDay)}),s}}function Lo(e){return()=>{let{options:t,activeRange:n}=e,{hiddenDays:r}=t,i=[];return H(()=>{let t=Yi(Q(n.start)),a=Yi(Q(n.end));for(;t<a;)r.includes(t.getUTCDay())||i.push(Q(t)),qi(t);if(!i.length&&r.length&&r.length<7){for(;r.includes(t.getUTCDay());)qi(t);dr().then(()=>{e.setOption(`date`,t)})}}),i}}function Ro(e){return()=>{let{currentRange:t,intlTitle:n}=e,r;return H(()=>{r=n.formatRange(t.start,Ji(Q(t.end)))}),r}}function zo(e){return()=>{let{activeRange:t,currentRange:n,viewTitle:r,options:{view:i}}=e,a;return H(()=>{a=xa(i,r,n,t)}),a}}var Bo=class{#e;get auxComponents(){return V(this.#e)}set auxComponents(e){P(this.#e,e,!0)}#t;get currentRange(){return V(this.#t)}set currentRange(e){P(this.#t,e)}#n;get activeRange(){return V(this.#n)}set activeRange(e){P(this.#n,e)}#r;get fetchedRange(){return V(this.#r)}set fetchedRange(e){P(this.#r,e,!0)}#i;get events(){return V(this.#i)}set events(e){P(this.#i,e)}#a;get filteredEvents(){return V(this.#a)}set filteredEvents(e){P(this.#a,e)}#o;get mainEl(){return V(this.#o)}set mainEl(e){P(this.#o,e,!0)}#s;get now(){return V(this.#s)}set now(e){P(this.#s,e,!0)}#c;get resources(){return V(this.#c)}set resources(e){P(this.#c,e)}#l;get today(){return V(this.#l)}set today(e){P(this.#l,e,!0)}#u;get intlEventTime(){return V(this.#u)}set intlEventTime(e){P(this.#u,e)}#d;get intlDayHeader(){return V(this.#d)}set intlDayHeader(e){P(this.#d,e)}#f;get intlDayHeaderAL(){return V(this.#f)}set intlDayHeaderAL(e){P(this.#f,e)}#p;get intlTitle(){return V(this.#p)}set intlTitle(e){P(this.#p,e)}#m;get viewDates(){return V(this.#m)}set viewDates(e){P(this.#m,e)}#h;get viewTitle(){return V(this.#h)}set viewTitle(e){P(this.#h,e)}#g;get view(){return V(this.#g)}set view(e){P(this.#g,e)}#_;get viewComponent(){return V(this.#_)}set viewComponent(e){P(this.#_,e,!0)}#v;get extensions(){return V(this.#v)}set extensions(e){P(this.#v,e,!0)}#y;get features(){return V(this.#y)}set features(e){P(this.#y,e,!0)}#b;get interaction(){return V(this.#b)}set interaction(e){P(this.#b,e,!0)}#x;get iClasses(){return V(this.#x)}set iClasses(e){P(this.#x,e,!0)}#S;get iClass(){return V(this.#S)}set iClass(e){P(this.#S,e,!0)}options;setOption;setViewOptions;constructor(e,t){[this.options,this.setOption,this.setViewOptions]=bo(e,t),this.#e=N($t([])),this.#t=M(Po(this)),this.#n=M(Fo(this)),this.#r=N($t({events:{},resources:{}})),this.#i=N(mo(this.options.events)),this.#a=M(Io(this)),this.#o=N(),this.#s=N($t(Ui())),this.#c=N(mo(Ni(this.options.resources)?this.options.resources:[])),this.#l=N($t(Yi(Q(this.now)))),this.#u=M(Ja(this,`eventTimeFormat`)),this.#d=M(qa(this,`dayHeaderFormat`)),this.#f=M(qa(this,`dayHeaderAriaLabelFormat`)),this.#p=M(Ja(this,`titleFormat`)),this.#m=M(Lo(this)),this.#h=M(Ro(this)),this.#g=M(zo(this)),this.#_=N(),this.#v=N($t({})),this.#y=N($t([])),this.#b=N($t({})),this.iEvents=new po,this.#x=N($t(zi)),this.#S=N();for(let t of e)t.initState?.(this);this.#C()}#C(){let e=ko(this);Sn(To(this)),Sn(Ao(this)),bn(Eo(this,e)),bn(Do(this,e)),bn(jo(this)),bn(Mo(this)),bn(No(this))}},Vo=U(`<h2></h2>`),Ho=U(`<button><i></i></button>`),Uo=U(`<button><i></i></button>`),Wo=U(`<button> </button>`),Go=U(`<button></button>`),Ko=U(`<button> </button>`);function qo(e,t){A(t,!0);let n=k(`state`),r=M(()=>n.currentRange),i=M(()=>n.today),a=M(()=>n.viewTitle),o=M(()=>n.viewDates),s=M(()=>n.options.buttonText),c=M(()=>n.options.customButtons),l=M(()=>n.options.date),u=M(()=>n.options.dateIncrement),d=M(()=>n.options.duration),f=M(()=>n.options.hiddenDays),p=M(()=>n.options.theme),m=M(()=>n.options.validRange),h=M(()=>n.options.view),g=N(!1),_=N(!1),v=N(!1),y=!1;Sn(()=>{V(o),V(m),t.buttons,H(()=>{y||(y=!0,t.buttons.includes(`prev`)&&(P(g,!1),V(m).start&&P(g,b(x),!0)),t.buttons.includes(`next`)&&(P(_,!1),V(m).end&&P(_,b(S),!0)),t.buttons.includes(`today`)&&(P(v,V(i)>=V(r).start&&V(i)<V(r).end,!0),!V(v)&&(V(m).start||V(m).end)&&P(v,b(ee),!0)),dr().then(()=>y=!1))})});function b(e){let t=V(l);e();let r=V(o).every(e=>ro(e,V(m)));return n.setOption(`date`,t),r}function x(){n.setOption(`date`,ia(Q(V(l)),V(u)??V(d),V(f)))}function S(){n.setOption(`date`,ra(Q(V(l)),V(u)??V(d),V(f)))}function ee(){n.setOption(`date`,Q(V(i)))}var C=W();J(I(C),17,()=>t.buttons,q,(e,t)=>{var r=W(),i=I(r),o=e=>{var t=Vo();Kr(t,()=>yi(V(a))),R(()=>Y(t,1,V(p).title)),G(e,t)},l=e=>{var n=Ho(),r=F(n);O(n),R(()=>{Y(n,1,`${V(p).button??``} ec-${V(t)??``}`),oi(n,`aria-label`,V(s).prev),oi(n,`title`,V(s).prev),n.disabled=V(g),Y(r,1,`${V(p).icon??``} ec-${V(t)??``}`)}),xr(`click`,n,x),G(e,n)},u=e=>{var n=Uo(),r=F(n);O(n),R(()=>{Y(n,1,`${V(p).button??``} ec-${V(t)??``}`),oi(n,`aria-label`,V(s).next),oi(n,`title`,V(s).next),n.disabled=V(_),Y(r,1,`${V(p).icon??``} ec-${V(t)??``}`)}),xr(`click`,n,S),G(e,n)},d=e=>{var n=Wo(),r=F(n,!0);O(n),R(()=>{Y(n,1,`${V(p).button??``} ec-${V(t)??``}`),n.disabled=V(v),kr(r,V(s)[V(t)])}),xr(`click`,n,ee),G(e,n)},f=e=>{var n=Go();Kr(n,()=>yi(V(c)[V(t)].text)),R(()=>Y(n,1,Yr([V(p).button,`ec-${V(t)}`,V(c)[V(t)].active&&V(p).active]))),xr(`click`,n,function(...e){V(c)[V(t)].click?.apply(this,e)}),G(e,n)},m=e=>{var r=Ko(),i=F(r,!0);O(r),R(()=>{Y(r,1,Yr([V(p).button,`ec-${V(t)}`,V(h)===V(t)&&V(p).active])),kr(i,V(s)[V(t)])}),xr(`click`,r,()=>n.setOption(`view`,V(t))),G(e,r)};K(i,e=>{V(t)===`title`?e(o):V(t)===`prev`?e(l,1):V(t)===`next`?e(u,2):V(t)===`today`?e(d,3):V(c)[V(t)]?e(f,4):V(t)!==``&&e(m,5)}),G(e,r)}),G(e,C),j()}Sr([`click`]);var Jo=U(`<div><!></div>`),Yo=U(`<div></div>`),Xo=U(`<nav></nav>`);function Zo(e,t){A(t,!0);let n=M(()=>k(`state`)),r=M(()=>V(n).options.headerToolbar),i=M(()=>V(n).options.theme),a=M(()=>{let e={};for(let t of[`start`,`center`,`end`])e[t]=V(r)[t]?.split(` `).map(e=>e.split(`,`))??[];return e});var o=Xo();J(o,21,()=>Ci(V(a)),q,(e,t)=>{var n=Yo();J(n,21,()=>V(a)[V(t)],q,(e,t)=>{var n=W(),r=I(n),a=e=>{var n=Jo();qo(F(n),{get buttons(){return V(t)}}),O(n),R(()=>Y(n,1,V(i).buttonGroup)),G(e,n)},o=e=>{qo(e,{get buttons(){return V(t)}})};K(r,e=>{V(t).length>1?e(a):e(o,-1)}),G(e,n)}),O(n),R(()=>Y(n,1,`ec-${V(t)??``}`)),G(e,n)}),O(o),R(()=>Y(o,1,V(i).toolbar)),G(e,o),j()}var Qo=U(`<div><!> <!> <!></div>`);function $o(e,t){A(t,!0);let n=mi(t,`plugins`,19,()=>[]),r=mi(t,`options`,19,()=>({})),i=new Bo(n(),r());Ue(`state`,i);let a=M(()=>i.auxComponents),o=M(()=>i.features),s=M(()=>i.events),c=M(()=>i.interaction),l=M(()=>i.iClass),u=M(()=>i.view),d=M(()=>i.viewComponent),f=M(()=>i.options.date),p=M(()=>i.options.dateIncrement),m=M(()=>i.options.duration),h=M(()=>i.options.height),g=M(()=>i.options.hiddenDays),_=M(()=>i.options.customScrollbars),v=M(()=>i.options.theme),y={...r()};Sn(()=>{for(let[e,t]of wo(r(),y))H(()=>{b(e,t)});X(y,r())});function b(e,t){return i.setOption(e,t,!1),this}function x(e){let t=i.options[e];return Fi(t)?Xi(t):t}function S(){return i.fetchedRange.resources={},this}function ee(){return i.fetchedRange.events={},this}function C(){return V(s).map(Aa)}function te(e){e=String(e);for(let t of V(s))if(t.id===e)return Aa(t);return null}function ne(e){return e=wa([e])[0],V(s).push(e),Aa(e)}function re(e){let t=String(e.id),n=V(s).findIndex(e=>e.id===t);return n>=0?(e=wa([e])[0],V(s)[n]=e,Aa(e)):null}function ie(e){e=String(e);let t=V(s).findIndex(t=>t.id===e);return t>=0&&V(s).splice(t,1),this}function ae(){return Sa(V(u))}function oe(){return V(c).action?.unselect(),this}function se(e,t){let n=va(e,t);if(n){let r=pa(n)(e,t);return r.date=Xi(r.date),r}return null}function ce(){return i.setOption(`date`,ra(Q(V(f)),V(p)??V(m),V(g))),this}function le(){return i.setOption(`date`,ia(Q(V(f)),V(p)??V(m),V(g))),this}var ue={setOption:b,getOption:x,refetchResources:S,refetchEvents:ee,getEvents:C,getEventById:te,addEvent:ne,updateEvent:re,removeEventById:ie,getView:ae,unselect:oe,dateFromPoint:se,next:ce,prev:le},w=Qo();let T;var de=F(w);Zo(de,{});var fe=L(de,2);return Gr(fe,()=>V(d),(e,t)=>{t(e,{})}),J(L(fe,2),17,()=>V(a),q,(e,t)=>{var n=W();Gr(I(n),()=>V(t),(e,t)=>{t(e,{})}),G(e,n)}),O(w),R(e=>{Y(w,1,Yr([V(v).calendar,V(v).view,V(l)&&V(v)[V(l)],V(_)&&V(v).customScrollbars])),oi(w,`role`,e),T=ni(w,``,T,{height:V(h)})},[()=>V(o).includes(`list`)?`list`:`table`]),G(e,w),j(ue)}function es(e){return()=>{let{viewDates:t,options:{duration:n,hiddenDays:r}}=e,i;return H(()=>i=n.months||n.inWeeks?7-r.length:t.length),i}}function ts(e,t){return()=>{let{options:{highlightedDates:n,validRange:r},viewDates:i}=e,{colsCount:a}=t,o=[];return H(()=>{let e=[],t=1,s=1;for(let c of i)e.push({gridColumn:t,gridRow:s,resource:void 0,dayStart:c,dayEnd:qi(Q(c)),disabled:ro(c,r),highlight:n.some(e=>Qi(e,c))}),t===a&&(o.push(e),e=[],t=0,++s),++t}),o}}function ns(e,t){return()=>{let{filteredEvents:n}=e,{grid:r}=t,i=[],a=[];return H(()=>{for(let e of n)for(let t of r)Ia(e.display)?e.allDay&&(a=a.concat(Va(e,t))):i=i.concat(Va(e,t));Ha(i)}),{chunks:i,bgChunks:a}}}function rs(e,t){return()=>{let{iEvents:n}=e,{grid:r}=t,i=[];for(let[,e]of n)e&&H(()=>{for(let t of r)i=i.concat(Va(e,t,!1))});return i}}var is=class{#e;get colsCount(){return V(this.#e)}set colsCount(e){P(this.#e,e)}#t;get grid(){return V(this.#t)}set grid(e){P(this.#t,e)}#n;get gridEl(){return V(this.#n)}set gridEl(e){P(this.#n,e,!0)}#r;get chunks(){return V(this.#r)}set chunks(e){P(this.#r,e)}#i;get bgChunks(){return V(this.#i)}set bgChunks(e){P(this.#i,e)}#a;get iChunks(){return V(this.#a)}set iChunks(e){P(this.#a,e)}#o;get intlDayCell(){return V(this.#o)}set intlDayCell(e){P(this.#o,e)}#s;get intlDayPopover(){return V(this.#s)}set intlDayPopover(e){P(this.#s,e)}#c;get popupDay(){return V(this.#c)}set popupDay(e){P(this.#c,e,!0)}constructor(e){this.#e=M(es(e)),this.#t=M(ts(e,this)),this.#n=N();let t=M(ns(e,this)),n=M(()=>V(t).chunks),r=M(()=>V(t).bgChunks);this.#r=M(()=>V(n)),this.#i=M(()=>V(r)),this.#a=M(rs(e,this)),this.hiddenChunks=new po,this.#o=M(qa(e,`dayCellFormat`)),this.#s=M(qa(e,`dayPopoverFormat`)),this.#c=N(null)}},as=U(`<div><!></div>`);function os(e,t){A(t,!0);let n=mi(t,`el`,15),r=mi(t,`allDay`,3,!1),i=mi(t,`resource`,3,void 0),a=mi(t,`dateFromPoint`,3,()=>t.date),o=mi(t,`classes`,3,zi),s=mi(t,`disabled`,3,!1),c=mi(t,`highlight`,3,!1),l=mi(t,`role`,3,`cell`),u=mi(t,`noIeb`,3,!1),d=mi(t,`noBeb`,3,!1),p=M(()=>k(`state`)),m=M(()=>V(p).today),h=M(()=>V(p).interaction.action),g=M(()=>V(p).options.dayCellContent),_=M(()=>V(p).options.theme),v=M(()=>k(`view-state`)),y=M(()=>V(v).snap),b=M(()=>Qi(t.date,V(m))),x=M(()=>Z(V(g))?V(g)({allDay:r(),date:Xi(t.date),isToday:V(b),resource:i()}):V(g)),S=M(()=>o()([V(_).day,V(_).weekdays?.[t.date.getUTCDay()],V(b)&&V(_).today,c()&&V(_).highlight,s()&&V(_).disabled,u()&&V(_).noIeb,d()&&V(_).noBeb]));gi(()=>{da(n(),(e,t)=>({allDay:r(),date:a()(e,t),resource:i(),dayEl:n(),disabled:s()}))});let ee=M(()=>!s()&&V(h)?e=>V(h).select(e,V(y)):void 0);var C=as();Wr(F(C),()=>t.content??f,()=>V(x)),O(C),pi(C,e=>n(e),()=>n()),Kr(C,()=>t.content?null:yi(V(x))),R(()=>{Y(C,1,Yr(V(S))),oi(C,`role`,l())}),xr(`pointerdown`,C,function(...e){V(ee)?.apply(this,e)}),G(e,C),j()}Sr([`pointerdown`]);var ss=U(`<div></div>`),cs=U(`<article><!></article>`);function ls(e,t){A(t,!0);let n=mi(t,`el`,15),r=mi(t,`classes`,3,zi),i=mi(t,`styles`,3,zi),a=M(()=>k(`state`)),o=M(()=>V(a).intlEventTime),s=M(()=>V(a).resources),c=M(()=>V(a).view),l=M(()=>V(a).options.displayEventEnd),u=M(()=>V(a).options.eventBackgroundColor),d=M(()=>V(a).options.eventColor),f=M(()=>V(a).options.eventContent),p=M(()=>V(a).options.eventClick),m=M(()=>V(a).options.eventDidMount),g=M(()=>V(a).options.eventClassNames),_=M(()=>V(a).options.eventMouseEnter),v=M(()=>V(a).options.eventMouseLeave),y=M(()=>V(a).options.eventTextColor),b=M(()=>V(a).options.theme),x=M(()=>t.chunk.event),S=M(()=>t.chunk.event.display),ee=M(()=>V(x).backgroundColor??so(t.chunk.resource??lo(V(x),V(s)))??V(u)??V(d)),C=M(()=>V(x).textColor??co(t.chunk.resource??lo(V(x),V(s)))??V(y)),te=M(()=>wi(i()({"background-color":V(ee),color:V(C)})).map(e=>`${e[0]}:${e[1]}`).concat(V(x).styles).join(`;`)),ne=M(()=>r()([Ia(V(S))?V(b).bgEvent:V(b).event,...ka(V(g),V(x),V(c))])),re=M(()=>Da(t.chunk,V(l),V(f),V(b),V(o),V(c))),ie=M(()=>h(V(re),2)),ae=M(()=>V(ie)[0]),oe=M(()=>V(ie)[1]);gi(()=>{Z(V(m))&&V(m)({event:Aa(V(x)),timeText:V(ae),el:n(),view:Sa(V(c))})});function se(e,t){return Z(e)&&!Fa(t)?t=>e({event:Aa(V(x)),el:n(),jsEvent:t,view:Sa(V(c))}):void 0}let ce=M(()=>!Ia(V(S))&&se(V(p),V(S))||void 0),le=M(()=>V(ce)&&vi(V(ce))),ue=M(()=>se(V(_),V(S))),w=M(()=>se(V(v),V(S)));var T=cs();{let e=e=>{var t=ss();Kr(t,()=>yi(V(oe))),R(()=>Y(t,1,Yr(V(b).eventBody))),G(e,t)};var de=F(T),fe=n=>{var r=W();Wr(I(r),()=>t.body,()=>e,()=>V(ee),()=>V(C)),G(n,r)},pe=t=>{e(t)};K(de,e=>{t.body?e(fe):e(pe,-1)}),O(T),pi(T,e=>n(e),()=>n())}R(()=>{Y(T,1,Yr(V(ne))),ni(T,V(te)),oi(T,`role`,V(ce)?`button`:void 0),oi(T,`tabindex`,V(ce)?0:void 0)}),xr(`click`,T,function(...e){V(ce)?.apply(this,e)}),xr(`keydown`,T,function(...e){V(le)?.apply(this,e)}),br(`mouseenter`,T,function(...e){V(ue)?.apply(this,e)}),br(`mouseleave`,T,function(...e){V(w)?.apply(this,e)}),xr(`pointerdown`,T,function(...e){t.onpointerdown?.apply(this,e)}),G(e,T),j()}Sr([`click`,`keydown`,`pointerdown`]);var us=U(`<div><!></div>`);function ds(e,t){A(t,!0);let n=mi(t,`weekday`,3,!0),r=mi(t,`colSpan`,3,1),i=mi(t,`ariaHidden`,3,!1),a=mi(t,`disabled`,3,!1),o=mi(t,`highlight`,3,!1),s=mi(t,`cssSpan`,3,!1),c=M(()=>k(`state`)),l=M(()=>V(c).today),u=M(()=>V(c).options.theme);var d=us();let f;Wr(F(d),()=>t.children),O(d),R(e=>{Y(d,1,e),oi(d,`role`,i()?null:`columnheader`),oi(d,`aria-colspan`,i()||r()<=1?null:r()),oi(d,`aria-colindex`,i()?null:t.colIndex),oi(d,`aria-hidden`,i()?`true`:null),f=ni(d,``,f,{"--ec-col-group-span":s()?r():void 0})},[()=>Yr([t.className??V(u).colHead,n()&&V(u).weekdays?.[t.date.getUTCDay()],n()&&Qi(t.date,V(l))&&V(u).today,o()&&V(u).highlight,a()&&V(u).disabled])]),G(e,d),j()}var fs=U(`<time></time>`);function ps(e,t){A(t,!0);let n=mi(t,`alPrefix`,3,``),r=M(()=>k(`state`)),i=M(()=>V(r).intlDayHeader),a=M(()=>V(r).intlDayHeaderAL);var o=fs();Kr(o,()=>yi(V(i).format(t.date))),R((e,t)=>{oi(o,`datetime`,e),oi(o,`aria-label`,`${n()??``}${t??``}`)},[()=>Zi(t.date,10),()=>V(a).format(t.date)]),G(e,o),j()}function ms(e,t){A(t,!0);let n=mi(t,`el`,15),r=M(()=>k(`state`)),i=M(()=>V(r).iClasses),a=M(()=>V(r).interaction.action),o=M(()=>V(r).interaction.resizer),s=M(()=>k(`view-state`)),c=M(()=>V(s).snap),l=M(()=>t.chunk.event),u=M(()=>t.chunk.event.display),d=M(()=>e=>V(i)(e,V(l)));function p(e){return V(a)?.draggable(e)?n=>V(a).drag(e,n,t.forceDate,t.forceMargin,V(c)):V(a)?.noAction}let m=M(()=>!Ia(V(u))&&!Fa(V(u))?p(V(l)):void 0);ls(e,{get chunk(){return t.chunk},get classes(){return V(d)},get styles(){return t.styles},get onpointerdown(){return V(m)},get el(){return n()},set el(e){n(e)},body:(e,n=f)=>{var r=W(),i=I(r),a=e=>{var r=W();Gr(I(r),()=>V(o),(e,r)=>{r(e,{get chunk(){return t.chunk},get axis(){return t.axis},get forceDate(){return t.forceDate},get forceMargin(){return t.forceMargin},children:(e,t)=>{var r=W();Wr(I(r),n),G(e,r)},$$slots:{default:!0}})}),G(e,r)},s=e=>{var t=W();Wr(I(t),n),G(e,t)};K(i,e=>{V(o)?e(a):e(s,-1)}),G(e,r)},$$slots:{body:!0}}),j()}var hs=U(`<span></span>`),gs=U(`<a role="button" tabindex="0" aria-haspopup="dialog"></a>`),_s=U(`<div><time></time> <!></div> <div><!></div>`,1);function vs(e,t){A(t,!0);let n=k(`state`),r=k(`view-state`),i=M(()=>n.options.date),a=M(()=>n.options.firstDay),o=M(()=>n.options.moreLinkContent),s=M(()=>n.options.theme),c=M(()=>n.options.weekNumbers),l=M(()=>n.options.weekNumberContent),u=M(()=>r.hiddenChunks),d=M(()=>r.intlDayCell),p=M(()=>t.day.dayStart),m=M(()=>t.day.disabled),h=M(()=>t.day.highlight),g=M(()=>V(p).getUTCMonth()!==V(i).getUTCMonth()),_=M(()=>e=>[...e,V(g)&&V(s).otherMonth]),v=M(()=>V(c)&&V(p).getUTCDay()===(V(a)?1:0)),y=M(()=>V(v)?sa(oa(V(p),V(a)),V(l),V(p)):void 0),b=M(()=>V(u).get(V(p).getTime())),x=M(()=>{let e=``;if(V(b)){let t=`+`+V(b).length+` more`;e=V(o)?Z(V(o))?V(o)({num:V(b).length,text:t}):V(o):t}return e});function S(){r.popupDay=t.day}os(e,{get date(){return V(p)},allDay:!0,get classes(){return V(_)},get disabled(){return V(m)},get highlight(){return V(h)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},content:(e,t=f)=>{var n=_s(),r=I(n),i=F(r);Kr(i,()=>yi(t()??V(d).format(V(p))));var a=L(i,2),o=e=>{var t=hs();Kr(t,()=>yi(V(y))),R(()=>Y(t,1,V(s).weekNumber)),G(e,t)};K(a,e=>{V(v)&&e(o)}),O(r);var c=L(r,2),l=F(c),u=e=>{var t=gs(),n=M(()=>ba(S)),r=M(()=>vi(S)),i=M(ba);Kr(t,()=>yi(V(x))),xr(`click`,t,function(...e){V(n)?.apply(this,e)}),xr(`keydown`,t,function(...e){V(r)?.apply(this,e)}),xr(`pointerdown`,t,function(...e){V(i)?.apply(this,e)}),G(e,t)};K(l,e=>{V(b)&&e(u)}),O(c),R(e=>{Y(r,1,V(s).dayHead),oi(i,`datetime`,e),Y(c,1,V(s).dayFoot)},[()=>Zi(V(p),10)]),G(e,n)},$$slots:{content:!0}}),j()}Sr([`click`,`keydown`,`pointerdown`]);function ys(e,t){A(t,!0);let n=mi(t,`inPopup`,3,!1),r=M(()=>k(`state`)),i=M(()=>V(r).options.dayMaxEvents),a=M(()=>k(`view-state`)),o=M(()=>V(a).colsCount),s=M(()=>V(a).gridEl),c=M(()=>V(a).hiddenChunks),l=M(()=>V(a).popupDay),u=N(void 0),d=N(1),f=N(!1),p=M(()=>t.chunk.event),m=M(()=>t.chunk.event.display),h=M(()=>V(s).children.item((t.chunk.gridRow-1)*V(o)+t.chunk.gridColumn-1));bn(()=>{n()||P(d,_a(V(h).firstElementChild)||1,!0)});let g=M(()=>e=>{if(e[`grid-column`]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,e[`grid-row`]=t.chunk.gridRow,!Ia(V(m))){let r=n()?1:V(d);if(V(p)._margin){let[e,n]=V(p)._margin;e>r&&t.chunk.gridRow===n&&(r=e)}e[`margin-block-start`]=`${r}px`}return V(f)&&(e.visibility=`hidden`),e});function _(){P(d,Ua(t.chunk,_a(V(u)),_a(V(h).firstElementChild)||1),!0)}function v(){if(V(i)===!0){let e=_a(V(h))-y(V(h));if(P(f,t.chunk.bottom>e),V(f))for(let e of t.chunk.dates){let n=e.getTime();if(V(c).has(n)){let e=V(c).get(n);e.includes(t.chunk)||V(c).set(n,[...e,t.chunk])}else V(c).set(n,[t.chunk])}}else P(f,!1),V(c).size&&V(c).clear()}function y(e){let n=0;for(let r=0;r<t.chunk.dates.length&&(n=ki(n,_a(e.lastElementChild)),e=e.nextElementSibling,e);++r);return n}var b={reposition:_,hide:v};{let r=M(()=>n()&&V(l).dayStart),i=M(()=>[V(d),t.chunk.gridRow]);ms(e,{get chunk(){return t.chunk},get styles(){return V(g)},axis:`x`,get forceDate(){return V(r)},get forceMargin(){return V(i)},get el(){return V(u)},set el(e){P(u,e,!0)}})}return j(b)}var bs=U(`<dialog closedby="closerequest"><header><time></time> <a role="button" tabindex="0">×</a></header> <div></div></dialog>`);function xs(e,t){A(t,!0);let n=k(`view-state`),r=M(()=>k(`state`)),i=M(()=>V(r).interaction),a=M(()=>V(r).options.buttonText),o=M(()=>V(r).options.theme),s=M(()=>n.colsCount),c=M(()=>n.chunks),l=M(()=>n.gridEl),u=M(()=>n.intlDayPopover),d=M(()=>n.popupDay),f=N(void 0),p=N(``),m=M(()=>V(d).gridColumn),h=M(()=>V(d).gridRow),g=M(()=>V(d).dayStart),_=M(()=>V(d).dayEnd),v=M(()=>{let e=[];for(let t of V(c))t.gridRow===V(h)&&t.gridColumn<=V(m)&&t.gridColumn+t.dates.length>V(m)&&e.push(X({},t,Ba(t.event,V(g),V(_))));return e.sort((e,t)=>e.top-t.top),e});gi(()=>{V(f).show()}),bn(()=>{V(v).length?H(y):b()});function y(){let e=V(l).children.item((V(h)-1)*V(s)+V(m)-1),t=ha(V(f)),n=ha(e),r=ha(V(l));P(p,``);let i;if(t.width>=r.width){i=r.left-n.left;let e=n.right-r.right;P(p,V(p)+`inset-inline-end:${e}px;`)}else i=(n.width-t.width)/2,n.left+i<r.left?i=r.left-n.left:n.left+i+t.width>r.right&&(i=r.right-n.left-t.width);P(p,V(p)+`inset-inline-start:${i}px;`);let a;t.height>=r.height?(a=r.top-n.top,P(p,V(p)+`block-size:${r.height}px;`)):(a=(n.height-t.height)/2,n.top+a<r.top?a=r.top-n.top:n.top+a+t.height>r.bottom&&(a=r.bottom-n.top-t.height)),P(p,V(p)+`inset-block-start:${a}px;`)}function b(){n.popupDay=null}function x(){b(),V(i).action?.noClick()}var S=bs();let ee;var C=F(S),te=F(C);Kr(te,()=>yi(V(u).format(V(g))));var ne=L(te,2);pn(ne,!0);var re=M(()=>ba(b)),ie=M(()=>vi(b));O(C);var ae=L(C,2);J(ae,21,()=>V(v),q,(e,t)=>{ys(e,{get chunk(){return V(t)},inPopup:!0})}),O(ae),O(S),pi(S,e=>P(f,e),()=>V(f)),Kr(S,()=>bi(`pointerdown`)),R(e=>{Y(S,1,V(o).popup),ee=ni(S,V(p),ee,{"grid-area":`${V(h)+1} / ${V(m)}`}),Y(C,1,V(o).dayHead),oi(te,`datetime`,e),oi(ne,`aria-label`,V(a).close),Y(ae,1,V(o).events)},[()=>Zi(V(g),10)]),br(`pointerdownoutside`,S,x),br(`close`,S,b),xr(`click`,ne,function(...e){V(re)?.apply(this,e)}),xr(`keydown`,ne,function(...e){V(ie)?.apply(this,e)}),G(e,S),j()}Sr([`click`,`keydown`]);var Ss=U(`<div role="columnheader"><span></span></div>`),Cs=U(`<section><header><div role="row"></div></header> <div><div></div> <div><!> <!> <!></div></div> <!></section>`);function ws(e,t){A(t,!0);let n=k(`state`),r=new is(n);Ue(`view-state`,r);let i=M(()=>n.intlDayHeader),a=M(()=>n.intlDayHeaderAL),o=M(()=>n.options.dayMaxEvents),s=M(()=>n.options.theme),c=M(()=>r.grid),l=M(()=>r.chunks),u=M(()=>r.bgChunks),d=M(()=>r.iChunks),f=M(()=>r.hiddenChunks),p=M(()=>r.popupDay),m=[];function h(){Na(m,V(l)),V(f).clear(),dr().then(g)}function g(){V(f).size,m.forEach(e=>e?.hide())}bn(h),bn(g);var _=W(),v=I(_),y=e=>{var t=Cs();let f;var g=F(t),_=F(g);J(_,21,()=>V(c)[0],q,(e,t,n)=>{let r=()=>V(t).dayStart;var o=Ss();oi(o,`aria-colindex`,1+n);var c=F(o);Kr(c,()=>yi(V(i).format(r()))),O(o),R((e,t)=>{Y(o,1,e),oi(c,`aria-label`,t)},[()=>Yr([V(s).colHead,V(s).weekdays?.[r().getUTCDay()]]),()=>V(a).format(r())]),G(e,o)}),O(_),O(g);var v=L(g,2),y=F(v);J(y,21,()=>V(c),q,(e,t,n)=>{var r=W();J(I(r),17,()=>V(t),q,(e,r,i)=>{{let a=M(()=>i+1===ji(V(t))),o=M(()=>n+1===ji(V(c)));vs(e,{get day(){return V(r)},get noIeb(){return V(a)},get noBeb(){return V(o)}})}}),G(e,r)}),O(y),pi(y,e=>r.gridEl=e,()=>r?.gridEl);var b=L(y,2),x=F(b);J(x,19,()=>V(l),e=>e.id,(e,t,n)=>{pi(ys(e,{get chunk(){return V(t)}}),(e,t)=>m[t]=e,e=>m?.[e],()=>[V(n)])});var S=L(x,2);J(S,17,()=>V(u),e=>e.id,(e,t)=>{ys(e,{get chunk(){return V(t)}})}),J(L(S,2),17,()=>V(d),q,(e,t)=>{ys(e,{get chunk(){return V(t)}})}),O(b),O(v);var ee=L(v,2),C=e=>{xs(e,{})};K(ee,e=>{V(p)&&e(C)}),O(t),pi(t,e=>n.mainEl=e,()=>n?.mainEl),Kr(t,()=>xi(h)),R(e=>{Y(t,1,Yr([V(s).main,V(o)===!0&&V(s).uniform])),f=ni(t,``,f,e),Y(g,1,V(s).header),Y(_,1,V(s).grid),Y(v,1,V(s).body),Y(y,1,V(s).grid),Y(b,1,V(s).events)},[()=>({"--ec-grid-cols":ji(V(c)[0]),"--ec-grid-rows":ji(V(c))})]),G(e,t)},b=M(()=>!Mi(V(c))&&!Mi(V(c)[0]));K(v,e=>{V(b)&&e(y)}),G(e,_),j()}var Ts={createOptions(e){X(e,{dayMaxEvents:!1,dayCellFormat:{day:`numeric`},dayPopoverFormat:{month:`long`,day:`numeric`,year:`numeric`},moreLinkContent:void 0,weekNumbers:!1,weekNumberContent:void 0,view:`dayGridMonth`}),X(e.buttonText,{dayGridDay:`day`,dayGridMonth:`month`,dayGridWeek:`week`,close:`Close`}),X(e.theme,{uniform:`ec-uniform`,dayFoot:`ec-day-foot`,otherMonth:`ec-other-month`,popup:`ec-popup`}),X(e.views,{dayGridDay:{buttonText:Xa,component:()=>ws,dayHeaderFormat:{weekday:`long`},displayEventEnd:!1,duration:{days:1},theme:to(`ec-day-grid ec-day-view`)},dayGridWeek:{buttonText:Za,component:()=>ws,displayEventEnd:!1,theme:to(`ec-day-grid ec-week-view`)},dayGridMonth:{buttonText:Qa,component:Es,dayHeaderFormat:{weekday:`short`},dayHeaderAriaLabelFormat:{weekday:`long`},displayEventEnd:!1,duration:{months:1},theme:to(`ec-day-grid ec-month-view`),titleFormat:{year:`numeric`,month:`long`}}})}};function Es(e){return e.features=[`dayNumber`],e.extensions.activeRange=(t,n)=>{let{options:{firstDay:r}}=e;return{start:ea(t,r),end:$i(n,r)}},ws}function Ds(e,t,n){return e.startEditable??t??e.editable??n}function Os(e,t,n){return e.durationEditable??t??e.editable??n}var ks=!1;function As(e){ks||(ks=!0,window.requestAnimationFrame(()=>{e(),ks=!1}))}function js(e,t,n){return ki(t,Oi(n,e))}function Ms(e){return()=>{let{options:{editable:t,eventStartEditable:n,theme:r}}=e;e.iClasses=(e,i)=>{let{display:a}=i;return[...e,Fa(a)?[r[a]]:!Ia(a)&&Ds(i,n,t)?[r.draggable]:[]]}}}function Ns(e){return()=>{let{interaction:t,mainEl:n}=e;if(n)return ya(n,`scroll`,()=>{t.action.handleScroll(),t.pointer?.handleScroll()})}}var Ps=class{constructor(e){this.#e(e)}#e(e){Sn(Ms(e)),bn(Ns(e))}};function Fs(e,t){A(t,!0);let n=k(`state`),r=M(()=>n.events),i=M(()=>n.iEvents),a=M(()=>n.features),o=M(()=>n.view),s=M(()=>n.mainEl),c=M(()=>n.options.dateClick),l=M(()=>n.options.dragConstraint),u=M(()=>n.options.dragScroll),d=M(()=>n.options.editable),f=M(()=>n.options.eventStartEditable),p=M(()=>n.options.eventDragMinDistance),m=M(()=>n.options.eventDragStart),h=M(()=>n.options.eventDragStop),g=M(()=>n.options.eventDrop),_=M(()=>n.options.eventLongPressDelay),v=M(()=>n.options.eventResizeStart),y=M(()=>n.options.eventResizeStop),b=M(()=>n.options.eventResize),x=M(()=>n.options.longPressDelay),S=M(()=>n.options.resizeConstraint),ee=M(()=>n.options.selectable),C=M(()=>n.options.select),te=M(()=>n.options.selectBackgroundColor),ne=M(()=>n.options.selectConstraint),re=M(()=>n.options.selectLongPressDelay),ie=M(()=>n.options.selectMinDistance),ae=M(()=>n.options.unselect),oe=M(()=>n.options.unselectAuto),se=M(()=>n.options.unselectCancel),ce=M(()=>n.options.validRange),le,ue,w,T,de,fe,pe,me,he,ge,_e,ve,ye,be,xe,Se,Ce,we,Te,Ee,De,Oe,ke,E,Ae,D,je;function Me(e){return Ds(e,V(f),V(d))}function O(e,t,n,r,i){le||(le=at(t)?1:6,it()&&(w=e,Ie(t,i),n&&(fe=n),r&&(Ae=r),we=`dragging`,Le(t)))}function Ne(e,t,n,r,i,a,o,s){le||(le=at(t)?n?3:2:6,it()&&(w=e,Ie(t,s),i&&(fe=i),a&&(Ae=a),we=r===`x`?`resizingX`:`resizingY`,tt()?(Te=Q(w.end),Ce?(na(Te,w.start),Te>=w.end&&Ji(Te)):(Ki(Te,D),Te<w.start&&(Te=w.start),fe=w.start)):(Te=Q(w.start),Ce?(na(Te,w.end),Te<=w.start&&!o&&qi(Te)):(Gi(Te,D),Te>w.end&&(Te=w.end),fe=w.end,o||(fe=Ki(Q(fe),D))),o&&!Ce&&(je=D)),Le(t)))}function Pe(e,t){le||(le=at(e)?V(ee)&&!V(a).includes(`list`)?4:5:6,it()&&(Ie(e,t),we=`selecting`,Ee=Ce?Wi({day:1}):D,w={allDay:Ce,start:fe,end:Gi(Q(fe),Ee),resourceIds:me?[me.id]:[]},Le(e)))}function Fe(){le||=6}function Ie(e,t){window.getSelection().removeAllRanges(),ge=ve=e.clientX,_e=ye=e.clientY,D=t?.duration;let n=va(ve,ye);({allDay:Ce,date:fe,resource:me}=pa(n)(ve,ye)),xe=V(s)!==ga(n,3),be=ga(n,1),We(),e.pointerType!==`mouse`&&(ke=setTimeout(()=>{le&&(ue=!0,Le(e))},(rt()?V(re):V(_))??V(x)))}function Le(e){if(ue||e&&e.pointerType===`mouse`&&$e()>=(rt()?V(ie):V(p))){ue=!0,ot(e),n.iClass=we,T||(rt()?Ke():Ge(e,et()?V(v):V(m)));let t=Ue(He());if(t){let n;if({allDay:n,date:pe,resource:he}=t,n===Ce){let t=Je({},T),n=V(S);Se=Wi((pe-fe)/1e3),tt()?(t.start=Gi(Q(w.start),Se),t.start>Te&&(t.start=Te,Se=Wi((Te-w.start)/1e3))):(t.end=Gi(Q(w.end),Se),je&&Gi(t.end,je),et()?t.end<Te&&(t.end=Te,Se=Wi((Te-w.end)/1e3)):rt()?(t.end<w.end?(t.start=Ki(t.end,Ee),t.end=w.end):t.start=w.start,n=V(ne)):(t.start=Gi(Q(w.start),Se),me&&(t.resourceIds=w.resourceIds.filter(e=>e!==me.id),t.resourceIds.push(he.id)),n=V(l)));do{if(n!==void 0&&(t=Je(ja(w),t),n(rt()?Ze(t,e):Qe(t,w,e))===!1)){Xe(w);break}Xe(t)}while(0)}}}V(u)&&As(()=>{E&&(xe||(ye<E.top+24&&(V(s).scrollTop+=ki(-8,(ye-E.top-24)/3)),ye>E.bottom-24&&(V(s).scrollTop+=Oi(8,(ye-E.bottom+24)/3))),ve<E.left+24&&(V(s).scrollLeft+=ki(-8,(ve-E.left-24)/3)),ve>E.right-24&&(V(s).scrollLeft+=Oi(8,(ve-E.right+24)/3)),ye<24&&window.scrollBy(0,ki(-8,(ye-24)/3)),ye>window.innerHeight-24&&window.scrollBy(0,Oi(8,(ye-window.innerHeight+24)/3)))})}function Re(){it()&&(We(),Le())}function ze(e){it()&&e.isPrimary&&(ve=e.clientX,ye=e.clientY,Le(e))}function Be(e){if(De&&V(oe)&&!(V(se)&&e.target.closest(V(se)))&&ot(e),le&&e.isPrimary){if(ue)if(rt()){if(De=!0,Z(V(C))){let t=Ze(T,e);V(C)(t)}}else{w.display=de;let t=et()?V(y):V(h);Z(t)&&t({event:Aa(w),jsEvent:e,view:Sa(V(o))});let n=ja(w);if(Ye(w,T),qe(),t=et()?V(b):V(g),Z(t)){let r=w,i=Qe(w,n,e);t(X(i,{revert(){Ye(r,n)}}))}}else if((nt()||rt())&&Z(V(c))&&!Oe){ve=e.clientX,ye=e.clientY;let t=va(ve,ye);if(t){let{allDay:n,date:r,resource:i}=pa(t)(ve,ye);V(c)({allDay:n,date:Xi(r),dateStr:Zi(r),dayEl:t,jsEvent:e,view:Sa(V(o)),resource:i})}}Ve()}Oe=!1}function Ve(){ue=!1,le=ge=_e=ve=ye=w=de=fe=pe=me=he=Se=je=Ce=Te=Ee=Ae=be=E=D=void 0,n.iClass=void 0,ke&&=(clearTimeout(ke),void 0)}function He(){return va(js(ve,E.left,E.right),js(ye,E.top,E.bottom))}function Ue(e){if(e){let t=pa(e)(ve,ye);if(t.disabled){if(!V(ce).end||t.date<V(ce).end)return Ue(e.nextElementSibling);if(!V(ce).start||t.date>V(ce).start)return Ue(e.previousElementSibling)}else return(rt()||et())&&t.resource&&!T.resourceIds.includes(t.resource.id)&&!V(a).includes(`timeline`)?Ue(ve>ge?e.previousElementSibling:e.nextElementSibling):t}return null}function We(){let e=ha(V(s)),t=ha(be),n=e.width/V(s).offsetWidth,r=e.height/V(s).offsetHeight,i=Bi();E={left:ki(0,i?e.right-V(s).clientWidth*n:t.left+V(s).scrollLeft*n),right:Oi(document.documentElement.clientWidth,i?t.right+V(s).scrollLeft*n:e.left+V(s).clientWidth*n)-2,top:ki(0,t.top+(xe?0:V(s).scrollTop)*r),bottom:Oi(document.documentElement.clientHeight,xe?t.bottom:e.top+V(s).clientHeight*r)-2}}function Ge(e,t){Z(t)&&t({event:Aa(w),jsEvent:e,view:Sa(V(o))}),de=w.display,w.display=`preview`,T=ja(w),Ae!==void 0&&(T._margin=Ae),je&&Gi(T.end,je),w.display=`ghost`,V(r).length=V(r).length}function Ke(){T={id:`{select}`,allDay:w.allDay,start:w.start,title:``,display:`preview`,extendedProps:{},backgroundColor:V(te),resourceIds:w.resourceIds,classNames:[],styles:[]}}function qe(){T=void 0,V(i).delete(`action`)}function Je(e,t){return e.start=t.start,e.end=t.end,e.resourceIds=t.resourceIds,{...e}}function Ye(e,t){Je(e,t),V(r).length=V(r).length}function Xe(e){T=Je(T,e),V(i).set(`action`,T)}function Ze(e,t){let{start:n,end:r}=Aa(e);return{start:n,end:r,startStr:Zi(e.start),endStr:Zi(e.end),allDay:Ce,view:Sa(V(o)),resource:me,jsEvent:t}}function Qe(e,t,n){let r;return r=et()?tt()?{startDelta:Se,endDelta:Wi(0)}:{startDelta:Wi(0),endDelta:Se}:{delta:Se,oldResource:me===he?void 0:me,newResource:me===he?void 0:he},X(r,{event:Aa(e),oldEvent:Aa(t),view:Sa(V(o)),jsEvent:n}),r}function $e(){return Math.sqrt((ve-ge)**2+(ye-_e)**2)}function et(){return le===2||tt()}function tt(){return le===3}function nt(){return le===5}function rt(){return le===4}function it(){return le&&le<5}function at(e){return e.isPrimary&&(e.pointerType!==`mouse`||e.buttons&1)}function ot(e){De&&(De=!1,qe(),Z(V(ae))&&V(ae)({jsEvent:e,view:Sa(V(o))}))}Sn(()=>{V(o),ot()});function st(){Oe=!0}function ct(e){if(it()){let t=e.target,n=[],r=()=>Li(n);n.push(ya(t,`touchmove`,lt(()=>ue))),n.push(ya(t,`touchend`,r)),n.push(ya(t,`touchcancel`,r))}}function lt(e){return t=>{e()&&t.preventDefault()}}gi(()=>ya(window,`touchmove`,Ri,{passive:!1}));var ut={draggable:Me,drag:O,resize:Ne,select:Pe,noAction:Fe,handleScroll:Re,unselect:ot,noClick:st};br(`pointermove`,en,ze),br(`pointerup`,en,Be),br(`pointercancel`,en,Ve),br(`scroll`,en,Re);var dt=M(()=>lt(it));br(`selectstart`,en,function(...e){V(dt)?.apply(this,e)});var ft=M(()=>lt(()=>ke));return br(`contextmenu`,en,function(...e){V(ft)?.apply(this,e)}),br(`touchstart`,en,ct,void 0,!0),j(ut)}function Is(e,t){A(t,!0);let n=M(()=>k(`state`)),r=M(()=>V(n).iEvents),i=M(()=>V(n).options.slotDuration),a=0,o=0,s;function c(){let e=va(a,o);if(e&&!V(r).has(`action`)){let{allDay:t,date:n,resource:c,disabled:l}=pa(e)(a,o);if(!l){s||d(),s.allDay=t,s.start=n,s.end=Gi(Q(n),V(i)),s.resourceIds=c?[c.id]:[],V(r).set(`pointer`,{...s});return}}f()}function l(){c()}function u(e){p(e)&&(a=e.clientX,o=e.clientY,c())}function d(){s={id:`{pointer}`,title:``,display:`pointer`,extendedProps:{},backgroundColor:`transparent`,classNames:[],styles:[]}}function f(){s=void 0,V(r).delete(`pointer`)}function p(e){return e.isPrimary&&e.pointerType===`mouse`}var m={handleScroll:l};return br(`pointermove`,en,u),br(`scroll`,en,l),j(m)}var Ls=U(`<div></div>`),Rs=U(`<div></div>`),zs=U(`<!> <!> <!>`,1);function Bs(e,t){A(t,!0);let n=mi(t,`forceDate`,3,void 0),r=mi(t,`forceMargin`,3,void 0),i=M(()=>k(`state`)),a=M(()=>V(i).interaction.action),o=M(()=>V(i).options.editable),s=M(()=>V(i).options.eventDurationEditable),c=M(()=>V(i).options.eventResizableFromStart),l=M(()=>V(i).options.theme),u=M(()=>k(`view-state`)),d=M(()=>V(u).snap),f=M(()=>t.chunk.event),p=M(()=>t.chunk.event.display),m=M(()=>!Ia(V(p))&&!Fa(V(p))&&Os(V(f),V(s),V(o)));function h(e){return i=>V(a).resize(V(f),i,e,t.axis,n(),r(),t.chunk.zeroDuration,V(d))}var g=zs(),_=I(g),v=e=>{var t=Ls(),n=M(()=>h(!0));R(()=>Y(t,1,`${V(l).resizer??``} ${V(l).start??``}`)),xr(`pointerdown`,t,function(...e){V(n)?.apply(this,e)}),G(e,t)};K(_,e=>{V(m)&&V(c)&&e(v)});var y=L(_,2);Wr(y,()=>t.children);var b=L(y,2),x=e=>{var t=Rs(),n=M(()=>h(!1));R(()=>Y(t,1,V(l).resizer)),xr(`pointerdown`,t,function(...e){V(n)?.apply(this,e)}),G(e,t)};K(b,e=>{V(m)&&e(x)}),G(e,g),j()}Sr([`pointerdown`]);var Vs=U(`<!> <!>`,1);function Hs(e,t){A(t,!0);let n=k(`state`);new Ps(n);let r=M(()=>n.interaction),i=M(()=>n.options.pointer);V(r).resizer=Bs;var a=Vs(),o=I(a);pi(Fs(o,{}),e=>V(r).action=e,()=>V(r)?.action);var s=L(o,2),c=e=>{pi(Is(e,{}),e=>V(r).pointer=e,()=>V(r)?.pointer)};K(s,e=>{V(i)&&e(c)}),G(e,a),j()}var Us={createOptions(e){X(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:``}),X(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(Hs)}},Ws=class{#e;get intlListDay(){return V(this.#e)}set intlListDay(e){P(this.#e,e)}#t;get intlListDaySide(){return V(this.#t)}set intlListDaySide(e){P(this.#t,e)}constructor(e){this.#e=M(qa(e,`listDayFormat`)),this.#t=M(qa(e,`listDaySideFormat`))}},Gs=U(`<div></div> <!>`,1);function Ks(e,t){A(t,!0);let n=M(()=>k(`state`)),r=M(()=>V(n).interaction),i=M(()=>V(n).options.theme),a=M(()=>e=>(delete e[`background-color`],delete e.color,e));{let n=(e,t=f,n=f,r=f)=>{var a=Gs(),o=I(a);let s;Wr(L(o,2),t),R(()=>{Y(o,1,V(i).eventTag),s=ni(o,``,s,{"background-color":n()})}),G(e,a)},o=M(()=>V(r).action?.noAction);ls(e,{get chunk(){return t.chunk},get styles(){return V(a)},get onpointerdown(){return V(o)},body:n,$$slots:{body:!0}})}j()}var qs=U(`<h4><time></time> <time></time></h4> <!>`,1);function Js(e,t){A(t,!0);let n=M(()=>k(`state`)),r=M(()=>V(n).filteredEvents),i=M(()=>V(n).options.highlightedDates),a=M(()=>V(n).options.theme),o=M(()=>V(n).options.validRange),s=M(()=>k(`view-state`)),c=M(()=>V(s).intlListDay),l=M(()=>V(s).intlListDaySide),u=M(()=>V(i).some(e=>Qi(e,t.date))),d=M(()=>ro(t.date,V(o))),p=M(()=>Zi(t.date,10)),m=M(()=>{let e=[];if(!V(d)){let n=t.date,i=qi(Q(t.date));for(let t of V(r))if(!Ia(t.display)&&Pa(t,n,i)){let r=Ba(t,n,i);e.push(r)}}return e});var h=W(),g=I(h),_=e=>{os(e,{get date(){return t.date},allDay:!0,role:`listitem`,get disabled(){return V(d)},get highlight(){return V(u)},content:(e,n=f)=>{var r=qs(),i=I(r),o=F(i);Kr(o,()=>yi(n()??V(c).format(t.date)));var s=L(o,2);Kr(s,()=>yi(V(l).format(t.date))),O(i),J(L(i,2),17,()=>V(m),e=>e.event,(e,t)=>{Ks(e,{get chunk(){return V(t)}})}),R(()=>{Y(i,1,V(a).dayHead),oi(o,`datetime`,V(p)),Y(s,1,V(a).daySide),oi(s,`datetime`,V(p))}),G(e,r)},$$slots:{content:!0}})};K(g,e=>{V(m).length&&e(_)}),G(e,h),j()}var Ys=U(`<div></div>`),Xs=U(`<section><!></section>`);function Zs(e,t){A(t,!0);let n=k(`state`);Ue(`view-state`,new Ws(n));let r=M(()=>n.filteredEvents),i=M(()=>n.view),a=M(()=>n.viewDates),o=M(()=>n.options.noEventsClick),s=M(()=>n.options.noEventsContent),c=M(()=>n.options.theme),l=M(()=>{let e=!0;if(!Mi(V(a))){let t=V(a)[0],n=qi(Q(V(a).at(-1)));for(let i of V(r))if(!Ia(i.display)&&i.start<n&&i.end>t){e=!1;break}}return e}),u=M(()=>Z(V(s))?V(s)():V(s));function d(e){Z(V(o))&&V(o)({jsEvent:e,view:Sa(V(i))})}var f=Xs(),p=F(f),m=e=>{var t=Ys();Kr(t,()=>yi(V(u))),R(()=>Y(t,1,V(c).noEvents)),xr(`click`,t,d),G(e,t)},h=e=>{var t=W();J(I(t),17,()=>V(a),q,(e,t)=>{Js(e,{get date(){return V(t)}})}),G(e,t)};K(p,e=>{V(l)?e(m):e(h,-1)}),O(f),pi(f,e=>n.mainEl=e,()=>n?.mainEl),R(()=>Y(f,1,V(c).main)),G(e,f),j()}Sr([`click`]);var Qs={createOptions(e){X(e,{listDayFormat:{weekday:`long`},listDaySideFormat:{year:`numeric`,month:`long`,day:`numeric`},noEventsClick:void 0,noEventsContent:`No events`,view:`listWeek`}),X(e.buttonText,{listDay:`day`,listWeek:`week`,listMonth:`month`,listYear:`year`}),X(e.theme,{daySide:`ec-day-side`,eventTag:`ec-event-tag`,noEvents:`ec-no-events`}),X(e.views,{listDay:{buttonText:Xa,component:$s,duration:{days:1},theme:to(`ec-list ec-day-view`),titleFormat:{year:`numeric`,month:`long`,day:`numeric`}},listWeek:{buttonText:Za,component:$s,duration:{weeks:1},theme:to(`ec-list ec-week-view`)},listMonth:{buttonText:Qa,component:$s,duration:{months:1},theme:to(`ec-list ec-month-view`),titleFormat:{year:`numeric`,month:`long`}},listYear:{buttonText:$a,component:$s,duration:{years:1},theme:to(`ec-list ec-year-view`),titleFormat:{year:`numeric`}}})}};function $s(e){return e.features=[`list`],Zs}function ec(e,t,n=!0){let r=[];for(let{gridColumn:i,gridRow:a,resource:o,start:s,end:c,disabled:l}of t)if(!l&&Pa(e,s,c,o)){let t=Ba(e,s,c);X(t,{gridColumn:i,gridRow:a,resource:o,top:(t.start-s)/1e3,height:(t.end-t.start)/1e3,maxHeight:(c-t.start)/1e3}),n&&Ka(t),r.push(t)}return r}function tc(e){let t={};for(let n of e){let{gridColumn:e}=n,r=t[e],i=0;if(r&&n.start<r.end){for(;i<r.columns.length&&!(r.columns[i].at(-1).end<=n.start);++i);n.end>r.end&&(r.end=n.end)}else r={columns:[],end:n.end};r.columns.length<i+1&&r.columns.push([]),r.columns[i].push(n),t[e]=r,n.group=r,n.groupColumn=i}}function nc(e){let t=`all-day`,n;return e?(n=Z(e)?e({text:t}):e,typeof n==`string`&&(n={html:n})):n={html:t},n}function rc(e){e.extensions.activeRange=(t,n)=>{let{options:{slotMaxTime:r}}=e;if(r.days||r.seconds>86400){Gi(Ji(n),r);let e=Ji(Q(n));e<t&&(t=e)}return{start:t,end:n}}}function ic(e){`scrollTime`in e||(X(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}),X(e.theme,{nowIndicator:`ec-now-indicator`,sidebar:`ec-sidebar`,slot:`ec-slot`}))}function ac(e){`allDaySlot`in e||(X(e,{allDayContent:void 0,allDaySlot:!0,slotEventOverlap:!0}),X(e.theme,{allDay:`ec-all-day`}))}function oc(e){`scrollTime`in e||X(e,{scrollTime:Wi,slotDuration:Wi,slotLabelInterval:Vi(Wi),slotMaxTime:Wi,slotMinTime:Wi,snapDuration:Vi(Wi)})}function sc(e){`resourceLabelContent`in e||(e.filterResourcesWithEvents=!1,e.resourceLabelContent=void 0,e.resourceLabelDidMount=void 0)}function cc(e,t){return()=>{let{viewDates:n,options:{highlightedDates:r,validRange:i}}=e,{slotTimeLimits:a}=t,o=[];return H(()=>{let e=1;for(let t of n)o.push({gridColumn:e,gridRow:1,resource:void 0,start:Gi(Q(t),a.min),end:Gi(Q(t),a.max),dayStart:t,dayEnd:qi(Q(t)),disabled:ro(t,i),highlight:r.some(e=>Qi(e,t))}),++e}),[o]}}function lc(e,t){return()=>{let{filteredEvents:n}=e,{grid:r}=t,i=[],a=[],o=[],s=[];return H(()=>{for(let e of n)for(let t of r)Ia(e.display)?(a=a.concat(ec(e,t)),e.allDay&&(s=s.concat(Va(e,t)))):e.allDay?o=o.concat(Va(e,t)):i=i.concat(ec(e,t));tc(i),Ha(o)}),{chunks:i,bgChunks:a,allDayChunks:o,allDayBgChunks:s}}}function uc(e,t){return()=>{let{iEvents:n}=e,{grid:r}=t,i=[],a=[];for(let[,e]of n)e&&H(()=>{for(let t of r)e.allDay?a=a.concat(Va(e,t,!1)):i=i.concat(ec(e,t,!1))});return{iChunks:i,allDayIChunks:a}}}function dc(e){return()=>{let{filteredEvents:t,viewDates:n,options:{flexibleSlotTimeLimits:r,slotMinTime:i,slotMaxTime:a}}=e,o;return H(()=>{o=fo(i,a,r,n,t)}),o}}function fc(e){return()=>{let{options:{slotDuration:t,slotLabelInterval:n}}=e,r;return H(()=>{r=n===void 0?$(t)<3600?2:1:Di($(n)/$(t))||1}),r}}function pc(e,t){return()=>{let{options:{slotDuration:n}}=e,{intlSlotLabel:r,slotLabelPeriodicity:i,slotTimeLimits:a}=t,o;return H(()=>{o=uo(Yi(Ui()),n,i,a,r)}),o}}function mc(e){return()=>{let{options:{slotDuration:t,snapDuration:n}}=e;return n??=t,{duration:n,ratio:$(n)/$(t)}}}function hc(){return class{#e;get intlSlotLabel(){return V(this.#e)}set intlSlotLabel(e){P(this.#e,e)}#t;get slotLabelPeriodicity(){return V(this.#t)}set slotLabelPeriodicity(e){P(this.#t,e)}#n;get sidebarWidth(){return V(this.#n)}set sidebarWidth(e){P(this.#n,e,!0)}#r;get snap(){return V(this.#r)}set snap(e){P(this.#r,e)}constructor(e){this.#e=M(qa(e,`slotLabelFormat`)),this.#t=M(fc(e)),this.#n=N(0),this.#r=M(mc(e))}}}function gc(e){return class extends e{#e;get slotTimeLimits(){return V(this.#e)}set slotTimeLimits(e){P(this.#e,e)}#t;get slots(){return V(this.#t)}set slots(e){P(this.#t,e)}#n;get chunks(){return V(this.#n)}set chunks(e){P(this.#n,e)}#r;get bgChunks(){return V(this.#r)}set bgChunks(e){P(this.#r,e)}#i;get allDayChunks(){return V(this.#i)}set allDayChunks(e){P(this.#i,e)}#a;get allDayBgChunks(){return V(this.#a)}set allDayBgChunks(e){P(this.#a,e)}#o;get iChunks(){return V(this.#o)}set iChunks(e){P(this.#o,e)}#s;get allDayIChunks(){return V(this.#s)}set allDayIChunks(e){P(this.#s,e)}constructor(e){super(e),this.#e=M(dc(e)),this.#t=M(pc(e,this));let t=M(lc(e,this)),n=M(()=>V(t).chunks),r=M(()=>V(t).bgChunks),i=M(()=>V(t).allDayChunks),a=M(()=>V(t).allDayBgChunks);this.#n=M(()=>V(n)),this.#r=M(()=>V(r)),this.#i=M(()=>V(i)),this.#a=M(()=>V(a));let o=M(uc(e,this)),s=M(()=>V(o).iChunks),c=M(()=>V(o).allDayIChunks);this.#o=M(()=>V(s)),this.#s=M(()=>V(c))}}}var _c=class extends gc(hc()){#e;get grid(){return V(this.#e)}set grid(e){P(this.#e,e)}constructor(e){super(e),this.#e=M(cc(e,this))}};function vc(e){return()=>{let{activeRange:t,filteredEvents:n,resources:r,options:{filterResourcesWithEvents:i},extensions:{viewResources:a}}=e,o=a?a(r):r;return H(()=>{i&&(o=r.filter(e=>n.some(n=>!Ia(n.display)&&Pa(n,t.start,t.end,e)))),o.length||(o=io([{}]))}),o}}function yc(e,t){return()=>{let{viewDates:n,options:{datesAboveResources:r,highlightedDates:i,validRange:a}}=e,{slotTimeLimits:o,viewResources:s}=t,c=[];return H(()=>{let e=1,t=r?[n,s]:[s,n];for(let n of t[0]){let s=[];for(let c of t[1]){let t=r?n:c,l=r?c:n;s.push({gridColumn:e,gridRow:1,resource:l,start:Gi(Q(t),o.min),end:Gi(Q(t),o.max),dayStart:t,dayEnd:qi(Q(t)),disabled:ro(t,a),highlight:i.some(e=>Qi(e,t))}),++e}c.push(s)}}),c}}function bc(e){return class extends e{#e;get viewResources(){return V(this.#e)}set viewResources(e){P(this.#e,e)}constructor(e){super(e),this.#e=M(vc(e))}}}var xc=class extends bc(gc(hc())){#e;get grid(){return V(this.#e)}set grid(e){P(this.#e,e)}constructor(e){super(e),this.#e=M(yc(e,this))}},Sc=U(`<span></span>`);function Cc(e,t){A(t,!0);let n=mi(t,`date`,3,void 0),r=mi(t,`setLabel`,3,void 0),i=M(()=>k(`state`)),a=M(()=>V(i).intlDayHeaderAL),o=M(()=>V(i).options.resourceLabelContent),s=M(()=>V(i).options.resourceLabelDidMount),c=N(void 0),l=M(()=>V(o)?Z(V(o))?V(o)({resource:t.resource,date:n()?Xi(n()):void 0}):V(o):t.resource.title),u=N(void 0);bn(()=>{V(l),H(()=>{n()?P(u,V(a).format(n())+`, `+V(c).innerText):r()&&(P(u,void 0),r()(V(c).innerText))})}),gi(()=>{Z(V(s))&&V(s)({resource:t.resource,date:n()?Xi(n()):void 0,el:V(c)})});var d=Sc();pi(d,e=>P(c,e),()=>V(c)),Kr(d,()=>yi(V(l))),R(()=>oi(d,`aria-label`,V(u))),G(e,d),j()}function wc(e,t){A(t,!0);let n=mi(t,`allDay`,3,!1),r=M(()=>k(`state`)),i=M(()=>V(r).options.slotHeight),a=M(()=>k(`view-state`)),o=M(()=>V(a).snap),s=M(()=>t.day.dayStart),c=M(()=>t.day.start),l=M(()=>t.day.resource),u=M(()=>t.day.disabled),d=M(()=>t.day.highlight),f=N(void 0);function p(e,t){if(n())return V(s);{let e=ha(V(f)),n=e.height/V(f).offsetHeight;return Gi(Q(V(c)),V(o).duration,Ei((t-e.top)/(V(i)*V(o).ratio*n)))}}os(e,{get date(){return V(s)},get allDay(){return n()},get resource(){return V(l)},dateFromPoint:p,get disabled(){return V(u)},get highlight(){return V(d)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return V(f)},set el(e){P(f,e,!0)}}),j()}function Tc(e,t){A(t,!0);let n=M(()=>k(`state`)),r=M(()=>V(n).options.slotEventOverlap),i=M(()=>V(n).options.slotDuration),a=M(()=>V(n).options.slotHeight),o=M(()=>e=>{let n=$(V(i)),o=t.chunk.top/n*V(a),s=t.chunk.height/n*V(a)||V(a),c=t.chunk.maxHeight/n*V(a);e[`grid-column`]=t.chunk.gridColumn,e[`inset-block-start`]=`${o}px`,e[`min-block-size`]=`${s}px`,e[`block-size`]=`${s}px`,e[`max-block-size`]=`${c}px`;let l=`100% - var(--ec-event-col-gap)`;if(t.chunk.group){let n=t.chunk.group.columns.length;e[`z-index`]=`${t.chunk.groupColumn+1}`,e[`inset-inline-start`]=`calc((${l}) / ${n} * ${t.chunk.groupColumn})`,e[`inline-size`]=`calc((${l}) / ${n} * ${V(r)?.5*(1+n-t.chunk.groupColumn):1})`}return e});ms(e,{get chunk(){return t.chunk},get styles(){return V(o)},axis:`y`}),j()}function Ec(e,t){A(t,!0);let n=N(void 0),r=N(0),i=M(()=>t.chunk.event),a=M(()=>e=>(e[`grid-column`]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,(V(r)||V(i)._margin)&&(e[`margin-block-start`]=`${V(i)._margin??V(r)}px`),e));function o(){P(r,Ua(t.chunk,_a(V(n))),!0)}var s={reposition:o};return ms(e,{get chunk(){return t.chunk},get styles(){return V(a)},axis:`x`,get forceMargin(){return V(r)},get el(){return V(n)},set el(e){P(n,e,!0)}}),j(s)}var Dc=U(`<div></div>`);function Oc(e,t){A(t,!0);let n=mi(t,`span`,3,1),r=M(()=>k(`state`)),i=M(()=>V(r).mainEl),a=M(()=>V(r).now),o=M(()=>V(r).today),s=M(()=>V(r).options.slotDuration),c=M(()=>V(r).options.slotHeight),l=M(()=>V(r).options.theme),u=M(()=>k(`view-state`)),d=M(()=>V(u).sidebarWidth),f=M(()=>{for(let e of t.days)if(Qi(e.dayStart,V(o)))return e;return{}}),p=M(()=>V(f).gridColumn),m=M(()=>V(f).start),h=M(()=>V(f).end),g=M(()=>{if(V(a)<V(m)||V(a)>V(h))return null;let e=$(V(s));return(V(a)-V(m))/1e3/e*V(c)}),_=M(()=>({root:V(i),rootMargin:Bi()?`0px -${V(d)+5.5}px 0px 0px`:`0px 0px 0px -${V(d)+5.5}px`,threshold:0}));function v(e,t){e.classList.toggle(V(l).hidden,!t.isIntersecting)}var y=W(),b=I(y),x=e=>{var t=Dc();let r;Kr(t,()=>Si(v,V(_))),R(()=>{Y(t,1,V(l).nowIndicator),r=ni(t,``,r,{"grid-column":`${V(p)+1} / span ${n()??``}`,"inset-block-start":`${V(g)??``}px`})}),G(e,t)};K(b,e=>{V(p)&&V(g)!==null&&e(x)}),G(e,y),j()}var kc=U(`<div><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div>`),Ac=U(`<div><time></time></div>`),jc=U(`<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 Mc(e,t){A(t,!0);let n=mi(t,`viewState`,7),r=k(`state`);n()||n(new _c(r)),Ue(`view-state`,n());let i=M(()=>r.mainEl),a=M(()=>r.viewDates),o=M(()=>r.options.allDayContent),s=M(()=>r.options.allDaySlot),c=M(()=>r.options.columnWidth),l=M(()=>r.options.nowIndicator),u=M(()=>r.options.scrollTime),d=M(()=>r.options.slotHeight),f=M(()=>r.options.slotDuration),p=M(()=>r.options.theme),m=M(()=>n().allDayChunks),h=M(()=>n().allDayBgChunks),g=M(()=>n().allDayIChunks),_=M(()=>n().bgChunks),v=M(()=>n().chunks),y=M(()=>n().iChunks),b=M(()=>n().grid),x=M(()=>n().sidebarWidth),S=M(()=>n().slots),ee=M(()=>n().slotLabelPeriodicity),C=M(()=>n().slotTimeLimits),te=N(0),ne=M(()=>nc(V(o)));bn(()=>{V(u),Mi(V(a))||dr().then(re)});function re(){V(i).scrollTop=(($(V(u))-$(V(C).min))/$(V(f))-.5)*V(d)}let ie=[];function ae(){Na(ie,V(m))}bn(ae);var oe=W(),se=I(oe),ce=e=>{var i=jc();let a;var o=F(i),u=F(o),f=L(u,2),C=F(f),re=e=>{var n=W();Wr(I(n),()=>t.header),G(e,n)},oe=e=>{var t=W();J(I(t),17,()=>V(b)[0],q,(e,t,n)=>{let r=()=>V(t).dayStart,i=()=>V(t).disabled,a=()=>V(t).highlight;ds(e,{get date(){return r()},colIndex:1+n,get disabled(){return i()},get highlight(){return a()},children:(e,t)=>{ps(e,{get date(){return r()}})},$$slots:{default:!0}})}),G(e,t)};K(C,e=>{t.header?e(re):e(oe,-1)}),O(f);var se=L(f,2),ce=e=>{var t=kc(),n=F(t);Kr(n,()=>yi(V(ne)));var r=L(n,2);J(r,21,()=>V(b),q,(e,t,n)=>{var r=W();J(I(r),17,()=>V(t),q,(e,r,i)=>{{let a=M(()=>n+1===ji(V(b))&&i+1===ji(V(t)));wc(e,{get day(){return V(r)},allDay:!0,get noIeb(){return V(a)}})}}),G(e,r)}),O(r);var i=L(r,2),a=F(i);J(a,19,()=>V(m),e=>e.id,(e,t,n)=>{pi(Ec(e,{get chunk(){return V(t)}}),(e,t)=>ie[t]=e,e=>ie?.[e],()=>[V(n)])});var o=L(a,2);J(o,17,()=>V(h),e=>e.id,(e,t)=>{Ec(e,{get chunk(){return V(t)}})}),J(L(o,2),17,()=>V(g),q,(e,t)=>{Ec(e,{get chunk(){return V(t)}})}),O(i),O(t),R(()=>{Y(t,1,V(p).allDay),Y(n,1,V(p).sidebar),Y(r,1,V(p).grid),Y(i,1,V(p).events)}),G(e,t)};K(se,e=>{V(s)&&e(ce)}),O(o);var le=L(o,2),ue=F(le);J(ue,21,()=>V(S),q,(e,t,n)=>{var r=Ac();let i;var a=F(r);Kr(a,()=>yi(V(t)[1])),O(r),R(()=>{Y(r,1,Yr([V(p).slot,!n&&V(p).hidden])),i=ni(r,``,i,{"--ec-slot-label-periodicity":V(t)[2]}),oi(a,`datetime`,V(t)[0])}),G(e,r)}),O(ue);var w=L(ue,2);J(w,21,()=>V(b),q,(e,t,n)=>{var r=W();J(I(r),17,()=>V(t),q,(e,r,i)=>{{let a=M(()=>n+1===ji(V(b))&&i+1===ji(V(t)));wc(e,{get day(){return V(r)},get noIeb(){return V(a)},noBeb:!0})}}),G(e,r)}),O(w);var T=L(w,2),de=F(T);J(de,17,()=>V(v),e=>e.id,(e,t)=>{Tc(e,{get chunk(){return V(t)}})});var fe=L(de,2);J(fe,17,()=>V(_),e=>e.id,(e,t)=>{Tc(e,{get chunk(){return V(t)}})}),J(L(fe,2),17,()=>V(y),q,(e,t)=>{Tc(e,{get chunk(){return V(t)}})}),O(T),O(le);var pe=L(le,2),me=e=>{var n=W(),r=I(n),i=e=>{var n=W();Wr(I(n),()=>t.nowIndicator),G(e,n)},a=e=>{Oc(e,{get days(){return V(b)[0]}})};K(r,e=>{t.nowIndicator?e(i):e(a,-1)}),G(e,n)};K(pe,e=>{V(l)&&e(me)}),O(i),pi(i,e=>r.mainEl=e,()=>r?.mainEl),Kr(i,()=>xi(ae)),R(e=>{Y(i,1,V(p).main),a=ni(i,``,a,e),Y(o,1,V(p).header),Y(u,1,V(p).sidebar),Y(f,1,V(p).grid),Y(le,1,V(p).body),Y(ue,1,V(p).sidebar),Y(w,1,V(p).grid),Y(T,1,V(p).events)},[()=>({"--ec-grid-cols":ji(V(b))*ji(V(b)[0]),"--ec-col-group-span":ji(V(b)[0]),"--ec-col-width":V(c)??`minmax(0, 1fr)`,"--ec-slot-label-periodicity":V(ee),"--ec-slot-height":`${V(d)??``}px`,"--ec-header-height":`${V(te)??``}px`,"--ec-sidebar-width":`${V(x)??``}px`})]),di(u,`offsetWidth`,e=>n().sidebarWidth=e),di(o,`offsetHeight`,e=>P(te,e)),G(e,i)},le=M(()=>!Mi(V(b))&&!Mi(V(b)[0]));K(se,e=>{V(le)&&e(ce)}),G(e,oe),j()}var Nc=U(`<!> <!>`,1);function Pc(e,t){A(t,!0);let n=k(`state`),r=new xc(n),i=M(()=>n.today),a=M(()=>n.mainEl),o=M(()=>n.viewDates),s=M(()=>n.options.scrollTime),c=M(()=>n.options.datesAboveResources),l=M(()=>n.options.theme),u=M(()=>r.grid),d=M(()=>r.sidebarWidth),f=$t([]);bn(()=>{V(c)&&(V(o),V(s),dr().then(p))});function p(){if(V(i)>=V(o)[0]&&V(i)<=V(o).at(-1))for(let e of V(u)){let t=e[0];if(Qi(t.dayStart,V(i))){V(a).scrollLeft=(V(a).scrollWidth-V(d))/(ji(V(u))*ji(e))*(t.gridColumn-1)*(Bi()?-1:1);break}}}Mc(e,{get viewState(){return r},header:e=>{var t=Nc(),n=I(t);J(n,17,()=>V(u),q,(e,t,n)=>{let r=M(()=>{let{dayStart:e,resource:n,disabled:r,highlight:i}=V(t)[0];return{date:e,resource:n,disabled:r,highlight:i}});{let i=M(()=>ji(V(u)[0])>1?V(l).colGroup:void 0),a=M(()=>ji(V(t))),o=M(()=>1+n*ji(V(t))),s=M(()=>V(c)&&V(r).disabled),d=M(()=>V(c)&&V(r).highlight);ds(e,{get date(){return V(r).date},get className(){return V(i)},get weekday(){return V(c)},get colSpan(){return V(a)},get colIndex(){return V(o)},get disabled(){return V(s)},get highlight(){return V(d)},children:(e,t)=>{var i=W(),a=I(i),o=e=>{ps(e,{get date(){return V(r).date}})},s=e=>{Cc(e,{get resource(){return V(r).resource},setLabel:e=>f[n]=e+`, `})};K(a,e=>{V(c)?e(o):e(s,-1)}),G(e,i)},$$slots:{default:!0}})}});var r=L(n,2),i=e=>{var t=W();J(I(t),17,()=>V(u),q,(e,t,n)=>{var r=W();J(I(r),17,()=>V(t),q,(e,r,i)=>{let a=M(()=>{let{dayStart:e,resource:t,disabled:n,highlight:i}=V(r);return{date:e,resource:t,disabled:n,highlight:i}});{let r=M(()=>1+i+n*ji(V(t)));ds(e,{get date(){return V(a).date},get colIndex(){return V(r)},get disabled(){return V(a).disabled},get highlight(){return V(a).highlight},children:(e,t)=>{var r=W(),i=I(r),o=e=>{Cc(e,{get resource(){return V(a).resource},get date(){return V(a).date}})},s=e=>{ps(e,{get date(){return V(a).date},get alPrefix(){return f[n]}})};K(i,e=>{V(c)?e(o):e(s,-1)}),G(e,r)},$$slots:{default:!0}})}}),G(e,r)}),G(e,t)},a=M(()=>ji(V(u)[0])>1);K(r,e=>{V(a)&&e(i)}),G(e,t)},nowIndicator:e=>{var t=W(),n=I(t),r=e=>{{let t=M(()=>V(u).flat()),n=M(()=>ji(V(u)[0]));Oc(e,{get days(){return V(t)},get span(){return V(n)}})}},i=e=>{var t=W(),n=I(t),r=e=>{var t=W();J(I(t),17,()=>V(u),q,(e,t)=>{Oc(e,{get days(){return V(t)}})}),G(e,t)},i=M(()=>ji(V(u)[0])>1),a=e=>{{let t=M(()=>V(u).flat()),n=M(()=>ji(V(u)));Oc(e,{get days(){return V(t)},get span(){return V(n)}})}};K(n,e=>{V(i)?e(r):e(a,-1)}),G(e,t)};K(n,e=>{V(c)?e(r):e(i,-1)}),G(e,t)},$$slots:{header:!0,nowIndicator:!0}}),j()}var Fc={createOptions(e){ac(e),ic(e),sc(e),X(e,{datesAboveResources:!1,view:`resourceTimeGridWeek`}),X(e.buttonText,{resourceTimeGridDay:`day`,resourceTimeGridWeek:`week`}),X(e.theme,{colGroup:`ec-col-group`}),X(e.views,{resourceTimeGridDay:{buttonText:Xa,component:Ic,dayHeaderFormat:{weekday:`long`},duration:{days:1},theme:to(`ec-resource ec-time-grid ec-day-view`)},resourceTimeGridWeek:{buttonText:Za,component:Ic,duration:{weeks:1},theme:to(`ec-resource ec-time-grid ec-week-view`)}})},createParsers(e){oc(e)}};function Ic(e){return rc(e),Pc}function Lc(e,t,n,r=!0){let i=[],a,o,s,c,l,u,d=0;for(let{gridColumn:r,gridRow:f,resource:p,dayStart:m,dayEnd:h,start:g,end:_,disabled:v}of t)v||(n?Pa(e,m,h,p)&&(i.length||(a=m,s=r,c=f,l=p),i.push(m),o=_):Pa(e,g,_,p)&&(i.length||(a=g,s=r,c=f,l=p,u=ki(e.start-g,0)/1e3),i.push(m),o=_,d+=(Oi(_,e.end)-ki(g,e.start))/1e3));if(i.length){let t=Ba(e,a,o);return X(t,{gridColumn:s,gridRow:c,resource:l,dates:i,left:u,width:d}),r&&Ka(t),[t]}return[]}function Rc(e){let t={};for(let n of e){let{gridColumn:e,gridRow:r}=n;for(let i=0;i<n.dates.length;++i){let a=`${r}_${e+i}`;t[a]?t[a].push(n):t[a]=[n]}n.day=t[`${r}_${e}`]}}function zc(e,t,n){let r=1,i=r+t,a=e.day;a.sort((e,t)=>(e.top??1/0)-(t.top??1/0));for(let t of a)if(!(t===e||!(`top`in t))&&(n||e.start<t.end&&e.end>t.start)&&r<t.bottom&&i>t.top){let e=t.bottom-r+1;r+=e,i+=e}return X(e,{top:r,bottom:i}),r}function Bc(e,t){return e[t.getTime()]??{min:Wi(0),max:Wi(`24:00:00`)}}function Vc(e,t){return()=>{let{viewDates:n,options:{highlightedDates:r,validRange:i}}=e,{dayTimeLimits:a,viewResources:o}=t,s=[];return H(()=>{let e=1;for(let t of o){let o=[],c=1;for(let s of n){let n=a[s.getTime()];o.push({gridColumn:c,gridRow:e,resource:t,start:Gi(Q(s),n.min),end:Gi(Q(s),n.max),dayStart:s,dayEnd:qi(Q(s)),disabled:ro(s,i),highlight:r.some(e=>Qi(e,s))}),++c}s.push(o),++e}}),s}}function Hc(e,t){return()=>{let{features:n,options:{firstDay:r,weekNumbers:i}}=e,{grid:a}=t,o=[],s=[];return H(()=>{let e,t;if(!Mi(a)){for(let{dayStart:c,gridColumn:l}of a[0])if(n.includes(`month`)&&(e&&e.date.getUTCMonth()===c.getUTCMonth()?++e.span:(e={date:c,gridColumn:l,span:1},o.push(e))),i){let e=oa(c,r);t&&t.number===e?++t.span:(t={number:e,date:c,gridColumn:l,span:1},s.push(t))}}}),{months:o,weeks:s}}}function Uc(e,t){return()=>{let{filteredEvents:n}=e,{grid:r,monthView:i}=t,a=[],o=[];return H(()=>{for(let e of n)for(let t of r)Ia(e.display)?(!i||e.allDay)&&(o=o.concat(Lc(e,t,i))):a=a.concat(Lc(e,t,i));Rc(a)}),{chunks:a,bgChunks:o}}}function Wc(e,t){return()=>{let{iEvents:n}=e,{grid:r,monthView:i}=t,a=[];for(let[,e]of n)e&&H(()=>{for(let t of r)a=a.concat(Lc(e,t,i,!1))});return a}}function Gc(e){return()=>{let{filteredEvents:t,viewDates:n,options:{flexibleSlotTimeLimits:r,slotMinTime:i,slotMaxTime:a}}=e,o={};return H(()=>{for(let e of n)o[e.getTime()]=fo(i,a,r,[e],t)}),o}}function Kc(e,t){return()=>{let{viewDates:n,options:{slotDuration:r}}=e,{dayTimeLimits:i,intlSlotLabel:a,slotLabelPeriodicity:o}=t,s={};return H(()=>{for(let e of n){let t=e.getTime();s[t]=t in i?uo(e,r,o,i[t],a):[]}}),s}}function qc(e){return()=>{let{resources:t}=e,n;return H(()=>{n=t.some(e=>pa(e).children.length)}),n}}function Jc(e){return()=>{let{options:{slotDuration:t}}=e,n;return H(()=>{n=!$(t)}),n}}var Yc=class extends bc(hc()){#e;get dayTimeLimits(){return V(this.#e)}set dayTimeLimits(e){P(this.#e,e)}#t;get daySlots(){return V(this.#t)}set daySlots(e){P(this.#t,e)}#n;get grid(){return V(this.#n)}set grid(e){P(this.#n,e)}#r;get extraHeads(){return V(this.#r)}set extraHeads(e){P(this.#r,e)}#i;get intlMonthHeader(){return V(this.#i)}set intlMonthHeader(e){P(this.#i,e)}#a;get monthView(){return V(this.#a)}set monthView(e){P(this.#a,e)}#o;get chunks(){return V(this.#o)}set chunks(e){P(this.#o,e)}#s;get bgChunks(){return V(this.#s)}set bgChunks(e){P(this.#s,e)}#c;get iChunks(){return V(this.#c)}set iChunks(e){P(this.#c,e)}#l;get nestedResources(){return V(this.#l)}set nestedResources(e){P(this.#l,e)}constructor(e){super(e),this.#e=M(Gc(e)),this.#t=M(Kc(e,this)),this.#n=M(Vc(e,this)),this.#r=M(Hc(e,this)),this.#i=M(qa(e,`monthHeaderFormat`)),this.#a=M(Jc(e));let t=M(Uc(e,this)),n=M(()=>V(t).chunks),r=M(()=>V(t).bgChunks);this.#o=M(()=>V(n)),this.#s=M(()=>V(r)),this.#c=M(Wc(e,this)),this.#l=M(qc(e))}};function Xc(e,t){A(t,!0);let n=M(()=>k(`state`)),r=M(()=>V(n).options.slotWidth),i=M(()=>k(`view-state`)),a=M(()=>V(i).monthView),o=M(()=>V(i).snap),s=M(()=>t.day.dayStart),c=M(()=>t.day.start),l=M(()=>t.day.resource),u=M(()=>t.day.disabled),d=M(()=>t.day.highlight),f=N(void 0);function p(e,t){if(V(a))return V(s);{let t=ha(V(f)),n=t.width/V(f).offsetWidth;return Gi(Q(V(c)),V(o).duration,Ei((Bi()?t.right-e:e-t.left)/(V(r)*V(o).ratio*n)))}}os(e,{get allDay(){return V(a)},get date(){return V(s)},get resource(){return V(l)},dateFromPoint:p,get disabled(){return V(u)},get highlight(){return V(d)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return V(f)},set el(e){P(f,e,!0)}}),j()}function Zc(e,t){A(t,!0);let n=M(()=>k(`state`)),r=M(()=>V(n).options.slotDuration),i=M(()=>V(n).options.slotWidth),a=M(()=>k(`view-state`)),o=M(()=>V(a).monthView),s=N(void 0),c=N(1),l=M(()=>t.chunk.event),u=M(()=>e=>{e[`grid-column`]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,e[`grid-row`]=t.chunk.gridRow,V(o)||(e[`inset-inline-start`]=`${t.chunk.left/$(V(r))*V(i)}px`,e[`inline-size`]=`${t.chunk.width/$(V(r))*V(i)}px`);let n=V(c);if(V(l)._margin){let[e,r]=V(l)._margin;t.chunk.gridRow===r&&(n=e)}return e[`margin-block-start`]=`${n}px`,e});function d(){P(c,zc(t.chunk,_a(V(s)),V(o)),!0)}var f={reposition:d};{let n=M(()=>[V(c),t.chunk.gridRow]);ms(e,{get chunk(){return t.chunk},get styles(){return V(u)},axis:`x`,get forceMargin(){return V(n)},get el(){return V(s)},set el(e){P(s,e,!0)}})}return j(f)}var Qc=U(`<span></span>`),$c=U(`<button></button>`),el=U(`<!> <span><!></span>`,1);function tl(e,t){A(t,!0);let n=mi(t,`resource`,7),r=M(()=>k(`state`)),i=M(()=>V(r).resources),a=M(()=>V(r).view),o=M(()=>V(r).options.buttonText),s=M(()=>V(r).options.icons),c=M(()=>V(r).options.resourceExpand),l=M(()=>V(r).options.theme),u=N({}),d=M(()=>n().expanded),f=M(()=>V(o)[V(d)?`collapse`:`expand`]);Sn(()=>{P(u,pa(n()))});function p(e){n().expanded=P(d,!V(d)),m(V(u).children),V(i).length=V(i).length,Z(V(c))&&V(c)({resource:n(),jsEvent:e,view:Sa(V(a))})}function m(e){for(let t of e){let e=pa(t);e.hidden=!V(d),t.expanded&&m(e.children)}}var h=el(),g=I(h);J(g,17,()=>Array(V(u).level),q,(e,t)=>{var n=Qc();R(()=>Y(n,1,V(l).expander)),G(e,n)});var _=L(g,2),v=F(_),y=e=>{var t=$c();Kr(t,()=>yi(V(s)[V(d)?`collapse`:`expand`])),R(()=>{Y(t,1,V(l).button),oi(t,`aria-label`,V(f)),oi(t,`title`,V(f))}),xr(`click`,t,p),G(e,t)};K(v,e=>{V(u).children?.length&&e(y)}),O(_),R(()=>Y(_,1,V(l).expander)),G(e,h),j()}Sr([`click`]);var nl=U(`<div></div>`);function rl(e,t){A(t,!0);let n=M(()=>k(`state`)),r=M(()=>V(n).mainEl),i=M(()=>V(n).now),a=M(()=>V(n).today),o=M(()=>V(n).options.slotDuration),s=M(()=>V(n).options.slotWidth),c=M(()=>V(n).options.theme),l=M(()=>k(`view-state`)),u=M(()=>V(l).grid),d=M(()=>V(l).sidebarWidth),f=M(()=>{for(let e of V(u)[0])if(Qi(e.dayStart,V(a)))return e;return{}}),p=M(()=>V(f).gridColumn),m=M(()=>V(f).start),h=M(()=>V(f).end),g=M(()=>{if(V(i)<V(m)||V(i)>V(h))return null;let e=$(V(o));return(V(i)-V(m))/1e3/e*V(s)}),_=M(()=>({root:V(r),rootMargin:Bi()?`0px -${V(d)+1}px 0px 0px`:`0px 0px 0px -${V(d)+1}px`,threshold:0}));function v(e,t){e.classList.toggle(V(c).hidden,!t.isIntersecting)}var y=W(),b=I(y),x=e=>{var t=nl();let n;Kr(t,()=>Si(v,V(_))),R(()=>{Y(t,1,V(c).nowIndicator),n=ni(t,``,n,{"grid-column":V(p)+1,"grid-row":`2 / span ${V(u).length??``}`,"inset-inline-start":`${V(g)??``}px`})}),G(e,t)};K(b,e=>{V(p)&&V(g)!==null&&e(x)}),G(e,y),j()}var il=U(`<time></time>`),al=U(`<span></span>`),ol=U(`<div><time></time></div>`),sl=U(`<div role="rowheader"><!> <!></div>`),cl=U(`<section><header><aside></aside> <div role="row"><!> <!> <!> <!></div></header> <div role="rowgroup"><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div> <!></section>`);function ll(e,t){A(t,!0);let n=k(`state`),r=new Yc(n);Ue(`view-state`,r);let i=M(()=>n.mainEl),a=M(()=>n.today),o=M(()=>n.viewDates),s=M(()=>n.options.columnWidth),c=M(()=>n.options.nowIndicator),l=M(()=>n.options.scrollTime),u=M(()=>n.options.slotDuration),d=M(()=>n.options.slotHeight),f=M(()=>n.options.slotWidth),p=M(()=>n.options.theme),m=M(()=>n.options.weekNumberContent),h=M(()=>r.chunks),g=M(()=>r.bgChunks),_=M(()=>r.iChunks),v=M(()=>r.daySlots),y=M(()=>r.dayTimeLimits),b=M(()=>r.grid),x=M(()=>r.extraHeads),S=M(()=>r.intlMonthHeader),ee=M(()=>r.monthView),C=M(()=>r.nestedResources),te=M(()=>r.sidebarWidth),ne=M(()=>r.slotLabelPeriodicity),re=M(()=>r.viewResources),ie=N(0);bn(()=>{V(l),Mi(V(o))||dr().then(ae)});function ae(){let e=0,t=V(a)<V(o)[0]||V(a)>V(o).at(-1);if(V(ee)){if(!t){let e=V(b)[0];for(let t of e)if(Qi(t.dayStart,V(a))){V(i).scrollLeft=(V(i).scrollWidth-V(te))/ji(e)*(t.gridColumn-1)*(Bi()?-1:1);break}}}else{for(let n of V(o)){let r=Bc(V(y),n);if(t||Qi(n,V(a))){e+=ki(Oi($(V(l)),$(r.max))-$(r.min),0);break}else e+=$(r.max)-$(r.min)}V(i).scrollLeft=e/$(V(u))*V(f)*(Bi()?-1:1)}}let oe=[];function se(){Na(oe,V(h))}bn(se);var ce=W(),le=I(ce),ue=e=>{var t=cl();let i;var a=F(t),o=F(a),l=L(o,2),u=F(l),y=e=>{var t=W();J(I(t),17,()=>V(x).months,q,(e,t)=>{let n=()=>V(t).date,r=()=>V(t).gridColumn,i=()=>V(t).span;ds(e,{get className(){return V(p).colGroup},get colIndex(){return r()},get colSpan(){return i()},cssSpan:!0,weekday:!1,children:(e,t)=>{var r=il();Kr(r,()=>yi(V(S).format(n()))),R(e=>oi(r,`datetime`,e),[()=>Zi(n(),10)]),G(e,r)},$$slots:{default:!0}})}),G(e,t)},ae=M(()=>ji(V(x).months)>1);K(u,e=>{V(ae)&&e(y)});var ce=L(u,2),le=e=>{var t=W();J(I(t),17,()=>V(x).weeks,q,(e,t)=>{let n=()=>V(t).number,r=()=>V(t).date,i=()=>V(t).gridColumn,a=()=>V(t).span;ds(e,{get className(){return V(p).colGroup},get colIndex(){return i()},get colSpan(){return a()},cssSpan:!0,weekday:!1,children:(e,t)=>{var i=al();Kr(i,()=>yi(sa(n(),V(m),r()))),R(()=>Y(i,1,V(p).weekNumber)),G(e,i)},$$slots:{default:!0}})}),G(e,t)},ue=M(()=>ji(V(x).weeks)>1);K(ce,e=>{V(ue)&&e(le)});var w=L(ce,2);J(w,17,()=>V(b)[0],q,(e,t,n)=>{let r=()=>V(t).dayStart,i=()=>V(t).disabled,a=()=>V(t).highlight;ds(e,{get date(){return r()},colIndex:1+n,get disabled(){return i()},get highlight(){return a()},children:(e,t)=>{ps(e,{get date(){return r()}})},$$slots:{default:!0}})});var T=L(w,2),de=e=>{var t=W();J(I(t),17,()=>V(b)[0],q,(e,t)=>{let n=()=>V(t).dayStart,r=()=>V(t).disabled,i=()=>V(t).highlight;ds(e,{get date(){return n()},get className(){return V(p).slots},get disabled(){return r()},get highlight(){return i()},ariaHidden:!0,children:(e,t)=>{var r=W();J(I(r),17,()=>V(v)[n().getTime()],q,(e,t)=>{var n=ol();let r;var i=F(n);Kr(i,()=>yi(V(t)[1])),O(n),R(()=>{Y(n,1,V(p).slot),r=ni(n,``,r,{"--ec-slot-label-periodicity":V(t)[2]}),oi(i,`datetime`,V(t)[0])}),G(e,n)}),G(e,r)},$$slots:{default:!0}})}),G(e,t)};K(T,e=>{V(ee)||e(de)}),O(l),O(a);var fe=L(a,2),pe=F(fe);J(pe,21,()=>V(re),q,(e,t)=>{var n=sl(),r=F(n),i=e=>{tl(e,{get resource(){return V(t)}})};K(r,e=>{V(C)&&e(i)}),Cc(L(r,2),{get resource(){return V(t)}}),O(n),R(()=>Y(n,1,V(p).rowHead)),G(e,n)}),O(pe);var me=L(pe,2);J(me,21,()=>V(b),q,(e,t,n)=>{var r=W();J(I(r),17,()=>V(t),q,(e,r,i)=>{{let a=M(()=>i+1===ji(V(t))),o=M(()=>n+1===ji(V(b)));Xc(e,{get day(){return V(r)},get noIeb(){return V(a)},get noBeb(){return V(o)}})}}),G(e,r)}),O(me);var he=L(me,2),ge=F(he);J(ge,19,()=>V(h),e=>e.id,(e,t,n)=>{pi(Zc(e,{get chunk(){return V(t)}}),(e,t)=>oe[t]=e,e=>oe?.[e],()=>[V(n)])});var _e=L(ge,2);J(_e,17,()=>V(g),e=>e.id,(e,t)=>{Zc(e,{get chunk(){return V(t)}})}),J(L(_e,2),17,()=>V(_),q,(e,t)=>{Zc(e,{get chunk(){return V(t)}})}),O(he),O(fe);var ve=L(fe,2),ye=e=>{rl(e,{})};K(ve,e=>{V(c)&&!V(ee)&&e(ye)}),O(t),pi(t,e=>n.mainEl=e,()=>n?.mainEl),Kr(t,()=>xi(se)),R(e=>{Y(t,1,V(p).main),i=ni(t,``,i,e),Y(a,1,V(p).header),Y(o,1,V(p).sidebar),Y(l,1,V(p).grid),Y(fe,1,V(p).body),Y(pe,1,V(p).sidebar),Y(me,1,V(p).grid),Y(he,1,V(p).events)},[()=>({"--ec-grid-cols":ji(V(b)[0]),"--ec-grid-rows":`${ji(V(b))>1?`repeat(${ji(V(b))-1}, auto)`:``} 1fr`,"--ec-col-width":V(s)??`minmax(4em, 1fr)`,"--ec-slot-label-periodicity":V(ne),"--ec-slot-height":`${V(d)??``}px`,"--ec-slot-width":`${V(f)??``}px`,"--ec-header-height":`${V(ie)??``}px`,"--ec-sidebar-width":`${V(te)??``}px`})]),di(o,`offsetWidth`,e=>r.sidebarWidth=e),di(a,`offsetHeight`,e=>P(ie,e)),G(e,t)},w=M(()=>!Mi(V(b))&&!Mi(V(b)[0]));K(le,e=>{V(w)&&e(ue)}),G(e,ce),j()}var ul={createOptions(e){ic(e),sc(e),X(e,{monthHeaderFormat:{month:`long`},resourceExpand:void 0,slotWidth:32,view:`resourceTimelineWeek`}),X(e.buttonText,{expand:`Expand`,collapse:`Collapse`,resourceTimelineDay:`day`,resourceTimelineWeek:`week`,resourceTimelineMonth:`month`,resourceTimelineYear:`year`}),X(e.icons,{collapse:{html:`−`},expand:{html:`+`}}),X(e.theme,{expander:`ec-expander`,rowHead:`ec-row-head`,slots:`ec-slots`}),X(e.views,{resourceTimelineDay:{buttonText:Xa,component:dl,displayEventEnd:!1,dayHeaderFormat:{weekday:`long`},duration:{days:1},theme:to(`ec-resource ec-timeline ec-day-view`),titleFormat:{year:`numeric`,month:`long`,day:`numeric`}},resourceTimelineWeek:{buttonText:Za,component:dl,displayEventEnd:!1,duration:{weeks:1},theme:to(`ec-resource ec-timeline ec-week-view`)},resourceTimelineMonth:{buttonText:Qa,component:fl,displayEventEnd:!1,dayHeaderFormat:{weekday:`short`,day:`numeric`},duration:{months:1},slotDuration:{days:1},theme:to(`ec-resource ec-timeline ec-month-view`),titleFormat:{year:`numeric`,month:`long`}},resourceTimelineYear:{buttonText:$a,component:fl,displayEventEnd:!1,dayHeaderFormat:{weekday:`short`,day:`numeric`},duration:{years:1},slotDuration:{days:1},theme:to(`ec-resource ec-timeline ec-year-view`),titleFormat:{year:`numeric`}}})},createParsers(e){oc(e)}};function dl(e){return rc(e),pl(e)}function fl(e){return pl(e,[`month`])}function pl(e,t=[]){return e.features=[`timeline`,...t],e.extensions.viewResources=e=>e.filter(e=>!pa(e).hidden),ll}var ml={createOptions(e){ic(e),ac(e),X(e.buttonText,{timeGridDay:`day`,timeGridWeek:`week`}),X(e,{view:`timeGridWeek`}),X(e.views,{timeGridDay:{buttonText:Xa,component:hl,dayHeaderFormat:{weekday:`long`},duration:{days:1},theme:to(`ec-time-grid ec-day-view`),titleFormat:{year:`numeric`,month:`long`,day:`numeric`}},timeGridWeek:{buttonText:Za,component:hl,duration:{weeks:1},theme:to(`ec-time-grid ec-week-view`)}})},createParsers(e){oc(e)}};function hl(e){return rc(e),Mc}function gl(e,t,n){return Ar($o,{target:e,props:{plugins:t,options:n}})}function _l(e){return Pr(e)}function vl(e,t){return gl(e,[Ts,Us,Qs,Fc,ul,ml],t)}return e.create=vl,e.destroy=_l,e})({});
|
|
7
7
|
//# sourceMappingURL=event-calendar.min.js.map
|