git-history-ui 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/build/frontend/index.html +1 -1
- package/build/frontend/main-5GQESVK5.js +8 -0
- package/build/frontend/main-KMFUNYSW.js +8 -0
- package/dist/__tests__/gitService.test.js +37 -29
- package/dist/__tests__/gitService.test.js.map +1 -1
- package/dist/backend/gitService.d.ts +12 -1
- package/dist/backend/gitService.d.ts.map +1 -1
- package/dist/backend/gitService.js +56 -12
- package/dist/backend/gitService.js.map +1 -1
- package/dist/backend/server.d.ts.map +1 -1
- package/dist/backend/server.js +5 -4
- package/dist/backend/server.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var TD=Object.defineProperty,AD=Object.defineProperties;var ND=Object.getOwnPropertyDescriptors;var jp=Object.getOwnPropertySymbols;var RD=Object.prototype.hasOwnProperty,OD=Object.prototype.propertyIsEnumerable;var Bp=(e,t,n)=>t in e?TD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,M=(e,t)=>{for(var n in t||={})RD.call(t,n)&&Bp(e,n,t[n]);if(jp)for(var n of jp(t))OD.call(t,n)&&Bp(e,n,t[n]);return e},Q=(e,t)=>AD(e,ND(t));var eu;function ks(){return eu}function Wt(e){let t=eu;return eu=e,t}var Up=Symbol("NotFound");function qr(e){return e===Up||e?.name==="\u0275NotFound"}function js(e,t){return Object.is(e,t)}var Ue=null,Ps=!1,tu=1,kD=null,$e=Symbol("SIGNAL");function U(e){let t=Ue;return Ue=e,t}function Bs(){return Ue}var ar={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 Zr(e){if(Ps)throw new Error("");if(Ue===null)return;Ue.consumerOnSignalRead(e);let t=Ue.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=Ue.recomputing;if(r&&(n=t!==void 0?t.nextProducer:Ue.producers,n!==void 0&&n.producer===e)){Ue.producersTail=n,n.lastReadVersion=e.version;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===Ue&&(!r||FD(o,Ue)))return;let i=Qr(Ue),s={producer:e,consumer:Ue,nextProducer:n,prevConsumer:o,lastReadVersion:e.version,nextConsumer:void 0};Ue.producersTail=s,t!==void 0?t.nextProducer=s:Ue.producers=s,i&&Hp(e,s)}function $p(){tu++}function Us(e){if(!(Qr(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===tu)){if(!e.producerMustRecompute(e)&&!ci(e)){Vs(e);return}e.producerRecomputeValue(e),Vs(e)}}function nu(e){if(e.consumers===void 0)return;let t=Ps;Ps=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||PD(r)}}finally{Ps=t}}function ru(){return Ue?.consumerAllowSignalWrites!==!1}function PD(e){e.dirty=!0,nu(e),e.consumerMarkedDirty?.(e)}function Vs(e){e.dirty=!1,e.lastCleanEpoch=tu}function cr(e){return e&&(e.producersTail=void 0,e.recomputing=!0),U(e)}function Yr(e,t){if(U(t),!e)return;e.recomputing=!1;let n=e.producersTail,r=n!==void 0?n.nextProducer:e.producers;if(r!==void 0){if(Qr(e))do r=ou(r);while(r!==void 0);n!==void 0?n.nextProducer=void 0:e.producers=void 0}}function ci(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(Us(n),r!==n.version))return!0}return!1}function li(e){if(Qr(e)){let t=e.producers;for(;t!==void 0;)t=ou(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function Hp(e,t){let n=e.consumersTail,r=Qr(e);if(n!==void 0?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let o=e.producers;o!==void 0;o=o.nextProducer)Hp(o.producer,o)}function ou(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:t.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(t.consumers=r,!Qr(t)){let i=t.producers;for(;i!==void 0;)i=ou(i)}return n}function Qr(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function $s(e){kD?.(e)}function FD(e,t){let n=t.producersTail;if(n!==void 0){let r=t.producers;do{if(r===e)return!0;if(r===n)break;r=r.nextProducer}while(r!==void 0)}return!1}function Hs(e,t){let n=Object.create(LD);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(Us(n),Zr(n),n.value===ai)throw n.error;return n.value};return r[$e]=n,$s(n),r}var Fs=Symbol("UNSET"),Ls=Symbol("COMPUTING"),ai=Symbol("ERRORED"),LD=Q(M({},ar),{value:Fs,dirty:!0,error:null,equal:js,kind:"computed",producerMustRecompute(e){return e.value===Fs||e.value===Ls},producerRecomputeValue(e){if(e.value===Ls)throw new Error("");let t=e.value;e.value=Ls;let n=cr(e),r,o=!1;try{r=e.computation(),U(null),o=t!==Fs&&t!==ai&&r!==ai&&e.equal(t,r)}catch(i){r=ai,e.error=i}finally{Yr(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function VD(){throw new Error}var zp=VD;function Gp(e){zp(e)}function iu(e){zp=e}var jD=null;function su(e,t){let n=Object.create(zs);n.value=e,t!==void 0&&(n.equal=t);let r=()=>Wp(n);return r[$e]=n,$s(n),[r,s=>Kr(n,s),s=>au(n,s)]}function Wp(e){return Zr(e),e.value}function Kr(e,t){ru()||Gp(e),e.equal(e.value,t)||(e.value=t,BD(e))}function au(e,t){ru()||Gp(e),Kr(e,t(e.value))}var zs=Q(M({},ar),{equal:js,value:void 0,kind:"signal"});function BD(e){e.version++,$p(),nu(e),jD?.(e)}function V(e){return typeof e=="function"}function Xr(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Gs=Xr(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
|
|
2
|
+
${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
|
|
3
|
+
`)}`:"",this.name="UnsubscriptionError",this.errors=n});function ui(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var _e=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(V(r))try{r()}catch(i){t=i instanceof Gs?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{qp(i)}catch(s){t=t??[],s instanceof Gs?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Gs(t)}}add(t){var n;if(t&&t!==this)if(this.closed)qp(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&ui(n,t)}remove(t){let{_finalizers:n}=this;n&&ui(n,t),t instanceof e&&t._removeParent(this)}};_e.EMPTY=(()=>{let e=new _e;return e.closed=!0,e})();var cu=_e.EMPTY;function Ws(e){return e instanceof _e||e&&"closed"in e&&V(e.remove)&&V(e.add)&&V(e.unsubscribe)}function qp(e){V(e)?e():e.unsubscribe()}var Tt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Jr={setTimeout(e,t,...n){let{delegate:r}=Jr;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Jr;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function qs(e){Jr.setTimeout(()=>{let{onUnhandledError:t}=Tt;if(t)t(e);else throw e})}function di(){}var Zp=lu("C",void 0,void 0);function Yp(e){return lu("E",void 0,e)}function Qp(e){return lu("N",e,void 0)}function lu(e,t,n){return{kind:e,value:t,error:n}}var lr=null;function eo(e){if(Tt.useDeprecatedSynchronousErrorHandling){let t=!lr;if(t&&(lr={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=lr;if(lr=null,n)throw r}}else e()}function Kp(e){Tt.useDeprecatedSynchronousErrorHandling&&lr&&(lr.errorThrown=!0,lr.error=e)}var ur=class extends _e{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Ws(t)&&t.add(this)):this.destination=HD}static create(t,n,r){return new to(t,n,r)}next(t){this.isStopped?du(Qp(t),this):this._next(t)}error(t){this.isStopped?du(Yp(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?du(Zp,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},UD=Function.prototype.bind;function uu(e,t){return UD.call(e,t)}var fu=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Zs(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Zs(r)}else Zs(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Zs(n)}}},to=class extends ur{constructor(t,n,r){super();let o;if(V(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Tt.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&uu(t.next,i),error:t.error&&uu(t.error,i),complete:t.complete&&uu(t.complete,i)}):o=t}this.destination=new fu(o)}};function Zs(e){Tt.useDeprecatedSynchronousErrorHandling?Kp(e):qs(e)}function $D(e){throw e}function du(e,t){let{onStoppedNotification:n}=Tt;n&&Jr.setTimeout(()=>n(e,t))}var HD={closed:!0,next:di,error:$D,complete:di};var no=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ct(e){return e}function hu(...e){return pu(e)}function pu(e){return e.length===0?ct:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var Z=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=GD(n)?n:new to(n,r,o);return eo(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=Xp(r),new r((o,i)=>{let s=new to({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[no](){return this}pipe(...n){return pu(n)(this)}toPromise(n){return n=Xp(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Xp(e){var t;return(t=e??Tt.Promise)!==null&&t!==void 0?t:Promise}function zD(e){return e&&V(e.next)&&V(e.error)&&V(e.complete)}function GD(e){return e&&e instanceof ur||zD(e)&&Ws(e)}function gu(e){return V(e?.lift)}function te(e){return t=>{if(gu(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function K(e,t,n,r,o){return new mu(e,t,n,r,o)}var mu=class extends ur{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function ro(){return te((e,t)=>{let n=null;e._refCount++;let r=K(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var oo=class extends Z{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,gu(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new _e;let n=this.getSubject();t.add(this.source.subscribe(K(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=_e.EMPTY)}return t}refCount(){return ro()(this)}};var Jp=Xr(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Ce=(()=>{class e extends Z{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Ys(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Jp}next(n){eo(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){eo(()=>{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(){eo(()=>{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:o,observers:i}=this;return r||o?cu:(this.currentObservers=null,i.push(n),new _e(()=>{this.currentObservers=null,ui(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new Z;return n.source=this,n}}return e.create=(t,n)=>new Ys(t,n),e})(),Ys=class extends Ce{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:cu}};var ke=class extends Ce{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var et=new Z(e=>e.complete());function eg(e){return e&&V(e.schedule)}function tg(e){return e[e.length-1]}function Qs(e){return V(tg(e))?e.pop():void 0}function On(e){return eg(tg(e))?e.pop():void 0}function rg(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?i(u.value):o(u.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}function ng(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function dr(e){return this instanceof dr?(this.v=e,this):new dr(e)}function og(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(v){return Promise.resolve(v).then(f,d)}}function a(f,v){r[f]&&(o[f]=function(m){return new Promise(function(g,p){i.push([f,m,g,p])>1||c(f,m)})},v&&(o[f]=v(o[f])))}function c(f,v){try{l(r[f](v))}catch(m){h(i[0][3],m)}}function l(f){f.value instanceof dr?Promise.resolve(f.value.v).then(u,d):h(i[0][2],f)}function u(f){c("next",f)}function d(f){c("throw",f)}function h(f,v){f(v),i.shift(),i.length&&c(i[0][0],i[0][1])}}function ig(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof ng=="function"?ng(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},s)}}var Ks=e=>e&&typeof e.length=="number"&&typeof e!="function";function Xs(e){return V(e?.then)}function Js(e){return V(e[no])}function ea(e){return Symbol.asyncIterator&&V(e?.[Symbol.asyncIterator])}function ta(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function WD(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var na=WD();function ra(e){return V(e?.[na])}function oa(e){return og(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield dr(n.read());if(o)return yield dr(void 0);yield yield dr(r)}}finally{n.releaseLock()}})}function ia(e){return V(e?.getReader)}function De(e){if(e instanceof Z)return e;if(e!=null){if(Js(e))return qD(e);if(Ks(e))return ZD(e);if(Xs(e))return YD(e);if(ea(e))return sg(e);if(ra(e))return QD(e);if(ia(e))return KD(e)}throw ta(e)}function qD(e){return new Z(t=>{let n=e[no]();if(V(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function ZD(e){return new Z(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function YD(e){return new Z(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,qs)})}function QD(e){return new Z(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function sg(e){return new Z(t=>{XD(e,t).catch(n=>t.error(n))})}function KD(e){return sg(oa(e))}function XD(e,t){var n,r,o,i;return rg(this,void 0,void 0,function*(){try{for(n=ig(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function tt(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function sa(e,t=0){return te((n,r)=>{n.subscribe(K(r,o=>tt(r,e,()=>r.next(o),t),()=>tt(r,e,()=>r.complete(),t),o=>tt(r,e,()=>r.error(o),t)))})}function aa(e,t=0){return te((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function ag(e,t){return De(e).pipe(aa(t),sa(t))}function cg(e,t){return De(e).pipe(aa(t),sa(t))}function lg(e,t){return new Z(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function ug(e,t){return new Z(n=>{let r;return tt(n,t,()=>{r=e[na](),tt(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>V(r?.return)&&r.return()})}function ca(e,t){if(!e)throw new Error("Iterable cannot be null");return new Z(n=>{tt(n,t,()=>{let r=e[Symbol.asyncIterator]();tt(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function dg(e,t){return ca(oa(e),t)}function fg(e,t){if(e!=null){if(Js(e))return ag(e,t);if(Ks(e))return lg(e,t);if(Xs(e))return cg(e,t);if(ea(e))return ca(e,t);if(ra(e))return ug(e,t);if(ia(e))return dg(e,t)}throw ta(e)}function pe(e,t){return t?fg(e,t):De(e)}function P(...e){let t=On(e);return pe(e,t)}function io(e,t){let n=V(e)?e:()=>e,r=o=>o.error(n());return new Z(t?o=>t.schedule(r,0,o):r)}function vu(e){return!!e&&(e instanceof Z||V(e.lift)&&V(e.subscribe))}var fn=Xr(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function $(e,t){return te((n,r)=>{let o=0;n.subscribe(K(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:JD}=Array;function eE(e,t){return JD(t)?e(...t):e(t)}function la(e){return $(t=>eE(e,t))}var{isArray:tE}=Array,{getPrototypeOf:nE,prototype:rE,keys:oE}=Object;function ua(e){if(e.length===1){let t=e[0];if(tE(t))return{args:t,keys:null};if(iE(t)){let n=oE(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function iE(e){return e&&typeof e=="object"&&nE(e)===rE}function da(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function fa(...e){let t=On(e),n=Qs(e),{args:r,keys:o}=ua(e);if(r.length===0)return pe([],t);let i=new Z(sE(r,t,o?s=>da(o,s):ct));return n?i.pipe(la(n)):i}function sE(e,t,n=ct){return r=>{hg(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)hg(t,()=>{let l=pe(e[c],t),u=!1;l.subscribe(K(r,d=>{i[c]=d,u||(u=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function hg(e,t,n){e?tt(n,e,t):t()}function pg(e,t,n,r,o,i,s,a){let c=[],l=0,u=0,d=!1,h=()=>{d&&!c.length&&!l&&t.complete()},f=m=>l<r?v(m):c.push(m),v=m=>{i&&t.next(m),l++;let g=!1;De(n(m,u++)).subscribe(K(t,p=>{o?.(p),i?f(p):t.next(p)},()=>{g=!0},void 0,()=>{if(g)try{for(l--;c.length&&l<r;){let p=c.shift();s?tt(t,s,()=>v(p)):v(p)}h()}catch(p){t.error(p)}}))};return e.subscribe(K(t,f,()=>{d=!0,h()})),()=>{a?.()}}function we(e,t,n=1/0){return V(t)?we((r,o)=>$((i,s)=>t(r,i,o,s))(De(e(r,o))),n):(typeof t=="number"&&(n=t),te((r,o)=>pg(r,o,e,n)))}function gg(e=1/0){return we(ct,e)}function mg(){return gg(1)}function so(...e){return mg()(pe(e,On(e)))}function fi(e){return new Z(t=>{De(e()).subscribe(t)})}function yu(...e){let t=Qs(e),{args:n,keys:r}=ua(e),o=new Z(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,l=s;for(let u=0;u<s;u++){let d=!1;De(n[u]).subscribe(K(i,h=>{d||(d=!0,l--),a[u]=h},()=>c--,void 0,()=>{(!c||!d)&&(l||i.next(r?da(r,a):a),i.complete())}))}});return t?o.pipe(la(t)):o}function nt(e,t){return te((n,r)=>{let o=0;n.subscribe(K(r,i=>e.call(t,i,o++)&&r.next(i)))})}function kn(e){return te((t,n)=>{let r=null,o=!1,i;r=t.subscribe(K(n,void 0,void 0,s=>{i=De(e(s,kn(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function vg(e,t,n,r,o){return(i,s)=>{let a=n,c=t,l=0;i.subscribe(K(s,u=>{let d=l++;c=a?e(c,u,d):(a=!0,u),r&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}function Pn(e,t){return V(t)?we(e,t,1):we(e,1)}function Fn(e){return te((t,n)=>{let r=!1;t.subscribe(K(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function hn(e){return e<=0?()=>et:te((t,n)=>{let r=0;t.subscribe(K(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function ha(e=aE){return te((t,n)=>{let r=!1;t.subscribe(K(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function aE(){return new fn}function Ln(e){return te((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function pn(e,t){let n=arguments.length>=2;return r=>r.pipe(e?nt((o,i)=>e(o,i,r)):ct,hn(1),n?Fn(t):ha(()=>new fn))}function ao(e){return e<=0?()=>et:te((t,n)=>{let r=[];t.subscribe(K(n,o=>{r.push(o),e<r.length&&r.shift()},()=>{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function _u(e,t){let n=arguments.length>=2;return r=>r.pipe(e?nt((o,i)=>e(o,i,r)):ct,ao(1),n?Fn(t):ha(()=>new fn))}function Cu(e,t){return te(vg(e,t,arguments.length>=2,!0))}function Du(...e){let t=On(e);return te((n,r)=>{(t?so(e,n,t):so(e,n)).subscribe(r)})}function He(e,t){return te((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(K(r,c=>{o?.unsubscribe();let l=0,u=i++;De(e(c,u)).subscribe(o=K(r,d=>r.next(t?t(c,d,u,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function pa(e){return te((t,n)=>{De(e).subscribe(K(n,()=>n.complete(),di)),!n.closed&&t.subscribe(n)})}function xe(e,t,n){let r=V(e)||t||n?{next:e,error:t,complete:n}:e;return r?te((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(K(i,c=>{var l;(l=r.next)===null||l===void 0||l.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var l;a=!1,(l=r.error)===null||l===void 0||l.call(r,c),i.error(c)},()=>{var c,l;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(l=r.finalize)===null||l===void 0||l.call(r)}))}):ct}function yg(e){let t=U(null);try{return e()}finally{U(t)}}var ku="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",S=class extends Error{code;constructor(t,n){super(lo(t,n)),this.code=t}};function cE(e){return`NG0${Math.abs(e)}`}function lo(e,t){return`${cE(e)}${t?": "+t:""}`}function ie(e){for(let t in e)if(e[t]===ie)return t;throw Error("")}function Dg(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function mn(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(mn).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
|
|
4
|
+
`);return r>=0?n.slice(0,r):n}function _a(e,t){return e?t?`${e} ${t}`:e:t||""}var lE=ie({__forward_ref__:ie});function yn(e){return e.__forward_ref__=yn,e.toString=function(){return mn(this())},e}function Pe(e){return Pu(e)?e():e}function Pu(e){return typeof e=="function"&&e.hasOwnProperty(lE)&&e.__forward_ref__===yn}function Eg(e,t){e==null&&Fu(t,e,null,"!=")}function Fu(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(r==null?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}function N(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Nt(e){return{providers:e.providers||[],imports:e.imports||[]}}function vi(e){return uE(e,Ca)}function Lu(e){return vi(e)!==null}function uE(e,t){return e.hasOwnProperty(t)&&e[t]||null}function dE(e){let t=e?.[Ca]??null;return t||null}function bu(e){return e&&e.hasOwnProperty(ma)?e[ma]:null}var Ca=ie({\u0275prov:ie}),ma=ie({\u0275inj:ie}),x=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=N({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Vu(e){return e&&!!e.\u0275providers}var ju=ie({\u0275cmp:ie}),Bu=ie({\u0275dir:ie}),Uu=ie({\u0275pipe:ie}),$u=ie({\u0275mod:ie}),gi=ie({\u0275fac:ie}),vr=ie({__NG_ELEMENT_ID__:ie}),_g=ie({__NG_ENV_ID__:ie});function jn(e){return typeof e=="string"?e:e==null?"":String(e)}function va(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():jn(e)}var Hu=ie({ngErrorCode:ie}),bg=ie({ngErrorMessage:ie}),pi=ie({ngTokenPath:ie});function zu(e,t){return wg("",-200,t)}function Da(e,t){throw new S(-201,!1)}function fE(e,t){e[pi]??=[];let n=e[pi],r;typeof t=="object"&&"multi"in t&&t?.multi===!0?(Eg(t.provide,"Token with multi: true should have a provide property"),r=va(t.provide)):r=va(t),n[0]!==r&&e[pi].unshift(r)}function hE(e,t){let n=e[pi],r=e[Hu],o=e[bg]||e.message;return e.message=gE(o,r,n,t),e}function wg(e,t,n){let r=new S(t,e);return r[Hu]=t,r[bg]=e,n&&(r[pi]=n),r}function pE(e){return e[Hu]}function gE(e,t,n=[],r=null){let o="";n&&n.length>1&&(o=` Path: ${n.join(" -> ")}.`);let i=r?` Source: ${r}.`:"";return lo(t,`${e}${i}${o}`)}var wu;function Ig(){return wu}function lt(e){let t=wu;return wu=e,t}function Gu(e,t,n){let r=vi(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;Da(e,"Injector")}var mE={},fr=mE,Iu="__NG_DI_FLAG__",Mu=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=hr(n)||0;try{return this.injector.get(t,r&8?null:fr,r)}catch(o){if(qr(o))return o;throw o}}};function vE(e,t=0){let n=ks();if(n===void 0)throw new S(-203,!1);if(n===null)return Gu(e,void 0,t);{let r=yE(t),o=n.retrieve(e,r);if(qr(o)){if(r.optional)return null;throw o}return o}}function k(e,t=0){return(Ig()||vE)(Pe(e),t)}function _(e,t){return k(e,hr(t))}function hr(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function yE(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Su(e){let t=[];for(let n=0;n<e.length;n++){let r=Pe(e[n]);if(Array.isArray(r)){if(r.length===0)throw new S(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=_E(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(k(o,i))}else t.push(k(r))}return t}function Wu(e,t){return e[Iu]=t,e.prototype[Iu]=t,e}function _E(e){return e[Iu]}function pr(e,t){let n=e.hasOwnProperty(gi);return n?e[gi]:null}function Mg(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let o=e[r],i=t[r];if(n&&(o=n(o),i=n(i)),i!==o)return!1}return!0}function Sg(e){return e.flat(Number.POSITIVE_INFINITY)}function Ea(e,t){e.forEach(n=>Array.isArray(n)?Ea(n,t):t(n))}function qu(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function yi(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function xg(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function ba(e,t,n){let r=uo(e,t);return r>=0?e[r|1]=n:(r=~r,xg(e,r,t,n)),r}function wa(e,t){let n=uo(e,t);if(n>=0)return e[n|1]}function uo(e,t){return CE(e,t,1)}function CE(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var Bn={},qe=[],Un=new x(""),Zu=new x("",-1),Yu=new x(""),mi=class{get(t,n=fr){if(n===fr){let o=wg("",-201);throw o.name="\u0275NotFound",o}return n}};function Qu(e){return e[$u]||null}function $n(e){return e[ju]||null}function Ku(e){return e[Bu]||null}function Tg(e){return e[Uu]||null}function fo(e){return{\u0275providers:e}}function Ag(...e){return{\u0275providers:Xu(!0,e),\u0275fromNgModule:!0}}function Xu(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Ea(t,s=>{let a=s;ya(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Ng(o,i),n}function Ng(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Ju(o,i=>{t(i,r)})}}function ya(e,t,n,r){if(e=Pe(e),!e)return!1;let o=null,i=bu(e),s=!i&&$n(e);if(!i&&!s){let c=e.ngModule;if(i=bu(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)ya(l,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;try{Ea(i.imports,u=>{ya(u,t,n,r)&&(l||=[],l.push(u))})}finally{}l!==void 0&&Ng(l,t)}if(!a){let l=pr(o)||(()=>new o);t({provide:o,useFactory:l,deps:qe},o),t({provide:Yu,useValue:o,multi:!0},o),t({provide:Un,useValue:()=>k(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=e;Ju(c,u=>{t(u,l)})}}else return!1;return o!==e&&e.providers!==void 0}function Ju(e,t){for(let n of e)Vu(n)&&(n=n.\u0275providers),Array.isArray(n)?Ju(n,t):t(n)}var DE=ie({provide:String,useValue:ie});function Rg(e){return e!==null&&typeof e=="object"&&DE in e}function EE(e){return!!(e&&e.useExisting)}function bE(e){return!!(e&&e.useFactory)}function gr(e){return typeof e=="function"}function Og(e){return!!e.useClass}var _i=new x(""),ga={},Cg={},Eu;function Ci(){return Eu===void 0&&(Eu=new mi),Eu}var Ie=class{},mr=class extends Ie{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,Tu(t,s=>this.processProvider(s)),this.records.set(Zu,co(void 0,this)),o.has("environment")&&this.records.set(Ie,co(void 0,this));let i=this.records.get(_i);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Yu,qe,{self:!0}))}retrieve(t,n){let r=hr(n)||0;try{return this.get(t,fr,r)}catch(o){if(qr(o))return o;throw o}}destroy(){hi(this),this._destroyed=!0;let t=U(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(),U(t)}}onDestroy(t){return hi(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){hi(this);let n=Wt(this),r=lt(void 0),o;try{return t()}finally{Wt(n),lt(r)}}get(t,n=fr,r){if(hi(this),t.hasOwnProperty(_g))return t[_g](this);let o=hr(r),i,s=Wt(this),a=lt(void 0);try{if(!(o&4)){let l=this.records.get(t);if(l===void 0){let u=xE(t)&&vi(t);u&&this.injectableDefInScope(u)?l=co(xu(t),ga):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l,o)}let c=o&2?Ci():this.parent;return n=o&8&&n===fr?null:n,c.get(t,n)}catch(c){let l=pE(c);throw l===-200||l===-201?new S(l,null):c}finally{lt(a),Wt(s)}}resolveInjectorInitializers(){let t=U(null),n=Wt(this),r=lt(void 0),o;try{let i=this.get(Un,qe,{self:!0});for(let s of i)s()}finally{Wt(n),lt(r),U(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(mn(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=Pe(t);let n=gr(t)?t:Pe(t&&t.provide),r=IE(t);if(!gr(t)&&t.multi===!0){let o=this.records.get(n);o||(o=co(void 0,ga,!0),o.factory=()=>Su(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=U(null);try{if(n.value===Cg)throw zu(mn(t));return n.value===ga&&(n.value=Cg,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&SE(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{U(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=Pe(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function xu(e){let t=vi(e),n=t!==null?t.factory:pr(e);if(n!==null)return n;if(e instanceof x)throw new S(204,!1);if(e instanceof Function)return wE(e);throw new S(204,!1)}function wE(e){if(e.length>0)throw new S(204,!1);let n=dE(e);return n!==null?()=>n.factory(e):()=>new e}function IE(e){if(Rg(e))return co(void 0,e.useValue);{let t=ed(e);return co(t,ga)}}function ed(e,t,n){let r;if(gr(e)){let o=Pe(e);return pr(o)||xu(o)}else if(Rg(e))r=()=>Pe(e.useValue);else if(bE(e))r=()=>e.useFactory(...Su(e.deps||[]));else if(EE(e))r=(o,i)=>k(Pe(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=Pe(e&&(e.useClass||e.provide));if(ME(e))r=()=>new o(...Su(e.deps));else return pr(o)||xu(o)}return r}function hi(e){if(e.destroyed)throw new S(205,!1)}function co(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function ME(e){return!!e.deps}function SE(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function xE(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function Tu(e,t){for(let n of e)Array.isArray(n)?Tu(n,t):n&&Vu(n)?Tu(n.\u0275providers,t):t(n)}function Fe(e,t){let n;e instanceof mr?(hi(e),n=e):n=new Mu(e);let r,o=Wt(n),i=lt(void 0);try{return t()}finally{Wt(o),lt(i)}}function kg(){return Ig()!==void 0||ks()!=null}var Rt=0,F=1,L=2,Te=3,gt=4,mt=5,Di=6,ho=7,ze=8,yr=9,_n=10,ue=11,po=12,td=13,_r=14,vt=15,Hn=16,Cr=17,qt=18,Ei=19,nd=20,gn=21,Ia=22,bi=23,ut=24,Dr=25,Ze=26,Pg=1;var zn=7,wi=8,Er=9,Ye=10;function Zt(e){return Array.isArray(e)&&typeof e[Pg]=="object"}function Ot(e){return Array.isArray(e)&&e[Pg]===!0}function rd(e){return(e.flags&4)!==0}function Gn(e){return e.componentOffset>-1}function go(e){return(e.flags&1)===1}function Yt(e){return!!e.template}function mo(e){return(e[L]&512)!==0}function br(e){return(e[L]&256)===256}var od="svg",Fg="math";function yt(e){for(;Array.isArray(e);)e=e[Rt];return e}function id(e,t){return yt(t[e])}function Qt(e,t){return yt(t[e.index])}function Ma(e,t){return e.data[t]}function _t(e,t){let n=t[e];return Zt(n)?n:n[Rt]}function Lg(e){return(e[L]&4)===4}function Sa(e){return(e[L]&128)===128}function Vg(e){return Ot(e[Te])}function wr(e,t){return t==null?null:e[t]}function sd(e){e[Cr]=0}function ad(e){e[L]&1024||(e[L]|=1024,Sa(e)&&vo(e))}function jg(e,t){for(;e>0;)t=t[_r],e--;return t}function Ii(e){return!!(e[L]&9216||e[ut]?.dirty)}function xa(e){e[_n].changeDetectionScheduler?.notify(8),e[L]&64&&(e[L]|=1024),Ii(e)&&vo(e)}function vo(e){e[_n].changeDetectionScheduler?.notify(0);let t=Vn(e);for(;t!==null&&!(t[L]&8192||(t[L]|=8192,!Sa(t)));)t=Vn(t)}function cd(e,t){if(br(e))throw new S(911,!1);e[gn]===null&&(e[gn]=[]),e[gn].push(t)}function Bg(e,t){if(e[gn]===null)return;let n=e[gn].indexOf(t);n!==-1&&e[gn].splice(n,1)}function Vn(e){let t=e[Te];return Ot(t)?t[Te]:t}function ld(e){return e[ho]??=[]}function ud(e){return e.cleanup??=[]}function Ug(e,t,n,r){let o=ld(t);o.push(n),e.firstCreatePass&&ud(e).push(r,o.length-1)}var W={lFrame:Jg(null),bindingsEnabled:!0,skipHydrationRootTNode:null},Mi=(function(e){return e[e.Off=0]="Off",e[e.Exhaustive=1]="Exhaustive",e[e.OnlyDirtyViews=2]="OnlyDirtyViews",e})(Mi||{}),TE=0,Au=!1;function $g(){return W.lFrame.elementDepthCount}function Hg(){W.lFrame.elementDepthCount++}function dd(){W.lFrame.elementDepthCount--}function Ta(){return W.bindingsEnabled}function zg(){return W.skipHydrationRootTNode!==null}function fd(e){return W.skipHydrationRootTNode===e}function hd(){W.skipHydrationRootTNode=null}function ne(){return W.lFrame.lView}function Le(){return W.lFrame.tView}function ge(e){return W.lFrame.contextLView=e,e[ze]}function me(e){return W.lFrame.contextLView=null,e}function Ae(){let e=pd();for(;e!==null&&e.type===64;)e=e.parent;return e}function pd(){return W.lFrame.currentTNode}function Gg(){let e=W.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function yo(e,t){let n=W.lFrame;n.currentTNode=e,n.isParent=t}function gd(){return W.lFrame.isParent}function Wg(){W.lFrame.isParent=!1}function md(e){Fu("Must never be called in production mode"),TE=e}function vd(){return Au}function yd(e){let t=Au;return Au=e,t}function _d(){return W.lFrame.bindingIndex}function qg(e){return W.lFrame.bindingIndex=e}function Aa(){return W.lFrame.bindingIndex++}function Si(e){let t=W.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Zg(){return W.lFrame.inI18n}function Yg(e,t){let n=W.lFrame;n.bindingIndex=n.bindingRootIndex=e,Na(t)}function Qg(){return W.lFrame.currentDirectiveIndex}function Na(e){W.lFrame.currentDirectiveIndex=e}function Kg(e){let t=W.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Cd(){return W.lFrame.currentQueryIndex}function Ra(e){W.lFrame.currentQueryIndex=e}function AE(e){let t=e[F];return t.type===2?t.declTNode:t.type===1?e[mt]:null}function Dd(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=AE(i),o===null||(i=i[_r],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=W.lFrame=Xg();return r.currentTNode=t,r.lView=e,!0}function Oa(e){let t=Xg(),n=e[F];W.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Xg(){let e=W.lFrame,t=e===null?null:e.child;return t===null?Jg(e):t}function Jg(e){let t={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:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function em(){let e=W.lFrame;return W.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Ed=em;function ka(){let e=em();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function tm(e){return(W.lFrame.contextLView=jg(e,W.lFrame.contextLView))[ze]}function Kt(){return W.lFrame.selectedIndex}function Wn(e){W.lFrame.selectedIndex=e}function bd(){let e=W.lFrame;return Ma(e.tView,e.selectedIndex)}function kt(){W.lFrame.currentNamespace=od}function qn(){NE()}function NE(){W.lFrame.currentNamespace=null}function nm(){return W.lFrame.currentNamespace}var rm=!0;function Pa(){return rm}function xi(e){rm=e}var RE={elements:void 0};function Fa(){return RE}function Nu(e,t=null,n=null,r){let o=wd(e,t,n,r);return o.resolveInjectorInitializers(),o}function wd(e,t=null,n=null,r,o=new Set){let i=[n||qe,Ag(e)];return r=r||(typeof e=="object"?void 0:mn(e)),new mr(i,t||Ci(),r||null,o)}var pt=class e{static THROW_IF_NOT_FOUND=fr;static NULL=new mi;static create(t,n){if(Array.isArray(t))return Nu({name:""},n,t,"");{let r=t.name??"";return Nu({name:r},t.parent,t.providers,r)}}static \u0275prov=N({token:e,providedIn:"any",factory:()=>k(Zu)});static __NG_ELEMENT_ID__=-1},Me=new x(""),Xt=(()=>{class e{static __NG_ELEMENT_ID__=OE;static __NG_ENV_ID__=n=>n}return e})(),Ru=class extends Xt{_lView;constructor(t){super(),this._lView=t}get destroyed(){return br(this._lView)}onDestroy(t){let n=this._lView;return cd(n,t),()=>Bg(n,t)}};function OE(){return new Ru(ne())}var At=class{_console=console;handleError(t){this._console.error("ERROR",t)}},dt=new x("",{providedIn:"root",factory:()=>{let e=_(Ie),t;return n=>{e.destroyed&&!t?setTimeout(()=>{throw n}):(t??=e.get(At),t.handleError(n))}}}),om={provide:Un,useValue:()=>void _(At),multi:!0};function Id(e){return typeof e=="function"&&e[$e]!==void 0}function Cn(e,t){let[n,r,o]=su(e,t?.equal),i=n,s=i[$e];return i.set=r,i.update=o,i.asReadonly=im.bind(i),i}function im(){let e=this[$e];if(e.readonlyFn===void 0){let t=()=>this();t[$e]=e,e.readonlyFn=t}return e.readonlyFn}function Md(e){return Id(e)&&typeof e.set=="function"}var vn=class{},La=new x("",{providedIn:"root",factory:()=>!1});var Sd=new x(""),xd=new x("");var Va=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=kE}return e})();function kE(){return new Va(ne(),Ae())}var Jt=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new ke(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new Z(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),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(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=N({token:e,providedIn:"root",factory:()=>new e})}return e})(),Ti=(()=>{class e{internalPendingTasks=_(Jt);scheduler=_(vn);errorHandler=_(dt);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=N({token:e,providedIn:"root",factory:()=>new e})}return e})();function Ai(...e){}var Td=(()=>{class e{static \u0275prov=N({token:e,providedIn:"root",factory:()=>new Ou})}return e})(),Ou=class{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t)}schedule(t){t.dirty&&this.dirtyEffectCount++}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),t.dirty&&this.dirtyEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||r.add(t)}flush(){for(;this.dirtyEffectCount>0;){let t=!1;for(let[n,r]of this.queues)n===null?t||=this.flushQueue(r):t||=n.run(()=>this.flushQueue(r));t||(this.dirtyEffectCount=0)}}flushQueue(t){let n=!1;for(let r of t)r.dirty&&(this.dirtyEffectCount--,n=!0,r.run());return n}};function Io(e){return{toString:e}.toString()}var ja="__parameters__";function UE(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function Pm(e,t,n){return Io(()=>{let r=UE(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(c,l,u){let d=c.hasOwnProperty(ja)?c[ja]:Object.defineProperty(c,ja,{value:[]})[ja];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),c}}return o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var Fm=Wu(Pm("Optional"),8);var Lm=Wu(Pm("SkipSelf"),4);function $E(e){return typeof e=="function"}var Wa=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Vm(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var nn=(()=>{let e=()=>jm;return e.ngInherit=!0,e})();function jm(e){return e.type.prototype.ngOnChanges&&(e.setInput=zE),HE}function HE(){let e=Um(this),t=e?.current;if(t){let n=e.previous;if(n===Bn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function zE(e,t,n,r,o){let i=this.declaredInputs[r],s=Um(e)||GE(e,{previous:Bn,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new Wa(l&&l.currentValue,n,c===Bn),Vm(e,t,o,n)}var Bm="__ngSimpleChanges__";function Um(e){return e[Bm]||null}function GE(e,t){return e[Bm]=t}var sm=[];var ae=function(e,t=null,n){for(let r=0;r<sm.length;r++){let o=sm[r];o(e,t,n)}};function WE(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=jm(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function $m(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:l,ngOnDestroy:u}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),l&&((e.viewHooks??=[]).push(n,l),(e.viewCheckHooks??=[]).push(n,l)),u!=null&&(e.destroyHooks??=[]).push(n,u)}}function Ua(e,t,n){Hm(e,t,3,n)}function $a(e,t,n,r){(e[L]&3)===n&&Hm(e,t,n,r)}function Ad(e,t){let n=e[L];(n&3)===t&&(n&=16383,n+=1,e[L]=n)}function Hm(e,t,n,r){let o=r!==void 0?e[Cr]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[Cr]+=65536),(a<i||i==-1)&&(qE(e,n,t,c),e[Cr]=(e[Cr]&4294901760)+c+2),c++}function am(e,t){ae(4,e,t);let n=U(null);try{t.call(e)}finally{U(n),ae(5,e,t)}}function qE(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[L]>>14<e[Cr]>>16&&(e[L]&3)===t&&(e[L]+=16384,am(a,i)):am(a,i)}var Co=-1,Mr=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,o){this.factory=t,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r}};function ZE(e){return(e.flags&8)!==0}function YE(e){return(e.flags&16)!==0}function QE(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{let i=o,s=n[++r];XE(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function KE(e){return e===3||e===4||e===6}function XE(e){return e.charCodeAt(0)===64}function Do(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?cm(e,n,o,null,t[++r]):cm(e,n,o,null,null))}}return e}function cm(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),o!==null&&e.splice(i++,0,o)}function zm(e){return e!==Co}function qa(e){return e&32767}function JE(e){return e>>16}function Za(e,t){let n=JE(e),r=t;for(;n>0;)r=r[_r],n--;return r}var jd=!0;function lm(e){let t=jd;return jd=e,t}var eb=256,Gm=eb-1,Wm=5,tb=0,en={};function nb(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(vr)&&(r=n[vr]),r==null&&(r=n[vr]=tb++);let o=r&Gm,i=1<<o;t.data[e+(o>>Wm)]|=i}function Ya(e,t){let n=qm(e,t);if(n!==-1)return n;let r=t[F];r.firstCreatePass&&(e.injectorIndex=t.length,Nd(r.data,e),Nd(t,null),Nd(r.blueprint,null));let o=hf(e,t),i=e.injectorIndex;if(zm(o)){let s=qa(o),a=Za(o,t),c=a[F].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|c[s+l]}return t[i+8]=o,i}function Nd(e,t){e.push(0,0,0,0,0,0,0,0,t)}function qm(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function hf(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=Xm(o),r===null)return Co;if(n++,o=o[_r],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Co}function Bd(e,t,n){nb(e,t,n)}function Zm(e,t,n){if(n&8||e!==void 0)return e;Da(t,"NodeInjector")}function Ym(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[yr],i=lt(void 0);try{return o?o.get(t,r,n&8):Gu(t,r,n&8)}finally{lt(i)}}return Zm(r,t,n)}function Qm(e,t,n,r=0,o){if(e!==null){if(t[L]&2048&&!(r&2)){let s=sb(e,t,n,r,en);if(s!==en)return s}let i=Km(e,t,n,r,en);if(i!==en)return i}return Ym(t,n,r,o)}function Km(e,t,n,r,o){let i=ob(n);if(typeof i=="function"){if(!Dd(t,e,r))return r&1?Zm(o,n,r):Ym(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))Da(n);else return s}finally{Ed()}}else if(typeof i=="number"){let s=null,a=qm(e,t),c=Co,l=r&1?t[vt][mt]:null;for((a===-1||r&4)&&(c=a===-1?hf(e,t):t[a+8],c===Co||!dm(r,!1)?a=-1:(s=t[F],a=qa(c),t=Za(c,t)));a!==-1;){let u=t[F];if(um(i,a,u.data)){let d=rb(a,t,n,s,r,l);if(d!==en)return d}c=t[a+8],c!==Co&&dm(r,t[F].data[a+8]===l)&&um(i,a,t)?(s=u,a=qa(c),t=Za(c,t)):a=-1}}return o}function rb(e,t,n,r,o,i){let s=t[F],a=s.data[e+8],c=r==null?Gn(a)&&jd:r!=s&&(a.type&3)!==0,l=o&1&&i===a,u=Ha(a,s,n,c,l);return u!==null?Oi(t,s,u,a,o):en}function Ha(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,l=e.directiveEnd,u=i>>20,d=r?a:a+u,h=o?a+u:l;for(let f=d;f<h;f++){let v=s[f];if(f<c&&n===v||f>=c&&v.type===n)return f}if(o){let f=s[c];if(f&&Yt(f)&&f.type===n)return c}return null}function Oi(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof Mr){let a=i;if(a.resolving){let f=va(s[n]);throw zu(f)}let c=lm(a.canSeeViewProviders);a.resolving=!0;let l=s[n].type||s[n],u,d=a.injectImpl?lt(a.injectImpl):null,h=Dd(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&WE(n,s[n],t)}finally{d!==null&<(d),lm(c),a.resolving=!1,Ed()}}return i}function ob(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(vr)?e[vr]:void 0;return typeof t=="number"?t>=0?t&Gm:ib:t}function um(e,t,n){let r=1<<e;return!!(n[t+(e>>Wm)]&r)}function dm(e,t){return!(e&2)&&!(e&1&&t)}var Ir=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Qm(this._tNode,this._lView,t,hr(r),n)}};function ib(){return new Ir(Ae(),ne())}function Kn(e){return Io(()=>{let t=e.prototype.constructor,n=t[gi]||Ud(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[gi]||Ud(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Ud(e){return Pu(e)?()=>{let t=Ud(Pe(e));return t&&t()}:pr(e)}function sb(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[L]&2048&&!mo(s);){let a=Km(i,s,n,r|2,en);if(a!==en)return a;let c=i.parent;if(!c){let l=s[nd];if(l){let u=l.get(n,en,r);if(u!==en)return u}c=Xm(s),s=s[_r]}i=c}return o}function Xm(e){let t=e[F],n=t.type;return n===2?t.declTNode:n===1?e[mt]:null}function ab(){return Mo(Ae(),ne())}function Mo(e,t){return new Lt(Qt(e,t))}var Lt=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=ab}return e})();function cb(e){return e instanceof Lt?e.nativeElement:e}function lb(){return this._results[Symbol.iterator]()}var Qa=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 Ce}constructor(t=!1){this._emitDistinctChangesOnly=t}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=Sg(t);(this._changesDetected=!Mg(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(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=lb};function Jm(e){return(e.flags&128)===128}var pf=(function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e})(pf||{}),ev=new Map,ub=0;function db(){return ub++}function fb(e){ev.set(e[Ei],e)}function $d(e){ev.delete(e[Ei])}var fm="__ngContext__";function Eo(e,t){Zt(t)?(e[fm]=t[Ei],fb(t)):e[fm]=t}function tv(e){return rv(e[po])}function nv(e){return rv(e[gt])}function rv(e){for(;e!==null&&!Ot(e);)e=e[gt];return e}var Hd;function gf(e){Hd=e}function ov(){if(Hd!==void 0)return Hd;if(typeof document<"u")return document;throw new S(210,!1)}var lc=new x("",{providedIn:"root",factory:()=>hb}),hb="ng",uc=new x(""),So=new x("",{providedIn:"platform",factory:()=>"unknown"});var dc=new x("",{providedIn:"root",factory:()=>ov().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var pb="h",gb="b";var iv=!1,sv=new x("",{providedIn:"root",factory:()=>iv});var mb=(e,t,n,r)=>{};function vb(e,t,n,r){mb(e,t,n,r)}function mf(e){return(e.flags&32)===32}var yb=()=>null;function av(e,t,n=!1){return yb(e,t,n)}function cv(e,t){let n=e.contentQueries;if(n!==null){let r=U(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];Ra(i),a.contentQueries(2,t[s],s)}}}finally{U(r)}}}function zd(e,t,n){Ra(0);let r=U(null);try{t(e,n)}finally{U(r)}}function vf(e,t,n){if(rd(t)){let r=U(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s)}}}finally{U(r)}}}var Dn=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e})(Dn||{});var Gd=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ku})`}};function yf(e){return e instanceof Gd?e.changingThisBreaksApplicationSecurity:e}var _b=/^>|^->|<!--|-->|--!>|<!-$/g,Cb=/(<|>)/g,Db="\u200B$1\u200B";function Eb(e){return e.replace(_b,t=>t.replace(Cb,Db))}function lv(e){return e instanceof Function?e():e}function bb(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}var uv="ng-template";function wb(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&bb(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(_f(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function _f(e){return e.type===4&&e.value!==uv}function Ib(e,t,n){let r=e.type===4&&!n?uv:e.value;return t===r}function Mb(e,t,n){let r=4,o=e.attrs,i=o!==null?Tb(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!Pt(r)&&!Pt(c))return!1;if(s&&Pt(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!Ib(e,c,n)||c===""&&t.length===1){if(Pt(r))return!1;s=!0}}else if(r&8){if(o===null||!wb(e,o,c,n)){if(Pt(r))return!1;s=!0}}else{let l=t[++a],u=Sb(c,o,_f(e),n);if(u===-1){if(Pt(r))return!1;s=!0;continue}if(l!==""){let d;if(u>i?d="":d=o[u+1].toLowerCase(),r&2&&l!==d){if(Pt(r))return!1;s=!0}}}}return Pt(r)||s}function Pt(e){return(e&1)===0}function Sb(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return Ab(t,e)}function xb(e,t,n=!1){for(let r=0;r<t.length;r++)if(Mb(e,t[r],n))return!0;return!1}function Tb(e){for(let t=0;t<e.length;t++){let n=e[t];if(KE(n))return t}return e.length}function Ab(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function hm(e,t){return e?":not("+t.trim()+")":t}function Nb(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!Pt(s)&&(t+=hm(i,o),o=""),r=s,i=i||!Pt(r);n++}return o!==""&&(t+=hm(i,o)),t}function Rb(e){return e.map(Nb).join(",")}function Ob(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else{if(!Pt(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var rt={};function kb(e,t){return e.createText(t)}function Pb(e,t,n){e.setValue(t,n)}function Fb(e,t){return e.createComment(Eb(t))}function dv(e,t,n){return e.createElement(t,n)}function Ka(e,t,n,r,o){e.insertBefore(t,n,r,o)}function fv(e,t,n){e.appendChild(t,n)}function pm(e,t,n,r,o){r!==null?Ka(e,t,n,r,o):fv(e,t,n)}function Lb(e,t,n){e.removeChild(null,t,n)}function Vb(e,t,n){e.setAttribute(t,"style",n)}function jb(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function hv(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&QE(e,t,r),o!==null&&jb(e,t,o),i!==null&&Vb(e,t,i)}function Cf(e,t,n,r,o,i,s,a,c,l,u){let d=Ze+r,h=d+o,f=Bb(d,h),v=typeof l=="function"?l():l;return f[F]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,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 i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:v,incompleteFirstPass:!1,ssrId:u}}function Bb(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:rt);return n}function Ub(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Cf(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Df(e,t,n,r,o,i,s,a,c,l,u){let d=t.blueprint.slice();return d[Rt]=o,d[L]=r|4|128|8|64|1024,(l!==null||e&&e[L]&2048)&&(d[L]|=2048),sd(d),d[Te]=d[_r]=e,d[ze]=n,d[_n]=s||e&&e[_n],d[ue]=a||e&&e[ue],d[yr]=c||e&&e[yr]||null,d[mt]=i,d[Ei]=db(),d[Di]=u,d[nd]=l,d[vt]=t.type==2?e[vt]:d,d}function $b(e,t,n){let r=Qt(t,e),o=Ub(n),i=e[_n].rendererFactory,s=Ef(e,Df(e,o,null,pv(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function pv(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function gv(e,t,n,r){if(n===0)return-1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function Ef(e,t){return e[po]?e[td][gt]=t:e[po]=t,e[td]=t,t}function C(e=1){mv(Le(),ne(),Kt()+e,!1)}function mv(e,t,n,r){if(!r)if((t[L]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Ua(t,i,n)}else{let i=e.preOrderHooks;i!==null&&$a(t,i,0,n)}Wn(n)}var fc=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(fc||{});function Wd(e,t,n,r){let o=U(null);try{let[i,s,a]=e.inputs[n],c=null;(s&fc.SignalBased)!==0&&(c=t[i][$e]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):Vm(t,c,i,r)}finally{U(o)}}var tn=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(tn||{}),Hb;function bf(e,t){return Hb(e,t)}function _o(e,t,n,r,o){if(r!=null){let i,s=!1;Ot(r)?i=r:Zt(r)&&(s=!0,r=r[Rt]);let a=yt(r);e===0&&n!==null?o==null?fv(t,n,a):Ka(t,n,a,o||null,!0):e===1&&n!==null?Ka(t,n,a,o||null,!0):e===2?Lb(t,a,s):e===3&&t.destroyNode(a),i!=null&&tw(t,e,i,n,o)}}function zb(e,t){vv(e,t),t[Rt]=null,t[mt]=null}function Gb(e,t,n,r,o,i){r[Rt]=o,r[mt]=t,hc(e,r,n,1,o,i)}function vv(e,t){t[_n].changeDetectionScheduler?.notify(9),hc(e,t,t[ue],2,null,null)}function Wb(e){let t=e[po];if(!t)return Rd(e[F],e);for(;t;){let n=null;if(Zt(t))n=t[po];else{let r=t[Ye];r&&(n=r)}if(!n){for(;t&&!t[gt]&&t!==e;)Zt(t)&&Rd(t[F],t),t=t[Te];t===null&&(t=e),Zt(t)&&Rd(t[F],t),n=t&&t[gt]}t=n}}function wf(e,t){let n=e[Er],r=n.indexOf(t);n.splice(r,1)}function yv(e,t){if(br(t))return;let n=t[ue];n.destroyNode&&hc(e,t,n,3,null,null),Wb(t)}function Rd(e,t){if(br(t))return;let n=U(null);try{t[L]&=-129,t[L]|=256,t[ut]&&li(t[ut]),Zb(e,t),qb(e,t),t[F].type===1&&t[ue].destroy();let r=t[Hn];if(r!==null&&Ot(t[Te])){r!==t[Te]&&wf(r,t);let o=t[qt];o!==null&&o.detachView(e)}$d(t)}finally{U(n)}}function qb(e,t){let n=e.cleanup,r=t[ho];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&&(t[ho]=null);let o=t[gn];if(o!==null){t[gn]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[bi];if(i!==null){t[bi]=null;for(let s of i)s.destroy()}}function Zb(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof Mr)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];ae(4,a,c);try{c.call(a)}finally{ae(5,a,c)}}else{ae(4,o,i);try{i.call(o)}finally{ae(5,o,i)}}}}}function Yb(e,t,n){return Qb(e,t.parent,n)}function Qb(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Rt];if(Gn(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===Dn.None||o===Dn.Emulated)return null}return Qt(r,n)}function Kb(e,t,n){return Jb(e,t,n)}function Xb(e,t,n){return e.type&40?Qt(e,n):null}var Jb=Xb,gm;function If(e,t,n,r){let o=Yb(e,r,t),i=t[ue],s=r.parent||t[mt],a=Kb(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)pm(i,o,n[c],a,!1);else pm(i,o,n,a,!1);gm!==void 0&&gm(i,r,t,n,o)}function Ni(e,t){if(t!==null){let n=t.type;if(n&3)return Qt(t,e);if(n&4)return qd(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return Ni(e,r);{let o=e[t.index];return Ot(o)?qd(-1,o):yt(o)}}else{if(n&128)return Ni(e,t.next);if(n&32)return bf(t,e)()||yt(e[t.index]);{let r=_v(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=Vn(e[vt]);return Ni(o,r)}else return Ni(e,t.next)}}}return null}function _v(e,t){if(t!==null){let r=e[vt][mt],o=t.projection;return r.projection[o]}return null}function qd(e,t){let n=Ye+e+1;if(n<t.length){let r=t[n],o=r[F].firstChild;if(o!==null)return Ni(r,o)}return t[zn]}function Mf(e,t,n,r,o,i,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],c=n.type;if(s&&t===0&&(a&&Eo(yt(a),r),n.flags|=2),!mf(n))if(c&8)Mf(e,t,n.child,r,o,i,!1),_o(t,e,o,a,i);else if(c&32){let l=bf(n,r),u;for(;u=l();)_o(t,e,o,u,i);_o(t,e,o,a,i)}else c&16?ew(e,t,r,n,o,i):_o(t,e,o,a,i);n=s?n.projectionNext:n.next}}function hc(e,t,n,r,o,i){Mf(n,r,e.firstChild,t,o,i,!1)}function ew(e,t,n,r,o,i){let s=n[vt],c=s[mt].projection[r.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++){let u=c[l];_o(t,e,o,u,i)}else{let l=c,u=s[Te];Jm(r)&&(l.flags|=128),Mf(e,t,l,u,o,i,!0)}}function tw(e,t,n,r,o){let i=n[zn],s=yt(n);i!==s&&_o(t,e,r,i,o);for(let a=Ye;a<n.length;a++){let c=n[a];hc(c[F],c,e,t,r,i)}}function nw(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:tn.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=tn.Important),e.setStyle(n,r,o,i))}}function Cv(e,t,n,r,o){let i=Kt(),s=r&2;try{Wn(-1),s&&t.length>Ze&&mv(e,t,Ze,!1),ae(s?2:0,o,n),n(r,o)}finally{Wn(i),ae(s?3:1,o,n)}}function pc(e,t,n){lw(e,t,n),(n.flags&64)===64&&uw(e,t,n)}function gc(e,t,n=Qt){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a}}}function rw(e,t,n,r){let i=r.get(sv,iv)||n===Dn.ShadowDom,s=e.selectRootElement(t,i);return ow(s),s}function ow(e){iw(e)}var iw=()=>null;function sw(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function Dv(e,t,n,r,o,i){let s=t[F];if(Af(e,s,t,n,r)){Gn(e)&&cw(t,e.index);return}e.type&3&&(n=sw(n)),aw(e,t,n,r,o,i)}function aw(e,t,n,r,o,i){if(e.type&3){let s=Qt(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r)}else e.type&12}function cw(e,t){let n=_t(t,e);n[L]&16||(n[L]|=64)}function lw(e,t,n){let r=n.directiveStart,o=n.directiveEnd;Gn(n)&&$b(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Ya(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=Oi(t,e,s,n);if(Eo(c,t),i!==null&&fw(t,s-r,c,a,n,i),Yt(a)){let l=_t(n.index,t);l[ze]=Oi(t,e,s,n)}}}function uw(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=Qg();try{Wn(i);for(let a=r;a<o;a++){let c=e.data[a],l=t[a];Na(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&dw(c,l)}}finally{Wn(-1),Na(s)}}function dw(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function Sf(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];xb(t,i.selectors,!1)&&(r??=[],Yt(i)?r.unshift(i):r.push(i))}return r}function fw(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],l=s[a+1];Wd(r,n,c,l)}}function xf(e,t,n,r,o){let i=Ze+n,s=t[F],a=o(s,t,e,r,n);t[i]=a,yo(e,!0);let c=e.type===2;return c?(hv(t[ue],a,e),($g()===0||go(e))&&Eo(a,t),Hg()):Eo(a,t),Pa()&&(!c||!mf(e))&&If(s,t,a,e),e}function Tf(e){let t=e;return gd()?Wg():(t=t.parent,yo(t,!1)),t}function hw(e,t){let n=e[yr];if(!n)return;n.get(dt,null)?.(t)}function Af(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let l=s[c],u=s[c+1],d=t.data[l];Wd(d,n[l],u,o),a=!0}if(i)for(let c of i){let l=n[c],u=t.data[c];Wd(u,l,r,o),a=!0}return a}function pw(e,t){let n=_t(t,e),r=n[F];gw(r,n);let o=n[Rt];o!==null&&n[Di]===null&&(n[Di]=av(o,n[yr])),ae(18),Nf(r,n,n[ze]),ae(19,n[ze])}function gw(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function Nf(e,t,n){Oa(t);try{let r=e.viewQuery;r!==null&&zd(1,r,n);let o=e.template;o!==null&&Cv(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[qt]?.finishViewCreation(e),e.staticContentQueries&&cv(e,t),e.staticViewQueries&&zd(2,e.viewQuery,n);let i=e.components;i!==null&&mw(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[L]&=-5,ka()}}function mw(e,t){for(let n=0;n<t.length;n++)pw(e,t[n])}function vw(e,t,n,r){let o=U(null);try{let i=t.tView,a=e[L]&4096?4096:16,c=Df(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=e[t.index];c[Hn]=l;let u=e[qt];return u!==null&&(c[qt]=u.createEmbeddedView(i)),Nf(i,c,n),c}finally{U(o)}}function mm(e,t){return!t||t.firstChild===null||Jm(e)}var vm=!1,yw=new x("");function ki(e,t,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(yt(i)),Ot(i)&&Ev(i,r);let s=n.type;if(s&8)ki(e,t,n.child,r);else if(s&32){let a=bf(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=_v(t,n);if(Array.isArray(a))r.push(...a);else{let c=Vn(t[vt]);ki(c[F],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function Ev(e,t){for(let n=Ye;n<e.length;n++){let r=e[n],o=r[F].firstChild;o!==null&&ki(r[F],r,o,t)}e[zn]!==e[Rt]&&t.push(e[zn])}function bv(e){if(e[Dr]!==null){for(let t of e[Dr])t.impl.addSequence(t);e[Dr].length=0}}var wv=[];function _w(e){return e[ut]??Cw(e)}function Cw(e){let t=wv.pop()??Object.create(Ew);return t.lView=e,t}function Dw(e){e.lView[ut]!==e&&(e.lView=null,wv.push(e))}var Ew=Q(M({},ar),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{vo(e.lView)},consumerOnSignalRead(){this.lView[ut]=this}});function bw(e){let t=e[ut]??Object.create(ww);return t.lView=e,t}var ww=Q(M({},ar),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=Vn(e.lView);for(;t&&!Iv(t[F]);)t=Vn(t);t&&ad(t)},consumerOnSignalRead(){this.lView[ut]=this}});function Iv(e){return e.type!==2}function Mv(e){if(e[bi]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[bi])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[L]&8192)}}var Iw=100;function Rf(e,t=0){let r=e[_n].rendererFactory,o=!1;o||r.begin?.();try{Mw(e,t)}finally{o||r.end?.()}}function Mw(e,t){let n=vd();try{yd(!0),Zd(e,t);let r=0;for(;Ii(e);){if(r===Iw)throw new S(103,!1);r++,Zd(e,1)}}finally{yd(n)}}function Sv(e,t){md(t?Mi.Exhaustive:Mi.OnlyDirtyViews);try{Rf(e)}finally{md(Mi.Off)}}function Sw(e,t,n,r){if(br(t))return;let o=t[L],i=!1,s=!1;Oa(t);let a=!0,c=null,l=null;i||(Iv(e)?(l=_w(t),c=cr(l)):Bs()===null?(a=!1,l=bw(t),c=cr(l)):t[ut]&&(li(t[ut]),t[ut]=null));try{sd(t),qg(e.bindingStartIndex),n!==null&&Cv(e,t,n,2,r);let u=(o&3)===3;if(!i)if(u){let f=e.preOrderCheckHooks;f!==null&&Ua(t,f,null)}else{let f=e.preOrderHooks;f!==null&&$a(t,f,0,null),Ad(t,0)}if(s||xw(t),Mv(t),xv(t,0),e.contentQueries!==null&&cv(e,t),!i)if(u){let f=e.contentCheckHooks;f!==null&&Ua(t,f)}else{let f=e.contentHooks;f!==null&&$a(t,f,1),Ad(t,1)}Aw(e,t);let d=e.components;d!==null&&Av(t,d,0);let h=e.viewQuery;if(h!==null&&zd(2,h,r),!i)if(u){let f=e.viewCheckHooks;f!==null&&Ua(t,f)}else{let f=e.viewHooks;f!==null&&$a(t,f,2),Ad(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Ia]){for(let f of t[Ia])f();t[Ia]=null}i||(bv(t),t[L]&=-73)}catch(u){throw i||vo(t),u}finally{l!==null&&(Yr(l,c),a&&Dw(l)),ka()}}function xv(e,t){for(let n=tv(e);n!==null;n=nv(n))for(let r=Ye;r<n.length;r++){let o=n[r];Tv(o,t)}}function xw(e){for(let t=tv(e);t!==null;t=nv(t)){if(!(t[L]&2))continue;let n=t[Er];for(let r=0;r<n.length;r++){let o=n[r];ad(o)}}}function Tw(e,t,n){ae(18);let r=_t(t,e);Tv(r,n),ae(19,r[ze])}function Tv(e,t){Sa(e)&&Zd(e,t)}function Zd(e,t){let r=e[F],o=e[L],i=e[ut],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&ci(i)),s||=!1,i&&(i.dirty=!1),e[L]&=-9217,s)Sw(r,e,r.template,e[ze]);else if(o&8192){let a=U(null);try{Mv(e),xv(e,1);let c=r.components;c!==null&&Av(e,c,1),bv(e)}finally{U(a)}}}function Av(e,t,n){for(let r=0;r<t.length;r++)Tw(e,t[r],n)}function Aw(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)Wn(~o);else{let i=o,s=n[++r],a=n[++r];Yg(s,i);let c=t[i];ae(24,c),a(2,c),ae(25,c)}}}finally{Wn(-1)}}function Of(e,t){let n=vd()?64:1088;for(e[_n].changeDetectionScheduler?.notify(t);e;){e[L]|=n;let r=Vn(e);if(mo(e)&&!r)return e;e=r}return null}function Nv(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function Nw(e,t,n,r=!0){let o=t[F];if(Rw(o,t,e,n),r){let s=qd(n,e),a=t[ue],c=a.parentNode(e[zn]);c!==null&&Gb(o,e[mt],a,t,c,s)}let i=t[Di];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function Yd(e,t){if(e.length<=Ye)return;let n=Ye+t,r=e[n];if(r){let o=r[Hn];o!==null&&o!==e&&wf(o,r),t>0&&(e[n-1][gt]=r[gt]);let i=yi(e,Ye+t);zb(r[F],r);let s=i[qt];s!==null&&s.detachView(i[F]),r[Te]=null,r[gt]=null,r[L]&=-129}return r}function Rw(e,t,n,r){let o=Ye+r,i=n.length;r>0&&(n[o-1][gt]=t),r<i-Ye?(t[gt]=n[o],qu(n,Ye+r,t)):(n.push(t),t[gt]=null),t[Te]=n;let s=t[Hn];s!==null&&n!==s&&Rv(s,t);let a=t[qt];a!==null&&a.insertView(e),xa(t),t[L]|=128}function Rv(e,t){let n=e[Er],r=t[Te];if(Zt(r))e[L]|=2;else{let o=r[Te][vt];t[vt]!==o&&(e[L]|=2)}n===null?e[Er]=[t]:n.push(t)}var Zn=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let t=this._lView,n=t[F];return ki(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[ze]}set context(t){this._lView[ze]=t}get destroyed(){return br(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[Te];if(Ot(t)){let n=t[wi],r=n?n.indexOf(this):-1;r>-1&&(Yd(t,r),yi(n,r))}this._attachedToViewContainer=!1}yv(this._lView[F],this._lView)}onDestroy(t){cd(this._lView,t)}markForCheck(){Of(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[L]&=-129}reattach(){xa(this._lView),this._lView[L]|=128}detectChanges(){this._lView[L]|=1024,Rf(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=mo(this._lView),n=this._lView[Hn];n!==null&&!t&&wf(n,this._lView),vv(this._lView[F],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new S(902,!1);this._appRef=t;let n=mo(this._lView),r=this._lView[Hn];r!==null&&!n&&Rv(r,this._lView),xa(this._lView)}};var Yn=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=Ow;constructor(n,r,o){this._declarationLView=n,this._declarationTContainer=r,this.elementRef=o}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,r){return this.createEmbeddedViewImpl(n,r)}createEmbeddedViewImpl(n,r,o){let i=vw(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new Zn(i)}}return e})();function Ow(){return kf(Ae(),ne())}function kf(e,t){return e.type&4?new Yn(t,e,Mo(e,t)):null}function mc(e,t,n,r,o){let i=e.data[t];if(i===null)i=kw(e,t,n,r,o),Zg()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=Gg();i.injectorIndex=s===null?-1:s.injectorIndex}return yo(i,!0),i}function kw(e,t,n,r,o){let i=pd(),s=gd(),a=s?i:i&&i.parent,c=e.data[t]=Fw(e,a,n,t,r,o);return Pw(e,c,i,s),c}function Pw(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function Fw(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return zg()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,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:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var g2=new RegExp(`^(\\d+)*(${gb}|${pb})*(.*)`);var Lw=()=>null;function ym(e,t){return Lw(e,t)}var Ov=class{},vc=class{},Qd=class{resolveComponentFactory(t){throw new S(917,!1)}},Li=class{static NULL=new Qd},Sr=class{},Ar=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>Vw()}return e})();function Vw(){let e=ne(),t=Ae(),n=_t(t.index,e);return(Zt(n)?n:e)[ue]}var kv=(()=>{class e{static \u0275prov=N({token:e,providedIn:"root",factory:()=>null})}return e})();var za={},Kd=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){let o=this.injector.get(t,za,r);return o!==za||n===za?o:this.parentInjector.get(t,n,r)}};function Xa(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=_a(o,a);else if(i==2){let c=a,l=t[++s];r=_a(r,c+": "+l+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function oe(e,t=0){let n=ne();if(n===null)return k(e,t);let r=Ae();return Qm(r,n,Pe(e),t)}function Pv(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a=s,c=null,l=null;for(let u of s)if(u.resolveHostDirectives!==null){[a,c,l]=u.resolveHostDirectives(s);break}Uw(e,t,n,a,i,c,l)}i!==null&&r!==null&&jw(n,r,i)}function jw(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new S(-301,!1);r.push(t[o],i)}}function Bw(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function Uw(e,t,n,r,o,i,s){let a=r.length,c=!1;for(let h=0;h<a;h++){let f=r[h];!c&&Yt(f)&&(c=!0,Bw(e,n,h)),Bd(Ya(n,t),e,f.type)}qw(n,e.data.length,a);for(let h=0;h<a;h++){let f=r[h];f.providersResolver&&f.providersResolver(f)}let l=!1,u=!1,d=gv(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let h=0;h<a;h++){let f=r[h];if(n.mergedAttrs=Do(n.mergedAttrs,f.hostAttrs),Hw(e,n,t,d,f),Ww(d,f,o),s!==null&&s.has(f)){let[m,g]=s.get(f);n.directiveToIndex.set(f.type,[d,m+n.directiveStart,g+n.directiveStart])}else(i===null||!i.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 v=f.type.prototype;!l&&(v.ngOnChanges||v.ngOnInit||v.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),l=!0),!u&&(v.ngOnChanges||v.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),u=!0),d++}$w(e,n,i)}function $w(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))_m(0,t,o,r),_m(1,t,o,r),Dm(t,r,!1);else{let i=n.get(o);Cm(0,t,i,r),Cm(1,t,i,r),Dm(t,r,!0)}}}function _m(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),Fv(t,i)}}function Cm(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),Fv(t,s)}}function Fv(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function Dm(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||_f(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&o.hasOwnProperty(c)){let l=o[c];for(let u of l)if(u===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let l=i[c];for(let u=0;u<l.length;u+=2)if(l[u]===t){s??=[],s.push(l[u+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function Hw(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=pr(o.type,!0)),s=new Mr(i,Yt(o),oe,null);e.blueprint[r]=s,n[r]=s,zw(e,t,r,gv(e,n,o.hostVars,rt),o)}function zw(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;Gw(s)!=a&&s.push(a),s.push(n,r,i)}}function Gw(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function Ww(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Yt(t)&&(n[""]=e)}}function qw(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Pf(e,t,n,r,o,i,s,a){let c=t[F],l=c.consts,u=wr(l,s),d=mc(c,e,n,r,u);return i&&Pv(c,t,d,wr(l,a),o),d.mergedAttrs=Do(d.mergedAttrs,d.attrs),d.attrs!==null&&Xa(d,d.attrs,!1),d.mergedAttrs!==null&&Xa(d,d.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,d),d}function Ff(e,t){$m(e,t),rd(t)&&e.queries.elementEnd(t)}function Zw(e,t,n,r,o,i){let s=t.consts,a=wr(s,o),c=mc(t,e,n,r,a);if(c.mergedAttrs=Do(c.mergedAttrs,c.attrs),i!=null){let l=wr(s,i);c.localNames=[];for(let u=0;u<l.length;u+=2)c.localNames.push(l[u],-1)}return c.attrs!==null&&Xa(c,c.attrs,!1),c.mergedAttrs!==null&&Xa(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function Lf(e){return Vv(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function Lv(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{let n=e[Symbol.iterator](),r;for(;!(r=n.next()).done;)t(r.value)}}function Vv(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function Qn(e,t,n){if(n===rt)return!1;let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function jv(e,t,n,r){let o=Qn(e,t,n);return Qn(e,t+1,r)||o}function Yw(e,t,n,r,o){let i=jv(e,t,n,r);return Qn(e,t+2,o)||i}function Ga(e,t,n){return function r(o){let i=Gn(e)?_t(e.index,t):t;Of(i,5);let s=t[ze],a=Em(t,s,n,o),c=r.__ngNextListenerFn__;for(;c;)a=Em(t,s,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function Em(e,t,n,r){let o=U(null);try{return ae(6,t,n),n(r)!==!1}catch(i){return hw(e,i),!1}finally{ae(7,t,n),U(o)}}function Bv(e,t,n,r,o,i,s,a){let c=go(e),l=!1,u=null;if(!r&&c&&(u=Qw(t,n,i,e.index)),u!==null){let d=u.__ngLastListenerFn__||u;d.__ngNextListenerFn__=s,u.__ngLastListenerFn__=s,l=!0}else{let d=Qt(e,n),h=r?r(d):d;vb(n,h,i,a);let f=o.listen(h,i,a),v=r?m=>r(yt(m[e.index])):e.index;Uv(v,t,n,i,a,f,!1)}return l}function Qw(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=t[ho],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function Uv(e,t,n,r,o,i,s){let a=t.firstCreatePass?ud(t):null,c=ld(n),l=c.length;c.push(o,i),a&&a.push(r,e,l,(l+1)*(s?-1:1))}function bm(e,t,n,r,o,i){let s=t[n],a=t[F],l=a.data[n].outputs[r],d=s[l].subscribe(i);Uv(e.index,a,t,o,i,d,!0)}var Xd=Symbol("BINDING");var Ja=class extends Li{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=$n(t);return new bo(n,this.ngModule)}};function Kw(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&fc.SignalBased)!==0};return o&&(i.transform=o),i})}function Xw(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function Jw(e,t,n){let r=t instanceof Ie?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Kd(n,r):n}function eI(e){let t=e.get(Sr,null);if(t===null)throw new S(407,!1);let n=e.get(kv,null),r=e.get(vn,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1}}function tI(e,t){let n=$v(e);return dv(t,n,n==="svg"?od:n==="math"?Fg:null)}function $v(e){return(e.selectors[0][0]||"div").toLowerCase()}var bo=class extends vc{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=Kw(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=Xw(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=Rb(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o,i,s){ae(22);let a=U(null);try{let c=this.componentDef,l=nI(r,c,s,i),u=Jw(c,o||this.ngModule,t),d=eI(u),h=d.rendererFactory.createRenderer(null,c),f=r?rw(h,r,c.encapsulation,u):tI(c,h),v=s?.some(wm)||i?.some(p=>typeof p!="function"&&p.bindings.some(wm)),m=Df(null,l,null,512|pv(c),null,null,d,h,u,null,av(f,u,!0));m[Ze]=f,Oa(m);let g=null;try{let p=Pf(Ze,m,2,"#host",()=>l.directiveRegistry,!0,0);f&&(hv(h,f,p),Eo(f,m)),pc(l,m,p),vf(l,p,m),Ff(l,p),n!==void 0&&oI(p,this.ngContentSelectors,n),g=_t(p.index,m),m[ze]=g[ze],Nf(l,m,null)}catch(p){throw g!==null&&$d(g),$d(m),p}finally{ae(23),ka()}return new ec(this.componentType,m,!!v)}finally{U(a)}}};function nI(e,t,n,r){let o=e?["ng-version","20.2.1"]:Ob(t.selectors[0]),i=null,s=null,a=0;if(n)for(let u of n)a+=u[Xd].requiredVars,u.create&&(u.targetIdx=0,(i??=[]).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[Xd].requiredVars;let f=u+1;h.create&&(h.targetIdx=f,(i??=[]).push(h)),h.update&&(h.targetIdx=f,(s??=[]).push(h))}}let c=[t];if(r)for(let u of r){let d=typeof u=="function"?u:u.type,h=Ku(d);c.push(h)}return Cf(0,null,rI(i,s),1,a,c,null,null,null,[o],null)}function rI(e,t){return!e&&!t?null:n=>{if(n&1&&e)for(let r of e)r.create();if(n&2&&t)for(let r of t)r.update()}}function wm(e){let t=e[Xd].kind;return t==="input"||t==="twoWay"}var ec=class extends Ov{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=Ma(n[F],Ze),this.location=Mo(this._tNode,n),this.instance=_t(this._tNode.index,n)[ze],this.hostView=this.changeDetectorRef=new Zn(n,void 0),this.componentType=t}setInput(t,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView,i=Af(r,o[F],o,t,n);this.previousInputValues.set(t,n);let s=_t(r.index,o);Of(s,1)}get injector(){return new Ir(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function oI(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var En=(()=>{class e{static __NG_ELEMENT_ID__=iI}return e})();function iI(){let e=Ae();return zv(e,ne())}var sI=En,Hv=class extends sI{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Mo(this._hostTNode,this._hostLView)}get injector(){return new Ir(this._hostTNode,this._hostLView)}get parentInjector(){let t=hf(this._hostTNode,this._hostLView);if(zm(t)){let n=Za(t,this._hostLView),r=qa(t),o=n[F].data[r+8];return new Ir(o,n)}else return new Ir(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=Im(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-Ye}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=ym(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,mm(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let c=t&&!$E(t),l;if(c)l=n;else{let g=n||{};l=g.index,r=g.injector,o=g.projectableNodes,i=g.environmentInjector||g.ngModuleRef,s=g.directives,a=g.bindings}let u=c?t:new bo($n(t)),d=r||this.parentInjector;if(!i&&u.ngModule==null){let p=(c?d:this.parentInjector).get(Ie,null);p&&(i=p)}let h=$n(u.componentType??{}),f=ym(this._lContainer,h?.id??null),v=f?.firstChild??null,m=u.create(d,o,v,i,s,a);return this.insertImpl(m.hostView,l,mm(this._hostTNode,f)),m}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(Vg(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[Te],l=new Hv(c,c[mt],c[Te]);l.detach(l.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return Nw(s,o,i,r),t.attachToViewContainerRef(),qu(Od(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=Im(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Yd(this._lContainer,n);r&&(yi(Od(this._lContainer),n),yv(r[F],r))}detach(t){let n=this._adjustIndex(t,-1),r=Yd(this._lContainer,n);return r&&yi(Od(this._lContainer),n)!=null?new Zn(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Im(e){return e[wi]}function Od(e){return e[wi]||(e[wi]=[])}function zv(e,t){let n,r=t[e.index];return Ot(r)?n=r:(n=Nv(r,t,null,e),t[e.index]=n,Ef(t,n)),cI(n,t,e,r),new Hv(n,e,t)}function aI(e,t){let n=e[ue],r=n.createComment(""),o=Qt(t,e),i=n.parentNode(o);return Ka(n,i,r,n.nextSibling(o),!1),r}var cI=dI,lI=()=>!1;function uI(e,t,n){return lI(e,t,n)}function dI(e,t,n,r){if(e[zn])return;let o;n.type&8?o=yt(r):o=aI(t,n),e[zn]=o}var Jd=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},ef=class e{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i<r;i++){let s=n.getByIndex(i),a=this.queries[s.indexInDeclarationView];o.push(a.clone())}return new e(o)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)Vf(t,n).matches!==null&&this.queries[n].setDirty()}},tf=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=_I(t):this.predicate=t}},nf=class e{queries;constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){let o=n!==null?n.length:0,i=this.getByIndex(r).embeddedTView(t,o);i&&(i.indexInDeclarationView=r,n!==null?n.push(i):n=[i])}return n!==null?new e(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}},rf=class e{metadata;matches=null;indexInDeclarationView=-1;crossesNgTemplate=!1;_declarationNodeIndex;_appliesToNextNode=!0;constructor(t,n=-1){this.metadata=t,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&(this.metadata.flags&1)!==1){let n=this._declarationNodeIndex,r=t.parent;for(;r!==null&&r.type&8&&r.index!==n;)r=r.parent;return n===(r!==null?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){let r=this.metadata.predicate;if(Array.isArray(r))for(let o=0;o<r.length;o++){let i=r[o];this.matchTNodeWithReadOption(t,n,fI(n,i)),this.matchTNodeWithReadOption(t,n,Ha(n,t,i,!1,!1))}else r===Yn?n.type&4&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Ha(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(r!==null){let o=this.metadata.read;if(o!==null)if(o===Lt||o===En||o===Yn&&n.type&4)this.addMatch(n.index,-2);else{let i=Ha(n,t,o,!1,!1);i!==null&&this.addMatch(n.index,i)}else this.addMatch(n.index,r)}}addMatch(t,n){this.matches===null?this.matches=[t,n]:this.matches.push(t,n)}};function fI(e,t){let n=e.localNames;if(n!==null){for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1]}return null}function hI(e,t){return e.type&11?Mo(e,t):e.type&4?kf(e,t):null}function pI(e,t,n,r){return n===-1?hI(t,e):n===-2?gI(e,t,r):Oi(e,e[F],n,t)}function gI(e,t,n){if(n===Lt)return Mo(t,e);if(n===Yn)return kf(t,e);if(n===En)return zv(t,e)}function Gv(e,t,n,r){let o=t[qt].queries[r];if(o.matches===null){let i=e.data,s=n.matches,a=[];for(let c=0;s!==null&&c<s.length;c+=2){let l=s[c];if(l<0)a.push(null);else{let u=i[l];a.push(pI(t,u,s[c+1],n.metadata.read))}}o.matches=a}return o.matches}function of(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=Gv(e,t,o,n);for(let a=0;a<i.length;a+=2){let c=i[a];if(c>0)r.push(s[a/2]);else{let l=i[a+1],u=t[-c];for(let d=Ye;d<u.length;d++){let h=u[d];h[Hn]===h[Te]&&of(h[F],h,l,r)}if(u[Er]!==null){let d=u[Er];for(let h=0;h<d.length;h++){let f=d[h];of(f[F],f,l,r)}}}}}return r}function mI(e,t){return e[qt].queries[t].queryList}function vI(e,t,n){let r=new Qa((n&4)===4);return Ug(e,t,r,r.destroy),(t[qt]??=new ef).queries.push(new Jd(r))-1}function yI(e,t,n){let r=Le();return r.firstCreatePass&&(CI(r,new tf(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),vI(r,ne(),t)}function _I(e){return e.split(",").map(t=>t.trim())}function CI(e,t,n){e.queries===null&&(e.queries=new nf),e.queries.track(new rf(t,n))}function Vf(e,t){return e.queries.getByIndex(t)}function DI(e,t){let n=e[F],r=Vf(n,t);return r.crossesNgTemplate?of(n,e,t,[]):Gv(n,e,r,t)}var Mm=new Set;function yc(e){Mm.has(e)||(Mm.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var xr=class{},_c=class{};var tc=class extends xr{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new Ja(this);constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n;let i=Qu(t);this._bootstrapComponents=lv(i.bootstrap),this._r3Injector=wd(t,n,[{provide:xr,useValue:this},{provide:Li,useValue:this.componentFactoryResolver},...r],mn(t),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},nc=class extends _c{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new tc(this.moduleType,t,[])}};var Pi=class extends xr{injector;componentFactoryResolver=new Ja(this);instance=null;constructor(t){super();let n=new mr([...t.providers,{provide:xr,useValue:this},{provide:Li,useValue:this.componentFactoryResolver}],t.parent||Ci(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Vi(e,t,n=null){return new Pi({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var EI=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Xu(!1,n.type),o=r.length>0?Vi([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=N({token:e,providedIn:"environment",factory:()=>new e(k(Ie))})}return e})();function Qe(e){return Io(()=>{let t=Wv(e),n=Q(M({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===pf.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(EI).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Dn.Emulated,styles:e.styles||qe,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&yc("NgStandalone"),qv(n);let r=e.dependencies;return n.directiveDefs=Sm(r,bI),n.pipeDefs=Sm(r,Tg),n.id=MI(n),n})}function bI(e){return $n(e)||Ku(e)}function rn(e){return Io(()=>({type:e.type,bootstrap:e.bootstrap||qe,declarations:e.declarations||qe,imports:e.imports||qe,exports:e.exports||qe,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function wI(e,t){if(e==null)return Bn;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=fc.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function II(e){if(e==null)return Bn;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Ge(e){return Io(()=>{let t=Wv(e);return qv(t),t})}function Wv(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||Bn,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||qe,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:wI(e.inputs,t),outputs:II(e.outputs),debugInfo:null}}function qv(e){e.features?.forEach(t=>t(e))}function Sm(e,t){return e?()=>{let n=typeof e=="function"?e():e,r=[];for(let o of n){let i=t(o);i!==null&&r.push(i)}return r}:null}function MI(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function SI(e){return Object.getPrototypeOf(e.prototype).constructor}function bn(e){let t=SI(e.type),n=!0,r=[e];for(;t;){let o;if(Yt(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new S(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=kd(e.inputs),s.declaredInputs=kd(e.declaredInputs),s.outputs=kd(e.outputs);let a=o.hostBindings;a&&RI(e,a);let c=o.viewQuery,l=o.contentQueries;if(c&&AI(e,c),l&&NI(e,l),xI(e,o),Dg(e.outputs,o.outputs),Yt(o)&&o.data.animation){let u=e.data;u.animation=(u.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s<i.length;s++){let a=i[s];a&&a.ngInherit&&a(e),a===bn&&(n=!1)}}t=Object.getPrototypeOf(t)}TI(r)}function xI(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n])}}function TI(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Do(o.hostAttrs,n=Do(n,o.hostAttrs))}}function kd(e){return e===Bn?{}:e===qe?[]:e}function AI(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function NI(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function RI(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function OI(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=Do(e.mergedAttrs,e.attrs);let u=e.tView=Cf(2,e,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),u.queries=n.queries.embeddedTView(e))}a&&(e.flags|=a),yo(e,!1);let c=PI(n,t,e,r);Pa()&&If(n,t,c,e),Eo(c,t);let l=Nv(c,t,c,e);t[r+Ze]=l,Ef(t,l),uI(l,e,t)}function kI(e,t,n,r,o,i,s,a,c,l,u){let d=n+Ze,h;return t.firstCreatePass?(h=mc(t,d,4,s||null,a||null),Ta()&&Pv(t,e,h,wr(t.consts,l),Sf),$m(t,h)):h=t.data[d],OI(h,e,t,n,r,o,i,c),go(h)&&pc(t,e,h),l!=null&&gc(e,h,u),h}function he(e,t,n,r,o,i,s,a){let c=ne(),l=Le(),u=wr(l.consts,i);return kI(c,l,e,t,n,r,o,u,void 0,s,a),he}var PI=FI;function FI(e,t,n,r){return xi(!0),t[ue].createComment("")}var Cc=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(Cc||{}),Nr=new x(""),Zv=!1,sf=class extends Ce{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,kg()&&(this.destroyRef=_(Xt,{optional:!0})??void 0,this.pendingTasks=_(Jt,{optional:!0})??void 0)}emit(t){let n=U(null);try{super.next(t)}finally{U(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof _e&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},re=sf;function Yv(e){let t,n;function r(){e=Ai;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function xm(e){return queueMicrotask(()=>e()),()=>{e=Ai}}var jf="isAngularZone",rc=jf+"_ID",LI=0,Ee=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new re(!1);onMicrotaskEmpty=new re(!1);onStable=new re(!1);onError=new re(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Zv}=t;if(typeof Zone>"u")throw new S(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=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,BI(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(jf)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new S(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new S(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,VI,Ai,Ai);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},VI={};function Bf(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function jI(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Yv(()=>{e.callbackScheduled=!1,af(e),e.isCheckStableRunning=!0,Bf(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),af(e)}function BI(e){let t=()=>{jI(e)},n=LI++;e._inner=e._inner.fork({name:"angular",properties:{[jf]:!0,[rc]:n,[rc+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(UI(c))return r.invokeTask(i,s,a,c);try{return Tm(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Am(e)}},onInvoke:(r,o,i,s,a,c,l)=>{try{return Tm(e),r.invoke(i,s,a,c,l)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!$I(c)&&t(),Am(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,af(e),Bf(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function af(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Tm(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Am(e){e._nesting--,Bf(e)}var oc=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new re;onMicrotaskEmpty=new re;onStable=new re;onError=new re;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function UI(e){return Qv(e,"__ignore_ng_zone__")}function $I(e){return Qv(e,"__scheduler_tick__")}function Qv(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Uf=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=N({token:e,providedIn:"root",factory:()=>new e})}return e})(),Kv=[0,1,2,3],Xv=(()=>{class e{ngZone=_(Ee);scheduler=_(vn);errorHandler=_(At,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){_(Nr,{optional:!0})}execute(){let n=this.sequences.size>0;n&&ae(16),this.executing=!0;for(let r of Kv)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[r]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let i=o.hooks[r];return i(o.pipelinedValue)},o.snapshot))}catch(i){o.erroredOrDestroyed=!0,this.errorHandler?.handleError(i)}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&&ae(17)}register(n){let{view:r}=n;r!==void 0?((r[Dr]??=[]).push(n),vo(r),r[L]|=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(Cc.AFTER_NEXT_RENDER,n):n()}static \u0275prov=N({token:e,providedIn:"root",factory:()=>new e})}return e})(),ic=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,o,i,s=null){this.impl=t,this.hooks=n,this.view=r,this.once=o,this.snapshot=s,this.unregisterOnDestroy=i?.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 t=this.view?.[Dr];t&&(this.view[Dr]=t.filter(n=>n!==this))}};function Dc(e,t){let n=t?.injector??_(pt);return yc("NgAfterNextRender"),zI(e,n,t,!0)}function HI(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function zI(e,t,n,r){let o=t.get(Uf);o.impl??=t.get(Xv);let i=t.get(Nr,null,{optional:!0}),s=n?.manualCleanup!==!0?t.get(Xt):null,a=t.get(Va,null,{optional:!0}),c=new ic(o.impl,HI(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var $f=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();var Hf=new x("");function Xn(e){return!!e&&typeof e.then=="function"}function zf(e){return!!e&&typeof e.subscribe=="function"}var Jv=new x("");var Gf=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=_(Jv,{optional:!0})??[];injector=_(pt);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Fe(this.injector,o);if(Xn(i))n.push(i);else if(zf(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ec=new x("");function ey(){iu(()=>{let e="";throw new S(600,e)})}function ty(e){return e.isBoundToModule}var GI=10;var wn=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=_(dt);afterRenderManager=_(Uf);zonelessEnabled=_(La);rootEffectScheduler=_(Td);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new Ce;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=_(Jt);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe($(n=>!n))}constructor(){_(Nr,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=_(Ie);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=pt.NULL){return this._injector.get(Ee).run(()=>{ae(10);let s=n instanceof vc;if(!this._injector.get(Gf).done){let v="";throw new S(405,v)}let c;s?c=n:c=this._injector.get(Li).resolveComponentFactory(n),this.componentTypes.push(c.componentType);let l=ty(c)?void 0:this._injector.get(xr),u=r||c.selector,d=c.create(o,[],u,l),h=d.location.nativeElement,f=d.injector.get(Hf,null);return f?.registerApplication(h),d.onDestroy(()=>{this.detachView(d.hostView),Ri(this.components,d),f?.unregisterApplication(h)}),this._loadComponent(d),ae(11,d),d})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){ae(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(Cc.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new S(101,!1);let n=U(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,U(n),this.afterTick.next(),ae(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Sr,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<GI;)ae(14),this.synchronizeOnce(),ae(15)}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:o}of this.allViews){if(!r&&!Ii(o))continue;let i=r&&!this.zonelessEnabled?0:1;Rf(o,i),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})=>Ii(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;Ri(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView);try{this.tick()}catch(o){this.internalErrorHandler(o)}this.components.push(n),this._injector.get(Ec,[]).forEach(o=>o(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),()=>Ri(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new S(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||e)};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Ri(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var Wf=new x("",{providedIn:"root",factory:()=>!1}),qf=new x("",{providedIn:"root",factory:()=>WI}),WI=4e3;var E2=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";function j(e,t,n){let r=ne(),o=Aa();if(Qn(r,o,t)){let i=Le(),s=bd();Dv(s,r,e,t,r[ue],n)}return j}function cf(e,t,n,r,o){Af(t,e,n,o?"class":"style",r)}function b(e,t,n,r){let o=ne(),i=o[F],s=e+Ze,a=i.firstCreatePass?Pf(s,o,2,t,Sf,Ta(),n,r):i.data[s];if(xf(a,o,e,t,ny),go(a)){let c=o[F];pc(c,o,a),vf(c,a,o)}return r!=null&&gc(o,a),b}function E(){let e=Le(),t=Ae(),n=Tf(t);return e.firstCreatePass&&Ff(e,n),fd(n)&&hd(),dd(),n.classesWithoutHost!=null&&ZE(n)&&cf(e,n,ne(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&YE(n)&&cf(e,n,ne(),n.stylesWithoutHost,!1),E}function ot(e,t,n,r){return b(e,t,n,r),E(),ot}function Ct(e,t,n,r){let o=ne(),i=o[F],s=e+Ze,a=i.firstCreatePass?Zw(s,i,2,t,n,r):i.data[s];return xf(a,o,e,t,ny),r!=null&&gc(o,a),Ct}function on(){let e=Ae(),t=Tf(e);return fd(t)&&hd(),dd(),on}function Rr(e,t,n,r){return Ct(e,t,n,r),on(),Rr}var ny=(e,t,n,r,o)=>(xi(!0),dv(t[ue],r,nm()));function bc(e,t,n){let r=ne(),o=r[F],i=e+Ze,s=o.firstCreatePass?Pf(i,r,8,"ng-container",Sf,Ta(),t,n):o.data[i];if(xf(s,r,e,"ng-container",qI),go(s)){let a=r[F];pc(a,r,s),vf(a,s,r)}return n!=null&&gc(r,s),bc}function wc(){let e=Le(),t=Ae(),n=Tf(t);return e.firstCreatePass&&Ff(e,n),wc}var qI=(e,t,n,r,o)=>(xi(!0),Fb(t[ue],""));function ft(){return ne()}var ji="en-US";var ZI=ji;function ry(e){typeof e=="string"&&(ZI=e.toLowerCase().replace(/_/g,"-"))}function q(e,t,n){let r=ne(),o=Le(),i=Ae();return oy(o,r,r[ue],i,e,t,n),q}function xo(e,t,n){let r=ne(),o=Le(),i=Ae();return(i.type&3||n)&&Bv(i,o,r,n,r[ue],e,t,Ga(i,r,t)),xo}function oy(e,t,n,r,o,i,s){let a=!0,c=null;if((r.type&3||s)&&(c??=Ga(r,t,i),Bv(r,e,t,s,n,o,i,c)&&(a=!1)),a){let l=r.outputs?.[o],u=r.hostDirectiveOutputs?.[o];if(u&&u.length)for(let d=0;d<u.length;d+=2){let h=u[d],f=u[d+1];c??=Ga(r,t,i),bm(r,t,h,f,o,c)}if(l&&l.length)for(let d of l)c??=Ga(r,t,i),bm(r,t,d,o,o,c)}}function ee(e=1){return tm(e)}function Zf(e,t,n){yI(e,t,n)}function Yf(e){let t=ne(),n=Le(),r=Cd();Ra(r+1);let o=Vf(n,r);if(e.dirty&&Lg(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=DI(t,r);e.reset(i,cb),e.notifyOnChanges()}return!0}return!1}function Qf(){return mI(ne(),Cd())}function Ba(e,t){return e<<17|t<<2}function Tr(e){return e>>17&32767}function YI(e){return(e&2)==2}function QI(e,t){return e&131071|t<<17}function lf(e){return e|2}function wo(e){return(e&131068)>>2}function Pd(e,t){return e&-131069|t<<2}function KI(e){return(e&1)===1}function uf(e){return e|1}function XI(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Tr(s),c=wo(s);e[r]=n;let l=!1,u;if(Array.isArray(n)){let d=n;u=d[1],(u===null||uo(d,u)>0)&&(l=!0)}else u=n;if(o)if(c!==0){let h=Tr(e[a+1]);e[r+1]=Ba(h,a),h!==0&&(e[h+1]=Pd(e[h+1],r)),e[a+1]=QI(e[a+1],r)}else e[r+1]=Ba(a,0),a!==0&&(e[a+1]=Pd(e[a+1],r)),a=r;else e[r+1]=Ba(c,0),a===0?a=r:e[c+1]=Pd(e[c+1],r),c=r;l&&(e[r+1]=lf(e[r+1])),Nm(e,u,r,!0),Nm(e,u,r,!1),JI(t,u,e,r,i),s=Ba(a,c),i?t.classBindings=s:t.styleBindings=s}function JI(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&uo(i,t)>=0&&(n[r+1]=uf(n[r+1]))}function Nm(e,t,n,r){let o=e[n+1],i=t===null,s=r?Tr(o):wo(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],l=e[s+1];eM(c,t)&&(a=!0,e[s+1]=r?uf(l):lf(l)),s=r?Tr(l):wo(l)}a&&(e[n+1]=r?lf(o):uf(o))}function eM(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?uo(e,t)>=0:!1}var Ft={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function tM(e){return e.substring(Ft.key,Ft.keyEnd)}function nM(e){return rM(e),iy(e,sy(e,0,Ft.textEnd))}function iy(e,t){let n=Ft.textEnd;return n===t?-1:(t=Ft.keyEnd=oM(e,Ft.key=t,n),sy(e,t,n))}function rM(e){Ft.key=0,Ft.keyEnd=0,Ft.value=0,Ft.valueEnd=0,Ft.textEnd=e.length}function sy(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function oM(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function H(e,t,n){return ay(e,t,n,!1),H}function sn(e,t){return ay(e,t,null,!0),sn}function Ic(e){sM(fM,iM,e,!0)}function iM(e,t){for(let n=nM(t);n>=0;n=iy(t,n))ba(e,tM(t),!0)}function ay(e,t,n,r){let o=ne(),i=Le(),s=Si(2);if(i.firstUpdatePass&&ly(i,e,s,r),t!==rt&&Qn(o,s,t)){let a=i.data[Kt()];uy(i,a,o,o[ue],e,o[s+1]=pM(t,n),r,s)}}function sM(e,t,n,r){let o=Le(),i=Si(2);o.firstUpdatePass&&ly(o,null,i,r);let s=ne();if(n!==rt&&Qn(s,i,n)){let a=o.data[Kt()];if(dy(a,r)&&!cy(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=_a(c,n||"")),cf(o,a,s,n,r)}else hM(o,a,s,s[ue],s[i+1],s[i+1]=dM(e,t,n),r,i)}}function cy(e,t){return t>=e.expandoStartIndex}function ly(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Kt()],s=cy(e,n);dy(i,r)&&t===null&&!s&&(t=!1),t=aM(o,i,t,r),XI(o,i,t,n,s,r)}}function aM(e,t,n,r){let o=Kg(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Fd(null,e,t,n,r),n=Fi(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Fd(o,e,t,n,r),i===null){let c=cM(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Fd(null,e,t,c[1],r),c=Fi(c,t.attrs,r),lM(e,t,r,c))}else i=uM(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function cM(e,t,n){let r=n?t.classBindings:t.styleBindings;if(wo(r)!==0)return e[Tr(r)]}function lM(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Tr(o)]=r}function uM(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=Fi(r,s,n)}return Fi(r,t.attrs,n)}function Fd(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=Fi(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function Fi(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),ba(e,s,n?!0:t[++i]))}return e===void 0?null:e}function dM(e,t,n){if(n==null||n==="")return qe;let r=[],o=yf(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)e(r,o[i],!0);else if(typeof o=="object")for(let i in o)o.hasOwnProperty(i)&&e(r,i,o[i]);else typeof o=="string"&&t(r,o);return r}function fM(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&ba(e,r,n)}function hM(e,t,n,r,o,i,s,a){o===rt&&(o=qe);let c=0,l=0,u=0<o.length?o[0]:null,d=0<i.length?i[0]:null;for(;u!==null||d!==null;){let h=c<o.length?o[c+1]:void 0,f=l<i.length?i[l+1]:void 0,v=null,m;u===d?(c+=2,l+=2,h!==f&&(v=d,m=f)):d===null||u!==null&&u<d?(c+=2,v=u):(l+=2,v=d,m=f),v!==null&&uy(e,t,n,r,v,m,s,a),u=c<o.length?o[c]:null,d=l<i.length?i[l]:null}}function uy(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,l=c[a+1],u=KI(l)?Rm(c,t,n,o,wo(l),s):void 0;if(!sc(u)){sc(i)||YI(l)&&(i=Rm(c,null,n,o,a,s));let d=id(Kt(),n);nw(r,s,d,o,i)}}function Rm(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],l=Array.isArray(c),u=l?c[1]:c,d=u===null,h=n[o+1];h===rt&&(h=d?qe:void 0);let f=d?wa(h,r):u===r?h:void 0;if(l&&!sc(f)&&(f=wa(c,r)),sc(f)&&(a=f,s))return a;let v=e[o+1];o=s?Tr(v):wo(v)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=wa(c,r))}return a}function sc(e){return e!==void 0}function pM(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=mn(yf(e)))),e}function dy(e,t){return(e.flags&(t?8:16))!==0}function T(e,t=""){let n=ne(),r=Le(),o=e+Ze,i=r.firstCreatePass?mc(r,o,1,t,null):r.data[o],s=gM(r,n,i,t,e);n[o]=s,Pa()&&If(r,n,s,i),yo(i,!1)}var gM=(e,t,n,r,o)=>(xi(!0),kb(t[ue],r));function mM(e,t,n,r=""){return Qn(e,Aa(),n)?t+jn(n)+r:rt}function vM(e,t,n,r,o,i=""){let s=_d(),a=jv(e,s,n,o);return Si(2),a?t+jn(n)+r+jn(o)+i:rt}function yM(e,t,n,r,o,i,s,a=""){let c=_d(),l=Yw(e,c,n,o,s);return Si(3),l?t+jn(n)+r+jn(o)+i+jn(s)+a:rt}function Ne(e){return be("",e),Ne}function be(e,t,n){let r=ne(),o=mM(r,e,t,n);return o!==rt&&Kf(r,Kt(),o),be}function Mc(e,t,n,r,o){let i=ne(),s=vM(i,e,t,n,r,o);return s!==rt&&Kf(i,Kt(),s),Mc}function Sc(e,t,n,r,o,i,s){let a=ne(),c=yM(a,e,t,n,r,o,i,s);return c!==rt&&Kf(a,Kt(),c),Sc}function Kf(e,t,n){let r=id(t,e);Pb(e[ue],r,n)}function Or(e,t,n){Md(t)&&(t=t());let r=ne(),o=Aa();if(Qn(r,o,t)){let i=Le(),s=bd();Dv(s,r,e,t,r[ue],n)}return Or}function To(e,t){let n=Md(e);return n&&e.set(t),n}function kr(e,t){let n=ne(),r=Le(),o=Ae();return oy(r,n,n[ue],o,e,t),kr}function _M(e,t,n){let r=Le();if(r.firstCreatePass){let o=Yt(e);df(n,r.data,r.blueprint,o,!0),df(t,r.data,r.blueprint,o,!1)}}function df(e,t,n,r,o){if(e=Pe(e),Array.isArray(e))for(let i=0;i<e.length;i++)df(e[i],t,n,r,o);else{let i=Le(),s=ne(),a=Ae(),c=gr(e)?e:Pe(e.provide),l=ed(e),u=a.providerIndexes&1048575,d=a.directiveStart,h=a.providerIndexes>>20;if(gr(e)||!e.multi){let f=new Mr(l,o,oe,null),v=Vd(c,t,o?u:u+h,d);v===-1?(Bd(Ya(a,s),i,c),Ld(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[v]=f,s[v]=f)}else{let f=Vd(c,t,u+h,d),v=Vd(c,t,u,u+h),m=f>=0&&n[f],g=v>=0&&n[v];if(o&&!g||!o&&!m){Bd(Ya(a,s),i,c);let p=EM(o?DM:CM,n.length,o,r,l,e);!o&&g&&(n[v].providerFactory=p),Ld(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(p),s.push(p)}else{let p=fy(n[o?v:f],l,!o&&r);Ld(i,e,f>-1?f:v,p)}!o&&r&&g&&n[v].componentProviders++}}}function Ld(e,t,n,r){let o=gr(t),i=Og(t);if(o||i){let c=(i?Pe(t.useClass):t).prototype.ngOnDestroy;if(c){let l=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let u=l.indexOf(n);u===-1?l.push(n,[r,c]):l[u+1].push(r,c)}else l.push(n,c)}}}function fy(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Vd(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function CM(e,t,n,r,o){return ff(this.multi,[])}function DM(e,t,n,r,o){let i=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,c=Oi(r,r[F],this.providerFactory.index,o);s=c.slice(0,a),ff(i,s);for(let l=a;l<c.length;l++)s.push(c[l])}else s=[],ff(i,s);return s}function ff(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function EM(e,t,n,r,o,i){let s=new Mr(e,n,oe,null);return s.multi=[],s.index=t,s.componentProviders=0,fy(s,o,r&&!n),s}function Ao(e,t=[]){return n=>{n.providersResolver=(r,o)=>_M(r,o?o(e):e,t)}}var ac=class{ngModuleFactory;componentFactories;constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},Xf=(()=>{class e{compileModuleSync(n){return new nc(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=Qu(n),i=lv(o.declarations).reduce((s,a)=>{let c=$n(a);return c&&s.push(new bo(c)),s},[]);return new ac(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var bM=(()=>{class e{zone=_(Ee);changeDetectionScheduler=_(vn);applicationRef=_(wn);applicationErrorHandler=_(dt);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(n){this.applicationErrorHandler(n)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function hy({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new Ee(Q(M({},py()),{scheduleInRootZone:n})),[{provide:Ee,useFactory:e},{provide:Un,multi:!0,useFactory:()=>{let r=_(bM,{optional:!0});return()=>r.initialize()}},{provide:Un,multi:!0,useFactory:()=>{let r=_(wM);return()=>{r.initialize()}}},t===!0?{provide:Sd,useValue:!0}:[],{provide:xd,useValue:n??Zv},{provide:dt,useFactory:()=>{let r=_(Ee),o=_(Ie),i;return s=>{r.runOutsideAngular(()=>{o.destroyed&&!i?setTimeout(()=>{throw s}):(i??=o.get(At),i.handleError(s))})}}}]}function py(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var wM=(()=>{class e{subscription=new _e;initialized=!1;zone=_(Ee);pendingTasks=_(Jt);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Ee.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{Ee.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var gy=(()=>{class e{applicationErrorHandler=_(dt);appRef=_(wn);taskService=_(Jt);ngZone=_(Ee);zonelessEnabled=_(La);tracing=_(Nr,{optional:!0});disableScheduling=_(Sd,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new _e;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(rc):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(_(xd,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof oc||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;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,r=!0;break}case 12:{this.appRef.dirtyFlags|=16,r=!0;break}case 13:{this.appRef.dirtyFlags|=2,r=!0;break}case 11:{r=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?xm:Yv;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(rc+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.taskService.remove(n),this.applicationErrorHandler(r)}finally{this.cleanup()}this.useMicrotaskScheduler=!0,xm(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}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||e)};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function IM(){return typeof $localize<"u"&&$localize.locale||ji}var xc=new x("",{providedIn:"root",factory:()=>_(xc,{optional:!0,skipSelf:!0})||IM()});function We(e){return yg(e)}function Bi(e,t){return Hs(e,t?.equal)}var my=class{[$e];constructor(t){this[$e]=t}destroy(){this[$e].destroy()}};var Cy=Symbol("InputSignalNode#UNSET"),HM=Q(M({},zs),{transformFn:void 0,applyValueToInputSignal(e,t){Kr(e,t)}});function Dy(e,t){let n=Object.create(HM);n.value=e,n.transformFn=t?.transform;function r(){if(Zr(n),n.value===Cy){let o=null;throw new S(-950,o)}return n.value}return r[$e]=n,r}var zM=new x("");zM.__NG_ELEMENT_ID__=e=>{let t=Ae();if(t===null)throw new S(204,!1);if(t.type&2)return t.value;if(e&8)return null;throw new S(204,!1)};function vy(e,t){return Dy(e,t)}function GM(e){return Dy(Cy,e)}var Ey=(vy.required=GM,vy);var Jf=new x(""),WM=new x("");function Ui(e){return!e.moduleRef}function qM(e){let t=Ui(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Ee);return n.run(()=>{Ui(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(dt),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),Ui(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Jf);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Jf);s.add(i),e.moduleRef.onDestroy(()=>{Ri(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return YM(r,n,()=>{let i=t.get(Jt),s=i.add(),a=t.get(Gf);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(xc,ji);if(ry(c||ji),!t.get(WM,!0))return Ui(e)?t.get(wn):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Ui(e)){let u=t.get(wn);return e.rootComponent!==void 0&&u.bootstrap(e.rootComponent),u}else return ZM?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>void i.remove(s))})})}var ZM;function YM(e,t,n){try{let r=n();return Xn(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var Tc=null;function QM(e=[],t){return pt.create({name:t,providers:[{provide:_i,useValue:"platform"},{provide:Jf,useValue:new Set([()=>Tc=null])},...e]})}function KM(e=[]){if(Tc)return Tc;let t=QM(e);return Tc=t,ey(),XM(t),t}function XM(e){let t=e.get(uc,null);Fe(e,()=>{t?.forEach(n=>n())})}var Ro=(()=>{class e{static __NG_ELEMENT_ID__=JM}return e})();function JM(e){return eS(Ae(),ne(),(e&16)===16)}function eS(e,t,n){if(Gn(e)&&!n){let r=_t(e.index,t);return new Zn(r,r)}else if(e.type&175){let r=t[vt];return new Zn(r,t)}return null}var eh=class{constructor(){}supports(t){return Lf(t)}create(t){return new th(t)}},tS=(e,t)=>t,th=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(t){this._trackByFn=t||tS}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex<yy(r,o,i)?n:r,a=yy(s,o,i),c=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,s.previousIndex==null)o++;else{i||(i=[]);let l=a-o,u=c-o;if(l!=u){for(let h=0;h<l;h++){let f=h<i.length?i[h]:i[h]=0,v=f+h;u<=v&&v<l&&(i[h]=f+1)}let d=s.previousIndex;i[d]=u-l}}a!==c&&t(s,a,c)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;n!==null;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;n!==null;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;n!==null;n=n._nextIdentityChange)t(n)}diff(t){if(t==null&&(t=[]),!Lf(t))throw new S(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._itHead,r=!1,o,i,s;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)i=t[a],s=this._trackByFn(a,i),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,i,s,a),r=!0):(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)),n=n._next}else o=0,Lv(t,a=>{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new nh(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=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(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new Ac),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Ac),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},nh=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(t,n){this.item=t,this.trackById=n}},rh=class{_head=null;_tail=null;add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},Ac=class{map=new Map;put(t){let n=t.trackById,r=this.map.get(n);r||(r=new rh,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function yy(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+t+o}function _y(){return new oh([new eh])}var oh=(()=>{class e{factories;static \u0275prov=N({token:e,providedIn:"root",factory:_y});constructor(n){this.factories=n}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||_y()),deps:[[e,new Lm,new Fm]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new S(901,!1)}}return e})();function by(e){ae(8);try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=KM(r),i=[hy({}),{provide:vn,useExisting:gy},om,...n||[]],s=new Pi({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return qM({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}finally{ae(9)}}function ih(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}var My=null;function Dt(){return My}function sh(e){My??=e}var $i=class{},ah=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:()=>_(Sy),providedIn:"platform"})}return e})();var Sy=(()=>{class e extends ah{_location;_history;_doc=_(Me);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Dt().getBaseHref(this._doc)}onPopState(n){let r=Dt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=Dt().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,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}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||e)};static \u0275prov=N({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function xy(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function wy(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function Jn(e){return e&&e[0]!=="?"?`?${e}`:e}var Nc=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:()=>_(Ay),providedIn:"root"})}return e})(),Ty=new x(""),Ay=(()=>{class e extends Nc{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??_(Me).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 xy(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+Jn(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Jn(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Jn(i));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||e)(k(ah),k(Ty,8))};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Oo=(()=>{class e{_subject=new Ce;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=oS(wy(Iy(r))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.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+Jn(r))}normalize(n){return e.stripTrailingSlash(rS(this._basePath,Iy(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Jn(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Jn(r)),o)}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(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r??void 0,complete:o??void 0})}static normalizeQueryParams=Jn;static joinWithSlash=xy;static stripTrailingSlash=wy;static \u0275fac=function(r){return new(r||e)(k(Nc))};static \u0275prov=N({token:e,factory:()=>nS(),providedIn:"root"})}return e})();function nS(){return new Oo(k(Nc))}function rS(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Iy(e){return e.replace(/\/index.html$/,"")}function oS(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var Rc=class{$implicit;ngForOf;index;count;constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}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}},Et=(()=>{class e{_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,o){this._viewContainer=n,this._template=r,this._differs=o}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((o,i,s)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new Rc(o.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(i===null?void 0:i);else if(i!==null){let a=r.get(i);r.move(a,s),Ny(a,o)}});for(let o=0,i=r.length;o<i;o++){let a=r.get(o).context;a.index=o,a.count=i,a.ngForOf=this._ngForOf}n.forEachIdentityChange(o=>{let i=r.get(o.currentIndex);Ny(i,o)})}static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(oe(En),oe(Yn),oe(oh))};static \u0275dir=Ge({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function Ny(e,t){e.context.$implicit=t.item}var Vt=(()=>{class e{_viewContainer;_context=new Oc;_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){Ry(n,!1),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Ry(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||e)(oe(En),oe(Yn))};static \u0275dir=Ge({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),Oc=class{$implicit=null;ngIf=null};function Ry(e,t){if(e&&!e.createEmbeddedView)throw new S(2020,!1)}var it=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=rn({type:e});static \u0275inj=Nt({})}return e})();function Hi(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var Pr=class{};var Oy="browser";var Pc=new x(""),fh=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new S(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(k(Pc),k(Ee))};static \u0275prov=N({token:e,factory:e.\u0275fac})}return e})(),Gi=class{_doc;constructor(t){this._doc=t}manager},ch="ng-app-id";function ky(e){for(let t of e)t.remove()}function Py(e,t){let n=t.createElement("style");return n.textContent=e,n}function iS(e,t,n,r){let o=e.head?.querySelectorAll(`style[${ch}="${t}"],link[${ch}="${t}"]`);if(o)for(let i of o)i.removeAttribute(ch),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]})}function uh(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var hh=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,iS(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,Py);r?.forEach(o=>this.addUsage(o,this.external,uh))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(ky(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])ky(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,Py(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,uh(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||e)(k(Me),k(lc),k(dc,8),k(So))};static \u0275prov=N({token:e,factory:e.\u0275fac})}return e})(),lh={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"},ph=/%COMP%/g;var Ly="%COMP%",sS=`_nghost-${Ly}`,aS=`_ngcontent-${Ly}`,cS=!0,lS=new x("",{providedIn:"root",factory:()=>cS});function uS(e){return aS.replace(ph,e)}function dS(e){return sS.replace(ph,e)}function Vy(e,t){return t.map(n=>n.replace(ph,e))}var gh=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;animationDisabled;maxAnimationTimeout;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;registry;constructor(n,r,o,i,s,a,c,l=null,u,d,h=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=l,this.animationDisabled=u,this.maxAnimationTimeout=d,this.tracingService=h,this.platformIsServer=!1,this.defaultRenderer=new Wi(n,s,c,this.platformIsServer,this.tracingService,this.registry=Fa(),this.maxAnimationTimeout)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(n,r);return o instanceof kc?o.applyToHost(n):o instanceof qi&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer,h=this.tracingService;switch(r.encapsulation){case Dn.Emulated:i=new kc(c,l,r,this.appId,u,s,a,d,h,this.registry,this.animationDisabled,this.maxAnimationTimeout);break;case Dn.ShadowDom:return new dh(c,l,n,r,s,a,this.nonce,d,h,this.registry,this.maxAnimationTimeout);default:i=new qi(c,l,r,u,s,a,d,h,this.registry,this.animationDisabled,this.maxAnimationTimeout);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||e)(k(fh),k(hh),k(lc),k(lS),k(Me),k(So),k(Ee),k(dc),k(Wf),k(qf),k(Nr,8))};static \u0275prov=N({token:e,factory:e.\u0275fac})}return e})(),Wi=class{eventManager;doc;ngZone;platformIsServer;tracingService;registry;maxAnimationTimeout;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o,i,s,a){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.tracingService=i,this.registry=s,this.maxAnimationTimeout=a}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(lh[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Fy(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Fy(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){let{elements:r}=this.registry;if(r){r.animate(n,()=>n.remove(),this.maxAnimationTimeout);return}n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new S(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=lh[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=lh[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(tn.DashCase|tn.Important)?t.style.setProperty(n,r,o&tn.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&tn.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r,o){if(typeof t=="string"&&(t=Dt().getGlobalEventTarget(this.doc,t),!t))throw new S(5102,!1);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;t(n)===!1&&n.preventDefault()}}};function Fy(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var dh=class extends Wi{sharedStylesHost;hostEl;shadowRoot;constructor(t,n,r,o,i,s,a,c,l,u,d){super(t,i,s,c,l,u,d),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let h=o.styles;h=Vy(o.id,h);for(let v of h){let m=document.createElement("style");a&&m.setAttribute("nonce",a),m.textContent=v,this.shadowRoot.appendChild(m)}let f=o.getExternalStyles?.();if(f)for(let v of f){let m=uh(v,i);a&&m.setAttribute("nonce",a),this.shadowRoot.appendChild(m)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},qi=class extends Wi{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;_animationDisabled;constructor(t,n,r,o,i,s,a,c,l,u,d,h){super(t,i,s,a,c,l,d),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o,this._animationDisabled=u;let f=r.styles;this.styles=h?Vy(h,f):f,this.styleUrls=r.getExternalStyles?.(h)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){if(this.removeStylesOnCompDestroy){if(!this._animationDisabled&&this.registry.elements){this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)},this.maxAnimationTimeout)});return}this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}}},kc=class extends qi{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c,l,u,d,h){let f=o+"-"+r.id;super(t,n,r,i,s,a,c,l,u,d,h,f),this.contentAttr=uS(f),this.hostAttr=dS(f)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}};var Fc=class e extends $i{supportsDOMEvents=!0;static makeCurrent(){sh(new e)}onAndCancel(t,n,r,o){return t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=fS();return n==null?null:hS(n)}resetBaseElement(){Zi=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Hi(document.cookie,t)}},Zi=null;function fS(){return Zi=Zi||document.head.querySelector("base"),Zi?Zi.getAttribute("href"):null}function hS(e){return new URL(e,document.baseURI).pathname}var pS=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:e.\u0275fac})}return e})(),By=(()=>{class e extends Gi{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(k(Me))};static \u0275prov=N({token:e,factory:e.\u0275fac})}return e})(),jy=["alt","control","meta","shift"],gS={"\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"},mS={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Uy=(()=>{class e extends Gi{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Dt().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),jy.forEach(l=>{let u=r.indexOf(l);u>-1&&(r.splice(u,1),s+=l+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=gS[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),jy.forEach(s=>{if(s!==o){let a=mS[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(k(Me))};static \u0275prov=N({token:e,factory:e.\u0275fac})}return e})();function mh(e,t){let n=M({rootComponent:e},vS(t));return by(n)}function vS(e){return{appProviders:[...ES,...e?.providers??[]],platformProviders:DS}}function yS(){Fc.makeCurrent()}function _S(){return new At}function CS(){return gf(document),document}var DS=[{provide:So,useValue:Oy},{provide:uc,useValue:yS,multi:!0},{provide:Me,useFactory:CS}];var ES=[{provide:_i,useValue:"root"},{provide:At,useFactory:_S},{provide:Pc,useClass:By,multi:!0,deps:[Me]},{provide:Pc,useClass:Uy,multi:!0,deps:[Me]},gh,hh,fh,{provide:Sr,useExisting:gh},{provide:Pr,useClass:pS},[]];var Fo=class{},Yi=class{},er=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
|
|
5
|
+
`).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var Vc=class{encodeKey(t){return $y(t)}encodeValue(t){return $y(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function bS(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var wS=/%(\d[a-f0-9])/gi,IS={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function $y(e){return encodeURIComponent(e).replace(wS,(t,n)=>IS[n]??t)}function Lc(e){return`${e}`}var In=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new Vc,t.fromString){if(t.fromObject)throw new S(2805,!1);this.map=bS(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(Lc):[Lc(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(Lc(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(Lc(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};var jc=class{map=new Map;set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};function MS(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Hy(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function zy(e){return typeof Blob<"u"&&e instanceof Blob}function Gy(e){return typeof FormData<"u"&&e instanceof FormData}function SS(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Wy="Content-Type",qy="Accept",Yy="X-Request-URL",Qy="text/plain",Ky="application/json",xS=`${Ky}, ${Qy}, */*`,ko=class e{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(MS(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i){if(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,this.keepalive=!!i.keepalive,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),i.priority&&(this.priority=i.priority),i.cache&&(this.cache=i.cache),i.credentials&&(this.credentials=i.credentials),typeof i.timeout=="number"){if(i.timeout<1||!Number.isInteger(i.timeout))throw new S(2822,"");this.timeout=i.timeout}i.mode&&(this.mode=i.mode),i.redirect&&(this.redirect=i.redirect),i.integrity&&(this.integrity=i.integrity),i.referrer&&(this.referrer=i.referrer),this.transferCache=i.transferCache}if(this.headers??=new er,this.context??=new jc,!this.params)this.params=new In,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),c=a===-1?"?":a<n.length-1?"&":"";this.urlWithParams=n+c+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||Hy(this.body)||zy(this.body)||Gy(this.body)||SS(this.body)?this.body:this.body instanceof In?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||Gy(this.body)?null:zy(this.body)?this.body.type||null:Hy(this.body)?null:typeof this.body=="string"?Qy:this.body instanceof In?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Ky:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.keepalive??this.keepalive,s=t.priority||this.priority,a=t.cache||this.cache,c=t.mode||this.mode,l=t.redirect||this.redirect,u=t.credentials||this.credentials,d=t.referrer||this.referrer,h=t.integrity||this.integrity,f=t.transferCache??this.transferCache,v=t.timeout??this.timeout,m=t.body!==void 0?t.body:this.body,g=t.withCredentials??this.withCredentials,p=t.reportProgress??this.reportProgress,w=t.headers||this.headers,A=t.params||this.params,I=t.context??this.context;return t.setHeaders!==void 0&&(w=Object.keys(t.setHeaders).reduce((B,X)=>B.set(X,t.setHeaders[X]),w)),t.setParams&&(A=Object.keys(t.setParams).reduce((B,X)=>B.set(X,t.setParams[X]),A)),new e(n,r,m,{params:A,headers:w,context:I,reportProgress:p,responseType:o,withCredentials:g,transferCache:f,keepalive:i,cache:a,priority:s,timeout:v,mode:c,redirect:l,credentials:u,referrer:d,integrity:h})}},Fr=(function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e})(Fr||{}),Lo=class{headers;status;statusText;url;ok;type;redirected;constructor(t,n=200,r="OK"){this.headers=t.headers||new er,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.redirected=t.redirected,this.ok=this.status>=200&&this.status<300}},Bc=class e extends Lo{constructor(t={}){super(t)}type=Fr.ResponseHeader;clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},Qi=class e extends Lo{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=Fr.Response;clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected})}},Po=class extends Lo{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},TS=200,AS=204;function vh(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,credentials:e.credentials,transferCache:e.transferCache,timeout:e.timeout,keepalive:e.keepalive,priority:e.priority,cache:e.cache,mode:e.mode,redirect:e.redirect,integrity:e.integrity,referrer:e.referrer}}var $c=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof ko)i=n;else{let c;o.headers instanceof er?c=o.headers:c=new er(o.headers);let l;o.params&&(o.params instanceof In?l=o.params:l=new In({fromObject:o.params})),i=new ko(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,integrity:o.integrity,timeout:o.timeout})}let s=P(i).pipe(Pn(c=>this.handler.handle(c)));if(n instanceof ko||o.observe==="events")return s;let a=s.pipe(nt(c=>c instanceof Qi));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe($(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new S(2806,!1);return c.body}));case"blob":return a.pipe($(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new S(2807,!1);return c.body}));case"text":return a.pipe($(c=>{if(c.body!==null&&typeof c.body!="string")throw new S(2808,!1);return c.body}));case"json":default:return a.pipe($(c=>c.body))}case"response":return a;default:throw new S(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 In().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,vh(o,r))}post(n,r,o={}){return this.request("POST",n,vh(o,r))}put(n,r,o={}){return this.request("PUT",n,vh(o,r))}static \u0275fac=function(r){return new(r||e)(k(Fo))};static \u0275prov=N({token:e,factory:e.\u0275fac})}return e})();var NS=new x("");function Xy(e,t){return t(e)}function RS(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}function OS(e,t,n){return(r,o)=>Fe(n,()=>t(r,i=>e(i,o)))}var Jy=new x(""),_h=new x(""),e_=new x(""),Ch=new x("",{providedIn:"root",factory:()=>!0});function kS(){let e=null;return(t,n)=>{e===null&&(e=(_(Jy,{optional:!0})??[]).reduceRight(RS,Xy));let r=_(Ti);if(_(Ch)){let i=r.add();return e(t,n).pipe(Ln(i))}else return e(t,n)}}var Uc=(()=>{class e extends Fo{backend;injector;chain=null;pendingTasks=_(Ti);contributeToStability=_(Ch);constructor(n,r){super(),this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(_h),...this.injector.get(e_,[])]));this.chain=r.reduceRight((o,i)=>OS(o,i,this.injector),Xy)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Ln(r))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(k(Yi),k(Ie))};static \u0275prov=N({token:e,factory:e.\u0275fac})}return e})();var PS=/^\)\]\}',?\n/,FS=RegExp(`^${Yy}:`,"m");function LS(e){return"responseURL"in e&&e.responseURL?e.responseURL:FS.test(e.getAllResponseHeaders())?e.getResponseHeader(Yy):null}var yh=(()=>{class e{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new S(-2800,!1);let r=this.xhrFactory;return P(null).pipe(He(()=>new Z(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((g,p)=>s.setRequestHeader(g,p.join(","))),n.headers.has(qy)||s.setRequestHeader(qy,xS),!n.headers.has(Wy)){let g=n.detectContentTypeHeader();g!==null&&s.setRequestHeader(Wy,g)}if(n.timeout&&(s.timeout=n.timeout),n.responseType){let g=n.responseType.toLowerCase();s.responseType=g!=="json"?g:"text"}let a=n.serializeBody(),c=null,l=()=>{if(c!==null)return c;let g=s.statusText||"OK",p=new er(s.getAllResponseHeaders()),w=LS(s)||n.url;return c=new Bc({headers:p,status:s.status,statusText:g,url:w}),c},u=()=>{let{headers:g,status:p,statusText:w,url:A}=l(),I=null;p!==AS&&(I=typeof s.response>"u"?s.responseText:s.response),p===0&&(p=I?TS:0);let B=p>=200&&p<300;if(n.responseType==="json"&&typeof I=="string"){let X=I;I=I.replace(PS,"");try{I=I!==""?JSON.parse(I):null}catch(le){I=X,B&&(B=!1,I={error:le,text:I})}}B?(i.next(new Qi({body:I,headers:g,status:p,statusText:w,url:A||void 0})),i.complete()):i.error(new Po({error:I,headers:g,status:p,statusText:w,url:A||void 0}))},d=g=>{let{url:p}=l(),w=new Po({error:g,status:s.status||0,statusText:s.statusText||"Unknown Error",url:p||void 0});i.error(w)},h=d;n.timeout&&(h=g=>{let{url:p}=l(),w=new Po({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:p||void 0});i.error(w)});let f=!1,v=g=>{f||(i.next(l()),f=!0);let p={type:Fr.DownloadProgress,loaded:g.loaded};g.lengthComputable&&(p.total=g.total),n.responseType==="text"&&s.responseText&&(p.partialText=s.responseText),i.next(p)},m=g=>{let p={type:Fr.UploadProgress,loaded:g.loaded};g.lengthComputable&&(p.total=g.total),i.next(p)};return s.addEventListener("load",u),s.addEventListener("error",d),s.addEventListener("timeout",h),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",v),a!==null&&s.upload&&s.upload.addEventListener("progress",m)),s.send(a),i.next({type:Fr.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",u),s.removeEventListener("timeout",h),n.reportProgress&&(s.removeEventListener("progress",v),a!==null&&s.upload&&s.upload.removeEventListener("progress",m)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||e)(k(Pr))};static \u0275prov=N({token:e,factory:e.\u0275fac})}return e})(),t_=new x(""),VS="XSRF-TOKEN",jS=new x("",{providedIn:"root",factory:()=>VS}),BS="X-XSRF-TOKEN",US=new x("",{providedIn:"root",factory:()=>BS}),Ki=class{},$S=(()=>{class e{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(n,r){this.doc=n,this.cookieName=r}getToken(){let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=Hi(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)(k(Me),k(jS))};static \u0275prov=N({token:e,factory:e.\u0275fac})}return e})();function HS(e,t){let n=e.url.toLowerCase();if(!_(t_)||e.method==="GET"||e.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return t(e);let r=_(Ki).getToken(),o=_(US);return r!=null&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var Dh=(function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e})(Dh||{});function zS(e,t){return{\u0275kind:e,\u0275providers:t}}function Hc(...e){let t=[$c,yh,Uc,{provide:Fo,useExisting:Uc},{provide:Yi,useFactory:()=>_(NS,{optional:!0})??_(yh)},{provide:_h,useValue:HS,multi:!0},{provide:t_,useValue:!0},{provide:Ki,useClass:$S}];for(let n of e)t.push(...n.\u0275providers);return fo(t)}var Zy=new x("");function n_(){return zS(Dh.LegacyInterceptors,[{provide:Zy,useFactory:kS},{provide:_h,useExisting:Zy,multi:!0}])}var Eh=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=rn({type:e});static \u0275inj=Nt({providers:[Hc(n_())]})}return e})();var r_=(()=>{class e{_doc;constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static \u0275fac=function(r){return new(r||e)(k(Me))};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var z="primary",us=Symbol("RouteTitle"),Sh=class{params;constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function Ho(e){return new Sh(e)}function qS(e,t,n){let r=n.path.split("/");if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.length<e.length))return null;let o={};for(let i=0;i<r.length;i++){let s=r[i],a=e[i];if(s[0]===":")o[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:e.slice(0,r.length),posParams:o}}function ZS(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!an(e[n],t[n]))return!1;return!0}function an(e,t){let n=e?xh(e):void 0,r=t?xh(t):void 0;if(!n||!r||n.length!=r.length)return!1;let o;for(let i=0;i<n.length;i++)if(o=n[i],!d_(e[o],t[o]))return!1;return!0}function xh(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function d_(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;let n=[...e].sort(),r=[...t].sort();return n.every((o,i)=>r[i]===o)}else return e===t}function f_(e){return e.length>0?e[e.length-1]:null}function xn(e){return vu(e)?e:Xn(e)?pe(Promise.resolve(e)):P(e)}var YS={exact:p_,subset:g_},h_={exact:QS,subset:KS,ignored:()=>!0};function o_(e,t,n){return YS[n.paths](e.root,t.root,n.matrixParams)&&h_[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function QS(e,t){return an(e,t)}function p_(e,t,n){if(!Vr(e.segments,t.segments)||!Wc(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!p_(e.children[r],t.children[r],n))return!1;return!0}function KS(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>d_(e[n],t[n]))}function g_(e,t,n){return m_(e,t,t.segments,n)}function m_(e,t,n,r){if(e.segments.length>n.length){let o=e.segments.slice(0,n.length);return!(!Vr(o,n)||t.hasChildren()||!Wc(o,n,r))}else if(e.segments.length===n.length){if(!Vr(e.segments,n)||!Wc(e.segments,n,r))return!1;for(let o in t.children)if(!e.children[o]||!g_(e.children[o],t.children[o],r))return!1;return!0}else{let o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!Vr(e.segments,o)||!Wc(e.segments,o,r)||!e.children[z]?!1:m_(e.children[z],t,i,r)}}function Wc(e,t,n){return t.every((r,o)=>h_[n](e[o].parameters,r.parameters))}var Sn=class{root;queryParams;fragment;_queryParamMap;constructor(t=new se([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=Ho(this.queryParams),this._queryParamMap}toString(){return ex.serialize(this)}},se=class{segments;children;parent=null;constructor(t,n){this.segments=t,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 qc(this)}},Lr=class{path;parameters;_parameterMap;constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=Ho(this.parameters),this._parameterMap}toString(){return y_(this)}};function XS(e,t){return Vr(e,t)&&e.every((n,r)=>an(n.parameters,t[r].parameters))}function Vr(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function JS(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===z&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==z&&(n=n.concat(t(o,r)))}),n}var il=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:()=>new zo,providedIn:"root"})}return e})(),zo=class{parse(t){let n=new Ah(t);return new Sn(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${Xi(t.root,!0)}`,r=rx(t.queryParams),o=typeof t.fragment=="string"?`#${tx(t.fragment)}`:"";return`${n}${r}${o}`}},ex=new zo;function qc(e){return e.segments.map(t=>y_(t)).join("/")}function Xi(e,t){if(!e.hasChildren())return qc(e);if(t){let n=e.children[z]?Xi(e.children[z],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==z&&r.push(`${o}:${Xi(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=JS(e,(r,o)=>o===z?[Xi(e.children[z],!1)]:[`${o}:${Xi(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[z]!=null?`${qc(e)}/${n[0]}`:`${qc(e)}/(${n.join("//")})`}}function v_(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function zc(e){return v_(e).replace(/%3B/gi,";")}function tx(e){return encodeURI(e)}function Th(e){return v_(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Zc(e){return decodeURIComponent(e)}function i_(e){return Zc(e.replace(/\+/g,"%20"))}function y_(e){return`${Th(e.path)}${nx(e.parameters)}`}function nx(e){return Object.entries(e).map(([t,n])=>`;${Th(t)}=${Th(n)}`).join("")}function rx(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(o=>`${zc(n)}=${zc(o)}`).join("&"):`${zc(n)}=${zc(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var ox=/^[^\/()?;#]+/;function bh(e){let t=e.match(ox);return t?t[0]:""}var ix=/^[^\/()?;=#]+/;function sx(e){let t=e.match(ix);return t?t[0]:""}var ax=/^[^=?&#]+/;function cx(e){let t=e.match(ax);return t?t[0]:""}var lx=/^[^&#]+/;function ux(e){let t=e.match(lx);return t?t[0]:""}var Ah=class{url;remaining;constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new se([],{}):new se([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[z]=new se(t,n)),r}parseSegment(){let t=bh(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new S(4009,!1);return this.capture(t),new Lr(Zc(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=sx(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let o=bh(this.remaining);o&&(r=o,this.capture(r))}t[Zc(n)]=Zc(r)}parseQueryParam(t){let n=cx(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=ux(this.remaining);s&&(r=s,this.capture(r))}let o=i_(n),i=i_(r);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}parseParens(t){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=bh(this.remaining),o=this.remaining[r.length];if(o!=="/"&&o!==")"&&o!==";")throw new S(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=z);let s=this.parseChildren();n[i]=Object.keys(s).length===1?s[z]:new se([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new S(4011,!1)}};function __(e){return e.segments.length>0?new se([],{[z]:e}):e}function C_(e){let t={};for(let[r,o]of Object.entries(e.children)){let i=C_(o);if(r===z&&i.segments.length===0&&i.hasChildren())for(let[s,a]of Object.entries(i.children))t[s]=a;else(i.segments.length>0||i.hasChildren())&&(t[r]=i)}let n=new se(e.segments,t);return dx(n)}function dx(e){if(e.numberOfChildren===1&&e.children[z]){let t=e.children[z];return new se(e.segments.concat(t.segments),t.children)}return e}function Go(e){return e instanceof Sn}function fx(e,t,n=null,r=null){let o=D_(e);return E_(o,t,n,r)}function D_(e){let t;function n(i){let s={};for(let c of i.children){let l=n(c);s[c.outlet]=l}let a=new se(i.url,s);return i===e&&(t=a),a}let r=n(e.root),o=__(r);return t??o}function E_(e,t,n,r){let o=e;for(;o.parent;)o=o.parent;if(t.length===0)return wh(o,o,o,n,r);let i=hx(t);if(i.toRoot())return wh(o,o,new se([],{}),n,r);let s=px(i,o,e),a=s.processChildren?es(s.segmentGroup,s.index,i.commands):w_(s.segmentGroup,s.index,i.commands);return wh(o,s.segmentGroup,a,n,r)}function Yc(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function rs(e){return typeof e=="object"&&e!=null&&e.outlets}function wh(e,t,n,r,o){let i={};r&&Object.entries(r).forEach(([c,l])=>{i[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`});let s;e===t?s=n:s=b_(e,t,n);let a=__(C_(s));return new Sn(a,i,o)}function b_(e,t,n){let r={};return Object.entries(e.children).forEach(([o,i])=>{i===t?r[o]=n:r[o]=b_(i,t,n)}),new se(e.segments,r)}var Qc=class{isAbsolute;numberOfDoubleDots;commands;constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&Yc(r[0]))throw new S(4003,!1);let o=r.find(rs);if(o&&o!==f_(r))throw new S(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function hx(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new Qc(!0,0,e);let t=0,n=!1,r=e.reduce((o,i,s)=>{if(typeof i=="object"&&i!=null){if(i.outlets){let a={};return Object.entries(i.outlets).forEach(([c,l])=>{a[c]=typeof l=="string"?l.split("/"):l}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return typeof i!="string"?[...o,i]:s===0?(i.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?n=!0:a===".."?t++:a!=""&&o.push(a))}),o):[...o,i]},[]);return new Qc(n,t,r)}var Bo=class{segmentGroup;processChildren;index;constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function px(e,t,n){if(e.isAbsolute)return new Bo(t,!0,0);if(!n)return new Bo(t,!1,NaN);if(n.parent===null)return new Bo(n,!0,0);let r=Yc(e.commands[0])?0:1,o=n.segments.length-1+r;return gx(n,o,e.numberOfDoubleDots)}function gx(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new S(4005,!1);o=r.segments.length}return new Bo(r,!1,o-i)}function mx(e){return rs(e[0])?e[0].outlets:{[z]:e}}function w_(e,t,n){if(e??=new se([],{}),e.segments.length===0&&e.hasChildren())return es(e,t,n);let r=vx(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){let i=new se(e.segments.slice(0,r.pathIndex),{});return i.children[z]=new se(e.segments.slice(r.pathIndex),e.children),es(i,0,o)}else return r.match&&o.length===0?new se(e.segments,{}):r.match&&!e.hasChildren()?Nh(e,t,n):r.match?es(e,0,o):Nh(e,t,n)}function es(e,t,n){if(n.length===0)return new se(e.segments,{});{let r=mx(n),o={};if(Object.keys(r).some(i=>i!==z)&&e.children[z]&&e.numberOfChildren===1&&e.children[z].segments.length===0){let i=es(e.children[z],t,n);return new se(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=w_(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s)}),new se(e.segments,o)}}function vx(e,t,n){let r=0,o=t,i={match:!1,pathIndex:0,commandIndex:0};for(;o<e.segments.length;){if(r>=n.length)return i;let s=e.segments[o],a=n[r];if(rs(a))break;let c=`${a}`,l=r<n.length-1?n[r+1]:null;if(o>0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!a_(c,l,s))return i;r+=2}else{if(!a_(c,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function Nh(e,t,n){let r=e.segments.slice(0,t),o=0;for(;o<n.length;){let i=n[o];if(rs(i)){let c=yx(i.outlets);return new se(r,c)}if(o===0&&Yc(n[0])){let c=e.segments[t];r.push(new Lr(c.path,s_(n[0]))),o++;continue}let s=rs(i)?i.outlets[z]:`${i}`,a=o<n.length-1?n[o+1]:null;s&&a&&Yc(a)?(r.push(new Lr(s,s_(a))),o+=2):(r.push(new Lr(s,{})),o++)}return new se(r,{})}function yx(e){let t={};return Object.entries(e).forEach(([n,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=Nh(new se([],{}),0,r))}),t}function s_(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function a_(e,t,n){return e==n.path&&an(t,n.parameters)}var ts="imperative",Ve=(function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e})(Ve||{}),bt=class{id;url;constructor(t,n){this.id=t,this.url=n}},Wo=class extends bt{type=Ve.NavigationStart;navigationTrigger;restoredState;constructor(t,n,r="imperative",o=null){super(t,n),this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},tr=class extends bt{urlAfterRedirects;type=Ve.NavigationEnd;constructor(t,n,r){super(t,n),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},st=(function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e[e.Aborted=4]="Aborted",e})(st||{}),Kc=(function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e})(Kc||{}),Mn=class extends bt{reason;code;type=Ve.NavigationCancel;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},nr=class extends bt{reason;code;type=Ve.NavigationSkipped;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o}},os=class extends bt{error;target;type=Ve.NavigationError;constructor(t,n,r,o){super(t,n),this.error=r,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Xc=class extends bt{urlAfterRedirects;state;type=Ve.RoutesRecognized;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Rh=class extends bt{urlAfterRedirects;state;type=Ve.GuardsCheckStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Oh=class extends bt{urlAfterRedirects;state;shouldActivate;type=Ve.GuardsCheckEnd;constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},kh=class extends bt{urlAfterRedirects;state;type=Ve.ResolveStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ph=class extends bt{urlAfterRedirects;state;type=Ve.ResolveEnd;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Fh=class{route;type=Ve.RouteConfigLoadStart;constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Lh=class{route;type=Ve.RouteConfigLoadEnd;constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Vh=class{snapshot;type=Ve.ChildActivationStart;constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},jh=class{snapshot;type=Ve.ChildActivationEnd;constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Bh=class{snapshot;type=Ve.ActivationStart;constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Uh=class{snapshot;type=Ve.ActivationEnd;constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var is=class{},qo=class{url;navigationBehaviorOptions;constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function _x(e){return!(e instanceof is)&&!(e instanceof qo)}function Cx(e,t){return e.providers&&!e._injector&&(e._injector=Vi(e.providers,t,`Route: ${e.path}`)),e._injector??t}function jt(e){return e.outlet||z}function Dx(e,t){let n=e.filter(r=>jt(r)===t);return n.push(...e.filter(r=>jt(r)!==t)),n}function Yo(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){let n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}var $h=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Yo(this.route?.snapshot)??this.rootInjector}constructor(t){this.rootInjector=t,this.children=new ds(this.rootInjector)}},ds=(()=>{class e{rootInjector;contexts=new Map;constructor(n){this.rootInjector=n}onChildOutletCreated(n,r){let o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}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 $h(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static \u0275fac=function(r){return new(r||e)(k(Ie))};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Jc=class{_root;constructor(t){this._root=t}get root(){return this._root.value}parent(t){let n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){let n=Hh(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=Hh(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=zh(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return zh(t,this._root).map(n=>n.value)}};function Hh(e,t){if(e===t.value)return t;for(let n of t.children){let r=Hh(e,n);if(r)return r}return null}function zh(e,t){if(e===t.value)return[t];for(let n of t.children){let r=zh(e,n);if(r.length)return r.unshift(t),r}return[]}var ht=class{value;children;constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function jo(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var el=class extends Jc{snapshot;constructor(t,n){super(t),this.snapshot=n,Jh(this,t)}toString(){return this.snapshot.toString()}};function I_(e){let t=Ex(e),n=new ke([new Lr("",{})]),r=new ke({}),o=new ke({}),i=new ke({}),s=new ke(""),a=new jr(n,r,i,s,o,z,e,t.root);return a.snapshot=t.root,new el(new ht(a,[]),t)}function Ex(e){let t={},n={},r={},i=new Uo([],t,r,"",n,z,e,null,{});return new nl("",new ht(i,[]))}var jr=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(t,n,r,o,i,s,a,c){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe($(l=>l[us]))??P(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i}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($(t=>Ho(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe($(t=>Ho(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function tl(e,t,n="emptyOnly"){let r,{routeConfig:o}=e;return t!==null&&(n==="always"||o?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:M(M({},t.params),e.params),data:M(M({},t.data),e.data),resolve:M(M(M(M({},e.data),t.data),o?.data),e._resolvedData)}:r={params:M({},e.params),data:M({},e.data),resolve:M(M({},e.data),e._resolvedData??{})},o&&S_(o)&&(r.resolve[us]=o.title),r}var Uo=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[us]}constructor(t,n,r,o,i,s,a,c,l){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=l}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??=Ho(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Ho(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${n}')`}},nl=class extends Jc{url;constructor(t,n){super(n),this.url=t,Jh(this,n)}toString(){return M_(this._root)}};function Jh(e,t){t.value._routerState=e,t.children.forEach(n=>Jh(e,n))}function M_(e){let t=e.children.length>0?` { ${e.children.map(M_).join(", ")} } `:"";return`${e.value}${t}`}function Ih(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,an(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),an(t.params,n.params)||e.paramsSubject.next(n.params),ZS(t.url,n.url)||e.urlSubject.next(n.url),an(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function Gh(e,t){let n=an(e.params,t.params)&&XS(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||Gh(e.parent,t.parent))}function S_(e){return typeof e.title=="string"||e.title===null}var bx=new x(""),x_=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=z;activateEvents=new re;deactivateEvents=new re;attachEvents=new re;detachEvents=new re;routerOutletData=Ey(void 0);parentContexts=_(ds);location=_(En);changeDetector=_(Ro);inputBinder=_(sl,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),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 S(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new S(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new S(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 S(4013,!1);this._activatedRoute=n;let o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new Wh(n,a,o.injector,this.routerOutletData);this.activated=o.createComponent(s,{index:o.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||e)};static \u0275dir=Ge({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[nn]})}return e})(),Wh=class{route;childContexts;parent;outletData;constructor(t,n,r,o){this.route=t,this.childContexts=n,this.parent=r,this.outletData=o}get(t,n){return t===jr?this.route:t===ds?this.childContexts:t===bx?this.outletData:this.parent.get(t,n)}},sl=new x("");var T_=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=Qe({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,o){r&1&&ot(0,"router-outlet")},dependencies:[x_],encapsulation:2})}return e})();function ep(e){let t=e.children&&e.children.map(ep),n=t?Q(M({},e),{children:t}):M({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==z&&(n.component=T_),n}function wx(e,t,n){let r=ss(e,t._root,n?n._root:void 0);return new el(r,t)}function ss(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let o=Ix(e,t,n);return new ht(r,o)}else{if(e.shouldAttach(t.value)){let i=e.retrieve(t.value);if(i!==null){let s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>ss(e,a)),s}}let r=Mx(t.value),o=t.children.map(i=>ss(e,i));return new ht(r,o)}}function Ix(e,t,n){return t.children.map(r=>{for(let o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return ss(e,r,o);return ss(e,r)})}function Mx(e){return new jr(new ke(e.url),new ke(e.params),new ke(e.queryParams),new ke(e.fragment),new ke(e.data),e.outlet,e.component,e)}var as=class{redirectTo;navigationBehaviorOptions;constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},A_="ngNavigationCancelingError";function rl(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=Go(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=N_(!1,st.Redirect);return o.url=n,o.navigationBehaviorOptions=r,o}function N_(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[A_]=!0,n.cancellationCode=t,n}function Sx(e){return R_(e)&&Go(e.url)}function R_(e){return!!e&&e[A_]}var xx=(e,t,n,r)=>$(o=>(new qh(t,o.targetRouterState,o.currentRouterState,n,r).activate(e),o)),qh=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(t,n,r,o,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),Ih(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let o=jo(n);t.children.forEach(i=>{let s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(o===i)if(o.component){let s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=jo(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=jo(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){let o=jo(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new Uh(i.value.snapshot))}),t.children.length&&this.forwardEvent(new jh(t.value.snapshot))}activateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(Ih(o),o===i)if(o.component){let s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(o.component){let s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.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),Ih(a.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=o,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,r)}},ol=class{path;route;constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},$o=class{component;route;constructor(t,n){this.component=t,this.route=n}};function Tx(e,t,n){let r=e._root,o=t?t._root:null;return Ji(r,o,n,[r.value])}function Ax(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function Qo(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!Lu(e)?e:t.get(e):r}function Ji(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=jo(t);return e.children.forEach(s=>{Nx(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>ns(a,n.getContext(s),o)),o}function Nx(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let c=Rx(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new ol(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?Ji(e,t,a?a.children:null,r,o):Ji(e,t,n,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new $o(a.outlet.component,s))}else s&&ns(t,a,o),o.canActivateChecks.push(new ol(r)),i.component?Ji(e,null,a?a.children:null,r,o):Ji(e,null,n,r,o);return o}function Rx(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!Vr(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Vr(e.url,t.url)||!an(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Gh(e,t)||!an(e.queryParams,t.queryParams);case"paramsChange":default:return!Gh(e,t)}}function ns(e,t,n){let r=jo(e),o=e.value;Object.entries(r).forEach(([i,s])=>{o.component?t?ns(s,t.children.getContext(i),n):ns(s,null,n):ns(s,t,n)}),o.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new $o(t.outlet.component,o)):n.canDeactivateChecks.push(new $o(null,o)):n.canDeactivateChecks.push(new $o(null,o))}function fs(e){return typeof e=="function"}function Ox(e){return typeof e=="boolean"}function kx(e){return e&&fs(e.canLoad)}function Px(e){return e&&fs(e.canActivate)}function Fx(e){return e&&fs(e.canActivateChild)}function Lx(e){return e&&fs(e.canDeactivate)}function Vx(e){return e&&fs(e.canMatch)}function O_(e){return e instanceof fn||e?.name==="EmptyError"}var Gc=Symbol("INITIAL_VALUE");function Zo(){return He(e=>fa(e.map(t=>t.pipe(hn(1),Du(Gc)))).pipe($(t=>{for(let n of t)if(n!==!0){if(n===Gc)return Gc;if(n===!1||jx(n))return n}return!0}),nt(t=>t!==Gc),hn(1)))}function jx(e){return Go(e)||e instanceof as}function Bx(e,t){return we(n=>{let{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return s.length===0&&i.length===0?P(Q(M({},n),{guardsResult:!0})):Ux(s,r,o,e).pipe(we(a=>a&&Ox(a)?$x(r,i,e,t):P(a)),$(a=>Q(M({},n),{guardsResult:a})))})}function Ux(e,t,n,r){return pe(e).pipe(we(o=>qx(o.component,o.route,n,t,r)),pn(o=>o!==!0,!0))}function $x(e,t,n,r){return pe(t).pipe(Pn(o=>so(zx(o.route.parent,r),Hx(o.route,r),Wx(e,o.path,n),Gx(e,o.route,n))),pn(o=>o!==!0,!0))}function Hx(e,t){return e!==null&&t&&t(new Bh(e)),P(!0)}function zx(e,t){return e!==null&&t&&t(new Vh(e)),P(!0)}function Gx(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return P(!0);let o=r.map(i=>fi(()=>{let s=Yo(t)??n,a=Qo(i,s),c=Px(a)?a.canActivate(t,e):Fe(s,()=>a(t,e));return xn(c).pipe(pn())}));return P(o).pipe(Zo())}function Wx(e,t,n){let r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>Ax(s)).filter(s=>s!==null).map(s=>fi(()=>{let a=s.guards.map(c=>{let l=Yo(s.node)??n,u=Qo(c,l),d=Fx(u)?u.canActivateChild(r,e):Fe(l,()=>u(r,e));return xn(d).pipe(pn())});return P(a).pipe(Zo())}));return P(i).pipe(Zo())}function qx(e,t,n,r,o){let i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!i||i.length===0)return P(!0);let s=i.map(a=>{let c=Yo(t)??o,l=Qo(a,c),u=Lx(l)?l.canDeactivate(e,t,n,r):Fe(c,()=>l(e,t,n,r));return xn(u).pipe(pn())});return P(s).pipe(Zo())}function Zx(e,t,n,r){let o=t.canLoad;if(o===void 0||o.length===0)return P(!0);let i=o.map(s=>{let a=Qo(s,e),c=kx(a)?a.canLoad(t,n):Fe(e,()=>a(t,n));return xn(c)});return P(i).pipe(Zo(),k_(r))}function k_(e){return hu(xe(t=>{if(typeof t!="boolean")throw rl(e,t)}),$(t=>t===!0))}function Yx(e,t,n,r){let o=t.canMatch;if(!o||o.length===0)return P(!0);let i=o.map(s=>{let a=Qo(s,e),c=Vx(a)?a.canMatch(t,n):Fe(e,()=>a(t,n));return xn(c)});return P(i).pipe(Zo(),k_(r))}var cs=class{segmentGroup;constructor(t){this.segmentGroup=t||null}},ls=class extends Error{urlTree;constructor(t){super(),this.urlTree=t}};function Vo(e){return io(new cs(e))}function Qx(e){return io(new S(4e3,!1))}function Kx(e){return io(N_(!1,st.GuardRejected))}var Zh=class{urlSerializer;urlTree;constructor(t,n){this.urlSerializer=t,this.urlTree=n}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),o.numberOfChildren===0)return P(r);if(o.numberOfChildren>1||!o.children[z])return Qx(`${t.redirectTo}`);o=o.children[z]}}applyRedirectCommands(t,n,r,o,i){return Xx(n,o,i).pipe($(s=>{if(s instanceof Sn)throw new ls(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),t,r);if(s[0]==="/")throw new ls(a);return a}))}applyRedirectCreateUrlTree(t,n,r,o){let i=this.createSegmentGroup(t,n.root,r,o);return new Sn(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([o,i])=>{if(typeof i=="string"&&i[0]===":"){let a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(t,n,r,o){let i=this.createSegments(t,n.segments,r,o),s={};return Object.entries(n.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(t,c,r,o)}),new se(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path[0]===":"?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){let o=r[n.path.substring(1)];if(!o)throw new S(4001,!1);return o}findOrReturn(t,n){let r=0;for(let o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}};function Xx(e,t,n){if(typeof e=="string")return P(e);let r=e,{queryParams:o,fragment:i,routeConfig:s,url:a,outlet:c,params:l,data:u,title:d}=t;return xn(Fe(n,()=>r({params:l,data:u,queryParams:o,fragment:i,routeConfig:s,url:a,outlet:c,title:d})))}var Yh={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Jx(e,t,n,r,o){let i=P_(e,t,n);return i.matched?(r=Cx(t,r),Yx(r,t,n,o).pipe($(s=>s===!0?i:M({},Yh)))):P(i)}function P_(e,t,n){if(t.path==="**")return eT(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?M({},Yh):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let o=(t.matcher||qS)(n,e,t);if(!o)return M({},Yh);let i={};Object.entries(o.posParams??{}).forEach(([a,c])=>{i[a]=c.path});let s=o.consumed.length>0?M(M({},i),o.consumed[o.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function eT(e){return{matched:!0,parameters:e.length>0?f_(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function c_(e,t,n,r){return n.length>0&&rT(e,n,r)?{segmentGroup:new se(t,nT(r,new se(n,e.children))),slicedSegments:[]}:n.length===0&&oT(e,n,r)?{segmentGroup:new se(e.segments,tT(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new se(e.segments,e.children),slicedSegments:n}}function tT(e,t,n,r){let o={};for(let i of n)if(al(e,t,i)&&!r[jt(i)]){let s=new se([],{});o[jt(i)]=s}return M(M({},r),o)}function nT(e,t){let n={};n[z]=t;for(let r of e)if(r.path===""&&jt(r)!==z){let o=new se([],{});n[jt(r)]=o}return n}function rT(e,t,n){return n.some(r=>al(e,t,r)&&jt(r)!==z)}function oT(e,t,n){return n.some(r=>al(e,t,r))}function al(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function iT(e,t,n){return t.length===0&&!e.children[n]}var Qh=class{};function sT(e,t,n,r,o,i,s="emptyOnly"){return new Kh(e,t,n,r,o,s,i).recognize()}var aT=31,Kh=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(t,n,r,o,i,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Zh(this.urlSerializer,this.urlTree)}noMatchError(t){return new S(4002,`'${t.segmentGroup}'`)}recognize(){let t=c_(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe($(({children:n,rootSnapshot:r})=>{let o=new ht(r,n),i=new nl("",o),s=fx(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s}}))}match(t){let n=new Uo([],Object.freeze({}),Object.freeze(M({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),z,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,z,n).pipe($(r=>({children:r,rootSnapshot:n})),kn(r=>{if(r instanceof ls)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof cs?this.noMatchError(r):r}))}processSegmentGroup(t,n,r,o,i){return r.segments.length===0&&r.hasChildren()?this.processChildren(t,n,r,i):this.processSegment(t,n,r,r.segments,o,!0,i).pipe($(s=>s instanceof ht?[s]:[]))}processChildren(t,n,r,o){let i=[];for(let s of Object.keys(r.children))s==="primary"?i.unshift(s):i.push(s);return pe(i).pipe(Pn(s=>{let a=r.children[s],c=Dx(n,s);return this.processSegmentGroup(t,c,a,s,o)}),Cu((s,a)=>(s.push(...a),s)),Fn(null),_u(),we(s=>{if(s===null)return Vo(r);let a=F_(s);return cT(a),P(a)}))}processSegment(t,n,r,o,i,s,a){return pe(n).pipe(Pn(c=>this.processSegmentAgainstRoute(c._injector??t,n,c,r,o,i,s,a).pipe(kn(l=>{if(l instanceof cs)return P(null);throw l}))),pn(c=>!!c),kn(c=>{if(O_(c))return iT(r,o,i)?P(new Qh):Vo(r);throw c}))}processSegmentAgainstRoute(t,n,r,o,i,s,a,c){return jt(r)!==s&&(s===z||!al(o,i,r))?Vo(o):r.redirectTo===void 0?this.matchSegmentAgainstRoute(t,o,r,i,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s,c):Vo(o)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s,a){let{matched:c,parameters:l,consumedSegments:u,positionalParamSegments:d,remainingSegments:h}=P_(n,o,i);if(!c)return Vo(n);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>aT&&(this.allowRedirects=!1));let f=new Uo(i,l,Object.freeze(M({},this.urlTree.queryParams)),this.urlTree.fragment,l_(o),jt(o),o.component??o._loadedComponent??null,o,u_(o)),v=tl(f,a,this.paramsInheritanceStrategy);return f.params=Object.freeze(v.params),f.data=Object.freeze(v.data),this.applyRedirects.applyRedirectCommands(u,o.redirectTo,d,f,t).pipe(He(g=>this.applyRedirects.lineralizeSegments(o,g)),we(g=>this.processSegment(t,r,n,g.concat(h),s,!1,a)))}matchSegmentAgainstRoute(t,n,r,o,i,s){let a=Jx(n,r,o,t,this.urlSerializer);return r.path==="**"&&(n.children={}),a.pipe(He(c=>c.matched?(t=r._injector??t,this.getChildConfig(t,r,o).pipe(He(({routes:l})=>{let u=r._loadedInjector??t,{parameters:d,consumedSegments:h,remainingSegments:f}=c,v=new Uo(h,d,Object.freeze(M({},this.urlTree.queryParams)),this.urlTree.fragment,l_(r),jt(r),r.component??r._loadedComponent??null,r,u_(r)),m=tl(v,s,this.paramsInheritanceStrategy);v.params=Object.freeze(m.params),v.data=Object.freeze(m.data);let{segmentGroup:g,slicedSegments:p}=c_(n,h,f,l);if(p.length===0&&g.hasChildren())return this.processChildren(u,l,g,v).pipe($(A=>new ht(v,A)));if(l.length===0&&p.length===0)return P(new ht(v,[]));let w=jt(r)===i;return this.processSegment(u,l,g,p,w?z:i,!0,v).pipe($(A=>new ht(v,A instanceof ht?[A]:[])))}))):Vo(n)))}getChildConfig(t,n,r){return n.children?P({routes:n.children,injector:t}):n.loadChildren?n._loadedRoutes!==void 0?P({routes:n._loadedRoutes,injector:n._loadedInjector}):Zx(t,n,r,this.urlSerializer).pipe(we(o=>o?this.configLoader.loadChildren(t,n).pipe(xe(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):Kx(n))):P({routes:[],injector:t})}};function cT(e){e.sort((t,n)=>t.value.outlet===z?-1:n.value.outlet===z?1:t.value.outlet.localeCompare(n.value.outlet))}function lT(e){let t=e.value.routeConfig;return t&&t.path===""}function F_(e){let t=[],n=new Set;for(let r of e){if(!lT(r)){t.push(r);continue}let o=t.find(i=>r.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...r.children),n.add(o)):t.push(r)}for(let r of n){let o=F_(r.children);t.push(new ht(r.value,o))}return t.filter(r=>!n.has(r))}function l_(e){return e.data||{}}function u_(e){return e.resolve||{}}function uT(e,t,n,r,o,i){return we(s=>sT(e,t,n,r,s.extractedUrl,o,i).pipe($(({state:a,tree:c})=>Q(M({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function dT(e,t){return we(n=>{let{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return P(n);let i=new Set(o.map(c=>c.route)),s=new Set;for(let c of i)if(!s.has(c))for(let l of L_(c))s.add(l);let a=0;return pe(s).pipe(Pn(c=>i.has(c)?fT(c,r,e,t):(c.data=tl(c,c.parent,e).resolve,P(void 0))),xe(()=>a++),ao(1),we(c=>a===s.size?P(n):et))})}function L_(e){let t=e.children.map(n=>L_(n)).flat();return[e,...t]}function fT(e,t,n,r){let o=e.routeConfig,i=e._resolve;return o?.title!==void 0&&!S_(o)&&(i[us]=o.title),fi(()=>(e.data=tl(e,e.parent,n).resolve,hT(i,e,t,r).pipe($(s=>(e._resolvedData=s,e.data=M(M({},e.data),s),null)))))}function hT(e,t,n,r){let o=xh(e);if(o.length===0)return P({});let i={};return pe(o).pipe(we(s=>pT(e[s],t,n,r).pipe(pn(),xe(a=>{if(a instanceof as)throw rl(new zo,a);i[s]=a}))),ao(1),$(()=>i),kn(s=>O_(s)?et:io(s)))}function pT(e,t,n,r){let o=Yo(t)??r,i=Qo(e,o),s=i.resolve?i.resolve(t,n):Fe(o,()=>i(t,n));return xn(s)}function Mh(e){return He(t=>{let n=e(t);return n?pe(n).pipe($(()=>t)):P(t)})}var V_=(()=>{class e{buildTitle(n){let r,o=n.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===z);return r}getResolvedTitleForRoute(n){return n.data[us]}static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:()=>_(gT),providedIn:"root"})}return e})(),gT=(()=>{class e extends V_{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||e)(k(r_))};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),cl=new x("",{providedIn:"root",factory:()=>({})}),ll=new x(""),j_=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=_(Xf);loadComponent(n,r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return P(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let o=xn(Fe(n,()=>r.loadComponent())).pipe($(B_),He(U_),xe(s=>{this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s}),Ln(()=>{this.componentLoaders.delete(r)})),i=new oo(o,()=>new Ce).pipe(ro());return this.componentLoaders.set(r,i),i}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return P({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=mT(r,this.compiler,n,this.onLoadEndListener).pipe(Ln(()=>{this.childrenLoaders.delete(r)})),s=new oo(i,()=>new Ce).pipe(ro());return this.childrenLoaders.set(r,s),s}static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function mT(e,t,n,r){return xn(Fe(n,()=>e.loadChildren())).pipe($(B_),He(U_),we(o=>o instanceof _c||Array.isArray(o)?P(o):pe(t.compileModuleAsync(o))),$(o=>{r&&r(e);let i,s,a=!1;return Array.isArray(o)?(s=o,a=!0):(i=o.create(n).injector,s=i.get(ll,[],{optional:!0,self:!0}).flat()),{routes:s.map(ep),injector:i}}))}function vT(e){return e&&typeof e=="object"&&"default"in e}function B_(e){return vT(e)?e.default:e}function U_(e){return P(e)}var tp=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:()=>_(yT),providedIn:"root"})}return e})(),yT=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),$_=new x("");var H_=new x(""),z_=(()=>{class e{currentNavigation=Cn(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=null;events=new Ce;transitionAbortWithErrorSubject=new Ce;configLoader=_(j_);environmentInjector=_(Ie);destroyRef=_(Xt);urlSerializer=_(il);rootContexts=_(ds);location=_(Oo);inputBindingEnabled=_(sl,{optional:!0})!==null;titleStrategy=_(V_);options=_(cl,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=_(tp);createViewTransition=_($_,{optional:!0});navigationErrorHandler=_(H_,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>P(void 0);rootComponentType=null;destroyed=!1;constructor(){let n=o=>this.events.next(new Fh(o)),r=o=>this.events.next(new Lh(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;We(()=>{this.transitions?.next(Q(M({},n),{extractedUrl:this.urlHandlingStrategy.extract(n.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:r}))})}setupNavigations(n){return this.transitions=new ke(null),this.transitions.pipe(nt(r=>r!==null),He(r=>{let o=!1;return P(r).pipe(He(i=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",st.SupersededByNewNavigation),et;this.currentTransition=r,this.currentNavigation.set({id:i.id,initialUrl:i.rawUrl,extractedUrl:i.extractedUrl,targetBrowserUrl:typeof i.extras.browserUrl=="string"?this.urlSerializer.parse(i.extras.browserUrl):i.extras.browserUrl,trigger:i.source,extras:i.extras,previousNavigation:this.lastSuccessfulNavigation?Q(M({},this.lastSuccessfulNavigation),{previousNavigation:null}):null,abort:()=>i.abortController.abort()});let s=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),a=i.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!s&&a!=="reload")return this.events.next(new nr(i.id,this.urlSerializer.serialize(i.rawUrl),"",Kc.IgnoredSameUrlNavigation)),i.resolve(!1),et;if(this.urlHandlingStrategy.shouldProcessUrl(i.rawUrl))return P(i).pipe(He(c=>(this.events.next(new Wo(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),c.id!==this.navigationId?et:Promise.resolve(c))),uT(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),xe(c=>{r.targetSnapshot=c.targetSnapshot,r.urlAfterRedirects=c.urlAfterRedirects,this.currentNavigation.update(u=>(u.finalUrl=c.urlAfterRedirects,u));let l=new Xc(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}));if(s&&this.urlHandlingStrategy.shouldProcessUrl(i.currentRawUrl)){let{id:c,extractedUrl:l,source:u,restoredState:d,extras:h}=i,f=new Wo(c,this.urlSerializer.serialize(l),u,d);this.events.next(f);let v=I_(this.rootComponentType).snapshot;return this.currentTransition=r=Q(M({},i),{targetSnapshot:v,urlAfterRedirects:l,extras:Q(M({},h),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(m=>(m.finalUrl=l,m)),P(r)}else return this.events.next(new nr(i.id,this.urlSerializer.serialize(i.extractedUrl),"",Kc.IgnoredByUrlHandlingStrategy)),i.resolve(!1),et}),xe(i=>{let s=new Rh(i.id,this.urlSerializer.serialize(i.extractedUrl),this.urlSerializer.serialize(i.urlAfterRedirects),i.targetSnapshot);this.events.next(s)}),$(i=>(this.currentTransition=r=Q(M({},i),{guards:Tx(i.targetSnapshot,i.currentSnapshot,this.rootContexts)}),r)),Bx(this.environmentInjector,i=>this.events.next(i)),xe(i=>{if(r.guardsResult=i.guardsResult,i.guardsResult&&typeof i.guardsResult!="boolean")throw rl(this.urlSerializer,i.guardsResult);let s=new Oh(i.id,this.urlSerializer.serialize(i.extractedUrl),this.urlSerializer.serialize(i.urlAfterRedirects),i.targetSnapshot,!!i.guardsResult);this.events.next(s)}),nt(i=>i.guardsResult?!0:(this.cancelNavigationTransition(i,"",st.GuardRejected),!1)),Mh(i=>{if(i.guards.canActivateChecks.length!==0)return P(i).pipe(xe(s=>{let a=new kh(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),He(s=>{let a=!1;return P(s).pipe(dT(this.paramsInheritanceStrategy,this.environmentInjector),xe({next:()=>a=!0,complete:()=>{a||this.cancelNavigationTransition(s,"",st.NoDataFromResolver)}}))}),xe(s=>{let a=new Ph(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}))}),Mh(i=>{let s=a=>{let c=[];if(a.routeConfig?.loadComponent){let l=Yo(a)??this.environmentInjector;c.push(this.configLoader.loadComponent(l,a.routeConfig).pipe(xe(u=>{a.component=u}),$(()=>{})))}for(let l of a.children)c.push(...s(l));return c};return fa(s(i.targetSnapshot.root)).pipe(Fn(null),hn(1))}),Mh(()=>this.afterPreactivation()),He(()=>{let{currentSnapshot:i,targetSnapshot:s}=r,a=this.createViewTransition?.(this.environmentInjector,i.root,s.root);return a?pe(a).pipe($(()=>r)):P(r)}),$(i=>{let s=wx(n.routeReuseStrategy,i.targetSnapshot,i.currentRouterState);return this.currentTransition=r=Q(M({},i),{targetRouterState:s}),this.currentNavigation.update(a=>(a.targetRouterState=s,a)),r}),xe(()=>{this.events.next(new is)}),xx(this.rootContexts,n.routeReuseStrategy,i=>this.events.next(i),this.inputBindingEnabled),hn(1),pa(new Z(i=>{let s=r.abortController.signal,a=()=>i.next();return s.addEventListener("abort",a),()=>s.removeEventListener("abort",a)}).pipe(nt(()=>!o&&!r.targetRouterState),xe(()=>{this.cancelNavigationTransition(r,r.abortController.signal.reason+"",st.Aborted)}))),xe({next:i=>{o=!0,this.lastSuccessfulNavigation=We(this.currentNavigation),this.events.next(new tr(i.id,this.urlSerializer.serialize(i.extractedUrl),this.urlSerializer.serialize(i.urlAfterRedirects))),this.titleStrategy?.updateTitle(i.targetRouterState.snapshot),i.resolve(!0)},complete:()=>{o=!0}}),pa(this.transitionAbortWithErrorSubject.pipe(xe(i=>{throw i}))),Ln(()=>{o||this.cancelNavigationTransition(r,"",st.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),kn(i=>{if(this.destroyed)return r.resolve(!1),et;if(o=!0,R_(i))this.events.next(new Mn(r.id,this.urlSerializer.serialize(r.extractedUrl),i.message,i.cancellationCode)),Sx(i)?this.events.next(new qo(i.url,i.navigationBehaviorOptions)):r.resolve(!1);else{let s=new os(r.id,this.urlSerializer.serialize(r.extractedUrl),i,r.targetSnapshot??void 0);try{let a=Fe(this.environmentInjector,()=>this.navigationErrorHandler?.(s));if(a instanceof as){let{message:c,cancellationCode:l}=rl(this.urlSerializer,a);this.events.next(new Mn(r.id,this.urlSerializer.serialize(r.extractedUrl),c,l)),this.events.next(new qo(a.redirectTo,a.navigationBehaviorOptions))}else throw this.events.next(s),i}catch(a){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(a)}}return et}))}))}cancelNavigationTransition(n,r,o){let i=new Mn(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),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=We(this.currentNavigation),o=r?.targetBrowserUrl??r?.extractedUrl;return n.toString()!==o?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function _T(e){return e!==ts}var CT=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:()=>_(DT),providedIn:"root"})}return e})(),Xh=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},DT=(()=>{class e extends Xh{static \u0275fac=(()=>{let n;return function(o){return(n||(n=Kn(e)))(o||e)}})();static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),G_=(()=>{class e{urlSerializer=_(il);options=_(cl,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=_(Oo);urlHandlingStrategy=_(tp);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Sn;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:n,initialUrl:r,targetBrowserUrl:o}){let i=n!==void 0?this.urlHandlingStrategy.merge(n,r):r,s=o??i;return s instanceof Sn?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:n,finalUrl:r,initialUrl:o}){r&&n?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,o),this.routerState=n):this.rawUrlTree=o}routerState=I_(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:n}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n??this.rawUrlTree)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:()=>_(ET),providedIn:"root"})}return e})(),ET=(()=>{class e extends G_{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}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 Wo?this.updateStateMemento():n instanceof nr?this.commitTransition(r):n instanceof Xc?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof is?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof Mn&&n.code!==st.SupersededByNewNavigation&&n.code!==st.Redirect?this.restoreHistory(r):n instanceof os?this.restoreHistory(r,!0):n instanceof tr&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,{extras:r,id:o}){let{replaceUrl:i,state:s}=r;if(this.location.isCurrentPathEqualTo(n)||i){let a=this.browserPageId,c=M(M({},s),this.generateNgRouterState(o,a));this.location.replaceState(n,"",c)}else{let a=M(M({},s),this.generateNgRouterState(o,this.browserPageId+1));this.location.go(n,"",a)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,i=this.currentPageId-o;i!==0?this.location.historyGo(i):this.getCurrentUrlTree()===n.finalUrl&&i===0&&(this.resetInternalState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(n),this.resetUrlToCurrentUrlTree())}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(o){return(n||(n=Kn(e)))(o||e)}})();static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function W_(e,t){e.events.pipe(nt(n=>n instanceof tr||n instanceof Mn||n instanceof os||n instanceof nr),$(n=>n instanceof tr||n instanceof nr?0:(n instanceof Mn?n.code===st.Redirect||n.code===st.SupersededByNewNavigation:!1)?2:1),nt(n=>n!==2),hn(1)).subscribe(()=>{t()})}var bT={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},wT={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},np=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=_($f);stateManager=_(G_);options=_(cl,{optional:!0})||{};pendingTasks=_(Jt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=_(z_);urlSerializer=_(il);location=_(Oo);urlHandlingStrategy=_(tp);injector=_(Ie);_events=new Ce;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=_(CT);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=_(ll,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!_(sl,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}eventsSubscription=new _e;subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,i=We(this.navigationTransitions.currentNavigation);if(o!==null&&i!==null){if(this.stateManager.handleRouterEvent(r,i),r instanceof Mn&&r.code!==st.Redirect&&r.code!==st.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof tr)this.navigated=!0;else if(r instanceof qo){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),c=M({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||_T(o.source)},s);this.scheduleNavigation(a,ts,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}_x(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortWithErrorSubject.next(o)}});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),ts,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r,o)=>{this.navigateToSyncWithBrowser(n,o,r)})}navigateToSyncWithBrowser(n,r,o){let i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){let c=M({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(i.state=c)}let a=this.parseUrl(n);this.scheduleNavigation(a,r,s,i).catch(c=>{this.disposed||this.injector.get(dt)(c)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return We(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(ep),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,l=c?this.currentUrlTree.fragment:s,u=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":u=M(M({},this.currentUrlTree.queryParams),i);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=i||null}u!==null&&(u=this.removeEmptyProps(u));let d;try{let h=o?o.snapshot:this.routerState.snapshot.root;d=D_(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root}return E_(d,n,u,l??null)}navigateByUrl(n,r={skipLocationChange:!1}){let o=Go(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,ts,null,r)}navigate(n,r={skipLocationChange:!1}){return IT(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.urlSerializer.parse("/")}}isActive(n,r){let o;if(r===!0?o=M({},bT):r===!1?o=M({},wT):o=r,Go(n))return o_(this.currentUrlTree,n,o);let i=this.parseUrl(n);return o_(this.currentUrlTree,i,o)}removeEmptyProps(n){return Object.entries(n).reduce((r,[o,i])=>(i!=null&&(r[o]=i),r),{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,c,l;s?(a=s.resolve,c=s.reject,l=s.promise):l=new Promise((d,h)=>{a=d,c=h});let u=this.pendingTasks.add();return W_(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(d=>Promise.reject(d))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function IT(e){for(let t=0;t<e.length;t++)if(e[t]==null)throw new S(4008,!1)}var MT=new x("");function rp(e,...t){return fo([{provide:ll,multi:!0,useValue:e},[],{provide:jr,useFactory:ST,deps:[np]},{provide:Ec,multi:!0,useFactory:xT},t.map(n=>n.\u0275providers)])}function ST(e){return e.routerState.root}function xT(){let e=_(pt);return t=>{let n=e.get(wn);if(t!==n.components[0])return;let r=e.get(np),o=e.get(TT);e.get(AT)===1&&r.initialNavigation(),e.get(NT,null,{optional:!0})?.setUpPreloading(),e.get(MT,null,{optional:!0})?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var TT=new x("",{factory:()=>new Ce}),AT=new x("",{providedIn:"root",factory:()=>1});var NT=new x("");var q_=[];var Z_={providers:[rp(q_),Hc()]};var r0=(()=>{class e{_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||e)(oe(Ar),oe(Lt))};static \u0275dir=Ge({type:e})}return e})(),cp=(()=>{class e extends r0{static \u0275fac=(()=>{let n;return function(o){return(n||(n=Kn(e)))(o||e)}})();static \u0275dir=Ge({type:e,features:[bn]})}return e})(),pl=new x("");var OT={provide:pl,useExisting:yn(()=>gl),multi:!0};function kT(){let e=Dt()?Dt().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var PT=new x(""),gl=(()=>{class e extends r0{_compositionMode;_composing=!1;constructor(n,r,o){super(n,r),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!kT())}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||e)(oe(Ar),oe(Lt),oe(PT,8))};static \u0275dir=Ge({type:e,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,o){r&1&&q("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},standalone:!1,features:[Ao([OT]),bn]})}return e})();var FT=new x(""),LT=new x("");function o0(e){return e!=null}function i0(e){return Xn(e)?pe(e):e}function s0(e){let t={};return e.forEach(n=>{t=n!=null?M(M({},t),n):t}),Object.keys(t).length===0?null:t}function a0(e,t){return t.map(n=>n(e))}function VT(e){return!e.validate}function c0(e){return e.map(t=>VT(t)?t:n=>t.validate(n))}function jT(e){if(!e)return null;let t=e.filter(o0);return t.length==0?null:function(n){return s0(a0(n,t))}}function l0(e){return e!=null?jT(c0(e)):null}function BT(e){if(!e)return null;let t=e.filter(o0);return t.length==0?null:function(n){let r=a0(n,t).map(i0);return yu(r).pipe($(s0))}}function u0(e){return e!=null?BT(c0(e)):null}function Y_(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function UT(e){return e._rawValidators}function $T(e){return e._rawAsyncValidators}function op(e){return e?Array.isArray(e)?e:[e]:[]}function dl(e,t){return Array.isArray(e)?e.includes(t):e===t}function Q_(e,t){let n=op(t);return op(e).forEach(o=>{dl(n,o)||n.push(o)}),n}function K_(e,t){return op(t).filter(n=>!dl(e,n))}var fl=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(t){this._rawValidators=t||[],this._composedValidatorFn=l0(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=u0(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},ip=class extends fl{name;get formDirective(){return null}get path(){return null}},vs=class extends fl{_parent=null;name=null;valueAccessor=null},sp=class{_cd;constructor(t){this._cd=t}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}},HT={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},J4=Q(M({},HT),{"[class.ng-submitted]":"isSubmitted"}),d0=(()=>{class e extends sp{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(oe(vs,2))};static \u0275dir=Ge({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&sn("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[bn]})}return e})();var hs="VALID",ul="INVALID",Ko="PENDING",ps="DISABLED",Jo=class{},hl=class extends Jo{value;source;constructor(t,n){super(),this.value=t,this.source=n}},gs=class extends Jo{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},ms=class extends Jo{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},Xo=class extends Jo{status;source;constructor(t,n){super(),this.status=t,this.source=n}};function zT(e){return(ml(e)?e.validators:e)||null}function GT(e){return Array.isArray(e)?l0(e):e||null}function WT(e,t){return(ml(t)?t.asyncValidators:e)||null}function qT(e){return Array.isArray(e)?u0(e):e||null}function ml(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var ap=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,n){this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return We(this.statusReactive)}set status(t){We(()=>this.statusReactive.set(t))}_status=Bi(()=>this.statusReactive());statusReactive=Cn(void 0);get valid(){return this.status===hs}get invalid(){return this.status===ul}get pending(){return this.status==Ko}get disabled(){return this.status===ps}get enabled(){return this.status!==ps}errors;get pristine(){return We(this.pristineReactive)}set pristine(t){We(()=>this.pristineReactive.set(t))}_pristine=Bi(()=>this.pristineReactive());pristineReactive=Cn(!0);get dirty(){return!this.pristine}get touched(){return We(this.touchedReactive)}set touched(t){We(()=>this.touchedReactive.set(t))}_touched=Bi(()=>this.touchedReactive());touchedReactive=Cn(!1);get untouched(){return!this.touched}_events=new Ce;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(Q_(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Q_(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(K_(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(K_(t,this._rawAsyncValidators))}hasValidator(t){return dl(this._rawValidators,t)}hasAsyncValidator(t){return dl(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(Q(M({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new ms(!0,r))}markAllAsDirty(t={}){this.markAsDirty({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsDirty(t))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new ms(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(Q(M({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new gs(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new gs(!0,r))}markAsPending(t={}){this.status=Ko;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Xo(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(Q(M({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=ps,this.errors=null,this._forEachChild(o=>{o.disable(Q(M({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new hl(this.value,r)),this._events.next(new Xo(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Q(M({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=hs,this._forEachChild(r=>{r.enable(Q(M({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Q(M({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===hs||this.status===Ko)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new hl(this.value,n)),this._events.next(new Xo(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(Q(M({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ps:hs}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=Ko,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1,shouldHaveEmitted:t!==!1};let r=i0(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new Xo(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new re,this.statusChanges=new re}_calculateStatus(){return this._allControlsDisabled()?ps:this.errors?ul:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ko)?Ko:this._anyControlsHaveStatus(ul)?ul:hs}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),o=this.pristine!==r;this.pristine=r,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),o&&this._events.next(new gs(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new ms(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){ml(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=GT(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=qT(this._rawAsyncValidators)}};var f0=new x("",{providedIn:"root",factory:()=>lp}),lp="always";function ZT(e,t){return[...t.path,e]}function YT(e,t,n=lp){KT(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),XT(e,t),eA(e,t),JT(e,t),QT(e,t)}function X_(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function QT(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function KT(e,t){let n=UT(e);t.validator!==null?e.setValidators(Y_(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=$T(e);t.asyncValidator!==null?e.setAsyncValidators(Y_(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let o=()=>e.updateValueAndValidity();X_(t._rawValidators,o),X_(t._rawAsyncValidators,o)}function XT(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&h0(e,t)})}function JT(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&h0(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function h0(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function eA(e,t){let n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function tA(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function nA(e){return Object.getPrototypeOf(e.constructor)===cp}function rA(e,t){if(!t)return null;Array.isArray(t);let n,r,o;return t.forEach(i=>{i.constructor===gl?n=i:nA(i)?r=i:o=i}),o||r||n||null}function J_(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function e0(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var oA=class extends ap{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,n,r){super(zT(n),WT(r,n)),this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ml(n)&&(n.nonNullable||n.initialValueIsDefault)&&(e0(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){J_(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){J_(this._onDisabledChange,t)}_forEachChild(t){}_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(t){e0(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var iA={provide:vs,useExisting:yn(()=>up)},t0=Promise.resolve(),up=(()=>{class e extends vs{_changeDetectorRef;callSetDisabledState;control=new oA;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new re;constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=rA(this,i)}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),tA(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(){YT(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){t0.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&ih(r);t0.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?ZT(n,this._parent):[n]}static \u0275fac=function(r){return new(r||e)(oe(ip,9),oe(FT,10),oe(LT,10),oe(pl,10),oe(Ro,8),oe(f0,8))};static \u0275dir=Ge({type:e,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:[Ao([iA]),bn,nn]})}return e})();var sA={provide:pl,useExisting:yn(()=>vl),multi:!0};function p0(e,t){return e==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function aA(e){return e.split(":")[0]}var vl=(()=>{class e extends cp{value;_optionMap=new Map;_idCounter=0;set compareWith(n){this._compareWith=n}_compareWith=Object.is;appRefInjector=_(wn).injector;destroyRef=_(Xt);cdr=_(Ro);_queuedWrite=!1;_writeValueAfterRender(){this._queuedWrite||this.appRefInjector.destroyed||(this._queuedWrite=!0,Dc({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),o=p0(r,n);this.setProperty("value",o)}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=aA(n);return this._optionMap.has(r)?this._optionMap.get(r):n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=Kn(e)))(o||e)}})();static \u0275dir=Ge({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,o){r&1&&q("change",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[Ao([sA]),bn]})}return e})(),g0=(()=>{class e{_element;_renderer;_select;id;constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(n){this._select!=null&&(this._select._optionMap.set(this.id,n),this._setElementValue(p0(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),this._select._writeValueAfterRender())}static \u0275fac=function(r){return new(r||e)(oe(Lt),oe(Ar),oe(vl,9))};static \u0275dir=Ge({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})(),cA={provide:pl,useExisting:yn(()=>m0),multi:!0};function n0(e,t){return e==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function lA(e){return e.split(":")[0]}var m0=(()=>{class e extends cp{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 o=n.map(i=>this._getOptionId(i));r=(i,s)=>{i._setSelected(o.indexOf(s.toString())>-1)}}else r=(o,i)=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(n){this.onChange=r=>{let o=[],i=r.selectedOptions;if(i!==void 0){let s=i;for(let a=0;a<s.length;a++){let c=s[a],l=this._getOptionValue(c.value);o.push(l)}}else{let s=r.options;for(let a=0;a<s.length;a++){let c=s[a];if(c.selected){let l=this._getOptionValue(c.value);o.push(l)}}}this.value=o,n(o)}}_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=lA(n);return this._optionMap.has(r)?this._optionMap.get(r)._value:n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=Kn(e)))(o||e)}})();static \u0275dir=Ge({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,o){r&1&&q("change",function(s){return o.onChange(s.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[Ao([cA]),bn]})}return e})(),v0=(()=>{class e{_element;_renderer;_select;id;_value;constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){this._select!=null&&(this._value=n,this._setElementValue(n0(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(n0(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||e)(oe(Lt),oe(Ar),oe(m0,9))};static \u0275dir=Ge({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})();var uA=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=rn({type:e});static \u0275inj=Nt({})}return e})();var y0=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:f0,useValue:n.callSetDisabledState??lp}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=rn({type:e});static \u0275inj=Nt({imports:[uA]})}return e})();function fA(e,t){if(e&1&&(b(0,"span"),T(1),E()),e&2){let n=ee().$implicit;C(),be(" Branch: ",n.branches[0]," ")}}function hA(e,t){if(e&1&&(b(0,"span"),T(1),E()),e&2){let n=ee().$implicit;C(),be(" Tag: ",n.tags[0]," ")}}function pA(e,t){if(e&1){let n=ft();b(0,"div",14),q("click",function(){let o=ge(n).$implicit,i=ee();return me(i.onCommitClick(o))}),b(1,"div",15)(2,"div",16)(3,"div",17)(4,"span",18),T(5),E(),b(6,"span",19),T(7),E(),b(8,"span",20),T(9),E()(),b(10,"h3",21),T(11),E(),b(12,"div",22)(13,"span"),T(14),E(),he(15,fA,2,1,"span",23)(16,hA,2,1,"span",23),E()(),b(17,"div",24)(18,"button",25),q("click",function(o){let i=ge(n).$implicit;return ee().onCommitClick(i),me(o.stopPropagation())}),T(19," View "),E()()()()}if(e&2){let n=t.$implicit,r=ee();H("background-color",r.getColor("background","white"))("border-color",r.getColor("border","#e5e7eb"))("color",r.getColor("text","#111827")),C(4),H("color",r.getColor("text","#6b7280")),C(),Ne(n.hash.substring(0,8)),C(),H("color",r.getColor("text","#374151")),C(),Ne(n.author),C(),H("color",r.getColor("text","#6b7280")),C(),Ne(r.formatDate(n.date)),C(),H("color",r.getColor("text","#111827")),C(),Ne(n.message),C(),H("color",r.getColor("text","#6b7280")),C(2),be("",n.files.length," files changed"),C(),j("ngIf",n.branches.length>0),C(),j("ngIf",n.tags.length>0),C(2),H("background-color",r.getColor("primary","#3b82f6"))("color",r.getColor("text","white"))}}function gA(e,t){if(e&1){let n=ft();b(0,"button",28),q("click",function(){ge(n);let o=ee().$implicit,i=ee();return me(i.goToPage(o))}),T(1),E()}if(e&2){let n=ee().$implicit,r=ee();H("background-color",n===r.currentPage?r.getColor("primary","#3b82f6"):r.getColor("background","white"))("color",n===r.currentPage?r.getColor("text","white"):r.getColor("text","#374151"))("border-color",r.getColor("border","#d1d5db")),sn("active",n===r.currentPage),C(),be(" ",n," ")}}function mA(e,t){if(e&1&&(b(0,"span"),T(1," ... "),E()),e&2){let n=ee(2);H("padding","0.5rem")("color",n.getColor("text","#6b7280"))}}function vA(e,t){if(e&1&&(bc(0),he(1,gA,2,9,"button",26)(2,mA,2,4,"span",27),wc()),e&2){let n=t.$implicit;C(),j("ngIf",n!=="..."),C(),j("ngIf",n==="...")}}function yA(e,t){if(e&1&&(b(0,"div",29),T(1," No commits found matching your search criteria. "),E()),e&2){let n=ee();H("color",n.getColor("text","#6b7280"))("text-align","center")("padding","2rem")}}var yl=class e{commits=[];colorPalette;commitClick=new re;currentPage=1;pageSize=25;totalCommits=0;totalPages=1;pageChange=new re;pageSizeChange=new re;observer;ngOnInit(){this.setupDarkModeObserver()}ngOnDestroy(){this.observer&&this.observer.disconnect()}onCommitClick(t){this.commitClick.emit(t)}get paginatedCommits(){return this.commits}get startIndex(){return(this.currentPage-1)*this.pageSize}get endIndex(){return Math.min(this.startIndex+this.pageSize,this.totalCommits)}get visiblePages(){let t=[];if(this.totalPages<=5)for(let r=1;r<=this.totalPages;r++)t.push(r);else{t.push(1),this.currentPage>3&&t.push("...");let r=Math.max(2,this.currentPage-1),o=Math.min(this.totalPages-1,this.currentPage+1);for(let i=r;i<=o;i++)t.push(i);this.currentPage<this.totalPages-2&&t.push("..."),this.totalPages>1&&t.push(this.totalPages)}return t}goToPage(t){typeof t=="number"&&t>=1&&t<=this.totalPages&&t!==this.currentPage&&this.pageChange.emit(t)}onPageSizeChange(t){let n=parseInt(t.target.value);this.pageSizeChange.emit(n)}formatDate(t){let n=new Date(t);return n.toLocaleDateString()+" "+n.toLocaleTimeString()}setupDarkModeObserver(){this.observer=new MutationObserver(t=>{t.forEach(n=>{n.type==="attributes"&&n.attributeName==="class"&&setTimeout(()=>{this.getBackgroundColor()},0)})}),this.observer.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}getColor(t,n){return this.colorPalette?.colors[t]||n}getBackgroundColor(){return"transparent"}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Qe({type:e,selectors:[["app-commit-list"]],inputs:{commits:"commits",colorPalette:"colorPalette",currentPage:"currentPage",pageSize:"pageSize",totalCommits:"totalCommits",totalPages:"totalPages"},outputs:{commitClick:"commitClick",pageChange:"pageChange",pageSizeChange:"pageSizeChange"},decls:29,vars:71,consts:[[1,"commit-list"],[1,"pagination-info"],[1,"page-size-controls"],[3,"change","value"],["value","10"],["value","25"],["value","50"],["value","100"],["class","commit-item",3,"background-color","border-color","color","click",4,"ngFor","ngForOf"],[1,"pagination-controls"],[1,"pagination-btn",3,"click","disabled"],[1,"page-numbers"],[4,"ngFor","ngForOf"],["class","no-results",3,"color","text-align","padding",4,"ngIf"],[1,"commit-item",3,"click"],[1,"commit-header"],[1,"commit-info"],[1,"commit-meta"],[1,"commit-hash"],[1,"commit-author"],[1,"commit-date"],[1,"commit-message"],[1,"commit-stats"],[4,"ngIf"],[1,"commit-actions"],[1,"btn","btn-primary",3,"click"],["class","pagination-btn",3,"active","background-color","color","border-color","click",4,"ngIf"],[3,"padding","color",4,"ngIf"],[1,"pagination-btn",3,"click"],[1,"no-results"]],template:function(n,r){n&1&&(b(0,"div",0)(1,"div",1)(2,"span"),T(3),E(),b(4,"div",2)(5,"label"),T(6,"Page size:"),E(),b(7,"select",3),q("change",function(i){return r.onPageSizeChange(i)}),b(8,"option",4),T(9,"10"),E(),b(10,"option",5),T(11,"25"),E(),b(12,"option",6),T(13,"50"),E(),b(14,"option",7),T(15,"100"),E()()()(),he(16,pA,20,27,"div",8),b(17,"div",9)(18,"button",10),q("click",function(){return r.goToPage(1)}),T(19," \xAB "),E(),b(20,"button",10),q("click",function(){return r.goToPage(r.currentPage-1)}),T(21," \u2039 "),E(),b(22,"div",11),he(23,vA,3,2,"ng-container",12),E(),b(24,"button",10),q("click",function(){return r.goToPage(r.currentPage+1)}),T(25," \u203A "),E(),b(26,"button",10),q("click",function(){return r.goToPage(r.totalPages)}),T(27," \xBB "),E()(),he(28,yA,2,6,"div",13),E()),n&2&&(H("background-color",r.getBackgroundColor())("min-height","100vh"),C(),H("color",r.getColor("text","#6b7280"))("margin-bottom","1rem"),C(2),Sc("Showing ",r.startIndex+1,"-",r.endIndex," of ",r.commits.length," commits"),C(2),H("margin-right","0.5rem"),C(2),H("background-color",r.getColor("background","white"))("color",r.getColor("text","#111827"))("border-color",r.getColor("border","#d1d5db"))("padding","0.25rem 0.5rem")("border-radius","0.25rem")("font-size","0.875rem"),j("value",r.pageSize),C(9),j("ngForOf",r.paginatedCommits),C(),H("margin-top","2rem")("display","flex")("justify-content","center")("align-items","center")("gap","0.5rem"),C(),H("background-color",r.currentPage===1?r.getColor("text","#d1d5db"):r.getColor("background","white"))("color",r.currentPage===1?r.getColor("text","#9ca3af"):r.getColor("text","#374151"))("border-color",r.getColor("border","#d1d5db")),j("disabled",r.currentPage===1),C(2),H("background-color",r.currentPage===1?r.getColor("text","#d1d5db"):r.getColor("background","white"))("color",r.currentPage===1?r.getColor("text","#9ca3af"):r.getColor("text","#374151"))("border-color",r.getColor("border","#d1d5db")),j("disabled",r.currentPage===1),C(2),H("display","flex")("gap","0.25rem"),C(),j("ngForOf",r.visiblePages),C(),H("background-color",r.currentPage===r.totalPages?r.getColor("text","#d1d5db"):r.getColor("background","white"))("color",r.currentPage===r.totalPages?r.getColor("text","#9ca3af"):r.getColor("text","#374151"))("border-color",r.getColor("border","#d1d5db")),j("disabled",r.currentPage===r.totalPages),C(2),H("background-color",r.currentPage===r.totalPages?r.getColor("text","#d1d5db"):r.getColor("background","white"))("color",r.currentPage===r.totalPages?r.getColor("text","#9ca3af"):r.getColor("text","#374151"))("border-color",r.getColor("border","#d1d5db")),j("disabled",r.currentPage===r.totalPages),C(2),j("ngIf",r.commits.length===0))},dependencies:[it,Et,Vt],styles:[".commit-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;min-height:100vh;padding:1rem 0;transition:background-color .2s ease}.commit-item[_ngcontent-%COMP%]{background-color:#fff;border-radius:.5rem;box-shadow:0 1px 3px #0000001a;padding:1rem;cursor:pointer;transition:box-shadow .2s}.commit-item[_ngcontent-%COMP%]:hover{box-shadow:0 4px 6px #0000001a}.commit-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start}.commit-info[_ngcontent-%COMP%]{flex:1}.commit-meta[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem}.commit-hash[_ngcontent-%COMP%]{font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.875rem;color:#6b7280}.commit-author[_ngcontent-%COMP%]{font-size:.875rem;color:#374151}.commit-date[_ngcontent-%COMP%]{font-size:.875rem;color:#6b7280}.commit-message[_ngcontent-%COMP%]{font-size:1.125rem;font-weight:500;color:#111827;margin-bottom:.5rem}.commit-stats[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;font-size:.875rem;color:#6b7280}.commit-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}.no-results[_ngcontent-%COMP%]{font-size:1rem;font-style:italic}"]})};var _A={value:()=>{}};function C0(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new _l(n)}function _l(e){this._=e}function CA(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",o=n.indexOf(".");if(o>=0&&(r=n.slice(o+1),n=n.slice(0,o)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}_l.prototype=C0.prototype={constructor:_l,on:function(e,t){var n=this._,r=CA(e+"",n),o,i=-1,s=r.length;if(arguments.length<2){for(;++i<s;)if((o=(e=r[i]).type)&&(o=DA(n[o],e.name)))return o;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++i<s;)if(o=(e=r[i]).type)n[o]=_0(n[o],e.name,t);else if(t==null)for(o in n)n[o]=_0(n[o],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new _l(e)},call:function(e,t){if((o=arguments.length-2)>0)for(var n=new Array(o),r=0,o,i;r<o;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(i=this._[e],r=0,o=i.length;r<o;++r)i[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],o=0,i=r.length;o<i;++o)r[o].value.apply(t,n)}};function DA(e,t){for(var n=0,r=e.length,o;n<r;++n)if((o=e[n]).name===t)return o.value}function _0(e,t,n){for(var r=0,o=e.length;r<o;++r)if(e[r].name===t){e[r]=_A,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var Br=C0;var Cl="http://www.w3.org/1999/xhtml",dp={svg:"http://www.w3.org/2000/svg",xhtml:Cl,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Tn(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),dp.hasOwnProperty(t)?{space:dp[t],local:e}:e}function EA(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Cl&&t.documentElement.namespaceURI===Cl?t.createElement(e):t.createElementNS(n,e)}}function bA(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Dl(e){var t=Tn(e);return(t.local?bA:EA)(t)}function wA(){}function Ur(e){return e==null?wA:function(){return this.querySelector(e)}}function D0(e){typeof e!="function"&&(e=Ur(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i=t[o],s=i.length,a=r[o]=new Array(s),c,l,u=0;u<s;++u)(c=i[u])&&(l=e.call(c,c.__data__,u,i))&&("__data__"in c&&(l.__data__=c.__data__),a[u]=l);return new ve(r,this._parents)}function fp(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function IA(){return[]}function ys(e){return e==null?IA:function(){return this.querySelectorAll(e)}}function MA(e){return function(){return fp(e.apply(this,arguments))}}function E0(e){typeof e=="function"?e=MA(e):e=ys(e);for(var t=this._groups,n=t.length,r=[],o=[],i=0;i<n;++i)for(var s=t[i],a=s.length,c,l=0;l<a;++l)(c=s[l])&&(r.push(e.call(c,c.__data__,l,s)),o.push(c));return new ve(r,o)}function _s(e){return function(){return this.matches(e)}}function El(e){return function(t){return t.matches(e)}}var SA=Array.prototype.find;function xA(e){return function(){return SA.call(this.children,e)}}function TA(){return this.firstElementChild}function b0(e){return this.select(e==null?TA:xA(typeof e=="function"?e:El(e)))}var AA=Array.prototype.filter;function NA(){return Array.from(this.children)}function RA(e){return function(){return AA.call(this.children,e)}}function w0(e){return this.selectAll(e==null?NA:RA(typeof e=="function"?e:El(e)))}function I0(e){typeof e!="function"&&(e=_s(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i=t[o],s=i.length,a=r[o]=[],c,l=0;l<s;++l)(c=i[l])&&e.call(c,c.__data__,l,i)&&a.push(c);return new ve(r,this._parents)}function bl(e){return new Array(e.length)}function M0(){return new ve(this._enter||this._groups.map(bl),this._parents)}function Cs(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Cs.prototype={constructor:Cs,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function S0(e){return function(){return e}}function OA(e,t,n,r,o,i){for(var s=0,a,c=t.length,l=i.length;s<l;++s)(a=t[s])?(a.__data__=i[s],r[s]=a):n[s]=new Cs(e,i[s]);for(;s<c;++s)(a=t[s])&&(o[s]=a)}function kA(e,t,n,r,o,i,s){var a,c,l=new Map,u=t.length,d=i.length,h=new Array(u),f;for(a=0;a<u;++a)(c=t[a])&&(h[a]=f=s.call(c,c.__data__,a,t)+"",l.has(f)?o[a]=c:l.set(f,c));for(a=0;a<d;++a)f=s.call(e,i[a],a,i)+"",(c=l.get(f))?(r[a]=c,c.__data__=i[a],l.delete(f)):n[a]=new Cs(e,i[a]);for(a=0;a<u;++a)(c=t[a])&&l.get(h[a])===c&&(o[a]=c)}function PA(e){return e.__data__}function x0(e,t){if(!arguments.length)return Array.from(this,PA);var n=t?kA:OA,r=this._parents,o=this._groups;typeof e!="function"&&(e=S0(e));for(var i=o.length,s=new Array(i),a=new Array(i),c=new Array(i),l=0;l<i;++l){var u=r[l],d=o[l],h=d.length,f=FA(e.call(u,u&&u.__data__,l,r)),v=f.length,m=a[l]=new Array(v),g=s[l]=new Array(v),p=c[l]=new Array(h);n(u,d,m,g,p,f,t);for(var w=0,A=0,I,B;w<v;++w)if(I=m[w]){for(w>=A&&(A=w+1);!(B=g[A])&&++A<v;);I._next=B||null}}return s=new ve(s,r),s._enter=a,s._exit=c,s}function FA(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function T0(){return new ve(this._exit||this._groups.map(bl),this._parents)}function A0(e,t,n){var r=this.enter(),o=this,i=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(o=t(o),o&&(o=o.selection())),n==null?i.remove():n(i),r&&o?r.merge(o).order():o}function N0(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,o=n.length,i=r.length,s=Math.min(o,i),a=new Array(o),c=0;c<s;++c)for(var l=n[c],u=r[c],d=l.length,h=a[c]=new Array(d),f,v=0;v<d;++v)(f=l[v]||u[v])&&(h[v]=f);for(;c<o;++c)a[c]=n[c];return new ve(a,this._parents)}function R0(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],o=r.length-1,i=r[o],s;--o>=0;)(s=r[o])&&(i&&s.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(s,i),i=s);return this}function O0(e){e||(e=LA);function t(d,h){return d&&h?e(d.__data__,h.__data__):!d-!h}for(var n=this._groups,r=n.length,o=new Array(r),i=0;i<r;++i){for(var s=n[i],a=s.length,c=o[i]=new Array(a),l,u=0;u<a;++u)(l=s[u])&&(c[u]=l);c.sort(t)}return new ve(o,this._parents).order()}function LA(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function k0(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function P0(){return Array.from(this)}function F0(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],o=0,i=r.length;o<i;++o){var s=r[o];if(s)return s}return null}function L0(){let e=0;for(let t of this)++e;return e}function V0(){return!this.node()}function j0(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var o=t[n],i=0,s=o.length,a;i<s;++i)(a=o[i])&&e.call(a,a.__data__,i,o);return this}function VA(e){return function(){this.removeAttribute(e)}}function jA(e){return function(){this.removeAttributeNS(e.space,e.local)}}function BA(e,t){return function(){this.setAttribute(e,t)}}function UA(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function $A(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function HA(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function B0(e,t){var n=Tn(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?jA:VA:typeof t=="function"?n.local?HA:$A:n.local?UA:BA)(n,t))}function wl(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function zA(e){return function(){this.style.removeProperty(e)}}function GA(e,t,n){return function(){this.style.setProperty(e,t,n)}}function WA(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function U0(e,t,n){return arguments.length>1?this.each((t==null?zA:typeof t=="function"?WA:GA)(e,t,n??"")):rr(this.node(),e)}function rr(e,t){return e.style.getPropertyValue(t)||wl(e).getComputedStyle(e,null).getPropertyValue(t)}function qA(e){return function(){delete this[e]}}function ZA(e,t){return function(){this[e]=t}}function YA(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function $0(e,t){return arguments.length>1?this.each((t==null?qA:typeof t=="function"?YA:ZA)(e,t)):this.node()[e]}function H0(e){return e.trim().split(/^|\s+/)}function hp(e){return e.classList||new z0(e)}function z0(e){this._node=e,this._names=H0(e.getAttribute("class")||"")}z0.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function G0(e,t){for(var n=hp(e),r=-1,o=t.length;++r<o;)n.add(t[r])}function W0(e,t){for(var n=hp(e),r=-1,o=t.length;++r<o;)n.remove(t[r])}function QA(e){return function(){G0(this,e)}}function KA(e){return function(){W0(this,e)}}function XA(e,t){return function(){(t.apply(this,arguments)?G0:W0)(this,e)}}function q0(e,t){var n=H0(e+"");if(arguments.length<2){for(var r=hp(this.node()),o=-1,i=n.length;++o<i;)if(!r.contains(n[o]))return!1;return!0}return this.each((typeof t=="function"?XA:t?QA:KA)(n,t))}function JA(){this.textContent=""}function eN(e){return function(){this.textContent=e}}function tN(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function Z0(e){return arguments.length?this.each(e==null?JA:(typeof e=="function"?tN:eN)(e)):this.node().textContent}function nN(){this.innerHTML=""}function rN(e){return function(){this.innerHTML=e}}function oN(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Y0(e){return arguments.length?this.each(e==null?nN:(typeof e=="function"?oN:rN)(e)):this.node().innerHTML}function iN(){this.nextSibling&&this.parentNode.appendChild(this)}function Q0(){return this.each(iN)}function sN(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function K0(){return this.each(sN)}function X0(e){var t=typeof e=="function"?e:Dl(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function aN(){return null}function J0(e,t){var n=typeof e=="function"?e:Dl(e),r=t==null?aN:typeof t=="function"?t:Ur(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function cN(){var e=this.parentNode;e&&e.removeChild(this)}function eC(){return this.each(cN)}function lN(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function uN(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function tC(e){return this.select(e?uN:lN)}function nC(e){return arguments.length?this.property("__data__",e):this.node().__data__}function dN(e){return function(t){e.call(this,t,this.__data__)}}function fN(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function hN(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,o=t.length,i;n<o;++n)i=t[n],(!e.type||i.type===e.type)&&i.name===e.name?this.removeEventListener(i.type,i.listener,i.options):t[++r]=i;++r?t.length=r:delete this.__on}}}function pN(e,t,n){return function(){var r=this.__on,o,i=dN(t);if(r){for(var s=0,a=r.length;s<a;++s)if((o=r[s]).type===e.type&&o.name===e.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=i,o.options=n),o.value=t;return}}this.addEventListener(e.type,i,n),o={type:e.type,name:e.name,value:t,listener:i,options:n},r?r.push(o):this.__on=[o]}}function rC(e,t,n){var r=fN(e+""),o,i=r.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var c=0,l=a.length,u;c<l;++c)for(o=0,u=a[c];o<i;++o)if((s=r[o]).type===u.type&&s.name===u.name)return u.value}return}for(a=t?pN:hN,o=0;o<i;++o)this.each(a(r[o],t,n));return this}function oC(e,t,n){var r=wl(e),o=r.CustomEvent;typeof o=="function"?o=new o(t,n):(o=r.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function gN(e,t){return function(){return oC(this,e,t)}}function mN(e,t){return function(){return oC(this,e,t.apply(this,arguments))}}function iC(e,t){return this.each((typeof t=="function"?mN:gN)(e,t))}function*sC(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],o=0,i=r.length,s;o<i;++o)(s=r[o])&&(yield s)}var pp=[null];function ve(e,t){this._groups=e,this._parents=t}function aC(){return new ve([[document.documentElement]],pp)}function vN(){return this}ve.prototype=aC.prototype={constructor:ve,select:D0,selectAll:E0,selectChild:b0,selectChildren:w0,filter:I0,data:x0,enter:M0,exit:T0,join:A0,merge:N0,selection:vN,order:R0,sort:O0,call:k0,nodes:P0,node:F0,size:L0,empty:V0,each:j0,attr:B0,style:U0,property:$0,classed:q0,text:Z0,html:Y0,raise:Q0,lower:K0,append:X0,insert:J0,remove:eC,clone:tC,datum:nC,on:rC,dispatch:iC,[Symbol.iterator]:sC};var An=aC;function wt(e){return typeof e=="string"?new ve([[document.querySelector(e)]],[document.documentElement]):new ve([[e]],pp)}function cC(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Nn(e,t){if(e=cC(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var o=t.getBoundingClientRect();return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}var Il={capture:!0,passive:!1};function Ml(e){e.preventDefault(),e.stopImmediatePropagation()}function gp(e){var t=e.document.documentElement,n=wt(e).on("dragstart.drag",Ml,Il);"onselectstart"in t?n.on("selectstart.drag",Ml,Il):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function mp(e,t){var n=e.document.documentElement,r=wt(e).on("dragstart.drag",null);t&&(r.on("click.drag",Ml,Il),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function Sl(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function vp(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function bs(){}var Ds=.7,Al=1/Ds,ei="\\s*([+-]?\\d+)\\s*",Es="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",cn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",yN=/^#([0-9a-f]{3,8})$/,_N=new RegExp(`^rgb\\(${ei},${ei},${ei}\\)$`),CN=new RegExp(`^rgb\\(${cn},${cn},${cn}\\)$`),DN=new RegExp(`^rgba\\(${ei},${ei},${ei},${Es}\\)$`),EN=new RegExp(`^rgba\\(${cn},${cn},${cn},${Es}\\)$`),bN=new RegExp(`^hsl\\(${Es},${cn},${cn}\\)$`),wN=new RegExp(`^hsla\\(${Es},${cn},${cn},${Es}\\)$`),lC={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Sl(bs,or,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:uC,formatHex:uC,formatHex8:IN,formatHsl:MN,formatRgb:dC,toString:dC});function uC(){return this.rgb().formatHex()}function IN(){return this.rgb().formatHex8()}function MN(){return vC(this).formatHsl()}function dC(){return this.rgb().formatRgb()}function or(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=yN.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?fC(t):n===3?new at(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?xl(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?xl(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=_N.exec(e))?new at(t[1],t[2],t[3],1):(t=CN.exec(e))?new at(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=DN.exec(e))?xl(t[1],t[2],t[3],t[4]):(t=EN.exec(e))?xl(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=bN.exec(e))?gC(t[1],t[2]/100,t[3]/100,1):(t=wN.exec(e))?gC(t[1],t[2]/100,t[3]/100,t[4]):lC.hasOwnProperty(e)?fC(lC[e]):e==="transparent"?new at(NaN,NaN,NaN,0):null}function fC(e){return new at(e>>16&255,e>>8&255,e&255,1)}function xl(e,t,n,r){return r<=0&&(e=t=n=NaN),new at(e,t,n,r)}function SN(e){return e instanceof bs||(e=or(e)),e?(e=e.rgb(),new at(e.r,e.g,e.b,e.opacity)):new at}function ti(e,t,n,r){return arguments.length===1?SN(e):new at(e,t,n,r??1)}function at(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Sl(at,ti,vp(bs,{brighter(e){return e=e==null?Al:Math.pow(Al,e),new at(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ds:Math.pow(Ds,e),new at(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new at(Hr(this.r),Hr(this.g),Hr(this.b),Nl(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:hC,formatHex:hC,formatHex8:xN,formatRgb:pC,toString:pC}));function hC(){return`#${$r(this.r)}${$r(this.g)}${$r(this.b)}`}function xN(){return`#${$r(this.r)}${$r(this.g)}${$r(this.b)}${$r((isNaN(this.opacity)?1:this.opacity)*255)}`}function pC(){let e=Nl(this.opacity);return`${e===1?"rgb(":"rgba("}${Hr(this.r)}, ${Hr(this.g)}, ${Hr(this.b)}${e===1?")":`, ${e})`}`}function Nl(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Hr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function $r(e){return e=Hr(e),(e<16?"0":"")+e.toString(16)}function gC(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Bt(e,t,n,r)}function vC(e){if(e instanceof Bt)return new Bt(e.h,e.s,e.l,e.opacity);if(e instanceof bs||(e=or(e)),!e)return new Bt;if(e instanceof Bt)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),s=NaN,a=i-o,c=(i+o)/2;return a?(t===i?s=(n-r)/a+(n<r)*6:n===i?s=(r-t)/a+2:s=(t-n)/a+4,a/=c<.5?i+o:2-i-o,s*=60):a=c>0&&c<1?0:s,new Bt(s,a,c,e.opacity)}function yC(e,t,n,r){return arguments.length===1?vC(e):new Bt(e,t,n,r??1)}function Bt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Sl(Bt,yC,vp(bs,{brighter(e){return e=e==null?Al:Math.pow(Al,e),new Bt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ds:Math.pow(Ds,e),new Bt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new at(yp(e>=240?e-240:e+120,o,r),yp(e,o,r),yp(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Bt(mC(this.h),Tl(this.s),Tl(this.l),Nl(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=Nl(this.opacity);return`${e===1?"hsl(":"hsla("}${mC(this.h)}, ${Tl(this.s)*100}%, ${Tl(this.l)*100}%${e===1?")":`, ${e})`}`}}));function mC(e){return e=(e||0)%360,e<0?e+360:e}function Tl(e){return Math.max(0,Math.min(1,e||0))}function yp(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function _p(e,t,n,r,o){var i=e*e,s=i*e;return((1-3*e+3*i-s)*t+(4-6*i+3*s)*n+(1+3*e+3*i-3*s)*r+s*o)/6}function _C(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[r],i=e[r+1],s=r>0?e[r-1]:2*o-i,a=r<t-1?e[r+2]:2*i-o;return _p((n-r/t)*t,s,o,i,a)}}function CC(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),o=e[(r+t-1)%t],i=e[r%t],s=e[(r+1)%t],a=e[(r+2)%t];return _p((n-r/t)*t,o,i,s,a)}}var Cp=e=>()=>e;function TN(e,t){return function(n){return e+n*t}}function AN(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function DC(e){return(e=+e)==1?Rl:function(t,n){return n-t?AN(t,n,e):Cp(isNaN(t)?n:t)}}function Rl(e,t){var n=t-e;return n?TN(e,n):Cp(isNaN(e)?t:e)}var Ol=(function e(t){var n=DC(t);function r(o,i){var s=n((o=ti(o)).r,(i=ti(i)).r),a=n(o.g,i.g),c=n(o.b,i.b),l=Rl(o.opacity,i.opacity);return function(u){return o.r=s(u),o.g=a(u),o.b=c(u),o.opacity=l(u),o+""}}return r.gamma=e,r})(1);function EC(e){return function(t){var n=t.length,r=new Array(n),o=new Array(n),i=new Array(n),s,a;for(s=0;s<n;++s)a=ti(t[s]),r[s]=a.r||0,o[s]=a.g||0,i[s]=a.b||0;return r=e(r),o=e(o),i=e(i),a.opacity=1,function(c){return a.r=r(c),a.g=o(c),a.b=i(c),a+""}}}var NN=EC(_C),RN=EC(CC);function It(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Ep=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Dp=new RegExp(Ep.source,"g");function ON(e){return function(){return e}}function kN(e){return function(t){return e(t)+""}}function bp(e,t){var n=Ep.lastIndex=Dp.lastIndex=0,r,o,i,s=-1,a=[],c=[];for(e=e+"",t=t+"";(r=Ep.exec(e))&&(o=Dp.exec(t));)(i=o.index)>n&&(i=t.slice(n,i),a[s]?a[s]+=i:a[++s]=i),(r=r[0])===(o=o[0])?a[s]?a[s]+=o:a[++s]=o:(a[++s]=null,c.push({i:s,x:It(r,o)})),n=Dp.lastIndex;return n<t.length&&(i=t.slice(n),a[s]?a[s]+=i:a[++s]=i),a.length<2?c[0]?kN(c[0].x):ON(t):(t=c.length,function(l){for(var u=0,d;u<t;++u)a[(d=c[u]).i]=d.x(l);return a.join("")})}var bC=180/Math.PI,kl={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function wp(e,t,n,r,o,i){var s,a,c;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,c/=a),e*r<t*n&&(e=-e,t=-t,c=-c,s=-s),{translateX:o,translateY:i,rotate:Math.atan2(t,e)*bC,skewX:Math.atan(c)*bC,scaleX:s,scaleY:a}}var Pl;function wC(e){let t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?kl:wp(t.a,t.b,t.c,t.d,t.e,t.f)}function IC(e){return e==null?kl:(Pl||(Pl=document.createElementNS("http://www.w3.org/2000/svg","g")),Pl.setAttribute("transform",e),(e=Pl.transform.baseVal.consolidate())?(e=e.matrix,wp(e.a,e.b,e.c,e.d,e.e,e.f)):kl)}function MC(e,t,n,r){function o(l){return l.length?l.pop()+" ":""}function i(l,u,d,h,f,v){if(l!==d||u!==h){var m=f.push("translate(",null,t,null,n);v.push({i:m-4,x:It(l,d)},{i:m-2,x:It(u,h)})}else(d||h)&&f.push("translate("+d+t+h+n)}function s(l,u,d,h){l!==u?(l-u>180?u+=360:u-l>180&&(l+=360),h.push({i:d.push(o(d)+"rotate(",null,r)-2,x:It(l,u)})):u&&d.push(o(d)+"rotate("+u+r)}function a(l,u,d,h){l!==u?h.push({i:d.push(o(d)+"skewX(",null,r)-2,x:It(l,u)}):u&&d.push(o(d)+"skewX("+u+r)}function c(l,u,d,h,f,v){if(l!==d||u!==h){var m=f.push(o(f)+"scale(",null,",",null,")");v.push({i:m-4,x:It(l,d)},{i:m-2,x:It(u,h)})}else(d!==1||h!==1)&&f.push(o(f)+"scale("+d+","+h+")")}return function(l,u){var d=[],h=[];return l=e(l),u=e(u),i(l.translateX,l.translateY,u.translateX,u.translateY,d,h),s(l.rotate,u.rotate,d,h),a(l.skewX,u.skewX,d,h),c(l.scaleX,l.scaleY,u.scaleX,u.scaleY,d,h),l=u=null,function(f){for(var v=-1,m=h.length,g;++v<m;)d[(g=h[v]).i]=g.x(f);return d.join("")}}}var Ip=MC(wC,"px, ","px)","deg)"),Mp=MC(IC,", ",")",")");var PN=1e-12;function SC(e){return((e=Math.exp(e))+1/e)/2}function FN(e){return((e=Math.exp(e))-1/e)/2}function LN(e){return((e=Math.exp(2*e))-1)/(e+1)}var Sp=(function e(t,n,r){function o(i,s){var a=i[0],c=i[1],l=i[2],u=s[0],d=s[1],h=s[2],f=u-a,v=d-c,m=f*f+v*v,g,p;if(m<PN)p=Math.log(h/l)/t,g=function(le){return[a+le*f,c+le*v,l*Math.exp(t*le*p)]};else{var w=Math.sqrt(m),A=(h*h-l*l+r*m)/(2*l*n*w),I=(h*h-l*l-r*m)/(2*h*n*w),B=Math.log(Math.sqrt(A*A+1)-A),X=Math.log(Math.sqrt(I*I+1)-I);p=(X-B)/t,g=function(le){var de=le*p,Be=SC(B),fe=l/(n*w)*(Be*LN(t*de+B)-FN(B));return[a+fe*f,c+fe*v,l*Be/SC(t*de+B)]}}return g.duration=p*1e3*t/Math.SQRT2,g}return o.rho=function(i){var s=Math.max(.001,+i),a=s*s,c=a*a;return e(s,a,c)},o})(Math.SQRT2,2,4);var ni=0,Is=0,ws=0,TC=1e3,Fl,Ms,Ll=0,zr=0,Vl=0,Ss=typeof performance=="object"&&performance.now?performance:Date,AC=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Ts(){return zr||(AC(VN),zr=Ss.now()+Vl)}function VN(){zr=0}function xs(){this._call=this._time=this._next=null}xs.prototype=ri.prototype={constructor:xs,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?Ts():+n)+(t==null?0:+t),!this._next&&Ms!==this&&(Ms?Ms._next=this:Fl=this,Ms=this),this._call=e,this._time=n,xp()},stop:function(){this._call&&(this._call=null,this._time=1/0,xp())}};function ri(e,t,n){var r=new xs;return r.restart(e,t,n),r}function NC(){Ts(),++ni;for(var e=Fl,t;e;)(t=zr-e._time)>=0&&e._call.call(void 0,t),e=e._next;--ni}function xC(){zr=(Ll=Ss.now())+Vl,ni=Is=0;try{NC()}finally{ni=0,BN(),zr=0}}function jN(){var e=Ss.now(),t=e-Ll;t>TC&&(Vl-=t,Ll=e)}function BN(){for(var e,t=Fl,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Fl=n);Ms=e,xp(r)}function xp(e){if(!ni){Is&&(Is=clearTimeout(Is));var t=e-zr;t>24?(e<1/0&&(Is=setTimeout(xC,e-Ss.now()-Vl)),ws&&(ws=clearInterval(ws))):(ws||(Ll=Ss.now(),ws=setInterval(jN,TC)),ni=1,AC(xC))}}function jl(e,t,n){var r=new xs;return t=t==null?0:+t,r.restart(o=>{r.stop(),e(o+t)},t,n),r}var UN=Br("start","end","cancel","interrupt"),$N=[],kC=0,RC=1,Ul=2,Bl=3,OC=4,$l=5,As=6;function ir(e,t,n,r,o,i){var s=e.__transition;if(!s)e.__transition={};else if(n in s)return;HN(e,n,{name:t,index:r,group:o,on:UN,tween:$N,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:kC})}function Ns(e,t){var n=Se(e,t);if(n.state>kC)throw new Error("too late; already scheduled");return n}function je(e,t){var n=Se(e,t);if(n.state>Bl)throw new Error("too late; already running");return n}function Se(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function HN(e,t,n){var r=e.__transition,o;r[t]=n,n.timer=ri(i,0,n.time);function i(l){n.state=RC,n.timer.restart(s,n.delay,n.time),n.delay<=l&&s(l-n.delay)}function s(l){var u,d,h,f;if(n.state!==RC)return c();for(u in r)if(f=r[u],f.name===n.name){if(f.state===Bl)return jl(s);f.state===OC?(f.state=As,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete r[u]):+u<t&&(f.state=As,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete r[u])}if(jl(function(){n.state===Bl&&(n.state=OC,n.timer.restart(a,n.delay,n.time),a(l))}),n.state=Ul,n.on.call("start",e,e.__data__,n.index,n.group),n.state===Ul){for(n.state=Bl,o=new Array(h=n.tween.length),u=0,d=-1;u<h;++u)(f=n.tween[u].value.call(e,e.__data__,n.index,n.group))&&(o[++d]=f);o.length=d+1}}function a(l){for(var u=l<n.duration?n.ease.call(null,l/n.duration):(n.timer.restart(c),n.state=$l,1),d=-1,h=o.length;++d<h;)o[d].call(e,u);n.state===$l&&(n.on.call("end",e,e.__data__,n.index,n.group),c())}function c(){n.state=As,n.timer.stop(),delete r[t];for(var l in r)return;delete e.__transition}}function sr(e,t){var n=e.__transition,r,o,i=!0,s;if(n){t=t==null?null:t+"";for(s in n){if((r=n[s]).name!==t){i=!1;continue}o=r.state>Ul&&r.state<$l,r.state=As,r.timer.stop(),r.on.call(o?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[s]}i&&delete e.__transition}}function PC(e){return this.each(function(){sr(this,e)})}function zN(e,t){var n,r;return function(){var o=je(this,e),i=o.tween;if(i!==n){r=n=i;for(var s=0,a=r.length;s<a;++s)if(r[s].name===t){r=r.slice(),r.splice(s,1);break}}o.tween=r}}function GN(e,t,n){var r,o;if(typeof n!="function")throw new Error;return function(){var i=je(this,e),s=i.tween;if(s!==r){o=(r=s).slice();for(var a={name:t,value:n},c=0,l=o.length;c<l;++c)if(o[c].name===t){o[c]=a;break}c===l&&o.push(a)}i.tween=o}}function FC(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=Se(this.node(),n).tween,o=0,i=r.length,s;o<i;++o)if((s=r[o]).name===e)return s.value;return null}return this.each((t==null?zN:GN)(n,e,t))}function oi(e,t,n){var r=e._id;return e.each(function(){var o=je(this,r);(o.value||(o.value={}))[t]=n.apply(this,arguments)}),function(o){return Se(o,r).value[t]}}function Hl(e,t){var n;return(typeof t=="number"?It:t instanceof or?Ol:(n=or(t))?(t=n,Ol):bp)(e,t)}function WN(e){return function(){this.removeAttribute(e)}}function qN(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ZN(e,t,n){var r,o=n+"",i;return function(){var s=this.getAttribute(e);return s===o?null:s===r?i:i=t(r=s,n)}}function YN(e,t,n){var r,o=n+"",i;return function(){var s=this.getAttributeNS(e.space,e.local);return s===o?null:s===r?i:i=t(r=s,n)}}function QN(e,t,n){var r,o,i;return function(){var s,a=n(this),c;return a==null?void this.removeAttribute(e):(s=this.getAttribute(e),c=a+"",s===c?null:s===r&&c===o?i:(o=c,i=t(r=s,a)))}}function KN(e,t,n){var r,o,i;return function(){var s,a=n(this),c;return a==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),c=a+"",s===c?null:s===r&&c===o?i:(o=c,i=t(r=s,a)))}}function LC(e,t){var n=Tn(e),r=n==="transform"?Mp:Hl;return this.attrTween(e,typeof t=="function"?(n.local?KN:QN)(n,r,oi(this,"attr."+e,t)):t==null?(n.local?qN:WN)(n):(n.local?YN:ZN)(n,r,t))}function XN(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function JN(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function eR(e,t){var n,r;function o(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&JN(e,i)),n}return o._value=t,o}function tR(e,t){var n,r;function o(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&XN(e,i)),n}return o._value=t,o}function VC(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=Tn(e);return this.tween(n,(r.local?eR:tR)(r,t))}function nR(e,t){return function(){Ns(this,e).delay=+t.apply(this,arguments)}}function rR(e,t){return t=+t,function(){Ns(this,e).delay=t}}function jC(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?nR:rR)(t,e)):Se(this.node(),t).delay}function oR(e,t){return function(){je(this,e).duration=+t.apply(this,arguments)}}function iR(e,t){return t=+t,function(){je(this,e).duration=t}}function BC(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?oR:iR)(t,e)):Se(this.node(),t).duration}function sR(e,t){if(typeof t!="function")throw new Error;return function(){je(this,e).ease=t}}function UC(e){var t=this._id;return arguments.length?this.each(sR(t,e)):Se(this.node(),t).ease}function aR(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;je(this,e).ease=n}}function $C(e){if(typeof e!="function")throw new Error;return this.each(aR(this._id,e))}function HC(e){typeof e!="function"&&(e=_s(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i=t[o],s=i.length,a=r[o]=[],c,l=0;l<s;++l)(c=i[l])&&e.call(c,c.__data__,l,i)&&a.push(c);return new Xe(r,this._parents,this._name,this._id)}function zC(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,o=n.length,i=Math.min(r,o),s=new Array(r),a=0;a<i;++a)for(var c=t[a],l=n[a],u=c.length,d=s[a]=new Array(u),h,f=0;f<u;++f)(h=c[f]||l[f])&&(d[f]=h);for(;a<r;++a)s[a]=t[a];return new Xe(s,this._parents,this._name,this._id)}function cR(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function lR(e,t,n){var r,o,i=cR(t)?Ns:je;return function(){var s=i(this,e),a=s.on;a!==r&&(o=(r=a).copy()).on(t,n),s.on=o}}function GC(e,t){var n=this._id;return arguments.length<2?Se(this.node(),n).on.on(e):this.each(lR(n,e,t))}function uR(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function WC(){return this.on("end.remove",uR(this._id))}function qC(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Ur(e));for(var r=this._groups,o=r.length,i=new Array(o),s=0;s<o;++s)for(var a=r[s],c=a.length,l=i[s]=new Array(c),u,d,h=0;h<c;++h)(u=a[h])&&(d=e.call(u,u.__data__,h,a))&&("__data__"in u&&(d.__data__=u.__data__),l[h]=d,ir(l[h],t,n,h,l,Se(u,n)));return new Xe(i,this._parents,t,n)}function ZC(e){var t=this._name,n=this._id;typeof e!="function"&&(e=ys(e));for(var r=this._groups,o=r.length,i=[],s=[],a=0;a<o;++a)for(var c=r[a],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var h=e.call(u,u.__data__,d,c),f,v=Se(u,n),m=0,g=h.length;m<g;++m)(f=h[m])&&ir(f,t,n,m,h,v);i.push(h),s.push(u)}return new Xe(i,s,t,n)}var dR=An.prototype.constructor;function YC(){return new dR(this._groups,this._parents)}function fR(e,t){var n,r,o;return function(){var i=rr(this,e),s=(this.style.removeProperty(e),rr(this,e));return i===s?null:i===n&&s===r?o:o=t(n=i,r=s)}}function QC(e){return function(){this.style.removeProperty(e)}}function hR(e,t,n){var r,o=n+"",i;return function(){var s=rr(this,e);return s===o?null:s===r?i:i=t(r=s,n)}}function pR(e,t,n){var r,o,i;return function(){var s=rr(this,e),a=n(this),c=a+"";return a==null&&(c=a=(this.style.removeProperty(e),rr(this,e))),s===c?null:s===r&&c===o?i:(o=c,i=t(r=s,a))}}function gR(e,t){var n,r,o,i="style."+t,s="end."+i,a;return function(){var c=je(this,e),l=c.on,u=c.value[i]==null?a||(a=QC(t)):void 0;(l!==n||o!==u)&&(r=(n=l).copy()).on(s,o=u),c.on=r}}function KC(e,t,n){var r=(e+="")=="transform"?Ip:Hl;return t==null?this.styleTween(e,fR(e,r)).on("end.style."+e,QC(e)):typeof t=="function"?this.styleTween(e,pR(e,r,oi(this,"style."+e,t))).each(gR(this._id,e)):this.styleTween(e,hR(e,r,t),n).on("end.style."+e,null)}function mR(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function vR(e,t,n){var r,o;function i(){var s=t.apply(this,arguments);return s!==o&&(r=(o=s)&&mR(e,s,n)),r}return i._value=t,i}function XC(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,vR(e,t,n??""))}function yR(e){return function(){this.textContent=e}}function _R(e){return function(){var t=e(this);this.textContent=t??""}}function JC(e){return this.tween("text",typeof e=="function"?_R(oi(this,"text",e)):yR(e==null?"":e+""))}function CR(e){return function(t){this.textContent=e.call(this,t)}}function DR(e){var t,n;function r(){var o=e.apply(this,arguments);return o!==n&&(t=(n=o)&&CR(o)),t}return r._value=e,r}function eD(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,DR(e))}function tD(){for(var e=this._name,t=this._id,n=zl(),r=this._groups,o=r.length,i=0;i<o;++i)for(var s=r[i],a=s.length,c,l=0;l<a;++l)if(c=s[l]){var u=Se(c,t);ir(c,e,n,l,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Xe(r,this._parents,e,n)}function nD(){var e,t,n=this,r=n._id,o=n.size();return new Promise(function(i,s){var a={value:s},c={value:function(){--o===0&&i()}};n.each(function(){var l=je(this,r),u=l.on;u!==e&&(t=(e=u).copy(),t._.cancel.push(a),t._.interrupt.push(a),t._.end.push(c)),l.on=t}),o===0&&i()})}var ER=0;function Xe(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function rD(e){return An().transition(e)}function zl(){return++ER}var Rn=An.prototype;Xe.prototype=rD.prototype={constructor:Xe,select:qC,selectAll:ZC,selectChild:Rn.selectChild,selectChildren:Rn.selectChildren,filter:HC,merge:zC,selection:YC,transition:tD,call:Rn.call,nodes:Rn.nodes,node:Rn.node,size:Rn.size,empty:Rn.empty,each:Rn.each,on:GC,attr:LC,attrTween:VC,style:KC,styleTween:XC,text:JC,textTween:eD,remove:WC,tween:FC,delay:jC,duration:BC,ease:UC,easeVarying:$C,end:nD,[Symbol.iterator]:Rn[Symbol.iterator]};function Gl(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var bR={time:null,delay:0,duration:250,ease:Gl};function wR(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function oD(e){var t,n;e instanceof Xe?(t=e._id,e=e._name):(t=zl(),(n=bR).time=Ts(),e=e==null?null:e+"");for(var r=this._groups,o=r.length,i=0;i<o;++i)for(var s=r[i],a=s.length,c,l=0;l<a;++l)(c=s[l])&&ir(c,e,t,l,s,n||wR(c,t));return new Xe(r,this._parents,e,t)}An.prototype.interrupt=PC;An.prototype.transition=oD;var{abs:m7,max:v7,min:y7}=Math;function iD(e){return[+e[0],+e[1]]}function IR(e){return[iD(e[0]),iD(e[1])]}var _7={name:"x",handles:["w","e"].map(Tp),input:function(e,t){return e==null?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},C7={name:"y",handles:["n","s"].map(Tp),input:function(e,t){return e==null?null:[[t[0][0],+e[0]],[t[1][0],+e[1]]]},output:function(e){return e&&[e[0][1],e[1][1]]}},D7={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Tp),input:function(e){return e==null?null:IR(e)},output:function(e){return e}};function Tp(e){return{type:e}}function Ap(e,t){var n,r=1;e==null&&(e=0),t==null&&(t=0);function o(){var i,s=n.length,a,c=0,l=0;for(i=0;i<s;++i)a=n[i],c+=a.x,l+=a.y;for(c=(c/s-e)*r,l=(l/s-t)*r,i=0;i<s;++i)a=n[i],a.x-=c,a.y-=l}return o.initialize=function(i){n=i},o.x=function(i){return arguments.length?(e=+i,o):e},o.y=function(i){return arguments.length?(t=+i,o):t},o.strength=function(i){return arguments.length?(r=+i,o):r},o}function sD(e){let t=+this._x.call(null,e),n=+this._y.call(null,e);return aD(this.cover(t,n),t,n,e)}function aD(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var o,i=e._root,s={data:r},a=e._x0,c=e._y0,l=e._x1,u=e._y1,d,h,f,v,m,g,p,w;if(!i)return e._root=s,e;for(;i.length;)if((m=t>=(d=(a+l)/2))?a=d:l=d,(g=n>=(h=(c+u)/2))?c=h:u=h,o=i,!(i=i[p=g<<1|m]))return o[p]=s,e;if(f=+e._x.call(null,i.data),v=+e._y.call(null,i.data),t===f&&n===v)return s.next=i,o?o[p]=s:e._root=s,e;do o=o?o[p]=new Array(4):e._root=new Array(4),(m=t>=(d=(a+l)/2))?a=d:l=d,(g=n>=(h=(c+u)/2))?c=h:u=h;while((p=g<<1|m)===(w=(v>=h)<<1|f>=d));return o[w]=i,o[p]=s,e}function cD(e){var t,n,r=e.length,o,i,s=new Array(r),a=new Array(r),c=1/0,l=1/0,u=-1/0,d=-1/0;for(n=0;n<r;++n)isNaN(o=+this._x.call(null,t=e[n]))||isNaN(i=+this._y.call(null,t))||(s[n]=o,a[n]=i,o<c&&(c=o),o>u&&(u=o),i<l&&(l=i),i>d&&(d=i));if(c>u||l>d)return this;for(this.cover(c,l).cover(u,d),n=0;n<r;++n)aD(this,s[n],a[n],e[n]);return this}function lD(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,o=this._x1,i=this._y1;if(isNaN(n))o=(n=Math.floor(e))+1,i=(r=Math.floor(t))+1;else{for(var s=o-n||1,a=this._root,c,l;n>e||e>=o||r>t||t>=i;)switch(l=(t<r)<<1|e<n,c=new Array(4),c[l]=a,a=c,s*=2,l){case 0:o=n+s,i=r+s;break;case 1:n=o-s,i=r+s;break;case 2:o=n+s,r=i-s;break;case 3:n=o-s,r=i-s;break}this._root&&this._root.length&&(this._root=a)}return this._x0=n,this._y0=r,this._x1=o,this._y1=i,this}function uD(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function dD(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function Re(e,t,n,r,o){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=o}function fD(e,t,n){var r,o=this._x0,i=this._y0,s,a,c,l,u=this._x1,d=this._y1,h=[],f=this._root,v,m;for(f&&h.push(new Re(f,o,i,u,d)),n==null?n=1/0:(o=e-n,i=t-n,u=e+n,d=t+n,n*=n);v=h.pop();)if(!(!(f=v.node)||(s=v.x0)>u||(a=v.y0)>d||(c=v.x1)<o||(l=v.y1)<i))if(f.length){var g=(s+c)/2,p=(a+l)/2;h.push(new Re(f[3],g,p,c,l),new Re(f[2],s,p,g,l),new Re(f[1],g,a,c,p),new Re(f[0],s,a,g,p)),(m=(t>=p)<<1|e>=g)&&(v=h[h.length-1],h[h.length-1]=h[h.length-1-m],h[h.length-1-m]=v)}else{var w=e-+this._x.call(null,f.data),A=t-+this._y.call(null,f.data),I=w*w+A*A;if(I<n){var B=Math.sqrt(n=I);o=e-B,i=t-B,u=e+B,d=t+B,r=f.data}}return r}function hD(e){if(isNaN(u=+this._x.call(null,e))||isNaN(d=+this._y.call(null,e)))return this;var t,n=this._root,r,o,i,s=this._x0,a=this._y0,c=this._x1,l=this._y1,u,d,h,f,v,m,g,p;if(!n)return this;if(n.length)for(;;){if((v=u>=(h=(s+c)/2))?s=h:c=h,(m=d>=(f=(a+l)/2))?a=f:l=f,t=n,!(n=n[g=m<<1|v]))return this;if(!n.length)break;(t[g+1&3]||t[g+2&3]||t[g+3&3])&&(r=t,p=g)}for(;n.data!==e;)if(o=n,!(n=n.next))return this;return(i=n.next)&&delete n.next,o?(i?o.next=i:delete o.next,this):t?(i?t[g]=i:delete t[g],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(r?r[p]=n:this._root=n),this):(this._root=i,this)}function pD(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function gD(){return this._root}function mD(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function vD(e){var t=[],n,r=this._root,o,i,s,a,c;for(r&&t.push(new Re(r,this._x0,this._y0,this._x1,this._y1));n=t.pop();)if(!e(r=n.node,i=n.x0,s=n.y0,a=n.x1,c=n.y1)&&r.length){var l=(i+a)/2,u=(s+c)/2;(o=r[3])&&t.push(new Re(o,l,u,a,c)),(o=r[2])&&t.push(new Re(o,i,u,l,c)),(o=r[1])&&t.push(new Re(o,l,s,a,u)),(o=r[0])&&t.push(new Re(o,i,s,l,u))}return this}function yD(e){var t=[],n=[],r;for(this._root&&t.push(new Re(this._root,this._x0,this._y0,this._x1,this._y1));r=t.pop();){var o=r.node;if(o.length){var i,s=r.x0,a=r.y0,c=r.x1,l=r.y1,u=(s+c)/2,d=(a+l)/2;(i=o[0])&&t.push(new Re(i,s,a,u,d)),(i=o[1])&&t.push(new Re(i,u,a,c,d)),(i=o[2])&&t.push(new Re(i,s,d,u,l)),(i=o[3])&&t.push(new Re(i,u,d,c,l))}n.push(r)}for(;r=n.pop();)e(r.node,r.x0,r.y0,r.x1,r.y1);return this}function _D(e){return e[0]}function CD(e){return arguments.length?(this._x=e,this):this._x}function DD(e){return e[1]}function ED(e){return arguments.length?(this._y=e,this):this._y}function Gr(e,t,n){var r=new Np(t??_D,n??DD,NaN,NaN,NaN,NaN);return e==null?r:r.addAll(e)}function Np(e,t,n,r,o,i){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=o,this._y1=i,this._root=void 0}function bD(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var Je=Gr.prototype=Np.prototype;Je.copy=function(){var e=new Np(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,n,r;if(!t)return e;if(!t.length)return e._root=bD(t),e;for(n=[{source:t,target:e._root=new Array(4)}];t=n.pop();)for(var o=0;o<4;++o)(r=t.source[o])&&(r.length?n.push({source:r,target:t.target[o]=new Array(4)}):t.target[o]=bD(r));return e};Je.add=sD;Je.addAll=cD;Je.cover=lD;Je.data=uD;Je.extent=dD;Je.find=fD;Je.remove=hD;Je.removeAll=pD;Je.root=gD;Je.size=mD;Je.visit=vD;Je.visitAfter=yD;Je.x=CD;Je.y=ED;function ln(e){return function(){return e}}function Ut(e){return(e()-.5)*1e-6}function MR(e){return e.x+e.vx}function SR(e){return e.y+e.vy}function Rp(e){var t,n,r,o=1,i=1;typeof e!="function"&&(e=ln(e==null?1:+e));function s(){for(var l,u=t.length,d,h,f,v,m,g,p=0;p<i;++p)for(d=Gr(t,MR,SR).visitAfter(a),l=0;l<u;++l)h=t[l],m=n[h.index],g=m*m,f=h.x+h.vx,v=h.y+h.vy,d.visit(w);function w(A,I,B,X,le){var de=A.data,Be=A.r,fe=m+Be;if(de){if(de.index>h.index){var Ht=f-de.x-de.vx,zt=v-de.y-de.vy,Mt=Ht*Ht+zt*zt;Mt<fe*fe&&(Ht===0&&(Ht=Ut(r),Mt+=Ht*Ht),zt===0&&(zt=Ut(r),Mt+=zt*zt),Mt=(fe-(Mt=Math.sqrt(Mt)))/Mt*o,h.vx+=(Ht*=Mt)*(fe=(Be*=Be)/(g+Be)),h.vy+=(zt*=Mt)*fe,de.vx-=Ht*(fe=1-fe),de.vy-=zt*fe)}return}return I>f+fe||X<f-fe||B>v+fe||le<v-fe}}function a(l){if(l.data)return l.r=n[l.data.index];for(var u=l.r=0;u<4;++u)l[u]&&l[u].r>l.r&&(l.r=l[u].r)}function c(){if(t){var l,u=t.length,d;for(n=new Array(u),l=0;l<u;++l)d=t[l],n[d.index]=+e(d,l,t)}}return s.initialize=function(l,u){t=l,r=u,c()},s.iterations=function(l){return arguments.length?(i=+l,s):i},s.strength=function(l){return arguments.length?(o=+l,s):o},s.radius=function(l){return arguments.length?(e=typeof l=="function"?l:ln(+l),c(),s):e},s}function xR(e){return e.index}function wD(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function Op(e){var t=xR,n=d,r,o=ln(30),i,s,a,c,l,u=1;e==null&&(e=[]);function d(g){return 1/Math.min(a[g.source.index],a[g.target.index])}function h(g){for(var p=0,w=e.length;p<u;++p)for(var A=0,I,B,X,le,de,Be,fe;A<w;++A)I=e[A],B=I.source,X=I.target,le=X.x+X.vx-B.x-B.vx||Ut(l),de=X.y+X.vy-B.y-B.vy||Ut(l),Be=Math.sqrt(le*le+de*de),Be=(Be-i[A])/Be*g*r[A],le*=Be,de*=Be,X.vx-=le*(fe=c[A]),X.vy-=de*fe,B.vx+=le*(fe=1-fe),B.vy+=de*fe}function f(){if(s){var g,p=s.length,w=e.length,A=new Map(s.map((B,X)=>[t(B,X,s),B])),I;for(g=0,a=new Array(p);g<w;++g)I=e[g],I.index=g,typeof I.source!="object"&&(I.source=wD(A,I.source)),typeof I.target!="object"&&(I.target=wD(A,I.target)),a[I.source.index]=(a[I.source.index]||0)+1,a[I.target.index]=(a[I.target.index]||0)+1;for(g=0,c=new Array(w);g<w;++g)I=e[g],c[g]=a[I.source.index]/(a[I.source.index]+a[I.target.index]);r=new Array(w),v(),i=new Array(w),m()}}function v(){if(s)for(var g=0,p=e.length;g<p;++g)r[g]=+n(e[g],g,e)}function m(){if(s)for(var g=0,p=e.length;g<p;++g)i[g]=+o(e[g],g,e)}return h.initialize=function(g,p){s=g,l=p,f()},h.links=function(g){return arguments.length?(e=g,f(),h):e},h.id=function(g){return arguments.length?(t=g,h):t},h.iterations=function(g){return arguments.length?(u=+g,h):u},h.strength=function(g){return arguments.length?(n=typeof g=="function"?g:ln(+g),v(),h):n},h.distance=function(g){return arguments.length?(o=typeof g=="function"?g:ln(+g),m(),h):o},h}function ID(){let e=1;return()=>(e=(1664525*e+1013904223)%4294967296)/4294967296}function MD(e){return e.x}function SD(e){return e.y}var TR=10,AR=Math.PI*(3-Math.sqrt(5));function kp(e){var t,n=1,r=.001,o=1-Math.pow(r,1/300),i=0,s=.6,a=new Map,c=ri(d),l=Br("tick","end"),u=ID();e==null&&(e=[]);function d(){h(),l.call("tick",t),n<r&&(c.stop(),l.call("end",t))}function h(m){var g,p=e.length,w;m===void 0&&(m=1);for(var A=0;A<m;++A)for(n+=(i-n)*o,a.forEach(function(I){I(n)}),g=0;g<p;++g)w=e[g],w.fx==null?w.x+=w.vx*=s:(w.x=w.fx,w.vx=0),w.fy==null?w.y+=w.vy*=s:(w.y=w.fy,w.vy=0);return t}function f(){for(var m=0,g=e.length,p;m<g;++m){if(p=e[m],p.index=m,p.fx!=null&&(p.x=p.fx),p.fy!=null&&(p.y=p.fy),isNaN(p.x)||isNaN(p.y)){var w=TR*Math.sqrt(.5+m),A=m*AR;p.x=w*Math.cos(A),p.y=w*Math.sin(A)}(isNaN(p.vx)||isNaN(p.vy))&&(p.vx=p.vy=0)}}function v(m){return m.initialize&&m.initialize(e,u),m}return f(),t={tick:h,restart:function(){return c.restart(d),t},stop:function(){return c.stop(),t},nodes:function(m){return arguments.length?(e=m,f(),a.forEach(v),t):e},alpha:function(m){return arguments.length?(n=+m,t):n},alphaMin:function(m){return arguments.length?(r=+m,t):r},alphaDecay:function(m){return arguments.length?(o=+m,t):+o},alphaTarget:function(m){return arguments.length?(i=+m,t):i},velocityDecay:function(m){return arguments.length?(s=1-m,t):1-s},randomSource:function(m){return arguments.length?(u=m,a.forEach(v),t):u},force:function(m,g){return arguments.length>1?(g==null?a.delete(m):a.set(m,v(g)),t):a.get(m)},find:function(m,g,p){var w=0,A=e.length,I,B,X,le,de;for(p==null?p=1/0:p*=p,w=0;w<A;++w)le=e[w],I=m-le.x,B=g-le.y,X=I*I+B*B,X<p&&(de=le,p=X);return de},on:function(m,g){return arguments.length>1?(l.on(m,g),t):l.on(m)}}}function Pp(){var e,t,n,r,o=ln(-30),i,s=1,a=1/0,c=.81;function l(f){var v,m=e.length,g=Gr(e,MD,SD).visitAfter(d);for(r=f,v=0;v<m;++v)t=e[v],g.visit(h)}function u(){if(e){var f,v=e.length,m;for(i=new Array(v),f=0;f<v;++f)m=e[f],i[m.index]=+o(m,f,e)}}function d(f){var v=0,m,g,p=0,w,A,I;if(f.length){for(w=A=I=0;I<4;++I)(m=f[I])&&(g=Math.abs(m.value))&&(v+=m.value,p+=g,w+=g*m.x,A+=g*m.y);f.x=w/p,f.y=A/p}else{m=f,m.x=m.data.x,m.y=m.data.y;do v+=i[m.data.index];while(m=m.next)}f.value=v}function h(f,v,m,g){if(!f.value)return!0;var p=f.x-t.x,w=f.y-t.y,A=g-v,I=p*p+w*w;if(A*A/c<I)return I<a&&(p===0&&(p=Ut(n),I+=p*p),w===0&&(w=Ut(n),I+=w*w),I<s&&(I=Math.sqrt(s*I)),t.vx+=p*f.value*r/I,t.vy+=w*f.value*r/I),!0;if(f.length||I>=a)return;(f.data!==t||f.next)&&(p===0&&(p=Ut(n),I+=p*p),w===0&&(w=Ut(n),I+=w*w),I<s&&(I=Math.sqrt(s*I)));do f.data!==t&&(A=i[f.data.index]*r/I,t.vx+=p*A,t.vy+=w*A);while(f=f.next)}return l.initialize=function(f,v){e=f,n=v,u()},l.strength=function(f){return arguments.length?(o=typeof f=="function"?f:ln(+f),u(),l):o},l.distanceMin=function(f){return arguments.length?(s=f*f,l):Math.sqrt(s)},l.distanceMax=function(f){return arguments.length?(a=f*f,l):Math.sqrt(a)},l.theta=function(f){return arguments.length?(c=f*f,l):Math.sqrt(c)},l}var Rs=e=>()=>e;function Fp(e,{sourceEvent:t,target:n,transform:r,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:o}})}function $t(e,t,n){this.k=e,this.x=t,this.y=n}$t.prototype={constructor:$t,scale:function(e){return e===1?this:new $t(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new $t(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Wr=new $t(1,0,0);Lp.prototype=$t.prototype;function Lp(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Wr;return e.__zoom}function Wl(e){e.stopImmediatePropagation()}function ii(e){e.preventDefault(),e.stopImmediatePropagation()}function NR(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function RR(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function xD(){return this.__zoom||Wr}function OR(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function kR(){return navigator.maxTouchPoints||"ontouchstart"in this}function PR(e,t,n){var r=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],i=e.invertY(t[0][1])-n[0][1],s=e.invertY(t[1][1])-n[1][1];return e.translate(o>r?(r+o)/2:Math.min(0,r)||Math.max(0,o),s>i?(i+s)/2:Math.min(0,i)||Math.max(0,s))}function Vp(){var e=NR,t=RR,n=PR,r=OR,o=kR,i=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],a=250,c=Sp,l=Br("start","zoom","end"),u,d,h,f=500,v=150,m=0,g=10;function p(y){y.property("__zoom",xD).on("wheel.zoom",de,{passive:!1}).on("mousedown.zoom",Be).on("dblclick.zoom",fe).filter(o).on("touchstart.zoom",Ht).on("touchmove.zoom",zt).on("touchend.zoom touchcancel.zoom",Mt).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}p.transform=function(y,R,D,O){var G=y.selection?y.selection():y;G.property("__zoom",xD),y!==G?B(y,R,D,O):G.interrupt().each(function(){X(this,arguments).event(O).start().zoom(null,typeof R=="function"?R.apply(this,arguments):R).end()})},p.scaleBy=function(y,R,D,O){p.scaleTo(y,function(){var G=this.__zoom.k,Y=typeof R=="function"?R.apply(this,arguments):R;return G*Y},D,O)},p.scaleTo=function(y,R,D,O){p.transform(y,function(){var G=t.apply(this,arguments),Y=this.__zoom,J=D==null?I(G):typeof D=="function"?D.apply(this,arguments):D,ce=Y.invert(J),ye=typeof R=="function"?R.apply(this,arguments):R;return n(A(w(Y,ye),J,ce),G,s)},D,O)},p.translateBy=function(y,R,D,O){p.transform(y,function(){return n(this.__zoom.translate(typeof R=="function"?R.apply(this,arguments):R,typeof D=="function"?D.apply(this,arguments):D),t.apply(this,arguments),s)},null,O)},p.translateTo=function(y,R,D,O,G){p.transform(y,function(){var Y=t.apply(this,arguments),J=this.__zoom,ce=O==null?I(Y):typeof O=="function"?O.apply(this,arguments):O;return n(Wr.translate(ce[0],ce[1]).scale(J.k).translate(typeof R=="function"?-R.apply(this,arguments):-R,typeof D=="function"?-D.apply(this,arguments):-D),Y,s)},O,G)};function w(y,R){return R=Math.max(i[0],Math.min(i[1],R)),R===y.k?y:new $t(R,y.x,y.y)}function A(y,R,D){var O=R[0]-D[0]*y.k,G=R[1]-D[1]*y.k;return O===y.x&&G===y.y?y:new $t(y.k,O,G)}function I(y){return[(+y[0][0]+ +y[1][0])/2,(+y[0][1]+ +y[1][1])/2]}function B(y,R,D,O){y.on("start.zoom",function(){X(this,arguments).event(O).start()}).on("interrupt.zoom end.zoom",function(){X(this,arguments).event(O).end()}).tween("zoom",function(){var G=this,Y=arguments,J=X(G,Y).event(O),ce=t.apply(G,Y),ye=D==null?I(ce):typeof D=="function"?D.apply(G,Y):D,Gt=Math.max(ce[1][0]-ce[0][0],ce[1][1]-ce[0][1]),Oe=G.__zoom,St=typeof R=="function"?R.apply(G,Y):R,un=c(Oe.invert(ye).concat(Gt/Oe.k),St.invert(ye).concat(Gt/St.k));return function(xt){if(xt===1)xt=St;else{var dn=un(xt),Jl=Gt/dn[2];xt=new $t(Jl,ye[0]-dn[0]*Jl,ye[1]-dn[1]*Jl)}J.zoom(null,xt)}})}function X(y,R,D){return!D&&y.__zooming||new le(y,R)}function le(y,R){this.that=y,this.args=R,this.active=0,this.sourceEvent=null,this.extent=t.apply(y,R),this.taps=0}le.prototype={event:function(y){return y&&(this.sourceEvent=y),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(y,R){return this.mouse&&y!=="mouse"&&(this.mouse[1]=R.invert(this.mouse[0])),this.touch0&&y!=="touch"&&(this.touch0[1]=R.invert(this.touch0[0])),this.touch1&&y!=="touch"&&(this.touch1[1]=R.invert(this.touch1[0])),this.that.__zoom=R,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(y){var R=wt(this.that).datum();l.call(y,this.that,new Fp(y,{sourceEvent:this.sourceEvent,target:p,type:y,transform:this.that.__zoom,dispatch:l}),R)}};function de(y,...R){if(!e.apply(this,arguments))return;var D=X(this,R).event(y),O=this.__zoom,G=Math.max(i[0],Math.min(i[1],O.k*Math.pow(2,r.apply(this,arguments)))),Y=Nn(y);if(D.wheel)(D.mouse[0][0]!==Y[0]||D.mouse[0][1]!==Y[1])&&(D.mouse[1]=O.invert(D.mouse[0]=Y)),clearTimeout(D.wheel);else{if(O.k===G)return;D.mouse=[Y,O.invert(Y)],sr(this),D.start()}ii(y),D.wheel=setTimeout(J,v),D.zoom("mouse",n(A(w(O,G),D.mouse[0],D.mouse[1]),D.extent,s));function J(){D.wheel=null,D.end()}}function Be(y,...R){if(h||!e.apply(this,arguments))return;var D=y.currentTarget,O=X(this,R,!0).event(y),G=wt(y.view).on("mousemove.zoom",ye,!0).on("mouseup.zoom",Gt,!0),Y=Nn(y,D),J=y.clientX,ce=y.clientY;gp(y.view),Wl(y),O.mouse=[Y,this.__zoom.invert(Y)],sr(this),O.start();function ye(Oe){if(ii(Oe),!O.moved){var St=Oe.clientX-J,un=Oe.clientY-ce;O.moved=St*St+un*un>m}O.event(Oe).zoom("mouse",n(A(O.that.__zoom,O.mouse[0]=Nn(Oe,D),O.mouse[1]),O.extent,s))}function Gt(Oe){G.on("mousemove.zoom mouseup.zoom",null),mp(Oe.view,O.moved),ii(Oe),O.event(Oe).end()}}function fe(y,...R){if(e.apply(this,arguments)){var D=this.__zoom,O=Nn(y.changedTouches?y.changedTouches[0]:y,this),G=D.invert(O),Y=D.k*(y.shiftKey?.5:2),J=n(A(w(D,Y),O,G),t.apply(this,R),s);ii(y),a>0?wt(this).transition().duration(a).call(B,J,O,y):wt(this).call(p.transform,J,O,y)}}function Ht(y,...R){if(e.apply(this,arguments)){var D=y.touches,O=D.length,G=X(this,R,y.changedTouches.length===O).event(y),Y,J,ce,ye;for(Wl(y),J=0;J<O;++J)ce=D[J],ye=Nn(ce,this),ye=[ye,this.__zoom.invert(ye),ce.identifier],G.touch0?!G.touch1&&G.touch0[2]!==ye[2]&&(G.touch1=ye,G.taps=0):(G.touch0=ye,Y=!0,G.taps=1+!!u);u&&(u=clearTimeout(u)),Y&&(G.taps<2&&(d=ye[0],u=setTimeout(function(){u=null},f)),sr(this),G.start())}}function zt(y,...R){if(this.__zooming){var D=X(this,R).event(y),O=y.changedTouches,G=O.length,Y,J,ce,ye;for(ii(y),Y=0;Y<G;++Y)J=O[Y],ce=Nn(J,this),D.touch0&&D.touch0[2]===J.identifier?D.touch0[0]=ce:D.touch1&&D.touch1[2]===J.identifier&&(D.touch1[0]=ce);if(J=D.that.__zoom,D.touch1){var Gt=D.touch0[0],Oe=D.touch0[1],St=D.touch1[0],un=D.touch1[1],xt=(xt=St[0]-Gt[0])*xt+(xt=St[1]-Gt[1])*xt,dn=(dn=un[0]-Oe[0])*dn+(dn=un[1]-Oe[1])*dn;J=w(J,Math.sqrt(xt/dn)),ce=[(Gt[0]+St[0])/2,(Gt[1]+St[1])/2],ye=[(Oe[0]+un[0])/2,(Oe[1]+un[1])/2]}else if(D.touch0)ce=D.touch0[0],ye=D.touch0[1];else return;D.zoom("touch",n(A(J,ce,ye),D.extent,s))}}function Mt(y,...R){if(this.__zooming){var D=X(this,R).event(y),O=y.changedTouches,G=O.length,Y,J;for(Wl(y),h&&clearTimeout(h),h=setTimeout(function(){h=null},f),Y=0;Y<G;++Y)J=O[Y],D.touch0&&D.touch0[2]===J.identifier?delete D.touch0:D.touch1&&D.touch1[2]===J.identifier&&delete D.touch1;if(D.touch1&&!D.touch0&&(D.touch0=D.touch1,delete D.touch1),D.touch0)D.touch0[1]=this.__zoom.invert(D.touch0[0]);else if(D.end(),D.taps===2&&(J=Nn(J,this),Math.hypot(d[0]-J[0],d[1]-J[1])<g)){var ce=wt(this).on("dblclick.zoom");ce&&ce.apply(this,arguments)}}}return p.wheelDelta=function(y){return arguments.length?(r=typeof y=="function"?y:Rs(+y),p):r},p.filter=function(y){return arguments.length?(e=typeof y=="function"?y:Rs(!!y),p):e},p.touchable=function(y){return arguments.length?(o=typeof y=="function"?y:Rs(!!y),p):o},p.extent=function(y){return arguments.length?(t=typeof y=="function"?y:Rs([[+y[0][0],+y[0][1]],[+y[1][0],+y[1][1]]]),p):t},p.scaleExtent=function(y){return arguments.length?(i[0]=+y[0],i[1]=+y[1],p):[i[0],i[1]]},p.translateExtent=function(y){return arguments.length?(s[0][0]=+y[0][0],s[1][0]=+y[1][0],s[0][1]=+y[0][1],s[1][1]=+y[1][1],p):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},p.constrain=function(y){return arguments.length?(n=y,p):n},p.duration=function(y){return arguments.length?(a=+y,p):a},p.interpolate=function(y){return arguments.length?(c=y,p):c},p.on=function(){var y=l.on.apply(l,arguments);return y===l?p:y},p.clickDistance=function(y){return arguments.length?(m=(y=+y)*y,p):Math.sqrt(m)},p.tapDistance=function(y){return arguments.length?(g=+y,p):g},p}var LR=["commitGraph"],ql=class e{svgElement;commits=[];colorPalette;commitClick=new re;svg;g;zoom;observer=null;zoomLevel=1;ngAfterViewInit(){this.initializeGraph(),this.setupDarkModeObserver(),this.setupKeyboardShortcuts()}ngOnChanges(t){t.commits&&this.svg&&this.renderGraph()}ngOnDestroy(){this.observer&&this.observer.disconnect(),document.removeEventListener("keydown",this.handleKeyDown)}zoomIn(){this.zoom.scaleBy(this.svg.transition().duration(300),1.3)}zoomOut(){this.zoom.scaleBy(this.svg.transition().duration(300),1/1.3)}resetZoom(){this.svg.transition().duration(300).call(this.zoom.transform,Wr)}setupKeyboardShortcuts(){this.handleKeyDown=this.handleKeyDown.bind(this),document.addEventListener("keydown",this.handleKeyDown)}handleKeyDown(t){if(!(t.target instanceof HTMLInputElement||t.target instanceof HTMLTextAreaElement))switch(t.key){case"+":case"=":t.preventDefault(),this.zoomIn();break;case"-":t.preventDefault(),this.zoomOut();break;case"0":t.preventDefault(),this.resetZoom();break}}initializeGraph(){this.svg=wt(this.svgElement.nativeElement),this.g=this.svg.append("g"),this.zoom=Vp().scaleExtent([.1,5]).on("zoom",t=>{this.zoomLevel=t.transform.k,this.g.attr("transform",t.transform)}),this.svg.call(this.zoom),this.renderGraph()}renderGraph(){if(!this.commits.length)return;this.g.selectAll("*").remove();let t=this.svgElement.nativeElement.getBoundingClientRect().width,n=600,r={top:20,right:20,bottom:20,left:20},o=this.getGraphColors(),{nodes:i,links:s,branches:a}=this.createGitGraphStructure(),c=kp(i).force("link",Op(s).id(d=>d.id).distance(100)).force("charge",Pp().strength(-300)).force("center",Ap(t/2,n/2)).force("collision",Rp().radius(30)),l=this.g.selectAll(".branch-group").data(a).enter().append("g").attr("class","branch-group");l.selectAll(".branch-line").data(d=>d.links).enter().append("line").attr("class","branch-line").attr("stroke",(d,h)=>this.getBranchColor(d.branch,o)).attr("stroke-width",3).attr("opacity",.7),this.g.selectAll(".link").data(s).enter().append("line").attr("class","link").attr("stroke",o.link).attr("stroke-width",2).attr("opacity",.5);let u=this.g.selectAll(".commit-node").data(i).enter().append("g").attr("class","commit-node").style("cursor","pointer");u.append("circle").attr("r",10).attr("fill",d=>this.getNodeColor(d,o)).attr("stroke",o.nodeStroke).attr("stroke-width",2),u.append("text").attr("text-anchor","middle").attr("dy",25).attr("fill",o.text).attr("class","text-xs").text(d=>d.commit.hash.substring(0,6)),u.append("title").text(d=>`${d.commit.message}
|
|
6
|
+
${d.commit.author}
|
|
7
|
+
${this.formatDate(d.commit.date)}`),u.on("click",(d,h)=>{this.commitClick.emit(h.commit)}),c.on("tick",()=>{l.selectAll(".branch-line").attr("x1",d=>d.source.x).attr("y1",d=>d.source.y).attr("x2",d=>d.target.x).attr("y2",d=>d.target.y),this.g.selectAll(".link").attr("x1",d=>d.source.x).attr("y1",d=>d.source.y).attr("x2",d=>d.target.x).attr("y2",d=>d.target.y),u.attr("transform",d=>`translate(${d.x},${d.y})`)})}getGraphColors(){let t=document.documentElement.classList.contains("dark");return console.log("Graph colors - Dark mode:",t),this.colorPalette?{link:this.colorPalette.colors.link,nodeFill:this.colorPalette.colors.nodeFill,nodeStroke:this.colorPalette.colors.nodeStroke,text:this.colorPalette.colors.graphText}:t?{link:"#4b5563",nodeFill:"#3b82f6",nodeStroke:"#1e40af",text:"#9ca3af"}:{link:"#cbd5e0",nodeFill:"#3b82f6",nodeStroke:"#1e40af",text:"#6b7280"}}setupDarkModeObserver(){this.observer=new MutationObserver(t=>{t.forEach(n=>{n.type==="attributes"&&n.attributeName==="class"&&this.svg&&this.renderGraph()})}),this.observer.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}createGitGraphStructure(){let t=this.commits.map((s,a)=>({id:s.hash,commit:s,branch:s.branches[0]||"main",index:a,isMerge:s.parents&&s.parents.length>1,isBranch:s.branches.length>0})),n=[],r=[],o=["#3b82f6","#10b981","#f59e0b","#ef4444","#8b5cf6","#06b6d4"];for(let s=1;s<t.length;s++){let a=t[s],c=t[s-1];n.push({source:c.id,target:a.id,branch:a.branch})}let i=new Map;return t.forEach(s=>{let a=s.branch;i.has(a)||i.set(a,[]),i.get(a).push(s)}),i.forEach((s,a)=>{let c=[];for(let l=1;l<s.length;l++)c.push({source:s[l-1],target:s[l],branch:a});r.push({name:a,links:c,color:o[r.length%o.length]})}),{nodes:t,links:n,branches:r}}getBranchColor(t,n){let r=["#3b82f6","#10b981","#f59e0b","#ef4444","#8b5cf6","#06b6d4"],o=t.charCodeAt(0)%r.length;return r[o]}getNodeColor(t,n){return t.isMerge?"#8b5cf6":t.isBranch?"#10b981":n.nodeFill}formatDate(t){let n=new Date(t);return n.toLocaleDateString()+" "+n.toLocaleTimeString()}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Qe({type:e,selectors:[["app-commit-graph"]],viewQuery:function(n,r){if(n&1&&Zf(LR,7),n&2){let o;Yf(o=Qf())&&(r.svgElement=o.first)}},inputs:{commits:"commits",colorPalette:"colorPalette"},outputs:{commitClick:"commitClick"},features:[nn],decls:18,vars:1,consts:[["commitGraph",""],[1,"graph-container"],[1,"zoom-controls"],["title","Zoom In (+ or =)",1,"zoom-btn",3,"click"],["width","16","height","16","viewBox","0 0 24 24","fill","currentColor"],["d","M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"],["title","Zoom Out (-)",1,"zoom-btn",3,"click"],["d","M19 13H5v-2h14v2z"],["title","Reset Zoom (0)",1,"zoom-btn",3,"click"],["d","M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"],["title","Current zoom level",1,"zoom-level"],[1,"zoom-instructions"],["width","100%","height","600"]],template:function(n,r){if(n&1){let o=ft();Ct(0,"div",1)(1,"div",2)(2,"button",3),xo("click",function(){return ge(o),me(r.zoomIn())}),kt(),Ct(3,"svg",4),Rr(4,"path",5),on()(),qn(),Ct(5,"button",6),xo("click",function(){return ge(o),me(r.zoomOut())}),kt(),Ct(6,"svg",4),Rr(7,"path",7),on()(),qn(),Ct(8,"button",8),xo("click",function(){return ge(o),me(r.resetZoom())}),kt(),Ct(9,"svg",4),Rr(10,"path",9),on()(),qn(),Ct(11,"span",10),T(12),on()(),Ct(13,"div",11)(14,"span"),T(15,"Use mouse wheel to zoom \u2022 Drag to pan \u2022 Click commits for details"),on()(),kt(),Rr(16,"svg",12,0),on()}n&2&&(C(12),be("",(r.zoomLevel*100).toFixed(0),"%"))},dependencies:[it],styles:[".graph-container[_ngcontent-%COMP%]{background-color:#fff;border-radius:.5rem;box-shadow:0 1px 3px #0000001a;padding:1.5rem;transition:background-color .2s ease;position:relative}.zoom-controls[_ngcontent-%COMP%]{position:absolute;top:1rem;right:1rem;display:flex;align-items:center;gap:.5rem;z-index:10;background-color:#ffffffe6;padding:.5rem;border-radius:.375rem;box-shadow:0 2px 4px #0000001a;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.zoom-btn[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:2rem;height:2rem;border:1px solid #d1d5db;border-radius:.25rem;background-color:#fff;color:#374151;cursor:pointer;transition:all .2s ease}.zoom-btn[_ngcontent-%COMP%]:hover{background-color:#f3f4f6;border-color:#9ca3af}.zoom-btn[_ngcontent-%COMP%]:active{background-color:#e5e7eb}.zoom-level[_ngcontent-%COMP%]{font-size:.875rem;font-weight:500;color:#374151;min-width:3rem;text-align:center}.zoom-instructions[_ngcontent-%COMP%]{position:absolute;bottom:1rem;left:1rem;background-color:#ffffffe6;padding:.5rem .75rem;border-radius:.375rem;box-shadow:0 2px 4px #0000001a;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);font-size:.75rem;color:#6b7280;z-index:10}.dark[_ngcontent-%COMP%] .graph-container[_ngcontent-%COMP%]{background-color:#2d2d2d}.dark[_ngcontent-%COMP%] .zoom-controls[_ngcontent-%COMP%]{background-color:#2d2d2de6;border:1px solid #404040}.dark[_ngcontent-%COMP%] .zoom-btn[_ngcontent-%COMP%]{background-color:#404040;border-color:#555;color:#e0e0e0}.dark[_ngcontent-%COMP%] .zoom-btn[_ngcontent-%COMP%]:hover{background-color:#555;border-color:#666}.dark[_ngcontent-%COMP%] .zoom-btn[_ngcontent-%COMP%]:active{background-color:#666}.dark[_ngcontent-%COMP%] .zoom-level[_ngcontent-%COMP%]{color:#e0e0e0}.dark[_ngcontent-%COMP%] .zoom-instructions[_ngcontent-%COMP%]{background-color:#2d2d2de6;color:#9ca3af;border:1px solid #404040}.dark[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{background-color:transparent}.commit-node[_ngcontent-%COMP%]{cursor:pointer;transition:all .2s ease}.commit-node[_ngcontent-%COMP%]:hover{transform:scale(1.1)}.commit-node[_ngcontent-%COMP%] circle[_ngcontent-%COMP%]{transition:all .2s ease}.commit-node[_ngcontent-%COMP%]:hover circle[_ngcontent-%COMP%]{stroke-width:3px}"]})};function VR(e,t){if(e&1){let n=ft();b(0,"div",22)(1,"span",23),T(2),E(),b(3,"button",24),q("click",function(){let o=ge(n).$implicit,i=ee(2);return me(i.onFileClick(o.file))}),T(4," View Diff "),E()()}if(e&2){let n=t.$implicit;C(2),Ne(n.file)}}function jR(e,t){if(e&1&&(b(0,"div",27)(1,"div",28),T(2),E(),b(3,"div",29),T(4),E()()),e&2){let n=t.$implicit;C(2),Ne(n.file),C(2),Mc(" +",n.additions," -",n.deletions," ")}}function BR(e,t){if(e&1&&(b(0,"div",17)(1,"h4",18),T(2,"Diff Summary"),E(),b(3,"div",25),he(4,jR,5,3,"div",26),E()()),e&2){let n=ee(2);C(4),j("ngForOf",n.diffFiles)}}function UR(e,t){if(e&1&&(b(0,"div",8)(1,"div",9)(2,"div",10)(3,"div",11)(4,"span",12),T(5),E(),b(6,"span",13),T(7),E(),b(8,"span",14),T(9),E()(),b(10,"h3",15),T(11),E()(),b(12,"div",16)(13,"div",17)(14,"h4",18),T(15,"Files Changed"),E(),b(16,"div",19),he(17,VR,5,1,"div",20),E()(),he(18,BR,5,1,"div",21),E()()()),e&2){let n=ee();C(5),Ne(n.commit.hash),C(2),be("by ",n.commit.author),C(2),Ne(n.formatDate(n.commit.date)),C(2),Ne(n.commit.message),C(6),j("ngForOf",n.diffFiles),C(),j("ngIf",n.diffFiles.length>0)}}var Zl=class e{commit=null;diffFiles=[];close=new re;fileClick=new re;isDarkMode=!1;ngOnInit(){this.checkDarkMode(),this.setupDarkModeObserver()}checkDarkMode(){this.isDarkMode=document.documentElement.classList.contains("dark")}setupDarkModeObserver(){new MutationObserver(n=>{n.forEach(r=>{r.type==="attributes"&&r.attributeName==="class"&&this.checkDarkMode()})}).observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}onClose(){this.close.emit()}onFileClick(t){this.fileClick.emit(t)}formatDate(t){let n=new Date(t);return n.toLocaleDateString()+" "+n.toLocaleTimeString()}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Qe({type:e,selectors:[["app-commit-detail"]],inputs:{commit:"commit",diffFiles:"diffFiles"},outputs:{close:"close",fileClick:"fileClick"},decls:9,vars:3,consts:[[1,"modal-overlay",3,"click"],[1,"modal-container",3,"click"],[1,"modal-header"],[1,"modal-title"],[1,"close-button",3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"close-icon"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18L18 6M6 6l12 12"],["class","modal-content",4,"ngIf"],[1,"modal-content"],[1,"commit-details"],[1,"commit-header"],[1,"commit-meta"],[1,"commit-hash"],[1,"commit-author"],[1,"commit-date"],[1,"commit-message"],[1,"commit-sections"],[1,"section"],[1,"section-title"],[1,"file-list"],["class","file-item",4,"ngFor","ngForOf"],["class","section",4,"ngIf"],[1,"file-item"],[1,"file-name"],[1,"btn","btn-primary",3,"click"],[1,"diff-summary"],["class","diff-item",4,"ngFor","ngForOf"],[1,"diff-item"],[1,"diff-file-name"],[1,"diff-stats"]],template:function(n,r){n&1&&(b(0,"div",0),q("click",function(){return r.onClose()}),b(1,"div",1),q("click",function(i){return i.stopPropagation()}),b(2,"div",2)(3,"h3",3),T(4,"Commit Details"),E(),b(5,"button",4),q("click",function(){return r.onClose()}),kt(),b(6,"svg",5),ot(7,"path",6),E()()(),he(8,UR,19,6,"div",7),E()()),n&2&&(C(),sn("dark",r.isDarkMode),C(7),j("ngIf",r.commit))},dependencies:[it,Et,Vt],styles:[".modal-overlay[_ngcontent-%COMP%]{position:fixed;inset:0;background-color:#00000080;z-index:50;display:flex;align-items:center;justify-content:center;min-height:100vh;padding:1rem}.modal-container[_ngcontent-%COMP%]{background-color:#fff;border-radius:.5rem;box-shadow:0 20px 25px -5px #0000001a;max-width:64rem;width:100%;max-height:100vh;overflow-y:auto;transition:background-color .2s ease,color .2s ease}.modal-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:1.5rem;border-bottom:1px solid #e5e7eb;transition:border-bottom-color .2s ease}.modal-title[_ngcontent-%COMP%]{font-size:1.125rem;font-weight:600;color:#111827;transition:color .2s ease}.modal-container.dark[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%], .dark[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%], .dark[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%], .dark[_ngcontent-%COMP%] .modal-header[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%], .modal-container.dark[_ngcontent-%COMP%] .modal-header[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{color:#e0e0e0!important}.close-button[_ngcontent-%COMP%]{color:#6b7280;background:none;border:none;cursor:pointer;padding:.5rem}.close-button[_ngcontent-%COMP%]:hover{color:#374151}.close-icon[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem}.modal-content[_ngcontent-%COMP%]{padding:1.5rem}.commit-header[_ngcontent-%COMP%]{border-bottom:1px solid #e5e7eb;padding-bottom:1rem;margin-bottom:1rem;transition:border-bottom-color .2s ease}.commit-meta[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem}.commit-hash[_ngcontent-%COMP%]{font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.875rem;color:#6b7280;transition:color .2s ease}.commit-author[_ngcontent-%COMP%]{font-size:.875rem;color:#374151;transition:color .2s ease}.commit-date[_ngcontent-%COMP%]{font-size:.875rem;color:#6b7280;transition:color .2s ease}.commit-message[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:600;color:#111827;transition:color .2s ease}.commit-sections[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem}.section-title[_ngcontent-%COMP%]{font-size:1.125rem;font-weight:500;color:#111827;margin-bottom:.75rem;transition:color .2s ease}.file-list[_ngcontent-%COMP%], .diff-summary[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.file-item[_ngcontent-%COMP%], .diff-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:.5rem;background-color:#f9fafb;border-radius:.25rem;transition:background-color .2s ease}.file-name[_ngcontent-%COMP%], .diff-file-name[_ngcontent-%COMP%]{font-size:.875rem;color:#374151;transition:color .2s ease}.diff-stats[_ngcontent-%COMP%]{font-size:.75rem;color:#6b7280;transition:color .2s ease}.dark[_ngcontent-%COMP%] .modal-container[_ngcontent-%COMP%]{background-color:#2d2d2d!important;color:#e0e0e0!important}.dark[_ngcontent-%COMP%] .modal-header[_ngcontent-%COMP%]{border-color:#404040!important}.dark[_ngcontent-%COMP%] .modal-title[_ngcontent-%COMP%]{color:#e0e0e0!important}.dark[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]{color:#9ca3af!important}.dark[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]:hover{color:#d1d5db!important}.dark[_ngcontent-%COMP%] .commit-header[_ngcontent-%COMP%]{border-color:#404040!important}.dark[_ngcontent-%COMP%] .commit-hash[_ngcontent-%COMP%]{color:#9ca3af!important}.dark[_ngcontent-%COMP%] .commit-author[_ngcontent-%COMP%]{color:#d1d5db!important}.dark[_ngcontent-%COMP%] .commit-date[_ngcontent-%COMP%]{color:#9ca3af!important}.dark[_ngcontent-%COMP%] .commit-message[_ngcontent-%COMP%], .dark[_ngcontent-%COMP%] .section-title[_ngcontent-%COMP%]{color:#e0e0e0!important}.dark[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%], .dark[_ngcontent-%COMP%] .diff-item[_ngcontent-%COMP%]{background-color:#404040!important}.dark[_ngcontent-%COMP%] .file-name[_ngcontent-%COMP%], .dark[_ngcontent-%COMP%] .diff-file-name[_ngcontent-%COMP%]{color:#d1d5db!important}.dark[_ngcontent-%COMP%] .diff-stats[_ngcontent-%COMP%]{color:#9ca3af!important}@media (max-width: 768px){.commit-sections[_ngcontent-%COMP%]{grid-template-columns:1fr}}"]})};function $R(e,t){if(e&1&&(b(0,"div",14)(1,"span",15),T(2),E(),b(3,"span",16),T(4),E()()),e&2){let n=t.$implicit;sn("added",n.type==="added")("removed",n.type==="removed")("context",n.type==="context"),C(2),Ne(n.lineNumber),C(2),Ne(n.content)}}function HR(e,t){if(e&1&&(b(0,"div",12),he(1,$R,5,8,"div",13),E()),e&2){let n=ee();C(),j("ngForOf",n.diffLines)("ngForTrackBy",n.trackByLine)}}function zR(e,t){e&1&&(b(0,"div",17)(1,"p"),T(2,"No diff content available for this file."),E()())}var Yl=class e{fileName="";diffFile=null;close=new re;diffLines=[];ngOnInit(){console.log("DiffViewer ngOnInit called"),this.parseDiff()}ngOnChanges(){console.log("DiffViewer ngOnChanges called"),this.parseDiff()}parseDiff(){if(console.log("parseDiff called with diffFile:",this.diffFile),!this.diffFile?.changes){console.log("No changes found in diffFile"),this.diffLines=[];return}let t=this.diffFile.changes.split(`
|
|
8
|
+
`);console.log("Parsed lines:",t.length),this.diffLines=t.map((n,r)=>{let o="context",i=(r+1).toString(),s=n;return n.startsWith("+")?(o="added",s=n.substring(1)):n.startsWith("-")?(o="removed",s=n.substring(1)):n.startsWith("@@")&&(i="@@",s=n),{type:o,lineNumber:i,content:s}}),console.log("Parsed diff lines:",this.diffLines.length)}onClose(){this.close.emit()}trackByLine(t,n){return`${n.type}-${t}`}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Qe({type:e,selectors:[["app-diff-viewer"]],inputs:{fileName:"fileName",diffFile:"diffFile"},outputs:{close:"close"},features:[nn],decls:15,vars:5,consts:[[1,"diff-viewer"],[1,"diff-header"],[1,"diff-title"],[1,"close-button",3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"close-icon"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M6 18L18 6M6 6l12 12"],[1,"diff-content"],[1,"diff-stats"],[1,"stat","added"],[1,"stat","removed"],["class","diff-lines",4,"ngIf"],["class","no-diff",4,"ngIf"],[1,"diff-lines"],["class","diff-line",3,"added","removed","context",4,"ngFor","ngForOf","ngForTrackBy"],[1,"diff-line"],[1,"line-number"],[1,"line-content"],[1,"no-diff"]],template:function(n,r){n&1&&(b(0,"div",0)(1,"div",1)(2,"h3",2),T(3),E(),b(4,"button",3),q("click",function(){return r.onClose()}),kt(),b(5,"svg",4),ot(6,"path",5),E()()(),qn(),b(7,"div",6)(8,"div",7)(9,"span",8),T(10),E(),b(11,"span",9),T(12),E()(),he(13,HR,2,2,"div",10)(14,zR,3,0,"div",11),E()()),n&2&&(C(3),be("Diff: ",r.fileName),C(7),be("+",(r.diffFile==null?null:r.diffFile.additions)||0," additions"),C(2),be("-",(r.diffFile==null?null:r.diffFile.deletions)||0," deletions"),C(),j("ngIf",r.diffLines.length>0),C(),j("ngIf",r.diffLines.length===0))},dependencies:[it,Et,Vt],styles:[".diff-viewer[_ngcontent-%COMP%]{background-color:#fff;border-radius:.5rem;box-shadow:0 20px 25px -5px #0000001a;max-width:90vw;width:100%;max-height:80vh;overflow:hidden;display:flex;flex-direction:column}.diff-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.5rem;border-bottom:1px solid #e5e7eb;background-color:#f9fafb}.diff-title[_ngcontent-%COMP%]{font-size:1.125rem;font-weight:600;color:#111827;margin:0}.close-button[_ngcontent-%COMP%]{background:none;border:none;color:#6b7280;cursor:pointer;padding:.25rem;border-radius:.25rem;transition:color .2s}.close-button[_ngcontent-%COMP%]:hover{color:#374151}.close-icon[_ngcontent-%COMP%]{width:1.5rem;height:1.5rem}.diff-content[_ngcontent-%COMP%]{flex:1;overflow-y:auto;padding:1rem}.diff-stats[_ngcontent-%COMP%]{display:flex;gap:1rem;margin-bottom:1rem;padding:.5rem;background-color:#f9fafb;border-radius:.375rem}.stat[_ngcontent-%COMP%]{font-size:.875rem;font-weight:500}.stat.added[_ngcontent-%COMP%]{color:#059669}.stat.removed[_ngcontent-%COMP%]{color:#dc2626}.diff-lines[_ngcontent-%COMP%]{font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.875rem;line-height:1.5;border:1px solid #e5e7eb;border-radius:.375rem;overflow:hidden}.diff-line[_ngcontent-%COMP%]{display:flex;padding:.125rem .5rem;border-bottom:1px solid #f3f4f6}.diff-line[_ngcontent-%COMP%]:last-child{border-bottom:none}.diff-line.added[_ngcontent-%COMP%]{background-color:#dcfce7}.diff-line.removed[_ngcontent-%COMP%]{background-color:#fee2e2}.diff-line.context[_ngcontent-%COMP%]{background-color:#f9fafb}.line-number[_ngcontent-%COMP%]{min-width:3rem;color:#6b7280;font-size:.75rem;padding-right:.5rem;border-right:1px solid #e5e7eb;margin-right:.5rem}.line-content[_ngcontent-%COMP%]{flex:1;white-space:pre-wrap;word-break:break-all}.diff-line.added[_ngcontent-%COMP%] .line-content[_ngcontent-%COMP%]{color:#166534}.diff-line.removed[_ngcontent-%COMP%] .line-content[_ngcontent-%COMP%]{color:#991b1b}.diff-line.context[_ngcontent-%COMP%] .line-content[_ngcontent-%COMP%]{color:#374151}.no-diff[_ngcontent-%COMP%]{text-align:center;padding:2rem;color:#6b7280}.dark[_ngcontent-%COMP%] .diff-viewer[_ngcontent-%COMP%]{background-color:#2d2d2d;color:#e0e0e0}.dark[_ngcontent-%COMP%] .diff-header[_ngcontent-%COMP%]{background-color:#404040;border-color:#555}.dark[_ngcontent-%COMP%] .diff-title[_ngcontent-%COMP%]{color:#e0e0e0}.dark[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]{color:#9ca3af}.dark[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]:hover{color:#d1d5db}.dark[_ngcontent-%COMP%] .diff-stats[_ngcontent-%COMP%]{background-color:#404040}.dark[_ngcontent-%COMP%] .diff-lines[_ngcontent-%COMP%]{border-color:#555}.dark[_ngcontent-%COMP%] .diff-line[_ngcontent-%COMP%]{border-color:#404040}.dark[_ngcontent-%COMP%] .diff-line.added[_ngcontent-%COMP%]{background-color:#14532d}.dark[_ngcontent-%COMP%] .diff-line.removed[_ngcontent-%COMP%]{background-color:#7f1d1d}.dark[_ngcontent-%COMP%] .diff-line.context[_ngcontent-%COMP%]{background-color:#404040}.dark[_ngcontent-%COMP%] .line-number[_ngcontent-%COMP%]{color:#9ca3af;border-color:#555}.dark[_ngcontent-%COMP%] .diff-line.added[_ngcontent-%COMP%] .line-content[_ngcontent-%COMP%]{color:#bbf7d0}.dark[_ngcontent-%COMP%] .diff-line.removed[_ngcontent-%COMP%] .line-content[_ngcontent-%COMP%]{color:#fecaca}.dark[_ngcontent-%COMP%] .diff-line.context[_ngcontent-%COMP%] .line-content[_ngcontent-%COMP%]{color:#d1d5db}.dark[_ngcontent-%COMP%] .no-diff[_ngcontent-%COMP%]{color:#9ca3af}"]})};var si={default:{id:"default",name:"Default",description:"Classic blue theme",colors:{primary:"#3b82f6",secondary:"#6b7280",accent:"#1e40af",background:"#ffffff",text:"#111827",border:"#e5e7eb",link:"#cbd5e0",nodeFill:"#3b82f6",nodeStroke:"#1e40af",graphText:"#6b7280"}},ocean:{id:"ocean",name:"Ocean",description:"Deep blue ocean theme",colors:{primary:"#0ea5e9",secondary:"#64748b",accent:"#0369a1",background:"#ffffff",text:"#0f172a",border:"#e2e8f0",link:"#94a3b8",nodeFill:"#0ea5e9",nodeStroke:"#0369a1",graphText:"#475569"}},forest:{id:"forest",name:"Forest",description:"Green nature theme",colors:{primary:"#10b981",secondary:"#6b7280",accent:"#059669",background:"#ffffff",text:"#111827",border:"#e5e7eb",link:"#d1fae5",nodeFill:"#10b981",nodeStroke:"#059669",graphText:"#6b7280"}},sunset:{id:"sunset",name:"Sunset",description:"Warm orange theme",colors:{primary:"#f59e0b",secondary:"#6b7280",accent:"#d97706",background:"#ffffff",text:"#111827",border:"#e5e7eb",link:"#fed7aa",nodeFill:"#f59e0b",nodeStroke:"#d97706",graphText:"#6b7280"}},monochrome:{id:"monochrome",name:"Monochrome",description:"Black and white theme",colors:{primary:"#374151",secondary:"#6b7280",accent:"#111827",background:"#ffffff",text:"#111827",border:"#e5e7eb",link:"#d1d5db",nodeFill:"#374151",nodeStroke:"#111827",graphText:"#6b7280"}},neon:{id:"neon",name:"Neon",description:"Bright neon theme",colors:{primary:"#ec4899",secondary:"#8b5cf6",accent:"#06b6d4",background:"#ffffff",text:"#111827",border:"#e5e7eb",link:"#f0abfc",nodeFill:"#ec4899",nodeStroke:"#be185d",graphText:"#6b7280"}}},Os={default:{id:"default",name:"Default Dark",description:"Classic dark theme",colors:{primary:"#3b82f6",secondary:"#6b7280",accent:"#1e40af",background:"#1a1a1a",text:"#e0e0e0",border:"#404040",link:"#4b5563",nodeFill:"#3b82f6",nodeStroke:"#1e40af",graphText:"#9ca3af"}},ocean:{id:"ocean",name:"Ocean Dark",description:"Deep ocean dark theme",colors:{primary:"#0ea5e9",secondary:"#64748b",accent:"#0369a1",background:"#0f172a",text:"#f1f5f9",border:"#334155",link:"#475569",nodeFill:"#0ea5e9",nodeStroke:"#0369a1",graphText:"#94a3b8"}},forest:{id:"forest",name:"Forest Dark",description:"Dark green theme",colors:{primary:"#10b981",secondary:"#6b7280",accent:"#059669",background:"#064e3b",text:"#ecfdf5",border:"#065f46",link:"#065f46",nodeFill:"#10b981",nodeStroke:"#059669",graphText:"#6ee7b7"}},sunset:{id:"sunset",name:"Sunset Dark",description:"Dark orange theme",colors:{primary:"#f59e0b",secondary:"#6b7280",accent:"#d97706",background:"#451a03",text:"#fef3c7",border:"#92400e",link:"#92400e",nodeFill:"#f59e0b",nodeStroke:"#d97706",graphText:"#fbbf24"}},monochrome:{id:"monochrome",name:"Monochrome Dark",description:"Pure black and white",colors:{primary:"#e5e7eb",secondary:"#9ca3af",accent:"#f9fafb",background:"#000000",text:"#ffffff",border:"#374151",link:"#4b5563",nodeFill:"#e5e7eb",nodeStroke:"#f9fafb",graphText:"#9ca3af"}},neon:{id:"neon",name:"Neon Dark",description:"Bright neon on dark",colors:{primary:"#ec4899",secondary:"#8b5cf6",accent:"#06b6d4",background:"#0f0f23",text:"#ffffff",border:"#312e81",link:"#581c87",nodeFill:"#ec4899",nodeStroke:"#be185d",graphText:"#f0abfc"}}};function GR(e,t){if(e&1&&(b(0,"option",5),T(1),E()),e&2){let n=t.$implicit;j("value",n.id),C(),be(" ",n.name," ")}}function WR(e,t){if(e&1&&(b(0,"div",6)(1,"div",7)(2,"span",8),T(3,"Primary:"),E(),ot(4,"div",9),E(),b(5,"div",7)(6,"span",8),T(7,"Secondary:"),E(),ot(8,"div",9),E(),b(9,"div",7)(10,"span",8),T(11,"Accent:"),E(),ot(12,"div",9),E()()),e&2){let n=ee();C(4),H("background-color",n.currentPalette.colors.primary),C(4),H("background-color",n.currentPalette.colors.secondary),C(4),H("background-color",n.currentPalette.colors.accent)}}var Ql=class e{selectedPalette="default";darkMode=!1;paletteChange=new re;get availablePalettes(){let t=this.darkMode?Os:si;return Object.values(t)}get currentPalette(){return(this.darkMode?Os:si)[this.selectedPalette]||null}onPaletteChange(t){let r=t.target.value;this.paletteChange.emit(r)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Qe({type:e,selectors:[["app-color-palette-selector"]],inputs:{selectedPalette:"selectedPalette",darkMode:"darkMode"},outputs:{paletteChange:"paletteChange"},decls:6,vars:9,consts:[[1,"palette-selector"],[1,"palette-label"],[1,"palette-select",3,"change","value"],[3,"value",4,"ngFor","ngForOf"],["class","color-preview",4,"ngIf"],[3,"value"],[1,"color-preview"],[1,"preview-item"],[1,"preview-label"],[1,"color-swatch"]],template:function(n,r){n&1&&(b(0,"div",0)(1,"label",1),T(2,"Theme:"),E(),b(3,"select",2),q("change",function(i){return r.onPaletteChange(i)}),he(4,GR,2,2,"option",3),E(),he(5,WR,13,6,"div",4),E()),n&2&&(C(3),H("background-color",r.darkMode?"#404040":"white")("color",r.darkMode?"#e0e0e0":"#111827")("border-color",r.darkMode?"#555":"#d1d5db"),j("value",r.selectedPalette),C(),j("ngForOf",r.availablePalettes),C(),j("ngIf",r.currentPalette))},dependencies:[it,Et,Vt],styles:[".palette-selector[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;padding:.5rem;border-radius:.375rem;background-color:#ffffff0d;border:1px solid rgba(255,255,255,.1)}.palette-label[_ngcontent-%COMP%]{font-size:.875rem;font-weight:500;color:inherit;white-space:nowrap}.palette-select[_ngcontent-%COMP%]{padding:.25rem .5rem;border:1px solid;border-radius:.25rem;font-size:.875rem;cursor:pointer;transition:all .2s ease}.palette-select[_ngcontent-%COMP%]:focus{outline:none;box-shadow:0 0 0 2px #3b82f680}.color-preview[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;margin-left:.5rem}.preview-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.preview-label[_ngcontent-%COMP%]{font-size:.75rem;color:inherit;opacity:.7}.color-swatch[_ngcontent-%COMP%]{width:1rem;height:1rem;border-radius:.125rem;border:1px solid rgba(0,0,0,.1);box-shadow:0 1px 2px #0000001a}.dark[_ngcontent-%COMP%] .palette-selector[_ngcontent-%COMP%]{background-color:#0003;border-color:#ffffff1a}.dark[_ngcontent-%COMP%] .color-swatch[_ngcontent-%COMP%]{border-color:#fff3}@media (max-width: 768px){.color-preview[_ngcontent-%COMP%]{display:none}}"]})};var Kl=class e{constructor(t){this.http=t}apiUrl="/api";getCommits(t={}){let n=new URLSearchParams;return t.file&&n.set("file",t.file),t.since&&n.set("since",t.since),t.author&&n.set("author",t.author),t.page&&n.set("page",t.page.toString()),t.pageSize&&n.set("pageSize",t.pageSize.toString()),this.http.get(`${this.apiUrl}/commits?${n.toString()}`)}getCommit(t){return this.http.get(`${this.apiUrl}/commit/${t}`)}getDiff(t){return this.http.get(`${this.apiUrl}/diff/${t}`)}getBlame(t){return this.http.get(`${this.apiUrl}/blame/${encodeURIComponent(t)}`)}getTags(){return this.http.get(`${this.apiUrl}/tags`)}getBranches(){return this.http.get(`${this.apiUrl}/branches`)}static \u0275fac=function(n){return new(n||e)(k($c))};static \u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})};function ZR(e,t){if(e&1&&(b(0,"option",24),T(1),E()),e&2){let n=t.$implicit;j("value",n),C(),Ne(n)}}function YR(e,t){if(e&1&&(b(0,"div",25),ot(1,"div",26),b(2,"span"),T(3,"Loading commits..."),E()()),e&2){let n=ee();H("color",n.darkMode?"#e0e0e0":"#374151")}}function QR(e,t){if(e&1){let n=ft();b(0,"div")(1,"app-commit-graph",27),q("commitClick",function(o){ge(n);let i=ee();return me(i.showCommitDetails(o))}),E()()}if(e&2){let n=ee();C(),j("commits",n.filteredCommits)("colorPalette",n.getCurrentPalette())}}function KR(e,t){if(e&1){let n=ft();b(0,"div")(1,"app-commit-list",28),q("commitClick",function(o){ge(n);let i=ee();return me(i.showCommitDetails(o))})("pageChange",function(o){ge(n);let i=ee();return me(i.onPageChange(o))})("pageSizeChange",function(o){ge(n);let i=ee();return me(i.onPageSizeChange(o))}),E()()}if(e&2){let n=ee();C(),j("commits",n.filteredCommits)("colorPalette",n.getCurrentPalette())("currentPage",n.currentPage)("pageSize",n.pageSize)("totalCommits",n.totalCommits)("totalPages",n.totalPages)}}function XR(e,t){if(e&1){let n=ft();b(0,"app-commit-detail",29),q("close",function(){ge(n);let o=ee();return me(o.closeModal())})("fileClick",function(o){ge(n);let i=ee();return me(i.onFileClick(o))}),E()}if(e&2){let n=ee();j("commit",n.selectedCommit)("diffFiles",n.diffFiles)}}function JR(e,t){if(e&1){let n=ft();b(0,"div",30),q("click",function(){ge(n);let o=ee();return me(o.closeDiffModal())}),b(1,"div",31),q("click",function(o){return ge(n),me(o.stopPropagation())}),b(2,"app-diff-viewer",32),q("close",function(){ge(n);let o=ee();return me(o.closeDiffModal())}),E()()()}if(e&2){let n=ee();C(2),j("fileName",n.selectedFileName)("diffFile",n.selectedDiffFile)}}var Xl=class e{constructor(t){this.gitService=t}commits=[];filteredCommits=[];authors=[];tags=[];currentPage=1;pageSize=25;totalCommits=0;totalPages=1;hasNext=!1;hasPrevious=!1;currentView="list";darkMode=!1;selectedColorPalette="default";loading=!0;showModal=!1;selectedCommit=null;diffFiles=[];showDiffModal=!1;selectedFileName="";selectedDiffFile=null;searchQuery="";selectedAuthor="";selectedSince="";fileFilter="";ngOnInit(){this.initializeDarkMode(),this.initializeColorPalette(),this.loadCommits(),this.loadTags(),this.checkDarkMode()}loadCommits(t=1){this.loading=!0,this.currentPage=t;let n={page:t,pageSize:this.pageSize};this.selectedAuthor&&(n.author=this.selectedAuthor),this.selectedSince&&(n.since=this.selectedSince),this.fileFilter&&(n.file=this.fileFilter),this.gitService.getCommits(n).subscribe({next:r=>{this.commits=r.commits,this.filteredCommits=r.commits,this.totalCommits=r.total,this.totalPages=r.totalPages,this.hasNext=r.hasNext,this.hasPrevious=r.hasPrevious,this.currentPage=r.page,this.pageSize=r.pageSize,this.authors=[...new Set(r.commits.map(o=>o.author))],this.loading=!1},error:r=>{console.error("Error loading commits:",r),this.loading=!1}})}onPageChange(t){this.loadCommits(t)}onPageSizeChange(t){this.pageSize=t,this.loadCommits(1)}loadTags(){this.gitService.getTags().subscribe({next:t=>{this.tags=t},error:t=>{console.error("Error loading tags:",t)}})}switchView(t){this.currentView=t}toggleDarkMode(){this.darkMode=!this.darkMode,document.documentElement.classList.toggle("dark",this.darkMode),document.body.classList.toggle("dark",this.darkMode),localStorage.setItem("darkMode",this.darkMode.toString()),console.log("Dark mode toggled:",this.darkMode),console.log("Document element classes:",document.documentElement.classList.toString()),console.log("Body classes:",document.body.classList.toString()),document.body.offsetHeight}checkDarkMode(){this.darkMode=document.documentElement.classList.contains("dark")}initializeDarkMode(){let t=localStorage.getItem("darkMode");t!==null&&(this.darkMode=t==="true",this.darkMode&&(document.documentElement.classList.add("dark"),document.body.classList.add("dark")))}initializeColorPalette(){let t=localStorage.getItem("colorPalette");t&&Object.keys(si).includes(t)&&(this.selectedColorPalette=t)}onColorPaletteChange(t){this.selectedColorPalette=t,localStorage.setItem("colorPalette",t)}getCurrentPalette(){return(this.darkMode?Os:si)[this.selectedColorPalette]}onSearch(){this.loadCommits(1)}onAuthorFilter(){this.loadCommits(1)}onSinceFilter(){this.loadCommits(1),console.log("Date picker dark mode:",this.darkMode),console.log("Document dark class:",document.documentElement.classList.contains("dark"))}onFileFilter(){this.loadCommits(1)}showCommitDetails(t){this.selectedCommit=t,this.gitService.getDiff(t.hash).subscribe({next:n=>{this.diffFiles=n,this.showModal=!0},error:n=>{console.error("Error loading diff:",n),this.diffFiles=[],this.showModal=!0}})}closeModal(){this.showModal=!1,this.selectedCommit=null,this.diffFiles=[]}onFileClick(t){console.log("File clicked:",t),console.log("Available diff files:",this.diffFiles);let n=this.diffFiles.find(r=>r.file===t);console.log("Found diff file:",n),n?(this.selectedFileName=t,this.selectedDiffFile=n,this.showDiffModal=!0,console.log("Diff modal should be visible now")):console.warn("No diff found for file:",t)}closeDiffModal(){this.showDiffModal=!1,this.selectedFileName="",this.selectedDiffFile=null}static \u0275fac=function(n){return new(n||e)(oe(Kl))};static \u0275cmp=Qe({type:e,selectors:[["app-root"]],decls:43,vars:61,consts:[[1,"app-container"],[1,"header"],[1,"container"],[1,"flex","justify-between","items-center"],[1,"flex","items-center","space-x-4"],[1,"app-title"],[1,"flex","items-center",2,"gap","0.5rem"],[3,"click"],[3,"paletteChange","selectedPalette","darkMode"],[1,"btn","btn-secondary",3,"click"],[1,"search-container"],["type","text","placeholder","Search commits...",1,"search-input",3,"ngModelChange","input","ngModel"],[1,"filters"],[1,"filter-group"],[1,"filter-select",3,"ngModelChange","change","ngModel"],["value",""],[3,"value",4,"ngFor","ngForOf"],["type","date","placeholder","Select date",1,"filter-input","date-picker",3,"ngModelChange","change","ngModel"],["type","text","placeholder","Filter by file...",1,"filter-input",3,"ngModelChange","input","ngModel"],[1,"main-content"],["class","loading",3,"color",4,"ngIf"],[4,"ngIf"],[3,"commit","diffFiles","close","fileClick",4,"ngIf"],["class","modal-overlay",3,"click",4,"ngIf"],[3,"value"],[1,"loading"],[1,"spinner"],[3,"commitClick","commits","colorPalette"],[3,"commitClick","pageChange","pageSizeChange","commits","colorPalette","currentPage","pageSize","totalCommits","totalPages"],[3,"close","fileClick","commit","diffFiles"],[1,"modal-overlay",3,"click"],[1,"modal-container",3,"click"],[3,"close","fileName","diffFile"]],template:function(n,r){n&1&&(b(0,"div",0)(1,"header",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h1",5),T(6," \u{1F4CA} Git History UI "),E(),b(7,"div",6)(8,"button",7),q("click",function(){return r.switchView("graph")}),T(9," Graph View "),E(),b(10,"button",7),q("click",function(){return r.switchView("list")}),T(11," List View "),E()()(),b(12,"div",4)(13,"app-color-palette-selector",8),q("paletteChange",function(i){return r.onColorPaletteChange(i)}),E(),b(14,"button",9),q("click",function(){return r.toggleDarkMode()}),T(15),E(),b(16,"div",10)(17,"input",11),kr("ngModelChange",function(i){return To(r.searchQuery,i)||(r.searchQuery=i),i}),q("input",function(){return r.onSearch()}),E()()()()()(),b(18,"div",12)(19,"div",2)(20,"div",4)(21,"div",13)(22,"label"),T(23,"Author:"),E(),b(24,"select",14),kr("ngModelChange",function(i){return To(r.selectedAuthor,i)||(r.selectedAuthor=i),i}),q("change",function(){return r.onAuthorFilter()}),b(25,"option",15),T(26,"All authors"),E(),he(27,ZR,2,2,"option",16),E()(),b(28,"div",13)(29,"label"),T(30,"Since:"),E(),b(31,"input",17),kr("ngModelChange",function(i){return To(r.selectedSince,i)||(r.selectedSince=i),i}),q("change",function(){return r.onSinceFilter()}),E()(),b(32,"div",13)(33,"label"),T(34,"File:"),E(),b(35,"input",18),kr("ngModelChange",function(i){return To(r.fileFilter,i)||(r.fileFilter=i),i}),q("input",function(){return r.onFileFilter()}),E()()()()(),b(36,"main",19)(37,"div",2),he(38,YR,4,2,"div",20)(39,QR,2,2,"div",21)(40,KR,2,6,"div",21),E()(),he(41,XR,1,2,"app-commit-detail",22)(42,JR,3,2,"div",23),E()),n&2&&(C(),H("background-color",r.darkMode?"#2d2d2d":"white")("border-bottom-color",r.darkMode?"#404040":"#e5e7eb"),C(4),H("color",r.darkMode?"#e0e0e0":"#111827"),C(3),Ic(r.currentView==="graph"?"btn btn-primary":"btn btn-secondary"),C(2),Ic(r.currentView==="list"?"btn btn-primary":"btn btn-secondary"),C(3),j("selectedPalette",r.selectedColorPalette)("darkMode",r.darkMode),C(2),be(" ",r.darkMode?"\u2600\uFE0F":"\u{1F319}"," "),C(2),H("background-color",r.darkMode?"#404040":"white")("color",r.darkMode?"#e0e0e0":"#111827")("border-color",r.darkMode?"#555":"#d1d5db"),Or("ngModel",r.searchQuery),C(),H("background-color",r.darkMode?"#2d2d2d":"white")("border-bottom-color",r.darkMode?"#404040":"#e5e7eb"),C(4),H("color",r.darkMode?"#d1d5db":"#374151"),C(2),H("background-color",r.darkMode?"#404040":"white")("color",r.darkMode?"#e0e0e0":"#111827")("border-color",r.darkMode?"#555":"#d1d5db"),Or("ngModel",r.selectedAuthor),C(3),j("ngForOf",r.authors),C(2),H("color",r.darkMode?"#d1d5db":"#374151"),C(2),H("background-color",r.darkMode?"#404040":"white")("color",r.darkMode?"#e0e0e0":"#111827")("border-color",r.darkMode?"#555":"#d1d5db")("caret-color",r.darkMode?"#e0e0e0":"#111827"),Or("ngModel",r.selectedSince),C(2),H("color",r.darkMode?"#d1d5db":"#374151"),C(2),H("background-color",r.darkMode?"#404040":"white")("color",r.darkMode?"#e0e0e0":"#111827")("border-color",r.darkMode?"#555":"#d1d5db"),Or("ngModel",r.fileFilter),C(),H("background-color",r.darkMode?"#1a1a1a":"#f8f9fa"),C(2),j("ngIf",r.loading),C(),j("ngIf",!r.loading&&r.currentView==="graph"),C(),j("ngIf",!r.loading&&r.currentView==="list"),C(),j("ngIf",r.showModal),C(),j("ngIf",r.showDiffModal))},dependencies:[it,Et,Vt,y0,g0,v0,gl,vl,d0,up,Eh,yl,ql,Zl,Yl,Ql],styles:[".app-container[_ngcontent-%COMP%]{min-height:100vh;background-color:#f8f9fa;transition:background-color .2s ease}.dark[_ngcontent-%COMP%] .app-container[_ngcontent-%COMP%]{background-color:#1a1a1a}.header[_ngcontent-%COMP%]{background-color:#fff;border-bottom:1px solid #e5e7eb;padding:1rem 0;transition:background-color .2s ease,border-bottom-color .2s ease}.app-title[_ngcontent-%COMP%]{font-size:1.5rem;font-weight:700;color:#111827;transition:color .2s ease}.search-container[_ngcontent-%COMP%]{position:relative}.search-input[_ngcontent-%COMP%]{width:16rem;padding:.5rem .75rem;border:1px solid #d1d5db;border-radius:.375rem;background-color:#fff;font-size:.875rem}.filters[_ngcontent-%COMP%]{background-color:#fff;border-bottom:1px solid #e5e7eb;padding:1rem 0}.filter-group[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.filter-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:.875rem;font-weight:500;color:#374151}.filter-select[_ngcontent-%COMP%], .filter-input[_ngcontent-%COMP%]{padding:.25rem .5rem;border:1px solid #d1d5db;border-radius:.25rem;background-color:#fff;font-size:.875rem}.date-picker[_ngcontent-%COMP%]{min-width:200px;transition:all .2s ease}.date-picker[_ngcontent-%COMP%]::-webkit-calendar-picker-indicator{filter:invert(.5);cursor:pointer;transition:filter .2s ease}.dark[_ngcontent-%COMP%] .date-picker[_ngcontent-%COMP%]::-webkit-calendar-picker-indicator{filter:invert(1)}.dark[_ngcontent-%COMP%] .date-picker[_ngcontent-%COMP%], .dark[_ngcontent-%COMP%] .filter-input.date-picker[_ngcontent-%COMP%]{background-color:#404040!important;color:#e0e0e0!important;border-color:#555!important}.dark[_ngcontent-%COMP%] .date-picker[_ngcontent-%COMP%]:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 2px #3b82f633}.date-picker[_ngcontent-%COMP%]:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 2px #3b82f633}.date-picker[_ngcontent-%COMP%]::-webkit-datetime-edit{color:inherit}.date-picker[_ngcontent-%COMP%]::-webkit-datetime-edit-fields-wrapper{color:inherit}.date-picker[_ngcontent-%COMP%]::-webkit-datetime-edit-text{color:inherit}.date-picker[_ngcontent-%COMP%]::-webkit-datetime-edit-month-field, .date-picker[_ngcontent-%COMP%]::-webkit-datetime-edit-day-field, .date-picker[_ngcontent-%COMP%]::-webkit-datetime-edit-year-field{color:inherit}.date-picker[_ngcontent-%COMP%]::-webkit-datetime-edit-hour-field, .date-picker[_ngcontent-%COMP%]::-webkit-datetime-edit-minute-field, .date-picker[_ngcontent-%COMP%]::-webkit-datetime-edit-second-field{color:inherit}.main-content[_ngcontent-%COMP%]{padding:1.5rem 0;transition:background-color .2s ease}.dark[_ngcontent-%COMP%] .main-content[_ngcontent-%COMP%]{background-color:#1a1a1a}.loading[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding:3rem 0;gap:.75rem}.spinner[_ngcontent-%COMP%]{width:2rem;height:2rem;border:2px solid #e5e7eb;border-top:2px solid #3b82f6;border-radius:50%;animation:_ngcontent-%COMP%_spin 1s linear infinite}.dark[_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%]{border-color:#404040;border-top-color:#3b82f6}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.modal-overlay[_ngcontent-%COMP%]{position:fixed;inset:0;background-color:#00000080;z-index:50;display:flex;align-items:center;justify-content:center;min-height:100vh;padding:1rem}.modal-container[_ngcontent-%COMP%]{background-color:transparent;max-width:90vw;width:100%;max-height:90vh;overflow:hidden}.dark[_ngcontent-%COMP%] .app-container[_ngcontent-%COMP%]{background-color:#1a1a1a!important}.dark[_ngcontent-%COMP%] .header[_ngcontent-%COMP%], .dark[_ngcontent-%COMP%] .filters[_ngcontent-%COMP%]{background-color:#2d2d2d!important;border-bottom-color:#404040!important}.dark[_ngcontent-%COMP%] .app-title[_ngcontent-%COMP%]{color:#e0e0e0!important}.dark[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%], .dark[_ngcontent-%COMP%] .filter-select[_ngcontent-%COMP%], .dark[_ngcontent-%COMP%] .filter-input[_ngcontent-%COMP%]{background-color:#404040;border-color:#555;color:#e0e0e0}.dark[_ngcontent-%COMP%] .filter-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:#d1d5db}.dark[_ngcontent-%COMP%] .graph-container[_ngcontent-%COMP%]{background-color:#2d2d2d;color:#e0e0e0}.dark[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{background-color:transparent}"]})};mh(Xl,Z_).catch(e=>console.error(e));
|