git-history-ui 1.0.4 → 1.0.5
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.
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
<base href="/">
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
8
8
|
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
|
9
|
-
<style>*,:before,:after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;line-height:1.6;color:#333;background-color:#f8f9fa}@media (prefers-color-scheme: dark){body{background-color:#1a1a1a;color:#e0e0e0}}*{transition:background-color .2s ease,border-color .2s ease,color .2s ease}</style><link rel="stylesheet" href="styles-
|
|
9
|
+
<style>*,:before,:after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;line-height:1.6;color:#333;background-color:#f8f9fa}@media (prefers-color-scheme: dark){body{background-color:#1a1a1a;color:#e0e0e0}}*{transition:background-color .2s ease,border-color .2s ease,color .2s ease}</style><link rel="stylesheet" href="styles-J5I4DBTU.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles-J5I4DBTU.css"></noscript></head>
|
|
10
10
|
<body>
|
|
11
11
|
<app-root></app-root>
|
|
12
|
-
<script src="polyfills-5CFQRCPP.js" type="module"></script><script src="main-
|
|
12
|
+
<script src="polyfills-5CFQRCPP.js" type="module"></script><script src="main-YHO6NCZZ.js" type="module"></script></body>
|
|
13
13
|
</html>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var IC=Object.defineProperty,MC=Object.defineProperties;var SC=Object.getOwnPropertyDescriptors;var xp=Object.getOwnPropertySymbols;var xC=Object.prototype.hasOwnProperty,TC=Object.prototype.propertyIsEnumerable;var Tp=(e,t,n)=>t in e?IC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,w=(e,t)=>{for(var n in t||={})xC.call(t,n)&&Tp(e,n,t[n]);if(xp)for(var n of xp(t))TC.call(t,n)&&Tp(e,n,t[n]);return e},q=(e,t)=>MC(e,SC(t));var Zl;function Rs(){return Zl}function Wt(e){let t=Zl;return Zl=e,t}var Ap=Symbol("NotFound");function Wr(e){return e===Ap||e?.name==="\u0275NotFound"}function Ls(e,t){return Object.is(e,t)}var Be=null,Os=!1,Yl=1,AC=null,Ue=Symbol("SIGNAL");function B(e){let t=Be;return Be=e,t}function Vs(){return Be}var ir={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 qr(e){if(Os)throw new Error("");if(Be===null)return;Be.consumerOnSignalRead(e);let t=Be.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=Be.recomputing;if(r&&(n=t!==void 0?t.nextProducer:Be.producers,n!==void 0&&n.producer===e)){Be.producersTail=n,n.lastReadVersion=e.version;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===Be&&(!r||RC(o,Be)))return;let i=Yr(Be),s={producer:e,consumer:Be,nextProducer:n,prevConsumer:o,lastReadVersion:e.version,nextConsumer:void 0};Be.producersTail=s,t!==void 0?t.nextProducer=s:Be.producers=s,i&&Rp(e,s)}function Np(){Yl++}function js(e){if(!(Yr(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Yl)){if(!e.producerMustRecompute(e)&&!si(e)){Fs(e);return}e.producerRecomputeValue(e),Fs(e)}}function Ql(e){if(e.consumers===void 0)return;let t=Os;Os=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||NC(r)}}finally{Os=t}}function Kl(){return Be?.consumerAllowSignalWrites!==!1}function NC(e){e.dirty=!0,Ql(e),e.consumerMarkedDirty?.(e)}function Fs(e){e.dirty=!1,e.lastCleanEpoch=Yl}function sr(e){return e&&(e.producersTail=void 0,e.recomputing=!0),B(e)}function Zr(e,t){if(B(t),!e)return;e.recomputing=!1;let n=e.producersTail,r=n!==void 0?n.nextProducer:e.producers;if(r!==void 0){if(Yr(e))do r=Xl(r);while(r!==void 0);n!==void 0?n.nextProducer=void 0:e.producers=void 0}}function si(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||(js(n),r!==n.version))return!0}return!1}function ai(e){if(Yr(e)){let t=e.producers;for(;t!==void 0;)t=Xl(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function Rp(e,t){let n=e.consumersTail,r=Yr(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)Rp(o.producer,o)}function Xl(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,!Yr(t)){let i=t.producers;for(;i!==void 0;)i=Xl(i)}return n}function Yr(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Bs(e){AC?.(e)}function RC(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 Us(e,t){let n=Object.create(OC);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(js(n),qr(n),n.value===ii)throw n.error;return n.value};return r[Ue]=n,Bs(n),r}var ks=Symbol("UNSET"),Ps=Symbol("COMPUTING"),ii=Symbol("ERRORED"),OC=q(w({},ir),{value:ks,dirty:!0,error:null,equal:Ls,kind:"computed",producerMustRecompute(e){return e.value===ks||e.value===Ps},producerRecomputeValue(e){if(e.value===Ps)throw new Error("");let t=e.value;e.value=Ps;let n=sr(e),r,o=!1;try{r=e.computation(),B(null),o=t!==ks&&t!==ii&&r!==ii&&e.equal(t,r)}catch(i){r=ii,e.error=i}finally{Zr(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function kC(){throw new Error}var Op=kC;function kp(e){Op(e)}function Jl(e){Op=e}var PC=null;function eu(e,t){let n=Object.create(Hs);n.value=e,t!==void 0&&(n.equal=t);let r=()=>Pp(n);return r[Ue]=n,Bs(n),[r,s=>Qr(n,s),s=>tu(n,s)]}function Pp(e){return qr(e),e.value}function Qr(e,t){Kl()||kp(e),e.equal(e.value,t)||(e.value=t,FC(e))}function tu(e,t){Kl()||kp(e),Qr(e,t(e.value))}var Hs=q(w({},ir),{equal:Ls,value:void 0,kind:"signal"});function FC(e){e.version++,Np(),Ql(e),PC?.(e)}function V(e){return typeof e=="function"}function Kr(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 $s=Kr(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 ci(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var me=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 $s?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Fp(i)}catch(s){t=t??[],s instanceof $s?t=[...t,...s.errors]:t.push(s)}}if(t)throw new $s(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Fp(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)&&ci(n,t)}remove(t){let{_finalizers:n}=this;n&&ci(n,t),t instanceof e&&t._removeParent(this)}};me.EMPTY=(()=>{let e=new me;return e.closed=!0,e})();var nu=me.EMPTY;function zs(e){return e instanceof me||e&&"closed"in e&&V(e.remove)&&V(e.add)&&V(e.unsubscribe)}function Fp(e){V(e)?e():e.unsubscribe()}var Tt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Xr={setTimeout(e,t,...n){let{delegate:r}=Xr;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Xr;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Gs(e){Xr.setTimeout(()=>{let{onUnhandledError:t}=Tt;if(t)t(e);else throw e})}function li(){}var Lp=ru("C",void 0,void 0);function Vp(e){return ru("E",void 0,e)}function jp(e){return ru("N",e,void 0)}function ru(e,t,n){return{kind:e,value:t,error:n}}var ar=null;function Jr(e){if(Tt.useDeprecatedSynchronousErrorHandling){let t=!ar;if(t&&(ar={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=ar;if(ar=null,n)throw r}}else e()}function Bp(e){Tt.useDeprecatedSynchronousErrorHandling&&ar&&(ar.errorThrown=!0,ar.error=e)}var cr=class extends me{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,zs(t)&&t.add(this)):this.destination=jC}static create(t,n,r){return new eo(t,n,r)}next(t){this.isStopped?iu(jp(t),this):this._next(t)}error(t){this.isStopped?iu(Vp(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?iu(Lp,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()}}},LC=Function.prototype.bind;function ou(e,t){return LC.call(e,t)}var su=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Ws(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Ws(r)}else Ws(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Ws(n)}}},eo=class extends cr{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&&ou(t.next,i),error:t.error&&ou(t.error,i),complete:t.complete&&ou(t.complete,i)}):o=t}this.destination=new su(o)}};function Ws(e){Tt.useDeprecatedSynchronousErrorHandling?Bp(e):Gs(e)}function VC(e){throw e}function iu(e,t){let{onStoppedNotification:n}=Tt;n&&Xr.setTimeout(()=>n(e,t))}var jC={closed:!0,next:li,error:VC,complete:li};var to=typeof Symbol=="function"&&Symbol.observable||"@@observable";function at(e){return e}function au(...e){return cu(e)}function cu(e){return e.length===0?at:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var G=(()=>{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=UC(n)?n:new eo(n,r,o);return Jr(()=>{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=Up(r),new r((o,i)=>{let s=new eo({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)}[to](){return this}pipe(...n){return cu(n)(this)}toPromise(n){return n=Up(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 Up(e){var t;return(t=e??Tt.Promise)!==null&&t!==void 0?t:Promise}function BC(e){return e&&V(e.next)&&V(e.error)&&V(e.complete)}function UC(e){return e&&e instanceof cr||BC(e)&&zs(e)}function lu(e){return V(e?.lift)}function K(e){return t=>{if(lu(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 Z(e,t,n,r,o){return new uu(e,t,n,r,o)}var uu=class extends cr{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 no(){return K((e,t)=>{let n=null;e._refCount++;let r=Z(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 ro=class extends G{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,lu(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 me;let n=this.getSubject();t.add(this.source.subscribe(Z(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=me.EMPTY)}return t}refCount(){return no()(this)}};var Hp=Kr(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ve=(()=>{class e extends G{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new qs(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Hp}next(n){Jr(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Jr(()=>{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(){Jr(()=>{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?nu:(this.currentObservers=null,i.push(n),new me(()=>{this.currentObservers=null,ci(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new G;return n.source=this,n}}return e.create=(t,n)=>new qs(t,n),e})(),qs=class extends ve{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:nu}};var Oe=class extends ve{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 Je=new G(e=>e.complete());function $p(e){return e&&V(e.schedule)}function zp(e){return e[e.length-1]}function Zs(e){return V(zp(e))?e.pop():void 0}function Rn(e){return $p(zp(e))?e.pop():void 0}function Wp(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 Gp(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 lr(e){return this instanceof lr?(this.v=e,this):new lr(e)}function qp(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 lr?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 Zp(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 Gp=="function"?Gp(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 Ys=e=>e&&typeof e.length=="number"&&typeof e!="function";function Qs(e){return V(e?.then)}function Ks(e){return V(e[to])}function Xs(e){return Symbol.asyncIterator&&V(e?.[Symbol.asyncIterator])}function Js(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 HC(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ea=HC();function ta(e){return V(e?.[ea])}function na(e){return qp(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield lr(n.read());if(o)return yield lr(void 0);yield yield lr(r)}}finally{n.releaseLock()}})}function ra(e){return V(e?.getReader)}function ye(e){if(e instanceof G)return e;if(e!=null){if(Ks(e))return $C(e);if(Ys(e))return zC(e);if(Qs(e))return GC(e);if(Xs(e))return Yp(e);if(ta(e))return WC(e);if(ra(e))return qC(e)}throw Js(e)}function $C(e){return new G(t=>{let n=e[to]();if(V(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function zC(e){return new G(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function GC(e){return new G(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Gs)})}function WC(e){return new G(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Yp(e){return new G(t=>{ZC(e,t).catch(n=>t.error(n))})}function qC(e){return Yp(na(e))}function ZC(e,t){var n,r,o,i;return Wp(this,void 0,void 0,function*(){try{for(n=Zp(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 et(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 oa(e,t=0){return K((n,r)=>{n.subscribe(Z(r,o=>et(r,e,()=>r.next(o),t),()=>et(r,e,()=>r.complete(),t),o=>et(r,e,()=>r.error(o),t)))})}function ia(e,t=0){return K((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Qp(e,t){return ye(e).pipe(ia(t),oa(t))}function Kp(e,t){return ye(e).pipe(ia(t),oa(t))}function Xp(e,t){return new G(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Jp(e,t){return new G(n=>{let r;return et(n,t,()=>{r=e[ea](),et(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 sa(e,t){if(!e)throw new Error("Iterable cannot be null");return new G(n=>{et(n,t,()=>{let r=e[Symbol.asyncIterator]();et(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function eg(e,t){return sa(na(e),t)}function tg(e,t){if(e!=null){if(Ks(e))return Qp(e,t);if(Ys(e))return Xp(e,t);if(Qs(e))return Kp(e,t);if(Xs(e))return sa(e,t);if(ta(e))return Jp(e,t);if(ra(e))return eg(e,t)}throw Js(e)}function he(e,t){return t?tg(e,t):ye(e)}function P(...e){let t=Rn(e);return he(e,t)}function oo(e,t){let n=V(e)?e:()=>e,r=o=>o.error(n());return new G(t?o=>t.schedule(r,0,o):r)}function du(e){return!!e&&(e instanceof G||V(e.lift)&&V(e.subscribe))}var un=Kr(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function U(e,t){return K((n,r)=>{let o=0;n.subscribe(Z(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:YC}=Array;function QC(e,t){return YC(t)?e(...t):e(t)}function aa(e){return U(t=>QC(e,t))}var{isArray:KC}=Array,{getPrototypeOf:XC,prototype:JC,keys:eE}=Object;function ca(e){if(e.length===1){let t=e[0];if(KC(t))return{args:t,keys:null};if(tE(t)){let n=eE(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function tE(e){return e&&typeof e=="object"&&XC(e)===JC}function la(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function ua(...e){let t=Rn(e),n=Zs(e),{args:r,keys:o}=ca(e);if(r.length===0)return he([],t);let i=new G(nE(r,t,o?s=>la(o,s):at));return n?i.pipe(aa(n)):i}function nE(e,t,n=at){return r=>{ng(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)ng(t,()=>{let l=he(e[c],t),u=!1;l.subscribe(Z(r,d=>{i[c]=d,u||(u=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function ng(e,t,n){e?et(n,e,t):t()}function rg(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;ye(n(m,u++)).subscribe(Z(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?et(t,s,()=>v(p)):v(p)}h()}catch(p){t.error(p)}}))};return e.subscribe(Z(t,f,()=>{d=!0,h()})),()=>{a?.()}}function Ce(e,t,n=1/0){return V(t)?Ce((r,o)=>U((i,s)=>t(r,i,o,s))(ye(e(r,o))),n):(typeof t=="number"&&(n=t),K((r,o)=>rg(r,o,e,n)))}function og(e=1/0){return Ce(at,e)}function ig(){return og(1)}function io(...e){return ig()(he(e,Rn(e)))}function ui(e){return new G(t=>{ye(e()).subscribe(t)})}function fu(...e){let t=Zs(e),{args:n,keys:r}=ca(e),o=new G(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;ye(n[u]).subscribe(Z(i,h=>{d||(d=!0,l--),a[u]=h},()=>c--,void 0,()=>{(!c||!d)&&(l||i.next(r?la(r,a):a),i.complete())}))}});return t?o.pipe(aa(t)):o}function tt(e,t){return K((n,r)=>{let o=0;n.subscribe(Z(r,i=>e.call(t,i,o++)&&r.next(i)))})}function On(e){return K((t,n)=>{let r=null,o=!1,i;r=t.subscribe(Z(n,void 0,void 0,s=>{i=ye(e(s,On(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function sg(e,t,n,r,o){return(i,s)=>{let a=n,c=t,l=0;i.subscribe(Z(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 kn(e,t){return V(t)?Ce(e,t,1):Ce(e,1)}function Pn(e){return K((t,n)=>{let r=!1;t.subscribe(Z(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function dn(e){return e<=0?()=>Je:K((t,n)=>{let r=0;t.subscribe(Z(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function da(e=rE){return K((t,n)=>{let r=!1;t.subscribe(Z(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function rE(){return new un}function Fn(e){return K((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function fn(e,t){let n=arguments.length>=2;return r=>r.pipe(e?tt((o,i)=>e(o,i,r)):at,dn(1),n?Pn(t):da(()=>new un))}function so(e){return e<=0?()=>Je:K((t,n)=>{let r=[];t.subscribe(Z(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 hu(e,t){let n=arguments.length>=2;return r=>r.pipe(e?tt((o,i)=>e(o,i,r)):at,so(1),n?Pn(t):da(()=>new un))}function pu(e,t){return K(sg(e,t,arguments.length>=2,!0))}function gu(...e){let t=Rn(e);return K((n,r)=>{(t?io(e,n,t):io(e,n)).subscribe(r)})}function He(e,t){return K((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(Z(r,c=>{o?.unsubscribe();let l=0,u=i++;ye(e(c,u)).subscribe(o=Z(r,d=>r.next(t?t(c,d,u,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function fa(e){return K((t,n)=>{ye(e).subscribe(Z(n,()=>n.complete(),li)),!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?K((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(Z(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)}))}):at}function ag(e){let t=B(null);try{return e()}finally{B(t)}}var xu="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",S=class extends Error{code;constructor(t,n){super(co(t,n)),this.code=t}};function oE(e){return`NG0${Math.abs(e)}`}function co(e,t){return`${oE(e)}${t?": "+t:""}`}function ne(e){for(let t in e)if(e[t]===ne)return t;throw Error("")}function ug(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function pn(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(pn).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 va(e,t){return e?t?`${e} ${t}`:e:t||""}var iE=ne({__forward_ref__:ne});function mn(e){return e.__forward_ref__=mn,e.toString=function(){return pn(this())},e}function ke(e){return Tu(e)?e():e}function Tu(e){return typeof e=="function"&&e.hasOwnProperty(iE)&&e.__forward_ref__===mn}function dg(e,t){e==null&&Au(t,e,null,"!=")}function Au(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(r==null?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}function A(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 gi(e){return sE(e,ya)}function Nu(e){return gi(e)!==null}function sE(e,t){return e.hasOwnProperty(t)&&e[t]||null}function aE(e){let t=e?.[ya]??null;return t||null}function vu(e){return e&&e.hasOwnProperty(pa)?e[pa]:null}var ya=ne({\u0275prov:ne}),pa=ne({\u0275inj:ne}),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=A({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Ru(e){return e&&!!e.\u0275providers}var Ou=ne({\u0275cmp:ne}),ku=ne({\u0275dir:ne}),Pu=ne({\u0275pipe:ne}),Fu=ne({\u0275mod:ne}),hi=ne({\u0275fac:ne}),gr=ne({__NG_ELEMENT_ID__:ne}),cg=ne({__NG_ENV_ID__:ne});function mi(e){return typeof e=="string"?e:e==null?"":String(e)}function ga(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():mi(e)}var Lu=ne({ngErrorCode:ne}),fg=ne({ngErrorMessage:ne}),fi=ne({ngTokenPath:ne});function Vu(e,t){return hg("",-200,t)}function _a(e,t){throw new S(-201,!1)}function cE(e,t){e[fi]??=[];let n=e[fi],r;typeof t=="object"&&"multi"in t&&t?.multi===!0?(dg(t.provide,"Token with multi: true should have a provide property"),r=ga(t.provide)):r=ga(t),n[0]!==r&&e[fi].unshift(r)}function lE(e,t){let n=e[fi],r=e[Lu],o=e[fg]||e.message;return e.message=dE(o,r,n,t),e}function hg(e,t,n){let r=new S(t,e);return r[Lu]=t,r[fg]=e,n&&(r[fi]=n),r}function uE(e){return e[Lu]}function dE(e,t,n=[],r=null){let o="";n&&n.length>1&&(o=` Path: ${n.join(" -> ")}.`);let i=r?` Source: ${r}.`:"";return co(t,`${e}${i}${o}`)}var yu;function pg(){return yu}function ct(e){let t=yu;return yu=e,t}function ju(e,t,n){let r=gi(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;_a(e,"Injector")}var fE={},ur=fE,_u="__NG_DI_FLAG__",Du=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=dr(n)||0;try{return this.injector.get(t,r&8?null:ur,r)}catch(o){if(Wr(o))return o;throw o}}};function hE(e,t=0){let n=Rs();if(n===void 0)throw new S(-203,!1);if(n===null)return ju(e,void 0,t);{let r=pE(t),o=n.retrieve(e,r);if(Wr(o)){if(r.optional)return null;throw o}return o}}function O(e,t=0){return(pg()||hE)(ke(e),t)}function _(e,t){return O(e,dr(t))}function dr(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function pE(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function Cu(e){let t=[];for(let n=0;n<e.length;n++){let r=ke(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=gE(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(O(o,i))}else t.push(O(r))}return t}function Bu(e,t){return e[_u]=t,e.prototype[_u]=t,e}function gE(e){return e[_u]}function fr(e,t){let n=e.hasOwnProperty(hi);return n?e[hi]:null}function gg(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 mg(e){return e.flat(Number.POSITIVE_INFINITY)}function Da(e,t){e.forEach(n=>Array.isArray(n)?Da(n,t):t(n))}function Uu(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function vi(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function vg(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 Ca(e,t,n){let r=lo(e,t);return r>=0?e[r|1]=n:(r=~r,vg(e,r,t,n)),r}function Ea(e,t){let n=lo(e,t);if(n>=0)return e[n|1]}function lo(e,t){return mE(e,t,1)}function mE(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 Vn={},qe=[],jn=new x(""),Hu=new x("",-1),$u=new x(""),pi=class{get(t,n=ur){if(n===ur){let o=hg("",-201);throw o.name="\u0275NotFound",o}return n}};function zu(e){return e[Fu]||null}function Bn(e){return e[Ou]||null}function Gu(e){return e[ku]||null}function yg(e){return e[Pu]||null}function uo(e){return{\u0275providers:e}}function _g(...e){return{\u0275providers:Wu(!0,e),\u0275fromNgModule:!0}}function Wu(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Da(t,s=>{let a=s;ma(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Dg(o,i),n}function Dg(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];qu(o,i=>{t(i,r)})}}function ma(e,t,n,r){if(e=ke(e),!e)return!1;let o=null,i=vu(e),s=!i&&Bn(e);if(!i&&!s){let c=e.ngModule;if(i=vu(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)ma(l,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;try{Da(i.imports,u=>{ma(u,t,n,r)&&(l||=[],l.push(u))})}finally{}l!==void 0&&Dg(l,t)}if(!a){let l=fr(o)||(()=>new o);t({provide:o,useFactory:l,deps:qe},o),t({provide:$u,useValue:o,multi:!0},o),t({provide:jn,useValue:()=>O(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=e;qu(c,u=>{t(u,l)})}}else return!1;return o!==e&&e.providers!==void 0}function qu(e,t){for(let n of e)Ru(n)&&(n=n.\u0275providers),Array.isArray(n)?qu(n,t):t(n)}var vE=ne({provide:String,useValue:ne});function Cg(e){return e!==null&&typeof e=="object"&&vE in e}function yE(e){return!!(e&&e.useExisting)}function _E(e){return!!(e&&e.useFactory)}function hr(e){return typeof e=="function"}function Eg(e){return!!e.useClass}var yi=new x(""),ha={},lg={},mu;function _i(){return mu===void 0&&(mu=new pi),mu}var Ee=class{},pr=class extends Ee{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,wu(t,s=>this.processProvider(s)),this.records.set(Hu,ao(void 0,this)),o.has("environment")&&this.records.set(Ee,ao(void 0,this));let i=this.records.get(yi);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get($u,qe,{self:!0}))}retrieve(t,n){let r=dr(n)||0;try{return this.get(t,ur,r)}catch(o){if(Wr(o))return o;throw o}}destroy(){di(this),this._destroyed=!0;let t=B(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(),B(t)}}onDestroy(t){return di(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){di(this);let n=Wt(this),r=ct(void 0),o;try{return t()}finally{Wt(n),ct(r)}}get(t,n=ur,r){if(di(this),t.hasOwnProperty(cg))return t[cg](this);let o=dr(r),i,s=Wt(this),a=ct(void 0);try{if(!(o&4)){let l=this.records.get(t);if(l===void 0){let u=bE(t)&&gi(t);u&&this.injectableDefInScope(u)?l=ao(Eu(t),ha):l=null,this.records.set(t,l)}if(l!=null)return this.hydrate(t,l,o)}let c=o&2?_i():this.parent;return n=o&8&&n===ur?null:n,c.get(t,n)}catch(c){let l=uE(c);throw l===-200||l===-201?new S(l,null):c}finally{ct(a),Wt(s)}}resolveInjectorInitializers(){let t=B(null),n=Wt(this),r=ct(void 0),o;try{let i=this.get(jn,qe,{self:!0});for(let s of i)s()}finally{Wt(n),ct(r),B(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(pn(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=ke(t);let n=hr(t)?t:ke(t&&t.provide),r=CE(t);if(!hr(t)&&t.multi===!0){let o=this.records.get(n);o||(o=ao(void 0,ha,!0),o.factory=()=>Cu(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=B(null);try{if(n.value===lg)throw Vu(pn(t));return n.value===ha&&(n.value=lg,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&wE(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{B(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=ke(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 Eu(e){let t=gi(e),n=t!==null?t.factory:fr(e);if(n!==null)return n;if(e instanceof x)throw new S(204,!1);if(e instanceof Function)return DE(e);throw new S(204,!1)}function DE(e){if(e.length>0)throw new S(204,!1);let n=aE(e);return n!==null?()=>n.factory(e):()=>new e}function CE(e){if(Cg(e))return ao(void 0,e.useValue);{let t=Zu(e);return ao(t,ha)}}function Zu(e,t,n){let r;if(hr(e)){let o=ke(e);return fr(o)||Eu(o)}else if(Cg(e))r=()=>ke(e.useValue);else if(_E(e))r=()=>e.useFactory(...Cu(e.deps||[]));else if(yE(e))r=(o,i)=>O(ke(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=ke(e&&(e.useClass||e.provide));if(EE(e))r=()=>new o(...Cu(e.deps));else return fr(o)||Eu(o)}return r}function di(e){if(e.destroyed)throw new S(205,!1)}function ao(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function EE(e){return!!e.deps}function wE(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function bE(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function wu(e,t){for(let n of e)Array.isArray(n)?wu(n,t):n&&Ru(n)?wu(n.\u0275providers,t):t(n)}function Pe(e,t){let n;e instanceof pr?(di(e),n=e):n=new Du(e);let r,o=Wt(n),i=ct(void 0);try{return t()}finally{Wt(o),ct(i)}}function wg(){return pg()!==void 0||Rs()!=null}var Rt=0,F=1,L=2,Te=3,ht=4,pt=5,Di=6,fo=7,$e=8,mr=9,vn=10,fe=11,ho=12,Yu=13,vr=14,gt=15,Un=16,yr=17,qt=18,Ci=19,Qu=20,hn=21,wa=22,Ei=23,lt=24,_r=25,nt=26,bg=1;var Hn=7,wi=8,Dr=9,Ze=10;function Zt(e){return Array.isArray(e)&&typeof e[bg]=="object"}function Ot(e){return Array.isArray(e)&&e[bg]===!0}function Ku(e){return(e.flags&4)!==0}function $n(e){return e.componentOffset>-1}function bi(e){return(e.flags&1)===1}function Yt(e){return!!e.template}function po(e){return(e[L]&512)!==0}function Cr(e){return(e[L]&256)===256}var Xu="svg",Ig="math";function mt(e){for(;Array.isArray(e);)e=e[Rt];return e}function Ju(e,t){return mt(t[e])}function Qt(e,t){return mt(t[e.index])}function ba(e,t){return e.data[t]}function vt(e,t){let n=t[e];return Zt(n)?n:n[Rt]}function Mg(e){return(e[L]&4)===4}function Ia(e){return(e[L]&128)===128}function Sg(e){return Ot(e[Te])}function Er(e,t){return t==null?null:e[t]}function ed(e){e[yr]=0}function td(e){e[L]&1024||(e[L]|=1024,Ia(e)&&go(e))}function xg(e,t){for(;e>0;)t=t[vr],e--;return t}function Ii(e){return!!(e[L]&9216||e[lt]?.dirty)}function Ma(e){e[vn].changeDetectionScheduler?.notify(8),e[L]&64&&(e[L]|=1024),Ii(e)&&go(e)}function go(e){e[vn].changeDetectionScheduler?.notify(0);let t=Ln(e);for(;t!==null&&!(t[L]&8192||(t[L]|=8192,!Ia(t)));)t=Ln(t)}function nd(e,t){if(Cr(e))throw new S(911,!1);e[hn]===null&&(e[hn]=[]),e[hn].push(t)}function Tg(e,t){if(e[hn]===null)return;let n=e[hn].indexOf(t);n!==-1&&e[hn].splice(n,1)}function Ln(e){let t=e[Te];return Ot(t)?t[Te]:t}function rd(e){return e[fo]??=[]}function od(e){return e.cleanup??=[]}function Ag(e,t,n,r){let o=rd(t);o.push(n),e.firstCreatePass&&od(e).push(r,o.length-1)}var z={lFrame:$g(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||{}),IE=0,bu=!1;function Ng(){return z.lFrame.elementDepthCount}function Rg(){z.lFrame.elementDepthCount++}function id(){z.lFrame.elementDepthCount--}function sd(){return z.bindingsEnabled}function Og(){return z.skipHydrationRootTNode!==null}function ad(e){return z.skipHydrationRootTNode===e}function cd(){z.skipHydrationRootTNode=null}function ee(){return z.lFrame.lView}function ze(){return z.lFrame.tView}function we(e){return z.lFrame.contextLView=e,e[$e]}function be(e){return z.lFrame.contextLView=null,e}function Fe(){let e=ld();for(;e!==null&&e.type===64;)e=e.parent;return e}function ld(){return z.lFrame.currentTNode}function kg(){let e=z.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function mo(e,t){let n=z.lFrame;n.currentTNode=e,n.isParent=t}function ud(){return z.lFrame.isParent}function Pg(){z.lFrame.isParent=!1}function dd(e){Au("Must never be called in production mode"),IE=e}function fd(){return bu}function hd(e){let t=bu;return bu=e,t}function Fg(){return z.lFrame.bindingIndex}function Lg(e){return z.lFrame.bindingIndex=e}function Sa(){return z.lFrame.bindingIndex++}function xa(e){let t=z.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Vg(){return z.lFrame.inI18n}function jg(e,t){let n=z.lFrame;n.bindingIndex=n.bindingRootIndex=e,Ta(t)}function Bg(){return z.lFrame.currentDirectiveIndex}function Ta(e){z.lFrame.currentDirectiveIndex=e}function Ug(e){let t=z.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function pd(){return z.lFrame.currentQueryIndex}function Aa(e){z.lFrame.currentQueryIndex=e}function ME(e){let t=e[F];return t.type===2?t.declTNode:t.type===1?e[pt]:null}function gd(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=ME(i),o===null||(i=i[vr],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=z.lFrame=Hg();return r.currentTNode=t,r.lView=e,!0}function Na(e){let t=Hg(),n=e[F];z.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Hg(){let e=z.lFrame,t=e===null?null:e.child;return t===null?$g(e):t}function $g(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 zg(){let e=z.lFrame;return z.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var md=zg;function Ra(){let e=zg();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 Gg(e){return(z.lFrame.contextLView=xg(e,z.lFrame.contextLView))[$e]}function yn(){return z.lFrame.selectedIndex}function zn(e){z.lFrame.selectedIndex=e}function vd(){let e=z.lFrame;return ba(e.tView,e.selectedIndex)}function kt(){z.lFrame.currentNamespace=Xu}function Gn(){SE()}function SE(){z.lFrame.currentNamespace=null}function Wg(){return z.lFrame.currentNamespace}var qg=!0;function Oa(){return qg}function ka(e){qg=e}var xE={elements:void 0};function Pa(){return xE}function Iu(e,t=null,n=null,r){let o=yd(e,t,n,r);return o.resolveInjectorInitializers(),o}function yd(e,t=null,n=null,r,o=new Set){let i=[n||qe,_g(e)];return r=r||(typeof e=="object"?void 0:pn(e)),new pr(i,t||_i(),r||null,o)}var ft=class e{static THROW_IF_NOT_FOUND=ur;static NULL=new pi;static create(t,n){if(Array.isArray(t))return Iu({name:""},n,t,"");{let r=t.name??"";return Iu({name:r},t.parent,t.providers,r)}}static \u0275prov=A({token:e,providedIn:"any",factory:()=>O(Hu)});static __NG_ELEMENT_ID__=-1},Ie=new x(""),Kt=(()=>{class e{static __NG_ELEMENT_ID__=TE;static __NG_ENV_ID__=n=>n}return e})(),Mu=class extends Kt{_lView;constructor(t){super(),this._lView=t}get destroyed(){return Cr(this._lView)}onDestroy(t){let n=this._lView;return nd(n,t),()=>Tg(n,t)}};function TE(){return new Mu(ee())}var At=class{_console=console;handleError(t){this._console.error("ERROR",t)}},ut=new x("",{providedIn:"root",factory:()=>{let e=_(Ee),t;return n=>{e.destroyed&&!t?setTimeout(()=>{throw n}):(t??=e.get(At),t.handleError(n))}}}),Zg={provide:jn,useValue:()=>void _(At),multi:!0};function _d(e){return typeof e=="function"&&e[Ue]!==void 0}function _n(e,t){let[n,r,o]=eu(e,t?.equal),i=n,s=i[Ue];return i.set=r,i.update=o,i.asReadonly=Yg.bind(i),i}function Yg(){let e=this[Ue];if(e.readonlyFn===void 0){let t=()=>this();t[Ue]=e,e.readonlyFn=t}return e.readonlyFn}function Dd(e){return _d(e)&&typeof e.set=="function"}var gn=class{},Fa=new x("",{providedIn:"root",factory:()=>!1});var Cd=new x(""),Ed=new x("");var La=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=AE}return e})();function AE(){return new La(ee(),Fe())}var Xt=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new Oe(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new G(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=A({token:e,providedIn:"root",factory:()=>new e})}return e})(),Si=(()=>{class e{internalPendingTasks=_(Xt);scheduler=_(gn);errorHandler=_(ut);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=A({token:e,providedIn:"root",factory:()=>new e})}return e})();function xi(...e){}var wd=(()=>{class e{static \u0275prov=A({token:e,providedIn:"root",factory:()=>new Su})}return e})(),Su=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 wo(e){return{toString:e}.toString()}var Va="__parameters__";function LE(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function Im(e,t,n){return wo(()=>{let r=LE(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(Va)?c[Va]:Object.defineProperty(c,Va,{value:[]})[Va];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 Mm=Bu(Im("Optional"),8);var Sm=Bu(Im("SkipSelf"),4);function VE(e){return typeof e=="function"}var Ga=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function xm(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var tn=(()=>{let e=()=>Tm;return e.ngInherit=!0,e})();function Tm(e){return e.type.prototype.ngOnChanges&&(e.setInput=BE),jE}function jE(){let e=Nm(this),t=e?.current;if(t){let n=e.previous;if(n===Vn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function BE(e,t,n,r,o){let i=this.declaredInputs[r],s=Nm(e)||UE(e,{previous:Vn,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new Ga(l&&l.currentValue,n,c===Vn),xm(e,t,o,n)}var Am="__ngSimpleChanges__";function Nm(e){return e[Am]||null}function UE(e,t){return e[Am]=t}var Qg=[];var se=function(e,t=null,n){for(let r=0;r<Qg.length;r++){let o=Qg[r];o(e,t,n)}};function HE(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Tm(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 Rm(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 Ba(e,t,n){Om(e,t,3,n)}function Ua(e,t,n,r){(e[L]&3)===n&&Om(e,t,n,r)}function bd(e,t){let n=e[L];(n&3)===t&&(n&=16383,n+=1,e[L]=n)}function Om(e,t,n,r){let o=r!==void 0?e[yr]&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[yr]+=65536),(a<i||i==-1)&&($E(e,n,t,c),e[yr]=(e[yr]&4294901760)+c+2),c++}function Kg(e,t){se(4,e,t);let n=B(null);try{t.call(e)}finally{B(n),se(5,e,t)}}function $E(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[yr]>>16&&(e[L]&3)===t&&(e[L]+=16384,Kg(a,i)):Kg(a,i)}var yo=-1,br=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 GE(e){return(e.flags&16)!==0}function WE(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];ZE(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function qE(e){return e===3||e===4||e===6}function ZE(e){return e.charCodeAt(0)===64}function _o(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?Xg(e,n,o,null,t[++r]):Xg(e,n,o,null,null))}}return e}function Xg(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 km(e){return e!==yo}function Wa(e){return e&32767}function YE(e){return e>>16}function qa(e,t){let n=YE(e),r=t;for(;n>0;)r=r[vr],n--;return r}var Od=!0;function Jg(e){let t=Od;return Od=e,t}var QE=256,Pm=QE-1,Fm=5,KE=0,Jt={};function XE(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(gr)&&(r=n[gr]),r==null&&(r=n[gr]=KE++);let o=r&Pm,i=1<<o;t.data[e+(o>>Fm)]|=i}function Za(e,t){let n=Lm(e,t);if(n!==-1)return n;let r=t[F];r.firstCreatePass&&(e.injectorIndex=t.length,Id(r.data,e),Id(t,null),Id(r.blueprint,null));let o=af(e,t),i=e.injectorIndex;if(km(o)){let s=Wa(o),a=qa(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 Id(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Lm(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function af(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=Hm(o),r===null)return yo;if(n++,o=o[vr],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return yo}function kd(e,t,n){XE(e,t,n)}function Vm(e,t,n){if(n&8||e!==void 0)return e;_a(t,"NodeInjector")}function jm(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[mr],i=ct(void 0);try{return o?o.get(t,r,n&8):ju(t,r,n&8)}finally{ct(i)}}return Vm(r,t,n)}function Bm(e,t,n,r=0,o){if(e!==null){if(t[L]&2048&&!(r&2)){let s=nw(e,t,n,r,Jt);if(s!==Jt)return s}let i=Um(e,t,n,r,Jt);if(i!==Jt)return i}return jm(t,n,r,o)}function Um(e,t,n,r,o){let i=ew(n);if(typeof i=="function"){if(!gd(t,e,r))return r&1?Vm(o,n,r):jm(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))_a(n);else return s}finally{md()}}else if(typeof i=="number"){let s=null,a=Lm(e,t),c=yo,l=r&1?t[gt][pt]:null;for((a===-1||r&4)&&(c=a===-1?af(e,t):t[a+8],c===yo||!tm(r,!1)?a=-1:(s=t[F],a=Wa(c),t=qa(c,t)));a!==-1;){let u=t[F];if(em(i,a,u.data)){let d=JE(a,t,n,s,r,l);if(d!==Jt)return d}c=t[a+8],c!==yo&&tm(r,t[F].data[a+8]===l)&&em(i,a,t)?(s=u,a=Wa(c),t=qa(c,t)):a=-1}}return o}function JE(e,t,n,r,o,i){let s=t[F],a=s.data[e+8],c=r==null?$n(a)&&Od:r!=s&&(a.type&3)!==0,l=o&1&&i===a,u=Ha(a,s,n,c,l);return u!==null?Ni(t,s,u,a,o):Jt}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 Ni(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof br){let a=i;if(a.resolving){let f=ga(s[n]);throw Vu(f)}let c=Jg(a.canSeeViewProviders);a.resolving=!0;let l=s[n].type||s[n],u,d=a.injectImpl?ct(a.injectImpl):null,h=gd(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&HE(n,s[n],t)}finally{d!==null&&ct(d),Jg(c),a.resolving=!1,md()}}return i}function ew(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(gr)?e[gr]:void 0;return typeof t=="number"?t>=0?t&Pm:tw:t}function em(e,t,n){let r=1<<e;return!!(n[t+(e>>Fm)]&r)}function tm(e,t){return!(e&2)&&!(e&1&&t)}var wr=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Bm(this._tNode,this._lView,t,dr(r),n)}};function tw(){return new wr(Fe(),ee())}function Zn(e){return wo(()=>{let t=e.prototype.constructor,n=t[hi]||Pd(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[hi]||Pd(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Pd(e){return Tu(e)?()=>{let t=Pd(ke(e));return t&&t()}:fr(e)}function nw(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[L]&2048&&!po(s);){let a=Um(i,s,n,r|2,Jt);if(a!==Jt)return a;let c=i.parent;if(!c){let l=s[Qu];if(l){let u=l.get(n,Jt,r);if(u!==Jt)return u}c=Hm(s),s=s[vr]}i=c}return o}function Hm(e){let t=e[F],n=t.type;return n===2?t.declTNode:n===1?e[pt]:null}function rw(){return bo(Fe(),ee())}function bo(e,t){return new Lt(Qt(e,t))}var Lt=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=rw}return e})();function ow(e){return e instanceof Lt?e.nativeElement:e}function iw(){return this._results[Symbol.iterator]()}var Ya=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 ve}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=mg(t);(this._changesDetected=!gg(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]=iw};function $m(e){return(e.flags&128)===128}var cf=(function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e})(cf||{}),zm=new Map,sw=0;function aw(){return sw++}function cw(e){zm.set(e[Ci],e)}function Fd(e){zm.delete(e[Ci])}var nm="__ngContext__";function Do(e,t){Zt(t)?(e[nm]=t[Ci],cw(t)):e[nm]=t}function Gm(e){return qm(e[ho])}function Wm(e){return qm(e[ht])}function qm(e){for(;e!==null&&!Ot(e);)e=e[ht];return e}var Ld;function lf(e){Ld=e}function Zm(){if(Ld!==void 0)return Ld;if(typeof document<"u")return document;throw new S(210,!1)}var cc=new x("",{providedIn:"root",factory:()=>lw}),lw="ng",lc=new x(""),Io=new x("",{providedIn:"platform",factory:()=>"unknown"});var uc=new x("",{providedIn:"root",factory:()=>Zm().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var uw="h",dw="b";var Ym=!1,Qm=new x("",{providedIn:"root",factory:()=>Ym});var fw=(e,t,n,r)=>{};function hw(e,t,n,r){fw(e,t,n,r)}function uf(e){return(e.flags&32)===32}var pw=()=>null;function Km(e,t,n=!1){return pw(e,t,n)}function Xm(e,t){let n=e.contentQueries;if(n!==null){let r=B(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];Aa(i),a.contentQueries(2,t[s],s)}}}finally{B(r)}}}function Vd(e,t,n){Aa(0);let r=B(null);try{t(e,n)}finally{B(r)}}function Jm(e,t,n){if(Ku(t)){let r=B(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{B(r)}}}var Dn=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e})(Dn||{});var jd=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${xu})`}};function df(e){return e instanceof jd?e.changingThisBreaksApplicationSecurity:e}function ev(e){return e instanceof Function?e():e}function gw(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 tv="ng-template";function mw(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&gw(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(ff(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 ff(e){return e.type===4&&e.value!==tv}function vw(e,t,n){let r=e.type===4&&!n?tv:e.value;return t===r}function yw(e,t,n){let r=4,o=e.attrs,i=o!==null?Cw(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!==""&&!vw(e,c,n)||c===""&&t.length===1){if(Pt(r))return!1;s=!0}}else if(r&8){if(o===null||!mw(e,o,c,n)){if(Pt(r))return!1;s=!0}}else{let l=t[++a],u=_w(c,o,ff(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 _w(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 Ew(t,e)}function Dw(e,t,n=!1){for(let r=0;r<t.length;r++)if(yw(e,t[r],n))return!0;return!1}function Cw(e){for(let t=0;t<e.length;t++){let n=e[t];if(qE(n))return t}return e.length}function Ew(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 rm(e,t){return e?":not("+t.trim()+")":t}function ww(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+=rm(i,o),o=""),r=s,i=i||!Pt(r);n++}return o!==""&&(t+=rm(i,o)),t}function bw(e){return e.map(ww).join(",")}function Iw(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 yt={};function Mw(e,t){return e.createText(t)}function Sw(e,t,n){e.setValue(t,n)}function nv(e,t,n){return e.createElement(t,n)}function Qa(e,t,n,r,o){e.insertBefore(t,n,r,o)}function rv(e,t,n){e.appendChild(t,n)}function om(e,t,n,r,o){r!==null?Qa(e,t,n,r,o):rv(e,t,n)}function xw(e,t,n){e.removeChild(null,t,n)}function Tw(e,t,n){e.setAttribute(t,"style",n)}function Aw(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function ov(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&WE(e,t,r),o!==null&&Aw(e,t,o),i!==null&&Tw(e,t,i)}function hf(e,t,n,r,o,i,s,a,c,l,u){let d=nt+r,h=d+o,f=Nw(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 Nw(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:yt);return n}function Rw(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=hf(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function pf(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),ed(d),d[Te]=d[vr]=e,d[$e]=n,d[vn]=s||e&&e[vn],d[fe]=a||e&&e[fe],d[mr]=c||e&&e[mr]||null,d[pt]=i,d[Ci]=aw(),d[Di]=u,d[Qu]=l,d[gt]=t.type==2?e[gt]:d,d}function Ow(e,t,n){let r=Qt(t,e),o=Rw(n),i=e[vn].rendererFactory,s=gf(e,pf(e,o,null,iv(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function iv(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function sv(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 gf(e,t){return e[ho]?e[Yu][ht]=t:e[ho]=t,e[Yu]=t,t}function b(e=1){av(ze(),ee(),yn()+e,!1)}function av(e,t,n,r){if(!r)if((t[L]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Ba(t,i,n)}else{let i=e.preOrderHooks;i!==null&&Ua(t,i,0,n)}zn(n)}var dc=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(dc||{});function Bd(e,t,n,r){let o=B(null);try{let[i,s,a]=e.inputs[n],c=null;(s&dc.SignalBased)!==0&&(c=t[i][Ue]),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):xm(t,c,i,r)}finally{B(o)}}var en=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(en||{}),kw;function mf(e,t){return kw(e,t)}function vo(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=mt(r);e===0&&n!==null?o==null?rv(t,n,a):Qa(t,n,a,o||null,!0):e===1&&n!==null?Qa(t,n,a,o||null,!0):e===2?xw(t,a,s):e===3&&t.destroyNode(a),i!=null&&Ww(t,e,i,n,o)}}function Pw(e,t){cv(e,t),t[Rt]=null,t[pt]=null}function Fw(e,t,n,r,o,i){r[Rt]=o,r[pt]=t,fc(e,r,n,1,o,i)}function cv(e,t){t[vn].changeDetectionScheduler?.notify(9),fc(e,t,t[fe],2,null,null)}function Lw(e){let t=e[ho];if(!t)return Md(e[F],e);for(;t;){let n=null;if(Zt(t))n=t[ho];else{let r=t[Ze];r&&(n=r)}if(!n){for(;t&&!t[ht]&&t!==e;)Zt(t)&&Md(t[F],t),t=t[Te];t===null&&(t=e),Zt(t)&&Md(t[F],t),n=t&&t[ht]}t=n}}function vf(e,t){let n=e[Dr],r=n.indexOf(t);n.splice(r,1)}function lv(e,t){if(Cr(t))return;let n=t[fe];n.destroyNode&&fc(e,t,n,3,null,null),Lw(t)}function Md(e,t){if(Cr(t))return;let n=B(null);try{t[L]&=-129,t[L]|=256,t[lt]&&ai(t[lt]),jw(e,t),Vw(e,t),t[F].type===1&&t[fe].destroy();let r=t[Un];if(r!==null&&Ot(t[Te])){r!==t[Te]&&vf(r,t);let o=t[qt];o!==null&&o.detachView(e)}Fd(t)}finally{B(n)}}function Vw(e,t){let n=e.cleanup,r=t[fo];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[fo]=null);let o=t[hn];if(o!==null){t[hn]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[Ei];if(i!==null){t[Ei]=null;for(let s of i)s.destroy()}}function jw(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 br)){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];se(4,a,c);try{c.call(a)}finally{se(5,a,c)}}else{se(4,o,i);try{i.call(o)}finally{se(5,o,i)}}}}}function Bw(e,t,n){return Uw(e,t.parent,n)}function Uw(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Rt];if($n(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===Dn.None||o===Dn.Emulated)return null}return Qt(r,n)}function Hw(e,t,n){return zw(e,t,n)}function $w(e,t,n){return e.type&40?Qt(e,n):null}var zw=$w,im;function yf(e,t,n,r){let o=Bw(e,r,t),i=t[fe],s=r.parent||t[pt],a=Hw(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)om(i,o,n[c],a,!1);else om(i,o,n,a,!1);im!==void 0&&im(i,r,t,n,o)}function Ti(e,t){if(t!==null){let n=t.type;if(n&3)return Qt(t,e);if(n&4)return Ud(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return Ti(e,r);{let o=e[t.index];return Ot(o)?Ud(-1,o):mt(o)}}else{if(n&128)return Ti(e,t.next);if(n&32)return mf(t,e)()||mt(e[t.index]);{let r=uv(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=Ln(e[gt]);return Ti(o,r)}else return Ti(e,t.next)}}}return null}function uv(e,t){if(t!==null){let r=e[gt][pt],o=t.projection;return r.projection[o]}return null}function Ud(e,t){let n=Ze+e+1;if(n<t.length){let r=t[n],o=r[F].firstChild;if(o!==null)return Ti(r,o)}return t[Hn]}function _f(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&&Do(mt(a),r),n.flags|=2),!uf(n))if(c&8)_f(e,t,n.child,r,o,i,!1),vo(t,e,o,a,i);else if(c&32){let l=mf(n,r),u;for(;u=l();)vo(t,e,o,u,i);vo(t,e,o,a,i)}else c&16?Gw(e,t,r,n,o,i):vo(t,e,o,a,i);n=s?n.projectionNext:n.next}}function fc(e,t,n,r,o,i){_f(n,r,e.firstChild,t,o,i,!1)}function Gw(e,t,n,r,o,i){let s=n[gt],c=s[pt].projection[r.projection];if(Array.isArray(c))for(let l=0;l<c.length;l++){let u=c[l];vo(t,e,o,u,i)}else{let l=c,u=s[Te];$m(r)&&(l.flags|=128),_f(e,t,l,u,o,i,!0)}}function Ww(e,t,n,r,o){let i=n[Hn],s=mt(n);i!==s&&vo(t,e,r,i,o);for(let a=Ze;a<n.length;a++){let c=n[a];fc(c[F],c,e,t,r,i)}}function qw(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:en.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=en.Important),e.setStyle(n,r,o,i))}}function dv(e,t,n,r,o){let i=yn(),s=r&2;try{zn(-1),s&&t.length>nt&&av(e,t,nt,!1),se(s?2:0,o,n),n(r,o)}finally{zn(i),se(s?3:1,o,n)}}function Df(e,t,n){eb(e,t,n),(n.flags&64)===64&&tb(e,t,n)}function Cf(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 Zw(e,t,n,r){let i=r.get(Qm,Ym)||n===Dn.ShadowDom,s=e.selectRootElement(t,i);return Yw(s),s}function Yw(e){Qw(e)}var Qw=()=>null;function Kw(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function fv(e,t,n,r,o,i){let s=t[F];if(Ef(e,s,t,n,r)){$n(e)&&Jw(t,e.index);return}e.type&3&&(n=Kw(n)),Xw(e,t,n,r,o,i)}function Xw(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 Jw(e,t){let n=vt(t,e);n[L]&16||(n[L]|=64)}function eb(e,t,n){let r=n.directiveStart,o=n.directiveEnd;$n(n)&&Ow(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||Za(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=Ni(t,e,s,n);if(Do(c,t),i!==null&&rb(t,s-r,c,a,n,i),Yt(a)){let l=vt(n.index,t);l[$e]=Ni(t,e,s,n)}}}function tb(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=Bg();try{zn(i);for(let a=r;a<o;a++){let c=e.data[a],l=t[a];Ta(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&nb(c,l)}}finally{zn(-1),Ta(s)}}function nb(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function hv(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];Dw(t,i.selectors,!1)&&(r??=[],Yt(i)?r.unshift(i):r.push(i))}return r}function rb(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];Bd(r,n,c,l)}}function pv(e,t,n,r,o){let i=nt+n,s=t[F],a=o(s,t,e,r,n);t[i]=a,mo(e,!0);let c=e.type===2;return c?(ov(t[fe],a,e),(Ng()===0||bi(e))&&Do(a,t),Rg()):Do(a,t),Oa()&&(!c||!uf(e))&&yf(s,t,a,e),e}function gv(e){let t=e;return ud()?Pg():(t=t.parent,mo(t,!1)),t}function ob(e,t){let n=e[mr];if(!n)return;n.get(ut,null)?.(t)}function Ef(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];Bd(d,n[l],u,o),a=!0}if(i)for(let c of i){let l=n[c],u=t.data[c];Bd(u,l,r,o),a=!0}return a}function ib(e,t){let n=vt(t,e),r=n[F];sb(r,n);let o=n[Rt];o!==null&&n[Di]===null&&(n[Di]=Km(o,n[mr])),se(18),wf(r,n,n[$e]),se(19,n[$e])}function sb(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function wf(e,t,n){Na(t);try{let r=e.viewQuery;r!==null&&Vd(1,r,n);let o=e.template;o!==null&&dv(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[qt]?.finishViewCreation(e),e.staticContentQueries&&Xm(e,t),e.staticViewQueries&&Vd(2,e.viewQuery,n);let i=e.components;i!==null&&ab(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[L]&=-5,Ra()}}function ab(e,t){for(let n=0;n<t.length;n++)ib(e,t[n])}function cb(e,t,n,r){let o=B(null);try{let i=t.tView,a=e[L]&4096?4096:16,c=pf(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),l=e[t.index];c[Un]=l;let u=e[qt];return u!==null&&(c[qt]=u.createEmbeddedView(i)),wf(i,c,n),c}finally{B(o)}}function sm(e,t){return!t||t.firstChild===null||$m(e)}var am=!1,lb=new x("");function Ri(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(mt(i)),Ot(i)&&mv(i,r);let s=n.type;if(s&8)Ri(e,t,n.child,r);else if(s&32){let a=mf(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=uv(t,n);if(Array.isArray(a))r.push(...a);else{let c=Ln(t[gt]);Ri(c[F],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function mv(e,t){for(let n=Ze;n<e.length;n++){let r=e[n],o=r[F].firstChild;o!==null&&Ri(r[F],r,o,t)}e[Hn]!==e[Rt]&&t.push(e[Hn])}function vv(e){if(e[_r]!==null){for(let t of e[_r])t.impl.addSequence(t);e[_r].length=0}}var yv=[];function ub(e){return e[lt]??db(e)}function db(e){let t=yv.pop()??Object.create(hb);return t.lView=e,t}function fb(e){e.lView[lt]!==e&&(e.lView=null,yv.push(e))}var hb=q(w({},ir),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{go(e.lView)},consumerOnSignalRead(){this.lView[lt]=this}});function pb(e){let t=e[lt]??Object.create(gb);return t.lView=e,t}var gb=q(w({},ir),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=Ln(e.lView);for(;t&&!_v(t[F]);)t=Ln(t);t&&td(t)},consumerOnSignalRead(){this.lView[lt]=this}});function _v(e){return e.type!==2}function Dv(e){if(e[Ei]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[Ei])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[L]&8192)}}var mb=100;function bf(e,t=0){let r=e[vn].rendererFactory,o=!1;o||r.begin?.();try{vb(e,t)}finally{o||r.end?.()}}function vb(e,t){let n=fd();try{hd(!0),Hd(e,t);let r=0;for(;Ii(e);){if(r===mb)throw new S(103,!1);r++,Hd(e,1)}}finally{hd(n)}}function Cv(e,t){dd(t?Mi.Exhaustive:Mi.OnlyDirtyViews);try{bf(e)}finally{dd(Mi.Off)}}function yb(e,t,n,r){if(Cr(t))return;let o=t[L],i=!1,s=!1;Na(t);let a=!0,c=null,l=null;i||(_v(e)?(l=ub(t),c=sr(l)):Vs()===null?(a=!1,l=pb(t),c=sr(l)):t[lt]&&(ai(t[lt]),t[lt]=null));try{ed(t),Lg(e.bindingStartIndex),n!==null&&dv(e,t,n,2,r);let u=(o&3)===3;if(!i)if(u){let f=e.preOrderCheckHooks;f!==null&&Ba(t,f,null)}else{let f=e.preOrderHooks;f!==null&&Ua(t,f,0,null),bd(t,0)}if(s||_b(t),Dv(t),Ev(t,0),e.contentQueries!==null&&Xm(e,t),!i)if(u){let f=e.contentCheckHooks;f!==null&&Ba(t,f)}else{let f=e.contentHooks;f!==null&&Ua(t,f,1),bd(t,1)}Cb(e,t);let d=e.components;d!==null&&bv(t,d,0);let h=e.viewQuery;if(h!==null&&Vd(2,h,r),!i)if(u){let f=e.viewCheckHooks;f!==null&&Ba(t,f)}else{let f=e.viewHooks;f!==null&&Ua(t,f,2),bd(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[wa]){for(let f of t[wa])f();t[wa]=null}i||(vv(t),t[L]&=-73)}catch(u){throw i||go(t),u}finally{l!==null&&(Zr(l,c),a&&fb(l)),Ra()}}function Ev(e,t){for(let n=Gm(e);n!==null;n=Wm(n))for(let r=Ze;r<n.length;r++){let o=n[r];wv(o,t)}}function _b(e){for(let t=Gm(e);t!==null;t=Wm(t)){if(!(t[L]&2))continue;let n=t[Dr];for(let r=0;r<n.length;r++){let o=n[r];td(o)}}}function Db(e,t,n){se(18);let r=vt(t,e);wv(r,n),se(19,r[$e])}function wv(e,t){Ia(e)&&Hd(e,t)}function Hd(e,t){let r=e[F],o=e[L],i=e[lt],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&si(i)),s||=!1,i&&(i.dirty=!1),e[L]&=-9217,s)yb(r,e,r.template,e[$e]);else if(o&8192){let a=B(null);try{Dv(e),Ev(e,1);let c=r.components;c!==null&&bv(e,c,1),vv(e)}finally{B(a)}}}function bv(e,t,n){for(let r=0;r<t.length;r++)Db(e,t[r],n)}function Cb(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)zn(~o);else{let i=o,s=n[++r],a=n[++r];jg(s,i);let c=t[i];se(24,c),a(2,c),se(25,c)}}}finally{zn(-1)}}function If(e,t){let n=fd()?64:1088;for(e[vn].changeDetectionScheduler?.notify(t);e;){e[L]|=n;let r=Ln(e);if(po(e)&&!r)return e;e=r}return null}function Iv(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function Eb(e,t,n,r=!0){let o=t[F];if(wb(o,t,e,n),r){let s=Ud(n,e),a=t[fe],c=a.parentNode(e[Hn]);c!==null&&Fw(o,e[pt],a,t,c,s)}let i=t[Di];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function $d(e,t){if(e.length<=Ze)return;let n=Ze+t,r=e[n];if(r){let o=r[Un];o!==null&&o!==e&&vf(o,r),t>0&&(e[n-1][ht]=r[ht]);let i=vi(e,Ze+t);Pw(r[F],r);let s=i[qt];s!==null&&s.detachView(i[F]),r[Te]=null,r[ht]=null,r[L]&=-129}return r}function wb(e,t,n,r){let o=Ze+r,i=n.length;r>0&&(n[o-1][ht]=t),r<i-Ze?(t[ht]=n[o],Uu(n,Ze+r,t)):(n.push(t),t[ht]=null),t[Te]=n;let s=t[Un];s!==null&&n!==s&&Mv(s,t);let a=t[qt];a!==null&&a.insertView(e),Ma(t),t[L]|=128}function Mv(e,t){let n=e[Dr],r=t[Te];if(Zt(r))e[L]|=2;else{let o=r[Te][gt];t[gt]!==o&&(e[L]|=2)}n===null?e[Dr]=[t]:n.push(t)}var Wn=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let t=this._lView,n=t[F];return Ri(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[$e]}set context(t){this._lView[$e]=t}get destroyed(){return Cr(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&&($d(t,r),vi(n,r))}this._attachedToViewContainer=!1}lv(this._lView[F],this._lView)}onDestroy(t){nd(this._lView,t)}markForCheck(){If(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[L]&=-129}reattach(){Ma(this._lView),this._lView[L]|=128}detectChanges(){this._lView[L]|=1024,bf(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=po(this._lView),n=this._lView[Un];n!==null&&!t&&vf(n,this._lView),cv(this._lView[F],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new S(902,!1);this._appRef=t;let n=po(this._lView),r=this._lView[Un];r!==null&&!n&&Mv(r,this._lView),Ma(this._lView)}};var qn=(()=>{class e{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=bb;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=cb(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:r,dehydratedView:o});return new Wn(i)}}return e})();function bb(){return Mf(Fe(),ee())}function Mf(e,t){return e.type&4?new qn(t,e,bo(e,t)):null}function hc(e,t,n,r,o){let i=e.data[t];if(i===null)i=Ib(e,t,n,r,o),Vg()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=kg();i.injectorIndex=s===null?-1:s.injectorIndex}return mo(i,!0),i}function Ib(e,t,n,r,o){let i=ld(),s=ud(),a=s?i:i&&i.parent,c=e.data[t]=Sb(e,a,n,t,r,o);return Mb(e,c,i,s),c}function Mb(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 Sb(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Og()&&(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 t2=new RegExp(`^(\\d+)*(${dw}|${uw})*(.*)`);var xb=()=>null;function cm(e,t){return xb(e,t)}var Sv=class{},pc=class{},zd=class{resolveComponentFactory(t){throw new S(917,!1)}},Pi=class{static NULL=new zd},Ir=class{},Tr=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>Tb()}return e})();function Tb(){let e=ee(),t=Fe(),n=vt(t.index,e);return(Zt(n)?n:e)[fe]}var xv=(()=>{class e{static \u0275prov=A({token:e,providedIn:"root",factory:()=>null})}return e})();var $a={},Gd=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){let o=this.injector.get(t,$a,r);return o!==$a||n===$a?o:this.parentInjector.get(t,n,r)}};function Ka(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=va(o,a);else if(i==2){let c=a,l=t[++s];r=va(r,c+": "+l+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function te(e,t=0){let n=ee();if(n===null)return O(e,t);let r=Fe();return Bm(r,n,ke(e),t)}function Tv(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}Rb(e,t,n,a,i,c,l)}i!==null&&r!==null&&Ab(n,r,i)}function Ab(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 Nb(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function Rb(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,Nb(e,n,h)),kd(Za(n,t),e,f.type)}Vb(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=sv(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let h=0;h<a;h++){let f=r[h];if(n.mergedAttrs=_o(n.mergedAttrs,f.hostAttrs),kb(e,n,t,d,f),Lb(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++}Ob(e,n,i)}function Ob(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))lm(0,t,o,r),lm(1,t,o,r),dm(t,r,!1);else{let i=n.get(o);um(0,t,i,r),um(1,t,i,r),dm(t,r,!0)}}}function lm(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),Av(t,i)}}function um(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),Av(t,s)}}function Av(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||ff(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 kb(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=fr(o.type,!0)),s=new br(i,Yt(o),te,null);e.blueprint[r]=s,n[r]=s,Pb(e,t,r,sv(e,n,o.hostVars,yt),o)}function Pb(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;Fb(s)!=a&&s.push(a),s.push(n,r,i)}}function Fb(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function Lb(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 Vb(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Nv(e,t,n,r,o,i,s,a){let c=t[F],l=c.consts,u=Er(l,s),d=hc(c,e,n,r,u);return i&&Tv(c,t,d,Er(l,a),o),d.mergedAttrs=_o(d.mergedAttrs,d.attrs),d.attrs!==null&&Ka(d,d.attrs,!1),d.mergedAttrs!==null&&Ka(d,d.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,d),d}function Rv(e,t){Rm(e,t),Ku(t)&&e.queries.elementEnd(t)}function jb(e,t,n,r,o,i){let s=t.consts,a=Er(s,o),c=hc(t,e,n,r,a);if(c.mergedAttrs=_o(c.mergedAttrs,c.attrs),i!=null){let l=Er(s,i);c.localNames=[];for(let u=0;u<l.length;u+=2)c.localNames.push(l[u],-1)}return c.attrs!==null&&Ka(c,c.attrs,!1),c.mergedAttrs!==null&&Ka(c,c.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,c),c}function Sf(e){return kv(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function Ov(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 kv(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function Mr(e,t,n){if(n===yt)return!1;let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function Bb(e,t,n,r){let o=Mr(e,t,n);return Mr(e,t+1,r)||o}function za(e,t,n){return function r(o){let i=$n(e)?vt(e.index,t):t;If(i,5);let s=t[$e],a=fm(t,s,n,o),c=r.__ngNextListenerFn__;for(;c;)a=fm(t,s,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function fm(e,t,n,r){let o=B(null);try{return se(6,t,n),n(r)!==!1}catch(i){return ob(e,i),!1}finally{se(7,t,n),B(o)}}function Pv(e,t,n,r,o,i,s,a){let c=bi(e),l=!1,u=null;if(!r&&c&&(u=Ub(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;hw(n,h,i,a);let f=o.listen(h,i,a),v=r?m=>r(mt(m[e.index])):e.index;Fv(v,t,n,i,a,f,!1)}return l}function Ub(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[fo],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function Fv(e,t,n,r,o,i,s){let a=t.firstCreatePass?od(t):null,c=rd(n),l=c.length;c.push(o,i),a&&a.push(r,e,l,(l+1)*(s?-1:1))}function hm(e,t,n,r,o,i){let s=t[n],a=t[F],l=a.data[n].outputs[r],d=s[l].subscribe(i);Fv(e.index,a,t,o,i,d,!0)}var Wd=Symbol("BINDING");var Xa=class extends Pi{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=Bn(t);return new Co(n,this.ngModule)}};function Hb(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&dc.SignalBased)!==0};return o&&(i.transform=o),i})}function $b(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function zb(e,t,n){let r=t instanceof Ee?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Gd(n,r):n}function Gb(e){let t=e.get(Ir,null);if(t===null)throw new S(407,!1);let n=e.get(xv,null),r=e.get(gn,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1}}function Wb(e,t){let n=Lv(e);return nv(t,n,n==="svg"?Xu:n==="math"?Ig:null)}function Lv(e){return(e.selectors[0][0]||"div").toLowerCase()}var Co=class extends pc{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=Hb(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=$b(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=bw(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o,i,s){se(22);let a=B(null);try{let c=this.componentDef,l=qb(r,c,s,i),u=zb(c,o||this.ngModule,t),d=Gb(u),h=d.rendererFactory.createRenderer(null,c),f=r?Zw(h,r,c.encapsulation,u):Wb(c,h),v=s?.some(pm)||i?.some(p=>typeof p!="function"&&p.bindings.some(pm)),m=pf(null,l,null,512|iv(c),null,null,d,h,u,null,Km(f,u,!0));m[nt]=f,Na(m);let g=null;try{let p=Nv(nt,m,2,"#host",()=>l.directiveRegistry,!0,0);f&&(ov(h,f,p),Do(f,m)),Df(l,m,p),Jm(l,p,m),Rv(l,p),n!==void 0&&Yb(p,this.ngContentSelectors,n),g=vt(p.index,m),m[$e]=g[$e],wf(l,m,null)}catch(p){throw g!==null&&Fd(g),Fd(m),p}finally{se(23),Ra()}return new Ja(this.componentType,m,!!v)}finally{B(a)}}};function qb(e,t,n,r){let o=e?["ng-version","20.2.1"]:Iw(t.selectors[0]),i=null,s=null,a=0;if(n)for(let u of n)a+=u[Wd].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[Wd].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=Gu(d);c.push(h)}return hf(0,null,Zb(i,s),1,a,c,null,null,null,[o],null)}function Zb(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 pm(e){let t=e[Wd].kind;return t==="input"||t==="twoWay"}var Ja=class extends Sv{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=ba(n[F],nt),this.location=bo(this._tNode,n),this.instance=vt(this._tNode.index,n)[$e],this.hostView=this.changeDetectorRef=new Wn(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=Ef(r,o[F],o,t,n);this.previousInputValues.set(t,n);let s=vt(r.index,o);If(s,1)}get injector(){return new wr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function Yb(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 Cn=(()=>{class e{static __NG_ELEMENT_ID__=Qb}return e})();function Qb(){let e=Fe();return jv(e,ee())}var Kb=Cn,Vv=class extends Kb{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return bo(this._hostTNode,this._hostLView)}get injector(){return new wr(this._hostTNode,this._hostLView)}get parentInjector(){let t=af(this._hostTNode,this._hostLView);if(km(t)){let n=qa(t,this._hostLView),r=Wa(t),o=n[F].data[r+8];return new wr(o,n)}else return new wr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=gm(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-Ze}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=cm(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,sm(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let c=t&&!VE(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 Co(Bn(t)),d=r||this.parentInjector;if(!i&&u.ngModule==null){let p=(c?d:this.parentInjector).get(Ee,null);p&&(i=p)}let h=Bn(u.componentType??{}),f=cm(this._lContainer,h?.id??null),v=f?.firstChild??null,m=u.create(d,o,v,i,s,a);return this.insertImpl(m.hostView,l,sm(this._hostTNode,f)),m}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(Sg(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[Te],l=new Vv(c,c[pt],c[Te]);l.detach(l.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return Eb(s,o,i,r),t.attachToViewContainerRef(),Uu(Sd(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=gm(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=$d(this._lContainer,n);r&&(vi(Sd(this._lContainer),n),lv(r[F],r))}detach(t){let n=this._adjustIndex(t,-1),r=$d(this._lContainer,n);return r&&vi(Sd(this._lContainer),n)!=null?new Wn(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function gm(e){return e[wi]}function Sd(e){return e[wi]||(e[wi]=[])}function jv(e,t){let n,r=t[e.index];return Ot(r)?n=r:(n=Iv(r,t,null,e),t[e.index]=n,gf(t,n)),Jb(n,t,e,r),new Vv(n,e,t)}function Xb(e,t){let n=e[fe],r=n.createComment(""),o=Qt(t,e),i=n.parentNode(o);return Qa(n,i,r,n.nextSibling(o),!1),r}var Jb=nI,eI=()=>!1;function tI(e,t,n){return eI(e,t,n)}function nI(e,t,n,r){if(e[Hn])return;let o;n.type&8?o=mt(r):o=Xb(t,n),e[Hn]=o}var qd=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Zd=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++)xf(t,n).matches!==null&&this.queries[n].setDirty()}},Yd=class{flags;read;predicate;constructor(t,n,r=null){this.flags=n,this.read=r,typeof t=="string"?this.predicate=uI(t):this.predicate=t}},Qd=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)}},Kd=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,rI(n,i)),this.matchTNodeWithReadOption(t,n,Ha(n,t,i,!1,!1))}else r===qn?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===Cn||o===qn&&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 rI(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 oI(e,t){return e.type&11?bo(e,t):e.type&4?Mf(e,t):null}function iI(e,t,n,r){return n===-1?oI(t,e):n===-2?sI(e,t,r):Ni(e,e[F],n,t)}function sI(e,t,n){if(n===Lt)return bo(t,e);if(n===qn)return Mf(t,e);if(n===Cn)return jv(t,e)}function Bv(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(iI(t,u,s[c+1],n.metadata.read))}}o.matches=a}return o.matches}function Xd(e,t,n,r){let o=e.queries.getByIndex(n),i=o.matches;if(i!==null){let s=Bv(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=Ze;d<u.length;d++){let h=u[d];h[Un]===h[Te]&&Xd(h[F],h,l,r)}if(u[Dr]!==null){let d=u[Dr];for(let h=0;h<d.length;h++){let f=d[h];Xd(f[F],f,l,r)}}}}}return r}function aI(e,t){return e[qt].queries[t].queryList}function cI(e,t,n){let r=new Ya((n&4)===4);return Ag(e,t,r,r.destroy),(t[qt]??=new Zd).queries.push(new qd(r))-1}function lI(e,t,n){let r=ze();return r.firstCreatePass&&(dI(r,new Yd(e,t,n),-1),(t&2)===2&&(r.staticViewQueries=!0)),cI(r,ee(),t)}function uI(e){return e.split(",").map(t=>t.trim())}function dI(e,t,n){e.queries===null&&(e.queries=new Qd),e.queries.track(new Kd(t,n))}function xf(e,t){return e.queries.getByIndex(t)}function fI(e,t){let n=e[F],r=xf(n,t);return r.crossesNgTemplate?Xd(n,e,t,[]):Bv(n,e,r,t)}var mm=new Set;function gc(e){mm.has(e)||(mm.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Sr=class{},mc=class{};var ec=class extends Sr{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new Xa(this);constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n;let i=zu(t);this._bootstrapComponents=ev(i.bootstrap),this._r3Injector=yd(t,n,[{provide:Sr,useValue:this},{provide:Pi,useValue:this.componentFactoryResolver},...r],pn(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)}},tc=class extends mc{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new ec(this.moduleType,t,[])}};var Oi=class extends Sr{injector;componentFactoryResolver=new Xa(this);instance=null;constructor(t){super();let n=new pr([...t.providers,{provide:Sr,useValue:this},{provide:Pi,useValue:this.componentFactoryResolver}],t.parent||_i(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Fi(e,t,n=null){return new Oi({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var hI=(()=>{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=Wu(!1,n.type),o=r.length>0?Fi([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=A({token:e,providedIn:"environment",factory:()=>new e(O(Ee))})}return e})();function Ye(e){return wo(()=>{let t=Uv(e),n=q(w({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===cf.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(hI).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&&gc("NgStandalone"),Hv(n);let r=e.dependencies;return n.directiveDefs=vm(r,pI),n.pipeDefs=vm(r,yg),n.id=vI(n),n})}function pI(e){return Bn(e)||Gu(e)}function nn(e){return wo(()=>({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 gI(e,t){if(e==null)return Vn;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=dc.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function mI(e){if(e==null)return Vn;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Ge(e){return wo(()=>{let t=Uv(e);return Hv(t),t})}function Uv(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||Vn,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:gI(e.inputs,t),outputs:mI(e.outputs),debugInfo:null}}function Hv(e){e.features?.forEach(t=>t(e))}function vm(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 vI(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 yI(e){return Object.getPrototypeOf(e.prototype).constructor}function En(e){let t=yI(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=xd(e.inputs),s.declaredInputs=xd(e.declaredInputs),s.outputs=xd(e.outputs);let a=o.hostBindings;a&&wI(e,a);let c=o.viewQuery,l=o.contentQueries;if(c&&CI(e,c),l&&EI(e,l),_I(e,o),ug(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===En&&(n=!1)}}t=Object.getPrototypeOf(t)}DI(r)}function _I(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 DI(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=_o(o.hostAttrs,n=_o(n,o.hostAttrs))}}function xd(e){return e===Vn?{}:e===qe?[]:e}function CI(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function EI(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function wI(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function bI(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=_o(e.mergedAttrs,e.attrs);let u=e.tView=hf(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),mo(e,!1);let c=MI(n,t,e,r);Oa()&&yf(n,t,c,e),Do(c,t);let l=Iv(c,t,c,e);t[r+nt]=l,gf(t,l),tI(l,e,t)}function II(e,t,n,r,o,i,s,a,c,l,u){let d=n+nt,h;return t.firstCreatePass?(h=hc(t,d,4,s||null,a||null),sd()&&Tv(t,e,h,Er(t.consts,l),hv),Rm(t,h)):h=t.data[d],bI(h,e,t,n,r,o,i,c),bi(h)&&Df(t,e,h),l!=null&&Cf(e,h,u),h}function De(e,t,n,r,o,i,s,a){let c=ee(),l=ze(),u=Er(l.consts,i);return II(c,l,e,t,n,r,o,u,void 0,s,a),De}var MI=SI;function SI(e,t,n,r){return ka(!0),t[fe].createComment("")}var vc=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(vc||{}),Ar=new x(""),$v=!1,Jd=class extends ve{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,wg()&&(this.destroyRef=_(Kt,{optional:!0})??void 0,this.pendingTasks=_(Xt,{optional:!0})??void 0)}emit(t){let n=B(null);try{super.next(t)}finally{B(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 me&&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=Jd;function zv(e){let t,n;function r(){e=xi;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 ym(e){return queueMicrotask(()=>e()),()=>{e=xi}}var Tf="isAngularZone",nc=Tf+"_ID",xI=0,_e=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=$v}=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,NI(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Tf)===!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,TI,xi,xi);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)}},TI={};function Af(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 AI(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){zv(()=>{e.callbackScheduled=!1,ef(e),e.isCheckStableRunning=!0,Af(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),ef(e)}function NI(e){let t=()=>{AI(e)},n=xI++;e._inner=e._inner.fork({name:"angular",properties:{[Tf]:!0,[nc]:n,[nc+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(RI(c))return r.invokeTask(i,s,a,c);try{return _m(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Dm(e)}},onInvoke:(r,o,i,s,a,c,l)=>{try{return _m(e),r.invoke(i,s,a,c,l)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!OI(c)&&t(),Dm(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,ef(e),Af(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 ef(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function _m(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Dm(e){e._nesting--,Af(e)}var rc=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 RI(e){return Gv(e,"__ignore_ng_zone__")}function OI(e){return Gv(e,"__scheduler_tick__")}function Gv(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Nf=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=A({token:e,providedIn:"root",factory:()=>new e})}return e})(),Wv=[0,1,2,3],qv=(()=>{class e{ngZone=_(_e);scheduler=_(gn);errorHandler=_(At,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){_(Ar,{optional:!0})}execute(){let n=this.sequences.size>0;n&&se(16),this.executing=!0;for(let r of Wv)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&&se(17)}register(n){let{view:r}=n;r!==void 0?((r[_r]??=[]).push(n),go(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(vc.AFTER_NEXT_RENDER,n):n()}static \u0275prov=A({token:e,providedIn:"root",factory:()=>new e})}return e})(),oc=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?.[_r];t&&(this.view[_r]=t.filter(n=>n!==this))}};function yc(e,t){let n=t?.injector??_(ft);return gc("NgAfterNextRender"),PI(e,n,t,!0)}function kI(e){return e instanceof Function?[void 0,void 0,e,void 0]:[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function PI(e,t,n,r){let o=t.get(Nf);o.impl??=t.get(qv);let i=t.get(Ar,null,{optional:!0}),s=n?.manualCleanup!==!0?t.get(Kt):null,a=t.get(La,null,{optional:!0}),c=new oc(o.impl,kI(e),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var Rf=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();var Of=new x("");function Yn(e){return!!e&&typeof e.then=="function"}function kf(e){return!!e&&typeof e.subscribe=="function"}var Zv=new x("");var Pf=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=_(Zv,{optional:!0})??[];injector=_(ft);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Pe(this.injector,o);if(Yn(i))n.push(i);else if(kf(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=A({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),_c=new x("");function Yv(){Jl(()=>{let e="";throw new S(600,e)})}function Qv(e){return e.isBoundToModule}var FI=10;var wn=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=_(ut);afterRenderManager=_(Nf);zonelessEnabled=_(Fa);rootEffectScheduler=_(wd);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new ve;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=_(Xt);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(U(n=>!n))}constructor(){_(Ar,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=_(Ee);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=ft.NULL){return this._injector.get(_e).run(()=>{se(10);let s=n instanceof pc;if(!this._injector.get(Pf).done){let v="";throw new S(405,v)}let c;s?c=n:c=this._injector.get(Pi).resolveComponentFactory(n),this.componentTypes.push(c.componentType);let l=Qv(c)?void 0:this._injector.get(Sr),u=r||c.selector,d=c.create(o,[],u,l),h=d.location.nativeElement,f=d.injector.get(Of,null);return f?.registerApplication(h),d.onDestroy(()=>{this.detachView(d.hostView),Ai(this.components,d),f?.unregisterApplication(h)}),this._loadComponent(d),se(11,d),d})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){se(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(vc.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new S(101,!1);let n=B(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,B(n),this.afterTick.next(),se(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Ir,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<FI;)se(14),this.synchronizeOnce(),se(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;bf(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;Ai(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(_c,[]).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),()=>Ai(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=A({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Ai(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var Ff=new x("",{providedIn:"root",factory:()=>!1}),Lf=new x("",{providedIn:"root",factory:()=>LI}),LI=4e3;var c2=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";function X(e,t,n){let r=ee(),o=Sa();if(Mr(r,o,t)){let i=ze(),s=vd();fv(s,r,e,t,r[fe],n)}return X}function tf(e,t,n,r,o){Ef(t,e,n,o?"class":"style",r)}function M(e,t,n,r){let o=ee(),i=o[F],s=e+nt,a=i.firstCreatePass?Nv(s,o,2,t,hv,sd(),n,r):i.data[s];if(pv(a,o,e,t,Kv),bi(a)){let c=o[F];Df(c,o,a),Jm(c,a,o)}return r!=null&&Cf(o,a),M}function I(){let e=ze(),t=Fe(),n=gv(t);return e.firstCreatePass&&Rv(e,n),ad(n)&&cd(),id(),n.classesWithoutHost!=null&&zE(n)&&tf(e,n,ee(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&GE(n)&&tf(e,n,ee(),n.stylesWithoutHost,!1),I}function rt(e,t,n,r){return M(e,t,n,r),I(),rt}function _t(e,t,n,r){let o=ee(),i=o[F],s=e+nt,a=i.firstCreatePass?jb(s,i,2,t,n,r):i.data[s];return pv(a,o,e,t,Kv),r!=null&&Cf(o,a),_t}function rn(){let e=Fe(),t=gv(e);return ad(t)&&cd(),id(),rn}function Nr(e,t,n,r){return _t(e,t,n,r),rn(),Nr}var Kv=(e,t,n,r,o)=>(ka(!0),nv(t[fe],r,Wg()));function Dt(){return ee()}var Li="en-US";var VI=Li;function Xv(e){typeof e=="string"&&(VI=e.toLowerCase().replace(/_/g,"-"))}function J(e,t,n){let r=ee(),o=ze(),i=Fe();return Jv(o,r,r[fe],i,e,t,n),J}function Mo(e,t,n){let r=ee(),o=ze(),i=Fe();return(i.type&3||n)&&Pv(i,o,r,n,r[fe],e,t,za(i,r,t)),Mo}function Jv(e,t,n,r,o,i,s){let a=!0,c=null;if((r.type&3||s)&&(c??=za(r,t,i),Pv(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??=za(r,t,i),hm(r,t,h,f,o,c)}if(l&&l.length)for(let d of l)c??=za(r,t,i),hm(r,t,d,o,o,c)}}function ae(e=1){return Gg(e)}function Vf(e,t,n){lI(e,t,n)}function jf(e){let t=ee(),n=ze(),r=pd();Aa(r+1);let o=xf(n,r);if(e.dirty&&Mg(t)===((o.metadata.flags&2)===2)){if(o.matches===null)e.reset([]);else{let i=fI(t,r);e.reset(i,ow),e.notifyOnChanges()}return!0}return!1}function Bf(){return aI(ee(),pd())}function ja(e,t){return e<<17|t<<2}function xr(e){return e>>17&32767}function jI(e){return(e&2)==2}function BI(e,t){return e&131071|t<<17}function nf(e){return e|2}function Eo(e){return(e&131068)>>2}function Td(e,t){return e&-131069|t<<2}function UI(e){return(e&1)===1}function rf(e){return e|1}function HI(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=xr(s),c=Eo(s);e[r]=n;let l=!1,u;if(Array.isArray(n)){let d=n;u=d[1],(u===null||lo(d,u)>0)&&(l=!0)}else u=n;if(o)if(c!==0){let h=xr(e[a+1]);e[r+1]=ja(h,a),h!==0&&(e[h+1]=Td(e[h+1],r)),e[a+1]=BI(e[a+1],r)}else e[r+1]=ja(a,0),a!==0&&(e[a+1]=Td(e[a+1],r)),a=r;else e[r+1]=ja(c,0),a===0?a=r:e[c+1]=Td(e[c+1],r),c=r;l&&(e[r+1]=nf(e[r+1])),Cm(e,u,r,!0),Cm(e,u,r,!1),$I(t,u,e,r,i),s=ja(a,c),i?t.classBindings=s:t.styleBindings=s}function $I(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&lo(i,t)>=0&&(n[r+1]=rf(n[r+1]))}function Cm(e,t,n,r){let o=e[n+1],i=t===null,s=r?xr(o):Eo(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],l=e[s+1];zI(c,t)&&(a=!0,e[s+1]=r?rf(l):nf(l)),s=r?xr(l):Eo(l)}a&&(e[n+1]=r?nf(o):rf(o))}function zI(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?lo(e,t)>=0:!1}var Ft={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function GI(e){return e.substring(Ft.key,Ft.keyEnd)}function WI(e){return qI(e),ey(e,ty(e,0,Ft.textEnd))}function ey(e,t){let n=Ft.textEnd;return n===t?-1:(t=Ft.keyEnd=ZI(e,Ft.key=t,n),ty(e,t,n))}function qI(e){Ft.key=0,Ft.keyEnd=0,Ft.value=0,Ft.valueEnd=0,Ft.textEnd=e.length}function ty(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function ZI(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}function oe(e,t,n){return ny(e,t,n,!1),oe}function Qn(e,t){return ny(e,t,null,!0),Qn}function Dc(e){QI(nM,YI,e,!0)}function YI(e,t){for(let n=WI(t);n>=0;n=ey(t,n))Ca(e,GI(t),!0)}function ny(e,t,n,r){let o=ee(),i=ze(),s=xa(2);if(i.firstUpdatePass&&oy(i,e,s,r),t!==yt&&Mr(o,s,t)){let a=i.data[yn()];iy(i,a,o,o[fe],e,o[s+1]=oM(t,n),r,s)}}function QI(e,t,n,r){let o=ze(),i=xa(2);o.firstUpdatePass&&oy(o,null,i,r);let s=ee();if(n!==yt&&Mr(s,i,n)){let a=o.data[yn()];if(sy(a,r)&&!ry(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=va(c,n||"")),tf(o,a,s,n,r)}else rM(o,a,s,s[fe],s[i+1],s[i+1]=tM(e,t,n),r,i)}}function ry(e,t){return t>=e.expandoStartIndex}function oy(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[yn()],s=ry(e,n);sy(i,r)&&t===null&&!s&&(t=!1),t=KI(o,i,t,r),HI(o,i,t,n,s,r)}}function KI(e,t,n,r){let o=Ug(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Ad(null,e,t,n,r),n=ki(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Ad(o,e,t,n,r),i===null){let c=XI(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Ad(null,e,t,c[1],r),c=ki(c,t.attrs,r),JI(e,t,r,c))}else i=eM(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function XI(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Eo(r)!==0)return e[xr(r)]}function JI(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[xr(o)]=r}function eM(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=ki(r,s,n)}return ki(r,t.attrs,n)}function Ad(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=ki(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function ki(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]),Ca(e,s,n?!0:t[++i]))}return e===void 0?null:e}function tM(e,t,n){if(n==null||n==="")return qe;let r=[],o=df(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 nM(e,t,n){let r=String(t);r!==""&&!r.includes(" ")&&Ca(e,r,n)}function rM(e,t,n,r,o,i,s,a){o===yt&&(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&&iy(e,t,n,r,v,m,s,a),u=c<o.length?o[c]:null,d=l<i.length?i[l]:null}}function iy(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,l=c[a+1],u=UI(l)?Em(c,t,n,o,Eo(l),s):void 0;if(!ic(u)){ic(i)||jI(l)&&(i=Em(c,null,n,o,a,s));let d=Ju(yn(),n);qw(r,s,d,o,i)}}function Em(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===yt&&(h=d?qe:void 0);let f=d?Ea(h,r):u===r?h:void 0;if(l&&!ic(f)&&(f=Ea(c,r)),ic(f)&&(a=f,s))return a;let v=e[o+1];o=s?xr(v):Eo(v)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Ea(c,r))}return a}function ic(e){return e!==void 0}function oM(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=pn(df(e)))),e}function sy(e,t){return(e.flags&(t?8:16))!==0}function k(e,t=""){let n=ee(),r=ze(),o=e+nt,i=r.firstCreatePass?hc(r,o,1,t,null):r.data[o],s=iM(r,n,i,t,e);n[o]=s,Oa()&&yf(r,n,s,i),mo(i,!1)}var iM=(e,t,n,r,o)=>(ka(!0),Mw(t[fe],r));function sM(e,t,n,r=""){return Mr(e,Sa(),n)?t+mi(n)+r:yt}function aM(e,t,n,r,o,i=""){let s=Fg(),a=Bb(e,s,n,o);return xa(2),a?t+mi(n)+r+mi(o)+i:yt}function Ae(e){return Me("",e),Ae}function Me(e,t,n){let r=ee(),o=sM(r,e,t,n);return o!==yt&&ay(r,yn(),o),Me}function Cc(e,t,n,r,o){let i=ee(),s=aM(i,e,t,n,r,o);return s!==yt&&ay(i,yn(),s),Cc}function ay(e,t,n){let r=Ju(t,e);Sw(e[fe],r,n)}function Rr(e,t,n){Dd(t)&&(t=t());let r=ee(),o=Sa();if(Mr(r,o,t)){let i=ze(),s=vd();fv(s,r,e,t,r[fe],n)}return Rr}function So(e,t){let n=Dd(e);return n&&e.set(t),n}function Or(e,t){let n=ee(),r=ze(),o=Fe();return Jv(r,n,n[fe],o,e,t),Or}function cM(e,t,n){let r=ze();if(r.firstCreatePass){let o=Yt(e);of(n,r.data,r.blueprint,o,!0),of(t,r.data,r.blueprint,o,!1)}}function of(e,t,n,r,o){if(e=ke(e),Array.isArray(e))for(let i=0;i<e.length;i++)of(e[i],t,n,r,o);else{let i=ze(),s=ee(),a=Fe(),c=hr(e)?e:ke(e.provide),l=Zu(e),u=a.providerIndexes&1048575,d=a.directiveStart,h=a.providerIndexes>>20;if(hr(e)||!e.multi){let f=new br(l,o,te,null),v=Rd(c,t,o?u:u+h,d);v===-1?(kd(Za(a,s),i,c),Nd(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=Rd(c,t,u+h,d),v=Rd(c,t,u,u+h),m=f>=0&&n[f],g=v>=0&&n[v];if(o&&!g||!o&&!m){kd(Za(a,s),i,c);let p=dM(o?uM:lM,n.length,o,r,l,e);!o&&g&&(n[v].providerFactory=p),Nd(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=cy(n[o?v:f],l,!o&&r);Nd(i,e,f>-1?f:v,p)}!o&&r&&g&&n[v].componentProviders++}}}function Nd(e,t,n,r){let o=hr(t),i=Eg(t);if(o||i){let c=(i?ke(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 cy(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Rd(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function lM(e,t,n,r,o){return sf(this.multi,[])}function uM(e,t,n,r,o){let i=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,c=Ni(r,r[F],this.providerFactory.index,o);s=c.slice(0,a),sf(i,s);for(let l=a;l<c.length;l++)s.push(c[l])}else s=[],sf(i,s);return s}function sf(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function dM(e,t,n,r,o,i){let s=new br(e,n,te,null);return s.multi=[],s.index=t,s.componentProviders=0,cy(s,o,r&&!n),s}function xo(e,t=[]){return n=>{n.providersResolver=(r,o)=>cM(r,o?o(e):e,t)}}var sc=class{ngModuleFactory;componentFactories;constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},Uf=(()=>{class e{compileModuleSync(n){return new tc(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=zu(n),i=ev(o.declarations).reduce((s,a)=>{let c=Bn(a);return c&&s.push(new Co(c)),s},[]);return new sc(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=A({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var fM=(()=>{class e{zone=_(_e);changeDetectionScheduler=_(gn);applicationRef=_(wn);applicationErrorHandler=_(ut);_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=A({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function ly({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new _e(q(w({},uy()),{scheduleInRootZone:n})),[{provide:_e,useFactory:e},{provide:jn,multi:!0,useFactory:()=>{let r=_(fM,{optional:!0});return()=>r.initialize()}},{provide:jn,multi:!0,useFactory:()=>{let r=_(hM);return()=>{r.initialize()}}},t===!0?{provide:Cd,useValue:!0}:[],{provide:Ed,useValue:n??$v},{provide:ut,useFactory:()=>{let r=_(_e),o=_(Ee),i;return s=>{r.runOutsideAngular(()=>{o.destroyed&&!i?setTimeout(()=>{throw s}):(i??=o.get(At),i.handleError(s))})}}}]}function uy(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var hM=(()=>{class e{subscription=new me;initialized=!1;zone=_(_e);pendingTasks=_(Xt);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(()=>{_e.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{_e.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var dy=(()=>{class e{applicationErrorHandler=_(ut);appRef=_(wn);taskService=_(Xt);ngZone=_(_e);zonelessEnabled=_(Fa);tracing=_(Ar,{optional:!0});disableScheduling=_(Cd,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new me;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(nc):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(_(Ed,{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 rc||!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?ym:zv;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(nc+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,ym(()=>{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=A({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function pM(){return typeof $localize<"u"&&$localize.locale||Li}var Ec=new x("",{providedIn:"root",factory:()=>_(Ec,{optional:!0,skipSelf:!0})||pM()});function We(e){return ag(e)}function Vi(e,t){return Us(e,t?.equal)}var fy=class{[Ue];constructor(t){this[Ue]=t}destroy(){this[Ue].destroy()}};var my=Symbol("InputSignalNode#UNSET"),RM=q(w({},Hs),{transformFn:void 0,applyValueToInputSignal(e,t){Qr(e,t)}});function vy(e,t){let n=Object.create(RM);n.value=e,n.transformFn=t?.transform;function r(){if(qr(n),n.value===my){let o=null;throw new S(-950,o)}return n.value}return r[Ue]=n,r}var OM=new x("");OM.__NG_ELEMENT_ID__=e=>{let t=Fe();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 hy(e,t){return vy(e,t)}function kM(e){return vy(my,e)}var yy=(hy.required=kM,hy);var Hf=new x(""),PM=new x("");function ji(e){return!e.moduleRef}function FM(e){let t=ji(e)?e.r3Injector:e.moduleRef.injector,n=t.get(_e);return n.run(()=>{ji(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(ut),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),ji(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Hf);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Hf);s.add(i),e.moduleRef.onDestroy(()=>{Ai(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return VM(r,n,()=>{let i=t.get(Xt),s=i.add(),a=t.get(Pf);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(Ec,Li);if(Xv(c||Li),!t.get(PM,!0))return ji(e)?t.get(wn):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(ji(e)){let u=t.get(wn);return e.rootComponent!==void 0&&u.bootstrap(e.rootComponent),u}else return LM?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>void i.remove(s))})})}var LM;function VM(e,t,n){try{let r=n();return Yn(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var wc=null;function jM(e=[],t){return ft.create({name:t,providers:[{provide:yi,useValue:"platform"},{provide:Hf,useValue:new Set([()=>wc=null])},...e]})}function BM(e=[]){if(wc)return wc;let t=jM(e);return wc=t,Yv(),UM(t),t}function UM(e){let t=e.get(lc,null);Pe(e,()=>{t?.forEach(n=>n())})}var Ao=(()=>{class e{static __NG_ELEMENT_ID__=HM}return e})();function HM(e){return $M(Fe(),ee(),(e&16)===16)}function $M(e,t,n){if($n(e)&&!n){let r=vt(e.index,t);return new Wn(r,r)}else if(e.type&175){let r=t[gt];return new Wn(r,t)}return null}var $f=class{constructor(){}supports(t){return Sf(t)}create(t){return new zf(t)}},zM=(e,t)=>t,zf=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||zM}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<py(r,o,i)?n:r,a=py(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=[]),!Sf(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,Ov(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 Gf(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 bc),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 bc),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}},Gf=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}},Wf=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}},bc=class{map=new Map;put(t){let n=t.trackById,r=this.map.get(n);r||(r=new Wf,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 py(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 gy(){return new qf([new $f])}var qf=(()=>{class e{factories;static \u0275prov=A({token:e,providedIn:"root",factory:gy});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||gy()),deps:[[e,new Sm,new Mm]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new S(901,!1)}}return e})();function _y(e){se(8);try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=BM(r),i=[ly({}),{provide:gn,useExisting:dy},Zg,...n||[]],s=new Oi({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return FM({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}finally{se(9)}}function Zf(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}var Ey=null;function Ct(){return Ey}function Yf(e){Ey??=e}var Bi=class{},Qf=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=A({token:e,factory:()=>_(wy),providedIn:"platform"})}return e})();var wy=(()=>{class e extends Qf{_location;_history;_doc=_(Ie);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Ct().getBaseHref(this._doc)}onPopState(n){let r=Ct().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=Ct().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=A({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function by(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function Dy(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function Kn(e){return e&&e[0]!=="?"?`?${e}`:e}var Ic=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=A({token:e,factory:()=>_(My),providedIn:"root"})}return e})(),Iy=new x(""),My=(()=>{class e extends Ic{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??_(Ie).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 by(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+Kn(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Kn(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Kn(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)(O(Qf),O(Iy,8))};static \u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),No=(()=>{class e{_subject=new ve;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=qM(Dy(Cy(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+Kn(r))}normalize(n){return e.stripTrailingSlash(WM(this._basePath,Cy(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+Kn(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Kn(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=Kn;static joinWithSlash=by;static stripTrailingSlash=Dy;static \u0275fac=function(r){return new(r||e)(O(Ic))};static \u0275prov=A({token:e,factory:()=>GM(),providedIn:"root"})}return e})();function GM(){return new No(O(Ic))}function WM(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Cy(e){return e.replace(/\/index.html$/,"")}function qM(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var Mc=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 Mc(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),Sy(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);Sy(i,o)})}static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(te(Cn),te(qn),te(qf))};static \u0275dir=Ge({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function Sy(e,t){e.context.$implicit=t.item}var Vt=(()=>{class e{_viewContainer;_context=new Sc;_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){xy(n,!1),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){xy(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)(te(Cn),te(qn))};static \u0275dir=Ge({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),Sc=class{$implicit=null;ngIf=null};function xy(e,t){if(e&&!e.createEmbeddedView)throw new S(2020,!1)}var ot=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=nn({type:e});static \u0275inj=Nt({})}return e})();function Ui(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 kr=class{};var Ty="browser";var Tc=new x(""),th=(()=>{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)(O(Tc),O(_e))};static \u0275prov=A({token:e,factory:e.\u0275fac})}return e})(),$i=class{_doc;constructor(t){this._doc=t}manager},Kf="ng-app-id";function Ay(e){for(let t of e)t.remove()}function Ny(e,t){let n=t.createElement("style");return n.textContent=e,n}function ZM(e,t,n,r){let o=e.head?.querySelectorAll(`style[${Kf}="${t}"],link[${Kf}="${t}"]`);if(o)for(let i of o)i.removeAttribute(Kf),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 Jf(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var nh=(()=>{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,ZM(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,Ny);r?.forEach(o=>this.addUsage(o,this.external,Jf))}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&&(Ay(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])Ay(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,Ny(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,Jf(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)(O(Ie),O(cc),O(uc,8),O(Io))};static \u0275prov=A({token:e,factory:e.\u0275fac})}return e})(),Xf={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"},rh=/%COMP%/g;var Oy="%COMP%",YM=`_nghost-${Oy}`,QM=`_ngcontent-${Oy}`,KM=!0,XM=new x("",{providedIn:"root",factory:()=>KM});function JM(e){return QM.replace(rh,e)}function eS(e){return YM.replace(rh,e)}function ky(e,t){return t.map(n=>n.replace(rh,e))}var oh=(()=>{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 zi(n,s,c,this.platformIsServer,this.tracingService,this.registry=Pa(),this.maxAnimationTimeout)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(n,r);return o instanceof xc?o.applyToHost(n):o instanceof Gi&&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 xc(c,l,r,this.appId,u,s,a,d,h,this.registry,this.animationDisabled,this.maxAnimationTimeout);break;case Dn.ShadowDom:return new eh(c,l,n,r,s,a,this.nonce,d,h,this.registry,this.maxAnimationTimeout);default:i=new Gi(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)(O(th),O(nh),O(cc),O(XM),O(Ie),O(Io),O(_e),O(uc),O(Ff),O(Lf),O(Ar,8))};static \u0275prov=A({token:e,factory:e.\u0275fac})}return e})(),zi=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(Xf[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Ry(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Ry(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=Xf[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=Xf[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&(en.DashCase|en.Important)?t.style.setProperty(n,r,o&en.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&en.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=Ct().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 Ry(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var eh=class extends zi{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=ky(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=Jf(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)}},Gi=class extends zi{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?ky(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)}}},xc=class extends Gi{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=JM(f),this.hostAttr=eS(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 Ac=class e extends Bi{supportsDOMEvents=!0;static makeCurrent(){Yf(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=tS();return n==null?null:nS(n)}resetBaseElement(){Wi=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Ui(document.cookie,t)}},Wi=null;function tS(){return Wi=Wi||document.head.querySelector("base"),Wi?Wi.getAttribute("href"):null}function nS(e){return new URL(e,document.baseURI).pathname}var rS=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=A({token:e,factory:e.\u0275fac})}return e})(),Fy=(()=>{class e extends $i{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)(O(Ie))};static \u0275prov=A({token:e,factory:e.\u0275fac})}return e})(),Py=["alt","control","meta","shift"],oS={"\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"},iS={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Ly=(()=>{class e extends $i{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(()=>Ct().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."),Py.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=oS[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"),Py.forEach(s=>{if(s!==o){let a=iS[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)(O(Ie))};static \u0275prov=A({token:e,factory:e.\u0275fac})}return e})();function ih(e,t){let n=w({rootComponent:e},sS(t));return _y(n)}function sS(e){return{appProviders:[...dS,...e?.providers??[]],platformProviders:uS}}function aS(){Ac.makeCurrent()}function cS(){return new At}function lS(){return lf(document),document}var uS=[{provide:Io,useValue:Ty},{provide:lc,useValue:aS,multi:!0},{provide:Ie,useFactory:lS}];var dS=[{provide:yi,useValue:"root"},{provide:At,useFactory:cS},{provide:Tc,useClass:Fy,multi:!0,deps:[Ie]},{provide:Tc,useClass:Ly,multi:!0,deps:[Ie]},oh,nh,th,{provide:Ir,useExisting:oh},{provide:kr,useClass:rS},[]];var ko=class{},qi=class{},Xn=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 Rc=class{encodeKey(t){return Vy(t)}encodeValue(t){return Vy(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function fS(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 hS=/%(\d[a-f0-9])/gi,pS={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Vy(e){return encodeURIComponent(e).replace(hS,(t,n)=>pS[n]??t)}function Nc(e){return`${e}`}var bn=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new Rc,t.fromString){if(t.fromObject)throw new S(2805,!1);this.map=fS(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(Nc):[Nc(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(Nc(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(Nc(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 Oc=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 gS(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function jy(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function By(e){return typeof Blob<"u"&&e instanceof Blob}function Uy(e){return typeof FormData<"u"&&e instanceof FormData}function mS(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Hy="Content-Type",$y="Accept",Gy="X-Request-URL",Wy="text/plain",qy="application/json",vS=`${qy}, ${Wy}, */*`,Ro=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(gS(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 Xn,this.context??=new Oc,!this.params)this.params=new bn,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"||jy(this.body)||By(this.body)||Uy(this.body)||mS(this.body)?this.body:this.body instanceof bn?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||Uy(this.body)?null:By(this.body)?this.body.type||null:jy(this.body)?null:typeof this.body=="string"?Wy:this.body instanceof bn?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?qy: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,C=t.headers||this.headers,T=t.params||this.params,E=t.context??this.context;return t.setHeaders!==void 0&&(C=Object.keys(t.setHeaders).reduce((j,Y)=>j.set(Y,t.setHeaders[Y]),C)),t.setParams&&(T=Object.keys(t.setParams).reduce((j,Y)=>j.set(Y,t.setParams[Y]),T)),new e(n,r,m,{params:T,headers:C,context:E,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})}},Pr=(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})(Pr||{}),Po=class{headers;status;statusText;url;ok;type;redirected;constructor(t,n=200,r="OK"){this.headers=t.headers||new Xn,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}},kc=class e extends Po{constructor(t={}){super(t)}type=Pr.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})}},Zi=class e extends Po{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=Pr.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})}},Oo=class extends Po{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}},yS=200,_S=204;function sh(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 Fc=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Ro)i=n;else{let c;o.headers instanceof Xn?c=o.headers:c=new Xn(o.headers);let l;o.params&&(o.params instanceof bn?l=o.params:l=new bn({fromObject:o.params})),i=new Ro(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(kn(c=>this.handler.handle(c)));if(n instanceof Ro||o.observe==="events")return s;let a=s.pipe(tt(c=>c instanceof Zi));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(U(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new S(2806,!1);return c.body}));case"blob":return a.pipe(U(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new S(2807,!1);return c.body}));case"text":return a.pipe(U(c=>{if(c.body!==null&&typeof c.body!="string")throw new S(2808,!1);return c.body}));case"json":default:return a.pipe(U(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 bn().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,sh(o,r))}post(n,r,o={}){return this.request("POST",n,sh(o,r))}put(n,r,o={}){return this.request("PUT",n,sh(o,r))}static \u0275fac=function(r){return new(r||e)(O(ko))};static \u0275prov=A({token:e,factory:e.\u0275fac})}return e})();var DS=new x("");function Zy(e,t){return t(e)}function CS(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}function ES(e,t,n){return(r,o)=>Pe(n,()=>t(r,i=>e(i,o)))}var Yy=new x(""),ch=new x(""),Qy=new x(""),lh=new x("",{providedIn:"root",factory:()=>!0});function wS(){let e=null;return(t,n)=>{e===null&&(e=(_(Yy,{optional:!0})??[]).reduceRight(CS,Zy));let r=_(Si);if(_(lh)){let i=r.add();return e(t,n).pipe(Fn(i))}else return e(t,n)}}var Pc=(()=>{class e extends ko{backend;injector;chain=null;pendingTasks=_(Si);contributeToStability=_(lh);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(ch),...this.injector.get(Qy,[])]));this.chain=r.reduceRight((o,i)=>ES(o,i,this.injector),Zy)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Fn(r))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(O(qi),O(Ee))};static \u0275prov=A({token:e,factory:e.\u0275fac})}return e})();var bS=/^\)\]\}',?\n/,IS=RegExp(`^${Gy}:`,"m");function MS(e){return"responseURL"in e&&e.responseURL?e.responseURL:IS.test(e.getAllResponseHeaders())?e.getResponseHeader(Gy):null}var ah=(()=>{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 G(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($y)||s.setRequestHeader($y,vS),!n.headers.has(Hy)){let g=n.detectContentTypeHeader();g!==null&&s.setRequestHeader(Hy,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 Xn(s.getAllResponseHeaders()),C=MS(s)||n.url;return c=new kc({headers:p,status:s.status,statusText:g,url:C}),c},u=()=>{let{headers:g,status:p,statusText:C,url:T}=l(),E=null;p!==_S&&(E=typeof s.response>"u"?s.responseText:s.response),p===0&&(p=E?yS:0);let j=p>=200&&p<300;if(n.responseType==="json"&&typeof E=="string"){let Y=E;E=E.replace(bS,"");try{E=E!==""?JSON.parse(E):null}catch(le){E=Y,j&&(j=!1,E={error:le,text:E})}}j?(i.next(new Zi({body:E,headers:g,status:p,statusText:C,url:T||void 0})),i.complete()):i.error(new Oo({error:E,headers:g,status:p,statusText:C,url:T||void 0}))},d=g=>{let{url:p}=l(),C=new Oo({error:g,status:s.status||0,statusText:s.statusText||"Unknown Error",url:p||void 0});i.error(C)},h=d;n.timeout&&(h=g=>{let{url:p}=l(),C=new Oo({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:p||void 0});i.error(C)});let f=!1,v=g=>{f||(i.next(l()),f=!0);let p={type:Pr.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:Pr.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:Pr.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)(O(kr))};static \u0275prov=A({token:e,factory:e.\u0275fac})}return e})(),Ky=new x(""),SS="XSRF-TOKEN",xS=new x("",{providedIn:"root",factory:()=>SS}),TS="X-XSRF-TOKEN",AS=new x("",{providedIn:"root",factory:()=>TS}),Yi=class{},NS=(()=>{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=Ui(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(r){return new(r||e)(O(Ie),O(xS))};static \u0275prov=A({token:e,factory:e.\u0275fac})}return e})();function RS(e,t){let n=e.url.toLowerCase();if(!_(Ky)||e.method==="GET"||e.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return t(e);let r=_(Yi).getToken(),o=_(AS);return r!=null&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var uh=(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})(uh||{});function OS(e,t){return{\u0275kind:e,\u0275providers:t}}function Lc(...e){let t=[Fc,ah,Pc,{provide:ko,useExisting:Pc},{provide:qi,useFactory:()=>_(DS,{optional:!0})??_(ah)},{provide:ch,useValue:RS,multi:!0},{provide:Ky,useValue:!0},{provide:Yi,useClass:NS}];for(let n of e)t.push(...n.\u0275providers);return uo(t)}var zy=new x("");function Xy(){return OS(uh.LegacyInterceptors,[{provide:zy,useFactory:wS},{provide:ch,useExisting:zy,multi:!0}])}var dh=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=nn({type:e});static \u0275inj=Nt({providers:[Lc(Xy())]})}return e})();var Jy=(()=>{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)(O(Ie))};static \u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var H="primary",cs=Symbol("RouteTitle"),mh=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 Uo(e){return new mh(e)}function FS(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 LS(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!on(e[n],t[n]))return!1;return!0}function on(e,t){let n=e?vh(e):void 0,r=t?vh(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],!a_(e[o],t[o]))return!1;return!0}function vh(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function a_(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 c_(e){return e.length>0?e[e.length-1]:null}function Sn(e){return du(e)?e:Yn(e)?he(Promise.resolve(e)):P(e)}var VS={exact:u_,subset:d_},l_={exact:jS,subset:BS,ignored:()=>!0};function e_(e,t,n){return VS[n.paths](e.root,t.root,n.matrixParams)&&l_[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function jS(e,t){return on(e,t)}function u_(e,t,n){if(!Lr(e.segments,t.segments)||!Bc(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!u_(e.children[r],t.children[r],n))return!1;return!0}function BS(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>a_(e[n],t[n]))}function d_(e,t,n){return f_(e,t,t.segments,n)}function f_(e,t,n,r){if(e.segments.length>n.length){let o=e.segments.slice(0,n.length);return!(!Lr(o,n)||t.hasChildren()||!Bc(o,n,r))}else if(e.segments.length===n.length){if(!Lr(e.segments,n)||!Bc(e.segments,n,r))return!1;for(let o in t.children)if(!e.children[o]||!d_(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!Lr(e.segments,o)||!Bc(e.segments,o,r)||!e.children[H]?!1:f_(e.children[H],t,i,r)}}function Bc(e,t,n){return t.every((r,o)=>l_[n](e[o].parameters,r.parameters))}var Mn=class{root;queryParams;fragment;_queryParamMap;constructor(t=new ie([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=Uo(this.queryParams),this._queryParamMap}toString(){return $S.serialize(this)}},ie=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 Uc(this)}},Fr=class{path;parameters;_parameterMap;constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=Uo(this.parameters),this._parameterMap}toString(){return p_(this)}};function US(e,t){return Lr(e,t)&&e.every((n,r)=>on(n.parameters,t[r].parameters))}function Lr(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function HS(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===H&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==H&&(n=n.concat(t(o,r)))}),n}var Jc=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=A({token:e,factory:()=>new Ho,providedIn:"root"})}return e})(),Ho=class{parse(t){let n=new _h(t);return new Mn(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${Qi(t.root,!0)}`,r=WS(t.queryParams),o=typeof t.fragment=="string"?`#${zS(t.fragment)}`:"";return`${n}${r}${o}`}},$S=new Ho;function Uc(e){return e.segments.map(t=>p_(t)).join("/")}function Qi(e,t){if(!e.hasChildren())return Uc(e);if(t){let n=e.children[H]?Qi(e.children[H],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==H&&r.push(`${o}:${Qi(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=HS(e,(r,o)=>o===H?[Qi(e.children[H],!1)]:[`${o}:${Qi(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[H]!=null?`${Uc(e)}/${n[0]}`:`${Uc(e)}/(${n.join("//")})`}}function h_(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Vc(e){return h_(e).replace(/%3B/gi,";")}function zS(e){return encodeURI(e)}function yh(e){return h_(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Hc(e){return decodeURIComponent(e)}function t_(e){return Hc(e.replace(/\+/g,"%20"))}function p_(e){return`${yh(e.path)}${GS(e.parameters)}`}function GS(e){return Object.entries(e).map(([t,n])=>`;${yh(t)}=${yh(n)}`).join("")}function WS(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(o=>`${Vc(n)}=${Vc(o)}`).join("&"):`${Vc(n)}=${Vc(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var qS=/^[^\/()?;#]+/;function fh(e){let t=e.match(qS);return t?t[0]:""}var ZS=/^[^\/()?;=#]+/;function YS(e){let t=e.match(ZS);return t?t[0]:""}var QS=/^[^=?&#]+/;function KS(e){let t=e.match(QS);return t?t[0]:""}var XS=/^[^&#]+/;function JS(e){let t=e.match(XS);return t?t[0]:""}var _h=class{url;remaining;constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new ie([],{}):new ie([],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[H]=new ie(t,n)),r}parseSegment(){let t=fh(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new S(4009,!1);return this.capture(t),new Fr(Hc(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=YS(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let o=fh(this.remaining);o&&(r=o,this.capture(r))}t[Hc(n)]=Hc(r)}parseQueryParam(t){let n=KS(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=JS(this.remaining);s&&(r=s,this.capture(r))}let o=t_(n),i=t_(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=fh(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=H);let s=this.parseChildren();n[i]=Object.keys(s).length===1?s[H]:new ie([],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 g_(e){return e.segments.length>0?new ie([],{[H]:e}):e}function m_(e){let t={};for(let[r,o]of Object.entries(e.children)){let i=m_(o);if(r===H&&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 ie(e.segments,t);return ex(n)}function ex(e){if(e.numberOfChildren===1&&e.children[H]){let t=e.children[H];return new ie(e.segments.concat(t.segments),t.children)}return e}function $o(e){return e instanceof Mn}function tx(e,t,n=null,r=null){let o=v_(e);return y_(o,t,n,r)}function v_(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 ie(i.url,s);return i===e&&(t=a),a}let r=n(e.root),o=g_(r);return t??o}function y_(e,t,n,r){let o=e;for(;o.parent;)o=o.parent;if(t.length===0)return hh(o,o,o,n,r);let i=nx(t);if(i.toRoot())return hh(o,o,new ie([],{}),n,r);let s=rx(i,o,e),a=s.processChildren?Xi(s.segmentGroup,s.index,i.commands):D_(s.segmentGroup,s.index,i.commands);return hh(o,s.segmentGroup,a,n,r)}function $c(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function ts(e){return typeof e=="object"&&e!=null&&e.outlets}function hh(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=__(e,t,n);let a=g_(m_(s));return new Mn(a,i,o)}function __(e,t,n){let r={};return Object.entries(e.children).forEach(([o,i])=>{i===t?r[o]=n:r[o]=__(i,t,n)}),new ie(e.segments,r)}var zc=class{isAbsolute;numberOfDoubleDots;commands;constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&$c(r[0]))throw new S(4003,!1);let o=r.find(ts);if(o&&o!==c_(r))throw new S(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function nx(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new zc(!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 zc(n,t,r)}var Vo=class{segmentGroup;processChildren;index;constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function rx(e,t,n){if(e.isAbsolute)return new Vo(t,!0,0);if(!n)return new Vo(t,!1,NaN);if(n.parent===null)return new Vo(n,!0,0);let r=$c(e.commands[0])?0:1,o=n.segments.length-1+r;return ox(n,o,e.numberOfDoubleDots)}function ox(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 Vo(r,!1,o-i)}function ix(e){return ts(e[0])?e[0].outlets:{[H]:e}}function D_(e,t,n){if(e??=new ie([],{}),e.segments.length===0&&e.hasChildren())return Xi(e,t,n);let r=sx(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){let i=new ie(e.segments.slice(0,r.pathIndex),{});return i.children[H]=new ie(e.segments.slice(r.pathIndex),e.children),Xi(i,0,o)}else return r.match&&o.length===0?new ie(e.segments,{}):r.match&&!e.hasChildren()?Dh(e,t,n):r.match?Xi(e,0,o):Dh(e,t,n)}function Xi(e,t,n){if(n.length===0)return new ie(e.segments,{});{let r=ix(n),o={};if(Object.keys(r).some(i=>i!==H)&&e.children[H]&&e.numberOfChildren===1&&e.children[H].segments.length===0){let i=Xi(e.children[H],t,n);return new ie(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=D_(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s)}),new ie(e.segments,o)}}function sx(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(ts(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(!r_(c,l,s))return i;r+=2}else{if(!r_(c,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function Dh(e,t,n){let r=e.segments.slice(0,t),o=0;for(;o<n.length;){let i=n[o];if(ts(i)){let c=ax(i.outlets);return new ie(r,c)}if(o===0&&$c(n[0])){let c=e.segments[t];r.push(new Fr(c.path,n_(n[0]))),o++;continue}let s=ts(i)?i.outlets[H]:`${i}`,a=o<n.length-1?n[o+1]:null;s&&a&&$c(a)?(r.push(new Fr(s,n_(a))),o+=2):(r.push(new Fr(s,{})),o++)}return new ie(r,{})}function ax(e){let t={};return Object.entries(e).forEach(([n,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=Dh(new ie([],{}),0,r))}),t}function n_(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function r_(e,t,n){return e==n.path&&on(t,n.parameters)}var Ji="imperative",Le=(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})(Le||{}),wt=class{id;url;constructor(t,n){this.id=t,this.url=n}},zo=class extends wt{type=Le.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}')`}},Jn=class extends wt{urlAfterRedirects;type=Le.NavigationEnd;constructor(t,n,r){super(t,n),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},it=(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})(it||{}),Gc=(function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e})(Gc||{}),In=class extends wt{reason;code;type=Le.NavigationCancel;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},er=class extends wt{reason;code;type=Le.NavigationSkipped;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o}},ns=class extends wt{error;target;type=Le.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})`}},Wc=class extends wt{urlAfterRedirects;state;type=Le.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})`}},Ch=class extends wt{urlAfterRedirects;state;type=Le.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})`}},Eh=class extends wt{urlAfterRedirects;state;shouldActivate;type=Le.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})`}},wh=class extends wt{urlAfterRedirects;state;type=Le.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})`}},bh=class extends wt{urlAfterRedirects;state;type=Le.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})`}},Ih=class{route;type=Le.RouteConfigLoadStart;constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Mh=class{route;type=Le.RouteConfigLoadEnd;constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Sh=class{snapshot;type=Le.ChildActivationStart;constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},xh=class{snapshot;type=Le.ChildActivationEnd;constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Th=class{snapshot;type=Le.ActivationStart;constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ah=class{snapshot;type=Le.ActivationEnd;constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var rs=class{},Go=class{url;navigationBehaviorOptions;constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function cx(e){return!(e instanceof rs)&&!(e instanceof Go)}function lx(e,t){return e.providers&&!e._injector&&(e._injector=Fi(e.providers,t,`Route: ${e.path}`)),e._injector??t}function jt(e){return e.outlet||H}function ux(e,t){let n=e.filter(r=>jt(r)===t);return n.push(...e.filter(r=>jt(r)!==t)),n}function qo(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 Nh=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return qo(this.route?.snapshot)??this.rootInjector}constructor(t){this.rootInjector=t,this.children=new ls(this.rootInjector)}},ls=(()=>{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 Nh(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static \u0275fac=function(r){return new(r||e)(O(Ee))};static \u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),qc=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=Rh(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=Rh(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=Oh(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return Oh(t,this._root).map(n=>n.value)}};function Rh(e,t){if(e===t.value)return t;for(let n of t.children){let r=Rh(e,n);if(r)return r}return null}function Oh(e,t){if(e===t.value)return[t];for(let n of t.children){let r=Oh(e,n);if(r.length)return r.unshift(t),r}return[]}var dt=class{value;children;constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function Lo(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var Zc=class extends qc{snapshot;constructor(t,n){super(t),this.snapshot=n,Hh(this,t)}toString(){return this.snapshot.toString()}};function C_(e){let t=dx(e),n=new Oe([new Fr("",{})]),r=new Oe({}),o=new Oe({}),i=new Oe({}),s=new Oe(""),a=new Vr(n,r,i,s,o,H,e,t.root);return a.snapshot=t.root,new Zc(new dt(a,[]),t)}function dx(e){let t={},n={},r={},i=new jo([],t,r,"",n,H,e,null,{});return new Qc("",new dt(i,[]))}var Vr=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(U(l=>l[cs]))??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(U(t=>Uo(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(U(t=>Uo(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Yc(e,t,n="emptyOnly"){let r,{routeConfig:o}=e;return t!==null&&(n==="always"||o?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:w(w({},t.params),e.params),data:w(w({},t.data),e.data),resolve:w(w(w(w({},e.data),t.data),o?.data),e._resolvedData)}:r={params:w({},e.params),data:w({},e.data),resolve:w(w({},e.data),e._resolvedData??{})},o&&w_(o)&&(r.resolve[cs]=o.title),r}var jo=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[cs]}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??=Uo(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Uo(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}')`}},Qc=class extends qc{url;constructor(t,n){super(n),this.url=t,Hh(this,n)}toString(){return E_(this._root)}};function Hh(e,t){t.value._routerState=e,t.children.forEach(n=>Hh(e,n))}function E_(e){let t=e.children.length>0?` { ${e.children.map(E_).join(", ")} } `:"";return`${e.value}${t}`}function ph(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,on(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),on(t.params,n.params)||e.paramsSubject.next(n.params),LS(t.url,n.url)||e.urlSubject.next(n.url),on(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function kh(e,t){let n=on(e.params,t.params)&&US(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||kh(e.parent,t.parent))}function w_(e){return typeof e.title=="string"||e.title===null}var fx=new x(""),b_=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=H;activateEvents=new re;deactivateEvents=new re;attachEvents=new re;detachEvents=new re;routerOutletData=yy(void 0);parentContexts=_(ls);location=_(Cn);changeDetector=_(Ao);inputBinder=_(el,{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 Ph(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:[tn]})}return e})(),Ph=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===Vr?this.route:t===ls?this.childContexts:t===fx?this.outletData:this.parent.get(t,n)}},el=new x("");var I_=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=Ye({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,o){r&1&&rt(0,"router-outlet")},dependencies:[b_],encapsulation:2})}return e})();function $h(e){let t=e.children&&e.children.map($h),n=t?q(w({},e),{children:t}):w({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==H&&(n.component=I_),n}function hx(e,t,n){let r=os(e,t._root,n?n._root:void 0);return new Zc(r,t)}function os(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let o=px(e,t,n);return new dt(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=>os(e,a)),s}}let r=gx(t.value),o=t.children.map(i=>os(e,i));return new dt(r,o)}}function px(e,t,n){return t.children.map(r=>{for(let o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return os(e,r,o);return os(e,r)})}function gx(e){return new Vr(new Oe(e.url),new Oe(e.params),new Oe(e.queryParams),new Oe(e.fragment),new Oe(e.data),e.outlet,e.component,e)}var is=class{redirectTo;navigationBehaviorOptions;constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},M_="ngNavigationCancelingError";function Kc(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=$o(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=S_(!1,it.Redirect);return o.url=n,o.navigationBehaviorOptions=r,o}function S_(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[M_]=!0,n.cancellationCode=t,n}function mx(e){return x_(e)&&$o(e.url)}function x_(e){return!!e&&e[M_]}var vx=(e,t,n,r)=>U(o=>(new Fh(t,o.targetRouterState,o.currentRouterState,n,r).activate(e),o)),Fh=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),ph(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let o=Lo(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=Lo(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=Lo(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=Lo(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new Ah(i.value.snapshot))}),t.children.length&&this.forwardEvent(new xh(t.value.snapshot))}activateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(ph(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),ph(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)}},Xc=class{path;route;constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},Bo=class{component;route;constructor(t,n){this.component=t,this.route=n}};function yx(e,t,n){let r=e._root,o=t?t._root:null;return Ki(r,o,n,[r.value])}function _x(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function Zo(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!Nu(e)?e:t.get(e):r}function Ki(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=Lo(t);return e.children.forEach(s=>{Dx(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>es(a,n.getContext(s),o)),o}function Dx(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=Cx(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new Xc(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?Ki(e,t,a?a.children:null,r,o):Ki(e,t,n,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Bo(a.outlet.component,s))}else s&&es(t,a,o),o.canActivateChecks.push(new Xc(r)),i.component?Ki(e,null,a?a.children:null,r,o):Ki(e,null,n,r,o);return o}function Cx(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!Lr(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Lr(e.url,t.url)||!on(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!kh(e,t)||!on(e.queryParams,t.queryParams);case"paramsChange":default:return!kh(e,t)}}function es(e,t,n){let r=Lo(e),o=e.value;Object.entries(r).forEach(([i,s])=>{o.component?t?es(s,t.children.getContext(i),n):es(s,null,n):es(s,t,n)}),o.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new Bo(t.outlet.component,o)):n.canDeactivateChecks.push(new Bo(null,o)):n.canDeactivateChecks.push(new Bo(null,o))}function us(e){return typeof e=="function"}function Ex(e){return typeof e=="boolean"}function wx(e){return e&&us(e.canLoad)}function bx(e){return e&&us(e.canActivate)}function Ix(e){return e&&us(e.canActivateChild)}function Mx(e){return e&&us(e.canDeactivate)}function Sx(e){return e&&us(e.canMatch)}function T_(e){return e instanceof un||e?.name==="EmptyError"}var jc=Symbol("INITIAL_VALUE");function Wo(){return He(e=>ua(e.map(t=>t.pipe(dn(1),gu(jc)))).pipe(U(t=>{for(let n of t)if(n!==!0){if(n===jc)return jc;if(n===!1||xx(n))return n}return!0}),tt(t=>t!==jc),dn(1)))}function xx(e){return $o(e)||e instanceof is}function Tx(e,t){return Ce(n=>{let{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return s.length===0&&i.length===0?P(q(w({},n),{guardsResult:!0})):Ax(s,r,o,e).pipe(Ce(a=>a&&Ex(a)?Nx(r,i,e,t):P(a)),U(a=>q(w({},n),{guardsResult:a})))})}function Ax(e,t,n,r){return he(e).pipe(Ce(o=>Fx(o.component,o.route,n,t,r)),fn(o=>o!==!0,!0))}function Nx(e,t,n,r){return he(t).pipe(kn(o=>io(Ox(o.route.parent,r),Rx(o.route,r),Px(e,o.path,n),kx(e,o.route,n))),fn(o=>o!==!0,!0))}function Rx(e,t){return e!==null&&t&&t(new Th(e)),P(!0)}function Ox(e,t){return e!==null&&t&&t(new Sh(e)),P(!0)}function kx(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return P(!0);let o=r.map(i=>ui(()=>{let s=qo(t)??n,a=Zo(i,s),c=bx(a)?a.canActivate(t,e):Pe(s,()=>a(t,e));return Sn(c).pipe(fn())}));return P(o).pipe(Wo())}function Px(e,t,n){let r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>_x(s)).filter(s=>s!==null).map(s=>ui(()=>{let a=s.guards.map(c=>{let l=qo(s.node)??n,u=Zo(c,l),d=Ix(u)?u.canActivateChild(r,e):Pe(l,()=>u(r,e));return Sn(d).pipe(fn())});return P(a).pipe(Wo())}));return P(i).pipe(Wo())}function Fx(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=qo(t)??o,l=Zo(a,c),u=Mx(l)?l.canDeactivate(e,t,n,r):Pe(c,()=>l(e,t,n,r));return Sn(u).pipe(fn())});return P(s).pipe(Wo())}function Lx(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=Zo(s,e),c=wx(a)?a.canLoad(t,n):Pe(e,()=>a(t,n));return Sn(c)});return P(i).pipe(Wo(),A_(r))}function A_(e){return au(xe(t=>{if(typeof t!="boolean")throw Kc(e,t)}),U(t=>t===!0))}function Vx(e,t,n,r){let o=t.canMatch;if(!o||o.length===0)return P(!0);let i=o.map(s=>{let a=Zo(s,e),c=Sx(a)?a.canMatch(t,n):Pe(e,()=>a(t,n));return Sn(c)});return P(i).pipe(Wo(),A_(r))}var ss=class{segmentGroup;constructor(t){this.segmentGroup=t||null}},as=class extends Error{urlTree;constructor(t){super(),this.urlTree=t}};function Fo(e){return oo(new ss(e))}function jx(e){return oo(new S(4e3,!1))}function Bx(e){return oo(S_(!1,it.GuardRejected))}var Lh=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[H])return jx(`${t.redirectTo}`);o=o.children[H]}}applyRedirectCommands(t,n,r,o,i){return Ux(n,o,i).pipe(U(s=>{if(s instanceof Mn)throw new as(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),t,r);if(s[0]==="/")throw new as(a);return a}))}applyRedirectCreateUrlTree(t,n,r,o){let i=this.createSegmentGroup(t,n.root,r,o);return new Mn(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 ie(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 Ux(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 Sn(Pe(n,()=>r({params:l,data:u,queryParams:o,fragment:i,routeConfig:s,url:a,outlet:c,title:d})))}var Vh={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Hx(e,t,n,r,o){let i=N_(e,t,n);return i.matched?(r=lx(t,r),Vx(r,t,n,o).pipe(U(s=>s===!0?i:w({},Vh)))):P(i)}function N_(e,t,n){if(t.path==="**")return $x(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?w({},Vh):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let o=(t.matcher||FS)(n,e,t);if(!o)return w({},Vh);let i={};Object.entries(o.posParams??{}).forEach(([a,c])=>{i[a]=c.path});let s=o.consumed.length>0?w(w({},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 $x(e){return{matched:!0,parameters:e.length>0?c_(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function o_(e,t,n,r){return n.length>0&&Wx(e,n,r)?{segmentGroup:new ie(t,Gx(r,new ie(n,e.children))),slicedSegments:[]}:n.length===0&&qx(e,n,r)?{segmentGroup:new ie(e.segments,zx(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new ie(e.segments,e.children),slicedSegments:n}}function zx(e,t,n,r){let o={};for(let i of n)if(tl(e,t,i)&&!r[jt(i)]){let s=new ie([],{});o[jt(i)]=s}return w(w({},r),o)}function Gx(e,t){let n={};n[H]=t;for(let r of e)if(r.path===""&&jt(r)!==H){let o=new ie([],{});n[jt(r)]=o}return n}function Wx(e,t,n){return n.some(r=>tl(e,t,r)&&jt(r)!==H)}function qx(e,t,n){return n.some(r=>tl(e,t,r))}function tl(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function Zx(e,t,n){return t.length===0&&!e.children[n]}var jh=class{};function Yx(e,t,n,r,o,i,s="emptyOnly"){return new Bh(e,t,n,r,o,s,i).recognize()}var Qx=31,Bh=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 Lh(this.urlSerializer,this.urlTree)}noMatchError(t){return new S(4002,`'${t.segmentGroup}'`)}recognize(){let t=o_(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(t).pipe(U(({children:n,rootSnapshot:r})=>{let o=new dt(r,n),i=new Qc("",o),s=tx(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 jo([],Object.freeze({}),Object.freeze(w({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),H,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,t,H,n).pipe(U(r=>({children:r,rootSnapshot:n})),On(r=>{if(r instanceof as)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof ss?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(U(s=>s instanceof dt?[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 he(i).pipe(kn(s=>{let a=r.children[s],c=ux(n,s);return this.processSegmentGroup(t,c,a,s,o)}),pu((s,a)=>(s.push(...a),s)),Pn(null),hu(),Ce(s=>{if(s===null)return Fo(r);let a=R_(s);return Kx(a),P(a)}))}processSegment(t,n,r,o,i,s,a){return he(n).pipe(kn(c=>this.processSegmentAgainstRoute(c._injector??t,n,c,r,o,i,s,a).pipe(On(l=>{if(l instanceof ss)return P(null);throw l}))),fn(c=>!!c),On(c=>{if(T_(c))return Zx(r,o,i)?P(new jh):Fo(r);throw c}))}processSegmentAgainstRoute(t,n,r,o,i,s,a,c){return jt(r)!==s&&(s===H||!tl(o,i,r))?Fo(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):Fo(o)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s,a){let{matched:c,parameters:l,consumedSegments:u,positionalParamSegments:d,remainingSegments:h}=N_(n,o,i);if(!c)return Fo(n);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Qx&&(this.allowRedirects=!1));let f=new jo(i,l,Object.freeze(w({},this.urlTree.queryParams)),this.urlTree.fragment,i_(o),jt(o),o.component??o._loadedComponent??null,o,s_(o)),v=Yc(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)),Ce(g=>this.processSegment(t,r,n,g.concat(h),s,!1,a)))}matchSegmentAgainstRoute(t,n,r,o,i,s){let a=Hx(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 jo(h,d,Object.freeze(w({},this.urlTree.queryParams)),this.urlTree.fragment,i_(r),jt(r),r.component??r._loadedComponent??null,r,s_(r)),m=Yc(v,s,this.paramsInheritanceStrategy);v.params=Object.freeze(m.params),v.data=Object.freeze(m.data);let{segmentGroup:g,slicedSegments:p}=o_(n,h,f,l);if(p.length===0&&g.hasChildren())return this.processChildren(u,l,g,v).pipe(U(T=>new dt(v,T)));if(l.length===0&&p.length===0)return P(new dt(v,[]));let C=jt(r)===i;return this.processSegment(u,l,g,p,C?H:i,!0,v).pipe(U(T=>new dt(v,T instanceof dt?[T]:[])))}))):Fo(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}):Lx(t,n,r,this.urlSerializer).pipe(Ce(o=>o?this.configLoader.loadChildren(t,n).pipe(xe(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):Bx(n))):P({routes:[],injector:t})}};function Kx(e){e.sort((t,n)=>t.value.outlet===H?-1:n.value.outlet===H?1:t.value.outlet.localeCompare(n.value.outlet))}function Xx(e){let t=e.value.routeConfig;return t&&t.path===""}function R_(e){let t=[],n=new Set;for(let r of e){if(!Xx(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=R_(r.children);t.push(new dt(r.value,o))}return t.filter(r=>!n.has(r))}function i_(e){return e.data||{}}function s_(e){return e.resolve||{}}function Jx(e,t,n,r,o,i){return Ce(s=>Yx(e,t,n,r,s.extractedUrl,o,i).pipe(U(({state:a,tree:c})=>q(w({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function eT(e,t){return Ce(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 O_(c))s.add(l);let a=0;return he(s).pipe(kn(c=>i.has(c)?tT(c,r,e,t):(c.data=Yc(c,c.parent,e).resolve,P(void 0))),xe(()=>a++),so(1),Ce(c=>a===s.size?P(n):Je))})}function O_(e){let t=e.children.map(n=>O_(n)).flat();return[e,...t]}function tT(e,t,n,r){let o=e.routeConfig,i=e._resolve;return o?.title!==void 0&&!w_(o)&&(i[cs]=o.title),ui(()=>(e.data=Yc(e,e.parent,n).resolve,nT(i,e,t,r).pipe(U(s=>(e._resolvedData=s,e.data=w(w({},e.data),s),null)))))}function nT(e,t,n,r){let o=vh(e);if(o.length===0)return P({});let i={};return he(o).pipe(Ce(s=>rT(e[s],t,n,r).pipe(fn(),xe(a=>{if(a instanceof is)throw Kc(new Ho,a);i[s]=a}))),so(1),U(()=>i),On(s=>T_(s)?Je:oo(s)))}function rT(e,t,n,r){let o=qo(t)??r,i=Zo(e,o),s=i.resolve?i.resolve(t,n):Pe(o,()=>i(t,n));return Sn(s)}function gh(e){return He(t=>{let n=e(t);return n?he(n).pipe(U(()=>t)):P(t)})}var k_=(()=>{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===H);return r}getResolvedTitleForRoute(n){return n.data[cs]}static \u0275fac=function(r){return new(r||e)};static \u0275prov=A({token:e,factory:()=>_(oT),providedIn:"root"})}return e})(),oT=(()=>{class e extends k_{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)(O(Jy))};static \u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),nl=new x("",{providedIn:"root",factory:()=>({})}),rl=new x(""),P_=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=_(Uf);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=Sn(Pe(n,()=>r.loadComponent())).pipe(U(F_),He(L_),xe(s=>{this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s}),Fn(()=>{this.componentLoaders.delete(r)})),i=new ro(o,()=>new ve).pipe(no());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=iT(r,this.compiler,n,this.onLoadEndListener).pipe(Fn(()=>{this.childrenLoaders.delete(r)})),s=new ro(i,()=>new ve).pipe(no());return this.childrenLoaders.set(r,s),s}static \u0275fac=function(r){return new(r||e)};static \u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function iT(e,t,n,r){return Sn(Pe(n,()=>e.loadChildren())).pipe(U(F_),He(L_),Ce(o=>o instanceof mc||Array.isArray(o)?P(o):he(t.compileModuleAsync(o))),U(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(rl,[],{optional:!0,self:!0}).flat()),{routes:s.map($h),injector:i}}))}function sT(e){return e&&typeof e=="object"&&"default"in e}function F_(e){return sT(e)?e.default:e}function L_(e){return P(e)}var zh=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=A({token:e,factory:()=>_(aT),providedIn:"root"})}return e})(),aT=(()=>{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=A({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),V_=new x("");var j_=new x(""),B_=(()=>{class e{currentNavigation=_n(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=null;events=new ve;transitionAbortWithErrorSubject=new ve;configLoader=_(P_);environmentInjector=_(Ee);destroyRef=_(Kt);urlSerializer=_(Jc);rootContexts=_(ls);location=_(No);inputBindingEnabled=_(el,{optional:!0})!==null;titleStrategy=_(k_);options=_(nl,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=_(zh);createViewTransition=_(V_,{optional:!0});navigationErrorHandler=_(j_,{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 Ih(o)),r=o=>this.events.next(new Mh(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(w({},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 Oe(null),this.transitions.pipe(tt(r=>r!==null),He(r=>{let o=!1;return P(r).pipe(He(i=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",it.SupersededByNewNavigation),Je;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(w({},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 er(i.id,this.urlSerializer.serialize(i.rawUrl),"",Gc.IgnoredSameUrlNavigation)),i.resolve(!1),Je;if(this.urlHandlingStrategy.shouldProcessUrl(i.rawUrl))return P(i).pipe(He(c=>(this.events.next(new zo(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),c.id!==this.navigationId?Je:Promise.resolve(c))),Jx(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 Wc(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 zo(c,this.urlSerializer.serialize(l),u,d);this.events.next(f);let v=C_(this.rootComponentType).snapshot;return this.currentTransition=r=q(w({},i),{targetSnapshot:v,urlAfterRedirects:l,extras:q(w({},h),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(m=>(m.finalUrl=l,m)),P(r)}else return this.events.next(new er(i.id,this.urlSerializer.serialize(i.extractedUrl),"",Gc.IgnoredByUrlHandlingStrategy)),i.resolve(!1),Je}),xe(i=>{let s=new Ch(i.id,this.urlSerializer.serialize(i.extractedUrl),this.urlSerializer.serialize(i.urlAfterRedirects),i.targetSnapshot);this.events.next(s)}),U(i=>(this.currentTransition=r=q(w({},i),{guards:yx(i.targetSnapshot,i.currentSnapshot,this.rootContexts)}),r)),Tx(this.environmentInjector,i=>this.events.next(i)),xe(i=>{if(r.guardsResult=i.guardsResult,i.guardsResult&&typeof i.guardsResult!="boolean")throw Kc(this.urlSerializer,i.guardsResult);let s=new Eh(i.id,this.urlSerializer.serialize(i.extractedUrl),this.urlSerializer.serialize(i.urlAfterRedirects),i.targetSnapshot,!!i.guardsResult);this.events.next(s)}),tt(i=>i.guardsResult?!0:(this.cancelNavigationTransition(i,"",it.GuardRejected),!1)),gh(i=>{if(i.guards.canActivateChecks.length!==0)return P(i).pipe(xe(s=>{let a=new wh(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(eT(this.paramsInheritanceStrategy,this.environmentInjector),xe({next:()=>a=!0,complete:()=>{a||this.cancelNavigationTransition(s,"",it.NoDataFromResolver)}}))}),xe(s=>{let a=new bh(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}))}),gh(i=>{let s=a=>{let c=[];if(a.routeConfig?.loadComponent){let l=qo(a)??this.environmentInjector;c.push(this.configLoader.loadComponent(l,a.routeConfig).pipe(xe(u=>{a.component=u}),U(()=>{})))}for(let l of a.children)c.push(...s(l));return c};return ua(s(i.targetSnapshot.root)).pipe(Pn(null),dn(1))}),gh(()=>this.afterPreactivation()),He(()=>{let{currentSnapshot:i,targetSnapshot:s}=r,a=this.createViewTransition?.(this.environmentInjector,i.root,s.root);return a?he(a).pipe(U(()=>r)):P(r)}),U(i=>{let s=hx(n.routeReuseStrategy,i.targetSnapshot,i.currentRouterState);return this.currentTransition=r=q(w({},i),{targetRouterState:s}),this.currentNavigation.update(a=>(a.targetRouterState=s,a)),r}),xe(()=>{this.events.next(new rs)}),vx(this.rootContexts,n.routeReuseStrategy,i=>this.events.next(i),this.inputBindingEnabled),dn(1),fa(new G(i=>{let s=r.abortController.signal,a=()=>i.next();return s.addEventListener("abort",a),()=>s.removeEventListener("abort",a)}).pipe(tt(()=>!o&&!r.targetRouterState),xe(()=>{this.cancelNavigationTransition(r,r.abortController.signal.reason+"",it.Aborted)}))),xe({next:i=>{o=!0,this.lastSuccessfulNavigation=We(this.currentNavigation),this.events.next(new Jn(i.id,this.urlSerializer.serialize(i.extractedUrl),this.urlSerializer.serialize(i.urlAfterRedirects))),this.titleStrategy?.updateTitle(i.targetRouterState.snapshot),i.resolve(!0)},complete:()=>{o=!0}}),fa(this.transitionAbortWithErrorSubject.pipe(xe(i=>{throw i}))),Fn(()=>{o||this.cancelNavigationTransition(r,"",it.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),On(i=>{if(this.destroyed)return r.resolve(!1),Je;if(o=!0,x_(i))this.events.next(new In(r.id,this.urlSerializer.serialize(r.extractedUrl),i.message,i.cancellationCode)),mx(i)?this.events.next(new Go(i.url,i.navigationBehaviorOptions)):r.resolve(!1);else{let s=new ns(r.id,this.urlSerializer.serialize(r.extractedUrl),i,r.targetSnapshot??void 0);try{let a=Pe(this.environmentInjector,()=>this.navigationErrorHandler?.(s));if(a instanceof is){let{message:c,cancellationCode:l}=Kc(this.urlSerializer,a);this.events.next(new In(r.id,this.urlSerializer.serialize(r.extractedUrl),c,l)),this.events.next(new Go(a.redirectTo,a.navigationBehaviorOptions))}else throw this.events.next(s),i}catch(a){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(a)}}return Je}))}))}cancelNavigationTransition(n,r,o){let i=new In(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=A({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function cT(e){return e!==Ji}var lT=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=A({token:e,factory:()=>_(uT),providedIn:"root"})}return e})(),Uh=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},uT=(()=>{class e extends Uh{static \u0275fac=(()=>{let n;return function(o){return(n||(n=Zn(e)))(o||e)}})();static \u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),U_=(()=>{class e{urlSerializer=_(Jc);options=_(nl,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=_(No);urlHandlingStrategy=_(zh);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Mn;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 Mn?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=C_(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=A({token:e,factory:()=>_(dT),providedIn:"root"})}return e})(),dT=(()=>{class e extends U_{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 zo?this.updateStateMemento():n instanceof er?this.commitTransition(r):n instanceof Wc?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof rs?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof In&&n.code!==it.SupersededByNewNavigation&&n.code!==it.Redirect?this.restoreHistory(r):n instanceof ns?this.restoreHistory(r,!0):n instanceof Jn&&(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=w(w({},s),this.generateNgRouterState(o,a));this.location.replaceState(n,"",c)}else{let a=w(w({},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=Zn(e)))(o||e)}})();static \u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function H_(e,t){e.events.pipe(tt(n=>n instanceof Jn||n instanceof In||n instanceof ns||n instanceof er),U(n=>n instanceof Jn||n instanceof er?0:(n instanceof In?n.code===it.Redirect||n.code===it.SupersededByNewNavigation:!1)?2:1),tt(n=>n!==2),dn(1)).subscribe(()=>{t()})}var fT={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},hT={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Gh=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=_(Rf);stateManager=_(U_);options=_(nl,{optional:!0})||{};pendingTasks=_(Xt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=_(B_);urlSerializer=_(Jc);location=_(No);urlHandlingStrategy=_(zh);injector=_(Ee);_events=new ve;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=_(lT);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=_(rl,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!_(el,{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 me;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 In&&r.code!==it.Redirect&&r.code!==it.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Jn)this.navigated=!0;else if(r instanceof Go){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),c=w({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||cT(o.source)},s);this.scheduleNavigation(a,Ji,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}cx(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),Ji,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=w({},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(ut)(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($h),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=w(w({},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=v_(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root}return y_(d,n,u,l??null)}navigateByUrl(n,r={skipLocationChange:!1}){let o=$o(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,Ji,null,r)}navigate(n,r={skipLocationChange:!1}){return pT(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=w({},fT):r===!1?o=w({},hT):o=r,$o(n))return e_(this.currentUrlTree,n,o);let i=this.parseUrl(n);return e_(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 H_(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=A({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function pT(e){for(let t=0;t<e.length;t++)if(e[t]==null)throw new S(4008,!1)}var gT=new x("");function Wh(e,...t){return uo([{provide:rl,multi:!0,useValue:e},[],{provide:Vr,useFactory:mT,deps:[Gh]},{provide:_c,multi:!0,useFactory:vT},t.map(n=>n.\u0275providers)])}function mT(e){return e.routerState.root}function vT(){let e=_(ft);return t=>{let n=e.get(wn);if(t!==n.components[0])return;let r=e.get(Gh),o=e.get(yT);e.get(_T)===1&&r.initialNavigation(),e.get(DT,null,{optional:!0})?.setUpPreloading(),e.get(gT,null,{optional:!0})?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var yT=new x("",{factory:()=>new ve}),_T=new x("",{providedIn:"root",factory:()=>1});var DT=new x("");var $_=[];var z_={providers:[Wh($_),Lc()]};var J_=(()=>{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)(te(Tr),te(Lt))};static \u0275dir=Ge({type:e})}return e})(),Kh=(()=>{class e extends J_{static \u0275fac=(()=>{let n;return function(o){return(n||(n=Zn(e)))(o||e)}})();static \u0275dir=Ge({type:e,features:[En]})}return e})(),cl=new x("");var ET={provide:cl,useExisting:mn(()=>ll),multi:!0};function wT(){let e=Ct()?Ct().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var bT=new x(""),ll=(()=>{class e extends J_{_compositionMode;_composing=!1;constructor(n,r,o){super(n,r),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!wT())}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)(te(Tr),te(Lt),te(bT,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&&J("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:[xo([ET]),En]})}return e})();var IT=new x(""),MT=new x("");function eD(e){return e!=null}function tD(e){return Yn(e)?he(e):e}function nD(e){let t={};return e.forEach(n=>{t=n!=null?w(w({},t),n):t}),Object.keys(t).length===0?null:t}function rD(e,t){return t.map(n=>n(e))}function ST(e){return!e.validate}function oD(e){return e.map(t=>ST(t)?t:n=>t.validate(n))}function xT(e){if(!e)return null;let t=e.filter(eD);return t.length==0?null:function(n){return nD(rD(n,t))}}function iD(e){return e!=null?xT(oD(e)):null}function TT(e){if(!e)return null;let t=e.filter(eD);return t.length==0?null:function(n){let r=rD(n,t).map(tD);return fu(r).pipe(U(nD))}}function sD(e){return e!=null?TT(oD(e)):null}function G_(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function AT(e){return e._rawValidators}function NT(e){return e._rawAsyncValidators}function qh(e){return e?Array.isArray(e)?e:[e]:[]}function il(e,t){return Array.isArray(e)?e.includes(t):e===t}function W_(e,t){let n=qh(t);return qh(e).forEach(o=>{il(n,o)||n.push(o)}),n}function q_(e,t){return qh(t).filter(n=>!il(e,n))}var sl=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=iD(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=sD(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}},Zh=class extends sl{name;get formDirective(){return null}get path(){return null}},gs=class extends sl{_parent=null;name=null;valueAccessor=null},Yh=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}},RT={"[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"},H5=q(w({},RT),{"[class.ng-submitted]":"isSubmitted"}),aD=(()=>{class e extends Yh{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(te(gs,2))};static \u0275dir=Ge({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&Qn("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:[En]})}return e})();var ds="VALID",ol="INVALID",Yo="PENDING",fs="DISABLED",Ko=class{},al=class extends Ko{value;source;constructor(t,n){super(),this.value=t,this.source=n}},hs=class extends Ko{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},ps=class extends Ko{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},Qo=class extends Ko{status;source;constructor(t,n){super(),this.status=t,this.source=n}};function OT(e){return(ul(e)?e.validators:e)||null}function kT(e){return Array.isArray(e)?iD(e):e||null}function PT(e,t){return(ul(t)?t.asyncValidators:e)||null}function FT(e){return Array.isArray(e)?sD(e):e||null}function ul(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var Qh=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=Vi(()=>this.statusReactive());statusReactive=_n(void 0);get valid(){return this.status===ds}get invalid(){return this.status===ol}get pending(){return this.status==Yo}get disabled(){return this.status===fs}get enabled(){return this.status!==fs}errors;get pristine(){return We(this.pristineReactive)}set pristine(t){We(()=>this.pristineReactive.set(t))}_pristine=Vi(()=>this.pristineReactive());pristineReactive=_n(!0);get dirty(){return!this.pristine}get touched(){return We(this.touchedReactive)}set touched(t){We(()=>this.touchedReactive.set(t))}_touched=Vi(()=>this.touchedReactive());touchedReactive=_n(!1);get untouched(){return!this.touched}_events=new ve;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(W_(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(W_(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(q_(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(q_(t,this._rawAsyncValidators))}hasValidator(t){return il(this._rawValidators,t)}hasAsyncValidator(t){return il(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(w({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new ps(!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 ps(!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(w({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new hs(!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 hs(!0,r))}markAsPending(t={}){this.status=Yo;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Qo(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(q(w({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=fs,this.errors=null,this._forEachChild(o=>{o.disable(q(w({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new al(this.value,r)),this._events.next(new Qo(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(q(w({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=ds,this._forEachChild(r=>{r.enable(q(w({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(q(w({},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===ds||this.status===Yo)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new al(this.value,n)),this._events.next(new Qo(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(q(w({},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()?fs:ds}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=Yo,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1,shouldHaveEmitted:t!==!1};let r=tD(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 Qo(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new re,this.statusChanges=new re}_calculateStatus(){return this._allControlsDisabled()?fs:this.errors?ol:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Yo)?Yo:this._anyControlsHaveStatus(ol)?ol:ds}_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 hs(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new ps(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){ul(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=kT(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=FT(this._rawAsyncValidators)}};var cD=new x("",{providedIn:"root",factory:()=>Xh}),Xh="always";function LT(e,t){return[...t.path,e]}function VT(e,t,n=Xh){BT(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),UT(e,t),$T(e,t),HT(e,t),jT(e,t)}function Z_(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function jT(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function BT(e,t){let n=AT(e);t.validator!==null?e.setValidators(G_(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=NT(e);t.asyncValidator!==null?e.setAsyncValidators(G_(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let o=()=>e.updateValueAndValidity();Z_(t._rawValidators,o),Z_(t._rawAsyncValidators,o)}function UT(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&lD(e,t)})}function HT(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&lD(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function lD(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function $T(e,t){let n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function zT(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function GT(e){return Object.getPrototypeOf(e.constructor)===Kh}function WT(e,t){if(!t)return null;Array.isArray(t);let n,r,o;return t.forEach(i=>{i.constructor===ll?n=i:GT(i)?r=i:o=i}),o||r||n||null}function Y_(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Q_(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var qT=class extends Qh{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,n,r){super(OT(n),PT(r,n)),this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ul(n)&&(n.nonNullable||n.initialValueIsDefault)&&(Q_(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){Y_(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Y_(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){Q_(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 ZT={provide:gs,useExisting:mn(()=>Jh)},K_=Promise.resolve(),Jh=(()=>{class e extends gs{_changeDetectorRef;callSetDisabledState;control=new qT;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=WT(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),zT(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(){VT(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){K_.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&Zf(r);K_.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?LT(n,this._parent):[n]}static \u0275fac=function(r){return new(r||e)(te(Zh,9),te(IT,10),te(MT,10),te(cl,10),te(Ao,8),te(cD,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:[xo([ZT]),En,tn]})}return e})();var YT={provide:cl,useExisting:mn(()=>dl),multi:!0};function uD(e,t){return e==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function QT(e){return e.split(":")[0]}var dl=(()=>{class e extends Kh{value;_optionMap=new Map;_idCounter=0;set compareWith(n){this._compareWith=n}_compareWith=Object.is;appRefInjector=_(wn).injector;destroyRef=_(Kt);cdr=_(Ao);_queuedWrite=!1;_writeValueAfterRender(){this._queuedWrite||this.appRefInjector.destroyed||(this._queuedWrite=!0,yc({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=uD(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=QT(n);return this._optionMap.has(r)?this._optionMap.get(r):n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=Zn(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&&J("change",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[xo([YT]),En]})}return e})(),dD=(()=>{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(uD(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)(te(Lt),te(Tr),te(dl,9))};static \u0275dir=Ge({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})(),KT={provide:cl,useExisting:mn(()=>fD),multi:!0};function X_(e,t){return e==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${e}: ${t}`.slice(0,50))}function XT(e){return e.split(":")[0]}var fD=(()=>{class e extends Kh{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=XT(n);return this._optionMap.has(r)?this._optionMap.get(r)._value:n}static \u0275fac=(()=>{let n;return function(o){return(n||(n=Zn(e)))(o||e)}})();static \u0275dir=Ge({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,o){r&1&&J("change",function(s){return o.onChange(s.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[xo([KT]),En]})}return e})(),hD=(()=>{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(X_(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(X_(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)(te(Lt),te(Tr),te(fD,9))};static \u0275dir=Ge({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return e})();var JT=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=nn({type:e});static \u0275inj=Nt({})}return e})();var pD=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:cD,useValue:n.callSetDisabledState??Xh}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=nn({type:e});static \u0275inj=Nt({imports:[JT]})}return e})();function tA(e,t){if(e&1&&(M(0,"span"),k(1),I()),e&2){let n=ae().$implicit;b(),Me(" Branch: ",n.branches[0]," ")}}function nA(e,t){if(e&1&&(M(0,"span"),k(1),I()),e&2){let n=ae().$implicit;b(),Me(" Tag: ",n.tags[0]," ")}}function rA(e,t){if(e&1){let n=Dt();M(0,"div",3),J("click",function(){let o=we(n).$implicit,i=ae();return be(i.onCommitClick(o))}),M(1,"div",4)(2,"div",5)(3,"div",6)(4,"span",7),k(5),I(),M(6,"span",8),k(7),I(),M(8,"span",9),k(9),I()(),M(10,"h3",10),k(11),I(),M(12,"div",11)(13,"span"),k(14),I(),De(15,tA,2,1,"span",12)(16,nA,2,1,"span",12),I()(),M(17,"div",13)(18,"button",14),J("click",function(o){let i=we(n).$implicit;return ae().onCommitClick(i),be(o.stopPropagation())}),k(19," View "),I()()()()}if(e&2){let n=t.$implicit,r=ae();oe("background-color",r.getColor("background","white"))("border-color",r.getColor("border","#e5e7eb"))("color",r.getColor("text","#111827")),b(4),oe("color",r.getColor("text","#6b7280")),b(),Ae(n.hash.substring(0,8)),b(),oe("color",r.getColor("text","#374151")),b(),Ae(n.author),b(),oe("color",r.getColor("text","#6b7280")),b(),Ae(r.formatDate(n.date)),b(),oe("color",r.getColor("text","#111827")),b(),Ae(n.message),b(),oe("color",r.getColor("text","#6b7280")),b(2),Me("",n.files.length," files changed"),b(),X("ngIf",n.branches.length>0),b(),X("ngIf",n.tags.length>0),b(2),oe("background-color",r.getColor("primary","#3b82f6"))("color",r.getColor("text","white"))}}function oA(e,t){if(e&1&&(M(0,"div",15),k(1," No commits found matching your search criteria. "),I()),e&2){let n=ae();oe("color",n.getColor("text","#6b7280"))("text-align","center")("padding","2rem")}}var fl=class e{commits=[];colorPalette;commitClick=new re;observer;ngOnInit(){this.setupDarkModeObserver()}ngOnDestroy(){this.observer&&this.observer.disconnect()}onCommitClick(t){this.commitClick.emit(t)}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=Ye({type:e,selectors:[["app-commit-list"]],inputs:{commits:"commits",colorPalette:"colorPalette"},outputs:{commitClick:"commitClick"},decls:3,vars:6,consts:[[1,"commit-list"],["class","commit-item",3,"background-color","border-color","color","click",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"],[1,"no-results"]],template:function(n,r){n&1&&(M(0,"div",0),De(1,rA,20,27,"div",1)(2,oA,2,6,"div",2),I()),n&2&&(oe("background-color",r.getBackgroundColor())("min-height","100vh"),b(),X("ngForOf",r.commits),b(),X("ngIf",r.commits.length===0))},dependencies:[ot,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 iA={value:()=>{}};function mD(){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 hl(n)}function hl(e){this._=e}function sA(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}})}hl.prototype=mD.prototype={constructor:hl,on:function(e,t){var n=this._,r=sA(e+"",n),o,i=-1,s=r.length;if(arguments.length<2){for(;++i<s;)if((o=(e=r[i]).type)&&(o=aA(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]=gD(n[o],e.name,t);else if(t==null)for(o in n)n[o]=gD(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 hl(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 aA(e,t){for(var n=0,r=e.length,o;n<r;++n)if((o=e[n]).name===t)return o.value}function gD(e,t,n){for(var r=0,o=e.length;r<o;++r)if(e[r].name===t){e[r]=iA,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var jr=mD;var pl="http://www.w3.org/1999/xhtml",ep={svg:"http://www.w3.org/2000/svg",xhtml:pl,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function xn(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),ep.hasOwnProperty(t)?{space:ep[t],local:e}:e}function cA(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===pl&&t.documentElement.namespaceURI===pl?t.createElement(e):t.createElementNS(n,e)}}function lA(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function gl(e){var t=xn(e);return(t.local?lA:cA)(t)}function uA(){}function Br(e){return e==null?uA:function(){return this.querySelector(e)}}function vD(e){typeof e!="function"&&(e=Br(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 pe(r,this._parents)}function tp(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function dA(){return[]}function ms(e){return e==null?dA:function(){return this.querySelectorAll(e)}}function fA(e){return function(){return tp(e.apply(this,arguments))}}function yD(e){typeof e=="function"?e=fA(e):e=ms(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 pe(r,o)}function vs(e){return function(){return this.matches(e)}}function ml(e){return function(t){return t.matches(e)}}var hA=Array.prototype.find;function pA(e){return function(){return hA.call(this.children,e)}}function gA(){return this.firstElementChild}function _D(e){return this.select(e==null?gA:pA(typeof e=="function"?e:ml(e)))}var mA=Array.prototype.filter;function vA(){return Array.from(this.children)}function yA(e){return function(){return mA.call(this.children,e)}}function DD(e){return this.selectAll(e==null?vA:yA(typeof e=="function"?e:ml(e)))}function CD(e){typeof e!="function"&&(e=vs(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 pe(r,this._parents)}function vl(e){return new Array(e.length)}function ED(){return new pe(this._enter||this._groups.map(vl),this._parents)}function ys(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}ys.prototype={constructor:ys,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 wD(e){return function(){return e}}function _A(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 ys(e,i[s]);for(;s<c;++s)(a=t[s])&&(o[s]=a)}function DA(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 ys(e,i[a]);for(a=0;a<u;++a)(c=t[a])&&l.get(h[a])===c&&(o[a]=c)}function CA(e){return e.__data__}function bD(e,t){if(!arguments.length)return Array.from(this,CA);var n=t?DA:_A,r=this._parents,o=this._groups;typeof e!="function"&&(e=wD(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=EA(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 C=0,T=0,E,j;C<v;++C)if(E=m[C]){for(C>=T&&(T=C+1);!(j=g[T])&&++T<v;);E._next=j||null}}return s=new pe(s,r),s._enter=a,s._exit=c,s}function EA(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function ID(){return new pe(this._exit||this._groups.map(vl),this._parents)}function MD(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 SD(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 pe(a,this._parents)}function xD(){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 TD(e){e||(e=wA);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 pe(o,this._parents).order()}function wA(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function AD(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function ND(){return Array.from(this)}function RD(){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 OD(){let e=0;for(let t of this)++e;return e}function kD(){return!this.node()}function PD(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 bA(e){return function(){this.removeAttribute(e)}}function IA(e){return function(){this.removeAttributeNS(e.space,e.local)}}function MA(e,t){return function(){this.setAttribute(e,t)}}function SA(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function xA(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function TA(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 FD(e,t){var n=xn(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?IA:bA:typeof t=="function"?n.local?TA:xA:n.local?SA:MA)(n,t))}function yl(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function AA(e){return function(){this.style.removeProperty(e)}}function NA(e,t,n){return function(){this.style.setProperty(e,t,n)}}function RA(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function LD(e,t,n){return arguments.length>1?this.each((t==null?AA:typeof t=="function"?RA:NA)(e,t,n??"")):tr(this.node(),e)}function tr(e,t){return e.style.getPropertyValue(t)||yl(e).getComputedStyle(e,null).getPropertyValue(t)}function OA(e){return function(){delete this[e]}}function kA(e,t){return function(){this[e]=t}}function PA(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function VD(e,t){return arguments.length>1?this.each((t==null?OA:typeof t=="function"?PA:kA)(e,t)):this.node()[e]}function jD(e){return e.trim().split(/^|\s+/)}function np(e){return e.classList||new BD(e)}function BD(e){this._node=e,this._names=jD(e.getAttribute("class")||"")}BD.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 UD(e,t){for(var n=np(e),r=-1,o=t.length;++r<o;)n.add(t[r])}function HD(e,t){for(var n=np(e),r=-1,o=t.length;++r<o;)n.remove(t[r])}function FA(e){return function(){UD(this,e)}}function LA(e){return function(){HD(this,e)}}function VA(e,t){return function(){(t.apply(this,arguments)?UD:HD)(this,e)}}function $D(e,t){var n=jD(e+"");if(arguments.length<2){for(var r=np(this.node()),o=-1,i=n.length;++o<i;)if(!r.contains(n[o]))return!1;return!0}return this.each((typeof t=="function"?VA:t?FA:LA)(n,t))}function jA(){this.textContent=""}function BA(e){return function(){this.textContent=e}}function UA(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function zD(e){return arguments.length?this.each(e==null?jA:(typeof e=="function"?UA:BA)(e)):this.node().textContent}function HA(){this.innerHTML=""}function $A(e){return function(){this.innerHTML=e}}function zA(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function GD(e){return arguments.length?this.each(e==null?HA:(typeof e=="function"?zA:$A)(e)):this.node().innerHTML}function GA(){this.nextSibling&&this.parentNode.appendChild(this)}function WD(){return this.each(GA)}function WA(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function qD(){return this.each(WA)}function ZD(e){var t=typeof e=="function"?e:gl(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function qA(){return null}function YD(e,t){var n=typeof e=="function"?e:gl(e),r=t==null?qA:typeof t=="function"?t:Br(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function ZA(){var e=this.parentNode;e&&e.removeChild(this)}function QD(){return this.each(ZA)}function YA(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function QA(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function KD(e){return this.select(e?QA:YA)}function XD(e){return arguments.length?this.property("__data__",e):this.node().__data__}function KA(e){return function(t){e.call(this,t,this.__data__)}}function XA(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 JA(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 eN(e,t,n){return function(){var r=this.__on,o,i=KA(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 JD(e,t,n){var r=XA(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?eN:JA,o=0;o<i;++o)this.each(a(r[o],t,n));return this}function e0(e,t,n){var r=yl(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 tN(e,t){return function(){return e0(this,e,t)}}function nN(e,t){return function(){return e0(this,e,t.apply(this,arguments))}}function t0(e,t){return this.each((typeof t=="function"?nN:tN)(e,t))}function*n0(){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 rp=[null];function pe(e,t){this._groups=e,this._parents=t}function r0(){return new pe([[document.documentElement]],rp)}function rN(){return this}pe.prototype=r0.prototype={constructor:pe,select:vD,selectAll:yD,selectChild:_D,selectChildren:DD,filter:CD,data:bD,enter:ED,exit:ID,join:MD,merge:SD,selection:rN,order:xD,sort:TD,call:AD,nodes:ND,node:RD,size:OD,empty:kD,each:PD,attr:FD,style:LD,property:VD,classed:$D,text:zD,html:GD,raise:WD,lower:qD,append:ZD,insert:YD,remove:QD,clone:KD,datum:XD,on:JD,dispatch:t0,[Symbol.iterator]:n0};var Tn=r0;function bt(e){return typeof e=="string"?new pe([[document.querySelector(e)]],[document.documentElement]):new pe([[e]],rp)}function o0(e){let t;for(;t=e.sourceEvent;)e=t;return e}function An(e,t){if(e=o0(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 _l={capture:!0,passive:!1};function Dl(e){e.preventDefault(),e.stopImmediatePropagation()}function op(e){var t=e.document.documentElement,n=bt(e).on("dragstart.drag",Dl,_l);"onselectstart"in t?n.on("selectstart.drag",Dl,_l):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function ip(e,t){var n=e.document.documentElement,r=bt(e).on("dragstart.drag",null);t&&(r.on("click.drag",Dl,_l),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 Cl(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function sp(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Cs(){}var _s=.7,bl=1/_s,Xo="\\s*([+-]?\\d+)\\s*",Ds="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",sn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",oN=/^#([0-9a-f]{3,8})$/,iN=new RegExp(`^rgb\\(${Xo},${Xo},${Xo}\\)$`),sN=new RegExp(`^rgb\\(${sn},${sn},${sn}\\)$`),aN=new RegExp(`^rgba\\(${Xo},${Xo},${Xo},${Ds}\\)$`),cN=new RegExp(`^rgba\\(${sn},${sn},${sn},${Ds}\\)$`),lN=new RegExp(`^hsl\\(${Ds},${sn},${sn}\\)$`),uN=new RegExp(`^hsla\\(${Ds},${sn},${sn},${Ds}\\)$`),i0={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};Cl(Cs,nr,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:s0,formatHex:s0,formatHex8:dN,formatHsl:fN,formatRgb:a0,toString:a0});function s0(){return this.rgb().formatHex()}function dN(){return this.rgb().formatHex8()}function fN(){return h0(this).formatHsl()}function a0(){return this.rgb().formatRgb()}function nr(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=oN.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?c0(t):n===3?new st(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?El(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?El(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=iN.exec(e))?new st(t[1],t[2],t[3],1):(t=sN.exec(e))?new st(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=aN.exec(e))?El(t[1],t[2],t[3],t[4]):(t=cN.exec(e))?El(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=lN.exec(e))?d0(t[1],t[2]/100,t[3]/100,1):(t=uN.exec(e))?d0(t[1],t[2]/100,t[3]/100,t[4]):i0.hasOwnProperty(e)?c0(i0[e]):e==="transparent"?new st(NaN,NaN,NaN,0):null}function c0(e){return new st(e>>16&255,e>>8&255,e&255,1)}function El(e,t,n,r){return r<=0&&(e=t=n=NaN),new st(e,t,n,r)}function hN(e){return e instanceof Cs||(e=nr(e)),e?(e=e.rgb(),new st(e.r,e.g,e.b,e.opacity)):new st}function Jo(e,t,n,r){return arguments.length===1?hN(e):new st(e,t,n,r??1)}function st(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Cl(st,Jo,sp(Cs,{brighter(e){return e=e==null?bl:Math.pow(bl,e),new st(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?_s:Math.pow(_s,e),new st(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new st(Hr(this.r),Hr(this.g),Hr(this.b),Il(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:l0,formatHex:l0,formatHex8:pN,formatRgb:u0,toString:u0}));function l0(){return`#${Ur(this.r)}${Ur(this.g)}${Ur(this.b)}`}function pN(){return`#${Ur(this.r)}${Ur(this.g)}${Ur(this.b)}${Ur((isNaN(this.opacity)?1:this.opacity)*255)}`}function u0(){let e=Il(this.opacity);return`${e===1?"rgb(":"rgba("}${Hr(this.r)}, ${Hr(this.g)}, ${Hr(this.b)}${e===1?")":`, ${e})`}`}function Il(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 Ur(e){return e=Hr(e),(e<16?"0":"")+e.toString(16)}function d0(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 h0(e){if(e instanceof Bt)return new Bt(e.h,e.s,e.l,e.opacity);if(e instanceof Cs||(e=nr(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 p0(e,t,n,r){return arguments.length===1?h0(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}Cl(Bt,p0,sp(Cs,{brighter(e){return e=e==null?bl:Math.pow(bl,e),new Bt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?_s:Math.pow(_s,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 st(ap(e>=240?e-240:e+120,o,r),ap(e,o,r),ap(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Bt(f0(this.h),wl(this.s),wl(this.l),Il(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=Il(this.opacity);return`${e===1?"hsl(":"hsla("}${f0(this.h)}, ${wl(this.s)*100}%, ${wl(this.l)*100}%${e===1?")":`, ${e})`}`}}));function f0(e){return e=(e||0)%360,e<0?e+360:e}function wl(e){return Math.max(0,Math.min(1,e||0))}function ap(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 cp(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 g0(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 cp((n-r/t)*t,s,o,i,a)}}function m0(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 cp((n-r/t)*t,o,i,s,a)}}var lp=e=>()=>e;function gN(e,t){return function(n){return e+n*t}}function mN(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 v0(e){return(e=+e)==1?Ml:function(t,n){return n-t?mN(t,n,e):lp(isNaN(t)?n:t)}}function Ml(e,t){var n=t-e;return n?gN(e,n):lp(isNaN(e)?t:e)}var Sl=(function e(t){var n=v0(t);function r(o,i){var s=n((o=Jo(o)).r,(i=Jo(i)).r),a=n(o.g,i.g),c=n(o.b,i.b),l=Ml(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 y0(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=Jo(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 vN=y0(g0),yN=y0(m0);function It(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var dp=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,up=new RegExp(dp.source,"g");function _N(e){return function(){return e}}function DN(e){return function(t){return e(t)+""}}function fp(e,t){var n=dp.lastIndex=up.lastIndex=0,r,o,i,s=-1,a=[],c=[];for(e=e+"",t=t+"";(r=dp.exec(e))&&(o=up.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=up.lastIndex;return n<t.length&&(i=t.slice(n),a[s]?a[s]+=i:a[++s]=i),a.length<2?c[0]?DN(c[0].x):_N(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 _0=180/Math.PI,xl={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function hp(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)*_0,skewX:Math.atan(c)*_0,scaleX:s,scaleY:a}}var Tl;function D0(e){let t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?xl:hp(t.a,t.b,t.c,t.d,t.e,t.f)}function C0(e){return e==null?xl:(Tl||(Tl=document.createElementNS("http://www.w3.org/2000/svg","g")),Tl.setAttribute("transform",e),(e=Tl.transform.baseVal.consolidate())?(e=e.matrix,hp(e.a,e.b,e.c,e.d,e.e,e.f)):xl)}function E0(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 pp=E0(D0,"px, ","px)","deg)"),gp=E0(C0,", ",")",")");var CN=1e-12;function w0(e){return((e=Math.exp(e))+1/e)/2}function EN(e){return((e=Math.exp(e))-1/e)/2}function wN(e){return((e=Math.exp(2*e))-1)/(e+1)}var mp=(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<CN)p=Math.log(h/l)/t,g=function(le){return[a+le*f,c+le*v,l*Math.exp(t*le*p)]};else{var C=Math.sqrt(m),T=(h*h-l*l+r*m)/(2*l*n*C),E=(h*h-l*l-r*m)/(2*h*n*C),j=Math.log(Math.sqrt(T*T+1)-T),Y=Math.log(Math.sqrt(E*E+1)-E);p=(Y-j)/t,g=function(le){var ue=le*p,je=w0(j),de=l/(n*C)*(je*wN(t*ue+j)-EN(j));return[a+de*f,c+de*v,l*je/w0(t*ue+j)]}}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 ei=0,ws=0,Es=0,I0=1e3,Al,bs,Nl=0,$r=0,Rl=0,Is=typeof performance=="object"&&performance.now?performance:Date,M0=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Ss(){return $r||(M0(bN),$r=Is.now()+Rl)}function bN(){$r=0}function Ms(){this._call=this._time=this._next=null}Ms.prototype=ti.prototype={constructor:Ms,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?Ss():+n)+(t==null?0:+t),!this._next&&bs!==this&&(bs?bs._next=this:Al=this,bs=this),this._call=e,this._time=n,vp()},stop:function(){this._call&&(this._call=null,this._time=1/0,vp())}};function ti(e,t,n){var r=new Ms;return r.restart(e,t,n),r}function S0(){Ss(),++ei;for(var e=Al,t;e;)(t=$r-e._time)>=0&&e._call.call(void 0,t),e=e._next;--ei}function b0(){$r=(Nl=Is.now())+Rl,ei=ws=0;try{S0()}finally{ei=0,MN(),$r=0}}function IN(){var e=Is.now(),t=e-Nl;t>I0&&(Rl-=t,Nl=e)}function MN(){for(var e,t=Al,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:Al=n);bs=e,vp(r)}function vp(e){if(!ei){ws&&(ws=clearTimeout(ws));var t=e-$r;t>24?(e<1/0&&(ws=setTimeout(b0,e-Is.now()-Rl)),Es&&(Es=clearInterval(Es))):(Es||(Nl=Is.now(),Es=setInterval(IN,I0)),ei=1,M0(b0))}}function Ol(e,t,n){var r=new Ms;return t=t==null?0:+t,r.restart(o=>{r.stop(),e(o+t)},t,n),r}var SN=jr("start","end","cancel","interrupt"),xN=[],A0=0,x0=1,Pl=2,kl=3,T0=4,Fl=5,xs=6;function rr(e,t,n,r,o,i){var s=e.__transition;if(!s)e.__transition={};else if(n in s)return;TN(e,n,{name:t,index:r,group:o,on:SN,tween:xN,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:A0})}function Ts(e,t){var n=Se(e,t);if(n.state>A0)throw new Error("too late; already scheduled");return n}function Ve(e,t){var n=Se(e,t);if(n.state>kl)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 TN(e,t,n){var r=e.__transition,o;r[t]=n,n.timer=ti(i,0,n.time);function i(l){n.state=x0,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!==x0)return c();for(u in r)if(f=r[u],f.name===n.name){if(f.state===kl)return Ol(s);f.state===T0?(f.state=xs,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete r[u]):+u<t&&(f.state=xs,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete r[u])}if(Ol(function(){n.state===kl&&(n.state=T0,n.timer.restart(a,n.delay,n.time),a(l))}),n.state=Pl,n.on.call("start",e,e.__data__,n.index,n.group),n.state===Pl){for(n.state=kl,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=Fl,1),d=-1,h=o.length;++d<h;)o[d].call(e,u);n.state===Fl&&(n.on.call("end",e,e.__data__,n.index,n.group),c())}function c(){n.state=xs,n.timer.stop(),delete r[t];for(var l in r)return;delete e.__transition}}function or(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>Pl&&r.state<Fl,r.state=xs,r.timer.stop(),r.on.call(o?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[s]}i&&delete e.__transition}}function N0(e){return this.each(function(){or(this,e)})}function AN(e,t){var n,r;return function(){var o=Ve(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 NN(e,t,n){var r,o;if(typeof n!="function")throw new Error;return function(){var i=Ve(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 R0(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?AN:NN)(n,e,t))}function ni(e,t,n){var r=e._id;return e.each(function(){var o=Ve(this,r);(o.value||(o.value={}))[t]=n.apply(this,arguments)}),function(o){return Se(o,r).value[t]}}function Ll(e,t){var n;return(typeof t=="number"?It:t instanceof nr?Sl:(n=nr(t))?(t=n,Sl):fp)(e,t)}function RN(e){return function(){this.removeAttribute(e)}}function ON(e){return function(){this.removeAttributeNS(e.space,e.local)}}function kN(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 PN(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 FN(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 LN(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 O0(e,t){var n=xn(e),r=n==="transform"?gp:Ll;return this.attrTween(e,typeof t=="function"?(n.local?LN:FN)(n,r,ni(this,"attr."+e,t)):t==null?(n.local?ON:RN)(n):(n.local?PN:kN)(n,r,t))}function VN(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 BN(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 UN(e,t){var n,r;function o(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&VN(e,i)),n}return o._value=t,o}function k0(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=xn(e);return this.tween(n,(r.local?BN:UN)(r,t))}function HN(e,t){return function(){Ts(this,e).delay=+t.apply(this,arguments)}}function $N(e,t){return t=+t,function(){Ts(this,e).delay=t}}function P0(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?HN:$N)(t,e)):Se(this.node(),t).delay}function zN(e,t){return function(){Ve(this,e).duration=+t.apply(this,arguments)}}function GN(e,t){return t=+t,function(){Ve(this,e).duration=t}}function F0(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?zN:GN)(t,e)):Se(this.node(),t).duration}function WN(e,t){if(typeof t!="function")throw new Error;return function(){Ve(this,e).ease=t}}function L0(e){var t=this._id;return arguments.length?this.each(WN(t,e)):Se(this.node(),t).ease}function qN(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Ve(this,e).ease=n}}function V0(e){if(typeof e!="function")throw new Error;return this.each(qN(this._id,e))}function j0(e){typeof e!="function"&&(e=vs(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 Ke(r,this._parents,this._name,this._id)}function B0(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 Ke(s,this._parents,this._name,this._id)}function ZN(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 YN(e,t,n){var r,o,i=ZN(t)?Ts:Ve;return function(){var s=i(this,e),a=s.on;a!==r&&(o=(r=a).copy()).on(t,n),s.on=o}}function U0(e,t){var n=this._id;return arguments.length<2?Se(this.node(),n).on.on(e):this.each(YN(n,e,t))}function QN(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function H0(){return this.on("end.remove",QN(this._id))}function $0(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Br(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,rr(l[h],t,n,h,l,Se(u,n)));return new Ke(i,this._parents,t,n)}function z0(e){var t=this._name,n=this._id;typeof e!="function"&&(e=ms(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])&&rr(f,t,n,m,h,v);i.push(h),s.push(u)}return new Ke(i,s,t,n)}var KN=Tn.prototype.constructor;function G0(){return new KN(this._groups,this._parents)}function XN(e,t){var n,r,o;return function(){var i=tr(this,e),s=(this.style.removeProperty(e),tr(this,e));return i===s?null:i===n&&s===r?o:o=t(n=i,r=s)}}function W0(e){return function(){this.style.removeProperty(e)}}function JN(e,t,n){var r,o=n+"",i;return function(){var s=tr(this,e);return s===o?null:s===r?i:i=t(r=s,n)}}function eR(e,t,n){var r,o,i;return function(){var s=tr(this,e),a=n(this),c=a+"";return a==null&&(c=a=(this.style.removeProperty(e),tr(this,e))),s===c?null:s===r&&c===o?i:(o=c,i=t(r=s,a))}}function tR(e,t){var n,r,o,i="style."+t,s="end."+i,a;return function(){var c=Ve(this,e),l=c.on,u=c.value[i]==null?a||(a=W0(t)):void 0;(l!==n||o!==u)&&(r=(n=l).copy()).on(s,o=u),c.on=r}}function q0(e,t,n){var r=(e+="")=="transform"?pp:Ll;return t==null?this.styleTween(e,XN(e,r)).on("end.style."+e,W0(e)):typeof t=="function"?this.styleTween(e,eR(e,r,ni(this,"style."+e,t))).each(tR(this._id,e)):this.styleTween(e,JN(e,r,t),n).on("end.style."+e,null)}function nR(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function rR(e,t,n){var r,o;function i(){var s=t.apply(this,arguments);return s!==o&&(r=(o=s)&&nR(e,s,n)),r}return i._value=t,i}function Z0(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,rR(e,t,n??""))}function oR(e){return function(){this.textContent=e}}function iR(e){return function(){var t=e(this);this.textContent=t??""}}function Y0(e){return this.tween("text",typeof e=="function"?iR(ni(this,"text",e)):oR(e==null?"":e+""))}function sR(e){return function(t){this.textContent=e.call(this,t)}}function aR(e){var t,n;function r(){var o=e.apply(this,arguments);return o!==n&&(t=(n=o)&&sR(o)),t}return r._value=e,r}function Q0(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,aR(e))}function K0(){for(var e=this._name,t=this._id,n=Vl(),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);rr(c,e,n,l,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Ke(r,this._parents,e,n)}function X0(){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=Ve(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 cR=0;function Ke(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function J0(e){return Tn().transition(e)}function Vl(){return++cR}var Nn=Tn.prototype;Ke.prototype=J0.prototype={constructor:Ke,select:$0,selectAll:z0,selectChild:Nn.selectChild,selectChildren:Nn.selectChildren,filter:j0,merge:B0,selection:G0,transition:K0,call:Nn.call,nodes:Nn.nodes,node:Nn.node,size:Nn.size,empty:Nn.empty,each:Nn.each,on:U0,attr:O0,attrTween:k0,style:q0,styleTween:Z0,text:Y0,textTween:Q0,remove:H0,tween:R0,delay:P0,duration:F0,ease:L0,easeVarying:V0,end:X0,[Symbol.iterator]:Nn[Symbol.iterator]};function jl(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var lR={time:null,delay:0,duration:250,ease:jl};function uR(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 eC(e){var t,n;e instanceof Ke?(t=e._id,e=e._name):(t=Vl(),(n=lR).time=Ss(),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])&&rr(c,e,t,l,s,n||uR(c,t));return new Ke(r,this._parents,e,t)}Tn.prototype.interrupt=N0;Tn.prototype.transition=eC;var{abs:i7,max:s7,min:a7}=Math;function tC(e){return[+e[0],+e[1]]}function dR(e){return[tC(e[0]),tC(e[1])]}var c7={name:"x",handles:["w","e"].map(yp),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]]}},l7={name:"y",handles:["n","s"].map(yp),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]]}},u7={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(yp),input:function(e){return e==null?null:dR(e)},output:function(e){return e}};function yp(e){return{type:e}}function _p(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 nC(e){let t=+this._x.call(null,e),n=+this._y.call(null,e);return rC(this.cover(t,n),t,n,e)}function rC(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,C;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)===(C=(v>=h)<<1|f>=d));return o[C]=i,o[p]=s,e}function oC(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)rC(this,s[n],a[n],e[n]);return this}function iC(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 sC(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function aC(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 Ne(e,t,n,r,o){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=o}function cC(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 Ne(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 Ne(f[3],g,p,c,l),new Ne(f[2],s,p,g,l),new Ne(f[1],g,a,c,p),new Ne(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 C=e-+this._x.call(null,f.data),T=t-+this._y.call(null,f.data),E=C*C+T*T;if(E<n){var j=Math.sqrt(n=E);o=e-j,i=t-j,u=e+j,d=t+j,r=f.data}}return r}function lC(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 uC(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function dC(){return this._root}function fC(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function hC(e){var t=[],n,r=this._root,o,i,s,a,c;for(r&&t.push(new Ne(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 Ne(o,l,u,a,c)),(o=r[2])&&t.push(new Ne(o,i,u,l,c)),(o=r[1])&&t.push(new Ne(o,l,s,a,u)),(o=r[0])&&t.push(new Ne(o,i,s,l,u))}return this}function pC(e){var t=[],n=[],r;for(this._root&&t.push(new Ne(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 Ne(i,s,a,u,d)),(i=o[1])&&t.push(new Ne(i,u,a,c,d)),(i=o[2])&&t.push(new Ne(i,s,d,u,l)),(i=o[3])&&t.push(new Ne(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 gC(e){return e[0]}function mC(e){return arguments.length?(this._x=e,this):this._x}function vC(e){return e[1]}function yC(e){return arguments.length?(this._y=e,this):this._y}function zr(e,t,n){var r=new Dp(t??gC,n??vC,NaN,NaN,NaN,NaN);return e==null?r:r.addAll(e)}function Dp(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 _C(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var Xe=zr.prototype=Dp.prototype;Xe.copy=function(){var e=new Dp(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=_C(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]=_C(r));return e};Xe.add=nC;Xe.addAll=oC;Xe.cover=iC;Xe.data=sC;Xe.extent=aC;Xe.find=cC;Xe.remove=lC;Xe.removeAll=uC;Xe.root=dC;Xe.size=fC;Xe.visit=hC;Xe.visitAfter=pC;Xe.x=mC;Xe.y=yC;function an(e){return function(){return e}}function Ut(e){return(e()-.5)*1e-6}function fR(e){return e.x+e.vx}function hR(e){return e.y+e.vy}function Cp(e){var t,n,r,o=1,i=1;typeof e!="function"&&(e=an(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=zr(t,fR,hR).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(C);function C(T,E,j,Y,le){var ue=T.data,je=T.r,de=m+je;if(ue){if(ue.index>h.index){var $t=f-ue.x-ue.vx,zt=v-ue.y-ue.vy,Mt=$t*$t+zt*zt;Mt<de*de&&($t===0&&($t=Ut(r),Mt+=$t*$t),zt===0&&(zt=Ut(r),Mt+=zt*zt),Mt=(de-(Mt=Math.sqrt(Mt)))/Mt*o,h.vx+=($t*=Mt)*(de=(je*=je)/(g+je)),h.vy+=(zt*=Mt)*de,ue.vx-=$t*(de=1-de),ue.vy-=zt*de)}return}return E>f+de||Y<f-de||j>v+de||le<v-de}}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:an(+l),c(),s):e},s}function pR(e){return e.index}function DC(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function Ep(e){var t=pR,n=d,r,o=an(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,C=e.length;p<u;++p)for(var T=0,E,j,Y,le,ue,je,de;T<C;++T)E=e[T],j=E.source,Y=E.target,le=Y.x+Y.vx-j.x-j.vx||Ut(l),ue=Y.y+Y.vy-j.y-j.vy||Ut(l),je=Math.sqrt(le*le+ue*ue),je=(je-i[T])/je*g*r[T],le*=je,ue*=je,Y.vx-=le*(de=c[T]),Y.vy-=ue*de,j.vx+=le*(de=1-de),j.vy+=ue*de}function f(){if(s){var g,p=s.length,C=e.length,T=new Map(s.map((j,Y)=>[t(j,Y,s),j])),E;for(g=0,a=new Array(p);g<C;++g)E=e[g],E.index=g,typeof E.source!="object"&&(E.source=DC(T,E.source)),typeof E.target!="object"&&(E.target=DC(T,E.target)),a[E.source.index]=(a[E.source.index]||0)+1,a[E.target.index]=(a[E.target.index]||0)+1;for(g=0,c=new Array(C);g<C;++g)E=e[g],c[g]=a[E.source.index]/(a[E.source.index]+a[E.target.index]);r=new Array(C),v(),i=new Array(C),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:an(+g),v(),h):n},h.distance=function(g){return arguments.length?(o=typeof g=="function"?g:an(+g),m(),h):o},h}function CC(){let e=1;return()=>(e=(1664525*e+1013904223)%4294967296)/4294967296}function EC(e){return e.x}function wC(e){return e.y}var gR=10,mR=Math.PI*(3-Math.sqrt(5));function wp(e){var t,n=1,r=.001,o=1-Math.pow(r,1/300),i=0,s=.6,a=new Map,c=ti(d),l=jr("tick","end"),u=CC();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,C;m===void 0&&(m=1);for(var T=0;T<m;++T)for(n+=(i-n)*o,a.forEach(function(E){E(n)}),g=0;g<p;++g)C=e[g],C.fx==null?C.x+=C.vx*=s:(C.x=C.fx,C.vx=0),C.fy==null?C.y+=C.vy*=s:(C.y=C.fy,C.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 C=gR*Math.sqrt(.5+m),T=m*mR;p.x=C*Math.cos(T),p.y=C*Math.sin(T)}(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 C=0,T=e.length,E,j,Y,le,ue;for(p==null?p=1/0:p*=p,C=0;C<T;++C)le=e[C],E=m-le.x,j=g-le.y,Y=E*E+j*j,Y<p&&(ue=le,p=Y);return ue},on:function(m,g){return arguments.length>1?(l.on(m,g),t):l.on(m)}}}function bp(){var e,t,n,r,o=an(-30),i,s=1,a=1/0,c=.81;function l(f){var v,m=e.length,g=zr(e,EC,wC).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,C,T,E;if(f.length){for(C=T=E=0;E<4;++E)(m=f[E])&&(g=Math.abs(m.value))&&(v+=m.value,p+=g,C+=g*m.x,T+=g*m.y);f.x=C/p,f.y=T/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,C=f.y-t.y,T=g-v,E=p*p+C*C;if(T*T/c<E)return E<a&&(p===0&&(p=Ut(n),E+=p*p),C===0&&(C=Ut(n),E+=C*C),E<s&&(E=Math.sqrt(s*E)),t.vx+=p*f.value*r/E,t.vy+=C*f.value*r/E),!0;if(f.length||E>=a)return;(f.data!==t||f.next)&&(p===0&&(p=Ut(n),E+=p*p),C===0&&(C=Ut(n),E+=C*C),E<s&&(E=Math.sqrt(s*E)));do f.data!==t&&(T=i[f.data.index]*r/E,t.vx+=p*T,t.vy+=C*T);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:an(+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 As=e=>()=>e;function Ip(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 Ht(e,t,n){this.k=e,this.x=t,this.y=n}Ht.prototype={constructor:Ht,scale:function(e){return e===1?this:new Ht(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Ht(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 Gr=new Ht(1,0,0);Mp.prototype=Ht.prototype;function Mp(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Gr;return e.__zoom}function Bl(e){e.stopImmediatePropagation()}function ri(e){e.preventDefault(),e.stopImmediatePropagation()}function vR(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function yR(){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 bC(){return this.__zoom||Gr}function _R(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function DR(){return navigator.maxTouchPoints||"ontouchstart"in this}function CR(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 Sp(){var e=vR,t=yR,n=CR,r=_R,o=DR,i=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],a=250,c=mp,l=jr("start","zoom","end"),u,d,h,f=500,v=150,m=0,g=10;function p(y){y.property("__zoom",bC).on("wheel.zoom",ue,{passive:!1}).on("mousedown.zoom",je).on("dblclick.zoom",de).filter(o).on("touchstart.zoom",$t).on("touchmove.zoom",zt).on("touchend.zoom touchcancel.zoom",Mt).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}p.transform=function(y,N,D,R){var $=y.selection?y.selection():y;$.property("__zoom",bC),y!==$?j(y,N,D,R):$.interrupt().each(function(){Y(this,arguments).event(R).start().zoom(null,typeof N=="function"?N.apply(this,arguments):N).end()})},p.scaleBy=function(y,N,D,R){p.scaleTo(y,function(){var $=this.__zoom.k,W=typeof N=="function"?N.apply(this,arguments):N;return $*W},D,R)},p.scaleTo=function(y,N,D,R){p.transform(y,function(){var $=t.apply(this,arguments),W=this.__zoom,Q=D==null?E($):typeof D=="function"?D.apply(this,arguments):D,ce=W.invert(Q),ge=typeof N=="function"?N.apply(this,arguments):N;return n(T(C(W,ge),Q,ce),$,s)},D,R)},p.translateBy=function(y,N,D,R){p.transform(y,function(){return n(this.__zoom.translate(typeof N=="function"?N.apply(this,arguments):N,typeof D=="function"?D.apply(this,arguments):D),t.apply(this,arguments),s)},null,R)},p.translateTo=function(y,N,D,R,$){p.transform(y,function(){var W=t.apply(this,arguments),Q=this.__zoom,ce=R==null?E(W):typeof R=="function"?R.apply(this,arguments):R;return n(Gr.translate(ce[0],ce[1]).scale(Q.k).translate(typeof N=="function"?-N.apply(this,arguments):-N,typeof D=="function"?-D.apply(this,arguments):-D),W,s)},R,$)};function C(y,N){return N=Math.max(i[0],Math.min(i[1],N)),N===y.k?y:new Ht(N,y.x,y.y)}function T(y,N,D){var R=N[0]-D[0]*y.k,$=N[1]-D[1]*y.k;return R===y.x&&$===y.y?y:new Ht(y.k,R,$)}function E(y){return[(+y[0][0]+ +y[1][0])/2,(+y[0][1]+ +y[1][1])/2]}function j(y,N,D,R){y.on("start.zoom",function(){Y(this,arguments).event(R).start()}).on("interrupt.zoom end.zoom",function(){Y(this,arguments).event(R).end()}).tween("zoom",function(){var $=this,W=arguments,Q=Y($,W).event(R),ce=t.apply($,W),ge=D==null?E(ce):typeof D=="function"?D.apply($,W):D,Gt=Math.max(ce[1][0]-ce[0][0],ce[1][1]-ce[0][1]),Re=$.__zoom,St=typeof N=="function"?N.apply($,W):N,cn=c(Re.invert(ge).concat(Gt/Re.k),St.invert(ge).concat(Gt/St.k));return function(xt){if(xt===1)xt=St;else{var ln=cn(xt),ql=Gt/ln[2];xt=new Ht(ql,ge[0]-ln[0]*ql,ge[1]-ln[1]*ql)}Q.zoom(null,xt)}})}function Y(y,N,D){return!D&&y.__zooming||new le(y,N)}function le(y,N){this.that=y,this.args=N,this.active=0,this.sourceEvent=null,this.extent=t.apply(y,N),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,N){return this.mouse&&y!=="mouse"&&(this.mouse[1]=N.invert(this.mouse[0])),this.touch0&&y!=="touch"&&(this.touch0[1]=N.invert(this.touch0[0])),this.touch1&&y!=="touch"&&(this.touch1[1]=N.invert(this.touch1[0])),this.that.__zoom=N,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(y){var N=bt(this.that).datum();l.call(y,this.that,new Ip(y,{sourceEvent:this.sourceEvent,target:p,type:y,transform:this.that.__zoom,dispatch:l}),N)}};function ue(y,...N){if(!e.apply(this,arguments))return;var D=Y(this,N).event(y),R=this.__zoom,$=Math.max(i[0],Math.min(i[1],R.k*Math.pow(2,r.apply(this,arguments)))),W=An(y);if(D.wheel)(D.mouse[0][0]!==W[0]||D.mouse[0][1]!==W[1])&&(D.mouse[1]=R.invert(D.mouse[0]=W)),clearTimeout(D.wheel);else{if(R.k===$)return;D.mouse=[W,R.invert(W)],or(this),D.start()}ri(y),D.wheel=setTimeout(Q,v),D.zoom("mouse",n(T(C(R,$),D.mouse[0],D.mouse[1]),D.extent,s));function Q(){D.wheel=null,D.end()}}function je(y,...N){if(h||!e.apply(this,arguments))return;var D=y.currentTarget,R=Y(this,N,!0).event(y),$=bt(y.view).on("mousemove.zoom",ge,!0).on("mouseup.zoom",Gt,!0),W=An(y,D),Q=y.clientX,ce=y.clientY;op(y.view),Bl(y),R.mouse=[W,this.__zoom.invert(W)],or(this),R.start();function ge(Re){if(ri(Re),!R.moved){var St=Re.clientX-Q,cn=Re.clientY-ce;R.moved=St*St+cn*cn>m}R.event(Re).zoom("mouse",n(T(R.that.__zoom,R.mouse[0]=An(Re,D),R.mouse[1]),R.extent,s))}function Gt(Re){$.on("mousemove.zoom mouseup.zoom",null),ip(Re.view,R.moved),ri(Re),R.event(Re).end()}}function de(y,...N){if(e.apply(this,arguments)){var D=this.__zoom,R=An(y.changedTouches?y.changedTouches[0]:y,this),$=D.invert(R),W=D.k*(y.shiftKey?.5:2),Q=n(T(C(D,W),R,$),t.apply(this,N),s);ri(y),a>0?bt(this).transition().duration(a).call(j,Q,R,y):bt(this).call(p.transform,Q,R,y)}}function $t(y,...N){if(e.apply(this,arguments)){var D=y.touches,R=D.length,$=Y(this,N,y.changedTouches.length===R).event(y),W,Q,ce,ge;for(Bl(y),Q=0;Q<R;++Q)ce=D[Q],ge=An(ce,this),ge=[ge,this.__zoom.invert(ge),ce.identifier],$.touch0?!$.touch1&&$.touch0[2]!==ge[2]&&($.touch1=ge,$.taps=0):($.touch0=ge,W=!0,$.taps=1+!!u);u&&(u=clearTimeout(u)),W&&($.taps<2&&(d=ge[0],u=setTimeout(function(){u=null},f)),or(this),$.start())}}function zt(y,...N){if(this.__zooming){var D=Y(this,N).event(y),R=y.changedTouches,$=R.length,W,Q,ce,ge;for(ri(y),W=0;W<$;++W)Q=R[W],ce=An(Q,this),D.touch0&&D.touch0[2]===Q.identifier?D.touch0[0]=ce:D.touch1&&D.touch1[2]===Q.identifier&&(D.touch1[0]=ce);if(Q=D.that.__zoom,D.touch1){var Gt=D.touch0[0],Re=D.touch0[1],St=D.touch1[0],cn=D.touch1[1],xt=(xt=St[0]-Gt[0])*xt+(xt=St[1]-Gt[1])*xt,ln=(ln=cn[0]-Re[0])*ln+(ln=cn[1]-Re[1])*ln;Q=C(Q,Math.sqrt(xt/ln)),ce=[(Gt[0]+St[0])/2,(Gt[1]+St[1])/2],ge=[(Re[0]+cn[0])/2,(Re[1]+cn[1])/2]}else if(D.touch0)ce=D.touch0[0],ge=D.touch0[1];else return;D.zoom("touch",n(T(Q,ce,ge),D.extent,s))}}function Mt(y,...N){if(this.__zooming){var D=Y(this,N).event(y),R=y.changedTouches,$=R.length,W,Q;for(Bl(y),h&&clearTimeout(h),h=setTimeout(function(){h=null},f),W=0;W<$;++W)Q=R[W],D.touch0&&D.touch0[2]===Q.identifier?delete D.touch0:D.touch1&&D.touch1[2]===Q.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&&(Q=An(Q,this),Math.hypot(d[0]-Q[0],d[1]-Q[1])<g)){var ce=bt(this).on("dblclick.zoom");ce&&ce.apply(this,arguments)}}}return p.wheelDelta=function(y){return arguments.length?(r=typeof y=="function"?y:As(+y),p):r},p.filter=function(y){return arguments.length?(e=typeof y=="function"?y:As(!!y),p):e},p.touchable=function(y){return arguments.length?(o=typeof y=="function"?y:As(!!y),p):o},p.extent=function(y){return arguments.length?(t=typeof y=="function"?y:As([[+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 wR=["commitGraph"],Ul=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,Gr)}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=bt(this.svgElement.nativeElement),this.g=this.svg.append("g"),this.zoom=Sp().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=wp(i).force("link",Ep(s).id(d=>d.id).distance(100)).force("charge",bp().strength(-300)).force("center",_p(t/2,n/2)).force("collision",Cp().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=Ye({type:e,selectors:[["app-commit-graph"]],viewQuery:function(n,r){if(n&1&&Vf(wR,7),n&2){let o;jf(o=Bf())&&(r.svgElement=o.first)}},inputs:{commits:"commits",colorPalette:"colorPalette"},outputs:{commitClick:"commitClick"},features:[tn],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=Dt();_t(0,"div",1)(1,"div",2)(2,"button",3),Mo("click",function(){return we(o),be(r.zoomIn())}),kt(),_t(3,"svg",4),Nr(4,"path",5),rn()(),Gn(),_t(5,"button",6),Mo("click",function(){return we(o),be(r.zoomOut())}),kt(),_t(6,"svg",4),Nr(7,"path",7),rn()(),Gn(),_t(8,"button",8),Mo("click",function(){return we(o),be(r.resetZoom())}),kt(),_t(9,"svg",4),Nr(10,"path",9),rn()(),Gn(),_t(11,"span",10),k(12),rn()(),_t(13,"div",11)(14,"span"),k(15,"Use mouse wheel to zoom \u2022 Drag to pan \u2022 Click commits for details"),rn()(),kt(),Nr(16,"svg",12,0),rn()}n&2&&(b(12),Me("",(r.zoomLevel*100).toFixed(0),"%"))},dependencies:[ot],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 bR(e,t){if(e&1){let n=Dt();M(0,"div",22)(1,"span",23),k(2),I(),M(3,"button",24),J("click",function(){let o=we(n).$implicit,i=ae(2);return be(i.onFileClick(o.file))}),k(4," View Diff "),I()()}if(e&2){let n=t.$implicit;b(2),Ae(n.file)}}function IR(e,t){if(e&1&&(M(0,"div",27)(1,"div",28),k(2),I(),M(3,"div",29),k(4),I()()),e&2){let n=t.$implicit;b(2),Ae(n.file),b(2),Cc(" +",n.additions," -",n.deletions," ")}}function MR(e,t){if(e&1&&(M(0,"div",17)(1,"h4",18),k(2,"Diff Summary"),I(),M(3,"div",25),De(4,IR,5,3,"div",26),I()()),e&2){let n=ae(2);b(4),X("ngForOf",n.diffFiles)}}function SR(e,t){if(e&1&&(M(0,"div",8)(1,"div",9)(2,"div",10)(3,"div",11)(4,"span",12),k(5),I(),M(6,"span",13),k(7),I(),M(8,"span",14),k(9),I()(),M(10,"h3",15),k(11),I()(),M(12,"div",16)(13,"div",17)(14,"h4",18),k(15,"Files Changed"),I(),M(16,"div",19),De(17,bR,5,1,"div",20),I()(),De(18,MR,5,1,"div",21),I()()()),e&2){let n=ae();b(5),Ae(n.commit.hash),b(2),Me("by ",n.commit.author),b(2),Ae(n.formatDate(n.commit.date)),b(2),Ae(n.commit.message),b(6),X("ngForOf",n.diffFiles),b(),X("ngIf",n.diffFiles.length>0)}}var Hl=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=Ye({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&&(M(0,"div",0),J("click",function(){return r.onClose()}),M(1,"div",1),J("click",function(i){return i.stopPropagation()}),M(2,"div",2)(3,"h3",3),k(4,"Commit Details"),I(),M(5,"button",4),J("click",function(){return r.onClose()}),kt(),M(6,"svg",5),rt(7,"path",6),I()()(),De(8,SR,19,6,"div",7),I()()),n&2&&(b(),Qn("dark",r.isDarkMode),b(7),X("ngIf",r.commit))},dependencies:[ot,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 xR(e,t){if(e&1&&(M(0,"div",14)(1,"span",15),k(2),I(),M(3,"span",16),k(4),I()()),e&2){let n=t.$implicit;Qn("added",n.type==="added")("removed",n.type==="removed")("context",n.type==="context"),b(2),Ae(n.lineNumber),b(2),Ae(n.content)}}function TR(e,t){if(e&1&&(M(0,"div",12),De(1,xR,5,8,"div",13),I()),e&2){let n=ae();b(),X("ngForOf",n.diffLines)("ngForTrackBy",n.trackByLine)}}function AR(e,t){e&1&&(M(0,"div",17)(1,"p"),k(2,"No diff content available for this file."),I()())}var $l=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=Ye({type:e,selectors:[["app-diff-viewer"]],inputs:{fileName:"fileName",diffFile:"diffFile"},outputs:{close:"close"},features:[tn],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&&(M(0,"div",0)(1,"div",1)(2,"h3",2),k(3),I(),M(4,"button",3),J("click",function(){return r.onClose()}),kt(),M(5,"svg",4),rt(6,"path",5),I()()(),Gn(),M(7,"div",6)(8,"div",7)(9,"span",8),k(10),I(),M(11,"span",9),k(12),I()(),De(13,TR,2,2,"div",10)(14,AR,3,0,"div",11),I()()),n&2&&(b(3),Me("Diff: ",r.fileName),b(7),Me("+",(r.diffFile==null?null:r.diffFile.additions)||0," additions"),b(2),Me("-",(r.diffFile==null?null:r.diffFile.deletions)||0," deletions"),b(),X("ngIf",r.diffLines.length>0),b(),X("ngIf",r.diffLines.length===0))},dependencies:[ot,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 oi={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"}}},Ns={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 NR(e,t){if(e&1&&(M(0,"option",5),k(1),I()),e&2){let n=t.$implicit;X("value",n.id),b(),Me(" ",n.name," ")}}function RR(e,t){if(e&1&&(M(0,"div",6)(1,"div",7)(2,"span",8),k(3,"Primary:"),I(),rt(4,"div",9),I(),M(5,"div",7)(6,"span",8),k(7,"Secondary:"),I(),rt(8,"div",9),I(),M(9,"div",7)(10,"span",8),k(11,"Accent:"),I(),rt(12,"div",9),I()()),e&2){let n=ae();b(4),oe("background-color",n.currentPalette.colors.primary),b(4),oe("background-color",n.currentPalette.colors.secondary),b(4),oe("background-color",n.currentPalette.colors.accent)}}var zl=class e{selectedPalette="default";darkMode=!1;paletteChange=new re;get availablePalettes(){let t=this.darkMode?Ns:oi;return Object.values(t)}get currentPalette(){return(this.darkMode?Ns:oi)[this.selectedPalette]||null}onPaletteChange(t){let r=t.target.value;this.paletteChange.emit(r)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=Ye({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&&(M(0,"div",0)(1,"label",1),k(2,"Theme:"),I(),M(3,"select",2),J("change",function(i){return r.onPaletteChange(i)}),De(4,NR,2,2,"option",3),I(),De(5,RR,13,6,"div",4),I()),n&2&&(b(3),oe("background-color",r.darkMode?"#404040":"white")("color",r.darkMode?"#e0e0e0":"#111827")("border-color",r.darkMode?"#555":"#d1d5db"),X("value",r.selectedPalette),b(),X("ngForOf",r.availablePalettes),b(),X("ngIf",r.currentPalette))},dependencies:[ot,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 Gl=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.limit&&n.set("limit",t.limit.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)(O(Fc))};static \u0275prov=A({token:e,factory:e.\u0275fac,providedIn:"root"})};function kR(e,t){if(e&1&&(M(0,"option",24),k(1),I()),e&2){let n=t.$implicit;X("value",n),b(),Ae(n)}}function PR(e,t){if(e&1&&(M(0,"div",25),rt(1,"div",26),M(2,"span"),k(3,"Loading commits..."),I()()),e&2){let n=ae();oe("color",n.darkMode?"#e0e0e0":"#374151")}}function FR(e,t){if(e&1){let n=Dt();M(0,"div")(1,"app-commit-graph",27),J("commitClick",function(o){we(n);let i=ae();return be(i.showCommitDetails(o))}),I()()}if(e&2){let n=ae();b(),X("commits",n.filteredCommits)("colorPalette",n.getCurrentPalette())}}function LR(e,t){if(e&1){let n=Dt();M(0,"div")(1,"app-commit-list",27),J("commitClick",function(o){we(n);let i=ae();return be(i.showCommitDetails(o))}),I()()}if(e&2){let n=ae();b(),X("commits",n.filteredCommits)("colorPalette",n.getCurrentPalette())}}function VR(e,t){if(e&1){let n=Dt();M(0,"app-commit-detail",28),J("close",function(){we(n);let o=ae();return be(o.closeModal())})("fileClick",function(o){we(n);let i=ae();return be(i.onFileClick(o))}),I()}if(e&2){let n=ae();X("commit",n.selectedCommit)("diffFiles",n.diffFiles)}}function jR(e,t){if(e&1){let n=Dt();M(0,"div",29),J("click",function(){we(n);let o=ae();return be(o.closeDiffModal())}),M(1,"div",30),J("click",function(o){return we(n),be(o.stopPropagation())}),M(2,"app-diff-viewer",31),J("close",function(){we(n);let o=ae();return be(o.closeDiffModal())}),I()()()}if(e&2){let n=ae();b(2),X("fileName",n.selectedFileName)("diffFile",n.selectedDiffFile)}}var Wl=class e{constructor(t){this.gitService=t}commits=[];filteredCommits=[];authors=[];tags=[];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(){this.loading=!0,this.gitService.getCommits().subscribe({next:t=>{this.commits=t,this.filteredCommits=t,this.authors=[...new Set(t.map(n=>n.author))],this.loading=!1},error:t=>{console.error("Error loading commits:",t),this.loading=!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(oi).includes(t)&&(this.selectedColorPalette=t)}onColorPaletteChange(t){this.selectedColorPalette=t,localStorage.setItem("colorPalette",t)}getCurrentPalette(){return(this.darkMode?Ns:oi)[this.selectedColorPalette]}onSearch(){this.applyFilters()}onAuthorFilter(){this.applyFilters()}onSinceFilter(){this.applyFilters(),console.log("Date picker dark mode:",this.darkMode),console.log("Document dark class:",document.documentElement.classList.contains("dark"))}onFileFilter(){this.applyFilters()}applyFilters(){let t=this.commits;if(this.searchQuery){let n=this.searchQuery.toLowerCase();t=t.filter(r=>r.message.toLowerCase().includes(n)||r.author.toLowerCase().includes(n)||r.hash.toLowerCase().includes(n))}if(this.selectedAuthor&&(t=t.filter(n=>n.author===this.selectedAuthor)),this.selectedSince){let n=new Date(this.selectedSince);isNaN(n.getTime())||(t=t.filter(r=>new Date(r.date)>=n))}this.fileFilter&&(t=t.filter(n=>n.files.some(r=>r.toLowerCase().includes(this.fileFilter.toLowerCase())))),this.filteredCommits=t}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)(te(Gl))};static \u0275cmp=Ye({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,"close","fileClick","commit","diffFiles"],[1,"modal-overlay",3,"click"],[1,"modal-container",3,"click"],[3,"close","fileName","diffFile"]],template:function(n,r){n&1&&(M(0,"div",0)(1,"header",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h1",5),k(6," \u{1F4CA} Git History UI "),I(),M(7,"div",6)(8,"button",7),J("click",function(){return r.switchView("graph")}),k(9," Graph View "),I(),M(10,"button",7),J("click",function(){return r.switchView("list")}),k(11," List View "),I()()(),M(12,"div",4)(13,"app-color-palette-selector",8),J("paletteChange",function(i){return r.onColorPaletteChange(i)}),I(),M(14,"button",9),J("click",function(){return r.toggleDarkMode()}),k(15),I(),M(16,"div",10)(17,"input",11),Or("ngModelChange",function(i){return So(r.searchQuery,i)||(r.searchQuery=i),i}),J("input",function(){return r.onSearch()}),I()()()()()(),M(18,"div",12)(19,"div",2)(20,"div",4)(21,"div",13)(22,"label"),k(23,"Author:"),I(),M(24,"select",14),Or("ngModelChange",function(i){return So(r.selectedAuthor,i)||(r.selectedAuthor=i),i}),J("change",function(){return r.onAuthorFilter()}),M(25,"option",15),k(26,"All authors"),I(),De(27,kR,2,2,"option",16),I()(),M(28,"div",13)(29,"label"),k(30,"Since:"),I(),M(31,"input",17),Or("ngModelChange",function(i){return So(r.selectedSince,i)||(r.selectedSince=i),i}),J("change",function(){return r.onSinceFilter()}),I()(),M(32,"div",13)(33,"label"),k(34,"File:"),I(),M(35,"input",18),Or("ngModelChange",function(i){return So(r.fileFilter,i)||(r.fileFilter=i),i}),J("input",function(){return r.onFileFilter()}),I()()()()(),M(36,"main",19)(37,"div",2),De(38,PR,4,2,"div",20)(39,FR,2,2,"div",21)(40,LR,2,2,"div",21),I()(),De(41,VR,1,2,"app-commit-detail",22)(42,jR,3,2,"div",23),I()),n&2&&(b(),oe("background-color",r.darkMode?"#2d2d2d":"white")("border-bottom-color",r.darkMode?"#404040":"#e5e7eb"),b(4),oe("color",r.darkMode?"#e0e0e0":"#111827"),b(3),Dc(r.currentView==="graph"?"btn btn-primary":"btn btn-secondary"),b(2),Dc(r.currentView==="list"?"btn btn-primary":"btn btn-secondary"),b(3),X("selectedPalette",r.selectedColorPalette)("darkMode",r.darkMode),b(2),Me(" ",r.darkMode?"\u2600\uFE0F":"\u{1F319}"," "),b(2),oe("background-color",r.darkMode?"#404040":"white")("color",r.darkMode?"#e0e0e0":"#111827")("border-color",r.darkMode?"#555":"#d1d5db"),Rr("ngModel",r.searchQuery),b(),oe("background-color",r.darkMode?"#2d2d2d":"white")("border-bottom-color",r.darkMode?"#404040":"#e5e7eb"),b(4),oe("color",r.darkMode?"#d1d5db":"#374151"),b(2),oe("background-color",r.darkMode?"#404040":"white")("color",r.darkMode?"#e0e0e0":"#111827")("border-color",r.darkMode?"#555":"#d1d5db"),Rr("ngModel",r.selectedAuthor),b(3),X("ngForOf",r.authors),b(2),oe("color",r.darkMode?"#d1d5db":"#374151"),b(2),oe("background-color",r.darkMode?"#404040":"white")("color",r.darkMode?"#e0e0e0":"#111827")("border-color",r.darkMode?"#555":"#d1d5db")("caret-color",r.darkMode?"#e0e0e0":"#111827"),Rr("ngModel",r.selectedSince),b(2),oe("color",r.darkMode?"#d1d5db":"#374151"),b(2),oe("background-color",r.darkMode?"#404040":"white")("color",r.darkMode?"#e0e0e0":"#111827")("border-color",r.darkMode?"#555":"#d1d5db"),Rr("ngModel",r.fileFilter),b(),oe("background-color",r.darkMode?"#1a1a1a":"#f8f9fa"),b(2),X("ngIf",r.loading),b(),X("ngIf",!r.loading&&r.currentView==="graph"),b(),X("ngIf",!r.loading&&r.currentView==="list"),b(),X("ngIf",r.showModal),b(),X("ngIf",r.showDiffModal))},dependencies:[ot,Et,Vt,pD,dD,hD,ll,dl,aD,Jh,dh,fl,Ul,Hl,$l,zl],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}"]})};ih(Wl,z_).catch(e=>console.error(e));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.grid{display:grid}.hidden{display:none}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-wrap{flex-wrap:wrap}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.border{border-width:1px}.text-xs{font-size:.75rem;line-height:1rem}.italic{font-style:italic}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.outline{outline-style:solid}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;line-height:1.6;color:#333;background-color:#f8f9fa}@media (prefers-color-scheme: dark){body{background-color:#1a1a1a;color:#e0e0e0}}.dark,.dark body{background-color:#1a1a1a!important;color:#e0e0e0!important}.dark *{border-color:#404040!important}.dark .app-container{background-color:#1a1a1a;color:#e0e0e0}.dark .header{background-color:#2d2d2d;border-bottom-color:#404040}.dark .app-title{color:#e0e0e0}.dark .search-input{background-color:#404040;color:#e0e0e0;border-color:#555}.dark .search-input::placeholder{color:#9ca3af}.dark .filters{background-color:#2d2d2d;border-bottom-color:#404040}.dark .filter-select,.dark .filter-input{background-color:#404040;color:#e0e0e0;border-color:#555}.dark .main-content{background-color:#1a1a1a}.dark .commit-item{background-color:#2d2d2d;border-color:#404040}.dark .commit-hash{color:#9ca3af}.dark .commit-author{color:#d1d5db}.dark .commit-date{color:#9ca3af}.dark .commit-message{color:#e0e0e0}.dark input[type=date],.dark .date-picker,.dark .filter-input.date-picker{background-color:#404040!important;color:#e0e0e0!important;border-color:#555!important}.dark input[type=date]::-webkit-calendar-picker-indicator{filter:invert(1)!important}.dark input[type=date]::-webkit-datetime-edit{color:#e0e0e0!important}.dark input[type=date]::-webkit-datetime-edit-fields-wrapper{color:#e0e0e0!important}.dark input[type=date]::-webkit-datetime-edit-text{color:#e0e0e0!important}.dark input[type=date]::-webkit-datetime-edit-month-field,.dark input[type=date]::-webkit-datetime-edit-day-field,.dark input[type=date]::-webkit-datetime-edit-year-field{color:#e0e0e0!important}.dark .loading{color:#e0e0e0}.dark .graph-container{background-color:#2d2d2d!important;color:#e0e0e0!important}.dark svg{background-color:transparent!important}.dark .modal-title,.dark .modal-header .modal-title,.dark .modal-container .modal-title{color:#e0e0e0!important}.dark .header{background-color:#2d2d2d!important;border-bottom-color:#404040!important}.dark .app-title{color:#e0e0e0!important}.dark .filters{background-color:#2d2d2d!important;border-bottom-color:#404040!important}.dark input::placeholder{color:#9ca3af!important}.dark select{color:#e0e0e0!important}*,input,select,button{transition:background-color .2s ease,border-color .2s ease,color .2s ease}.dark .card,.dark .commit-item,.dark .modal-container,.dark .diff-viewer{background-color:#2d2d2d!important;color:#e0e0e0!important;border-color:#404040!important}.dark .btn{background-color:#404040!important;color:#e0e0e0!important;border-color:#555!important}.dark .btn:hover{background-color:#555!important}.dark .btn-primary{background-color:#3b82f6!important;color:#fff!important}.dark .btn-primary:hover{background-color:#2563eb!important}.dark .btn-secondary{background-color:#6b7280!important;color:#fff!important}.dark .btn-secondary:hover{background-color:#4b5563!important}.dark .file-item,.dark .diff-item{background-color:#404040!important;border-color:#555!important}.dark .section-title,.dark .commit-meta,.dark .commit-info{color:#e0e0e0!important}.dark .commit-hash{color:#9ca3af!important}.dark .commit-author{color:#d1d5db!important}.dark .commit-date{color:#9ca3af!important}.dark .commit-message{color:#e0e0e0!important}.dark .file-name,.dark .diff-file-name{color:#d1d5db!important}.dark .diff-stats{color:#9ca3af!important}.container{max-width:1200px;margin:0 auto;padding:0 1rem}.flex{display:flex}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.space-x-4>*+*{margin-left:1rem}.space-y-4>*+*{margin-top:1rem}.btn{padding:.5rem 1rem;border:none;border-radius:.375rem;cursor:pointer;font-size:.875rem;transition:all .2s;margin-right:.5rem}.btn:last-child{margin-right:0}.flex.items-center{gap:.5rem}.btn-primary{background-color:#3b82f6;color:#fff}.btn-primary:hover{background-color:#2563eb}.btn-secondary{background-color:#6b7280;color:#fff}.btn-secondary:hover{background-color:#4b5563}.card{background-color:#fff;border-radius:.5rem;box-shadow:0 1px 3px #0000001a;padding:1.5rem}.dark .card{background-color:#2d2d2d;color:#e0e0e0}.commit-node{cursor:pointer;transition:all .2s ease}.commit-node:hover{stroke-width:3px}.branch-line{stroke-width:2px}.diff-line{font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:12px;line-height:1.4}.diff-line.added{background-color:#dcfce7;color:#166534}.diff-line.removed{background-color:#fee2e2;color:#991b1b}.dark .diff-line.added{background-color:#14532d;color:#bbf7d0}.dark .diff-line.removed{background-color:#7f1d1d;color:#fecaca}
|