PageSourceSearch

https://family-scheduler-front.netlify.app/main-V7IHOV6Q.js

js family-scheduler-front.netlify.app collected 2026-10-03 10:43:21 UTC 646,055 bytes, 7 lines download raw bytes

vendor: 5,142 bytes, lines 1-3
1var $M=Object.defineProperty,zM=Object.defineProperties;var WM=Object.getOwnPropertyDescriptors;var Ub=Object.getOwnPropertySymbols;var GM=Object.prototype.hasOwnProperty,qM=Object.prototype.propertyIsEnumerable;var $b=(t,e,n)=>e in t?$M(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,S=(t,e)=>{for(var n in e||={})GM.call(e,n)&&$b(t,n,e[n]);if(Ub)for(var n of Ub(e))qM.call(e,n)&&$b(t,n,e[n]);return t},Y=(t,e)=>zM(t,WM(e));var lt=null,$l=!1,bh=1,YM=null,pt=Symbol("SIGNAL");function j(t){let e=lt;return lt=t,e}function Wl(){return lt}var Is={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Ms(t){if($l)throw new Error("");if(lt===null)return;lt.consumerOnSignalRead(t);let e=lt.producersTail;if(e!==void 0&&e.producer===t)return;let n,r=lt.recomputing;if(r&&(n=e!==void 0?e.nextProducer:lt.producers,n!==void 0&&n.producer===t)){lt.producersTail=n,n.lastReadVersion=t.version;return}let i=t.consumersTail;if(i!==void 0&&i.consumer===lt&&(!r||ZM(i,lt)))return;let o=uo(lt),s={producer:t,consumer:lt,nextProducer:n,prevConsumer:i,lastReadVersion:t.version,nextConsumer:void 0};lt.producersTail=s,e!==void 0?e.nextProducer=s:lt.producers=s,o&&qb(t,s)}function zb(){bh++}function Eh(t){if(!(uo(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===bh)){if(!t.producerMustRecompute(t)&&!ql(t)){yh(t);return}t.producerRecomputeValue(t),yh(t)}}function Dh(t){if(t.consumers===void 0)return;let e=$l;$l=!0;try{for(let n=t.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||QM(r)}}finally{$l=e}}function Ch(){return lt?.consumerAllowSignalWrites!==!1}function QM(t){t.dirty=!0,Dh(t),t.consumerMarkedDirty?.(t)}function yh(t){t.dirty=!1,t.lastCleanEpoch=bh}function Ts(t){return t&&Wb(t),j(t)}function Wb(t){t.producersTail=void 0,t.recomputing=!0}function Gl(t,e){j(e),t&&Gb(t)}function Gb(t){t.recomputing=!1;let e=t.producersTail,n=e!==void 0?e.nextProducer:t.producers;if(n!==void 0){if(uo(t))do n=_h(n);while(n!==void 0);e!==void 0?e.nextProducer=void 0:t.producers=void 0}}function ql(t){for(let e=t.producers;e!==void 0;e=e.nextProducer){let n=e.producer,r=e.lastReadVersion;if(r!==n.version||(Eh(n),r!==n.version))return!0}return!1}function As(t){if(uo(t)){let e=t.producers;for(;e!==void 0;)e=_h(e)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function qb(t,e){let n=t.consumersTail,r=uo(t);if(n!==void 0?(e.nextConsumer=n.nextConsumer,n.nextConsumer=e):(e.nextConsumer=void 0,t.consumers=e),e.prevConsumer=n,t.consumersTail=e,!r)for(let i=t.producers;i!==void 0;i=i.nextProducer)qb(i.producer,i)}function _h(t){let e=t.producer,n=t.nextProducer,r=t.nextConsumer,i=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,r!==void 0?r.prevConsumer=i:e.consumersTail=i,i!==void 0)i.nextConsumer=r;else if(e.consumers=r,!uo(e)){let o=e.producers;for(;o!==void 0;)o=_h(o)}return n}function uo(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function wh(t){YM?.(t)}function ZM(t,e){let n=e.producersTail;if(n!==void 0){let r=e.producers;do{if(r===t)return!0;if(r===n)break;r=r.nextProducer}while(r!==void 0)}return!1}function Sh(t,e){return Object.is(t,e)}function Yl(t,e){let n=Object.create(KM);n.computation=t,e!==void 0&&(n.equal=e);let r=()=>{if(Eh(n),Ms(n),n.value===zl)throw n.error;return n.value};return r[pt]=n,wh(n),r}var mh=Symbol("UNSET"),vh=Symbol("COMPUTING"),zl=Symbol("ERRORED"),KM=Y(S({},Is),{value:mh,dirty:!0,error:null,equal:Sh,kind:"computed",producerMustRecompute(t){return t.value===mh||t.value===vh},producerRecomputeValue(t){if(t.value===vh)throw new Error("");let e=t.value;t.value=vh;let n=Ts(t),r,i=!1;try{r=t.computation(),j(null),i=e!==mh&&e!==zl&&r!==zl&&t.equal(e,r)}catch(o){r=zl,t.error=o}finally{Gl(t,n)}if(i){t.value=e;return}t.value=r,t.version++}});function XM(){throw new Error}var Yb=XM;function Qb(t){Yb(t)}function Ih(t){Yb=t}var JM=null;function Mh(t,e){let n=Object.create(Ql);n.value=t,e!==void 0&&(n.equal=e);let r=()=>Zb(n);return r[pt]=n,wh(n),[r,s=>xs(n,s),s=>Kb(n,s)]}function Zb(t){return Ms(t),t.value}function xs(t,e){Ch()||Qb(t),t.equal(t.value,e)||(t.value=e,eT(t))}function Kb(t,e){Ch()||Qb(t),xs(t,e(t.value))}var Ql=Y(S({},Is),{equal:Sh,value:void 0,kind:"signal"});function eT(t){t.version++,zb(),Dh(t),JM?.(t)}function Th(t){let e=j(null);try{return t()}finally{j(e)}}function q(t){return typeof t=="function"}function fo(t){let n=t(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Zl=fo(t=>function(n){t(this),this.message=n?`${n.length} errors occurred during unsubscription:
2${n.map((r,i)=>`${i+1}) ${r.toString()}`).join(`
3  `)}`:"",this.name="UnsubscriptionError",this.errors=n});function Rs(t,e){if(t){let n=t.indexOf(e);0<=n&&t.splice(n,1)}}var rt=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}
vendor: 5,987 bytes, line 3
3unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let o of n)o.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(q(r))try{r()}catch(o){e=o instanceof Zl?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{Xb(o)}catch(s){e=e??[],s instanceof Zl?e=[...e,...s.errors]:e.push(s)}}if(e)throw new Zl(e)}}add(e){var n;if(e&&e!==this)if(this.closed)Xb(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(e)}}_hasParent(e){let{_parentage:n}=this;return n===e||Array.isArray(n)&&n.includes(e)}_addParent(e){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e}_removeParent(e){let{_parentage:n}=this;n===e?this._parentage=null:Array.isArray(n)&&Rs(n,e)}remove(e){let{_finalizers:n}=this;n&&Rs(n,e),e instanceof t&&e._removeParent(this)}};rt.EMPTY=(()=>{let t=new rt;return t.closed=!0,t})();var Ah=rt.EMPTY;function Kl(t){return t instanceof rt||t&&"closed"in t&&q(t.remove)&&q(t.add)&&q(t.unsubscribe)}function Xb(t){q(t)?t():t.unsubscribe()}var an={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var ho={setTimeout(t,e,...n){let{delegate:r}=ho;return r?.setTimeout?r.setTimeout(t,e,...n):setTimeout(t,e,...n)},clearTimeout(t){let{delegate:e}=ho;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Xl(t){ho.setTimeout(()=>{let{onUnhandledError:e}=an;if(e)e(t);else throw t})}function Ns(){}var Jb=xh("C",void 0,void 0);function eE(t){return xh("E",void 0,t)}function tE(t){return xh("N",t,void 0)}function xh(t,e,n){return{kind:t,value:e,error:n}}var si=null;function po(t){if(an.useDeprecatedSynchronousErrorHandling){let e=!si;if(e&&(si={errorThrown:!1,error:null}),t(),e){let{errorThrown:n,error:r}=si;if(si=null,n)throw r}}else t()}function nE(t){an.useDeprecatedSynchronousErrorHandling&&si&&(si.errorThrown=!0,si.error=t)}var ai=class extends rt{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Kl(e)&&e.add(this)):this.destination=rT}static create(e,n,r){return new go(e,n,r)}next(e){this.isStopped?Nh(tE(e),this):this._next(e)}error(e){this.isStopped?Nh(eE(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Nh(Jb,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},tT=Function.prototype.bind;function Rh(t,e){return tT.call(t,e)}var Oh=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:n}=this;if(n.next)try{n.next(e)}catch(r){Jl(r)}}error(e){let{partialObserver:n}=this;if(n.error)try{n.error(e)}catch(r){Jl(r)}else Jl(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(n){Jl(n)}}},go=class extends ai{constructor(e,n,r){super();let i;if(q(e)||!e)i={next:e??void 0,error:n??void 0,complete:r??void 0};else{let o;this&&an.useDeprecatedNextContext?(o=Object.create(e),o.unsubscribe=()=>this.unsubscribe(),i={next:e.next&&Rh(e.next,o),error:e.error&&Rh(e.error,o),complete:e.complete&&Rh(e.complete,o)}):i=e}this.destination=new Oh(i)}};function Jl(t){an.useDeprecatedSynchronousErrorHandling?nE(t):Xl(t)}function nT(t){throw t}function Nh(t,e){let{onStoppedNotification:n}=an;n&&ho.setTimeout(()=>n(t,e))}var rT={closed:!0,next:Ns,error:nT,complete:Ns};var mo=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ln(t){return t}function kh(...t){return Ph(t)}function Ph(t){return t.length===0?ln:t.length===1?t[0]:function(n){return t.reduce((r,i)=>i(r),n)}}var ee=(()=>{class t{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new t;return r.source=this,r.operator=n,r}subscribe(n,r,i){let o=oT(n)?n:new go(n,r,i);return po(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=rE(r),new r((i,o)=>{let s=new go({next:a=>{try{n(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[mo](){return this}pipe(...n){return Ph(n)(this)}toPromise(n){return n=rE(n),new n((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return t.create=e=>new t(e),t})();function rE(t){var e;return(e=t??an.Promise)!==null&&e!==void 0?e:Promise}function iT(t){return t&&q(t.next)&&q(t.error)&&q(t.complete)}function oT(t){return t&&t instanceof ai||iT(t)&&Kl(t)}function sT(t){return q(t?.lift)}function de(t){return e=>{if(sT(e))return e.lift(function(n){try{return t(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function fe(t,e,n,r,i){return new Fh(t,e,n,r,i)}var Fh=class extends ai{constructor(e,n,r,i,o,s){super(e),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(l){e.error(l)}}:super._next,this._error=i?function(a){try{i(a)}catch(l){e.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};var iE=fo(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var qe=(()=>{class t extends ee{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new ec(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new iE}next(n){po(()=>
vendor: 4,397 bytes, line 3
3{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){po(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){po(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:i,observers:o}=this;return r||i?Ah:(this.currentObservers=null,o.push(n),new rt(()=>{this.currentObservers=null,Rs(o,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:i,isStopped:o}=this;r?n.error(i):o&&n.complete()}asObservable(){let n=new ee;return n.source=this,n}}return t.create=(e,n)=>new ec(e,n),t})(),ec=class extends qe{constructor(e,n){super(),this.destination=e,this.source=n}next(e){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,e)}error(e){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,e)}complete(){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||n===void 0||n.call(e)}_subscribe(e){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(e))!==null&&r!==void 0?r:Ah}};var it=class extends qe{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let n=super._subscribe(e);return!n.closed&&e.next(this._value),n}getValue(){let{hasError:e,thrownError:n,_value:r}=this;if(e)throw n;return this._throwIfClosed(),r}next(e){super.next(this._value=e)}};var ot=new ee(t=>t.complete());function oE(t){return t&&q(t.schedule)}function sE(t){return t[t.length-1]}function tc(t){return q(sE(t))?t.pop():void 0}function _r(t){return oE(sE(t))?t.pop():void 0}function lE(t,e,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(u){try{c(r.next(u))}catch(d){s(d)}}function l(u){try{c(r.throw(u))}catch(d){s(d)}}function c(u){u.done?o(u.value):i(u.value).then(a,l)}c((r=r.apply(t,e||[])).next())})}function aE(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function li(t){return this instanceof li?(this.v=t,this):new li(t)}function cE(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(f){return function(p){return Promise.resolve(p).then(f,d)}}function a(f,p){r[f]&&(i[f]=function(E){return new Promise(function(b,D){o.push([f,E,b,D])>1||l(f,E)})},p&&(i[f]=p(i[f])))}function l(f,p){try{c(r[f](p))}catch(E){h(o[0][3],E)}}function c(f){f.value instanceof li?Promise.resolve(f.value.v).then(u,d):h(o[0][2],f)}function u(f){l("next",f)}function d(f){l("throw",f)}function h(f,p){f(p),o.shift(),o.length&&l(o[0][0],o[0][1])}}function uE(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof aE=="function"?aE(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=t[o]&&function(s){return new Promise(function(a,l){s=t[o](s),i(a,l,s.done,s.value)})}}function i(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}}var nc=t=>t&&typeof t.length=="number"&&typeof t!="function";function rc(t){return q(t?.then)}function ic(t){return q(t[mo])}function oc(t){return Symbol.asyncIterator&&q(t?.[Symbol.asyncIterator])}function sc(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invali
3d object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function aT(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ac=aT();function lc(t){return q(t?.[ac])}function cc(t){return cE(this,arguments,function*(){let n=t.getReader();try{for(;;){let{value:r,done:i}=yield li(n.read());if(i)return yield li(void 0);yield yield li(r)}}finally{n.releaseLock()}})}function uc(t){return q(t?.getReader)}function Be(t){if(t instanceof ee)return t;if(t!=null){if(ic(t))return lT(t);if(nc(t))return cT(t);if(rc(t))return uT(t);if(oc(t))return dE(t);if(lc(t))return dT(t);if(uc(t))return fT(t)}throw sc(t)}function lT(t){return new ee(e=>{let n=t[mo]();if(q(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function cT(t){return new ee(e=>{for(let n=0;n<t.length&&!e.closed;n++)e.next(t[n]);e.complete()})}function uT(t){return new ee(e=>{t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,Xl)})}function dT(t){return new ee(e=>{for(let n of t)if(e.next(n),e.closed)return;e.complete()})}function dE(t){return new ee(e=>{hT(t,e).catch(n=>e.error(n))})}function fT(t){return dE(cc(t))}function hT(t,e){var n,r,i,o;return lE(this,void 0,void 0,function*(){try{for(n=uE(t);r=yield n.next(),!r.done;){let s=r.value;if(e.next(s),e.closed)return}}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=n.return)&&(yield o.call(n))}finally{if(i)throw i.error}}e.complete()})}function _t(t,e,n,r=0,i=!1){let o=e.schedule(function(){n(),i?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(o),!i)return o}function dc(t,e=0){return de((n,r)=>{n.subscribe(fe(r,i=>_t(r,t,()=>r.next(i),e),()=>_t(r,t,()=>r.complete(),e),i=>_t(r,t,()=>r.error(i),e)))})}function fc(t,e=0){return de((n,r)=>{r.add(t.schedule(()=>n.subscribe(r),e))})}function fE(t,e){return Be(t).pipe(fc(e),dc(e))}function hE(t,e){return Be(t).pipe(fc(e),dc(e))}function pE(t,e){return new ee(n=>{let r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())})})}function gE(t,e){return new ee(n=>{let r;return _t(n,e,()=>{r=t[ac](),_t(n,e,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){n.error(s);return}o?n.complete():n.next(i)},0,!0)}),()=>q(r?.return)&&r.return()})}function hc(t,e){if(!t)throw new Error("Iterable cannot be null");return new ee(n=>{_t(n,e,()=>{let r=t[Symbol.asyncIterator]();_t(n,e,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function mE(t,e){return hc(cc(t),e)}function vE(t,e){if(t!=null){if(ic(t))return fE(t,e);if(nc(t))return pE(t,e);if(rc(t))return hE(t,e);if(oc(t))return hc(t,e);if(lc(t))return gE(t,e);if(uc(t))return mE(t,e)}throw sc(t)}function He(t,e){return e?vE(t,e):Be(t)}function Q(...t){let e=_r(t);return He(t,e)}function Lh(t,e){let n=q(t)?t:()=>t,r=i=>i.error(n());return new ee(e?i=>e.schedule(r,0,i):r)}function pc(t){return!!t&&(t instanceof ee||q(t.lift)&&q(t.subscribe))}var ci=fo(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function ve(t,e){return de((n,r)=>{let i=0;n.subscribe(fe(r,o=>{r.next(t.call(e,o,i++))}))})}var{isArray:pT}=Array;function gT(t,e){return pT(e)?t(...e):t(e)}function gc(t){return ve(e=>gT(t,e))}var{isArray:mT}=Array,{getPrototypeOf:vT,prototype:yT,keys:bT}=Object;function mc(t){if(t.length===1){let e=t[0];if(mT(e))return{args:e,keys:null};if(ET(e)){let n=bT(e);return{args:n.map(r=>e[r]),keys:n}}}return{args:t,keys:null}}function ET(t){return t&&typeof t=="object"&&vT(t)===yT}function vc(t,e){return t.reduce((n,r,i)=>(n[r]=e[i],n),{})}function jh(...t){let e=_r(t),n=tc(t),{args:r,keys:i}=mc(t);if(r.length===0)return He([],e);let o=new ee(DT(r,e,i?s=>vc(i,s):ln));return n?o.pipe(gc(n)):o}function DT(t,e,n=ln){return r=>{yE(e,()=>{let{length:i}=t,o=new Array(i),s=i,a=i;for(let l=0;l<i;l++)yE(e,()=>{let c=He(t[l],e),u=!1;c.subscribe(fe(r,d=>{o[l]=d,u||(u=!0,a--),a||r.next(n(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}function yE(t,e,n){t?_t(n,t,e):e()}function bE(t,e,n,r,i,o,s,a){let l=[],c=0,u=0,d=!1,h=()=>{d&&!l.length&&!c&&e.complete()},f=E=>c<r?p(E):l.push(E),p=E=>{o&&e.next(E),c++;let b=!1;Be(n(E,u++)).subscribe(fe(e,D=>
vendor: 5,367 bytes, lines 3-4
3{i?.(D),o?f(D):e.next(D)},()=>{b=!0},void 0,()=>{if(b)try{for(c--;l.length&&c<r;){let D=l.shift();s?_t(e,s,()=>p(D)):p(D)}h()}catch(D){e.error(D)}}))};return t.subscribe(fe(e,f,()=>{d=!0,h()})),()=>{a?.()}}function gt(t,e,n=1/0){return q(e)?gt((r,i)=>ve((o,s)=>e(r,o,i,s))(Be(t(r,i))),n):(typeof e=="number"&&(n=e),de((r,i)=>bE(r,i,t,n)))}function EE(t=1/0){return gt(ln,t)}function DE(){return EE(1)}function vo(...t){return DE()(He(t,_r(t)))}function Os(t){return new ee(e=>{Be(t()).subscribe(e)})}function Vh(...t){let e=tc(t),{args:n,keys:r}=mc(t),i=new ee(o=>{let{length:s}=n;if(!s){o.complete();return}let a=new Array(s),l=s,c=s;for(let u=0;u<s;u++){let d=!1;Be(n[u]).subscribe(fe(o,h=>{d||(d=!0,c--),a[u]=h},()=>l--,void 0,()=>{(!l||!d)&&(c||o.next(r?vc(r,a):a),o.complete())}))}});return e?i.pipe(gc(e)):i}function Rt(t,e){return de((n,r)=>{let i=0;n.subscribe(fe(r,o=>t.call(e,o,i++)&&r.next(o)))})}function ui(t){return de((e,n)=>{let r=null,i=!1,o;r=e.subscribe(fe(n,void 0,void 0,s=>{o=Be(t(s,ui(t)(e))),r?(r.unsubscribe(),r=null,o.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(n))})}function yo(t,e){return q(e)?gt(t,e,1):gt(t,1)}function CE(t){return de((e,n)=>{let r=!1;e.subscribe(fe(n,i=>{r=!0,n.next(i)},()=>{r||n.next(t),n.complete()}))})}function Yn(t){return t<=0?()=>ot:de((e,n)=>{let r=0;e.subscribe(fe(n,i=>{++r<=t&&(n.next(i),t<=r&&n.complete())}))})}function _E(t=CT){return de((e,n)=>{let r=!1;e.subscribe(fe(n,i=>{r=!0,n.next(i)},()=>r?n.complete():n.error(t())))})}function CT(){return new ci}function ks(t){return de((e,n)=>{try{e.subscribe(n)}finally{n.add(t)}})}function Qn(t,e){let n=arguments.length>=2;return r=>r.pipe(t?Rt((i,o)=>t(i,o,r)):ln,Yn(1),n?CE(e):_E(()=>new ci))}function yc(t){return t<=0?()=>ot:de((e,n)=>{let r=[];e.subscribe(fe(n,i=>{r.push(i),t<r.length&&r.shift()},()=>{for(let i of r)n.next(i);n.complete()},void 0,()=>{r=null}))})}function Bh(...t){let e=_r(t);return de((n,r)=>{(e?vo(t,n,e):vo(t,n)).subscribe(r)})}function cn(t,e){return de((n,r)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&r.complete();n.subscribe(fe(r,l=>{i?.unsubscribe();let c=0,u=o++;Be(t(l,u)).subscribe(i=fe(r,d=>r.next(e?e(l,d,u,c++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function Ps(t){return de((e,n)=>{Be(t).subscribe(fe(n,()=>n.complete(),Ns)),!n.closed&&e.subscribe(n)})}function Tn(t,e,n){let r=q(t)||e||n?{next:t,error:e,complete:n}:t;return r?de((i,o)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;i.subscribe(fe(o,l=>{var c;(c=r.next)===null||c===void 0||c.call(r,l),o.next(l)},()=>{var l;a=!1,(l=r.complete)===null||l===void 0||l.call(r),o.complete()},l=>{var c;a=!1,(c=r.error)===null||c===void 0||c.call(r,l),o.error(l)},()=>{var l,c;a&&((l=r.unsubscribe)===null||l===void 0||l.call(r)),(c=r.finalize)===null||c===void 0||c.call(r)}))}):ln}var Hh;function bc(){return Hh}function An(t){let e=Hh;return Hh=t,e}var wE=Symbol("NotFound");function bo(t){return t===wE||t?.name==="\u0275NotFound"}var wc="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",M=class extends Error{code;constructor(e,n){super(Xn(e,n)),this.code=e}};function ST(t){return`NG0${Math.abs(t)}`}function Xn(t,e){return`${ST(t)}${e?": "+e:""}`}var gi=globalThis;function he(t){for(let e in t)if(t[e]===he)return e;throw Error("")}function AE(t,e){for(let n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function Kn(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(Kn).join(", ")}]`;if(t==null)return""+t;let e=t.overriddenName||t.name;if(e)return`${e}`;let n=t.toString();if(n==null)return""+n;let r=n.indexOf(`
4`);return r>=0?n.slice(0,r):n}function np(t,e){return t?e?`${t} ${e}`:t:e||""}var IT=he({__forward_ref__:he});function un(t){return t.__forward_ref__=un,t.toString=function(){return Kn(this())},t}function st(t){return rp(t)?t():t}function rp(t){return typeof t=="function"&&t.hasOwnProperty(IT)&&t.__forward_ref__===un}function x(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function kt(t){return{providers:t.providers||[],imports:t.imports||[]}}function Hs(t){return MT(t,Sc)}function ip(t){return Hs(t)!==null}function MT(t,e){return t.hasOwnProperty(e)&&t[e]||null}function TT(t){let e=t?.[Sc]??null;return e||null}function $h(t){return t&&t.hasOwnProperty(Dc)?t[Dc]:null}var Sc=he({\u0275prov:he}),Dc=he({\u0275inj:he}),T=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(e,n){this._desc=e,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=x({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function op(t){return t&&!!t.\u0275providers}var sp=he({\u0275cmp:he}),ap=he({\u0275dir:he}),lp=he({\u0275pipe:he}),cp=he({\u0275mod:he}),Ls=he({\u0275fac:he}),mi=he({__NG_ELEMENT_ID__:he}),SE=he({__NG_ENV_ID__:he});function up(t){return Ic(t,"@NgModule"),t[cp]||null}function Mr(t){return Ic(t,"@Component"),t[sp]||null}function dp(t){return Ic(t,"@Directive"),t[ap]||null}function xE(t){return Ic(t,"@Pipe"),t[lp]||null}function Ic(t,e){if(t==null)throw new M(-919,!1)}function Do(t){return typeof t=="string"?t:t==null?"":String(t)}function RE(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.n
vendor: 11,312 bytes, line 4
4ame||t.type.toString():Do(t)}var NE=he({ngErrorCode:he}),AT=he({ngErrorMessage:he}),xT=he({ngTokenPath:he});function fp(t,e){return OE("",-200,e)}function Mc(t,e){throw new M(-201,!1)}function OE(t,e,n){let r=new M(e,t);return r[NE]=e,r[AT]=t,n&&(r[xT]=n),r}function RT(t){return t[NE]}var zh;function kE(){return zh}function mt(t){let e=zh;return zh=t,e}function hp(t,e,n){let r=Hs(t);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(e!==void 0)return e;Mc(t,"")}var NT={},di=NT,OT="__NG_DI_FLAG__",Wh=class{injector;constructor(e){this.injector=e}retrieve(e,n){let r=fi(n)||0;try{return this.injector.get(e,r&8?null:di,r)}catch(i){if(bo(i))return i;throw i}}};function kT(t,e=0){let n=bc();if(n===void 0)throw new M(-203,!1);if(n===null)return hp(t,void 0,e);{let r=PT(e),i=n.retrieve(t,r);if(bo(i)){if(r.optional)return null;throw i}return i}}function H(t,e=0){return(kE()||kT)(st(t),e)}function w(t,e){return H(t,fi(e))}function fi(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function PT(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)}}function Gh(t){let e=[];for(let n=0;n<t.length;n++){let r=st(t[n]);if(Array.isArray(r)){if(r.length===0)throw new M(900,!1);let i,o=0;for(let s=0;s<r.length;s++){let a=r[s],l=FT(a);typeof l=="number"?l===-1?i=a.token:o|=l:i=a}e.push(H(i,o))}else e.push(H(r))}return e}function FT(t){return t[OT]}function wr(t,e){let n=t.hasOwnProperty(Ls);return n?t[Ls]:null}function PE(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){let i=t[r],o=e[r];if(n&&(i=n(i),o=n(o)),o!==i)return!1}return!0}function FE(t){return t.flat(Number.POSITIVE_INFINITY)}function Tc(t,e){t.forEach(n=>Array.isArray(n)?Tc(n,e):e(n))}function pp(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Us(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function LE(t,e){let n=[];for(let r=0;r<t;r++)n.push(e);return n}function jE(t,e,n,r){let i=t.length;if(i==e)t.push(n,r);else if(i===1)t.push(r,t[0]),t[0]=n;else{for(i--,t.push(t[i-1],t[i]);i>e;){let o=i-2;t[i]=t[o],i--}t[e]=n,t[e+1]=r}}function VE(t,e,n){let r=Co(t,e);return r>=0?t[r|1]=n:(r=~r,jE(t,r,e,n)),r}function Ac(t,e){let n=Co(t,e);if(n>=0)return t[n|1]}function Co(t,e){return LT(t,e,1)}function LT(t,e,n){let r=0,i=t.length>>n;for(;i!==r;){let o=r+(i-r>>1),s=t[o<<n];if(e===s)return o<<n;s>e?i=o:r=o+1}return~(i<<n)}var Tr={},Nt=[],_o=new T(""),gp=new T("",-1),mp=new T(""),js=class{get(e,n=di){if(n===di){let i=OE("",-201);throw i.name="\u0275NotFound",i}return n}};function wo(t){return{\u0275providers:t}}function xc(...t){return{\u0275providers:vp(!0,t),\u0275fromNgModule:!0}}function vp(t,...e){let n=[],r=new Set,i,o=s=>{n.push(s)};return Tc(e,s=>{let a=s;Cc(a,o,[],r)&&(i||=[],i.push(a))}),i!==void 0&&BE(i,o),n}function BE(t,e){for(let n=0;n<t.length;n++){let{ngModule:r,providers:i}=t[n];yp(i,o=>{e(o,r)})}}function Cc(t,e,n,r){if(t=st(t),!t)return!1;let i=null,o=$h(t),s=!o&&Mr(t);if(!o&&!s){let l=t.ngModule;if(o=$h(l),o)i=l;else return!1}else{if(s&&!s.standalone)return!1;i=t}let a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){let l=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let c of l)Cc(c,e,n,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let c;Tc(o.imports,u=>{Cc(u,e,n,r)&&(c||=[],c.push(u))}),c!==void 0&&BE(c,e)}if(!a){let c=wr(i)||(()=>new i);e({provide:i,useFactory:c,deps:Nt},i),e({provide:mp,useValue:i,multi:!0},i),e({provide:_o,useValue:()=>H(i),multi:!0},i)}let l=o.providers;if(l!=null&&!a){let c=t;yp(l,u=>{e(u,c)})}}else return!1;return i!==t&&t.providers!==void 0}function yp(t,e){for(let n of t)op(n)&&(n=n.\u0275providers),Array.isArray(n)?yp(n,e):e(n)}var jT=he({provide:String,useValue:he});function HE(t){return t!==null&&typeof t=="object"&&jT in t}function VT(t){return!!(t&&t.useExisting)}function BT(t){return!!(t&&t.useFactory)}function hi(t){return typeof t=="function"}function UE(t){return!!t.useClass}var $s=new T(""),Ec={},IE={},Uh;function zs(){return Uh===void 0&&(Uh=new js),Uh}var Pe=class{},pi=class extends Pe{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(e,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,Yh(e,s=>this.processProvider(s)),this.records.set(gp,Eo(void 0,this)),i.has("environment")&&this.records.set(Pe,Eo(void 0,this));let o=this.records.get($s);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(mp,Nt,{self:!0}))}retrieve(e,n){let r=fi(n)||0;try{return this.get(e,di,r)}catch(i){if(bo(i))return i;throw i}}destroy(){Fs(this),this._destroyed=!0;let e=j(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),j(e)}}onDestroy(e){return Fs(this),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){Fs(this);let n=An(this),r=mt(void 0),i;try{return e()}finally{An(n),mt(r)}}get(e,n=di,r){if(Fs(this),e.hasOwnProperty(SE))return e[SE](this);let i=fi(r),o,s=An(this),a=mt(void 0);try{if(!(i&4)){let c=this.records.get(e);if(c===void 0){let u=WT(e)&&Hs(e);u&&this.injectableDefInScope(u)?c=Eo(qh(e),Ec):c=null,this.records.set(e,c)}if(c!=null)return this.hydrate(e,c,i)}let l=i&2?zs():this.parent;return n=i&8&&n===di?null:n,l.get(e,n)}catch(l){let c=RT(l);throw c===-200||c===-201?new M(c,null):l}finally{mt(a),An(s)}}resolveInjectorInitializers(){let e=j(null),n=An(this),r=mt(void 0),i;try{let o=this.get(_o,Nt,{self:!0});for(let s of o)s()}finally{An(n),mt(r),j(e)}}toString(){let e=[],n=this.records;for(let r of n.keys())e.push(Kn(r));return`R3Injector[${e.join(", ")}]`}processProvider(e){e=st(e);let n=hi(e)?e:st(e&&e.provide),r=UT(e);if(!hi(e)&&e.multi===!0){let i=this.records.get(n);i||(i=Eo(void 0,Ec,!0),i.factory=()=>Gh(i.multi),this.records.set(n,i)),n=e,i.multi.push(e)}this.records.set(n,r)}hydrate(e,n,r){let i=j(null);try{if(n.value===IE)throw fp(Kn(e));return n.value===Ec&&(n.value=IE,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&zT(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{j(i)}}injectableDefInScope(e){if(!e.providedIn)return!1;let n=st(e.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(e){let n=this._onDestroyHooks.indexOf(e);n!==-1&&this._onDestroyHooks.splice(n,1)}};function qh(t){let e=Hs(t),n=e!==null?e.factory:wr(t);if(n!==null)return n;if(t instanceof T)throw new M(204,!1);if(t instanceof Function)return HT(t);throw new M(204,!1)}function HT(t){if(t.length>0)throw new M(204,!1);let n=TT(t);return n!==null?()=>n.factory(t):()=>new t}function UT(t){if(HE(t))return Eo(void 0,t.useValue);{let e=bp(t);return Eo(e,Ec)}}function bp(t,e,n){let r;if(hi(t)){let i=st(t);return wr(i)||qh(i)}else if(HE(t))r=()=>st(t.useValue);else if(BT(t))r=()=>t.useFactory(...Gh(t.deps||[]));else if(VT(t))r=(i,o)=>H(st(t.useExisting),o!==void 0&&o&8?8:void 0);else{let i=st(t&&(t.useClass||t.provide));if($T(t))r=()=>new i(...Gh(t.deps));else return wr(i)||qh(i)}return r}function Fs(t){if(t.destroyed)throw new M(205,!1)}function Eo(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function $T(t){return!!t.deps}function zT(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function WT(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken"}function Yh(t,e){for(let n of t)Array.isArray(n)?Yh(n,e):n&&op(n)?Yh(n.\u0275providers,e):e(n)}function Ke(t,e){let n;t instanceof pi?(Fs(t),n=t):n=new Wh(t);let r,i=An(n),o=mt(void 0);try{return e()}finally{An(i),mt(o)}}function $E(){return kE()!==void 0||bc()!=null}var dn=0,P=1,z=2,Ye=3,Gt=4,yt=5,vi=6,So=7,Le=8,Jn=9,xn=10,Ce=11,Io=12,Ep=13,yi=14,bt=15,Ar=16,bi=17,Rn=18,er=19,Dp=20,Zn=21,Rc=22,Ws=23,Pt=24,Ei=25,Di=26,Oe=27,zE=1,Cp=6,xr=7,Gs=8,Ci=9,Fe=10;function Nn(t){return Array.isArray(t)&&typeof t[zE]=="object"}function fn(t){return Array.isArray(t)&&t[zE]===!0}function _p(t){return(t.flags&4)!==0}function Rr(t){return t.componentOffset>-1}function Mo(t){return(t.flags&1)===1}function On(t){return!!t.template}function To(t){return(t[z]&512)!==0}function _i(t){return(t[z]&256)===256}var WE="svg",GE="math";function qt(t){for(;Array.isArray(t);)t=t[dn];return t}function wp(t,e){return qt(e[t])}function kn(t,e){return qt(e[t.index])}function qs(t,e){return t.data[e]}function qE(t,e){return t[e]}function Sp(t,e,n,r){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}function Yt(t,e){let n=e[t];return Nn(n)?n:n[dn]}function YE(t){return(t[z]&4)===4}function Nc(t){return(t[z]&128)===128}function QE(t){return fn(t[Ye])}function Qt(t,e){return e==null?null:t[e]}function Ip(t){t[bi]=0}function Mp(t){t[z]&1024||(t[z]|=1024,Nc(t)&&Ao(t))}function ZE(t,e){for(;t>0;)e=e[yi],t--;return e}function Ys(t){return!!(t[z]&9216||t[Pt]?.dirty)}function Oc(t){t[xn].changeDetectionScheduler?.notify(8),t[z]&64&&(t[z]|=1024),Ys(t)&&Ao(t)}function Ao(t){t[xn].changeDetectionScheduler?.notify(0);let e=Sr(t);for(;e!==null&&!(e[z]&8192||(e[z]|=8192,!Nc(e)));)e=Sr(e)}function Tp(t,e){if(_i(t))throw new M(911,!1);t[Zn]===null&&(t[Zn]=[]),t[Zn].push(e)}function KE(t,e){if(t[Zn]===null)return;let n=t[Zn].indexOf(e);n!==-1&&t[Zn].splice(n,1)}function Sr(t){let e=t[Ye];return fn(e)?e[Ye]:e}function Ap(t){return t[So]??=[]}function xp(t){return t.cleanup??=[]}function XE(t,e,n,r){let i=Ap(e);i.push(n),t.firstCreatePass&&xp(t).push(r,i.length-1)}var K={lFrame:cD(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Qh=!1;function JE(){return K.lFrame.elementDepthCount}function eD(){K.lFrame.elementDepthCount++}function Rp(){K.lFrame.elementDepthCount--}function kc(){return K.bindingsEnabled}function Np(){return K.skipHydrationRootTNode!==null}function Op(t){return K.skipHydrationRootTNode===t}function kp(){K.skipHydrationRootTNode=null}function $(){return K.lFrame.lView}function ke(){return K.lFrame.tView}function te(t){return K.lFrame.contextLView=t,t[Le]}function ne(t){return K.lFrame.contextLView=null,t}function Xe(){let t=Pp();for(;t!==null&&t.type===64;)t=t.parent;return t}function Pp(){return K.lFrame.currentTNode}function tD(){let t=K.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function xo(t,e){let n=K.lFrame;n.currentTNode=t,n.isParent=e}function Fp(){return K.lFrame.isParent}function Lp(){K.lFrame.isParent=!1}function jp(){return Qh}function Vp(t){let e=Qh;return Qh=t,e}function Bp(){let t=K.lFrame,e=t.bindingRootIndex;return e===-1&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function nD(){return K.lFrame.bindingIndex}function rD(t){return K.lFrame.bindingIndex=t}function wi(){return K.lFrame.bindingIndex++}function Hp(t){let e=K.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function iD(){return K.lFrame.inI18n}function oD(t,e){let n=K.lFrame;n.bindingIndex=n.bindingRootIndex=t,Pc(e)}function sD(){return K.lFrame.currentDirectiveIndex}function Pc(t){K.lFrame.currentDirectiveIndex=t}function aD(t){let e=K.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function Up(){return K.lFrame.currentQueryIndex}
vendor: 16,787 bytes, line 4
4function Fc(t){K.lFrame.currentQueryIndex=t}function GT(t){let e=t[P];return e.type===2?e.declTNode:e.type===1?t[yt]:null}function $p(t,e,n){if(n&4){let i=e,o=t;for(;i=i.parent,i===null&&!(n&1);)if(i=GT(o),i===null||(o=o[yi],i.type&10))break;if(i===null)return!1;e=i,t=o}let r=K.lFrame=lD();return r.currentTNode=e,r.lView=t,!0}function Lc(t){let e=lD(),n=t[P];K.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function lD(){let t=K.lFrame,e=t===null?null:t.child;return e===null?cD(t):e}function cD(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function uD(){let t=K.lFrame;return K.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var zp=uD;function jc(){let t=uD();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function dD(t){return(K.lFrame.contextLView=ZE(t,K.lFrame.contextLView))[Le]}function tr(){return K.lFrame.selectedIndex}function Nr(t){K.lFrame.selectedIndex=t}function Vc(){let t=K.lFrame;return qs(t.tView,t.selectedIndex)}function fD(){return K.lFrame.currentNamespace}var hD=!0;function Bc(){return hD}function Qs(t){hD=t}function Zh(t,e=null,n=null,r){let i=Wp(t,e,n,r);return i.resolveInjectorInitializers(),i}function Wp(t,e=null,n=null,r,i=new Set){let o=[n||Nt,xc(t)];return r=r||(typeof t=="object"?void 0:Kn(t)),new pi(o,e||zs(),r||null,i)}var Ot=class t{static THROW_IF_NOT_FOUND=di;static NULL=new js;static create(e,n){if(Array.isArray(e))return Zh({name:""},n,e,"");{let r=e.name??"";return Zh({name:r},e.parent,e.providers,r)}}static \u0275prov=x({token:t,providedIn:"any",factory:()=>H(gp)});static __NG_ELEMENT_ID__=-1},Ue=new T(""),Ft=(()=>{class t{static __NG_ELEMENT_ID__=qT;static __NG_ENV_ID__=n=>n}return t})(),Kh=class extends Ft{_lView;constructor(e){super(),this._lView=e}get destroyed(){return _i(this._lView)}onDestroy(e){let n=this._lView;return Tp(n,e),()=>KE(n,e)}};function qT(){return new Kh($())}var pD=!1,gD=new T(""),nr=(()=>{class t{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new it(!1);debugTaskTracker=w(gD,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new ee(n=>{n.next(!1),n.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),this.debugTaskTracker?.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.debugTaskTracker?.remove(n),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=x({token:t,providedIn:"root",factory:()=>new t})}return t})(),Xh=class extends qe{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(e=!1){super(),this.__isAsync=e,$E()&&(this.destroyRef=w(Ft,{optional:!0})??void 0,this.pendingTasks=w(nr,{optional:!0})??void 0)}emit(e){let n=j(null);try{super.next(e)}finally{j(n)}}subscribe(e,n,r){let i=e,o=n||(()=>null),s=r;if(e&&typeof e=="object"){let l=e;i=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=this.wrapInTimeout(o),i&&(i=this.wrapInTimeout(i)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:i,error:o,complete:s});return e instanceof rt&&e.add(a),a}wrapInTimeout(e){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{e(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},Ne=Xh;function _c(...t){}function Gp(t){let e,n;function r(){t=_c;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),e!==void 0&&clearTimeout(e)}catch{}}return e=setTimeout(()=>{t(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{t(),r()})),()=>r()}function mD(t){return queueMicrotask(()=>t()),()=>{t=_c}}var qp="isAngularZone",Vs=qp+"_ID",YT=0,vt=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Ne(!1);onMicrotaskEmpty=new Ne(!1);onStable=new Ne(!1);onError=new Ne(!1);constructor(e){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=pD}=e;if(typeof Zone>"u")throw new M(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&r,s.shouldCoalesceRunChangeDetection=i,s.callbackScheduled=!1,s.scheduleInRootZone=o,KT(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(qp)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new M(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new M(909,!1)}run(e,n,r){return this._inner.run(e,n,r)}runTask(e,n,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,e,QT,_c,_c);try{return o.runTask(s,n,r)}finally{o.cancelTask(s)}}runGuarded(e,n,r){return this._inner.runGuarded(e,n,r)}runOutsideAngular(e){return this._outer.run(e)}},QT={};function Yp(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function ZT(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function e(){Gp(()=>{t.callbackScheduled=!1,Jh(t),t.isCheckStableRunning=!0,Yp(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{e()}):t._outer.run(()=>{e()}),Jh(t)}function KT(t){let e=()=>{ZT(t)},n=YT++;t._inner=t._inner.fork({name:"angular",properties:{[qp]:!0,[Vs]:n,[Vs+n]:!0},onInvokeTask:(r,i,o,s,a,l)=>{if(XT(l))return r.invokeTask(o,s,a,l);try{return ME(t),r.invokeTask(o,s,a,l)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),TE(t)}},onInvoke:(r,i,o,s,a,l,c)=>{try{return ME(t),r.invoke(o,s,a,l,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!JT(l)&&e(),TE(t)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,Jh(t),Yp(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,i,o,s)=>(r.handleError(o,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function Jh(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function ME(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function TE(t){t._nesting--,Yp(t)}var Bs=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Ne;onMicrotaskEmpty=new Ne;onStable=new Ne;onError=new Ne;run(e,n,r){return e.apply(n,r)}runGuarded(e,n,r){return e.apply(n,r)}runOutsideAngular(e){return e()}runTask(e,n,r,i){return e.apply(n,r)}};function XT(t){return vD(t,"__ignore_ng_zone__")}function JT(t){return vD(t,"__scheduler_tick__")}function vD(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}var Wt=class{_console=console;handleError(e){this._console.error("ERROR",e)}},hn=new T("",{factory:()=>{let t=w(vt),e=w(Pe),n;return r=>{t.runOutsideAngular(()=>{e.destroyed&&!n?setTimeout(()=>{throw r}):(n??=e.get(Wt),n.handleError(r))})}}}),yD={provide:_o,useValue:()=>{let t=w(Wt,{optional:!0})},multi:!0};function W(t,e){let[n,r,i]=Mh(t,e?.equal),o=n,s=o[pt];return o.set=r,o.update=i,o.asReadonly=Qp.bind(o),o}function Qp(){let t=this[pt];if(t.readonlyFn===void 0){let e=()=>this();e[pt]=t,t.readonlyFn=e}return t.readonlyFn}var Hc=(()=>{class t{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=eA}return t})();function eA(){return new Hc($(),Xe())}var Ir=class{},Zs=new T("",{factory:()=>!0});var Zp=new T(""),Ks=(()=>{class t{internalPendingTasks=w(nr);scheduler=w(Ir);errorHandler=w(hn);add(){let n=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(n))}}run(n){let r=this.add();n().catch(this.errorHandler).finally(r)}static \u0275prov=x({token:t,providedIn:"root",factory:()=>new t})}return t})(),Kp=(()=>{class t{static \u0275prov=x({token:t,providedIn:"root",factory:()=>new ep})}return t})(),ep=class{dirtyEffectCount=0;queues=new Map;add(e){this.enqueue(e),this.schedule(e)}schedule(e){e.dirty&&this.dirtyEffectCount++}remove(e){let n=e.zone,r=this.queues.get(n);r.has(e)&&(r.delete(e),e.dirty&&this.dirtyEffectCount--)}enqueue(e){let n=e.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(e)||r.add(e)}flush(){for(;this.dirtyEffectCount>0;){let e=!1;for(let[n,r]of this.queues)n===null?e||=this.flushQueue(r):e||=n.run(()=>this.flushQueue(r));e||(this.dirtyEffectCount=0)}}flushQueue(e){let n=!1;for(let r of e)r.dirty&&(this.dirtyEffectCount--,n=!0,r.run());return n}},tp=class{[pt];constructor(e){this[pt]=e}destroy(){this[pt].destroy()}};function Qe(t){return Th(t)}function aa(t){return{toString:t}.toString()}function lA(t){return typeof t=="function"}function qD(t,e,n,r){e!==null?e.applyValueToInputSignal(e,r):t[n]=r}var Yc=class{previousValue;currentValue;firstChange;constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}},vn=(()=>{let t=()=>YD;return t.ngInherit=!0,t})();function YD(t){return t.type.prototype.ngOnChanges&&(t.setInput=uA),cA}function cA(){let t=ZD(this),e=t?.current;if(e){let n=t.previous;if(n===Tr)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function uA(t,e,n,r,i){let o=this.declaredInputs[r],s=ZD(t)||dA(t,{previous:Tr,current:null}),a=s.current||(s.current={}),l=s.previous,c=l[o];a[o]=new Yc(c&&c.currentValue,n,l===Tr),qD(t,e,i,n)}var QD="__ngSimpleChanges__";function ZD(t){return t[QD]||null}function dA(t,e){return t[QD]=e}var bD=[];var pe=function(t,e=null,n){for(let r=0;r<bD.length;r++){let i=bD[r];i(t,e,n)}},se=(function(t){return t[t.TemplateCreateStart=0]="TemplateCreateStart",t[t.TemplateCreateEnd=1]="TemplateCreateEnd",t[t.TemplateUpdateStart=2]="TemplateUpdateStart",t[t.TemplateUpdateEnd=3]="TemplateUpdateEnd",t[t.LifecycleHookStart=4]="LifecycleHookStart",t[t.LifecycleHookEnd=5]="LifecycleHookEnd",t[t.OutputStart=6]="OutputStart",t[t.OutputEnd=7]="OutputEnd",t[t.BootstrapApplicationStart=8]="BootstrapApplicationStart",t[t.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",t[t.BootstrapComponentStart=10]="BootstrapComponentStart",t[t.BootstrapComponentEnd=11]="BootstrapComponentEnd",t[t.ChangeDetectionStart=12]="ChangeDetectionStart",t[t.ChangeDetectionEnd=13]="ChangeDetectionEnd",t[t.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",t[t.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",t[t.AfterRenderHooksStart=16]="AfterRenderHooksStart",t[t.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",t[t.ComponentStart=18]="ComponentStart",t[t.ComponentEnd=19]="ComponentEnd",t[t.DeferBlockStateStart=20]="DeferBlockStateStart",t[t.DeferBlockStateEnd=21]="DeferBlockStateEnd",t[t.DynamicComponentStart=22]="DynamicComponentStart",t[t.DynamicComponentEnd=23]="DynamicComponentEnd",t[t.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",t[t.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",t})(se||{});function fA(t,e,n){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(r){let s=YD(e);(n.preOrderHooks??=[]).push(t,s),(n.preOrderCheckHooks??=[]).push(t,s)}i&&(n.preOrderHooks??=[]).push(0-t,i),o&&((n.preOrderHooks??=[]).push(t,o),(n.preOrderCheckHooks??=[]).push(t,o))}function KD(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n<r;n++){let o=t.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=o;s&&(t.contentHooks??=[]).push(-n,s),a&&((t.contentHooks??=[]).push(n,a),(t.contentCheckHooks??=[]).push(n,a)),l&&(t.viewHooks??=[]).push(-n,l),c&&((t.viewHooks??=[]).push(n,c),(t.viewCheckHooks??=[]).push(n,c)),u!=null&&(t.destroyHooks??=[]).push(n,u)}}function $c(t,e,n){XD(t,e,3,n)}function zc(t,e,n,r){(t[z]&3)===n&&XD(t,e,n,r)}function Xp(t,e){let n=t[z];(n&3)===e&&(n&=16383,n+=1,t[z]=n)}function XD(t,e,n,r){let i=r!==void 0?t[bi]&65535:0,o=r??-1,s=e.length-1,a=0;for(let l=i;l<s;l++)if(typeof e[l+1]=="number"){if(a=e[l],r!=null&&a>=r)break}else e[l]<0&&(t[bi]+=65536),(a<o||o==-1)&&(hA(t,n,e,l),t[bi]=(t[bi]&4294901760)+l+2),l++}function ED(t,e){pe(se.LifecycleHookStart,t,e);let n=j(null);try{e.call(t)}finally{j(n),pe(se.LifecycleHookEnd,t,e)}}function hA(t,e,n,r){let i=n[r]<0,o=n[r+1],s=i?-n[r]:n[r],a=t[s];i?t[z]>>14<t[bi]>>16&&(t[z]&3)===e&&(t[z]+=16384,ED(a,o)):ED(a,o)}var No=-1,Ii=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(e,n,r,i){this.factory=e,this.name=i,this.canSeeViewProviders=n,this.injectImpl=r}};function pA(t){return(t.flags&8)!==0}function gA(t){return(t.flags&16)!==0}function mA(t,e,n){let r=0;for(;r<n.length;){let i=n[r];if(typeof i=="number"){if(i!==0)break;r++;let o=n[r++],s=n[r++],a=n[r++];t.setAttribute(e,s,a,o)}else{let o=i,s=n[++r];yA(o)?t.setProperty(e,o,s):t.setAttribute(e,o,s),r++}}return r}function vA(t){return t===3||t===4||t===6}function yA(t){return t.charCodeAt(0)===64}function Oo(t,e){if(!(e===null||e.length===0))if(t===null||t.length===0)t=e.slice();else{let n=-1;for(let r=0;r<e.length;r++){let i=e[r];typeof i=="number"?n=i:n===0||(n===-1||n===2?DD(t,n,i,null,e[++r]):DD(t,n,i,null,null))}}return t}function DD(t,e,n,r,i){let o=0,s=t.length;if(e===-1)s=-1;else for(;o<t.length;){let a=t[o++];if(typeof a=="number"){if(a===e){s=-1;break}else if(a>e){s=o-1;break}}}for(;o<t.length;){let a=t[o];if(typeof a=="number")break;if(a===n){i!==null&&(t[o+1]=i);return}o++,i!==null&&o++}s!==-1&&(t.splice(s,0,e),o=s+1),t.splice(o++,0,n),i!==null&&t.splice(o++,0,i)}function JD(t){return t!==No}function Qc(t){return t&32767}function bA(t){return t>>16}function Zc(t,e){let n=bA(t),r=e;for(;n>0;)r=r[yi],n--;return r}var cg=!0;function Kc(t){let e=cg;return cg=t,e}var EA=256,eC=EA-1,tC=5,DA=0,Pn={};function CA(t,e,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(mi)&&(r=n[mi]),r==null&&(r=n[mi]=DA++);let i=r&eC,o=1<<i;e.data[t+(i>>tC)]|=o}function Xc(t,e){let n=nC(t,e);if(n!==-1)return n;let r=e[P];r.firstCreatePass&&(t.injectorIndex=e.length,Jp(r.data,t),Jp(e,null),Jp(r.blueprint,null));let i=kg(t,e),o=t.injectorIndex;if(JD(i)){let s=Qc(i),a=Zc(i,e),l=a[P].data;for(let c=0;c<8;c++)e[o+c]=a[s+c]|l[s+c]}return e[o+8]=i,o}function Jp(t,e){t.push(0,0,0,0,0,0,0,0,e)}function nC(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function kg(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let n=0,r=null,i=e;for(;i!==null;){if(r=aC(i),r===null)return No;if(n++,i=i[yi],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return No}function ug(t,e,n){CA(t,e,n)}function rC(t,e,n){if(n&8||t!==void 0)return t;Mc(e,"NodeInjector")}function iC(t,e,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let i=t[Jn],o=mt(void 0);try{return i?i.get(e,r,n&8):hp(e,r,n&8)}finally{mt(o)}}return rC(r,e,n)}function oC(t,e,n,r=0,i){if(t!==null){if(e[z]&2048&&!(r&2)){let s=IA(t,e,n,r,Pn);if(s!==Pn)return s}let o=sC(t,e,n,r,Pn);if(o!==Pn)return o}return iC(e,n,r,i)}function sC(t,e,n,r,i){let o=wA(n);if(typeof o=="function"){if(!$p(e,t,r))return r&1?rC(i,n,r):iC(e,n,r,i);try{let s;if(s=o(r),s==null&&!(r&8))Mc(n);else return s}finally{zp()}}else if(typeof o=="number"){let s=null,a=nC(t,e),l=No,c=r&1?e[bt][yt]:null;for((a===-1||r&4)&&(l=a===-1?kg(t,e):e[a+8],l===No||!_D(r,!1)?a=-1:(s=e[P],a=Qc(l),e=Zc(l,e)));a!==-1;){let u=e[P];if(CD(o,a,u.data)){let d=_A(a,e,n,s,r,c);if(d!==Pn)return d}l=e[a+8],l!==No&&_D(r,e[P].data[a+8]===c)&&CD(o,a,e)?(s=u,a=Qc(l),e=Zc(l,e)):a=-1}}return i}function _A(t,e,n,r,i,o){let s=e[P],a=s.data[t+8],l=r==null?Rr(a)&&cg:r!=s&&(a.type&3)!==0,c=i&1&&o===a,u=Wc(a,s,n,l,c);return u!==null?ta(e,s,u,a,i):Pn}function Wc(t,e,n,r,i){let o=t.providerIndexes,s=e.data,a=o&1048575,l=t.directiveStart,c=t.directiveEnd,u=o>>20,d=r?a:a+u,h=i?a+u:c;for(let f=d;f<h;f++){let p=s[f];if(f<l&&n===p||f>
vendor: 10,254 bytes, line 4
4=l&&p.type===n)return f}if(i){let f=s[l];if(f&&On(f)&&f.type===n)return l}return null}function ta(t,e,n,r,i){let o=t[n],s=e.data;if(o instanceof Ii){let a=o;if(a.resolving){let f=RE(s[n]);throw fp(f)}let l=Kc(a.canSeeViewProviders);a.resolving=!0;let c=s[n].type||s[n],u,d=a.injectImpl?mt(a.injectImpl):null,h=$p(t,r,0);try{o=t[n]=a.factory(void 0,i,s,t,r),e.firstCreatePass&&n>=r.directiveStart&&fA(n,s[n],e)}finally{d!==null&&mt(d),Kc(l),a.resolving=!1,zp()}}return o}function wA(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(mi)?t[mi]:void 0;return typeof e=="number"?e>=0?e&eC:SA:e}function CD(t,e,n){let r=1<<t;return!!(n[e+(t>>tC)]&r)}function _D(t,e){return!(t&2)&&!(t&1&&e)}var Si=class{_tNode;_lView;constructor(e,n){this._tNode=e,this._lView=n}get(e,n,r){return oC(this._tNode,this._lView,e,fi(r),n)}};function SA(){return new Si(Xe(),$())}function rr(t){return aa(()=>{let e=t.prototype.constructor,n=e[Ls]||dg(e),r=Object.prototype,i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==r;){let o=i[Ls]||dg(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function dg(t){return rp(t)?()=>{let e=dg(st(t));return e&&e()}:wr(t)}function IA(t,e,n,r,i){let o=t,s=e;for(;o!==null&&s!==null&&s[z]&2048&&!To(s);){let a=sC(o,s,n,r|2,Pn);if(a!==Pn)return a;let l=o.parent;if(!l){let c=s[Dp];if(c){let u=c.get(n,Pn,r);if(u!==Pn)return u}l=aC(s),s=s[yi]}o=l}return i}function aC(t){let e=t[P],n=e.type;return n===2?e.declTNode:n===1?t[yt]:null}function MA(){return jo(Xe(),$())}function jo(t,e){return new ct(kn(t,e))}var ct=(()=>{class t{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=MA}return t})();function TA(t){return t instanceof ct?t.nativeElement:t}function AA(){return this._results[Symbol.iterator]()}var Jc=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new qe}constructor(e=!1){this._emitDistinctChangesOnly=e}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,n){return this._results.reduce(e,n)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,n){this.dirty=!1;let r=FE(e);(this._changesDetected=!PE(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(e){this._onDirty=e}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=AA};function lC(t){return(t.flags&128)===128}var Pg=(function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t})(Pg||{}),cC=new Map,xA=0;function RA(){return xA++}function NA(t){cC.set(t[er],t)}function fg(t){cC.delete(t[er])}var wD="__ngContext__";function ko(t,e){Nn(e)?(t[wD]=e[er],NA(e)):t[wD]=e}function uC(t){return fC(t[Io])}function dC(t){return fC(t[Gt])}function fC(t){for(;t!==null&&!fn(t);)t=t[Gt];return t}var OA;function Fg(t){OA=t}var pu=new T("",{factory:()=>kA}),kA="ng";var gu=new T(""),la=new T("",{providedIn:"platform",factory:()=>"unknown"});var mu=new T("",{factory:()=>w(Ue).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var hC="r";var pC="di";var gC=!1,mC=new T("",{factory:()=>gC});var PA=(t,e,n,r)=>{};function FA(t,e,n,r){PA(t,e,n,r)}function vu(t){return(t.flags&32)===32}var LA=()=>null;function vC(t,e,n=!1){return LA(t,e,n)}function yC(t,e){let n=t.contentQueries;if(n!==null){let r=j(null);try{for(let i=0;i<n.length;i+=2){let o=n[i],s=n[i+1];if(s!==-1){let a=t.data[s];Fc(o),a.contentQueries(2,e[s],s)}}}finally{j(r)}}}function hg(t,e,n){Fc(0);let r=j(null);try{e(t,n)}finally{j(r)}}function Lg(t,e,n){if(_p(e)){let r=j(null);try{let i=e.directiveStart,o=e.directiveEnd;for(let s=i;s<o;s++){let a=t.data[s];if(a.contentQueries){let l=n[s];a.contentQueries(1,l,s)}}}finally{j(r)}}}var gn=(function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t[t.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",t})(gn||{});var eu=class{changingThisBreaksApplicationSecurity;constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${wc})`}};function jg(t){return t instanceof eu?t.changingThisBreaksApplicationSecurity:t}function bC(t,e){let n=EC(t);if(n!=null&&n!==e){if(n==="ResourceURL"&&e==="URL")return!0;throw new Error(`Required a safe ${e}, got a ${n} (see ${wc})`)}return n===e}function EC(t){return t instanceof eu&&t.getTypeName()||null}var jA=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function DC(t){return t=String(t),t.match(jA)?t:"unsafe:"+t}var VA=/^>|^->|<!--|-->|--!>|<!-$/g,BA=/(<|>)/g,HA="\u200B$1\u200B";function UA(t){return t.replace(VA,e=>e.replace(BA,HA))}function $A(t,e){return t.createText(e)}function zA(t,e,n){t.setValue(e,n)}function WA(t,e){return t.createComment(UA(e))}function CC(t,e,n){return t.createElement(e,n)}function tu(t,e,n,r,i){t.insertBefore(e,n,r,i)}function _C(t,e,n){t.appendChild(e,n)}function SD(t,e,n,r,i){r!==null?tu(t,e,n,r,i):_C(t,e,n)}function wC(t,e,n,r){t.removeChild(null,e,n,r)}function GA(t,e,n){t.setAttribute(e,"style",n)}function qA(t,e,n){n===""?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n)}function SC(t,e,n){let{mergedAttrs:r,classes:i,styles:o}=n;r!==null&&mA(t,e,r),i!==null&&qA(t,e,i),o!==null&&GA(t,e,o)}var Vg=(function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t})(Vg||{});function ir(t){let e=YA();return e?e.sanitize(Vg.URL,t)||"":bC(t,"URL")?jg(t):DC(Do(t))}function YA(){let t=$();return t&&t[xn].sanitizer}function IC(t){return t instanceof Function?t():t}function QA(t,e,n){let r=t.length;for(;;){let i=t.indexOf(e,n);if(i===-1)return i;if(i===0||t.charCodeAt(i-1)<=32){let o=e.length;if(i+o===r||t.charCodeAt(i+o)<=32)return i}n=i+1}}var MC="ng-template";function ZA(t,e,n,r){let i=0;if(r){for(;i<e.length&&typeof e[i]=="string";i+=2)if(e[i]==="class"&&QA(e[i+1].toLowerCase(),n,0)!==-1)return!0}else if(Bg(t))return!1;if(i=e.indexOf(1,i),i>-1){let o;for(;++i<e.length&&typeof(o=e[i])=="string";)if(o.toLowerCase()===n)return!0}return!1}function Bg(t){return t.type===4&&t.value!==MC}function KA(t,e,n){let r=t.type===4&&!n?MC:t.value;return e===r}function XA(t,e,n){let r=4,i=t.attrs,o=i!==null?tx(i):0,s=!1;for(let a=0;a<e.length;a++){let l=e[a];if(typeof l=="number"){if(!s&&!pn(r)&&!pn(l))return!1;if(s&&pn(l))continue;s=!1,r=l|r&1;continue}if(!s)if(r&4){if(r=2|r&1,l!==""&&!KA(t,l,n)||l===""&&e.length===1){if(pn(r))return!1;s=!0}}else if(r&8){if(i===null||!ZA(t,i,l,n)){if(pn(r))return!1;s=!0}}else{let c=e[++a],u=JA(l,i,Bg(t),n);if(u===-1){if(pn(r))return!1;s=!0;continue}if(c!==""){let d;if(u>o?d="":d=i[u+1].toLowerCase(),r&2&&c!==d){if(pn(r))return!1;s=!0}}}}return pn(r)||s}function pn(t){return(t&1)===0}function JA(t,e,n,r){if(e===null)return-1;let i=0;if(r||!n){let o=!1;for(;i<e.length;){let s=e[i];if(s===t)return i;if(s===3||s===6)o=!0;else if(s===1||s===2){let a=e[++i];for(;typeof a=="string";)a=e[++i];continue}else{if(s===4)break;if(s===0){i+=4;continue}}i+=o?1:2}return-1}else return nx(e,t)}function TC(t,e,n=!1){for(let r=0;r<e.length;r++)if(XA(t,e[r],n))return!0;return!1}function ex(t){let e=t.attrs;if(e!=null){let n=e.indexOf(5);if((n&1)===0)return e[n+1]}return null}function tx(t){for(let e=0;e<t.length;e++){let n=t[e];if(vA(n))return e}return t.length}function nx(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){let r=t[n];if(typeof r=="number")return-1;if(r===e)return n;n++}return-1}function rx(t,e){e:for(let n=0;n<e.length;n++){let r=e[n];if(t.length===r.length){for(let i=0;i<t.length;i++)if(t[i]!==r[i])continue e;return!0}}return!1}function ID(t,e){return t?":not("+e.trim()+")":e}function ix(t){let e=t[0],n=1,r=2,i="",o=!1;for(;n<t.length;){let s=t[n];if(typeof s=="string")if(r&2){let a=t[++n];i+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!pn(s)&&(e+=ID(o,i),i=""),r=s,o=o||!pn(r);n++}return i!==""&&(e+=ID(o,i)),e}function ox(t){return t.map(ix).join(",")}function sx(t){let e=[],n=[],r=1,i=2;for(;r<t.length;){let o=t[r];if(typeof o=="string")i===2?o!==""&&e.push(o,t[++r]):i===8&&n.push(o);else{if(!pn(i))break;i=o}r++}return n.length&&e.push(1,...n),e}var Zt={};function Hg(t,e,n,r,i,o,s,a,l,c,u){let d=Oe+r,h=d+i,f=ax(d,h),p=typeof c=="function"?c():c;return f[P]={type:t,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:e,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:h,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof o=="function"?o():o,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:l,consts:p,incompleteFirstPass:!1,ssrId:u}}function ax(t,e){let n=[];for(let r=0;r<e;r++)n.push(r<t?null:Zt);return n}function lx(t){let e=t.tView;return e===null||e.incompleteFirstPass?t.tView=Hg(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):e}function Ug(t,e,n,r,i,o,s,a,l,c,u){let d=e.blueprint.slice();return d[dn]=i,d[z]=r|4|128|8|64|1024,(c!==null||t&&t[z]&2048)&&(d[z]|=2048),Ip(d),d[Ye]=d[yi]=t,d[Le]=n,d[xn]=s||t&&t[xn],d[Ce]=a||t&&t[Ce],d[Jn]=l||t&&t[Jn]||null,d[yt]=o,d[er]=RA(),d[vi]=u,d[Dp]=c,d[bt]=e.type==2?t[bt]:d,d}function cx(t,e,n){let r=kn(e,t),i=lx(n),o=t[xn].rendererFactory,s=$g(t,Ug(t,i,null,AC(n),r,e,null,o.createRenderer(r,n),null,null,null));return t[e.index]=s}function AC(t){let e=16;return t.signals?e=4096:t.onPush&&(e=64),e}function xC(t,e,n,r){if(n===0)return-1;let i=e.length;for(let o=0;o<n;
vendor: 29,460 bytes, line 4
4o++)e.push(r),t.blueprint.push(r),t.data.push(null);return i}function $g(t,e){return t[Io]?t[Ep][Gt]=e:t[Io]=e,t[Ep]=e,e}function _(t=1){RC(ke(),$(),tr()+t,!1)}function RC(t,e,n,r){if(!r)if((e[z]&3)===3){let o=t.preOrderCheckHooks;o!==null&&$c(e,o,n)}else{let o=t.preOrderHooks;o!==null&&zc(e,o,0,n)}Nr(n)}var yu=(function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t})(yu||{});function pg(t,e,n,r){let i=j(null);try{let[o,s,a]=t.inputs[n],l=null;(s&yu.SignalBased)!==0&&(l=e[o][pt]),l!==null&&l.transformFn!==void 0?r=l.transformFn(r):a!==null&&(r=a.call(e,r)),t.setInput!==null?t.setInput(e,l,r,n,o):qD(e,l,o,r)}finally{j(i)}}var mn=(function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t})(mn||{}),ux;function zg(t,e){return ux(t,e)}var Mi=new Set,bu=(function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t})(bu||{}),or=new T(""),MD=new Set;function Pr(t){MD.has(t)||(MD.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var Wg=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=x({token:t,providedIn:"root",factory:()=>new t})}return t})(),NC=[0,1,2,3],OC=(()=>{class t{ngZone=w(vt);scheduler=w(Ir);errorHandler=w(Wt,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){w(or,{optional:!0})}execute(){let n=this.sequences.size>0;n&&pe(se.AfterRenderHooksStart),this.executing=!0;for(let r of NC)for(let i of this.sequences)if(!(i.erroredOrDestroyed||!i.hooks[r]))try{i.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let o=i.hooks[r];return o(i.pipelinedValue)},i.snapshot))}catch(o){i.erroredOrDestroyed=!0,this.errorHandler?.handleError(o)}this.executing=!1;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),n&&pe(se.AfterRenderHooksEnd)}register(n){let{view:r}=n;r!==void 0?((r[Ei]??=[]).push(n),Ao(r),r[z]|=8192):this.executing?this.deferredRegistrations.add(n):this.addSequence(n)}addSequence(n){this.sequences.add(n),this.scheduler.notify(7)}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}maybeTrace(n,r){return r?r.run(bu.AFTER_NEXT_RENDER,n):n()}static \u0275prov=x({token:t,providedIn:"root",factory:()=>new t})}return t})(),nu=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(e,n,r,i,o,s=null){this.impl=e,this.hooks=n,this.view=r,this.once=i,this.snapshot=s,this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let e=this.view?.[Ei];e&&(this.view[Ei]=e.filter(n=>n!==this))}};function ca(t,e){let n=e?.injector??w(Ot);return Pr("NgAfterNextRender"),fx(t,n,e,!0)}function dx(t){return t instanceof Function?[void 0,void 0,t,void 0]:[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function fx(t,e,n,r){let i=e.get(Wg);i.impl??=e.get(OC);let o=e.get(or,null,{optional:!0}),s=n?.manualCleanup!==!0?e.get(Ft):null,a=e.get(Hc,null,{optional:!0}),l=new nu(i.impl,dx(t),a?.view,r,s,o?.snapshot(null));return i.impl.register(l),l}var kC=new T("",{factory:()=>({queue:new Set,isScheduled:!1,scheduler:null,injector:w(Pe)})});function PC(t,e,n){let r=t.get(kC);if(Array.isArray(e))for(let i of e)r.queue.add(i),n?.detachedLeaveAnimationFns?.push(i);else r.queue.add(e),n?.detachedLeaveAnimationFns?.push(e);r.scheduler&&r.scheduler(t)}function hx(t,e){let n=t.get(kC);if(e.detachedLeaveAnimationFns){for(let r of e.detachedLeaveAnimationFns)n.queue.delete(r);e.detachedLeaveAnimationFns=void 0}}function px(t,e){for(let[n,r]of e)PC(t,r.animateFns)}function TD(t,e,n,r){let i=t?.[Di]?.enter;e!==null&&i&&i.has(n.index)&&px(r,i)}function Ro(t,e,n,r,i,o,s,a){if(i!=null){let l,c=!1;fn(i)?l=i:Nn(i)&&(c=!0,i=i[dn]);let u=qt(i);t===0&&r!==null?(TD(a,r,o,n),s==null?_C(e,r,u):tu(e,r,u,s||null,!0)):t===1&&r!==null?(TD(a,r,o,n),tu(e,r,u,s||null,!0)):t===2?AD(a,o,n,d=>{wC(e,u,c,d)}):t===3&&AD(a,o,n,()=>{e.destroyNode(u)}),l!=null&&Sx(e,t,n,l,o,r,s)}}function gx(t,e){FC(t,e),e[dn]=null,e[yt]=null}function mx(t,e,n,r,i,o){r[dn]=i,r[yt]=e,Du(t,r,n,1,i,o)}function FC(t,e){e[xn].changeDetectionScheduler?.notify(9),Du(t,e,e[Ce],2,null,null)}function vx(t){let e=t[Io];if(!e)return eg(t[P],t);for(;e;){let n=null;if(Nn(e))n=e[Io];else{let r=e[Fe];r&&(n=r)}if(!n){for(;e&&!e[Gt]&&e!==t;)Nn(e)&&eg(e[P],e),e=e[Ye];e===null&&(e=t),Nn(e)&&eg(e[P],e),n=e&&e[Gt]}e=n}}function Gg(t,e){let n=t[Ci],r=n.indexOf(e);n.splice(r,1)}function Eu(t,e){if(_i(e))return;let n=e[Ce];n.destroyNode&&Du(t,e,n,3,null,null),vx(e)}function eg(t,e){if(_i(e))return;let n=j(null);try{e[z]&=-129,e[z]|=256,e[Pt]&&As(e[Pt]),Ex(t,e),bx(t,e),e[P].type===1&&e[Ce].destroy();let r=e[Ar];if(r!==null&&fn(e[Ye])){r!==e[Ye]&&Gg(r,e);let i=e[Rn];i!==null&&i.detachView(t)}fg(e)}finally{j(n)}}function AD(t,e,n,r){let i=t?.[Di];if(i==null||i.leave==null||!i.leave.has(e.index))return r(!1);t&&Mi.add(t[er]),PC(n,()=>{if(i.leave&&i.leave.has(e.index)){let s=i.leave.get(e.index),a=[];if(s){for(let l=0;l<s.animateFns.length;l++){let c=s.animateFns[l],{promise:u}=c();a.push(u)}i.detachedLeaveAnimationFns=void 0}i.running=Promise.allSettled(a),yx(t,r)}else t&&Mi.delete(t[er]),r(!1)},i)}function yx(t,e){let n=t[Di]?.running;if(n){n.then(()=>{t[Di].running=void 0,Mi.delete(t[er]),e(!0)});return}e(!1)}function bx(t,e){let n=t.cleanup,r=e[So];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(e[So]=null);let i=e[Zn];if(i!==null){e[Zn]=null;for(let s=0;s<i.length;s++){let a=i[s];a()}}let o=e[Ws];if(o!==null){e[Ws]=null;for(let s of o)s.destroy()}}function Ex(t,e){let n;if(t!=null&&(n=t.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let i=e[n[r]];if(!(i instanceof Ii)){let o=n[r+1];if(Array.isArray(o))for(let s=0;s<o.length;s+=2){let a=i[o[s]],l=o[s+1];pe(se.LifecycleHookStart,a,l);try{l.call(a)}finally{pe(se.LifecycleHookEnd,a,l)}}else{pe(se.LifecycleHookStart,i,o);try{o.call(i)}finally{pe(se.LifecycleHookEnd,i,o)}}}}}function LC(t,e,n){return Dx(t,e.parent,n)}function Dx(t,e,n){let r=e;for(;r!==null&&r.type&168;)e=r,r=e.parent;if(r===null)return n[dn];if(Rr(r)){let{encapsulation:i}=t.data[r.directiveStart+r.componentOffset];if(i===gn.None||i===gn.Emulated)return null}return kn(r,n)}function jC(t,e,n){return _x(t,e,n)}function Cx(t,e,n){return t.type&40?kn(t,n):null}var _x=Cx,xD;function qg(t,e,n,r){let i=LC(t,r,e),o=e[Ce],s=r.parent||e[yt],a=jC(s,r,e);if(i!=null)if(Array.isArray(n))for(let l=0;l<n.length;l++)SD(o,i,n[l],a,!1);else SD(o,i,n,a,!1);xD!==void 0&&xD(o,r,e,n,i)}function Js(t,e){if(e!==null){let n=e.type;if(n&3)return kn(e,t);if(n&4)return gg(-1,t[e.index]);if(n&8){let r=e.child;if(r!==null)return Js(t,r);{let i=t[e.index];return fn(i)?gg(-1,i):qt(i)}}else{if(n&128)return Js(t,e.next);if(n&32)return zg(e,t)()||qt(t[e.index]);{let r=VC(t,e);if(r!==null){if(Array.isArray(r))return r[0];let i=Sr(t[bt]);return Js(i,r)}else return Js(t,e.next)}}}return null}function VC(t,e){if(e!==null){let r=t[bt][yt],i=e.projection;return r.projection[i]}return null}function gg(t,e){let n=Fe+t+1;if(n<e.length){let r=e[n],i=r[P].firstChild;if(i!==null)return Js(r,i)}return e[xr]}function Yg(t,e,n,r,i,o,s){for(;n!=null;){let a=r[Jn];if(n.type===128){n=n.next;continue}let l=r[n.index],c=n.type;if(s&&e===0&&(l&&ko(qt(l),r),n.flags|=2),!vu(n))if(c&8)Yg(t,e,n.child,r,i,o,!1),Ro(e,t,a,i,l,n,o,r);else if(c&32){let u=zg(n,r),d;for(;d=u();)Ro(e,t,a,i,d,n,o,r);Ro(e,t,a,i,l,n,o,r)}else c&16?BC(t,e,r,n,i,o):Ro(e,t,a,i,l,n,o,r);n=s?n.projectionNext:n.next}}function Du(t,e,n,r,i,o){Yg(n,r,t.firstChild,e,i,o,!1)}function wx(t,e,n){let r=e[Ce],i=LC(t,n,e),o=n.parent||e[yt],s=jC(o,n,e);BC(r,0,e,n,i,s)}function BC(t,e,n,r,i,o){let s=n[bt],l=s[yt].projection[r.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++){let u=l[c];Ro(e,t,n[Jn],i,u,r,o,n)}else{let c=l,u=s[Ye];lC(r)&&(c.flags|=128),Yg(t,e,c,u,i,o,!0)}}function Sx(t,e,n,r,i,o,s){let a=r[xr],l=qt(r);a!==l&&Ro(e,t,n,o,a,i,s);for(let c=Fe;c<r.length;c++){let u=r[c];Du(u[P],u,t,e,o,a)}}function Ix(t,e,n,r,i){if(e)i?t.addClass(n,r):t.removeClass(n,r);else{let o=r.indexOf("-")===-1?void 0:mn.DashCase;i==null?t.removeStyle(n,r,o):(typeof i=="string"&&i.endsWith("!important")&&(i=i.slice(0,-10),o|=mn.Important),t.setStyle(n,r,i,o))}}function HC(t,e,n,r,i){let o=tr(),s=r&2;try{Nr(-1),s&&e.length>Oe&&RC(t,e,Oe,!1);let a=s?se.TemplateUpdateStart:se.TemplateCreateStart;pe(a,i,n),n(r,i)}finally{Nr(o);let a=s?se.TemplateUpdateEnd:se.TemplateCreateEnd;pe(a,i,n)}}function Cu(t,e,n){Nx(t,e,n),(n.flags&64)===64&&Ox(t,e,n)}function ua(t,e,n=kn){let r=e.localNames;if(r!==null){let i=e.index+1;for(let o=0;o<r.length;o+=2){let s=r[o+1],a=s===-1?n(e,t):t[s];t[i++]=a}}}function Mx(t,e,n,r){let o=r.get(mC,gC)||n===gn.ShadowDom||n===gn.ExperimentalIsolatedShadowDom,s=t.selectRootElement(e,o);return Tx(s),s}function Tx(t){Ax(t)}var Ax=()=>null;function xx(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function UC(t,e,n,r,i,o){let s=e[P];if(Xg(t,s,e,n,r)){Rr(t)&&Rx(e,t.index);return}t.type&3&&(n=xx(n)),$C(t,e,n,r,i,o)}function $C(t,e,n,r,i,o){if(t.type&3){let s=kn(t,e);r=o!=null?o(r,t.value||"",n):r,i.setProperty(s,n,r)}else t.type&12}function Rx(t,e){let n=Yt(e,t);n[z]&16||(n[z]|=64)}function Nx(t,e,n){let r=n.directiveStart,i=n.directiveEnd;Rr(n)&&cx(e,n,t.data[r+n.componentOffset]),t.firstCreatePass||Xc(n,e);let o=n.initialInputs;for(let s=r;s<i;s++){let a=t.data[s],l=ta(e,t,s,n);if(ko(l,e),o!==null&&Px(e,s-r,l,a,n,o),On(a)){let c=Yt(n.index,e);c[Le]=ta(e,t,s,n)}}}function Ox(t,e,n){let r=n.directiveStart,i=n.directiveEnd,o=n.index,s=sD();try{Nr(o);for(let a=r;a<i;a++){let l=t.data[a],c=e[a];Pc(a),(l.hostBindings!==null||l.hostVars!==0||l.hostAttrs!==null)&&kx(l,c)}}finally{Nr(-1),Pc(s)}}function kx(t,e){t.hostBindings!==null&&t.hostBindings(1,e)}function Qg(t,e){let n=t.directiveRegistry,r=null;if(n)for(let i=0;i<n.length;i++){let o=n[i];TC(e,o.selectors,!1)&&(r??=[],On(o)?r.unshift(o):r.push(o))}return r}function Px(t,e,n,r,i,o){let s=o[e];if(s!==null)for(let a=0;a<s.length;a+=2){let l=s[a],c=s[a+1];pg(r,n,l,c)}}function Zg(t,e,n,r,i){let o=Oe+n,s=e[P],a=i(s,e,t,r,n);e[o]=a,xo(t,!0);let l=t.type===2;return l?(SC(e[Ce],a,t),(JE()===0||Mo(t))&&ko(a,e),eD()):ko(a,e),Bc()&&(!l||!vu(t))&&qg(s,e,a,t),t}function Kg(t){let e=t;return Fp()?Lp():(e=e.parent,xo(e,!1)),e}function Fx(t,e){let n=t[Jn];if(!n)return;let r;try{r=n.get(hn,null)}catch{r=null}r?.(e)}function Xg(t,e,n,r,i){let o=t.inputs?.[r],s=t.hostDirectiveInputs?.[r],a=!1;if(s)for(let l=0;l<s.length;l+=2){let c=s[l],u=s[l+1],d=e.data[c];pg(d,n[c],u,i),a=!0}if(o)for(let l of o){let c=n[l],u=e.data[l];pg(u,c,r,i),a=!0}return a}function Lx(t,e){let n=Yt(e,t),r=n[P];jx(r,n);let i=n[dn];i!==null&&n[vi]===null&&(n[vi]=vC(i,n[Jn])),pe(se.ComponentStart);try{Jg(r,n,n[Le])}finally{pe(se.ComponentEnd,n[Le])}}function jx(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}function Jg(t,e,n){Lc(e);try{let r=t.viewQuery;r!==null&&hg(1,r,n);let i=t.template;i!==null&&HC(t,e,i,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),e[Rn]?.finishViewCreation(t),t.staticContentQueries&&yC(t,e),t.staticViewQueries&&hg(2,t.viewQuery,n);let o=t.components;o!==null&&Vx(e,o)}catch(r){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),r}finally{e[z]&=-5,jc()}}function Vx(t,e){for(let n=0;n<e.length;n++)Lx(t,e[n])}function da(t,e,n,r){let i=j(null);try{let o=e.tView,a=t[z]&4096?4096:16,l=Ug(t,o,n,a,null,e,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),c=t[e.index];l[Ar]=c;let u=t[Rn];return u!==null&&(l[Rn]=u.createEmbeddedView(o)),Jg(o,l,n),l}finally{j(i)}}function Po(t,e){return!e||e.firstChild===null||lC(t)}function na(t,e,n,r,i=!1){for(;n!==null;){if(n.type===128){n=i?n.projectionNext:n.next;continue}let o=e[n.index];o!==null&&r.push(qt(o)),fn(o)&&zC(o,r);let s=n.type;if(s&8)na(t,e,n.child,r);else if(s&32){let a=zg(n,e),l;for(;l=a();)r.push(l)}else if(s&16){let a=VC(e,n);if(Array.isArray(a))r.push(...a);else{let l=Sr(e[bt]);na(l[P],l,a,r,!0)}}n=i?n.projectionNext:n.next}return r}function zC(t,e){for(let n=Fe;n<t.length;n++){let r=t[n],i=r[P].firstChild;i!==null&&na(r[P],r,i,e)}t[xr]!==t[dn]&&e.push(t[xr])}function WC(t){if(t[Ei]!==null){for(let e of t[Ei])e.impl.addSequence(e);t[Ei].length=0}}var GC=[];function Bx(t){return t[Pt]??Hx(t)}function Hx(t){let e=GC.pop()??Object.create($x);return e.lView=t,e}function Ux(t){t.lView[Pt]!==t&&(t.lView=null,GC.push(t))}var $x=Y(S({},Is),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{Ao(t.lView)},consumerOnSignalRead(){this.lView[Pt]=this}});function zx(t){let e=t[Pt]??Object.create(Wx);return e.lView=t,e}var Wx=Y(S({},Is),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let e=Sr(t.lView);for(;e&&!qC(e[P]);)e=Sr(e);e&&Mp(e)},consumerOnSignalRead(){this.lView[Pt]=this}});function qC(t){return t.type!==2}function YC(t){if(t[Ws]===null)return;let e=!0;for(;e;){let n=!1;for(let r of t[Ws])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));e=n&&!!(t[z]&8192)}}var Gx=100;function QC(t,e=0){let r=t[xn].rendererFactory,i=!1;i||r.begin?.();try{qx(t,e)}finally{i||r.end?.()}}function qx(t,e){let n=jp();try{Vp(!0),mg(t,e);let r=0;for(;Ys(t);){if(r===Gx)throw new M(103,!1);r++,mg(t,1)}}finally{Vp(n)}}function Yx(t,e,n,r){if(_i(e))return;let i=e[z],o=!1,s=!1;Lc(e);let a=!0,l=null,c=null;o||(qC(t)?(c=Bx(e),l=Ts(c)):Wl()===null?(a=!1,c=zx(e),l=Ts(c)):e[Pt]&&(As(e[Pt]),e[Pt]=null));try{Ip(e),rD(t.bindingStartIndex),n!==null&&HC(t,e,n,2,r);let u=(i&3)===3;if(!o)if(u){let f=t.preOrderCheckHooks;f!==null&&$c(e,f,null)}else{let f=t.preOrderHooks;f!==null&&zc(e,f,0,null),Xp(e,0)}if(s||Qx(e),YC(e),ZC(e,0),t.contentQueries!==null&&yC(t,e),!o)if(u){let f=t.contentCheckHooks;f!==null&&$c(e,f)}else{let f=t.contentHooks;f!==null&&zc(e,f,1),Xp(e,1)}Kx(t,e);let d=t.components;d!==null&&XC(e,d,0);let h=t.viewQuery;if(h!==null&&hg(2,h,r),!o)if(u){let f=t.viewCheckHooks;f!==null&&$c(e,f)}else{let f=t.viewHooks;f!==null&&zc(e,f,2),Xp(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[Rc]){for(let f of e[Rc])f();e[Rc]=null}o||(WC(e),e[z]&=-73)}catch(u){throw o||Ao(e),u}finally{c!==null&&(Gl(c,l),a&&Ux(c)),jc()}}function ZC(t,e){for(let n=uC(t);n!==null;n=dC(n))for(let r=Fe;r<n.length;r++){let i=n[r];KC(i,e)}}function Qx(t){for(let e=uC(t);e!==null;e=dC(e)){if(!(e[z]&2))continue;let n=e[Ci];for(let r=0;r<n.length;r++){let i=n[r];Mp(i)}}}function Zx(t,e,n){pe(se.ComponentStart);let r=Yt(e,t);try{KC(r,n)}finally{pe(se.ComponentEnd,r[Le])}}function KC(t,e){Nc(t)&&mg(t,e)}function mg(t,e){let r=t[P],i=t[z],o=t[Pt],s=!!(e===0&&i&16);if(s||=!!(i&64&&e===0),s||=!!(i&1024),s||=!!(o?.dirty&&ql(o)),s||=!1,o&&(o.dirty=!1),t[z]&=-9217,s)Yx(r,t,r.template,t[Le]);else if(i&8192){let a=j(null);try{YC(t),ZC(t,1);let l=r.components;l!==null&&XC(t,l,1),WC(t)}finally{j(a)}}}function XC(t,e,n){for(let r=0;r<e.length;r++)Zx(t,e[r],n)}function Kx(t,e){let n=t.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let i=n[r];if(i<0)Nr(~i);else{let o=i,s=n[++r],a=n[++r];oD(s,o);let l=e[o];pe(se.HostBindingsUpdateStart,l);try{a(2,l)}finally{pe(se.HostBindingsUpdateEnd,l)}}}}finally{Nr(-1)}}function em(t,e){let n=jp()?64:1088;for(t[xn].changeDetectionScheduler?.notify(e);t;){t[z]|=n;let r=Sr(t);if(To(t)&&!r)return t;t=r}return null}function JC(t,e,n,r){return[t,!0,0,e,null,r,null,n,null,null]}function e_(t,e){let n=Fe+e;if(n<t.length)return t[n]}function fa(t,e,n,r=!0){let i=e[P];if(Xx(i,e,t,n),r){let s=gg(n,t),a=e[Ce],l=a.parentNode(t[xr]);l!==null&&mx(i,t[yt],a,e,l,s)}let o=e[vi];o!==null&&o.firstChild!==null&&(o.firstChild=null)}function t_(t,e){let n=ra(t,e);return n!==void 0&&Eu(n[P],n),n}function ra(t,e){if(t.length<=Fe)return;let n=Fe+e,r=t[n];if(r){let i=r[Ar];i!==null&&i!==t&&Gg(i,r),e>0&&(t[n-1][Gt]=r[Gt]);let o=Us(t,Fe+e);gx(r[P],r);let s=o[Rn];s!==null&&s.detachView(o[P]),r[Ye]=null,r[Gt]=null,r[z]&=-129}return r}function Xx(t,e,n,r){let i=Fe+r,o=n.length;r>0&&(n[i-1][Gt]=e),r<o-Fe?(e[Gt]=n[i],pp(n,Fe+r,e)):(n.push(e),e[Gt]=null),e[Ye]=n;let s=e[Ar];s!==null&&n!==s&&n_(s,e);let a=e[Rn];a!==null&&a.insertView(t),Oc(e),e[z]|=128}function n_(t,e){let n=t[Ci],r=e[Ye];if(Nn(r))t[z]|=2;else{let i=r[Ye][bt];e[bt]!==i&&(t[z]|=2)}n===null?t[Ci]=[e]:n.push(e)}var Or=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let e=this._lView,n=e[P];return na(n,e,n.firstChild,[])}constructor(e,n){this._lView=e,this._cdRefInjectingView=n}get context(){return this._lView[Le]}set context(e){this._lView[Le]=e}get destroyed(){return _i(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[Ye];if(fn(e)){let n=e[Gs],r=n?n.indexOf(this):-1;r>-1&&(ra(e,r),Us(n,r))}this._attachedToViewContainer=!1}Eu(this._lView[P],this._lView)}onDestroy(e){Tp(this._lView,e)}markForCheck(){em(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[z]&=-129}reattach(){Oc(this._lView),this._lView[z]|=128}detectChanges(){this._lView[z]|=1024,QC(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new M(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=To(this._lView),n=this._lView[Ar];n!==null&&!e&&Gg(n,this._lView),FC(this._lView[P],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new M(902,!1);this._appRef=e;let n=To(this._lView),r=this._lView[Ar];r!==null&&!n&&n_(r,this._lView),Oc(this._lView)}};var kr=(()=>{class t{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=Jx;constructor(n,r,i){this._declarationLView=n,this._declarationTContainer=r,this.elementRef=i}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,i){let o=da(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:i});return new Or(o)}}return t})();function Jx(){return tm(Xe(),$())}function tm(t,e){return t.type&4?new kr(e,t,jo(t,e)):null}function Vo(t,e,n,r,i){let o=t.data[e];if(o===null)o=eR(t,e,n,r,i),iD()&&(o.flags|=32);else if(o.type&64){o.type=n,o.value=r,o.attrs=i;let s=tD();o.injectorIndex=s===null?-1:s.injectorIndex}return xo(o,!0),o}function eR(t,e,n,r,i){let o=Pp(),s=Fp(),a=s?o:o&&o.parent,l=t.data[e]=nR(t,a,n,e,r,i);return tR(t,l,o,s),l}function tR(t,e,n,r){t.firstChild===null&&(t.firstChild=e),n!==null&&(r?n.child==null&&e.parent!==null&&(n.child=e):n.next===null&&(n.next=e,e.prev=n))}function nR(t,e,n,r,i,o){let s=e?e.injectorIndex:-1,a=0;return Np()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,fieldIndex:-1,customControlIndex:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function rR(t){let e=t[Cp]??[],r=t[Ye][Ce],i=[];for(let o of e)o.data[pC]!==void 0?i.push(o):iR(o,r);t[Cp]=i}function iR(t,e){let n=0,r=t.firstChild;if(r){let i=t.data[hC];for(;n<i;){let o=r.nextSibling;wC(e,r,!1),r=o,n++}}}var oR=()=>null,sR=()=>null;function ru(t,e){return oR(t,e)}function r_(t,e,n){return sR(t,e,n)}var i_=class{},_u=class{},vg=class{resolveComponentFactory(e){throw new M(917,!1)}},ha=class{static NULL=new vg},Ti=class{},sr=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>aR()}return t})();function aR(){let t=$(),e=Xe(),n=Yt(e.index,t);return(Nn(n)?n:t)[Ce]}var o_=(()=>{class t{static \u0275prov=x({token:t,providedIn:"root",factory:()=>null})}return t})();var Gc={},yg=class{injector;parentInjector;constructor(e,n){this.injector=e,this.parentInjector=n}get(e,n,r){let i=this.injector.get(e,Gc,r);return i!==Gc||n===Gc?i:this.parentInjector.get(e,n,r)}};function iu(t,e,n){let r=n?t.styles:null,i=n?t.classes:null,o=0;if(e!==null)for(let s=0;s<e.length;s++){let a=e[s];if(typeof a=="number")o=a;else if(o==1)i=np(i,a);else if(o==2){let l=a,c=e[++s];r=np(r,l+": "+c+";")}}n?t.styles=r:t.stylesWithoutHost=r,n?t.classes=i:t.classesWithoutHost=i}function R(t,e=0){let n=$();if(n===null)return H(t,e);let r=Xe();return oC(r,n,st(t),e)}function s_(t,e,n,r,i){let o=r===null?null:{"":-1},s=i(t,n);if(s!==null){let a=s,l=null,c=null;for(let u of s)if(u.resolveHostDirectives!==null){[a,l,c]=u.resolveHostDirectives(s);break}uR(t,e,n,a,o,l,c)}o!==null&&r!==null&&lR(n,r,o)}function lR(t,e,n){let r=t.localNames=[];for(let i=0;i<e.length;i+=2){let o=n[e[i+1]];if(o==null)throw new M(-301,!1);r.push(e[i],o)}}function cR(t,e,n){e.componentOffset=n,(t.components??=[]).push(e.index)}function uR(t,e,n,r,i,o,s){let a=r.length,l=null;for(let h=0;h<a;h++){let f=r[h];l===null&&On(f)&&(l=f,cR(t,n,h)),ug(Xc(n,e),t,f.type)}mR(n,t.data.length,a),l?.viewProvidersResolver&&l.viewProvidersResolver(l);for(let h=0;h<a;h++){let f=r[h];f.providersResolver&&f.providersResolver(f)}let c=!1,u=!1,d=xC(t,e,a,null);a>0&&(n.directiveToIndex=new Map);for(let h=0;h<a;h++){let f=r[h];if(n.mergedAttrs=Oo(n.mergedAttrs,f.hostAttrs),fR(t,n,e,d,f),gR(d,f,i),s!==null&&s.has(f)){let[E,b]=s.get(f);n.directiveToIndex.set(f.type,[d,E+n.directiveStart,b+n.directiveStart])}else(o===null||!o.has(f))&&n.directiveToIndex.set(f.type,d);f.contentQueries!==null&&(n.flags|=4),(f.hostBindings!==null||f.hostAttrs!==null||f.hostVars!==0)&&(n.flags|=64);let p=f.type.prototype;!c&&(p.ngOnChanges||p.ngOnInit||p.ngDoCheck)&&((t.preOrderHooks??=[]).push(n.index),c=!0),!u&&(p.ngOnChanges||p.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(n.index),u=!0),d++}dR(t,n,o)}function dR(t,e,n){for(let r=e.directiveStart;r<e.directiveEnd;r++){let i=t.data[r];if(n===null||!n.has(i))RD(0,e,i,r),RD(1,e,i,r),OD(e,r,!1);else{let o=n.get(i);ND(0,e,o,r),ND(1,e,o,r),OD(e,r,!0)}}}function RD(t,e,n,r){let i=t===0?n.inputs:n.outputs;for(let o in i)if(i.hasOwnProperty(o)){let s;t===0?s=e.inputs??={}:s=e.outputs??={},s[o]??=[],s[o].push(r),a_(e,o)}}function ND(t,e,n,r){let i=t===0?n.inputs:n.outputs;for(let o in i)if(i.hasOwnProperty(o)){let s=i[o],a;t===0?a=e.hostDirectiveInputs??={}:a=e.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,o),a_(e,s)}}function a_(t,e){e==="class"?t.flags|=8:e==="style"&&(t.flags|=16)}function OD(t,e,n){let{attrs:r,inputs:i,hostDirectiveInputs:o}=t;if(r===null||!n&&i===null||n&&o===null||Bg(t)){t.initialInputs??=[],t.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let l=r[a];if(l===0){a+=4;continue}else if(l===5){a+=2;continue}else if(typeof l=="number")break;if(!n&&i.hasOwnProperty(l)){let c=i[l];for(let u of c)if(u===e){s??=[],s.push(l,r[a+1]);break}}else if(n&&o.hasOwnProperty(l)){let c=o[l];for(let u=0;u<c.length;u+=2)if(c[u]===e){s??=[],s.push(c[u+1],r[a+1]);break}}a+=2}t.initialInputs??=[],t.initialInputs.push(s)}function fR(t,e,n,r,i){t.data[r]=i;let o=i.factory||(i.factory=wr(i.type,!0)),s=new Ii(o,On(i),R,null);t.blueprint[r]=s,n[r]=s,hR(t,e,r,xC(t,n,i.hostVars,Zt),i)}function hR(t,e,n,r,i){let o=i.hostBindings;if(o){let s=t.hostBindingOpCodes;s===null&&(s=t.hostBindingOpCodes=[]);let a=~e.index;pR(s)!=a&&s.push(a),s.push(n,r,o)}}function pR(t){let e=t.length;for(;e>0;){let n=t[--e];if(typeof n=="number"&&n<0)return n}return 0}function gR(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;On(e)&&(n[""]=t)}}function mR(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function nm(t,e,n,r,i,o,s,a){let l=e[P],c=l.consts,u=Qt(c,s),d=Vo(l,t,n,r,u);return o&&s_(l,e,d,Qt(c,a),i),d.mergedAttrs=Oo(d.mergedAttrs,d.attrs),d.attrs!==null&&iu(d,d.attrs,!1),d.mergedAttrs!==null&&iu(d,d.mergedAttrs,!0),l.queries!==null&&l.queries.elementStart(l,d),d}function rm(t,e){KD(t,e),_p(e)&&t.queries.elementEnd(e)}function vR(t,e,n,r,i,o){let s=e.consts,a=Qt(s,i),l=Vo(e,t,n,r,a);if(l.mergedAttrs=Oo(l.mergedAttrs,l.attrs),o!=null){let c=Qt(s,o);l.localNames=[];for(let u=0;u<c.length;u+=2)l.localNames.push(c[u],-1)}return l.attrs!==null&&iu(l,l.attrs,!1),l.mergedAttrs!==null&&iu(l,l.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,l),l}function im(t){return wu(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function l_(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{let n=t[Symbol.iterator](),r;for(;!(r=n.next()).done;)e(r.value)}}function wu(t){return t!==null&&(typeof t=="function"||typeof t=="object")}function c_(t,e,n){return t[e]=n}function Fn(t,e,n){if(n===Zt)return!1;let r=t[e];return Object.is(r,n)?!1:(t[e]=n,!0)}function u_(t,e,n,r){let i=Fn(t,e,n);return Fn(t,e+1,r)||i}function qc(t,e,n){return function r(i){let o=Rr(t)?Yt(t.index,e):e;em(o,5);let s=e[Le],a=kD(e,s,n,i),l=r.__ngNextListenerFn__;for(;l;)a=kD(e,s,l,i)&&a,l=l.__ngNextListenerFn__;return a}}function kD(t,e,n,r){let i=j(null);try{return pe(se.OutputStart,e,n),n(r)!==!1}catch(o){return Fx(t,o),!1}finally{pe(se.OutputEnd,e,n),j(i)}}function d_(t,e,n,r,i,o,s,a){let l=Mo(t),c=!1,u=null;if(!r&&l&&(u=bR(e,n,o,t.index)),u!==null){let d=u.__ngLastListenerFn__||u;d.__ngNextListenerFn__=s,u.__ngLastListenerFn__=s,c=!0}else{let d=kn(t,n),h=r?r(d):d;FA(n,h,o,a);let f=i.listen(h,o,a);if(!yR(o)){let p=r?E=>r(qt(E[t.index])):t.index;f_(p,e,n,o,a,f,!1)}}return c}function yR(t){return t.startsWith("animation")||t.startsWith("transition")}function bR(t,e,n,r){let i=t.cleanup;if(i!=null)for(let o=0;o<i.length-1;o+=2){let s=i[o];if(s===n&&i[o+1]===r){let a=e[So],l=i[o+2];return a&&a.length>l?a[l]:null}typeof s=="string"&&(o+=2)}return null}function f_(t,e,n,r,i,o,s){let a=e.firstCreatePass?xp(e):null,l=Ap(n),c=l.length;l.push(i,o),a&&a.push(r,t,c,(c+1)*(s?-1:1))}function PD(t,e,n,r,i,o){let s=e[n],a=e[P],c=a.data[n].outputs[r],d=s[c].subscribe(o);f_(t.index,a,e,i,o,d,!0)}var bg=Symbol("BINDING");var ou=class extends ha{ngModule;constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let n=Mr(e);return new Fo(n,this.ngModule)}};function ER(t){return Object.keys(t).map(e=>{let[n,r,i]=t[e],o={propName:n,templateName:e,isSignal:(r&yu.SignalBased)!==0};return i&&(o.transform=i),o})}function DR(t){return Object.keys(t).map(e=>({propName:t[e],templateName:e}))}function CR(t,e,n){let r=e instanceof Pe?e:e?.injector;return r&&t.getStandaloneInjector!==null&&(r=t.getStandaloneInjector(r)||r),r?new yg(n,r):n}function _R(t){let e=t.get(Ti,null);if(e===null)throw new M(407,!1);let n=t.get(o_,null),r=t.get(Ir,null);return{rendererFactory:e,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1}}function wR(t,e){let n=h_(t);return CC(e,n,n==="svg"?WE:n==="math"?GE:null)}function h_(t){return(t.selectors[0][0]||"div").toLowerCase()}var Fo=class extends _u{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=ER(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=DR(this.componentDef.outputs),this.cachedOutputs}constructor(e,n){super(),this.componentDef=e,this.ngModule=n,this.componentType=e.type,this.selector=ox(e.selectors),this.ngContentSelectors=e.ngContentSelectors??[],this.isBoundToModule=!!n}create(e,n,r,i,o,s){pe(se.DynamicComponentStart);let a=j(null);try{let l=this.componentDef,c=SR(r,l,s,o),u=CR(l,i||this.ngModule,e),d=_R(u),h=d.rendererFactory.createRenderer(null,l),f=r?Mx(h,r,l.encapsulation,u):wR(l,h),p=s?.some(FD)||o?.some(D=>typeof D!="function"&&D.bindings.some(FD)),E=Ug(null,c,null,512|AC(l),null,null,d,h,u,null,vC(f,u,!0));E[Oe]=f,Lc(E);let b=null;try{let D=nm(Oe,E,2,"#host",()=>c.directiveRegistry,!0,0);SC(h,f,D),ko(f,E),Cu(c,E,D),Lg(c,D,E),rm(c,D),n!==void 0&&MR(D,this.ngContentSelectors,n),b=Yt(D.index,E),E[Le]=b[Le],Jg(c,E,null)}catch(D){throw b!==null&&fg(b),fg(E),D}finally{pe(se.DynamicComponentEnd),jc()}return new su(this.componentType,E,!!p)}finally{j(a)}}};function SR(t,e,n,r){let i=t?["ng-version","21.1.1"]:sx(e.selectors[0]),o=null,s=null,a=0;if(n)for(let u of n)a+=u[bg].requiredVars,u.create&&(u.targetIdx=0,(o??=[]).push(u)),u.update&&(u.targetIdx=0,(s??=[]).push(u));if(r)for(let u=0;u<r.length;u++){let d=r[u];if(typeof d!="function")for(let h of d.bindings){a+=h[bg].requiredVars;let f=u+1;h.create&&(h.targetIdx=f,(o??=[]).push(h)),h.update&&(h.targetIdx=f,(s??=[]).push(h))}}let l=[e];if(r)for(let u of r){let d=typeof u=="function"?u:u.type,h=dp(d);l.push(h)}return Hg(0,null,IR(o,s),1,a,l,null,null,null,[i],null)}function IR(t,e){return!t&&!e?null:n=>{if(n&1&&t)for(let r of t)r.create();
vendor: 5,788 bytes, line 4
4if(n&2&&e)for(let r of e)r.update()}}function FD(t){let e=t[bg].kind;return e==="input"||e==="twoWay"}var su=class extends i_{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(e,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=qs(n[P],Oe),this.location=jo(this._tNode,n),this.instance=Yt(this._tNode.index,n)[Le],this.hostView=this.changeDetectorRef=new Or(n,void 0),this.componentType=e}setInput(e,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),n))return;let i=this._rootLView,o=Xg(r,i[P],i,e,n);this.previousInputValues.set(e,n);let s=Yt(r.index,i);em(s,1)}get injector(){return new Si(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function MR(t,e,n){let r=t.projection=[];for(let i=0;i<e.length;i++){let o=n[i];r.push(o!=null&&o.length?Array.from(o):null)}}var Ln=(()=>{class t{static __NG_ELEMENT_ID__=TR}return t})();function TR(){let t=Xe();return g_(t,$())}var AR=Ln,p_=class extends AR{_lContainer;_hostTNode;_hostLView;constructor(e,n,r){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=r}get element(){return jo(this._hostTNode,this._hostLView)}get injector(){return new Si(this._hostTNode,this._hostLView)}get parentInjector(){let e=kg(this._hostTNode,this._hostLView);if(JD(e)){let n=Zc(e,this._hostLView),r=Qc(e),i=n[P].data[r+8];return new Si(i,n)}else return new Si(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let n=LD(this._lContainer);return n!==null&&n[e]||null}get length(){return this._lContainer.length-Fe}createEmbeddedView(e,n,r){let i,o;typeof r=="number"?i=r:r!=null&&(i=r.index,o=r.injector);let s=ru(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(n||{},o,s);return this.insertImpl(a,i,Po(this._hostTNode,s)),a}createComponent(e,n,r,i,o,s,a){let l=e&&!lA(e),c;if(l)c=n;else{let b=n||{};c=b.index,r=b.injector,i=b.projectableNodes,o=b.environmentInjector||b.ngModuleRef,s=b.directives,a=b.bindings}let u=l?e:new Fo(Mr(e)),d=r||this.parentInjector;if(!o&&u.ngModule==null){let D=(l?d:this.parentInjector).get(Pe,null);D&&(o=D)}let h=Mr(u.componentType??{}),f=ru(this._lContainer,h?.id??null),p=f?.firstChild??null,E=u.create(d,i,p,o,s,a);return this.insertImpl(E.hostView,c,Po(this._hostTNode,f)),E}insert(e,n){return this.insertImpl(e,n,!0)}insertImpl(e,n,r){let i=e._lView;if(QE(i)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let l=i[Ye],c=new p_(l,l[yt],l[Ye]);c.detach(c.indexOf(e))}}let o=this._adjustIndex(n),s=this._lContainer;return fa(s,i,o,r),e.attachToViewContainerRef(),pp(tg(s),o,e),e}move(e,n){return this.insert(e,n)}indexOf(e){let n=LD(this._lContainer);return n!==null?n.indexOf(e):-1}remove(e){let n=this._adjustIndex(e,-1),r=ra(this._lContainer,n);r&&(Us(tg(this._lContainer),n),Eu(r[P],r))}detach(e){let n=this._adjustIndex(e,-1),r=ra(this._lContainer,n);return r&&Us(tg(this._lContainer),n)!=null?new Or(r):null}_adjustIndex(e,n=0){return e??this.length+n}};function LD(t){return t[Gs]}function tg(t){return t[Gs]||(t[Gs]=[])}function g_(t,e){let n,r=e[t.index];return fn(r)?n=r:(n=JC(r,e,null,t),e[t.index]=n,$g(e,n)),RR(n,e,t,r),new p_(n,t,e)}function xR(t,e){let n=t[Ce],r=n.createComment(""),i=kn(e,t),o=n.parentNode(i);return tu(n,o,r,n.nextSibling(i),!1),r}var RR=kR,NR=()=>!1;function OR(t,e,n){return NR(t,e,n)}function kR(t,e,n,r){if(t[xr])return;let i;n.type&8?i=qt(r):i=xR(e,n),t[xr]=i}var Eg=class t{queryList;matches=null;constructor(e){this.queryList=e}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},Dg=class t{queries;constructor(e=[]){this.queries=e}createEmbeddedView(e){let n=e.queries;if(n!==null){let r=e.contentQueries!==null?e.contentQueries[0]:n.length,i=[];for(let o=0;o<r;o++){let s=n.getByIndex(o),a=this.queries[s.indexInDeclarationView];i.push(a.clone())}return new t(i)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}finishViewCreation(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let n=0;n<this.queries.length;n++)om(e,n).matches!==null&&this.queries[n].setDirty()}},au=class{flags;read;predicate;constructor(e,n,r=null){this.flags=n,this.read=r,typeof e=="string"?this.predicate=UR(e):this.predicate=e}},Cg=class t{queries;constructor(e=[]){this.queries=e}elementStart(e,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(e,n)}elementEnd(e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(e)}embeddedTView(e){let n=null;for(let r=0;r<this.length;r++){let i=n!==null?n.length:0,o=this.getByIndex(r).embeddedTView(e,i);o&&(o.indexInDeclarationView=r,n!==null?n.push(o):n=[o])}return n!==null?new t(n):null}template(e,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(e,n)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}},_g=class t{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(e,n=-1){this.metadata=e,this._declarationNodeIndex=n}elementStart(e,n){this.isApplyingToNode(n)&&this.matchTNode(e,n)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,n){this.elementStart(e,n)}embeddedTView(e,n){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,n),new t(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=e.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}
vendor: 4,665 bytes, line 4
4matchTNode(e,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let i=0;i<r.length;i++){let o=r[i];this.matchTNodeWithReadOption(e,n,PR(n,o)),this.matchTNodeWithReadOption(e,n,Wc(n,e,o,!1,!1))}else r===kr?n.type&4&&this.matchTNodeWithReadOption(e,n,-1):this.matchTNodeWithReadOption(e,n,Wc(n,e,r,!1,!1))}matchTNodeWithReadOption(e,n,r){if(r!==null){let i=this.metadata.read;if(i!==null)if(i===ct||i===Ln||i===kr&&n.type&4)this.addMatch(n.index,-2);else{let o=Wc(n,e,i,!1,!1);o!==null&&this.addMatch(n.index,o)}else this.addMatch(n.index,r)}}addMatch(e,n){this.matches===null?this.matches=[e,n]:this.matches.push(e,n)}};function PR(t,e){let n=t.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===e)return n[r+1]}return null}function FR(t,e){return t.type&11?jo(t,e):t.type&4?tm(t,e):null}function LR(t,e,n,r){return n===-1?FR(e,t):n===-2?jR(t,e,r):ta(t,t[P],n,e)}function jR(t,e,n){if(n===ct)return jo(e,t);if(n===kr)return tm(e,t);if(n===Ln)return g_(e,t)}function m_(t,e,n,r){let i=e[Rn].queries[r];if(i.matches===null){let o=t.data,s=n.matches,a=[];for(let l=0;s!==null&&l<s.length;l+=2){let c=s[l];if(c<0)a.push(null);else{let u=o[c];a.push(LR(e,u,s[l+1],n.metadata.read))}}i.matches=a}return i.matches}function wg(t,e,n,r){let i=t.queries.getByIndex(n),o=i.matches;if(o!==null){let s=m_(t,e,i,n);for(let a=0;a<o.length;a+=2){let l=o[a];if(l>0)r.push(s[a/2]);else{let c=o[a+1],u=e[-l];for(let d=Fe;d<u.length;d++){let h=u[d];h[Ar]===h[Ye]&&wg(h[P],h,c,r)}if(u[Ci]!==null){let d=u[Ci];for(let h=0;h<d.length;h++){let f=d[h];wg(f[P],f,c,r)}}}}}return r}function VR(t,e){return t[Rn].queries[e].queryList}function v_(t,e,n){let r=new Jc((n&4)===4);return XE(t,e,r,r.destroy),(e[Rn]??=new Dg).queries.push(new Eg(r))-1}function BR(t,e,n){let r=ke();return r.firstCreatePass&&(y_(r,new au(t,e,n),-1),(e&2)===2&&(r.staticViewQueries=!0)),v_(r,$(),e)}function HR(t,e,n,r){let i=ke();if(i.firstCreatePass){let o=Xe();y_(i,new au(e,n,r),o.index),$R(i,t),(n&2)===2&&(i.staticContentQueries=!0)}return v_(i,$(),n)}function UR(t){return t.split(",").map(e=>e.trim())}function y_(t,e,n){t.queries===null&&(t.queries=new Cg),t.queries.track(new _g(e,n))}function $R(t,e){let n=t.contentQueries||(t.contentQueries=[]),r=n.length?n[n.length-1]:-1;e!==r&&n.push(t.queries.length-1,e)}function om(t,e){return t.queries.getByIndex(e)}function zR(t,e){let n=t[P],r=om(n,e);return r.crossesNgTemplate?wg(n,t,e,[]):m_(n,t,r,e)}var Ai=class{},Su=class{};var lu=class extends Ai{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new ou(this);constructor(e,n,r,i=!0){super(),this.ngModuleType=e,this._parent=n;let o=up(e);this._bootstrapComponents=IC(o.bootstrap),this._r3Injector=Wp(e,n,[{provide:Ai,useValue:this},{provide:ha,useValue:this.componentFactoryResolver},...r],Kn(e),new Set(["environment"])),i&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},cu=class extends Su{moduleType;constructor(e){super(),this.moduleType=e}create(e){return new lu(this.moduleType,e,[])}};var ia=class extends Ai{injector;componentFactoryResolver=new ou(this);instance=null;constructor(e){super();let n=new pi([...e.providers,{provide:Ai,useValue:this},{provide:ha,useValue:this.componentFactoryResolver}],e.parent||zs(),e.debugName,new Set(["environment"]));this.injector=n,e.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function pa(t,e,n=null){return new ia({providers:t,parent:e,debugName:n,runEnvironmentInitializers:!0}).injector}var WR=(()=>{class t{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=vp(!1,n.type),i=r.length>0?pa([r],this._injector,""):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=x({token:t,providedIn:"environment",factory:()=>new t(H(Pe))})}return t})();function re(t){return aa(()=>{let e=b_(t),n=Y(S({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Pg.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.depen
vendor: 4,310 bytes, line 4
4dencies||null,getStandaloneInjector:e.standalone?i=>i.get(WR).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||gn.Emulated,styles:t.styles||Nt,_:null,schemas:t.schemas||null,tView:null,id:""});e.standalone&&Pr("NgStandalone"),E_(n);let r=t.dependencies;return n.directiveDefs=jD(r,GR),n.pipeDefs=jD(r,xE),n.id=QR(n),n})}function GR(t){return Mr(t)||dp(t)}function Kt(t){return aa(()=>({type:t.type,bootstrap:t.bootstrap||Nt,declarations:t.declarations||Nt,imports:t.imports||Nt,exports:t.exports||Nt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function qR(t,e){if(t==null)return Tr;let n={};for(let r in t)if(t.hasOwnProperty(r)){let i=t[r],o,s,a,l;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o,l=i[3]||null):(o=i,s=i,a=yu.None,l=null),n[o]=[r,a,l],e[o]=s}return n}function YR(t){if(t==null)return Tr;let e={};for(let n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}function xe(t){return aa(()=>{let e=b_(t);return E_(e),e})}function sm(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function b_(t){let e={};return{type:t.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputConfig:t.inputs||Tr,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||Nt,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:qR(t.inputs,e),outputs:YR(t.outputs),debugInfo:null}}function E_(t){t.features?.forEach(e=>e(t))}function jD(t,e){return t?()=>{let n=typeof t=="function"?t():t,r=[];for(let i of n){let o=e(i);o!==null&&r.push(o)}return r}:null}function QR(t){let e=0,n=typeof t.consts=="function"?"":t.consts,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,n,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery];for(let o of r.join("|"))e=Math.imul(31,e)+o.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function ZR(t){return Object.getPrototypeOf(t.prototype).constructor}function Lt(t){let e=ZR(t.type),n=!0,r=[t];for(;e;){let i;if(On(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new M(903,!1);i=e.\u0275dir}if(i){if(n){r.push(i);let s=t;s.inputs=ng(t.inputs),s.declaredInputs=ng(t.declaredInputs),s.outputs=ng(t.outputs);let a=i.hostBindings;a&&tN(t,a);let l=i.viewQuery,c=i.contentQueries;if(l&&JR(t,l),c&&eN(t,c),KR(t,i),AE(t.outputs,i.outputs),On(i)&&i.data.animation){let u=t.data;u.animation=(u.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s<o.length;s++){let a=o[s];a&&a.ngInherit&&a(t),a===Lt&&(n=!1)}}e=Object.getPrototypeOf(e)}XR(r)}function KR(t,e){for(let n in e.inputs){if(!e.inputs.hasOwnProperty(n)||t.inputs.hasOwnProperty(n))continue;let r=e.inputs[n];r!==void 0&&(t.inputs[n]=r,t.declaredInputs[n]=e.declaredInputs[n])}}function XR(t){let e=0,n=null;for(let r=t.length-1;r>=0;r--){let i=t[r];i.hostVars=e+=i.hostVars,i.hostAttrs=Oo(i.hostAttrs,n=Oo(n,i.hostAttrs))}}function ng(t){return t===Tr?{}:t===Nt?[]:t}function JR(t,e){let n=t.viewQuery;n?t.viewQuery=(r,i)=>{e(r,i),n(r,i)}:t.viewQuery=e}function eN(t,e){let n=t.contentQueries;n?t.contentQueries=(r,i,o)=>{e(r,i,o),n(r,i,o)}:t.contentQueries=e}function tN(t,e){let n=t.hostBindings;n?t.hostBindings=(r,i)=>{e(r,i),n(r,i)}:t.hostBindings=e}function D_(t,e,n,r,i,o,s,a){if(n.firstCreatePass){t.mergedAttrs=Oo(t.mergedAttrs,t.attrs);let u=t.tView=Hg(2,t,i,o,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,t),u.queries=n.queries.embeddedTView(t))}a&&(t.flags|=a),xo(t,!1);let l=rN(n,e,t,r);Bc()&&qg(n,e,l,t),ko(l,e);let c=JC(l,e,l,t);e[r+Oe]=c,$g(e,c),OR(c,t,e)}function nN(t,e,n,r,i,o,s,a,l,c,u){let d=n+Oe,h;return e.firstCreatePass?(h=Vo(e,d,4,s||null,a||null),kc()&&s_(e,t,h,Qt(e.consts,c),Qg),KD(e,h)):h=e.data[d],D_(h,t,e,n,r,i,o,l),Mo(h)&&Cu(e,t,h),c!=null&&ua(t,h,u),h}function oa(t,e,n,r,i,o,s,a,l,c,u){let d=n+Oe,h;
vendor: 22,728 bytes, line 4
4if(e.firstCreatePass){if(h=Vo(e,d,4,s||null,a||null),c!=null){let f=Qt(e.consts,c);h.localNames=[];for(let p=0;p<f.length;p+=2)h.localNames.push(f[p],-1)}}else h=e.data[d];return D_(h,t,e,n,r,i,o,l),c!=null&&ua(t,h,u),h}function Ri(t,e,n,r,i,o,s,a){let l=$(),c=ke(),u=Qt(c.consts,o);return nN(l,c,t,e,n,r,i,u,void 0,s,a),Ri}var rN=iN;function iN(t,e,n,r){return Qs(!0),e[Ce].createComment("")}var am=(()=>{class t{log(n){console.log(n)}warn(n){console.warn(n)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function C_(t){return typeof t=="function"&&t[pt]!==void 0}function lm(t){return C_(t)&&typeof t.set=="function"}var cm=new T("");function Fr(t){return!!t&&typeof t.then=="function"}function um(t){return!!t&&typeof t.subscribe=="function"}var __=new T("");var dm=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=w(__,{optional:!0})??[];injector=w(Ot);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let o=Ke(this.injector,i);if(Fr(o))n.push(o);else if(um(o)){let s=new Promise((a,l)=>{o.subscribe({complete:a,error:l})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||t)};static \u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Iu=new T("");function w_(){Ih(()=>{let t="";throw new M(600,t)})}function S_(t){return t.isBoundToModule}var oN=10;var Lr=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=w(hn);afterRenderManager=w(Wg);zonelessEnabled=w(Zs);rootEffectScheduler=w(Kp);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new qe;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=w(nr);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(ve(n=>!n))}constructor(){w(or,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=w(Pe);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,i=Ot.NULL){return this._injector.get(vt).run(()=>{pe(se.BootstrapComponentStart);let s=n instanceof _u;if(!this._injector.get(dm).done){let p="";throw new M(405,p)}let l;s?l=n:l=this._injector.get(ha).resolveComponentFactory(n),this.componentTypes.push(l.componentType);let c=S_(l)?void 0:this._injector.get(Ai),u=r||l.selector,d=l.create(i,[],u,c),h=d.location.nativeElement,f=d.injector.get(cm,null);return f?.registerApplication(h),d.onDestroy(()=>{this.detachView(d.hostView),ea(this.components,d),f?.unregisterApplication(h)}),this._loadComponent(d),pe(se.BootstrapComponentEnd,d),d})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){pe(se.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(bu.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw pe(se.ChangeDetectionEnd),new M(101,!1);let n=j(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,j(n),this.afterTick.next(),pe(se.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Ti,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<oN;){pe(se.ChangeDetectionSyncStart);try{this.synchronizeOnce()}finally{pe(se.ChangeDetectionSyncEnd)}}}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=!1;if(this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:i}of this.allViews){if(!r&&!Ys(i))continue;let o=r&&!this.zonelessEnabled?0:1;QC(i,o),n=!0}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}n||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>Ys(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;ea(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView);try{this.tick()}catch(i){this.internalErrorHandler(i)}this.components.push(n),this._injector.get(Iu,[]).forEach(i=>i(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>ea(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new M(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||t)};static \u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function ea(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}var mW=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var Sg=class{destroy(e){}updateValue(e,n){}swap(e,n){let r=Math.min(e,n),i=Math.max(e,n),o=this.detach(i);if(i-r>1){let s=this.detach(r);this.attach(r,o),this.attach(i,s)}else this.attach(r,o)}move(e,n){this.attach(n,this.detach(e))}};function rg(t,e,n,r,i){return t===n&&Object.is(e,r)?1:Object.is(i(t,e),i(n,r))?-1:0}function sN(t,e,n,r){let i,o,s=0,a=t.length-1,l=void 0;if(Array.isArray(e)){j(r);let c=e.length-1;for(j(null);s<=a&&s<=c;){let u=t.at(s),d=e[s],h=rg(s,u,s,d,n);if(h!==0){h<0&&t.updateValue(s,d),s++;continue}let f=t.at(a),p=e[c],E=rg(a,f,c,p,n);if(E!==0){E<0&&t.updateValue(a,p),a--,c--;continue}let b=n(s,u),D=n(a,f),I=n(s,d);if(Object.is(I,D)){let N=n(c,p);Object.is(N,b)?(t.swap(s,a),t.updateValue(a,p),c--,a--):t.move(a,s),t.updateValue(s,d),s++;continue}if(i??=new uu,o??=BD(t,s,a,n),Ig(t,i,s,I))t.updateValue(s,d),s++,a++;else if(o.has(I))i.set(b,t.detach(s)),a--;else{let N=t.create(s,e[s]);t.attach(s,N),s++,a++}}for(;s<=c;)VD(t,i,n,s,e[s]),s++}else if(e!=null){j(r);let c=e[Symbol.iterator]();j(null);let u=c.next();for(;!u.done&&s<=a;){let d=t.at(s),h=u.value,f=rg(s,d,s,h,n);if(f!==0)f<0&&t.updateValue(s,h),s++,u=c.next();else{i??=new uu,o??=BD(t,s,a,n);let p=n(s,h);if(Ig(t,i,s,p))t.updateValue(s,h),s++,a++,u=c.next();else if(!o.has(p))t.attach(s,t.create(s,h)),s++,a++,u=c.next();else{let E=n(s,d);i.set(E,t.detach(s)),a--}}}for(;!u.done;)VD(t,i,n,t.length,u.value),u=c.next()}for(;s<=a;)t.destroy(t.detach(a--));i?.forEach(c=>{t.destroy(c)})}function Ig(t,e,n,r){return e!==void 0&&e.has(r)?(t.attach(n,e.get(r)),e.delete(r),!0):!1}function VD(t,e,n,r,i){if(Ig(t,e,r,n(r,i)))t.updateValue(r,i);else{let o=t.create(r,i);t.attach(r,o)}}function BD(t,e,n,r){let i=new Set;for(let o=e;o<=n;o++)i.add(r(o,t.at(o)));return i}var uu=class{kvMap=new Map;_vMap=void 0;has(e){return this.kvMap.has(e)}delete(e){if(!this.has(e))return!1;let n=this.kvMap.get(e);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(e,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(e),!0}get(e){return this.kvMap.get(e)}set(e,n){if(this.kvMap.has(e)){let r=this.kvMap.get(e);this._vMap===void 0&&(this._vMap=new Map);let i=this._vMap;for(;i.has(r);)r=i.get(r);i.set(r,n)}else this.kvMap.set(e,n)}forEach(e){for(let[n,r]of this.kvMap)if(e(r,n),this._vMap!==void 0){let i=this._vMap;for(;i.has(r);)r=i.get(r),e(r,n)}}};function _e(t,e,n,r,i,o,s,a){Pr("NgControlFlow");let l=$(),c=ke(),u=Qt(c.consts,o);return oa(l,c,t,e,n,r,i,u,256,s,a),fm}function fm(t,e,n,r,i,o,s,a){Pr("NgControlFlow");let l=$(),c=ke(),u=Qt(c.consts,o);return oa(l,c,t,e,n,r,i,u,512,s,a),fm}function we(t,e){Pr("NgControlFlow");let n=$(),r=wi(),i=n[r]!==Zt?n[r]:-1,o=i!==-1?du(n,Oe+i):void 0,s=0;if(Fn(n,r,t)){let a=j(null);try{if(o!==void 0&&t_(o,s),t!==-1){let l=Oe+t,c=du(n,l),u=xg(n[P],l),d=r_(c,u,n),h=da(n,u,e,{dehydratedView:d});fa(c,h,s,Po(u,d))}}finally{j(a)}}else if(o!==void 0){let a=e_(o,s);a!==void 0&&(a[Le]=e)}}var Mg=class{lContainer;$implicit;$index;constructor(e,n,r){this.lContainer=e,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-Fe}};function yn(t){return t}var Tg=class{hasEmptyBlock;trackByFn;liveCollection;constructor(e,n,r){this.hasEmptyBlock=e,this.trackByFn=n,this.liveCollection=r}};function jt(t,e,n,r,i,o,s,a,l,c,u,d,h){Pr("NgControlFlow");let f=$(),p=ke(),E=l!==void 0,b=$(),D=a?s.bind(b[bt][Le]):s,I=new Tg(E,D);b[Oe+t]=I,oa(f,p,t+1,e,n,r,i,Qt(p.consts,o),256),E&&oa(f,p,t+2,l,c,u,d,Qt(p.consts,h),512)}var Ag=class extends Sg{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(e,n,r){super(),this.lContainer=e,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-Fe}at(e){return this.getLView(e)[Le].$implicit}attach(e,n){let r=n[vi];this.needsIndexUpdate||=e!==this.length,fa(this.lContainer,n,e,Po(this.templateTNode,r)),aN(this.lContainer,e)}detach(e){return this.needsIndexUpdate||=e!==this.length-1,lN(this.lContainer,e),cN(this.lContainer,e)}create(e,n){let r=ru(this.lContainer,this.templateTNode.tView.ssrId);return da(this.hostLView,this.templateTNode,new Mg(this.lContainer,n,e),{dehydratedView:r})}destroy(e){Eu(e[P],e)}updateValue(e,n){this.getLView(e)[Le].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let e=0;e<this.length;e++)this.getLView(e)[Le].$index=e}getLView(e){return uN(this.lContainer,e)}};function Vt(t){let e=j(null),n=tr();try{let r=$(),i=r[P],o=r[n],s=n+1,a=du(r,s);if(o.liveCollection===void 0){let c=xg(i,s);o.liveCollection=new Ag(a,r,c)}else o.liveCollection.reset();let l=o.liveCollection;if(sN(l,t,o.trackByFn,e),l.updateIndexes(),o.hasEmptyBlock){let c=wi(),u=l.length===0;if(Fn(r,c,u)){let d=n+2,h=du(r,d);if(u){let f=xg(i,d),p=r_(h,f,r),E=da(r,f,void 0,{dehydratedView:p});fa(h,E,0,Po(f,p))}else i.firstUpdatePass&&rR(h),t_(h,0)}}}finally{j(e)}}function du(t,e){return t[e]}function aN(t,e){if(t.length<=Fe)return;let n=Fe+e,r=t[n],i=r?r[Di]:void 0;if(r&&i&&i.detachedLeaveAnimationFns&&i.detachedLeaveAnimationFns.length>0){let o=r[Jn];hx(o,i),Mi.delete(r[er]),i.detachedLeaveAnimationFns=void 0}}function lN(t,e){if(t.length<=Fe)return;let n=Fe+e,r=t[n],i=r?r[Di]:void 0;i&&i.leave&&i.leave.size>0&&(i.detachedLeaveAnimationFns=[])}function cN(t,e){return ra(t,e)}function uN(t,e){return e_(t,e)}function xg(t,e){return qs(t,e)}function B(t,e,n){let r=$(),i=wi();if(Fn(r,i,e)){let o=ke(),s=Vc();UC(s,r,t,e,r[Ce],n)}return B}function HD(t,e,n,r,i){Xg(e,t,n,i?"class":"style",r)}function m(t,e,n,r){let i=$(),o=i[P],s=t+Oe,a=o.firstCreatePass?nm(s,i,2,e,Qg,kc(),n,r):o.data[s];if(Zg(a,i,t,e,I_),Mo(a)){let l=i[P];Cu(l,i,a),Lg(l,a,i)}return r!=null&&ua(i,a),m}function v(){let t=ke(),e=Xe(),n=Kg(e);return t.firstCreatePass&&rm(t,n),Op(n)&&kp(),Rp(),n.classesWithoutHost!=null&&pA(n)&&HD(t,n,$(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&gA(n)&&HD(t,n,$(),n.stylesWithoutHost,!1),v}function oe(t,e,n,r){return m(t,e,n,r),v(),oe}function V(t,e,n,r){let i=$(),o=i[P],s=t+Oe,a=o.firstCreatePass?vR(s,o,2,e,n,r):o.data[s];return Zg(a,i,t,e,I_),r!=null&&ua(i,a),V}function U(){let t=Xe(),e=Kg(t);return Op(e)&&kp(),Rp(),U}function jr(t,e,n,r){return V(t,e,n,r),U(),jr}var I_=(t,e,n,r,i)=>(Qs(!0),CC(e[Ce],r,fD()));function hm(t,e,n){let r=$(),i=r[P],o=t+Oe,s=i.firstCreatePass?nm(o,r,8,"ng-container",Qg,kc(),e,n):i.data[o];if(Zg(s,r,t,"ng-container",dN),Mo(s)){let a=r[P];Cu(a,r,s),Lg(a,s,r)}return n!=null&&ua(r,s),hm}function pm(){let t=ke(),e=Xe(),n=Kg(e);return t.firstCreatePass&&rm(t,n),pm}function ar(t,e,n){return hm(t,e,n),pm(),ar}var dN=(t,e,n,r,i)=>(Qs(!0),WA(e[Ce],""));function ut(){return $()}function Bo(t,e,n){let r=$(),i=wi();if(Fn(r,i,e)){let o=ke(),s=Vc();$C(s,r,t,e,r[Ce],n)}return Bo}var Xs=void 0;function fN(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return e===1&&n===0?1:5}var hN=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Xs,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Xs,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm\u202Fa","h:mm:ss\u202Fa","h:mm:ss\u202Fa z","h:mm:ss\u202Fa zzzz"],["{1}, {0}",Xs,Xs,Xs],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",fN],ig={};function Bt(t){let e=pN(t),n=UD(e);if(n)return n;let r=e.split("-")[0];if(n=UD(r),n)return n;if(r==="en")return hN;throw new M(701,!1)}function UD(t){return t in ig||(ig[t]=gi.ng&&gi.ng.common&&gi.ng.common.locales&&gi.ng.common.locales[t]),ig[t]}var je=(function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t})(je||{});function pN(t){return t.toLowerCase().replace(/_/g,"-")}var ga="en-US";var gN=ga;function M_(t){typeof t=="string"&&(gN=t.toLowerCase().replace(/_/g,"-"))}function L(t,e,n){let r=$(),i=ke(),o=Xe();return T_(i,r,r[Ce],o,t,e,n),L}function $e(t,e,n){let r=$(),i=ke(),o=Xe();return(o.type&3||n)&&d_(o,i,r,n,r[Ce],t,e,qc(o,r,e)),$e}function T_(t,e,n,r,i,o,s){let a=!0,l=null;if((r.type&3||s)&&(l??=qc(r,e,o),d_(r,t,e,s,n,i,o,l)&&(a=!1)),a){let c=r.outputs?.[i],u=r.hostDirectiveOutputs?.[i];if(u&&u.length)for(let d=0;d<u.length;d+=2){let h=u[d],f=u[d+1];l??=qc(r,e,o),PD(r,e,h,f,i,l)}if(c&&c.length)for(let d of c)l??=qc(r,e,o),PD(r,e,d,i,i,l)}}function F(t=1){return dD(t)}function mN(t,e){let n=null,r=ex(t);for(let i=0;i<e.length;i++){let o=e[i];if(o==="*"){n=i;continue}if(r===null?TC(t,o,!0):rx(r,o))return i}return n}function gm(t){let e=$()[bt][yt];if(!e.projection){let n=t?t.length:1,r=e.projection=LE(n,null),i=r.slice(),o=e.child;for(;o!==null;){if(o.type!==128){let s=t?mN(o,t):0;s!==null&&(i[s]?i[s].projectionNext=o:r[s]=o,i[s]=o)}o=o.next}}}function mm(t,e=0,n,r,i,o){let s=$(),a=ke(),l=r?t+1:null;l!==null&&oa(s,a,l,r,i,o,null,n);let c=Vo(a,Oe+t,16,null,n||null);c.projection===null&&(c.projection=e),Lp();let d=!s[vi]||Np();s[bt][yt].projection[c.projection]===null&&l!==null?vN(s,a,l):d&&!vu(c)&&wx(a,s,c)}function vN(t,e,n){let r=Oe+n,i=e.data[r],o=t[r],s=ru(o,i.tView.ssrId),a=da(t,i,void 0,{dehydratedView:s});fa(o,a,0,Po(i,s))}function Mu(t,e,n,r){return HR(t,e,n,r),Mu}function Tu(t,e,n){return BR(t,e,n),Tu}function Je(t){let e=$(),n=ke(),r=Up();Fc(r+1);let i=om(n,r);if(t.dirty&&YE(e)===((i.metadata.flags&2)===2)){if(i.matches===null)t.reset([]);else{let o=zR(e,r);t.reset(o,TA),t.notifyOnChanges()}return!0}return!1}function et(){return VR($(),Up())}function Uc(t,e){return t<<17|e<<2}function xi(t){return t>>17&32767}function yN(t){return(t&2)==2}function bN(t,e){return t&131071|e<<17}function Rg(t){return t|2}function Lo(t){return(t&131068)>>2}function og(t,e){return t&-131069|e<<2}function EN(t){return(t&1)===1}function Ng(t){return t|1}function DN(t,e,n,r,i,o){let s=o?e.classBindings:e.styleBindings,a=xi(s),l=Lo(s);t[r]=n;let c=!1,u;if(Array.isArray(n)){let d=n;u=d[1],(u===null||Co(d,u)>0)&&(c=!0)}else u=n;if(i)if(l!==0){let h=xi(t[a+1]);t[r+1]=Uc(h,a),h!==0&&(t[h+1]=og(t[h+1],r)),t[a+1]=bN(t[a+1],r)}else t[r+1]=Uc(a,0),a!==0&&(t[a+1]=og(t[a+1],r)),a=r;else t[r+1]=Uc(l,0),a===0?a=r:t[l+1]=og(t[l+1],r),l=r;c&&(t[r+1]=Rg(t[r+1])),$D(t,u,r,!0),$D(t,u,r,!1),CN(e,u,t,r,o),s=Uc(a,l),o?e.classBindings=s:e.styleBindings=s}function CN(t,e,n,r,i){let o=i?t.residualClasses:t.residualStyles;o!=null&&typeof e=="string"&&Co(o,e)>=0&&(n[r+1]=Ng(n[r+1]))}function $D(t,e,n,r){let i=t[n+1],o=e===null,s=r?xi(i):Lo(i),a=!1;for(;s!==0&&(a===!1||o);){let l=t[s],c=t[s+1];_N(l,e)&&(a=!0,t[s+1]=r?Ng(c):Rg(c)),s=r?xi(c):Lo(c)}a&&(t[n+1]=r?Rg(i):Ng(i))}function _N(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?Co(t,e)>=0:!1}function Au(t,e,n){return A_(t,e,n,!1),Au}function bn(t,e){return A_(t,e,null,!0),bn}function A_(t,e,n,r){let i=$(),o=ke(),s=Hp(2);if(o.firstUpdatePass&&SN(o,t,s,r),e!==Zt&&Fn(i,s,e)){let a=o.data[tr()];xN(o,a,i,i[Ce],t,i[s+1]=RN(e,n),r,s)}}function wN(t,e){return e>=t.expandoStartIndex}function SN(t,e,n,r){let i=t.data;if(i[n+1]===null){let o=i[tr()],s=wN(t,n);NN(o,r)&&e===null&&!s&&(e=!1),e=IN(i,o,e,r),DN(i,o,e,n,s,r)}}function IN(t,e,n,r){let i=aD(t),o=r?e.residualClasses:e.residualStyles;if(i===null)(r?e.classBindings:e.styleBindings)===0&&(n=sg(null,t,e,n,r),n=sa(n,e.attrs,r),o=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==i)if(n=sg(i,t,e,n,r),o===null){let l=MN(t,e,r);l!==void 0&&Array.isArray(l)&&(l=sg(null,t,e,l[1],r),l=sa(l,e.attrs,r),TN(t,e,r,l))}else o=AN(t,e,r)}return o!==void 0&&(r?e.residualClasses=o:e.residualStyles=o),n}function MN(t,e,n){let r=n?e.classBindings:e.styleBindings;if(Lo(r)!==0)return t[xi(r)]}function TN(t,e,n,r){let i=n?e.classBindings:e.styleBindings;t[xi(i)]=r}function AN(t,e,n){let r,i=e.directiveEnd;for(let o=1+e.directiveStylingLast;o<i;o++){let s=t[o].hostAttrs;r=sa(r,s,n)}return sa(r,e.attrs,n)}function sg(t,e,n,r,i){let o=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(o=e[a],r=sa(r,o.hostAttrs,i),o!==t);)a++;return t!==null&&(n.directiveStylingLast=a),r}function sa(t,e,n){let r=n?1:2,i=-1;if(e!==null)for(let o=0;o<e.length;o++){let s=e[o];typeof s=="number"?i=s:i===r&&(Array.isArray(t)||(t=t===void 0?[]:["",t]),VE(t,s,n?!0:e[++o]))}return t===void 0?null:t}function xN(t,e,n,r,i,o,s,a){if(!(e.type&3))return;let l=t.data,c=l[a+1],u=EN(c)?zD(l,e,n,i,Lo(c),s):void 0;if(!fu(u)){fu(o)||yN(c)&&(o=zD(l,null,n,i,a,s));let d=wp(tr(),n);Ix(r,s,d,i,o)}}function zD(t,e,n,r,i,o){let s=e===null,a;for(;i>0;){let l=t[i],c=Array.isArray(l),u=c?l[1]:l,d=u===null,h=n[i+1];h===Zt&&(h=d?Nt:void 0);let f=d?Ac(h,r):u===r?h:void 0;if(c&&!fu(f)&&(f=Ac(l,r)),fu(f)&&(a=f,s))return a;let p=t[i+1];i=s?xi(p):Lo(p)}if(e!==null){let l=o?e.residualClasses:e.residualStyles;l!=null&&(a=Ac(l,r))}return a}function fu(t){return t!==void 0}function RN(t,e){return t==null||t===""||(typeof e=="string"?t=t+e:typeof t=="object"&&(t=Kn(jg(t)))),t}function NN(t,e){return(t.flags&(e?8:16))!==0}function y(t,e=""){let n=$(),r=ke(),i=t+Oe,o=r.firstCreatePass?Vo(r,i,1,e,null):r.data[i],s=ON(r,n,o,e,t);n[i]=s,Bc()&&qg(r,n,s,o),xo(o,!1)}var ON=(t,e,n,r,i)=>(Qs(!0),$A(e[Ce],r));function kN(t,e,n,r=""){return Fn(t,wi(),n)?e+Do(n)+r:Zt}function PN(t,e,n,r,i,o=""){let s=nD(),a=u_(t,s,n,i);return Hp(2),a?e+Do(n)+r+Do(i)+o:Zt}function ye(t){return Z("",t),ye}function Z(t,e,n){let r=$(),i=kN(r,t,e,n);return i!==Zt&&x_(r,tr(),i),Z}function Vr(t,e,n,r,i){let o=$(),s=PN(o,t,e,n,r,i);return s!==Zt&&x_(o,tr(),s),Vr}function x_(t,e,n){let r=wp(e,t);zA(t[Ce],r,n)}function Se(t,e,n){lm(e)&&(e=e());let r=$(),i=wi();if(Fn(r,i,e)){let o=ke(),s=Vc();UC(s,r,t,e,r[Ce],n)}return Se}function Te(t,e){let n=lm(t);return n&&t.set(e),n}function Ie(t,e){let n=$(),r=ke(),i=Xe();return T_(r,n,n[Ce],i,t,e),Ie}function WD(t,e,n){let r=ke();r.firstCreatePass&&R_(e,r.data,r.blueprint,On(t),n)}function R_(t,e,n,r,i){if(t=st(t),Array.isArray(t))for(let o=0;o<t.length;o++)R_(t[o],e,n,r,i);else{let o=ke(),s=$(),a=Xe(),l=hi(t)?t:st(t.provide),c=bp(t),u=a.providerIndexes&1048575,d=a.directiveStart,h=a.providerIndexes>>20;if(hi(t)||!t.multi){let f=new Ii(c,i,R,null),p=lg(l,e,i?u:u+h,d);p===-1?(ug(Xc(a,s),o,l),ag(o,t,e.length),e.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[p]=f,s[p]=f)}else{let f=lg(l,e,u+h,d),p=lg(l,e,u,u+h),E=f>=0&&n[f],b=p>=0&&n[p];if(i&&!b||!i&&!E){ug(Xc(a,s),o,l);let D=jN(i?LN:FN,n.length,i,r,c,t);!i&&b&&(n[p].providerFactory=D),ag(o,t,e.length,0),e.push(l),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),n.push(D),s.push(D)}else{let D=N_(n[i?p:f],c,!i&&r);ag(o,t,f>-1?f:p,D)}!i&&r&&b&&n[p].componentProviders++}}}function ag(t,e,n,r){let i=hi(e),o=UE(e);if(i||o){let l=(o?st(e.useClass):e).prototype.ngOnDestroy;if(l){let c=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){let u=c.indexOf(n);u===-1?c.push(n,[r,l]):c[u+1].push(r,l)}else c.push(n,l)}}}function N_(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function lg(t,e,n,r){for(let i=n;i<r;i++)if(e[i]===t)return i;return-1}function FN(t,e,n,r,i){return Og(this.multi,[])}function LN(t,e,n,r,i){let o=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,l=ta(r,r[P],this.providerFactory.index,i);s=l.slice(0,a),Og(o,s);for(let c=a;c<l.length;c++)s.push(l[c])}else s=[],Og(o,s);return s}function Og(t,e){for(let n=0;n<t.length;n++){let r=t[n];e.push(r())}return e}function jN(t,e,n,r,i,o){let s=new Ii(t,n,R,null);return s.multi=[],s.index=e,s.componentProviders=0,N_(s,i,r&&!n),s}function Br(t,e){return n=>{n.providersResolver=(r,i)=>WD(r,i?i(t):t,!1),e&&(n.viewProvidersResolver=(r,i)=>WD(r,i?i(e):e,!0))}}function Hr(t,e,n){return VN($(),Bp(),t,e,n)}function O_(t,e){let n=t[e];return n===Zt?void 0:n}function VN(t,e,n,r,i,o){let s=e+n;return Fn(t,s,i)?c_(t,s+1,o?r.call(o,i):r(i)):O_(t,s+1)}function BN(t,e,n,r,i,o,s){let a=e+n;return u_(t,a,i,o)?c_(t,a+2,s?r.call(s,i,o):r(i,o)):O_(t,a+2)}function Ho(t,e){let n=ke(),r,i=t+Oe;n.firstCreatePass?(r=HN(e,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks??=[]).push(i,r.onDestroy)):r=n.data[i];
4let o=r.factory||(r.factory=wr(r.type,!0)),s,a=mt(R);try{let l=Kc(!1),c=o();return Kc(l),Sp(n,$(),i,c),c}finally{mt(a)}}function HN(t,e){if(e)for(let n=e.length-1;n>=0;n--){let r=e[n];if(t===r.name)return r}}function Uo(t,e,n,r){let i=t+Oe,o=$(),s=qE(o,i);return UN(o,i)?BN(o,Bp(),e,s.transform,n,r,s):s.transform(n,r)}function UN(t,e){return t[P].data[e].pure}var hu=class{ngModuleFactory;componentFactories;constructor(e,n){this.ngModuleFactory=e,this.componentFactories=n}},vm=(()=>{class t{compileModuleSync(n){return new cu(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),i=up(n),o=IC(i.declarations).reduce((s,a)=>{let l=Mr(a);return l&&s.push(new Fo(l)),s},[]);return new hu(r,o)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||t)};static \u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var k_=(()=>{class t{applicationErrorHandler=w(hn);appRef=w(Lr);taskService=w(nr);ngZone=w(vt);zonelessEnabled=w(Zs);tracing=w(or,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new rt;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Vs):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(w(Zp,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let n=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(n);return}this.switchToMicrotaskScheduler(),this.taskService.remove(n)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let n=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})})}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?mD:Gp;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Vs+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){this.applicationErrorHandler(r)}finally{this.taskService.remove(n),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||t)};static \u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function P_(){return[{provide:Ir,useExisting:k_},{provide:vt,useClass:Bs},{provide:Zs,useValue:!0}]}function $N(){return typeof $localize<"u"&&$localize.locale||ga}var ma=new T("",{factory:()=>w(ma,{optional:!0,skipSelf:!0})||$N()});var xu=class{destroyed=!1;listeners=null;errorHandler=w(Wt,{optional:!0});destroyRef=w(Ft);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(e){if(this.destroyed)throw new M(953,!1);return(this.listeners??=[]).push(e),{unsubscribe:()=>{let n=this.listeners?.indexOf(e);n!==void 0&&n!==-1&&this.listeners?.splice(n,1)}}}emit(e){if(this.destroyed){console.warn(Xn(953,!1));return}if(this.listeners===null)return;let n=j(null);try{for(let r of this.listeners)try{r(e)}catch(i){this.errorHandler?.handleError(i)}}finally{j(n)}}};function Ni(t,e){return Yl(t,e?.equal)}var B_=Symbol("InputSignalNode#UNSET"),aO=Y(S({},Ql),{transformFn:void 0,applyValueToInputSignal(t,e){xs(t,e)}});function H_(t,e){let n=Object.create(aO);n.value=t,n.transformFn=e?.transform;function r(){if(Ms(n),n.value===B_){let i=null;throw new M(-950,i)}return n.value}return r[pt]=n,r}function U_(t){return new xu}function F_(t,e){return H_(t,e)}function lO(t){return H_(B_,t)}var Ou=(F_.required=lO,F_);var ym=new T(""),cO=new T("");function va(t){return!t.moduleRef}function uO(t){let e=va(t)?t.r3Injector:t.moduleRef.injector,n=e.get(vt);return n.run(()=>
vendor: 9,125 bytes, line 4
4{va(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let r=e.get(hn),i;if(n.runOutsideAngular(()=>{i=n.onError.subscribe({next:r})}),va(t)){let o=()=>e.destroy(),s=t.platformInjector.get(ym);s.add(o),e.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else{let o=()=>t.moduleRef.destroy(),s=t.platformInjector.get(ym);s.add(o),t.moduleRef.onDestroy(()=>{ea(t.allPlatformModules,t.moduleRef),i.unsubscribe(),s.delete(o)})}return fO(r,n,()=>{let o=e.get(nr),s=o.add(),a=e.get(dm);return a.runInitializers(),a.donePromise.then(()=>{let l=e.get(ma,ga);if(M_(l||ga),!e.get(cO,!0))return va(t)?e.get(Lr):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(va(t)){let u=e.get(Lr);return t.rootComponent!==void 0&&u.bootstrap(t.rootComponent),u}else return dO?.(t.moduleRef,t.allPlatformModules),t.moduleRef}).finally(()=>{o.remove(s)})})})}var dO;function fO(t,e,n){try{let r=n();return Fr(r)?r.catch(i=>{throw e.runOutsideAngular(()=>t(i)),i}):r}catch(r){throw e.runOutsideAngular(()=>t(r)),r}}var Ru=null;function hO(t=[],e){return Ot.create({name:e,providers:[{provide:$s,useValue:"platform"},{provide:ym,useValue:new Set([()=>Ru=null])},...t]})}function pO(t=[]){if(Ru)return Ru;let e=hO(t);return Ru=e,w_(),gO(e),e}function gO(t){let e=t.get(gu,null);Ke(t,()=>{e?.forEach(n=>n())})}var mO=1e4;var S9=mO-1e3;var Ur=(()=>{class t{static __NG_ELEMENT_ID__=vO}return t})();function vO(t){return yO(Xe(),$(),(t&16)===16)}function yO(t,e,n){if(Rr(t)&&!n){let r=Yt(t.index,e);return new Or(r,r)}else if(t.type&175){let r=e[bt];return new Or(r,e)}return null}var bm=class{constructor(){}supports(e){return im(e)}create(e){return new Em(e)}},bO=(t,e)=>e,Em=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(e){this._trackByFn=e||bO}forEachItem(e){let n;for(n=this._itHead;n!==null;n=n._next)e(n)}forEachOperation(e){let n=this._itHead,r=this._removalsHead,i=0,o=null;for(;n||r;){let s=!r||n&&n.currentIndex<L_(r,i,o)?n:r,a=L_(s,i,o),l=s.currentIndex;if(s===r)i--,r=r._nextRemoved;else if(n=n._next,s.previousIndex==null)i++;else{o||(o=[]);let c=a-i,u=l-i;if(c!=u){for(let h=0;h<c;h++){let f=h<o.length?o[h]:o[h]=0,p=f+h;u<=p&&p<c&&(o[h]=f+1)}let d=s.previousIndex;o[d]=u-c}}a!==l&&e(s,a,l)}}forEachPreviousItem(e){let n;for(n=this._previousItHead;n!==null;n=n._nextPrevious)e(n)}forEachAddedItem(e){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)e(n)}forEachMovedItem(e){let n;for(n=this._movesHead;n!==null;n=n._nextMoved)e(n)}forEachRemovedItem(e){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)e(n)}forEachIdentityChange(e){let n;for(n=this._identityChangesHead;n!==null;n=n._nextIdentityChange)e(n)}diff(e){if(e==null&&(e=[]),!im(e))throw new M(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let n=this._itHead,r=!1,i,o,s;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)o=e[a],s=this._trackByFn(a,o),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,o,s,a),r=!0):(r&&(n=this._verifyReinsertion(n,o,s,a)),Object.is(n.item,o)||this._addIdentityChange(n,o)),n=n._next}else i=0,l_(e,a=>{s=this._trackByFn(i,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,i),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,i)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,i++}),this.length=i;return this._truncate(n),this.collection=e,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;e!==null;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;e!==null;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,n,r,i){let o;return e===null?o=this._itTail:(o=e._prev,this._remove(e)),e=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),e!==null?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._reinsertAfter(e,o,i)):(e=this._linkedRecords===null?null:this._linkedRecords.get(r,i),e!==null?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._moveAfter(e,o,i)):e=this._addAfter(new Dm(n,r),o,i)),e}_verifyReinsertion(e,n,r,i){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return o!==null?e=this._reinsertAfter(o,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;e!==null;){let n=e._next;this._addToRemovals(this._unlink(e)),e=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(e);let i=e._prevRemoved,o=e._nextRemoved;return i===null?this._removalsHead=o:i._nextRemoved=o,o===null?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(e,n,r),this._addToMoves(e,r),e}_moveAfter(e,n,r){return this._unlink(e),this._insertAfter(e,n,r),this._addToMoves(e,r),e}_addAfter(e,n,r){return this._insertAfter(e,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e}_insertAfter(e,n,r){let i=n===null?this._itHead:n._next;return e._next=i,e._prev=n,i===null?this._itTail=e:i._prev=e,n===null?this._itHead=e:n._next=e,this._linkedRecords===null&&(this._linkedRecords=new Nu),this._linkedRecords.put(e),e.currentIndex=r,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){this._linkedRecords!==null&&this._linkedRecords.remove(e);let n=e._prev,r=e._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,e}_addToMoves(e,n){return e.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e),e}_addToRemovals(e){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Nu),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,n){return e.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e}},Dm=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(e,n){this.item=e,this.trackById=n}},Cm=class{_head=null;_tail=null;add(e){this._head===null?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,e))return r;return null}remove(e){let n=e._prevDup,r=e._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},Nu=class{map=new Map;put(e){let n=e.trackById,r=this.map.get(n);r||(r=new Cm,this.map.set(n,r)),r.add(e)}get(e,n){let r=e,i=this.map.get(r);return i?i.get(e,n):null}remove(e){let n=e.trackById;return this.map.get(n).remove(e)&&this.map.delete(n),e}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function L_(t,e,n){let r=t.previousIndex;if(r===null)return r;let i=0;return n&&r<n.length&&(i=n[r]),r+e+i}var _m=class{constructor(){}supports(e){return e instanceof Map||wu(e)}create(){return new wm}},wm=class{_records=new Map;_mapHead=null;_appendAfter=null;_previousMapHead=null;_changesHead=null;_changesTail=null;_additionsHead=null;_additionsTail=null;_removalsHead=null;_removalsTail=null;get isDirty(){return this._additionsHead!==null||this._changesHead!==null||this._removalsHead!==null}forEachItem(e){let n;for(n=this._mapHead;n!==null;n=n._next)e(n)}forEachPreviousItem(e){let n;for(n=this._previousMapHead;n!==null;n=n._nextPrevious)e(n)}forEachChangedItem(e){let n;for(n=this._changesHead;n!==null;n=n._nextChanged)e(n)}forEachAddedItem(e){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)e(n)}forEachRemovedItem(e){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)e(n)}diff(e){if(!e)e=new Map;else if(!(e instanceof Map||wu(e)))throw new M(900,!1);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let n=this._mapHead;
vendor: 11,264 bytes, line 4
4if(this._appendAfter=null,this._forEach(e,(r,i)=>{if(n&&n.key===i)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{let o=this._getOrCreateRecordForKey(i,r);n=this._insertBeforeOrAppend(n,o)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;r!==null;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,n){if(e){let r=e._prev;return n._next=e,n._prev=r,e._prev=n,r&&(r._next=n),e===this._mapHead&&(this._mapHead=n),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(e,n){if(this._records.has(e)){let i=this._records.get(e);this._maybeAddToChanges(i,n);let o=i._prev,s=i._next;return o&&(o._next=s),s&&(s._prev=o),i._next=null,i._prev=null,i}let r=new Sm(e);return this._records.set(e,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;e!==null;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;e!==null;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;e!=null;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,n){Object.is(n,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=n,this._addToChanges(e))}_addToAdditions(e){this._additionsHead===null?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){this._changesHead===null?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,n){e instanceof Map?e.forEach(n):Object.keys(e).forEach(r=>n(e[r],r))}},Sm=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(e){this.key=e}};function j_(){return new Im([new bm])}var Im=(()=>{class t{factories;static \u0275prov=x({token:t,providedIn:"root",factory:j_});constructor(n){this.factories=n}static create(n,r){if(r!=null){let i=r.factories.slice();n=n.concat(i)}return new t(n)}static extend(n){return{provide:t,useFactory:()=>{let r=w(t,{optional:!0,skipSelf:!0});return t.create(n,r||j_())}}}find(n){let r=this.factories.find(i=>i.supports(n));if(r!=null)return r;throw new M(901,!1)}}return t})();function V_(){return new Mm([new _m])}var Mm=(()=>{class t{static \u0275prov=x({token:t,providedIn:"root",factory:V_});factories;constructor(n){this.factories=n}static create(n,r){if(r){let i=r.factories.slice();n=n.concat(i)}return new t(n)}static extend(n){return{provide:t,useFactory:()=>{let r=w(t,{optional:!0,skipSelf:!0});return t.create(n,r||V_())}}}find(n){let r=this.factories.find(i=>i.supports(n));if(r)return r;throw new M(901,!1)}}return t})();function $_(t){let{rootComponent:e,appProviders:n,platformProviders:r,platformRef:i}=t;pe(se.BootstrapApplicationStart);try{let o=i?.injector??pO(r),s=[P_(),yD,...n||[]],a=new ia({providers:s,parent:o,debugName:"",runEnvironmentInitializers:!1});return uO({r3Injector:a.injector,platformInjector:o,rootComponent:e})}catch(o){return Promise.reject(o)}finally{pe(se.BootstrapApplicationEnd)}}function Tm(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}var z_=null;function Xt(){return z_}function Am(t){z_??=t}var ya=class{},$o=(()=>{class t{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||t)};static \u0275prov=x({token:t,factory:()=>w(W_),providedIn:"platform"})}return t})();var W_=(()=>{class t extends $o{_location;_history;_doc=w(Ue);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Xt().getBaseHref(this._doc)}onPopState(n){let r=Xt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=Xt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,i){this._history.pushState(n,r,i)}replaceState(n,r,i){this._history.replaceState(n,r,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||t)};static \u0275prov=x({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function Y_(t,e){return t?e?t.endsWith("/")?e.startsWith("/")?t+e.slice(1):t+e:e.startsWith("/")?t+e:`${t}/${e}`:t:e}function G_(t){let e=t.search(/#|\?|$/);return t[e-1]==="/"?t.slice(0,e-1)+t.slice(e):t}function $r(t){return t&&t[0]!=="?"?`?${t}`:t}var ku=(()=>{class t{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||t)};static \u0275prov=x({token:t,factory:()=>w(DO),providedIn:"root"})}return t})(),EO=new T(""),DO=(()=>{class t extends ku{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??w(Ue).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Y_(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+$r(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${r}${i}`:r}pushState(n,r,i,o){let s=this.prepareExternalUrl(i+$r(o));this._platformLocation.pushState(n,r,s)}replaceState(n,r,i,o){let s=this.prepareExternalUrl(i+$r(o));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static \u0275fac=function(r){return new(r||t)(H($o),H(EO,8))};static \u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),zr=(()=>{class t{_subject=new qe;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=wO(G_(q_(r))),this._locationStrategy.onPopState(i=>{this._subject.next({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+$r(r))}normalize(n){return t.stripTrailingSlash(_O(this._basePath,q_(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",i=null){this._locationStrategy.pushState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+$r(r)),i)}replaceState(n,r="",i=null){this._locationStrategy.replaceState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+$r(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(i=>i(n,r))}subscribe(n,r,i){return this._subject.subscribe({next:n,error:r??void 0,complete:i??void 0})}static normalizeQueryParams=$r;static joinWithSlash=Y_;static stripTrailingSlash=G_;static \u0275fac=function(r){return new(r||t)(H(ku))};static \u0275prov=x({token:t,factory:()=>CO(),providedIn:"root"})}return t})();function CO(){return new zr(H(ku))}function _O(t,e){if(!t||!e.startsWith(t))return e;let n=e.substring(t.length);return n===""||["/",";","?","#"].includes(n[0])?n:e}function q_(t){return t.replace(/\/index.html$/,"")}function wO(t){if(new RegExp("^(https?:)?//").test(t)){let[,n]=t.split(/\/\/[^\/]+/);return n}return t}var dt=(function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t})(dt||{}),be=(function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t})(be||{}),St=(function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t})(St||{}),cr={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function J_(t){return Bt(t)[je.LocaleId]}function e0(t,e,n){let r=Bt(t),i=[r[je.DayPeriodsFormat],r[je.DayPeriodsStandalone]],o=Jt(i,e);return Jt(o,n)}function t0(t,e,n){let r=Bt(t),i=[r[je.DaysFormat],r[je.DaysStandalone]],o=Jt(i,e);return Jt(o,n)}function n0(t,e,n){let r=Bt(t),i=[r[je.MonthsFormat],r[je.MonthsStandalone]],o=Jt(i,e);return Jt(o,n)}function r0(t,e){let r=Bt(t)[je.Eras];return Jt(r,e)}function ba(t,e){let n=Bt(t);return Jt(n[je.DateFormat],e)}function Ea(t,e){let n=Bt(t);return Jt(n[je.TimeFormat],e)}function Da(t,e){let r=Bt(t)[je.DateTimeFormat];return Jt(r,e)}function Ca(t,e){let n=Bt(t),r=n[je.NumberSymbols][e];if(typeof r>"u"){if(e===cr.CurrencyDecimal)return n[je.NumberSymbols][cr.Decimal];if(e===cr.CurrencyGroup)return n[je.NumberSymbols][cr.Group]}return r}function i0(t){if(!t[je.ExtraData])throw new M(2303,!1)}function o0(t){let e=Bt(t);return i0(e),(e[je.ExtraData][2]||[]).map(r=>typeof r=="string"?xm(r):[xm(r[0]),xm(r[1])])}function s0(t,e,n){let r=Bt(t);i0(r);let i=[r[je.ExtraData][0],r[je.ExtraData][1]],o=Jt(i,e)||[];return Jt(o,n)||[]}function Jt(t,e){for(let n=e;n>-1;n--)if(typeof t[n]<"u")return t[n];throw new M(2304,!1)}function xm(t){let[e,n]=t.split(":");return{hours:+e,minutes:+n}}var SO=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Pu={},IO=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function a0(t,e,n,r){let i=PO(t);e=lr(n,e)||e;let s=[],a;for(;e;)if(a=IO.exec(e),a){s=s.concat(a.slice(1));let u=s.pop();if(!u)break;e=u}else{s.push(e);break}let l=i.getTimezoneOffset();r&&(l=c0(r,l),i=kO(i,r));let c="";
vendor: 1,104 bytes, line 4
4return s.forEach(u=>{let d=NO(u);c+=d?d(i,n,l):u==="''"?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Bu(t,e,n){let r=new Date(0);return r.setFullYear(t,e,n),r.setHours(0,0,0),r}function lr(t,e){let n=J_(t);if(Pu[n]??={},Pu[n][e])return Pu[n][e];let r="";switch(e){case"shortDate":r=ba(t,St.Short);break;case"mediumDate":r=ba(t,St.Medium);break;case"longDate":r=ba(t,St.Long);break;case"fullDate":r=ba(t,St.Full);break;case"shortTime":r=Ea(t,St.Short);break;case"mediumTime":r=Ea(t,St.Medium);break;case"longTime":r=Ea(t,St.Long);break;case"fullTime":r=Ea(t,St.Full);break;case"short":let i=lr(t,"shortTime"),o=lr(t,"shortDate");r=Fu(Da(t,St.Short),[i,o]);break;case"medium":let s=lr(t,"mediumTime"),a=lr(t,"mediumDate");r=Fu(Da(t,St.Medium),[s,a]);break;case"long":let l=lr(t,"longTime"),c=lr(t,"longDate");r=Fu(Da(t,St.Long),[l,c]);break;case"full":let u=lr(t,"fullTime"),d=lr(t,"fullDate");r=Fu(Da(t,St.Full),[u,d]);break}return r&&(Pu[n][e]=r),r}function Fu(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(n,r){return e!=null&&r in e?e[r]:n})),t}function En(t,e,n="-",r,i){let o="";
vendor: 13,117 bytes, line 4
4(t<0||i&&t<=0)&&(i?t=-t+1:(t=-t,o=n));let s=String(t);for(;s.length<e;)s="0"+s;return r&&(s=s.slice(s.length-e)),o+s}function MO(t,e){return En(t,3).substring(0,e)}function ze(t,e,n=0,r=!1,i=!1){return function(o,s){let a=TO(t,o);if((n>0||a>-n)&&(a+=n),t===3)a===0&&n===-12&&(a=12);else if(t===6)return MO(a,e);let l=Ca(s,cr.MinusSign);return En(a,e,l,r,i)}}function TO(t,e){switch(t){case 0:return e.getFullYear();case 1:return e.getMonth();case 2:return e.getDate();case 3:return e.getHours();case 4:return e.getMinutes();case 5:return e.getSeconds();case 6:return e.getMilliseconds();case 7:return e.getDay();default:throw new M(2301,!1)}}function Me(t,e,n=dt.Format,r=!1){return function(i,o){return AO(i,o,t,e,n,r)}}function AO(t,e,n,r,i,o){switch(n){case 2:return n0(e,i,r)[t.getMonth()];case 1:return t0(e,i,r)[t.getDay()];case 0:let s=t.getHours(),a=t.getMinutes();if(o){let c=o0(e),u=s0(e,i,r),d=c.findIndex(h=>{if(Array.isArray(h)){let[f,p]=h,E=s>=f.hours&&a>=f.minutes,b=s<p.hours||s===p.hours&&a<p.minutes;if(f.hours<p.hours){if(E&&b)return!0}else if(E||b)return!0}else if(h.hours===s&&h.minutes===a)return!0;return!1});if(d!==-1)return u[d]}return e0(e,i,r)[s<12?0:1];case 3:return r0(e,r)[t.getFullYear()<=0?0:1];default:let l=n;throw new M(2302,!1)}}function Lu(t){return function(e,n,r){let i=-1*r,o=Ca(n,cr.MinusSign),s=i>0?Math.floor(i/60):Math.ceil(i/60);switch(t){case 0:return(i>=0?"+":"")+En(s,2,o)+En(Math.abs(i%60),2,o);case 1:return"GMT"+(i>=0?"+":"")+En(s,1,o);case 2:return"GMT"+(i>=0?"+":"")+En(s,2,o)+":"+En(Math.abs(i%60),2,o);case 3:return r===0?"Z":(i>=0?"+":"")+En(s,2,o)+":"+En(Math.abs(i%60),2,o);default:throw new M(2310,!1)}}}var xO=0,Vu=4;function RO(t){let e=Bu(t,xO,1).getDay();return Bu(t,0,1+(e<=Vu?Vu:Vu+7)-e)}function l0(t){let e=t.getDay(),n=e===0?-3:Vu-e;return Bu(t.getFullYear(),t.getMonth(),t.getDate()+n)}function Rm(t,e=!1){return function(n,r){let i;if(e){let o=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();i=1+Math.floor((s+o)/7)}else{let o=l0(n),s=RO(o.getFullYear()),a=o.getTime()-s.getTime();i=1+Math.round(a/6048e5)}return En(i,t,Ca(r,cr.MinusSign))}}function ju(t,e=!1){return function(n,r){let o=l0(n).getFullYear();return En(o,t,Ca(r,cr.MinusSign),e)}}var Nm={};function NO(t){if(Nm[t])return Nm[t];let e;switch(t){case"G":case"GG":case"GGG":e=Me(3,be.Abbreviated);break;case"GGGG":e=Me(3,be.Wide);break;case"GGGGG":e=Me(3,be.Narrow);break;case"y":e=ze(0,1,0,!1,!0);break;case"yy":e=ze(0,2,0,!0,!0);break;case"yyy":e=ze(0,3,0,!1,!0);break;case"yyyy":e=ze(0,4,0,!1,!0);break;case"Y":e=ju(1);break;case"YY":e=ju(2,!0);break;case"YYY":e=ju(3);break;case"YYYY":e=ju(4);break;case"M":case"L":e=ze(1,1,1);break;case"MM":case"LL":e=ze(1,2,1);break;case"MMM":e=Me(2,be.Abbreviated);break;case"MMMM":e=Me(2,be.Wide);break;case"MMMMM":e=Me(2,be.Narrow);break;case"LLL":e=Me(2,be.Abbreviated,dt.Standalone);break;case"LLLL":e=Me(2,be.Wide,dt.Standalone);break;case"LLLLL":e=Me(2,be.Narrow,dt.Standalone);break;case"w":e=Rm(1);break;case"ww":e=Rm(2);break;case"W":e=Rm(1,!0);break;case"d":e=ze(2,1);break;case"dd":e=ze(2,2);break;case"c":case"cc":e=ze(7,1);break;case"ccc":e=Me(1,be.Abbreviated,dt.Standalone);break;case"cccc":e=Me(1,be.Wide,dt.Standalone);break;case"ccccc":e=Me(1,be.Narrow,dt.Standalone);break;case"cccccc":e=Me(1,be.Short,dt.Standalone);break;case"E":case"EE":case"EEE":e=Me(1,be.Abbreviated);break;case"EEEE":e=Me(1,be.Wide);break;case"EEEEE":e=Me(1,be.Narrow);break;case"EEEEEE":e=Me(1,be.Short);break;case"a":case"aa":case"aaa":e=Me(0,be.Abbreviated);break;case"aaaa":e=Me(0,be.Wide);break;case"aaaaa":e=Me(0,be.Narrow);break;case"b":case"bb":case"bbb":e=Me(0,be.Abbreviated,dt.Standalone,!0);break;case"bbbb":e=Me(0,be.Wide,dt.Standalone,!0);break;case"bbbbb":e=Me(0,be.Narrow,dt.Standalone,!0);break;case"B":case"BB":case"BBB":e=Me(0,be.Abbreviated,dt.Format,!0);break;case"BBBB":e=Me(0,be.Wide,dt.Format,!0);break;case"BBBBB":e=Me(0,be.Narrow,dt.Format,!0);break;case"h":e=ze(3,1,-12);break;case"hh":e=ze(3,2,-12);break;case"H":e=ze(3,1);break;case"HH":e=ze(3,2);break;case"m":e=ze(4,1);break;case"mm":e=ze(4,2);break;case"s":e=ze(5,1);break;case"ss":e=ze(5,2);break;case"S":e=ze(6,1);break;case"SS":e=ze(6,2);break;case"SSS":e=ze(6,3);break;case"Z":case"ZZ":case"ZZZ":e=Lu(0);break;case"ZZZZZ":e=Lu(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Lu(1);break;case"OOOO":case"ZZZZ":case"zzzz":e=Lu(2);break;default:return null}return Nm[t]=e,e}function c0(t,e){t=t.replace(/:/g,"");let n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function OO(t,e){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+e),t}function kO(t,e,n){let i=t.getTimezoneOffset(),o=c0(e,i);return OO(t,-1*(o-i))}function PO(t){if(Q_(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[i,o=1,s=1]=t.split("-").map(a=>+a);return Bu(i,o-1,s)}let n=parseFloat(t);if(!isNaN(t-n))return new Date(n);let r;if(r=t.match(SO))return FO(r)}let e=new Date(t);if(!Q_(e))throw new M(2311,!1);return e}function FO(t){let e=new Date(0),n=0,r=0,i=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),r=Number(t[9]+t[11])),i.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));let s=Number(t[4]||0)-n,a=Number(t[5]||0)-r,l=Number(t[6]||0),c=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return o.call(e,s,a,l,c),e}function Q_(t){return t instanceof Date&&!isNaN(t.valueOf())}var Om=/\s+/,Z_=[],km=(()=>{class t{_ngEl;_renderer;initialClasses=Z_;rawClass;stateMap=new Map;constructor(n,r){this._ngEl=n,this._renderer=r}set klass(n){this.initialClasses=n!=null?n.trim().split(Om):Z_}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(Om):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){let i=this.stateMap.get(n);i!==void 0?(i.enabled!==r&&(i.changed=!0,i.enabled=r),i.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],i=n[1];i.changed?(this._toggleClass(r,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),i.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(Om).forEach(i=>{r?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}static \u0275fac=function(r){return new(r||t)(R(ct),R(sr))};static \u0275dir=xe({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var Hu=class{$implicit;ngForOf;index;count;constructor(e,n,r,i){this.$implicit=e,this.ngForOf=n,this.index=r,this.count=i}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},$u=(()=>{class t{_viewContainer;_template;_differs;set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(n,r,i){this._viewContainer=n,this._template=r,this._differs=i}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let r=this._viewContainer;n.forEachOperation((i,o,s)=>{if(i.previousIndex==null)r.createEmbeddedView(this._template,new Hu(i.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(o===null?void 0:o);else if(o!==null){let a=r.get(o);r.move(a,s),K_(a,i)}});for(let i=0,o=r.length;i<o;i++){let a=r.get(i).context;a.index=i,a.count=o,a.ngForOf=this._ngForOf}n.forEachIdentityChange(i=>{let o=r.get(i.currentIndex);K_(o,i)})}static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||t)(R(Ln),R(kr),R(Im))};static \u0275dir=xe({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return t})();function K_(t,e){t.context.$implicit=e.item}var _a=(()=>{class t{_viewContainer;_context=new Uu;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(n,r){this._viewContainer=n,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){X_(n,!1),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){X_(n,!1),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||t)(R(Ln),R(kr))};static \u0275dir=xe({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return t})(),Uu=class{$implicit=null;ngIf=null};function X_(t,e){if(t&&!t.createEmbeddedView)throw new M(2020,!1)}var Pm=(()=>{class t{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(n,r,i){this._ngEl=n,this._differs=r,this._renderer=i}set ngStyle(n){this._ngStyle=n,!this._differ&&n&&(this._differ=this._differs.find(n).create())}ngDoCheck(){if(this._differ){let n=this._differ.diff(this._ngStyle);n&&this._applyChanges(n)}}_setStyle(n,r){let[i,o]=n.split("."),s=i.indexOf("-")===-1?void 0:mn.DashCase;r!=null?this._renderer.setStyle(this._ngEl.nativeElement,i,o?`${r}${o}`:r,s):this._renderer.removeStyle(this._ngEl.nativeElement,i,s)}_applyChanges(n){n.forEachRemovedItem(r=>this._setStyle(r.key,null)),n.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),n.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}static \u0275fac=function(r){return new(r||t)(R(ct),R(Mm),R(sr))};static \u0275dir=xe({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return t})(),Fm=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(n){this._viewContainerRef=n}ngOnChanges(n){if(this._shouldRecreateView(n)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let i=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(n){return!!n.ngTemplateOutlet||!!n.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(n,r,i)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,i):!1,get:(n,r,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,i)}})}static \u0275fac=function(r){return new(r||t)(R(Ln))};static \u0275dir=xe({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[vn]})}return t})();function LO(t,e){return new M(2100,!1)}var jO="mediumDate",u0=new T(""),d0=new T(""),wa=(()=>{class t{locale;defaultTimezone;defaultOptions;constructor(n,r,i){this.locale=n,this.defaultTimezone=r,this.defaultOptions=i}transform(n,r,i,o){if(n==null||n===""||n!==n)return null;try{let s=r??this.defaultOptions?.dateFormat??jO,a=i??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return a0(n,s,o||this.locale,a)}catch(s){throw LO(t,s.message)}}static \u0275fac=function(r){return new(r||t)(R(ma,16),R(u0,24),R(d0,24))};static \u0275pipe=sm({name:"date",type:t,pure:!0})}return t})();var We=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=Kt({type:t});static \u0275inj=kt({})}return t})();function Sa(t,e){e=encodeURIComponent(e);for(let n of t.split(";")){let r=n.indexOf("="),[i,o]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}var Oi=class{};var f0="browser";var Ia=class{_doc;constructor(e){this._doc=e}manager},Wu=(()=>{class t extends Ia{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i,o){return n.addEventListener(r,i,o),()=>this.removeEventListener(n,r,i,o)}removeEventListener(n,r,i,o){return n.removeEventListener(r,i,o)}static \u0275fac=function(r){return new(r||t)(H(Ue))};static \u0275prov=x({token:t,factory:t.\u0275fac})}return t})(),Yu=new T(""),Bm=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;
vendor: 78,295 bytes, lines 4-5
4constructor(n,r){this._zone=r,n.forEach(s=>{s.manager=this});let i=n.filter(s=>!(s instanceof Wu));this._plugins=i.slice().reverse();let o=n.find(s=>s instanceof Wu);o&&this._plugins.push(o)}addEventListener(n,r,i,o){return this._findPluginFor(r).addEventListener(n,r,i,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(o=>o.supports(n)),!r)throw new M(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||t)(H(Yu),H(vt))};static \u0275prov=x({token:t,factory:t.\u0275fac})}return t})(),Lm="ng-app-id";function h0(t){for(let e of t)e.remove()}function p0(t,e){let n=e.createElement("style");return n.textContent=t,n}function VO(t,e,n,r){let i=t.head?.querySelectorAll(`style[${Lm}="${e}"],link[${Lm}="${e}"]`);if(i)for(let o of i)o.removeAttribute(Lm),o instanceof HTMLLinkElement?r.set(o.href.slice(o.href.lastIndexOf("/")+1),{usage:0,elements:[o]}):o.textContent&&n.set(o.textContent,{usage:0,elements:[o]})}function Vm(t,e){let n=e.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",t),n}var Hm=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,r,i,o={}){this.doc=n,this.appId=r,this.nonce=i,VO(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let i of n)this.addUsage(i,this.inline,p0);r?.forEach(i=>this.addUsage(i,this.external,Vm))}removeStyles(n,r){for(let i of n)this.removeUsage(i,this.inline);r?.forEach(i=>this.removeUsage(i,this.external))}addUsage(n,r,i){let o=r.get(n);o?o.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,i(n,this.doc)))})}removeUsage(n,r){let i=r.get(n);i&&(i.usage--,i.usage<=0&&(h0(i.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])h0(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:i}]of this.inline)i.push(this.addElement(n,p0(r,this.doc)));for(let[r,{elements:i}]of this.external)i.push(this.addElement(n,Vm(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),n.appendChild(r)}static \u0275fac=function(r){return new(r||t)(H(Ue),H(pu),H(mu,8),H(la))};static \u0275prov=x({token:t,factory:t.\u0275fac})}return t})(),jm={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Um=/%COMP%/g;var m0="%COMP%",BO=`_nghost-${m0}`,HO=`_ngcontent-${m0}`,UO=!0,$O=new T("",{factory:()=>UO});function zO(t){return HO.replace(Um,t)}function WO(t){return BO.replace(Um,t)}function v0(t,e){return e.map(n=>n.replace(Um,t))}var $m=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(n,r,i,o,s,a,l=null,c=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.ngZone=a,this.nonce=l,this.tracingService=c,this.defaultRenderer=new Ma(n,s,a,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let i=this.getOrCreateRenderer(n,r);return i instanceof qu?i.applyToHost(n):i instanceof Ta&&i.applyStyles(),i}getOrCreateRenderer(n,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let s=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.tracingService;switch(r.encapsulation){case gn.Emulated:o=new qu(l,c,r,this.appId,u,s,a,d);break;case gn.ShadowDom:return new Gu(l,n,r,s,a,this.nonce,d,c);case gn.ExperimentalIsolatedShadowDom:return new Gu(l,n,r,s,a,this.nonce,d);default:o=new Ta(l,c,r,u,s,a,d);break}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||t)(H(Bm),H(Hm),H(pu),H($O),H(Ue),H(vt),H(mu),H(or,8))};static \u0275prov=x({token:t,factory:t.\u0275fac})}return t})(),Ma=class{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(e,n,r,i){this.eventManager=e,this.doc=n,this.ngZone=r,this.tracingService=i}destroy(){}destroyNode=null;createElement(e,n){return n?this.doc.createElementNS(jm[n]||n,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,n){(g0(e)?e.content:e).appendChild(n)}insertBefore(e,n,r){e&&(g0(e)?e.content:e).insertBefore(n,r)}removeChild(e,n){n.remove()}selectRootElement(e,n){let r=typeof e=="string"?this.doc.querySelector(e):e;if(!r)throw new M(-5104,!1);return n||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,n,r,i){if(i){n=i+":"+n;let o=jm[i];o?e.setAttributeNS(o,n,r):e.setAttribute(n,r)}else e.setAttribute(n,r)}removeAttribute(e,n,r){if(r){let i=jm[r];i?e.removeAttributeNS(i,n):e.removeAttribute(`${r}:${n}`)}else e.removeAttribute(n)}addClass(e,n){e.classList.add(n)}removeClass(e,n){e.classList.remove(n)}setStyle(e,n,r,i){i&(mn.DashCase|mn.Important)?e.style.setProperty(n,r,i&mn.Important?"important":""):e.style[n]=r}removeStyle(e,n,r){r&mn.DashCase?e.style.removeProperty(n):e.style[n]=""}setProperty(e,n,r){e!=null&&(e[n]=r)}setValue(e,n){e.nodeValue=n}listen(e,n,r,i){if(typeof e=="string"&&(e=Xt().getGlobalEventTarget(this.doc,e),!e))throw new M(5102,!1);let o=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(o=this.tracingService.wrapEventListener(e,n,o)),this.eventManager.addEventListener(e,n,o,i)}decoratePreventDefault(e){return n=>{if(n==="__ngUnwrap__")return e;e(n)===!1&&n.preventDefault()}}};function g0(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var Gu=class extends Ma{hostEl;sharedStylesHost;shadowRoot;constructor(e,n,r,i,o,s,a,l){super(e,i,o,a),this.hostEl=n,this.sharedStylesHost=l,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let c=r.styles;c=v0(r.id,c);for(let d of c){let h=document.createElement("style");s&&h.setAttribute("nonce",s),h.textContent=d,this.shadowRoot.appendChild(h)}let u=r.getExternalStyles?.();if(u)for(let d of u){let h=Vm(d,i);s&&h.setAttribute("nonce",s),this.shadowRoot.appendChild(h)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,n){return super.appendChild(this.nodeOrShadowRoot(e),n)}insertBefore(e,n,r){return super.insertBefore(this.nodeOrShadowRoot(e),n,r)}removeChild(e,n){return super.removeChild(null,n)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},Ta=class extends Ma{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(e,n,r,i,o,s,a,l){super(e,o,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=i;let c=r.styles;this.styles=l?v0(l,c):c,this.styleUrls=r.getExternalStyles?.(l)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&Mi.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},qu=class extends Ta{contentAttr;hostAttr;constructor(e,n,r,i,o,s,a,l){let c=i+"-"+r.id;super(e,n,r,o,s,a,l,c),this.contentAttr=zO(c),this.hostAttr=WO(c)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,n){let r=super.createElement(e,n);return super.setAttribute(r,this.contentAttr,""),r}};var Qu=class t extends ya{supportsDOMEvents=!0;static makeCurrent(){Am(new t)}onAndCancel(e,n,r,i){return e.addEventListener(n,r,i),()=>{e.removeEventListener(n,r,i)}}dispatchEvent(e,n){e.dispatchEvent(n)}remove(e){e.remove()}createElement(e,n){return n=n||this.getDefaultDocument(),n.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,n){return n==="window"?window:n==="document"?e:n==="body"?e.body:null}getBaseHref(e){let n=GO();return n==null?null:qO(n)}resetBaseElement(){Aa=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Sa(document.cookie,e)}},Aa=null;function GO(){return Aa=Aa||document.head.querySelector("base"),Aa?Aa.getAttribute("href"):null}function qO(t){return new URL(t,document.baseURI).pathname}var YO=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||t)};static \u0275prov=x({token:t,factory:t.\u0275fac})}return t})(),y0=["alt","control","meta","shift"],QO={"\b":"Backspace","	":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},ZO={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},b0=(()=>{class t extends Ia{constructor(n){super(n)}supports(n){return t.parseEventName(n)!=null}addEventListener(n,r,i,o){let s=t.parseEventName(r),a=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Xt().onAndCancel(n,s.domEventName,a,o))}static parseEventName(n){let r=n.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let o=t._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),y0.forEach(c=>{let u=r.indexOf(c);u>-1&&(r.splice(u,1),s+=c+".")}),s+=o,r.length!=0||o.length===0)return null;let l={};return l.domEventName=i,l.fullKey=s,l}static matchEventFullKeyCode(n,r){let i=QO[n.key]||n.key,o="";return r.indexOf("code.")>-1&&(i=n.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),y0.forEach(s=>{if(s!==i){let a=ZO[s];a(n)&&(o+=s+".")}}),o+=i,o===r)}static eventCallback(n,r,i){return o=>{t.matchEventFullKeyCode(o,n)&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||t)(H(Ue))};static \u0275prov=x({token:t,factory:t.\u0275fac})}return t})();async function zm(t,e,n){let r=S({rootComponent:t},KO(e,n));return $_(r)}function KO(t,e){return{platformRef:e?.platformRef,appProviders:[...n1,...t?.providers??[]],platformProviders:t1}}function XO(){Qu.makeCurrent()}function JO(){return new Wt}function e1(){return Fg(document),document}var t1=[{provide:la,useValue:f0},{provide:gu,useValue:XO,multi:!0},{provide:Ue,useFactory:e1}];var n1=[{provide:$s,useValue:"root"},{provide:Wt,useFactory:JO},{provide:Yu,useClass:Wu,multi:!0},{provide:Yu,useClass:b0,multi:!0},$m,Hm,Bm,{provide:Ti,useExisting:$m},{provide:Oi,useClass:YO},[]];var jn=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(e){e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(`
5`).forEach(n=>{let r=n.indexOf(":");if(r>0){let i=n.slice(0,r),o=n.slice(r+1).trim();this.addHeaderEntry(i,o)}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((n,r)=>{this.addHeaderEntry(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let n=this.headers.get(e.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,n){return this.clone({name:e,value:n,op:"a"})}set(e,n){return this.clone({name:e,value:n,op:"s"})}delete(e,n){return this.clone({name:e,value:n,op:"d"})}maybeSetNormalizedName(e,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(n=>{this.headers.set(n,e.headers.get(n)),this.normalizedNames.set(n,e.normalizedNames.get(n))})}clone(e){let n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}applyUpdate(e){let n=e.name.toLowerCase();switch(e.op){case"a":case"s":let r=e.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(e.name,n);let i=(e.op==="a"?this.headers.get(n):void 0)||[];i.push(...r),this.headers.set(n,i);break;case"d":let o=e.value;if(!o)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}addHeaderEntry(e,n){let r=e.toLowerCase();this.maybeSetNormalizedName(e,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}setHeaderEntries(e,n){let r=(Array.isArray(n)?n:[n]).map(o=>o.toString()),i=e.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(e,i)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>e(this.normalizedNames.get(n),this.headers.get(n)))}};var Ku=class{map=new Map;set(e,n){return this.map.set(e,n),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}},Xu=class{encodeKey(e){return E0(e)}encodeValue(e){return E0(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function r1(t,e){let n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,o)),e.decodeValue(i.slice(o+1))],l=n.get(s)||[];l.push(a),n.set(s,l)}),n}var i1=/%(\d[a-f0-9])/gi,o1={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function E0(t){return encodeURIComponent(t).replace(i1,(e,n)=>o1[n]??e)}function Zu(t){return`${t}`}var ur=class t{map;encoder;updates=null;cloneFrom=null;constructor(e={}){if(this.encoder=e.encoder||new Xu,e.fromString){if(e.fromObject)throw new M(2805,!1);this.map=r1(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(n=>{let r=e.fromObject[n],i=Array.isArray(r)?r.map(Zu):[Zu(r)];this.map.set(n,i)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let n=this.map.get(e);return n?n[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,n){return this.clone({param:e,value:n,op:"a"})}appendAll(e){let n=[];return Object.keys(e).forEach(r=>{let i=e[r];Array.isArray(i)?i.forEach(o=>{n.push({param:r,value:o,op:"a"})}):n.push({param:r,value:i,op:"a"})}),this.clone(n)}set(e,n){return this.clone({param:e,value:n,op:"s"})}delete(e,n){return this.clone({param:e,value:n,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let n=this.encoder.encodeKey(e);return this.map.get(e).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let n=(e.op==="a"?this.map.get(e.param):void 0)||[];n.push(Zu(e.value)),this.map.set(e.param,n);break;case"d":if(e.value!==void 0){let r=this.map.get(e.param)||[],i=r.indexOf(Zu(e.value));i!==-1&&r.splice(i,1),r.length>0?this.map.set(e.param,r):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};function s1(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function D0(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function C0(t){return typeof Blob<"u"&&t instanceof Blob}function _0(t){return typeof FormData<"u"&&t instanceof FormData}function a1(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var w0="Content-Type",S0="Accept",I0="text/plain",M0="application/json",l1=`${M0}, ${I0}, */*`,zo=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(e,n,r,i){this.url=n,this.method=e.toUpperCase();let o;if(s1(this.method)||i?(this.body=r!==void 0?r:null,o=i):o=r,o){if(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,this.keepalive=!!o.keepalive,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),o.priority&&(this.priority=o.priority),o.cache&&(this.cache=o.cache),o.credentials&&(this.credentials=o.credentials),typeof o.timeout=="number"){if(o.timeout<1||!Number.isInteger(o.timeout))throw new M(2822,"");this.timeout=o.timeout}o.mode&&(this.mode=o.mode),o.redirect&&(this.redirect=o.redirect),o.integrity&&(this.integrity=o.integrity),o.referrer&&(this.referrer=o.referrer),o.referrerPolicy&&(this.referrerPolicy=o.referrerPolicy),this.transferCache=o.transferCache}if(this.headers??=new jn,this.context??=new Ku,!this.params)this.params=new ur,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),l=a===-1?"?":a<n.length-1?"&":"";this.urlWithParams=n+l+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||D0(this.body)||C0(this.body)||_0(this.body)||a1(this.body)?this.body:this.body instanceof ur?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||_0(this.body)?null:C0(this.body)?this.body.type||null:D0(this.body)?null:typeof this.body=="string"?I0:this.body instanceof ur?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?M0:null}clone(e={}){let n=e.method||this.method,r=e.url||this.url,i=e.responseType||this.responseType,o=e.keepalive??this.keepalive,s=e.priority||this.priority,a=e.cache||this.cache,l=e.mode||this.mode,c=e.redirect||this.redirect,u=e.credentials||this.credentials,d=e.referrer||this.referrer,h=e.integrity||this.integrity,f=e.referrerPolicy||this.referrerPolicy,p=e.transferCache??this.transferCache,E=e.timeout??this.timeout,b=e.body!==void 0?e.body:this.body,D=e.withCredentials??this.withCredentials,I=e.reportProgress??this.reportProgress,N=e.headers||this.headers,A=e.params||this.params,me=e.context??this.context;return e.setHeaders!==void 0&&(N=Object.keys(e.setHeaders).reduce((J,le)=>J.set(le,e.setHeaders[le]),N)),e.setParams&&(A=Object.keys(e.setParams).reduce((J,le)=>J.set(le,e.setParams[le]),A)),new t(n,r,b,{params:A,headers:N,context:me,reportProgress:I,responseType:i,withCredentials:D,transferCache:p,keepalive:o,cache:a,priority:s,timeout:E,mode:l,redirect:c,credentials:u,referrer:d,integrity:h,referrerPolicy:f})}},ki=(function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t})(ki||{}),Go=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(e,n=200,r="OK"){this.headers=e.headers||new jn,this.status=e.status!==void 0?e.status:n,this.statusText=e.statusText||r,this.url=e.url||null,this.redirected=e.redirected,this.responseType=e.responseType,this.ok=this.status>=200&&this.status<300}},Ju=class t extends Go{constructor(e={}){super(e)}type=ki.ResponseHeader;clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},xa=class t extends Go{body;constructor(e={}){super(e),this.body=e.body!==void 0?e.body:null}type=ki.Response;clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0,redirected:e.redirected??this.redirected,responseType:e.responseType??this.responseType})}},Wo=class extends Go{name="HttpErrorResponse";message;error;ok=!1;constructor(e){super(e,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},c1=200,u1=204;var d1=new T("");var f1=/^\)\]\}',?\n/;var Gm=(()=>{class t{xhrFactory;tracingService=w(or,{optional:!0});constructor(n){this.xhrFactory=n}maybePropagateTrace(n){return this.tracingService?.propagate?this.tracingService.propagate(n):n}handle(n){if(n.method==="JSONP")throw new M(-2800,!1);let r=this.xhrFactory;return Q(null).pipe(cn(()=>new ee(o=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((b,D)=>s.setRequestHeader(b,D.join(","))),n.headers.has(S0)||s.setRequestHeader(S0,l1),!n.headers.has(w0)){let b=n.detectContentTypeHeader();b!==null&&s.setRequestHeader(w0,b)}if(n.timeout&&(s.timeout=n.timeout),n.responseType){let b=n.responseType.toLowerCase();s.responseType=b!=="json"?b:"text"}let a=n.serializeBody(),l=null,c=()=>{if(l!==null)return l;let b=s.statusText||"OK",D=new jn(s.getAllResponseHeaders()),I=s.responseURL||n.url;return l=new Ju({headers:D,status:s.status,statusText:b,url:I}),l},u=this.maybePropagateTrace(()=>{let{headers:b,status:D,statusText:I,url:N}=c(),A=null;D!==u1&&(A=typeof s.response>"u"?s.responseText:s.response),D===0&&(D=A?c1:0);let me=D>=200&&D<300;if(n.responseType==="json"&&typeof A=="string"){let J=A;A=A.replace(f1,"");try{A=A!==""?JSON.parse(A):null}catch(le){A=J,me&&(me=!1,A={error:le,text:A})}}me?(o.next(new xa({body:A,headers:b,status:D,statusText:I,url:N||void 0})),o.complete()):o.error(new Wo({error:A,headers:b,status:D,statusText:I,url:N||void 0}))}),d=this.maybePropagateTrace(b=>{let{url:D}=c(),I=new Wo({error:b,status:s.status||0,statusText:s.statusText||"Unknown Error",url:D||void 0});o.error(I)}),h=d;n.timeout&&(h=this.maybePropagateTrace(b=>{let{url:D}=c(),I=new Wo({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:D||void 0});o.error(I)}));let f=!1,p=this.maybePropagateTrace(b=>{f||(o.next(c()),f=!0);let D={type:ki.DownloadProgress,loaded:b.loaded};b.lengthComputable&&(D.total=b.total),n.responseType==="text"&&s.responseText&&(D.partialText=s.responseText),o.next(D)}),E=this.maybePropagateTrace(b=>{let D={type:ki.UploadProgress,loaded:b.loaded};b.lengthComputable&&(D.total=b.total),o.next(D)});return s.addEventListener("load",u),s.addEventListener("error",d),s.addEventListener("timeout",h),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",p),a!==null&&s.upload&&s.upload.addEventListener("progress",E)),s.send(a),o.next({type:ki.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",u),s.removeEventListener("timeout",h),n.reportProgress&&(s.removeEventListener("progress",p),a!==null&&s.upload&&s.upload.removeEventListener("progress",E)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||t)(H(Oi))};static \u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function h1(t,e){return e(t)}function p1(t,e,n){return(r,i)=>Ke(n,()=>e(r,o=>t(o,i)))}var qm=new T("",{factory:()=>[]}),T0=new T(""),A0=new T("",{factory:()=>!0});var Ym=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=x({token:t,factory:function(r){let i=null;return r?i=new(r||t):i=H(Gm),i},providedIn:"root"})}return t})();var ed=(()=>{class t{backend;injector;chain=null;pendingTasks=w(Ks);contributeToStability=w(A0);constructor(n,r){this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(qm),...this.injector.get(T0,[])]));this.chain=r.reduceRight((i,o)=>p1(i,o,this.injector),h1)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,i=>this.backend.handle(i)).pipe(ks(r))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||t)(H(Ym),H(Pe))};static \u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Qm=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=x({token:t,factory:function(r){let i=null;return r?i=new(r||t):i=H(ed),i},providedIn:"root"})}return t})();function Wm(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,credentials:t.credentials,transferCache:t.transferCache,timeout:t.timeout,keepalive:t.keepalive,priority:t.priority,cache:t.cache,mode:t.mode,redirect:t.redirect,integrity:t.integrity,referrer:t.referrer,referrerPolicy:t.referrerPolicy}}var Wr=(()=>{class t{handler;constructor(n){this.handler=n}request(n,r,i={}){let o;if(n instanceof zo)o=n;else{let l;i.headers instanceof jn?l=i.headers:l=new jn(i.headers);let c;i.params&&(i.params instanceof ur?c=i.params:c=new ur({fromObject:i.params})),o=new zo(n,r,i.body!==void 0?i.body:null,{headers:l,context:i.context,params:c,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache,keepalive:i.keepalive,priority:i.priority,cache:i.cache,mode:i.mode,redirect:i.redirect,credentials:i.credentials,referrer:i.referrer,referrerPolicy:i.referrerPolicy,integrity:i.integrity,timeout:i.timeout})}let s=Q(o).pipe(yo(l=>this.handler.handle(l)));if(n instanceof zo||i.observe==="events")return s;let a=s.pipe(Rt(l=>l instanceof xa));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(ve(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new M(2806,!1);return l.body}));case"blob":return a.pipe(ve(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new M(2807,!1);return l.body}));case"text":return a.pipe(ve(l=>{if(l.body!==null&&typeof l.body!="string")throw new M(2808,!1);return l.body}));default:return a.pipe(ve(l=>l.body))}case"response":return a;default:throw new M(2809,!1)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new ur().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,i={}){return this.request("PATCH",n,Wm(i,r))}post(n,r,i={}){return this.request("POST",n,Wm(i,r))}put(n,r,i={}){return this.request("PUT",n,Wm(i,r))}static \u0275fac=function(r){return new(r||t)(H(Qm))};static \u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var g1=new T("",{factory:()=>!0}),m1="XSRF-TOKEN",v1=new T("",{factory:()=>m1}),y1="X-XSRF-TOKEN",b1=new T("",{factory:()=>y1}),E1=(()=>{class t{cookieName=w(v1);doc=w(Ue);lastCookieString="";lastToken=null;parseCount=0;getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Sa(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||t)};static \u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),x0=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=x({token:t,factory:function(r){let i=null;return r?i=new(r||t):i=H(E1),i},providedIn:"root"})}return t})();function D1(t,e){if(!w(g1)||t.method==="GET"||t.method==="HEAD")return e(t);try{let i=w($o).href,{origin:o}=new URL(i),{origin:s}=new URL(t.url,o);if(o!==s)return e(t)}catch{return e(t)}let n=w(x0).getToken(),r=w(b1);return n!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,n)})),e(t)}var Zm=(function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t})(Zm||{});function C1(t,e){return{\u0275kind:t,\u0275providers:e}}function Km(...t){let e=[Wr,ed,{provide:Qm,useExisting:ed},{provide:Ym,useFactory:()=>w(d1,{optional:!0})??w(Gm)},{provide:qm,useValue:D1,multi:!0}];for(let n of t)e.push(...n.\u0275providers);return wo(e)}function Xm(t){return C1(Zm.Interceptors,t.map(e=>({provide:qm,useValue:e,multi:!0})))}var N0=(()=>{class t{_doc;constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static \u0275fac=function(r){return new(r||t)(H(Ue))};static \u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var G="primary",Ua=Symbol("RouteTitle"),rv=class{params;constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let n=this.params[e];return Array.isArray(n)?n[0]:n}return null}getAll(e){if(this.has(e)){let n=this.params[e];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function Li(t){return new rv(t)}function Jm(t,e,n){for(let r=0;r<t.length;r++){let i=t[r],o=e[r];if(i[0]===":")n[i.substring(1)]=o;else if(i!==o.path)return!1}return!0}function U0(t,e,n){let r=n.path.split("/"),i=r.indexOf("**");if(i===-1){if(r.length>t.length||n.pathMatch==="full"&&(e.hasChildren()||r.length<t.length))return null;let l={},c=t.slice(0,r.length);return Jm(r,c,l)?{consumed:c,posParams:l}:null}if(i!==r.lastIndexOf("**"))return null;let o=r.slice(0,i),s=r.slice(i+1);if(o.length+s.length>t.length||n.pathMatch==="full"&&e.hasChildren()&&n.path!=="**")return null;let a={};return!Jm(o,t.slice(0,o.length),a)||!Jm(s,t.slice(t.length-s.length),a)?null:{consumed:t,posParams:a}}function sd(t){return new Promise((e,n)=>{t.pipe(Qn()).subscribe({next:r=>e(r),error:r=>n(r)})})}function w1(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!Vn(t[n],e[n]))return!1;return!0}function Vn(t,e){let n=t?iv(t):void 0,r=e?iv(e):void 0;if(!n||!r||n.length!=r.length)return!1;let i;for(let o=0;o<n.length;o++)if(i=n[o],!$0(t[i],e[i]))return!1;return!0}function iv(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function $0(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;let n=[...t].sort(),r=[...e].sort();return n.every((i,o)=>r[o]===i)}else return t===e}function S1(t){return t.length>0?t[t.length-1]:null}function Bi(t){return pc(t)?t:Fr(t)?He(Promise.resolve(t)):Q(t)}function z0(t){return pc(t)?sd(t):Promise.resolve(t)}var I1={exact:G0,subset:q0},W0={exact:M1,subset:T1,ignored:()=>!0};function O0(t,e,n){return I1[n.paths](t.root,e.root,n.matrixParams)&&W0[n.queryParams](t.queryParams,e.queryParams)&&!(n.fragment==="exact"&&t.fragment!==e.fragment)}function M1(t,e){return Vn(t,e)}function G0(t,e,n){if(!Pi(t.segments,e.segments)||!rd(t.segments,e.segments,n)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let r in e.children)if(!t.children[r]||!G0(t.children[r],e.children[r],n))return!1;return!0}function T1(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>$0(t[n],e[n]))}function q0(t,e,n){return Y0(t,e,e.segments,n)}function Y0(t,e,n,r){if(t.segments.length>n.length){let i=t.segments.slice(0,n.length);return!(!Pi(i,n)||e.hasChildren()||!rd(i,n,r))}else if(t.segments.length===n.length){if(!Pi(t.segments,n)||!rd(t.segments,n,r))return!1;for(let i in e.children)if(!t.children[i]||!q0(t.children[i],e.children[i],r))return!1;return!0}else{let i=n.slice(0,t.segments.length),o=n.slice(t.segments.length);return!Pi(t.segments,i)||!rd(t.segments,i,r)||!t.children[G]?!1:Y0(t.children[G],e,o,r)}}function rd(t,e,n){return e.every((r,i)=>W0[n](t[i].parameters,r.parameters))}var Cn=class{root;queryParams;fragment;_queryParamMap;constructor(e=new ue([],{}),n={},r=null){this.root=e,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=Li(this.queryParams),this._queryParamMap}toString(){return R1.serialize(this)}},ue=class{segments;children;parent=null;constructor(e,n){this.segments=e,this.children=n,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return id(this)}},Gr=class{path;parameters;_parameterMap;constructor(e,n){this.path=e,this.parameters=n}get parameterMap(){return this._parameterMap??=Li(this.parameters),this._parameterMap}toString(){return Z0(this)}};function A1(t,e){return Pi(t,e)&&t.every((n,r)=>Vn(n.parameters,e[r].parameters))}function Pi(t,e){return t.length!==e.length?!1:t.every((n,r)=>n.path===e[r].path)}function x1(t,e){let n=[];return Object.entries(t.children).forEach(([r,i])=>{r===G&&(n=n.concat(e(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==G&&(n=n.concat(e(i,r)))}),n}var $a=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=x({token:t,factory:()=>new qr,providedIn:"root"})}return t})(),qr=class{parse(e){let n=new sv(e);return new Cn(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(e){let n=`/${Ra(e.root,!0)}`,r=k1(e.queryParams),i=typeof e.fragment=="string"?`#${N1(e.fragment)}`:"";return`${n}${r}${i}`}},R1=new qr;function id(t){return t.segments.map(e=>Z0(e)).join("/")}function Ra(t,e){if(!t.hasChildren())return id(t);if(e){let n=t.children[G]?Ra(t.children[G],!1):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==G&&r.push(`${i}:${Ra(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=x1(t,(r,i)=>i===G?[Ra(t.children[G],!1)]:[`${i}:${Ra(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[G]!=null?`${id(t)}/${n[0]}`:`${id(t)}/(${n.join("//")})`}}function Q0(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function td(t){return Q0(t).replace(/%3B/gi,";")}function N1(t){return encodeURI(t)}function ov(t){return Q0(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function od(t){return decodeURIComponent(t)}function k0(t){return od(t.replace(/\+/g,"%20"))}function Z0(t){return`${ov(t.path)}${O1(t.parameters)}`}function O1(t){return Object.entries(t).map(([e,n])=>`;${ov(e)}=${ov(n)}`).join("")}function k1(t){let e=Object.entries(t).map(([n,r])=>Array.isArray(r)?r.map(i=>`${td(n)}=${td(i)}`).join("&"):`${td(n)}=${td(r)}`).filter(n=>n);return e.length?`?${e.join("&")}`:""}var P1=/^[^\/()?;#]+/;function ev(t){let e=t.match(P1);return e?e[0]:""}var F1=/^[^\/()?;=#]+/;function L1(t){let e=t.match(F1);return e?e[0]:""}var j1=/^[^=?&#]+/;function V1(t){let e=t.match(j1);return e?e[0]:""}var B1=/^[^&#]+/;function H1(t){let e=t.match(B1);return e?e[0]:""}var sv=class{url;remaining;constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new ue([],{}):new ue([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(e.length>0||Object.keys(n).length>0)&&(r[G]=new ue(e,n)),r}parseSegment(){let e=ev(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new M(4009,!1);return this.capture(e),new Gr(od(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let n=L1(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let i=ev(this.remaining);i&&(r=i,this.capture(r))}e[od(n)]=od(r)}parseQueryParam(e){let n=V1(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=H1(this.remaining);s&&(r=s,this.capture(r))}let i=k0(n),o=k0(r);if(e.hasOwnProperty(i)){let s=e[i];Array.isArray(s)||(s=[s],e[i]=s),s.push(o)}else e[i]=o}parseParens(e){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=ev(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new M(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):e&&(o=G);let s=this.parseChildren();n[o??G]=Object.keys(s).length===1&&s[G]?s[G]:new ue([],s),this.consumeOptional("//")}return n}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new M(4011,!1)}};function K0(t){return t.segments.length>0?new ue([],{[G]:t}):t}function X0(t){let e={};for(let[r,i]of Object.entries(t.children)){let o=X0(i);if(r===G&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))e[s]=a;else(o.segments.length>0||o.hasChildren())&&(e[r]=o)}let n=new ue(t.segments,e);return U1(n)}function U1(t){if(t.numberOfChildren===1&&t.children[G]){let e=t.children[G];return new ue(t.segments.concat(e.segments),e.children)}return t}function Zo(t){return t instanceof Cn}function J0(t,e,n=null,r=null,i=new qr){let o=ew(t);return tw(o,e,n,r,i)}function ew(t){let e;function n(o){let s={};for(let l of o.children){let c=n(l);s[l.outlet]=c}let a=new ue(o.url,s);return o===t&&(e=a),a}let r=n(t.root),i=K0(r);return e??i}function tw(t,e,n,r,i){let o=t;for(;o.parent;)o=o.parent;if(e.length===0)return tv(o,o,o,n,r,i);let s=$1(e);if(s.toRoot())return tv(o,o,new ue([],{}),n,r,i);let a=z1(s,o,t),l=a.processChildren?Oa(a.segmentGroup,a.index,s.commands):rw(a.segmentGroup,a.index,s.commands);return tv(o,a.segmentGroup,l,n,r,i)}function ad(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Fa(t){return typeof t=="object"&&t!=null&&t.outlets}function P0(t,e,n){t||="\u0275";let r=new Cn;return r.queryParams={[t]:e},n.parse(n.serialize(r)).queryParams[t]}function tv(t,e,n,r,i,o){let s={};for(let[c,u]of Object.entries(r??{}))s[c]=Array.isArray(u)?u.map(d=>P0(c,d,o)):P0(c,u,o);let a;t===e?a=n:a=nw(t,e,n);let l=K0(X0(a));return new Cn(l,s,i)}function nw(t,e,n){let r={};return Object.entries(t.children).forEach(([i,o])=>{o===e?r[i]=n:r[i]=nw(o,e,n)}),new ue(t.segments,r)}var ld=class{isAbsolute;numberOfDoubleDots;commands;constructor(e,n,r){if(this.isAbsolute=e,this.numberOfDoubleDots=n,this.commands=r,e&&r.length>0&&ad(r[0]))throw new M(4003,!1);let i=r.find(Fa);if(i&&i!==S1(r))throw new M(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function $1(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new ld(!0,0,t);let e=0,n=!1,r=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([l,c])=>{a[l]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,l)=>{l==0&&a==="."||(l==0&&a===""?n=!0:a===".."?e++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new ld(n,e,r)}var Yo=class{segmentGroup;processChildren;index;constructor(e,n,r){this.segmentGroup=e,this.processChildren=n,this.index=r}};function z1(t,e,n){if(t.isAbsolute)return new Yo(e,!0,0);if(!n)return new Yo(e,!1,NaN);if(n.parent===null)return new Yo(n,!0,0);let r=ad(t.commands[0])?0:1,i=n.segments.length-1+r;return W1(n,i,t.numberOfDoubleDots)}function W1(t,e,n){let r=t,i=e,o=n;for(;o>i;){if(o-=i,r=r.parent,!r)throw new M(4005,!1);i=r.segments.length}return new Yo(r,!1,i-o)}function G1(t){return Fa(t[0])?t[0].outlets:{[G]:t}}function rw(t,e,n){if(t??=new ue([],{}),t.segments.length===0&&t.hasChildren())return Oa(t,e,n);let r=q1(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new ue(t.segments.slice(0,r.pathIndex),{});return o.children[G]=new ue(t.segments.slice(r.pathIndex),t.children),Oa(o,0,i)}else return r.match&&i.length===0?new ue(t.segments,{}):r.match&&!t.hasChildren()?av(t,e,n):r.match?Oa(t,0,i):av(t,e,n)}function Oa(t,e,n){if(n.length===0)return new ue(t.segments,{});{let r=G1(n),i={};if(Object.keys(r).some(o=>o!==G)&&t.children[G]&&t.numberOfChildren===1&&t.children[G].segments.length===0){let o=Oa(t.children[G],e,n);return new ue(t.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=rw(t.children[o],e,s))}),Object.entries(t.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new ue(t.segments,i)}}function q1(t,e,n){let r=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=n.length)return o;let s=t.segments[i],a=n[r];if(Fa(a))break;let l=`${a}`,c=r<n.length-1?n[r+1]:null;if(i>0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!L0(l,c,s))return o;r+=2}else{if(!L0(l,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function av(t,e,n){let r=t.segments.slice(0,e),i=0;for(;i<n.length;){let o=n[i];if(Fa(o)){let l=Y1(o.outlets);return new ue(r,l)}if(i===0&&ad(n[0])){let l=t.segments[e];r.push(new Gr(l.path,F0(n[0]))),i++;continue}let s=Fa(o)?o.outlets[G]:`${o}`,a=i<n.length-1?n[i+1]:null;s&&a&&ad(a)?(r.push(new Gr(s,F0(a))),i+=2):(r.push(new Gr(s,{})),i++)}return new ue(r,{})}function Y1(t){let e={};return Object.entries(t).forEach(([n,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(e[n]=av(new ue([],{}),0,r))}),e}function F0(t){let e={};return Object.entries(t).forEach(([n,r])=>e[n]=`${r}`),e}function L0(t,e,n){return t==n.path&&Vn(e,n.parameters)}var ka="imperative",nt=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(nt||{}),Ut=class{id;url;constructor(e,n){this.id=e,this.url=n}},ji=class extends Ut{type=nt.NavigationStart;navigationTrigger;restoredState;constructor(e,n,r="imperative",i=null){super(e,n),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},_n=class extends Ut{urlAfterRedirects;type=nt.NavigationEnd;constructor(e,n,r){super(e,n),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},ft=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(ft||{}),La=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(La||{}),en=class extends Ut{reason;code;type=nt.NavigationCancel;constructor(e,n,r,i){super(e,n),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function iw(t){return t instanceof en&&(t.code===ft.Redirect||t.code===ft.SupersededByNewNavigation)}var fr=class extends Ut{reason;code;type=nt.NavigationSkipped;constructor(e,n,r,i){super(e,n),this.reason=r,this.code=i}},Vi=class extends Ut{error;target;type=nt.NavigationError;constructor(e,n,r,i){super(e,n),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Ko=class extends Ut{urlAfterRedirects;state;type=nt.RoutesRecognized;constructor(e,n,r,i){super(e,n),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},cd=class extends Ut{urlAfterRedirects;state;type=nt.GuardsCheckStart;constructor(e,n,r,i){super(e,n),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ud=class extends Ut{urlAfterRedirects;state;shouldActivate;type=nt.GuardsCheckEnd;constructor(e,n,r,i,o){super(e,n),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},dd=class extends Ut{urlAfterRedirects;state;type=nt.ResolveStart;constructor(e,n,r,i){super(e,n),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},fd=class extends Ut{urlAfterRedirects;state;type=nt.ResolveEnd;constructor(e,n,r,i){super(e,n),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},hd=class{route;type=nt.RouteConfigLoadStart;constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},pd=class{route;type=nt.RouteConfigLoadEnd;constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},gd=class{snapshot;type=nt.ChildActivationStart;constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},md=class{snapshot;type=nt.ChildActivationEnd;constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},vd=class{snapshot;type=nt.ActivationStart;constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},yd=class{snapshot;type=nt.ActivationEnd;constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Xo=class{},Jo=class{url;navigationBehaviorOptions;constructor(e,n){this.url=e,this.navigationBehaviorOptions=n}};function Q1(t){return!(t instanceof Xo)&&!(t instanceof Jo)}var bd=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(e){this.rootInjector=e,this.children=new ns(this.rootInjector)}},ns=(()=>{class t{rootInjector;contexts=new Map;constructor(n){this.rootInjector=n}onChildOutletCreated(n,r){let i=this.getOrCreateContext(n);i.outlet=r,this.contexts.set(n,i)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new bd(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static \u0275fac=function(r){return new(r||t)(H(Pe))};static \u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ed=class{_root;constructor(e){this._root=e}get root(){return this._root.value}parent(e){let n=this.pathFromRoot(e);return n.length>1?n[n.length-2]:null}children(e){let n=lv(e,this._root);return n?n.children.map(r=>r.value):[]}firstChild(e){let n=lv(e,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(e){let n=cv(e,this._root);return n.length<2?[]:n[n.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return cv(e,this._root).map(n=>n.value)}};function lv(t,e){if(t===e.value)return e;for(let n of e.children){let r=lv(t,n);if(r)return r}return null}function cv(t,e){if(t===e.value)return[e];for(let n of e.children){let r=cv(t,n);if(r.length)return r.unshift(e),r}return[]}var Ht=class{value;children;constructor(e,n){this.value=e,this.children=n}toString(){return`TreeNode(${this.value})`}};function qo(t){let e={};return t&&t.children.forEach(n=>e[n.value.outlet]=n),e}var ja=class extends Ed{snapshot;constructor(e,n){super(e),this.snapshot=n,vv(this,e)}toString(){return this.snapshot.toString()}};function ow(t,e){let n=Z1(t,e),r=new it([new Gr("",{})]),i=new it({}),o=new it({}),s=new it({}),a=new it(""),l=new tt(r,i,s,a,o,G,t,n.root);return l.snapshot=n.root,new ja(new Ht(l,[]),n)}function Z1(t,e){let n={},r={},i={},s=new Fi([],n,i,"",r,G,t,null,{},e);return new Va("",new Ht(s,[]))}var tt=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(e,n,r,i,o,s,a,l){this.urlSubject=e,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(ve(c=>c[Ua]))??Q(void 0),this.url=e,this.params=n,this.queryParams=r,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(ve(e=>Li(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(ve(e=>Li(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Dd(t,e,n="emptyOnly"){let r,{routeConfig:i}=t;return e!==null&&(n==="always"||i?.path===""||!e.component&&!e.routeConfig?.loadComponent)?r={params:S(S({},e.params),t.params),data:S(S({},e.data),t.data),resolve:S(S(S(S({},t.data),e.data),i?.data),t._resolvedData)}:r={params:S({},t.params),data:S({},t.data),resolve:S(S({},t.data),t._resolvedData??{})},i&&aw(i)&&(r.resolve[Ua]=i.title),r}var Fi=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Ua]}constructor(e,n,r,i,o,s,a,l,c,u){this.url=e,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=c,this._environmentInjector=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Li(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Li(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${n}')`}},Va=class extends Ed{url;constructor(e,n){super(n),this.url=e,vv(this,n)}toString(){return sw(this._root)}};function vv(t,e){e.value._routerState=t,e.children.forEach(n=>vv(t,n))}function sw(t){let e=t.children.length>0?` { ${t.children.map(sw).join(", ")} } `:"";return`${t.value}${e}`}function nv(t){if(t.snapshot){let e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Vn(e.queryParams,n.queryParams)||t.queryParamsSubject.next(n.queryParams),e.fragment!==n.fragment&&t.fragmentSubject.next(n.fragment),Vn(e.params,n.params)||t.paramsSubject.next(n.params),w1(e.url,n.url)||t.urlSubject.next(n.url),Vn(e.data,n.data)||t.dataSubject.next(n.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function uv(t,e){let n=Vn(t.params,e.params)&&A1(t.url,e.url),r=!t.parent!=!e.parent;return n&&!r&&(!t.parent||uv(t.parent,e.parent))}function aw(t){return typeof t.title=="string"||t.title===null}var lw=new T(""),Hi=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=G;activateEvents=new Ne;deactivateEvents=new Ne;attachEvents=new Ne;detachEvents=new Ne;routerOutletData=Ou();parentContexts=w(ns);location=w(Ln);changeDetector=w(Ur);inputBinder=w(Sd,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:i}=n.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new M(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new M(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new M(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new M(4013,!1);this._activatedRoute=n;let i=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new dv(n,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:l,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||t)};static \u0275dir=xe({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[vn]})}return t})(),dv=class{route;childContexts;parent;outletData;constructor(e,n,r,i){this.route=e,this.childContexts=n,this.parent=r,this.outletData=i}get(e,n){return e===tt?this.route:e===ns?this.childContexts:e===lw?this.outletData:this.parent.get(e,n)}},Sd=new T("");var yv=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=re({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&oe(0,"router-outlet")},dependencies:[Hi],encapsulation:2})}return t})();function bv(t){let e=t.children&&t.children.map(bv),n=e?Y(S({},t),{children:e}):S({},t);return!n.component&&!n.loadComponent&&(e||n.loadChildren)&&n.outlet&&n.outlet!==G&&(n.component=yv),n}function K1(t,e,n){let r=Ba(t,e._root,n?n._root:void 0);return new ja(r,e)}function Ba(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=e.value;let i=X1(t,e,n);return new Ht(r,i)}else{if(t.shouldAttach(e.value)){let o=t.retrieve(e.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>Ba(t,a)),s}}let r=J1(e.value),i=e.children.map(o=>Ba(t,o));return new Ht(r,i)}}function X1(t,e,n){return e.children.map(r=>{for(let i of n.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return Ba(t,r,i);return Ba(t,r)})}function J1(t){return new tt(new it(t.url),new it(t.params),new it(t.queryParams),new it(t.fragment),new it(t.data),t.outlet,t.component,t)}var es=class{redirectTo;navigationBehaviorOptions;constructor(e,n){this.redirectTo=e,this.navigationBehaviorOptions=n}},cw="ngNavigationCancelingError";function Cd(t,e){let{redirectTo:n,navigationBehaviorOptions:r}=Zo(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,i=uw(!1,ft.Redirect);return i.url=n,i.navigationBehaviorOptions=r,i}function uw(t,e){let n=new Error(`NavigationCancelingError: ${t||""}`);return n[cw]=!0,n.cancellationCode=e,n}function ek(t){return dw(t)&&Zo(t.url)}function dw(t){return!!t&&t[cw]}var fv=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(e,n,r,i,o){this.routeReuseStrategy=e,this.futureState=n,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(e){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,e),nv(this.futureState.root),this.activateChildRoutes(n,r,e)}deactivateChildRoutes(e,n,r){let i=qo(n);e.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(e,n,r){let i=e.value,o=n?n.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(e,n,s.children)}else this.deactivateChildRoutes(e,n,r);else o&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(e,n){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,n):this.deactivateRouteAndOutlet(e,n)}detachAndStoreRouteSubtree(e,n){let r=n.getContext(e.value.outlet),i=r&&e.value.component?r.children:n,o=qo(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,n){let r=n.getContext(e.value.outlet),i=r&&e.value.component?r.children:n,o=qo(e);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(e,n,r){let i=qo(n);e.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new yd(o.value.snapshot))}),e.children.length&&this.forwardEvent(new md(e.value.snapshot))}activateRoutes(e,n,r){let i=e.value,o=n?n.value:null;if(nv(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(e,n,s.children)}else this.activateChildRoutes(e,n,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),nv(a.route.value),this.activateChildRoutes(e,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(e,null,s.children)}else this.activateChildRoutes(e,null,r)}},_d=class{path;route;constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},Qo=class{component;route;constructor(e,n){this.component=e,this.route=n}};function tk(t,e,n){let r=t._root,i=e?e._root:null;return Na(r,i,n,[r.value])}function nk(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function rs(t,e){let n=Symbol(),r=e.get(t,n);return r===n?typeof t=="function"&&!ip(t)?t:e.get(t):r}function Na(t,e,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=qo(e);return t.children.forEach(s=>{rk(s,o[s.value.outlet],n,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>Pa(a,n.getContext(s),i)),i}function rk(t,e,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let l=ik(s,o,o.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new _d(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Na(t,e,a?a.children:null,r,i):Na(t,e,n,r,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Qo(a.outlet.component,s))}else s&&Pa(e,a,i),i.canActivateChecks.push(new _d(r)),o.component?Na(t,null,a?a.children:null,r,i):Na(t,null,n,r,i);return i}function ik(t,e,n){if(typeof n=="function")return Ke(e._environmentInjector,()=>n(t,e));switch(n){case"pathParamsChange":return!Pi(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Pi(t.url,e.url)||!Vn(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!uv(t,e)||!Vn(t.queryParams,e.queryParams);default:return!uv(t,e)}}function Pa(t,e,n){let r=qo(t),i=t.value;Object.entries(r).forEach(([o,s])=>{i.component?e?Pa(s,e.children.getContext(o),n):Pa(s,null,n):Pa(s,e,n)}),i.component?e&&e.outlet&&e.outlet.isActivated?n.canDeactivateChecks.push(new Qo(e.outlet.component,i)):n.canDeactivateChecks.push(new Qo(null,i)):n.canDeactivateChecks.push(new Qo(null,i))}function za(t){return typeof t=="function"}function ok(t){return typeof t=="boolean"}function sk(t){return t&&za(t.canLoad)}function ak(t){return t&&za(t.canActivate)}function lk(t){return t&&za(t.canActivateChild)}function ck(t){return t&&za(t.canDeactivate)}function uk(t){return t&&za(t.canMatch)}function fw(t){return t instanceof ci||t?.name==="EmptyError"}var nd=Symbol("INITIAL_VALUE");function ts(){return cn(t=>jh(t.map(e=>e.pipe(Yn(1),Bh(nd)))).pipe(ve(e=>{for(let n of e)if(n!==!0){if(n===nd)return nd;if(n===!1||dk(n))return n}return!0}),Rt(e=>e!==nd),Yn(1)))}function dk(t){return Zo(t)||t instanceof es}function hw(t){return t.aborted?Q(void 0).pipe(Yn(1)):new ee(e=>{let n=()=>{e.next(),e.complete()};return t.addEventListener("abort",n),()=>t.removeEventListener("abort",n)})}function pw(t){return Ps(hw(t))}function fk(t){return gt(e=>{let{targetSnapshot:n,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=e;return o.length===0&&i.length===0?Q(Y(S({},e),{guardsResult:!0})):hk(o,n,r).pipe(gt(s=>s&&ok(s)?pk(n,i,t):Q(s)),ve(s=>Y(S({},e),{guardsResult:s})))})}function hk(t,e,n){return He(t).pipe(gt(r=>bk(r.component,r.route,n,e)),Qn(r=>r!==!0,!0))}function pk(t,e,n){return He(e).pipe(yo(r=>vo(mk(r.route.parent,n),gk(r.route,n),yk(t,r.path),vk(t,r.route))),Qn(r=>r!==!0,!0))}function gk(t,e){return t!==null&&e&&e(new vd(t)),Q(!0)}function mk(t,e){return t!==null&&e&&e(new gd(t)),Q(!0)}function vk(t,e){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return Q(!0);let r=n.map(i=>Os(()=>{let o=e._environmentInjector,s=rs(i,o),a=ak(s)?s.canActivate(e,t):Ke(o,()=>s(e,t));return Bi(a).pipe(Qn())}));return Q(r).pipe(ts())}function yk(t,e){let n=e[e.length-1],i=e.slice(0,e.length-1).reverse().map(o=>nk(o)).filter(o=>o!==null).map(o=>Os(()=>{let s=o.guards.map(a=>{let l=o.node._environmentInjector,c=rs(a,l),u=lk(c)?c.canActivateChild(n,t):Ke(l,()=>c(n,t));return Bi(u).pipe(Qn())});return Q(s).pipe(ts())}));return Q(i).pipe(ts())}function bk(t,e,n,r){let i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!i||i.length===0)return Q(!0);let o=i.map(s=>{let a=e._environmentInjector,l=rs(s,a),c=ck(l)?l.canDeactivate(t,e,n,r):Ke(a,()=>l(t,e,n,r));return Bi(c).pipe(Qn())});return Q(o).pipe(ts())}function Ek(t,e,n,r,i){let o=e.canLoad;if(o===void 0||o.length===0)return Q(!0);let s=o.map(a=>{let l=rs(a,t),c=sk(l)?l.canLoad(e,n):Ke(t,()=>l(e,n)),u=Bi(c);return i?u.pipe(pw(i)):u});return Q(s).pipe(ts(),gw(r))}function gw(t){return kh(Tn(e=>{if(typeof e!="boolean")throw Cd(t,e)}),ve(e=>e===!0))}function Dk(t,e,n,r,i){let o=e.canMatch;if(!o||o.length===0)return Q(!0);let s=o.map(a=>{let l=rs(a,t),c=uk(l)?l.canMatch(e,n):Ke(t,()=>l(e,n));return Bi(c).pipe(pw(i))});return Q(s).pipe(ts(),gw(r))}var dr=class t extends Error{segmentGroup;constructor(e){super(),this.segmentGroup=e||null,Object.setPrototypeOf(this,t.prototype)}},Ha=class t extends Error{urlTree;constructor(e){super(),this.urlTree=e,Object.setPrototypeOf(this,t.prototype)}};function Ck(t){throw new M(4e3,!1)}function _k(t){throw uw(!1,ft.GuardRejected)}var hv=class{urlSerializer;urlTree;constructor(e,n){this.urlSerializer=e,this.urlTree=n}async lineralizeSegments(e,n){let r=[],i=n.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return r;if(i.numberOfChildren>1||!i.children[G])throw Ck(`${e.redirectTo}`);i=i.children[G]}}async applyRedirectCommands(e,n,r,i,o){let s=await wk(n,i,o);if(s instanceof Cn)throw new Ha(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),e,r);if(s[0]==="/")throw new Ha(a);return a}applyRedirectCreateUrlTree(e,n,r,i){let o=this.createSegmentGroup(e,n.root,r,i);return new Cn(o,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(e,n){let r={};return Object.entries(e).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);r[i]=n[a]}else r[i]=o}),r}createSegmentGroup(e,n,r,i){let o=this.createSegments(e,n.segments,r,i),s={};return Object.entries(n.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(e,l,r,i)}),new ue(o,s)}createSegments(e,n,r,i){return n.map(o=>o.path[0]===":"?this.findPosParam(e,o,i):this.findOrReturn(o,r))}findPosParam(e,n,r){let i=r[n.path.substring(1)];if(!i)throw new M(4001,!1);return i}findOrReturn(e,n){let r=0;for(let i of n){if(i.path===e.path)return n.splice(r),i;r++}return e}};function wk(t,e,n){if(typeof t=="string")return Promise.resolve(t);let r=t,{queryParams:i,fragment:o,routeConfig:s,url:a,outlet:l,params:c,data:u,title:d,paramMap:h,queryParamMap:f}=e;return sd(Bi(Ke(n,()=>r({params:c,data:u,queryParams:i,fragment:o,routeConfig:s,url:a,outlet:l,title:d,paramMap:h,queryParamMap:f}))))}function Sk(t,e){return t.providers&&!t._injector&&(t._injector=pa(t.providers,e,`Route: ${t.path}`)),t._injector??e}function Dn(t){return t.outlet||G}function Ik(t,e){let n=t.filter(r=>Dn(r)===e);return n.push(...t.filter(r=>Dn(r)!==e)),n}var pv={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Mk(t,e,n,r,i,o){let s=mw(t,e,n);return s.matched?(r=Sk(e,r),Dk(r,e,n,i,o).pipe(ve(a=>a===!0?s:S({},pv)))):Q(s)}function mw(t,e,n){if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||n.length>0)?S({},pv):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let i=(e.matcher||U0)(n,t,e);if(!i)return S({},pv);let o={};Object.entries(i.posParams??{}).forEach(([a,l])=>{o[a]=l.path});let s=i.consumed.length>0?S(S({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:n.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function j0(t,e,n,r){return n.length>0&&xk(t,n,r)?{segmentGroup:new ue(e,Ak(r,new ue(n,t.children))),slicedSegments:[]}:n.length===0&&Rk(t,n,r)?{segmentGroup:new ue(t.segments,Tk(t,n,r,t.children)),slicedSegments:n}:{segmentGroup:new ue(t.segments,t.children),slicedSegments:n}}function Tk(t,e,n,r){let i={};for(let o of n)if(Id(t,e,o)&&!r[Dn(o)]){let s=new ue([],{});i[Dn(o)]=s}return S(S({},r),i)}function Ak(t,e){let n={};n[G]=e;for(let r of t)if(r.path===""&&Dn(r)!==G){let i=new ue([],{});n[Dn(r)]=i}return n}function xk(t,e,n){return n.some(r=>Id(t,e,r)&&Dn(r)!==G)}function Rk(t,e,n){return n.some(r=>Id(t,e,r))}function Id(t,e,n){return(t.hasChildren()||e.length>0)&&n.pathMatch==="full"?!1:n.path===""}function Nk(t,e,n){return e.length===0&&!t.children[n]}var gv=class{};async function Ok(t,e,n,r,i,o,s="emptyOnly",a){return new mv(t,e,n,r,i,s,o,a).recognize()}var kk=31,mv=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(e,n,r,i,o,s,a,l){this.injector=e,this.configLoader=n,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.abortSignal=l,this.applyRedirects=new hv(this.urlSerializer,this.urlTree)}noMatchError(e){return new M(4002,`'${e.segmentGroup}'`)}async recognize(){let e=j0(this.urlTree.root,[],[],this.config).segmentGroup,{children:n,rootSnapshot:r}=await this.match(e),i=new Ht(r,n),o=new Va("",i),s=J0(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}async match(e){let n=new Fi([],Object.freeze({}),Object.freeze(S({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),G,this.rootComponentType,null,{},this.injector);try{return{children:await this.processSegmentGroup(this.injector,this.config,e,G,n),rootSnapshot:n}}catch(r){if(r instanceof Ha)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof dr?this.noMatchError(r):r}}async processSegmentGroup(e,n,r,i,o){if(r.segments.length===0&&r.hasChildren())return this.processChildren(e,n,r,o);let s=await this.processSegment(e,n,r,r.segments,i,!0,o);return s instanceof Ht?[s]:[]}async processChildren(e,n,r,i){let o=[];for(let l of Object.keys(r.children))l==="primary"?o.unshift(l):o.push(l);let s=[];for(let l of o){let c=r.children[l],u=Ik(n,l),d=await this.processSegmentGroup(e,u,c,l,i);s.push(...d)}let a=vw(s);return Pk(a),a}async processSegment(e,n,r,i,o,s,a){for(let l of n)try{return await this.processSegmentAgainstRoute(l._injector??e,n,l,r,i,o,s,a)}catch(c){if(c instanceof dr||fw(c))continue;throw c}if(Nk(r,i,o))return new gv;throw new dr(r)}async processSegmentAgainstRoute(e,n,r,i,o,s,a,l){if(Dn(r)!==s&&(s===G||!Id(i,o,r)))throw new dr(i);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(e,i,r,o,s,l);if(this.allowRedirects&&a)return this.expandSegmentAgainstRouteUsingRedirect(e,i,n,r,o,s,l);throw new dr(i)}async expandSegmentAgainstRouteUsingRedirect(e,n,r,i,o,s,a){let{matched:l,parameters:c,consumedSegments:u,positionalParamSegments:d,remainingSegments:h}=mw(n,i,o);if(!l)throw new dr(n);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>kk&&(this.allowRedirects=!1));let f=new Fi(o,c,Object.freeze(S({},this.urlTree.queryParams)),this.urlTree.fragment,V0(i),Dn(i),i.component??i._loadedComponent??null,i,B0(i),e),p=Dd(f,a,this.paramsInheritanceStrategy);if(f.params=Object.freeze(p.params),f.data=Object.freeze(p.data),this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let E=await this.applyRedirects.applyRedirectCommands(u,i.redirectTo,d,f,e),b=await this.applyRedirects.lineralizeSegments(i,E);return this.processSegment(e,r,n,b.concat(h),s,!1,a)}async matchSegmentAgainstRoute(e,n,r,i,o,s){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let a=await sd(Mk(n,r,i,e,this.urlSerializer,this.abortSignal));if(r.path==="**"&&(n.children={}),!a?.matched)throw new dr(n);e=r._injector??e;let{routes:l}=await this.getChildConfig(e,r,i),c=r._loadedInjector??e,{parameters:u,consumedSegments:d,remainingSegments:h}=a,f=new Fi(d,u,Object.freeze(S({},this.urlTree.queryParams)),this.urlTree.fragment,V0(r),Dn(r),r.component??r._loadedComponent??null,r,B0(r),e),p=Dd(f,s,this.paramsInheritanceStrategy);f.params=Object.freeze(p.params),f.data=Object.freeze(p.data);let{segmentGroup:E,slicedSegments:b}=j0(n,d,h,l);if(b.length===0&&E.hasChildren()){let N=await this.processChildren(c,l,E,f);return new Ht(f,N)}if(l.length===0&&b.length===0)return new Ht(f,[]);let D=Dn(r)===o,I=await this.processSegment(c,l,E,b,D?G:o,!0,f);return new Ht(f,I instanceof Ht?[I]:[])}async getChildConfig(e,n,r){if(n.children)return{routes:n.children,injector:e};if(n.loadChildren){if(n._loadedRoutes!==void 0){let o=n._loadedNgModuleFactory;return o&&!n._loadedInjector&&(n._loadedInjector=o.create(e).injector),{routes:n._loadedRoutes,injector:n._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(await sd(Ek(e,n,r,this.urlSerializer,this.abortSignal))){let o=await this.configLoader.loadChildren(e,n);return n._loadedRoutes=o.routes,n._loadedInjector=o.injector,n._loadedNgModuleFactory=o.factory,o}throw _k(n)}return{routes:[],injector:e}}};function Pk(t){t.sort((e,n)=>e.value.outlet===G?-1:n.value.outlet===G?1:e.value.outlet.localeCompare(n.value.outlet))}function Fk(t){let e=t.value.routeConfig;return e&&e.path===""}function vw(t){let e=[],n=new Set;for(let r of t){if(!Fk(r)){e.push(r);continue}let i=e.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),n.add(i)):e.push(r)}for(let r of n){let i=vw(r.children);e.push(new Ht(r.value,i))}return e.filter(r=>!n.has(r))}function V0(t){return t.data||{}}function B0(t){return t.resolve||{}}function Lk(t,e,n,r,i,o,s){return gt(async a=>{let{state:l,tree:c}=await Ok(t,e,n,r,a.extractedUrl,i,o,s);return Y(S({},a),{targetSnapshot:l,urlAfterRedirects:c})})}function jk(t){return gt(e=>{let{targetSnapshot:n,guards:{canActivateChecks:r}}=e;if(!r.length)return Q(e);let i=new Set(r.map(a=>a.route)),o=new Set;for(let a of i)if(!o.has(a))for(let l of yw(a))o.add(l);let s=0;return He(o).pipe(yo(a=>i.has(a)?Vk(a,n,t):(a.data=Dd(a,a.parent,t).resolve,Q(void 0))),Tn(()=>s++),yc(1),gt(a=>s===o.size?Q(e):ot))})}function yw(t){let e=t.children.map(n=>yw(n)).flat();return[t,...e]}function Vk(t,e,n){let r=t.routeConfig,i=t._resolve;return r?.title!==void 0&&!aw(r)&&(i[Ua]=r.title),Os(()=>(t.data=Dd(t,t.parent,n).resolve,Bk(i,t,e).pipe(ve(o=>(t._resolvedData=o,t.data=S(S({},t.data),o),null)))))}function Bk(t,e,n){let r=iv(t);if(r.length===0)return Q({});let i={};return He(r).pipe(gt(o=>Hk(t[o],e,n).pipe(Qn(),Tn(s=>{if(s instanceof es)throw Cd(new qr,s);i[o]=s}))),yc(1),ve(()=>i),ui(o=>fw(o)?ot:Lh(o)))}function Hk(t,e,n){let r=e._environmentInjector,i=rs(t,r),o=i.resolve?i.resolve(e,n):Ke(r,()=>i(e,n));return Bi(o)}function H0(t){return cn(e=>{let n=t(e);return n?He(n).pipe(ve(()=>e)):Q(e)})}var Ev=(()=>{class t{buildTitle(n){let r,i=n.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===G);return r}getResolvedTitleForRoute(n){return n.data[Ua]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=x({token:t,factory:()=>w(bw),providedIn:"root"})}return t})(),bw=(()=>{class t extends Ev{title;constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||t)(H(N0))};static \u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Wa=new T("",{factory:()=>({})}),Ga=new T(""),Ew=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=w(vm);async loadComponent(n,r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=(async()=>{try{let o=await z0(Ke(n,()=>r.loadComponent())),s=await _w(Cw(o));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s,s}finally{this.componentLoaders.delete(r)}})();return this.componentLoaders.set(r,i),i}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=(async()=>{try{let o=await Dw(r,this.compiler,n,this.onLoadEndListener);return r._loadedRoutes=o.routes,r._loadedInjector=o.injector,r._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(r)}})();return this.childrenLoaders.set(r,i),i}static \u0275fac=function(r){return new(r||t)};static \u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();async function Dw(t,e,n,r){let i=await z0(Ke(n,()=>t.loadChildren())),o=await _w(Cw(i)),s;o instanceof Su||Array.isArray(o)?s=o:s=await e.compileModuleAsync(o),r&&r(t);let a,l,c=!1,u;return Array.isArray(s)?(l=s,c=!0):(a=s.create(n).injector,u=s,l=a.get(Ga,[],{optional:!0,self:!0}).flat()),{routes:l.map(bv),injector:a,factory:u}}function Uk(t){return t&&typeof t=="object"&&"default"in t}function Cw(t){return Uk(t)?t.default:t}async function _w(t){return t}var Md=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=x({token:t,factory:()=>w($k),providedIn:"root"})}return t})(),$k=(()=>{class t{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static \u0275fac=function(r){return new(r||t)};static \u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ww=new T("");var zk=()=>{},Sw=new T(""),Iw=(()=>{class t{currentNavigation=W(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=W(null);events=new qe;
5transitionAbortWithErrorSubject=new qe;configLoader=w(Ew);environmentInjector=w(Pe);destroyRef=w(Ft);urlSerializer=w($a);rootContexts=w(ns);location=w(zr);inputBindingEnabled=w(Sd,{optional:!0})!==null;titleStrategy=w(Ev);options=w(Wa,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=w(Md);createViewTransition=w(ww,{optional:!0});navigationErrorHandler=w(Sw,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>Q(void 0);rootComponentType=null;destroyed=!1;constructor(){let n=i=>this.events.next(new hd(i)),r=i=>this.events.next(new pd(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;Qe(()=>{this.transitions?.next(Y(S({},n),{extractedUrl:this.urlHandlingStrategy.extract(n.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r}))})}setupNavigations(n){return this.transitions=new it(null),this.transitions.pipe(Rt(r=>r!==null),cn(r=>{let i=!1,o=new AbortController,s=()=>!i&&this.currentTransition?.id===r.id;return Q(r).pipe(cn(a=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",ft.SupersededByNewNavigation),ot;this.currentTransition=r;let l=this.lastSuccessfulNavigation();this.currentNavigation.set({id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:l?Y(S({},l),{previousNavigation:null}):null,abort:()=>o.abort()});let c=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),u=a.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!c&&u!=="reload")return this.events.next(new fr(a.id,this.urlSerializer.serialize(a.rawUrl),"",La.IgnoredSameUrlNavigation)),a.resolve(!1),ot;if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return Q(a).pipe(cn(d=>(this.events.next(new ji(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),d.id!==this.navigationId?ot:Promise.resolve(d))),Lk(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy,o.signal),Tn(d=>{r.targetSnapshot=d.targetSnapshot,r.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation.update(f=>(f.finalUrl=d.urlAfterRedirects,f));let h=new Ko(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(h)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:d,extractedUrl:h,source:f,restoredState:p,extras:E}=a,b=new ji(d,this.urlSerializer.serialize(h),f,p);this.events.next(b);let D=ow(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=Y(S({},a),{targetSnapshot:D,urlAfterRedirects:h,extras:Y(S({},E),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(I=>(I.finalUrl=h,I)),Q(r)}else return this.events.next(new fr(a.id,this.urlSerializer.serialize(a.extractedUrl),"",La.IgnoredByUrlHandlingStrategy)),a.resolve(!1),ot}),ve(a=>{let l=new cd(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);return this.events.next(l),this.currentTransition=r=Y(S({},a),{guards:tk(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),r}),fk(a=>this.events.next(a)),cn(a=>{if(r.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw Cd(this.urlSerializer,a.guardsResult);let l=new ud(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);if(this.events.next(l),!s())return ot;if(!a.guardsResult)return this.cancelNavigationTransition(a,"",ft.GuardRejected),ot;if(a.guards.canActivateChecks.length===0)return Q(a);let c=new dd(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);if(this.events.next(c),!s())return ot;let u=!1;return Q(a).pipe(jk(this.paramsInheritanceStrategy),Tn({next:()=>{u=!0;let d=new fd(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(d)},complete:()=>
vendor: 12,458 bytes, line 5
5{u||this.cancelNavigationTransition(a,"",ft.NoDataFromResolver)}}))}),H0(a=>{let l=u=>{let d=[];if(u.routeConfig?._loadedComponent)u.component=u.routeConfig?._loadedComponent;else if(u.routeConfig?.loadComponent){let h=u._environmentInjector;d.push(this.configLoader.loadComponent(h,u.routeConfig).then(f=>{u.component=f}))}for(let h of u.children)d.push(...l(h));return d},c=l(a.targetSnapshot.root);return c.length===0?Q(a):He(Promise.all(c).then(()=>a))}),H0(()=>this.afterPreactivation()),cn(()=>{let{currentSnapshot:a,targetSnapshot:l}=r,c=this.createViewTransition?.(this.environmentInjector,a.root,l.root);return c?He(c).pipe(ve(()=>r)):Q(r)}),Yn(1),ve(a=>{let l=K1(n.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);this.currentTransition=r=a=Y(S({},a),{targetRouterState:l}),this.currentNavigation.update(c=>(c.targetRouterState=l,c)),this.events.next(new Xo),s()&&(new fv(n.routeReuseStrategy,r.targetRouterState,r.currentRouterState,c=>this.events.next(c),this.inputBindingEnabled).activate(this.rootContexts),s()&&(i=!0,this.currentNavigation.update(c=>(c.abort=zk,c)),this.lastSuccessfulNavigation.set(Qe(this.currentNavigation)),this.events.next(new _n(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)))}),Ps(hw(o.signal).pipe(Rt(()=>!i&&!r.targetRouterState),Tn(()=>{this.cancelNavigationTransition(r,o.signal.reason+"",ft.Aborted)}))),Tn({complete:()=>{i=!0}}),Ps(this.transitionAbortWithErrorSubject.pipe(Tn(a=>{throw a}))),ks(()=>{o.abort(),i||this.cancelNavigationTransition(r,"",ft.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),ui(a=>{if(i=!0,this.destroyed)return r.resolve(!1),ot;if(dw(a))this.events.next(new en(r.id,this.urlSerializer.serialize(r.extractedUrl),a.message,a.cancellationCode)),ek(a)?this.events.next(new Jo(a.url,a.navigationBehaviorOptions)):r.resolve(!1);else{let l=new Vi(r.id,this.urlSerializer.serialize(r.extractedUrl),a,r.targetSnapshot??void 0);try{let c=Ke(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(c instanceof es){let{message:u,cancellationCode:d}=Cd(this.urlSerializer,c);this.events.next(new en(r.id,this.urlSerializer.serialize(r.extractedUrl),u,d)),this.events.next(new Jo(c.redirectTo,c.navigationBehaviorOptions))}else throw this.events.next(l),a}catch(c){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(c)}}return ot}))}))}cancelNavigationTransition(n,r,i){let o=new en(n.id,this.urlSerializer.serialize(n.extractedUrl),r,i);this.events.next(o),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=Qe(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return n.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Wk(t){return t!==ka}var Mw=new T("");var Tw=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=x({token:t,factory:()=>w(Gk),providedIn:"root"})}return t})(),wd=class{shouldDetach(e){return!1}store(e,n){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,n){return e.routeConfig===n.routeConfig}shouldDestroyInjector(e){return!0}},Gk=(()=>{class t extends wd{static \u0275fac=(()=>{let n;return function(i){return(n||(n=rr(t)))(i||t)}})();static \u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Dv=(()=>{class t{urlSerializer=w($a);options=w(Wa,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=w(zr);urlHandlingStrategy=w(Md);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Cn;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:n,initialUrl:r,targetBrowserUrl:i}){let o=n!==void 0?this.urlHandlingStrategy.merge(n,r):r,s=i??o;return s instanceof Cn?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:n,finalUrl:r,initialUrl:i}){r&&n?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=n):this.rawUrlTree=i}routerState=ow(null,w(Pe));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=x({token:t,factory:()=>w(qk),providedIn:"root"})}return t})(),qk=(()=>{class t extends Dv{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{n(r.url,r.state,"popstate")})})}handleRouterEvent(n,r){n instanceof ji?this.updateStateMemento():n instanceof fr?this.commitTransition(r):n instanceof Ko?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof Xo?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof en&&!iw(n)?this.restoreHistory(r):n instanceof Vi?this.restoreHistory(r,!0):n instanceof _n&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,{extras:r,id:i}){let{replaceUrl:o,state:s}=r;if(this.location.isCurrentPathEqualTo(n)||o){let a=this.browserPageId,l=S(S({},s),this.generateNgRouterState(i,a));this.location.replaceState(n,"",l)}else{let a=S(S({},s),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(n,"",a)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===n.finalUrl&&o===0&&(this.resetInternalState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(n),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:n}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}static \u0275fac=(()=>{let n;return function(i){return(n||(n=rr(t)))(i||t)}})();static \u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Cv(t,e){t.events.pipe(Rt(n=>n instanceof _n||n instanceof en||n instanceof Vi||n instanceof fr),ve(n=>n instanceof _n||n instanceof fr?0:(n instanceof en?n.code===ft.Redirect||n.code===ft.SupersededByNewNavigation:!1)?2:1),Rt(n=>n!==2),Yn(1)).subscribe(()=>{e()})}var Aw={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},xw={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Re=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=w(am);stateManager=w(Dv);options=w(Wa,{optional:!0})||{};pendingTasks=w(nr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=w(Iw);urlSerializer=w($a);location=w(zr);urlHandlingStrategy=w(Md);injector=w(Pe);_events=new qe;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=w(Tw);injectorCleanup=w(Mw,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=w(Ga,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!w(Sd,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:n=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new rt;subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=Qe(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof en&&r.code!==ft.Redirect&&r.code!==ft.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof _n)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof Jo){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),l=S({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||Wk(i.source)},s);this.scheduleNavigation(a,ka,null,l,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}Q1(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),ka,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r,i)=>{this.navigateToSyncWithBrowser(n,i,r)})}navigateToSyncWithBrowser(n,r,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let l=S({},i);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(o.state=l)}let a=this.parseUrl(n);this.scheduleNavigation(a,r,s,o).catch(l=>{this.disposed||this.injector.get(hn)(l)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return Qe(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(bv),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=r,c=l?this.currentUrlTree.fragment:s,u=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":u=S(S({},this.currentUrlTree.queryParams),o);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=o||null}u!==null&&(u=this.removeEmptyProps(u));let d;try{let h=i?i.snapshot:this.routerState.snapshot.root;d=ew(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root}return tw(d,n,u,c??null,this.urlSerializer)}navigateByUrl(n,r={skipLocationChange:!1}){let i=Zo(n)?n:this.parseUrl(n),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,ka,null,r)}navigate(n,r={skipLocationChange:!1}){return Yk(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.console.warn(Xn(4018,!1)),this.urlSerializer.parse("/")}}isActive(n,r){let i;if(r===!0?i=S({},Aw):r===!1?i=S({},xw):i=r,Zo(n))return O0(this.currentUrlTree,n,i);let o=this.parseUrl(n);return O0(this.currentUrlTree,o,i)}removeEmptyProps(n){return Object.entries(n).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}
5scheduleNavigation(n,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((d,h)=>{a=d,l=h});let u=this.pendingTasks.add();return Cv(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Yk(t){for(let e=0;e<t.length;e++)if(t[e]==null)throw new M(4008,!1)}var Kk=new T("");function _v(t,...e){return wo([{provide:Ga,multi:!0,useValue:t},[],{provide:tt,useFactory:Xk},{provide:Iu,multi:!0,useFactory:Jk},e.map(n=>n.\u0275providers)])}function Xk(){return w(Re).routerState.root}function Jk(){let t=w(Ot);return e=>{let n=t.get(Lr);if(e!==n.components[0])return;let r=t.get(Re),i=t.get(eP);t.get(tP)===1&&r.initialNavigation(),t.get(nP,null,{optional:!0})?.setUpPreloading(),t.get(Kk,null,{optional:!0})?.init(),r.resetRootComponentType(n.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var eP=new T("",{factory:()=>new qe}),tP=new T("",{factory:()=>1});var nP=new T("");var Nd,O,Pw,Sv,is,Ui,Rw,Fw,Lw,Ad={},jw=[],oP=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Yr(t,e){for(var n in e)t[n]=e[n];return t}function Vw(t){var e=t.parentNode;e&&e.removeChild(t)}function g(t,e,n){var r,i,o,s={};for(o in e)o=="key"?r=e[o]:o=="ref"?i=e[o]:s[o]=e[o];if(arguments.length>2&&(s.children=arguments.length>3?Nd.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(o in t.defaultProps)s[o]===void 0&&(s[o]=t.defaultProps[o]);return Td(t,s,r,i,null)}function Td(t,e,n,r,i){var o={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++Pw};return i==null&&O.vnode!=null&&O.vnode(o),o}function Ge(){return{current:null}}function ce(t){return t.children}function sP(t,e,n,r,i){var o;for(o in n)o==="children"||o==="key"||o in e||xd(t,o,null,n[o],r);for(o in e)i&&typeof e[o]!="function"||o==="children"||o==="key"||o==="value"||o==="checked"||n[o]===e[o]||xd(t,o,e[o],n[o],r)}function Nw(t,e,n){e[0]==="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||oP.test(e)?n:n+"px"}function xd(t,e,n,r,i){var o;e:if(e==="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||Nw(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||Nw(t.style,e,n[e])}else if(e[0]==="o"&&e[1]==="n")o=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+o]=n,n?r||t.addEventListener(e,o?kw:Ow,o):t.removeEventListener(e,o?kw:Ow,o);else if(e!=="dangerouslySetInnerHTML"){if(i)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="width"&&e!=="height"&&e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in t)try{t[e]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&e.indexOf("-")==-1?t.removeAttribute(e):t.setAttribute(e,n))}}function Ow(t){is=!0;try{return this.l[t.type+!1](O.event?O.event(t):t)}finally{is=!1}}function kw(t){is=!0;try{return this.l[t.type+!0](O.event?O.event(t):t)}finally{is=!1}}function at(t,e){this.props=t,this.context=e}function qa(t,e){if(e==null)return t.__?qa(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?qa(t):null}function Bw(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=t.__c.base=n.__e;break}return Bw(t)}}function aP(t){is?setTimeout(t):Fw(t)}function wv(t){(!t.__d&&(t.__d=!0)&&Ui.push(t)&&!Rd.__r++||Rw!==O.debounceRendering)&&((Rw=O.debounceRendering)||aP)(Rd)}function Rd(){var t,e,n,r,i,o,s,a;for(Ui.sort(function(l,c){return l.__v.__b-c.__v.__b});t=Ui.shift();)t.__d&&(e=Ui.length,r=void 0,i=void 0,s=(o=(n=t).__v).__e,(a=n.__P)&&(r=[],(i=Yr({},o)).__v=o.__v+1,Iv(a,o,i,n.__n,a.ownerSVGElement!==void 0,o.__h!=null?[s]:null,r,s??qa(o),o.__h),Ww(r,o),o.__e!=s&&Bw(o)),Ui.length>e&&Ui.sort(function(l,c){return l.__v.__b-c.__v.__b}));Rd.__r=0}function Hw(t,e,n,r,i,o,s,a,l,c){var u,d,h,f,p,E,b,D=r&&r.__k||jw,I=D.length;
vendor: 15,492 bytes, line 5
5for(n.__k=[],u=0;u<e.length;u++)if((f=n.__k[u]=(f=e[u])==null||typeof f=="boolean"?null:typeof f=="string"||typeof f=="number"||typeof f=="bigint"?Td(null,f,null,null,f):Array.isArray(f)?Td(ce,{children:f},null,null,null):f.__b>0?Td(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)!=null){if(f.__=n,f.__b=n.__b+1,(h=D[u])===null||h&&f.key==h.key&&f.type===h.type)D[u]=void 0;else for(d=0;d<I;d++){if((h=D[d])&&f.key==h.key&&f.type===h.type){D[d]=void 0;break}h=null}Iv(t,f,h=h||Ad,i,o,s,a,l,c),p=f.__e,(d=f.ref)&&h.ref!=d&&(b||(b=[]),h.ref&&b.push(h.ref,null,f),b.push(d,f.__c||p,f)),p!=null?(E==null&&(E=p),typeof f.type=="function"&&f.__k===h.__k?f.__d=l=Uw(f,l,t):l=$w(t,f,h,D,p,l),typeof n.type=="function"&&(n.__d=l)):l&&h.__e==l&&l.parentNode!=t&&(l=qa(h))}for(n.__e=E,u=I;u--;)D[u]!=null&&(typeof n.type=="function"&&D[u].__e!=null&&D[u].__e==n.__d&&(n.__d=zw(r).nextSibling),qw(D[u],D[u]));if(b)for(u=0;u<b.length;u++)Gw(b[u],b[++u],b[++u])}function Uw(t,e,n){for(var r,i=t.__k,o=0;i&&o<i.length;o++)(r=i[o])&&(r.__=t,e=typeof r.type=="function"?Uw(r,e,n):$w(n,r,r,i,r.__e,e));return e}function Ya(t,e){return e=e||[],t==null||typeof t=="boolean"||(Array.isArray(t)?t.some(function(n){Ya(n,e)}):e.push(t)),e}function $w(t,e,n,r,i,o){var s,a,l;if(e.__d!==void 0)s=e.__d,e.__d=void 0;else if(n==null||i!=o||i.parentNode==null)e:if(o==null||o.parentNode!==t)t.appendChild(i),s=null;else{for(a=o,l=0;(a=a.nextSibling)&&l<r.length;l+=1)if(a==i)break e;t.insertBefore(i,o),s=o}return s!==void 0?s:i.nextSibling}function zw(t){var e,n,r;if(t.type==null||typeof t.type=="string")return t.__e;if(t.__k){for(e=t.__k.length-1;e>=0;e--)if((n=t.__k[e])&&(r=zw(n)))return r}return null}function Iv(t,e,n,r,i,o,s,a,l){var c,u,d,h,f,p,E,b,D,I,N,A,me,J,le,ie=e.type;if(e.constructor!==void 0)return null;n.__h!=null&&(l=n.__h,a=e.__e=n.__e,e.__h=null,o=[a]),(c=O.__b)&&c(e);try{e:if(typeof ie=="function"){if(b=e.props,D=(c=ie.contextType)&&r[c.__c],I=c?D?D.props.value:c.__:r,n.__c?E=(u=e.__c=n.__c).__=u.__E:("prototype"in ie&&ie.prototype.render?e.__c=u=new ie(b,I):(e.__c=u=new at(b,I),u.constructor=ie,u.render=cP),D&&D.sub(u),u.props=b,u.state||(u.state={}),u.context=I,u.__n=r,d=u.__d=!0,u.__h=[],u._sb=[]),u.__s==null&&(u.__s=u.state),ie.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Yr({},u.__s)),Yr(u.__s,ie.getDerivedStateFromProps(b,u.__s))),h=u.props,f=u.state,u.__v=e,d)ie.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(ie.getDerivedStateFromProps==null&&b!==h&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(b,I),!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(b,u.__s,I)===!1||e.__v===n.__v){for(e.__v!==n.__v&&(u.props=b,u.state=u.__s,u.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach(function(Cr){Cr&&(Cr.__=e)}),N=0;N<u._sb.length;N++)u.__h.push(u._sb[N]);u._sb=[],u.__h.length&&s.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(b,u.__s,I),u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(h,f,p)})}if(u.context=I,u.props=b,u.__P=t,A=O.__r,me=0,"prototype"in ie&&ie.prototype.render){for(u.state=u.__s,u.__d=!1,A&&A(e),c=u.render(u.props,u.state,u.context),J=0;J<u._sb.length;J++)u.__h.push(u._sb[J]);u._sb=[]}else do u.__d=!1,A&&A(e),c=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++me<25);u.state=u.__s,u.getChildContext!=null&&(r=Yr(Yr({},r),u.getChildContext())),d||u.getSnapshotBeforeUpdate==null||(p=u.getSnapshotBeforeUpdate(h,f)),le=c!=null&&c.type===ce&&c.key==null?c.props.children:c,Hw(t,Array.isArray(le)?le:[le],e,n,r,i,o,s,a,l),u.base=e.__e,e.__h=null,u.__h.length&&s.push(u),E&&(u.__E=u.__=null),u.__e=!1}else o==null&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=lP(n.__e,e,n,r,i,o,s,l);(c=O.diffed)&&c(e)}catch(Cr){e.__v=null,(l||o!=null)&&(e.__e=a,e.__h=!!l,o[o.indexOf(a)]=null),O.__e(Cr,e,n)}}function Ww(t,e){O.__c&&O.__c(e,t),t.some(function(n){try{t=n.__h,n.__h=[],t.some(function(r){r.call(n)})}catch(r){O.__e(r,n.__v)}})}function lP(t,e,n,r,i,o,s,a){var l,c,u,d=n.props,h=e.props,f=e.type,p=0;if(f==="svg"&&(i=!0),o!=null){for(;p<o.length;p++)if((l=o[p])&&"setAttribute"in l==!!f&&(f?l.localName===f:l.nodeType===3)){t=l,o[p]=null;break}}if(t==null){if(f===null)return document.createTextNode(h);t=i?document.createElementNS("http://www.w3.org/2000/svg",f):document.createElement(f,h.is&&h),o=null,a=!1}if(f===null)d===h||a&&t.data===h||(t.data=h);else{if(o=o&&Nd.call(t.childNodes),c=(d=n.props||Ad).dangerouslySetInnerHTML,u=h.dangerouslySetInnerHTML,!a){if(o!=null)for(d={},p=0;p<t.attributes.length;p++)d[t.attributes[p].name]=t.attributes[p].value;(u||c)&&(u&&(c&&u.__html==c.__html||u.__html===t.innerHTML)||(t.innerHTML=u&&u.__html||""))}if(sP(t,h,d,i,a),u)e.__k=[];else if(p=e.props.children,Hw(t,Array.isArray(p)?p:[p],e,n,r,i&&f!=="foreignObject",o,s,o?o[0]:n.__k&&qa(n,0),a),o!=null)for(p=o.length;p--;)o[p]!=null&&Vw(o[p]);a||("value"in h&&(p=h.value)!==void 0&&(p!==t.value||f==="progress"&&!p||f==="option"&&p!==d.value)&&xd(t,"value",p,d.value,!1),"checked"in h&&(p=h.checked)!==void 0&&p!==t.checked&&xd(t,"checked",p,d.checked,!1))}return t}function Gw(t,e,n){try{typeof t=="function"?t(e):t.current=e}catch(r){O.__e(r,n)}}function qw(t,e,n){var r,i;if(O.unmount&&O.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||Gw(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){O.__e(o,e)}r.base=r.__P=null,t.__c=void 0}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&qw(r[i],e,n||typeof t.type!="function");n||t.__e==null||Vw(t.__e),t.__=t.__e=t.__d=void 0}function cP(t,e,n){return this.constructor(t,n)}function Qr(t,e,n){var r,i,o;O.__&&O.__(t,e),i=(r=typeof n=="function")?null:n&&n.__k||e.__k,o=[],Iv(e,t=(!r&&n||e).__k=g(ce,null,[t]),i||Ad,Ad,e.ownerSVGElement!==void 0,!r&&n?[n]:i?null:e.firstChild?Nd.call(e.childNodes):null,o,!r&&n?n:i?i.__e:e.firstChild,r),Ww(o,t)}function Od(t,e){var n={__c:e="__cC"+Lw++,__:t,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,o;return this.getChildContext||(i=[],(o={})[e]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&i.some(function(a){a.__e=!0,wv(a)})},this.sub=function(s){i.push(s);var a=s.componentWillUnmount;s.componentWillUnmount=function(){i.splice(i.indexOf(s),1),a&&a.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}Nd=jw.slice,O={__e:function(t,e,n,r){for(var i,o,s;e=e.__;)if((i=e.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(t)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,r||{}),s=i.__d),s)return i.__E=i}catch(a){t=a}throw t}},Pw=0,Sv=function(t){return t!=null&&t.constructor===void 0},is=!1,at.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Yr({},this.state),typeof t=="function"&&(t=t(Yr({},n),this.props)),t&&Yr(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),wv(this))},at.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),wv(this))},at.prototype.render=ce,Ui=[],Fw=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Rd.__r=0,Lw=0;var dP,Bn,Mv,Yw;var tS=[],Tv=[],Qw=O.__b,Zw=O.__r,Kw=O.diffed,Xw=O.__c,Jw=O.unmount;function fP(){for(var t;t=tS.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(kd),t.__H.__h.forEach(Av),t.__H.__h=[]}catch(e){t.__H.__h=[],O.__e(e,t.__v)}}O.__b=function(t){Bn=null,Qw&&Qw(t)},O.__r=function(t){Zw&&Zw(t),dP=0;var e=(Bn=t.__c).__H;e&&(Mv===Bn?(e.__h=[],Bn.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Tv,n.__N=n.i=void 0})):(e.__h.forEach(kd),e.__h.forEach(Av),e.__h=[])),Mv=Bn},O.diffed=function(t){Kw&&Kw(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(tS.push(e)!==1&&Yw===O.requestAnimationFrame||((Yw=O.requestAnimationFrame)||hP)(fP)),e.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Tv&&(n.__=n.__V),n.i=void 0,n.__V=Tv})),Mv=Bn=null},O.__c=function(t,e){e.some(function(n){try{n.__h.forEach(kd),n.__h=n.__h.filter(function(r){return!r.__||Av(r)})}catch(r){e.some(function(i){i.__h&&(i.__h=[])}),e=[],O.__e(r,n.__v)}}),Xw&&Xw(t,e)},O.unmount=function(t){Jw&&Jw(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{kd(r)}catch(i){e=i}}),n.__H=void 0,e&&O.__e(e,n.__v))};var eS=typeof requestAnimationFrame=="function";function hP(t){var e,n=function(){clearTimeout(r),eS&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);eS&&(e=requestAnimationFrame(n))}function kd(t){var e=Bn,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),Bn=e}function Av(t){var e=Bn;t.__c=t.__(),Bn=e}function pP(t,e){for(var n in e)t[n]=e[n];return t}function nS(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var r in e)if(r!=="__source"&&t[r]!==e[r])return!0;return!1}function rS(t){this.props=t}(rS.prototype=new at).isPureReactComponent=!0,rS.prototype.shouldComponentUpdate=function(t,e){return nS(this.props,t)||nS(this.state,e)};var iS=O.__b;O.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),iS&&iS(t)};var pZ=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;var gP=O.__e;O.__e=function(t,e,n,r){if(t.then){for(var i,o=e;o=o.__;)if((i=o.__c)&&i.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),i.__c(t,e)}gP(t,e,n,r)};var oS=O.unmount;function dS(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),t.__c.__H=null),(t=pP({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(r){return dS(r,e,n)})),t}function fS(t,e,n){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(r){return fS(r,e,n)}),t.__c&&t.__c.__P===e&&(t.__e&&n.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=n)),t}function xv(){this.__u=0,this.t=null,this.__b=null}function hS(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Pd(){this.u=null,this.o=null}O.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&t.__h===!0&&(t.type=null),oS&&oS(t)},(xv.prototype=new at).__c=function(t,e){var n=e.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var i=hS(r.__v),o=!1,s=function(){o||(o=!0,n.__R=null,i?i(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__a){var c=r.state.__a;r.__v.__k[0]=fS(c,c.__c.__P,c.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.t.pop();)u.forceUpdate()}},l=e.__h===!0;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),t.then(s,s)},xv.prototype.componentWillUnmount=function(){this.t=[]},xv.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=dS(this.__b,n,r.__O=r.__P)}this.__b=null}var i=e.__a&&g(ce,null,t.fallback);return i&&(i.__h=null),[g(ce,null,e.__a?null:t.children),i]};var sS=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.u=n=n[2]}};function mP(t){return this.getChildContext=function(){return t.context},t.children}function vP(t){var e=this,n=t.i;e.componentWillUnmount=function(){Qr(null,e.l),e.l=null,e.i=null},e.i&&e.i!==n&&e.componentWillUnmount(),t.__v?(e.l||(e.i=n,e.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),e.i.appendChild(r)},insertBefore:function(r,i){this.childNodes.push(r),e.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),e.i.removeChild(r)}}),Qr(g(mP,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function pS(t,e){var n=g(vP,{__v:t,i:e});return n.containerInfo=e,n}(Pd.prototype=new at).__a=function(t){var e=this,n=hS(e.__v),r=e.o.get(t);return r[0]++,function(i){var o=function(){e.props.revealOrder?(r.push(i),sS(e,t,r)):i()};n?n(o):o()}},Pd.prototype.render=function(t){this.u=null,this.o=new Map;var e=Ya(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},Pd.prototype.componentDidUpdate=Pd.prototype.componentDidMount=function(){var t=this;this.o.forEach(function(e,n){sS(t,n,e)})};var yP=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,bP=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,EP=typeof document<"u",DP=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(t)};at.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(at.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var aS=O.event;function CP(){}function _P(){return this.cancelBubble}function wP(){return this.defaultPrevented}O.event=function(t){return aS&&(t=aS(t)),t.persist=CP,t.isPropagationStopped=_P,t.isDefaultPrevented=wP,t.nativeEvent=t};var SP,lS={configurable:!0,get:function(){return this.class}},cS=O.vnode;O.vnode=function(t){var e=t.type,n=t.props,r=n;if(typeof e=="string"){var i=e.indexOf("-")===-1;for(var o in r={},n){var s=n[o];EP&&o==="children"&&e==="noscript"||o==="value"&&"defaultValue"in n&&s==null||(o==="defaultValue"&&"value"in n&&n.value==null?o="value":o==="download"&&s===!0?s="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+e)&&!DP(n.type)?o="oninput":/^onfocus$/i.test(o)?o="onfocusin":/^onblur$/i.test(o)?o="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(o)?o=o.toLowerCase():i&&bP.test(o)?o=o.replace(/[A-Z0-9]/g,"-$&").toLowerCase():s===null&&(s=void 0),/^oninput$/i.test(o)&&(o=o.toLowerCase(),r[o]&&(o="oninputCapture")),r[o]=s)}e=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=Ya(n.children).forEach(function(a){a.props.selected=r.value.indexOf(a.props.value)!=-1})),e=="select"&&r.defaultValue!=null&&(r.value=Ya(n.children).forEach(function(a){a.props.selected=r.multiple?r.defaultValue.indexOf(a.props.value)!=-1:r.defaultValue==a.props.value})),t.props=r,n.class!=n.className&&(lS.enumerable="className"in n,n.className!=null&&(r.class=n.className),Object.defineProperty(r,"className",lS))}t.$$typeof=yP,cS&&cS(t)};var uS=O.__r;O.__r=function(t){uS&&uS(t),SP=t.__c};var TS=[],Hv=new Map;function as(t){TS.push(t),Hv.forEach(e=>{RS(e,t)})}function AS(t){t.isConnected&&t.getRootNode&&xS(t.getRootNode())}function xS(t){let e=Hv.get(t);if(!e||!e.isConnected){if(e=t.querySelector("style[data-fullcalendar]"),!e){e=document.createElement("style"),e.setAttribute("data-fullcalendar","");let n=MP();n&&(e.nonce=n);let r=t===document?document.head:t,i=t===document?r.querySelector("script,link[rel=stylesheet],link[as=style],style"):r.firstChild;r.insertBefore(e,i)}Hv.set(t,e),IP(e)}}function IP(t){for(let e of TS)RS(t,e)}function RS(t,e){let{sheet:n}=t,r=n.cssRules.length;e.split("}").forEach((i,o)=>{i=i.trim(),i&&n.insertRule(i+"}",r+o)})}var Rv;function MP(){return Rv===void 0&&(Rv=TP()),Rv}function TP(){let t=document.querySelector('meta[name="csp-nonce"]');if(t&&t.hasAttribute("content"))return t.getAttribute("content");let e=document.querySelector("script[nonce]");return e&&e.nonce||""}typeof document<"u"&&xS(document);var AP
vendor: 14,303 bytes, line 5
5=':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}';
vendor: 138,647 bytes, line 5
5as(AP);var Wi=class{constructor(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),e==null?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))}pause(e=""){let{pauseDepths:n}=this;n[e]=(n[e]||0)+1,this.clearTimeout()}resume(e="",n){let{pauseDepths:r}=this;e in r&&(n?delete r[e]:(r[e]-=1,r[e]<=0&&delete r[e]),this.tryDrain())}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}};function fl(t){t.parentNode&&t.parentNode.removeChild(t)}function Ze(t,e){if(t.closest)return t.closest(e);if(!document.documentElement.contains(t))return null;do{if(Xv(t,e))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===1);return null}function Xv(t,e){return(t.matches||t.matchesSelector||t.msMatchesSelector).call(t,e)}function NS(t,e){let n=t instanceof HTMLElement?[t]:t,r=[];for(let i=0;i<n.length;i+=1){let o=n[i].querySelectorAll(e);for(let s=0;s<o.length;s+=1)r.push(o[s])}return r}var xP=/(top|left|right|bottom|width|height)$/i;function ro(t,e){for(let n in e)Jv(t,n,e[n])}function Jv(t,e,n){n==null?t.style[e]="":typeof n=="number"&&xP.test(e)?t.style[e]=`${n}px`:t.style[e]=n}function tf(t){var e,n;return(n=(e=t.composedPath)===null||e===void 0?void 0:e.call(t)[0])!==null&&n!==void 0?n:t.target}var gS=0;function io(){return gS+=1,"fc-dom-"+gS}function hl(t){t.preventDefault()}function RP(t,e){return n=>{let r=Ze(n.target,t);r&&e.call(r,n,r)}}function ey(t,e,n,r){let i=RP(n,r);return t.addEventListener(e,i),()=>{t.removeEventListener(e,i)}}function OS(t,e,n,r){let i;return ey(t,"mouseover",e,(o,s)=>{if(s!==i){i=s,n(o,s);let a=l=>{i=null,r(l,s),s.removeEventListener("mouseleave",a)};s.addEventListener("mouseleave",a)}})}var mS=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function ty(t,e){let n=r=>{e(r),mS.forEach(i=>{t.removeEventListener(i,n)})};mS.forEach(r=>{t.addEventListener(r,n)})}function kS(t){return Object.assign({onClick:t},PS(t))}function PS(t){return{tabIndex:0,onKeyDown(e){(e.key==="Enter"||e.key===" ")&&(t(e),e.preventDefault())}}}var vS=0;function vr(){return vS+=1,String(vS)}function pl(){document.body.classList.add("fc-not-allowed")}function gl(){document.body.classList.remove("fc-not-allowed")}function ny(t){t.style.userSelect="none",t.style.webkitUserSelect="none",t.addEventListener("selectstart",hl)}function ry(t){t.style.userSelect="",t.style.webkitUserSelect="",t.removeEventListener("selectstart",hl)}function iy(t){t.addEventListener("contextmenu",hl)}function oy(t){t.removeEventListener("contextmenu",hl)}function FS(t){let e=[],n=[],r,i;for(typeof t=="string"?n=t.split(/\s*,\s*/):typeof t=="function"?n=[t]:Array.isArray(t)&&(n=t),r=0;r<n.length;r+=1)i=n[r],typeof i=="string"?e.push(i.charAt(0)==="-"?{field:i.substring(1),order:-1}:{field:i,order:1}):typeof i=="function"&&e.push({func:i});return e}function LS(t,e,n){let r,i;for(r=0;r<n.length;r+=1)if(i=NP(t,e,n[r]),i)return i;return 0}function NP(t,e,n){return n.func?n.func(t,e):jS(t[n.field],e[n.field])*(n.order||1)}function jS(t,e){return!t&&!e?0:e==null?-1:t==null?1:typeof t=="string"||typeof e=="string"?String(t).localeCompare(String(e)):t-e}function zi(t,e){let n=String(t);return"000".substr(0,e-n.length)+n}function ls(t,e,n){return typeof t=="function"?t(...e):typeof t=="string"?e.reduce((r,i,o)=>r.replace("$"+o,i||""),t):n}function sy(t,e){return t-e}function Qa(t){return t%1===0}function OP(t){let e=t.querySelector(".fc-scrollgrid-shrink-frame"),n=t.querySelector(".fc-scrollgrid-shrink-cushion");if(!e)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return t.getBoundingClientRect().width-e.getBoundingClientRect().width+n.getBoundingClientRect().width}var yS=["years","months","days","milliseconds"],kP=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function X(t,e){return typeof t=="string"?PP(t):typeof t=="object"&&t?bS(t):typeof t=="number"?bS({[e||"milliseconds"]:t}):null}function PP(t){let e=kP.exec(t);if(e){let n=e[1]?-1:1;return{years:0,months:0,days:n*(e[2]?parseInt(e[2],10):0),milliseconds:n*((e[3]?parseInt(e[3],10):0)*60*60*1e3+(e[4]?parseInt(e[4],10):0)*60*1e3+(e[5]?parseInt(e[5],10):0)*1e3+(e[6]?parseInt(e[6],10):0))}}return null}function bS(t){let e={years:t.years||t.year||0,months:t.months||t.month||0,days:t.days||t.day||0,milliseconds:(t.hours||t.hour||0)*60*60*1e3+(t.minutes||t.minute||0)*60*1e3+(t.seconds||t.second||0)*1e3+(t.milliseconds||t.millisecond||t.ms||0)},n=t.weeks||t.week;return n&&(e.days+=n*7,e.specifiedWeeks=!0),e}function FP(t,e){return t.years===e.years&&t.months===e.months&&t.days===e.days&&t.milliseconds===e.milliseconds}function ml(t,e){return{years:t.years+e.years,months:t.months+e.months,days:t.days+e.days,milliseconds:t.milliseconds+e.milliseconds}}function VS(t,e){return{years:t.years-e.years,months:t.months-e.months,days:t.days-e.days,milliseconds:t.milliseconds-e.milliseconds}}function ay(t,e){return{years:t.years*e,months:t.months*e,days:t.days*e,milliseconds:t.milliseconds*e}}function LP(t){return os(t)/365}function jP(t){return os(t)/30}function os(t){return $t(t)/864e5}function $t(t){return t.years*(365*864e5)+t.months*(30*864e5)+t.days*864e5+t.milliseconds}function vl(t,e){let n=null;for(let r=0;r<yS.length;r+=1){let i=yS[r];if(e[i]){let o=t[i]/e[i];if(!Qa(o)||n!==null&&n!==o)return null;n=o}else if(t[i])return null}return n}function Za(t){let e=t.milliseconds;if(e){if(e%1e3!==0)return{unit:"millisecond",value:e};if(e%(1e3*60)!==0)return{unit:"second",value:e/1e3};if(e%(1e3*60*60)!==0)return{unit:"minute",value:e/(1e3*60)};if(e)return{unit:"hour",value:e/(1e3*60*60)}}return t.days?t.specifiedWeeks&&t.days%7===0?{unit:"week",value:t.days/7}:{unit:"day",value:t.days}:t.months?{unit:"month",value:t.months}:t.years?{unit:"year",value:t.years}:{unit:"millisecond",value:0}}function $n(t,e,n){if(t===e)return!0;let r=t.length,i;if(r!==e.length)return!1;for(i=0;i<r;i+=1)if(!(n?n(t[i],e[i]):t[i]===e[i]))return!1;return!0}var VP=["sun","mon","tue","wed","thu","fri","sat"];function nf(t,e){let n=Kr(t);return n[2]+=e*7,It(n)}function Ve(t,e){let n=Kr(t);return n[2]+=e,It(n)}function Hn(t,e){let n=Kr(t);return n[6]+=e,It(n)}function ly(t,e){return yr(t,e)/7}function yr(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60*24)}function BP(t,e){return(e.valueOf()-t.valueOf())/(1e3*60*60)}function HP(t,e){return(e.valueOf()-t.valueOf())/(1e3*60)}function UP(t,e){return(e.valueOf()-t.valueOf())/1e3}function BS(t,e){let n=ge(t),r=ge(e);return{years:0,months:0,days:Math.round(yr(n,r)),milliseconds:e.valueOf()-r.valueOf()-(t.valueOf()-n.valueOf())}}function HS(t,e){let n=ss(t,e);return n!==null&&n%7===0?n/7:null}function ss(t,e){return Xr(t)===Xr(e)?Math.round(yr(t,e)):null}function ge(t){return It([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()])}function $P(t){return It([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours()])}function zP(t){return It([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes()])}function WP(t){return It([t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds()])}function GP(t,e,n){let r=t.getUTCFullYear(),i=Nv(t,r,e,n);if(i<1)return Nv(t,r-1,e,n);let o=Nv(t,r+1,e,n);return o>=1?Math.min(i,o):i}function Nv(t,e,n,r){let i=It([e,0,1+qP(e,n,r)]),o=ge(t),s=Math.round(yr(i,o));return Math.floor(s/7)+1}function qP(t,e,n){let r=7+e-n;return-((7+It([t,0,r]).getUTCDay()-e)%7)+r-1}function ES(t){return[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()]}function DS(t){return new Date(t[0],t[1]||0,t[2]==null?1:t[2],t[3]||0,t[4]||0,t[5]||0)}function Kr(t){return[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()]}function It(t){return t.length===1&&(t=t.concat([0])),new Date(Date.UTC(...t))}function cy(t){return!isNaN(t.valueOf())}function Xr(t){return t.getUTCHours()*1e3*60*60+t.getUTCMinutes()*1e3*60+t.getUTCSeconds()*1e3+t.getUTCMilliseconds()}function rf(t,e,n=!1){let r=t.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(e==null?r=r.replace("Z",""):e!==0&&(r=r.replace("Z",fy(e,!0)))),r}function yl(t){return t.toISOString().replace(/T.*$/,"")}function uy(t){return t.toISOString().match(/^\d{4}-\d{2}/)[0]}function dy(t){return zi(t.getUTCHours(),2)+":"+zi(t.getUTCMinutes(),2)+":"+zi(t.getUTCSeconds(),2)}function fy(t,e=!1){let n=t<0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),o=Math.round(r%60);return e?`${n+zi(i,2)}:${zi(o,2)}`:`GMT${n}${i}${o?`:${zi(o,2)}`:""}`}function k(t,e,n){let r,i;return function(...o){if(!r)i=t.apply(this,o);else if(!$n(r,o)){n&&n(i);let s=t.apply(this,o);(!e||!e(s,i))&&(i=s)}return r=o,i}}function cs(t,e,n){let r,i;return o=>{if(!r)i=t.call(this,o);else if(!Mt(r,o)){n&&n(i);let s=t.call(this,o);(!e||!e(s,i))&&(i=s)}return r=o,i}}var Ov={week:3,separator:9,omitZeroMinute:9,meridiem:9,omitCommas:9},$d={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Fd=/\s*([ap])\.?m\.?/i,YP=/,/g,QP=/\s+/g,ZP=/\u200e/g,KP=/UTC|GMT/,Uv=class{constructor(e){let n={},r={},i=9;for(let o in e)o in Ov?(r[o]=e[o],Ov[o]<9&&(i=Math.min(Ov[o],i))):(n[o]=e[o],o in $d&&(i=Math.min($d[o],i)));this.standardDateProps=n,this.extendedSettings=r,this.smallestUnitNum=i,this.buildFormattingFunc=k(CS)}format(e,n){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,n)(e)}formatRange(e,n,r,i){let{standardDateProps:o,extendedSettings:s}=this,a=rF(e.marker,n.marker,r.calendarSystem);if(!a)return this.format(e,r);let l=a;l>1&&(o.year==="numeric"||o.year==="2-digit")&&(o.month==="numeric"||o.month==="2-digit")&&(o.day==="numeric"||o.day==="2-digit")&&(l=1);let c=this.format(e,r),u=this.format(n,r);if(c===u)return c;let d=iF(o,l),h=CS(d,s,r),f=h(e),p=h(n),E=oF(c,f,u,p),b=s.separator||i||r.defaultSeparator||"";return E?E.before+f+b+p+E.after:c+b+u}getSmallestUnit(){switch(this.smallestUnitNum){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}}};function CS(t,e,n){let r=Object.keys(t).length;return r===1&&t.timeZoneName==="short"?i=>fy(i.timeZoneOffset):r===0&&e.week?i=>nF(n.computeWeekNumber(i.marker),n.weekText,n.weekTextLong,n.locale,e.week):XP(t,e,n)}function XP(t,e,n){t=Object.assign({},t),e=Object.assign({},e),JP(t,e),t.timeZone="UTC";let r=new Intl.DateTimeFormat(n.locale.codes,t),i;if(e.omitZeroMinute){let o=Object.assign({},t);delete o.minute,i=new Intl.DateTimeFormat(n.locale.codes,o)}return o=>{let{marker:s}=o,a;i&&!s.getUTCMinutes()?a=i:a=r;let l=a.format(s);return eF(l,o,t,e,n)}}function JP(t,e){t.timeZoneName&&(t.hour||(t.hour="2-digit"),t.minute||(t.minute="2-digit")),t.timeZoneName==="long"&&(t.timeZoneName="short"),e.omitZeroMinute&&(t.second||t.millisecond)&&delete e.omitZeroMinute}function eF(t,e,n,r,i){return t=t.replace(ZP,""),n.timeZoneName==="short"&&(t=tF(t,i.timeZone==="UTC"||e.timeZoneOffset==null?"UTC":fy(e.timeZoneOffset))),r.omitCommas&&(t=t.replace(YP,"").trim()),r.omitZeroMinute&&(t=t.replace(":00","")),r.meridiem===!1?t=t.replace(Fd,"").trim():r.meridiem==="narrow"?t=t.replace(Fd,(o,s)=>s.toLocaleLowerCase()):r.meridiem==="short"?t=t.replace(Fd,(o,s)=>`${s.toLocaleLowerCase()}m`):r.meridiem==="lowercase"&&(t=t.replace(Fd,o=>o.toLocaleLowerCase())),t=t.replace(QP," "),t=t.trim(),t}function tF(t,e){let n=!1;return t=t.replace(KP,()=>(n=!0,e)),n||(t+=` ${e}`),t}function nF(t,e,n,r,i){let o=[];return i==="long"?o.push(n):(i==="short"||i==="narrow")&&o.push(e),(i==="long"||i==="short")&&o.push(" "),o.push(r.simpleNumberFormat.format(t)),r.options.direction==="rtl"&&o.reverse(),o.join("")}function rF(t,e,n){return n.getMarkerYear(t)!==n.getMarkerYear(e)?5:n.getMarkerMonth(t)!==n.getMarkerMonth(e)?4:n.getMarkerDay(t)!==n.getMarkerDay(e)?2:Xr(t)!==Xr(e)?1:0}function iF(t,e){let n={};for(let r in t)(!(r in $d)||$d[r]<=e)&&(n[r]=t[r]);return n}function oF(t,e,n,r){let i=0;for(;i<t.length;){let o=t.indexOf(e,i);if(o===-1)break;let s=t.substr(0,o);i=o+e.length;let a=t.substr(i),l=0;for(;l<n.length;){let c=n.indexOf(r,l);if(c===-1)break;let u=n.substr(0,c);l=c+r.length;let d=n.substr(l);if(s===u&&a===d)return{before:s,after:a}}}return null}function _S(t,e){let n=e.markerToArray(t.marker);return{marker:t.marker,timeZoneOffset:t.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}function zd(t,e,n,r){let i=_S(t,n.calendarSystem),o=e?_S(e,n.calendarSystem):null;return{date:i,start:i,end:o,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}var $v=class{constructor(e){this.cmdStr=e}format(e,n,r){return n.cmdFormatter(this.cmdStr,zd(e,null,n,r))}formatRange(e,n,r,i){return r.cmdFormatter(this.cmdStr,zd(e,n,r,i))}},zv=class{constructor(e){this.func=e}format(e,n,r){return this.func(zd(e,null,n,r))}formatRange(e,n,r,i){return this.func(zd(e,n,r,i))}};function Ee(t){return typeof t=="object"&&t?new Uv(t):typeof t=="string"?new $v(t):typeof t=="function"?new zv(t):null}var hy={navLinkDayClick:C,navLinkWeekClick:C,duration:X,bootstrapFontAwesome:C,buttonIcons:C,customButtons:C,defaultAllDayEventDuration:X,defaultTimedEventDuration:X,nextDayThreshold:X,scrollTime:X,scrollTimeReset:Boolean,slotMinTime:X,slotMaxTime:X,dayPopoverFormat:Ee,slotDuration:X,snapDuration:X,headerToolbar:C,footerToolbar:C,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:Ee,dayHeaderClassNames:C,dayHeaderContent:C,dayHeaderDidMount:C,dayHeaderWillUnmount:C,dayCellClassNames:C,dayCellContent:C,dayCellDidMount:C,dayCellWillUnmount:C,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:C,weekNumbers:Boolean,weekNumberClassNames:C,weekNumberContent:C,weekNumberDidMount:C,weekNumberWillUnmount:C,editable:Boolean,viewClassNames:C,viewDidMount:C,viewWillUnmount:C,nowIndicator:Boolean,nowIndicatorSnap:C,nowIndicatorClassNames:C,nowIndicatorContent:C,nowIndicatorDidMount:C,nowIndicatorWillUnmount:C,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:C,locale:C,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:C,eventOrder:FS,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:C,contentHeight:C,direction:String,weekNumberFormat:Ee,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:C,initialDate:C,now:C,eventDataTransform:C,stickyHeaderDates:C,stickyFooterScrollbar:C,viewHeight:C,defaultAllDay:Boolean,eventSourceFailure:C,eventSourceSuccess:C,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:C,eventConstraint:C,eventAllow:C,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:C,eventContent:C,eventDidMount:C,eventWillUnmount:C,selectConstraint:C,selectOverlap:C,selectAllow:C,droppable:Boolean,unselectCancel:String,slotLabelFormat:C,slotLaneClassNames:C,slotLaneContent:C,slotLaneDidMount:C,slotLaneWillUnmount:C,slotLabelClassNames:C,slotLabelContent:C,slotLabelDidMount:C,slotLabelWillUnmount:C,dayMaxEvents:C,dayMaxEventRows:C,dayMinWidth:Number,slotLabelInterval:X,allDayText:String,allDayClassNames:C,allDayContent:C,allDayDidMount:C,allDayWillUnmount:C,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:Ee,rerenderDelay:Number,moreLinkText:C,moreLinkHint:C,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:C,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:X,hiddenDays:C,fixedWeekCount:Boolean,validRange:C,visibleRange:C,titleFormat:C,eventInteractive:Boolean,noEventsText:String,viewHint:C,navLinkHint:C,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:C,moreLinkClassNames:C,moreLinkContent:C,moreLinkDidMount:C,moreLinkWillUnmount:C,monthStartFormat:Ee,handleCustomRendering:C,customRenderingMetaMap:C,customRenderingReplaces:Boolean},ri={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" \u2013 ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30,monthStartFormat:{month:"long",day:"numeric"},nowIndicatorSnap:"auto"},py={datesSet:C,eventsSet:C,eventAdd:C,eventChange:C,eventRemove:C,windowResize:C,eventClick:C,eventMouseEnter:C,eventMouseLeave:C,select:C,unselect:C,loading:C,_unmount:C,_beforeprint:C,_afterprint:C,_noEventDrop:C,_noEventResize:C,_resize:C,_scrollRequest:C},gy={buttonText:C,buttonHints:C,views:C,plugins:C,initialEvents:C,events:C,eventSources:C},ii={headerToolbar:$i,footerToolbar:$i,buttonText:$i,buttonHints:$i,buttonIcons:$i,dateIncrement:$i,plugins:Ld,events:Ld,eventSources:Ld,resources:Ld};function $i(t,e){return typeof t=="object"&&typeof e=="object"&&t&&e?Mt(t,e):t===e}function Ld(t,e){return Array.isArray(t)&&Array.isArray(e)?$n(t,e):t===e}var US={type:String,component:C,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:C,usesMinMaxTime:Boolean,classNames:C,content:C,didMount:C,willUnmount:C};function of(t){return af(t,ii)}function sf(t,e){let n={},r={};for(let i in e)i in t&&(n[i]=e[i](t[i]));for(let i in t)i in e||(r[i]=t[i]);return{refined:n,extra:r}}function C(t){return t}var{hasOwnProperty:Wd}=Object.prototype;function af(t,e){let n={};if(e){for(let r in e)if(e[r]===$i){let i=[];for(let o=t.length-1;o>=0;o-=1){let s=t[o][r];if(typeof s=="object"&&s)i.unshift(s);else if(s!==void 0){n[r]=s;break}}i.length&&(n[r]=af(i))}}for(let r=t.length-1;r>=0;r-=1){let i=t[r];for(let o in i)o in n||(n[o]=i[o])}return n}function hr(t,e){let n={};for(let r in t)e(t[r],r)&&(n[r]=t[r]);return n}function nn(t,e){let n={};for(let r in t)n[r]=e(t[r],r);return n}function my(t){let e={};for(let n of t)e[n]=!0;return e}function lf(t){let e=[];for(let n in t)e.push(t[n]);return e}function Mt(t,e){if(t===e)return!0;for(let n in t)if(Wd.call(t,n)&&!(n in e))return!1;for(let n in e)if(Wd.call(e,n)&&t[n]!==e[n])return!1;return!0}var sF=/^on[A-Z]/;function aF(t,e){let n=lF(t,e);for(let r of n)if(!sF.test(r))return!1;return!0}function lF(t,e){let n=[];for(let r in t)Wd.call(t,r)&&(r in e||n.push(r));for(let r in e)Wd.call(e,r)&&t[r]!==e[r]&&n.push(r);return n}function Hd(t,e,n={}){if(t===e)return!0;for(let r in e)if(!(r in t&&cF(t[r],e[r],n[r])))return!1;for(let r in t)if(!(r in e))return!1;return!0}function cF(t,e,n){return t===e||n===!0?!0:n?n(t,e):!1}function $S(t,e=0,n,r=1){let i=[];n==null&&(n=Object.keys(t).length);for(let o=e;o<n;o+=r){let s=t[o];s!==void 0&&i.push(s)}return i}var zS={};function uF(t,e){zS[t]=e}function dF(t){return new zS[t]}var Wv=class{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return It(e)}markerToArray(e){return Kr(e)}};uF("gregory",Wv);var fF=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function WS(t){let e=fF.exec(t);if(e){let n=new Date(Date.UTC(Number(e[1]),e[3]?Number(e[3])-1:0,Number(e[5]||1),Number(e[7]||0),Number(e[8]||0),Number(e[10]||0),e[12]?+`0.${e[12]}`*1e3:0));if(cy(n)){let r=null;return e[13]&&(r=(e[15]==="-"?-1:1)*(Number(e[16]||0)*60+Number(e[18]||0))),{marker:n,isTimeUnspecified:!e[6],timeZoneOffset:r}}}return null}var Ka=class{constructor(e){let n=this.timeZone=e.timeZone,r=n!=="local"&&n!=="UTC";e.namedTimeZoneImpl&&r&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(n)),this.canComputeOffset=!!(!r||this.namedTimeZoneImpl),this.calendarSystem=dF(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,e.weekNumberCalculation==="ISO"&&(this.weekDow=1,this.weekDoy=4),typeof e.firstDay=="number"&&(this.weekDow=e.firstDay),typeof e.weekNumberCalculation=="function"&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=e.weekText!=null?e.weekText:e.locale.options.weekText,this.weekTextLong=(e.weekTextLong!=null?e.weekTextLong:e.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}createMarker(e){let n=this.createMarkerMeta(e);return n===null?null:n.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker(new Date().valueOf()):It(ES(new Date))}createMarkerMeta(e){if(typeof e=="string")return this.parse(e);let n=null;return typeof e=="number"?n=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(n=this.timestampToMarker(e))):Array.isArray(e)&&(n=It(e)),n===null||!cy(n)?null:{marker:n,isTimeUnspecified:!1,forcedTzo:null}}parse(e){let n=WS(e);if(n===null)return null;let{marker:r}=n,i=null;return n.timeZoneOffset!==null&&(this.canComputeOffset?r=this.timestampToMarker(r.valueOf()-n.timeZoneOffset*60*1e3):i=n.timeZoneOffset),{marker:r,isTimeUnspecified:n.isTimeUnspecified,forcedTzo:i}}getYear(e){return this.calendarSystem.getMarkerYear(e)}getMonth(e){return this.calendarSystem.getMarkerMonth(e)}getDay(e){return this.calendarSystem.getMarkerDay(e)}add(e,n){let r=this.calendarSystem.markerToArray(e);return r[0]+=n.years,r[1]+=n.months,r[2]+=n.days,r[6]+=n.milliseconds,this.calendarSystem.arrayToMarker(r)}subtract(e,n){let r=this.calendarSystem.markerToArray(e);return r[0]-=n.years,r[1]-=n.months,r[2]-=n.days,r[6]-=n.milliseconds,this.calendarSystem.arrayToMarker(r)}addYears(e,n){let r=this.calendarSystem.markerToArray(e);return r[0]+=n,this.calendarSystem.arrayToMarker(r)}addMonths(e,n){let r=this.calendarSystem.markerToArray(e);return r[1]+=n,this.calendarSystem.arrayToMarker(r)}diffWholeYears(e,n){let{calendarSystem:r}=this;return Xr(e)===Xr(n)&&r.getMarkerDay(e)===r.getMarkerDay(n)&&r.getMarkerMonth(e)===r.getMarkerMonth(n)?r.getMarkerYear(n)-r.getMarkerYear(e):null}diffWholeMonths(e,n){let{calendarSystem:r}=this;return Xr(e)===Xr(n)&&r.getMarkerDay(e)===r.getMarkerDay(n)?r.getMarkerMonth(n)-r.getMarkerMonth(e)+(r.getMarkerYear(n)-r.getMarkerYear(e))*12:null}greatestWholeUnit(e,n){let r=this.diffWholeYears(e,n);return r!==null?{unit:"year",value:r}:(r=this.diffWholeMonths(e,n),r!==null?{unit:"month",value:r}:(r=HS(e,n),r!==null?{unit:"week",value:r}:(r=ss(e,n),r!==null?{unit:"day",value:r}:(r=BP(e,n),Qa(r)?{unit:"hour",value:r}:(r=HP(e,n),Qa(r)?{unit:"minute",value:r}:(r=UP(e,n),Qa(r)?{unit:"second",value:r}:{unit:"millisecond",value:n.valueOf()-e.valueOf()}))))))}countDurationsBetween(e,n,r){let i;return r.years&&(i=this.diffWholeYears(e,n),i!==null)?i/LP(r):r.months&&(i=this.diffWholeMonths(e,n),i!==null)?i/jP(r):r.days&&(i=ss(e,n),i!==null)?i/os(r):(n.valueOf()-e.valueOf())/$t(r)}startOf(e,n){return n==="year"?this.startOfYear(e):n==="month"?this.startOfMonth(e):n==="week"?this.startOfWeek(e):n==="day"?ge(e):n==="hour"?$P(e):n==="minute"?zP(e):n==="second"?WP(e):null}startOfYear(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])}startOfMonth(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])}startOfWeek(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):GP(e,this.weekDow,this.weekDoy)}format(e,n,r={}){return n.format({marker:e,timeZoneOffset:r.forcedTzo!=null?r.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,n,r,i={}){return i.isEndExclusive&&(n=Hn(n,-1)),r.formatRange({marker:e,timeZoneOffset:i.forcedStartTzo!=null?i.forcedStartTzo:this.offsetForMarker(e)},{marker:n,timeZoneOffset:i.forcedEndTzo!=null?i.forcedEndTzo:this.offsetForMarker(n)},this,i.defaultSeparator)}formatIso(e,n={}){let r=null;return n.omitTimeZoneOffset||(n.forcedTzo!=null?r=n.forcedTzo:r=this.offsetForMarker(e)),rf(e,r,n.omitTime)}timestampToMarker(e){return this.timeZone==="local"?It(ES(new Date(e))):this.timeZone==="UTC"||!this.namedTimeZoneImpl?new Date(e):It(this.namedTimeZoneImpl.timestampToArray(e))}offsetForMarker(e){return this.timeZone==="local"?-DS(Kr(e)).getTimezoneOffset():this.timeZone==="UTC"?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(Kr(e)):null}toDate(e,n){return this.timeZone==="local"?DS(Kr(e)):this.timeZone==="UTC"?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-this.namedTimeZoneImpl.offsetForArray(Kr(e))*1e3*60):new Date(e.valueOf()-(n||0))}},pr=class{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let n,r;if(typeof e=="object"&&e){n=Object.assign({},this.iconClasses);for(r in e)n[r]=this.applyIconOverridePrefix(e[r]);this.iconClasses=n}else e===!1&&(this.iconClasses={})}applyIconOverridePrefix(e){let n=this.iconOverridePrefix;return n&&e.indexOf(n)!==0&&(e=n+e),e}getClass(e){return this.classes[e]||""}getIconClass(e,n){let r;return n&&this.rtlIconClasses?r=this.rtlIconClasses[e]||this.iconClasses[e]:r=this.iconClasses[e],r?`${this.baseIconClass} ${r}`:""}getCustomButtonIconClass(e){let n;return this.iconOverrideCustomButtonOption&&(n=e[this.iconOverrideCustomButtonOption],n)?`${this.baseIconClass} ${this.applyIconOverridePrefix(n)}`:""}};pr.prototype.classes={};pr.prototype.iconClasses={};pr.prototype.baseIconClass="";pr.prototype.iconOverridePrefix="";function Xa(t){t();let e=O.debounceRendering,n=[];function r(i){n.push(i)}for(O.debounceRendering=r,Qr(g(Gv,{}),document.createElement("div"));n.length;)n.shift()();O.debounceRendering=e}var Gv=class extends at{render(){return g("div",{})}componentDidMount(){this.setState({})}};function GS(t){let e=Od(t),n=e.Provider;return e.Provider=function(){let r=!this.getChildContext,i=n.apply(this,arguments);if(r){let o=[];this.shouldComponentUpdate=s=>{this.props.value!==s.value&&o.forEach(a=>{a.context=s.value,a.forceUpdate()})},this.sub=s=>{o.push(s);let a=s.componentWillUnmount;s.componentWillUnmount=()=>{o.splice(o.indexOf(s),1),a&&a.call(s)}}}return i},e}var Gd=class{constructor(e,n,r,i){this.execFunc=e,this.emitter=n,this.scrollTime=r,this.scrollTimeReset=i,this.handleScrollRequest=o=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},o),this.drain()},n.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}},rn=GS({});function qS(t,e,n,r,i,o,s,a,l,c,u,d,h,f){return{dateEnv:i,nowManager:o,options:n,pluginHooks:a,emitter:u,dispatch:l,getCurrentData:c,calendarApi:d,viewSpec:t,viewApi:e,dateProfileGenerator:r,theme:s,isRtl:n.direction==="rtl",addResizeHandler(p){u.on("_resize",p)},removeResizeHandler(p){u.off("_resize",p)},createScrollResponder(p){return new Gd(p,u,X(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:h,unregisterInteractiveComponent:f}}var bl=(()=>{class t extends at{shouldComponentUpdate(n,r){return!Hd(this.props,n,this.propEquality)||!Hd(this.state,r,this.stateEquality)}safeSetState(n){Hd(this.state,Object.assign(Object.assign({},this.state),n),this.stateEquality)||this.setState(n)}}return t.addPropsEquality=hF,t.addStateEquality=pF,t.contextType=rn,t})();bl.prototype.propEquality={};bl.prototype.stateEquality={};var ae=(()=>{class t extends bl{}return t.contextType=rn,t})();function hF(t){let e=Object.create(this.prototype.propEquality);Object.assign(e,t),this.prototype.propEquality=e}function pF(t){let e=Object.create(this.prototype.stateEquality);Object.assign(e,t),this.prototype.stateEquality=e}function zt(t,e){typeof t=="function"?t(e):t&&(t.current=e)}var Ja=class extends ae{constructor(){super(...arguments),this.id=vr(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{let{options:n}=this.context,{generatorName:r}=this.props;(!n.customRenderingReplaces||!qv(r,n))&&this.updateElRef(e)},this.updateElRef=e=>{this.props.elRef&&zt(this.props.elRef,e)}}render(){let{props:e,context:n}=this,{options:r}=n,{customGenerator:i,defaultGenerator:o,renderProps:s}=e,a=vy(e,[],this.handleEl),l=!1,c,u=[],d;if(i!=null){let h=typeof i=="function"?i(s,g):i;if(h===!0)l=!0;else{let f=h&&typeof h=="object";f&&"html"in h?a.dangerouslySetInnerHTML={__html:h.html}:f&&"domNodes"in h?u=Array.prototype.slice.call(h.domNodes):(f?Sv(h):typeof h!="function")?c=h:d=h}}else l=!qv(e.generatorName,r);return l&&o&&(c=o(s)),this.queuedDomNodes=u,this.currentGeneratorMeta=d,g(e.elTag,a,c)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var n;let{props:r,context:i}=this,{handleCustomRendering:o,customRenderingMetaMap:s}=i.options;if(o){let a=(n=this.currentGeneratorMeta)!==null&&n!==void 0?n:s?.[r.generatorName];a&&o(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.updateElRef,generatorMeta:a},r),{elClasses:(r.elClasses||[]).filter(gF)}))}}applyQueueudDomNodes(){let{queuedDomNodes:e,currentDomNodes:n}=this,r=this.base;if(!$n(e,n)){n.forEach(fl);for(let i of e)r.appendChild(i);this.currentDomNodes=e}}};Ja.addPropsEquality({elClasses:$n,elStyle:Mt,elAttrs:aF,renderProps:Mt});function qv(t,e){var n;return!!(e.handleCustomRendering&&t&&(!((n=e.customRenderingMetaMap)===null||n===void 0)&&n[t]))}function vy(t,e,n){let r=Object.assign(Object.assign({},t.elAttrs),{ref:n});return(t.elClasses||e)&&(r.className=(t.elClasses||[]).concat(e||[]).concat(r.className||[]).filter(Boolean).join(" ")),t.elStyle&&(r.style=t.elStyle),r}function gF(t){return!!t}var yy=GS(0),Dt=(()=>{class t extends at{constructor(){super(...arguments),this.InnerContent=mF.bind(void 0,this),this.handleEl=n=>{this.el=n,this.props.elRef&&(zt(this.props.elRef,n),n&&this.didMountMisfire&&this.componentDidMount())}}render(){let{props:n}=this,r=vF(n.classNameGenerator,n.renderProps);if(n.children){let i=vy(n,r,this.handleEl),o=n.children(this.InnerContent,n.renderProps,i);return n.elTag?g(n.elTag,i,o):o}else return g(Ja,Object.assign(Object.assign({},n),{elRef:this.handleEl,elTag:n.elTag||"div",elClasses:(n.elClasses||[]).concat(r),renderId:this.context}))}componentDidMount(){var n,r;this.el?(r=(n=this.props).didMount)===null||r===void 0||r.call(n,Object.assign(Object.assign({},this.props.renderProps),{el:this.el})):this.didMountMisfire=!0}componentWillUnmount(){var n,r;(r=(n=this.props).willUnmount)===null||r===void 0||r.call(n,Object.assign(Object.assign({},this.props.renderProps),{el:this.el}))}}return t.contextType=yy,t})();function mF(t,e){let n=t.props;return g(Ja,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:t.context},e))}function vF(t,e){let n=typeof t=="function"?t(e):t||[];return typeof n=="string"?[n]:n}var gr=class extends ae{render(){let{props:e,context:n}=this,{options:r}=n,i={view:n.viewApi};return g(Dt,{elRef:e.elRef,elTag:e.elTag||"div",elAttrs:e.elAttrs,elClasses:[...by(e.viewSpec),...e.elClasses||[]],elStyle:e.elStyle,renderProps:i,classNameGenerator:r.viewClassNames,generatorName:void 0,didMount:r.viewDidMount,willUnmount:r.viewWillUnmount},()=>e.children)}};function by(t){return[`fc-${t.type}-view`,"fc-view"]}function yF(t,e){let n=null,r=null;return t.start&&(n=e.createMarker(t.start)),t.end&&(r=e.createMarker(t.end)),!n&&!r||n&&r&&r<n?null:{start:n,end:r}}function wS(t,e){let n=[],{start:r}=e,i,o;for(t.sort(bF),i=0;i<t.length;i+=1)o=t[i],o.start>r&&n.push({start:r,end:o.start}),o.end>r&&(r=o.end);return r<e.end&&n.push({start:r,end:e.end}),n}function bF(t,e){return t.start.valueOf()-e.start.valueOf()}function wn(t,e){let{start:n,end:r}=t,i=null;return e.start!==null&&(n===null?n=e.start:n=new Date(Math.max(n.valueOf(),e.start.valueOf()))),e.end!=null&&(r===null?r=e.end:r=new Date(Math.min(r.valueOf(),e.end.valueOf()))),(n===null||r===null||n<r)&&(i={start:n,end:r}),i}function YS(t,e){return(t.start===null?null:t.start.valueOf())===(e.start===null?null:e.start.valueOf())&&(t.end===null?null:t.end.valueOf())===(e.end===null?null:e.end.valueOf())}function cf(t,e){return(t.end===null||e.start===null||t.end>e.start)&&(t.start===null||e.end===null||t.start<e.end)}function us(t,e){return(t.start===null||e.start!==null&&e.start>=t.start)&&(t.end===null||e.end!==null&&e.end<=t.end)}function tn(t,e){return(t.start===null||e>=t.start)&&(t.end===null||e<t.end)}function EF(t,e){return e.start!=null&&t<e.start?e.start:e.end!=null&&t>=e.end?new Date(e.end.valueOf()-1):t}function QS(t){let e=Math.floor(yr(t.start,t.end))||1,n=ge(t.start),r=Ve(n,e);return{start:n,end:r}}function Ey(t,e=X(0)){let n=null,r=null;if(t.end){r=ge(t.end);let i=t.end.valueOf()-r.valueOf();i&&i>=$t(e)&&(r=Ve(r,1))}return t.start&&(n=ge(t.start),r&&r<=n&&(r=Ve(n,1))),{start:n,end:r}}function Jr(t,e,n,r){return r==="year"?X(n.diffWholeYears(t,e),"year"):r==="month"?X(n.diffWholeMonths(t,e),"month"):BS(t,e)}var Gi=class{constructor(e){this.props=e,this.initHiddenDays()}buildPrev(e,n,r){let{dateEnv:i}=this.props,o=i.subtract(i.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(o,-1,r)}buildNext(e,n,r){let{dateEnv:i}=this.props,o=i.add(i.startOf(n,e.currentRangeUnit),e.dateIncrement);return this.build(o,1,r)}build(e,n,r=!0){let{props:i}=this,o,s,a,l,c,u;return o=this.buildValidRange(),o=this.trimHiddenDays(o),r&&(e=EF(e,o)),s=this.buildCurrentRangeInfo(e,n),a=/^(year|month|week|day)$/.test(s.unit),l=this.buildRenderRange(this.trimHiddenDays(s.range),s.unit,a),l=this.trimHiddenDays(l),c=l,i.showNonCurrentDates||(c=wn(c,s.range)),c=this.adjustActiveRange(c),c=wn(c,o),u=cf(s.range,o),tn(l,e)||(e=l.start),{currentDate:e,validRange:o,currentRange:s.range,currentRangeUnit:s.unit,isRangeAllDay:a,activeRange:c,renderRange:l,slotMinTime:i.slotMinTime,slotMaxTime:i.slotMaxTime,isValid:u,dateIncrement:this.buildDateIncrement(s.duration)}}buildValidRange(){let e=this.props.validRangeInput,n=typeof e=="function"?e.call(this.props.calendarApi,this.props.dateEnv.toDate(this.props.nowManager.getDateMarker())):e;return this.refineRange(n)||{start:null,end:null}}buildCurrentRangeInfo(e,n){let{props:r}=this,i=null,o=null,s=null,a;return r.duration?(i=r.duration,o=r.durationUnit,s=this.buildRangeFromDuration(e,n,i,o)):(a=this.props.dayCount)?(o="day",s=this.buildRangeFromDayCount(e,n,a)):(s=this.buildCustomVisibleRange(e))?o=r.dateEnv.greatestWholeUnit(s.start,s.end).unit:(i=this.getFallbackDuration(),o=Za(i).unit,s=this.buildRangeFromDuration(e,n,i,o)),{duration:i,unit:o,range:s}}getFallbackDuration(){return X({day:1})}adjustActiveRange(e){let{dateEnv:n,usesMinMaxTime:r,slotMinTime:i,slotMaxTime:o}=this.props,{start:s,end:a}=e;return r&&(os(i)<0&&(s=ge(s),s=n.add(s,i)),os(o)>1&&(a=ge(a),a=Ve(a,-1),a=n.add(a,o))),{start:s,end:a}}buildRangeFromDuration(e,n,r,i){let{dateEnv:o,dateAlignment:s}=this.props,a,l,c;if(!s){let{dateIncrement:d}=this.props;d&&$t(d)<$t(r)?s=Za(d).unit:s=i}os(r)<=1&&this.isHiddenDay(a)&&(a=this.skipHiddenDays(a,n),a=ge(a));function u(){a=o.startOf(e,s),l=o.add(a,r),c={start:a,end:l}}return u(),this.trimHiddenDays(c)||(e=this.skipHiddenDays(e,n),u()),c}buildRangeFromDayCount(e,n,r){let{dateEnv:i,dateAlignment:o}=this.props,s=0,a=e,l;o&&(a=i.startOf(a,o)),a=ge(a),a=this.skipHiddenDays(a,n),l=a;do l=Ve(l,1),this.isHiddenDay(l)||(s+=1);while(s<r);return{start:a,end:l}}buildCustomVisibleRange(e){let{props:n}=this,r=n.visibleRangeInput,i=typeof r=="function"?r.call(n.calendarApi,n.dateEnv.toDate(e)):r,o=this.refineRange(i);return o&&(o.start==null||o.end==null)?null:o}buildRenderRange(e,n,r){return e}buildDateIncrement(e){let{dateIncrement:n}=this.props,r;return n||((r=this.props.dateAlignment)?X(1,r):e||X({days:1}))}refineRange(e){if(e){let n=yF(e,this.props.dateEnv);return n&&(n=Ey(n)),n}return null}initHiddenDays(){let e=this.props.hiddenDays||[],n=[],r=0,i;for(this.props.weekends===!1&&e.push(0,6),i=0;i<7;i+=1)(n[i]=e.indexOf(i)!==-1)||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n}trimHiddenDays(e){let{start:n,end:r}=e;return n&&(n=this.skipHiddenDays(n)),r&&(r=this.skipHiddenDays(r,-1,!0)),n==null||r==null||n<r?{start:n,end:r}:null}isHiddenDay(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]}skipHiddenDays(e,n=1,r=!1){for(;this.isHiddenDayHash[(e.getUTCDay()+(r?n:0)+7)%7];)e=Ve(e,n);return e}};function El(t,e,n,r){return{instanceId:vr(),defId:t,range:e,forcedStartTzo:n??null,forcedEndTzo:r??null}}function DF(t,e,n,r){for(let i=0;i<r.length;i+=1){let o=r[i].parse(t,n);if(o){let{allDay:s}=t;return s==null&&(s=e,s==null&&(s=o.allDayGuess,s==null&&(s=!1))),{allDay:s,duration:o.duration,typeData:o.typeData,typeId:i}}}return null}function qi(t,e,n){let{dateEnv:r,pluginHooks:i,options:o}=n,{defs:s,instances:a}=t;a=hr(a,l=>!s[l.defId].recurringDef);for(let l in s){let c=s[l];if(c.recurringDef){let{duration:u}=c.recurringDef;u||(u=c.allDay?o.defaultAllDayEventDuration:o.defaultTimedEventDuration);let d=CF(c,u,e,r,i.recurringTypes);for(let h of d){let f=El(l,{start:h,end:r.add(h,u)});a[f.instanceId]=f}}}return{defs:s,instances:a}}function CF(t,e,n,r,i){let s=i[t.recurringDef.typeId].expand(t.recurringDef.typeData,{start:r.subtract(n.start,e),end:n.end},r);return t.allDay&&(s=s.map(ge)),s}var Ud={id:String,groupId:String,title:String,url:String,interactive:Boolean},ZS={start:C,end:C,date:C,allDay:Boolean},_F=Object.assign(Object.assign(Object.assign({},Ud),ZS),{extendedProps:C});function KS(t,e,n,r,i=Dy(n),o,s){let{refined:a,extra:l}=uf(t,n,i),c=SF(e,n),u=DF(a,c,n.dateEnv,n.pluginHooks.recurringTypes);if(u){let h=el(a,l,e?e.sourceId:"",u.allDay,!!u.duration,n,o);return h.recurringDef={typeId:u.typeId,typeData:u.typeData,duration:u.duration},{def:h,instance:null}}let d=wF(a,c,n,r);if(d){let h=el(a,l,e?e.sourceId:"",d.allDay,d.hasEnd,n,o),f=El(h.defId,d.range,d.forcedStartTzo,d.forcedEndTzo);return s&&h.publicId&&s[h.publicId]&&(f.instanceId=s[h.publicId]),{def:h,instance:f}}return null}function uf(t,e,n=Dy(e)){return sf(t,n)}function Dy(t){return Object.assign(Object.assign(Object.assign({},qd),_F),t.pluginHooks.eventRefiners)}function el(t,e,n,r,i,o,s){let a={title:t.title||"",groupId:t.groupId||"",publicId:t.id||"",url:t.url||"",recurringDef:null,defId:(s&&t.id?s[t.id]:"")||vr(),sourceId:n,allDay:r,hasEnd:i,interactive:t.interactive,ui:ds(t,o),extendedProps:Object.assign(Object.assign({},t.extendedProps||{}),e)};for(let l of o.pluginHooks.eventDefMemberAdders)Object.assign(a,l(t));return Object.freeze(a.ui.classNames),Object.freeze(a.extendedProps),a}function wF(t,e,n,r){let{allDay:i}=t,o,s=null,a=!1,l,c=null,u=t.start!=null?t.start:t.date;if(o=n.dateEnv.createMarkerMeta(u),o)s=o.marker;else if(!r)return null;return t.end!=null&&(l=n.dateEnv.createMarkerMeta(t.end)),i==null&&(e!=null?i=e:i=(!o||o.isTimeUnspecified)&&(!l||l.isTimeUnspecified)),i&&s&&(s=ge(s)),l&&(c=l.marker,i&&(c=ge(c)),s&&c<=s&&(c=null)),c?a=!0:r||(a=n.options.forceEventDuration||!1,c=n.dateEnv.add(s,i?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:i,hasEnd:a,range:{start:s,end:c},forcedStartTzo:o?o.forcedTzo:null,forcedEndTzo:l?l.forcedTzo:null}}function SF(t,e){let n=null;return t&&(n=t.defaultAllDay),n==null&&(n=e.options.defaultAllDay),n}function tl(t,e,n,r,i,o){let s=ht(),a=Dy(n);for(let l of t){let c=KS(l,e,n,r,a,i,o);c&&nl(c,s)}return s}function nl(t,e=ht()){return e.defs[t.def.defId]=t.def,t.instance&&(e.instances[t.instance.instanceId]=t.instance),e}function Dl(t,e){let n=t.instances[e];if(n){let r=t.defs[n.defId],i=ff(t,o=>IF(r,o));return i.defs[r.defId]=r,i.instances[n.instanceId]=n,i}return ht()}function IF(t,e){return!!(t.groupId&&t.groupId===e.groupId)}function ht(){return{defs:{},instances:{}}}function df(t,e){return{defs:Object.assign(Object.assign({},t.defs),e.defs),instances:Object.assign(Object.assign({},t.instances),e.instances)}}function ff(t,e){let n=hr(t.defs,e),r=hr(t.instances,i=>n[i.defId]);return{defs:n,instances:r}}function MF(t,e){let{defs:n,instances:r}=t,i={},o={};for(let s in n)e.defs[s]||(i[s]=n[s]);for(let s in r)!e.instances[s]&&i[r[s].defId]&&(o[s]=r[s]);return{defs:i,instances:o}}function TF(t,e){return Array.isArray(t)?tl(t,null,e,!0):typeof t=="object"&&t?tl([t],null,e,!0):t!=null?String(t):null}function Yv(t){return Array.isArray(t)?t:typeof t=="string"?t.split(/\s+/):[]}var qd={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:C,overlap:C,allow:C,className:Yv,classNames:Yv,color:String,backgroundColor:String,borderColor:String,textColor:String},AF={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function ds(t,e){let n=TF(t.constraint,e);return{display:t.display||null,startEditable:t.startEditable!=null?t.startEditable:t.editable,durationEditable:t.durationEditable!=null?t.durationEditable:t.editable,constraints:n!=null?[n]:[],overlap:t.overlap!=null?t.overlap:null,allows:t.allow!=null?[t.allow]:[],backgroundColor:t.backgroundColor||t.color||"",borderColor:t.borderColor||t.color||"",textColor:t.textColor||"",classNames:(t.className||[]).concat(t.classNames||[])}}function Cy(t){return t.reduce(xF,AF)}function xF(t,e){return{display:e.display!=null?e.display:t.display,startEditable:e.startEditable!=null?e.startEditable:t.startEditable,durationEditable:e.durationEditable!=null?e.durationEditable:t.durationEditable,constraints:t.constraints.concat(e.constraints),overlap:typeof e.overlap=="boolean"?e.overlap:t.overlap,allows:t.allows.concat(e.allows),backgroundColor:e.backgroundColor||t.backgroundColor,borderColor:e.borderColor||t.borderColor,textColor:e.textColor||t.textColor,classNames:t.classNames.concat(e.classNames)}}var RF={id:String,defaultAllDay:Boolean,url:String,format:String,events:C,eventDataTransform:C,success:C,failure:C};function _y(t,e,n=wy(e)){let r;if(typeof t=="string"?r={url:t}:typeof t=="function"||Array.isArray(t)?r={events:t}:typeof t=="object"&&t&&(r=t),r){let{refined:i,extra:o}=sf(r,n),s=NF(i,e);if(s)return{_raw:t,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||"",sourceId:vr(),sourceDefId:s.sourceDefId,meta:s.meta,ui:ds(i,e),extendedProps:o}}return null}function wy(t){return Object.assign(Object.assign(Object.assign({},qd),RF),t.pluginHooks.eventSourceRefiners)}function NF(t,e){let n=e.pluginHooks.eventSourceDefs;for(let r=n.length-1;r>=0;r-=1){let o=n[r].parseMeta(t);if(o)return{sourceDefId:r,meta:o}}return null}function XS(t,e,n,r,i){switch(e.type){case"RECEIVE_EVENTS":return OF(t,n[e.sourceId],e.fetchId,e.fetchRange,e.rawEvents,i);case"RESET_RAW_EVENTS":return kF(t,n[e.sourceId],e.rawEvents,r.activeRange,i);case"ADD_EVENTS":return PF(t,e.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return e.eventStore;case"MERGE_EVENTS":return df(t,e.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?qi(t,r.activeRange,i):t;case"REMOVE_EVENTS":return MF(t,e.eventStore);case"REMOVE_EVENT_SOURCE":return eI(t,e.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return ff(t,o=>!o.sourceId);case"REMOVE_ALL_EVENTS":return ht();default:return t}}function OF(t,e,n,r,i,o){if(e&&n===e.latestFetchId){let s=tl(JS(i,e,o),e,o);return r&&(s=qi(s,r,o)),df(eI(t,e.sourceId),s)}return t}function kF(t,e,n,r,i){let{defIdMap:o,instanceIdMap:s}=LF(t),a=tl(JS(n,e,i),e,i,!1,o,s);return qi(a,r,i)}function JS(t,e,n){let r=n.options.eventDataTransform,i=e?e.eventDataTransform:null;return i&&(t=SS(t,i)),r&&(t=SS(t,r)),t}function SS(t,e){let n;if(!e)n=t;else{n=[];for(let r of t){let i=e(r);i?n.push(i):i==null&&n.push(r)}}return n}function PF(t,e,n,r){return n&&(e=qi(e,n,r)),df(t,e)}function Sy(t,e,n){let{defs:r}=t,i=nn(t.instances,o=>r[o.defId].allDay?o:Object.assign(Object.assign({},o),{range:{start:n.createMarker(e.toDate(o.range.start,o.forcedStartTzo)),end:n.createMarker(e.toDate(o.range.end,o.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:o.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:o.forcedEndTzo}));return{defs:r,instances:i}}function eI(t,e){return ff(t,n=>n.sourceId!==e)}function FF(t,e){return{defs:t.defs,instances:hr(t.instances,n=>!e[n.instanceId])}}function LF(t){let{defs:e,instances:n}=t,r={},i={};for(let o in e){let s=e[o],{publicId:a}=s;a&&(r[a]=o)}for(let o in n){let s=n[o],a=e[s.defId],{publicId:l}=a;l&&(i[l]=o)}return{defIdMap:r,instanceIdMap:i}}var mr=class{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,n){jF(this.handlers,e,n)}off(e,n){VF(this.handlers,e,n)}trigger(e,...n){let r=this.handlers[e]||[],i=this.options&&this.options[e],o=[].concat(i||[],r);for(let s of o)s.apply(this.thisContext,n)}hasHandlers(e){return!!(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}};function jF(t,e,n){(t[e]||(t[e]=[])).push(n)}function VF(t,e,n){n?t[e]&&(t[e]=t[e].filter(r=>r!==n)):delete t[e]}var BF={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function Iy(t,e){return tl(HF(t),null,e)}function HF(t){let e;return t===!0?e=[{}]:Array.isArray(t)?e=t.filter(n=>n.daysOfWeek):typeof t=="object"&&t?e=[t]:e=[],e=e.map(n=>Object.assign(Object.assign({},BF),n)),e}function hf(t,e,n){n.emitter.trigger("select",Object.assign(Object.assign({},My(t,n)),{jsEvent:e?e.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function UF(t,e){e.emitter.trigger("unselect",{jsEvent:t?t.origEvent:null,view:e.viewApi||e.calendarApi.view})}function My(t,e){let n={};for(let r of e.pluginHooks.dateSpanTransforms)Object.assign(n,r(t,e));return Object.assign(n,eL(t,e.dateEnv)),n}function Yd(t,e,n){let{dateEnv:r,options:i}=n,o=e;return t?(o=ge(o),o=r.add(o,i.defaultAllDayEventDuration)):o=r.add(o,i.defaultTimedEventDuration),o}function Cl(t,e,n,r){let i=Zd(t.defs,e),o=ht();for(let s in t.defs){let a=t.defs[s];o.defs[s]=$F(a,i[s],n,r)}for(let s in t.instances){let a=t.instances[s],l=o.defs[a.defId];o.instances[s]=zF(a,l,i[a.defId],n,r)}return o}function $F(t,e,n,r){let i=n.standardProps||{};i.hasEnd==null&&e.durationEditable&&(n.startDelta||n.endDelta)&&(i.hasEnd=!0);let o=Object.assign(Object.assign(Object.assign({},t),i),{ui:Object.assign(Object.assign({},t.ui),i.ui)});n.extendedProps&&(o.extendedProps=Object.assign(Object.assign({},o.extendedProps),n.extendedProps));for(let s of r.pluginHooks.eventDefMutationAppliers)s(o,n,r);return!o.hasEnd&&r.options.forceEventDuration&&(o.hasEnd=!0),o}function zF(t,e,n,r,i){let{dateEnv:o}=i,s=r.standardProps&&r.standardProps.allDay===!0,a=r.standardProps&&r.standardProps.hasEnd===!1,l=Object.assign({},t);return s&&(l.range=QS(l.range)),r.datesDelta&&n.startEditable&&(l.range={start:o.add(l.range.start,r.datesDelta),end:o.add(l.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(l.range={start:o.add(l.range.start,r.startDelta),end:l.range.end}),r.endDelta&&n.durationEditable&&(l.range={start:l.range.start,end:o.add(l.range.end,r.endDelta)}),a&&(l.range={start:l.range.start,end:Yd(e.allDay,l.range.start,i)}),e.allDay&&(l.range={start:ge(l.range.start),end:ge(l.range.end)}),l.range.end<l.range.start&&(l.range.end=Yd(e.allDay,l.range.start,i)),l}var Zr=class{constructor(e,n){this.context=e,this.internalEventSource=n}remove(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})}refetch(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})}get id(){return this.internalEventSource.publicId}get url(){return this.internalEventSource.meta.url}get format(){return this.internalEventSource.meta.format}},De=class t{constructor(e,n,r){this._context=e,this._def=n,this._instance=r||null}setProp(e,n){if(e in ZS)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if(e==="id")n=Ud[e](n),this.mutate({standardProps:{publicId:n}});else if(e in Ud)n=Ud[e](n),this.mutate({standardProps:{[e]:n}});else if(e in qd){let r=qd[e](n);e==="color"?r={backgroundColor:n,borderColor:n}:e==="editable"?r={startEditable:n,durationEditable:n}:r={[e]:n},this.mutate({standardProps:{ui:r}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,n){this.mutate({extendedProps:{[e]:n}})}setStart(e,n={}){let{dateEnv:r}=this._context,i=r.createMarker(e);if(i&&this._instance){let o=this._instance.range,s=Jr(o.start,i,r,n.granularity);n.maintainDuration?this.mutate({datesDelta:s}):this.mutate({startDelta:s})}}setEnd(e,n={}){let{dateEnv:r}=this._context,i;if(!(e!=null&&(i=r.createMarker(e),!i))&&this._instance)if(i){let o=Jr(this._instance.range.end,i,r,n.granularity);this.mutate({endDelta:o})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,n,r={}){let{dateEnv:i}=this._context,o={allDay:r.allDay},s=i.createMarker(e),a;if(s&&!(n!=null&&(a=i.createMarker(n),!a))&&this._instance){let l=this._instance.range;r.allDay===!0&&(l=QS(l));let c=Jr(l.start,s,i,r.granularity);if(a){let u=Jr(l.end,a,i,r.granularity);FP(c,u)?this.mutate({datesDelta:c,standardProps:o}):this.mutate({startDelta:c,endDelta:u,standardProps:o})}else o.hasEnd=!1,this.mutate({datesDelta:c,standardProps:o})}}moveStart(e){let n=X(e);n&&this.mutate({startDelta:n})}moveEnd(e){let n=X(e);n&&this.mutate({endDelta:n})}moveDates(e){let n=X(e);n&&this.mutate({datesDelta:n})}setAllDay(e,n={}){let r={allDay:e},{maintainDuration:i}=n;i==null&&(i=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(r.hasEnd=i),this.mutate({standardProps:r})}formatRange(e){let{dateEnv:n}=this._context,r=this._instance,i=Ee(e);return this._def.hasEnd?n.formatRange(r.range.start,r.range.end,i,{forcedStartTzo:r.forcedStartTzo,forcedEndTzo:r.forcedEndTzo}):n.format(r.range.start,i,{forcedTzo:r.forcedStartTzo})}mutate(e){let n=this._instance;if(n){let r=this._def,i=this._context,{eventStore:o}=i.getCurrentData(),s=Dl(o,n.instanceId);s=Cl(s,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,i);let l=new t(i,r,n);this._def=s.defs[r.defId],this._instance=s.instances[n.instanceId],i.dispatch({type:"MERGE_EVENTS",eventStore:s}),i.emitter.trigger("eventChange",{oldEvent:l,event:this,relatedEvents:zn(s,i,n),revert(){i.dispatch({type:"RESET_EVENTS",eventStore:o})}})}}remove(){let e=this._context,n=tI(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:n}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:n})}})}get source(){let{sourceId:e}=this._def;return e?new Zr(this._context,this._context.getCurrentData().eventSources[e]):null}get start(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null}get end(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null}get startStr(){let e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""}get endStr(){let e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo}):""}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||"auto"}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(e={}){let n=this._def,{ui:r}=n,{startStr:i,endStr:o}=this,s={allDay:n.allDay};return n.title&&(s.title=n.title),i&&(s.start=i),o&&(s.end=o),n.publicId&&(s.id=n.publicId),n.groupId&&(s.groupId=n.groupId),n.url&&(s.url=n.url),r.display&&r.display!=="auto"&&(s.display=r.display),e.collapseColor&&r.backgroundColor&&r.backgroundColor===r.borderColor?s.color=r.backgroundColor:(r.backgroundColor&&(s.backgroundColor=r.backgroundColor),r.borderColor&&(s.borderColor=r.borderColor)),r.textColor&&(s.textColor=r.textColor),r.classNames.length&&(s.classNames=r.classNames),Object.keys(n.extendedProps).length&&(e.collapseExtendedProps?Object.assign(s,n.extendedProps):s.extendedProps=n.extendedProps),s}toJSON(){return this.toPlainObject()}};function tI(t){let e=t._def,n=t._instance;return{defs:{[e.defId]:e},instances:n?{[n.instanceId]:n}:{}}}function zn(t,e,n){let{defs:r,instances:i}=t,o=[],s=n?n.instanceId:"";for(let a in i){let l=i[a],c=r[l.defId];l.instanceId!==s&&o.push(new De(e,c,l))}return o}function Qd(t,e,n,r){let i={},o={},s={},a=[],l=[],c=Zd(t.defs,e);for(let u in t.defs){let d=t.defs[u];c[d.defId].display==="inverse-background"&&(d.groupId?(i[d.groupId]=[],s[d.groupId]||(s[d.groupId]=d)):o[u]=[])}for(let u in t.instances){let d=t.instances[u],h=t.defs[d.defId],f=c[h.defId],p=d.range,E=!h.allDay&&r?Ey(p,r):p,b=wn(E,n);b&&(f.display==="inverse-background"?h.groupId?i[h.groupId].push(b):o[d.defId].push(b):f.display!=="none"&&(f.display==="background"?a:l).push({def:h,ui:f,instance:d,range:b,isStart:E.start&&E.start.valueOf()===b.start.valueOf(),isEnd:E.end&&E.end.valueOf()===b.end.valueOf()}))}for(let u in i){let d=i[u],h=wS(d,n);for(let f of h){let p=s[u],E=c[p.defId];a.push({def:p,ui:E,instance:null,range:f,isStart:!1,isEnd:!1})}}for(let u in o){let d=o[u],h=wS(d,n);for(let f of h)a.push({def:t.defs[u],ui:c[u],instance:null,range:f,isStart:!1,isEnd:!1})}return{bg:a,fg:l}}function Ty(t){return t.ui.display==="background"||t.ui.display==="inverse-background"}function IS(t,e){t.fcSeg=e}function br(t){return t.fcSeg||t.parentNode.fcSeg||null}function Zd(t,e){return nn(t,n=>nI(n,e))}function nI(t,e){let n=[];return e[""]&&n.push(e[""]),e[t.defId]&&n.push(e[t.defId]),n.push(t.ui),Cy(n)}function _l(t,e){let n=t.map(WF);return n.sort((r,i)=>LS(r,i,e)),n.map(r=>r._seg)}function WF(t){let{eventRange:e}=t,n=e.def,r=e.instance?e.instance.range:e.range,i=r.start?r.start.valueOf():0,o=r.end?r.end.valueOf():0;return Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:i,end:o,duration:o-i,allDay:Number(n.allDay),_seg:t})}function GF(t,e){let{pluginHooks:n}=e,r=n.isDraggableTransformers,{def:i,ui:o}=t.eventRange,s=o.startEditable;for(let a of r)s=a(s,i,o,e);return s}function qF(t,e){return t.isStart&&t.eventRange.ui.durationEditable&&e.options.eventResizableFromStart}function YF(t,e){return t.isEnd&&t.eventRange.ui.durationEditable}function pf(t,e,n,r,i,o,s){let{dateEnv:a,options:l}=n,{displayEventTime:c,displayEventEnd:u}=l,d=t.eventRange.def,h=t.eventRange.instance;c==null&&(c=r!==!1),u==null&&(u=i!==!1);let f=h.range.start,p=h.range.end,E=o||t.start||t.eventRange.range.start,b=s||t.end||t.eventRange.range.end,D=ge(f).valueOf()===ge(E).valueOf(),I=ge(Hn(p,-1)).valueOf()===ge(Hn(b,-1)).valueOf();return c&&!d.allDay&&(D||I)?(E=D?f:E,b=I?p:b,u&&d.hasEnd?a.formatRange(E,b,e,{forcedStartTzo:o?null:h.forcedStartTzo,forcedEndTzo:s?null:h.forcedEndTzo}):a.format(E,e,{forcedTzo:o?null:h.forcedStartTzo})):""}function Mn(t,e,n){let r=t.eventRange.range;return{isPast:r.end<=(n||e.start),isFuture:r.start>=(n||e.end),isToday:e&&tn(e,r.start)}}function QF(t){let e=["fc-event"];return t.isMirror&&e.push("fc-event-mirror"),t.isDraggable&&e.push("fc-event-draggable"),(t.isStartResizable||t.isEndResizable)&&e.push("fc-event-resizable"),t.isDragging&&e.push("fc-event-dragging"),t.isResizing&&e.push("fc-event-resizing"),t.isSelected&&e.push("fc-event-selected"),t.isStart&&e.push("fc-event-start"),t.isEnd&&e.push("fc-event-end"),t.isPast&&e.push("fc-event-past"),t.isToday&&e.push("fc-event-today"),t.isFuture&&e.push("fc-event-future"),e}function wl(t){return t.instance?t.instance.instanceId:`${t.def.defId}:${t.range.start.toISOString()}`}function gf(t,e){let{def:n,instance:r}=t.eventRange,{url:i}=n;if(i)return{href:i};let{emitter:o,options:s}=e,{eventInteractive:a}=s;return a==null&&(a=n.interactive,a==null&&(a=!!o.hasHandlers("eventClick"))),a?PS(l=>{o.trigger("eventClick",{el:l.target,event:new De(e,n,r),jsEvent:l,view:e.viewApi})}):{}}var ZF={start:C,end:C,allDay:Boolean};function KF(t,e,n){let r=XF(t,e),{range:i}=r;if(!i.start)return null;if(!i.end){if(n==null)return null;i.end=e.add(i.start,n)}return r}function XF(t,e){let{refined:n,extra:r}=sf(t,ZF),i=n.start?e.createMarkerMeta(n.start):null,o=n.end?e.createMarkerMeta(n.end):null,{allDay:s}=n;return s==null&&(s=i&&i.isTimeUnspecified&&(!o||o.isTimeUnspecified)),Object.assign({range:{start:i?i.marker:null,end:o?o.marker:null},allDay:s},r)}function Ay(t,e){return YS(t.range,e.range)&&t.allDay===e.allDay&&JF(t,e)}function JF(t,e){for(let n in e)if(n!=="range"&&n!=="allDay"&&t[n]!==e[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}function eL(t,e){return Object.assign(Object.assign({},rI(t.range,e,t.allDay)),{allDay:t.allDay})}function xy(t,e,n){return Object.assign(Object.assign({},rI(t,e,n)),{timeZone:e.timeZone})}function rI(t,e,n){return{start:e.toDate(t.start),end:e.toDate(t.end),startStr:e.formatIso(t.start,{omitTime:n}),endStr:e.formatIso(t.end,{omitTime:n})}}function tL(t,e,n){let r=uf({editable:!1},n),i=el(r.refined,r.extra,"",t.allDay,!0,n);return{def:i,ui:nI(i,e),instance:El(i.defId,t.range),range:t.range,isStart:!0,isEnd:!0}}function Ry(t,e,n){let r=!1,i=function(a){r||(r=!0,e(a))},o=function(a){r||(r=!0,n(a))},s=t(i,o);s&&typeof s.then=="function"&&s.then(i,o)}var Kd=class extends Error{constructor(e,n){super(e),this.response=n}};function Ny(t,e,n){t=t.toUpperCase();let r={method:t};return t==="GET"?e+=(e.indexOf("?")===-1?"?":"&")+new URLSearchParams(n):(r.body=new URLSearchParams(n),r.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(e,r).then(i=>{if(i.ok)return i.json().then(o=>[o,i],()=>{throw new Kd("Failure parsing JSON",i)});throw new Kd("Request failed",i)})}var kv;function Oy(){return kv==null&&(kv=nL()),kv}function nL(){if(typeof document>"u")return!0;let t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.innerHTML="<table><tr><td><div></div></td></tr></table>",t.querySelector("table").style.height="100px",t.querySelector("div").style.height="100%",document.body.appendChild(t);let n=t.querySelector("div").offsetHeight>0;return document.body.removeChild(t),n}var rl=class extends ae{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{Xa(()=>{this.setState({forPrint:!0})})},this.handleAfterPrint=()=>{Xa(()=>{this.setState({forPrint:!1})})}}render(){let{props:e}=this,{options:n}=e,{forPrint:r}=this.state,i=r||n.height==="auto"||n.contentHeight==="auto",o=!i&&n.height!=null?n.height:"",s=["fc",r?"fc-media-print":"fc-media-screen",`fc-direction-${n.direction}`,e.theme.getClass("root")];return Oy()||s.push("fc-liquid-hack"),e.children(s,o,i,r)}componentDidMount(){let{emitter:e}=this.props;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)}},Sn=class{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}};function iI(t,e){return{component:t,el:e.el,useEventCenter:e.useEventCenter!=null?e.useEventCenter:!0,isHitComboAllowed:e.isHitComboAllowed||null}}function Sl(t){return{[t.component.uid]:t}}var fs={},Er=(()=>{class t extends at{constructor(n,r){super(n,r),this.handleRefresh=()=>{let i=this.computeTiming();i.state.nowDate.valueOf()!==this.state.nowDate.valueOf()&&this.setState(i.state),this.clearTimeout(),this.setTimeout(i.waitMs)},this.handleVisibilityChange=()=>{document.hidden||this.handleRefresh()},this.state=this.computeTiming().state}render(){let{props:n,state:r}=this;return n.children(r.nowDate,r.todayRange)}componentDidMount(){this.setTimeout(),this.context.nowManager.addResetListener(this.handleRefresh),document.addEventListener("visibilitychange",this.handleVisibilityChange)}componentDidUpdate(n){n.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout(),this.context.nowManager.removeResetListener(this.handleRefresh),document.removeEventListener("visibilitychange",this.handleVisibilityChange)}computeTiming(){let{props:n,context:r}=this,i=r.nowManager.getDateMarker(),{nowIndicatorSnap:o}=r.options;o==="auto"&&(o=/year|month|week|day/.test(n.unit)||(n.unitValue||1)===1);let s,a;return o?(s=r.dateEnv.startOf(i,n.unit),a=r.dateEnv.add(s,X(1,n.unit)).valueOf()-i.valueOf()):(s=i,a=1e3*60),a=Math.min(1e3*60*60*24,a),{state:{nowDate:s,todayRange:rL(s)},waitMs:a}}setTimeout(n=this.computeTiming().waitMs){this.timeoutId=setTimeout(()=>{let r=this.computeTiming();this.setState(r.state,()=>{this.setTimeout(r.waitMs)})},n)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}return t.contextType=rn,t})();function rL(t){let e=ge(t),n=Ve(e,1);return{start:e,end:n}}var il=class{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){this.trigger("_resize",!0)}setOption(e,n){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:n})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,n){let{currentDataManager:r}=this;r.currentCalendarOptionsRefiners[e]?r.emitter.on(e,n):console.warn(`Unknown listener name '${e}'`)}off(e,n){this.currentDataManager.emitter.off(e,n)}trigger(e,...n){this.currentDataManager.emitter.trigger(e,...n)}changeView(e,n){this.batchRendering(()=>{if(this.unselect(),n)if(n.start&&n.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:n});else{let{dateEnv:r}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:r.createMarker(n)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})})}zoomTo(e,n){let r=this.getCurrentData(),i;n=n||"day",i=r.viewSpecs[n]||this.getUnitViewSpec(n),this.unselect(),i?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:i.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})}getUnitViewSpec(e){let{viewSpecs:n,toolbarConfig:r}=this.getCurrentData(),i=[].concat(r.header?r.header.viewsWithButtons:[],r.footer?r.footer.viewsWithButtons:[]),o,s;for(let a in n)i.push(a);for(o=0;o<i.length;o+=1)if(s=n[i[o]],s&&s.singleUnit===e)return s;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})}nextYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})}today(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.nowManager.getDateMarker()})}gotoDate(e){let n=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.createMarker(e)})}incrementDate(e){let n=this.getCurrentData(),r=X(e);r&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:n.dateEnv.add(n.currentDate,r)}))}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,n){let{dateEnv:r}=this.getCurrentData();return r.format(r.createMarker(e),Ee(n))}formatRange(e,n,r){let{dateEnv:i}=this.getCurrentData();return i.formatRange(i.createMarker(e),i.createMarker(n),Ee(r),r)}formatIso(e,n){let{dateEnv:r}=this.getCurrentData();return r.formatIso(r.createMarker(e),{omitTime:n})}select(e,n){let r;n==null?e.start!=null?r=e:r={start:e,end:null}:r={start:e,end:n};let i=this.getCurrentData(),o=KF(r,i.dateEnv,X({days:1}));o&&(this.dispatch({type:"SELECT_DATES",selection:o}),hf(o,null,i))}unselect(e){let n=this.getCurrentData();n.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),UF(e,n))}addEvent(e,n){if(e instanceof De){let s=e._def,a=e._instance;return this.getCurrentData().eventStore.defs[s.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:nl({def:s,instance:a})}),this.triggerEventAdd(e)),e}let r=this.getCurrentData(),i;if(n instanceof Zr)i=n.internalEventSource;else if(typeof n=="boolean")n&&([i]=lf(r.eventSources));else if(n!=null){let s=this.getEventSourceById(n);if(!s)return console.warn(`Could not find an event source with ID "${n}"`),null;i=s.internalEventSource}let o=KS(e,i,r,!1);if(o){let s=new De(r,o.def,o.def.recurringDef?null:o.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:nl(o)}),this.triggerEventAdd(s),s}return null}triggerEventAdd(e){let{emitter:n}=this.getCurrentData();n.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:tI(e)})}})}getEventById(e){let n=this.getCurrentData(),{defs:r,instances:i}=n.eventStore;e=String(e);for(let o in r){let s=r[o];if(s.publicId===e){if(s.recurringDef)return new De(n,s,null);for(let a in i){let l=i[a];if(l.defId===s.defId)return new De(n,s,l)}}}return null}getEvents(){let e=this.getCurrentData();return zn(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),n=e.eventSources,r=[];for(let i in n)r.push(new Zr(e,n[i]));return r}getEventSourceById(e){let n=this.getCurrentData(),r=n.eventSources;e=String(e);for(let i in r)if(r[i].publicId===e)return new Zr(n,r[i]);return null}addEventSource(e){let n=this.getCurrentData();if(e instanceof Zr)return n.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let r=_y(e,n);return r?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[r]}),new Zr(n,r)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let n=X(e);n&&this.trigger("_scrollRequest",{time:n})}};function ky(t,e){return t.left>=e.left&&t.left<e.right&&t.top>=e.top&&t.top<e.bottom}function mf(t,e){let n={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)};return n.left<n.right&&n.top<n.bottom?n:!1}function Py(t,e){return{left:Math.min(Math.max(t.left,e.left),e.right),top:Math.min(Math.max(t.top,e.top),e.bottom)}}function Fy(t){return{left:(t.left+t.right)/2,top:(t.top+t.bottom)/2}}function Ly(t,e){return{left:t.left-e.left,top:t.top-e.top}}var Pv=ht(),ol=class{constructor(){this.getKeysForEventDefs=k(this._getKeysForEventDefs),this.splitDateSelection=k(this._splitDateSpan),this.splitEventStore=k(this._splitEventStore),this.splitIndividualUi=k(this._splitIndividualUi),this.splitEventDrag=k(this._splitInteraction),this.splitEventResize=k(this._splitInteraction),this.eventUiBuilders={}}splitProps(e){let n=this.getKeyInfo(e),r=this.getKeysForEventDefs(e.eventStore),i=this.splitDateSelection(e.dateSelection),o=this.splitIndividualUi(e.eventUiBases,r),s=this.splitEventStore(e.eventStore,r),a=this.splitEventDrag(e.eventDrag),l=this.splitEventResize(e.eventResize),c={};this.eventUiBuilders=nn(n,(u,d)=>this.eventUiBuilders[d]||k(iL));for(let u in n){let d=n[u],h=s[u]||Pv,f=this.eventUiBuilders[u];c[u]={businessHours:d.businessHours||e.businessHours,dateSelection:i[u]||null,eventStore:h,eventUiBases:f(e.eventUiBases[""],d.ui,o[u]),eventSelection:h.instances[e.eventSelection]?e.eventSelection:"",eventDrag:a[u]||null,eventResize:l[u]||null}}return c}_splitDateSpan(e){let n={};if(e){let r=this.getKeysForDateSpan(e);for(let i of r)n[i]=e}return n}_getKeysForEventDefs(e){return nn(e.defs,n=>this.getKeysForEventDef(n))}_splitEventStore(e,n){let{defs:r,instances:i}=e,o={};for(let s in r)for(let a of n[s])o[a]||(o[a]=ht()),o[a].defs[s]=r[s];for(let s in i){let a=i[s];for(let l of n[a.defId])o[l]&&(o[l].instances[s]=a)}return o}_splitIndividualUi(e,n){let r={};for(let i in e)if(i)for(let o of n[i])r[o]||(r[o]={}),r[o][i]=e[i];return r}_splitInteraction(e){let n={};if(e){let r=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),i=this._getKeysForEventDefs(e.mutatedEvents),o=this._splitEventStore(e.mutatedEvents,i),s=a=>{n[a]||(n[a]={affectedEvents:r[a]||Pv,mutatedEvents:o[a]||Pv,isEvent:e.isEvent})};for(let a in r)s(a);for(let a in o)s(a)}return n}};function iL(t,e,n){let r=[];t&&r.push(t),e&&r.push(e);let i={"":Cy(r)};return n&&Object.assign(i,n),i}function jy(t,e,n,r){return{dow:t.getUTCDay(),isDisabled:!!(r&&(!r.activeRange||!tn(r.activeRange,t))),isOther:!!(r&&!tn(r.currentRange,t)),isToday:!!(e&&tn(e,t)),isPast:!!(n?t<n:e&&t<e.start),isFuture:!!(n?t>n:e&&t>=e.end)}}function vf(t,e){let n=["fc-day",`fc-day-${VP[t.dow]}`];return t.isDisabled?n.push("fc-day-disabled"):(t.isToday&&(n.push("fc-day-today"),n.push(e.getClass("today"))),t.isPast&&n.push("fc-day-past"),t.isFuture&&n.push("fc-day-future"),t.isOther&&n.push("fc-day-other")),n}var oL=Ee({year:"numeric",month:"long",day:"numeric"}),sL=Ee({week:"long"});function oo(t,e,n="day",r=!0){let{dateEnv:i,options:o,calendarApi:s}=t,a=i.format(e,n==="week"?sL:oL);if(o.navLinks){let l=i.toDate(e),c=u=>{let d=n==="day"?o.navLinkDayClick:n==="week"?o.navLinkWeekClick:null;typeof d=="function"?d.call(s,i.toDate(e),u):(typeof d=="string"&&(n=d),s.zoomTo(e,n))};return Object.assign({title:ls(o.navLinkHint,[a,l],a),"data-navlink":""},r?kS(c):{onClick:c})}return{"aria-label":a}}var Fv=null;function oI(){return Fv===null&&(Fv=aL()),Fv}function aL(){let t=document.createElement("div");ro(t,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),t.innerHTML="<div></div>",document.body.appendChild(t);let n=t.firstChild.getBoundingClientRect().left>t.getBoundingClientRect().left;return fl(t),n}var Lv;function sI(){return Lv||(Lv=lL()),Lv}function lL(){let t=document.createElement("div");t.style.overflow="scroll",t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t);let e=aI(t);return document.body.removeChild(t),e}function aI(t){return{x:t.offsetHeight-t.clientHeight,y:t.offsetWidth-t.clientWidth}}function lI(t,e=!1){let n=window.getComputedStyle(t),r=parseInt(n.borderLeftWidth,10)||0,i=parseInt(n.borderRightWidth,10)||0,o=parseInt(n.borderTopWidth,10)||0,s=parseInt(n.borderBottomWidth,10)||0,a=aI(t),l=a.y-r-i,c=a.x-o-s,u={borderLeft:r,borderRight:i,borderTop:o,borderBottom:s,scrollbarBottom:c,scrollbarLeft:0,scrollbarRight:0};return oI()&&n.direction==="rtl"?u.scrollbarLeft=l:u.scrollbarRight=l,e&&(u.paddingLeft=parseInt(n.paddingLeft,10)||0,u.paddingRight=parseInt(n.paddingRight,10)||0,u.paddingTop=parseInt(n.paddingTop,10)||0,u.paddingBottom=parseInt(n.paddingBottom,10)||0),u}function Vy(t,e=!1,n){let r=n?t.getBoundingClientRect():Il(t),i=lI(t,e),o={left:r.left+i.borderLeft+i.scrollbarLeft,right:r.right-i.borderRight-i.scrollbarRight,top:r.top+i.borderTop,bottom:r.bottom-i.borderBottom-i.scrollbarBottom};return e&&(o.left+=i.paddingLeft,o.right-=i.paddingRight,o.top+=i.paddingTop,o.bottom-=i.paddingBottom),o}function Il(t){let e=t.getBoundingClientRect();return{left:e.left+window.scrollX,top:e.top+window.scrollY,right:e.right+window.scrollX,bottom:e.bottom+window.scrollY}}function cL(t){let e=yf(t),n=t.getBoundingClientRect();for(let r of e){let i=mf(n,r.getBoundingClientRect());if(i)n=i;else return null}return n}function yf(t){let e=[];for(;t instanceof HTMLElement;){let n=window.getComputedStyle(t);if(n.position==="fixed")break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&e.push(t),t=t.parentNode}return e}var In=class{constructor(e,n,r,i){this.els=n;let o=this.originClientRect=e.getBoundingClientRect();r&&this.buildElHorizontals(o.left),i&&this.buildElVerticals(o.top)}buildElHorizontals(e){let n=[],r=[];for(let i of this.els){let o=i.getBoundingClientRect();n.push(o.left-e),r.push(o.right-e)}this.lefts=n,this.rights=r}buildElVerticals(e){let n=[],r=[];for(let i of this.els){let o=i.getBoundingClientRect();n.push(o.top-e),r.push(o.bottom-e)}this.tops=n,this.bottoms=r}leftToIndex(e){let{lefts:n,rights:r}=this,i=n.length,o;for(o=0;o<i;o+=1)if(e>=n[o]&&e<r[o])return o}topToIndex(e){let{tops:n,bottoms:r}=this,i=n.length,o;for(o=0;o<i;o+=1)if(e>=n[o]&&e<r[o])return o}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return jd(this.tops||[],e.tops||[])&&jd(this.bottoms||[],e.bottoms||[])&&jd(this.lefts||[],e.lefts||[])&&jd(this.rights||[],e.rights||[])}};function jd(t,e){let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(Math.round(t[r])!==Math.round(e[r]))return!1;return!0}var Yi=class{getMaxScrollTop(){return this.getScrollHeight()-this.getClientHeight()}getMaxScrollLeft(){return this.getScrollWidth()-this.getClientWidth()}canScrollVertically(){return this.getMaxScrollTop()>0}canScrollHorizontally(){return this.getMaxScrollLeft()>0}canScrollUp(){return this.getScrollTop()>0}canScrollDown(){return this.getScrollTop()<this.getMaxScrollTop()}canScrollLeft(){return this.getScrollLeft()>0}canScrollRight(){return this.getScrollLeft()<this.getMaxScrollLeft()}},sl=class extends Yi{constructor(e){super(),this.el=e}getScrollTop(){return this.el.scrollTop}getScrollLeft(){return this.el.scrollLeft}setScrollTop(e){this.el.scrollTop=e}setScrollLeft(e){this.el.scrollLeft=e}getScrollWidth(){return this.el.scrollWidth}getScrollHeight(){return this.el.scrollHeight}getClientHeight(){return this.el.clientHeight}getClientWidth(){return this.el.clientWidth}},al=class extends Yi{getScrollTop(){return window.scrollY}getScrollLeft(){return window.scrollX}setScrollTop(e){window.scroll(window.scrollX,e)}setScrollLeft(e){window.scroll(e,window.scrollY)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}},Et=class extends ae{constructor(){super(...arguments),this.uid=vr()}prepareHits(){}queryHit(e,n,r,i){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!Ze(e,".fc-event-mirror")}isValidDateDownEl(e){return!Ze(e,".fc-event:not(.fc-bg-event)")&&!Ze(e,".fc-more-link")&&!Ze(e,"a[data-navlink]")&&!Ze(e,".fc-popover")}};var Qi=class{constructor(e=n=>n.thickness||1){this.getEntryThickness=e,this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(e){let n=[];for(let r of e)this.insertEntry(r,n);return n}insertEntry(e,n){let r=this.findInsertion(e);this.isInsertionValid(r,e)?this.insertEntryAt(e,r):this.handleInvalidInsertion(r,e,n)}isInsertionValid(e,n){return(this.maxCoord===-1||e.levelCoord+this.getEntryThickness(n)<=this.maxCoord)&&(this.maxStackCnt===-1||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,n,r){if(this.allowReslicing&&e.touchingEntry){let i=Object.assign(Object.assign({},n),{span:Ml(n.span,e.touchingEntry.span)});r.push(i),this.splitEntry(n,e.touchingEntry,r)}else r.push(n)}splitEntry(e,n,r){let i=e.span,o=n.span;i.start<o.start&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:i.start,end:o.start}},r),i.end>o.end&&this.insertEntry({index:e.index,thickness:e.thickness,span:{start:o.end,end:i.end}},r)}insertEntryAt(e,n){let{entriesByLevel:r,levelCoords:i}=this;n.lateral===-1?(jv(i,n.level,n.levelCoord),jv(r,n.level,[e])):jv(r[n.level],n.lateral,e),this.stackCnts[Un(e)]=n.stackCnt}findInsertion(e){let{levelCoords:n,entriesByLevel:r,strictOrder:i,stackCnts:o}=this,s=n.length,a=0,l=-1,c=-1,u=null,d=0;for(let p=0;p<s;p+=1){let E=n[p];if(!i&&E>=a+this.getEntryThickness(e))break;let b=r[p],D,I=cl(b,e.span.start,ll),N=I[0]+I[1];for(;(D=b[N])&&D.span.start<e.span.end;){let A=E+this.getEntryThickness(D);A>a&&(a=A,u=D,l=p,c=N),A===a&&(d=Math.max(d,o[Un(D)]+1)),N+=1}}let h=0;if(u)for(h=l+1;h<s&&n[h]<a;)h+=1;let f=-1;return h<s&&n[h]===a&&(f=cl(r[h],e.span.end,ll)[0]),{touchingLevel:l,touchingLateral:c,touchingEntry:u,stackCnt:d,levelCoord:a,level:h,lateral:f}}toRects(){let{entriesByLevel:e,levelCoords:n}=this,r=e.length,i=[];for(let o=0;o<r;o+=1){let s=e[o],a=n[o];for(let l of s)i.push(Object.assign(Object.assign({},l),{thickness:this.getEntryThickness(l),levelCoord:a}))}return i}};function ll(t){return t.span.end}function Un(t){return t.index+":"+t.span.start}function By(t){let e=[];for(let n of t){let r=[],i={span:n.span,entries:[n]};for(let o of e)Ml(o.span,i.span)?i={entries:o.entries.concat(i.entries),span:uL(o.span,i.span)}:r.push(o);r.push(i),e=r}return e}function uL(t,e){return{start:Math.min(t.start,e.start),end:Math.max(t.end,e.end)}}function Ml(t,e){let n=Math.max(t.start,e.start),r=Math.min(t.end,e.end);return n<r?{start:n,end:r}:null}function jv(t,e,n){t.splice(e,0,n)}function cl(t,e,n){let r=0,i=t.length;if(!i||e<n(t[r]))return[0,0];if(e>n(t[i-1]))return[i,0];for(;r<i;){let o=Math.floor(r+(i-r)/2),s=n(t[o]);if(e<s)i=o;else if(e>s)r=o+1;else return[o,1]}return[r,0]}var ul=class{constructor(e,n){this.emitter=new mr}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}},Tl={};function cI(t,e){return!t||e>10?Ee({weekday:"short"}):e>1?Ee({weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}):Ee({weekday:"long"})}var uI="fc-col-header-cell";function dI(t){return t.text}var Xd=class extends ae{render(){let{dateEnv:e,options:n,theme:r,viewApi:i}=this.context,{props:o}=this,{date:s,dateProfile:a}=o,l=jy(s,o.todayRange,null,a),c=[uI].concat(vf(l,r)),u=e.format(s,o.dayHeaderFormat),d=!l.isDisabled&&o.colCnt>1?oo(this.context,s):{},h=e.toDate(s);e.namedTimeZoneImpl&&(h=Hn(h,36e5));let f=Object.assign(Object.assign(Object.assign({date:h,view:i},o.extraRenderProps),{text:u}),l);return g(Dt,{elTag:"th",elClasses:c,elAttrs:Object.assign({role:"columnheader",colSpan:o.colSpan,"data-date":l.isDisabled?void 0:yl(s)},o.extraDataAttrs),renderProps:f,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:dI,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},p=>g("div",{className:"fc-scrollgrid-sync-inner"},!l.isDisabled&&g(p,{elTag:"a",elAttrs:d,elClasses:["fc-col-header-cell-cushion",o.isSticky&&"fc-sticky"]})))}},dL=Ee({weekday:"long"}),Jd=class extends ae{render(){let{props:e}=this,{dateEnv:n,theme:r,viewApi:i,options:o}=this.context,s=Ve(new Date(2592e5),e.dow),a={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},l=n.format(s,e.dayHeaderFormat),c=Object.assign(Object.assign(Object.assign(Object.assign({date:s},a),{view:i}),e.extraRenderProps),{text:l});return g(Dt,{elTag:"th",elClasses:[uI,...vf(a,r),...e.extraClassNames||[]],elAttrs:Object.assign({role:"columnheader",colSpan:e.colSpan},e.extraDataAttrs),renderProps:c,generatorName:"dayHeaderContent",customGenerator:o.dayHeaderContent,defaultGenerator:dI,classNameGenerator:o.dayHeaderClassNames,didMount:o.dayHeaderDidMount,willUnmount:o.dayHeaderWillUnmount},u=>g("div",{className:"fc-scrollgrid-sync-inner"},g(u,{elTag:"a",elClasses:["fc-col-header-cell-cushion",e.isSticky&&"fc-sticky"],elAttrs:{"aria-label":n.format(s,dL)}})))}},Zi=class extends ae{constructor(){super(...arguments),this.createDayHeaderFormatter=k(fL)}render(){let{context:e}=this,{dates:n,dateProfile:r,datesRepDistinctDays:i,renderIntro:o}=this.props,s=this.createDayHeaderFormatter(e.options.dayHeaderFormat,i,n.length);return g(Er,{unit:"day"},(a,l)=>g("tr",{role:"row"},o&&o("day"),n.map(c=>i?g(Xd,{key:c.toISOString(),date:c,dateProfile:r,todayRange:l,colCnt:n.length,dayHeaderFormat:s}):g(Jd,{key:c.getUTCDay(),dow:c.getUTCDay(),dayHeaderFormat:s}))))}};function fL(t,e,n){return t||cI(e,n)}var Ki=class{constructor(e,n){let r=e.start,{end:i}=e,o=[],s=[],a=-1;for(;r<i;)n.isHiddenDay(r)?o.push(a+.5):(a+=1,o.push(a),s.push(r)),r=Ve(r,1);this.dates=s,this.indices=o,this.cnt=s.length}sliceRange(e){let n=this.getDateDayIndex(e.start),r=this.getDateDayIndex(Ve(e.end,-1)),i=Math.max(0,n),o=Math.min(this.cnt-1,r);return i=Math.ceil(i),o=Math.floor(o),i<=o?{firstIndex:i,lastIndex:o,isStart:n===i,isEnd:r===o}:null}getDateDayIndex(e){let{indices:n}=this,r=Math.floor(yr(this.dates[0],e));return r<0?n[0]-1:r>=n.length?n[n.length-1]+1:n[r]}},Xi=class{constructor(e,n){let{dates:r}=e,i,o,s;if(n){for(o=r[0].getUTCDay(),i=1;i<r.length&&r[i].getUTCDay()!==o;i+=1);s=Math.ceil(r.length/i)}else s=1,i=r.length;this.rowCnt=s,this.colCnt=i,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}buildCells(){let e=[];for(let n=0;n<this.rowCnt;n+=1){let r=[];for(let i=0;i<this.colCnt;i+=1)r.push(this.buildCell(n,i));e.push(r)}return e}buildCell(e,n){let r=this.daySeries.dates[e*this.colCnt+n];return{key:r.toISOString(),date:r}}buildHeaderDates(){let e=[];for(let n=0;n<this.colCnt;n+=1)e.push(this.cells[0][n].date);return e}sliceRange(e){let{colCnt:n}=this,r=this.daySeries.sliceRange(e),i=[];if(r){let{firstIndex:o,lastIndex:s}=r,a=o;for(;a<=s;){let l=Math.floor(a/n),c=Math.min((l+1)*n,s+1);i.push({row:l,firstCol:a%n,lastCol:(c-1)%n,isStart:r.isStart&&a===o,isEnd:r.isEnd&&c-1===s}),a=c}}return i}},Ji=class{constructor(){this.sliceBusinessHours=k(this._sliceBusinessHours),this.sliceDateSelection=k(this._sliceDateSpan),this.sliceEventStore=k(this._sliceEventStore),this.sliceEventDrag=k(this._sliceInteraction),this.sliceEventResize=k(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,n,r,i,...o){let{eventUiBases:s}=e,a=this.sliceEventStore(e.eventStore,s,n,r,...o);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,n,r,s,i,...o),businessHourSegs:this.sliceBusinessHours(e.businessHours,n,r,i,...o),fgEventSegs:a.fg,bgEventSegs:a.bg,eventDrag:this.sliceEventDrag(e.eventDrag,s,n,r,...o),eventResize:this.sliceEventResize(e.eventResize,s,n,r,...o),eventSelection:e.eventSelection}}sliceNowDate(e,n,r,i,...o){return this._sliceDateSpan({range:{start:e,end:Hn(e,1)},allDay:!1},n,r,{},i,...o)}_sliceBusinessHours(e,n,r,i,...o){return e?this._sliceEventStore(qi(e,Vd(n,!!r),i),{},n,r,...o).bg:[]}_sliceEventStore(e,n,r,i,...o){if(e){let s=Qd(e,n,Vd(r,!!i),i);return{bg:this.sliceEventRanges(s.bg,o),fg:this.sliceEventRanges(s.fg,o)}}return{bg:[],fg:[]}}_sliceInteraction(e,n,r,i,...o){if(!e)return null;let s=Qd(e.mutatedEvents,n,Vd(r,!!i),i);return{segs:this.sliceEventRanges(s.fg,o),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,n,r,i,o,...s){if(!e)return[];let a=Vd(n,!!r),l=wn(e.range,a);if(l){e=Object.assign(Object.assign({},e),{range:l});let c=tL(e,i,o),u=this.sliceRange(e.range,...s);for(let d of u)d.eventRange=c;return u}return[]}sliceEventRanges(e,n){let r=[];for(let i of e)r.push(...this.sliceEventRange(i,n));return r}sliceEventRange(e,n){let r=e.range;this.forceDayIfListItem&&e.ui.display==="list-item"&&(r={start:r.start,end:Ve(r.start,1)});let i=this.sliceRange(r,...n);for(let o of i)o.eventRange=e,o.isStart=e.isStart&&o.isStart,o.isEnd=e.isEnd&&o.isEnd;return i}};function Vd(t,e){let n=t.activeRange;return e?n:{start:Hn(n.start,t.slotMinTime.milliseconds),end:Hn(n.end,t.slotMaxTime.milliseconds-864e5)}}function bf(t,e,n){let{instances:r}=t.mutatedEvents;for(let i in r)if(!us(e.validRange,r[i].range))return!1;return fI({eventDrag:t},n)}function Hy(t,e,n){return us(e.validRange,t.range)?fI({dateSelection:t},n):!1}function fI(t,e){let n=e.getCurrentData(),r=Object.assign({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},t);return(e.pluginHooks.isPropsValid||hI)(r,e)}function hI(t,e,n={},r){return!(t.eventDrag&&!hL(t,e,n,r)||t.dateSelection&&!pL(t,e,n,r))}function hL(t,e,n,r){let i=e.getCurrentData(),o=t.eventDrag,s=o.mutatedEvents,a=s.defs,l=s.instances,c=Zd(a,o.isEvent?t.eventUiBases:{"":i.selectionConfig});r&&(c=nn(c,r));let u=FF(t.eventStore,o.affectedEvents.instances),d=u.defs,h=u.instances,f=Zd(d,t.eventUiBases);for(let p in l){let E=l[p],b=E.range,D=c[E.defId],I=a[E.defId];if(!pI(D.constraints,b,u,t.businessHours,e))return!1;let{eventOverlap:N}=e.options,A=typeof N=="function"?N:null;for(let J in h){let le=h[J];if(cf(b,le.range)&&(f[le.defId].overlap===!1&&o.isEvent||D.overlap===!1||A&&!A(new De(e,d[le.defId],le),new De(e,I,E))))return!1}let me=i.eventStore;for(let J of D.allows){let le=Object.assign(Object.assign({},n),{range:E.range,allDay:I.allDay}),ie=me.defs[I.defId],Cr=me.instances[p],Ss;if(ie?Ss=new De(e,ie,Cr):Ss=new De(e,I),!J(My(le,e),Ss))return!1}}return!0}function pL(t,e,n,r){let i=t.eventStore,o=i.defs,s=i.instances,a=t.dateSelection,l=a.range,{selectionConfig:c}=e.getCurrentData();if(r&&(c=r(c)),!pI(c.constraints,l,i,t.businessHours,e))return!1;let{selectOverlap:u}=e.options,d=typeof u=="function"?u:null;for(let h in s){let f=s[h];if(cf(l,f.range)&&(c.overlap===!1||d&&!d(new De(e,o[f.defId],f),null)))return!1}for(let h of c.allows){let f=Object.assign(Object.assign({},n),a);if(!h(My(f,e),null))return!1}return!0}function pI(t,e,n,r,i){for(let o of t)if(!mL(gL(o,e,n,r,i),e))return!1;return!0}function gL(t,e,n,r,i){return t==="businessHours"?Vv(qi(r,e,i)):typeof t=="string"?Vv(ff(n,o=>o.groupId===t)):typeof t=="object"&&t?Vv(qi(t,e,i)):[]}function Vv(t){let{instances:e}=t,n=[];for(let r in e)n.push(e[r].range);return n}function mL(t,e){for(let n of t)if(us(n,e))return!0;return!1}var Bd=/^(visible|hidden)$/,ef=class extends ae{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,zt(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:n,liquidIsAbsolute:r}=e,i=n&&r,o=["fc-scroller"];return n&&(r?o.push("fc-scroller-liquid-absolute"):o.push("fc-scroller-liquid")),g("div",{ref:this.handleEl,className:o.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:i&&-(e.overcomeLeft||0)||"",right:i&&-(e.overcomeRight||0)||"",bottom:i&&-(e.overcomeBottom||0)||"",marginLeft:!i&&-(e.overcomeLeft||0)||"",marginRight:!i&&-(e.overcomeRight||0)||"",marginBottom:!i&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)}needsXScrolling(){if(Bd.test(this.props.overflowX))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:r}=e;for(let i=0;i<r.length;i+=1)if(r[i].getBoundingClientRect().width>n)return!0;return!1}needsYScrolling(){if(Bd.test(this.props.overflowY))return!1;let{el:e}=this,n=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:r}=e;for(let i=0;i<r.length;i+=1)if(r[i].getBoundingClientRect().height>n)return!0;return!1}getXScrollbarWidth(){return Bd.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return Bd.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}},Tt=class{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(n,r)=>{let{depths:i,currentMap:o}=this,s=!1,a=!1;n!==null?(s=r in o,o[r]=n,i[r]=(i[r]||0)+1,a=!0):(i[r]-=1,i[r]||(delete o[r],delete this.callbackMap[r],s=!0)),this.masterCallback&&(s&&this.masterCallback(null,String(r)),a&&this.masterCallback(n,String(r)))}}createRef(e){let n=this.callbackMap[e];return n||(n=this.callbackMap[e]=r=>{this.handleValue(r,String(e))}),n}collect(e,n,r){return $S(this.currentMap,e,n,r)}getAll(){return lf(this.currentMap)}};function gI(t){let e=NS(t,".fc-scrollgrid-shrink"),n=0;for(let r of e)n=Math.max(n,OP(r));return Math.ceil(n)}function Uy(t,e){return t.liquid&&e.liquid}function mI(t,e){return e.maxHeight!=null||Uy(t,e)}function vI(t,e,n,r){let{expandRows:i}=n;return typeof e.content=="function"?e.content(n):g("table",{role:"presentation",className:[e.tableClassName,t.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:i?n.clientHeight:""}},n.tableColGroupNode,g(r?"thead":"tbody",{role:"presentation"},typeof e.rowContent=="function"?e.rowContent(n):e.rowContent))}function yI(t,e){return $n(t,e,Mt)}function bI(t,e){let n=[];for(let r of t){let i=r.span||1;for(let o=0;o<i;o+=1)n.push(g("col",{style:{width:r.width==="shrink"?EI(e):r.width||"",minWidth:r.minWidth||""}}))}return g("colgroup",{},...n)}function EI(t){return t??4}function DI(t){for(let e of t)if(e.width==="shrink")return!0;return!1}function CI(t,e){let n=["fc-scrollgrid",e.theme.getClass("table")];return t&&n.push("fc-scrollgrid-liquid"),n}function _I(t,e){let n=["fc-scrollgrid-section",`fc-scrollgrid-section-${t.type}`,t.className];return e&&t.liquid&&t.maxHeight==null&&n.push("fc-scrollgrid-section-liquid"),t.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function hs(t){return g("div",{className:"fc-scrollgrid-sticky-shim",style:{width:t.clientWidth,minWidth:t.tableMinWidth}})}function so(t){let{stickyHeaderDates:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}function Al(t){let{stickyFooterScrollbar:e}=t;return(e==null||e==="auto")&&(e=t.height==="auto"||t.viewHeight==="auto"),e}var ei=class extends ae{constructor(){super(...arguments),this.processCols=k(e=>e,yI),this.renderMicroColGroup=k(bI),this.scrollerRefs=new Tt,this.scrollerElRefs=new Tt(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:e,state:n,context:r}=this,i=e.sections||[],o=this.processCols(e.cols),s=this.renderMicroColGroup(o,n.shrinkWidth),a=CI(e.liquid,r);e.collapsibleWidth&&a.push("fc-scrollgrid-collapsible");let l=i.length,c=0,u,d=[],h=[],f=[];for(;c<l&&(u=i[c]).type==="header";)d.push(this.renderSection(u,s,!0)),c+=1;for(;c<l&&(u=i[c]).type==="body";)h.push(this.renderSection(u,s,!1)),c+=1;for(;c<l&&(u=i[c]).type==="footer";)f.push(this.renderSection(u,s,!0)),c+=1;let p=!Oy(),E={role:"rowgroup"};return g("table",{role:"grid",className:a.join(" "),style:{height:e.height}},!!(!p&&d.length)&&g("thead",E,...d),!!(!p&&h.length)&&g("tbody",E,...h),!!(!p&&f.length)&&g("tfoot",E,...f),p&&g("tbody",E,...d,...h,...f))}renderSection(e,n,r){return"outerContent"in e?g(ce,{key:e.key},e.outerContent):g("tr",{key:e.key,role:"presentation",className:_I(e,this.props.liquid).join(" ")},this.renderChunkTd(e,n,e.chunk,r))}renderChunkTd(e,n,r,i){if("outerContent"in r)return r.outerContent;let{props:o}=this,{forceYScrollbars:s,scrollerClientWidths:a,scrollerClientHeights:l}=this.state,c=mI(o,e),u=Uy(o,e),d=o.liquid?s?"scroll":c?"auto":"hidden":"visible",h=e.key,f=vI(e,r,{tableColGroupNode:n,tableMinWidth:"",clientWidth:!o.collapsibleWidth&&a[h]!==void 0?a[h]:null,clientHeight:l[h]!==void 0?l[h]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},i);return g(i?"th":"td",{ref:r.elRef,role:"presentation"},g("div",{className:`fc-scroller-harness${u?" fc-scroller-harness-liquid":""}`},g(ef,{ref:this.scrollerRefs.createRef(h),elRef:this.scrollerElRefs.createRef(h),overflowY:d,overflowX:o.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:u,liquidIsAbsolute:!0},f)))}_handleScrollerEl(e,n){let r=vL(this.props.sections,n);r&&zt(r.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return DI(this.props.cols)?gI(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=sI(),{scrollerRefs:n,scrollerElRefs:r}=this,i=!1,o={},s={};for(let a in n.currentMap){let l=n.currentMap[a];if(l&&l.needsYScrolling()){i=!0;break}}for(let a of this.props.sections){let l=a.key,c=r.currentMap[l];if(c){let u=c.parentNode;o[l]=Math.floor(u.getBoundingClientRect().width-(i?e.y:0)),s[l]=Math.floor(u.getBoundingClientRect().height)}}return{forceYScrollbars:i,scrollerClientWidths:o,scrollerClientHeights:s}}};ei.addStateEquality({scrollerClientWidths:Mt,scrollerClientHeights:Mt});function vL(t,e){for(let n of t)if(n.key===e)return n;return null}var eo=class extends ae{constructor(){super(...arguments),this.buildPublicEvent=k((e,n,r)=>new De(e,n,r)),this.handleEl=e=>{this.el=e,zt(this.props.elRef,e),e&&IS(e,this.props.seg)}}render(){let{props:e,context:n}=this,{options:r}=n,{seg:i}=e,{eventRange:o}=i,{ui:s}=o,a={event:this.buildPublicEvent(n,o.def,o.instance),view:n.viewApi,timeText:e.timeText,textColor:s.textColor,backgroundColor:s.backgroundColor,borderColor:s.borderColor,isDraggable:!e.disableDragging&&GF(i,n),isStartResizable:!e.disableResizing&&qF(i,n),isEndResizable:!e.disableResizing&&YF(i),isMirror:!!(e.isDragging||e.isResizing||e.isDateSelecting),isStart:!!i.isStart,isEnd:!!i.isEnd,isPast:!!e.isPast,isFuture:!!e.isFuture,isToday:!!e.isToday,isSelected:!!e.isSelected,isDragging:!!e.isDragging,isResizing:!!e.isResizing};return g(Dt,{elRef:this.handleEl,elTag:e.elTag,elAttrs:e.elAttrs,elClasses:[...QF(a),...i.eventRange.ui.classNames,...e.elClasses||[]],elStyle:e.elStyle,renderProps:a,generatorName:"eventContent",customGenerator:r.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:r.eventClassNames,didMount:r.eventDidMount,willUnmount:r.eventWillUnmount},e.children)}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&IS(this.el,this.props.seg)}},ti=class extends ae{render(){let{props:e,context:n}=this,{options:r}=n,{seg:i}=e,{ui:o}=i.eventRange,s=r.eventTimeFormat||e.defaultTimeFormat,a=pf(i,s,n,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return g(eo,Object.assign({},e,{elTag:"a",elStyle:{borderColor:o.borderColor,backgroundColor:o.backgroundColor},elAttrs:gf(i,n),defaultGenerator:yL,timeText:a}),(l,c)=>g(ce,null,g(l,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:c.textColor}}),!!c.isStartResizable&&g("div",{className:"fc-event-resizer fc-event-resizer-start"}),!!c.isEndResizable&&g("div",{className:"fc-event-resizer fc-event-resizer-end"})))}};ti.addPropsEquality({seg:Mt});function yL(t){return g("div",{className:"fc-event-main-frame"},t.timeText&&g("div",{className:"fc-event-time"},t.timeText),g("div",{className:"fc-event-title-container"},g("div",{className:"fc-event-title fc-sticky"},t.event.title||g(ce,null,"\xA0"))))}var xl=t=>g(rn.Consumer,null,e=>{let{options:n}=e,r={isAxis:t.isAxis,date:e.dateEnv.toDate(t.date),view:e.viewApi};return g(Dt,{elRef:t.elRef,elTag:t.elTag||"div",elAttrs:t.elAttrs,elClasses:t.elClasses,elStyle:t.elStyle,renderProps:r,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount},t.children)}),bL=Ee({day:"numeric"}),ni=class extends ae{constructor(){super(...arguments),this.refineRenderProps=cs(EL)}render(){let{props:e,context:n}=this,{options:r}=n,i=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:n.viewApi,dateEnv:n.dateEnv,monthStartFormat:r.monthStartFormat});return g(Dt,{elRef:e.elRef,elTag:e.elTag,elAttrs:Object.assign(Object.assign({},e.elAttrs),i.isDisabled?{}:{"data-date":yl(e.date)}),elClasses:[...vf(i,n.theme),...e.elClasses||[]],elStyle:e.elStyle,renderProps:i,generatorName:"dayCellContent",customGenerator:r.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:i.isDisabled?void 0:r.dayCellClassNames,didMount:r.dayCellDidMount,willUnmount:r.dayCellWillUnmount},e.children)}};function ps(t){return!!(t.dayCellContent||qv("dayCellContent",t))}function EL(t){let{date:e,dateEnv:n,dateProfile:r,isMonthStart:i}=t,o=jy(e,t.todayRange,null,r),s=t.showDayNumber?n.format(e,i?t.monthStartFormat:bL):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(e),view:t.viewApi},o),{isMonthStart:i,dayNumberText:s}),t.extraRenderProps)}var to=class extends ae{render(){let{props:e}=this,{seg:n}=e;return g(eo,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:n.eventRange.ui.backgroundColor},defaultGenerator:DL,seg:n,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}};function DL(t){let{title:e}=t.event;return e&&g("div",{className:"fc-event-title"},t.event.title)}function Rl(t){return g("div",{className:`fc-${t}`})}var Nl=t=>g(rn.Consumer,null,e=>{let{dateEnv:n,options:r}=e,{date:i}=t,o=r.weekNumberFormat||t.defaultFormat,s=n.computeWeekNumber(i),a=n.format(i,o),l={num:s,text:a,date:i};return g(Dt,{elRef:t.elRef,elTag:t.elTag,elAttrs:t.elAttrs,elClasses:t.elClasses,elStyle:t.elStyle,renderProps:l,generatorName:"weekNumberContent",customGenerator:r.weekNumberContent,defaultGenerator:CL,classNameGenerator:r.weekNumberClassNames,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount},t.children)});function CL(t){return t.text}var Bv=10,Qv=class extends ae{constructor(){super(...arguments),this.state={titleId:io()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&zt(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{let n=tf(e);this.rootEl.contains(n)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{e.key==="Escape"&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:n}=this.context,{props:r,state:i}=this,o=["fc-popover",e.getClass("popover")].concat(r.extraClassNames||[]);return pS(g("div",Object.assign({},r.extraAttrs,{id:r.id,className:o.join(" "),"aria-labelledby":i.titleId,ref:this.handleRootEl}),g("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},g("span",{className:"fc-popover-title",id:i.titleId},r.title),g("span",{className:"fc-popover-close "+e.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),g("div",{className:"fc-popover-body "+e.getClass("popoverContent")},r.children)),r.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:e}=this.context,{alignmentEl:n,alignGridTop:r}=this.props,{rootEl:i}=this,o=cL(n);if(o){let s=i.getBoundingClientRect(),a=r?Ze(n,".fc-scrollgrid").getBoundingClientRect().top:o.top,l=e?o.right-s.width:o.left;a=Math.max(a,Bv),l=Math.min(l,document.documentElement.clientWidth-Bv-s.width),l=Math.max(l,Bv);let c=i.offsetParent.getBoundingClientRect();ro(i,{top:a-c.top,left:l-c.left})}}},Zv=class extends Et{constructor(){super(...arguments),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:e,dateEnv:n}=this.context,{props:r}=this,{startDate:i,todayRange:o,dateProfile:s}=r,a=n.format(i,e.dayPopoverFormat);return g(ni,{elRef:this.handleRootEl,date:i,dateProfile:s,todayRange:o},(l,c,u)=>g(Qv,{elRef:u.ref,id:r.id,title:a,extraClassNames:["fc-more-popover"].concat(u.className||[]),extraAttrs:u,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},ps(e)&&g(l,{elTag:"div",elClasses:["fc-more-popover-misc"]}),r.children))}queryHit(e,n,r,i){let{rootEl:o,props:s}=this;return e>=0&&e<r&&n>=0&&n<i?{dateProfile:s.dateProfile,dateSpan:Object.assign({allDay:!s.forceTimed,range:{start:s.startDate,end:s.endDate}},s.extraDateSpan),dayEl:o,rect:{left:0,top:0,right:r,bottom:i},layer:1}:null}},no=class extends ae{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:io()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&zt(this.props.elRef,e)},this.handleClick=e=>{let{props:n,context:r}=this,{moreLinkClick:i}=r.options,o=MS(n).start;function s(a){let{def:l,instance:c,range:u}=a.eventRange;return{event:new De(r,l,c),start:r.dateEnv.toDate(u.start),end:r.dateEnv.toDate(u.end),isStart:a.isStart,isEnd:a.isEnd}}typeof i=="function"&&(i=i({date:o,allDay:!!n.allDayDate,allSegs:n.allSegs.map(s),hiddenSegs:n.hiddenSegs.map(s),jsEvent:e,view:r.viewApi})),!i||i==="popover"?this.setState({isPopoverOpen:!0}):typeof i=="string"&&r.calendarApi.zoomTo(o,i)},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:n}=this;return g(rn.Consumer,null,r=>{let{viewApi:i,options:o,calendarApi:s}=r,{moreLinkText:a}=o,{moreCnt:l}=e,c=MS(e),u=typeof a=="function"?a.call(s,l):`+${l} ${a}`,d=ls(o.moreLinkHint,[l],u),h={num:l,shortText:`+${l}`,text:u,view:i};return g(ce,null,!!e.moreCnt&&g(Dt,{elTag:e.elTag||"a",elRef:this.handleLinkEl,elClasses:[...e.elClasses||[],"fc-more-link"],elStyle:e.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},e.elAttrs),kS(this.handleClick)),{title:d,"aria-expanded":n.isPopoverOpen,"aria-controls":n.isPopoverOpen?n.popoverId:""}),renderProps:h,generatorName:"moreLinkContent",customGenerator:o.moreLinkContent,defaultGenerator:e.defaultGenerator||_L,classNameGenerator:o.moreLinkClassNames,didMount:o.moreLinkDidMount,willUnmount:o.moreLinkWillUnmount},e.children),n.isPopoverOpen&&g(Zv,{id:n.popoverId,startDate:c.start,endDate:c.end,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:e.extraDateSpan,parentEl:this.parentEl,alignmentEl:e.alignmentElRef?e.alignmentElRef.current:this.linkEl,alignGridTop:e.alignGridTop,forceTimed:e.forceTimed,onClose:this.handlePopoverClose},e.popoverContent()))})}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=Ze(this.linkEl,".fc-view-harness"))}};function _L(t){return t.text}function MS(t){if(t.allDayDate)return{start:t.allDayDate,end:Ve(t.allDayDate,1)};let{hiddenSegs:e}=t;return{start:Ef(e),end:SL(e)}}function Ef(t){return t.reduce(wL).eventRange.range.start}function wL(t,e){return t.eventRange.range.start<e.eventRange.range.start?t:e}function SL(t){return t.reduce(IL).eventRange.range.end}function IL(t,e){return t.eventRange.range.end>e.eventRange.range.end?t:e}var Kv=class{constructor(){this.handlers=[]}set(e){this.currentValue=e;for(let n of this.handlers)n(e)}subscribe(e){this.handlers.push(e),this.currentValue!==void 0&&e(this.currentValue)}},dl=class extends Kv{constructor(){super(...arguments),this.map=new Map}handle(e){let{map:n}=this,r=!1;e.isActive?(n.set(e.id,e),r=!0):n.has(e.id)&&(n.delete(e.id),r=!0),r&&this.set(n)}};var ML=[],xI={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},RI=Object.assign(Object.assign({},xI),{buttonHints:{prev:"Previous $0",next:"Next $0",today(t,e){return e==="day"?"Today":`This ${t}`}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint(t){return`Show ${t} more event${t===1?"":"s"}`}});function TL(t){let e=t.length>0?t[0].code:"en",n=ML.concat(t),r={en:RI};for(let i of n)r[i.code]=i;return{map:r,defaultCode:e}}function NI(t,e){return typeof t=="object"&&!Array.isArray(t)?OI(t.code,[t.code],t):AL(t,e)}function AL(t,e){let n=[].concat(t||[]),r=xL(n,e)||RI;return OI(t,n,r)}function xL(t,e){for(let n=0;n<t.length;n+=1){let r=t[n].toLocaleLowerCase().split("-");for(let i=r.length;i>0;i-=1){let o=r.slice(0,i).join("-");if(e[o])return e[o]}}return null}function OI(t,e,n){let r=af([xI,n],["buttonText"]);delete r.code;let{week:i}=r;return delete r.week,{codeArg:t,codes:e,week:i,simpleNumberFormat:new Intl.NumberFormat(t),options:r}}function on(t){return{id:vr(),name:t.name,premiumReleaseDate:t.premiumReleaseDate?new Date(t.premiumReleaseDate):void 0,deps:t.deps||[],reducers:t.reducers||[],isLoadingFuncs:t.isLoadingFuncs||[],contextInit:[].concat(t.contextInit||[]),eventRefiners:t.eventRefiners||{},eventDefMemberAdders:t.eventDefMemberAdders||[],eventSourceRefiners:t.eventSourceRefiners||{},isDraggableTransformers:t.isDraggableTransformers||[],eventDragMutationMassagers:t.eventDragMutationMassagers||[],eventDefMutationAppliers:t.eventDefMutationAppliers||[],dateSelectionTransformers:t.dateSelectionTransformers||[],datePointTransforms:t.datePointTransforms||[],dateSpanTransforms:t.dateSpanTransforms||[],views:t.views||{},viewPropsTransformers:t.viewPropsTransformers||[],isPropsValid:t.isPropsValid||null,externalDefTransforms:t.externalDefTransforms||[],viewContainerAppends:t.viewContainerAppends||[],eventDropTransformers:t.eventDropTransformers||[],componentInteractions:t.componentInteractions||[],calendarInteractions:t.calendarInteractions||[],themeClasses:t.themeClasses||{},eventSourceDefs:t.eventSourceDefs||[],cmdFormatter:t.cmdFormatter,recurringTypes:t.recurringTypes||[],namedTimeZonedImpl:t.namedTimeZonedImpl,initialView:t.initialView||"",elementDraggingImpl:t.elementDraggingImpl,optionChangeHandlers:t.optionChangeHandlers||{},scrollGridImpl:t.scrollGridImpl||null,listenerRefiners:t.listenerRefiners||{},optionRefiners:t.optionRefiners||{},propSetHandlers:t.propSetHandlers||{}}}function RL(t,e){let n={},r={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function i(o){for(let s of o){let a=s.name,l=n[a];l===void 0?(n[a]=s.id,i(s.deps),r=OL(r,s)):l!==s.id&&console.warn(`Duplicate plugin '${a}'`)}}return t&&i(t),i(e),r}function NL(){let t=[],e=[],n;return(r,i)=>((!n||!$n(r,t)||!$n(i,e))&&(n=RL(r,i)),t=r,e=i,n)}function OL(t,e){return{premiumReleaseDate:kL(t.premiumReleaseDate,e.premiumReleaseDate),reducers:t.reducers.concat(e.reducers),isLoadingFuncs:t.isLoadingFuncs.concat(e.isLoadingFuncs),contextInit:t.contextInit.concat(e.contextInit),eventRefiners:Object.assign(Object.assign({},t.eventRefiners),e.eventRefiners),eventDefMemberAdders:t.eventDefMemberAdders.concat(e.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},t.eventSourceRefiners),e.eventSourceRefiners),isDraggableTransformers:t.isDraggableTransformers.concat(e.isDraggableTransformers),eventDragMutationMassagers:t.eventDragMutationMassagers.concat(e.eventDragMutationMassagers),eventDefMutationAppliers:t.eventDefMutationAppliers.concat(e.eventDefMutationAppliers),dateSelectionTransformers:t.dateSelectionTransformers.concat(e.dateSelectionTransformers),datePointTransforms:t.datePointTransforms.concat(e.datePointTransforms),dateSpanTransforms:t.dateSpanTransforms.concat(e.dateSpanTransforms),views:Object.assign(Object.assign({},t.views),e.views),viewPropsTransformers:t.viewPropsTransformers.concat(e.viewPropsTransformers),isPropsValid:e.isPropsValid||t.isPropsValid,externalDefTransforms:t.externalDefTransforms.concat(e.externalDefTransforms),viewContainerAppends:t.viewContainerAppends.concat(e.viewContainerAppends),eventDropTransformers:t.eventDropTransformers.concat(e.eventDropTransformers),calendarInteractions:t.calendarInteractions.concat(e.calendarInteractions),componentInteractions:t.componentInteractions.concat(e.componentInteractions),themeClasses:Object.assign(Object.assign({},t.themeClasses),e.themeClasses),eventSourceDefs:t.eventSourceDefs.concat(e.eventSourceDefs),cmdFormatter:e.cmdFormatter||t.cmdFormatter,recurringTypes:t.recurringTypes.concat(e.recurringTypes),namedTimeZonedImpl:e.namedTimeZonedImpl||t.namedTimeZonedImpl,initialView:t.initialView||e.initialView,elementDraggingImpl:t.elementDraggingImpl||e.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},t.optionChangeHandlers),e.optionChangeHandlers),scrollGridImpl:e.scrollGridImpl||t.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},t.listenerRefiners),e.listenerRefiners),optionRefiners:Object.assign(Object.assign({},t.optionRefiners),e.optionRefiners),propSetHandlers:Object.assign(Object.assign({},t.propSetHandlers),e.propSetHandlers)}}function kL(t,e){return t===void 0?e:e===void 0?t:new Date(Math.max(t.valueOf(),e.valueOf()))}var Wn=class extends pr{};Wn.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"};Wn.prototype.baseIconClass="fc-icon";Wn.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"};Wn.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"};Wn.prototype.iconOverrideOption="buttonIcons";Wn.prototype.iconOverrideCustomButtonOption="icon";Wn.prototype.iconOverridePrefix="fc-icon-";function PL(t,e){let n={},r;for(r in t)zy(r,n,t,e);for(r in e)zy(r,n,t,e);return n}function zy(t,e,n,r){if(e[t])return e[t];let i=FL(t,e,n,r);return i&&(e[t]=i),i}function FL(t,e,n,r){let i=n[t],o=r[t],s=u=>i&&i[u]!==null?i[u]:o&&o[u]!==null?o[u]:null,a=s("component"),l=s("superType"),c=null;if(l){if(l===t)throw new Error("Can't have a custom view type that references itself");c=zy(l,e,n,r)}return!a&&c&&(a=c.component),a?{type:t,component:a,defaults:Object.assign(Object.assign({},c?c.defaults:{}),i?i.rawOptions:{}),overrides:Object.assign(Object.assign({},c?c.overrides:{}),o?o.rawOptions:{})}:null}function wI(t){return nn(t,LL)}function LL(t){let e=typeof t=="function"?{component:t}:t,{component:n}=e;return e.content?n=SI(e):n&&!(n.prototype instanceof ae)&&(n=SI(Object.assign(Object.assign({},e),{content:n}))),{superType:e.type,component:n,rawOptions:e}}function SI(t){return e=>g(rn.Consumer,null,n=>g(Dt,{elTag:"div",elClasses:by(n.viewSpec),renderProps:Object.assign(Object.assign({},e),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,customGenerator:t.content,classNameGenerator:t.classNames,didMount:t.didMount,willUnmount:t.willUnmount}))}function jL(t,e,n,r){let i=wI(t),o=wI(e.views),s=PL(i,o);return nn(s,a=>VL(a,o,e,n,r))}function VL(t,e,n,r,i){let o=t.overrides.duration||t.defaults.duration||r.duration||n.duration,s=null,a="",l="",c={};if(o&&(s=BL(o),s)){let h=Za(s);a=h.unit,h.value===1&&(l=a,c=e[a]?e[a].rawOptions:{})}let u=h=>{let f=h.buttonText||{},p=t.defaults.buttonTextKey;return p!=null&&f[p]!=null?f[p]:f[t.type]!=null?f[t.type]:f[l]!=null?f[l]:null},d=h=>{let f=h.buttonHints||{},p=t.defaults.buttonTextKey;return p!=null&&f[p]!=null?f[p]:f[t.type]!=null?f[t.type]:f[l]!=null?f[l]:null};return{type:t.type,component:t.component,duration:s,durationUnit:a,singleUnit:l,optionDefaults:t.defaults,optionOverrides:Object.assign(Object.assign({},c),t.overrides),buttonTextOverride:u(r)||u(n)||t.overrides.buttonText,buttonTextDefault:u(i)||t.defaults.buttonText||u(ri)||t.type,buttonTitleOverride:d(r)||d(n)||t.overrides.buttonHint,buttonTitleDefault:d(i)||t.defaults.buttonHint||d(ri)}}var II={};function BL(t){let e=JSON.stringify(t),n=II[e];return n===void 0&&(n=X(t),II[e]=n),n}function HL(t,e){return e.type==="CHANGE_VIEW_TYPE"&&(t=e.viewType),t}function UL(t,e){return e.type==="CHANGE_DATE"?e.dateMarker:t}function $L(t,e,n){let r=t.initialDate;return r!=null?e.createMarker(r):n.getDateMarker()}function zL(t,e){return e.type==="SET_OPTION"?Object.assign(Object.assign({},t),{[e.optionName]:e.rawOptionValue}):t}function WL(t,e,n,r){let i;switch(e.type){case"CHANGE_VIEW_TYPE":return r.build(e.dateMarker||n);case"CHANGE_DATE":return r.build(e.dateMarker);case"PREV":if(i=r.buildPrev(t,n),i.isValid)return i;break;case"NEXT":if(i=r.buildNext(t,n),i.isValid)return i;break}return t}function GL(t,e,n){let r=e?e.activeRange:null;return PI({},JL(t,n),r,n)}function qL(t,e,n,r){let i=n?n.activeRange:null;switch(e.type){case"ADD_EVENT_SOURCES":return PI(t,e.sources,i,r);case"REMOVE_EVENT_SOURCE":return QL(t,e.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?FI(t,i,r):t;case"FETCH_EVENT_SOURCES":return Jy(t,e.sourceIds?my(e.sourceIds):LI(t,r),i,e.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return XL(t,e.sourceId,e.fetchId,e.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return t}}function YL(t,e,n){let r=e?e.activeRange:null;return Jy(t,LI(t,n),r,!0,n)}function kI(t){for(let e in t)if(t[e].isFetching)return!0;return!1}function PI(t,e,n,r){let i={};for(let o of e)i[o.sourceId]=o;return n&&(i=FI(i,n,r)),Object.assign(Object.assign({},t),i)}function QL(t,e){return hr(t,n=>n.sourceId!==e)}function FI(t,e,n){return Jy(t,hr(t,r=>ZL(r,e,n)),e,!1,n)}function ZL(t,e,n){return jI(t,n)?!n.options.lazyFetching||!t.fetchRange||t.isFetching||e.start<t.fetchRange.start||e.end>t.fetchRange.end:!t.latestFetchId}function Jy(t,e,n,r,i){let o={};for(let s in t){let a=t[s];e[s]?o[s]=KL(a,n,r,i):o[s]=a}return o}function KL(t,e,n,r){let{options:i,calendarApi:o}=r,s=r.pluginHooks.eventSourceDefs[t.sourceDefId],a=vr();return s.fetch({eventSource:t,range:e,isRefetch:n,context:r},l=>{let{rawEvents:c}=l;i.eventSourceSuccess&&(c=i.eventSourceSuccess.call(o,c,l.response)||c),t.success&&(c=t.success.call(o,c,l.response)||c),r.dispatch({type:"RECEIVE_EVENTS",sourceId:t.sourceId,fetchId:a,fetchRange:e,rawEvents:c})},l=>{let c=!1;i.eventSourceFailure&&(i.eventSourceFailure.call(o,l),c=!0),t.failure&&(t.failure(l),c=!0),c||console.warn(l.message,l),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:t.sourceId,fetchId:a,fetchRange:e,error:l})}),Object.assign(Object.assign({},t),{isFetching:!0,latestFetchId:a})}function XL(t,e,n,r){let i=t[e];return i&&n===i.latestFetchId?Object.assign(Object.assign({},t),{[e]:Object.assign(Object.assign({},i),{isFetching:!1,fetchRange:r})}):t}function LI(t,e){return hr(t,n=>jI(n,e))}function JL(t,e){let n=wy(e),r=[].concat(t.eventSources||[]),i=[];t.initialEvents&&r.unshift(t.initialEvents),t.events&&r.unshift(t.events);for(let o of r){let s=_y(o,e,n);s&&i.push(s)}return i}function jI(t,e){return!e.pluginHooks.eventSourceDefs[t.sourceDefId].ignoreRange}function ej(t,e){switch(e.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return e.selection;default:return t}}function tj(t,e){switch(e.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return e.eventInstanceId;default:return t}}function nj(t,e){let n;switch(e.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=e.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function rj(t,e){let n;switch(e.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=e.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return t}}function ij(t,e,n,r,i){let o=t.headerToolbar?MI(t.headerToolbar,t,e,n,r,i):null,s=t.footerToolbar?MI(t.footerToolbar,t,e,n,r,i):null;return{header:o,footer:s}}function MI(t,e,n,r,i,o){let s={},a=[],l=!1;for(let c in t){let u=t[c],d=oj(u,e,n,r,i,o);s[c]=d.widgets,a.push(...d.viewsWithButtons),l=l||d.hasTitle}return{sectionWidgets:s,viewsWithButtons:a,hasTitle:l}}function oj(t,e,n,r,i,o){let s=e.direction==="rtl",a=e.customButtons||{},l=n.buttonText||{},c=e.buttonText||{},u=n.buttonHints||{},d=e.buttonHints||{},h=t?t.split(" "):[],f=[],p=!1;return{widgets:h.map(b=>b.split(",").map(D=>{if(D==="title")return p=!0,{buttonName:D};let I,N,A,me,J,le;if(I=a[D])A=ie=>{I.click&&I.click.call(ie.target,ie,ie.target)},(me=r.getCustomButtonIconClass(I))||(me=r.getIconClass(D,s))||(J=I.text),le=I.hint||I.text;else if(N=i[D]){f.push(D),A=()=>{o.changeView(D)},(J=N.buttonTextOverride)||(me=r.getIconClass(D,s))||(J=N.buttonTextDefault);let ie=N.buttonTextOverride||N.buttonTextDefault;le=ls(N.buttonTitleOverride||N.buttonTitleDefault||e.viewHint,[ie,D],ie)}else if(o[D])if(A=()=>{o[D]()},(J=l[D])||(me=r.getIconClass(D,s))||(J=c[D]),D==="prevYear"||D==="nextYear"){let ie=D==="prevYear"?"prev":"next";le=ls(u[ie]||d[ie],[c.year||"year","year"],c[D])}else le=ie=>ls(u[D]||d[D],[c[ie]||ie,ie],c[D]);return{buttonName:D,buttonClick:A,buttonIcon:me,buttonText:J,buttonHint:le}})),viewsWithButtons:f,hasTitle:p}}var Wy=class{constructor(e,n,r){this.type=e,this.getCurrentData=n,this.dateEnv=r}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(e){return this.getCurrentData().options[e]}},sj={ignoreRange:!0,parseMeta(t){return Array.isArray(t.events)?t.events:null},fetch(t,e){e({rawEvents:t.eventSource.meta})}},aj=on({name:"array-event-source",eventSourceDefs:[sj]}),lj={parseMeta(t){return typeof t.events=="function"?t.events:null},fetch(t,e,n){let{dateEnv:r}=t.context,i=t.eventSource.meta;Ry(i.bind(null,xy(t.range,r)),o=>e({rawEvents:o}),n)}},cj=on({name:"func-event-source",eventSourceDefs:[lj]}),uj={method:String,extraParams:C,startParam:String,endParam:String,timeZoneParam:String},dj={parseMeta(t){return t.url&&(t.format==="json"||!t.format)?{url:t.url,format:"json",method:(t.method||"GET").toUpperCase(),extraParams:t.extraParams,startParam:t.startParam,endParam:t.endParam,timeZoneParam:t.timeZoneParam}:null},fetch(t,e,n){let{meta:r}=t.eventSource,i=hj(r,t.range,t.context);Ny(r.method,r.url,i).then(([o,s])=>{e({rawEvents:o,response:s})},n)}},fj=on({name:"json-event-source",eventSourceRefiners:uj,eventSourceDefs:[dj]});function hj(t,e,n){let{dateEnv:r,options:i}=n,o,s,a,l,c={};return o=t.startParam,o==null&&(o=i.startParam),s=t.endParam,s==null&&(s=i.endParam),a=t.timeZoneParam,a==null&&(a=i.timeZoneParam),typeof t.extraParams=="function"?l=t.extraParams():l=t.extraParams||{},Object.assign(c,l),c[o]=r.formatIso(e.start),c[s]=r.formatIso(e.end),r.timeZone!=="local"&&(c[a]=r.timeZone),c}var pj={daysOfWeek:C,startTime:X,endTime:X,duration:X,startRecur:C,endRecur:C},gj={parse(t,e){if(t.daysOfWeek||t.startTime||t.endTime||t.startRecur||t.endRecur){let n={daysOfWeek:t.daysOfWeek||null,startTime:t.startTime||null,endTime:t.endTime||null,startRecur:t.startRecur?e.createMarker(t.startRecur):null,endRecur:t.endRecur?e.createMarker(t.endRecur):null,dateEnv:e},r;return t.duration&&(r=t.duration),!r&&t.startTime&&t.endTime&&(r=VS(t.endTime,t.startTime)),{allDayGuess:!t.startTime&&!t.endTime,duration:r,typeData:n}}return null},expand(t,e,n){let r=wn(e,{start:t.startRecur,end:t.endRecur});return r?vj(t.daysOfWeek,t.startTime,t.dateEnv,n,r):[]}},mj=on({name:"simple-recurring-event",recurringTypes:[gj],eventRefiners:pj});function vj(t,e,n,r,i){let o=t?my(t):null,s=ge(i.start),a=i.end,l=[];for(e&&(e.milliseconds<0?a=Ve(a,1):e.milliseconds>=1e3*60*60*24&&(s=Ve(s,-1)));s<a;){let c;(!o||o[s.getUTCDay()])&&(e?c=r.add(s,e):c=s,l.push(r.createMarker(n.toDate(c)))),s=Ve(s,1)}return l}var yj=on({name:"change-handler",optionChangeHandlers:{events(t,e){TI([t],e)},eventSources:TI}});function TI(t,e){let n=lf(e.getCurrentData().eventSources);if(n.length===1&&t.length===1&&Array.isArray(n[0]._raw)&&Array.isArray(t[0])){e.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:t[0]});return}let r=[];for(let i of t){let o=!1;for(let s=0;s<n.length;s+=1)if(n[s]._raw===i){n.splice(s,1),o=!0;break}o||r.push(i)}for(let i of n)e.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:i.sourceId});for(let i of r)e.calendarApi.addEventSource(i)}function bj(t,e){e.emitter.trigger("datesSet",Object.assign(Object.assign({},xy(t.activeRange,e.dateEnv)),{view:e.viewApi}))}function Ej(t,e){let{emitter:n}=e;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",zn(t,e))}var Dj=[aj,cj,fj,mj,yj,on({name:"misc",isLoadingFuncs:[t=>kI(t.eventSources)],propSetHandlers:{dateProfile:bj,eventStore:Ej}})],Gy=class{constructor(e,n){this.runTaskOption=e,this.drainedOption=n,this.queue=[],this.delayedRunner=new Wi(this.drain.bind(this))}request(e,n){this.queue.push(e),this.delayedRunner.request(n)}pause(e){this.delayedRunner.pause(e)}resume(e,n){this.delayedRunner.resume(e,n)}drain(){let{queue:e}=this;for(;e.length;){let n=[],r;for(;r=e.shift();)this.runTask(r),n.push(r);this.drained(n)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}};function Cj(t,e,n){let r;return/^(year|month)$/.test(t.currentRangeUnit)?r=t.currentRange:r=t.activeRange,n.formatRange(r.start,r.end,Ee(e.titleFormat||_j(t)),{isEndExclusive:t.isRangeAllDay,defaultSeparator:e.titleRangeSeparator})}function _j(t){let{currentRangeUnit:e}=t;if(e==="year")return{year:"numeric"};if(e==="month")return{year:"numeric",month:"long"};let n=ss(t.currentRange.start,t.currentRange.end);return n!==null&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}var Df=class{constructor(){this.resetListeners=new Set}handleInput(e,n){let r=this.dateEnv;if(e!==r&&(typeof n=="function"?this.nowFn=n:r||(this.nowAnchorDate=e.toDate(n?e.createMarker(n):e.createNowMarker()),this.nowAnchorQueried=Date.now()),this.dateEnv=e,r))for(let i of this.resetListeners.values())i()}getDateMarker(){return this.nowAnchorDate?this.dateEnv.timestampToMarker(this.nowAnchorDate.valueOf()+(Date.now()-this.nowAnchorQueried)):this.dateEnv.createMarker(this.nowFn())}addResetListener(e){this.resetListeners.add(e)}removeResetListener(e){this.resetListeners.delete(e)}},qy=class{constructor(e){this.computeCurrentViewData=k(this._computeCurrentViewData),this.organizeRawLocales=k(TL),this.buildLocale=k(NI),this.buildPluginHooks=NL(),this.buildDateEnv=k(wj),this.buildTheme=k(Sj),this.parseToolbars=k(ij),this.buildViewSpecs=k(jL),this.buildDateProfileGenerator=cs(Ij),this.buildViewApi=k(Mj),this.buildViewUiProps=cs(xj),this.buildEventUiBySource=k(Tj,Mt),this.buildEventUiBases=k(Aj),this.parseContextBusinessHours=cs(Rj),this.buildTitle=k(Cj),this.nowManager=new Df,this.emitter=new mr,this.actionRunner=new Gy(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=()=>this.data,this.dispatch=h=>{this.actionRunner.request(h)},this.props=e,this.actionRunner.pause(),this.nowManager=new Df;let n={},r=this.computeOptionsData(e.optionOverrides,n,e.calendarApi),i=r.calendarOptions.initialView||r.pluginHooks.initialView,o=this.computeCurrentViewData(i,r,e.optionOverrides,n);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(o.options);let s={nowManager:this.nowManager,dateEnv:r.dateEnv,options:r.calendarOptions,pluginHooks:r.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},a=$L(r.calendarOptions,r.dateEnv,this.nowManager),l=o.dateProfileGenerator.build(a);tn(l.activeRange,a)||(a=l.currentRange.start);for(let h of r.pluginHooks.contextInit)h(s);let c=GL(r.calendarOptions,l,s),u={dynamicOptionOverrides:n,currentViewType:i,currentDate:a,dateProfile:l,businessHours:this.parseContextBusinessHours(s),eventSources:c,eventUiBases:{},eventStore:ht(),renderableEventStore:ht(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(s).selectionConfig},d=Object.assign(Object.assign({},s),u);for(let h of r.pluginHooks.reducers)Object.assign(u,h(null,null,d));$y(u,s)&&this.emitter.trigger("loading",!0),this.state=u,this.updateData(),this.actionRunner.resume()}resetOptions(e,n){let{props:r}=this;n===void 0?r.optionOverrides=e:(r.optionOverrides=Object.assign(Object.assign({},r.optionOverrides||{}),e),this.optionsForRefining.push(...n)),(n===void 0||n.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:n,state:r,emitter:i}=this,o=zL(r.dynamicOptionOverrides,e),s=this.computeOptionsData(n.optionOverrides,o,n.calendarApi),a=HL(r.currentViewType,e),l=this.computeCurrentViewData(a,s,n.optionOverrides,o);n.calendarApi.currentDataManager=this,i.setThisContext(n.calendarApi),i.setOptions(l.options);let c={nowManager:this.nowManager,dateEnv:s.dateEnv,options:s.calendarOptions,pluginHooks:s.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:i,getCurrentData:this.getCurrentData},{currentDate:u,dateProfile:d}=r;this.data&&this.data.dateProfileGenerator!==l.dateProfileGenerator&&(d=l.dateProfileGenerator.build(u)),u=UL(u,e),d=WL(d,e,u,l.dateProfileGenerator),(e.type==="PREV"||e.type==="NEXT"||!tn(d.currentRange,u))&&(u=d.currentRange.start);let h=qL(r.eventSources,e,d,c),f=XS(r.eventStore,e,h,d,c),E=kI(h)&&!l.options.progressiveEventRendering&&r.renderableEventStore||f,{eventUiSingleBase:b,selectionConfig:D}=this.buildViewUiProps(c),I=this.buildEventUiBySource(h),N=this.buildEventUiBases(E.defs,b,I),A={dynamicOptionOverrides:o,currentViewType:a,currentDate:u,dateProfile:d,eventSources:h,eventStore:f,renderableEventStore:E,selectionConfig:D,eventUiBases:N,businessHours:this.parseContextBusinessHours(c),dateSelection:ej(r.dateSelection,e),eventSelection:tj(r.eventSelection,e),eventDrag:nj(r.eventDrag,e),eventResize:rj(r.eventResize,e)},me=Object.assign(Object.assign({},c),A);for(let ie of s.pluginHooks.reducers)Object.assign(A,ie(r,e,me));let J=$y(r,c),le=$y(A,c);!J&&le?i.trigger("loading",!0):J&&!le&&i.trigger("loading",!1),this.state=A,n.onAction&&n.onAction(e)}updateData(){let{props:e,state:n}=this,r=this.data,i=this.computeOptionsData(e.optionOverrides,n.dynamicOptionOverrides,e.calendarApi),o=this.computeCurrentViewData(n.currentViewType,i,e.optionOverrides,n.dynamicOptionOverrides),s=this.data=Object.assign(Object.assign(Object.assign({nowManager:this.nowManager,viewTitle:this.buildTitle(n.dateProfile,o.options,i.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},i),o),n),a=i.pluginHooks.optionChangeHandlers,l=r&&r.calendarOptions,c=i.calendarOptions;if(l&&l!==c){l.timeZone!==c.timeZone&&(n.eventSources=s.eventSources=YL(s.eventSources,n.dateProfile,s),n.eventStore=s.eventStore=Sy(s.eventStore,r.dateEnv,s.dateEnv),n.renderableEventStore=s.renderableEventStore=Sy(s.renderableEventStore,r.dateEnv,s.dateEnv));for(let u in a)(this.optionsForHandling.indexOf(u)!==-1||l[u]!==c[u])&&a[u](c[u],s)}this.optionsForHandling=[],e.onData&&e.onData(s)}computeOptionsData(e,n,r){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&n===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:i,pluginHooks:o,localeDefaults:s,availableLocaleData:a,extra:l}=this.processRawCalendarOptions(e,n);AI(l);let c=this.buildDateEnv(i.timeZone,i.locale,i.weekNumberCalculation,i.firstDay,i.weekText,o,a,i.defaultRangeSeparator),u=this.buildViewSpecs(o.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,s),d=this.buildTheme(i,o),h=this.parseToolbars(i,this.stableOptionOverrides,d,u,r);return this.stableCalendarOptionsData={calendarOptions:i,pluginHooks:o,dateEnv:c,viewSpecs:u,theme:d,toolbarConfig:h,localeDefaults:s,availableRawLocales:a.map}}processRawCalendarOptions(e,n){let{locales:r,locale:i}=of([ri,e,n]),o=this.organizeRawLocales(r),s=o.map,a=this.buildLocale(i||o.defaultCode,s).options,l=this.buildPluginHooks(e.plugins||[],Dj),c=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},hy),py),gy),l.listenerRefiners),l.optionRefiners),u={},d=of([ri,a,e,n]),h={},f=this.currentCalendarOptionsInput,p=this.currentCalendarOptionsRefined,E=!1;for(let b in d)this.optionsForRefining.indexOf(b)===-1&&(d[b]===f[b]||ii[b]&&b in f&&ii[b](f[b],d[b]))?h[b]=p[b]:c[b]?(h[b]=c[b](d[b]),E=!0):u[b]=f[b];return E&&(this.currentCalendarOptionsInput=d,this.currentCalendarOptionsRefined=h,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=n),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:l,availableLocaleData:o,localeDefaults:a,extra:u}}_computeCurrentViewData(e,n,r,i){let o=n.viewSpecs[e];if(!o)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:s,extra:a}=this.processRawViewOptions(o,n.pluginHooks,n.localeDefaults,r,i);AI(a),this.nowManager.handleInput(n.dateEnv,s.now);let l=this.buildDateProfileGenerator({dateProfileGeneratorClass:o.optionDefaults.dateProfileGeneratorClass,nowManager:this.nowManager,duration:o.duration,durationUnit:o.durationUnit,usesMinMaxTime:o.optionDefaults.usesMinMaxTime,dateEnv:n.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:s.slotMinTime,slotMaxTime:s.slotMaxTime,showNonCurrentDates:s.showNonCurrentDates,dayCount:s.dayCount,dateAlignment:s.dateAlignment,dateIncrement:s.dateIncrement,hiddenDays:s.hiddenDays,weekends:s.weekends,validRangeInput:s.validRange,visibleRangeInput:s.visibleRange,fixedWeekCount:s.fixedWeekCount}),c=this.buildViewApi(e,this.getCurrentData,n.dateEnv);return{viewSpec:o,options:s,dateProfileGenerator:l,viewApi:c}}processRawViewOptions(e,n,r,i,o){let s=of([ri,e.optionDefaults,r,i,e.optionOverrides,o]),a=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},hy),py),gy),US),n.listenerRefiners),n.optionRefiners),l={},c=this.currentViewOptionsInput,u=this.currentViewOptionsRefined,d=!1,h={};for(let f in s)s[f]===c[f]||ii[f]&&ii[f](s[f],c[f])?l[f]=u[f]:(s[f]===this.currentCalendarOptionsInput[f]||ii[f]&&ii[f](s[f],this.currentCalendarOptionsInput[f])?f in this.currentCalendarOptionsRefined&&(l[f]=this.currentCalendarOptionsRefined[f]):a[f]?l[f]=a[f](s[f]):h[f]=s[f],d=!0);return d&&(this.currentViewOptionsInput=s,this.currentViewOptionsRefined=l),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:h}}};function wj(t,e,n,r,i,o,s,a){let l=NI(e||s.defaultCode,s.map);return new Ka({calendarSystem:"gregory",timeZone:t,namedTimeZoneImpl:o.namedTimeZonedImpl,locale:l,weekNumberCalculation:n,firstDay:r,weekText:i,cmdFormatter:o.cmdFormatter,defaultSeparator:a})}function Sj(t,e){let n=e.themeClasses[t.themeSystem]||Wn;return new n(t)}function Ij(t){let e=t.dateProfileGeneratorClass||Gi;return new e(t)}function Mj(t,e,n){return new Wy(t,e,n)}function Tj(t){return nn(t,e=>e.ui)}function Aj(t,e,n){let r={"":e};for(let i in t){let o=t[i];o.sourceId&&n[o.sourceId]&&(r[i]=n[o.sourceId])}return r}function xj(t){let{options:e}=t;return{eventUiSingleBase:ds({display:e.eventDisplay,editable:e.editable,startEditable:e.eventStartEditable,durationEditable:e.eventDurationEditable,constraint:e.eventConstraint,overlap:typeof e.eventOverlap=="boolean"?e.eventOverlap:void 0,allow:e.eventAllow,backgroundColor:e.eventBackgroundColor,borderColor:e.eventBorderColor,textColor:e.eventTextColor,color:e.eventColor},t),selectionConfig:ds({constraint:e.selectConstraint,overlap:typeof e.selectOverlap=="boolean"?e.selectOverlap:void 0,allow:e.selectAllow},t)}}function $y(t,e){for(let n of e.pluginHooks.isLoadingFuncs)if(n(t))return!0;return!1}function Rj(t){return Iy(t.options.businessHours,t)}function AI(t,e){for(let n in t)console.warn(`Unknown option '${n}'`+(e?` for view '${e}'`:""))}var Yy=class extends ae{render(){let e=this.props.widgetGroups.map(n=>this.renderWidgetGroup(n));return g("div",{className:"fc-toolbar-chunk"},...e)}renderWidgetGroup(e){let{props:n}=this,{theme:r}=this.context,i=[],o=!0;for(let s of e){let{buttonName:a,buttonClick:l,buttonText:c,buttonIcon:u,buttonHint:d}=s;if(a==="title")o=!1,i.push(g("h2",{className:"fc-toolbar-title",id:n.titleId},n.title));else{let h=a===n.activeButton,f=!n.isTodayEnabled&&a==="today"||!n.isPrevEnabled&&a==="prev"||!n.isNextEnabled&&a==="next",p=[`fc-${a}-button`,r.getClass("button")];h&&p.push(r.getClass("buttonActive")),i.push(g("button",{type:"button",title:typeof d=="function"?d(n.navUnit):d,disabled:f,"aria-pressed":h,className:p.join(" "),onClick:l},c||(u?g("span",{className:u,role:"img"}):"")))}}if(i.length>1){let s=o&&r.getClass("buttonGroup")||"";return g("div",{className:s},...i)}return i[0]}},Cf=class extends ae{render(){let{model:e,extraClassName:n}=this.props,r=!1,i,o,s=e.sectionWidgets,a=s.center;return s.left?(r=!0,i=s.left):i=s.start,s.right?(r=!0,o=s.right):o=s.end,g("div",{className:[n||"","fc-toolbar",r?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",i||[]),this.renderSection("center",a||[]),this.renderSection("end",o||[]))}renderSection(e,n){let{props:r}=this;return g(Yy,{key:e,widgetGroups:n,title:r.title,navUnit:r.navUnit,activeButton:r.activeButton,isTodayEnabled:r.isTodayEnabled,isPrevEnabled:r.isPrevEnabled,isNextEnabled:r.isNextEnabled,titleId:r.titleId})}},Qy=class extends ae{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,zt(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:n}=this,{aspectRatio:r}=e,i=["fc-view-harness",r||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],o="",s="";return r?n.availableWidth!==null?o=n.availableWidth/r:s=`${1/r*100}%`:o=e.height||"",g("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:i.join(" "),style:{height:o,paddingBottom:s}},e.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}},Zy=class extends Sn{constructor(e){super(e),this.handleSegClick=(n,r)=>{let{component:i}=this,{context:o}=i,s=br(r);if(s&&i.isValidSegDownEl(n.target)){let a=Ze(n.target,".fc-event-forced-url"),l=a?a.querySelector("a[href]").href:"";o.emitter.trigger("eventClick",{el:r,event:new De(i.context,s.eventRange.def,s.eventRange.instance),jsEvent:n,view:o.viewApi}),l&&!n.defaultPrevented&&(window.location.href=l)}},this.destroy=ey(e.el,"click",".fc-event",this.handleSegClick)}},Ky=class extends Sn{constructor(e){super(e),this.handleEventElRemove=n=>{n===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(n,r)=>{br(r)&&(this.currentSegEl=r,this.triggerEvent("eventMouseEnter",n,r))},this.handleSegLeave=(n,r)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",n,r))},this.removeHoverListeners=OS(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,n,r){let{component:i}=this,{context:o}=i,s=br(r);(!n||i.isValidSegDownEl(n.target))&&o.emitter.trigger(e,{el:r,event:new De(o,s.eventRange.def,s.eventRange.instance),jsEvent:n,view:o.viewApi})}},Xy=class extends bl{constructor(){super(...arguments),this.buildViewContext=k(qS),this.buildViewPropTransformers=k(Oj),this.buildToolbarProps=k(Nj),this.headerRef=Ge(),this.footerRef=Ge(),this.interactionsStore={},this.state={viewLabelId:io()},this.registerInteractiveComponent=(e,n)=>
vendor: 4,614 bytes, line 5
5{let r=iI(e,n),s=[Zy,Ky].concat(this.props.pluginHooks.componentInteractions).map(a=>new a(r));this.interactionsStore[e.uid]=s,fs[e.uid]=r},this.unregisterInteractiveComponent=e=>{let n=this.interactionsStore[e.uid];if(n){for(let r of n)r.destroy();delete this.interactionsStore[e.uid]}delete fs[e.uid]},this.resizeRunner=new Wi(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=e=>{let{options:n}=this.props;n.handleWindowResize&&e.target===window&&this.resizeRunner.request(n.windowResizeDelay)}}render(){let{props:e}=this,{toolbarConfig:n,options:r}=e,i=!1,o="",s;e.isHeightAuto||e.forPrint?o="":r.height!=null?i=!0:r.contentHeight!=null?o=r.contentHeight:s=Math.max(r.aspectRatio,.5);let a=this.buildViewContext(e.viewSpec,e.viewApi,e.options,e.dateProfileGenerator,e.dateEnv,e.nowManager,e.theme,e.pluginHooks,e.dispatch,e.getCurrentData,e.emitter,e.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),l=n.header&&n.header.hasTitle?this.state.viewLabelId:void 0;return g(rn.Provider,{value:a},g(Er,{unit:"day"},c=>{let u=this.buildToolbarProps(e.viewSpec,e.dateProfile,e.dateProfileGenerator,e.currentDate,c,e.viewTitle);return g(ce,null,n.header&&g(Cf,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:l},u)),g(Qy,{liquid:i,height:o,aspectRatio:s,labeledById:l},this.renderView(e),this.buildAppendContent()),n.footer&&g(Cf,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},u)))}))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(r=>new r(e)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:n}=e.pluginHooks;for(let r in n)n[r](e[r],e)}componentDidUpdate(e){let{props:n}=this,{propSetHandlers:r}=n.pluginHooks;for(let i in r)n[i]!==e[i]&&r[i](n[i],n)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this,n=e.pluginHooks.viewContainerAppends.map(r=>r(e));return g(ce,{},...n)}renderView(e){let{pluginHooks:n}=e,{viewSpec:r}=e,i={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},o=this.buildViewPropTransformers(n.viewPropsTransformers);for(let a of o)Object.assign(i,a.transform(i,e));let s=r.component;return g(s,Object.assign({},i))}};function Nj(t,e,n,r,i,o){let s=n.build(i,void 0,!1),a=n.buildPrev(e,r,!1),l=n.buildNext(e,r,!1);return{title:o,activeButton:t.type,navUnit:t.singleUnit,isTodayEnabled:s.isValid&&!tn(e.currentRange,i),isPrevEnabled:a.isValid,isNextEnabled:l.isValid}}function Oj(t){return t.map(e=>new e)}var _f=class extends il{constructor(e,n={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=r=>{switch(r.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=r=>{this.currentData=r,this.renderRunner.request(r.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:r}=this;Xa(()=>{Qr(g(rl,{options:r.calendarOptions,theme:r.theme,emitter:r.emitter},(i,o,s,a)=>(this.setClassNames(i),this.setHeight(o),g(yy.Provider,{value:this.customContentRenderId},g(Xy,Object.assign({isHeightAuto:s,forPrint:a},r))))),this.el)})}else this.isRendered&&(this.isRendered=!1,Qr(null,this.el),this.setClassNames([]),this.setHeight(""))},AS(e),this.el=e,this.renderRunner=new Wi(this.handleRenderRequest),new qy({optionOverrides:n,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){Xa(()=>{super.updateSize()})}batchRendering(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(e,n){this.currentDataManager.resetOptions(e,n)}setClassNames(e){if(!$n(e,this.currentClassNames)){let{classList:n}=this.el;
5for(let r of this.currentClassNames)n.remove(r);for(let r of e)n.add(r);this.currentClassNames=e}}setHeight(e){Jv(this.el,"height",e)}};var Pj=["*"],Fj=["rootEl"],ms=t=>({$implicit:t});function Lj(t,e){if(t&1&&(m(0,"div",2,0),ar(2,3),v()),t&2){let n=F();B("ngClass",n.elClasses||"")("ngStyle",n.elStyle||null),_(2),B("ngTemplateOutlet",n.template)("ngTemplateOutletContext",Hr(4,ms,n.renderProps))}}function jj(t,e){if(t&1&&(m(0,"span",2,0),ar(2,3),v()),t&2){let n=F();B("ngClass",n.elClasses||"")("ngStyle",n.elStyle||null),_(2),B("ngTemplateOutlet",n.template)("ngTemplateOutletContext",Hr(4,ms,n.renderProps))}}function Vj(t,e){if(t&1&&(m(0,"a",2,0),ar(2,3),v()),t&2){let n=F();B("ngClass",n.elClasses||"")("ngStyle",n.elStyle||null),_(2),B("ngTemplateOutlet",n.template)("ngTemplateOutletContext",Hr(4,ms,n.renderProps))}}function Bj(t,e){if(t&1&&(m(0,"tr",2,0),ar(2,3),v()),t&2){let n=F();B("ngClass",n.elClasses||"")("ngStyle",n.elStyle||null),_(2),B("ngTemplateOutlet",n.template)("ngTemplateOutletContext",Hr(4,ms,n.renderProps))}}function Hj(t,e){if(t&1&&(m(0,"th",2,0),ar(2,3),v()),t&2){let n=F();B("ngClass",n.elClasses||"")("ngStyle",n.elStyle||null),_(2),B("ngTemplateOutlet",n.template)("ngTemplateOutletContext",Hr(4,ms,n.renderProps))}}function Uj(t,e){if(t&1&&(m(0,"td",2,0),ar(2,3),v()),t&2){let n=F();B("ngClass",n.elClasses||"")("ngStyle",n.elStyle||null),_(2),B("ngTemplateOutlet",n.template)("ngTemplateOutletContext",Hr(4,ms,n.renderProps))}}var $j=["dayHeaderContent"],zj=["dayCellContent"],Wj=["weekNumberContent"],Gj=["nowIndicatorContent"],qj=["eventContent"],Yj=["slotLaneContent"],Qj=["slotLabelContent"],Zj=["allDayContent"],Kj=["moreLinkContent"],Xj=["noEventsContent"],Jj=["resourceAreaHeaderContent"],e2=["resourceGroupLabelContent"],t2=["resourceLabelContent"],n2=["resourceLaneContent"],r2=["resourceGroupLaneContent"];function i2(t,e){if(t&1&&oe(0,"transport-container",1),t&2){let n=e.$implicit;B("inPlaceOf",n.containerEl)("reportEl",n.reportNewContainerEl)("elTag",n.elTag)("elClasses",n.elClasses)("elStyle",n.elStyle)("elAttrs",n.elAttrs)("template",n.generatorMeta)("renderProps",n.renderProps)}}var VI={headerToolbar:!0,footerToolbar:!0,events:!0,eventSources:!0,resources:!0},o2=["events","eventSources","resources"],s2=Object.prototype.hasOwnProperty;function Sf(t){return Array.isArray(t)?t.map(Sf):t instanceof Date?new Date(t.valueOf()):typeof t=="object"&&t?HI(t,Sf):t}function HI(t,e){let n={};for(let r in t)s2.call(t,r)&&(n[r]=e(t[r],r));return n}function tb(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var n,r,i;if(Array.isArray(t)){if(n=t.length,n!=e.length)return!1;for(r=n;r--!==0;)if(!tb(t[r],e[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[r]))return!1;for(r=n;r--!==0;){var o=i[r];if(!tb(t[o],e[o]))return!1}return!0}return t!==t&&e!==e}var wf=typeof document<"u"?document.createDocumentFragment():null,a2=(()=>{class t{constructor(n){this.element=n}ngAfterViewInit(){wf&&wf.appendChild(this.element.nativeElement)}ngOnDestroy(){wf&&wf.removeChild(this.element.nativeElement)}}return t.\u0275fac=function(n){return new(n||t)(R(ct))},t.\u0275cmp=re({type:t,selectors:[["offscreen-fragment"]],standalone:!1,ngContentSelectors:Pj,decls:1,vars:0,template:function(n,r){n&1&&(gm(),mm(0))},encapsulation:2}),t})(),gs=typeof document<"u"?document.createDocumentFragment():null,l2=(()=>{class t{ngAfterViewInit(){let n=this.rootElRef?.nativeElement;BI(n,this.inPlaceOf),eb(n,void 0,this.elAttrs),this.inPlaceOf.style.display="none",this.reportEl(n)}ngOnChanges(n){let r=this.rootElRef?.nativeElement;if(r)if(this.inPlaceOf.parentNode!==gs)BI(r,this.inPlaceOf),eb(r,void 0,this.elAttrs),this.reportEl(r);else{let i=n.elAttrs;i&&eb(r,i.previousValue,i.currentValue)}}ngOnDestroy(){this.inPlaceOf.parentNode===gs&&gs&&gs.removeChild(this.inPlaceOf),this.reportEl(null)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=re({type:t,selectors:[["transport-container"]],viewQuery:function(n,r){if(n&1&&Tu(Fj,5),n&2){let i;Je(i=et())&&(r.rootElRef=i.first)}},inputs:{inPlaceOf:"inPlaceOf",reportEl:"reportEl",elTag:"elTag",elClasses:"elClasses",elStyle:"elStyle",elAttrs:"elAttrs",template:"template",renderProps:"renderProps"},standalone:!1,features:[vn],decls:6,vars:6,consts:[["rootEl",""],[3,"ngIf"],[3,"ngClass","ngStyle"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,r){n&1&&Ri(0,Lj,3,6,"ng-template",1)(1,jj,3,6,"ng-template",1)(2,Vj,3,6,"ng-template",1)(3,Bj,3,6,"ng-template",1)(4,Hj,3,6,"ng-template",1)(5,Uj,3,6,"ng-template",1),n&2&&(B("ngIf",r.elTag=="div"),_(),B("ngIf",r.elTag=="span"),_(),B("ngIf",r.elTag=="a"),_(),B("ngIf",r.elTag=="tr"),_(),B("ngIf",r.elTag=="th"),_(),B("ngIf",r.elTag=="td"))},dependencies:[_a,km,Pm,Fm],encapsulation:2}),t})();function BI(t,e){e.parentNode?.insertBefore(t,e.nextSibling),gs&&gs.appendChild(e)}function eb(t,e={},n={}){for(let r in e)r in n||(t[r]=null);for(let r in n)t[r]=n[r]}var UI=(()=>{class t{constructor(n,r){this.element=n,this.calendar=null,this.optionSnapshot={},this.customRenderingMap=new Map;let i=new dl;i.subscribe(o=>{this.customRenderingMap=o,this.customRenderingArray=void 0,r.detectChanges()}),this.handleCustomRendering=i.handle.bind(i)}ngAfterViewInit(){let{deepChangeDetection:n}=this,r=S(S({},this.options),this.buildInputOptions());this.optionSnapshot=HI(r,(a,l)=>n&&VI[l]?Sf(a):a);let i=this.element.nativeElement,o=this.calendar=new _f(i,S(S({},r),this.buildExtraOptions())),s=i.closest("ion-content");s&&s.componentOnReady?s.componentOnReady().then(()=>{window.requestAnimationFrame(()=>{o.render()})}):o.render(),setTimeout(()=>
5o.updateSize())}ngDoCheck(){if(this.calendar){let{deepChangeDetection:n,optionSnapshot:r}=this,i=S(S({},this.options),this.buildInputOptions()),o={},s=[];for(let l in i)if(i.hasOwnProperty(l)){let c=i[l];n&&VI[l]?tb(r[l],c)||(r[l]=Sf(c),s.push(l)):r[l]!==c&&(r[l]=c,s.push(l)),o[l]=c}let a=Object.keys(r);for(let l of a)l in i||(delete r[l],s.push(l));s.length&&(this.calendar.pauseRendering(),this.calendar.resetOptions(S(S({},o),this.buildExtraOptions()),s))}}ngAfterContentChecked(){this.calendar&&this.calendar.resumeRendering()}ngOnDestroy(){this.calendar&&(this.calendar.destroy(),this.calendar=null)}get customRenderings(){return this.customRenderingArray||(this.customRenderingArray=[...this.customRenderingMap.values()])}getApi(){return this.calendar}buildInputOptions(){let n={};for(let r of o2){let i=this[r];i!=null&&(n[r]=i)}return n}buildExtraOptions(){return{handleCustomRendering:this.handleCustomRendering,customRenderingMetaMap:this,customRenderingReplaces:!0}}trackCustomRendering(n,r){return r.id}}return t.\u0275fac=function(n){return new(n||t)(R(ct),R(Ur))},t.\u0275cmp=re({type:t,selectors:[["full-calendar"]],contentQueries:function(n,r,i){if(n&1&&Mu(i,$j,7)(i,zj,7)(i,Wj,7)(i,Gj,7)(i,qj,7)(i,Yj,7)(i,Qj,7)(i,Zj,7)(i,Kj,7)(i,Xj,7)(i,Jj,7)(i,e2,7)(i,t2,7)(i,n2,7)(i,r2,7),n&2){let o;Je(o=et())&&(r.dayHeaderContent=o.first),Je(o=et())&&(r.dayCellContent=o.first),Je(o=et())&&(r.weekNumberContent=o.first),Je(o=et())&&(r.nowIndicatorContent=o.first),Je(o=et())&&(r.eventContent=o.first),Je(o=et())&&(r.slotLaneContent=o.first),Je(o=et())&&(r.slotLabelContent=o.first),Je(o=et())&&(r.allDayContent=o.first),Je(o=et())&&(r.moreLinkContent=o.first),Je(o=et())&&(r.noEventsContent=o.first),Je(o=et())&&(r.resourceAreaHeaderContent=o.first),Je(o=et())&&(r.resourceGroupLabelContent=o.first),Je(o=et())&&(r.resourceLabelContent=o.first),Je(o=et())&&(r.resourceLaneContent=o.first),Je(o=et())&&(r.resourceGroupLaneContent=o.first)}},inputs:{options:"options",deepChangeDetection:"deepChangeDetection",events:"events",eventSources:"eventSources",resources:"resources"},standalone:!1,decls:2,vars:2,consts:[[3,"inPlaceOf","reportEl","elTag","elClasses","elStyle","elAttrs","template","renderProps",4,"ngFor","ngForOf","ngForTrackBy"],[3,"inPlaceOf","reportEl","elTag","elClasses","elStyle","elAttrs","template","renderProps"]],template:function(n,r){n&1&&(m(0,"offscreen-fragment"),Ri(1,i2,1,8,"transport-container",0),v()),n&2&&(_(),B("ngForOf",r.customRenderings)("ngForTrackBy",r.trackCustomRendering))},dependencies:[a2,l2,$u],encapsulation:2}),t})(),If=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=Kt({type:t}),t.\u0275inj=kt({imports:[[We]]}),t})();var $I=(t,e)=>{let n=localStorage.getItem("token");return e(n?t.clone({setHeaders:{Authorization:`Bearer ${n}`}}):t)};var XI=(()=>{class t{_renderer;_elementRef;onChange=n=>{};onTouched=()=>{};constructor(n,r){this._renderer=n,this._elementRef=r}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static \u0275fac=function(r){return new(r||t)(R(sr),R(ct))};static \u0275dir=xe({type:t})}return t})(),ob=(()=>{class t extends XI{static \u0275fac=(()=>{let n;return function(i){return(n||(n=rr(t)))(i||t)}})();static \u0275dir=xe({type:t,features:[Lt]})}return t})(),Ll=new T("");var u2={provide:Ll,useExisting:un(()=>At),multi:!0};function d2(){let t=Xt()?Xt().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var f2=new T(""),At=(()=>{class t extends XI{_compositionMode;_composing=!1;constructor(n,r,i){super(n,r),this._compositionMode=i,this._compositionMode==null&&(this._compositionMode=!d2())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static \u0275fac=function(r){return new(r||t)(R(sr),R(ct),R(f2,8))};static \u0275dir=xe({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,i){r&1&&L("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},standalone:!1,features:[Br([u2]),Lt]}
vendor: 9,686 bytes, line 5
5)}return t})();function sb(t){return t==null||ab(t)===0}function ab(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var lb=new T(""),cb=new T(""),h2=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ct=class{static min(e){return p2(e)}static max(e){return g2(e)}static required(e){return m2(e)}static requiredTrue(e){return v2(e)}static email(e){return y2(e)}static minLength(e){return b2(e)}static maxLength(e){return E2(e)}static pattern(e){return D2(e)}static nullValidator(e){return JI()}static compose(e){return oM(e)}static composeAsync(e){return aM(e)}};function p2(t){return e=>{if(e.value==null||t==null)return null;let n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}}function g2(t){return e=>{if(e.value==null||t==null)return null;let n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}function m2(t){return sb(t.value)?{required:!0}:null}function v2(t){return t.value===!0?null:{required:!0}}function y2(t){return sb(t.value)||h2.test(t.value)?null:{email:!0}}function b2(t){return e=>{let n=e.value?.length??ab(e.value);return n===null||n===0?null:n<t?{minlength:{requiredLength:t,actualLength:n}}:null}}function E2(t){return e=>{let n=e.value?.length??ab(e.value);return n!==null&&n>t?{maxlength:{requiredLength:t,actualLength:n}}:null}}function D2(t){if(!t)return JI;let e,n;return typeof t=="string"?(n="",t.charAt(0)!=="^"&&(n+="^"),n+=t,t.charAt(t.length-1)!=="$"&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),r=>{if(sb(r.value))return null;let i=r.value;return e.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}function JI(t){return null}function eM(t){return t!=null}function tM(t){return Fr(t)?He(t):t}function nM(t){let e={};return t.forEach(n=>{e=n!=null?S(S({},e),n):e}),Object.keys(e).length===0?null:e}function rM(t,e){return e.map(n=>n(t))}function C2(t){return!t.validate}function iM(t){return t.map(e=>C2(e)?e:n=>e.validate(n))}function oM(t){if(!t)return null;let e=t.filter(eM);return e.length==0?null:function(n){return nM(rM(n,e))}}function sM(t){return t!=null?oM(iM(t)):null}function aM(t){if(!t)return null;let e=t.filter(eM);return e.length==0?null:function(n){let r=rM(n,e).map(tM);return Vh(r).pipe(ve(nM))}}function lM(t){return t!=null?aM(iM(t)):null}function zI(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function cM(t){return t._rawValidators}function uM(t){return t._rawAsyncValidators}function nb(t){return t?Array.isArray(t)?t:[t]:[]}function Tf(t,e){return Array.isArray(t)?t.includes(e):t===e}function WI(t,e){let n=nb(e);return nb(t).forEach(i=>{Tf(n,i)||n.push(i)}),n}function GI(t,e){return nb(e).filter(n=>!Tf(t,n))}var Af=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=sM(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=lM(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,n){return this.control?this.control.hasError(e,n):!1}getError(e,n){return this.control?this.control.getError(e,n):null}},ao=class extends Af{name;get formDirective(){return null}get path(){return null}},lo=class extends Af{_parent=null;name=null;valueAccessor=null},xf=class{_cd;constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}};var sn=(()=>{class t extends xf{constructor(n){super(n)}static \u0275fac=function(r){return new(r||t)(R(lo,2))};static \u0275dir=xe({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,i){r&2&&bn("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},standalone:!1,features:[Lt]})}return t})(),Ff=(()=>{class t extends xf{constructor(n){super(n)}static \u0275fac=function(r){return new(r||t)(R(ao,10))};static \u0275dir=xe({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["","formArray",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,i){r&2&&bn("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},standalone:!1,features:[Lt]})}return t})();var Ol="VALID",Mf="INVALID",vs="PENDING",kl="DISABLED",oi=class{},Rf=class extends oi{value;source;constructor(e,n){super(),this.value=e,this.source=n}},Pl=class extends oi{pristine;source;constructor(e,n){super(),this.pristine=e,this.source=n}},Fl=class extends oi{touched;source;constructor(e,n){super(),this.touched=e,this.source=n}},ys=class extends oi{status;source;constructor(e,n){super(),this.status=e,this.source=n}},rb=class extends oi{source;constructor(e){super(),this.source=e}},Nf=class extends oi{source;constructor(e){super(),this.source=e}};function dM(t){return(Lf(t)?t.validators:t)||null}function _2(t){return Array.isArray(t)?sM(t):t||null}function fM(t,e){return(Lf(e)?e.asyncValidators:t)||null}function w2(t){return Array.isArray(t)?lM(t):t||null}function Lf(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function S2(t,e,n){let r=t.controls;if(!(e?Object.keys(r):r).length)throw new M(1e3,"");if(!r[n])throw new M(1001,"")}function I2(t,e,n){t._forEachChild((r,i)=>{if(n[i]===void 0)throw new M(1002,"")})}var Of=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(e,n){this._assignValidators(e),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return Qe(this.statusReactive)}set status(e){Qe(()=>this.statusReactive.set(e))}_status=Ni(()=>this.statusReactive());statusReactive=W(void 0);get valid(){return this.status===Ol}get invalid(){return this.status===Mf}get pending(){return this.status==vs}get disabled(){return this.status===kl}get enabled(){return this.status!==kl}errors;get pristine(){return Qe(this.pristineReactive)}set pristine(e){Qe(()=>this.pristineReactive.set(e))}_pristine=Ni(()=>this.pristineReactive());pristineReactive=W(!0);get dirty(){return!this.pristine}get touched(){return Qe(this.touchedReactive)}set touched(e){Qe(()=>this.touchedReactive.set(e))}_touched=Ni(()=>this.touchedReactive());touchedReactive=W(!1);get untouched(){return!this.touched}_events=new qe;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(WI(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(WI(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(GI(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(GI(e,this._rawAsyncValidators))}hasValidator(e){return Tf(this._rawValidators,e)}hasAsyncValidator(e){return Tf(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let n=this.touched===!1;this.touched=!0;let r=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(Y(S({},e),{sourceControl:r})),n&&e.emitEvent!==!1&&this._events.next(new Fl(!0,r))}
vendor: 4,771 bytes, line 5
5markAllAsDirty(e={}){this.markAsDirty({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsDirty(e))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(e))}markAsUntouched(e={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=e.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:r})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,r),n&&e.emitEvent!==!1&&this._events.next(new Fl(!1,r))}markAsDirty(e={}){let n=this.pristine===!0;this.pristine=!1;let r=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(Y(S({},e),{sourceControl:r})),n&&e.emitEvent!==!1&&this._events.next(new Pl(!1,r))}markAsPristine(e={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=e.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,r),n&&e.emitEvent!==!1&&this._events.next(new Pl(!0,r))}markAsPending(e={}){this.status=vs;let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new ys(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(Y(S({},e),{sourceControl:n}))}disable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=kl,this.errors=null,this._forEachChild(i=>{i.disable(Y(S({},e),{onlySelf:!0}))}),this._updateValue();let r=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Rf(this.value,r)),this._events.next(new ys(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Y(S({},e),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=Ol,this._forEachChild(r=>{r.enable(Y(S({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Y(S({},e),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(e,n){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ol||this.status===vs)&&this._runAsyncValidator(r,e.emitEvent)}let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Rf(this.value,n)),this._events.next(new ys(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(Y(S({},e),{sourceControl:n}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?kl:Ol}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,n){if(this.asyncValidator){this.status=vs,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1,shouldHaveEmitted:e!==!1};let r=tM(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:n,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,n={}){this.errors=e,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(e){let n=e;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,i)=>r&&r._find(i),this)}getError(e,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[e]:null}hasError(e,n){return!!this.getError(e,n)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,n,r){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||r)&&this._events.next(new ys(this.status,n)),this._parent&&this._parent._updateControlsErrors(e,n,r)}_initObservables(){this.valueChanges=new Ne,this.statusChanges=new Ne}_calculateStatus(){return this._allControlsDisabled()?kl:this.errors?Mf:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(vs)?vs:this._anyControlsHaveStatus(Mf)?Mf:Ol}_anyControlsHaveStatus(e){return this._anyControls(n=>n.status===e)}
vendor: 17,333 bytes, line 5
5_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,n){let r=!this._anyControlsDirty(),i=this.pristine!==r;this.pristine=r,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),i&&this._events.next(new Pl(this.pristine,n))}_updateTouched(e={},n){this.touched=this._anyControlsTouched(),this._events.next(new Fl(this.touched,n)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n)}_onDisabledChange=[];_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Lf(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let n=this._parent&&this._parent.dirty;return!e&&!!n&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=_2(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=w2(this._rawAsyncValidators)}},bs=class extends Of{constructor(e,n,r){super(dM(n),fM(r,n)),this.controls=e,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(e,n){return this.controls[e]?this.controls[e]:(this.controls[e]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(e,n,r={}){this.registerControl(e,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(e,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(e,n,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],n&&this.registerControl(e,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,n={}){I2(this,!0,e),Object.keys(e).forEach(r=>{S2(this,!0,r),this.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(e,n={}){e!=null&&(Object.keys(e).forEach(r=>{let i=this.controls[r];i&&i.patchValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(e={},n={}){this._forEachChild((r,i)=>{r.reset(e?e[i]:null,Y(S({},n),{onlySelf:!0}))}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n),n?.emitEvent!==!1&&this._events.next(new Nf(this))}getRawValue(){return this._reduceChildren({},(e,n,r)=>(e[r]=n.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(n,r)=>r._syncPendingControls()?!0:n);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(n=>{let r=this.controls[n];r&&e(r,n)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[n,r]of Object.entries(this.controls))if(this.contains(n)&&e(r))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(n,r,i)=>((r.enabled||this.disabled)&&(n[i]=r.value),n))}_reduceChildren(e,n){let r=e;return this._forEachChild((i,o)=>{r=n(r,i,o)}),r}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var jf=new T("",{factory:()=>Vf}),Vf="always";function hM(t,e){return[...e.path,t]}function ib(t,e,n=Vf){ub(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||n==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),T2(t,e),x2(t,e),A2(t,e),M2(t,e)}function qI(t,e,n=!0){let r=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(r),e.valueAccessor.registerOnTouched(r)),Pf(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function kf(t,e){t.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(e)})}function M2(t,e){if(e.valueAccessor.setDisabledState){let n=r=>{e.valueAccessor.setDisabledState(r)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}function ub(t,e){let n=cM(t);e.validator!==null?t.setValidators(zI(n,e.validator)):typeof n=="function"&&t.setValidators([n]);let r=uM(t);e.asyncValidator!==null?t.setAsyncValidators(zI(r,e.asyncValidator)):typeof r=="function"&&t.setAsyncValidators([r]);let i=()=>t.updateValueAndValidity();kf(e._rawValidators,i),kf(e._rawAsyncValidators,i)}function Pf(t,e){let n=!1;if(t!==null){if(e.validator!==null){let i=cM(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.validator);o.length!==i.length&&(n=!0,t.setValidators(o))}}if(e.asyncValidator!==null){let i=uM(t);if(Array.isArray(i)&&i.length>0){let o=i.filter(s=>s!==e.asyncValidator);o.length!==i.length&&(n=!0,t.setAsyncValidators(o))}}}let r=()=>{};return kf(e._rawValidators,r),kf(e._rawAsyncValidators,r),n}function T2(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&pM(t,e)})}function A2(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&pM(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function pM(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function x2(t,e){let n=(r,i)=>{e.valueAccessor.writeValue(r),i&&e.viewToModelUpdate(r)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}function R2(t,e){t==null,ub(t,e)}function N2(t,e){return Pf(t,e)}function gM(t,e){if(!t.hasOwnProperty("model"))return!1;let n=t.model;return n.isFirstChange()?!0:!Object.is(e,n.currentValue)}function O2(t){return Object.getPrototypeOf(t.constructor)===ob}function k2(t,e){t._syncPendingControls(),e.forEach(n=>{let r=n.control;r.updateOn==="submit"&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}function mM(t,e){if(!e)return null;Array.isArray(e);let n,r,i;return e.forEach(o=>{o.constructor===At?n=o:O2(o)?r=o:i=o}),i||r||n||null}function P2(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function YI(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function QI(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Gn=class extends Of{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(e=null,n,r){super(dM(n),fM(r,n)),this._applyFormState(e),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Lf(n)&&(n.nonNullable||n.initialValueIsDefault)&&(QI(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,n={}){this.value=this._pendingValue=e,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(e,n={}){this.setValue(e,n)}reset(e=this.defaultValue,n={}){this._applyFormState(e),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),n.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,n?.emitEvent!==!1&&this._events.next(new Nf(this))}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){YI(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){YI(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){QI(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var F2=t=>t instanceof Gn;var L2={provide:lo,useExisting:un(()=>Dr)},ZI=Promise.resolve(),Dr=(()=>{class t extends lo{_changeDetectorRef;callSetDisabledState;control=new Gn;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new Ne;constructor(n,r,i,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=n,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=mM(this,o)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),gM(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){ib(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){ZI.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,i=r!==0&&Tm(r);ZI.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?hM(n,this._parent):[n]}static \u0275fac=function(r){return new(r||t)(R(ao,9),R(lb,10),R(cb,10),R(Ll,10),R(Ur,8),R(jf,8))};static \u0275dir=xe({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[Br([L2]),Lt,vn]})}return t})();var Bf=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275dir=xe({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})();var j2=(()=>{class t extends ao{callSetDisabledState;get submitted(){return Qe(this._submittedReactive)}set submitted(n){this._submittedReactive.set(n)}_submitted=Ni(()=>this._submittedReactive());_submittedReactive=W(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];constructor(n,r,i){super(),this.callSetDisabledState=i,this._setValidators(n),this._setAsyncValidators(r)}ngOnChanges(n){this.onChanges(n)}ngOnDestroy(){this.onDestroy()}onChanges(n){this._checkFormPresent(),n.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}onDestroy(){this.form&&(Pf(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get path(){return[]}addControl(n){let r=this.form.get(n.path);return ib(r,n,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(n),r}getControl(n){return this.form.get(n.path)}removeControl(n){qI(n.control||null,n,!1),P2(this.directives,n)}addFormGroup(n){this._setUpFormContainer(n)}removeFormGroup(n){this._cleanUpFormContainer(n)}getFormGroup(n){return this.form.get(n.path)}getFormArray(n){return this.form.get(n.path)}addFormArray(n){this._setUpFormContainer(n)}removeFormArray(n){this._cleanUpFormContainer(n)}updateModel(n,r){this.form.get(n.path).setValue(r)}onReset(){this.resetForm()}resetForm(n=void 0,r={}){this.form.reset(n,r),this._submittedReactive.set(!1)}onSubmit(n){return this.submitted=!0,k2(this.form,this.directives),this.ngSubmit.emit(n),this.form._events.next(new rb(this.control)),n?.target?.method==="dialog"}_updateDomValue(){this.directives.forEach(n=>{let r=n.control,i=this.form.get(n.path);r!==i&&(qI(r||null,n),F2(i)&&(ib(i,n,this.callSetDisabledState),n.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(n){let r=this.form.get(n.path);R2(r,n),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(n){if(this.form){let r=this.form.get(n.path);r&&N2(r,n)&&r.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ub(this.form,this),this._oldForm&&Pf(this._oldForm,this)}_checkFormPresent(){this.form}static \u0275fac=function(r){return new(r||t)(R(lb,10),R(cb,10),R(jf,8))};static \u0275dir=xe({type:t,features:[Lt,vn]})}return t})();var vM=new T("");var V2={provide:lo,useExisting:un(()=>jl)},jl=(()=>{class t extends lo{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(n){}model;update=new Ne;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(n,r,i,o,s){super(),this._ngModelWarningConfig=s,this._parent=n,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=mM(this,o)}ngOnChanges(n){this._added||this._setUpControl(),gM(n,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}get path(){return hM(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(r){return new(r||t)(R(ao,13),R(lb,10),R(cb,10),R(Ll,10),R(vM,8))};static \u0275dir=xe({type:t,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[Br([V2]),Lt,vn]})}return t})();var B2={provide:ao,useExisting:un(()=>Vl)},Vl=(()=>{class t extends j2{form=null;ngSubmit=new Ne;get control(){return this.form}static \u0275fac=(()=>{let n;return function(i){return(n||(n=rr(t)))(i||t)}})();static \u0275dir=xe({type:t,selectors:[["","formGroup",""]],hostBindings:function(r,i){r&1&&L("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Br([B2]),Lt]})}return t})(),H2={provide:Ll,useExisting:un(()=>Es),multi:!0};function yM(t,e){return t==null?`${e}`:(e&&typeof e=="object"&&(e="Object"),`${t}: ${e}`.slice(0,50))}function U2(t){return t.split(":")[0]}var Es=(()=>{class t extends ob{value;_optionMap=new Map;_idCounter=0;set compareWith(n){this._compareWith=n}_compareWith=Object.is;appRefInjector=w(Lr).injector;destroyRef=w(Ft);cdr=w(Ur);_queuedWrite=!1;_writeValueAfterRender(){this._queuedWrite||this.appRefInjector.destroyed||(this._queuedWrite=!0,ca({write:()=>{this.destroyRef.destroyed||(this._queuedWrite=!1,this.writeValue(this.value))}},{injector:this.appRefInjector}))}writeValue(n){this.cdr.markForCheck(),this.value=n;let r=this._getOptionId(n),i=yM(r,n);this.setProperty("value",i)}registerOnChange(n){this.onChange=r=>{this.value=this._getOptionValue(r),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),n))return r;return null}_getOptionValue(n){let r=U2(n);return this._optionMap.has(r)?this._optionMap.get(r):n}static \u0275fac=(()=>{let n;return function(i){return(n||(n=rr(t)))(i||t)}})();static \u0275dir=xe({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,i){r&1&&L("change",function(s){return i.onChange(s.target.value)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[Br([H2]),Lt]})}return t})(),Hf=(()=>{class t{_element;_renderer;_select;id;constructor(n,r,i){this._element=n,this._renderer=r,this._select=i,this._select&&(this.id=this._select._registerOption())}set ngValue(n){this._select!=null&&(this._select._optionMap.set(this.id,n),this._setElementValue(yM(this.id,n)),this._select._writeValueAfterRender())}set value(n){this._setElementValue(n),this._select&&this._select._writeValueAfterRender()}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id
5),this._select._writeValueAfterRender())}static \u0275fac=function(r){return new(r||t)(R(ct),R(sr),R(Es,9))};static \u0275dir=xe({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return t})(),$2={provide:Ll,useExisting:un(()=>bM),multi:!0};function KI(t,e){return t==null?`${e}`:(typeof e=="string"&&(e=`'${e}'`),e&&typeof e=="object"&&(e="Object"),`${t}: ${e}`.slice(0,50))}function z2(t){return t.split(":")[0]}var bM=(()=>{class t extends ob{value;_optionMap=new Map;_idCounter=0;set compareWith(n){this._compareWith=n}_compareWith=Object.is;writeValue(n){this.value=n;let r;if(Array.isArray(n)){let i=n.map(o=>this._getOptionId(o));r=(o,s)=>{o._setSelected(i.indexOf(s.toString())>-1)}}else r=(i,o)=>{i._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(n){this.onChange=r=>{let i=[],o=r.selectedOptions;if(o!==void 0){let s=o;for(let a=0;a<s.length;a++){let l=s[a],c=this._getOptionValue(l.value);i.push(c)}}else{let s=r.options;for(let a=0;a<s.length;a++){let l=s[a];if(l.selected){let c=this._getOptionValue(l.value);i.push(c)}}}this.value=i,n(i)}}_registerOption(n){let r=(this._idCounter++).toString();return this._optionMap.set(r,n),r}_getOptionId(n){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r)._value,n))return r;return null}_getOptionValue(n){let r=z2(n);return this._optionMap.has(r)?this._optionMap.get(r)._value:n}static \u0275fac=(()=>{let n;return function(i){return(n||(n=rr(t)))(i||t)}})();static \u0275dir=xe({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,i){r&1&&L("change",function(s){return i.onChange(s.target)})("blur",function(){return i.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[Br([$2]),Lt]})}return t})(),Uf=(()=>{class t{_element;_renderer;_select;id;_value;constructor(n,r,i){this._element=n,this._renderer=r,this._select=i,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){this._select!=null&&(this._value=n,this._setElementValue(KI(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(KI(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static \u0275fac=function(r){return new(r||t)(R(ct),R(sr),R(bM,9))};static \u0275dir=xe({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return t})();var EM=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=Kt({type:t});static \u0275inj=kt({})}return t})();var qn=(()=>{class t{static withConfig(n){return{ngModule:t,providers:[{provide:jf,useValue:n.callSetDisabledState??Vf}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=Kt({type:t});static \u0275inj=kt({imports:[EM]})}return t})(),$f=(()=>{class t{static withConfig(n){return{ngModule:t,providers:[{provide:vM,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:jf,useValue:n.callSetDisabledState??Vf}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=Kt({type:t});static \u0275inj=kt({imports:[EM]})}return t})();function W2(t,e){t&1&&(m(0,"p",7),y(1,"El campo nombre es requerido"),v())}function G2(t,e){t&1&&(m(0,"p",7),y(1,"El campo email es requerido"),v())}function q2(t,e){t&1&&(m(0,"p",7),y(1,"El email n tiene la estructura correcta"),v())}function Y2(t,e){t&1&&(m(0,"p",7),y(1,"El password tiene que teer un minimo de 6 digitos"),v())}function Q2(t,e){t&1&&(m(0,"p",7),y(1,"Las contrase\xF1as no coinciden"),v())}function Z2(t,e){if(t&1&&(m(0,"p",16),y(1),v()),t&2){let n=F();_(),ye(n.message)}}var Cs=class t{constructor(e){this.http=e}goToLogin=new Ne;API="https://family-scheduler-project-backend.onrender.com";message="";loading=!1;inputType=W("password");passwordsMatch(e){let n=e.get("password")?.value,r=e.get("password_repeat")?.value;return n===r?null:{passwordMismatch:!0}}form=new bs({full_name:new Gn("",{nonNullable:!0,validators:[Ct.required]}),email:new Gn("",{nonNullable:!0,validators:[Ct.required,Ct.pattern(/^[A-Za-z0-9.!#$%&'*+/=?^_`{|}~-]+@[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)+$/)]}),password:new Gn("",{nonNullable:!0,validators:[Ct.required,Ct.minLength(6)]}),password_repeat:new Gn("",{nonNullable:!0,validators:[Ct.required,Ct.minLength(6)]})},{validators:e=>this.passwordsMatch(e)});pulsarVerPassword(){this.inputType.update(e=>e==="password"?"text":"password")}
5submit(){if(this.message="",this.form.invalid){this.form.markAllAsTouched(),this.message="Revisa los campos.";return}if(this.form.value.password!==this.form.value.password_repeat){this.form.get("password_repeat")?.setErrors({passwordMismatch:!0}),this.form.get("password_repeat")?.markAsTouched();return}this.loading=!0;let e=this.form.getRawValue();this.http.post(`${this.API}/auth/register`,e).subscribe({next:n=>{console.log("REGISTER OK:",n),this.loading=!1,window.confirm(`Usuario registrado correctamente \u{1F389}
6
7\xBFQuieres entrar en tu cuenta ahora?`)?this.goToLogin.emit():this.form.reset()},error:n=>{console.log("REGISTER ERROR:",n),this.message=n?.error?.detail??"Error \u274C (mira consola)",this.loading=!1}})}checkError(e,n){let r=this.form.get(e);return!!(r&&r.touched&&r.hasError(n))}checkPasswords(){this.form.value.password!==this.form.value.password_repeat&&this.form.get("password_repeat")?.setErrors({passwordMismatch:!0})}static \u0275fac=function(n){return new(n||t)(R(Wr))};static \u0275cmp=re({type:t,selectors:[["app-registerform"]],outputs:{goToLogin:"goToLogin"},decls:30,vars:12,consts:[[1,"register-card"],[1,"title"],[1,"subtitle"],[3,"ngSubmit","formGroup"],[1,"form-group"],["for","fullName"],["id","fullName","type","text","formControlName","full_name","placeholder","Jane Doe",1,"form-control"],[1,"error"],["for","email"],["id","email","type","email","formControlName","email","placeholder","[email protected]",1,"form-control"],["for","password"],[1,"password-wrapper"],["id","password","formControlName","password","placeholder","\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022",1,"form-control",3,"type"],["id","password_repeat","formControlName","password_repeat","placeholder","Repite el password",1,"form-control",3,"blur","type"],["type","button","aria-label","Toggle password visibility",1,"toggle-password",3,"click"],["type","submit",1,"btn","btn-primary","w-100","mt-3",3,"disabled"],[1,"mt-3","text-center"]],template:function(n,r){n&1&&(m(0,"div",0)(1,"h2",1),y(2,"Create your account"),v(),m(3,"p",2),y(4,"Join your family space"),v(),m(5,"form",3),L("ngSubmit",function(){return r.submit()}),m(6,"div",4)(7,"label",5),y(8,"Full name"),v(),oe(9,"input",6),_e(10,W2,2,0,"p",7),v(),m(11,"div",4)(12,"label",8),y(13,"Email"),v(),oe(14,"input",9),_e(15,G2,2,0,"p",7),_e(16,q2,2,0,"p",7),v(),m(17,"div",4)(18,"label",10),y(19,"Password"),v(),m(20,"div",11),oe(21,"input",12),_e(22,Y2,2,0,"p",7),m(23,"input",13),L("blur",function(){return r.checkPasswords()}),v(),_e(24,Q2,2,0,"p",7),m(25,"button",14),L("click",function(){return r.pulsarVerPassword()}),y(26),v()()(),m(27,"button",15),y(28),v(),_e(29,Z2,2,1,"p",16),v()()),n&2&&(_(5),B("formGroup",r.form),_(5),we(r.checkError("full_name","required")?10:-1),_(5),we(r.checkError("email","required")?15:-1),_(),we(r.checkError("email","pattern")?16:-1),_(5),B("type",r.inputType()),_(),we(r.checkError("password","minlength")?22:-1),_(),B("type",r.inputType()),_(),we(r.checkError("password_repeat","passwordMismatch")?24:-1),_(2),Z(" ",r.inputType()==="password"?"\u{1F453}":"\u{1F648}"," "),_(),B("disabled",r.loading),_(),Z(" ",r.loading?"Registering...":"Register"," "),_(),we(r.message?29:-1))},dependencies:[$f,Bf,At,sn,Ff,Vl,jl],styles:[".register-card[_ngcontent-%COMP%]{width:100%;max-width:640px;margin:0 auto;background:#fff;padding:2.25rem;border-radius:1.25rem}.title[_ngcontent-%COMP%]{font-size:1.75rem;font-weight:800;margin-bottom:.35rem;text-align:center}.subtitle[_ngcontent-%COMP%]{color:#6c757d;margin-bottom:1.75rem;text-align:center}.form-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-bottom:1rem}label[_ngcontent-%COMP%]{font-size:.85rem;margin-bottom:.35rem;font-weight:600}input[_ngcontent-%COMP%]{padding:.75rem .85rem;border-radius:.75rem;border:1px solid #ced4da;font-size:.95rem}input[_ngcontent-%COMP%]:focus{outline:none;border-color:#0d6efd;box-shadow:0 0 0 2px #0d6efd26}button[type=submit][_ngcontent-%COMP%]{margin-top:1.25rem;padding:.75rem;font-size:1rem;border-radius:999px;font-weight:700}.password-wrapper[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center}.password-wrapper[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{padding-right:2.5rem}.toggle-password[_ngcontent-%COMP%]{position:absolute;right:.6rem;top:50%;transform:translateY(-50%);background:transparent;border:none;cursor:pointer;font-size:1.1rem;line-height:1}.toggle-password[_ngcontent-%COMP%]:hover{opacity:.8}.ng-invalid.ng-touched[_ngcontent-%COMP%]{border-color:#f08080}.ng-valid.ng-untouched[_ngcontent-%COMP%]{border-color:#90ee90}"]})};function K2(t,e){if(t&1){let n=ut();m(0,"button",7),L("click",function(){te(n);let i=F();return ne(i.goHome())}),y(1," \u2190 Back Home "),v()}}function X2(t,e){if(t&1){let n=ut();m(0,"div",8),L("click",function(){te(n);let i=F();return ne(i.openLogin())}),m(1,"div",9),L("click",function(i){return te(n),ne(i.stopPropagation())}),m(2,"button",10),L("click",function(){te(n);let i=F();return ne(i.openLogin())}),y(3,"\u2715"),v(),oe(4,"app-registerform"),v()()}}var zf=class t{router=w(Re);showRegister=W(!1);showBackHome=W(!1);constructor(){this.router.events.pipe(Rt(e=>e instanceof _n)).subscribe(e=>{this.showBackHome.set(e.urlAfterRedirects!=="/")})}goHome(){this.router.navigateByUrl("/")}openRegister(){this.showRegister.set(!0)}openLogin(){this.showRegister.set(!1)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=re({type:t,selectors:[["app-layout-shell"]],decls:9,vars:2,consts:[[1,"navbar","bg-white","border-bottom","sticky-top"],[1,"container","py-2","d-flex","align-items-center","justify-content-between"],[1,"navbar-brand","d-flex","align-items-center","gap-2","fw-bold","m-0"],[1,"brand-dot"],["type","button",1,"btn","btn-outline-dark","rounded-pill","px-3"],[1,"overlay"],[1,"bg-soft"],["type","button",1,"btn","btn-outline-dark","rounded-pill","px-3",3,"click"],[1,"overlay",3,"click"],[1,"overlay-panel",3,"click"],["type","button","aria-label","Close",1,"close-btn",3,"click"]],template:function(n,r){n&1&&(m(0,"nav",0)(1,"div",1)(2,"div",2),oe(3,"span",3),y(4," Family Schedule "),v(),_e(5,K2,2,0,"button",4),v()(),_e(6,X2,5,0,"div",5),m(7,"main",6),oe(8,"router-outlet"),v()),n&2&&(_(5),we(r.showBackHome()?5:-1),_(),we(r.showRegister()?6:-1))},dependencies:[Hi,Cs],styles:[".bg-soft[_ngcontent-%COMP%]{background:#f6f8fb;min-height:calc(100vh - 120px)}.brand-dot[_ngcontent-%COMP%]{width:14px;
7height:14px;border-radius:50%;background:linear-gradient(90deg,#7c3aed,#6d28d9);display:inline-block;box-shadow:0 10px 24px #0ea5e940}.overlay[_ngcontent-%COMP%]{position:fixed;inset:0;background:#0f172a59;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;padding:1rem;z-index:5000}.overlay-panel[_ngcontent-%COMP%]{position:relative;width:100%;max-width:720px;border-radius:1.5rem;background:#fff;box-shadow:0 25px 60px #0000002e;padding:1.25rem}.ng-invalid.ng-touched[_ngcontent-%COMP%]{border-color:#f08080}.ng-valid.ng-untouched[_ngcontent-%COMP%]{border-color:#90ee90}"]})};function J2(t,e){if(t&1&&(m(0,"p",12),y(1),v()),t&2){let n=F();_(),ye(n.message)}}var Wf=class t{constructor(e,n){this.http=e;this.router=n}API="https://family-scheduler-project-backend.onrender.com";message="";loading=!1;inputType=W("password");form=new bs({email:new Gn("",{nonNullable:!0,validators:[Ct.required,Ct.pattern(/^[A-Za-z0-9.!#$%&'*+/=?^_`{|}~-]+@[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?(?:\.[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?)+$/)]}),password:new Gn("",{nonNullable:!0,validators:[Ct.required,Ct.minLength(6)]})});pulsarVerPassword(){this.inputType.update(e=>e==="password"?"text":"password")}submit(){if(this.message="",this.form.invalid){this.form.markAllAsTouched(),this.message="Revisa los campos.";return}this.loading=!0;let e={email:(this.form.value.email??"").trim(),password:(this.form.value.password??"").trim()};console.log("PAYLOAD LOGIN:",e),this.http.post(`${this.API}/auth/login`,e).subscribe({next:n=>{console.log("LOGIN OK:",n),this.loading=!1;let r=n?.Token;if(!r){console.error("NO LLEG\xD3 Token EN LA RESPUESTA"),this.message="Error: no lleg\xF3 el token del backend.";return}localStorage.setItem("access_token",r);let i=n?.user?.full_name??"Usuario";localStorage.setItem("full_name",i),console.log("TOKEN GUARDADO:",localStorage.getItem("access_token")),this.router.navigateByUrl("/welcome")},error:n=>{console.log("LOGIN ERROR:",n),this.message=n?.error?.detail??"Error \u274C (mira consola)",this.loading=!1}})}static \u0275fac=function(n){return new(n||t)(R(Wr),R(Re))};static \u0275cmp=re({type:t,selectors:[["app-loginform"]],decls:20,vars:6,consts:[[1,"register-card"],[1,"title"],[1,"subtitle"],[3,"ngSubmit","formGroup"],[1,"form-group"],["for","email"],["id","email","type","email","formControlName","email","placeholder","[email protected]",1,"form-control"],["for","password"],[1,"password-wrapper"],["id","password","formControlName","password","placeholder","\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022",1,"form-control",3,"type"],["type","button","aria-label","Toggle password visibility",1,"toggle-password",3,"click"],["type","submit",1,"btn","btn-primary","w-100","mt-3",3,"disabled"],[1,"mt-3","text-center"]],template:function(n,r){n&1&&(m(0,"div",0)(1,"h2",1),y(2,"Welcome back"),v(),m(3,"p",2),y(4,"Log in to your family space"),v(),m(5,"form",3),L("ngSubmit",function(){return r.submit()}),m(6,"div",4)(7,"label",5),y(8,"Email"),v(),oe(9,"input",6),v(),m(10,"div",4)(11,"label",7),y(12,"Password"),v(),m(13,"div",8),oe(14,"input",9),m(15,"button",10),L("click",function(){return r.pulsarVerPassword()}),y(16),v()()(),m(17,"button",11),y(18),v(),_e(19,J2,2,1,"p",12),v()()),n&2&&(_(5),B("formGroup",r.form),_(9),B("type",r.inputType()),_(2),Z(" ",r.inputType()==="password"?"\u{1F453}":"\u{1F648}"," "),_(),B("disabled",!r.form.valid),_(),Z(" ",r.loading?"Signing in...":"Login"," "),_(),we(r.message?19:-1))},dependencies:[$f,Bf,At,sn,Ff,Vl,jl],styles:[".password-wrapper[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center}.password-wrapper[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{padding-right:2.5rem}.toggle-password[_ngcontent-%COMP%]{position:absolute;right:.6rem;top:50%;transform:translateY(-50%);background:transparent;border:none;cursor:pointer;font-size:1.1rem;line-height:1}.toggle-password[_ngcontent-%COMP%]:hover{opacity:.8}.ng-invalid.ng-touched[_ngcontent-%COMP%]{border-color:#f08080}.ng-valid.ng-untouched[_ngcontent-%COMP%]{border-color:#90ee90}"]})};function eV(t,e){if(t&1){let n=ut();m(0,"div",22),L("click",function(){te(n);let i=F();return ne(i.openLogin())}),m(1,"div",23),L("click",function(i){return te(n),ne(i.stopPropagation())}),m(2,"button",24),L("click",function(){te(n);let i=F();return ne(i.openLogin())}),y(3," \u2715 "),v(),m(4,"app-registerform",25),L("goToLogin",function(){te(n);let i=F();return ne(i.openLogin())}),v()()()}}function tV(t,e){if(t&1){let n=ut();m(0,"div",22),L("click",function(){te(n);let i=F();return ne(i.closeLogin())}),m(1,"div",23),L("click",function(i){return te(n),ne(i.stopPropagation())}),m(2,"button",26),L("click",function(){te(n);let i=F();return ne(i.closeLogin())}),y(3,"\u2715"),v(),oe(4,"app-loginform"),v()()}}var Gf=class t{showRegister=W(!1);showLogin=W(!1);openRegister(){this.showRegister.set(!0),this.showLogin.set(!1)}closeRegister(){this.showRegister.set(!1)}openLogin(){this.showLogin.set(!0),this.showRegister.set(!1)}closeLogin(){this.showLogin.set(!1)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=re({type:t,selectors:[["app-landing"]],decls:53,vars:2,consts:[[1,"container","py-5"],[1,"row","align-items-center","g-5"],[1,"col-lg-6"],[1,"badge","rounded-pill","text-bg-light","px-3","py-2","mb-3"],[1,"display-4","fw-bold","lh-1"],[1,"text-primary"],[1,"lead","text-muted","mt-3"],[1,"hero-actions","mt-4"],[1,"btn","btn-primary","rounded-pill","px-4",3,"click"],[1,"btn","btn-outline-dark","rounded-pill","px-4",3,"click"],[1,"text-muted","small","mt-3"],[1,"hero-illustration","p-3","rounded-4","shadow-sm","bg-white"],["src","/family_shedule_landing_page.png","alt","Family using calendar",1,"hero-image"],[1,"overlay"],["
7id","features",1,"container","py-5"],[1,"row","g-4"],[1,"col-12","col-md-6","col-lg-3"],[1,"feature-card","h-100"],["src","/shared-calendar.jpg","alt","Shared calendar",1,"feature-icon"],["src","/individual-profile.jpg","alt","Individual profiles",1,"feature-icon"],["src","/smart-reminder.jpg","alt","Smart reminders",1,"feature-icon"],["src","/family-management.jpg","alt","Family management",1,"feature-icon"],[1,"overlay",3,"click"],[1,"overlay-panel",3,"click"],["type","button","aria-label","Close",1,"close-btn",3,"click"],[3,"goToLogin"],["type","button",1,"close-btn",3,"click"]],template:function(n,r){n&1&&(m(0,"section",0)(1,"div",1)(2,"div",2)(3,"span",3),y(4," \u2728 Smart family management "),v(),m(5,"h1",4),y(6," Keep Your Family "),m(7,"span",5),y(8,"in Sync"),v()(),m(9,"p",6),y(10," One shared calendar for parents and kids. Activities, school, medical appointments and reminders \u2014 all in one place. "),v(),m(11,"div",7)(12,"button",8),L("click",function(){return r.openRegister()}),y(13," Join the family "),v(),m(14,"button",9),L("click",function(){return r.openLogin()}),y(15," Welcome back "),v()(),m(16,"p",10),y(17," No credit card required \xB7 Free forever "),v()(),m(18,"div",2)(19,"div",11),oe(20,"img",12),v()()()(),_e(21,eV,5,0,"div",13),_e(22,tV,5,0,"div",13),m(23,"section",14)(24,"div",15)(25,"div",16)(26,"div",17),oe(27,"img",18),m(28,"h5"),y(29,"Shared Calendar"),v(),m(30,"p"),y(31," One single calendar for the whole family. School, activities and events always in sync. "),v()()(),m(32,"div",16)(33,"div",17),oe(34,"img",19),m(35,"h5"),y(36,"Individual Profiles"),v(),m(37,"p"),y(38," Parents, kids and relatives. Each member has their own view and events. "),v()()(),m(39,"div",16)(40,"div",17),oe(41,"img",20),m(42,"h5"),y(43,"Smart Reminders"),v(),m(44,"p"),y(45," Never forget an appointment. Get notified at the right moment. "),v()()(),m(46,"div",16)(47,"div",17),oe(48,"img",21),m(49,"h5"),y(50,"Family Management"),v(),m(51,"p"),y(52," Manage multiple families. Parents, grandparents, and children together. "),v()()()()()),n&2&&(_(21),we(r.showRegister()?21:-1),_(),we(r.showLogin()?22:-1))},dependencies:[Cs,Wf],styles:[".hero-illustration[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;max-width:100%;overflow:hidden;background:linear-gradient(135deg,#fff,#f2f8ff)}.hero-image[_ngcontent-%COMP%]{width:100%;max-width:520px;height:auto;object-fit:contain;display:block;border-radius:20px}.feature-card[_ngcontent-%COMP%]{background:#fff;border-radius:16px;padding:24px;text-align:center;box-shadow:0 10px 30px #0000000d;transition:transform .2s ease,box-shadow .2s ease}.feature-card[_ngcontent-%COMP%]:hover{transform:translateY(-4px);box-shadow:0 18px 40px #00000014}.feature-icon[_ngcontent-%COMP%]{width:84px;height:84px;object-fit:contain;display:block;margin:0 auto 14px}.feature-card[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{margin-bottom:10px;font-weight:700}.feature-card[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{font-size:.95rem;color:#6b7280;margin:0}@media(max-width:768px){.hero-image[_ngcontent-%COMP%]{max-width:340px}}.hero-actions[_ngcontent-%COMP%]{display:flex;gap:.75rem;flex-wrap:wrap}.hero-actions[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{padding:.65rem 1.2rem;font-weight:600}.overlay[_ngcontent-%COMP%]{position:fixed;inset:0;background:#0f172a59;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;padding:1rem;z-index:1000}.overlay-panel[_ngcontent-%COMP%]{position:relative;width:100%;max-width:720px;border-radius:1.5rem;background:#fff;box-shadow:0 25px 60px #0000002e;padding:1.25rem;animation:_ngcontent-%COMP%_popIn .25s ease-out}.close-btn[_ngcontent-%COMP%]{position:absolute;top:.85rem;right:.85rem;width:2.25rem;height:2.25rem;border:0;border-radius:999px;background:#0000000f;cursor:pointer;font-size:1.1rem;line-height:1}.close-btn[_ngcontent-%COMP%]:hover{background:#0000001f}@keyframes _ngcontent-%COMP%_popIn{0%{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}"]})};var xt=class t{http=w(Wr);API="https://family-scheduler-project-backend.onrender.com";getHeaders(){let e=localStorage.getItem("access_token");return console.log("TOKEN EN API (getHeaders):",e),new jn({Authorization:`Bearer ${e}`,"Content-Type":"application/json"})}getMyFamilies(){return this.http.get(`${this.API}
7/families/my`,{headers:this.getHeaders()})}createFamily(e){return this.http.post(`${this.API}/families/`,e,{headers:this.getHeaders()})}getMembersByFamily(e){return this.http.get(`${this.API}/fmembers/families/${e}`,{headers:this.getHeaders()})}getChildrenByFamily(e){return this.http.get(`${this.API}/children/families/${e}/children`,{headers:this.getHeaders()})}getEventsByFamily(e){return this.http.get(`${this.API}/events/families/${e}`,{headers:this.getHeaders()})}getEventsByFamilyMember(e,n){return this.http.get(`${this.API}/events/families/${e}/members/${n}/events`,{headers:this.getHeaders()})}postChild(e){return this.http.post(`${this.API}/children/`,e,{headers:this.getHeaders()})}postMember(e){return this.http.post(`${this.API}/fmembers/`,e,{headers:this.getHeaders()})}createEvent(e,n,r){return this.http.post(`${this.API}/events/families/${e}/members/${n}/events`,r,{headers:this.getHeaders()})}deleteEvent(e,n){return this.http.delete(`${this.API}/events/families/${e}/events/${n}`,{headers:this.getHeaders()})}getMemberById(e){return this.http.get(`${this.API}/fmembers/${e}`,{headers:this.getHeaders()})}static \u0275fac=function(n){return new(n||t)};static \u0275prov=x({token:t,factory:t.\u0275fac,providedIn:"root"})};var qf=class t{fullName=localStorage.getItem("full_name")??"Usuario";router=w(Re);api=w(xt);familyName="";goMyFamilies(){this.router.navigateByUrl("/family")}createFamily(){if(!this.familyName.trim()){console.log("TOKEN EN WELCOME:",localStorage.getItem("access_token")),alert("Escribe un apellido para la familia");return}let e={family_name:`Familia ${this.familyName.trim()}`};console.log("CREANDO FAMILIA:",e),this.api.createFamily(e).subscribe({next:n=>{console.log("FAMILIA CREADA:",n),alert("Familia creada correctamente \u{1F389}"),this.router.navigateByUrl("/family")},error:n=>{console.error("ERROR CREANDO FAMILIA:",n),alert("Error al crear familia")}})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=re({type:t,selectors:[["app-welcome"]],decls:28,vars:2,consts:[[1,"welcome-wrap"],[1,"welcome-card"],[1,"welcome-content"],[1,"badge-pill"],[1,"main-title"],[1,"name"],[1,"main-subtitle"],[1,"feature-container"],[1,"tag"],[1,"action-area"],[1,"btn-main",3,"click"],[1,"icon-arrow"],[1,"action-area",2,"margin-top","20px"],["type","text","placeholder","Familia - Apellido",2,"padding","12px","border-radius","12px","border","1px solid #ccc","width","100%","margin-bottom","10px",3,"ngModelChange","ngModel"]],template:function(n,r){n&1&&(m(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3),y(4,"\u2728 Family Scheduler Pro"),v(),m(5,"h1",4),y(6," Hola, "),m(7,"span",5),y(8),v()(),m(9,"p",6),y(10," Gestiona el d\xEDa a d\xEDa de tu familia de forma inteligente. Todo lo que necesitas en un solo lugar. "),v(),m(11,"div",7)(12,"span",8),y(13,"\u{1F4C5} Agenda"),v(),m(14,"span",8),y(15,"\u{1F468}\u200D\u{1F469}\u200D\u{1F467} Miembros"),v(),m(16,"span",8),y(17,"\u2705 Tareas"),v()(),m(18,"div",9)(19,"button",10),L("click",function(){return r.goMyFamilies()}),m(20,"span"),y(21,"Entrar al Dashboard"),v(),m(22,"i",11),y(23,"\u2192"),v()()(),m(24,"div",12)(25,"input",13),Ie("ngModelChange",function(o){return Te(r.familyName,o)||(r.familyName=o),o}),v(),m(26,"button",10),L("click",function(){return r.createFamily()}),y(27," Crear Familia "),v()()()()()),n&2&&(_(8),ye(r.fullName),_(17),Se("ngModel",r.familyName))},dependencies:[We,qn,At,sn,Dr],styles:[".welcome-wrap[_ngcontent-%COMP%]{min-height:100vh;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;background-color:#f8fafc;padding:20px;box-sizing:border-box}.welcome-card[_ngcontent-%COMP%]{width:100%;max-width:500px;background:#fff;max-width:600px;padding:60px 40px;border-radius:32px;box-shadow:0 20px 50px #0000000d;text-align:center}.welcome-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.badge-pill[_ngcontent-%COMP%]{padding:6px 16px;background:#eff6ff;color:#3b82f6;border-radius:100px;font-size:14px;font-weight:600;margin-bottom:24px}.main-title[_ngcontent-%COMP%]{font-size:42px;font-weight:800;color:#1e293b;margin:0;line-height:1.2}.name[_ngcontent-%COMP%]{display:block;color:#3b82f6}.main-subtitle[_ngcontent-%COMP%]{font-size:18px;color:#64748b;margin-top:20px;line-height:1.6;max-width:400px}.feature-container[_ngcontent-%COMP%]{display:flex;gap:12px;margin:32px 0}.tag[_ngcontent-%COMP%]{font-size:13px;font-weight:500;color:#94a3b8;background:#f1f5f9;padding:4px 12px;border-radius:8px}.action-area[_ngcontent-%COMP%]{width:100%;margin-top:10px}.btn-main[_ngcontent-%COMP%]{width:100%;padding:18px;background:#1e293b;color:#fff;border:none;border-radius:16px;font-size:16px;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px;transition:transform .2s ease}.btn-main[_ngcontent-%COMP%]:hover{transform:scale(1.02);background:#0f172a}.icon-arrow[_ngcontent-%COMP%]{font-style:normal;font-size:20px}.welcome-input[_ngcontent-%COMP%]{width:100%;padding:14px 16px;border:1px solid #e5e7eb;border-radius:16px;margin-bottom:10px;font-size:16px;outline:none}.welcome-input[_ngcontent-%COMP%]:focus{border-color:#3b82f6}"]})};function nV(t,e){if(t&1){let n=ut();V(0,"article",17),$e("click",function(){let i=te(n).$implicit,o=F();return ne(o.openMember(i))}),V(1,"div",18)(2,"button",19),$e("click",function(i){let o=te(n).$implicit,s=F();return i.stopPropagation(),ne(s.goSeeCard(o))}),y(3,"Ver"),U(),V(4,"button",20),$e("click",function(i){let o=te(n).$implicit,s=F();return i.stopPropagation(),ne(s.goUpdateMember(o))}),y(5,"Update"),U()(),V(6,"div",21),jr(7,"img",22),V(8,"div",23)(9,"h3",24),y(10),U(),V(11,"span",25),y(12),U()()(),V(13,"div",26)(14,"button",27),$e("click",function(){let i=te(n).$implicit,o=F();return ne(o.goMemberAgenda(i))}),y(15,"Ver Agenda"),U()()()}if(t&2){let n=e.$implicit,r=F();_(7),Bo("src",r.avatarForMember(n),ir),_(3),ye(n.full_name),_(2),ye(n.relationship
7)}}function rV(t,e){if(t&1){let n=ut();V(0,"article",17),$e("click",function(){let i=te(n).$implicit,o=F();return ne(o.openMember(i))}),V(1,"div",18)(2,"button",19),$e("click",function(i){let o=te(n).$implicit,s=F();return i.stopPropagation(),ne(s.goSeeCard(o))}),y(3,"Ver"),U(),V(4,"button",20),$e("click",function(i){let o=te(n).$implicit,s=F();return i.stopPropagation(),ne(s.goUpdateMember(o))}),y(5,"Update"),U()(),V(6,"div",21),jr(7,"img",22),V(8,"div",23)(9,"h3",24),y(10),U(),V(11,"p",28),y(12),U()()(),V(13,"div",26)(14,"button",27),$e("click",function(){let i=te(n).$implicit,o=F();return ne(o.goMemberAgenda(i))}),y(15,"Ver Agenda"),U()()()}if(t&2){let n=e.$implicit,r=F();_(7),Bo("src",r.avatarForMember(n),ir),_(3),ye(n.full_name),_(2),Z("Nacimiento: ",n.birthdate||"No definida")}}function iV(t,e){if(t&1){let n=ut();V(0,"div",29),$e("click",function(){te(n);let i=F();return ne(i.closeMember())}),V(1,"div",30),$e("click",function(i){return te(n),ne(i.stopPropagation())}),V(2,"div",31)(3,"h2",32),y(4,"Detalle del miembro"),U(),V(5,"button",19),$e("click",function(){te(n);let i=F();return ne(i.closeMember())}),y(6,"Cerrar"),U()(),V(7,"div",33),jr(8,"img",34),V(9,"h3",35),y(10),U(),V(11,"p",36),y(12),U(),V(13,"div",37)(14,"div")(15,"b"),y(16,"Cumple:"),U(),y(17),U(),V(18,"div")(19,"b"),y(20,"G\xE9nero:"),U(),y(21),U(),V(22,"div")(23,"b"),y(24,"Ciudad:"),U(),y(25),U(),V(26,"div")(27,"b"),y(28,"Hobbys:"),U(),y(29),U(),V(30,"div")(31,"b"),y(32,"Admin:"),U(),y(33),U()(),V(34,"div",38)(35,"button",20),$e("click",function(){te(n);let i=F();return ne(i.goUpdateMember(i.selectedMember()))}),y(36,"Update"),U(),V(37,"button",19),$e("click",function(){te(n);let i=F();return ne(i.closeMember())}),y(38,"OK"),U()()()()()}if(t&2){let n=F();_(8),Bo("src",n.avatarForMember(n.selectedMember()),ir),_(2),ye(n.selectedMember().full_name),_(2),Vr(" ",n.selectedMember().is_child?"Ni\xF1o/a":"Adulto"," \xB7 ",n.selectedMember().relationship||"-"," "),_(5),Z(" ",n.selectedMember().birthdate||"-"),_(4),Z(" ",n.selectedMember().gender||"-"),_(4),Z(" ",n.selectedMember().city||"-"),_(4),Z(" ",n.selectedMember().hobbys||"-"),_(4),Z(" ",n.selectedMember().is_admin)}}var Yf=class t{api=w(xt);router=w(Re);familyMembers=W([]);children=W([]);events=W([]);familyId=W(null);selectedMember=W(null);AVATAR_MAP={mother:"/madre.jpg",madre:"/madre.jpg",father:"/padre.jpg",padre:"/padre.jpg",grandma:"/abuela.jpg",abuela:"/abuela.jpg",grandpa:"/abuelo.jpg",abuelo:"/abuelo.jpg",uncle:"/tio.jpg",tio:"/tio.jpg",aunt:"/tia.jpg",tia:"/tia.jpg",default:"/default.jpg"};ngOnInit(){this.loadDashboard()}loadDashboard(){this.api.getMyFamilies().subscribe({next:e=>{if(e&&e.length>0){let n=e[0].family_id||e[0].id;this.familyId.set(n),this.api.getMembersByFamily(n).subscribe(r=>{this.familyMembers.set(r),this.children.set(r.filter(i=>!!i.is_child))}),this.api.getEventsByFamily(n).subscribe(r=>this.events.set(r))}else this.router.navigateByUrl("/welcome")},error:e=>console.error("Error al obtener familias:",e)})}adultsList(){return this.familyMembers().filter(e=>!e.is_child)}goAddMember(){let e=this.familyId();if(!e){alert("No hay familyId todav\xEDa.");return}this.router.navigate(["/member-create"],{queryParams:{familyId:e}})}openMember(e){this.selectedMember.set(e)}closeMember(){this.selectedMember.set(null)}goUpdateMember(e){let n=e?.id??e?.member_id;this.router.navigate(["/member-update"],{queryParams:{memberId:n}})}goEvents(){let e=this.familyId();if(!e){alert("No hay familyID todavia");return}this.router.navigate(["events"],{queryParams:{familyId:e}})}getAvatarByRole(e){let n=(e||"").toLowerCase().trim()||"default";return this.AVATAR_MAP[n]||this.AVATAR_MAP.default}getAvatarForChild(e){let n=String(e?.gender||"").toLowerCase().trim();return n==="female"||n==="femenino"?"/nina.jpg":"/nino.jpg"}avatarForMember(e){return e?.is_child?this.getAvatarForChild(e):this.getAvatarByRole(e?.relationship)}goMemberAgenda(e){let n=this.familyId(),r=e?.id??e?.member_id;if(!n||!r){alert("Falta familyId o memberId");return}this.router.navigate(["/events"],{queryParams:{familyId:n,memberId:r}})}goSeeCard(e){let n=e?.id??e?.member_id;n&&this.router.navigate(["/member",n])}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=re({type:t,selectors:[["app-family-home"]],decls:33,vars:5,consts:[[1,"page"],[1,"page-header"],[1,"headline"],[1,"chip"],[1,"title"],[1,"subtitle"],[1,"header-actions"],[1,"btn","ghost","me-2",3,"click"],[1,"btn","primary",3,"click"],[1,"panel"],[1,"panel-head"],[1,"panel-title"],[1,"count-pill"],[1,"grid","grid-4"],[1,"card","hover-card"],[1,"grid","grid-3"],[1,"modal-backdrop"],[1,"card","hover-card",3,"click"],[1,"card-overlay-actions"],[1,"mini-btn",3,"click"],[1,"mini-btn","dark",3,"click"],[1,"card-row"],[1,"avatar","xl",3,"src"],[1,"text"],[1,"card-title"],[1,"role-pill"],[1,"card-footer"],[1,"btn","tiny","primary",3,"click"],[1,"card-muted"],[1,"modal-backdrop",3,"click"],[1,"modal-card",3,"click"],[1,"modal-header"],[2,"margin","0"],[1,"modal-body"],[1,"modal-avatar",3,"src"],[2,"margin","8px 0 0 0"],[2,"margin","0","font-weight","700","opacity",".8"],[1,"modal-grid"],[2,"display","flex","gap","10px","margin-top","14px"]],template:function(n,r){n&1&&(V(0,"section",0)(1,"header",1)(2,"div",2)(3,"span",3),y(4,"\u{1F468}\u200D\u{1F469}\u200D\u{1F467}\u200D\u{1F466} Family Dashboard"),U(),V(5,"h1",4),y(6,"Mi familia"),U(),V(7,"p",5),y(8,"Gesti\xF3n centralizada de miembros, ni\xF1os y agenda."),U()(),V(9,"div",6)(10,"button",7),$e("click",function(){return r.goAddMember()}),y(11," + A\xF1adir Integrante "),U(),V(12,"button",8),$e("click",function(){return r.goEvents()}),y(13,"Ir a Eventos"),U()()(),V(14,"section",9)(15,"div",10)(16,"h2",11),y(17,"Miembros Adultos"),U(),V(18,"span",12),y(19),U()(),V(20,"div",13),jt(21,nV,16,3,"article",14,yn),U()(),V(23,"section",9)(24,"div",10)(25,"h2",11),y(26,"Ni\xF1os"),U(),V(27,"span",12),y(28),U()(),V(29,"div",15),jt(30,rV,16,3,"article",14,yn),U()()(),_e(32,iV,39,9,"div",16)),n&2&&(bn("blurred",r.selectedMember()),_(19),Z("Total: ",r.adultsList().length),_(2),Vt(r.adultsList()),_(7),Z("Total: ",r.children().length),_(2),Vt(r.children()),_(2),we(r.selectedMember()?32:-1))},dependencies:[We,qn],styles:["[_ngcontent-%COMP%]:root{--bg: #eef2ff;--bg-2: #e9edff;--surface: #ffffff;--text: #0f172a;--muted: #5b6477;--violet: #6d28d9;--violet-2: #7c3aed;--violet-soft: rgba(124, 58, 237, .14);--border: rgba(109, 40, 217, .25);--border-strong: rgba(109, 40, 217, .4);--shadow: 0 18px 55px rgba(15, 23, 42, .12);--shadow-2: 0 26px 70px rgba(15, 23, 42, .16);--radius: 22px}.page[_ngcontent-%COMP%]{min-height:100vh;padding:26px 14px 60px;font-family:system-ui,-apple-system,Segoe UI,Inter,sans-serif;color:var(--text);background:radial-gradient(900px 420px at 18% 10%,rgba(124,58,237,.22),transparent 62%),radial-gradient(900px 420px at 85% 10%,rgba(99,102,241,.18),transparent 60%),linear-gradient(180deg,var(--bg),#ffffff)}.page-header[_ngcontent-%COMP%], .panel[_ngcontent-%COMP%]{max-width:980px;margin:0 auto}.page-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:18px;border-radius:26px;background:#ffffffeb;border:1px solid rgba(109,40,217,.2);box-shadow:var(--shadow);margin-bottom:18px}.headline[_ngcontent-%COMP%]   .chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:10px;padding:8px 14px;border-radius:999px;font-weight:900;font-size:.82rem;color:#3b0764;background:#7c3aed24;border:1px solid rgba(124,58,237,.2)}.title[_ngcontent-%COMP%]{margin:10px 0 4px;font-size:clamp(1.8rem,3vw,2.35rem);font-weight:950;letter-spacing:-1px}.subtitle[_ngcontent-%COMP%]{margin:0;color:var(--muted);line-height:1.5;max-width:560px}.header-actions[_ngcontent-%COMP%]{display:flex;gap:14px;flex-wrap:wrap}.btn[_ngcontent-%COMP%]{font-weight:800;border-radius:14px;padding:14px 22px;font-size:.95rem;cursor:pointer;border:none;transition:all .2s ease;letter-spacing:.3px}
7.btn.ghost[_ngcontent-%COMP%]{background:#fff;color:#5b21b6;border:2px solid #7c3aed}.btn.ghost[_ngcontent-%COMP%]:hover{background:#f5f3ff;transform:translateY(-2px)}.btn.primary[_ngcontent-%COMP%]{background:linear-gradient(90deg,#7c3aed,#6d28d9);color:#fff!important;border:none;box-shadow:0 12px 30px #7c3aed73}.btn.primary[_ngcontent-%COMP%]:hover{transform:translateY(-2px) scale(1.02);box-shadow:0 18px 40px #7c3aed8c}.btn.primary[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], .btn.primary[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:#fff!important;font-weight:900}.panel[_ngcontent-%COMP%]{margin:0 auto 18px;padding:16px;border-radius:26px;background:#e9edffe6;border:1px solid rgba(109,40,217,.16);box-shadow:0 14px 40px #0f172a1a}.panel-head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 6px 14px}.panel-title[_ngcontent-%COMP%]{margin:0;font-size:1.25rem;font-weight:950}.count-pill[_ngcontent-%COMP%]{padding:8px 12px;border-radius:999px;font-weight:900;font-size:.82rem;background:#ffffffd9;border:1px solid rgba(109,40,217,.18);color:#0f172abf}.grid[_ngcontent-%COMP%]{display:grid;gap:16px}.grid-4[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fill,minmax(320px,1fr))}.grid-3[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fill,minmax(340px,1fr))}.card[_ngcontent-%COMP%]{position:relative;border-radius:24px;padding:18px 18px 16px;background:#fffffff5;color:var(--text);border:2px solid rgba(124,58,237,.28);box-shadow:0 18px 45px #0f172a1a;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.hover-card[_ngcontent-%COMP%]:hover{transform:translateY(-4px);box-shadow:var(--shadow-2);border-color:#7c3aed6b}.card-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:14px}.avatar.xl[_ngcontent-%COMP%]{width:78px;height:78px;border-radius:20px;object-fit:cover;border:1px solid rgba(15,23,42,.06);box-shadow:0 14px 24px #0f172a1a}.card-title[_ngcontent-%COMP%]{margin:0;font-size:1.18rem;font-weight:950;letter-spacing:-.2px}.role-pill[_ngcontent-%COMP%]{display:inline-flex;align-items:center;margin-top:6px;padding:6px 10px;border-radius:14px;background:var(--violet-soft);color:#4c1d95;border:1px solid rgba(124,58,237,.22);font-size:.78rem;font-weight:950}.card-muted[_ngcontent-%COMP%]{margin:6px 0 0;color:#0f172aa3;font-weight:650}.card-footer[_ngcontent-%COMP%]{margin-top:14px;display:flex;justify-content:flex-end}.card-overlay-actions[_ngcontent-%COMP%]{position:absolute;top:12px;right:12px;display:flex;gap:10px;opacity:0;transform:translateY(-4px);transition:opacity .18s ease,transform .18s ease}.card[_ngcontent-%COMP%]:hover   .card-overlay-actions[_ngcontent-%COMP%]{opacity:1;transform:translateY(0)}.mini-btn[_ngcontent-%COMP%]{border:none;padding:8px 12px;border-radius:14px;font-weight:900;font-size:.78rem;cursor:pointer;background:#fff;color:#5b21b6;box-shadow:0 10px 18px #0f172a1f;transition:all .2s ease}.mini-btn[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 14px 24px #0f172a2e}.mini-btn.dark[_ngcontent-%COMP%]{background:linear-gradient(90deg,#7c3aed,#6d28d9);color:#fff;box-shadow:0 12px 26px #7c3aed73}.mini-btn.dark[_ngcontent-%COMP%]:hover{transform:translateY(-2px) scale(1.05);box-shadow:0 18px 36px #7c3aed8c}.mini-btn[_ngcontent-%COMP%]:not(.dark){background:#fff;color:#6d28d9;border:2px solid #c4b5fd}@media(max-width:720px){.page-header[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch}.btn[_ngcontent-%COMP%]{width:100%;justify-content:center}.grid-4[_ngcontent-%COMP%], .grid-3[_ngcontent-%COMP%]{grid-template-columns:1fr}}"]})};function oV(t,e){if(t&1){let n=ut();m(0,"article",33)(1,"div",34)(2,"span"),y(3),v(),m(4,"h3"),y(5),v()(),m(6,"p"),y(7),v(),m(8,"p"),y(9),v(),m(10,"p"),y(11),v(),m(12,"div",35)(13,"button",28),L("click",function(){let i=te(n).$implicit,o=F();return ne(o.addMember(i))}),y(14,"A\xF1adir"),v(),m(15,"button",36),L("click",function(){let i=te(n).$index,o=F();return ne(o.removeCard(i))}),y(16,"Eliminar"),v()()()}if(t&2){let n=e.$implicit,r=e.$index,i=e.$index;
7bn("bg-even",i%2===0)("bg-odd",i%2!==0),_(3),Z("#",r+1),_(2),ye(n.full_name),_(2),ye(n.relationship),_(2),Z("Child: ",n.is_child),_(2),Z("G\xE9nero: ",n.gender||"-")}}function sV(t,e){t&1&&(m(0,"p",32),y(1,"A\xFAn no hay miembros en la lista."),v())}var Qf=class t{route=w(tt);router=w(Re);api=w(xt);familyId=null;birthdateInput="";NewCard={full_name:"",relationship:"",is_child:!1,birthdate:null,gender:"",city:"",hobbys:"",email:"",password:"",is_admin:!1};cards=W([]);AVATAR_MAP={mother:"/madre.jpg",father:"/padre.jpg",grandma:"/abuela.jpg",grandpa:"/abuelo.jpg",aunt:"/tia.jpg",uncle:"/tio.jpg",default:"/default.jpg"};ngOnInit(){let e=this.route.snapshot.queryParamMap.get("familyId");this.familyId=e?Number(e):null}setBirthdate(e){this.birthdateInput=e,this.NewCard.birthdate=e?new Date(e):null}getPreviewAvatar(){if(this.NewCard.is_child)return(this.NewCard.gender||"").toLowerCase().trim()==="female"?"/nina.jpg":"/nino.jpg";let e=(this.NewCard.relationship||"").toLowerCase().trim();return this.AVATAR_MAP[e]||this.AVATAR_MAP.default}generateCard(){if(this.NewCard.full_name.trim()){if(this.NewCard.is_child&&!this.NewCard.gender){alert("Si es ni\xF1o/a, elige g\xE9nero para la foto \u{1F642}");return}this.cards.update(e=>[...e,S({},this.NewCard)])}}addMember(e){if(!this.familyId){alert("Falta familyId");return}if(e.is_child&&!e.gender){alert("Para ni\xF1o/a debes elegir g\xE9nero \u{1F642}");return}let n=e.birthdate instanceof Date?e.birthdate.toISOString().slice(0,10):null,r={family_id:this.familyId,full_name:e.full_name,relationship:e.relationship,is_child:e.is_child,birthdate:n,gender:e.gender||null,city:e.city||null,hobbys:e.hobbys||null,email:e.email||null,password:e.password||null,is_admin:e.is_admin};this.api.postMember(r).subscribe({next:()=>this.router.navigateByUrl("/family"),error:i=>{console.error(i),alert("Error al guardar miembro")}})}removeCard(e){let n=[...this.cards()];n.splice(e,1),this.cards.set(n)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=re({type:t,selectors:[["app-member-create"]],decls:94,vars:25,consts:[[1,"container"],[1,"layout"],[1,"preview"],[1,"card","preview-card"],[2,"display","flex","gap","14px","align-items","center","margin-bottom","12px"],["alt","avatar",2,"width","72px","height","72px","border-radius","18px","border","3px solid #111","object-fit","cover",3,"src"],[1,"title",2,"margin","0"],[2,"margin","0","font-weight","700","opacity",".8"],[1,"desc"],[1,"badge"],[1,"form"],[1,"form-group"],["type","text","placeholder","Nombre completo",3,"ngModelChange","ngModel"],[3,"ngModelChange","ngModel"],["value","","disabled",""],["value","mother"],["value","father"],["value","grandma"],["value","grandpa"],["value","aunt"],["value","uncle"],["value","child"],[3,"ngValue"],["type","date",3,"ngModelChange","ngModel"],["value","female"],["value","male"],["type","text","placeholder","Ciudad (opcional)",3,"ngModelChange","ngModel"],["placeholder","Hobbys (opcional)",3,"ngModelChange","ngModel"],[1,"btn-generate",3,"click"],[1,"list-container"],[1,"task-grid"],[1,"card","task-card",3,"bg-even","bg-odd"],[1,"empty-text"],[1,"card","task-card"],[1,"card-header"],[1,"actions"],[1,"btn-delete",3,"click"]],template:function(n,r){n&1&&(m(0,"div",0)(1,"div",1)(2,"section",2)(3,"h2"),y(4,"Live Preview"),v(),m(5,"div",3)(6,"div",4),oe(7,"img",5),m(8,"div")(9,"h3",6),y(10),v(),m(11,"p",7),y(12),v()()(),m(13,"p")(14,"b"),y(15,"Cumple:"),v(),y(16),Ho(17,"date"),v(),m(18,"p")(19,"b"),y(20,"Ciudad:"),v(),y(21),v(),m(22,"p")(23,"b"),y(24,"G\xE9nero:"),v(),y(25),v(),m(26,"p",8)(27,"b"),y(28,"Hobbys:"),v(),y(29),v(),m(30,"span",9),y(31),v()()(),m(32,"section",10)(33,"h2"),y(34,"Crear miembro"),v(),m(35,"div",11)(36,"input",12),Ie("ngModelChange",function(o){return Te(r.NewCard.full_name,o)||(r.NewCard.full_name=o),o}),v(),m(37,"label"),y(38,"Parentesco"),v(),m(39,"select",13),Ie("ngModelChange",function(o){return Te(r.NewCard.relationship,o)||(r.NewCard.relationship=o),o}),m(40,"option",14),y(41,"Selecciona..."),v(),m(42,"option",15),y(43,"Madre"),v(),m(44,"option",16),y(45,"Padre"),v(),m(46,"option",17),y(47,"Abuela"),v(),m(48,"option",18),y(49,"Abuelo"),v(),m(50,"option",19),y(51,"T\xEDa"),v(),m(52,"option",20),y(53,"T\xEDo"),v(),m(54,"option",21),y(55,"Hijo/a"),v()(),m(56,"label"),y(57,"\xBFEs ni\xF1o/a?"),v(),m(58,"select",13),Ie("ngModelChange",function(o){return Te(r.NewCard.is_child,o)||(r.NewCard.is_child=o),o}),m(59,"option",22),y(60,"No (Adulto)"),v(),m(61,"option",22),y(62,"S\xED (Ni\xF1o/a)"),v()(),m(63,"label"),y(64,"Fecha de nacimiento (opcional)"),v(),m(65,"input",23),L("ngModelChange",function(o){return r.setBirthdate(o)}),v(),m(66,"label"),y(67,"G\xE9nero (si es ni\xF1o/a, elige uno)"),v(),m(68,"select",13),Ie("ngModelChange",function(o){return Te(r.NewCard.gender,o)||(r.NewCard.gender=o),o}),m(69,"option",14),y(70,"Selecciona..."),v(),m(71,"option",24),y(72,"Femenino"),v(),m(73,"o
7ption",25),y(74,"Masculino"),v()(),m(75,"input",26),Ie("ngModelChange",function(o){return Te(r.NewCard.city,o)||(r.NewCard.city=o),o}),v(),m(76,"textarea",27),Ie("ngModelChange",function(o){return Te(r.NewCard.hobbys,o)||(r.NewCard.hobbys=o),o}),v(),m(77,"label"),y(78,"\xBFEs admin?"),v(),m(79,"select",13),Ie("ngModelChange",function(o){return Te(r.NewCard.is_admin,o)||(r.NewCard.is_admin=o),o}),m(80,"option",22),y(81,"No"),v(),m(82,"option",22),y(83,"S\xED"),v()(),m(84,"button",28),L("click",function(){return r.generateCard()}),y(85,"Vista previa"),v()()()(),oe(86,"hr"),m(87,"section",29)(88,"h2"),y(89,"Miembros a a\xF1adir"),v(),m(90,"div",30),jt(91,oV,17,9,"article",31,yn,!1,sV,2,0,"p",32),v()()()),n&2&&(_(7),B("src",r.getPreviewAvatar(),ir),_(3),ye(r.NewCard.full_name||"Nombre..."),_(2),Vr(" ",r.NewCard.is_child?"Ni\xF1o/a":"Adulto"," \xB7 ",r.NewCard.relationship||"Parentesco..."," "),_(4),Z(" ",Uo(17,22,r.NewCard.birthdate,"shortDate")),_(5),Z(" ",r.NewCard.city||"-"),_(4),Z(" ",r.NewCard.gender||"-"),_(4),Z(" ",r.NewCard.hobbys||"-"),_(2),Z("Admin: ",r.NewCard.is_admin),_(5),Se("ngModel",r.NewCard.full_name),_(3),Se("ngModel",r.NewCard.relationship),_(19),Se("ngModel",r.NewCard.is_child),_(),B("ngValue",!1),_(2),B("ngValue",!0),_(4),B("ngModel",r.birthdateInput),_(3),Se("ngModel",r.NewCard.gender),_(7),Se("ngModel",r.NewCard.city),_(),Se("ngModel",r.NewCard.hobbys),_(3),Se("ngModel",r.NewCard.is_admin),_(),B("ngValue",!1),_(2),B("ngValue",!0),_(9),Vt(r.cards()))},dependencies:[We,qn,Hf,Uf,At,Es,sn,Dr,wa],styles:[".container[_ngcontent-%COMP%]{max-width:1000px;margin:0 auto;padding:2rem;font-family:sans-serif}.layout[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:3rem;margin-bottom:3rem}.card[_ngcontent-%COMP%]{border:3px solid #1a1a1a;padding:1.5rem;border-radius:16px;background:#fff;transition:all .2s ease}.preview-card[_ngcontent-%COMP%]{border-color:#6366f1;box-shadow:8px 8px #6366f1}.is-completed[_ngcontent-%COMP%]{opacity:.4;filter:grayscale(1);border-style:dashed}.bg-even[_ngcontent-%COMP%]{background-color:#f3f4f6}.bg-odd[_ngcontent-%COMP%]{background-color:#fff}.form-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}input[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{padding:.8rem;border:2px solid #ddd;border-radius:8px;font-size:1rem}.btn-generate[_ngcontent-%COMP%]{background:#1a1a1a;color:#fff;padding:1rem;border-radius:8px;cursor:pointer;font-weight:700}.task-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:1.5rem}.badge[_ngcontent-%COMP%]{background:#e5e7eb;padding:.2rem .6rem;border-radius:4px;font-size:.8rem;font-weight:700}.actions[_ngcontent-%COMP%]{margin-top:1rem;display:flex;gap:.5rem}.btn-delete[_ngcontent-%COMP%]{background:#ef4444;color:#fff;border:none;padding:.5rem;border-radius:4px;cursor:pointer}"]})};var Zf=class t{route=w(tt);router=w(Re);memberId=null;form={full_name:"",relationship:"",city:"",hobbys:"",gender:""};constructor(){let e=this.route.snapshot.queryParamMap.get("memberId");this.memberId=e?Number(e):null}save(){console.log("SAVE UPDATE:",this.memberId,this.form),alert("Update listo (pantalla). me falta conectar al backend! \u{1F642}"),this.router.navigateByUrl("/family")}cancel(){this.router.navigateByUrl("/family")}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=re({type:t,selectors:[["app-member-update"]],decls:17,vars:6,consts:[[1,"wrap"],[1,"card"],[1,"muted"],[1,"form"],["type","text","placeholder","Nombre completo",3,"ngModelChange","ngModel"],["type","text","placeholder","Parentesco (mother/father/...)",3,"ngModelChange","ngModel"],["type","text","placeholder","Ciudad",3,"ngModelChange","ngModel"],["type","text","placeholder","G\xE9nero (female/male)",3,"ngModelChange","ngModel"],["placeholder","Hobbys",3,"ngModelChange","ngModel"],[1,"actions"],["type","button",1,"btn","dark",3,"click"],["type","button",1,"btn",3,"click"]],template:function(n,r){n&1&&(m(0,"div",0)(1,"div",1)(2,"h2"),y(3,"Update miembro"),v(),m(4,"p",2),y(5),v(),m(6,"div",3)(7,"input",4),Ie("ngModelChange",function(o){return Te(r.form.full_name,o)||(r.form.full_name=o),o}),v(),m(8,"input",5),Ie("ngModelChange",function(o){return Te(r.form.relationship,o)||(r.form.relationship=o),o}),v(),m(9,"input",6),Ie("ngModelChange",function(o){return Te(r.form.city,o)||(r.form.city=o),o}),v(),m(10,"input",7),Ie("ngModelChange",function(o){return Te(r.form.gender,o)||(r.form.gender=o),o}),v(),m(11,"textarea",8),Ie("ngModelChange",function(o){return Te(r.form.hobbys,o)||(r.form.hobbys=o),o}),v()(),m(12,"div",9)(13,"button",10),L("click",function(){return r.s
7ave()}),y(14,"Guardar"),v(),m(15,"button",11),L("click",function(){return r.cancel()}),y(16,"Cancelar"),v()()()()),n&2&&(_(5),Z("ID: ",r.memberId),_(2),Se("ngModel",r.form.full_name),_(),Se("ngModel",r.form.relationship),_(),Se("ngModel",r.form.city),_(),Se("ngModel",r.form.gender),_(),Se("ngModel",r.form.hobbys))},dependencies:[We,qn,At,sn,Dr],styles:[".wrap[_ngcontent-%COMP%]{min-height:100vh;display:grid;place-items:center;padding:18px;background:#f8fafc}.card[_ngcontent-%COMP%]{width:100%;max-width:520px;background:#fff;border:3px solid #111;border-radius:18px;padding:16px;box-shadow:12px 12px #111}.muted[_ngcontent-%COMP%]{opacity:.7;font-weight:700}.form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:10px;margin-top:10px}input[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{border:2px solid #ddd;border-radius:12px;padding:10px;font-size:14px}.actions[_ngcontent-%COMP%]{display:flex;gap:10px;margin-top:14px}.btn[_ngcontent-%COMP%]{border:2px solid #111;background:#fff;padding:10px 12px;border-radius:12px;font-weight:900;cursor:pointer}.btn.dark[_ngcontent-%COMP%]{background:#111;color:#fff}"]})};function aV(t,e){if(t&1&&(m(0,"option",9),y(1),v()),t&2){let n=e.$implicit;B("ngValue",n.id),_(),ye(n.full_name)}}var Kf=class t{members=Ou([]);newEvent={member_id:0,title:"",type:"activity",start_at:"",end_at:"",location:"",notes:""};eventCreated=U_();handleClick(){this.eventCreated.emit(this.newEvent),this.newEvent={member_id:0,title:"",type:"activity",start_at:"",end_at:"",location:"",notes:""}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=re({type:t,selectors:[["app-event-create"]],inputs:{members:[1,"members"]},outputs:{eventCreated:"eventCreated"},decls:50,vars:8,consts:[[1,"panel"],[1,"panel-head"],[1,"panel-title"],[1,"panel-subtitle"],[1,"grid"],[1,"field"],[1,"label"],[1,"input",3,"ngModelChange","ngModel"],["disabled","",3,"ngValue"],[3,"ngValue"],["value","activity"],["value","medical"],["value","birthday"],["value","school"],["type","text","placeholder","Ej: Pediatra / F\xFAtbol / Cumplea\xF1os",1,"input",3,"ngModelChange","ngModel"],["type","datetime-local",1,"input",3,"ngModelChange","ngModel"],["type","text","placeholder","Cl\xEDnica / Colegio / Parque",1,"input",3,"ngModelChange","ngModel"],[1,"field","field-full"],["rows","3",1,"textarea",3,"ngModelChange","ngModel"],[1,"actions"],["type","button",1,"btn-primary",3,"click"]],template:function(n,r){n&1&&(m(0,"div",0)(1,"header",1)(2,"h2",2),y(3,"Crear evento"),v(),m(4,"p",3),y(5,"Elige un familiar y completa los datos."),v()(),m(6,"div",4)(7,"div",5)(8,"label",6),y(9,"Familiar"),v(),m(10,"select",7),Ie("ngModelChange",function(o){return Te(r.newEvent.member_id,o)||(r.newEvent.member_id=o),o}),m(11,"option",8),y(12,"Selecciona..."),v(),jt(13,aV,2,2,"option",9,yn),v()(),m(15,"div",5)(16,"label",6),y(17,"Tipo"),v(),m(18,"select",7),Ie("ngModelChange",function(o){return Te(r.newEvent.type,o)||(r.newEvent.type=o),o}),m(19,"option",10),y(20,"Activity"),v(),m(21,"option",11),y(22,"Medical"),v(),m(23,"option",12),y(24,"Birthday"),v(),m(25,"option",13),y(26,"School"),v()()(),m(27,"div",5)(28,"label",6),y(29,"T\xEDtulo"),v(),m(30,"input",14),Ie("ngModelChange",function(o){return Te(r.newEvent.title,o)||(r.newEvent.title=o),o}),v()(),m(31,"div",5)(32,"label",6),y(33,"Inicio"),v(),m(34,"input",15),Ie("ngModelChange",function(o){return Te(r.newEvent.start_at,o)||(r.newEvent.start_at=o),o}),v()(),m(35,"div",5)(36,"label",6),y(37,"Fin"),v(),m(38,"input",15),Ie("ngModelChange",function(o){return Te(r.newEvent.end_at,o)||(r.newEvent.end_at=o),o}),v()(),m(39,"div",5)(40,"label",6),y(41,"Lugar"),v(),m(42,"input",16),Ie("ngModelChange",function(o){return Te(r.newEvent.location,o)||(r.newEvent.location=o),o}),v()(),m(43,"div",17)(44,"label",6),y(45,"Notas"),v(),m(46,"textarea",18),Ie("ngModelChange",function(o){return Te(r.newEvent.notes,o)||(r.newEvent.notes=o),o}),v()()(),m(47,"div",19)(48,"button",20),L("click",function(){return r.handleClick()}),y(49," Crear evento "),v()()()),n&2&&(_(10),Se("ngModel",r.newEvent.member_id),_(),B("ngValue",0),_(2),Vt(r.members()),_(5),Se("ngModel",r.newEvent.type),_(12),Se("ngModel",r.newEvent.title),_(4),Se("ngModel",r.newEvent.start_at),_(4),Se("ngModel",r.newEvent.end_at),_(4),Se("ngModel",r.newEvent.location),_(4),Se("ngModel",r.newEvent.notes))},dependencies:[We,qn,Hf,Uf,At,Es,sn,Dr],styles:[".panel[_ngcontent-%COMP%]{margin:20px 0;border:3px solid #111;border-radius:20px;padding:24px;background:#fff;box-shadow:8px 8px #111;transition:all .2s ease}.panel-head[_ngcontent-%COMP%]{margin-bottom:24px;
7border-bottom:2px solid #f0f0f0;padding-bottom:12px}.panel-title[_ngcontent-%COMP%]{margin:0;font-size:1.5rem;font-weight:900;color:#111;text-transform:uppercase;letter-spacing:-.5px}.panel-subtitle[_ngcontent-%COMP%]{margin:4px 0 0;font-size:.95rem;color:#666;font-weight:600}.grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px}.field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.field-full[_ngcontent-%COMP%]{grid-column:1 / -1}.label[_ngcontent-%COMP%]{font-weight:800;font-size:14px;color:#111;margin-left:4px}.input[_ngcontent-%COMP%], .textarea[_ngcontent-%COMP%]{border:3px solid #111;border-radius:12px;padding:12px 16px;font-weight:600;font-size:1rem;transition:transform .1s ease,box-shadow .1s ease;background-color:#f9f9f9}.input[_ngcontent-%COMP%]:focus, .textarea[_ngcontent-%COMP%]:focus{outline:none;background-color:#fff;transform:translate(-2px,-2px);box-shadow:4px 4px #111}.textarea[_ngcontent-%COMP%]{resize:vertical;min-height:100px}.actions[_ngcontent-%COMP%]{margin-top:24px;display:flex;justify-content:flex-end}.btn-primary[_ngcontent-%COMP%]{border:3px solid #111;background:#bc95ff;color:#111;border-radius:12px;padding:12px 28px;font-weight:900;font-size:1rem;cursor:pointer;box-shadow:4px 4px #111;transition:all .1s active}.btn-primary[_ngcontent-%COMP%]:hover{transform:translate(-2px,-2px);box-shadow:6px 6px #111;background:#a676ff}.btn-primary[_ngcontent-%COMP%]:active{transform:translate(2px,2px);box-shadow:0 0 #111}"]})};function lV(t,e){if(t&1){let n=ut();m(0,"app-event-create",14),L("eventCreated",function(i){te(n);let o=F();return ne(o.handleEventCreated(i))}),v()}if(t&2){let n=F();B("members",n.members())}}function cV(t,e){if(t&1&&(m(0,"p",28),y(1),v()),t&2){let n=F().$implicit;_(),Z("\u{1F4CD} ",n.location)}}function uV(t,e){if(t&1){let n=ut();m(0,"div",23)(1,"div",24)(2,"span",25),y(3),v(),m(4,"strong",26),y(5),v()(),m(6,"p",27),y(7),Ho(8,"date"),Ho(9,"date"),v(),_e(10,cV,2,1,"p",28),m(11,"div",29)(12,"button",30),L("click",function(){let i=te(n).$implicit,o=F(2);return ne(o.deleteEvent(i))}),y(13,"Eliminar"),v()()()}if(t&2){let n=e.$implicit,r=e.$index,i=F(2);bn("even",r%2===0)("odd",r%2!==0),_(3),ye(i.getIconByType(n.type)),_(2),ye(n.title),_(2),Vr(" ",Uo(8,9,n.start_at,"dd MMM 'inicio' HH:mm")," \u2014 ",Uo(9,12,n.end_at,"'fin' HH:mm")," "),_(3),we(n.location?10:-1)}}function dV(t,e){t&1&&(m(0,"p",22),y(1,"Sin eventos a\xFAn"),v())}function fV(t,e){if(t&1&&(m(0,"article",13)(1,"div",15)(2,"div",16),y(3),v(),m(4,"div",17)(5,"h3",18),y(6),v(),m(7,"span",19),y(8),v()()(),m(9,"div",20),jt(10,uV,14,15,"div",21,yn,!1,dV,2,0,"p",22),v()()),t&2){let n=e.$implicit,r=F();_(3),ye((n.full_name==null?null:n.full_name.slice(0,1))||"\u{1F464}"),_(3),ye(n.full_name),_(2),ye(n.relationship||(n.is_child?"child":"member")),_(2),Vt(r.eventsForMember(n.id))}}var Xf=class t{route=w(tt);router=w(Re);api=w(xt);familyId=W(null);memberId=W(null);members=W([]);events=W([]);showCreate=W(!1);ngOnInit(){this.route.queryParamMap.subscribe(e=>{let n=e.get("familyId"),r=e.get("memberId"),i=n?Number(n):null,o=r?Number(r):null;if(!i){this.router.navigateByUrl("/family");return}this.familyId.set(i),this.memberId.set(Number.isFinite(o)?o:null),this.api.getMembersByFamily(i).subscribe({next:s=>{let a=(s||[]).map(l=>Y(S({},l),{id:l?.id??l?.member_id}));this.memberId()?this.members.set(a.filter(l=>Number(l.id)===Number(this.memberId()))):this.members.set(a)},error:s=>console.error("Error members:",s)}),this.memberId()?this.api.getEventsByFamilyMember(i,this.memberId()).subscribe({next:s=>this.events.set(s),error:s=>{if(s?.status===404){this.events.set([]);return}console.error("Error events by member:",s)}}):this.api.getEventsByFamily(i).subscribe({next:s=>this.events.set(s),error:s=>console.error("Error events by family:",s)})})}toggleCreate(){this.showCreate.update(e=>!e)}back(){this.router.navigateByUrl("/family")}clearMemberFilter(){let e=this.familyId();e&&this.router.navigate(["/events"],{queryParams:{familyId:e}})}getIconByType(e){return{activity:"\u26BD\u{1F3BE}\u{1F3CA}",medical:"\u{1FA7A}\u{1F469}\u{1F3FC}\u200D\u2695\uFE0F",birthday:"\u{1F382}",school:"\u{1F392}"}[e]||"\u{1F514}"}eventsForMember(e){return this.events().filter(n=>Number(n.member_id)===Number(e)).sort((n,r)=>new Date(n.start_at).getTime()-new Date(r.start_at).getTime())}handleEventCreated(e){let n=this.familyId();if(!n)return;let r=Number(e.member_id);if(!r){alert("Selecciona un familiar");return}
7let i={title:e.title,description:e.notes||"",location:e.location||"",type:e.type||"activity",start_at:e.start_at,end_at:e.end_at};this.api.createEvent(n,r,i).subscribe({next:()=>{this.memberId()?this.api.getEventsByFamilyMember(n,this.memberId()).subscribe({next:o=>this.events.set(o),error:o=>{if(o?.status===404){this.events.set([]);return}console.error("Error events by member:",o)}}):this.api.getEventsByFamily(n).subscribe(o=>this.events.set(o)),this.showCreate.set(!1)},error:o=>{console.error(o),alert("Error al crear evento")}})}deleteEvent(e){let n=this.familyId();!n||!confirm(`\xBFEliminar evento "${e.title}"?`)||this.api.deleteEvent(n,e.id).subscribe({next:()=>{this.events.set(this.events().filter(i=>i.id!==e.id))},error:i=>{console.error(i),alert("No se pudo eliminar")}})}goToCalendar(){let e=this.familyId();if(!e)return;let n=this.memberId();this.router.navigate(["/calendar"],{queryParams:S({familyId:e},n?{memberId:n}:{})})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=re({type:t,selectors:[["app-events"]],decls:21,vars:2,consts:[[1,"page"],[1,"page-header"],[1,"headline"],[1,"chip"],[1,"title"],[1,"subtitle"],[1,"header-actions"],[1,"btn","ghost",3,"click"],[1,"btn","primary",3,"click"],[1,"btn","btn-dark",3,"click"],[3,"members"],[1,"panel"],[1,"grid-members"],[1,"member-card"],[3,"eventCreated","members"],[1,"member-head"],[1,"avatar"],[1,"meta"],[1,"member-name"],[1,"member-role"],[1,"events-grid"],[1,"event-card",3,"even","odd"],[1,"empty"],[1,"event-card"],[1,"event-top"],[1,"event-icon"],[1,"event-title"],[1,"event-time"],[1,"event-muted"],[1,"event-actions"],[1,"mini-btn","danger",3,"click"]],template:function(n,r){n&1&&(m(0,"section",0)(1,"header",1)(2,"div",2)(3,"span",3),y(4,"\u{1F4C5} Events Dashboard"),v(),m(5,"h1",4),y(6,"Eventos por familiar"),v(),m(7,"p",5),y(8,"Cada miembro con sus eventos (ordenados por fecha)."),v()(),m(9,"div",6)(10,"button",7),L("click",function(){return r.back()}),y(11,"\u2190 Volver"),v(),m(12,"button",8),L("click",function(){return r.toggleCreate()}),y(13),v(),m(14,"button",9),L("click",function(){return r.goToCalendar()}),y(15," Ver en calendario "),v()()(),_e(16,lV,1,1,"app-event-create",10),m(17,"section",11)(18,"div",12),jt(19,fV,13,4,"article",13,yn),v()()()),n&2&&(_(13),Z(" ",r.showCreate()?"\u2715 Cerrar":"+ Crear Evento"," "),_(3),we(r.showCreate()?16:-1),_(3),Vt(r.members()))},dependencies:[We,Kf,wa],styles:[".page[_ngcontent-%COMP%]{padding:20px;max-width:1200px;margin:0 auto}.page-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:30px;flex-wrap:wrap;gap:20px}.headline[_ngcontent-%COMP%]   .chip[_ngcontent-%COMP%]{background:#ffde58;border:2px solid #111;padding:4px 12px;border-radius:50px;font-weight:800;font-size:.8rem;display:inline-block;margin-bottom:8px}.headline[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{margin:0;font-weight:900;font-size:2.2rem;letter-spacing:-1px}.headline[_ngcontent-%COMP%]   .subtitle[_ngcontent-%COMP%]{margin:4px 0 0;color:#555;font-weight:600}.header-actions[_ngcontent-%COMP%]{display:flex;gap:12px}.btn[_ngcontent-%COMP%]{border:3px solid #111;border-radius:12px;padding:10px 20px;font-weight:800;cursor:pointer;transition:all .1s}.btn.primary[_ngcontent-%COMP%]{background:#58ffc3;box-shadow:4px 4px #111}.btn.ghost[_ngcontent-%COMP%]{background:#fff;box-shadow:4px 4px #111}.btn[_ngcontent-%COMP%]:hover{transform:translate(-2px,-2px);box-shadow:6px 6px #111}.grid-members[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:30px;margin-top:20px}.member-card[_ngcontent-%COMP%]{border:3px solid #111;border-radius:20px;background:#fff;padding:20px;box-shadow:6px 6px #f0f0f0}.member-head[_ngcontent-%COMP%]{display:flex;align-items:center;gap:15px;margin-bottom:20px;border-bottom:2px dashed #eee;padding-bottom:15px}.avatar[_ngcontent-%COMP%]{width:50px;height:50px;background:#ff91e9;border:3px solid #111;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.5rem;font-weight:900}.member-name[_ngcontent-%COMP%]{margin:0;font-weight:900;font-size:1.2rem}.member-role[_ngcontent-%COMP%]{font-size:.8rem;text-transform:uppercase;font-weight:800;color:#888}.events-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:15px}.event-card[_ngcontent-%COMP%]{border:2px solid #111;border-radius:15px;padding:16px;display:flex;flex-direction:column;gap:8px;transition:transform .2s}.event-card.even[_ngcontent-%COMP%]{background:#f8f9ff}.event-card.odd[_ngcontent-%COMP%]{background:#fffcf0}.event-top[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.event-icon[_ngcontent-%COMP%]{font-size:1.2rem}.event-title[_ngcontent-%COMP%]{font-weight:800;font-size:1rem;color:#111}
7.event-time[_ngcontent-%COMP%]{font-size:.85rem;font-weight:700;color:#444;margin:0}.event-muted[_ngcontent-%COMP%]{font-size:.85rem;font-weight:600;color:#777;margin:0}.event-actions[_ngcontent-%COMP%]{margin-top:10px;padding-top:10px;border-top:1px solid rgba(0,0,0,.05)}.mini-btn.danger[_ngcontent-%COMP%]{background:#ff6b6b;border:2px solid #111;border-radius:8px;color:#fff;font-size:.75rem;font-weight:800;padding:5px 12px;cursor:pointer}.empty[_ngcontent-%COMP%]{grid-column:1 / -1;text-align:center;padding:20px;font-weight:700;color:#bbb;border:2px dashed #ddd;border-radius:15px}"]})};function hV(t,e){t&1&&(m(0,"div",8),y(1,"Cargando\u2026"),v())}function pV(t,e){t&1&&(m(0,"span",15),y(1,"Admin"),v())}function gV(t,e){if(t&1&&(m(0,"section",9)(1,"div",10),oe(2,"img",11),m(3,"div",12)(4,"h2",13),y(5),v(),m(6,"div",14)(7,"span",15),y(8),v(),m(9,"span",15),y(10),v(),Ri(11,pV,2,0,"span",16),v()()(),m(12,"div",17)(13,"div")(14,"b"),y(15,"Email:"),v(),y(16),v(),m(17,"div")(18,"b"),y(19,"Cumple:"),v(),y(20),v(),m(21,"div")(22,"b"),y(23,"G\xE9nero:"),v(),y(24),v(),m(25,"div")(26,"b"),y(27,"Ciudad:"),v(),y(28),v(),m(29,"div",18)(30,"b"),y(31,"Hobbys:"),v(),y(32),v()()()),t&2){let n=F(2);_(2),B("src",n.avatarForMember(n.member()),ir),_(3),ye(n.member().full_name),_(3),ye(n.member().is_child?"Ni\xF1o/a":"Adulto"),_(2),ye(n.member().relationship||"-"),_(),B("ngIf",n.member().is_admin),_(5),Z(" ",n.member().email||"-"),_(4),Z(" ",n.member().birthdate||"-"),_(4),Z(" ",n.member().gender||"-"),_(4),Z(" ",n.member().city||"-"),_(4),Z(" ",n.member().hobbys||"-")}}function mV(t,e){t&1&&(m(0,"div",8),y(1,"No se encontr\xF3 el miembro."),v())}function vV(t,e){if(t&1&&_e(0,gV,33,10,"section",9)(1,mV,2,0,"div",8),t&2){let n=F();we(n.member()?0:1)}}var Jf=class t{route=w(tt);router=w(Re);api=w(xt);member=W(null);loading=W(!0);AVATAR_MAP={mother:"/madre.jpg",madre:"/madre.jpg",father:"/padre.jpg",padre:"/padre.jpg",grandma:"/abuela.jpg",abuela:"/abuela.jpg",grandpa:"/abuelo.jpg",abuelo:"/abuelo.jpg",uncle:"/tio.jpg",tio:"/tio.jpg",aunt:"/tia.jpg",tia:"/tia.jpg",default:"/default.jpg"};ngOnInit(){let e=this.route.snapshot.paramMap.get("id"),n=e?Number(e):null;if(!n){this.router.navigateByUrl("/family");return}this.api.getMemberById(n).subscribe({next:r=>{this.member.set(r),this.loading.set(!1)},error:r=>{console.error(r),this.loading.set(!1),this.router.navigateByUrl("/family")}})}back(){this.router.navigateByUrl("/family")}getAvatarByRole(e){let n=(e||"").toLowerCase().trim()||"default";return this.AVATAR_MAP[n]||this.AVATAR_MAP.default}getAvatarForChild(e){let n=String(e?.gender||"").toLowerCase().trim();return n==="female"||n==="femenino"?"/nina.jpg":"/nino.jpg"}avatarForMember(e){return e?.is_child?this.getAvatarForChild(e):this.getAvatarByRole(e?.relationship)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=re({type:t,selectors:[["app-see-card"]],decls:14,vars:1,consts:[[1,"page"],[1,"page-header"],[1,"headline"],[1,"chip"],[1,"title"],[1,"subtitle"],[1,"header-actions"],[1,"btn","ghost",3,"click"],[1,"panel"],[1,"panel","card-detail"],[1,"top"],["alt","avatar",1,"avatar","xl",3,"src"],[1,"meta"],[1,"name"],[1,"pills"],[1,"pill"],["class","pill",4,"ngIf"],[1,"grid"],[1,"full"]],template:function(n,r){n&1&&(m(0,"section",0)(1,"header",1)(2,"div",2)(3,"span",3),y(4,"\u{1F464} Member Card"),v(),m(5,"h1",4),y(6,"Ficha del miembro"),v(),m(7,"p",5),y(8,"Detalle completo del integrante."),v()(),m(9,"div",6)(10,"button",7),L("click",function(){return r.back()}),y(11,"\u2190 Back"),v()()(),_e(12,hV,2,0,"div",8)(13,vV,2,1),v()),n&2&&(_(12),we(r.loading()?12:13))},dependencies:[We,_a],styles:[".page[_ngcontent-%COMP%]{padding:24px 14px}.page-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin:0 auto 18px;max-width:980px}.panel[_ngcontent-%COMP%]{max-width:980px;margin:0 auto;padding:18px;border-radius:18px;background:#fffffff2;border:1px solid rgba(109,40,217,.16)}.top[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px}.avatar.xl[_ngcontent-%COMP%]{width:84px;height:84px;border-radius:18px;object-fit:cover}.name[_ngcontent-%COMP%]{margin:0;font-weight:900}.pills[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.pill[_ngcontent-%COMP%]{padding:6px 10px;border-radius:999px;font-weight:800;font-size:.8rem;background:#7c3aed24;border:1px solid rgba(124,58,237,.2)}.grid[_ngcontent-%COMP%]{margin-top:16px;display:grid;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}.grid[_ngcontent-%COMP%]   .full[_ngcontent-%COMP%]{grid-column:1 / -1}.btn.ghost[_ngcontent-%COMP%]{border-radius:14px;padding:10px 14px;border:2px solid #7c3aed;background:#fff;font-weight:900}.chip[_ngcontent-%COMP%]{display:inline-flex;padding:6px 12px;border-radius:999px;font-weight:900;background:#7c3aed24;border:1px solid rgba(124,58,237,.2)}.title[_ngcontent-%COMP%]{margin:10px 0 4px;font-weight:950}.subtitle[_ngcontent-%COMP%]{margin:0;opacity:.75}"]})};var Bl=class t{location=w(zr);router=w(Re);goBack(){window.history.length>1?this.location.back():this.router.navigateByUrl("/")}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=re({type:t,selectors:[["app-not-found"]],decls:16,vars:0,consts:[[1,"nf-page"],["role","alert","aria-live","polite",1,"nf-card"],[1,"nf-media"],["src","N
7ot-found.png","alt","404 - Familia perdida con signos de pregunta","loading","lazy",1,"nf-img"],[1,"nf-content"],[1,"nf-chip"],[1,"nf-title"],[1,"nf-subtitle"],[1,"nf-actions"],["type","button",1,"nf-btn","nf-btn-ghost",3,"click"],[1,"nf-hint"]],template:function(n,r){n&1&&(V(0,"section",0)(1,"div",1)(2,"div",2),jr(3,"img",3),U(),V(4,"div",4)(5,"span",5),y(6,"404"),U(),V(7,"h1",6),y(8,"Page not found"),U(),V(9,"p",7),y(10," La p\xE1gina que buscas no existe o se ha movido. "),U(),V(11,"div",8)(12,"button",9),$e("click",function(){return r.goBack()}),y(13,"\u21A9 Volver"),U()(),V(14,"p",10),y(15," Tip: revisa la URL o vuelve al inicio para seguir navegando. "),U()()()())},dependencies:[We],styles:["[_ngcontent-%COMP%]:root{--nf-bg: #eef2ff;--nf-surface: rgba(255, 255, 255, .92);--nf-text: #0f172a;--nf-muted: #5b6477;--nf-violet: #6d28d9;--nf-violet-2: #7c3aed;--nf-border: rgba(109, 40, 217, .18);--nf-shadow: 0 18px 55px rgba(15, 23, 42, .12);--nf-shadow-2: 0 26px 70px rgba(15, 23, 42, .16);--nf-radius: 22px}.nf-page[_ngcontent-%COMP%]{min-height:calc(100vh - 64px);display:grid;place-items:center;padding:28px 14px 60px;color:var(--nf-text);font-family:system-ui,-apple-system,Segoe UI,Inter,sans-serif;background:radial-gradient(900px 420px at 18% 10%,rgba(124,58,237,.22),transparent 62%),radial-gradient(900px 420px at 85% 10%,rgba(99,102,241,.18),transparent 60%),linear-gradient(180deg,var(--nf-bg),#ffffff)}.nf-card[_ngcontent-%COMP%]{width:min(980px,100%);display:grid;grid-template-columns:1.2fr 1fr;gap:18px;padding:18px;border-radius:var(--nf-radius);background:var(--nf-surface);border:1px solid var(--nf-border);box-shadow:var(--nf-shadow)}.nf-media[_ngcontent-%COMP%]{border-radius:calc(var(--nf-radius) - 6px);overflow:hidden;background:#e9edffbf;border:1px solid rgba(109,40,217,.14);display:grid;place-items:center;padding:8px}.nf-img[_ngcontent-%COMP%]{width:100%;height:auto;display:block;border-radius:18px}.nf-content[_ngcontent-%COMP%]{padding:8px 10px;display:flex;flex-direction:column;justify-content:center}.nf-chip[_ngcontent-%COMP%]{display:inline-flex;align-self:flex-start;padding:8px 14px;border-radius:999px;font-weight:900;font-size:.82rem;letter-spacing:.3px;color:#3b0764;background:#7c3aed24;border:1px solid rgba(124,58,237,.2)}.nf-title[_ngcontent-%COMP%]{margin:12px 0 6px;font-size:clamp(1.8rem,3vw,2.4rem);font-weight:950;letter-spacing:-1px}.nf-subtitle[_ngcontent-%COMP%]{margin:0 0 14px;color:var(--nf-muted);line-height:1.55;max-width:42ch}.nf-actions[_ngcontent-%COMP%]{display:flex;gap:12px;flex-wrap:wrap;margin-top:6px}.nf-btn[_ngcontent-%COMP%]{border:none;cursor:pointer;font-weight:900;border-radius:14px;padding:12px 16px;font-size:.95rem;transition:transform .18s ease,box-shadow .18s ease,background .18s ease}.nf-btn-primary[_ngcontent-%COMP%]{background:linear-gradient(90deg,var(--nf-violet-2),var(--nf-violet));color:#fff;box-shadow:0 12px 30px #7c3aed73}.nf-btn-primary[_ngcontent-%COMP%]:hover{transform:translateY(-2px) scale(1.02);box-shadow:0 18px 40px #7c3aed8c}.nf-btn-ghost[_ngcontent-%COMP%]{background:#fff;color:#5b21b6;border:2px solid #7c3aed}.nf-btn-ghost[_ngcontent-%COMP%]:hover{background:#f5f3ff;transform:translateY(-2px)}.nf-hint[_ngcontent-%COMP%]{margin:14px 0 0;font-size:.9rem;color:#0f172a9e}@media(max-width:860px){.nf-card[_ngcontent-%COMP%]{grid-template-columns:1fr}.nf-content[_ngcontent-%COMP%]{padding:6px 6px 12px}}"]})};var db=class extends Et{constructor(){super(...arguments),this.headerElRef=Ge()}renderSimpleLayout(e,n){let{props:r,context:i}=this,o=[],s=so(i.options);return e&&o.push({type:"header",key:"header",isSticky:s,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),o.push({type:"body",key:"body",liquid:!0,chunk:{content:n}}
vendor: 3,916 bytes, line 7
7),g(gr,{elClasses:["fc-daygrid"],viewSpec:i.viewSpec},g(ei,{liquid:!r.isHeightAuto&&!r.forPrint,collapsibleWidth:r.forPrint,cols:[],sections:o}))}renderHScrollLayout(e,n,r,i){let o=this.context.pluginHooks.scrollGridImpl;if(!o)throw new Error("No ScrollGrid implementation");let{props:s,context:a}=this,l=!s.forPrint&&so(a.options),c=!s.forPrint&&Al(a.options),u=[];return e&&u.push({type:"header",key:"header",isSticky:l,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),u.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:n}]}),c&&u.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:hs}]}),g(gr,{elClasses:["fc-daygrid"],viewSpec:a.viewSpec},g(o,{liquid:!s.isHeightAuto&&!s.forPrint,forPrint:s.forPrint,collapsibleWidth:s.forPrint,colGroups:[{cols:[{span:r,minWidth:i}]}],sections:u}))}};function th(t,e){let n=[];for(let r=0;r<e;r+=1)n[r]=[];for(let r of t)n[r.row].push(r);return n}function eh(t,e){let n=[];for(let r=0;r<e;r+=1)n[r]=[];for(let r of t)n[r.firstCol].push(r);return n}function DM(t,e){let n=[];if(t){for(let r=0;r<e;r+=1)n[r]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(let r of t.segs)n[r.row].segs.push(r)}else for(let r=0;r<e;r+=1)n[r]=null;return n}var CM=Ee({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function _M(t){let{display:e}=t.eventRange.ui;return e==="list-item"||e==="auto"&&!t.eventRange.def.allDay&&t.firstCol===t.lastCol&&t.isStart&&t.isEnd}var nh=class extends ae{render(){let{props:e}=this;return g(ti,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:CM,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}},rh=class extends ae{render(){let{props:e,context:n}=this,{options:r}=n,{seg:i}=e,o=r.eventTimeFormat||CM,s=pf(i,o,n,!0,e.defaultDisplayEventEnd);return g(eo,Object.assign({},e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:gf(e.seg,n),defaultGenerator:yV,timeText:s,isResizing:!1,isDateSelecting:!1}))}};function yV(t){return g(ce,null,g("div",{className:"fc-daygrid-event-dot",style:{borderColor:t.borderColor||t.backgroundColor}}),t.timeText&&g("div",{className:"fc-event-time"},t.timeText),g("div",{className:"fc-event-title"},t.event.title||g(ce,null,"\xA0")))}var fb=class extends ae{constructor(){super(...arguments),this.compileSegs=k(bV)}render(){let{props:e}=this,{allSegs:n,invisibleSegs:r}=this.compileSegs(e.singlePlacements);return g(no,{elClasses:["fc-daygrid-more-link"],dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:n,hiddenSegs:r,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:()=>{let i=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return g(ce,null,n.map(o=>{let s=o.eventRange.instance.instanceId;return g("div",{className:"fc-daygrid-event-harness",key:s,style:{visibility:i[s]?"hidden":""}},_M(o)?g(rh,Object.assign({seg:o,isDragging:!1,isSelected:s===e.eventSelection,defaultDisplayEventEnd:!1},Mn(o,e.todayRange))):g(nh,Object.assign({seg:o,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:s===e.eventSelection,defaultDisplayEventEnd:!1},Mn(o,e.todayRange))))}))}})}};function bV(t){let e=[],n=[];for(let r of t)e.push(r.seg),r.isVisible||n.push(r.seg);return{allSegs:e,invisibleSegs:n}}var EV=Ee({week:"narrow"}),hb=class extends Et{constructor(){super(...arguments),this.rootElRef=Ge(),this.state={dayNumberId:io()},this.handleRootEl=e=>{zt(this.rootElRef,e),zt(this.props.elRef,e)}}render(){let{context:e,props:n,state:r,rootElRef:i}=this,{options:o,dateEnv:s}=e,{date:a,dateProfile:l}=n,c=n.showDayNumber&&CV(a,l.currentRange,s);return g(ni,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygri
7d-day",...n.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},n.extraDataAttrs),n.showDayNumber?{"aria-labelledby":r.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:DV,date:a,dateProfile:l,todayRange:n.todayRange,showDayNumber:n.showDayNumber,isMonthStart:c,extraRenderProps:n.extraRenderProps},(u,d)=>g("div",{ref:n.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:n.minHeight}},n.showWeekNumber&&g(Nl,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:oo(e,a,"week"),date:a,defaultFormat:EV}),!d.isDisabled&&(n.showDayNumber||ps(o)||n.forceDayTop)?g("div",{className:"fc-daygrid-day-top"},g(u,{elTag:"a",elClasses:["fc-daygrid-day-number",c&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},oo(e,a)),{id:r.dayNumberId})})):n.showDayNumber?g("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},g("a",{className:"fc-daygrid-day-number"},"\xA0")):void 0,g("div",{className:"fc-daygrid-day-events",ref:n.fgContentElRef},n.fgContent,g("div",{className:"fc-daygrid-day-bottom",style:{marginTop:n.moreMarginTop}},g(fb,{allDayDate:a,singlePlacements:n.singlePlacements,moreCnt:n.moreCnt,alignmentElRef:i,alignGridTop:!n.showDayNumber,extraDateSpan:n.extraDateSpan,dateProfile:n.dateProfile,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,todayRange:n.todayRange}))),g("div",{className:"fc-daygrid-day-bg"},n.bgContent)))}};function DV(t){return t.dayNumberText||g(ce,null,"\xA0")}function CV(t,e,n){let{start:r,end:i}=e,o=Hn(i,-1),s=n.getYear(r),a=n.getMonth(r),l=n.getYear(o),c=n.getMonth(o);return!(s===l&&a===c)&&(t.valueOf()===r.valueOf()||n.getDay(t)===1&&t.valueOf()<i.valueOf())}function wM(t){return t.eventRange.instance.instanceId+":"+t.firstCol}function SM(t){return wM(t)+":"+t.lastCol}function _V(t,e,n,r,i,o,s){let a=new pb(D=>{let I=t[D.index].eventRange.instance.instanceId+":"+D.span.start+":"+(D.span.end-1);return i[I]||1});a.allowReslicing=!0,a.strictOrder=r,e===!0||n===!0?(a.maxCoord=o,a.hiddenConsumes=!0):typeof e=="number"?a.maxStackCnt=e:typeof n=="number"&&(a.maxStackCnt=n,a.hiddenConsumes=!0);let l=[],c=[];for(let D=0;D<t.length;D+=1){let I=t[D],N=SM(I);i[N]!=null?l.push({index:D,span:{start:I.firstCol,end:I.lastCol+1}}):c.push(I)}let u=a.addSegs(l),d=a.toRects(),{singleColPlacements:h,multiColPlacements:f,leftoverMargins:p}=wV(d,t,s),E=[],b=[];for(let D of c){f[D.firstCol].push({seg:D,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let I=D.firstCol;I<=D.lastCol;I+=1)h[I].push({seg:_s(D,I,I+1,s),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let D=0;D<s.length;D+=1)E.push(0);for(let D of u){let I=t[D.index],N=D.span;f[N.start].push({seg:_s(I,N.start,N.end,s),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let A=N.start;A<N.end;A+=1)E[A]+=1,h[A].push({seg:_s(I,A,A+1,s),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let D=0;D<s.length;D+=1)b.push(p[D]);return{singleColPlacements:h,multiColPlacements:f,moreCnts:E,moreMarginTops:b}}function wV(t,e,n){let r=SV(t,n.length),i=[],o=[],s=[];for(let a=0;a<n.length;a+=1){let l=r[a],c=[],u=0,d=0;for(let f of l){let p=e[f.index];c.push({seg:_s(p,a,a+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:f.levelCoord,marginTop:f.levelCoord-u}),u=f.levelCoord+f.thickness}let h=[];u=0,d=0;for(let f of l){let p=e[f.index],E=f.span.end-f.span.start>1,b=f.span.start===a;d+=f.levelCoord-u,u=f.levelCoord+f.thickness,E?(d+=f.thickness,b&&h.push({seg:_s(p,f.span.start,f.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:f.levelCoord,marginTop:0})):b&&(h.push({seg:_s(p,f.span.start,f.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:f.levelCoord,marginTop:d}),d=0)}i.push(c),o.push(h),s.push(d)}return{singleColPlacements:i,multiColPlacements:o,leftoverMargins:s}}function SV(t,e){let n=[];for(let r=0;r<e;r+=1)n.push([]);for(let r of t)for(let i=r.span.start;i<r.span.end;i+=1)n[i].push(r);return n}function _s(t,e,n,r){if(t.firstCol===e&&t.lastCol===n-1)return t;let i=t.eventRange,o=i.range,s=wn(o,{start:r[e].date,end:Ve(r[n-1].date,1)});return Object.assign(Object.assign({}
vendor: 12,521 bytes, line 7
7,t),{firstCol:e,lastCol:n-1,eventRange:{def:i.def,ui:Object.assign(Object.assign({},i.ui),{durationEditable:!1}),instance:i.instance,range:s},isStart:t.isStart&&s.start.valueOf()===o.start.valueOf(),isEnd:t.isEnd&&s.end.valueOf()===o.end.valueOf()})}var pb=class extends Qi{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){let n=super.addSegs(e),{entriesByLevel:r}=this,i=o=>!this.forceHidden[Un(o)];for(let o=0;o<r.length;o+=1)r[o]=r[o].filter(i);return n}handleInvalidInsertion(e,n,r){let{entriesByLevel:i,forceHidden:o}=this,{touchingEntry:s,touchingLevel:a,touchingLateral:l}=e;if(this.hiddenConsumes&&s){let c=Un(s);if(!o[c])if(this.allowReslicing){let u=Object.assign(Object.assign({},s),{span:Ml(s.span,n.span)}),d=Un(u);o[d]=!0,i[a][l]=u,r.push(u),this.splitEntry(s,n,r)}else o[c]=!0,r.push(s)}super.handleInvalidInsertion(e,n,r)}},ih=class extends Et{constructor(){super(...arguments),this.cellElRefs=new Tt,this.frameElRefs=new Tt,this.fgElRefs=new Tt,this.segHarnessRefs=new Tt,this.rootElRef=Ge(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=e=>{e&&this.updateSizing(!0)}}render(){let{props:e,state:n,context:r}=this,{options:i}=r,o=e.cells.length,s=eh(e.businessHourSegs,o),a=eh(e.bgEventSegs,o),l=eh(this.getHighlightSegs(),o),c=eh(this.getMirrorSegs(),o),{singleColPlacements:u,multiColPlacements:d,moreCnts:h,moreMarginTops:f}=_V(_l(e.fgEventSegs,i.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,i.eventOrderStrict,n.segHeights,n.maxContentHeight,e.cells),p=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return g("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map((E,b)=>{let D=this.renderFgSegs(b,e.forPrint?u[b]:d[b],e.todayRange,p),I=this.renderFgSegs(b,IV(c[b],d),e.todayRange,{},!!e.eventDrag,!!e.eventResize,!1);return g(hb,{key:E.key,elRef:this.cellElRefs.createRef(E.key),innerElRef:this.frameElRefs.createRef(E.key),dateProfile:e.dateProfile,date:E.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&b===0,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:E.extraRenderProps,extraDataAttrs:E.extraDataAttrs,extraClassNames:E.extraClassNames,extraDateSpan:E.extraDateSpan,moreCnt:h[b],moreMarginTop:f[b],singlePlacements:u[b],fgContentElRef:this.fgElRefs.createRef(E.key),fgContent:g(ce,null,g(ce,null,D),g(ce,null,I)),bgContent:g(ce,null,this.renderFillSegs(l[b],"highlight"),this.renderFillSegs(s[b],"non-business"),this.renderFillSegs(a[b],"bg-event")),minHeight:e.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,n){let r=this.props;this.updateSizing(!Mt(e,r))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:e}=this;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs}getMirrorSegs(){let{props:e}=this;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}renderFgSegs(e,n,r,i,o,s,a){let{context:l}=this,{eventSelection:c}=this.props,{framePositions:u}=this.state,d=this.props.cells.length===1,h=o||s||a,f=[];if(u)for(let p of n){let{seg:E}=p,{instanceId:b}=E.eventRange.instance,D=p.isVisible&&!i[b],I=p.isAbsolute,N="",A="";I&&(l.isRtl?(A=0,N=u.lefts[E.lastCol]-u.lefts[E.firstCol]):(N=0,A=u.rights[E.firstCol]-u.rights[E.lastCol])),f.push(g("div",{className:"fc-daygrid-event-harness"+(I?" fc-daygrid-event-harness-abs":""),key:wM(E),ref:h?null:this.segHarnessRefs.createRef(SM(E)),style:{visibility:D?"":"hidden",marginTop:I?"":p.marginTop,top:I?p.absoluteTop:"",left:N,right:A}},_M(E)?g(rh,Object.assign({seg:E,isDragging:o,isSelected:b===c,defaultDisplayEventEnd:d},Mn(E,r))):g(nh,Object.assign({seg:E,isDragging:o,isResizing:s,isDateSelecting:a,isSelected:b===c,defaultDisplayEventEnd:d},Mn(E,r)))))}return f}renderFillSegs(e,n){let{isRtl:r}=this.context,{todayRange:i}=this.props,{framePositions:o}=this.state,s=[];if(o)for(let a of e){let l=r?{right:0,left:o.lefts[a.lastCol]-o.lefts[a.firstCol]}:{left:0,right:o.rights[a.firstCol]-o.rights[a.lastCol]};s.push(g("div",{key:wl(a.eventRange),className:"fc-daygrid-bg-harness",style:l},n==="bg-event"?g(to,Object.assign({seg:a},Mn(a,i))):Rl(n)))}return g(ce,{},...s)}updateSizing(e){let{props:n,state:r,frameElRefs:i}=this;if(!n.forPrint&&n.clientWidth!==null){if(e){let l=n.cells.map(c=>i.currentMap[c.key]);if(l.length){let c=this.rootElRef.current,u=new In(c,l,!0,!1);(!r.framePositions||!r.framePositions.similarTo(u))&&this.setState({framePositions:new In(c,l,!0,!1)})}}let o=this.state.segHeights,s=this.querySegHeights(),a=n.dayMaxEvents===!0||n.dayMaxEventRows===!0;this.safeSetState({segHeights:Object.assign(Object.assign({},o),s),maxContentHeight:a?this.computeMaxContentHeight():null})}}querySegHeights(){let e=this.segHarnessRefs.currentMap,n={};for(let r in e){let i=Math.round(e[r].getBoundingClientRect().height);n[r]=Math.max(n[r]||0,i)}return n}computeMaxContentHeight(){let e=this.props.cells[0].key,n=this.cellElRefs.currentMap[e],r=this.fgElRefs.currentMap[e];return n.getBoundingClientRect().bottom-r.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map(n=>e[n.key])}};ih.addStateEquality({segHeights:Mt});function IV(t,e){if(!t.length)return[];let n=MV(e);return t.map(r=>({seg:r,isVisible:!0,isAbsolute:!0,absoluteTop:n[r.eventRange.instance.instanceId],marginTop:0}))}function MV(t){let e={};for(let n of t)for(let r of n)e[r.seg.eventRange.instance.instanceId]=r.absoluteTop;return e}var gb=class extends Et{constructor(){super(...arguments),this.splitBusinessHourSegs=k(th),this.splitBgEventSegs=k(TV),this.splitFgEventSegs=k(th),this.splitDateSelectionSegs=k(th),this.splitEventDrag=k(DM),this.splitEventResize=k(DM),this.rowRefs=new Tt}render(){let{props:e,context:n}=this,r=e.cells.length,i=this.splitBusinessHourSegs(e.businessHourSegs,r),o=this.splitBgEventSegs(e.bgEventSegs,r),s=this.splitFgEventSegs(e.fgEventSegs,r),a=this.splitDateSelectionSegs(e.dateSelectionSegs,r),l=this.splitEventDrag(e.eventDrag,r),c=this.splitEventResize(e.eventResize,r),u=r>=7&&e.clientWidth?e.clientWidth/n.options.aspectRatio/6:null;return g(Er,{unit:"day"},(d,h)=>g(ce,null,e.cells.map((f,p)=>g(ih,{ref:this.rowRefs.createRef(p),key:f.length?f[0].date.toISOString():p,showDayNumbers:r>1,showWeekNumbers:e.showWeekNumbers,todayRange:h,dateProfile:e.dateProfile,cells:f,renderIntro:e.renderRowIntro,businessHourSegs:i[p],eventSelection:e.eventSelection,bgEventSegs:o[p],fgEventSegs:s[p],dateSelectionSegs:a[p],eventDrag:l[p],eventResize:c[p],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:u,forPrint:e.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){let e=this.rowRefs.currentMap[0].getCellEls()[0],n=e?e.closest(".fc-daygrid-body"):null;n&&(this.rootEl=n,this.context.registerInteractiveComponent(this,{el:n,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new In(this.rootEl,this.rowRefs.collect().map(e=>e.getCellEls()[0]),!1,!0),this.colPositions=new In(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,n){let{colPositions:r,rowPositions:i}=this,o=r.leftToIndex(e),s=i.topToIndex(n);if(s!=null&&o!=null){let a=this.props.cells[s][o];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(s,o),allDay:!0},a.extraDateSpan),dayEl:this.getCellEl(s,o),rect:{left:r.lefts[o],right:r.rights[o],top:i.tops[s],bottom:i.bottoms[s]},layer:0}}return null}getCellEl(e,n){return this.rowRefs.currentMap[e].getCellEls()[n]}getCellRange(e,n){let r=this.props.cells[e][n].date,i=Ve(r,1);return{start:r,end:i}}};function TV(t,e){return th(t.filter(AV),e)}function AV(t){return t.eventRange.def.allDay}var mb=class extends Et{constructor(){super(...arguments),this.elRef=Ge(),this.needsScrollReset=!1}render(){let{props:e}=this,{dayMaxEventRows:n,dayMaxEvents:r,expandRows:i}=e,o=r===!0||n===!0;o&&!i&&(o=!1,n=null,r=null);let s=["fc-daygrid-body",o?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",i?"":"fc-daygrid-body-natural"];return g("div",{ref:this.elRef,className:s.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},g("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:i?e.clientHeight:""}},e.colGroupNode,g("tbody",{role:"presentation"},g(gb,{dateProfile:e.dateProfile,cells:e.cells,renderRowIntro:e.renderRowIntro,showWeekNumbers:e.showWeekNumbers,clientWidth:e.clientWidth,clientHeight:e.clientHeight,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,dayMaxEvents:r,dayMaxEventRows:n,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){let e=xV(this.elRef.current,this.props.dateProfile);if(e){let n=e.closest(".fc-daygrid-body"),r=n.closest(".fc-scroller"),i=e.getBoundingClientRect().top-n.getBoundingClientRect().top;r.scrollTop=i?i+1:0}this.needsScrollReset=!1}}};function xV(t,e){let n;return e.currentRangeUnit.match(/year|month/)&&(n=t.querySelector(`[data-date="${uy(e.currentDate)}-01"]`)),n||(n=t.querySelector(`[data-date="${yl(e.currentDate)}"]`)),n}var vb=class extends Ji{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,n){return n.sliceRange(e)}},Hl=class extends Et{constructor(){super(...arguments),this.slicer=new vb,this.tableRef=Ge()}render(){let{props:e,context:n}=this;return g(mb,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,n,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))}},oh=class extends db{constructor(){super(...arguments),this.buildDayTableModel=k(RV),this.headerRef=Ge(),this.tableRef=Ge()}render(){let{options:e,dateProfileGenerator:n}=this.context,{props:r}=this,i=this.buildDayTableModel(r.dateProfile,n),o=e.dayHeaders&&g(Zi,{ref:this.headerRef,dateProfile:r.dateProfile,dates:i.headerDates,datesRepDistinctDays:i.rowCnt===1}),s=a=>g(Hl,{ref:this.tableRef,dateProfile:r.dateProfile,dayTableModel:i,businessHours:r.businessHours,dateSelection:r.dateSelection,eventStore:r.eventStore,eventUiBases:r.eventUiBases,eventSelection:r.eventSelection,eventDrag:r.eventDrag,eventResize:r.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:a.tableColGroupNode,tableMinWidth:a.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!r.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:a.clientWidth,clientHeight:a.clientHeight,forPrint:r.forPrint});return e.dayMinWidth?this.renderHScrollLayout(o,s,i.colCnt,e.dayMinWidth):this.renderSimpleLayout(o,s)}};function RV(t,e){let n=new Ki(t.renderRange,e);return new Xi(n,/year|month|week/.test(t.currentRangeUnit))}var sh=class extends Gi{buildRenderRange(e,n,r){let i=super.buildRenderRange(e,n,r),{props:o}=this;return NV({currentRange:i,snapToWeek:/^(year|month)$/.test(n),fixedWeekCount:o.fixedWeekCount,dateEnv:o.dateEnv})}};function NV(t){let{dateEnv:e,currentRange:n}=t,{start:r,end:i}=n,o;if(t.snapToWeek&&(r=e.startOfWeek(r),o=e.startOfWeek(i),o.valueOf()!==i.valueOf()&&(i=nf(o,1))),t.fixedWeekCount){let s=e.startOfWeek(e.startOfMonth(Ve(n.end,-1))),a=Math.ceil(ly(s,i));i=nf(i,6-a)}return{start:r,end:i}}var OV
vendor: 3,524 bytes, line 7
7=':root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:"";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}';
vendor: 56,544 bytes, line 7
7as(OV);var IM=on({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:oh,dateProfileGeneratorClass:sh},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:"dayGrid",duration:{years:1}}}});var bb=class extends ol{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){return e.allDay?["allDay"]:["timed"]}getKeysForEventDef(e){return e.allDay?Ty(e)?["timed","allDay"]:["allDay"]:["timed"]}},kV=Ee({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function RM(t){let e=["fc-timegrid-slot","fc-timegrid-slot-label",t.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return g(rn.Consumer,null,n=>{if(!t.isLabeled)return g("td",{className:e.join(" "),"data-time":t.isoTimeStr});let{dateEnv:r,options:i,viewApi:o}=n,s=i.slotLabelFormat==null?kV:Array.isArray(i.slotLabelFormat)?Ee(i.slotLabelFormat[0]):Ee(i.slotLabelFormat),a={level:0,time:t.time,date:r.toDate(t.date),view:o,text:r.format(t.date,s)};return g(Dt,{elTag:"td",elClasses:e,elAttrs:{"data-time":t.isoTimeStr},renderProps:a,generatorName:"slotLabelContent",customGenerator:i.slotLabelContent,defaultGenerator:PV,classNameGenerator:i.slotLabelClassNames,didMount:i.slotLabelDidMount,willUnmount:i.slotLabelWillUnmount},l=>g("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},g(l,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]})))})}function PV(t){return t.text}var Eb=class extends ae{render(){return this.props.slatMetas.map(e=>g("tr",{key:e.key},g(RM,Object.assign({},e))))}},FV=Ee({week:"short"}),LV=5,Db=class extends Et{constructor(){super(...arguments),this.allDaySplitter=new bb,this.headerElRef=Ge(),this.rootElRef=Ge(),this.scrollerElRef=Ge(),this.state={slatCoords:null},this.handleScrollTopRequest=e=>{let n=this.scrollerElRef.current;n&&(n.scrollTop=e)},this.renderHeadAxis=(e,n="")=>{let{options:r}=this.context,{dateProfile:i}=this.props,o=i.renderRange,a=yr(o.start,o.end)===1?oo(this.context,o.start,"week"):{};return r.weekNumbers&&e==="day"?g(Nl,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:o.start,defaultFormat:FV},l=>g("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame","fc-timegrid-axis-frame-liquid"].join(" "),style:{height:n}},g(l,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:a}))):g("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},g("div",{className:"fc-timegrid-axis-frame",style:{height:n}}))},this.renderTableRowAxis=e=>{let{options:n,viewApi:r}=this.context,i={text:n.allDayText,view:r};return g(Dt,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:i,generatorName:"allDayContent",customGenerator:n.allDayContent,defaultGenerator:jV,classNameGenerator:n.allDayClassNames,didMount:n.allDayDidMount,willUnmount:n.allDayWillUnmount},o=>g("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",e==null?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:e}},g(o,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]})))},this.handleSlatCoords=e=>{this.setState({slatCoords:e})}}renderSimpleLayout(e,n,r){let{context:i,props:o}=this,s=[],a=so(i.options);return e&&s.push({type:"header",key:"header",isSticky:a,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),n&&(s.push({type:"body",key:"all-day",chunk:{content:n}}),s.push({type:"body",key:"all-day-divider",outerContent:g("tr",{role:"presentation",className:"fc-scrollgrid-section"},g("td",{className:"fc-timegrid-divider "+i.theme.getClass("tableCellShaded")}))})),s.push({type:"body",key:"body",liquid:!0,expandRows:!!i.options.expandRows,chunk:{scrollerElRef:this.scrollerElRef,content:r}}),g(gr,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:i.viewSpec},g(ei,{liquid:!o.isHeightAuto&&!o.forPrint,collapsibleWidth:o.forPrint,cols:[{width:"shrink"}],sections:s}))}renderHScrollLayout(e,n,r,i,o,s,a){let l=this.context.pluginHooks.scrollGridImpl;if(!l)throw new Error("No ScrollGrid implementation");let{context:c,props:u}=this,d=!u.forPrint&&so(c.options),h=!u.forPrint&&Al(c.options),f=[];e&&f.push({type:"header",key:"header",isSticky:d,syncRowHeights:!0,chunks:[{key:"axis",rowContent:E=>g("tr",{role:"presentation"},this.renderHeadAxis("day",E.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),n&&(f.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:E=>g("tr",{role:"presentation"},this.renderTableRowAxis(E.rowSyncHeights[0]))},{key:"cols",content:n}]}),f.push({key:"all-day-divider",type:"body",outerContent:g("tr",{role:"presentation",className:"fc-scrollgrid-section"},g("td",{colSpan:2,className:"fc-timegrid-divider "+c.theme.getClass("tableCellShaded")}))}));let p=c.options.nowIndicator;return f.push({type:"body",key:"body",liquid:!0,expandRows:!!c.options.expandRows,chunks:[{key:"axis",content:E=>g("div",{className:"fc-timegrid-axis-chunk"},g("table",{"aria-hidden":!0,style:{height:E.expandRows?E.clientHeight:""}},E.tableColGroupNode,g("tbody",null,g(Eb,{slatMetas:s}))),g("div",{className:"fc-timegrid-now-indicator-container"},g(Er,{unit:p?"minute":"day"},b=>{let D=p&&a&&a.safeComputeTop(b);return typeof D=="number"?g(xl,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:D},isAxis:!0,date:b}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:r}]}),h&&f.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:hs},{key:"cols",content:hs}]}),g(gr,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:c.viewSpec},g(l,{liquid:!u.isHeightAuto&&!u.forPrint,forPrint:u.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:i,minWidth:o}]}],sections:f}))}getAllDayMaxEventProps(){let{dayMaxEvents:e,dayMaxEventRows:n}=this.context.options;return(e===!0||n===!0)&&(e=void 0,n=LV),{dayMaxEvents:e,dayMaxEventRows:n}}};function jV(t){return t.text}var Cb=class{constructor(e,n,r){this.positions=e,this.dateProfile=n,this.slotDuration=r}safeComputeTop(e){let{dateProfile:n}=this;if(tn(n.currentRange,e)){let r=ge(e),i=e.valueOf()-r.valueOf();if(i>=$t(n.slotMinTime)&&i<$t(n.slotMaxTime))return this.computeTimeTop(X(i))}return null}computeDateTop(e,n){return n||(n=ge(e)),this.computeTimeTop(X(e.valueOf()-n.valueOf()))}computeTimeTop(e){let{positions:n,dateProfile:r}=this,i=n.els.length,o=(e.milliseconds-$t(r.slotMinTime))/$t(this.slotDuration),s,a;return o=Math.max(0,o),o=Math.min(i,o),s=Math.floor(o),s=Math.min(s,i-1),a=o-s,n.tops[s]+n.getHeight(s)*a}},_b=class extends ae{render(){let{props:e,context:n}=this,{options:r}=n,{slatElRefs:i}=e;return g("tbody",null,e.slatMetas.map((o,s)=>{let a={time:o.time,date:n.dateEnv.toDate(o.date),view:n.viewApi};return g("tr",{key:o.key,ref:i.createRef(o.key)},e.axis&&g(RM,Object.assign({},o)),g(Dt,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!o.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":o.isoTimeStr},renderProps:a,generatorName:"slotLaneContent",customGenerator:r.slotLaneContent,classNameGenerator:r.slotLaneClassNames,didMount:r.slotLaneDidMount,willUnmount:r.slotLaneWillUnmount}))}))}},wb=class extends ae{constructor(){super(...arguments),this.rootElRef=Ge(),this.slatElRefs=new Tt}render(){let{props:e,context:n}=this;return g("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},g("table",{"aria-hidden":!0,className:n.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,g(_b,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{context:e,props:n}=this;n.onCoords&&n.clientWidth!==null&&this.rootElRef.current.offsetHeight&&n.onCoords(new Cb(new In(this.rootElRef.current,VV(this.slatElRefs.currentMap,n.slatMetas),!1,!0),this.props.dateProfile,e.options.slotDuration))}};function VV(t,e){return e.map(n=>t[n.key])}function Ul(t,e){let n=[],r;for(r=0;r<e;r+=1)n.push([]);if(t)for(r=0;r<t.length;r+=1)n[t[r].col].push(t[r]);return n}function MM(t,e){let n=[];if(t){for(let r=0;r<e;r+=1)n[r]={affectedInstances:t.affectedInstances,isEvent:t.isEvent,segs:[]};for(let r of t.segs)n[r.col].segs.push(r)}else for(let r=0;r<e;r+=1)n[r]=null;return n}var Sb=class extends ae{render(){let{props:e}=this;return g(no,{elClasses:["fc-timegrid-more-link"],elStyle:{top:e.top,bottom:e.bottom},allDayDate:null,moreCnt:e.hiddenSegs.length,allSegs:e.hiddenSegs,hiddenSegs:e.hiddenSegs,extraDateSpan:e.extraDateSpan,dateProfile:e.dateProfile,todayRange:e.todayRange,popoverContent:()=>NM(e.hiddenSegs,e),defaultGenerator:BV,forceTimed:!0},n=>g(n,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}};function BV(t){return t.shortText}function HV(t,e,n){let r=new Qi;e!=null&&(r.strictOrder=e),n!=null&&(r.maxStackCnt=n);let i=r.addSegs(t),o=By(i),s=UV(r);return s=GV(s,1),{segRects:qV(s),hiddenGroups:o}}function UV(t){let{entriesByLevel:e}=t,n=Rb((r,i)=>r+":"+i,(r,i)=>{let o=WV(t,r,i),s=TM(o,n),a=e[r][i];return[Object.assign(Object.assign({},a),{nextLevelNodes:s[0]}),a.thickness+s[1]]});return TM(e.length?{level:0,lateralStart:0,lateralEnd:e[0].length}:null,n)[0]}function TM(t,e){if(!t)return[[],0];let{level:n,lateralStart:r,lateralEnd:i}=t,o=r,s=[];for(;o<i;)s.push(e(n,o)),o+=1;return s.sort($V),[s.map(zV),s[0][1]]}function $V(t,e){return e[1]-t[1]}function zV(t){return t[0]}function WV(t,e,n){let{levelCoords:r,entriesByLevel:i}=t,o=i[e][n],s=r[e]+o.thickness,a=r.length,l=e;for(;l<a&&r[l]<s;l+=1);for(;l<a;l+=1){let c=i[l],u,d=cl(c,o.span.start,ll),h=d[0]+d[1],f=h;for(;(u=c[f])&&u.span.start<o.span.end;)f+=1;if(h<f)return{level:l,lateralStart:h,lateralEnd:f}}return null}function GV(t,e){let n=Rb((r,i,o)=>Un(r),(r,i,o)=>{let{nextLevelNodes:s,thickness:a}=r,l=a+o,c=a/l,u,d=[];if(!s.length)u=e;else for(let f of s)if(u===void 0){let p=n(f,i,l);u=p[0],d.push(p[1])}else{let p=n(f,u,0);d.push(p[1])}let h=(u-i)*c;return[u-h,Object.assign(Object.assign({},r),{thickness:h,nextLevelNodes:d})]});return t.map(r=>n(r,0,0)[1])}function qV(t){let e=[],n=Rb((i,o,s)=>Un(i),(i,o,s)=>{let a=Object.assign(Object.assign({},i),{levelCoord:o,stackDepth:s,stackForward:0});return e.push(a),a.stackForward=r(i.nextLevelNodes,o+i.thickness,s+1)+1});function r(i,o,s){let a=0;for(let l of i)a=Math.max(n(l,o,s),a);return a}return r(t,0,0),e}function Rb(t,e){let n={};return(...r)=>{let i=t(...r);return i in n?n[i]:n[i]=e(...r)}}function AM(t,e,n=null,r=0){let i=[];if(n)for(let o=0;o<t.length;o+=1){let s=t[o],a=n.computeDateTop(s.start,e),l=Math.max(a+(r||0),n.computeDateTop(s.end,e));i.push({start:Math.round(a),end:Math.round(l)})}return i}function YV(t,e,n,r){let i=[],o=[];for(let c=0;c<t.length;c+=1){let u=e[c];u?i.push({index:c,thickness:1,span:u}):o.push(t[c])}let{segRects:s,hiddenGroups:a}=HV(i,n,r),l=[];for(let c of s)l.push({seg:t[c.index],rect:c});for(let c of o)l.push({seg:c,rect:null});return{segPlacements:l,hiddenGroups:a}}var QV=Ee({hour:"numeric",minute:"2-digit",meridiem:!1}),ah=class extends ae{render(){return g(ti,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:QV}))}},Ib=class extends ae{constructor(){super(...arguments),this.sortEventSegs=k(_l)}render(){let{props:e,context:n}=this,{options:r}=n,i=r.selectMirror,o=e.eventDrag&&e.eventDrag.segs||e.eventResize&&e.eventResize.segs||i&&e.dateSelectionSegs||[],s=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{},a=this.sortEventSegs(e.fgEventSegs,r.eventOrder);return g(ni,{elTag:"td",elRef:e.elRef,elClasses:["fc-timegrid-col",...e.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},e.extraDataAttrs),date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraRenderProps:e.extraRenderProps},l=>g("div",{className:"fc-timegrid-col-frame"},g("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(e.dateSelectionSegs,"highlight")),g("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(a,s,!1,!1,!1)),g("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(o,{},!!e.eventDrag,!!e.eventResize,!!i,"mirror")),g("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(e.nowIndicatorSegs)),ps(r)&&g(l,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(e,n,r,i,o,s){let{props:a}=this;return a.forPrint?NM(e,a):this.renderPositionedFgSegs(e,n,r,i,o,s)}renderPositionedFgSegs(e,n,r,i,o,s){let{eventMaxStack:a,eventShortHeight:l,eventOrderStrict:c,eventMinHeight:u}=this.context.options,{date:d,slatCoords:h,eventSelection:f,todayRange:p,nowDate:E}=this.props,b=r||i||o,D=AM(e,d,h,u),{segPlacements:I,hiddenGroups:N}=YV(e,D,c,a);return g(ce,null,this.renderHiddenGroups(N,e),I.map(A=>{let{seg:me,rect:J}=A,le=me.eventRange.instance.instanceId,ie=b||!!(!n[le]&&J),Cr=yb(J&&J.span),Ss=!b&&J?this.computeSegHStyle(J):{left:0,right:0},HM=!!J&&J.stackForward>0,UM=!!J&&J.span.end-J.span.start<l;return g("div",{className:"fc-timegrid-event-harness"+(HM?" fc-timegrid-event-harness-inset":""),key:s||le,style:Object.assign(Object.assign({visibility:ie?"":"hidden"},Cr),Ss)},g(ah,Object.assign({seg:me,isDragging:r,isResizing:i,isDateSelecting:o,isSelected:le===f,isShort:UM},Mn(me,p,E))))}))}renderHiddenGroups(e,n){let{extraDateSpan:r,dateProfile:i,todayRange:o,nowDate:s,eventSelection:a,eventDrag:l,eventResize:c}=this.props;return g(ce,null,e.map(u=>{let d=yb(u.span),h=ZV(u.entries,n);return g(Sb,{key:rf(Ef(h)),hiddenSegs:h,top:d.top,bottom:d.bottom,extraDateSpan:r,dateProfile:i,todayRange:o,nowDate:s,eventSelection:a,eventDrag:l,eventResize:c})}))}renderFillSegs(e,n){let{props:r,context:i}=this,s=AM(e,r.date,r.slatCoords,i.options.eventMinHeight).map((a,l)=>{let c=e[l];return g("div",{key:wl(c.eventRange),className:"fc-timegrid-bg-harness",style:yb(a)},n==="bg-event"?g(to,Object.assign({seg:c},Mn(c,r.todayRange,r.nowDate))):Rl(n))});return g(ce,null,s)}renderNowIndicator(e){let{slatCoords:n,date:r}=this.props;return n?e.map((i,o)=>g(xl,{key:o,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:n.computeDateTop(i.start,r)},isAxis:!1,date:r})):null}computeSegHStyle(e){let{isRtl:n,options:r}=this.context,i=r.slotEventOverlap,o=e.levelCoord,s=e.levelCoord+e.thickness,a,l;i&&(s=Math.min(1,o+(s-o)*2)),n?(a=1-s,l=o):(a=o,l=1-s);let c={zIndex:e.stackDepth+1,left:a*100+"%",right:l*100+"%"};return i&&!e.stackForward&&(c[n?"marginLeft":"marginRight"]=20),c}};function NM(t,{todayRange:e,nowDate:n,eventSelection:r,eventDrag:i,eventResize:o}){let s=(i?i.affectedInstances:null)||(o?o.affectedInstances:null)||{};return g(ce,null,t.map(a=>{let l=a.eventRange.instance.instanceId;return g("div",{key:l,style:{visibility:s[l]?"hidden":""}},g(ah,Object.assign({seg:a,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:l===r,isShort:!1},Mn(a,e,n))))}))}function yb(t){return t?{top:t.start,bottom:-t.end}:{top:"",bottom:""}}function ZV(t,e){return t.map(n=>e[n.index])}var Mb=class extends ae{constructor(){super(...arguments),this.splitFgEventSegs=k(Ul),this.splitBgEventSegs=k(Ul),this.splitBusinessHourSegs=k(Ul),this.splitNowIndicatorSegs=k(Ul),this.splitDateSelectionSegs=k(Ul),this.splitEventDrag=k(MM),this.splitEventResize=k(MM),this.rootElRef=Ge(),this.cellElRefs=new Tt}render(){let{props:e,context:n}=this,r=n.options.nowIndicator&&e.slatCoords&&e.slatCoords.safeComputeTop(e.nowDate),i=e.cells.length,o=this.splitFgEventSegs(e.fgEventSegs,i),s=this.splitBgEventSegs(e.bgEventSegs,i),a=this.splitBusinessHourSegs(e.businessHourSegs,i),l=this.splitNowIndicatorSegs(e.nowIndicatorSegs,i),c=this.splitDateSelectionSegs(e.dateSelectionSegs,i),u=this.splitEventDrag(e.eventDrag,i),d=this.splitEventResize(e.eventResize,i);return g("div",{className:"fc-timegrid-cols",ref:this.rootElRef},g("table",{role:"presentation",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,g("tbody",{role:"presentation"},g("tr",{role:"row"},e.axis&&g("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},g("div",{className:"fc-timegrid-col-frame"},g("div",{className:"fc-timegrid-now-indicator-container"},typeof r=="number"&&g(xl,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:r},isAxis:!0,date:e.nowDate})))),e.cells.map((h,f)=>g(Ib,{key:h.key,elRef:this.cellElRefs.createRef(h.key),dateProfile:e.dateProfile,date:h.date,nowDate:e.nowDate,todayRange:e.todayRange,extraRenderProps:h.extraRenderProps,extraDataAttrs:h.extraDataAttrs,extraClassNames:h.extraClassNames,extraDateSpan:h.extraDateSpan,fgEventSegs:o[f],bgEventSegs:s[f],businessHourSegs:a[f],nowIndicatorSegs:l[f],dateSelectionSegs:c[f],eventDrag:u[f],eventResize:d[f],slatCoords:e.slatCoords,eventSelection:e.eventSelection,forPrint:e.forPrint}))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){let{props:e}=this;e.onColCoords&&e.clientWidth!==null&&e.onColCoords(new In(this.rootElRef.current,KV(this.cellElRefs.currentMap,e.cells),!0,!1))}};function KV(t,e){return e.map(n=>t[n.key])}var Tb=class extends Et{constructor(){super(...arguments),this.processSlotOptions=k(XV),this.state={slatCoords:null},this.handleRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=e=>{let{onScrollTopRequest:n}=this.props,{slatCoords:r}=this.state;if(n&&r){if(e.time){let i=r.computeTimeTop(e.time);i=Math.ceil(i),i&&(i+=1),n(i)}return!0}return!1},this.handleColCoords=e=>{this.colCoords=e},this.handleSlatCoords=e=>{this.setState({slatCoords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)}}render(){let{props:e,state:n}=this;return g("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},g(wb,{axis:e.axis,dateProfile:e.dateProfile,slatMetas:e.slatMetas,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,tableColGroupNode:e.axis?e.tableColGroupNode:null,onCoords:this.handleSlatCoords}),g(Mb,{cells:e.cells,axis:e.axis,dateProfile:e.dateProfile,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange,nowDate:e.nowDate,nowIndicatorSegs:e.nowIndicatorSegs,clientWidth:e.clientWidth,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,slatCoords:n.slatCoords,onColCoords:this.handleColCoords,forPrint:e.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(e,n){let{dateEnv:r,options:i}=this.context,{colCoords:o}=this,{dateProfile:s}=this.props,{slatCoords:a}=this.state,{snapDuration:l,snapsPerSlot:c}=this.processSlotOptions(this.props.slotDuration,i.snapDuration),u=o.leftToIndex(e),d=a.positions.topToIndex(n);if(u!=null&&d!=null){let h=this.props.cells[u],f=a.positions.tops[d],p=a.positions.getHeight(d),E=(n-f)/p,b=Math.floor(E*c),D=d*c+b,I=this.props.cells[u].date,N=ml(s.slotMinTime,ay(l,D)),A=r.add(I,N),me=r.add(A,l);return{dateProfile:s,dateSpan:Object.assign({range:{start:A,end:me},allDay:!1},h.extraDateSpan),dayEl:o.els[u],rect:{left:o.lefts[u],right:o.rights[u],top:f,bottom:f+p},layer:0}}return null}};function XV(t,e){let n=e||t,r=vl(t,n);return r===null&&(n=t,r=1),{snapDuration:n,snapsPerSlot:r}}var Ab=class extends Ji{sliceRange(e,n){let r=[];for(let i=0;i<n.length;i+=1){let o=wn(e,n[i]);o&&r.push({start:o.start,end:o.end,isStart:o.start.valueOf()===e.start.valueOf(),isEnd:o.end.valueOf()===e.end.valueOf(),col:i})}return r}},xb=class extends Et{constructor(){super(...arguments),this.buildDayRanges=k(JV),this.slicer=new Ab,this.timeColsRef=Ge()}render(){let{props:e,context:n}=this,{dateProfile:r,dayTableModel:i}=e,{nowIndicator:o,nextDayThreshold:s}=n.options,a=this.buildDayRanges(i,r,n.dateEnv);return g(Er,{unit:o?"minute":"day"},(l,c)=>g(Tb,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(e,r,null,n,a),{forPrint:e.forPrint,axis:e.axis,dateProfile:r,slatMetas:e.slatMetas,slotDuration:e.slotDuration,cells:i.cells[0],tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,clientWidth:e.clientWidth,clientHeight:e.clientHeight,expandRows:e.expandRows,nowDate:l,nowIndicatorSegs:o&&this.slicer.sliceNowDate(l,r,s,n,a),todayRange:c,onScrollTopRequest:e.onScrollTopRequest,onSlatCoords:e.onSlatCoords})))}};function JV(t,e,n){let r=[];for(let i of t.headerDates)r.push({start:n.add(i,e.slotMinTime),end:n.add(i,e.slotMaxTime)});return r}var xM=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function eB(t,e,n,r,i){let o=new Date(0),s=t,a=X(0),l=n||tB(r),c=[];for(;$t(s)<$t(e);){let u=i.add(o,s),d=vl(a,l)!==null;c.push({date:u,time:s,key:u.toISOString(),isoTimeStr:dy(u),isLabeled:d}),s=ml(s,r),a=ml(a,r)}return c}function tB(t){let e,n,r;for(e=xM.length-1;e>=0;e-=1)if(n=X(xM[e]),r=vl(n,t),r!==null&&r>1)return n;return t}var lh=class extends Db{constructor(){super(...arguments),this.buildTimeColsModel=k(nB),this.buildSlatMetas=k(eB)}render(){let{options:e,dateEnv:n,dateProfileGenerator:r}=this.context,{props:i}=this,{dateProfile:o}=i,s=this.buildTimeColsModel(o,r),a=this.allDaySplitter.splitProps(i),l=this.buildSlatMetas(o.slotMinTime,o.slotMaxTime,e.slotLabelInterval,e.slotDuration,n),{dayMinWidth:c}=e,u=!c,d=c,h=e.dayHeaders&&g(Zi,{dates:s.headerDates,dateProfile:o,datesRepDistinctDays:!0,renderIntro:u?this.renderHeadAxis:null}),f=e.allDaySlot!==!1&&(E=>g(Hl,Object.assign({},a.allDay,{dateProfile:o,dayTableModel:s,nextDayThreshold:e.nextDayThreshold,tableMinWidth:E.tableMinWidth,colGroupNode:E.tableColGroupNode,renderRowIntro:u?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:E.clientWidth,clientHeight:E.clientHeight,forPrint:i.forPrint},this.getAllDayMaxEventProps()))),p=E=>g(xb,Object.assign({},a.timed,{dayTableModel:s,dateProfile:o,axis:u,slotDuration:e.slotDuration,slatMetas:l,forPrint:i.forPrint,tableColGroupNode:E.tableColGroupNode,tableMinWidth:E.tableMinWidth,clientWidth:E.clientWidth,clientHeight:E.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:E.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return d?this.renderHScrollLayout(h,f,p,s.colCnt,c,l,this.state.slatCoords):this.renderSimpleLayout(h,f,p)}};function nB(t,e){let n=new Ki(t.renderRange,e);return new Xi(n,!1)}var rB='.fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-v-event .fc-event-main{color:var(--fc-event-text-color);height:100%}.fc-v-event .fc-event-main-frame{display:flex;flex-direction:column;height:100%}.fc-v-event .fc-event-time{flex-grow:0;flex-shrink:0;max-height:100%;overflow:hidden}.fc-v-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;max-height:100%;overflow:hidden;top:0}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%;position:relative;z-index:1}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-slot{border-bottom:0;height:1.5em}.fc .fc-timegrid-slot:empty:before{content:"\\00a0"}.fc .fc-timegrid-slot-minor{border-top-style:dotted}.fc .fc-timegrid-slot-label-cushion{display:inline-block;white-space:nowrap}.fc .fc-timegrid-slot-label{vertical-align:middle}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{padding:0 4px}.fc .fc-timegrid-axis-frame-liquid{height:100%}.fc .fc-timegrid-axis-frame{align-items:center;display:flex;justify-content:flex-end;overflow:hidden}.fc .fc-timegrid-axis-cushion{flex-shrink:0;max-width:60px}.fc-direction-ltr .fc-timegrid-slot-label-frame{text-align:right}.fc-direction-rtl .fc-timegrid-slot-label-frame{text-align:left}.fc-liquid-hack .fc-timegrid-axis-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols{bottom:0;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols>table{height:100%}.fc-media-screen .fc-timegrid-col-bg,.fc-media-screen .fc-timegrid-col-events,.fc-media-screen .fc-timegrid-now-indicator-container{left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col-bg{z-index:2}.fc .fc-timegrid-col-bg .fc-non-business{z-index:1}.fc .fc-timegrid-col-bg .fc-bg-event{z-index:2}.fc .fc-timegrid-col-bg .fc-highlight{z-index:3}.fc .fc-timegrid-bg-harness{left:0;position:absolute;right:0}.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-now-indicator-container{bottom:0;overflow:hidden}.fc-direction-ltr .fc-timegrid-col-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-events{margin:0 2px 0 2.5%}.fc-timegrid-event-harness{position:absolute}.fc-timegrid-event-harness>.fc-timegrid-event{bottom:0;left:0;position:absolute;right:0;top:0}.fc-timegrid-event-harness-inset .fc-timegrid-event,.fc-timegrid-event.fc-event-mirror,.fc-timegrid-more-link{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event,.fc-timegrid-more-link{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-main-frame{flex-direction:row;overflow:hidden}.fc-timegrid-event-short .fc-event-time:after{content:"\\00a0-\\00a0"}.fc-timegrid-event-short .fc-event-title{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;position:absolute;z-index:9999}.fc-timegrid-more-link-inner{padding:3px 2px;top:0}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc .fc-timegrid-now-indicator-arrow,.fc .fc-timegrid-now-indicator-line{pointer-events:none}.fc .fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;border-width:1px 0 0;left:0;position:absolute;right:0;z-index:4}.fc .fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-style:solid;margin-top:-5px;position:absolute;z-index:4}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}';as(rB);var iB={allDaySlot:Boolean},OM=on({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:iB,views:{timeGrid:{component:lh,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});Tl.touchMouseIgnoreWait=500;var Nb=0,ch=0,Ob=!1,uh=class{constructor(e){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=n=>{if(!this.shouldIgnoreMouse()&&oB(n)&&this.tryStart(n)){let r=this.createEventFromMouse(n,!0);this.emitter.trigger("pointerdown",r),this.initScrollWatch(r),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=n=>{let r=this.createEventFromMouse(n);this.recordCoords(r),this.emitter.trigger("pointermove",r)},this.handleMouseUp=n=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(n)),this.cleanup()},this.handleTouchStart=n=>{if(this.tryStart(n)){this.isTouchDragging=!0;let r=this.createEventFromTouch(n,!0);this.emitter.trigger("pointerdown",r),this.initScrollWatch(r);let i=n.target;this.shouldIgnoreMove||i.addEventListener("touchmove",this.handleTouchMove),i.addEventListener("touchend",this.handleTouchEnd),i.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=n=>{let r=this.createEventFromTouch(n);this.recordCoords(r),this.emitter.trigger("pointermove",r)},this.handleTouchEnd=n=>{if(this.isDragging){let r=n.target;r.removeEventListener("touchmove",this.handleTouchMove),r.removeEventListener("touchend",this.handleTouchEnd),r.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(n)),this.cleanup(),this.isTouchDragging=!1,sB()}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=n=>{if(!this.shouldIgnoreMove){let r=window.scrollX-this.prevScrollX+this.prevPageX,i=window.scrollY-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:n,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:r,pageY:i,deltaX:r-this.origPageX,deltaY:i-this.origPageY})}},this.containerEl=e,this.emitter=new mr,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),aB()}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),lB()}tryStart(e){let n=this.querySubjectEl(e),r=e.target;return n&&(!this.handleSelector||Ze(r,this.handleSelector))?(this.subjectEl=n,this.isDragging=!0,this.wasTouchScroll=!1,!0):!1}cleanup(){Ob=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?Ze(e.target,this.selector):this.containerEl}shouldIgnoreMouse(){return Nb||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(Ob=!0)}initScrollWatch(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.scrollX,this.prevScrollY=window.scrollY)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(e,n){let r=0,i=0;return n?(this.origPageX=e.pageX,this.origPageY=e.pageY):(r=e.pageX-this.origPageX,i=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:r,deltaY:i}}createEventFromTouch(e,n){let r=e.touches,i,o,s=0,a=0;return r&&r.length?(i=r[0].pageX,o=r[0].pageY):(i=e.pageX,o=e.pageY),n?(this.origPageX=i,this.origPageY=o):(s=i-this.origPageX,a=o-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:i,pageY:o,deltaX:s,deltaY:a}}};function oB(t){return t.button===0&&!t.ctrlKey}function sB(){Nb+=1,setTimeout(()=>{Nb-=1},Tl.touchMouseIgnoreWait)}function aB(){ch+=1,ch===1&&window.addEventListener("touchmove",PM,{passive:!1})}function lB(){ch-=1,ch||window.removeEventListener("touchmove",PM,{passive:!1})}function PM(t){Ob&&t.preventDefault()}var kb=class{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(e,n,r){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=n-window.scrollX,this.origScreenY=r-window.scrollY,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(e,n){this.deltaX=e-window.scrollX-this.origScreenX,this.deltaY=n-window.scrollY-this.origScreenY,this.updateElPosition()}setIsVisible(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)}stop(e,n){let r=()=>{this.cleanup(),n()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(r,this.revertDuration):setTimeout(r,0)}doRevertAnimation(e,n){let r=this.mirrorEl,i=this.sourceEl.getBoundingClientRect();r.style.transition="top "+n+"ms,left "+n+"ms",ro(r,{left:i.left,top:i.top}),ty(r,()=>{r.style.transition="",e()})}cleanup(){this.mirrorEl&&(fl(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&ro(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let e=this.sourceElRect,n=this.mirrorEl;return n||(n=this.mirrorEl=this.sourceEl.cloneNode(!0),n.style.userSelect="none",n.style.webkitUserSelect="none",n.style.pointerEvents="none",n.classList.add("fc-event-dragging"),ro(n,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(n)),n}},dh=class extends Yi{constructor(e,n){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=e,this.doesListening=n,this.scrollTop=this.origScrollTop=e.getScrollTop(),this.scrollLeft=this.origScrollLeft=e.getScrollLeft(),this.scrollWidth=e.getScrollWidth(),this.scrollHeight=e.getScrollHeight(),this.clientWidth=e.getClientWidth(),this.clientHeight=e.getClientHeight(),this.clientRect=this.computeClientRect(),this.doesListening&&this.getEventTarget().addEventListener("scroll",this.handleScroll)}destroy(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)}getScrollTop(){return this.scrollTop}getScrollLeft(){return this.scrollLeft}setScrollTop(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}},fh=class extends dh{constructor(e,n){super(new sl(e),n)}getEventTarget(){return this.scrollController.el}computeClientRect(){return Vy(this.scrollController.el)}},Pb=class extends dh{constructor(e){super(new al,e)}getEventTarget(){return window}computeClientRect(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}}handleScrollChange(){this.clientRect=this.computeClientRect()}},kM=typeof performance=="function"?performance.now:Date.now,Fb=class{constructor(){this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=()=>{if(this.isAnimating){let e=this.computeBestEdge(this.pointerScreenX+window.scrollX,this.pointerScreenY+window.scrollY);if(e){let n=kM();this.handleSide(e,(n-this.msSinceRequest)/1e3),this.requestAnimation(n)}else this.isAnimating=!1}}}start(e,n,r){this.isEnabled&&(this.scrollCaches=this.buildCaches(r),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,n))}handleMove(e,n){if(this.isEnabled){let r=e-window.scrollX,i=n-window.scrollY,o=this.pointerScreenY===null?0:i-this.pointerScreenY,s=this.pointerScreenX===null?0:r-this.pointerScreenX;o<0?this.everMovedUp=!0:o>0&&(this.everMovedDown=!0),s<0?this.everMovedLeft=!0:s>0&&(this.everMovedRight=!0),this.pointerScreenX=r,this.pointerScreenY=i,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(kM()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let e of this.scrollCaches)e.destroy();this.scrollCaches=null}}requestAnimation(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)}handleSide(e,n){let{scrollCache:r}=e,{edgeThreshold:i}=this,o=i-e.distance,s=o*o/(i*i)*this.maxVelocity*n,a=1;switch(e.name){case"left":a=-1;case"right":r.setScrollLeft(r.getScrollLeft()+s*a);break;case"top":a=-1;case"bottom":r.setScrollTop(r.getScrollTop()+s*a);break}}computeBestEdge(e,n){let{edgeThreshold:r}=this,i=null,o=this.scrollCaches||[];for(let s of o){let a=s.clientRect,l=e-a.left,c=a.right-e,u=n-a.top,d=a.bottom-n;l>=0&&c>=0&&u>=0&&d>=0&&(u<=r&&this.everMovedUp&&s.canScrollUp()&&(!i||i.distance>u)&&(i={scrollCache:s,name:"top",distance:u}),d<=r&&this.everMovedDown&&s.canScrollDown()&&(!i||i.distance>d)&&(i={scrollCache:s,name:"bottom",distance:d}),l<=r&&this.everMovedLeft&&s.canScrollLeft()&&(!i||i.distance>l)&&(i={scrollCache:s,name:"left",distance:l}),c<=r&&this.everMovedRight&&s.canScrollRight()&&(!i||i.distance>c)&&(i={scrollCache:s,name:"right",distance:c}))}return i}buildCaches(e){return this.queryScrollEls(e).map(n=>n===window?new Pb(!1):new fh(n,!1))}queryScrollEls(e){let n=[];for(let r of this.scrollQuery)typeof r=="object"?n.push(r):n.push(...Array.prototype.slice.call(e.getRootNode().querySelectorAll(r)));return n}},co=class extends ul{constructor(e,n){super(e),this.containerEl=e,this.delay=null,this.minDistance=0,this.touchScrollAllowed=!0,this.mirrorNeedsRevert=!1,this.isInteracting=!1,this.isDragging=!1,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.delayTimeoutId=null,this.onPointerDown=i=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,ny(document.body),iy(document.body),i.isTouch||i.origEvent.preventDefault(),this.emitter.trigger("pointerdown",i),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(i.subjectEl,i.pageX,i.pageY),this.startDelay(i),this.minDistance||this.handleDistanceSurpassed(i)))},this.onPointerMove=i=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",i),!this.isDistanceSurpassed){let o=this.minDistance,s,{deltaX:a,deltaY:l}=i;s=a*a+l*l,s>=o*o&&this.handleDistanceSurpassed(i)}this.isDragging&&(i.origEvent.type!=="scroll"&&(this.mirror.handleMove(i.pageX,i.pageY),this.autoScroller.handleMove(i.pageX,i.pageY)),this.emitter.trigger("dragmove",i))}},this.onPointerUp=i=>{this.isInteracting&&(this.isInteracting=!1,ry(document.body),oy(document.body),this.emitter.trigger("pointerup",i),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(i)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let r=this.pointer=new uh(e);r.emitter.on("pointerdown",this.onPointerDown),r.emitter.on("pointermove",this.onPointerMove),r.emitter.on("pointerup",this.onPointerUp),n&&(r.selector=n),this.mirror=new kb,this.autoScroller=new Fb}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(e){typeof this.delay=="number"?this.delayTimeoutId=setTimeout(()=>{this.delayTimeoutId=null,this.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)}handleDelayEnd(e){this.isDelayEnded=!0,this.tryStartDrag(e)}handleDistanceSurpassed(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)}tryStartDrag(e){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),this.touchScrollAllowed===!1&&this.pointer.cancelTouchScroll())}tryStopDrag(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))}stopDrag(e){this.isDragging=!1,this.emitter.trigger("dragend",e)}setIgnoreMove(e){this.pointer.shouldIgnoreMove=e}setMirrorIsVisible(e){this.mirror.setIsVisible(e)}setMirrorNeedsRevert(e){this.mirrorNeedsRevert=e}setAutoScrollEnabled(e){this.autoScroller.isEnabled=e}},Lb=class{constructor(e){this.el=e,this.origRect=Il(e),this.scrollCaches=yf(e).map(n=>new fh(n,!0))}destroy(){for(let e of this.scrollCaches)e.destroy()}computeLeft(){let e=this.origRect.left;for(let n of this.scrollCaches)e+=n.origScrollLeft-n.getScrollLeft();return e}computeTop(){let e=this.origRect.top;for(let n of this.scrollCaches)e+=n.origScrollTop-n.getScrollTop();return e}isWithinClipping(e,n){let r={left:e,top:n};for(let i of this.scrollCaches)if(!cB(i.getEventTarget())&&!ky(r,i.clientRect))return!1;return!0}};function cB(t){let e=t.tagName;return e==="HTML"||e==="BODY"}var ws=class{constructor(e,n){this.useSubjectCenter=!1,this.requireInitial=!0,this.disablePointCheck=!1,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=r=>{let{dragging:i}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(r),this.initialHit||!this.requireInitial?(i.setIgnoreMove(!1),this.emitter.trigger("pointerdown",r)):i.setIgnoreMove(!0)},this.handleDragStart=r=>{this.emitter.trigger("dragstart",r),this.handleMove(r,!0)},this.handleDragMove=r=>{this.emitter.trigger("dragmove",r),this.handleMove(r)},this.handlePointerUp=r=>{this.releaseHits(),this.emitter.trigger("pointerup",r)},this.handleDragEnd=r=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,r),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",r)},this.droppableStore=n,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new mr}processFirstCoord(e){let n={left:e.pageX,top:e.pageY},r=n,i=e.subjectEl,o;i instanceof HTMLElement&&(o=Il(i),r=Py(r,o));let s=this.initialHit=this.queryHitForOffset(r.left,r.top);if(s){if(this.useSubjectCenter&&o){let a=mf(o,s.rect);a&&(r=Fy(a))}this.coordAdjust=Ly(r,n)}else this.coordAdjust={left:0,top:0}}handleMove(e,n){let r=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);(n||!hh(this.movingHit,r))&&(this.movingHit=r,this.emitter.trigger("hitupdate",r,!1,e))}prepareHits(){this.offsetTrackers=nn(this.droppableStore,e=>(e.component.prepareHits(),new Lb(e.el)))}releaseHits(){let{offsetTrackers:e}=this;for(let n in e)e[n].destroy();this.offsetTrackers={}}queryHitForOffset(e,n){let{droppableStore:r,offsetTrackers:i}=this,o=null;for(let s in r){let a=r[s].component,l=i[s];if(l&&l.isWithinClipping(e,n)){let c=l.computeLeft(),u=l.computeTop(),d=e-c,h=n-u,{origRect:f}=l,p=f.right-f.left,E=f.bottom-f.top;if(d>=0&&d<p&&h>=0&&h<E){let b=a.queryHit(d,h,p,E);b&&us(b.dateProfile.activeRange,b.dateSpan.range)&&(this.disablePointCheck||l.el.contains(l.el.getRootNode().elementFromPoint(d+c-window.scrollX,h+u-window.scrollY)))&&(!o||b.layer>o.layer)&&(b.componentId=s,b.context=a.context,b.rect.left+=c,b.rect.right+=c,b.rect.top+=u,b.rect.bottom+=u,o=b)}}}return o}};function hh(t,e){return!t&&!e?!0:!!t!=!!e?!1:Ay(t.dateSpan,e.dateSpan)}function FM(t,e){let n={};for(let r of e.pluginHooks.datePointTransforms)Object.assign(n,r(t,e));return Object.assign(n,uB(t,e.dateEnv)),n}function uB(t,e){return{date:e.toDate(t.range.start),dateStr:e.formatIso(t.range.start,{omitTime:t.allDay}),allDay:t.allDay}}var jb=class extends Sn{constructor(e){super(e),this.handlePointerDown=r=>{let{dragging:i}=this,o=r.origEvent.target;i.setIgnoreMove(!this.component.isValidDateDownEl(o))},this.handleDragEnd=r=>{let{component:i}=this,{pointer:o}=this.dragging;if(!o.wasTouchScroll){let{initialHit:s,finalHit:a}=this.hitDragging;if(s&&a&&hh(s,a)){let{context:l}=i,c=Object.assign(Object.assign({},FM(s.dateSpan,l)),{dayEl:s.dayEl,jsEvent:r.origEvent,view:l.viewApi||l.calendarApi.view});l.emitter.trigger("dateClick",c)}}},this.dragging=new co(e.el),this.dragging.autoScroller.isEnabled=!1;let n=this.hitDragging=new ws(this.dragging,Sl(e));n.emitter.on("pointerdown",this.handlePointerDown),n.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}},Vb=class extends Sn{constructor(e){super(e),this.dragSelection=null,this.handlePointerDown=s=>{let{component:a,dragging:l}=this,{options:c}=a.context,u=c.selectable&&a.isValidDateDownEl(s.origEvent.target);l.setIgnoreMove(!u),l.delay=s.isTouch?dB(a):null},this.handleDragStart=s=>{this.component.context.calendarApi.unselect(s)},this.handleHitUpdate=(s,a)=>{let{context:l}=this.component,c=null,u=!1;if(s){let d=this.hitDragging.initialHit;s.componentId===d.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(d,s)||(c=fB(d,s,l.pluginHooks.dateSelectionTransformers)),(!c||!Hy(c,s.dateProfile,l))&&(u=!0,c=null)}c?l.dispatch({type:"SELECT_DATES",selection:c}):a||l.dispatch({type:"UNSELECT_DATES"}),u?pl():gl(),a||(this.dragSelection=c)},this.handlePointerUp=s=>{this.dragSelection&&(hf(this.dragSelection,s,this.component.context),this.dragSelection=null)};let{component:n}=e,{options:r}=n.context,i=this.dragging=new co(e.el);i.touchScrollAllowed=!1,i.minDistance=r.selectMinDistance||0,i.autoScroller.isEnabled=r.dragScroll;let o=this.hitDragging=new ws(this.dragging,Sl(e));o.emitter.on("pointerdown",this.handlePointerDown),o.emitter.on("dragstart",this.handleDragStart),o.emitter.on("hitupdate",this.handleHitUpdate),o.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}};function dB(t){let{options:e}=t.context,n=e.selectLongPressDelay;return n==null&&(n=e.longPressDelay),n}function fB(t,e,n){let r=t.dateSpan,i=e.dateSpan,o=[r.range.start,r.range.end,i.range.start,i.range.end];o.sort(sy);let s={};for(let a of n){let l=a(t,e);if(l===!1)return null;l&&Object.assign(s,l)}return s.range={start:o[0],end:o[3]},s.allDay=r.allDay,s}var LM=(()=>{class t extends Sn{constructor(n){super(n),this.subjectEl=null,this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=a=>{let l=a.origEvent.target,{component:c,dragging:u}=this,{mirror:d}=u,{options:h}=c.context,f=c.context;this.subjectEl=a.subjectEl;let p=this.subjectSeg=br(a.subjectEl),b=(this.eventRange=p.eventRange).instance.instanceId;this.relevantEvents=Dl(f.getCurrentData().eventStore,b),u.minDistance=a.isTouch?0:h.eventDragMinDistance,u.delay=a.isTouch&&b!==c.props.eventSelection?pB(c):null,h.fixedMirrorParent?d.parentNode=h.fixedMirrorParent:d.parentNode=Ze(l,".fc"),d.revertDuration=h.dragRevertDuration;let D=c.isValidSegDownEl(l)&&!Ze(l,".fc-event-resizer");u.setIgnoreMove(!D),this.isDragging=D&&a.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=a=>{let l=this.component.context,c=this.eventRange,u=c.instance.instanceId;a.isTouch?u!==this.component.props.eventSelection&&l.dispatch({type:"SELECT_EVENT",eventInstanceId:u}):l.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(l.calendarApi.unselect(a),l.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new De(l,c.def,c.instance),jsEvent:a.origEvent,view:l.viewApi}))},this.handleHitUpdate=(a,l)=>{if(!this.isDragging)return;let c=this.relevantEvents,u=this.hitDragging.initialHit,d=this.component.context,h=null,f=null,p=null,E=!1,b={affectedEvents:c,mutatedEvents:ht(),isEvent:!0};if(a){h=a.context;let D=h.options;d===h||D.editable&&D.droppable?(f=hB(u,a,this.eventRange.instance.range.start,h.getCurrentData().pluginHooks.eventDragMutationMassagers),f&&(p=Cl(c,h.getCurrentData().eventUiBases,f,h),b.mutatedEvents=p,bf(b,a.dateProfile,h)||(E=!0,f=null,p=null,b.mutatedEvents=ht()))):h=null}this.displayDrag(h,b),E?pl():gl(),l||(d===h&&hh(u,a)&&(f=null),this.dragging.setMirrorNeedsRevert(!f),this.dragging.setMirrorIsVisible(!a||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=h,this.validMutation=f,this.mutatedRelevantEvents=p)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=a=>{if(this.isDragging){let l=this.component.context,c=l.viewApi,{receivingContext:u,validMutation:d}=this,h=this.eventRange.def,f=this.eventRange.instance,p=new De(l,h,f),E=this.relevantEvents,b=this.mutatedRelevantEvents,{finalHit:D}=this.hitDragging;if(this.clearDrag(),l.emitter.trigger("eventDragStop",{el:this.subjectEl,event:p,jsEvent:a.origEvent,view:c}),d){if(u===l){let I=new De(l,b.defs[h.defId],f?b.instances[f.instanceId]:null);l.dispatch({type:"MERGE_EVENTS",eventStore:b});let N={oldEvent:p,event:I,relatedEvents:zn(b,l,f),revert(){l.dispatch({type:"MERGE_EVENTS",eventStore:E})}},A={};for(let me of l.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(A,me(d,l));l.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},N),A),{el:a.subjectEl,delta:d.datesDelta,jsEvent:a.origEvent,view:c})),l.emitter.trigger("eventChange",N)}else if(u){let I={event:p,relatedEvents:zn(E,l,f),revert(){l.dispatch({type:"MERGE_EVENTS",eventStore:E})}};l.emitter.trigger("eventLeave",Object.assign(Object.assign({},I),{draggedEl:a.subjectEl,view:c})),l.dispatch({type:"REMOVE_EVENTS",eventStore:E}),l.emitter.trigger("eventRemove",I);let N=b.defs[h.defId],A=b.instances[f.instanceId],me=new De(u,N,A);u.dispatch({type:"MERGE_EVENTS",eventStore:b});let J={event:me,relatedEvents:zn(b,u,A),revert(){u.dispatch({type:"REMOVE_EVENTS",eventStore:b})}};u.emitter.trigger("eventAdd",J),a.isTouch&&u.dispatch({type:"SELECT_EVENT",eventInstanceId:f.instanceId}),u.emitter.trigger("drop",Object.assign(Object.assign({},FM(D.dateSpan,u)),{draggedEl:a.subjectEl,jsEvent:a.origEvent,view:D.context.viewApi})),u.emitter.trigger("eventReceive",Object.assign(Object.assign({},J),{draggedEl:a.subjectEl,view:D.context.viewApi}))}}else l.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:r}=this,{options:i}=r.context,o=this.dragging=new co(n.el);o.pointer.selector=t.SELECTOR,o.touchScrollAllowed=!1,o.autoScroller.isEnabled=i.dragScroll;let s=this.hitDragging=new ws(this.dragging,fs);s.useSubjectCenter=n.useEventCenter,s.emitter.on("pointerdown",this.handlePointerDown),s.emitter.on("dragstart",this.handleDragStart),s.emitter.on("hitupdate",this.handleHitUpdate),s.emitter.on("pointerup",this.handlePointerUp),s.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(n,r){let i=this.component.context,o=this.receivingContext;o&&o!==n&&(o===i?o.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:r.affectedEvents,mutatedEvents:ht(),isEvent:!0}}):o.dispatch({type:"UNSET_EVENT_DRAG"})),n&&n.dispatch({type:"SET_EVENT_DRAG",state:r})}clearDrag(){let n=this.component.context,{receivingContext:r}=this;r&&r.dispatch({type:"UNSET_EVENT_DRAG"}),n!==r&&n.dispatch({type:"UNSET_EVENT_DRAG"})}cleanup(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null}}return t.SELECTOR=".fc-event-draggable, .fc-event-resizable",t})();function hB(t,e,n,r){let i=t.dateSpan,o=e.dateSpan,s=i.range.start,a=o.range.start,l={};i.allDay!==o.allDay&&(l.allDay=o.allDay,l.hasEnd=e.context.options.allDayMaintainDuration,o.allDay?s=ge(n):s=n);let c=Jr(s,a,t.context.dateEnv,t.componentId===e.componentId?t.largeUnit:null);c.milliseconds&&(l.allDay=!1);let u={datesDelta:c,standardProps:l};for(let d of r)d(u,t,e);return u}function pB(t){let{options:e}=t.context,n=e.eventLongPressDelay;return n==null&&(n=e.longPressDelay),n}var Bb=class extends Sn{constructor(e){super(e),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=o=>{let{component:s}=this,a=this.querySegEl(o),l=br(a),c=this.eventRange=l.eventRange;this.dragging.minDistance=s.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(o.origEvent.target)||o.isTouch&&this.component.props.eventSelection!==c.instance.instanceId)},this.handleDragStart=o=>{let{context:s}=this.component,a=this.eventRange;this.relevantEvents=Dl(s.getCurrentData().eventStore,this.eventRange.instance.instanceId);let l=this.querySegEl(o);this.draggingSegEl=l,this.draggingSeg=br(l),s.calendarApi.unselect(),s.emitter.trigger("eventResizeStart",{el:l,event:new De(s,a.def,a.instance),jsEvent:o.origEvent,view:s.viewApi})},this.handleHitUpdate=(o,s,a)=>{let{context:l}=this.component,c=this.relevantEvents,u=this.hitDragging.initialHit,d=this.eventRange.instance,h=null,f=null,p=!1,E={affectedEvents:c,mutatedEvents:ht(),isEvent:!0};o&&(o.componentId===u.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(u,o)||(h=gB(u,o,a.subjectEl.classList.contains("fc-event-resizer-start"),d.range))),h&&(f=Cl(c,l.getCurrentData().eventUiBases,h,l),E.mutatedEvents=f,bf(E,o.dateProfile,l)||(p=!0,h=null,f=null,E.mutatedEvents=null)),f?l.dispatch({type:"SET_EVENT_RESIZE",state:E}):l.dispatch({type:"UNSET_EVENT_RESIZE"}),p?pl():gl(),s||(h&&hh(u,o)&&(h=null),this.validMutation=h,this.mutatedRelevantEvents=f)},this.handleDragEnd=o=>{let{context:s}=this.component,a=this.eventRange.def,l=this.eventRange.instance,c=new De(s,a,l),u=this.relevantEvents,d=this.mutatedRelevantEvents;if(s.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:c,jsEvent:o.origEvent,view:s.viewApi}),this.validMutation){let h=new De(s,d.defs[a.defId],l?d.instances[l.instanceId]:null);s.dispatch({type:"MERGE_EVENTS",eventStore:d});let f={oldEvent:c,event:h,relatedEvents:zn(d,s,l),revert(){s.dispatch({type:"MERGE_EVENTS",eventStore:u})}};s.emitter.trigger("eventResize",Object.assign(Object.assign({},f),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||X(0),endDelta:this.validMutation.endDelta||X(0),jsEvent:o.origEvent,view:s.viewApi})),s.emitter.trigger("eventChange",f)}else s.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:n}=e,r=this.dragging=new co(e.el);r.pointer.selector=".fc-event-resizer",r.touchScrollAllowed=!1,r.autoScroller.isEnabled=n.context.options.dragScroll;let i=this.hitDragging=new ws(this.dragging,Sl(e));i.emitter.on("pointerdown",this.handlePointerDown),i.emitter.on("dragstart",this.handleDragStart),i.emitter.on("hitupdate",this.handleHitUpdate),i.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(e){return Ze(e.subjectEl,".fc-event")}};function gB(t,e,n,r){let i=t.context.dateEnv,o=t.dateSpan.range.start,s=e.dateSpan.range.start,a=Jr(o,s,i,t.largeUnit);
7if(n){if(i.add(r.start,a)<r.end)return{startDelta:a}}else if(i.add(r.end,a)>r.start)return{endDelta:a};return null}var Hb=class{constructor(e){this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=r=>{r.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=r=>{let i=this.context.options.unselectCancel,o=tf(r.origEvent);this.matchesCancel=!!Ze(o,i),this.matchesEvent=!!Ze(o,LM.SELECTOR)},this.onDocumentPointerUp=r=>{let{context:i}=this,{documentPointer:o}=this,s=i.getCurrentData();if(!o.wasTouchScroll){if(s.dateSelection&&!this.isRecentPointerDateSelect){let a=i.options.unselectAuto;a&&(!a||!this.matchesCancel)&&i.calendarApi.unselect(r)}s.eventSelection&&!this.matchesEvent&&i.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let n=this.documentPointer=new uh(document);n.shouldIgnoreMove=!0,n.shouldWatchScroll=!1,n.emitter.on("pointerdown",this.onDocumentPointerDown),n.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}},mB={fixedMirrorParent:C},vB={dateClick:C,eventDragStart:C,eventDragStop:C,eventDrop:C,eventResizeStart:C,eventResizeStop:C,eventResize:C,drop:C,eventReceive:C,eventLeave:C};Tl.dataAttrPrefix="";var jM=on({name:"@fullcalendar/interaction",componentInteractions:[jb,Vb,LM,Bb],calendarInteractions:[Hb],elementDraggingImpl:co,optionRefiners:mB,listenerRefiners:vB});var yB=(t,e)=>e.id;function bB(t,e){if(t&1&&(m(0,"span",8),y(1),v()),t&2){let n=e.$implicit,r=F();Au("background",r.colorForMemberId(n.id)),_(),Z(" ",n.full_name||n.name||"Miembro "+n.id," ")}}function EB(t,e){t&1&&(m(0,"div",7),oe(1,"div",9),m(2,"p",10),y(3,"Buscando eventos en la familia..."),v()())}function DB(t,e){t&1&&(m(0,"div",7)(1,"p",11),y(2,"No hay eventos para mostrar."),v()())}var ph=class t{route=w(tt);router=w(Re);api=w(xt);familyId=W(null);memberId=W(null);members=W([]);loading=W(!0);palette=["#2563eb","#16a34a","#dc2626","#7c3aed","#ea580c","#0891b2","#0f172a","#db2777"];isMobile=window.innerWidth<768;calendarOptions={initialView:this.isMobile?"timeGridDay":"dayGridMonth",plugins:[IM,OM,jM],headerToolbar:{left:this.isMobile?"prev,next":"prev,next today",center:"title",right:this.isMobile?"dayGridMonth,timeGridDay":"dayGridMonth,timeGridWeek,timeGridDay"},nowIndicator:!0,scrollTime:"08:00:00",height:"auto",locale:"es",eventTimeFormat:{hour:"2-digit",minute:"2-digit",hour12:!1},events:[]};ngOnInit(){this.route.queryParamMap.subscribe(e=>{this.loading.set(!0);let n=e.get("familyId")?Number(e.get("familyId")):null,r=e.get("memberId")?Number(e.get("memberId")):null;if(!n){this.router.navigateByUrl("/family");return}this.familyId.set(n),this.memberId.set(Number.isFinite(r)?r:null),this.api.getMembersByFamily(n).subscribe({next:i=>{let o=(i||[]).map(s=>Y(S({},s),{id:s?.id??s?.member_id}));this.members.set(o),this.memberId()?this.loadEventsForOneMember(n,this.memberId()):this.loadEventsForFamily(n)},error:i=>console.error("Error cargando miembros:",i)})})}colorForMemberId(e){return this.palette[Math.abs(Number(e))%this.palette.length]}loadEventsForOneMember(e,n){this.api.getEventsByFamilyMember(e,n).subscribe({next:r=>this.applyMappedEvents(r||[]),error:()=>this.applyMappedEvents([])})}loadEventsForFamily(e){this.api.getEventsByFamily(e).pipe(ui(n=>n?.status===404?Q([]):(console.error("Error cargando eventos de familia:",n),Q([])))).subscribe({next:n=>this.applyMappedEvents(n||[]),error:()=>this.applyMappedEvents([])})}applyMappedEvents(e){console.log("EVENTOS RECIBIDOS:",e.length);let n=(e||[]).map(r=>this.toCalendarEvent(r)).filter(Boolean);n.sort((r,i)=>new Date(r.start).getTime()-new Date(i.start).getTime()),this.calendarOptions=S(Y(S({},this.calendarOptions),{events:[...n]}),n.length>0?{initialDate:n[0].start.split("T")[0]}:{}),this.loading.set(!1)}toIso(e){return e?e.trim().includes(" ")?e.replace(" ","T"):e:""}toCalendarEvent(e){let n=e.start_at||e.start_date||e.start||e.startDate||e.start_time,r=e.end_at||e.end_date||e.end||e.endDate||e.end_time;if(!n)return null;let i=this.toIso(n),o=r?this.toIso(r):null,s=Number(e.member_id||e.memberId||e.member?.id),a=this.colorForMemberId(s);return{id:String(e.id),title:`${this.iconByType(e.type)} ${e.title}`,start:i,end:o,backgroundColor:a,borderColor:a,textColor:"#ffffff",allDay:!i.includes("T")||i.length<=10}}iconByType(e){return{activity:"\u26BD",medical:"\u{1FA7A}",birthday:"\u{1F382}",school:"\u{1F392}"}[e]||"\u{1F514}"}backToEvents(){this.router.navigate(["/events"],{queryParams:S({familyId:this.familyId()},this.memberId()?{memberId:this.memberId()}:{})})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=re({type:t,selectors:[["app-event-calendar"]],decls:16,vars:2,consts:[[1,"cal
7-wrap"],[1,"cal-header"],[1,"btn","btn-outline-dark",3,"click"],[1,"legend"],[1,"pill",3,"background"],[1,"cal-card"],[3,"options"],[1,"text-center","p-5"],[1,"pill"],["role","status",1,"spinner-border","text-primary"],[1,"mt-2","text-muted"],[1,"mt-2","text-muted","mb-0"]],template:function(n,r){n&1&&(m(0,"div",0)(1,"div",1)(2,"div")(3,"h2"),y(4,"Calendario"),v(),m(5,"p"),y(6,"Vista semanal para ver horarios y solapamientos"),v()(),m(7,"button",2),L("click",function(){return r.backToEvents()}),y(8," \u2190 Volver a eventos "),v()(),m(9,"div",3),jt(10,bB,2,3,"span",4,yB),v(),m(12,"div",5),oe(13,"full-calendar",6),_e(14,EB,4,0,"div",7)(15,DB,3,0,"div",7),v()()),n&2&&(_(10),Vt(r.members()),_(3),B("options",r.calendarOptions),_(),we(r.loading()?14:!r.calendarOptions.events||r.calendarOptions.events.length===0?15:-1))},dependencies:[If,UI],styles:["[_nghost-%COMP%]{display:block}.cal-wrap[_ngcontent-%COMP%]{max-width:1100px;margin:0 auto;padding:24px 18px}.cal-header[_ngcontent-%COMP%]{margin-bottom:14px;display:flex;align-items:flex-end;justify-content:space-between;gap:12px}.cal-header[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin:0;font-size:1.5rem;font-weight:800;color:#0f172a}.legend[_ngcontent-%COMP%]{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.pill[_ngcontent-%COMP%]{color:#fff;padding:6px 12px;border-radius:999px;font-weight:700;font-size:.85rem}.cal-card[_ngcontent-%COMP%]{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:14px;box-shadow:0 8px 18px #0000000f}[_nghost-%COMP%]     .fc{min-height:700px!important}[_nghost-%COMP%]     .fc .fc-toolbar-title{font-size:1.4rem;font-weight:800}[_nghost-%COMP%]     .fc .fc-button{border-radius:8px!important;font-weight:600!important;text-transform:capitalize}[_nghost-%COMP%]     .fc .fc-daygrid-day-frame{min-height:110px}[_nghost-%COMP%]     .fc-daygrid-event{border-radius:6px!important;padding:3px 6px!important;font-size:.85rem!important;border:none!important;margin-top:2px!important}[_nghost-%COMP%]     .fc-event-title{font-weight:700!important;white-space:normal!important}[_nghost-%COMP%]     .fc-view-harness{background-color:#fff}"]})};var VM=[{path:"",component:zf,children:[{path:"",component:Gf},{path:"welcome",component:qf},{path:"family",component:Yf},{path:"member-create",component:Qf},{path:"member-update",component:Zf},{path:"member/:id",component:Jf},{path:"events",component:Xf},{path:"calendar",component:ph},{path:"**",component:Bl}]},{path:"**",component:Bl}];var BM={providers:[_v(VM),Km(Xm([$I])),xc(If)]};var gh=class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=re({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(n,r){n&1&&oe(0,"router-outlet")},dependencies:[Hi],encapsulation:2})};zm(gh,BM).catch(t=>console.error(t));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.