PageSourceSearch

https://phasetwo-angular-example.vercel.app/main-I24ILH2N.js

js phasetwo-angular-example.vercel.app collected 2026-10-03 07:28:59 UTC 271,927 bytes, 9 lines download raw bytes

1var cp=Object.defineProperty,up=Object.defineProperties;var lp=Object.getOwnPropertyDescriptors;var tu=Object.getOwnPropertySymbols;var dp=Object.prototype.hasOwnProperty,fp=Object.prototype.propertyIsEnumerable;var nu=(t,e,r)=>e in t?cp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,w=(t,e)=>{for(var r in e||={})dp.call(e,r)&&nu(t,r,e[r]);if(tu)for(var r of tu(e))fp.call(e,r)&&nu(t,r,e[r]);return t},K=(t,e)=>up(t,lp(e));var $e=(t,e,r)=>new Promise((n,o)=>{var i=c=>{try{a(r.next(c))}catch(u){o(u)}},s=c=>{try{a(r.throw(c))}catch(u){o(u)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(i,s);a((r=r.apply(t,e)).next())});var Vi=null;var Ui=1,ru=Symbol("SIGNAL");function L(t){let e=Vi;return Vi=t,e}function ou(){return Vi}var $i={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function hp(t){if(!(Gi(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===Ui)){if(!t.producerMustRecompute(t)&&!Hi(t)){t.dirty=!1,t.lastCleanEpoch=Ui;return}t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=Ui}}function Bi(t){return t&&(t.nextProducerIndex=0),L(t)}function iu(t,e){if(L(e),!(!t||t.producerNode===void 0||t.producerIndexOfThis===void 0||t.producerLastReadVersion===void 0)){if(Gi(t))for(let r=t.nextProducerIndex;r<t.producerNode.length;r++)qi(t.producerNode[r],t.producerIndexOfThis[r]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function Hi(t){Wi(t);for(let e=0;e<t.producerNode.length;e++){let r=t.producerNode[e],n=t.producerLastReadVersion[e];if(n!==r.version||(hp(r),n!==r.version))return!0}return!1}function zi(t){if(Wi(t),Gi(t))for(let e=0;e<t.producerNode.length;e++)qi(t.producerNode[e],t.producerIndexOfThis[e]);t.producerNode.length=t.producerLastReadVersion.length=t.producerIndexOfThis.length=0,t.liveConsumerNode&&(t.liveConsumerNode.length=t.liveConsumerIndexOfThis.length=0)}function qi(t,e){if(pp(t),t.liveConsumerNode.length===1&&gp(t))for(let n=0;n<t.producerNode.length;n++)qi(t.producerNode[n],t.producerIndexOfThis[n]);let r=t.liveConsumerNode.length-1;if(t.liveConsumerNode[e]=t.liveConsumerNode[r],t.liveConsumerIndexOfThis[e]=t.liveConsumerIndexOfThis[r],t.liveConsumerNode.length--,t.liveConsumerIndexOfThis.length--,e<t.liveConsumerNode.length){let n=t.liveConsumerIndexOfThis[e],o=t.liveConsumerNode[e];Wi(o),o.producerIndexOfThis[n]=e}}function Gi(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0}function Wi(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function pp(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function gp(t){return t.producerNode!==void 0}function mp(){throw new Error}var vp=mp;function su(t){vp=t}function x(t){return typeof t=="function"}function st(t){let r=t(n=>{Error.call(n),n.stack=new Error().stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Br=st(t=>function(r){t(this),this.message=r?`${r.length} errors occurred during unsubscription:
2${r.map((n,o)=>`${o+1}) ${n.toString()}`).join(`
3  `)}`:"",this.name="UnsubscriptionError",this.errors=r});function Et(t,e){if(t){let r=t.indexOf(e);0<=r&&t.splice(r,1)}}var Q=class t{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;let{_parentage:r}=this;if(r)if(this._parentage=null,Array.isArray(r))for(let i of r)i.remove(this);else r.remove(this);let{initialTeardown:n}=this;if(x(n))try{n()}catch(i){e=i instanceof Br?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{au(i)}catch(s){e=e??[],s instanceof Br?e=[...e,...s.errors]:e.push(s)}}if(e)throw new Br(e)}}add(e){var r;if(e&&e!==this)if(this.closed)au(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}}_hasParent(e){let{_parentage:r}=this;return r===e||Array.isArray(r)&&r.includes(e)}_addParent(e){let{_parentage:r}=this;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e}_removeParent(e){let{_parentage:r}=this;r===e?this._parentage=null:Array.isArray(r)&&Et(r,e)}remove(e){let{_finalizers:r}=this;r&&Et(r,e),e instanceof t&&e._removeParent(this)}};Q.EMPTY=(()=>{let t=new Q;return t.closed=!0,t})();var Zi=Q.EMPTY;function Hr(t){return t instanceof Q||t&&"closed"in t&&x(t.remove)&&x(t.add)&&x(t.unsubscribe)}function au(t){x(t)?t():t.unsubscribe()}var Ae={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNext
vendor: 9,007 bytes, line 3
3Context:!1};var Xt={setTimeout(t,e,...r){let{delegate:n}=Xt;return n?.setTimeout?n.setTimeout(t,e,...r):setTimeout(t,e,...r)},clearTimeout(t){let{delegate:e}=Xt;return(e?.clearTimeout||clearTimeout)(t)},delegate:void 0};function zr(t){Xt.setTimeout(()=>{let{onUnhandledError:e}=Ae;if(e)e(t);else throw t})}function Ct(){}var cu=Qi("C",void 0,void 0);function uu(t){return Qi("E",void 0,t)}function lu(t){return Qi("N",t,void 0)}function Qi(t,e,r){return{kind:t,value:e,error:r}}var St=null;function en(t){if(Ae.useDeprecatedSynchronousErrorHandling){let e=!St;if(e&&(St={errorThrown:!1,error:null}),t(),e){let{errorThrown:r,error:n}=St;if(St=null,r)throw n}}else t()}function du(t){Ae.useDeprecatedSynchronousErrorHandling&&St&&(St.errorThrown=!0,St.error=t)}var Tt=class extends Q{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Hr(e)&&e.add(this)):this.destination=Dp}static create(e,r,n){return new tn(e,r,n)}next(e){this.isStopped?Ki(lu(e),this):this._next(e)}error(e){this.isStopped?Ki(uu(e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Ki(cu,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},yp=Function.prototype.bind;function Yi(t,e){return yp.call(t,e)}var Ji=class{constructor(e){this.partialObserver=e}next(e){let{partialObserver:r}=this;if(r.next)try{r.next(e)}catch(n){qr(n)}}error(e){let{partialObserver:r}=this;if(r.error)try{r.error(e)}catch(n){qr(n)}else qr(e)}complete(){let{partialObserver:e}=this;if(e.complete)try{e.complete()}catch(r){qr(r)}}},tn=class extends Tt{constructor(e,r,n){super();let o;if(x(e)||!e)o={next:e??void 0,error:r??void 0,complete:n??void 0};else{let i;this&&Ae.useDeprecatedNextContext?(i=Object.create(e),i.unsubscribe=()=>this.unsubscribe(),o={next:e.next&&Yi(e.next,i),error:e.error&&Yi(e.error,i),complete:e.complete&&Yi(e.complete,i)}):o=e}this.destination=new Ji(o)}};function qr(t){Ae.useDeprecatedSynchronousErrorHandling?du(t):zr(t)}function wp(t){throw t}function Ki(t,e){let{onStoppedNotification:r}=Ae;r&&Xt.setTimeout(()=>r(t,e))}var Dp={closed:!0,next:Ct,error:wp,complete:Ct};var nn=typeof Symbol=="function"&&Symbol.observable||"@@observable";function be(t){return t}function Xi(...t){return es(t)}function es(t){return t.length===0?be:t.length===1?t[0]:function(r){return t.reduce((n,o)=>o(n),r)}}var O=(()=>{class t{constructor(r){r&&(this._subscribe=r)}lift(r){let n=new t;return n.source=this,n.operator=r,n}subscribe(r,n,o){let i=bp(r)?r:new tn(r,n,o);return en(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(r){try{return this._subscribe(r)}catch(n){r.error(n)}}forEach(r,n){return n=fu(n),new n((o,i)=>{let s=new tn({next:a=>{try{r(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(r){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(r)}[nn](){return this}pipe(...r){return es(r)(this)}toPromise(r){return r=fu(r),new r((n,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>n(i))})}}return t.create=e=>new t(e),t})();function fu(t){var e;return(e=t??Ae.Promise)!==null&&e!==void 0?e:Promise}function Ip(t){return t&&x(t.next)&&x(t.error)&&x(t.complete)}function bp(t){return t&&t instanceof Tt||Ip(t)&&Hr(t)}function ts(t){return x(t?.lift)}function N(t){return e=>{if(ts(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function _(t,e,r,n,o){return new ns(t,e,r,n,o)}var ns=class extends Tt{constructor(e,r,n,o,i,s){super(e),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=r?function(a){try{r(a)}catch(c){e.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){e.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:r}=this;super.unsubscribe(),!r&&((e=this.onFinalize)===null||e===void 0||e.call(this))}}};function rn(){return N((t,e)=>{let r=null;t._refCount++;let n=_(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){r=null;return}let o=t._connection,i=r;r=null,o&&(!i||o===i)&&o.unsubscribe(),e.unsubscribe()});t.subscribe(n),n.closed||(r=t.connect())})}var on=class extends O{constructor(e,r){super(),this.source=e,this.subjectFactory=r,this._subject=null,this._refCount=0,this._connection=null,ts(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){let e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:e}=this;this._subject=this._connection=null,e?.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new Q;let r=this.getSubject();e.add(this.source.subscribe(_(r,void 0,()=>{this._teardown(),r.complete()},n=>{this._teardown(),r.error(n)},()=>this._teardown()))),e.closed&&(this._connection=null,e=Q.EMPTY)}return e}refCount(){return rn()(this)}};var hu=st(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var te=(()=>{class t extends O{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(r){let n=new Gr(this,this);return n.operator=r,n}_throwIfClosed(){if(this.closed)throw new hu}next(r){en(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(r)}})}error(r){en(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=r;let{observers:n}=this;for(;n.length;)n.shift().error(r)}})}complete(){en(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:r}=this;for(;r.length;)r.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0}_trySubscribe(r){return this._throwIfClosed(),super._trySubscribe(r)}_subscribe(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)}_innerSubscribe(r){let{hasError:n,isStopped:o,observers:i}=this;return n||o?Zi:(this.currentObservers=null,i.push(r),new Q(()=>{this.currentObservers=null,Et(i,r)}))}_checkFinalizedStatuses(r){let{hasError:n,thrownError:o,isStopped:i}=this;n?r.error(o):i&&r.complete()}asObservable(){let r=new O;return r.source=this,r}}return t.create=(e,r)=>new Gr(e,r),t})(),Gr=class extends te{constructor(e,r){super(),this.destination=e,this.source=r}next(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.next)===null||n===void 0||n.call(r,e)}error(e){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.error)===null||n===void 0||n.call(r,e)}complete(){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||r===void 0||r.call(e)}_subscribe(e){var r,n;return(n=(r=this.source)===null||r===void 0?void 0:r.subscribe(e))!==null&&n!==void 0?n:Zi}};var ne=class extends te{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){let r=super._subscribe(e);return!r.closed&&e.next(this._value),r}getValue(){let{hasError:e,thrownError:r,_value:n}=this;if(e)throw r;return this._throwIfClosed(),n}next(e){super.next(this._value=e)}};var rs={now(){return(rs.delegate||Date).now()},delegate:void 0};var Wr=class extends Q{constructor(e,r){super()}schedule(e,r=0){return this}};var Un={setInterval(t,e,...r){let{delegate:n}=Un;return n?.setInterval?n.setInterval(t,e,...r):setInterval(t,e,...r)},clearInterval(t){let{delegate:e}=Un;return(e?.clearInterval||clearInterval)(t)},delegate:void 0};var Zr=class extends Wr{constructor(e,r){super(e,r),this.scheduler=e,this.work=r,this.pending=!1}schedule(e,r=0){var n;if(this.closed)return this;this.state=e;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,r)),this.pending=!0,this.delay=r,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(i,this.id,r),this}requestAsyncId(e,r,n=0){return Un.setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,r,n=0){if(n!=null&&this.delay===n&&this.pending===!1)return r;r!=null&&Un.clearInterval(r)}execute(e,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let n=this._execute(e,r);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,r){let n=!1,o;try{this.work(e)}catch(i){n=!0,o=i||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:e,scheduler:r}=this,{actions:n}=r;
vendor: 4,581 bytes, line 3
3this.work=this.state=this.scheduler=null,this.pending=!1,Et(n,this),e!=null&&(this.id=this.recycleAsyncId(r,e,null)),this.delay=null,super.unsubscribe()}}};var sn=class t{constructor(e,r=t.now){this.schedulerActionCtor=e,this.now=r}schedule(e,r=0,n){return new this.schedulerActionCtor(this,e).schedule(n,r)}};sn.now=rs.now;var Qr=class extends sn{constructor(e,r=sn.now){super(e,r),this.actions=[],this._active=!1}flush(e){let{actions:r}=this;if(this._active){r.push(e);return}let n;this._active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=r.shift());if(this._active=!1,n){for(;e=r.shift();)e.unsubscribe();throw n}}};var Mt=new Qr(Zr),pu=Mt;var de=new O(t=>t.complete());function Yr(t){return t&&x(t.schedule)}function os(t){return t[t.length-1]}function gu(t){return x(os(t))?t.pop():void 0}function Be(t){return Yr(os(t))?t.pop():void 0}function mu(t,e){return typeof os(t)=="number"?t.pop():e}function yu(t,e,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function a(l){try{u(n.next(l))}catch(d){s(d)}}function c(l){try{u(n.throw(l))}catch(d){s(d)}}function u(l){l.done?i(l.value):o(l.value).then(a,c)}u((n=n.apply(t,e||[])).next())})}function vu(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function xt(t){return this instanceof xt?(this.v=t,this):new xt(t)}function wu(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,e||[]),o,i=[];return o={},a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(h){return function(p){return Promise.resolve(p).then(h,d)}}function a(h,p){n[h]&&(o[h]=function(m){return new Promise(function(v,I){i.push([h,m,v,I])>1||c(h,m)})},p&&(o[h]=p(o[h])))}function c(h,p){try{u(n[h](p))}catch(m){f(i[0][3],m)}}function u(h){h.value instanceof xt?Promise.resolve(h.value.v).then(l,d):f(i[0][2],h)}function l(h){c("next",h)}function d(h){c("throw",h)}function f(h,p){h(p),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Du(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof vu=="function"?vu(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(s){return new Promise(function(a,c){s=t[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},s)}}var Kr=t=>t&&typeof t.length=="number"&&typeof t!="function";function Jr(t){return x(t?.then)}function Xr(t){return x(t[nn])}function eo(t){return Symbol.asyncIterator&&x(t?.[Symbol.asyncIterator])}function to(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function Ep(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var no=Ep();function ro(t){return x(t?.[no])}function oo(t){return wu(this,arguments,function*(){let r=t.getReader();try{for(;;){let{value:n,done:o}=yield xt(r.read());if(o)return yield xt(void 0);yield yield xt(n)}}finally{r.releaseLock()}})}function io(t){return x(t?.getReader)}function V(t){if(t instanceof O)return t;if(t!=null){if(Xr(t))return Cp(t);if(Kr(t))return Sp(t);if(Jr(t))return Tp(t);if(eo(t))return Iu(t);if(ro(t))return Mp(t);if(io(t))return xp(t)}throw to(t)}function Cp(t){return new O(e=>{let r=t[nn]();if(x(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Sp(t){return new O(e=>{for(let r=0;r<t.length&&!e.closed;r++)e.next(t[r]);e.complete()})}function Tp(t){return new O(e=>{t.then(r=>{e.closed||(e.next(r),e.complete())},r=>e.error(r)).then(null,zr)})}function Mp(t){return new O(e=>{for(let r of t)if(e.next(r),e.closed)return;e.complete()})}function Iu(t){return new O(e=>{_p(t,e).catch(r=>e.error(r))})}function xp(t){return Iu(oo(t))}function _p(t,e){var r,n,o,i;return yu(this,void 0,void 0,function*(){try{for(r=Du(t);n=yield r.next(),!n.done;){let s=n.value;if(e.next(s),e.closed)return}}catch(s){o={error:s}}finally{try{n&&!n.done&&(i=r.return)&&(yield i.call(r))}finally{if(o)throw o.error}}e.complete()})}
vendor: 5,001 bytes, line 3
3function ae(t,e,r,n=0,o=!1){let i=e.schedule(function(){r(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(i),!o)return i}function so(t,e=0){return N((r,n)=>{r.subscribe(_(n,o=>ae(n,t,()=>n.next(o),e),()=>ae(n,t,()=>n.complete(),e),o=>ae(n,t,()=>n.error(o),e)))})}function ao(t,e=0){return N((r,n)=>{n.add(t.schedule(()=>r.subscribe(n),e))})}function bu(t,e){return V(t).pipe(ao(e),so(e))}function Eu(t,e){return V(t).pipe(ao(e),so(e))}function Cu(t,e){return new O(r=>{let n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function Su(t,e){return new O(r=>{let n;return ae(r,e,()=>{n=t[no](),ae(r,e,()=>{let o,i;try{({value:o,done:i}=n.next())}catch(s){r.error(s);return}i?r.complete():r.next(o)},0,!0)}),()=>x(n?.return)&&n.return()})}function co(t,e){if(!t)throw new Error("Iterable cannot be null");return new O(r=>{ae(r,e,()=>{let n=t[Symbol.asyncIterator]();ae(r,e,()=>{n.next().then(o=>{o.done?r.complete():r.next(o.value)})},0,!0)})})}function Tu(t,e){return co(oo(t),e)}function Mu(t,e){if(t!=null){if(Xr(t))return bu(t,e);if(Kr(t))return Cu(t,e);if(Jr(t))return Eu(t,e);if(eo(t))return co(t,e);if(ro(t))return Su(t,e);if(io(t))return Tu(t,e)}throw to(t)}function z(t,e){return e?Mu(t,e):V(t)}function b(...t){let e=Be(t);return z(t,e)}function He(t,e){let r=x(t)?t:()=>t,n=o=>o.error(r());return new O(e?o=>e.schedule(n,0,o):n)}function is(t){return!!t&&(t instanceof O||x(t.lift)&&x(t.subscribe))}var Ye=st(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function uo(t){return t instanceof Date&&!isNaN(t)}var Ap=st(t=>function(r=null){t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=r});function ss(t,e){let{first:r,each:n,with:o=Np,scheduler:i=e??Mt,meta:s=null}=uo(t)?{first:t}:typeof t=="number"?{each:t}:t;if(r==null&&n==null)throw new TypeError("No timeout provided.");return N((a,c)=>{let u,l,d=null,f=0,h=p=>{l=ae(c,i,()=>{try{u.unsubscribe(),V(o({meta:s,lastValue:d,seen:f})).subscribe(c)}catch(m){c.error(m)}},p)};u=a.subscribe(_(c,p=>{l?.unsubscribe(),f++,c.next(d=p),n>0&&h(n)},void 0,void 0,()=>{l?.closed||l?.unsubscribe(),d=null})),!f&&h(r!=null?typeof r=="number"?r:+r-i.now():n)})}function Np(t){throw new Ap(t)}function M(t,e){return N((r,n)=>{let o=0;r.subscribe(_(n,i=>{n.next(t.call(e,i,o++))}))})}var{isArray:Rp}=Array;function kp(t,e){return Rp(e)?t(...e):t(e)}function xu(t){return M(e=>kp(t,e))}var{isArray:Op}=Array,{getPrototypeOf:Pp,prototype:Fp,keys:Lp}=Object;function _u(t){if(t.length===1){let e=t[0];if(Op(e))return{args:e,keys:null};if(jp(e)){let r=Lp(e);return{args:r.map(n=>e[n]),keys:r}}}return{args:t,keys:null}}function jp(t){return t&&typeof t=="object"&&Pp(t)===Fp}function Au(t,e){return t.reduce((r,n,o)=>(r[n]=e[o],r),{})}function an(...t){let e=Be(t),r=gu(t),{args:n,keys:o}=_u(t);if(n.length===0)return z([],e);let i=new O(Up(n,e,o?s=>Au(o,s):be));return r?i.pipe(xu(r)):i}function Up(t,e,r=be){return n=>{Nu(e,()=>{let{length:o}=t,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)Nu(e,()=>{let u=z(t[c],e),l=!1;u.subscribe(_(n,d=>{i[c]=d,l||(l=!0,a--),a||n.next(r(i.slice()))},()=>{--s||n.complete()}))},n)},n)}}function Nu(t,e,r){t?ae(r,t,e):e()}function Ru(t,e,r,n,o,i,s,a){let c=[],u=0,l=0,d=!1,f=()=>{d&&!c.length&&!u&&e.complete()},h=m=>u<n?p(m):c.push(m),p=m=>{i&&e.next(m),u++;let v=!1;V(r(m,l++)).subscribe(_(e,I=>{o?.(I),i?h(I):e.next(I)},()=>{v=!0},void 0,()=>{if(v)try{for(u--;c.length&&u<n;){let I=c.shift();s?ae(e,s,()=>p(I)):p(I)}f()}catch(I){e.error(I)}}))};return t.subscribe(_(e,h,()=>{d=!0,f()})),()=>{a?.()}}function W(t,e,r=1/0){return x(e)?W((n,o)=>M((i,s)=>e(n,i,o,s))(V(t(n,o))),r):(typeof e=="number"&&(r=e),N((n,o)=>Ru(n,o,t,r)))}function Vn(t=1/0){return W(be,t)}function ku(){return Vn(1)}function at(...t){return ku()(z(t,Be(t)))}function lo(t){return new O(e=>{V(t()).subscribe(e)})}function Ou(t=0,e,r=pu){let n=-1;return e!=null&&(Yr(e)?r=e:n=e),new O(o=>{let i=uo(t)?+t-r.now():t;i<0&&(i=0);let s=0;return r.schedule(function(){o.closed||(o.next(s++),0<=n?this.schedule(void 0,n):o.complete())},i)})}function as(...t){let e=Be(t),r=mu(t,1/0),n=t;return n.length?n.length===1?V(n[0]):Vn(r)(z(n,e)):de}var{isArray:Vp}=Array;function Pu(t){return t.length===1&&Vp(t[0])?t[0]:t}function B(t,e){return N((r,n)=>{let o=0;r.subscribe(_(n,i=>t.call(e,i,o++)&&n.next(i)))})}function cs(...t){return t=Pu(t),t.length===1?V(t[0]):new O($p(t))}function $p(t){return e=>{let r=[];for(let n=0;r&&!e.closed&&n<t.length;n++)r.push(V(t[n]).subscribe(_(e,o=>{if(r){for(let i=0;i<r.length;i++)i!==n&&r[i].unsubscribe();r=null}e.next(o)})))}}function me(t){return N((e,r)=>{let n=null,o=!1,i;n=e.subscribe(_(r,void 0,void 0,s=>{i=V(t(s,me(t)(e))),n?(n.unsubscribe(),n=null,i.subscribe(r)):o=!0})),o&&(n.unsubscribe(),n=null,i.subscribe(r))})}function Fu(t,e,r,n,o){return(i,s)=>{let a=r,c=e,u=0;i.subscribe(_(s,l=>{let d=u++;c=a?t(c,l,d):(a=!0,l),n&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()}
3)))}}function ct(t,e){return x(e)?W(t,e,1):W(t,1)}function us(t,e=Mt){return N((r,n)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let u=i;i=null,n.next(u)}};function c(){let u=s+t,l=e.now();if(l<u){o=this.schedule(void 0,u-l),n.add(o);return}a()}r.subscribe(_(n,u=>{i=u,s=e.now(),o||(o=e.schedule(c,t),n.add(o))},()=>{a(),n.complete()},void 0,()=>{i=o=null}))})}function ut(t){return N((e,r)=>{let n=!1;e.subscribe(_(r,o=>{n=!0,r.next(o)},()=>{n||r.next(t),r.complete()}))})}function ve(t){return t<=0?()=>de:N((e,r)=>{let n=0;e.subscribe(_(r,o=>{++n<=t&&(r.next(o),t<=n&&r.complete())}))})}function Lu(){return N((t,e)=>{t.subscribe(_(e,Ct))})}function $n(t){return M(()=>t)}function ls(t,e){return e?r=>at(e.pipe(ve(1),Lu()),r.pipe(ls(t))):W((r,n)=>V(t(r,n)).pipe(ve(1),$n(r)))}function Bn(t,e=Mt){let r=Ou(t,e);return ls(()=>r)}function fo(t=Bp){return N((e,r)=>{let n=!1;e.subscribe(_(r,o=>{n=!0,r.next(o)},()=>n?r.complete():r.error(t())))})}function Bp(){return new Ye}function _t(t){return N((e,r)=>{try{e.subscribe(r)}finally{r.add(t)}})}function ye(t,e){let r=arguments.length>=2;return n=>n.pipe(t?B((o,i)=>t(o,i,n)):be,ve(1),r?ut(e):fo(()=>new Ye))}function cn(t){return t<=0?()=>de:N((e,r)=>{let n=[];e.subscribe(_(r,o=>{n.push(o),t<n.length&&n.shift()},()=>{for(let o of n)r.next(o);r.complete()},void 0,()=>{n=null}))})}function ds(t,e){let r=arguments.length>=2;return n=>n.pipe(t?B((o,i)=>t(o,i,n)):be,cn(1),r?ut(e):fo(()=>new Ye))}function fs(t,e){return N(Fu(t,e,arguments.length>=2,!0))}function hs(...t){let e=Be(t);return N((r,n)=>{(e?at(t,r,e):at(t,r)).subscribe(n)})}function fe(t,e){return N((r,n)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&n.complete();r.subscribe(_(n,c=>{o?.unsubscribe();let u=0,l=i++;V(t(c,l)).subscribe(o=_(n,d=>n.next(e?e(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function ps(t){return N((e,r)=>{V(t).subscribe(_(r,()=>r.complete(),Ct)),!r.closed&&e.subscribe(r)})}function J(t,e,r){let n=x(t)||e||r?{next:t,error:e,complete:r}:t;return n?N((o,i)=>{var s;(s=n.subscribe)===null||s===void 0||s.call(n);let a=!0;o.subscribe(_(i,c=>{var u;(u=n.next)===null||u===void 0||u.call(n,c),i.next(c)},()=>{var c;a=!1,(c=n.complete)===null||c===void 0||c.call(n),i.complete()},c=>{var u;a=!1,(u=n.error)===null||u===void 0||u.call(n,c),i.error(c)},()=>{var c,u;a&&((c=n.unsubscribe)===null||c===void 0||c.call(n)),(u=n.finalize)===null||u===void 0||u.call(n)}))}):be}var Hp="https://g.co/ng/security#xss",S=class extends Error{constructor(e,r){super(jo(e,r)),this.code=e}};function jo(t,e){return`${`NG0${Math.abs(t)}`}${e?": "+e:""}`}function ua(t){return{toString:t}.toString()}function $(t){for(let e in t)if(t[e]===$)return e;throw Error("Could not find renamed property on target object.")}function we(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(we).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let e=t.toString();if(e==null)return""+e;let r=e.indexOf(`
4`);return r===-1?e:e.substring(0,r)}function Ms(t,e){return t==null||t===""?e===null?"":e:e==null||e===""?t:t+" "+e}var zp=$({__forward_ref__:$});function yl(t){return t.__forward_ref__=yl,t.toString=function(){return we(this())},t}function Te(t){return wl(t)?t():t}function wl(t){return typeof t=="function"&&t.hasOwnProperty(zp)&&t.__forward_ref__===yl}function E(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Uo(t){return ju(t,Il)||ju(t,bl)}function Dl(t){return Uo(t)!==null}function ju(t,e){return t.hasOwnProperty(e)?t[e]:null}function qp(t){let e=t&&(t[Il]||t[bl]);return e||null}function Uu(t){return t&&(t.hasOwnProperty(Vu)||t.hasOwnProperty(Gp))?t[Vu]:null}var Il=$({\u0275prov:$}),Vu=$({\u0275inj:$}),bl=$({ngInjectableDef:$}),Gp=$({ngInjectorDef:$}),C=class{constructor(e,r){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof r=="number"?this.__NG_ELEMENT_ID__=r:r!==void 0&&(this.\u0275prov=E({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function El(t){return t&&!!t.\u0275providers}var Wp=$({\u0275cmp:$}),Zp=$({\u0275dir:$}),Qp=$({\u0275pipe:$}),Yp=$({\u0275mod:$}),yo=$({\u0275fac:$}),zn=$({__NG_ELEMENT_ID__:$}),$u=$({__NG_ENV_ID__:$});function Cl(t){return typeof t=="string"?t:t==null?"":String(t)}function Kp(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.n
4ame||t.type.toString():Cl(t)}function Jp(t,e){let r=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new S(-200,t)}function la(t,e){throw new S(-201,!1)}var R=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(R||{}),xs;function Sl(){return xs}function Se(t){let e=xs;return xs=t,e}function Tl(t,e,r){let n=Uo(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(r&R.Optional)return null;if(e!==void 0)return e;la(t,"Injector")}var Xp={},qn=Xp,eg="__NG_DI_FLAG__",wo="ngTempTokenPath",tg="ngTokenPath",ng=/\n/gm,rg="\u0275",Bu="__source",fn;function og(){return fn}function lt(t){let e=fn;return fn=t,e}function ig(t,e=R.Default){if(fn===void 0)throw new S(-203,!1);return fn===null?Tl(t,void 0,e):fn.get(t,e&R.Optional?null:void 0,e)}function D(t,e=R.Default){return(Sl()||ig)(Te(t),e)}function g(t,e=R.Default){return D(t,Vo(e))}function Vo(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function _s(t){let e=[];for(let r=0;r<t.length;r++){let n=Te(t[r]);if(Array.isArray(n)){if(n.length===0)throw new S(900,!1);let o,i=R.Default;for(let s=0;s<n.length;s++){let a=n[s],c=sg(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}e.push(D(o,i))}else e.push(D(n))}return e}function sg(t){return t[eg]}function ag(t,e,r,n){let o=t[wo];throw e[Bu]&&o.unshift(e[Bu]),t.message=cg(`
5`+t.message,o,r,n),t[tg]=o,t[wo]=null,t}function cg(t,e,r,n=null){t=t&&t.charAt(0)===`
6`&&t.charAt(1)==rg?t.slice(2):t;let o=we(e);if(Array.isArray(e))o=e.map(we).join(" -> ");else if(typeof e=="object"){let i=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):we(a)))}o=`{${i.join(", ")}}`}return`${r}${n?"("+n+")":""}[${o}]: ${t.replace(ng,`
7  `)}`}function pn(t,e){let r=t.hasOwnProperty(yo);return r?t[yo]:null}function da(t,e){t.forEach(r=>Array.isArray(r)?da(r,e):e(r))}function Ml(t,e,r){e>=t.length?t.push(r):t.splice(e,0,r)}function Do(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function ug(t,e,r,n){let o=t.length;if(o==e)t.push(r,n);else if(o===1)t.push(n,t[0]),t[0]=r;else{for(o--,t.push(t[o-1],t[o]);o>e;){let i=o-2;t[o]=t[i],o--}t[e]=r,t[e+1]=n}}function fa(t,e,r){let n=nr(t,e);return n>=0?t[n|1]=r:(n=~n,ug(t,n,e,r)),n}function gs(t,e){let r=nr(t,e);if(r>=0)return t[r|1]}function nr(t,e){return lg(t,e,1)}function lg(t,e,r){let n=0,o=t.length>>r;for(;o!==n;){let i=n+(o-n>>1),s=t[i<<r];if(e===s)return i<<r;s>e?o=i:n=i+1}return~(o<<r)}var Gn={},Ke=[],gn=new C(""),xl=new C("",-1),_l=new C(""),Io=class{get(e,r=qn){if(r===qn){let n=new Error(`NullInjectorError: No provider for ${we(e)}!`);throw n.name="NullInjectorError",n}return r}},Al=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(Al||{}),Ge=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(Ge||{}),ft=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(ft||{});function dg(t,e,r){let n=t.length;for(;;){let o=t.indexOf(e,r);if(o===-1)return o;if(o===0||t.charCodeAt(o-1)<=32){let i=e.length;if(o+i===n||t.charCodeAt(o+i)<=32)return o}r=o+1}}function As(t,e,r){let n=0;for(;n<r.length;){let o=r[n];if(typeof o=="number"){if(o!==0)break;n++;let i=r[n++],s=r[n++],a=r[n++];t.setAttribute(e,s,a,i)}else{let i=o,s=r[++n];hg(i)?t.setProperty(e,i,s):t.setAttribute(e,i,s),n++}}return n}function fg(t){return t===3||t===4||t===6}function hg(t){return t.charCodeAt(0)===64}function ha(t,e){if(!(e===null||e.length===0))if(t===null||t.length===0)t=e.slice();else{let r=-1;for(let n=0;n<e.length;n++){let o=e[n];typeof o=="number"?r=o:r===0||(r===-1||r===2?Hu(t,r,o,null,e[++n]):Hu(t,r,o,null,null))}}return t}function Hu(t,e,r,n,o){let i=0,s=t.length;if(e===-1)s=-1;else for(;i<t.length;){let a=t[i++];if(typeof a=="number"){if(a===e){s=-1;break}else if(a>e){s=i-1;break}}}for(;i<t.length;){let a=t[i];if(typeof a=="number")break;if(a===r){if(n===null){o!==null&&(t[i+1]=o);return}else if(n===t[i+1]){t[i+2]=o;return}}i++,n!==null&&i++,o!==null&&i++}s!==-1&&(t.splice(s,0,e),i=s+1),t.splice(i++,0,r),n!==null&&t.splice(i++,0,n),o!==null&&t.splice(i++,0,o)}var Nl="ng-template";function pg(t,e,r,n){let o=0;if(n){for(;o<e.length&&typeof e[o]=="string";o+=2)if(e[o]==="class"&&dg(e[o+1].toLowerCase(),r,0)!==-1)return!0}else if(pa(t))return!1;if(o=e.indexOf(1,o),o>-1){let i;for(;++o<e.length&&typeof(i=e[o])=="string";)if(i.toLowerCase()===r)return!0}return!1}function pa(t){return t.type===4&&t.value!==Nl}function gg(t,e,r){let n=t.type===4&&!r?Nl:t.value;return e===n}function mg(t,e,r){let n=4,o=t.attrs,i=o!==null?wg(o):0,s=!1;for(let a=0;a<e.length;a++){let c=e[a];if(typeof c=="number"){if(!s&&!Ne(n)&&!Ne(c))return!1;if(s&&Ne(c))continue;s=!1,n=c|n&1;continue}if(!s)if(n&4){if(n=2|n&1,c!==""&&!gg(t,c,r)||c===""&&e.length===1){if(Ne(n))return!1;s=!0}}else if(n&8){if(o===null||!pg(t,o,c,r)){if(Ne(n))return!1;s=!0}}else{let u=e[++a],l=vg(c,o,pa(t),r);if(l===-1){if(Ne(n))return!1;s=!0;continue}if(u!==""){let d;if(l>i?d="":d=o[l+1].toLowerCase(),n&2&&u!==d){if(Ne(n))return!1;s=!0}}}}return Ne(n)||s}function Ne(t){return(t&1)===0}function vg(t,e,r,n){if(e===null)return-1;let o=0;if(n||!r){let i=!1;for(;o<e.length;){let s=e[o];if(s===t)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=e[++o];for(;
7typeof a=="string";)a=e[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return Dg(e,t)}function yg(t,e,r=!1){for(let n=0;n<e.length;n++)if(mg(t,e[n],r))return!0;return!1}function wg(t){for(let e=0;e<t.length;e++){let r=t[e];if(fg(r))return e}return t.length}function Dg(t,e){let r=t.indexOf(4);if(r>-1)for(r++;r<t.length;){let n=t[r];if(typeof n=="number")return-1;if(n===e)return r;r++}return-1}function zu(t,e){return t?":not("+e.trim()+")":e}function Ig(t){let e=t[0],r=1,n=2,o="",i=!1;for(;r<t.length;){let s=t[r];if(typeof s=="string")if(n&2){let a=t[++r];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else n&8?o+="."+s:n&4&&(o+=" "+s);else o!==""&&!Ne(s)&&(e+=zu(i,o),o=""),n=s,i=i||!Ne(n);r++}return o!==""&&(e+=zu(i,o)),e}function bg(t){return t.map(Ig).join(",")}function Eg(t){let e=[],r=[],n=1,o=2;for(;n<t.length;){let i=t[n];if(typeof i=="string")o===2?i!==""&&e.push(i,t[++n]):o===8&&r.push(i);else{if(!Ne(o))break;o=i}n++}return{attrs:e,classes:r}}function bn(t){return ua(()=>{let e=Fl(t),r=K(w({},e),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Al.OnPush,directiveDefs:null,pipeDefs:null,dependencies:e.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Ge.Emulated,styles:t.styles||Ke,_:null,schemas:t.schemas||null,tView:null,id:""});Ll(r);let n=t.dependencies;return r.directiveDefs=Gu(n,!1),r.pipeDefs=Gu(n,!0),r.id=Tg(r),r})}function Cg(t){return kt(t)||Rl(t)}function Sg(t){return t!==null}function qu(t,e){if(t==null)return Gn;let r={};for(let n in t)if(t.hasOwnProperty(n)){let o=t[n],i,s,a=ft.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),e?(r[i]=a!==ft.None?[n,a]:n,e[i]=s):r[i]=n}return r}function $o(t){return ua(()=>{let e=Fl(t);return Ll(e),e})}function kt(t){return t[Wp]||null}function Rl(t){return t[Zp]||null}function kl(t){return t[Qp]||null}function Ol(t){let e=kt(t)||Rl(t)||kl(t);return e!==null?e.standalone:!1}function Pl(t,e){let r=t[Yp]||null;if(!r&&e===!0)throw new Error(`Type ${we(t)} does not have '\u0275mod' property.`);return r}function Fl(t){let e={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputTransforms:null,inputConfig:t.inputs||Gn,exportAs:t.exportAs||null,standalone:t.standalone===!0,signals:t.signals===!0,selectors:t.selectors||Ke,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:qu(t.inputs,e),outputs:qu(t.outputs),debugInfo:null}}function Ll(t){t.features?.forEach(e=>e(t))}function Gu(t,e){if(!t)return null;let r=e?kl:Cg;return()=>(typeof t=="function"?t():t).map(n=>r(n)).filter(Sg)}function Tg(t){let e=0,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(let o of r)e=Math.imul(31,e)+o.charCodeAt(0)<<0;return e+=2147483648,"c"+e}function mt(t){return{\u0275providers:t}}function Mg(...t){return{\u0275providers:jl(!0,t),\u0275fromNgModule:!0}}function jl(t,...e){let r=[],n=new Set,o,i=s=>{r.push(s)};return da(e,s=>{let a=s;Ns(a,i,[],n)&&(o||=[],o.push(a))}),o!==void 0&&Ul(o,i),r}function Ul(t,e){for(let r=0;r<t.length;r++){let{ngModule:n,providers:o}=t[r];ga(o,i=>{e(i,n)})}}function Ns(t,e,r,n){if(t=Te(t),!t)return!1;let o=null,i=Uu(t),s=!i&&kt(t);if(!i&&!s){let c=t.ngModule;if(i=Uu(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=t}let a=n.has(o);if(s){if(a)return!1;if(n.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)Ns(u,e,r,n)}}else if(i){if(i.imports!=null&&!a){n.add(o);let u;try{da(i.imports,l=>{Ns(l,e,r,n)&&(u||=[],u.push(l))})}finally{}u!==void 0&&Ul(u,e)}
7if(!a){let u=pn(o)||(()=>new o);e({provide:o,useFactory:u,deps:Ke},o),e({provide:_l,useValue:o,multi:!0},o),e({provide:gn,useValue:()=>D(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=t;ga(c,l=>{e(l,u)})}}else return!1;return o!==t&&t.providers!==void 0}function ga(t,e){for(let r of t)El(r)&&(r=r.\u0275providers),Array.isArray(r)?ga(r,e):e(r)}var xg=$({provide:String,useValue:$});function Vl(t){return t!==null&&typeof t=="object"&&xg in t}function _g(t){return!!(t&&t.useExisting)}function Ag(t){return!!(t&&t.useFactory)}function Rs(t){return typeof t=="function"}var Bo=new C(""),po={},Ng={},ms;function ma(){return ms===void 0&&(ms=new Io),ms}var De=class{},Wn=class extends De{get destroyed(){return this._destroyed}constructor(e,r,n,o){super(),this.parent=r,this.source=n,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Os(e,s=>this.processProvider(s)),this.records.set(xl,un(void 0,this)),o.has("environment")&&this.records.set(De,un(void 0,this));let i=this.records.get(Bo);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(_l,Ke,R.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let e=L(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let r=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of r)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),L(e)}}onDestroy(e){return this.assertNotDestroyed(),this._onDestroyHooks.push(e),()=>this.removeOnDestroy(e)}runInContext(e){this.assertNotDestroyed();let r=lt(this),n=Se(void 0),o;try{return e()}finally{lt(r),Se(n)}}get(e,r=qn,n=R.Default){if(this.assertNotDestroyed(),e.hasOwnProperty($u))return e[$u](this);n=Vo(n);let o,i=lt(this),s=Se(void 0);try{if(!(n&R.SkipSelf)){let c=this.records.get(e);if(c===void 0){let u=Lg(e)&&Uo(e);u&&this.injectableDefInScope(u)?c=un(ks(e),po):c=null,this.records.set(e,c)}if(c!=null)return this.hydrate(e,c)}let a=n&R.Self?ma():this.parent;return r=n&R.Optional&&r===qn?null:r,a.get(e,r)}catch(a){if(a.name==="NullInjectorError"){if((a[wo]=a[wo]||[]).unshift(we(e)),i)throw a;return ag(a,e,"R3InjectorError",this.source)}else throw a}finally{Se(s),lt(i)}}resolveInjectorInitializers(){let e=L(null),r=lt(this),n=Se(void 0),o;try{let i=this.get(gn,Ke,R.Self);for(let s of i)s()}finally{lt(r),Se(n),L(e)}}toString(){let e=[],r=this.records;for(let n of r.keys())e.push(we(n));return`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new S(205,!1)}processProvider(e){e=Te(e);let r=Rs(e)?e:Te(e&&e.provide),n=kg(e);if(!Rs(e)&&e.multi===!0){let o=this.records.get(r);o||(o=un(void 0,po,!0),o.factory=()=>_s(o.multi),this.records.set(r,o)),r=e,o.multi.push(e)}this.records.set(r,n)}hydrate(e,r){let n=L(null);try{return r.value===po&&(r.value=Ng,r.value=r.factory()),typeof r.value=="object"&&r.value&&Fg(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{L(n)}}injectableDefInScope(e){if(!e.providedIn)return!1;let r=Te(e.providedIn);return typeof r=="string"?r==="any"||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(e){let r=this._onDestroyHooks.indexOf(e);r!==-1&&this._onDestroyHooks.splice(r,1)}};function ks(t){let e=Uo(t),r=e!==null?e.factory:pn(t);
7if(r!==null)return r;if(t instanceof C)throw new S(204,!1);if(t instanceof Function)return Rg(t);throw new S(204,!1)}function Rg(t){if(t.length>0)throw new S(204,!1);let r=qp(t);return r!==null?()=>r.factory(t):()=>new t}function kg(t){if(Vl(t))return un(void 0,t.useValue);{let e=Og(t);return un(e,po)}}function Og(t,e,r){let n;if(Rs(t)){let o=Te(t);return pn(o)||ks(o)}else if(Vl(t))n=()=>Te(t.useValue);else if(Ag(t))n=()=>t.useFactory(..._s(t.deps||[]));else if(_g(t))n=()=>D(Te(t.useExisting));else{let o=Te(t&&(t.useClass||t.provide));if(Pg(t))n=()=>new o(..._s(t.deps));else return pn(o)||ks(o)}return n}function un(t,e,r=!1){return{factory:t,value:e,multi:r?[]:void 0}}function Pg(t){return!!t.deps}function Fg(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function Lg(t){return typeof t=="function"||typeof t=="object"&&t instanceof C}function Os(t,e){for(let r of t)Array.isArray(r)?Os(r,e):r&&El(r)?Os(r.\u0275providers,e):e(r)}function Pe(t,e){t instanceof Wn&&t.assertNotDestroyed();let r,n=lt(t),o=Se(void 0);try{return e()}finally{lt(n),Se(o)}}function jg(){return Sl()!==void 0||og()!=null}function Ug(t){return typeof t=="function"}var et=0,P=1,T=2,pe=3,ke=4,Fe=5,bo=6,Eo=7,Oe=8,mn=9,Je=10,ce=11,Zn=12,Wu=13,En=14,We=15,vn=16,ln=17,yn=18,Ho=19,$l=20,dt=21,vs=22,Me=23,ht=25,Bl=1;var Ot=7,Co=8,So=9,xe=10,To=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(To||{});function Nt(t){return Array.isArray(t)&&typeof t[Bl]=="object"}function tt(t){return Array.isArray(t)&&t[Bl]===!0}function Hl(t){return(t.flags&4)!==0}function zo(t){return t.componentOffset>-1}function va(t){return(t.flags&1)===1}function rr(t){return!!t.template}function Ps(t){return(t[T]&512)!==0}var Fs=class{constructor(e,r,n){this.previousValue=e,this.currentValue=r,this.firstChange=n}isFirstChange(){return this.firstChange}};function zl(t,e,r,n){e!==null?e.applyValueToInputSignal(e,n):t[r]=n}function qo(){return ql}function ql(t){return t.type.prototype.ngOnChanges&&(t.setInput=$g),Vg}qo.ngInherit=!0;function Vg(){let t=Wl(this),e=t?.current;if(e){let r=t.previous;if(r===Gn)t.previous=e;else for(let n in e)r[n]=e[n];t.current=null,this.ngOnChanges(e)}}function $g(t,e,r,n,o){let i=this.declaredInputs[n],s=Wl(t)||Bg(t,{previous:Gn,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new Fs(u&&u.currentValue,r,c===Gn),zl(t,e,o,r)}var Gl="__ngSimpleChanges__";function Wl(t){return t[Gl]||null}function Bg(t,e){return t[Gl]=e}var Zu=null;var ze=function(t,e,r){Zu?.(t,e,r)},Zl="svg",Hg="math";function Ze(t){for(;Array.isArray(t);)t=t[et];return t}function Ql(t,e){return Ze(e[t])}function Le(t,e){return Ze(e[t.index])}function Yl(t,e){return t.data[e]}function $t(t,e){let r=e[t];return Nt(r)?r:r[et]}function ya(t){return(t[T]&128)===128}function zg(t){return tt(t[pe])}function Mo(t,e){return e==null?null:t[e]}function Kl(t){t[ln]=0}function Jl(t){t[T]&1024||(t[T]|=1024,ya(t)&&Go(t))}function qg(t,e){for(;t>0;)e=e[En],t--;return e}function Qn(t){return!!(t[T]&9216||t[Me]?.dirty)}function Ls(t){t[Je].changeDetectionScheduler?.notify(7),t[T]&64&&(t[T]|=1024),Qn(t)&&Go(t)}function Go(t){t[Je].changeDetectionScheduler?.notify(0);let e=Pt(t);for(;e!==null&&!(e[T]&8192||(e[T]|=8192,!ya(e)));)e=Pt(e)}function Xl(t,e){if((t[T]&256)===256)throw new S(911,!1);t[dt]===null&&(t[dt]=[]),t[dt].push(e)}function Gg(t,e){if(t[dt]===null)return;let r=t[dt].indexOf(e);r!==-1&&t[dt].splice(r,1)}function Pt(t){let e=t[pe];return tt(e)?e[pe]:e}var k={lFrame:ud(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var ed=!1;function Wg(){return k.lFrame.elementDepthCount}function Zg(){k.lFrame.elementDepthCount++}function Qg(){k.lFrame.elementDepthCount--}function td(){return k.bindingsEnabled}function Yg(){return k.skipHydrationRootTNode!==null}function Kg(t){return k.skipHydrationRootTNode===t}function Jg(){k.skipHydrationRootTNode=null}function X(){return k.lFrame.lView}function nt(){return k.lFrame.tView}function wa(t){return k.lFrame.contextLView=t,t[Oe]}function Da(t){return k.lFrame.contextLView=null,t}function je(){let t=nd();for(;t!==null&&t.type===64;)t=t.parent;return t}
vendor: 4,164 bytes, line 7
7function nd(){return k.lFrame.currentTNode}function Xg(){let t=k.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}function or(t,e){let r=k.lFrame;r.currentTNode=t,r.isParent=e}function rd(){return k.lFrame.isParent}function em(){k.lFrame.isParent=!1}function od(){return ed}function Qu(t){ed=t}function tm(t){return k.lFrame.bindingIndex=t}function id(){return k.lFrame.bindingIndex++}function nm(t){let e=k.lFrame,r=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,r}function rm(){return k.lFrame.inI18n}function om(t,e){let r=k.lFrame;r.bindingIndex=r.bindingRootIndex=t,js(e)}function im(){return k.lFrame.currentDirectiveIndex}function js(t){k.lFrame.currentDirectiveIndex=t}function sm(t){let e=k.lFrame.currentDirectiveIndex;return e===-1?null:t[e]}function sd(t){k.lFrame.currentQueryIndex=t}function am(t){let e=t[P];return e.type===2?e.declTNode:e.type===1?t[Fe]:null}function ad(t,e,r){if(r&R.SkipSelf){let o=e,i=t;for(;o=o.parent,o===null&&!(r&R.Host);)if(o=am(i),o===null||(i=i[En],o.type&10))break;if(o===null)return!1;e=o,t=i}let n=k.lFrame=cd();return n.currentTNode=e,n.lView=t,!0}function Ia(t){let e=cd(),r=t[P];k.lFrame=e,e.currentTNode=r.firstChild,e.lView=t,e.tView=r,e.contextLView=t,e.bindingIndex=r.bindingStartIndex,e.inI18n=!1}function cd(){let t=k.lFrame,e=t===null?null:t.child;return e===null?ud(t):e}function ud(t){let e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=e),e}function ld(){let t=k.lFrame;return k.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var dd=ld;function ba(){let t=ld();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function cm(t){return(k.lFrame.contextLView=qg(t,k.lFrame.contextLView))[Oe]}function Cn(){return k.lFrame.selectedIndex}function Ft(t){k.lFrame.selectedIndex=t}function fd(){let t=k.lFrame;return Yl(t.tView,t.selectedIndex)}function hd(){k.lFrame.currentNamespace=Zl}function pd(){um()}function um(){k.lFrame.currentNamespace=null}function lm(){return k.lFrame.currentNamespace}var gd=!0;function Ea(){return gd}function Ca(t){gd=t}function dm(t,e,r){let{ngOnChanges:n,ngOnInit:o,ngDoCheck:i}=e.type.prototype;if(n){let s=ql(e);(r.preOrderHooks??=[]).push(t,s),(r.preOrderCheckHooks??=[]).push(t,s)}o&&(r.preOrderHooks??=[]).push(0-t,o),i&&((r.preOrderHooks??=[]).push(t,i),(r.preOrderCheckHooks??=[]).push(t,i))}function Sa(t,e){for(let r=e.directiveStart,n=e.directiveEnd;r<n;r++){let i=t.data[r].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:u,ngOnDestroy:l}=i;s&&(t.contentHooks??=[]).push(-r,s),a&&((t.contentHooks??=[]).push(r,a),(t.contentCheckHooks??=[]).push(r,a)),c&&(t.viewHooks??=[]).push(-r,c),u&&((t.viewHooks??=[]).push(r,u),(t.viewCheckHooks??=[]).push(r,u)),l!=null&&(t.destroyHooks??=[]).push(r,l)}}function go(t,e,r){md(t,e,3,r)}function mo(t,e,r,n){(t[T]&3)===r&&md(t,e,r,n)}function ys(t,e){let r=t[T];(r&3)===e&&(r&=16383,r+=1,t[T]=r)}function md(t,e,r,n){let o=n!==void 0?t[ln]&65535:0,i=n??-1,s=e.length-1,a=0;for(let c=o;c<s;c++)if(typeof e[c+1]=="number"){if(a=e[c],n!=null&&a>=n)break}else e[c]<0&&(t[ln]+=65536),(a<i||i==-1)&&(fm(t,r,e,c),t[ln]=(t[ln]&4294901760)+c+2),c++}function Yu(t,e){ze(4,t,e);let r=L(null);try{e.call(t)}finally{L(r),ze(5,t,e)}}function fm(t,e,r,n){let o=r[n]<0,i=r[n+1],s=o?-r[n]:r[n],a=t[s];o?t[T]>>14<t[ln]>>16&&(t[T]&3)===e&&(t[T]+=16384,Yu(a,i)):Yu(a,i)}var hn=-1,Yn=class{constructor(e,r,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n}};function hm(t){return t instanceof Yn}function pm(t){return(t.flags&8)!==0}function gm(t){return(t.flags&16)!==0}var ws={},Us=class{constructor(e,r){this.injector=e,this.parentInjector=r}get(e,r,n){n=Vo(n);let o=this.injector.get(e,ws,n);return o!==ws||r===ws?o:this.parentInjector.get(e,r,n)}};function vd(t){return t!==hn}
7function xo(t){return t&32767}function mm(t){return t>>16}function _o(t,e){let r=mm(t),n=e;for(;r>0;)n=n[En],r--;return n}var Vs=!0;function Ku(t){let e=Vs;return Vs=t,e}var vm=256,yd=vm-1,wd=5,ym=0,qe={};function wm(t,e,r){let n;typeof r=="string"?n=r.charCodeAt(0)||0:r.hasOwnProperty(zn)&&(n=r[zn]),n==null&&(n=r[zn]=ym++);let o=n&yd,i=1<<o;e.data[t+(o>>wd)]|=i}function Dd(t,e){let r=Id(t,e);if(r!==-1)return r;let n=e[P];n.firstCreatePass&&(t.injectorIndex=e.length,Ds(n.data,t),Ds(e,null),Ds(n.blueprint,null));let o=Ta(t,e),i=t.injectorIndex;if(vd(o)){let s=xo(o),a=_o(o,e),c=a[P].data;for(let u=0;u<8;u++)e[i+u]=a[s+u]|c[s+u]}return e[i+8]=o,i}function Ds(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Id(t,e){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||e[t.injectorIndex+8]===null?-1:t.injectorIndex}function Ta(t,e){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let r=0,n=null,o=e;for(;o!==null;){if(n=Td(o),n===null)return hn;if(r++,o=o[En],n.injectorIndex!==-1)return n.injectorIndex|r<<16}return hn}function Dm(t,e,r){wm(t,e,r)}function bd(t,e,r){if(r&R.Optional||t!==void 0)return t;la(e,"NodeInjector")}function Ed(t,e,r,n){if(r&R.Optional&&n===void 0&&(n=null),!(r&(R.Self|R.Host))){let o=t[mn],i=Se(void 0);try{return o?o.get(e,n,r&R.Optional):Tl(e,n,r&R.Optional)}finally{Se(i)}}return bd(n,e,r)}function Cd(t,e,r,n=R.Default,o){if(t!==null){if(e[T]&2048&&!(n&R.Self)){let s=Sm(t,e,r,n,qe);if(s!==qe)return s}let i=Sd(t,e,r,n,qe);if(i!==qe)return i}return Ed(e,r,n,o)}function Sd(t,e,r,n,o){let i=Em(r);if(typeof i=="function"){if(!ad(e,t,n))return n&R.Host?bd(o,r,n):Ed(e,r,n,o);try{let s;if(s=i(n),s==null&&!(n&R.Optional))la(r);else return s}finally{dd()}}else if(typeof i=="number"){let s=null,a=Id(t,e),c=hn,u=n&R.Host?e[We][Fe]:null;for((a===-1||n&R.SkipSelf)&&(c=a===-1?Ta(t,e):e[a+8],c===hn||!Xu(n,!1)?a=-1:(s=e[P],a=xo(c),e=_o(c,e)));a!==-1;){let l=e[P];if(Ju(i,a,l.data)){let d=Im(a,e,r,s,n,u);if(d!==qe)return d}c=e[a+8],c!==hn&&Xu(n,e[P].data[a+8]===u)&&Ju(i,a,e)?(s=l,a=xo(c),e=_o(c,e)):a=-1}}return o}function Im(t,e,r,n,o,i){let s=e[P],a=s.data[t+8],c=n==null?zo(a)&&Vs:n!=s&&(a.type&3)!==0,u=o&R.Host&&i===a,l=bm(a,s,r,c,u);return l!==null?Kn(e,s,l,a):qe}function bm(t,e,r,n,o){let i=t.providerIndexes,s=e.data,a=i&1048575,c=t.directiveStart,u=t.directiveEnd,l=i>>20,d=n?a:a+l,f=o?a+l:u;for(let h=d;h<f;h++){let p=s[h];if(h<c&&r===p||h>=c&&p.type===r)return h}if(o){let h=s[c];if(h&&rr(h)&&h.type===r)return c}return null}function Kn(t,e,r,n){let o=t[r],i=e.data;if(hm(o)){let s=o;s.resolving&&Jp(Kp(i[r]));let a=Ku(s.canSeeViewProviders);s.resolving=!0;let c,u=s.injectImpl?Se(s.injectImpl):null,l=ad(t,n,R.Default);try{o=t[r]=s.factory(void 0,i,t,n),e.firstCreatePass&&r>=n.directiveStart&&dm(r,i[r],e)}finally{u!==null&&Se(u),Ku(a),s.resolving=!1,dd()}}return o}function Em(t){if(typeof t=="string")return t.charCodeAt(0)||0;let e=t.hasOwnProperty(zn)?t[zn]:void 0;return typeof e=="number"?e>=0?e&yd:Cm:e}function Ju(t,e,r){let n=1<<t;return!!(r[e+(t>>wd)]&n)}function Xu(t,e){return!(t&R.Self)&&!(t&R.Host&&e)}var Rt=class{constructor(e,r){this._tNode=e,this._lView=r}get(e,r,n){return Cd(this._tNode,this._lView,e,Vo(n),r)}};function Cm(){return new Rt(je(),X())}function ir(t){return ua(()=>{let e=t.prototype.constructor,r=e[yo]||$s(e),n=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==n;){let i=o[yo]||$s(o);if(i&&i!==r)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function $s(t){return wl(t)?()=>{let e=$s(Te(t));return e&&e()}:pn(t)}function Sm(t,e,r,n,o){let i=t,s=e;for(;i!==null&&s!==null&&s[T]&2048&&!(s[T]&512);){let a=Sd(i,s,r,n|R.Self,qe);if(a!==qe)return a;let c=i.parent;if(!c){let u=s[$l];if(u){let l=u.get(r,qe,n);if(l!==qe)return l}c=Td(s),s=s[En]}i=c}return o}function Td(t){let e=t[P],r=e.type;return r===2?e.declTNode:r===1?t[Fe]:null}function el(t,e=null,r=null,n){let o=Md(t,e,r,n);return o.resolveInjectorInitializers(),o}function Md(t,e=null,r=null,n,o=new Set){let i=[r||Ke,Mg(t)];return n=n||(typeof t=="object"?void 0:we(t)),new Wn(i,e||ma(),n||null,o)}var At=class At{static create(e,r){if(Array.isArray(e))return el({name:""},r,e,"");{let n=e.name??"";return el({name:n},e.parent,e.providers,n)}}};At.THROW_IF_NOT_FOUND=qn,At.NULL=new Io,At.\u0275prov=E({token:At,providedIn:"any",factory:()=>D(xl)}),At.__NG_ELEMENT_ID__=-1;var Lt=At;var Tm=new C("");Tm.__NG_ELEMENT_ID__=t=>{let e=je();if(e===null)throw new S(204,!1);if(e.type&2)return e.value;if(t&R.Optional)return null;throw new S(204,!1)};var Mm="ngOriginalError";function Is(t){return t[Mm]}var xd=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=xm,e.__NG_ENV_ID__=n=>n;let t=e;return t})(),Bs=class extends xd{constructor(e){super(),this._lView=e}onDestroy(e){return Xl(this._lView,e),()=>Gg(this._lView,e)}};function xm(){return new Bs(X())}var vt=(()=>{let e=class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new ne(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};e.\u0275prov=E({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();var Hs=class extends te{constructor(e=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=e,jg()&&(this.destroyRef=g(xd,{optional:!0})??void 0,this.pendingTasks=g(vt,{optional:!0})??void 0)}emit(e){let r=L(null);try{super.next(e)}finally{L(r)}}subscribe(e,r,n){let o=e,i=r||(()=>null),s=n;if(e&&typeof e=="object"){let c=e;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 e instanceof Q&&e.add(a),a}wrapInTimeout(e){return r=>{let n=this.pendingTasks?.add();setTimeout(()=>{e(r),n!==void 0&&this.pendingTasks?.remove(n)})}}},he=Hs;function Ao(...t){}function _d(t){let e,r;function n(){t=Ao;try{r!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(r),e!==void 0&&clearTimeout(e)}catch{}}return e=setTimeout(()=>{t(),n()}),typeof requestAnimationFrame=="function"&&(r=requestAnimationFrame(()=>{t(),n()}
7)),()=>n()}function tl(t){return queueMicrotask(()=>t()),()=>{t=Ao}}var q=class t{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:n=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new he(!1),this.onMicrotaskEmpty=new he(!1),this.onStable=new he(!1),this.onError=new he(!1),typeof Zone>"u")throw new S(908,!1);Zone.assertZonePatched();let o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!n&&r,o.shouldCoalesceRunChangeDetection=n,o.callbackScheduled=!1,Nm(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new S(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new S(909,!1)}run(e,r,n){return this._inner.run(e,r,n)}runTask(e,r,n,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,e,_m,Ao,Ao);try{return i.runTask(s,r,n)}finally{i.cancelTask(s)}}runGuarded(e,r,n){return this._inner.runGuarded(e,r,n)}runOutsideAngular(e){return this._outer.run(e)}},_m={};function Ma(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Am(t){t.isCheckStableRunning||t.callbackScheduled||(t.callbackScheduled=!0,Zone.root.run(()=>{_d(()=>{t.callbackScheduled=!1,zs(t),t.isCheckStableRunning=!0,Ma(t),t.isCheckStableRunning=!1})}),zs(t))}function Nm(t){let e=()=>{Am(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,n,o,i,s,a)=>{if(Rm(a))return r.invokeTask(o,i,s,a);try{return nl(t),r.invokeTask(o,i,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&i.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&e(),rl(t)}},onInvoke:(r,n,o,i,s,a,c)=>{try{return nl(t),r.invoke(o,i,s,a,c)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!km(a)&&e(),rl(t)}},onHasTask:(r,n,o,i)=>{r.hasTask(o,i),n===o&&(i.change=="microTask"?(t._hasPendingMicrotasks=i.microTask,zs(t),Ma(t)):i.change=="macroTask"&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(r,n,o,i)=>(r.handleError(o,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}function zs(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function nl(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function rl(t){t._nesting--,Ma(t)}var qs=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new he,this.onMicrotaskEmpty=new he,this.onStable=new he,this.onError=new he}run(e,r,n){return e.apply(r,n)}runGuarded(e,r,n){return e.apply(r,n)}runOutsideAngular(e){return e()}runTask(e,r,n,o){return e.apply(r,n)}};function Rm(t){return Ad(t,"__ignore_ng_zone__")}function km(t){return Ad(t,"__scheduler_tick__")}function Ad(t,e){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[e]===!0}var pt=class{constructor(){this._console=console}handleError(e){let r=this._findOriginalError(e);this._console.error("ERROR",e),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(e){let r=e&&Is(e);for(;r&&Is(r);)r=Is(r);return r||null}},Om=new C("",{providedIn:"root",factory:()=>{let t=g(q),e=g(pt);return r=>t.runOutsideAngular(()=>e.handleError(r))}});function Pm(){return Wo(je(),X())}function Wo(t,e){return new Zo(Le(t,e))}var Zo=(()=>{let e=class e{constructor(n){this.nativeElement=n}};e.__NG_ELEMENT_ID__=Pm;let t=e;return t})();function Nd(t){return(t.flags&128)===128}var Rd=new Map,Fm=0;function Lm(){return Fm++}function jm(t){Rd.set(t[Ho],t)}function Um(t){Rd.delete(t[Ho])}var ol="__ngContext__";function jt(t,e){Nt(e)?(t[ol]=e[Ho],jm(e)):t[ol]=e}function kd(t){return Pd(t[Zn])}function Od(t){return Pd(t[ke])}function Pd(t){for(;t!==null&&!tt(t);)t=t[ke];return t}var Gs;function Fd(t){Gs=t}function Vm(){if(Gs!==void 0)return Gs;if(typeof document<"u")return document;throw new S(210,!1)}var xa=new C("",{providedIn:"root",factory:()=>$m}),$m="ng",_a=new C(""),yt=new C("",{providedIn:"platform",factory:()=>"unknown"});var Aa=new C("",{providedIn:"root",factory:()=>Vm().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Bm="h",Hm="b";var zm=()=>null;function Na(t,e,r=!1){return zm(t,e,r)}var Ld=!1,qm=new C("",{providedIn:"root",factory:()=>Ld});var Ws=class{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Hp})`}};function Ra(t){return t instanceof Ws?t.changingThisBreaksApplicationSecurity:t}
7function jd(t){return t instanceof Function?t():t}var Xe=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Xe||{}),Gm;function ka(t,e){return Gm(t,e)}function dn(t,e,r,n,o){if(n!=null){let i,s=!1;tt(n)?i=n:Nt(n)&&(s=!0,n=n[et]);let a=Ze(n);t===0&&r!==null?o==null?Hd(e,r,a):No(e,r,a,o||null,!0):t===1&&r!==null?No(e,r,a,o||null,!0):t===2?cv(e,a,s):t===3&&e.destroyNode(a),i!=null&&lv(e,t,i,r,o)}}function Wm(t,e){return t.createText(e)}function Zm(t,e,r){t.setValue(e,r)}function Ud(t,e,r){return t.createElement(e,r)}function Qm(t,e){Vd(t,e),e[et]=null,e[Fe]=null}function Ym(t,e,r,n,o,i){n[et]=o,n[Fe]=e,Qo(t,n,r,1,o,i)}function Vd(t,e){e[Je].changeDetectionScheduler?.notify(8),Qo(t,e,e[ce],2,null,null)}function Km(t){let e=t[Zn];if(!e)return bs(t[P],t);for(;e;){let r=null;if(Nt(e))r=e[Zn];else{let n=e[xe];n&&(r=n)}if(!r){for(;e&&!e[ke]&&e!==t;)Nt(e)&&bs(e[P],e),e=e[pe];e===null&&(e=t),Nt(e)&&bs(e[P],e),r=e&&e[ke]}e=r}}function Jm(t,e,r,n){let o=xe+n,i=r.length;n>0&&(r[o-1][ke]=e),n<i-xe?(e[ke]=r[o],Ml(r,xe+n,e)):(r.push(e),e[ke]=null),e[pe]=r;let s=e[vn];s!==null&&r!==s&&$d(s,e);let a=e[yn];a!==null&&a.insertView(t),Ls(e),e[T]|=128}function $d(t,e){let r=t[So],n=e[pe];if(Nt(n))t[T]|=To.HasTransplantedViews;else{let o=n[pe][We];e[We]!==o&&(t[T]|=To.HasTransplantedViews)}r===null?t[So]=[e]:r.push(e)}function Oa(t,e){let r=t[So],n=r.indexOf(e);r.splice(n,1)}function Zs(t,e){if(t.length<=xe)return;let r=xe+e,n=t[r];if(n){let o=n[vn];o!==null&&o!==t&&Oa(o,n),e>0&&(t[r-1][ke]=n[ke]);let i=Do(t,xe+e);Qm(n[P],n);let s=i[yn];s!==null&&s.detachView(i[P]),n[pe]=null,n[ke]=null,n[T]&=-129}return n}function Bd(t,e){if(!(e[T]&256)){let r=e[ce];r.destroyNode&&Qo(t,e,r,3,null,null),Km(e)}}function bs(t,e){if(e[T]&256)return;let r=L(null);try{e[T]&=-129,e[T]|=256,e[Me]&&zi(e[Me]),ev(t,e),Xm(t,e),e[P].type===1&&e[ce].destroy();let n=e[vn];if(n!==null&&tt(e[pe])){n!==e[pe]&&Oa(n,e);let o=e[yn];o!==null&&o.detachView(t)}Um(e)}finally{L(r)}}function Xm(t,e){let r=t.cleanup,n=e[Eo];if(r!==null)for(let i=0;i<r.length-1;i+=2)if(typeof r[i]=="string"){let s=r[i+3];s>=0?n[s]():n[-s].unsubscribe(),i+=2}else{let s=n[r[i+1]];r[i].call(s)}n!==null&&(e[Eo]=null);let o=e[dt];if(o!==null){e[dt]=null;for(let i=0;i<o.length;i++){let s=o[i];s()}}}function ev(t,e){let r;if(t!=null&&(r=t.destroyHooks)!=null)for(let n=0;n<r.length;n+=2){let o=e[r[n]];if(!(o instanceof Yn)){let i=r[n+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];ze(4,a,c);try{c.call(a)}finally{ze(5,a,c)}}else{ze(4,o,i);try{i.call(o)}finally{ze(5,o,i)}}}}}function tv(t,e,r){return nv(t,e.parent,r)}function nv(t,e,r){let n=e;for(;n!==null&&n.type&168;)e=n,n=e.parent;if(n===null)return r[et];{let{componentOffset:o}=n;if(o>-1){let{encapsulation:i}=t.data[n.directiveStart+o];if(i===Ge.None||i===Ge.Emulated)return null}return Le(n,r)}}function No(t,e,r,n,o){t.insertBefore(e,r,n,o)}function Hd(t,e,r){t.appendChild(e,r)}function il(t,e,r,n,o){n!==null?No(t,e,r,n,o):Hd(t,e,r)}function rv(t,e,r,n){t.removeChild(e,r,n)}function Pa(t,e){return t.parentNode(e)}function ov(t,e){return t.nextSibling(e)}function iv(t,e,r){return av(t,e,r)}function sv(t,e,r){return t.type&40?Le(t,r):null}var av=sv,sl;function Fa(t,e,r,n){let o=tv(t,n,e),i=e[ce],s=n.parent||e[Fe],a=iv(s,n,e);if(o!=null)if(Array.isArray(r))for(let c=0;c<r.length;c++)il(i,o,r[c],a,!1);else il(i,o,r,a,!1);sl!==void 0&&sl(i,n,e,r,o)}function Hn(t,e){if(e!==null){let r=e.type;if(r&3)return Le(e,t);if(r&4)return Qs(-1,t[e.index]);if(r&8){let n=e.child;if(n!==null)return Hn(t,n);{let o=t[e.index];return tt(o)?Qs(-1,o):Ze(o)}}else{if(r&128)return Hn(t,e.next);if(r&32)return ka(e,t)()||Ze(t[e.index]);{let n=zd(t,e);if(n!==null){if(Array.isArray(n))return n[0];let o=Pt(t[We]);return Hn(o,n)}else return Hn(t,e.next)}}}return null}function zd(t,e){if(e!==null){let n=t[We][Fe],o=e.projection;return n.projection[o]}return null}function Qs(t,e){let r=xe+t+1;if(r<e.length){let n=e[r],o=n[P].firstChild;if(o!==null)return Hn(n,o)}return e[Ot]}function cv(t,e,r){let n=Pa(t,e);n&&rv(t,n,e,r)}function La(t,e,r,n,o,i,s){for(;r!=null;){if(r.type===128){r=r.next;continue}let a=n[r.index],c=r.type;if(s&&e===0&&(a&&jt(Ze(a),n),r.flags|=2),(r.flags&32)!==32)if(c&8)La(t,e,r.child,n,o,i,!1),dn(e,t,o,a,i);else if(c&32){let u=ka(r,n),l;
7for(;l=u();)dn(e,t,o,l,i);dn(e,t,o,a,i)}else c&16?uv(t,e,n,r,o,i):dn(e,t,o,a,i);r=s?r.projectionNext:r.next}}function Qo(t,e,r,n,o,i){La(r,n,t.firstChild,e,o,i,!1)}function uv(t,e,r,n,o,i){let s=r[We],c=s[Fe].projection[n.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];dn(e,t,o,l,i)}else{let u=c,l=s[pe];Nd(n)&&(u.flags|=128),La(t,e,u,l,o,i,!0)}}function lv(t,e,r,n,o){let i=r[Ot],s=Ze(r);i!==s&&dn(e,t,n,i,o);for(let a=xe;a<r.length;a++){let c=r[a];Qo(c[P],c,t,e,n,i)}}function dv(t,e,r,n,o){if(e)o?t.addClass(r,n):t.removeClass(r,n);else{let i=n.indexOf("-")===-1?void 0:Xe.DashCase;o==null?t.removeStyle(r,n,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Xe.Important),t.setStyle(r,n,o,i))}}function fv(t,e,r){t.setAttribute(e,"style",r)}function qd(t,e,r){r===""?t.removeAttribute(e,"class"):t.setAttribute(e,"class",r)}function Gd(t,e,r){let{mergedAttrs:n,classes:o,styles:i}=r;n!==null&&As(t,e,n),o!==null&&qd(t,e,o),i!==null&&fv(t,e,i)}var wt={};function rt(t=1){Wd(nt(),X(),Cn()+t,!1)}function Wd(t,e,r,n){if(!n)if((e[T]&3)===3){let i=t.preOrderCheckHooks;i!==null&&go(e,i,r)}else{let i=t.preOrderHooks;i!==null&&mo(e,i,0,r)}Ft(r)}function Bt(t,e=R.Default){let r=X();if(r===null)return D(t,e);let n=je();return Cd(n,r,Te(t),e)}function Zd(t,e,r,n,o,i){let s=L(null);try{let a=null;o&ft.SignalBased&&(a=e[n][ru]),a!==null&&a.transformFn!==void 0&&(i=a.transformFn(i)),o&ft.HasDecoratorInputTransform&&(i=t.inputTransforms[n].call(e,i)),t.setInput!==null?t.setInput(e,a,i,r,n):zl(e,a,n,i)}finally{L(s)}}function hv(t,e){let r=t.hostBindingOpCodes;if(r!==null)try{for(let n=0;n<r.length;n++){let o=r[n];if(o<0)Ft(~o);else{let i=o,s=r[++n],a=r[++n];om(s,i);let c=e[i];a(2,c)}}}finally{Ft(-1)}}function Yo(t,e,r,n,o,i,s,a,c,u,l){let d=e.blueprint.slice();return d[et]=o,d[T]=n|4|128|8|64,(u!==null||t&&t[T]&2048)&&(d[T]|=2048),Kl(d),d[pe]=d[En]=t,d[Oe]=r,d[Je]=s||t&&t[Je],d[ce]=a||t&&t[ce],d[mn]=c||t&&t[mn]||null,d[Fe]=i,d[Ho]=Lm(),d[bo]=l,d[$l]=u,d[We]=e.type==2?t[We]:d,d}function Ko(t,e,r,n,o){let i=t.data[e];if(i===null)i=pv(t,e,r,n,o),rm()&&(i.flags|=32);else if(i.type&64){i.type=r,i.value=n,i.attrs=o;let s=Xg();i.injectorIndex=s===null?-1:s.injectorIndex}return or(i,!0),i}function pv(t,e,r,n,o){let i=nd(),s=rd(),a=s?i:i&&i.parent,c=t.data[e]=wv(t,a,r,e,n,o);return t.firstChild===null&&(t.firstChild=c),i!==null&&(s?i.child==null&&c.parent!==null&&(i.child=c):i.next===null&&(i.next=c,c.prev=i)),c}function Qd(t,e,r,n){if(r===0)return-1;let o=e.length;for(let i=0;i<r;i++)e.push(n),t.blueprint.push(n),t.data.push(null);return o}function Yd(t,e,r,n,o){let i=Cn(),s=n&2;try{Ft(-1),s&&e.length>ht&&Wd(t,e,ht,!1),ze(s?2:0,o),r(n,o)}finally{Ft(i),ze(s?3:1,o)}}function Kd(t,e,r){if(Hl(e)){let n=L(null);try{let o=e.directiveStart,i=e.directiveEnd;for(let s=o;s<i;s++){let a=t.data[s];if(a.contentQueries){let c=r[s];
7a.contentQueries(1,c,s)}}}finally{L(n)}}}function Jd(t,e,r){td()&&(Sv(t,e,r,Le(r,e)),(r.flags&64)===64&&of(t,e,r))}function Xd(t,e,r=Le){let n=e.localNames;if(n!==null){let o=e.index+1;for(let i=0;i<n.length;i+=2){let s=n[i+1],a=s===-1?r(e,t):t[s];t[o++]=a}}}function ef(t){let e=t.tView;return e===null||e.incompleteFirstPass?t.tView=ja(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):e}function ja(t,e,r,n,o,i,s,a,c,u,l){let d=ht+n,f=d+o,h=gv(d,f),p=typeof u=="function"?u():u;return h[P]={type:t,blueprint:h,template:r,queries:null,viewQuery:a,declTNode:e,data:h.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:f,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:p,incompleteFirstPass:!1,ssrId:l}}function gv(t,e){let r=[];for(let n=0;n<e;n++)r.push(n<t?null:wt);return r}function mv(t,e,r,n){let i=n.get(qm,Ld)||r===Ge.ShadowDom,s=t.selectRootElement(e,i);return vv(s),s}function vv(t){yv(t)}var yv=()=>null;function wv(t,e,r,n,o,i){let s=e?e.injectorIndex:-1,a=0;return Yg()&&(a|=128),{type:r,index:n,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:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function al(t,e,r,n,o){for(let i in e){if(!e.hasOwnProperty(i))continue;let s=e[i];if(s===void 0)continue;n??={};let a,c=ft.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let u=i;if(o!==null){if(!o.hasOwnProperty(i))continue;u=o[i]}t===0?cl(n,r,u,a,c):cl(n,r,u,a)}return n}function cl(t,e,r,n,o){let i;t.hasOwnProperty(r)?(i=t[r]).push(e,n):i=t[r]=[e,n],o!==void 0&&i.push(o)}function Dv(t,e,r){let n=e.directiveStart,o=e.directiveEnd,i=t.data,s=e.attrs,a=[],c=null,u=null;for(let l=n;l<o;l++){let d=i[l],f=r?r.get(d):null,h=f?f.inputs:null,p=f?f.outputs:null;c=al(0,d.inputs,l,c,h),u=al(1,d.outputs,l,u,p);let m=c!==null&&s!==null&&!pa(e)?Ov(c,l,s):null;a.push(m)}c!==null&&(c.hasOwnProperty("class")&&(e.flags|=8),c.hasOwnProperty("style")&&(e.flags|=16)),e.initialInputs=a,e.inputs=c,e.outputs=u}function Iv(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function tf(t,e,r,n,o,i,s,a){let c=Le(e,r),u=e.inputs,l;!a&&u!=null&&(l=u[n])?(Ua(t,r,l,n,o),zo(e)&&bv(r,e.index)):e.type&3?(n=Iv(n),o=s!=null?s(o,e.value||"",n):o,i.setProperty(c,n,o)):e.type&12}function bv(t,e){let r=$t(e,t);r[T]&16||(r[T]|=64)}function nf(t,e,r,n){if(td()){let o=n===null?null:{"":-1},i=Mv(t,r),s,a;i===null?s=a=null:[s,a]=i,s!==null&&rf(t,e,r,s,o,a),o&&xv(r,n,o)}r.mergedAttrs=ha(r.mergedAttrs,r.attrs)}function rf(t,e,r,n,o,i){for(let u=0;u<n.length;u++)Dm(Dd(r,e),t,n[u].type);Av(r,t.data.length,n.length);for(let u=0;u<n.length;u++){let l=n[u];l.providersResolver&&l.providersResolver(l)}let s=!1,a=!1,c=Qd(t,e,n.length,null);for(let u=0;u<n.length;u++){let l=n[u];r.mergedAttrs=ha(r.mergedAttrs,l.hostAttrs),Nv(t,r,e,c,l),_v(c,l,o),l.contentQueries!==null&&(r.flags|=4),(l.hostBindings!==null||l.hostAttrs!==null||l.hostVars!==0)&&(r.flags|=64);let d=l.type.prototype;!s&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((t.preOrderHooks??=[]).push(r.index),s=!0),!a&&(d.ngOnChanges||d.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(r.index),a=!0),c++}Dv(t,r,i)}function Ev(t,e,r,n,o){let i=o.hostBindings;if(i){let s=t.hostBindingOpCodes;s===null&&(s=t.hostBindingOpCodes=[]);let a=~e.index;Cv(s)!=a&&s.push(a),s.push(r,n,i)}}function Cv(t){let e=t.length;for(;e>0;){let r=t[--e];if(typeof r=="number"&&r<0)return r}return 0}function Sv(t,e,r,n){let o=r.directiveStart,i=r.directiveEnd;
7zo(r)&&Rv(e,r,t.data[o+r.componentOffset]),t.firstCreatePass||Dd(r,e),jt(n,e);let s=r.initialInputs;for(let a=o;a<i;a++){let c=t.data[a],u=Kn(e,t,a,r);if(jt(u,e),s!==null&&kv(e,a-o,u,c,r,s),rr(c)){let l=$t(r.index,e);l[Oe]=Kn(e,t,a,r)}}}function of(t,e,r){let n=r.directiveStart,o=r.directiveEnd,i=r.index,s=im();try{Ft(i);for(let a=n;a<o;a++){let c=t.data[a],u=e[a];js(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&Tv(c,u)}}finally{Ft(-1),js(s)}}function Tv(t,e){t.hostBindings!==null&&t.hostBindings(1,e)}function Mv(t,e){let r=t.directiveRegistry,n=null,o=null;if(r)for(let i=0;i<r.length;i++){let s=r[i];if(yg(e,s.selectors,!1))if(n||(n=[]),rr(s))if(s.findHostDirectiveDefs!==null){let a=[];o=o||new Map,s.findHostDirectiveDefs(s,a,o),n.unshift(...a,s);let c=a.length;Ys(t,e,c)}else n.unshift(s),Ys(t,e,0);else o=o||new Map,s.findHostDirectiveDefs?.(s,n,o),n.push(s)}return n===null?null:[n,o]}function Ys(t,e,r){e.componentOffset=r,(t.components??=[]).push(e.index)}function xv(t,e,r){if(e){let n=t.localNames=[];for(let o=0;o<e.length;o+=2){let i=r[e[o+1]];if(i==null)throw new S(-301,!1);n.push(e[o],i)}}}function _v(t,e,r){if(r){if(e.exportAs)for(let n=0;n<e.exportAs.length;n++)r[e.exportAs[n]]=t;rr(e)&&(r[""]=t)}}function Av(t,e,r){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+r,t.providerIndexes=e}function Nv(t,e,r,n,o){t.data[n]=o;let i=o.factory||(o.factory=pn(o.type,!0)),s=new Yn(i,rr(o),Bt);t.blueprint[n]=s,r[n]=s,Ev(t,e,n,Qd(t,r,o.hostVars,wt),o)}function Rv(t,e,r){let n=Le(e,t),o=ef(r),i=t[Je].rendererFactory,s=16;r.signals?s=4096:r.onPush&&(s=64);let a=Jo(t,Yo(t,o,null,s,n,e,null,i.createRenderer(n,r),null,null,null));t[e.index]=a}function kv(t,e,r,n,o,i){let s=i[e];if(s!==null)for(let a=0;a<s.length;){let c=s[a++],u=s[a++],l=s[a++],d=s[a++];Zd(n,r,c,u,l,d)}}function Ov(t,e,r){let n=null,o=0;for(;o<r.length;){let i=r[o];if(i===0){o+=4;continue}else if(i===5){o+=2;continue}if(typeof i=="number")break;if(t.hasOwnProperty(i)){n===null&&(n=[]);let s=t[i];for(let a=0;a<s.length;a+=3)if(s[a]===e){n.push(i,s[a+1],s[a+2],r[o+1]);break}}o+=2}return n}function sf(t,e,r,n){return[t,!0,0,e,null,n,null,r,null,null]}function af(t,e){let r=t.contentQueries;if(r!==null){let n=L(null);try{for(let o=0;o<r.length;o+=2){let i=r[o],s=r[o+1];if(s!==-1){let a=t.data[s];sd(i),a.contentQueries(2,e[s],s)}}}finally{L(n)}}}function Jo(t,e){return t[Zn]?t[Wu][ke]=e:t[Zn]=e,t[Wu]=e,e}function Ks(t,e,r){sd(0);let n=L(null);try{e(t,r)}finally{L(n)}}function Pv(t){return t[Eo]??=[]}function Fv(t){return t.cleanup??=[]}function cf(t,e){let r=t[mn],n=r?r.get(pt,null):null;n&&n.handleError(e)}function Ua(t,e,r,n,o){for(let i=0;i<r.length;){let s=r[i++],a=r[i++],c=r[i++],u=e[s],l=t.data[s];Zd(l,u,n,a,c,o)}}function Lv(t,e,r){let n=Ql(e,t);Zm(t[ce],n,r)}function jv(t,e){let r=$t(e,t),n=r[P];Uv(n,r);let o=r[et];o!==null&&r[bo]===null&&(r[bo]=Na(o,r[mn])),Va(n,r,r[Oe])}function Uv(t,e){for(let r=e.length;r<t.blueprint.length;r++)e.push(t.blueprint[r])}function Va(t,e,r){Ia(e);try{let n=t.viewQuery;n!==null&&Ks(1,n,r);let o=t.template;o!==null&&Yd(t,e,o,1,r),t.firstCreatePass&&(t.firstCreatePass=!1),e[yn]?.finishViewCreation(t),t.staticContentQueries&&af(t,e),t.staticViewQueries&&Ks(2,t.viewQuery,r);let i=t.components;i!==null&&Vv(e,i)}
7catch(n){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),n}finally{e[T]&=-5,ba()}}function Vv(t,e){for(let r=0;r<e.length;r++)jv(t,e[r])}function $v(t,e,r,n){let o=L(null);try{let i=e.tView,a=t[T]&4096?4096:16,c=Yo(t,i,r,a,null,e,null,null,n?.injector??null,n?.embeddedViewInjector??null,n?.dehydratedView??null),u=t[e.index];c[vn]=u;let l=t[yn];return l!==null&&(c[yn]=l.createEmbeddedView(i)),Va(i,c,r),c}finally{L(o)}}function ul(t,e){return!e||e.firstChild===null||Nd(t)}function Bv(t,e,r,n=!0){let o=e[P];if(Jm(o,e,t,r),n){let s=Qs(r,t),a=e[ce],c=Pa(a,t[Ot]);c!==null&&Ym(o,t[Fe],a,e,c,s)}let i=e[bo];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function Ro(t,e,r,n,o=!1){for(;r!==null;){if(r.type===128){r=o?r.projectionNext:r.next;continue}let i=e[r.index];i!==null&&n.push(Ze(i)),tt(i)&&Hv(i,n);let s=r.type;if(s&8)Ro(t,e,r.child,n);else if(s&32){let a=ka(r,e),c;for(;c=a();)n.push(c)}else if(s&16){let a=zd(e,r);if(Array.isArray(a))n.push(...a);else{let c=Pt(e[We]);Ro(c[P],c,a,n,!0)}}r=o?r.projectionNext:r.next}return n}function Hv(t,e){for(let r=xe;r<t.length;r++){let n=t[r],o=n[P].firstChild;o!==null&&Ro(n[P],n,o,e)}t[Ot]!==t[et]&&e.push(t[Ot])}var uf=[];function zv(t){return t[Me]??qv(t)}function qv(t){let e=uf.pop()??Object.create(Wv);return e.lView=t,e}function Gv(t){t.lView[Me]!==t&&(t.lView=null,uf.push(t))}var Wv=K(w({},$i),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{Go(t.lView)},consumerOnSignalRead(){this.lView[Me]=this}});function Zv(t){let e=t[Me]??Object.create(Qv);return e.lView=t,e}var Qv=K(w({},$i),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let e=Pt(t.lView);for(;e&&!lf(e[P]);)e=Pt(e);e&&Jl(e)},consumerOnSignalRead(){this.lView[Me]=this}});function lf(t){return t.type!==2}var Yv=100;function df(t,e=!0,r=0){let n=t[Je],o=n.rendererFactory,i=!1;i||o.begin?.();try{Kv(t,r)}catch(s){throw e&&cf(t,s),s}finally{i||(o.end?.(),n.inlineEffectRunner?.flush())}}function Kv(t,e){let r=od();try{Qu(!0),Js(t,e);let n=0;for(;Qn(t);){if(n===Yv)throw new S(103,!1);n++,Js(t,1)}}finally{Qu(r)}}function Jv(t,e,r,n){let o=e[T];if((o&256)===256)return;let i=!1,s=!1;!i&&e[Je].inlineEffectRunner?.flush(),Ia(e);let a=!0,c=null,u=null;i||(lf(t)?(u=zv(e),c=Bi(u)):ou()===null?(a=!1,u=Zv(e),c=Bi(u)):e[Me]&&(zi(e[Me]),e[Me]=null));try{Kl(e),tm(t.bindingStartIndex),r!==null&&Yd(t,e,r,2,n);let l=(o&3)===3;if(!i)if(l){let h=t.preOrderCheckHooks;h!==null&&go(e,h,null)}else{let h=t.preOrderHooks;h!==null&&mo(e,h,0,null),ys(e,0)}if(s||Xv(e),ff(e,0),t.contentQueries!==null&&af(t,e),!i)if(l){let h=t.contentCheckHooks;h!==null&&go(e,h)}else{let h=t.contentHooks;h!==null&&mo(e,h,1),ys(e,1)}hv(t,e);let d=t.components;d!==null&&pf(e,d,0);let f=t.viewQuery;if(f!==null&&Ks(2,f,n),!i)if(l){let h=t.viewCheckHooks;h!==null&&go(e,h)}else{let h=t.viewHooks;h!==null&&mo(e,h,2),ys(e,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),e[vs]){for(let h of e[vs])h();e[vs]=null}i||(e[T]&=-73)}catch(l){throw i||Go(e),l}finally{u!==null&&(iu(u,c),a&&Gv(u)),ba()}}function ff(t,e){for(let r=kd(t);r!==null;r=Od(r))for(let n=xe;n<r.length;n++){let o=r[n];hf(o,e)}}function Xv(t){for(let e=kd(t);e!==null;e=Od(e)){if(!(e[T]&To.HasTransplantedViews))continue;let r=e[So];for(let n=0;n<r.length;n++){let o=r[n];Jl(o)}}}function ey(t,e,r){let n=$t(e,t);hf(n,r)}function hf(t,e){ya(t)&&Js(t,e)}function Js(t,e){let n=t[P],o=t[T],i=t[Me],s=!!(e===0&&o&16);if(s||=!!(o&64&&e===0),s||=!!(o&1024),s||=!!(i?.dirty&&Hi(i)),s||=!1,i&&(i.dirty=!1),t[T]&=-9217,s)Jv(n,t,n.template,t[Oe]);else if(o&8192){ff(t,1);let a=n.components;a!==null&&pf(t,a,1)}}function pf(t,e,r){for(let n=0;n<e.length;n++)ey(t,e[n],r)}function $a(t,e){let r=od()?64:1088;for(t[Je].changeDetectionScheduler?.notify(e);t;){t[T]|=r;let n=Pt(t);if(Ps(t)&&!n)return t;t=n}return null}var Ut=class{get rootNodes(){let e=this._lView,r=e[P];return Ro(r,e,r.firstChild,[])}constructor(e,r,n=!0){this._lView=e,this._cdRefInjectingView=r,this.notifyErrorHandler=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[Oe]}set context(e){this._lView[Oe]=e}get destroyed(){return(this._lView[T]&256)===256}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let e=this._lView[pe];if(tt(e)){let r=e[Co],n=r?r.indexOf(this):-1;n>-1&&(Zs(e,n),Do(r,n))}this._attachedToViewContainer=!1}Bd(this._lView[P],this._lView)}onDestroy(e){Xl(this._lView,e)}markForCheck(){$a(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[T]&=-129}reattach(){Ls(this._lView),this._lView[T]|=128}detectChanges(){this._lView[T]|=1024,df(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let e=Ps(this._lView),r=this._lView[vn];r!==null&&!e&&Oa(r,this._lView),Vd(this._lView[P],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new S(902,!1);this._appRef=e;let r=Ps(this._lView),n=this._lView[vn];n!==null&&!r&&$d(n,this._lView),Ls(this._lView)}},Ba=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=ry;let t=e;return t})(),ty=Ba,ny=class extends ty{constructor(e,r,n){super(),this._declarationLView=e,this._declarationTContainer=r,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,n){let o=$v(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:r,dehydratedView:n});return new Ut(o)}};function ry(){return oy(je(),X())}function oy(t,e){return t.type&4?new ny(e,t,Wo(t,e)):null}var xx=new RegExp(`^(\\d+)*(${Hm}|${Bm})*(.*)`);var iy=()=>null;function ll(t,e){return iy(t,e)}var Jn=class{},Ha=new C("",{providedIn:"root",factory:()=>!1});var gf=new C(""),Xs=class{},ko=class{};function sy(t){let e=Error(`No component factory found for ${we(t)}.`);return e[ay]=t,e}var ay="ngComponent";
7var ea=class{resolveComponentFactory(e){throw sy(e)}},Ka=class Ka{};Ka.NULL=new ea;var wn=Ka,Dn=class{};var cy=(()=>{let e=class e{};e.\u0275prov=E({token:e,providedIn:"root",factory:()=>null});let t=e;return t})();var dl=new Set;function Xo(t){dl.has(t)||(dl.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var mf=(()=>{let e=class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let o of n)o()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};e.\u0275prov=E({token:e,providedIn:"root",factory:()=>new e});let t=e;return t})();function ta(t,e,r){let n=r?t.styles:null,o=r?t.classes:null,i=0;if(e!==null)for(let s=0;s<e.length;s++){let a=e[s];if(typeof a=="number")i=a;else if(i==1)o=Ms(o,a);else if(i==2){let c=a,u=e[++s];n=Ms(n,c+": "+u+";")}}r?t.styles=n:t.stylesWithoutHost=n,r?t.classes=o:t.classesWithoutHost=o}var Oo=class extends wn{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){let r=kt(e);return new Xn(r,this.ngModule)}};function fl(t,e){let r=[];for(let n in t){if(!t.hasOwnProperty(n))continue;let o=t[n];if(o===void 0)continue;let i=Array.isArray(o),s=i?o[0]:o,a=i?o[1]:ft.None;e?r.push({propName:s,templateName:n,isSignal:(a&ft.SignalBased)!==0}):r.push({propName:s,templateName:n})}return r}function uy(t){let e=t.toLowerCase();return e==="svg"?Zl:e==="math"?Hg:null}var Xn=class extends ko{get inputs(){let e=this.componentDef,r=e.inputTransforms,n=fl(e.inputs,!0);if(r!==null)for(let o of n)r.hasOwnProperty(o.propName)&&(o.transform=r[o.propName]);return n}get outputs(){return fl(this.componentDef.outputs,!1)}constructor(e,r){super(),this.componentDef=e,this.ngModule=r,this.componentType=e.type,this.selector=bg(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!r}create(e,r,n,o){let i=L(null);try{o=o||this.ngModule;let s=o instanceof De?o:o?.injector;s&&this.componentDef.getStandaloneInjector!==null&&(s=this.componentDef.getStandaloneInjector(s)||s);let a=s?new Us(e,s):e,c=a.get(Dn,null);if(c===null)throw new S(407,!1);let u=a.get(cy,null),l=a.get(mf,null),d=a.get(Jn,null),f={rendererFactory:c,sanitizer:u,inlineEffectRunner:null,afterRenderEventManager:l,changeDetectionScheduler:d},h=c.createRenderer(null,this.componentDef),p=this.componentDef.selectors[0][0]||"div",m=n?mv(h,n,this.componentDef.encapsulation,a):Ud(h,p,uy(p)),v=512;this.componentDef.signals?v|=4096:this.componentDef.onPush||(v|=16);let I=null;m!==null&&(I=Na(m,a,!0));let H=ja(0,null,null,1,0,null,null,null,null,null,null),y=Yo(null,H,null,v,null,null,f,h,a,null,I);Ia(y);let F,ue;try{let Y=this.componentDef,le,Jt=null;Y.findHostDirectiveDefs?(le=[],Jt=new Map,Y.findHostDirectiveDefs(Y,le,Jt),le.push(Y)):le=[Y];let sp=ly(y,m),ap=dy(sp,m,Y,le,y,f,h);ue=Yl(H,ht),m&&py(h,Y,m,n),r!==void 0&&gy(ue,this.ngContentSelectors,r),F=hy(ap,Y,le,Jt,y,[my]),Va(H,y,null)}finally{ba()}return new na(this.componentType,F,Wo(ue,y),y,ue)}finally{L(i)}}},na=class extends Xs{constructor(e,r,n,o,i){super(),this.location=n,this._rootLView=o,this._tNode=i,this.previousInputValues=null,this.instance=r,this.hostView=this.changeDetectorRef=new 
7Ut(o,void 0,!1),this.componentType=e}setInput(e,r){let n=this._tNode.inputs,o;if(n!==null&&(o=n[e])){if(this.previousInputValues??=new Map,this.previousInputValues.has(e)&&Object.is(this.previousInputValues.get(e),r))return;let i=this._rootLView;Ua(i[P],i,o,e,r),this.previousInputValues.set(e,r);let s=$t(this._tNode.index,i);$a(s,1)}}get injector(){return new Rt(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}};function ly(t,e){let r=t[P],n=ht;return t[n]=e,Ko(r,n,2,"#host",null)}function dy(t,e,r,n,o,i,s){let a=o[P];fy(n,t,e,s);let c=null;e!==null&&(c=Na(e,o[mn]));let u=i.rendererFactory.createRenderer(e,r),l=16;r.signals?l=4096:r.onPush&&(l=64);let d=Yo(o,ef(r),null,l,o[t.index],t,i,u,null,null,c);return a.firstCreatePass&&Ys(a,t,n.length-1),Jo(o,d),o[t.index]=d}function fy(t,e,r,n){for(let o of t)e.mergedAttrs=ha(e.mergedAttrs,o.hostAttrs);e.mergedAttrs!==null&&(ta(e,e.mergedAttrs,!0),r!==null&&Gd(n,r,e))}function hy(t,e,r,n,o,i){let s=je(),a=o[P],c=Le(s,o);rf(a,o,s,r,null,n);for(let l=0;l<r.length;l++){let d=s.directiveStart+l,f=Kn(o,a,d,s);jt(f,o)}of(a,o,s),c&&jt(c,o);let u=Kn(o,a,s.directiveStart+s.componentOffset,s);if(t[Oe]=o[Oe]=u,i!==null)for(let l of i)l(u,e);return Kd(a,s,o),u}function py(t,e,r,n){if(n)As(t,r,["ng-version","18.1.3"]);else{let{attrs:o,classes:i}=Eg(e.selectors[0]);o&&As(t,r,o),i&&i.length>0&&qd(t,r,i.join(" "))}}function gy(t,e,r){let n=t.projection=[];for(let o=0;o<e.length;o++){let i=r[o];n.push(i!=null?Array.from(i):null)}}function my(){let t=je();Sa(X()[P],t)}var sr=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=vy;let t=e;return t})();function vy(){let t=je();return wy(t,X())}var yy=sr,vf=class extends yy{constructor(e,r,n){super(),this._lContainer=e,this._hostTNode=r,this._hostLView=n}get element(){return Wo(this._hostTNode,this._hostLView)}get injector(){return new Rt(this._hostTNode,this._hostLView)}get parentInjector(){let e=Ta(this._hostTNode,this._hostLView);if(vd(e)){let r=_o(e,this._hostLView),n=xo(e),o=r[P].data[n+8];return new Rt(o,r)}else return new Rt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){let r=hl(this._lContainer);return r!==null&&r[e]||null}get length(){return this._lContainer.length-xe}createEmbeddedView(e,r,n){let o,i;typeof n=="number"?o=n:n!=null&&(o=n.index,i=n.injector);let s=ll(this._lContainer,e.ssrId),a=e.createEmbeddedViewImpl(r||{},i,s);return this.insertImpl(a,o,ul(this._hostTNode,s)),a}createComponent(e,r,n,o,i){let s=e&&!Ug(e),a;if(s)a=r;else{let p=r||{};a=p.index,n=p.injector,o=p.projectableNodes,i=p.environmentInjector||p.ngModuleRef}let c=s?e:new Xn(kt(e)),u=n||this.parentInjector;if(!i&&c.ngModule==null){let m=(s?u:this.parentInjector).get(De,null);m&&(i=m)}let l=kt(c.componentType??{}),d=ll(this._lContainer,l?.id??null),f=d?.firstChild??null,h=c.create(u,o,f,i);return this.insertImpl(h.hostView,a,ul(this._hostTNode,d)),h}insert(e,r){return this.insertImpl(e,r,!0)}insertImpl(e,r,n){let o=e._lView;if(zg(o)){let a=this.indexOf(e);if(a!==-1)this.detach(a);else{let c=o[pe],u=new vf(c,c[Fe],c[pe]);u.detach(u.indexOf(e))}}let i=this._adjustIndex(r),s=this._lContainer;return Bv(s,o,i,n),e.attachToViewContainerRef(),Ml(Es(s),i,e),e}move(e,r){return this.insert(e,r)}indexOf(e){let r=hl(this._lContainer);return r!==null?r.indexOf(e):-1}remove(e){let r=this._adjustIndex(e,-1),n=Zs(this._lContainer,r);n&&(Do(Es(this._lContainer),r),Bd(n[P],n))}detach(e){let r=this._adjustIndex(e,-1),n=Zs(this._lContainer,r);return n&&Do(Es(this._lContainer),r)!=null?new Ut(n):null}_adjustIndex(e,r=0){return e??this.length+r}};function hl(t){return t[Co]}function Es(t){return t[Co]||(t[Co]=[])}function wy(t,e){let r,n=e[t.index];return tt(n)?r=n:(r=sf(n,e,null,t),e[t.index]=r,Jo(e,r)),Iy(r,e,t,n),new vf(r,t,e)}function Dy(t,e){let r=t[ce],n=r.createComment(""),o=Le(e,t),i=Pa(r,o);return No(r,i,n,ov(r,o),!1),n}var Iy=Cy,by=()=>!1;function Ey(t,e,r){return by(t,e,r)}function Cy(t,e,r,n){if(t[Ot])return;let o;r.type&8?o=Ze(n):o=Dy(e,r),t[Ot]=o}var gt=class{},er=class{};var ra=class extends gt{constructor(e,r,n){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Oo(this);let o=Pl(e);
vendor: 5,181 bytes, line 7
7this._bootstrapComponents=jd(o.bootstrap),this._r3Injector=Md(e,r,[{provide:gt,useValue:this},{provide:wn,useValue:this.componentFactoryResolver},...n],we(e),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(e)}get injector(){return this._r3Injector}destroy(){let e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}},oa=class extends er{constructor(e){super(),this.moduleType=e}create(e){return new ra(this.moduleType,e,[])}};var Po=class extends gt{constructor(e){super(),this.componentFactoryResolver=new Oo(this),this.instance=null;let r=new Wn([...e.providers,{provide:gt,useValue:this},{provide:wn,useValue:this.componentFactoryResolver}],e.parent||ma(),e.debugName,new Set(["environment"]));this.injector=r,e.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(e){this.injector.onDestroy(e)}};function za(t,e,r=null){return new Po({providers:t,parent:e,debugName:r,runEnvironmentInitializers:!0}).injector}function qa(t,e,r){let n=t[e];return Object.is(n,r)?!1:(t[e]=r,!0)}function Sy(t){return(t.flags&32)===32}function Ty(t,e,r,n,o,i,s,a,c){let u=e.consts,l=Ko(e,t,4,s||null,a||null);nf(e,r,l,Mo(u,c)),Sa(e,l);let d=l.tView=ja(2,l,n,o,i,e.directiveRegistry,e.pipeRegistry,null,e.schemas,u,null);return e.queries!==null&&(e.queries.template(e,l),d.queries=e.queries.embeddedTView(l)),l}function My(t,e,r,n,o,i,s,a,c,u){let l=r+ht,d=e.firstCreatePass?Ty(l,e,t,n,o,i,s,a,c):e.data[l];or(d,!1);let f=xy(e,t,d,r);Ea()&&Fa(e,t,f,d),jt(f,t);let h=sf(f,t,f,d);return t[l]=h,Jo(t,h),Ey(h,d,t),va(d)&&Jd(e,t,d),c!=null&&Xd(t,d,u),d}function Ga(t,e,r,n,o,i,s,a){let c=X(),u=nt(),l=Mo(u.consts,i);return My(c,u,t,e,r,n,o,l,s,a),Ga}var xy=_y;function _y(t,e,r,n){return Ca(!0),e[ce].createComment("")}function yf(t,e,r,n){return qa(t,id(),r)?e+Cl(r)+n:wt}function ho(t,e){return t<<17|e<<2}function Vt(t){return t>>17&32767}function Ay(t){return(t&2)==2}function Ny(t,e){return t&131071|e<<17}function ia(t){return t|2}function In(t){return(t&131068)>>2}function Cs(t,e){return t&-131069|e<<2}function Ry(t){return(t&1)===1}function sa(t){return t|1}function ky(t,e,r,n,o,i){let s=i?e.classBindings:e.styleBindings,a=Vt(s),c=In(s);t[n]=r;let u=!1,l;if(Array.isArray(r)){let d=r;l=d[1],(l===null||nr(d,l)>0)&&(u=!0)}else l=r;if(o)if(c!==0){let f=Vt(t[a+1]);t[n+1]=ho(f,a),f!==0&&(t[f+1]=Cs(t[f+1],n)),t[a+1]=Ny(t[a+1],n)}else t[n+1]=ho(a,0),a!==0&&(t[a+1]=Cs(t[a+1],n)),a=n;else t[n+1]=ho(c,0),a===0?a=n:t[c+1]=Cs(t[c+1],n),c=n;u&&(t[n+1]=ia(t[n+1])),pl(t,l,n,!0),pl(t,l,n,!1),Oy(e,l,t,n,i),s=ho(a,c),i?e.classBindings=s:e.styleBindings=s}function Oy(t,e,r,n,o){let i=o?t.residualClasses:t.residualStyles;i!=null&&typeof e=="string"&&nr(i,e)>=0&&(r[n+1]=sa(r[n+1]))}function pl(t,e,r,n){let o=t[r+1],i=e===null,s=n?Vt(o):In(o),a=!1;for(;s!==0&&(a===!1||i);){let c=t[s],u=t[s+1];Py(c,e)&&(a=!0,t[s+1]=n?sa(u):ia(u)),s=n?Vt(u):In(u)}a&&(t[r+1]=n?ia(o):sa(o))}function Py(t,e){return t===null||e==null||(Array.isArray(t)?t[1]:t)===e?!0:Array.isArray(t)&&typeof e=="string"?nr(t,e)>=0:!1}var Re={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Fy(t){return t.substring(Re.key,Re.keyEnd)}function Ly(t){return jy(t),wf(t,Df(t,0,Re.textEnd))}function wf(t,e){let r=Re.textEnd;return r===e?-1:(e=Re.keyEnd=Uy(t,Re.key=e,r),Df(t,e,r))}function jy(t){Re.key=0,Re.keyEnd=0,Re.value=0,Re.valueEnd=0,Re.textEnd=t.length}function Df(t,e,r){for(;e<r&&t.charCodeAt(e)<=32;)e++;return e}function Uy(t,e,r){for(;e<r&&t.charCodeAt(e)>32;)e++;return e}function ei(t,e,r){let n=X(),o=id();if(qa(n,o,e)){let i=nt(),s=fd();tf(i,s,n,t,e,n[ce],r,!1)}return ei}function aa(t,e,r,n,o){let i=e.inputs,s=o?"class":"style";Ua(t,r,i[s],s,n)}function Wa(t){$y(Zy,Vy,t,!0)}function Vy(t,e){for(let r=Ly(e);r>=0;r=wf(e,r))fa(t,Fy(e),!0)}function $y(t,e,r,n){let o=nt(),i=nm(2);o.firstUpdatePass&&By(o,null,i,n);let s=X();if(r!==wt&&qa(s,i,r)){let a=o.data[Cn()];if(bf(a,n)&&!If(o,i)){let c=n?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(r=Ms(c,r||"")),aa(o,a,s,r,n)}else Qy(o,a,s,s[ce],s[i+1],s[i+1]=Wy(t,e,r),n,i)}}function If(t,e){return e>=t.expandoStartIndex}function By(t,e,r,n){let o=t.data;if(o[r+1]===null){let i=o[Cn()],s=If(t,r);bf(i,n)&&e===null&&!s&&(e=!1),e=Hy(o,i,e,n),ky(o,i,e,r,s,n)}}function Hy(t,e,r,n){let o=sm(t),i=n?e.residualClasses:e.residualStyles;if(o===null)(n?e.classBindings:e.styleBindings)===0&&(r=Ss(null,t,e,r,n),r=tr(r,e.attrs,n),i=null);else{let s=e.directiveStylingLast;if(s===-1||t[s]!==o)if(r=Ss(o,t,e,r,n),i===null){let c=zy(t,e,n);c!==void 0&&Array.isArray(c)&&(c=Ss(null,t,e,c[1],n),c=tr(c,e.attrs,n),qy(t,e,n,c))}else i=Gy(t,e,n)}return i!==void 0&&(n?e.residualClasses=i:e.residualStyles=i),r}function zy(t,e,r){let n=r?e.classBindings:e.styleBindings;if(In(n)!==0)return t[Vt(n)]}function qy(t,e,r,n){let o=r?e.classBindings:e.styleBindings;t[Vt(o)]=n}function Gy(t,e,r){let n,o=e.directiveEnd;for(let i=1+e.directiveStylingLast;i<o;i++){let s=t[i].hostAttrs;n=tr(n,s,r)}return tr(n,e.attrs,r)}function Ss(t,e,r,n,o){let i=null,s=r.directiveEnd,a=r.directiveStylingLast;
7for(a===-1?a=r.directiveStart:a++;a<s&&(i=e[a],n=tr(n,i.hostAttrs,o),i!==t);)a++;return t!==null&&(r.directiveStylingLast=a),n}function tr(t,e,r){let n=r?1:2,o=-1;if(e!==null)for(let i=0;i<e.length;i++){let s=e[i];typeof s=="number"?o=s:o===n&&(Array.isArray(t)||(t=t===void 0?[]:["",t]),fa(t,s,r?!0:e[++i]))}return t===void 0?null:t}function Wy(t,e,r){if(r==null||r==="")return Ke;let n=[],o=Ra(r);if(Array.isArray(o))for(let i=0;i<o.length;i++)t(n,o[i],!0);else if(typeof o=="object")for(let i in o)o.hasOwnProperty(i)&&t(n,i,o[i]);else typeof o=="string"&&e(n,o);return n}function Zy(t,e,r){let n=String(e);n!==""&&!n.includes(" ")&&fa(t,n,r)}function Qy(t,e,r,n,o,i,s,a){o===wt&&(o=Ke);let c=0,u=0,l=0<o.length?o[0]:null,d=0<i.length?i[0]:null;for(;l!==null||d!==null;){let f=c<o.length?o[c+1]:void 0,h=u<i.length?i[u+1]:void 0,p=null,m;l===d?(c+=2,u+=2,f!==h&&(p=d,m=h)):d===null||l!==null&&l<d?(c+=2,p=l):(u+=2,p=d,m=h),p!==null&&Yy(t,e,r,n,p,m,s,a),l=c<o.length?o[c]:null,d=u<i.length?i[u]:null}}function Yy(t,e,r,n,o,i,s,a){if(!(e.type&3))return;let c=t.data,u=c[a+1],l=Ry(u)?gl(c,e,r,o,In(u),s):void 0;if(!Fo(l)){Fo(i)||Ay(u)&&(i=gl(c,null,r,o,a,s));let d=Ql(Cn(),r);dv(n,s,d,o,i)}}function gl(t,e,r,n,o,i){let s=e===null,a;for(;o>0;){let c=t[o],u=Array.isArray(c),l=u?c[1]:c,d=l===null,f=r[o+1];f===wt&&(f=d?Ke:void 0);let h=d?gs(f,n):l===n?f:void 0;if(u&&!Fo(h)&&(h=gs(c,n)),Fo(h)&&(a=h,s))return a;let p=t[o+1];o=s?Vt(p):In(p)}if(e!==null){let c=i?e.residualClasses:e.residualStyles;c!=null&&(a=gs(c,n))}return a}function Fo(t){return t!==void 0}function bf(t,e){return(t.flags&(e?8:16))!==0}function Ky(t,e,r,n,o,i){let s=e.consts,a=Mo(s,o),c=Ko(e,t,2,n,a);return nf(e,r,c,Mo(s,i)),c.attrs!==null&&ta(c,c.attrs,!1),c.mergedAttrs!==null&&ta(c,c.mergedAttrs,!0),e.queries!==null&&e.queries.elementStart(e,c),c}function G(t,e,r,n){let o=X(),i=nt(),s=ht+t,a=o[ce],c=i.firstCreatePass?Ky(s,i,o,e,r,n):i.data[s],u=Jy(i,o,c,a,e,t);o[s]=u;let l=va(c);return or(c,!0),Gd(a,u,c),!Sy(c)&&Ea()&&Fa(i,o,u,c),Wg()===0&&jt(u,o),Zg(),l&&(Jd(i,o,c),Kd(i,c,o)),n!==null&&Xd(o,c),G}function U(){let t=je();rd()?em():(t=t.parent,or(t,!1));let e=t;Kg(e)&&Jg(),Qg();let r=nt();return r.firstCreatePass&&(Sa(r,t),Hl(t)&&r.queries.elementEnd(t)),e.classesWithoutHost!=null&&pm(e)&&aa(r,e,X(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&gm(e)&&aa(r,e,X(),e.stylesWithoutHost,!1),U}function ee(t,e,r,n){return G(t,e,r,n),U(),ee}var Jy=(t,e,r,n,o,i)=>(Ca(!0),Ud(n,o,lm()));function Za(){return X()}var Lo="en-US";var Xy=Lo;function ew(t){typeof t=="string"&&(Xy=t.toLowerCase().replace(/_/g,"-"))}var tw=(t,e,r)=>{};function ar(t,e,r,n){let o=X(),i=nt(),s=je();return rw(i,o,o[ce],s,t,e,n),ar}function nw(t,e,r,n){let o=t.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===r&&o[i+1]===n){let a=e[Eo],c=o[i+2];return a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function rw(t,e,r,n,o,i,s){let a=va(n),u=t.firstCreatePass&&Fv(t),l=e[Oe],d=Pv(e),f=!0;if(n.type&3||s){let m=Le(n,e),v=s?s(m):m,I=d.length,H=s?F=>s(Ze(F[n.index])):n.index,y=null;if(!s&&a&&(y=nw(t,e,o,n.index)),y!==null){let F=y.__ngLastListenerFn__||y;F.__ngNextListenerFn__=i,y.__ngLastListenerFn__=i,f=!1}else{i=vl(n,e,l,i),tw(m,o,i);let F=r.listen(v,o,i);d.push(i,F),u&&u.push(o,H,I,I+1)}}else i=vl(n,e,l,i);let h=n.outputs,p;if(f&&h!==null&&(p=h[o])){let m=p.length;if(m)for(let v=0;v<m;v+=2){let I=p[v],H=p[v+1],ue=e[I][H].subscribe(i),Y=d.length;d.push(i,ue),u&&u.push(o,n.index,Y,-(Y+1))}}}function ml(t,e,r,n){let o=L(null);try{return ze(6,e,r),r(n)!==!1}catch(i){return cf(t,i),!1}finally{ze(7,e,r),L(o)}}function vl(t,e,r,n){return function o(i){if(i===Function)return n;let s=t.componentOffset>-1?$t(t.index,e):e;$a(s,5);let a=ml(e,r,n,i),c=o.__ngNextListenerFn__;for(;c;)a=ml(e,r,c,i)&&a,c=c.__ngNextListenerFn__;return a}}function cr(t=1){return cm(t)}function ur(t,e,r){return Ef(t,"",e,"",r),ur}function Ef(t,e,r,n,o){let i=X(),s=yf(i,e,r,n);if(s!==wt){let a=nt(),c=fd();tf(a,c,i,t,s,i[ce],o,!1)}return Ef}function re(t,e=""){let r=X(),n=nt(),o=t+ht,i=n.firstCreatePass?Ko(n,o,1,e,null):n.data[o],s=ow(n,r,i,e,t);r[o]=s,Ea()&&Fa(n,r,s,i),or(i,!1)}var ow=(t,e,r,n,o)=>(Ca(!0),Wm(e[ce],n));function ti(t,e,r){let n=X(),o=yf(n,t,e,r);return o!==wt&&Lv(n,Cn(),o),ti}var iw=(()=>{let e=class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let o=jl(!1,n.type),i=o.length>0?za([o],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}};e.\u0275prov=E({token:e,providedIn:"environment",factory:()=>new e(D(De))});let t=e;return t})();function Sn(t){Xo("NgStandalone"),t.getStandaloneInjector=e=>e.get(iw).getOrCreateStandaloneInjector(t)}var ni=(()=>{let e=class e{log(n){console.log(n)}warn(n){console.warn(n)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"platform"});let t=e;return t})();
7var Cf=new C("");function lr(t){return!!t&&typeof t.then=="function"}function Sf(t){return!!t&&typeof t.subscribe=="function"}var Tf=new C(""),Mf=(()=>{let e=class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,o)=>{this.resolve=n,this.reject=o}),this.appInits=g(Tf,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let i of this.appInits){let s=i();if(lr(s))n.push(s);else if(Sf(s)){let a=new Promise((c,u)=>{s.subscribe({complete:c,error:u})});n.push(a)}}let o=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{o()}).catch(i=>{this.reject(i)}),n.length===0&&o(),this.initialized=!0}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),ri=new C("");function sw(){su(()=>{throw new S(600,!1)})}function aw(t){return t.isBoundToModule}var cw=10;function uw(t,e,r){try{let n=r();return lr(n)?n.catch(o=>{throw e.runOutsideAngular(()=>t.handleError(o)),o}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}var Ht=(()=>{let e=class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=g(Om),this.afterRenderEffectManager=g(mf),this.zonelessEnabled=g(Ha),this.externalTestViews=new Set,this.beforeRender=new te,this.afterTick=new te,this.componentTypes=[],this.components=[],this.isStable=g(vt).hasPendingTasks.pipe(M(n=>!n)),this._injector=g(De)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,o){let i=n instanceof ko;if(!this._injector.get(Mf).done){let h=!i&&Ol(n),p=!1;throw new S(405,p)}let a;i?a=n:a=this._injector.get(wn).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let c=aw(a)?void 0:this._injector.get(gt),u=o||a.selector,l=a.create(Lt.NULL,[],u,c),d=l.location.nativeElement,f=l.injector.get(Cf,null);return f?.registerApplication(d),l.onDestroy(()=>{this.detachView(l.hostView),Ts(this.components,l),f?.unregisterApplication(d)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new S(101,!1);let o=L(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1,L(o),this.afterTick.next()}}detectChangesInAttachedViews(n){let o=null;this._injector.destroyed||(o=this._injector.get(Dn,null,{optional:!0}));let i=0,s=this.afterRenderEffectManager;for(;i<cw;){let a=i===0;if(n||!a){this.beforeRender.next(a);for(let{_lView:c,notifyErrorHandler:u}of this._views)lw(c,u,a,this.zonelessEnabled)}else o?.begin?.(),o?.end?.();if(i++,s.executeInternalCallbacks(),!this.allViews.some(({_lView:c})=>Qn(c))&&(s.execute(),!this.allViews.some(({_lView:c})=>Qn(c))))break}}attachView(n){let o=n;this._views.push(o),o.attachToAppRef(this)}detachView(n){let o=n;Ts(this._views,o),o.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let o=this._injector.get(ri,[]);[...this._bootstrapListeners,...o].forEach(i=>i(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Ts(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}warnIfDestroyed(){}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function Ts(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}function lw(t,e,r,n){if(!r&&!Qn(t))return;df(t,e,r&&!n?0:1)}var ca=class{constructor(e,r){this.ngModuleFactory=e,this.componentFactories=r}},Qa=(()=>{let e=class e{compileModuleSync(n){return new oa(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let o=this.compileModuleSync(n),i=Pl(n),s=jd(i.declarations).reduce((a,c)=>{let u=kt(c);return u&&a.push(new Xn(u)),a},[]);return new ca(o,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var dw=(()=>{let e=class e{constructor(){this.zone=g(q),this.changeDetectionScheduler
7=g(Jn),this.applicationRef=g(Ht)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),fw=new C("",{factory:()=>!1});function xf({ngZoneFactory:t,ignoreChangesOutsideZone:e}){return t??=()=>new q(Af()),[{provide:q,useFactory:t},{provide:gn,multi:!0,useFactory:()=>{let r=g(dw,{optional:!0});return()=>r.initialize()}},{provide:gn,multi:!0,useFactory:()=>{let r=g(hw);return()=>{r.initialize()}}},e===!0?{provide:gf,useValue:!0}:[]]}function _f(t){let e=t?.ignoreChangesOutsideZone,r=xf({ngZoneFactory:()=>{let n=Af(t);return n.shouldCoalesceEventChangeDetection&&Xo("NgZone_CoalesceEvent"),new q(n)},ignoreChangesOutsideZone:e});return mt([{provide:fw,useValue:!0},{provide:Ha,useValue:!1},r])}function Af(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var hw=(()=>{let e=class e{constructor(){this.subscription=new Q,this.initialized=!1,this.zone=g(q),this.pendingTasks=g(vt)}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(()=>{q.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{q.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var pw=(()=>{let e=class e{constructor(){this.appRef=g(Ht),this.taskService=g(vt),this.ngZone=g(q),this.zonelessEnabled=g(Ha),this.disableScheduling=g(gf,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new Q,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,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 qs||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 3:case 2:case 0:case 4:case 5:case 1:{this.shouldRefreshViews=!0;break}case 8:case 7:case 6:case 9:default:}if(!this.shouldScheduleTick())return;let o=this.useMicrotaskScheduler?tl:_d;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=o(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=o(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&q.isInAngularZone())}tick(n){if(this.runningTick||this.appRef.destroyed)return;let o=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(n)},void 0,this.schedulerTickApplyArgs)}catch(i){throw this.taskService.remove(o),i}finally{this.cleanup()}this.useMicrotaskScheduler=!0,tl(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(o)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function gw(){return typeof $localize<"u"&&$localize.locale||Lo}var Ya=new C("",{providedIn:"root",factory:()=>g(Ya,R.Optional|R.SkipSelf)||gw()});var Nf=new C("");var vo=null;function mw(t=[],e){return Lt.create({name:e,providers:[{provide:B
7o,useValue:"platform"},{provide:Nf,useValue:new Set([()=>vo=null])},...t]})}function vw(t=[]){if(vo)return vo;let e=mw(t);return vo=e,sw(),yw(e),e}function yw(t){t.get(_a,null)?.forEach(r=>r())}var dr=(()=>{let e=class e{};e.__NG_ELEMENT_ID__=ww;let t=e;return t})();function ww(t){return Dw(je(),X(),(t&16)===16)}function Dw(t,e,r){if(zo(t)&&!r){let n=$t(t.index,e);return new Ut(n,n)}else if(t.type&175){let n=e[We];return new Ut(n,e)}return null}function Rf(t){try{let{rootComponent:e,appProviders:r,platformProviders:n}=t,o=vw(n),i=[xf({}),{provide:Jn,useExisting:pw},...r||[]],a=new Po({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1}).injector,c=a.get(q);return c.run(()=>{a.resolveInjectorInitializers();let u=a.get(pt,null),l;c.runOutsideAngular(()=>{l=c.onError.subscribe({next:h=>{u.handleError(h)}})});let d=()=>a.destroy(),f=o.get(Nf);return f.add(d),a.onDestroy(()=>{l.unsubscribe(),f.delete(d)}),uw(u,c,()=>{let h=a.get(Mf);return h.runInitializers(),h.donePromise.then(()=>{let p=a.get(Ya,Lo);ew(p||Lo);let m=a.get(Ht);return e!==void 0&&m.bootstrap(e),m})})})}catch(e){return Promise.reject(e)}}var kf=new C("");var Uf=null;function Tn(){return Uf}function Vf(t){Uf??=t}var oi=class{};var oe=new C(""),$f=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=E({token:e,factory:()=>g(Sw),providedIn:"platform"});let t=e;return t})();var Sw=(()=>{let e=class e extends $f{constructor(){super(),this._doc=g(oe),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Tn().getBaseHref(this._doc)}onPopState(n){let o=Tn().getGlobalEventTarget(this._doc,"window");return o.addEventListener("popstate",n,!1),()=>o.removeEventListener("popstate",n)}onHashChange(n){let o=Tn().getGlobalEventTarget(this._doc,"window");return o.addEventListener("hashchange",n,!1),()=>o.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,o,i){this._history.pushState(n,o,i)}replaceState(n,o,i){this._history.replaceState(n,o,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=E({token:e,factory:()=>new e,providedIn:"platform"});let t=e;return t})();function Bf(t,e){if(t.length==0)return e;if(e.length==0)return t;let r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,r==2?t+e.substring(1):r==1?t+e:t+"/"+e}function Of(t){let e=t.match(/#|\?|$/),r=e&&e.index||t.length,n=r-(t[r-1]==="/"?1:0);return t.slice(0,n)+t.slice(r)}function qt(t){return t&&t[0]!=="?"?"?"+t:t}var ai=(()=>{let e=class e{historyGo(n){throw new Error("")}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=E({token:e,factory:()=>g(Hf),providedIn:"root"});let t=e;return t})(),Tw=new C(""),Hf=(()=>{let e=class e extends ai{constructor(n,o){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=o??this._platformLocation.getBaseHrefFromDOM()??g(oe).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 Bf(this._baseHref,n)}path(n=!1){let o=this._platformLocation.pathname+qt(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${o}${i}`:o}pushState(n,o,i,s){let a=this.prepareExternalUrl(i+qt(s));this._platformLocation.pushState(n,o,a)}replaceState(n,o,i,s){let a=this.prepareExternalUrl(i+qt(s));this._platformLocation.replaceState(n,o,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}};e.\u0275fac=function(o){return new(o||e)(D($f),D(Tw,8))},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var fr=(()=>
7{let e=class e{constructor(n){this._subject=new he,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;let o=this._locationStrategy.getBaseHref();this._basePath=_w(Of(Pf(o))),this._locationStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,o=""){return this.path()==this.normalize(n+qt(o))}normalize(n){return e.stripTrailingSlash(xw(this._basePath,Pf(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,o="",i=null){this._locationStrategy.pushState(i,"",n,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+qt(o)),i)}replaceState(n,o="",i=null){this._locationStrategy.replaceState(i,"",n,o),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+qt(o)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(o=>{this._notifyUrlChangeListeners(o.url,o.state)}),()=>{let o=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(o,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",o){this._urlChangeListeners.forEach(i=>i(n,o))}subscribe(n,o,i){return this._subject.subscribe({next:n,error:o,complete:i})}};e.normalizeQueryParams=qt,e.joinWithSlash=Bf,e.stripTrailingSlash=Of,e.\u0275fac=function(o){return new(o||e)(D(ai))},e.\u0275prov=E({token:e,factory:()=>Mw(),providedIn:"root"});let t=e;return t})();function Mw(){return new fr(D(ai))}function xw(t,e){if(!t||!e.startsWith(t))return e;let r=e.substring(t.length);return r===""||["/",";","?","#"].includes(r[0])?r:e}function Pf(t){return t.replace(/\/index.html$/,"")}function _w(t){if(new RegExp("^(https?:)?//").test(t)){let[,r]=t.split(/\/\/[^\/]+/);return r}return t}function ci(t,e){e=encodeURIComponent(e);for(let r of t.split(";")){let n=r.indexOf("="),[o,i]=n==-1?[r,""]:[r.slice(0,n),r.slice(n+1)];if(o.trim()===e)return decodeURIComponent(i)}return null}var zf=(()=>{let e=class e{constructor(n,o){this._viewContainer=n,this._context=new Ja,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=o}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Ff("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Ff("ngIfElse",n),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 ngTemplateContextGuard(n,o){return!0}};e.\u0275fac=function(o){return new(o||e)(Bt(sr),Bt(Ba))},e.\u0275dir=$o({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0});let t=e;return t})(),Ja=class{constructor(){this.$implicit=null,this.ngIf=null}};function Ff(t,e){if(!!!(!e||e.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${we(e)}'.`)}var qf="browser",Aw="server";function ui(t){return t===Aw}var Mn=class{};var pr=class{},di=class{},ie=class t{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(`
8`).forEach(r=>{let n=r.indexOf(":");if(n>0){let o=r.slice(0,n),i=o.toLowerCase(),s=r.slice(n+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((r,n)=>{this.setHeaderEntries(n,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([r,n])=>{this.setHeaderEntries(r,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let r=this.headers.get(e.toLowerCase());return r&&r.length>0?r[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,r){return this.clone({name:e,value:r,op:"a"})}set(e,r){return this.clone({name:e,value:r,op:"s"})}delete(e,r){return this.clone({name:e,value:r,op:"d"})}maybeSetNormalizedName(e,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,e)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e
vendor: 5,056 bytes, line 8
8=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(r=>{this.headers.set(r,e.headers.get(r)),this.normalizedNames.set(r,e.normalizedNames.get(r))})}clone(e){let r=new t;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([e]),r}applyUpdate(e){let r=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,r);let o=(e.op==="a"?this.headers.get(r):void 0)||[];o.push(...n),this.headers.set(r,o);break;case"d":let i=e.value;if(!i)this.headers.delete(r),this.normalizedNames.delete(r);else{let s=this.headers.get(r);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(r),this.normalizedNames.delete(r)):this.headers.set(r,s)}break}}setHeaderEntries(e,r){let n=(Array.isArray(r)?r:[r]).map(i=>i.toString()),o=e.toLowerCase();this.headers.set(o,n),this.maybeSetNormalizedName(e,o)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>e(this.normalizedNames.get(r),this.headers.get(r)))}};var ec=class{encodeKey(e){return Gf(e)}encodeValue(e){return Gf(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function Rw(t,e){let r=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[e.decodeKey(o),""]:[e.decodeKey(o.slice(0,i)),e.decodeValue(o.slice(i+1))],c=r.get(s)||[];c.push(a),r.set(s,c)}),r}var kw=/%(\d[a-f0-9])/gi,Ow={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Gf(t){return encodeURIComponent(t).replace(kw,(e,r)=>Ow[r]??e)}function li(t){return`${t}`}var Ie=class t{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new ec,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Rw(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(r=>{let n=e.fromObject[r],o=Array.isArray(n)?n.map(li):[li(n)];this.map.set(r,o)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let r=this.map.get(e);return r?r[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,r){return this.clone({param:e,value:r,op:"a"})}appendAll(e){let r=[];return Object.keys(e).forEach(n=>{let o=e[n];Array.isArray(o)?o.forEach(i=>{r.push({param:n,value:i,op:"a"})}):r.push({param:n,value:o,op:"a"})}),this.clone(r)}set(e,r){return this.clone({param:e,value:r,op:"s"})}delete(e,r){return this.clone({param:e,value:r,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let r=this.encoder.encodeKey(e);return this.map.get(e).map(n=>r+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let r=new t({encoder:this.encoder});return r.cloneFrom=this.cloneFrom||this,r.updates=(this.updates||[]).concat(e),r}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let r=(e.op==="a"?this.map.get(e.param):void 0)||[];r.push(li(e.value)),this.map.set(e.param,r);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],o=n.indexOf(li(e.value));o!==-1&&n.splice(o,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var tc=class{constructor(){this.map=new Map}set(e,r){return this.map.set(e,r),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function Pw(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Wf(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function Zf(t){return typeof Blob<"u"&&t instanceof Blob}function Qf(t){return typeof FormData<"u"&&t instanceof FormData}function Fw(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var hr=class t{constructor(e,r,n,o){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let i;if(Pw(this.method)||o?(this.body=n!==void 0?n:null,i=o):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),this.transferCache=i.transferCache),this.headers??=new ie,this.context??=new tc,!this.params)this.params=new Ie,this.urlWithParams=r;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=r;else{let a=r.indexOf("?"),c=a===-1?"?":a<r.length-1?"&":"";this.urlWithParams=r+c+s}}}serializeBody(){return this.body===null?null:typeof this.body=="str
8ing"||Wf(this.body)||Zf(this.body)||Qf(this.body)||Fw(this.body)?this.body:this.body instanceof Ie?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||Qf(this.body)?null:Zf(this.body)?this.body.type||null:Wf(this.body)?null:typeof this.body=="string"?"text/plain":this.body instanceof Ie?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?"application/json":null}clone(e={}){let r=e.method||this.method,n=e.url||this.url,o=e.responseType||this.responseType,i=e.transferCache??this.transferCache,s=e.body!==void 0?e.body:this.body,a=e.withCredentials??this.withCredentials,c=e.reportProgress??this.reportProgress,u=e.headers||this.headers,l=e.params||this.params,d=e.context??this.context;return e.setHeaders!==void 0&&(u=Object.keys(e.setHeaders).reduce((f,h)=>f.set(h,e.setHeaders[h]),u)),e.setParams&&(l=Object.keys(e.setParams).reduce((f,h)=>f.set(h,e.setParams[h]),l)),new t(r,n,s,{params:l,headers:u,context:d,reportProgress:c,responseType:o,withCredentials:a,transferCache:i})}},It=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(It||{}),gr=class{constructor(e,r=200,n="OK"){this.headers=e.headers||new ie,this.status=e.status!==void 0?e.status:r,this.statusText=e.statusText||n,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},fi=class t extends gr{constructor(e={}
8){super(e),this.type=It.ResponseHeader}clone(e={}){return new t({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},mr=class t extends gr{constructor(e={}){super(e),this.type=It.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new t({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Dt=class extends gr{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},Xf=200,Lw=204;function Xa(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var oc=(()=>{let e=class e{constructor(n){this.handler=n}request(n,o,i={}){let s;if(n instanceof hr)s=n;else{let u;i.headers instanceof ie?u=i.headers:u=new ie(i.headers);let l;i.params&&(i.params instanceof Ie?l=i.params:l=new Ie({fromObject:i.params})),s=new hr(n,o,i.body!==void 0?i.body:null,{headers:u,context:i.context,params:l,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}let a=b(s).pipe(ct(u=>this.handler.handle(u)));if(n instanceof hr||i.observe==="events")return a;let c=a.pipe(B(u=>u instanceof mr));switch(i.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return c.pipe(M(u=>{if(u.body!==null&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return c.pipe(M(u=>{if(u.body!==null&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return c.pipe(M(u=>{if(u.body!==null&&typeof u.body!="string")throw new Error("Response is not a string.");return u.body}));case"json":default:return c.pipe(M(u=>u.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(n,o={}){return this.request("DELETE",n,o)}get(n,o={}){return this.request("GET",n,o)}head(n,o={}){return this.request("HEAD",n,o)}jsonp(n,o){return this.request("JSONP",n,{params:new Ie().append(o,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,o={}){return this.request("OPTIONS",n,o)}patch(n,o,i={}){return this.request("PATCH",n,Xa(i,o))}post(n,o,i={}){return this.request("POST",n,Xa(i,o))}put(n,o,i={}){return this.request("PUT",n,Xa(i,o))}};e.\u0275fac=function(o){return new(o||e)(D(pr))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})(),jw=/^\)\]\}',?\n/,Uw="X-Request-URL";function Yf(t){if(t.url)return t.url;let e=Uw.toLocaleLowerCase();return t.headers.get(e)}var Vw=(()=>{let e=class e{constructor(){this.fetchImpl=g(nc,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=g(q)}handle(n){return new O(o=>{let i=new AbortController;return this.doRequest(n,i.signal,o).then(rc,s=>o.error(new Dt({error:s}))),()=>i.abort()})}doRequest(n,o,i){return $e(this,null,function*(){let s=this.createRequestInit(n),a;try{let p=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,w({signal:o},s)));$w(p),i.next({type:It.Sent}),a=yield p}catch(p){i.error(new Dt({error:p,status:p.status??0,statusText:p.statusText,url:n.urlWithParams,headers:p.headers}));return}let c=new ie(a.headers),u=a.statusText,l=Yf(a)??n.urlWithParams,d=a.status,f=null;if(n.reportProgress&&i.next(new fi({headers:c,status:d,statusText:u,url:l})),a.body){let p=a.headers.get("content-length"),m=[],v=a.body.getReader(),I=0,H,y,F=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>$e(this,null,function*(){for(;;){let{done:Y,value:le}=yield v.read();if(Y)break;if(m.push(le),I+=le.length,n.reportProgress){y=n.responseType==="text"?(y??"")+(H??=new TextDecoder).decode(le,{stream:!0}):void 0;let Jt=()=>i.next({type:It.DownloadProgress,total:p?+p:void 0,loaded:I,partialText:y});F?F.run(Jt):Jt()}}}));let ue=this.concatChunks(m,I);try{let Y=a.headers.get("Content-Type")??"";f=this.parseBody(n,ue,Y)}catch(Y){i.error(new Dt({error:Y,headers:new ie(a.headers),status:a.status,statusText:a.statusText,url:Yf(a)??n.urlWithParams}));return}}d===0&&(d=f?Xf:0),d>=200&&d<300?(i.next(new mr({body:f,headers:c,status:d,statusText:u,url:l})),i.complete()):i.error(new Dt({error:f,headers:c,status:d,statusText:u,url:l}))})}parseBody(n,o,i){switch(n.responseType){case"json":let s=new TextDecoder().decode(o).replace(jw,"");return s===""?null:JSON.parse(s);case"text":return new TextDecoder().decode(o);case"blob":return new Blob([o],{type:i});case"arraybuffer":return o.buffer}}createRequestInit(n){let o={},i=n.withCredentials?"include":void 0;
8if(n.headers.forEach((s,a)=>o[s]=a.join(",")),n.headers.has("Accept")||(o.Accept="application/json, text/plain, */*"),!n.headers.has("Content-Type")){let s=n.detectContentTypeHeader();s!==null&&(o["Content-Type"]=s)}return{body:n.serializeBody(),method:n.method,headers:o,credentials:i}}concatChunks(n,o){let i=new Uint8Array(o),s=0;for(let a of n)i.set(a,s),s+=a.length;return i}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})(),nc=class{};function rc(){}function $w(t){t.then(rc,rc)}function Bw(t,e){return e(t)}function Hw(t,e,r){return(n,o)=>Pe(r,()=>e(n,i=>t(i,o)))}var eh=new C(""),th=new C(""),zw=new C(""),qw=new C("",{providedIn:"root",factory:()=>!0});var Kf=(()=>{let e=class e extends pr{constructor(n,o){super(),this.backend=n,this.injector=o,this.chain=null,this.pendingTasks=g(vt),this.contributeToStability=g(qw)}handle(n){if(this.chain===null){let o=Array.from(new Set([...this.injector.get(th),...this.injector.get(zw,[])]));this.chain=o.reduceRight((i,s)=>Hw(i,s,this.injector),Bw)}if(this.contributeToStability){let o=this.pendingTasks.add();return this.chain(n,i=>this.backend.handle(i)).pipe(_t(()=>this.pendingTasks.remove(o)))}else return this.chain(n,o=>this.backend.handle(o))}};e.\u0275fac=function(o){return new(o||e)(D(di),D(De))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})();var Gw=/^\)\]\}',?\n/;function Ww(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var Jf=(()=>{let e=class e{constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new S(-2800,!1);let o=this.xhrFactory;return(o.\u0275loadImpl?z(o.\u0275loadImpl()):b(null)).pipe(fe(()=>new O(s=>{let a=o.build();if(a.open(n.method,n.urlWithParams),n.withCredentials&&(a.withCredentials=!0),n.headers.forEach((v,I)=>a.setRequestHeader(v,I.join(","))),n.headers.has("Accept")||a.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){let v=n.detectContentTypeHeader();v!==null&&a.setRequestHeader("Content-Type",v)}if(n.responseType){let v=n.responseType.toLowerCase();a.responseType=v!=="json"?v:"text"}let c=n.serializeBody(),u=null,l=()=>{if(u!==null)return u;let v=a.statusText||"OK",I=new ie(a.getAllResponseHeaders()),H=Ww(a)||n.url;return u=new fi({headers:I,status:a.status,statusText:v,url:H}),u},d=()=>{let{headers:v,status:I,statusText:H,url:y}=l(),F=null;I!==Lw&&(F=typeof a.response>"u"?a.responseText:a.response),I===0&&(I=F?Xf:0);let ue=I>=200&&I<300;if(n.responseType==="json"&&typeof F=="string"){let Y=F;F=F.replace(Gw,"");try{F=F!==""?JSON.parse(F):null}catch(le){F=Y,ue&&(ue=!1,F={error:le,text:F})}}ue?(s.next(new mr({body:F,headers:v,status:I,statusText:H,url:y||void 0})),s.complete()):s.error(new Dt({error:F,headers:v,status:I,statusText:H,url:y||void 0}))},f=v=>{let{url:I}=l(),H=new Dt({error:v,status:a.status||0,statusText:a.statusText||"Unknown Error",url:I||void 0});s.error(H)},h=!1,p=v=>{h||(s.next(l()),h=!0);let I={type:It.DownloadProgress,loaded:v.loaded};v.lengthComputable&&(I.total=v.total),n.responseType==="text"&&a.responseText&&(I.partialText=a.responseText),s.next(I)},m=v=>{let I={type:It.UploadProgress,loaded:v.loaded};v.lengthComputable&&(I.total=v.total),s.next(I)};return a.addEventListener("load",d),a.addEventListener("error",f),a.addEventListener("timeout",f),a.addEventListener("abort",f),n.reportProgress&&(a.addEventListener("progress",p),c!==null&&a.upload&&a.upload.addEventListener("progress",m)),a.send(c),s.next({type:It.Sent}),()=>{a.removeEventListener("error",f),a.removeEventListener("abort",f),a.removeEventListener("load",d),a.removeEventListener("timeout",f),n.reportProgress&&(a.removeEventListener("progress",p),c!==null&&a.upload&&a.upload.removeEventListener("progress",m)),a.readyState!==a.DONE&&a.abort()}})))}};e.\u0275fac=function(o){return new(o||e)(D(Mn))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})(),nh=new C(""),Zw="XSRF-TOKEN",Qw=new C("",{providedIn:"root",factory:()=>Zw}),Yw="X-XSRF-TOKEN",Kw=new C("",{providedIn:"root",factory:()=>Yw}),hi=class{},Jw=(()=>{let e=class e{constructor(n,o,i){this.doc=n,this.platform=o,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=ci(n,this.cookieName),this.lastCookieString=n),this.lastToken}};e.\u0275fac=function(o){return new(o||e)(D(oe),D(yt),D(Qw))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})();function Xw(t,e){let r=t.url.toLowerCase();if(!g(nh)||t.method==="GET"||t.method==="HEAD"||r.startsWith("http://")||r.startsWith("https://"))return e(t);let n=g(hi).getToken(),o=g(Kw);return n!=null&&!t.headers.has(o)&&(t=t.clone({headers:t.headers.set(o,n)})),e(t)}function rh(...t){let e=[oc,Jf,Kf,{provide:pr,useExisting:Kf},{provide:di,useFactory:()=>g(Vw,{optional:!0})??g(Jf)},{provide:th,useValue:Xw,multi:!0},{provide:nh,useValue:!0},{provide:hi,useClass:Jw}];for(let r of t)e.push(...r.\u0275providers);return mt(e)}var ac=class extends oi{constructor(){super(...arguments),this.supportsDOMEvents=!0}},cc=class t extends ac{static makeCurrent(){Vf(new t)}onAndCancel(e,r,n){return e.addEventListener(r,n),()=>{e.removeEventListener(r,n)}}dispatchEvent(e,r){e.dispatchEvent(r)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,r){return r=r||this.getDefaultDocument(),r.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}
8isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,r){return r==="window"?window:r==="document"?e:r==="body"?e.body:null}getBaseHref(e){let r=rD();return r==null?null:oD(r)}resetBaseElement(){vr=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return ci(document.cookie,e)}},vr=null;function rD(){return vr=vr||document.querySelector("base"),vr?vr.getAttribute("href"):null}function oD(t){return new URL(t,document.baseURI).pathname}var iD=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})(),pi=new C(""),ah=(()=>{let e=class e{constructor(n,o){this._zone=o,this._eventNameToPlugin=new Map,n.forEach(i=>{i.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,o,i){return this._findPluginFor(o).addEventListener(n,o,i)}getZone(){return this._zone}_findPluginFor(n){let o=this._eventNameToPlugin.get(n);if(o)return o;if(o=this._plugins.find(s=>s.supports(n)),!o)throw new S(5101,!1);return this._eventNameToPlugin.set(n,o),o}};e.\u0275fac=function(o){return new(o||e)(D(pi),D(q))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})(),yr=class{constructor(e){this._doc=e}},ic="ng-app-id",ch=(()=>{let e=class e{constructor(n,o,i,s={}){this.doc=n,this.appId=o,this.nonce=i,this.platformId=s,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=ui(s),this.resetHostNodes()}addStyles(n){for(let o of n)this.changeUsageCount(o,1)===1&&this.onStyleAdded(o)}removeStyles(n){for(let o of n)this.changeUsageCount(o,-1)<=0&&this.onStyleRemoved(o)}ngOnDestroy(){let n=this.styleNodesInDOM;n&&(n.forEach(o=>o.remove()),n.clear());for(let o of this.getAllStyles())this.onStyleRemoved(o);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(let o of this.getAllStyles())this.addStyleToHost(n,o)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(let o of this.hostNodes)this.addStyleToHost(o,n)}onStyleRemoved(n){let o=this.styleRef;o.get(n)?.elements?.forEach(i=>i.remove()),o.delete(n)}collectServerRenderedStyles(){let n=this.doc.head?.querySelectorAll(`style[${ic}="${this.appId}"]`);if(n?.length){let o=new Map;return n.forEach(i=>{i.textContent!=null&&o.set(i.textContent,i)}),o}return null}changeUsageCount(n,o){let i=this.styleRef;if(i.has(n)){let s=i.get(n);return s.usage+=o,s.usage}return i.set(n,{usage:o,elements:[]}),o}getStyleElement(n,o){let i=this.styleNodesInDOM,s=i?.get(o);if(s?.parentNode===n)return i.delete(o),s.removeAttribute(ic),s;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=o,this.platformIsServer&&a.setAttribute(ic,this.appId),n.appendChild(a),a}}addStyleToHost(n,o){let i=this.getStyleElement(n,o),s=this.styleRef,a=s.get(o)?.elements;a?a.push(i):s.set(o,{elements:[i],usage:1})}resetHostNodes(){let n=this.hostNodes;n.clear(),n.add(this.doc.head)}};e.\u0275fac=function(o){return new(o||e)(D(oe),D(xa),D(Aa,8),D(yt))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})(),sc={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"},lc=/%COMP%/g,uh="%COMP%",sD=`_nghost-${uh}`,aD=`_ngcontent-${uh}`,cD=!0,uD=new C("",{providedIn:"root",factory:()=>cD});function lD(t){return aD.replace(lc,t)}function dD(t){return sD.replace(lc,t)}function lh(t,e){return e.map(r=>r.replace(lc,t))}var oh=(()=>{let e=class e{constructor(n,o,i,s,a,c,u,l=null){this.eventManager=n,this.sharedStylesHost=o,this.appId=i,this.removeStylesOnCompDestroy=s,this.doc=a,this.platformId=c,this.ngZone=u,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=ui(c),this.defaultRenderer=new wr(n,a,u,this.platformIsServer)}createRenderer(n,o){if(!n||!o)return this.defaultRenderer;this.platformIsServer&&o.encapsulation===Ge.ShadowDom&&(o=K(w({},o),{encapsulation:Ge.Emulated}));let i=this.getOrCreateRenderer(n,o);
8return i instanceof gi?i.applyToHost(n):i instanceof Dr&&i.applyStyles(),i}getOrCreateRenderer(n,o){let i=this.rendererByCompId,s=i.get(o.id);if(!s){let a=this.doc,c=this.ngZone,u=this.eventManager,l=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,f=this.platformIsServer;switch(o.encapsulation){case Ge.Emulated:s=new gi(u,l,o,this.appId,d,a,c,f);break;case Ge.ShadowDom:return new uc(u,l,n,o,a,c,this.nonce,f);default:s=new Dr(u,l,o,d,a,c,f);break}i.set(o.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(o){return new(o||e)(D(ah),D(ch),D(xa),D(uD),D(oe),D(yt),D(q),D(Aa))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})(),wr=class{constructor(e,r,n,o){this.eventManager=e,this.doc=r,this.ngZone=n,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(sc[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(ih(e)?e.content:e).appendChild(r)}insertBefore(e,r,n){e&&(ih(e)?e.content:e).insertBefore(r,n)}removeChild(e,r){e&&e.removeChild(r)}selectRootElement(e,r){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new S(-5104,!1);return r||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,n,o){if(o){r=o+":"+r;let i=sc[o];i?e.setAttributeNS(i,r,n):e.setAttribute(r,n)}else e.setAttribute(r,n)}removeAttribute(e,r,n){if(n){let o=sc[n];o?e.removeAttributeNS(o,r):e.removeAttribute(`${n}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,n,o){o&(Xe.DashCase|Xe.Important)?e.style.setProperty(r,n,o&Xe.Important?"important":""):e.style[r]=n}removeStyle(e,r,n){n&Xe.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,n){e!=null&&(e[r]=n)}setValue(e,r){e.nodeValue=r}listen(e,r,n){if(typeof e=="string"&&(e=Tn().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(n))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function ih(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var uc=class extends wr{constructor(e,r,n,o,i,s,a,c){super(e,i,s,c),this.sharedStylesHost=r,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=lh(o.id,o.styles);for(let l of u){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=l,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,n){return super.insertBefore(this.nodeOrShadowRoot(e),r,n)}removeChild(e,r){return super.removeChild(this.nodeOrShadowRoot(e),r)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Dr=class extends wr{constructor(e,r,n,o,i,s,a,c){super(e,i,s,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=o,this.styles=c?lh(c,n.styles):n.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},gi=class extends Dr{constructor(e,r,n,o,i,s,a,c){let u=o+"-"+n.id;super(e,r,n,i,s,a,c,u),this.contentAttr=lD(u),this.hostAttr=dD(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let n=super.createElement(e,r);return super.setAttribute(n,this.contentAttr,""),n}},fD=(()=>{let e=class e extends yr{constructor(n){super(n)}supports(n){return!0}addEventListener(n,o,i){return n.addEventListener(o,i,!1),()=>this.removeEventListener(n,o,i)}removeEventListener(n,o,i){return n.removeEventListener(o,i)}};e.\u0275fac=function(o){return new(o||e)(D(oe))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})(),hD=(()=>{let e=class e extends yr{constructor(n){super(n),this.delegate=g(kf,{optional:!0})}supports(n){return this.delegate?this.delegate.supports(n):!1}addEventListener(n,o,i){return this.delegate.addEventListener(n,o,i)}removeEventListener(n,o,i){return this.delegate.removeEventListener(n,o,i)}};e.\u0275fac=function(o){return new(o||e)(D(oe))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})(),sh=["alt","control","meta","shift"],pD={"\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"},gD={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},mD=(()=>{let e=class e extends yr{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,o,i){let s=e.parseEventName(o),a=e.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Tn().onAndCancel(n,s.domEventName,a))}static parseEventName(n){let o=n.toLowerCase().split("."),i=o.shift();if(o.length===0||!(i==="keydown"||i==="keyup"))return null;let s=e._normalizeKey(o.pop()),a="",c=o.indexOf("code");if(c>
8-1&&(o.splice(c,1),a="code."),sh.forEach(l=>{let d=o.indexOf(l);d>-1&&(o.splice(d,1),a+=l+".")}),a+=s,o.length!=0||s.length===0)return null;let u={};return u.domEventName=i,u.fullKey=a,u}static matchEventFullKeyCode(n,o){let i=pD[n.key]||n.key,s="";return o.indexOf("code.")>-1&&(i=n.code,s="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),sh.forEach(a=>{if(a!==i){let c=gD[a];c(n)&&(s+=a+".")}}),s+=i,s===o)}static eventCallback(n,o,i){return s=>{e.matchEventFullKeyCode(s,n)&&i.runGuarded(()=>o(s))}}static _normalizeKey(n){return n==="esc"?"escape":n}};e.\u0275fac=function(o){return new(o||e)(D(oe))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})();function dh(t,e){return Rf(w({rootComponent:t},vD(e)))}function vD(t){return{appProviders:[...bD,...t?.providers??[]],platformProviders:ID}}function yD(){cc.makeCurrent()}function wD(){return new pt}function DD(){return Fd(document),document}var ID=[{provide:yt,useValue:qf},{provide:_a,useValue:yD,multi:!0},{provide:oe,useFactory:DD,deps:[]}];var bD=[{provide:Bo,useValue:"root"},{provide:pt,useFactory:wD,deps:[]},{provide:pi,useClass:fD,multi:!0,deps:[oe,q,yt]},{provide:pi,useClass:mD,multi:!0,deps:[oe]},{provide:pi,useClass:hD,multi:!0},oh,ch,ah,{provide:Dn,useExisting:oh},{provide:Mn,useClass:iD,deps:[]},[]];var fh=(()=>{let e=class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}};e.\u0275fac=function(o){return new(o||e)(D(oe))},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var A="primary",Lr=Symbol("RouteTitle"),gc=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r[0]:r}return null}getAll(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function kn(t){return new gc(t)}function CD(t,e,r){let n=r.path.split("/");if(n.length>t.length||r.pathMatch==="full"&&(e.hasChildren()||n.length<t.length))return null;let o={};for(let i=0;i<n.length;i++){let s=n[i],a=t[i];if(s[0]===":")o[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,n.length),posParams:o}}function SD(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(!Qe(t[r],e[r]))return!1;return!0}function Qe(t,e){let r=t?mc(t):void 0,n=e?mc(e):void 0;if(!r||!n||r.length!=n.length)return!1;let o;for(let i=0;i<r.length;i++)if(o=r[i],!Dh(t[o],e[o]))return!1;return!0}function mc(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Dh(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;let r=[...t].sort(),n=[...e].sort();return r.every((o,i)=>n[i]===o)}else return t===e}function Ih(t){return t.length>0?t[t.length-1]:null}function bt(t){return is(t)?t:lr(t)?z(Promise.resolve(t)):b(t)}var TD={exact:Eh,subset:Ch},bh={exact:MD,subset:xD,ignored:()=>!0};function hh(t,e,r){return TD[r.paths](t.root,e.root,r.matrixParams)&&bh[r.queryParams](t.queryParams,e.queryParams)&&!(r.fragment==="exact"&&t.fragment!==e.fragment)}function MD(t,e){return Qe(t,e)}function Eh(t,e,r){if(!Wt(t.segments,e.segments)||!yi(t.segments,e.segments,r)||t.numberOfChildren!==e.numberOfChildren)return!1;for(let n in e.children)if(!t.children[n]||!Eh(t.children[n],e.children[n],r))return!1;return!0}function xD(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(r=>Dh(t[r],e[r]))}function Ch(t,e,r){return Sh(t,e,e.segments,r)}function Sh(t,e,r,n){if(t.segments.length>r.length){let o=t.segments.slice(0,r.length);return!(!Wt(o,r)||e.hasChildren()||!yi(o,r,n))}else if(t.segments.length===r.length){if(!Wt(t.segments,r)||!yi(t.segments,r,n))return!1;for(let o in e.children)if(!t.children[o]||!Ch(t.children[o],e.children[o],n))return!1;return!0}else{let o=r.slice(0,t.segments.length),i=r.slice(t.segments.length);return!Wt(t.segments,o)||!yi(t.segments,o,n)||!t.children[A]?!1:Sh(t.children[A],e,i,n)}}function yi(t,e,r){return e.every((n,o)=>bh[r](t[o].parameters,n.parameters))}var it=class{constructor(e=new j([],{}),r={},n=null){this.root=e,this.queryParams=r,this.fragment=n}get queryParamMap(){return this._queryParamMap??=kn(this.queryParams),this._queryParamMap}toString(){return ND.serialize(this)}},j=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return wi(this)}},Gt=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap??=kn(this.parameters),this._parameterMap}toString(){return Mh(this)}};function _D(t,e){return Wt(t,e)&&t.every((r,n)=>Qe(r.parameters,e[n].parameters))}function Wt(t,e){return t.length!==e.length?!1:t.every((r,n)=>r.path===e[n].path)}function AD(t,e){let r=[];
vendor: 9,753 bytes, line 8
8return Object.entries(t.children).forEach(([n,o])=>{n===A&&(r=r.concat(e(o,n)))}),Object.entries(t.children).forEach(([n,o])=>{n!==A&&(r=r.concat(e(o,n)))}),r}var Bc=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=E({token:e,factory:()=>new Mr,providedIn:"root"});let t=e;return t})(),Mr=class{parse(e){let r=new yc(e);return new it(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${Ir(e.root,!0)}`,n=OD(e.queryParams),o=typeof e.fragment=="string"?`#${RD(e.fragment)}`:"";return`${r}${n}${o}`}},ND=new Mr;function wi(t){return t.segments.map(e=>Mh(e)).join("/")}function Ir(t,e){if(!t.hasChildren())return wi(t);if(e){let r=t.children[A]?Ir(t.children[A],!1):"",n=[];return Object.entries(t.children).forEach(([o,i])=>{o!==A&&n.push(`${o}:${Ir(i,!1)}`)}),n.length>0?`${r}(${n.join("//")})`:r}else{let r=AD(t,(n,o)=>o===A?[Ir(t.children[A],!1)]:[`${o}:${Ir(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[A]!=null?`${wi(t)}/${r[0]}`:`${wi(t)}/(${r.join("//")})`}}function Th(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function mi(t){return Th(t).replace(/%3B/gi,";")}function RD(t){return encodeURI(t)}function vc(t){return Th(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Di(t){return decodeURIComponent(t)}function ph(t){return Di(t.replace(/\+/g,"%20"))}function Mh(t){return`${vc(t.path)}${kD(t.parameters)}`}function kD(t){return Object.entries(t).map(([e,r])=>`;${vc(e)}=${vc(r)}`).join("")}function OD(t){let e=Object.entries(t).map(([r,n])=>Array.isArray(n)?n.map(o=>`${mi(r)}=${mi(o)}`).join("&"):`${mi(r)}=${mi(n)}`).filter(r=>r);return e.length?`?${e.join("&")}`:""}var PD=/^[^\/()?;#]+/;function dc(t){let e=t.match(PD);return e?e[0]:""}var FD=/^[^\/()?;=#]+/;function LD(t){let e=t.match(FD);return e?e[0]:""}var jD=/^[^=?&#]+/;function UD(t){let e=t.match(jD);return e?e[0]:""}var VD=/^[^&#]+/;function $D(t){let e=t.match(VD);return e?e[0]:""}var yc=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new j([],{}):new j([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(n[A]=new j(e,r)),n}parseSegment(){let e=dc(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new S(4009,!1);return this.capture(e),new Gt(Di(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=LD(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let o=dc(this.remaining);o&&(n=o,this.capture(n))}e[Di(r)]=Di(n)}parseQueryParam(e){let r=UD(this.remaining);if(!r)return;this.capture(r);let n="";if(this.consumeOptional("=")){let s=$D(this.remaining);s&&(n=s,this.capture(n))}let o=ph(r),i=ph(n);if(e.hasOwnProperty(o)){let s=e[o];Array.isArray(s)||(s=[s],e[o]=s),s.push(i)}else e[o]=i}parseParens(e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=dc(this.remaining),o=this.remaining[n.length];if(o!=="/"&&o!==")"&&o!==";")throw new S(4010,!1);let i;n.indexOf(":")>-1?(i=n.slice(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=A);let s=this.parseChildren();r[i]=Object.keys(s).length===1?s[A]:new j([],s),this.consumeOptional("//")}return r}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new S(4011,!1)}};function xh(t){return t.segments.length>0?new j([],{[A]:t}):t}function _h(t){let e={};for(let[n,o]of Object.entries(t.children)){let i=_h(o);if(n===A&&i.segments.length===0&&i.hasChildren())for(let[s,a]of Object.entries(i.children))e[s]=a;else(i.segments.length>0||i.hasChildren())&&(e[n]=i)}let r=new j(t.segments,e);return BD(r)}function BD(t){if(t.numberOfChildren===1&&t.children[A]){let e=t.children[A];return new j(t.segments.concat(e.segments),e.children)}return t}function xr(t){return t instanceof it}function HD(t,e,r=null,n=null){let o=Ah(t);return Nh(o,e,r,n)}function Ah(t){let e;function r(i){let s={};for(let c of i.children){let u=r(c);s[c.outlet]=u}let a=new j(i.url,s);return i===t&&(e=a),a}let n=r(t.root),o=xh(n);return e??o}function Nh(t,e,r,n){let o=t;for(;o.parent;)o=o.parent;if(e.length===0)return fc(o,o,o,r,n);let i=zD(e);if(i.toRoot())return fc(o,o,new j([],{}),r,n);let s=qD(i,o,t),a=s.processChildren?Cr(s.segmentGroup,s.index,i.commands):kh(s.segmentGroup,s.index,i.commands);return fc(o,s.segmentGroup,a,r,n)}function Ii(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function _r(t){return typeof t=="object"&&t!=null&&t.outlets}function fc(t,e,r,n,o){let i={};n&&Object.entries(n).forEach(([c,u])=>{i[c]=Array.isArray(u)?u.map(l=>`${l}`):`${u}`});let s;t===e?s=r:s=Rh(t,e,r);let a=xh(_h(s));return new it(a,i,o)}function Rh(t,e,r){let n={};return Object.entries(t.children).forEach(([o,i])=>{i===e?n[o]=r:n[o]=Rh(i,e,r)}),new j(t.segments,n)}var bi=class{constructor(e,r,n){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=n,e&&n.length>0&&Ii(n[0]))throw new S(4003,!1);let o=n.find(_r);if(o&&o!==Ih(n))throw new S(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function zD(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new bi(!0,0,t);let e=0,r=!1,n=t.reduce((o,i,s)=>{if(typeof i=="object"&&i!=null){if(i.outlets){let a={};return Object.entries(i.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...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===""?r=!0:a===".."?e++:a!=""&&o.push(a))}),o):[...o,i]},[]);return new bi(r,e,n)}var An=class{constructor(e,r,n){this.segmentGroup=e,this.processChildren=r,this.index=n}};function qD(t,e,r){if(t.isAbsolute)return new An(e,!0,0);if(!r)return new An(e,!1,NaN);if(r.parent===null)return new An(r,!0,0);let n=Ii(t.commands[0])?0:1,o=r.segments.length-1+n;return GD(r,o,t.numberOfDoubleDots)}function GD(t,e,r){let n=t,o=e,i=r;for(;i>o;){if(i-=o,n=n.parent,!n)throw new S(4005,!1);o=n.segments.length}return new An(n,!1,o-i)}function WD(t){return _r(t[0])?t[0].outlets:{[A]:t}}function kh(t,e,r){if(t??=new j([],{}),t.segments.length===0&&t.hasChildren())return Cr(t,e,r);let n=ZD(t,e,r),o=r.slice(n.commandIndex);if(n.match&&n.pathIndex<t.segments.length){let i=new j(t.segments.slice(0,n.pathIndex),{});return i.children[A]=new j(t.segments.slice(n.pathIndex),t.children),Cr(i,0,o)}else return n.match&&o.length===0?new j(t.segments,{}):n.match&&!t.hasChildren()?wc(t,e,r):n.match?Cr(t,0,o):wc(t,e,r)}function Cr(t,e,r){if(r.length===0)return new j(t.segments,{});{let n=WD(r),o={};if(Object.keys(n).some(i=>i!==A)&&t.children[A]&&t.numberOfChildren===1&&t.children[A].segments.length===0){let i=Cr(t.children[A],e,r);return new j(t.segments,i.children)}return Object.entries(n).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=kh(t.children[i],e,s))}),Object.entries(t.children).forEach(([i,s])=>{n[i]===void 0&&(o[i]=s)}),new j(t.segments,o)}}function ZD(t,e,r){let n=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};for(;o<t.segments.length;){if(n>=r.length)return i;let s=t.segments[o],a=r[n];if(_r(a))break;let c=`${a}`,u=n<r.length-1?r[n+1]:null;if(o>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!mh(c,u,s))return i;n+=2}else{if(!mh(c,{},s))return i;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}function wc(t,e,r){let n=t.segments.slice(0,e),o=0;for(;o<r.length;){let i=r[o];if(_r(i)){let c=QD(i.outlets);return new j(n,c)}if(o===0&&Ii(r[0])){let c=t.segments[e];n.push(new Gt(c.path,gh(r[0]))),o++;continue}let s=_r(i)?i.outlets[A]:`${i}`,a=o<r.length-1?r[o+1]:null;s&&a&&Ii(a)?(n.push(new Gt(s,gh(a))),o+=2):(n.push(new Gt(s,{})),o++)}return new j(n,{})}function QD(t){let e={};return Object.entries(t).forEach(([r,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(e[r]=wc(new j([],{}),0,n))}),e}function gh(t){let e={};return Object.entries(t).forEach(([r,n])=>e[r]=`${n}`),e}function mh(t,e,r){return t==r.path&&Qe(e,r.parameters)}var Sr="imperative",se=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(se||{}),_e=class{constructor(e,r){this.id=e,this.url=r}}
8,Ar=class extends _e{constructor(e,r,n="imperative",o=null){super(e,r),this.type=se.NavigationStart,this.navigationTrigger=n,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Zt=class extends _e{constructor(e,r,n){super(e,r),this.urlAfterRedirects=n,this.type=se.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Ce=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(Ce||{}),Dc=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(Dc||{}),ot=class extends _e{constructor(e,r,n,o){super(e,r),this.reason=n,this.code=o,this.type=se.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Qt=class extends _e{constructor(e,r,n,o){super(e,r),this.reason=n,this.code=o,this.type=se.NavigationSkipped}},Nr=class extends _e{constructor(e,r,n,o){super(e,r),this.error=n,this.target=o,this.type=se.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Ei=class extends _e{constructor(e,r,n,o){super(e,r),this.urlAfterRedirects=n,this.state=o,this.type=se.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ic=class extends _e{constructor(e,r,n,o){super(e,r),this.urlAfterRedirects=n,this.state=o,this.type=se.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},bc=class extends _e{constructor(e,r,n,o,i){super(e,r),this.urlAfterRedirects=n,this.state=o,this.shouldActivate=i,this.type=se.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Ec=class extends _e{constructor(e,r,n,o){super(e,r),this.urlAfterRedirects=n,this.state=o,this.type=se.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Cc=class extends _e{constructor(e,r,n,o){super(e,r),this.urlAfterRedirects=n,this.state=o,this.type=se.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Sc=class{constructor(e){this.route=e,this.type=se.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Tc=class{constructor(e){this.route=e,this.type=se.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Mc=class{constructor(e){this.snapshot=e,this.type=se.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},xc=class{constructor(e){this.snapshot=e,this.type=se.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},_c=class{constructor(e){this.snapshot=e,this.type=se.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ac=class{constructor(e){this.snapshot=e,this.type=se.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Rr=class{},On=class{constructor(e,r){this.url=e,this.navigationBehaviorOptions=r}};function YD(t,e){return t.providers&&!t._injector&&(t._injector=za(t.providers,e,`Route: ${t.path}`)),t._injector??e}function Ue(t){return t.outlet||A}function KD(t,e){let r=t.filter(n=>Ue(n)===e);return r.push(...t.filter(n=>Ue(n)!==e)),r}function jr(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let e=t.parent;e;e=e.parent){let r=e.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var Nc=class{get injector(){return jr(this.route?.snapshot)??this.rootInjector}set injector(e){}constructor(e){this.rootInjector=e,this.outlet=null,this.route=null,this.children=new Ai(this.rootInjector),this.attachRef=null}},Ai=(()=>{let e=class e{constructor(n){this.rootInjector=n,this.contexts=new Map}onChildOutletCreated(n,o){let i=this.getOrCreateContext(n);i.outlet=o,this.contexts.set(n,i)}onChildOutletDestroyed(n){let o=this.getContext(n);o&&(o.outlet=null,o.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let o=this.getContext(n);return o||(o=new Nc(this.rootInjector),this.contexts.set(n,o)),o}getContext(n){return this.contexts.get(n)||null}};e.\u0275fac=function(o){return new(o||e)(D(De))},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Ci=class{constructor(e){this._root=e}get root(){return this._root.value}
vendor: 4,543 bytes, line 8
8parent(e){let r=this.pathFromRoot(e);return r.length>1?r[r.length-2]:null}children(e){let r=Rc(e,this._root);return r?r.children.map(n=>n.value):[]}firstChild(e){let r=Rc(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=kc(e,this._root);return r.length<2?[]:r[r.length-2].children.map(o=>o.value).filter(o=>o!==e)}pathFromRoot(e){return kc(e,this._root).map(r=>r.value)}};function Rc(t,e){if(t===e.value)return e;for(let r of e.children){let n=Rc(t,r);if(n)return n}return null}function kc(t,e){if(t===e.value)return[e];for(let r of e.children){let n=kc(t,r);if(n.length)return n.unshift(e),n}return[]}var Ee=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function _n(t){let e={};return t&&t.children.forEach(r=>e[r.value.outlet]=r),e}var Si=class extends Ci{constructor(e,r){super(e),this.snapshot=r,Hc(this,e)}toString(){return this.snapshot.toString()}};function Oh(t){let e=JD(t),r=new ne([new Gt("",{})]),n=new ne({}),o=new ne({}),i=new ne({}),s=new ne(""),a=new Pn(r,n,i,s,o,A,t,e.root);return a.snapshot=e.root,new Si(new Ee(a,[]),e)}function JD(t){let e={},r={},n={},o="",i=new Nn([],e,n,o,r,A,t,null,{});return new Mi("",new Ee(i,[]))}var Pn=class{constructor(e,r,n,o,i,s,a,c){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=n,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(M(u=>u[Lr]))??b(void 0),this.url=e,this.params=r,this.queryParams=n,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(M(e=>kn(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(M(e=>kn(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Ti(t,e,r="emptyOnly"){let n,{routeConfig:o}=t;return e!==null&&(r==="always"||o?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:w(w({},e.params),t.params),data:w(w({},e.data),t.data),resolve:w(w(w(w({},t.data),e.data),o?.data),t._resolvedData)}:n={params:w({},t.params),data:w({},t.data),resolve:w(w({},t.data),t._resolvedData??{})},o&&Fh(o)&&(n.resolve[Lr]=o.title),n}var Nn=class{get title(){return this.data?.[Lr]}constructor(e,r,n,o,i,s,a,c,u){this.url=e,this.params=r,this.queryParams=n,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=kn(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=kn(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},Mi=class extends Ci{constructor(e,r){super(r),this.url=e,Hc(this,r)}toString(){return Ph(this._root)}};function Hc(t,e){e.value._routerState=t,e.children.forEach(r=>Hc(t,r))}function Ph(t){let e=t.children.length>0?` { ${t.children.map(Ph).join(", ")} } `:"";return`${t.value}${e}`}function hc(t){if(t.snapshot){let e=t.snapshot,r=t._futureSnapshot;t.snapshot=r,Qe(e.queryParams,r.queryParams)||t.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&t.fragmentSubject.next(r.fragment),Qe(e.params,r.params)||t.paramsSubject.next(r.params),SD(e.url,r.url)||t.urlSubject.next(r.url),Qe(e.data,r.data)||t.dataSubject.next(r.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Oc(t,e){let r=Qe(t.params,e.params)&&_D(t.url,e.url),n=!t.parent!=!e.parent;return r&&!n&&(!t.parent||Oc(t.parent,e.parent))}function Fh(t){return typeof t.title=="string"||t.title===null}var zc=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=A,this.activateEvents=new he,this.deactivateEvents=new he,this.attachEvents=new he,this.detachEvents=new he,this.parentContexts=g(Ai),this.location=g(sr),this.changeDetector=g(
8dr),this.inputBinder=g(qc,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){let{firstChange:o,previousValue:i}=n.name;if(o)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new 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,o){this.activated=n,this._activatedRoute=o,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,o){if(this.isActivated)throw new S(4013,!1);this._activatedRoute=n;let i=this.location,a=n.snapshot.component,c=this.parentContexts.getOrCreateContext(this.name).children,u=new Pc(n,c,i.injector);this.activated=i.createComponent(a,{index:i.length,injector:u,environmentInjector:o}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=$o({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[qo]});let t=e;return t})(),Pc=class t{__ngOutletInjector(e){return new t(this.route,this.childContexts,e)}constructor(e,r,n){this.route=e,this.childContexts=r,this.parent=n}get(e,r){return e===Pn?this.route:e===Ai?this.childContexts:this.parent.get(e,r)}},qc=new C("");function XD(t,e,r){let n=kr(t,e._root,r?r._root:void 0);return new Si(n,e)}function kr(t,e,r){if(r&&t.shouldReuseRoute(e.value,r.value.snapshot)){let n=r.value;n._futureSnapshot=e.value;let o=eI(t,e,r);return new Ee(n,o)}else{if(t.shouldAttach(e.value)){let i=t.retrieve(e.value);if(i!==null){let s=i.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>kr(t,a)),s}}let n=tI(e.value),o=e.children.map(i=>kr(t,i));return new Ee(n,o)}}function eI(t,e,r){return e.children.map(n=>{for(let o of r.children)if(t.shouldReuseRoute(n.value,o.value.snapshot))return kr(t,n,o);return kr(t,n)})}function tI(t){return new Pn(new ne(t.url),new ne(t.params),new ne(t.queryParams),new ne(t.fragment),new ne(t.data),t.outlet,t.component,t)}var Or=class{constructor(e,r){this.redirectTo=e,this.navigationBehaviorOptions=r}},Lh="ngNavigationCancelingError";function xi(t,e){let{redirectTo:r,navigationBehaviorOptions:n}=xr(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,o=jh(!1,Ce.Redirect);return o.url=r,o.navigationBehaviorOptions=n,o}function jh(t,e){let r=new Error(`NavigationCancelingError: ${t||""}`);return r[Lh]=!0,r.cancellationCode=e,r}function nI(t){return Uh(t)&&xr(t.url)}function Uh(t){return!!t&&t[Lh]}var rI=(t,e,r,n)=>M(o=>(new Fc(e,o.targetRouterState,o.currentRouterState,r,n).activate(t),o)),Fc=class{constructor(e,r,n,o,i){this.routeReuseStrategy=e,this.futureState=r,this.currState=n,this.forwardEvent=o,this.inputBindingEnabled=i}activate(e){let r=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,n,e),hc(this.futureState.root),this.activateChildRoutes(r,n,e)}deactivateChildRoutes(e,r,n){let o=_n(r);
vendor: 6,055 bytes, line 8
8e.children.forEach(i=>{let s=i.value.outlet;this.deactivateRoutes(i,o[s],n),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,n)})}deactivateRoutes(e,r,n){let o=e.value,i=r?r.value:null;if(o===i)if(o.component){let s=n.getContext(o.outlet);s&&this.deactivateChildRoutes(e,r,s.children)}else this.deactivateChildRoutes(e,r,n);else i&&this.deactivateRouteAndItsChildren(r,n)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let n=r.getContext(e.value.outlet),o=n&&e.value.component?n.children:r,i=_n(e);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(n&&n.outlet){let s=n.outlet.detach(),a=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,r){let n=r.getContext(e.value.outlet),o=n&&e.value.component?n.children:r,i=_n(e);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,r,n){let o=_n(r);e.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],n),this.forwardEvent(new Ac(i.value.snapshot))}),e.children.length&&this.forwardEvent(new xc(e.value.snapshot))}activateRoutes(e,r,n){let o=e.value,i=r?r.value:null;if(hc(o),o===i)if(o.component){let s=n.getOrCreateContext(o.outlet);this.activateChildRoutes(e,r,s.children)}else this.activateChildRoutes(e,r,n);else if(o.component){let s=n.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),hc(a.route.value),this.activateChildRoutes(e,null,s.children)}else s.attachRef=null,s.route=o,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(e,null,s.children)}else this.activateChildRoutes(e,null,n)}},_i=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},Rn=class{constructor(e,r){this.component=e,this.route=r}};function oI(t,e,r){let n=t._root,o=e?e._root:null;return br(n,o,r,[n.value])}function iI(t){let e=t.routeConfig?t.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:t,guards:e}}function Ln(t,e){let r=Symbol(),n=e.get(t,r);return n===r?typeof t=="function"&&!Dl(t)?t:e.get(t):n}function br(t,e,r,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=_n(e);return t.children.forEach(s=>{sI(s,i[s.value.outlet],r,n.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>Tr(a,r.getContext(s),o)),o}function sI(t,e,r,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=t.value,s=e?e.value:null,a=r?r.getContext(t.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let c=aI(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new _i(n)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?br(t,e,a?a.children:null,n,o):br(t,e,r,n,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Rn(a.outlet.component,s))}else s&&Tr(e,a,o),o.canActivateChecks.push(new _i(n)),i.component?br(t,null,a?a.children:null,n,o):br(t,null,r,n,o);return o}function aI(t,e,r){if(typeof r=="function")return r(t,e);switch(r){case"pathParamsChange":return!Wt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Wt(t.url,e.url)||!Qe(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Oc(t,e)||!Qe(t.queryParams,e.queryParams);case"paramsChange":default:return!Oc(t,e)}}function Tr(t,e,r){let n=_n(t),o=t.value;Object.entries(n).forEach(([i,s])=>{o.component?e?Tr(s,e.children.getContext(i),r):Tr(s,null,r):Tr(s,e,r)}),o.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new Rn(e.outlet.component,o)):r.canDeactivateChecks.push(new Rn(null,o)):r.canDeactivateChecks.push(new Rn(null,o))}function Ur(t){return typeof t=="function"}function cI(t){return typeof t=="boolean"}function uI(t){return t&&Ur(t.canLoad)}function lI(t){return t&&Ur(t.canActivate)}function dI(t){return t&&Ur(t.canActivateChild)}function fI(t){return t&&Ur(t.canDeactivate)}function hI(t){return t&&Ur(t.canMatch)}function Vh(t){return t instanceof Ye||t?.name==="EmptyError"}var vi=Symbol("INITIAL_VALUE");function Fn(){return fe(t=>an(t.map(e=>e.pipe(ve(1),hs(vi)))).pipe(M(e=>{for(let r of e)if(r!==!0){if(r===vi)return vi;if(r===!1||pI(r))return r}return!0}),B(e=>e!==vi),ve(1)))}function pI(t){return xr(t)||t instanceof Or}function gI(t,e){return W(r=>{let{targetSnapshot:n,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=r;return s.length===0&&i.length===0?b(K(w({},r),{guardsResult:!0})):mI(s,n,o,t).pipe(W(a=>a&&cI(a)?vI(n,i,t,e):b(a)),M(a=>K(w({},r),{guardsResult:a})))})}function mI(t,e,r,n){return z(t).pipe(W(o=>bI(o.component,o.route,r,e,n)),ye(o=>o!==!0,!0))}function vI(t,e,r,n){return z(e).pipe(ct(o=>at(wI(o.route.parent,n),yI(o.route,n),II(t,o.path,r),DI(t,o.route,r))),ye(o=>o!==!0,!0))}function yI(t,e){return t!==null&&e&&e(new _c(t)),b(!0)}function wI(t,e){return t!==null&&e&&e(new Mc(t)),b(!0)}function DI(t,e,r){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return b(!0);let o=n.map(i=>lo(()=>{let s=jr(e)??r,a=Ln(i,s),c=lI(a)?a.canActivate(e,t):Pe(s,()=>a(e,t));return bt(c).pipe(ye())}));return b(o).pipe(Fn())}function II(t,e,r){let n=e[e.length-1],i=e.slice(0,e.length-1).reverse().map(s=>iI(s)).filter(s=>s!==null).map(s=>lo(()=>{let a=s.guards.map(c=>{let u=jr(s.node)??r,l=Ln(c,u),d=dI(l)?l.canActivateChild(n,t):Pe(u,()=>l(n,t));return bt(d).pipe(ye())});return b(a).pipe(Fn())}));return b(i).pipe(Fn())}function bI(t,e,r,n,o){let i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!i||i.length===0)return b(!0);let s=i.map(a=>
8{let c=jr(e)??o,u=Ln(a,c),l=fI(u)?u.canDeactivate(t,e,r,n):Pe(c,()=>u(t,e,r,n));return bt(l).pipe(ye())});return b(s).pipe(Fn())}function EI(t,e,r,n){let o=e.canLoad;if(o===void 0||o.length===0)return b(!0);let i=o.map(s=>{let a=Ln(s,t),c=uI(a)?a.canLoad(e,r):Pe(t,()=>a(e,r));return bt(c)});return b(i).pipe(Fn(),$h(n))}function $h(t){return Xi(J(e=>{if(typeof e!="boolean")throw xi(t,e)}),M(e=>e===!0))}function CI(t,e,r,n){let o=e.canMatch;if(!o||o.length===0)return b(!0);let i=o.map(s=>{let a=Ln(s,t),c=hI(a)?a.canMatch(e,r):Pe(t,()=>a(e,r));return bt(c)});return b(i).pipe(Fn(),$h(n))}var Pr=class{constructor(e){this.segmentGroup=e||null}},Fr=class extends Error{constructor(e){super(),this.urlTree=e}};function xn(t){return He(new Pr(t))}function SI(t){return He(new S(4e3,!1))}function TI(t){return He(jh(!1,Ce.GuardRejected))}var Lc=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}lineralizeSegments(e,r){let n=[],o=r.root;for(;;){if(n=n.concat(o.segments),o.numberOfChildren===0)return b(n);if(o.numberOfChildren>1||!o.children[A])return SI(`${e.redirectTo}`);o=o.children[A]}}applyRedirectCommands(e,r,n,o,i){if(typeof r!="string"){let a=r,{queryParams:c,fragment:u,routeConfig:l,url:d,outlet:f,params:h,data:p,title:m}=o,v=Pe(i,()=>a({params:h,data:p,queryParams:c,fragment:u,routeConfig:l,url:d,outlet:f,title:m}));if(v instanceof it)throw new Fr(v);r=v}let s=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,n);if(r[0]==="/")throw new Fr(s);return s}applyRedirectCreateUrlTree(e,r,n,o){let i=this.createSegmentGroup(e,r.root,n,o);return new it(i,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let n={};return Object.entries(e).forEach(([o,i])=>{if(typeof i=="string"&&i[0]===":"){let a=i.substring(1);n[o]=r[a]}else n[o]=i}),n}createSegmentGroup(e,r,n,o){let i=this.createSegments(e,r.segments,n,o),s={};return Object.entries(r.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(e,c,n,o)}),new j(i,s)}createSegments(e,r,n,o){return r.map(i=>i.path[0]===":"?this.findPosParam(e,i,o):this.findOrReturn(i,n))}findPosParam(e,r,n){let o=n[r.path.substring(1)];if(!o)throw new S(4001,!1);return o}findOrReturn(e,r){let n=0;for(let o of r){if(o.path===e.path)return r.splice(n),o;n++}return e}},jc={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function MI(t,e,r,n,o){let i=Gc(t,e,r);return i.matched?(n=YD(e,n),CI(n,e,r,o).pipe(M(s=>s===!0?i:w({},jc)))):b(i)}function Gc(t,e,r){if(e.path==="**")return xI(r);if(e.path==="")return e.pathMatch==="full"&&(t.hasChildren()||r.length>0)?w({},jc):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let o=(e.matcher||CD)(r,t,e);if(!o)return w({},jc);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:r.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function xI(t){return{matched:!0,parameters:t.length>0?Ih(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function vh(t,e,r,n){return r.length>0&&NI(t,r,n)?{segmentGroup:new j(e,AI(n,new j(r,t.children))),slicedSegments:[]}:r.length===0&&RI(t,r,n)?{segmentGroup:new j(t.segments,_I(t,r,n,t.children)),slicedSegments:r}:{segmentGroup:new j(t.segments,t.children),slicedSegments:r}}function _I(t,e,r,n){let o={};for(let i of r)if(Ni(t,e,i)&&!n[Ue(i)]){let s=new j([],{});o[Ue(i)]=s}return w(w({},n),o)}function AI(t,e){let r={};r[A]=e;for(let n of t)if(n.path===""&&Ue(n)!==A){let o=new j([],{});r[Ue(n)]=o}return r}function NI(t,e,r){return r.some(n=>Ni(t,e,n)&&Ue(n)!==A)}function RI(t,e,r){return r.some(n=>Ni(t,e,n))}function Ni(t,e,r){return(t.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function kI(t,e,r,n){return Ue(t)!==n&&(n===A||!Ni(e,r,t))?!1:Gc(e,t,r).matched}function OI(t,e,r){return e.length===0&&!t.children[r]}var Uc=class{};function PI(t,e,r,n,o,i,s="emptyOnly"){return new Vc(t,e,r,n,o,s,i).recognize()}var FI=31,Vc=class{constructor(e,r,n,o,i,s,a){this.injector=e,this.configLoader=r,this.rootComponentType=n,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer
8=a,this.applyRedirects=new Lc(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new S(4002,`'${e.segmentGroup}'`)}recognize(){let e=vh(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(M(({children:r,rootSnapshot:n})=>{let o=new Ee(n,r),i=new Mi("",o),s=HD(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s}}))}match(e){let r=new Nn([],Object.freeze({}),Object.freeze(w({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),A,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,A,r).pipe(M(n=>({children:n,rootSnapshot:r})),me(n=>{if(n instanceof Fr)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof Pr?this.noMatchError(n):n}))}processSegmentGroup(e,r,n,o,i){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,r,n,i):this.processSegment(e,r,n,n.segments,o,!0,i).pipe(M(s=>s instanceof Ee?[s]:[]))}processChildren(e,r,n,o){let i=[];for(let s of Object.keys(n.children))s==="primary"?i.unshift(s):i.push(s);return z(i).pipe(ct(s=>{let a=n.children[s],c=KD(r,s);return this.processSegmentGroup(e,c,a,s,o)}),fs((s,a)=>(s.push(...a),s)),ut(null),ds(),W(s=>{if(s===null)return xn(n);let a=Bh(s);return LI(a),b(a)}))}processSegment(e,r,n,o,i,s,a){return z(r).pipe(ct(c=>this.processSegmentAgainstRoute(c._injector??e,r,c,n,o,i,s,a).pipe(me(u=>{if(u instanceof Pr)return b(null);throw u}))),ye(c=>!!c),me(c=>{if(Vh(c))return OI(n,o,i)?b(new Uc):xn(n);throw c}))}processSegmentAgainstRoute(e,r,n,o,i,s,a,c){return kI(n,o,i,s)?n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,o,n,i,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(e,o,r,n,i,s,c):xn(o):xn(o)}expandSegmentAgainstRouteUsingRedirect(e,r,n,o,i,s,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:f}=Gc(r,o,i);if(!c)return xn(r);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>FI&&(this.allowRedirects=!1));let h=new Nn(i,u,Object.freeze(w({},this.urlTree.queryParams)),this.urlTree.fragment,yh(o),Ue(o),o.component??o._loadedComponent??null,o,wh(o)),p=Ti(h,a,this.paramsInheritanceStrategy);h.params=Object.freeze(p.params),h.data=Object.freeze(p.data);let m=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,d,h,e);return this.applyRedirects.lineralizeSegments(o,m).pipe(W(v=>this.processSegment(e,n,r,v.concat(f),s,!1,a)))}matchSegmentAgainstRoute(e,r,n,o,i,s){let a=MI(r,n,o,e,this.urlSerializer);return n.path==="**"&&(r.children={}),a.pipe(fe(c=>c.matched?(e=n._injector??e,this.getChildConfig(e,n,o).pipe(fe(({routes:u})=>{let l=n._loadedInjector??e,{parameters:d,consumedSegments:f,remainingSegments:h}=c,p=new Nn(f,d,Object.freeze(w({},this.urlTree.queryParams)),this.urlTree.fragment,yh(n),Ue(n),n.component??n._loadedComponent??null,n,wh(n)),m=Ti(p,s,this.paramsInheritanceStrategy);p.params=Object.freeze(m.params),p.data=Object.freeze(m.data);let{segmentGroup:v,slicedSegments:I}=vh(r,f,h,u);if(I.length===0&&v.hasChildren())return this.processChildren(l,u,v,p).pipe(M(y=>new Ee(p,y)));if(u.length===0&&I.length===0)return b(new Ee(p,[]));let H=Ue(n)===i;return this.processSegment(l,u,v,I,H?A:i,!0,p).pipe(M(y=>new Ee(p,y instanceof Ee?[y]:[])))}))):xn(r)))}getChildConfig(e,r,n){return r.children?b({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?b({routes:r._loadedRoutes,injector:r._loadedInjector}):EI(e,r,n,this.urlSerializer).pipe(W(o=>o?this.configLoader.loadChildren(e,r).pipe(J(i=>{r._loadedRoutes=i.routes,r._loadedInjector=i.injector})):TI(r))):b({routes:[],injector:e})}};function LI(t){t.sort((e,r)=>e.value.outlet===A?-1:r.value.outlet===A?1:e.value.outlet.localeCompare(r.value.outlet))}function jI(t){let e=t.value.routeConfig;return e&&e.path===""}function Bh(t){let e=[],r=new Set;for(let n of t){if(!jI(n)){e.push(n);continue}let o=e.find(i=>n.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...n.children),r.add(o)):e.push(n)}for(let n of r){let o=Bh(n.children);e.push(new Ee(n.value,o))}return e.filter(n=>!r.has(n))}function yh(t){return t.data||{}}function wh(t){return t.resolve||{}}function UI(t,e,r,n,o,i){return W(s=>PI(t,e,r,n,s.extractedUrl,o,i).pipe(M(({state:a,tree:c})=>K(w({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function VI(t,e){return W(r=>{let{targetSnapshot:n,guards:{canActivateChecks:o}}=r;if(!o.length)return b(r);let i=new Set(o.map(c=>c.route)),s=new Set;for(let c of i)if(!s.has(c))for(let u of Hh(c))s.add(u);let a=0;return z(s).pipe(ct(c=>i.has(c)?$I(c,n,t,e):(c.data=Ti(c,c.parent,t).resolve,b(void 0))),J(()=>a++),cn(1),W(c=>a===s.size?b(r):de))})}function Hh(t){let e=t.children.map(r=>Hh(r)).flat();return[t,...e]}function $I(t,e,r,n){let o=t.routeConfig,i=t._resolve;return o?.title!==void 0&&!Fh(o)&&(i[Lr]=o.title),BI(i,t,e,n).pipe(M(s=>(t._resolvedData=s,t.data=Ti(t,t.parent,r).resolve,null)))}function BI(t,e,r,n){let o=mc(t);if(o.length===0)return b({});let i={};return z(o).pipe(W(s=>HI(t[s],e,r,n).pipe(ye(),J(a=>{if(a instanceof Or)throw xi(new Mr,a);i[s]=a}))),cn(1),$n(i),me(s=>
8Vh(s)?de:He(s)))}function HI(t,e,r,n){let o=jr(e)??n,i=Ln(t,o),s=i.resolve?i.resolve(e,r):Pe(o,()=>i(e,r));return bt(s)}function pc(t){return fe(e=>{let r=t(e);return r?z(r).pipe(M(()=>e)):b(e)})}var zh=(()=>{let e=class e{buildTitle(n){let o,i=n.root;for(;i!==void 0;)o=this.getResolvedTitleForRoute(i)??o,i=i.children.find(s=>s.outlet===A);return o}getResolvedTitleForRoute(n){return n.data[Lr]}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=E({token:e,factory:()=>g(zI),providedIn:"root"});let t=e;return t})(),zI=(()=>{let e=class e extends zh{constructor(n){super(),this.title=n}updateTitle(n){let o=this.buildTitle(n);o!==void 0&&this.title.setTitle(o)}};e.\u0275fac=function(o){return new(o||e)(D(fh))},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Wc=new C("",{providedIn:"root",factory:()=>({})}),qI=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=bn({type:e,selectors:[["ng-component"]],standalone:!0,features:[Sn],decls:1,vars:0,template:function(o,i){o&1&&ee(0,"router-outlet")},dependencies:[zc],encapsulation:2});let t=e;return t})();function Zc(t){let e=t.children&&t.children.map(Zc),r=e?K(w({},t),{children:e}):w({},t);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==A&&(r.component=qI),r}var Qc=new C(""),GI=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=g(Qa)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return b(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let o=bt(n.loadComponent()).pipe(M(qh),J(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),_t(()=>{this.componentLoaders.delete(n)})),i=new on(o,()=>new te).pipe(rn());return this.componentLoaders.set(n,i),i}loadChildren(n,o){if(this.childrenLoaders.get(o))return this.childrenLoaders.get(o);if(o._loadedRoutes)return b({routes:o._loadedRoutes,injector:o._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(o);let s=WI(o,this.compiler,n,this.onLoadEndListener).pipe(_t(()=>{this.childrenLoaders.delete(o)})),a=new on(s,()=>new te).pipe(rn());return this.childrenLoaders.set(o,a),a}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function WI(t,e,r,n){return bt(t.loadChildren()).pipe(M(qh),W(o=>o instanceof er||Array.isArray(o)?b(o):z(e.compileModuleAsync(o))),M(o=>{n&&n(t);let i,s,a=!1;return Array.isArray(o)?(s=o,a=!0):(i=o.create(r).injector,s=i.get(Qc,[],{optional:!0,self:!0}).flat()),{routes:s.map(Zc),injector:i}}))}function ZI(t){return t&&typeof t=="object"&&"default"in t}function qh(t){return ZI(t)?t.default:t}var Yc=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=E({token:e,factory:()=>g(QI),providedIn:"root"});let t=e;return t})(),QI=(()=>{let e=class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,o){return n}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),YI=new C("");var KI=new C(""),JI=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new te,this.transitionAbortSubject=new te,this.configLoader=g(GI),this.environmentInjector=g(De),this.urlSerializer=g(Bc),this.rootContexts=g(Ai),this.location=g(fr),this.inputBindingEnabled=g(qc,{optional:!0})!==null,this.titleStrategy=g(zh),this.options=g(Wc,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=g(Yc),this.createViewTransition=g(YI,{optional:!0}),this.navigationErrorHandler=g(KI,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>b(void 0),this.rootComponentType=null;let n=i=>this.events.next(new Sc(i)),o=i=>this.events.next(new Tc(i));this.configLoader.onLoadEndListener=o,this.configLoader.onLoadStartListener=n}complete(){this.transitions?.complete()}handleNavigationRequest(n){let o=++this.navigationId;this.transitions?.next(K(w(w({},this.transitions.value),n),{id:o}))}setupNavigations(n,o,i){return this.transitions=new ne({id:0,currentUrlTree:o,currentRawUrl:o,extractedUrl:this.urlHandlingStrategy.extract(o),urlAfterRedirects:this.urlHandlingStrategy.extract(o),rawUrl:o,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Sr,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(B(s=>s.id!==0),M(s=>K(w({},s),{extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),fe(s=>{let a=!1,c=!1;return b(s).pipe(fe(u=>{if(this.navigationId>s.id)return this.cancelNavigationTransition(s,"",Ce.SupersededByNewNavigation),de;this.currentTransition=s,this.currentNavigation={id:u.id,initialUrl:u.rawUrl,extractedUrl:u.extractedUrl,targetBrowserUrl:typeof u.extras.browserUrl=="string"?this.urlSerializer.parse(u.extras.browserUrl):u.extras.browserUrl,trigger:u.source,extras:u.extras,previousNavigation:this.lastSuccessfulNavigation?K(w({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=u.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!l&&d!=="reload"){let f="";return this.events.next(new Qt(u.id,this.urlSerializer.serialize(u.rawUrl),f,Dc.IgnoredSameUrlNavigation)),u.resolve(!1),de}if(this.urlHandlingStrategy.shouldProcessUrl(u.rawUrl))return b(u).pipe(fe(f=>{let h=this.transitions?.getValue();return this.events.next(new Ar(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),h!==this.transitions?.getValue()?de:Promise.resolve(f)}),UI(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),J(f=>{s.targetSnapshot=f.targetSnapshot,s.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation=K(w({},this.currentNavigation),{finalUrl:f.urlAfterRedirects});let h=new Ei(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(h)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(u.currentRawUrl)){let{id:f,extractedUrl:h,source:p,restoredState:m,extras:v}=u,I=new Ar(f,this.urlSerializer.serialize(h),p,m);this.events.next(I);let H=Oh(this.rootComponentType).snapshot;return this.currentTransition=s=K(w({},u),{targetSnapshot:H,urlAfterRedirects:h,extras:K(w({},v),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=h,b(s)}else{let f="";return this.events.next(new Qt(u.id,this.urlSerializer.serialize(u.extractedUrl),f,Dc.IgnoredByUrlHandlingStrategy)),u.resolve(!1),de}}),J(u=>{let l=new Ic(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(l)}
8),M(u=>(this.currentTransition=s=K(w({},u),{guards:oI(u.targetSnapshot,u.currentSnapshot,this.rootContexts)}),s)),gI(this.environmentInjector,u=>this.events.next(u)),J(u=>{if(s.guardsResult=u.guardsResult,u.guardsResult&&typeof u.guardsResult!="boolean")throw xi(this.urlSerializer,u.guardsResult);let l=new bc(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot,!!u.guardsResult);this.events.next(l)}),B(u=>u.guardsResult?!0:(this.cancelNavigationTransition(u,"",Ce.GuardRejected),!1)),pc(u=>{if(u.guards.canActivateChecks.length)return b(u).pipe(J(l=>{let d=new Ec(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}),fe(l=>{let d=!1;return b(l).pipe(VI(this.paramsInheritanceStrategy,this.environmentInjector),J({next:()=>d=!0,complete:()=>{d||this.cancelNavigationTransition(l,"",Ce.NoDataFromResolver)}}))}),J(l=>{let d=new Cc(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}))}),pc(u=>{let l=d=>{let f=[];d.routeConfig?.loadComponent&&!d.routeConfig._loadedComponent&&f.push(this.configLoader.loadComponent(d.routeConfig).pipe(J(h=>{d.component=h}),M(()=>{})));for(let h of d.children)f.push(...l(h));return f};return an(l(u.targetSnapshot.root)).pipe(ut(null),ve(1))}),pc(()=>this.afterPreactivation()),fe(()=>{let{currentSnapshot:u,targetSnapshot:l}=s,d=this.createViewTransition?.(this.environmentInjector,u.root,l.root);return d?z(d).pipe(M(()=>s)):b(s)}),M(u=>{let l=XD(n.routeReuseStrategy,u.targetSnapshot,u.currentRouterState);return this.currentTransition=s=K(w({},u),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,s}),J(()=>{this.events.next(new Rr)}),rI(this.rootContexts,n.routeReuseStrategy,u=>this.events.next(u),this.inputBindingEnabled),ve(1),J({next:u=>{a=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Zt(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects))),this.titleStrategy?.updateTitle(u.targetRouterState.snapshot),u.resolve(!0)},complete:()=>{a=!0}}),ps(this.transitionAbortSubject.pipe(J(u=>{throw u}))),_t(()=>{!a&&!c&&this.cancelNavigationTransition(s,"",Ce.SupersededByNewNavigation),this.currentTransition?.id===s.id&&(this.currentNavigation=null,this.currentTransition=null)}),me(u=>{if(c=!0,Uh(u))this.events.next(new ot(s.id,this.urlSerializer.serialize(s.extractedUrl),u.message,u.cancellationCode)),nI(u)?this.events.next(new On(u.url,u.navigationBehaviorOptions)):s.resolve(!1);else{let l=new Nr(s.id,this.urlSerializer.serialize(s.extractedUrl),u,s.targetSnapshot??void 0);try{let d=Pe(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(d instanceof Or){let{message:f,cancellationCode:h}=xi(this.urlSerializer,d);this.events.next(new ot(s.id,this.urlSerializer.serialize(s.extractedUrl),f,h)),this.events.next(new On(d.redirectTo,d.navigationBehaviorOptions))}else{this.events.next(l);let f=n.errorHandler(u);s.resolve(!!f)}}catch(d){this.options.resolveNavigationPromiseOnError?s.resolve(!1):s.reject(d)}}return de}))}))}cancelNavigationTransition(n,o,i){let s=new ot(n.id,this.urlSerializer.serialize(n.extractedUrl),o,i);this.events.next(s),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))),o=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return n.toString()!==o?.toString()&&!this.currentNavigation?.extras.skipLocationChange}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function XI(t){return t!==Sr}var eb=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=E({token:e,factory:()=>g(tb),providedIn:"root"});let t=e;return t})(),$c=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},tb=(()=>{let e=class e extends $c{};e.\u0275fac=(()=>{let n;return function(i){return(n||(n=ir(e)))(i||e)}})(),e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Gh=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=E({token:e,factory:()=>g(nb),providedIn:"root"});let t=e;return t})(),nb=(()=>{let e=class e extends Gh{constructor(){super(...arguments),this.location=g(fr),this.urlSerializer
8=g(Bc),this.options=g(Wc,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=g(Yc),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new it,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Oh(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(o=>{o.type==="popstate"&&n(o.url,o.state)})}handleRouterEvent(n,o){if(n instanceof Ar)this.stateMemento=this.createStateMemento();else if(n instanceof Qt)this.rawUrlTree=o.initialUrl;else if(n instanceof Ei){if(this.urlUpdateStrategy==="eager"&&!o.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(o.finalUrl,o.initialUrl);this.setBrowserUrl(o.targetBrowserUrl??i,o)}}else n instanceof Rr?(this.currentUrlTree=o.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(o.finalUrl,o.initialUrl),this.routerState=o.targetRouterState,this.urlUpdateStrategy==="deferred"&&!o.extras.skipLocationChange&&this.setBrowserUrl(o.targetBrowserUrl??this.rawUrlTree,o)):n instanceof ot&&(n.code===Ce.GuardRejected||n.code===Ce.NoDataFromResolver)?this.restoreHistory(o):n instanceof Nr?this.restoreHistory(o,!0):n instanceof Zt&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,o){let i=n instanceof it?this.urlSerializer.serialize(n):n;if(this.location.isCurrentPathEqualTo(i)||o.extras.replaceUrl){let s=this.browserPageId,a=w(w({},o.extras.state),this.generateNgRouterState(o.id,s));this.location.replaceState(i,"",a)}else{let s=w(w({},o.extras.state),this.generateNgRouterState(o.id,this.browserPageId+1));this.location.go(i,"",s)}}restoreHistory(n,o=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,s=this.currentPageId-i;s!==0?this.location.historyGo(s):this.currentUrlTree===n.finalUrl&&s===0&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(o&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,o){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:o}:{navigationId:n}}};e.\u0275fac=(()=>{let n;return function(i){return(n||(n=ir(e)))(i||e)}})(),e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Er=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(Er||{});function rb(t,e){t.events.pipe(B(r=>r instanceof Zt||r instanceof ot||r instanceof Nr||r instanceof Qt),M(r=>r instanceof Zt||r instanceof Qt?Er.COMPLETE:(r instanceof ot?r.code===Ce.Redirect||r.code===Ce.SupersededByNewNavigation:!1)?Er.REDIRECTING:Er.FAILED),B(r=>r!==Er.REDIRECTING),ve(1)).subscribe(()=>{e()})}function ob(t){throw t}var ib={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},sb={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Wh=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=g(ni),this.stateManager=g(Gh),this.options=g(Wc,{optional:!0})||{},this.pendingTasks=g(vt),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=g(JI),this.urlSerializer
8=g(Bc),this.location=g(fr),this.urlHandlingStrategy=g(Yc),this._events=new te,this.errorHandler=this.options.errorHandler||ob,this.navigated=!1,this.routeReuseStrategy=g(eb),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=g(Qc,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!g(qc,{optional:!0}),this.eventsSubscription=new Q,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(o=>{try{let i=this.navigationTransitions.currentTransition,s=this.navigationTransitions.currentNavigation;if(i!==null&&s!==null){if(this.stateManager.handleRouterEvent(o,s),o instanceof ot&&o.code!==Ce.Redirect&&o.code!==Ce.SupersededByNewNavigation)this.navigated=!0;else if(o instanceof Zt)this.navigated=!0;else if(o instanceof On){let a=o.navigationBehaviorOptions,c=this.urlHandlingStrategy.merge(o.url,i.currentRawUrl),u=w({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||XI(i.source)},a);this.scheduleNavigation(c,Sr,null,u,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}cb(o)&&this._events.next(o)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Sr,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,o)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",o)},0)})}navigateToSyncWithBrowser(n,o,i){let s={replaceUrl:!0},a=i?.navigationId?i:null;if(i){let u=w({},i);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(s.state=u)}let c=this.parseUrl(n);this.scheduleNavigation(c,o,a,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Zc),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,o={}){let{relativeTo:i,queryParams:s,fragment:a,queryParamsHandling:c,preserveFragment:u}=o,l=u?this.currentUrlTree.fragment:a,d=null;switch(c){case"merge":d=w(w({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let f;try{let h=i?i.snapshot:this.routerState.snapshot.root;f=Ah(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),f=this.currentUrlTree.root}return Nh(f,n,d,l??null)}navigateByUrl(n,o={skipLocationChange:!1}){let i=xr(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(s,Sr,null,o)}navigate(n,o={skipLocationChange:!1}){return ab(n),this.navigateByUrl(this.createUrlTree(n,o),o)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.urlSerializer.parse("/")}}isActive(n,o){let i;if(o===!0?i=w({},ib):o===!1?i=w({},sb):i=o,xr(n))return hh(this.currentUrlTree,n,i);let s=this.parseUrl(n);return hh(this.currentUrlTree,s,i)}removeEmptyProps(n){return Object.entries(n).reduce((o,[i,s])=>(s!=null&&(o[i]=s),o),{})}scheduleNavigation(n,o,i,s,a){if(this.disposed)return Promise.resolve(!1);let c,u,l;a?(c=a.resolve,u=a.reject,l=a.promise):l=new Promise((f,h)=>{c=f,u=h});let d=this.pendingTasks.add();return rb(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:o,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:s,resolve:c,reject:u,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(f=>Promise.reject(f))}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();function ab(t){for(let e=0;e<t.length;e++)if(t[e]==null)throw new S(4008,!1)}function cb(t){return!(t instanceof Rr)&&!(t instanceof On)}var ub=new C("");function Zh(t,...e){return mt([{provide:Qc,multi:!0,useValue:t},[],{provide:Pn,useFactory:lb,deps:[Wh]},{provide:ri,multi:!0,useFactory:db},e.map(r=>r.\u0275providers)])}function lb(t){return t.routerState.root}function db(){let t=g(Lt);return e=>{let r=t.get(Ht);if(e!==r.components[0])return;let n=t.get(Wh),o=t.get(fb);t.get(hb)===1&&n.initialNavigation(),t.get(pb,null,R.Optional)?.setUpPreloading(),t.get(ub,null,R.Optional)?.init(),n.resetRootComponentType(r.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var fb=new C("",{factory:()=>new te}),hb=new C("",{providedIn:"root",factory:()=>1});var pb=new C("");var Jc=class{validateSignature(e){return Promise.resolve(null)}validateAtHash(e){return Promise.resolve(!0)}},Ri=class{};var Vr=class{},gb=(()=>{let e=class e extends Vr{now(){return Date.now()}new(){return new Date}};e.\u0275fac=(()=>{let n;return function(i){return(n||(n=ir(e)))(i||e)}})(),e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})();var ki=class{},Oi=class{},mb=(()=>{let e=class e{constructor(){this.data=new Map}getItem(n){return this.data.get(n)}removeItem(n){this.data.delete(n)}setItem(n,o){this.data.set(n,o)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})();var $r=class{constructor(e){this.type=e}},ge=class extends $r{constructor(e,r=null){super(e),this.info=r}},Ve=class extends $r{constructor(e,r=null){super(e),this.info=r}},Z=class extends $r{constructor(e,r,n=null){super(e),this.reason=r,this.params=n}};function Qh(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");return decodeURIComponent(atob(e).split("").map(function(r){return"%"+("00"+r.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function Yh(t){return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}var jn=class{constructor(e){this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.redirectUriAsPostLogoutRedirectUriFallback=!0,this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=1e3*20,this.silentRefreshTimeout=1e3*20,this.dummyClientSecret="",this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefresh
8IFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3*1e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.decreaseExpirationBySec=0,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.preserveRequestedRoute=!1,this.disableIdTokenTimer=!1,this.checkOrigin=!1,this.openUri=r=>{location.href=r},e&&Object.assign(this,e)}},Yt=class{encodeKey(e){return encodeURIComponent(e)}encodeValue(e){return encodeURIComponent(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}},Pi=class{};var Kh=(()=>{let e=class e{getHashFragmentParams(n){let o=n||window.location.hash;if(o=decodeURIComponent(o),o.indexOf("#")!==0)return{};let i=o.indexOf("?");return i>-1?o=o.substr(i+1):o=o.substr(1),this.parseQueryString(o)}parseQueryString(n){let o={},i,s,a,c,u,l;if(n===null)return o;let d=n.split("&");for(let f=0;f<d.length;f++)i=d[f],s=i.indexOf("="),s===-1?(a=i,c=null):(a=i.substr(0,s),c=i.substr(s+1)),u=decodeURIComponent(a),l=decodeURIComponent(c),u.substr(0,1)==="/"&&(u=u.substr(1)),o[u]=l;return o}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})(),Jh=32,vb=64,yb=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function Kc(t,e,r,n,o){let i,s,a,c,u,l,d,f,h,p,m,v,I;for(;o>=64;){for(i=e[0],s=e[1],a=e[2],c=e[3],u=e[4],l=e[5],d=e[6],f=e[7],p=0;p<16;p++)m=n+p*4,t[p]=(r[m]&255)<<24|(r[m+1]&255)<<16|(r[m+2]&255)<<8|r[m+3]&255;for(p=16;p<64;p++)h=t[p-2],v=(h>>>17|h<<15)^(h>>>19|h<<13)^h>>>10,h=t[p-15],I=(h>>>7|h<<25)^(h>>>18|h<<14)^h>>>3,t[p]=(v+t[p-7]|0)+(I+t[p-16]|0);for(p=0;p<64;p++)v=(((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&l^~u&d)|0)+(f+(yb[p]+t[p]|0)|0)|0,I=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&s^i&a^s&a)|0,f=d,d=l,l=u,u=c+v|0,c=a,a=s,s=i,i=v+I|0;e[0]+=i,e[1]+=s,e[2]+=a,e[3]+=c,e[4]+=u,e[5]+=l,e[6]+=d,e[7]+=f,n+=64,o-=64}return n}var Xc=class{constructor(){this.digestLength=Jh,this.blockSize=vb,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}reset(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this}clean(){for(let e=0;e<this.buffer.length;e++)this.buffer[e]=0;for(let e=0;e<this.temp.length;e++)this.temp[e]=0;this.reset()}update(e,r=e.length){if(this.finished)throw new Error("SHA256: can't update because hash was finished.");let n=0;if(this.bytesHashed+=r,this.bufferLength>0){for(;this.bufferLength<64&&r>0;)this.buffer[this.bufferLength++]=e[n++],r--;this.bufferLength===64&&(Kc(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(r>=64&&(n=Kc(this.temp,this.state,e,n,r),r%=64);r>0;)this.buffer[this.bufferLength++]=e[n++],r--;return this}finish(e){if(!this.finished){let r=this.bytesHashed,n=this.bufferLength,o=r/536870912|0,i=r<<3,s=r%64<56?64:128;this.buffer[n]=128;for(let a=n+1;a<s-8;a++)this.buffer[a]=0;this.buffer[s-8]=o>>>24&255,this.buffer[s-7]=o>>>16&255,this.buffer[s-6]=o>>>8&255,this.buffer[s-5]=o>>>0&255,this.buffer[s-4]=i>>>24&255,this.buffer[s-3]=i>>>16&255,this.buffer[s-2]=i>>>8&255,this.buffer[s-1]=i>>>0&255,Kc(this.temp,this.state,this.buffer,0,s),this.finished=!0}for(let r=0;r<8;r++)e[r*4+0]=this.state[r]>>>24&255,e[r*4+1]=this.state[r]>>>16&255,e[r*4+2]=this.state[r]>>>8&255,e[r*4+3]=this.state[r]>>>0&255;return this}
8digest(){let e=new Uint8Array(this.digestLength);return this.finish(e),e}_saveState(e){for(let r=0;r<this.state.length;r++)e[r]=this.state[r]}_restoreState(e,r){for(let n=0;n<this.state.length;n++)this.state[n]=e[n];this.bytesHashed=r,this.finished=!1,this.bufferLength=0}};function wb(t){let e=new Xc().update(t),r=e.digest();return e.clean(),r}var AA=new Uint8Array(Jh);var Fi=class{};function Db(t){if(typeof t!="string")throw new TypeError("expected string");let e=t,r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return r}function Ib(t){let e=[];for(let r=0;r<t.length;r++)e.push(String.fromCharCode(t[r]));return e.join("")}var bb=(()=>{let e=class e{calcHash(n,o){return $e(this,null,function*(){return Ib(wb(Db(n)))})}toHashString2(n){let o="";for(let i of n)o+=String.fromCharCode(i);return o}toHashString(n){let o=new Uint8Array(n),i="";for(let s of o)i+=String.fromCharCode(s);return i}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})(),ji=(()=>{let e=class e extends jn{constructor(n,o,i,s,a,c,u,l,d,f){super(),this.ngZone=n,this.http=o,this.config=a,this.urlHelper=c,this.logger=u,this.crypto=l,this.dateTimeService=f,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new te,this.discoveryDocumentLoadedSubject=new te,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=d,a||(a={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),s&&(this.tokenValidationHandler=s),a&&this.configure(a);try{i?this.setStorage(i):typeof sessionStorage<"u"&&this.setStorage(sessionStorage)}catch(h){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",h)}if(this.checkLocalStorageAccessable()){let h=window?.navigator?.userAgent;(h?.includes("MSIE ")||h?.includes("Trident"))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}checkLocalStorageAccessable(){if(typeof window>"u")return!1;let n="test";try{return typeof window.localStorage>"u"?!1:(localStorage.setItem(n,n),localStorage.removeItem(n),!0)}catch{return!1}}configure(n){Object.assign(this,new jn,n),this.config=Object.assign({},new jn,n),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe(B(n=>n.type==="token_received")).subscribe(()=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(n={},o,i=!0){let s=!0;this.clearAutomaticRefreshTimer(),this.automaticRefreshSubscription=this.events.pipe(J(a=>{a.type==="token_received"?s=!0:a.type==="logout"&&(s=!1)}),B(a=>a.type==="token_expires"&&(o==null||o==="any"||a.info===o)),us(1e3)).subscribe(()=>{s&&this.refreshInternal(n,i).catch(()=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(n,o){return!this.useSilentRefresh&&this.responseType==="code"?this.refreshToken():this.silentRefresh(n,o)}loadDiscoveryDocumentAndTryLogin(n=null){return this.loadDiscoveryDocument().then(()=>this.tryLogin(n))}loadDiscoveryDocumentAndLogin(n=null){return n=n||{},this.loadDiscoveryDocumentAndTryLogin(n).then(()=>{if(!this.hasValidIdToken()||!this.hasValidAccessToken()){let o=typeof n.state=="string"?n.state:"";return this.initLoginFlow(o),!1}else return!0})}debug(...n){this.showDebugInformation&&this.logger.debug(...n)}validateUrlFromDiscoveryDocument(n){let o=[],i=this.validateUrlForHttps(n),s=this.validateUrlAgainstIssuer(n);return i||o.push("https for all urls required. Also for urls received by discovery."),s||o.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),o}validateUrlForHttps(n){if(!n)return!0;let o=n.toLowerCase();return this.requireHttps===!1||(o.match(/^http:\/\/localhost($|[:/])/)||o.match(/^http:\/\/localhost($|[:/])/))&&this.requireHttps==="remoteOnly"?!0:o.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(n,o){if(!n)throw new Error(`'${o}' should not be null`);if(!this.validateUrlForHttps(n))throw new Error(`'${o}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(n){return!this.strictDiscoveryDocumentValidation||!n?!0:n.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){if(typeof window>"u"){this.debug("timer not supported on this plattform");return}(this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe(B(n=>n.type==="token_received")).subscribe(()=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()})}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),!this.disableIdTokenTimer&&this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){let n=this.getAccessTokenExpiration(),o=this.getAccessTokenStoredAt(),i=this.calcTimeout(o,n);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=b(new Ve("token_expires","access_token")).pipe(Bn(i)).subscribe(s=>{this.ngZone.run(()=>{this.eventsSubject.next(s)})})})}setupIdTokenTimer(){let n=this.getIdTokenExpiration(),o=this.getIdTokenStoredAt(),i=this.calcTimeout(o,n);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=b(new Ve("token_expires","id_token")).pipe(Bn(i)).subscribe(s=>{this.ngZone.run(()=>{this.eventsSubject.next(s)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.clearAutomaticRefreshTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}clearAutomaticRefreshTimer(){this.automaticRefreshSubscription&&this.automaticRefreshSubscription.unsubscribe()}
8calcTimeout(n,o){let i=this.dateTimeService.now(),s=(o-n)*this.timeoutFactor-(i-n),a=Math.max(0,s),c=2147483647;return a>c?c:a}setStorage(n){this._storage=n,this.configChanged()}loadDiscoveryDocument(n=null){return new Promise((o,i)=>{if(n||(n=this.issuer||"",n.endsWith("/")||(n+="/"),n+=".well-known/openid-configuration"),!this.validateUrlForHttps(n)){i("issuer  must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return}this.http.get(n).subscribe(s=>{if(!this.validateDiscoveryDocument(s)){this.eventsSubject.next(new Z("discovery_document_validation_error",null)),i("discovery_document_validation_error");return}this.loginUrl=s.authorization_endpoint,this.logoutUrl=s.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=s.grant_types_supported,this.issuer=s.issuer,this.tokenEndpoint=s.token_endpoint,this.userinfoEndpoint=s.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=s.jwks_uri,this.sessionCheckIFrameUrl=s.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(s),this.revocationEndpoint=s.revocation_endpoint||this.revocationEndpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(a=>{let c={discoveryDocument:s,jwks:a},u=new ge("discovery_document_loaded",c);this.eventsSubject.next(u),o(u)}).catch(a=>{this.eventsSubject.next(new Z("discovery_document_load_error",a)),i(a)})},s=>{this.logger.error("error loading discovery document",s),this.eventsSubject.next(new Z("discovery_document_load_error",s)),i(s)})})}loadJwks(){return new Promise((n,o)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(i=>{this.jwks=i,n(i)},i=>{this.logger.error("error loading jwks",i),this.eventsSubject.next(new Z("jwks_load_error",i)),o(i)}):n(null)})}validateDiscoveryDocument(n){let o;return!this.skipIssuerCheck&&n.issuer!==this.issuer?(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+n.issuer),!1):(o=this.validateUrlFromDiscoveryDocument(n.authorization_endpoint),o.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",o),!1):(o=this.validateUrlFromDiscoveryDocument(n.end_session_endpoint),o.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",o),!1):(o=this.validateUrlFromDiscoveryDocument(n.token_endpoint),o.length>0&&this.logger.error("error validating token_endpoint in discovery document",o),o=this.validateUrlFromDiscoveryDocument(n.revocation_endpoint),o.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",o),o=this.validateUrlFromDiscoveryDocument(n.userinfo_endpoint),o.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",o),!1):(o=this.validateUrlFromDiscoveryDocument(n.jwks_uri),o.length>0?(this.logger.error("error validating jwks_uri in discovery document",o),!1):(this.sessionChecksEnabled&&!n.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0)))))}fetchTokenUsingPasswordFlowAndLoadUserProfile(n,o,i=new ie){return this.fetchTokenUsingPasswordFlow(n,o,i).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((n,o)=>{let i=new ie().set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:i,observe:"response",responseType:"text"}).subscribe(s=>{if(this.debug("userinfo received",JSON.stringify(s)),s.headers.get("content-type").startsWith("application/json")){let a=JSON.parse(s.body),c=this.getIdentityClaims()||{};if(!this.skipSubjectCheck&&this.oidc&&(!c.sub||a.sub!==c.sub)){o(`if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.
9if you are not using oidc but just oauth2 password flow set oidc to fal
9se`);return}a=Object.assign({},c,a),this._storage.setItem("id_token_claims_obj",JSON.stringify(a)),this.eventsSubject.next(new ge("user_profile_loaded")),n({info:a})}else this.debug("userinfo is not JSON, treating it as JWE/JWS"),this.eventsSubject.next(new ge("user_profile_loaded")),n(JSON.parse(s.body))},s=>{this.logger.error("error loading user info",s),this.eventsSubject.next(new Z("user_profile_load_error",s)),o(s)})})}fetchTokenUsingPasswordFlow(n,o,i=new ie){let s={username:n,password:o};return this.fetchTokenUsingGrant("password",s,i)}fetchTokenUsingGrant(n,o,i=new ie){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let s=new Ie({encoder:new Yt}).set("grant_type",n).set("scope",this.scope);if(this.useHttpBasicAuth){let a=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+a)}if(this.useHttpBasicAuth||(s=s.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(s=s.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let a of Object.getOwnPropertyNames(this.customQueryParams))s=s.set(a,this.customQueryParams[a]);for(let a of Object.keys(o))s=s.set(a,o[a]);return i=i.set("Content-Type","application/x-www-form-urlencoded"),new Promise((a,c)=>{this.http.post(this.tokenEndpoint,s,{headers:i}).subscribe(u=>{this.debug("tokenResponse",u),this.storeAccessTokenResponse(u.access_token,u.refresh_token,u.expires_in||this.fallbackAccessTokenExpirationTimeInSec,u.scope,this.extractRecognizedCustomParameters(u)),this.oidc&&u.id_token&&this.processIdToken(u.id_token,u.access_token).then(l=>{this.storeIdToken(l),a(u)}),this.eventsSubject.next(new ge("token_received")),a(u)},u=>{this.logger.error("Error performing ${grantType} flow",u),this.eventsSubject.next(new Z("token_error",u)),c(u)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((n,o)=>{let i=new Ie({encoder:new Yt}).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),s=new ie().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let a=btoa(`${this.clientId}:${this.dummyClientSecret}`);s=s.set("Authorization","Basic "+a)}if(this.useHttpBasicAuth||(i=i.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(i=i.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let a of Object.getOwnPropertyNames(this.customQueryParams))i=i.set(a,this.customQueryParams[a]);this.http.post(this.tokenEndpoint,i,{headers:s}).pipe(fe(a=>this.oidc&&a.id_token?z(this.processIdToken(a.id_token,a.access_token,!0)).pipe(J(c=>this.storeIdToken(c)),M(()=>a)):b(a))).subscribe(a=>{this.debug("refresh tokenResponse",a),this.storeAccessTokenResponse(a.access_token,a.refresh_token,a.expires_in||this.fallbackAccessTokenExpirationTimeInSec,a.scope,this.extractRecognizedCustomParameters(a)),this.eventsSubject.next(new ge("token_received")),this.eventsSubject.next(new ge("token_refreshed")),n(a)},a=>{this.logger.error("Error refreshing token",a),this.eventsSubject.next(new Z("token_refresh_error",a)),o(a)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=n=>{let o=this.processMessageEventMessage(n);this.checkOrigin&&n.origin!==location.origin&&console.error("wrong origin requested silent refresh!"),this.tryLogin({customHashFragment:o,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(i=>this.debug("tryLogin during silent refresh failed",i))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(n={},o=!0){let i=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(n.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl  must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(typeof this.document>"u")throw new Error("silent refresh is not supported on this platform");
9let s=this.document.getElementById(this.silentRefreshIFrameName);s&&this.document.body.removeChild(s),this.silentRefreshSubject=i.sub;let a=this.document.createElement("iframe");a.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener();let c=this.silentRefreshRedirectUri||this.redirectUri;this.createLoginUrl(null,null,c,o,n).then(f=>{a.setAttribute("src",f),this.silentRefreshShowIFrame||(a.style.display="none"),this.document.body.appendChild(a)});let u=this.events.pipe(B(f=>f instanceof Z),ye()),l=this.events.pipe(B(f=>f.type==="token_received"),ye()),d=b(new Z("silent_refresh_timeout",null)).pipe(Bn(this.silentRefreshTimeout));return cs([u,l,d]).pipe(M(f=>{if(f instanceof Z)throw f.type==="silent_refresh_timeout"?this.eventsSubject.next(f):(f=new Z("silent_refresh_error",f),this.eventsSubject.next(f)),f;return f.type==="token_received"&&(f=new ge("silently_refreshed"),this.eventsSubject.next(f)),f})).toPromise()}initImplicitFlowInPopup(n){return this.initLoginFlowInPopup(n)}initLoginFlowInPopup(n){return n=n||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(o=>new Promise((i,s)=>{let c=null;n.windowRef?n.windowRef&&!n.windowRef.closed&&(c=n.windowRef,c.location.href=o):c=window.open(o,"ngx-oauth2-oidc-login",this.calculatePopupFeatures(n));let u,l=m=>{this.tryLogin({customHashFragment:m,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{f(),i(!0)},v=>{f(),s(v)})},d=()=>{(!c||c.closed)&&(f(),s(new Z("popup_closed",{})))};c?u=window.setInterval(d,500):s(new Z("popup_blocked",{}));let f=()=>{window.clearInterval(u),window.removeEventListener("storage",p),window.removeEventListener("message",h),c!==null&&c.close(),c=null},h=m=>{let v=this.processMessageEventMessage(m);v&&v!==null?(window.removeEventListener("storage",p),l(v)):console.log("false event firing")},p=m=>{m.key==="auth_hash"&&(window.removeEventListener("message",h),l(m.newValue))};window.addEventListener("message",h),window.addEventListener("storage",p)}))}calculatePopupFeatures(n){let o=n.height||470,i=n.width||500,s=window.screenLeft+(window.outerWidth-i)/2,a=window.screenTop+(window.outerHeight-o)/2;return`location=no,toolbar=no,width=${i},height=${o},top=${a},left=${s}`}processMessageEventMessage(n){let o="#";if(this.silentRefreshMessagePrefix&&(o+=this.silentRefreshMessagePrefix),!n||!n.data||typeof n.data!="string")return;let i=n.data;if(i.startsWith(o))return"#"+i.substr(o.length)}canPerformSessionCheck(){return this.sessionChecksEnabled?this.sessionCheckIFrameUrl?this.get
9SessionState()?!(typeof this.document>"u"):(console.warn("sessionChecksEnabled is activated but there is no session_state"),!1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),!1):!1}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=n=>{let o=n.origin.toLowerCase(),i=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),!i.startsWith(o)){this.debug("sessionCheckEventListener","wrong origin",o,"expected",i,"event",n);return}switch(n.data){case"unchanged":this.ngZone.run(()=>{this.handleSessionUnchanged()});break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()});break}this.debug("got info from session check inframe",n)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged"),this.eventsSubject.next(new Ve("session_unchanged"))}handleSessionChange(){this.eventsSubject.next(new Ve("session_changed")),this.stopSessionCheckTimer(),!this.useSilentRefresh&&this.responseType==="code"?this.refreshToken().then(()=>{this.debug("token refresh after session change worked")}).catch(()=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new Ve("session_terminated")),this.logOut(!0)}):this.silentRefreshRedirectUri?(this.silentRefresh().catch(()=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new Ve("session_terminated")),this.logOut(!0))}waitForSilentRefreshAfterSessionChange(){this.events.pipe(B(n=>n.type==="silently_refreshed"||n.type==="silent_refresh_timeout"||n.type==="silent_refresh_error"),ye()).subscribe(n=>{n.type!=="silently_refreshed"&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new Ve("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new Ve("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;let n=this.document.getElementById(this.sessionCheckIFrameName);n&&this.document.body.removeChild(n);let o=this.document.createElement("iframe");o.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener();let i=this.sessionCheckIFrameUrl;o.setAttribute("src",i),o.style.display="none",this.document.body.appendChild(o),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){let n=this.document.getElementById(this.sessionCheckIFrameName);n||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);let o=this.getSessionState();o||this.stopSessionCheckTimer();let i=this.clientId+" "+o;n.contentWindow.postMessage(i,this.issuer)}createLoginUrl(){return $e(this,arguments,function*(n="",o="",i="",s=!1,a={}){let c=this,u;i?u=i:u=this.redirectUri;let l=yield this.createAndSaveNonce();if(n?n=l+this.config.nonceStateSeparator+encodeURIComponent(n):n=l,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.config.responseType?this.responseType=this.config.responseType:this.oidc&&this.requestAccessToken?this.responseType="id_token token":this.oidc&&!this.requestAccessToken?this.responseType="id_token":this.responseType="token";let d=c.loginUrl.indexOf("?")>-1?"&":"?",f=c.scope;this.oidc&&!f.match(/(^|\s)openid($|\s)/)&&(f="openid "+f);let h=c.loginUrl+d+"response_type="+encodeURIComponent(c.responseType)+"&client_id="+encodeURIComponent(c.clientId)+"&state="+encodeURIComponent(n)+"&redirect_uri="+encodeURIComponent(u)+"&scope="+encodeURIComponent(f);if(this.responseType.includes("code")&&!this.disablePKCE){let[p,m]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("PKCE_verifier",m):this._storage.setItem("PKCE_verifier",m),h+="&code_challenge="+p,h+="&c
9ode_challenge_method=S256"}o&&(h+="&login_hint="+encodeURIComponent(o)),c.resource&&(h+="&resource="+encodeURIComponent(c.resource)),c.oidc&&(h+="&nonce="+encodeURIComponent(l)),s&&(h+="&prompt=none");for(let p of Object.keys(a))h+="&"+encodeURIComponent(p)+"="+encodeURIComponent(a[p]);if(this.customQueryParams)for(let p of Object.getOwnPropertyNames(this.customQueryParams))h+="&"+p+"="+encodeURIComponent(this.customQueryParams[p]);return h})}initImplicitFlowInternal(n="",o=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl  must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let i={},s=null;typeof o=="string"?s=o:typeof o=="object"&&(i=o),this.createLoginUrl(n,s,null,!1,i).then(this.config.openUri).catch(a=>{console.error("Error in initImplicitFlow",a),this.inImplicitFlow=!1})}initImplicitFlow(n="",o=""){this.loginUrl!==""?this.initImplicitFlowInternal(n,o):this.events.pipe(B(i=>i.type==="discovery_document_loaded")).subscribe(()=>this.initImplicitFlowInternal(n,o))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(n){let o=this;if(n.onTokenReceived){let i={idClaims:o.getIdentityClaims(),idToken:o.getIdToken(),accessToken:o.getAccessToken(),state:o.state};n.onTokenReceived(i)}}storeAccessTokenResponse(n,o,i,s,a){if(this._storage.setItem("access_token",n),s&&!Array.isArray(s)?this._storage.setItem("granted_scopes",JSON.stringify(s.split(" "))):s&&Array.isArray(s)&&this._storage.setItem("granted_scopes",JSON.stringify(s)),this._storage.setItem("access_token_stored_at",""+this.dateTimeService.n
9ow()),i){let c=i*1e3,l=this.dateTimeService.new().getTime()+c;this._storage.setItem("expires_at",""+l)}o&&this._storage.setItem("refresh_token",o),a&&a.forEach((c,u)=>{this._storage.setItem(u,c)})}tryLogin(n=null){return this.config.responseType==="code"?this.tryLoginCodeFlow(n).then(()=>!0):this.tryLoginImplicitFlow(n)}parseQueryString(n){return!n||n.length===0?{}:(n.charAt(0)==="?"&&(n=n.substr(1)),this.urlHelper.parseQueryString(n))}tryLoginCodeFlow(n=null){return $e(this,null,function*(){n=n||{};let o=n.customHashFragment?n.customHashFragment.substring(1):window.location.search,i=this.getCodePartsFromUrl(o),s=i.code,a=i.state,c=i.session_state;if(!n.preventClearHashAfterLogin){let d=location.origin+location.pathname+location.search.replace(/code=[^&$]*/,"").replace(/scope=[^&$]*/,"").replace(/state=[^&$]*/,"").replace(/session_state=[^&$]*/,"").replace(/^\?&/,"?").replace(/&$/,"").replace(/^\?$/,"").replace(/&+/g,"&").replace(/\?&/,"?").replace(/\?$/,"")+location.hash;history.replaceState(null,window.name,d)}let[u,l]=this.parseState(a);if(this.state=l,i.error){this.debug("error trying to login"),this.handleLoginError(n,i);let d=new Z("code_error",{},i);return this.eventsSubject.next(d),Promise.reject(d)}if(!n.disableNonceCheck){if(!u)return this.saveRequestedRoute(),Promise.resolve();if(!n.disableOAuth2StateCheck&&!this.validateNonce(u)){let f=new Z("invalid_nonce_in_state",null);return this.eventsSubject.next(f),Promise.reject(f)}}return this.storeSessionState(c),s&&(yield this.getTokenFromCode(s,n),this.restoreRequestedRoute()),Promise.resolve()})}saveRequestedRoute(){this.config.preserveRequestedRoute&&this._storage.setItem("requested_route",window.location.pathname+window.location.search)}restoreRequestedRoute(){let n=this._storage.getItem("requested_route");n&&history.replaceState(null,"",window.location.origin+n)}getCodePartsFromUrl(n){return!n||n.length===0?this.urlHelper.getHashFragmentParams():(n.charAt(0)==="?"&&(n=n.substr(1)),this.urlHelper.parseQueryString(n))}getTokenFromCode(n,o){let i=new Ie({encoder:new Yt}).set("grant_type","authorization_code").set("code",n).set("redirect_uri",o.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let s;this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?s=localStorage.getItem("PKCE_verifier"):s=this._storage.getItem("PKCE_verifier"),s?i=i.set("code_verifier",s):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(i,o)}fetchAndProcessToken(n,o){o=o||{},this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let i=new ie().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let s=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+s)}return this.useHttpBasicAuth||(n=n.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(n=n.set("client_secret",this.dummyClientSecret)),new Promise((s,a)=>{if(this.customQueryParams)for(let c of Object.getOwnPropertyNames(this.customQueryParams))n=n.set(c,this.customQueryParams[c]);this.http.post(this.tokenEndpoint,n,{headers:i}).subscribe(c=>{this.debug("refresh tokenResponse",c),this.storeAccessTokenResponse(c.access_token,c.refresh_token,c.expires_in||this.fallbackAccessTokenExpirationTimeInSec,c.scope,this.extractRecognizedCustomParameters(c)),this.oidc&&c.id_token?this.processIdToken(c.id_token,c.access_token,o.disableNonceCheck).then(u=>{this.storeIdToken(u),this.eventsSubject.next(new ge("token_received")),this.eventsSubject.next(new ge("token_refreshed")),s(c)}).catch(u=>{this.eventsSubject.next(new Z("token_validation_error",u)),console.error("Error validating tokens"),console.error(u),a(u)}):(this.eventsSubject.next(new ge("token_received")),this.eventsSubject.next(new ge("token_refreshed")),s(c))},c=>{console.error("Error getting token",c),this.eventsSubject.next(new Z("token_refresh_error",c)),a(c)})})}tryLoginImplicitFlow(n=null){n=n||{};let o;n.customHashFragment?o=this.urlHelper.getHashFragmentParams(n.customHashFragment):o=this.urlHelper.getHashFragmentParams(),this.debug("parsed url",o);let i=o.state,[s,a]=this.parseState(i);if(this.state=a,o.error){this.debug("error trying to login"),this.handleLoginError(n,o);let f=new Z("token_error",{},o);return this.eventsSubject.next(f),Promise.reject(f)}let c=o.access_token,u=o.id_token,l=o.session_state,d=o.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!c||this.requestAccessToken&&!n.disableOAuth2StateCheck&&!i||this.oidc&&!u)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!l&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!n.disableNonceCheck&&!this.validateNonce(s)){let h=new Z("invalid_nonce_in_state",null);return this.eventsSubject.next(h),Promise.reject(h)}return this.requestAccessToken&&this.storeAccessTokenResponse(c,null,o.expires_in||this.fallbackAccessTokenExpirationTimeInSec,d),this.oidc?this.processIdToken(u,c,n.disableNonceCheck).then(f=>n.validationHandler?n.validationHandler({accessToken:c,idClaims:f.idTokenClaims,idToken:f.idToken,state:i}).then(()=>f):f).then(f=>(this.storeIdToken(f),this.storeSessionState(l),this.clearHashAfterLogin&&!n.preventClearHashAfterLogin&&this.clearLocationHash(),this.eventsSubject.next(new ge("token_received")),this.callOnToken
9ReceivedIfExists(n),this.inImplicitFlow=!1,!0)).catch(f=>(this.eventsSubject.next(new Z("token_validation_error",f)),this.logger.error("Error validating tokens"),this.logger.error(f),Promise.reject(f))):(this.eventsSubject.next(new ge("token_received")),this.clearHashAfterLogin&&!n.preventClearHashAfterLogin&&this.clearLocationHash(),this.callOnTokenReceivedIfExists(n),Promise.resolve(!0))}parseState(n){let o=n,i="";if(n){let s=n.indexOf(this.config.nonceStateSeparator);s>-1&&(o=n.substr(0,s),i=n.substr(s+this.config.nonceStateSeparator.length))}return[o,i]}validateNonce(n){let o;return this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?o=localStorage.getItem("nonce"):o=this._storage.getItem("nonce"),o!==n?(console.error("Validating access_token failed, wrong state/nonce.",o,n),!1):!0}storeIdToken(n){this._storage.setItem("id_token",n.idToken),this._storage.setItem("id_token_claims_obj",n.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+n.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+this.dateTimeService.n
9ow())}storeSessionState(n){this._storage.setItem("session_state",n)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(n,o){n.onLoginError&&n.onLoginError(o),this.clearHashAfterLogin&&!n.preventClearHashAfterLogin&&this.clearLocationHash()}getClockSkewInMsec(n=6e5){return!this.clockSkewInSec&&this.clockSkewInSec!==0?n:this.clockSkewInSec*1e3}processIdToken(n,o,i=!1){let s=n.split("."),a=this.padBase64(s[0]),c=Qh(a),u=JSON.parse(c),l=this.padBase64(s[1]),d=Qh(l),f=JSON.parse(d),h;if(this.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?h=localStorage.getItem("nonce"):h=this._storage.getItem("nonce"),Array.isArray(f.aud)){if(f.aud.every(y=>y!==this.clientId)){let y="Wrong audience: "+f.aud.join(",");return this.logger.warn(y),Promise.reject(y)}}else if(f.aud!==this.clientId){let y="Wrong audience: "+f.aud;return this.logger.warn(y),Promise.reject(y)}if(!f.sub){let y="No sub claim in id_token";return this.logger.warn(y),Promise.reject(y)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==f.sub){let y=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${f.sub}`;return this.logger.warn(y),Promise.reject(y)}if(!f.iat){let y="No iat claim in id_token";return this.logger.warn(y),Promise.reject(y)}if(!this.skipIssuerCheck&&f.iss!==this.issuer){let y="Wrong issuer: "+f.iss;return this.logger.warn(y),Promise.reject(y)}if(!i&&f.nonce!==h){let y="Wrong nonce: "+f.nonce;return this.logger.warn(y),Promise.reject(y)}if(Object.prototype.hasOwnProperty.call(this,"responseType")&&(this.responseType==="code"||this.responseType==="id_token")&&(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!f.at_hash){let y="An at_hash is needed!";return this.logger.warn(y),Promise.reject(y)}
9let p=this.dateTimeService.now(),m=f.iat*1e3,v=f.exp*1e3,I=this.getClockSkewInMsec();if(m-I>=p||v+I-this.decreaseExpirationBySec<=p){let y="Token has expired";return console.error(y),console.error({now:p,issuedAtMSec:m,expiresAtMSec:v}),Promise.reject(y)}let H={accessToken:o,idToken:n,jwks:this.jwks,idTokenClaims:f,idTokenHeader:u,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(H).then(()=>({idToken:n,idTokenClaims:f,idTokenClaimsJson:d,idTokenHeader:u,idTokenHeaderJson:c,idTokenExpiresAt:v})):this.checkAtHash(H).then(y=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!y){let F="Wrong at_hash";return this.logger.warn(F),Promise.reject(F)}return this.checkSignature(H).then(()=>{let F=!this.disableAtHashCheck,ue={idToken:n,idTokenClaims:f,idTokenClaimsJson:d,idTokenHeader:u,idTokenHeaderJson:c,idTokenExpiresAt:v};return F?this.checkAtHash(H).then(Y=>{if(this.requestAccessToken&&!Y){let le="Wrong at_hash";return this.logger.warn(le),Promise.reject(le)}else return ue}):ue})})}getIdentityClaims(){let n=this._storage.getItem("id_token_claims_obj");return n?JSON.parse(n):null}getGrantedScopes(){let n=this._storage.getItem("granted_scopes");return n?JSON.parse(n):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(n){for(;n.length%4!==0;)n+="=";return n}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){let n=this._storage.getItem("expires_at"),o=this.dateTimeService.new();return!(n&&parseInt(n,10)-this.decreaseExpirationBySec<o.getTime()-this.getClockSkewInMsec())}return!1}hasValidIdToken(){if(this.getIdToken()){let n=this._storage.getItem("id_token_expires_at"),o=this.dateTimeService.new();return!(n&&parseInt(n,10)-this.decreaseExpirationBySec<o.getTime()-this.getClockSkewInMsec())}return!1}getCustomTokenResponseProperty(n){return this._storage&&this.config.customTokenParameters&&this.config.customTokenParameters.indexOf(n)>=0&&this._storage.getItem(n)!==null?JSON.parse(this._storage.getItem(n)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(n={},o=""){let i=!1;typeof n=="boolean"&&(i=n,n={});let s=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(c=>this._storage.removeItem(c)),this.silentRefreshSubject=null,this.eventsSubject.next(new Ve("logout")),!this.logoutUrl||i)return;let a;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl  must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)a=this.logoutUrl.replace(/\{\{id_token\}\}/,encodeURIComponent(s)).replace(/\{\{client_id\}\}/,encodeURIComponent(this.clientId));else{let c=new Ie({encoder:new Yt});s&&(c=c.set("id_token_hint",s));let u=this.postLogoutRedirectUri||this.redirectUriAsPostLogoutRedirectUriFallback&&this.redirectUri||"";u&&(c=c.set("post_logout_redirect_uri",u),o&&(c=c.set("state",o)));for(let l in n)c=c.set(l,n[l]);a=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+c.toString()}this.config.openUri(a)}createAndSaveNonce(){let n=this;return this.createNonce().then(function(o){return n.saveNoncesInLocalStorage&&typeof window.localStorage<"u"?localStorage.setItem("nonce",o):n._storage.setItem("nonce",o),o})}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();
9let n=this.document.getElementById(this.silentRefreshIFrameName);n&&n.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();let o=this.document.getElementById(this.sessionCheckIFrameName);o&&o.remove()}createNonce(){return new Promise(n=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");let o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",i=45,s="",a=typeof self>"u"?null:self.crypto||self.msCrypto;if(a){let c=new Uint8Array(i);a.getRandomValues(c),c.map||(c.map=Array.prototype.map),c=c.map(u=>o.charCodeAt(u%o.length)),s=String.fromCharCode.apply(null,c)}else for(;0<i--;)s+=o[Math.random()*o.length|0];n(Yh(s))})}checkAtHash(n){return $e(this,null,function*(){return this.tokenValidationHandler?this.tokenValidationHandler.validateAtHash(n):(this.logger.warn("No tokenValidationHandler configured. Cannot check at_hash."),!0)})}checkSignature(n){return this.tokenValidationHandler?this.tokenValidationHandler.validateSignature(n):(this.logger.warn("No tokenValidationHandler configured. Cannot check signature."),Promise.resolve(null))}initLoginFlow(n="",o={}){return this.responseType==="code"?this.initCodeFlow(n,o):this.initImplicitFlow(n,o)}initCodeFlow(n="",o={}){this.loginUrl!==""?this.initCodeFlowInternal(n,o):this.events.pipe(B(i=>i.type==="discovery_document_loaded")).subscribe(()=>this.initCodeFlowInternal(n,o))}initCodeFlowInternal(n="",o={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl  must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let i={},s=null;typeof o=="string"?s=o:typeof o=="object"&&(i=o),this.createLoginUrl(n,s,null,!1,i).then(this.config.openUri).catch(a=>{console.error("Error in initAuthorizationCodeFlow"),console.error(a)})}createChallangeVerifierPairForPKCE(){return $e(this,null,function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");let n=yield this.createNonce(),o=yield this.crypto.calcHash(n,"sha-256");return[Yh(o),n]})}extractRecognizedCustomParameters(n){let o=new Map;return this.config.customTokenParameters&&this.config.customTokenParameters.forEach(i=>{n[i]&&o.set(i,JSON.stringify(n[i]))}),o}revokeTokenAndLogout(n={},o=!1){let i=this.revocationEndpoint,s=this.getAccessToken(),a=this.getRefreshToken();if(!s)return Promise.resolve();let c=new Ie({encoder:new Yt}),u=new ie().set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){let l=btoa(`${this.clientId}:${this.dummyClientSecret}`);u=u.set("Authorization","Basic "+l)}if(this.useHttpBasicAuth||(c=c.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(c=c.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(let l of Object.getOwnPropertyNames(this.customQueryParams))c=c.set(l,this.customQueryParams[l]);return new Promise((l,d)=>{let f,h;if(s){let p=c.set("token",s).set("token_type_hint","access_token");f=this.http.post(i,p,{headers:u})}else f=b(null);if(a){let p=c.set("token",a).set("token_type_hint","refresh_token");h=this.http.post(i,p,{headers:u})}else h=b(null);o&&(f=f.pipe(me(p=>p.status===0?b(null):He(p))),h=h.pipe(me(p=>p.status===0?b(null):He(p)))),an([f,h]).subscribe(p=>{this.logOut(n),l(p),this.logger.info("Token successfully revoked")},p=>{this.logger.error("Error revoking token",p),this.eventsSubject.next(new Z("token_revoke_error",p)),d(p)})})}clearLocationHash(){location.hash!=""&&(location.hash="")}};e.\u0275fac=function(o){return new(o||e)(D(q),D(oc),D(Oi,8),D(Pi,8),D(jn,8),D(Kh),D(ki),D(Fi,8),D(oe),D(Vr))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})(),Li=class{},eu=class{handleError(e){return He(e)}},Eb=(()=>{let e=class e{constructor(n,o,i){this.oAuthService=n,this.errorHandler=o,this.moduleConfig=i}checkUrl(n){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(n):this.moduleConfig.resourceServer.allowedUrls?!!this.moduleConfig.resourceServer.allowedUrls.find(o=>n.toLowerCase().startsWith(o.toLowerCase())):!0}intercept(n,o){let i=n.url.toLowerCase();return!this.moduleConfig||!this.moduleConfig.resourceServer||!this.checkUrl(i)?o.handle(n):this.moduleConfig.resourceServer.sendAccessToken?as(b(this.oAuthService.getAccessToken()).pipe(B(a=>!!a)),this.oAuthService.events.pipe(B(a=>a.type==="token_received"),ss(this.oAuthService.waitForTokenInMsec||0),me(()=>b(null)),M(()=>this.oAuthService.getAccessToken()))).pipe(ve(1),W(a=>{if(a){let c="Bearer "+a,u=n.headers.set("Authorization",c);n=n.clone({headers:u})}return o.handle(n).pipe(me(c=>this.errorHandler.handleError(c)))})):o.handle(n).pipe(me(a=>this.errorHandler.handleError(a)))}};e.\u0275fac=function(o){return new(o||e)(D(ji),D(Li),D(Ri,8))},e.\u0275prov=E({token:e,factory:e.\u0275fac});let t=e;return t})();function Cb(){return console}function Sb(){return typeof sessionStorage<"u"?sessionStorage:new mb}function Xh(t=null,e=Jc){return mt([ji,Kh,{provide:ki,useFactory:Cb},{provide:Oi,useFactory:Sb},{provide:Pi,useClass:e},{provide:Fi,useClass:bb},{provide:Li,useClass:eu},{provide:Ri,useValue:t},{provide:eh,useClass:Eb,multi:!0},{provide:Vr,useClass:gb}])}var NA=new C("AUTH_CONFIG");var ep=[{path:"**",redirectTo:""}];var tp={providers:[_f({eventCoalescing:!0}),Zh(ep),rh(),Xh()]};
9var Kt=class extends Error{};Kt.prototype.name="InvalidTokenError";function Mb(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function xb(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return Mb(e)}catch{return atob(e)}}function np(t,e){if(typeof t!="string")throw new Kt("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new Kt(`Invalid token specified: missing part #${r+1}`);let o;try{o=xb(n)}catch(i){throw new Kt(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(o)}catch(i){throw new Kt(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var rp={issuer:"https://app.phasetwo.io/auth/realms/p2examples",redirectUri:window.location.origin+"/index.html",clientId:"angular",responseType:"code",scope:"openid profile email offline_access",showDebugInformation:!0};function _b(t,e){if(t&1){let r=Za();G(0,"div")(1,"div",1),re(2,"Authenticated"),U(),G(3,"div",2)(4,"div")(5,"p")(6,"span",3),re(7,"Username"),U(),re(8),U(),G(9,"p")(10,"span",3),re(11,"Email"),U(),re(12),U()(),G(13,"div")(14,"div",4)(15,"div",5)(16,"label",6),re(17," Access Token "),U(),ee(18,"textarea",7),U(),G(19,"div",5)(20,"label",8),re(21," Id Token "),U(),ee(22,"textarea",9),U(),G(23,"div",5)(24,"label",10),re(25," Refresh Token "),U(),ee(26,"textarea",11),U()()()(),G(27,"Button",12),ar("click",function(){wa(r);let o=cr();return Da(o.signOut())}),re(28,"Sign Out"),U()()}if(t&2){let r=cr();rt(8),ti(": ",r.userName,""),rt(4),ti(": ",r.email,""),rt(6),ur("value",r.accessToken),rt(4),ur("value",r.idToken),rt(4),ur("value",r.refreshToken),rt(),Wa(r.buttonClasses)}}function Ab(t,e){if(t&1){let r=Za();G(0,"div")(1,"div",13),re(2,"Not authenticated."),U(),G(3,"Button",12),ar("click",function(){wa(r);let o=cr();return Da(o.signIn())}),re(4,"Sign In"),U()()}if(t&2){let r=cr();rt(3),Wa(r.buttonClasses)}}var op=(()=>{class t{oauthService;buttonClasses="rounded-md bg-indigo-600 px-2.5 py-1.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600";constructor(r){this.oauthService=r,this.oauthService.configure(rp),this.oauthService.loadDiscoveryDocumentAndTryLogin(),this.oauthService.setupAutomaticSilentRefresh(),this.oauthService.events.pipe(B(n=>n.type==="token_received")).subscribe(n=>this.oauthService.loadUserProfile())}signIn(){return this.oauthService.initLoginFlow()}signOut(){return this.oauthService.logOut()}decodeAndStringifyToken(r){return JSON.stringify(np(r),null,2)}get email(){let r=this.oauthService.getIdentityClaims();return r?r.email:""}get userName(){let r=this.oauthService.getIdentityClaims();return r?r.given_name:""}get idToken(){let r=this.oauthService.getIdToken();return r?this.decodeAndStringifyToken(r):""}get refreshToken(){let r=this.oauthService.getRefreshToken();return r?this.decodeAndStringifyToken(r):""}get accessToken(){let r=this.oauthService.getAccessToken();return r?this.decodeAndStringifyToken(r):""}static \u0275fac=function(n){return new(n||t)(Bt(ji))};static \u0275cmp=bn({type:t,selectors:[["app-user"]],standalone:!0,features:[Sn],decls:2,vars:2,consts:[[4,"ngIf"],[1,"mb-2","text-p2blue-700","text-2xl"],[1,"mb-6","text-p2blue-700","text-md"],[1,"font-bold"],[1,"mt-4","text-left"],[1,"mt-2"],["for","accessToken",1,"block","text-sm","font-semibold","leading-6","text-gray-900"],["rows","6","name","accessToken","id","accessToken",1,"block","w-full","rounded-md","border-0","py-1.5","px-2","text-gray-900","shadow-sm","ring-1","ring-inset","ring-gray-300","placeholder:text-gray-400","focus:ring-2","focus:ring-inset","focus:ring-indigo-600","sm:text-sm","sm:leading-6","bg-purple-200/50",3,"value"],["for","idToken",1,"block","text-sm","font-semibold","leading-6","text-gray-900"],["rows","6","name","idToken","id","idToken",1,"block","w-full","rounded-md","border-0","py-1.5","px-2","text-gray-900","shadow-sm","ring-1","ring-inset","ring-gray-300","placeholder:text-gray-400","focus:ring-2","focus:ring-inset","focus:ring-indigo-600","sm:text-sm","sm:leading-6","bg-purple-200/50",3,"value"],["for","refreshToken",1,"block","text-sm","font-semibold","leading-6","text-gray-900"],["rows","6","name","refreshToken","id","refreshToken",1,"block","w-full","rounded-md","border-0","py-1.5","px-2","text-gray-900","shadow-sm","ring-1","ring-inset","ring-gray-300","placeholder:text-gray-400","focus:ring-2","focus:ring-inset","focus:ring-indigo-600","sm:text-sm","sm:leading-6","bg-purple-200/50",3,"value"],[3,"click"],[1,"mb-6","text-p2blue-700","text-2xl"]],template:function(n,o){n&1&&Ga(0,_b,29,7,"div",0)(1,Ab,5,2,"div",0),n&2&&(ei("ngIf",o.idToken),rt(),ei("ngIf",!o.idToken))},dependencies:[zf]})}return t})();var ip=(()=>{class t{title="angular";static \u0275fac=function(n){return new(n||t)};static \u0275cmp=bn({type:t,selectors:[["app-root"]],standalone:!0,features:[Sn],decls:50,vars:0,consts:[[1,"page-bg","min-h-screen"],["media","(max-width: 767px)","srcSet","/home-bg-mobile.webp"],["media","(min-width: 768px)","srcSet","/home-bg.webp"],["src","/
9home-bg-mobile.webp","alt","Gradient Background",1,"page-home"],[1,"px-6","pt-24","pb-8","sm:py-8","lg:pt-24","lg:pb-8","lg:px-8"],[1,"mx-auto","max-w-2xl","text-center"],["href","https://phasetwo.io","target","_blank","rel","noreferrer"],["src","/logo_phase_slash.svg","alt","Phase Two",1,"w-full","max-w-xl","mx-auto","max-h-28"],["href","https://github.com/p2-inc/examples/tree/main/frameworks/reactjs","target","_blank","rel","noreferrer"],[1,"text-4xl","font-semibold","leading-7","text-p2blue-500","mt-6","flex","items-center","w-full","justify-center"],["xmlns","http://www.w3.org/2000/svg","width","4.92em","height","1.2em","viewBox","0 0 512 125"],["id","logosAngular0","x1","0%","x2","100%","y1","48.065%","y2","50.391%"],["offset","0%","stop-color","#e847a3"],["offset","25.687%","stop-color","#da5af7"],["offset","33.759%","stop-color","#dd57f6"],["offset","56.442%","stop-color","#b848f4"],["offset","100%","stop-color","#8842f6"],["id","logosAngular1","x1","36.615%","x2","33.292%","y1","41.656%","y2","100%"],["offset","0%","stop-color","#e03440","stop-opacity","0.2"],["offset","28.023%","stop-color","#e03440","stop-opacity","0.62"],["offset","100%","stop-color","#e03440"],["fill","url(#logosAngular0)","d","m116.028 20.477l-4.19 65.79L71.78 0zm-27.745 85.07l-30.269 17.271l-30.268-17.27l6.156-14.92h48.224zm-30.269-72.8l15.861 38.56H42.153zM4.147 86.267L0 20.477L44.248 0zM476.37 99.91V37.437h14.277v10.412h.65q1.709-5.409 5.878-8.358t9.537-2.949q1.221 0 2.746.102t2.542.305v13.544q-.935-.325-2.949-.59a30 30 0 0 0-3.884-.265q-4.026 0-7.22 1.73q-3.194 1.728-5.023 4.778q-1.83 3.051-1.83 7.037V99.91zm-29.917-63.287q4.515 0 8.99 1.058q4.473 1.058 8.174 3.477q3.7 2.42 5.96 6.57q2.256 4.148 2.256 10.37V99.91H457.68v-8.582h-.488q-1.343 2.604-3.762 4.861q-2.42 2.258-6.06 3.62t-8.522 1.362q-5.938 0-10.677-2.135t-7.483-6.325q-2.745-4.188-2.745-10.33q0-5.287 1.951-8.745a15.1 15.1 0 0 1 5.329-5.532q3.376-2.074 7.626-3.152a63 63 0 0 1 8.806-1.566l1.832-.193l2.123-.234q2.703-.306 4.715-.578l.238-.032q3.416-.467 4.982-1.464q1.565-.996 1.566-3.112v-.244q-.001-4.596-2.725-7.117q-2.726-2.523-7.85-2.523q-5.41 0-8.562 2.36t-4.25 5.572l-13.747-1.952q1.625-5.694 5.368-9.538q3.742-3.844 9.152-5.776q5.407-1.931 11.957-1.932m10.697 33.515q-.691.57-2.338 1.057a35 35 0 0 1-3.681.854q-1.627.294-3.228.534l-1.102.16l-3.154.445q-3.294.448-5.898 1.465t-4.108 2.827t-1.505 4.657q0 4.066 2.969 6.141q2.97 2.074 7.566 2.074q4.432 0 7.687-1.769q3.254-1.77 5.023-4.697q1.77-2.929 1.77-6.386zM400.752 99.91h14.724V16.612h-14.724zm-19.545-26.274V37.437h14.723V99.91h-14.276V88.807h-.651q-2.115 5.247-6.935 8.582t-11.856 3.335q-6.141 0-10.84-2.746t-7.34-8.012q-2.645-5.267-2.644-12.75v-39.78h14.723v37.5q0 5.94 3.254 9.437t8.541 3.497q3.253 0 6.305-1.586q3.05-1.586 5.023-4.738q1.912-3.058 1.97-7.624zm-77.912-37.013q5.49 0 9.05 1.85q3.558 1.852 5.674 4.434q2.114 2.584 3.213 4.86h.813v-10.33h14.52v63.49q0 8.013-3.823 13.26t-10.453 7.85t-15.048 2.603q-7.933 0-13.626-2.135q-5.695-2.137-9.152-5.715q-3.456-3.58-4.799-7.932l13.26-3.213q.893 1.83 2.603 3.641q1.708 1.81 4.616 3.01q2.909 1.2 7.341 1.2q6.264 0 10.372-3.03q4.108-3.031 4.108-9.945V88.685h-.732q-1.14 2.277-3.315 4.677q-2.177 2.4-5.735 4.027q-3.56 1.627-8.928 1.627q-7.2 0-13.035-3.397q-5.838-3.395-9.274-10.167q-3.437-6.772-3.437-16.982q0-10.29 3.437-17.387t9.294-10.779t13.056-3.681m4.067 12.08q-4.921 0-8.216 2.563q-3.294 2.562-4.961 7.016q-1.669 4.453-1.668 10.107q0 5.735 1.688 10.026t5.002 6.67t8.155 2.38q4.677 0 7.972-2.278t5.003-6.548q1.708-4.272 1.708-10.25q0-5.897-1.687-10.33q-1.689-4.434-4.962-6.895q-3.274-2.46-8.034-2.46m-72.668 14.602V99.91h-14.723V37.437h14.074v10.615h.731q2.155-5.246 6.894-8.337q4.738-3.091 11.735-3.092q6.466 0 11.287 2.766q4.818 2.766 7.483 8.012q2.598 5.12 2.624 12.368V99.91h-14.724v-37.5q0-6.263-3.234-9.802t-8.927-3.539q-3.863 0-6.854 1.688q-2.99 1.689-4.677 4.86q-1.632 3.068-1.687 7.388zM189.44 16.612l29.365 83.298h-16.106l-6.901-20.54H164.48l-6.888 20.54h-16.107l29.325-83.298zm-8.988 17.083h-.652L168.545 67.25h23.18z"],["fill","url(#logosAngular1)","d","m88.283 105.548l-30.269 17.27l-30.268-17.27l6.156-14.92h48.224zM58.014 32.746l15.861 38.56H42.153zM4.147 86.267L0 20.477L44.248 0z"],["xmlns","http://www.w3.org/2000/svg","width","1.2em","height","1.2em","viewBox","0 0 16 16",1,"ml-4"],["fill","currentColor","d","M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59c.4.07.55-.17.55-.38c0-.19-.01-.82-.01-1.49c-2.01.37-2.53-.49-2.69-.94c-.09-.23-.48-.94-.82-1.13c-.28-.15-.68-.52-.01-.53c.63
9-.01 1.08.58 1.23.82c.72 1.21 1.87.87 2.33.66c.07-.52.28-.87.51-1.07c-1.78-.2-3.64-.89-3.64-3.95c0-.87.31-1.59.82-2.15c-.08-.2-.36-1.02.08-2.12c0 0 .67-.21 2.2.82c.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82c.44 1.1.16 1.92.08 2.12c.51.56.82 1.27.82 2.15c0 3.07-1.87 3.75-3.65 3.95c.29.25.54.73.54 1.48c0 1.07-.01 1.93-.01 2.2c0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8"],[1,"py-12"],[1,"mx-auto","max-w-3xl","px-6","lg:px-8","text-center"],["className","sm:py-20"],[1,"mx-auto","max-w-3xl","px-6","lg:px-8"],[1,"-mx-6","grid","grid-cols-2","gap-0.5","overflow-hidden","sm:mx-0","sm:rounded-2xl"],["href","https://phasetwo.io/docs/introduction","target","_blank","rel","noreferrer"],[1,"p-8","sm:p-10","bg-purple-500/10","text-center","text-xl","font-semibold","text-slate-600/80","flex","items-center","justify-center"],["src","/line-md_external-link-rounded.svg",1,"w-5","mr-1"],["href","https://github.com/p2-inc/","target","_blank","rel","noreferrer"],["src","/bi-github.svg",1,"w-5","mr-1"],["href","https://phasetwo.io/blog","target","_blank","rel","noreferrer"],["href","mailto:[email protected]","target","_blank","rel","noreferrer"],["src","/ic_email-outline.svg",1,"w-5","mr-1"]],template:function(n,o){n&1&&(G(0,"div",0)(1,"picture"),ee(2,"source",1)(3,"source",2)(4,"img",3),U(),G(5,"div",4)(6,"div",5)(7,"a",6),ee(8,"img",7),U(),G(9,"a",8)(10,"p",9),hd(),G(11,"svg",10)(12,"defs")(13,"linearGradient",11),ee(14,"stop",12)(15,"stop",13)(16,"stop",14)(17,"stop",15)(18,"stop",16),U(),G(19,"linearGradient",17),ee(20,"stop",18)(21,"stop",19)(22,"stop",20),U()(),ee(23,"path",21)(24,"path",22),U(),G(25,"svg",23),ee(26,"path",24),U()()()()(),pd(),G(27,"div",25)(28,"div",26),ee(29,"app-user"),U()(),G(30,"div",27)(31,"div",28)(32,"div",29)(33,"a",30)(34,"div",31),ee(35,"img",32),re(36," Docs "),U()(),G(37,"a",33)(38,"div",31),ee(39,"img",34),re(40," Github "),U()(),G(41,"a",35)(42,"div",31),ee(43,"img",32),re(44," Blog "),U()(),G(45,"a",36)(46,"div",31),ee(47,"img",37),re(48," Contact "),U()()()()()(),ee(49,"router-outlet"))},dependencies:[zc,op]})}return t})();dh(ip,tp).catch(t=>console.error(t));

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