http-log-replay 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +197 -0
- package/ecosystem.config.js +19 -0
- package/index.js +95 -0
- package/package.json +55 -0
- package/recorder.js +114 -0
- package/replayer.js +232 -0
- package/server.js +129 -0
- package/traffic-generator.js +149 -0
- package/ui/dist/ui/3rdpartylicenses.txt +487 -0
- package/ui/dist/ui/browser/favicon.ico +0 -0
- package/ui/dist/ui/browser/index.html +13 -0
- package/ui/dist/ui/browser/main-4NFTVOCL.js +5 -0
- package/ui/dist/ui/browser/styles-5INURTSO.css +0 -0
- package/ui/dist/ui/prerendered-routes.json +3 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
var Gd=Object.defineProperty,Qy=Object.defineProperties;var Ky=Object.getOwnPropertyDescriptors;var $d=Object.getOwnPropertySymbols;var Jy=Object.prototype.hasOwnProperty,Xy=Object.prototype.propertyIsEnumerable;var zd=(e,t,n)=>t in e?Gd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,m=(e,t)=>{for(var n in t||={})Jy.call(t,n)&&zd(e,n,t[n]);if($d)for(var n of $d(t))Xy.call(t,n)&&zd(e,n,t[n]);return e},k=(e,t)=>Qy(e,Ky(t));var ev=(e,t)=>{for(var n in t)Gd(e,n,{get:t[n],enumerable:!0})};var he=null,Di=!1,Ha=1,tv=null,ve=Symbol("SIGNAL");function b(e){let t=he;return he=e,t}function Ci(){return he}var Ur={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Hr(e){if(Di)throw new Error("");if(he===null)return;he.consumerOnSignalRead(e);let t=he.producersTail;if(t!==void 0&&t.producer===e)return;let n,r=he.recomputing;if(r&&(n=t!==void 0?t.nextProducer:he.producers,n!==void 0&&n.producer===e)){he.producersTail=n,n.lastReadVersion=e.version;return}let o=e.consumersTail;if(o!==void 0&&o.consumer===he&&(!r||rv(o,he)))return;let i=Hn(he),s={producer:e,consumer:he,nextProducer:n,prevConsumer:o,lastReadVersion:e.version,nextConsumer:void 0};he.producersTail=s,t!==void 0?t.nextProducer=s:he.producers=s,i&&Yd(e,s)}function qd(){Ha++}function $a(e){if(!(Hn(e)&&!e.dirty)&&!(!e.dirty&&e.lastCleanEpoch===Ha)){if(!e.producerMustRecompute(e)&&!wi(e)){Ua(e);return}e.producerRecomputeValue(e),Ua(e)}}function za(e){if(e.consumers===void 0)return;let t=Di;Di=!0;try{for(let n=e.consumers;n!==void 0;n=n.nextConsumer){let r=n.consumer;r.dirty||nv(r)}}finally{Di=t}}function Ga(){return he?.consumerAllowSignalWrites!==!1}function nv(e){e.dirty=!0,za(e),e.consumerMarkedDirty?.(e)}function Ua(e){e.dirty=!1,e.lastCleanEpoch=Ha}function $r(e){return e&&Wd(e),b(e)}function Wd(e){e.producersTail=void 0,e.recomputing=!0}function _i(e,t){b(t),e&&Zd(e)}function Zd(e){e.recomputing=!1;let t=e.producersTail,n=t!==void 0?t.nextProducer:e.producers;if(n!==void 0){if(Hn(e))do n=qa(n);while(n!==void 0);t!==void 0?t.nextProducer=void 0:e.producers=void 0}}function wi(e){for(let t=e.producers;t!==void 0;t=t.nextProducer){let n=t.producer,r=t.lastReadVersion;if(r!==n.version||($a(n),r!==n.version))return!0}return!1}function zr(e){if(Hn(e)){let t=e.producers;for(;t!==void 0;)t=qa(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function Yd(e,t){let n=e.consumersTail,r=Hn(e);if(n!==void 0?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let o=e.producers;o!==void 0;o=o.nextProducer)Yd(o.producer,o)}function qa(e){let t=e.producer,n=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:t.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(t.consumers=r,!Hn(t)){let i=t.producers;for(;i!==void 0;)i=qa(i)}return n}function Hn(e){return e.consumerIsAlwaysLive||e.consumers!==void 0}function Wa(e){tv?.(e)}function rv(e,t){let n=t.producersTail;if(n!==void 0){let r=t.producers;do{if(r===e)return!0;if(r===n)break;r=r.nextProducer}while(r!==void 0)}return!1}function Za(e,t){return Object.is(e,t)}function bi(e,t){let n=Object.create(ov);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if($a(n),Hr(n),n.value===Ei)throw n.error;return n.value};return r[ve]=n,Wa(n),r}var ja=Symbol("UNSET"),Ba=Symbol("COMPUTING"),Ei=Symbol("ERRORED"),ov=k(m({},Ur),{value:ja,dirty:!0,error:null,equal:Za,kind:"computed",producerMustRecompute(e){return e.value===ja||e.value===Ba},producerRecomputeValue(e){if(e.value===Ba)throw new Error("");let t=e.value;e.value=Ba;let n=$r(e),r,o=!1;try{r=e.computation(),b(null),o=t!==ja&&t!==Ei&&r!==Ei&&e.equal(t,r)}catch(i){r=Ei,e.error=i}finally{_i(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function iv(){throw new Error}var Qd=iv;function Kd(e){Qd(e)}function Ya(e){Qd=e}var sv=null;function Qa(e,t){let n=Object.create(Ii);n.value=e,t!==void 0&&(n.equal=t);let r=()=>Jd(n);return r[ve]=n,Wa(n),[r,s=>Gr(n,s),s=>Xd(n,s)]}function Jd(e){return Hr(e),e.value}function Gr(e,t){Ga()||Kd(e),e.equal(e.value,t)||(e.value=t,av(e))}function Xd(e,t){Ga()||Kd(e),Gr(e,t(e.value))}var Ii=k(m({},Ur),{equal:Za,value:void 0,kind:"signal"});function av(e){e.version++,qd(),za(e),sv?.(e)}function Ka(e){let t=b(null);try{return e()}finally{b(t)}}function T(e){return typeof e=="function"}function $n(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Si=$n(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:
|
|
2
|
+
${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
|
|
3
|
+
`)}`:"",this.name="UnsubscriptionError",this.errors=n});function qr(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var ce=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(T(r))try{r()}catch(i){t=i instanceof Si?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{ef(i)}catch(s){t=t??[],s instanceof Si?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Si(t)}}add(t){var n;if(t&&t!==this)if(this.closed)ef(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&qr(n,t)}remove(t){let{_finalizers:n}=this;n&&qr(n,t),t instanceof e&&t._removeParent(this)}};ce.EMPTY=(()=>{let e=new ce;return e.closed=!0,e})();var Ja=ce.EMPTY;function Ti(e){return e instanceof ce||e&&"closed"in e&&T(e.remove)&&T(e.add)&&T(e.unsubscribe)}function ef(e){T(e)?e():e.unsubscribe()}var Ze={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var zn={setTimeout(e,t,...n){let{delegate:r}=zn;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=zn;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Mi(e){zn.setTimeout(()=>{let{onUnhandledError:t}=Ze;if(t)t(e);else throw e})}function Wr(){}var tf=Xa("C",void 0,void 0);function nf(e){return Xa("E",void 0,e)}function rf(e){return Xa("N",e,void 0)}function Xa(e,t,n){return{kind:e,value:t,error:n}}var en=null;function Gn(e){if(Ze.useDeprecatedSynchronousErrorHandling){let t=!en;if(t&&(en={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=en;if(en=null,n)throw r}}else e()}function of(e){Ze.useDeprecatedSynchronousErrorHandling&&en&&(en.errorThrown=!0,en.error=e)}var tn=class extends ce{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Ti(t)&&t.add(this)):this.destination=lv}static create(t,n,r){return new qn(t,n,r)}next(t){this.isStopped?tc(rf(t),this):this._next(t)}error(t){this.isStopped?tc(nf(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?tc(tf,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},cv=Function.prototype.bind;function ec(e,t){return cv.call(e,t)}var nc=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Ai(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Ai(r)}else Ai(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Ai(n)}}},qn=class extends tn{constructor(t,n,r){super();let o;if(T(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Ze.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&ec(t.next,i),error:t.error&&ec(t.error,i),complete:t.complete&&ec(t.complete,i)}):o=t}this.destination=new nc(o)}};function Ai(e){Ze.useDeprecatedSynchronousErrorHandling?of(e):Mi(e)}function uv(e){throw e}function tc(e,t){let{onStoppedNotification:n}=Ze;n&&zn.setTimeout(()=>n(e,t))}var lv={closed:!0,next:Wr,error:uv,complete:Wr};var Wn=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Ye(e){return e}function rc(...e){return oc(e)}function oc(e){return e.length===0?Ye:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var P=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=fv(n)?n:new qn(n,r,o);return Gn(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=sf(r),new r((o,i)=>{let s=new qn({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Wn](){return this}pipe(...n){return oc(n)(this)}toPromise(n){return n=sf(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function sf(e){var t;return(t=e??Ze.Promise)!==null&&t!==void 0?t:Promise}function dv(e){return e&&T(e.next)&&T(e.error)&&T(e.complete)}function fv(e){return e&&e instanceof tn||dv(e)&&Ti(e)}function hv(e){return T(e?.lift)}function B(e){return t=>{if(hv(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function U(e,t,n,r,o){return new ic(e,t,n,r,o)}var ic=class extends tn{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};var af=$n(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var se=(()=>{class e extends P{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Ni(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new af}next(n){Gn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Gn(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Gn(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?Ja:(this.currentObservers=null,i.push(n),new ce(()=>{this.currentObservers=null,qr(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new P;return n.source=this,n}}return e.create=(t,n)=>new Ni(t,n),e})(),Ni=class extends se{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:Ja}};var ue=class extends se{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var _e=new P(e=>e.complete());function cf(e){return e&&T(e.schedule)}function uf(e){return e[e.length-1]}function Ri(e){return T(uf(e))?e.pop():void 0}function Pt(e){return cf(uf(e))?e.pop():void 0}function df(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(l){try{u(r.next(l))}catch(d){s(d)}}function c(l){try{u(r.throw(l))}catch(d){s(d)}}function u(l){l.done?i(l.value):o(l.value).then(a,c)}u((r=r.apply(e,t||[])).next())})}function lf(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function nn(e){return this instanceof nn?(this.v=e,this):new nn(e)}function ff(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(f){return function(g){return Promise.resolve(g).then(f,d)}}function a(f,g){r[f]&&(o[f]=function(C){return new Promise(function(v,y){i.push([f,C,v,y])>1||c(f,C)})},g&&(o[f]=g(o[f])))}function c(f,g){try{u(r[f](g))}catch(C){h(i[0][3],C)}}function u(f){f.value instanceof nn?Promise.resolve(f.value.v).then(l,d):h(i[0][2],f)}function l(f){c("next",f)}function d(f){c("throw",f)}function h(f,g){f(g),i.shift(),i.length&&c(i[0][0],i[0][1])}}function hf(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof lf=="function"?lf(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},s)}}var xi=e=>e&&typeof e.length=="number"&&typeof e!="function";function Oi(e){return T(e?.then)}function ki(e){return T(e[Wn])}function Pi(e){return Symbol.asyncIterator&&T(e?.[Symbol.asyncIterator])}function Fi(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function pv(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Li=pv();function Vi(e){return T(e?.[Li])}function ji(e){return ff(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield nn(n.read());if(o)return yield nn(void 0);yield yield nn(r)}}finally{n.releaseLock()}})}function Bi(e){return T(e?.getReader)}function K(e){if(e instanceof P)return e;if(e!=null){if(ki(e))return gv(e);if(xi(e))return mv(e);if(Oi(e))return yv(e);if(Pi(e))return pf(e);if(Vi(e))return vv(e);if(Bi(e))return Dv(e)}throw Fi(e)}function gv(e){return new P(t=>{let n=e[Wn]();if(T(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function mv(e){return new P(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function yv(e){return new P(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Mi)})}function vv(e){return new P(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function pf(e){return new P(t=>{Ev(e,t).catch(n=>t.error(n))})}function Dv(e){return pf(ji(e))}function Ev(e,t){var n,r,o,i;return df(this,void 0,void 0,function*(){try{for(n=hf(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function we(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function Ui(e,t=0){return B((n,r)=>{n.subscribe(U(r,o=>we(r,e,()=>r.next(o),t),()=>we(r,e,()=>r.complete(),t),o=>we(r,e,()=>r.error(o),t)))})}function Hi(e,t=0){return B((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function gf(e,t){return K(e).pipe(Hi(t),Ui(t))}function mf(e,t){return K(e).pipe(Hi(t),Ui(t))}function yf(e,t){return new P(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function vf(e,t){return new P(n=>{let r;return we(n,t,()=>{r=e[Li](),we(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>T(r?.return)&&r.return()})}function $i(e,t){if(!e)throw new Error("Iterable cannot be null");return new P(n=>{we(n,t,()=>{let r=e[Symbol.asyncIterator]();we(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Df(e,t){return $i(ji(e),t)}function Ef(e,t){if(e!=null){if(ki(e))return gf(e,t);if(xi(e))return yf(e,t);if(Oi(e))return mf(e,t);if(Pi(e))return $i(e,t);if(Vi(e))return vf(e,t);if(Bi(e))return Df(e,t)}throw Fi(e)}function J(e,t){return t?Ef(e,t):K(e)}function x(...e){let t=Pt(e);return J(e,t)}function sc(e,t){let n=T(e)?e:()=>e,r=o=>o.error(n());return new P(t?o=>t.schedule(r,0,o):r)}function zi(e){return!!e&&(e instanceof P||T(e.lift)&&T(e.subscribe))}var rn=$n(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function V(e,t){return B((n,r)=>{let o=0;n.subscribe(U(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:Cv}=Array;function _v(e,t){return Cv(t)?e(...t):e(t)}function Gi(e){return V(t=>_v(e,t))}var{isArray:wv}=Array,{getPrototypeOf:bv,prototype:Iv,keys:Sv}=Object;function qi(e){if(e.length===1){let t=e[0];if(wv(t))return{args:t,keys:null};if(Tv(t)){let n=Sv(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function Tv(e){return e&&typeof e=="object"&&bv(e)===Iv}function Wi(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function ac(...e){let t=Pt(e),n=Ri(e),{args:r,keys:o}=qi(e);if(r.length===0)return J([],t);let i=new P(Mv(r,t,o?s=>Wi(o,s):Ye));return n?i.pipe(Gi(n)):i}function Mv(e,t,n=Ye){return r=>{Cf(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c<o;c++)Cf(t,()=>{let u=J(e[c],t),l=!1;u.subscribe(U(r,d=>{i[c]=d,l||(l=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function Cf(e,t,n){e?we(n,e,t):t()}function _f(e,t,n,r,o,i,s,a){let c=[],u=0,l=0,d=!1,h=()=>{d&&!c.length&&!u&&t.complete()},f=C=>u<r?g(C):c.push(C),g=C=>{i&&t.next(C),u++;let v=!1;K(n(C,l++)).subscribe(U(t,y=>{o?.(y),i?f(y):t.next(y)},()=>{v=!0},void 0,()=>{if(v)try{for(u--;c.length&&u<r;){let y=c.shift();s?we(t,s,()=>g(y)):g(y)}h()}catch(y){t.error(y)}}))};return e.subscribe(U(t,f,()=>{d=!0,h()})),()=>{a?.()}}function De(e,t,n=1/0){return T(t)?De((r,o)=>V((i,s)=>t(r,i,o,s))(K(e(r,o))),n):(typeof t=="number"&&(n=t),B((r,o)=>_f(r,o,e,n)))}function wf(e=1/0){return De(Ye,e)}function bf(){return wf(1)}function Zn(...e){return bf()(J(e,Pt(e)))}function Zr(e){return new P(t=>{K(e()).subscribe(t)})}function cc(...e){let t=Ri(e),{args:n,keys:r}=qi(e),o=new P(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,u=s;for(let l=0;l<s;l++){let d=!1;K(n[l]).subscribe(U(i,h=>{d||(d=!0,u--),a[l]=h},()=>c--,void 0,()=>{(!c||!d)&&(u||i.next(r?Wi(r,a):a),i.complete())}))}});return t?o.pipe(Gi(t)):o}function Pe(e,t){return B((n,r)=>{let o=0;n.subscribe(U(r,i=>e.call(t,i,o++)&&r.next(i)))})}function Yr(e){return B((t,n)=>{let r=null,o=!1,i;r=t.subscribe(U(n,void 0,void 0,s=>{i=K(e(s,Yr(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function Yn(e,t){return T(t)?De(e,t,1):De(e,1)}function uc(e){return B((t,n)=>{let r=!1;t.subscribe(U(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function mt(e){return e<=0?()=>_e:B((t,n)=>{let r=0;t.subscribe(U(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function If(e=Av){return B((t,n)=>{let r=!1;t.subscribe(U(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function Av(){return new rn}function Qr(e){return B((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function yt(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Pe((o,i)=>e(o,i,r)):Ye,mt(1),n?uc(t):If(()=>new rn))}function Zi(e){return e<=0?()=>_e:B((t,n)=>{let r=[];t.subscribe(U(n,o=>{r.push(o),e<r.length&&r.shift()},()=>{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function lc(...e){let t=Pt(e);return B((n,r)=>{(t?Zn(e,n,t):Zn(e,n)).subscribe(r)})}function Fe(e,t){return B((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(U(r,c=>{o?.unsubscribe();let u=0,l=i++;K(e(c,l)).subscribe(o=U(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Kr(e){return B((t,n)=>{K(e).subscribe(U(n,()=>n.complete(),Wr)),!n.closed&&t.subscribe(n)})}function Ee(e,t,n){let r=T(e)||t||n?{next:e,error:t,complete:n}:e;return r?B((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(U(i,c=>{var u;(u=r.next)===null||u===void 0||u.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var u;a=!1,(u=r.error)===null||u===void 0||u.call(r,c),i.error(c)},()=>{var c,u;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(u=r.finalize)===null||u===void 0||u.call(r)}))}):Ye}var dc;function Yi(){return dc}function st(e){let t=dc;return dc=e,t}var Sf=Symbol("NotFound");function Qn(e){return e===Sf||e?.name==="\u0275NotFound"}var Sc="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",D=class extends Error{code;constructor(t,n){super(Jn(t,n)),this.code=t}};function xv(e){return`NG0${Math.abs(e)}`}function Jn(e,t){return`${xv(e)}${t?": "+t:""}`}function H(e){for(let t in e)if(e[t]===H)return t;throw Error("")}function Rf(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Dt(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(Dt).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(`
|
|
4
|
+
`);return r>=0?n.slice(0,r):n}function Tc(e,t){return e?t?`${e} ${t}`:e:t||""}var Ov=H({__forward_ref__:H});function Lt(e){return e.__forward_ref__=Lt,e.toString=function(){return Dt(this())},e}function le(e){return Mc(e)?e():e}function Mc(e){return typeof e=="function"&&e.hasOwnProperty(Ov)&&e.__forward_ref__===Lt}function _(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function at(e){return{providers:e.providers||[],imports:e.imports||[]}}function ro(e){return kv(e,es)}function Ac(e){return ro(e)!==null}function kv(e,t){return e.hasOwnProperty(t)&&e[t]||null}function Pv(e){let t=e?.[es]??null;return t||null}function hc(e){return e&&e.hasOwnProperty(Ki)?e[Ki]:null}var es=H({\u0275prov:H}),Ki=H({\u0275inj:H}),E=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=_({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Nc(e){return e&&!!e.\u0275providers}var Rc=H({\u0275cmp:H}),xc=H({\u0275dir:H}),Oc=H({\u0275pipe:H}),kc=H({\u0275mod:H}),Xr=H({\u0275fac:H}),dn=H({__NG_ELEMENT_ID__:H}),Tf=H({__NG_ENV_ID__:H});function Pc(e){return e[kc]||null}function Vt(e){return e[Rc]||null}function Fc(e){return e[xc]||null}function xf(e){return e[Oc]||null}function oo(e){return typeof e=="string"?e:e==null?"":String(e)}function Of(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():oo(e)}var kf=H({ngErrorCode:H}),Fv=H({ngErrorMessage:H}),Lv=H({ngTokenPath:H});function Lc(e,t){return Pf("",-200,t)}function ts(e,t){throw new D(-201,!1)}function Pf(e,t,n){let r=new D(t,e);return r[kf]=t,r[Fv]=e,n&&(r[Lv]=n),r}function Vv(e){return e[kf]}var pc;function Ff(){return pc}function Te(e){let t=pc;return pc=e,t}function Vc(e,t,n){let r=ro(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&8)return null;if(t!==void 0)return t;ts(e,"Injector")}var jv={},on=jv,Bv="__NG_DI_FLAG__",gc=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=sn(n)||0;try{return this.injector.get(t,r&8?null:on,r)}catch(o){if(Qn(o))return o;throw o}}};function Uv(e,t=0){let n=Yi();if(n===void 0)throw new D(-203,!1);if(n===null)return Vc(e,void 0,t);{let r=Hv(t),o=n.retrieve(e,r);if(Qn(o)){if(r.optional)return null;throw o}return o}}function I(e,t=0){return(Ff()||Uv)(le(e),t)}function p(e,t){return I(e,sn(t))}function sn(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Hv(e){return{optional:!!(e&8),host:!!(e&1),self:!!(e&2),skipSelf:!!(e&4)}}function mc(e){let t=[];for(let n=0;n<e.length;n++){let r=le(e[n]);if(Array.isArray(r)){if(r.length===0)throw new D(900,!1);let o,i=0;for(let s=0;s<r.length;s++){let a=r[s],c=$v(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(I(o,i))}else t.push(I(r))}return t}function $v(e){return e[Bv]}function an(e,t){let n=e.hasOwnProperty(Xr);return n?e[Xr]:null}function ns(e,t){e.forEach(n=>Array.isArray(n)?ns(n,t):t(n))}function jc(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function io(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Lf(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function Vf(e,t,n){let r=Xn(e,t);return r>=0?e[r|1]=n:(r=~r,Lf(e,r,t,n)),r}function rs(e,t){let n=Xn(e,t);if(n>=0)return e[n|1]}function Xn(e,t){return zv(e,t,1)}function zv(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var jt={},Me=[],fn=new E(""),Bc=new E("",-1),Uc=new E(""),eo=class{get(t,n=on){if(n===on){let o=Pf("",-201);throw o.name="\u0275NotFound",o}return n}};function Bt(e){return{\u0275providers:e}}function jf(e){return Bt([{provide:fn,multi:!0,useValue:e}])}function Bf(...e){return{\u0275providers:Hc(!0,e),\u0275fromNgModule:!0}}function Hc(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return ns(t,s=>{let a=s;Ji(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Uf(o,i),n}function Uf(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];$c(o,i=>{t(i,r)})}}function Ji(e,t,n,r){if(e=le(e),!e)return!1;let o=null,i=hc(e),s=!i&&Vt(e);if(!i&&!s){let c=e.ngModule;if(i=hc(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)Ji(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;try{ns(i.imports,l=>{Ji(l,t,n,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&Uf(u,t)}if(!a){let u=an(o)||(()=>new o);t({provide:o,useFactory:u,deps:Me},o),t({provide:Uc,useValue:o,multi:!0},o),t({provide:fn,useValue:()=>I(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;$c(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function $c(e,t){for(let n of e)Nc(n)&&(n=n.\u0275providers),Array.isArray(n)?$c(n,t):t(n)}var Gv=H({provide:String,useValue:H});function Hf(e){return e!==null&&typeof e=="object"&&Gv in e}function qv(e){return!!(e&&e.useExisting)}function Wv(e){return!!(e&&e.useFactory)}function cn(e){return typeof e=="function"}function $f(e){return!!e.useClass}var so=new E(""),Qi={},Mf={},fc;function ao(){return fc===void 0&&(fc=new eo),fc}var X=class{},un=class extends X{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,vc(t,s=>this.processProvider(s)),this.records.set(Bc,Kn(void 0,this)),o.has("environment")&&this.records.set(X,Kn(void 0,this));let i=this.records.get(so);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Uc,Me,{self:!0}))}retrieve(t,n){let r=sn(n)||0;try{return this.get(t,on,r)}catch(o){if(Qn(o))return o;throw o}}destroy(){Jr(this),this._destroyed=!0;let t=b(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),b(t)}}onDestroy(t){return Jr(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Jr(this);let n=st(this),r=Te(void 0),o;try{return t()}finally{st(n),Te(r)}}get(t,n=on,r){if(Jr(this),t.hasOwnProperty(Tf))return t[Tf](this);let o=sn(r),i,s=st(this),a=Te(void 0);try{if(!(o&4)){let u=this.records.get(t);if(u===void 0){let l=Jv(t)&&ro(t);l&&this.injectableDefInScope(l)?u=Kn(yc(t),Qi):u=null,this.records.set(t,u)}if(u!=null)return this.hydrate(t,u,o)}let c=o&2?ao():this.parent;return n=o&8&&n===on?null:n,c.get(t,n)}catch(c){let u=Vv(c);throw u===-200||u===-201?new D(u,null):c}finally{Te(a),st(s)}}resolveInjectorInitializers(){let t=b(null),n=st(this),r=Te(void 0),o;try{let i=this.get(fn,Me,{self:!0});for(let s of i)s()}finally{st(n),Te(r),b(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(Dt(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=le(t);let n=cn(t)?t:le(t&&t.provide),r=Yv(t);if(!cn(t)&&t.multi===!0){let o=this.records.get(n);o||(o=Kn(void 0,Qi,!0),o.factory=()=>mc(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=b(null);try{if(n.value===Mf)throw Lc(Dt(t));return n.value===Qi&&(n.value=Mf,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&Kv(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{b(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=le(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function yc(e){let t=ro(e),n=t!==null?t.factory:an(e);if(n!==null)return n;if(e instanceof E)throw new D(204,!1);if(e instanceof Function)return Zv(e);throw new D(204,!1)}function Zv(e){if(e.length>0)throw new D(204,!1);let n=Pv(e);return n!==null?()=>n.factory(e):()=>new e}function Yv(e){if(Hf(e))return Kn(void 0,e.useValue);{let t=zc(e);return Kn(t,Qi)}}function zc(e,t,n){let r;if(cn(e)){let o=le(e);return an(o)||yc(o)}else if(Hf(e))r=()=>le(e.useValue);else if(Wv(e))r=()=>e.useFactory(...mc(e.deps||[]));else if(qv(e))r=(o,i)=>I(le(e.useExisting),i!==void 0&&i&8?8:void 0);else{let o=le(e&&(e.useClass||e.provide));if(Qv(e))r=()=>new o(...mc(e.deps));else return an(o)||yc(o)}return r}function Jr(e){if(e.destroyed)throw new D(205,!1)}function Kn(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Qv(e){return!!e.deps}function Kv(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Jv(e){return typeof e=="function"||typeof e=="object"&&e.ngMetadataName==="InjectionToken"}function vc(e,t){for(let n of e)Array.isArray(n)?vc(n,t):n&&Nc(n)?vc(n.\u0275providers,t):t(n)}function de(e,t){let n;e instanceof un?(Jr(e),n=e):n=new gc(e);let r,o=st(n),i=Te(void 0);try{return t()}finally{st(o),Te(i)}}function zf(){return Ff()!==void 0||Yi()!=null}var Ke=0,S=1,M=2,ae=3,Le=4,Ve=5,er=6,tr=7,Y=8,Ct=9,_t=10,Z=11,nr=12,Gc=13,hn=14,Ae=15,pn=16,gn=17,mn=18,co=19,qc=20,vt=21,os=22,uo=23,Ne=24,is=25,yn=26,pe=27,Gf=1,Wc=6,Ut=7,lo=8,fo=9,Q=10;function ct(e){return Array.isArray(e)&&typeof e[Gf]=="object"}function Je(e){return Array.isArray(e)&&e[Gf]===!0}function Zc(e){return(e.flags&4)!==0}function Ht(e){return e.componentOffset>-1}function ss(e){return(e.flags&1)===1}function ut(e){return!!e.template}function rr(e){return(e[M]&512)!==0}function vn(e){return(e[M]&256)===256}var qf="svg",Wf="math";function je(e){for(;Array.isArray(e);)e=e[Ke];return e}function Yc(e,t){return je(t[e])}function lt(e,t){return je(t[e.index])}function ho(e,t){return e.data[t]}function Be(e,t){let n=t[e];return ct(n)?n:n[Ke]}function as(e){return(e[M]&128)===128}function Zf(e){return Je(e[ae])}function $t(e,t){return t==null?null:e[t]}function Qc(e){e[gn]=0}function Kc(e){e[M]&1024||(e[M]|=1024,as(e)&&go(e))}function Yf(e,t){for(;e>0;)t=t[hn],e--;return t}function po(e){return!!(e[M]&9216||e[Ne]?.dirty)}function cs(e){e[_t].changeDetectionScheduler?.notify(8),e[M]&64&&(e[M]|=1024),po(e)&&go(e)}function go(e){e[_t].changeDetectionScheduler?.notify(0);let t=Ft(e);for(;t!==null&&!(t[M]&8192||(t[M]|=8192,!as(t)));)t=Ft(t)}function Jc(e,t){if(vn(e))throw new D(911,!1);e[vt]===null&&(e[vt]=[]),e[vt].push(t)}function Qf(e,t){if(e[vt]===null)return;let n=e[vt].indexOf(t);n!==-1&&e[vt].splice(n,1)}function Ft(e){let t=e[ae];return Je(t)?t[ae]:t}function Kf(e){return e[tr]??=[]}function Jf(e){return e.cleanup??=[]}var O={lFrame:gh(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Dc=!1;function Xf(){return O.lFrame.elementDepthCount}function eh(){O.lFrame.elementDepthCount++}function th(){O.lFrame.elementDepthCount--}function nh(){return O.bindingsEnabled}function rh(){return O.skipHydrationRootTNode!==null}function oh(e){return O.skipHydrationRootTNode===e}function ih(){O.skipHydrationRootTNode=null}function z(){return O.lFrame.lView}function Ie(){return O.lFrame.tView}function ge(e){return O.lFrame.contextLView=e,e[Y]}function me(e){return O.lFrame.contextLView=null,e}function Ue(){let e=Xc();for(;e!==null&&e.type===64;)e=e.parent;return e}function Xc(){return O.lFrame.currentTNode}function sh(){let e=O.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function or(e,t){let n=O.lFrame;n.currentTNode=e,n.isParent=t}function eu(){return O.lFrame.isParent}function ah(){O.lFrame.isParent=!1}function tu(){return Dc}function nu(e){let t=Dc;return Dc=e,t}function ch(){return O.lFrame.bindingIndex}function uh(e){return O.lFrame.bindingIndex=e}function ir(){return O.lFrame.bindingIndex++}function ru(e){let t=O.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function lh(){return O.lFrame.inI18n}function dh(e,t){let n=O.lFrame;n.bindingIndex=n.bindingRootIndex=e,us(t)}function fh(){return O.lFrame.currentDirectiveIndex}function us(e){O.lFrame.currentDirectiveIndex=e}function hh(e){let t=O.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function ou(e){O.lFrame.currentQueryIndex=e}function Xv(e){let t=e[S];return t.type===2?t.declTNode:t.type===1?e[Ve]:null}function iu(e,t,n){if(n&4){let o=t,i=e;for(;o=o.parent,o===null&&!(n&1);)if(o=Xv(i),o===null||(i=i[hn],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=O.lFrame=ph();return r.currentTNode=t,r.lView=e,!0}function ls(e){let t=ph(),n=e[S];O.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function ph(){let e=O.lFrame,t=e===null?null:e.child;return t===null?gh(e):t}function gh(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function mh(){let e=O.lFrame;return O.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var su=mh;function ds(){let e=mh();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function yh(e){return(O.lFrame.contextLView=Yf(e,O.lFrame.contextLView))[Y]}function wt(){return O.lFrame.selectedIndex}function zt(e){O.lFrame.selectedIndex=e}function au(){let e=O.lFrame;return ho(e.tView,e.selectedIndex)}function vh(){return O.lFrame.currentNamespace}var Dh=!0;function fs(){return Dh}function hs(e){Dh=e}function Ec(e,t=null,n=null,r){let o=cu(e,t,n,r);return o.resolveInjectorInitializers(),o}function cu(e,t=null,n=null,r,o=new Set){let i=[n||Me,Bf(e)];return r=r||(typeof e=="object"?void 0:Dt(e)),new un(i,t||ao(),r||null,o)}var Qe=class e{static THROW_IF_NOT_FOUND=on;static NULL=new eo;static create(t,n){if(Array.isArray(t))return Ec({name:""},n,t,"");{let r=t.name??"";return Ec({name:r},t.parent,t.providers,r)}}static \u0275prov=_({token:e,providedIn:"any",factory:()=>I(Bc)});static __NG_ELEMENT_ID__=-1},ee=new E(""),bt=(()=>{class e{static __NG_ELEMENT_ID__=eD;static __NG_ENV_ID__=n=>n}return e})(),Cc=class extends bt{_lView;constructor(t){super(),this._lView=t}get destroyed(){return vn(this._lView)}onDestroy(t){let n=this._lView;return Jc(n,t),()=>Qf(n,t)}};function eD(){return new Cc(z())}var Eh=!1,It=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new ue(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new P(n=>{n.next(!1),n.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=_({token:e,providedIn:"root",factory:()=>new e})}return e})(),_c=class extends se{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,zf()&&(this.destroyRef=p(bt,{optional:!0})??void 0,this.pendingTasks=p(It,{optional:!0})??void 0)}emit(t){let n=b(null);try{super.next(t)}finally{b(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof ce&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},oe=_c;function Xi(...e){}function uu(e){let t,n;function r(){e=Xi;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function lu(e){return queueMicrotask(()=>e()),()=>{e=Xi}}var du="isAngularZone",to=du+"_ID",tD=0,be=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new oe(!1);onMicrotaskEmpty=new oe(!1);onStable=new oe(!1);onError=new oe(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Eh}=t;if(typeof Zone>"u")throw new D(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,oD(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(du)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new D(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new D(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,nD,Xi,Xi);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},nD={};function fu(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function rD(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){uu(()=>{e.callbackScheduled=!1,wc(e),e.isCheckStableRunning=!0,fu(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),wc(e)}function oD(e){let t=()=>{rD(e)},n=tD++;e._inner=e._inner.fork({name:"angular",properties:{[du]:!0,[to]:n,[to+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(iD(c))return r.invokeTask(i,s,a,c);try{return Af(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Nf(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return Af(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!sD(c)&&t(),Nf(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,wc(e),fu(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function wc(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Af(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Nf(e){e._nesting--,fu(e)}var no=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new oe;onMicrotaskEmpty=new oe;onStable=new oe;onError=new oe;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function iD(e){return Ch(e,"__ignore_ng_zone__")}function sD(e){return Ch(e,"__scheduler_tick__")}function Ch(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var Et=class{_console=console;handleError(t){this._console.error("ERROR",t)}},Xe=new E("",{factory:()=>{let e=p(be),t=p(X),n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(Et),n.handleError(r))})}}}),_h={provide:fn,useValue:()=>{let e=p(Et,{optional:!0})},multi:!0},aD=new E("",{factory:()=>{let e=p(ee).defaultView;if(!e)return;let t=p(Xe),n=i=>{t(i.reason),i.preventDefault()},r=i=>{i.error?t(i.error):t(new Error(i.message,{cause:i})),i.preventDefault()},o=()=>{e.addEventListener("unhandledrejection",n),e.addEventListener("error",r)};typeof Zone<"u"?Zone.root.run(o):o(),p(bt).onDestroy(()=>{e.removeEventListener("error",r),e.removeEventListener("unhandledrejection",n)})}});function hu(){return Bt([jf(()=>void p(aD))])}function q(e,t){let[n,r,o]=Qa(e,t?.equal),i=n,s=i[ve];return i.set=r,i.update=o,i.asReadonly=wh.bind(i),i}function wh(){let e=this[ve];if(e.readonlyFn===void 0){let t=()=>this();t[ve]=e,e.readonlyFn=t}return e.readonlyFn}var ln=class{},mo=new E("",{factory:()=>!0});var pu=new E(""),ps=(()=>{class e{internalPendingTasks=p(It);scheduler=p(ln);errorHandler=p(Xe);add(){let n=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(n))}}run(n){let r=this.add();n().catch(this.errorHandler).finally(r)}static \u0275prov=_({token:e,providedIn:"root",factory:()=>new e})}return e})(),gu=(()=>{class e{static \u0275prov=_({token:e,providedIn:"root",factory:()=>new bc})}return e})(),bc=class{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t)}schedule(t){t.dirty&&this.dirtyEffectCount++}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),t.dirty&&this.dirtyEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||r.add(t)}flush(){for(;this.dirtyEffectCount>0;){let t=!1;for(let[n,r]of this.queues)n===null?t||=this.flushQueue(r):t||=n.run(()=>this.flushQueue(r));t||(this.dirtyEffectCount=0)}}flushQueue(t){let n=!1;for(let r of t)r.dirty&&(this.dirtyEffectCount--,n=!0,r.run());return n}},Ic=class{[ve];constructor(t){this[ve]=t}destroy(){this[ve].destroy()}};function ye(e){return Ka(e)}function Io(e){return{toString:e}.toString()}function yD(e){return typeof e=="function"}function ep(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var Ds=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}},fr=(()=>{let e=()=>tp;return e.ngInherit=!0,e})();function tp(e){return e.type.prototype.ngOnChanges&&(e.setInput=DD),vD}function vD(){let e=rp(this),t=e?.current;if(t){let n=e.previous;if(n===jt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function DD(e,t,n,r,o){let i=this.declaredInputs[r],s=rp(e)||ED(e,{previous:jt,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new Ds(u&&u.currentValue,n,c===jt),ep(e,t,o,n)}var np="__ngSimpleChanges__";function rp(e){return e[np]||null}function ED(e,t){return e[np]=t}var bh=[];var G=function(e,t=null,n){for(let r=0;r<bh.length;r++){let o=bh[r];o(e,t,n)}},j=(function(e){return e[e.TemplateCreateStart=0]="TemplateCreateStart",e[e.TemplateCreateEnd=1]="TemplateCreateEnd",e[e.TemplateUpdateStart=2]="TemplateUpdateStart",e[e.TemplateUpdateEnd=3]="TemplateUpdateEnd",e[e.LifecycleHookStart=4]="LifecycleHookStart",e[e.LifecycleHookEnd=5]="LifecycleHookEnd",e[e.OutputStart=6]="OutputStart",e[e.OutputEnd=7]="OutputEnd",e[e.BootstrapApplicationStart=8]="BootstrapApplicationStart",e[e.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",e[e.BootstrapComponentStart=10]="BootstrapComponentStart",e[e.BootstrapComponentEnd=11]="BootstrapComponentEnd",e[e.ChangeDetectionStart=12]="ChangeDetectionStart",e[e.ChangeDetectionEnd=13]="ChangeDetectionEnd",e[e.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",e[e.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",e[e.AfterRenderHooksStart=16]="AfterRenderHooksStart",e[e.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",e[e.ComponentStart=18]="ComponentStart",e[e.ComponentEnd=19]="ComponentEnd",e[e.DeferBlockStateStart=20]="DeferBlockStateStart",e[e.DeferBlockStateEnd=21]="DeferBlockStateEnd",e[e.DynamicComponentStart=22]="DynamicComponentStart",e[e.DynamicComponentEnd=23]="DynamicComponentEnd",e[e.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",e[e.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",e})(j||{});function CD(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=tp(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function _D(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:u,ngOnDestroy:l}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),u&&((e.viewHooks??=[]).push(n,u),(e.viewCheckHooks??=[]).push(n,u)),l!=null&&(e.destroyHooks??=[]).push(n,l)}}function ms(e,t,n){op(e,t,3,n)}function ys(e,t,n,r){(e[M]&3)===n&&op(e,t,n,r)}function mu(e,t){let n=e[M];(n&3)===t&&(n&=16383,n+=1,e[M]=n)}function op(e,t,n,r){let o=r!==void 0?e[gn]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[gn]+=65536),(a<i||i==-1)&&(wD(e,n,t,c),e[gn]=(e[gn]&4294901760)+c+2),c++}function Ih(e,t){G(j.LifecycleHookStart,e,t);let n=b(null);try{t.call(e)}finally{b(n),G(j.LifecycleHookEnd,e,t)}}function wD(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[M]>>14<e[gn]>>16&&(e[M]&3)===t&&(e[M]+=16384,Ih(a,i)):Ih(a,i)}var ar=-1,En=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,o){this.factory=t,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r}};function bD(e){return(e.flags&8)!==0}function ID(e){return(e.flags&16)!==0}function SD(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{let i=o,s=n[++r];MD(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function TD(e){return e===3||e===4||e===6}function MD(e){return e.charCodeAt(0)===64}function Do(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?Sh(e,n,o,null,t[++r]):Sh(e,n,o,null,null))}}return e}function Sh(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),o!==null&&e.splice(i++,0,o)}function ip(e){return e!==ar}function Es(e){return e&32767}function AD(e){return e>>16}function Cs(e,t){let n=AD(e),r=t;for(;n>0;)r=r[hn],n--;return r}var Tu=!0;function Th(e){let t=Tu;return Tu=e,t}var ND=256,sp=ND-1,ap=5,RD=0,dt={};function xD(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(dn)&&(r=n[dn]),r==null&&(r=n[dn]=RD++);let o=r&sp,i=1<<o;t.data[e+(o>>ap)]|=i}function _s(e,t){let n=cp(e,t);if(n!==-1)return n;let r=t[S];r.firstCreatePass&&(e.injectorIndex=t.length,yu(r.data,e),yu(t,null),yu(r.blueprint,null));let o=Yu(e,t),i=e.injectorIndex;if(ip(o)){let s=Es(o),a=Cs(o,t),c=a[S].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function yu(e,t){e.push(0,0,0,0,0,0,0,0,t)}function cp(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Yu(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=hp(o),r===null)return ar;if(n++,o=o[hn],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return ar}function Mu(e,t,n){xD(e,t,n)}function up(e,t,n){if(n&8||e!==void 0)return e;ts(t,"NodeInjector")}function lp(e,t,n,r){if(n&8&&r===void 0&&(r=null),(n&3)===0){let o=e[Ct],i=Te(void 0);try{return o?o.get(t,r,n&8):Vc(t,r,n&8)}finally{Te(i)}}return up(r,t,n)}function dp(e,t,n,r=0,o){if(e!==null){if(t[M]&2048&&!(r&2)){let s=LD(e,t,n,r,dt);if(s!==dt)return s}let i=fp(e,t,n,r,dt);if(i!==dt)return i}return lp(t,n,r,o)}function fp(e,t,n,r,o){let i=PD(n);if(typeof i=="function"){if(!iu(t,e,r))return r&1?up(o,n,r):lp(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&8))ts(n);else return s}finally{su()}}else if(typeof i=="number"){let s=null,a=cp(e,t),c=ar,u=r&1?t[Ae][Ve]:null;for((a===-1||r&4)&&(c=a===-1?Yu(e,t):t[a+8],c===ar||!Ah(r,!1)?a=-1:(s=t[S],a=Es(c),t=Cs(c,t)));a!==-1;){let l=t[S];if(Mh(i,a,l.data)){let d=OD(a,t,n,s,r,u);if(d!==dt)return d}c=t[a+8],c!==ar&&Ah(r,t[S].data[a+8]===u)&&Mh(i,a,t)?(s=l,a=Es(c),t=Cs(c,t)):a=-1}}return o}function OD(e,t,n,r,o,i){let s=t[S],a=s.data[e+8],c=r==null?Ht(a)&&Tu:r!=s&&(a.type&3)!==0,u=o&1&&i===a,l=kD(a,s,n,c,u);return l!==null?ws(t,s,l,a,o):dt}function kD(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,u=e.directiveEnd,l=i>>20,d=r?a:a+l,h=o?a+l:u;for(let f=d;f<h;f++){let g=s[f];if(f<c&&n===g||f>=c&&g.type===n)return f}if(o){let f=s[c];if(f&&ut(f)&&f.type===n)return c}return null}function ws(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof En){let a=i;if(a.resolving){let f=Of(s[n]);throw Lc(f)}let c=Th(a.canSeeViewProviders);a.resolving=!0;let u=s[n].type||s[n],l,d=a.injectImpl?Te(a.injectImpl):null,h=iu(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&CD(n,s[n],t)}finally{d!==null&&Te(d),Th(c),a.resolving=!1,su()}}return i}function PD(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(dn)?e[dn]:void 0;return typeof t=="number"?t>=0?t&sp:FD:t}function Mh(e,t,n){let r=1<<e;return!!(n[t+(e>>ap)]&r)}function Ah(e,t){return!(e&2)&&!(e&1&&t)}var Dn=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return dp(this._tNode,this._lView,t,sn(r),n)}};function FD(){return new Dn(Ue(),z())}function In(e){return Io(()=>{let t=e.prototype.constructor,n=t[Xr]||Au(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Xr]||Au(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Au(e){return Mc(e)?()=>{let t=Au(le(e));return t&&t()}:an(e)}function LD(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[M]&2048&&!rr(s);){let a=fp(i,s,n,r|2,dt);if(a!==dt)return a;let c=i.parent;if(!c){let u=s[qc];if(u){let l=u.get(n,dt,r);if(l!==dt)return l}c=hp(s),s=s[hn]}i=c}return o}function hp(e){let t=e[S],n=t.type;return n===2?t.declTNode:n===1?e[Ve]:null}function VD(){return Qu(Ue(),z())}function Qu(e,t){return new Sn(lt(e,t))}var Sn=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=VD}return e})();function pp(e){return(e.flags&128)===128}var Ku=(function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e})(Ku||{}),gp=new Map,jD=0;function BD(){return jD++}function UD(e){gp.set(e[co],e)}function Nu(e){gp.delete(e[co])}var Nh="__ngContext__";function cr(e,t){ct(t)?(e[Nh]=t[co],UD(t)):e[Nh]=t}function mp(e){return vp(e[nr])}function yp(e){return vp(e[Le])}function vp(e){for(;e!==null&&!Je(e);)e=e[Le];return e}var HD;function Ju(e){HD=e}var ks=new E("",{factory:()=>$D}),$D="ng";var Ps=new E(""),So=new E("",{providedIn:"platform",factory:()=>"unknown"});var Fs=new E("",{factory:()=>p(ee).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Dp="r";var Ep="di";var Cp=!1,_p=new E("",{factory:()=>Cp});var zD=(e,t,n,r)=>{};function GD(e,t,n,r){zD(e,t,n,r)}function Xu(e){return(e.flags&32)===32}var qD=()=>null;function wp(e,t,n=!1){return qD(e,t,n)}function bp(e,t){let n=e.contentQueries;if(n!==null){let r=b(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];ou(i),a.contentQueries(2,t[s],s)}}}finally{b(r)}}}function Ru(e,t,n){ou(0);let r=b(null);try{t(e,n)}finally{b(r)}}function Ip(e,t,n){if(Zc(t)){let r=b(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s)}}}finally{b(r)}}}var tt=(function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e})(tt||{});var xu=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Sc})`}};function Sp(e){return e instanceof xu?e.changingThisBreaksApplicationSecurity:e}function WD(e,t){return e.createText(t)}function ZD(e,t,n){e.setValue(t,n)}function Tp(e,t,n){return e.createElement(t,n)}function bs(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Mp(e,t,n){e.appendChild(t,n)}function Rh(e,t,n,r,o){r!==null?bs(e,t,n,r,o):Mp(e,t,n)}function Ap(e,t,n,r){e.removeChild(null,t,n,r)}function YD(e,t,n){e.setAttribute(t,"style",n)}function QD(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Np(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&SD(e,t,r),o!==null&&QD(e,t,o),i!==null&&YD(e,t,i)}function Rp(e){return e instanceof Function?e():e}function KD(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}var xp="ng-template";function JD(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&KD(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(el(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function el(e){return e.type===4&&e.value!==xp}function XD(e,t,n){let r=e.type===4&&!n?xp:e.value;return t===r}function eE(e,t,n){let r=4,o=e.attrs,i=o!==null?rE(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!et(r)&&!et(c))return!1;if(s&&et(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!XD(e,c,n)||c===""&&t.length===1){if(et(r))return!1;s=!0}}else if(r&8){if(o===null||!JD(e,o,c,n)){if(et(r))return!1;s=!0}}else{let u=t[++a],l=tE(c,o,el(e),n);if(l===-1){if(et(r))return!1;s=!0;continue}if(u!==""){let d;if(l>i?d="":d=o[l+1].toLowerCase(),r&2&&u!==d){if(et(r))return!1;s=!0}}}}return et(r)||s}function et(e){return(e&1)===0}function tE(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return oE(t,e)}function nE(e,t,n=!1){for(let r=0;r<t.length;r++)if(eE(e,t[r],n))return!0;return!1}function rE(e){for(let t=0;t<e.length;t++){let n=e[t];if(TD(n))return t}return e.length}function oE(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function xh(e,t){return e?":not("+t.trim()+")":t}function iE(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!et(s)&&(t+=xh(i,o),o=""),r=s,i=i||!et(r);n++}return o!==""&&(t+=xh(i,o)),t}function sE(e){return e.map(iE).join(",")}function aE(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else{if(!et(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var nt={};function tl(e,t,n,r,o,i,s,a,c,u,l){let d=pe+r,h=d+o,f=cE(d,h),g=typeof u=="function"?u():u;return f[S]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:h,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:g,incompleteFirstPass:!1,ssrId:l}}function cE(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:nt);return n}function uE(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=tl(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function nl(e,t,n,r,o,i,s,a,c,u,l){let d=t.blueprint.slice();return d[Ke]=o,d[M]=r|4|128|8|64|1024,(u!==null||e&&e[M]&2048)&&(d[M]|=2048),Qc(d),d[ae]=d[hn]=e,d[Y]=n,d[_t]=s||e&&e[_t],d[Z]=a||e&&e[Z],d[Ct]=c||e&&e[Ct]||null,d[Ve]=i,d[co]=BD(),d[er]=l,d[qc]=u,d[Ae]=t.type==2?e[Ae]:d,d}function lE(e,t,n){let r=lt(t,e),o=uE(n),i=e[_t].rendererFactory,s=rl(e,nl(e,o,null,Op(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function Op(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function kp(e,t,n,r){if(n===0)return-1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function rl(e,t){return e[nr]?e[Gc][Le]=t:e[nr]=t,e[Gc]=t,t}function R(e=1){Pp(Ie(),z(),wt()+e,!1)}function Pp(e,t,n,r){if(!r)if((t[M]&3)===3){let i=e.preOrderCheckHooks;i!==null&&ms(t,i,n)}else{let i=e.preOrderHooks;i!==null&&ys(t,i,0,n)}zt(n)}var Ls=(function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e})(Ls||{});function Ou(e,t,n,r){let o=b(null);try{let[i,s,a]=e.inputs[n],c=null;(s&Ls.SignalBased)!==0&&(c=t[i][ve]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):ep(t,c,i,r)}finally{b(o)}}var St=(function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e})(St||{}),dE;function ol(e,t){return dE(e,t)}var Cn=new Set,il=(function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e})(il||{}),Tn=new E(""),Oh=new Set;function Mn(e){Oh.has(e)||(Oh.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Fp=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=_({token:e,providedIn:"root",factory:()=>new e})}return e})();var Lp=new E("",{factory:()=>({queue:new Set,isScheduled:!1,scheduler:null,injector:p(X)})});function Vp(e,t,n){let r=e.get(Lp);if(Array.isArray(t))for(let o of t)r.queue.add(o),n?.detachedLeaveAnimationFns?.push(o);else r.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);r.scheduler&&r.scheduler(e)}function fE(e,t){let n=e.get(Lp);if(t.detachedLeaveAnimationFns){for(let r of t.detachedLeaveAnimationFns)n.queue.delete(r);t.detachedLeaveAnimationFns=void 0}}function hE(e,t){for(let[n,r]of t)Vp(e,r.animateFns)}function kh(e,t,n,r){let o=e?.[yn]?.enter;t!==null&&o&&o.has(n.index)&&hE(r,o)}function sr(e,t,n,r,o,i,s,a){if(o!=null){let c,u=!1;Je(o)?c=o:ct(o)&&(u=!0,o=o[Ke]);let l=je(o);e===0&&r!==null?(kh(a,r,i,n),s==null?Mp(t,r,l):bs(t,r,l,s||null,!0)):e===1&&r!==null?(kh(a,r,i,n),bs(t,r,l,s||null,!0)):e===2?Ph(a,i,n,d=>{Ap(t,l,u,d)}):e===3&&Ph(a,i,n,()=>{t.destroyNode(l)}),c!=null&&SE(t,e,n,c,i,r,s)}}function pE(e,t){jp(e,t),t[Ke]=null,t[Ve]=null}function gE(e,t,n,r,o,i){r[Ke]=o,r[Ve]=t,js(e,r,n,1,o,i)}function jp(e,t){t[_t].changeDetectionScheduler?.notify(9),js(e,t,t[Z],2,null,null)}function mE(e){let t=e[nr];if(!t)return vu(e[S],e);for(;t;){let n=null;if(ct(t))n=t[nr];else{let r=t[Q];r&&(n=r)}if(!n){for(;t&&!t[Le]&&t!==e;)ct(t)&&vu(t[S],t),t=t[ae];t===null&&(t=e),ct(t)&&vu(t[S],t),n=t&&t[Le]}t=n}}function sl(e,t){let n=e[fo],r=n.indexOf(t);n.splice(r,1)}function Vs(e,t){if(vn(t))return;let n=t[Z];n.destroyNode&&js(e,t,n,3,null,null),mE(t)}function vu(e,t){if(vn(t))return;let n=b(null);try{t[M]&=-129,t[M]|=256,t[Ne]&&zr(t[Ne]),DE(e,t),vE(e,t),t[S].type===1&&t[Z].destroy();let r=t[pn];if(r!==null&&Je(t[ae])){r!==t[ae]&&sl(r,t);let o=t[mn];o!==null&&o.detachView(e)}Nu(t)}finally{b(n)}}function Ph(e,t,n,r){let o=e?.[yn];if(o==null||o.leave==null||!o.leave.has(t.index))return r(!1);e&&Cn.add(e),Vp(n,()=>{if(o.leave&&o.leave.has(t.index)){let s=o.leave.get(t.index),a=[];if(s){for(let c=0;c<s.animateFns.length;c++){let u=s.animateFns[c],{promise:l}=u();a.push(l)}o.detachedLeaveAnimationFns=void 0}o.running=Promise.allSettled(a),yE(e,r)}else e&&Cn.delete(e),r(!1)},o)}function yE(e,t){let n=e[yn]?.running;if(n){n.then(()=>{e[yn].running=void 0,Cn.delete(e),t(!0)});return}t(!1)}function vE(e,t){let n=e.cleanup,r=t[tr];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[tr]=null);let o=t[vt];if(o!==null){t[vt]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[uo];if(i!==null){t[uo]=null;for(let s of i)s.destroy()}}function DE(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof En)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];G(j.LifecycleHookStart,a,c);try{c.call(a)}finally{G(j.LifecycleHookEnd,a,c)}}else{G(j.LifecycleHookStart,o,i);try{i.call(o)}finally{G(j.LifecycleHookEnd,o,i)}}}}}function EE(e,t,n){return CE(e,t.parent,n)}function CE(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[Ke];if(Ht(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===tt.None||o===tt.Emulated)return null}return lt(r,n)}function _E(e,t,n){return bE(e,t,n)}function wE(e,t,n){return e.type&40?lt(e,n):null}var bE=wE,Fh;function al(e,t,n,r){let o=EE(e,r,t),i=t[Z],s=r.parent||t[Ve],a=_E(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)Rh(i,o,n[c],a,!1);else Rh(i,o,n,a,!1);Fh!==void 0&&Fh(i,r,t,n,o)}function yo(e,t){if(t!==null){let n=t.type;if(n&3)return lt(t,e);if(n&4)return ku(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return yo(e,r);{let o=e[t.index];return Je(o)?ku(-1,o):je(o)}}else{if(n&128)return yo(e,t.next);if(n&32)return ol(t,e)()||je(e[t.index]);{let r=Bp(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=Ft(e[Ae]);return yo(o,r)}else return yo(e,t.next)}}}return null}function Bp(e,t){if(t!==null){let r=e[Ae][Ve],o=t.projection;return r.projection[o]}return null}function ku(e,t){let n=Q+e+1;if(n<t.length){let r=t[n],o=r[S].firstChild;if(o!==null)return yo(r,o)}return t[Ut]}function cl(e,t,n,r,o,i,s){for(;n!=null;){let a=r[Ct];if(n.type===128){n=n.next;continue}let c=r[n.index],u=n.type;if(s&&t===0&&(c&&cr(je(c),r),n.flags|=2),!Xu(n))if(u&8)cl(e,t,n.child,r,o,i,!1),sr(t,e,a,o,c,n,i,r);else if(u&32){let l=ol(n,r),d;for(;d=l();)sr(t,e,a,o,d,n,i,r);sr(t,e,a,o,c,n,i,r)}else u&16?IE(e,t,r,n,o,i):sr(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next}}function js(e,t,n,r,o,i){cl(n,r,e.firstChild,t,o,i,!1)}function IE(e,t,n,r,o,i){let s=n[Ae],c=s[Ve].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];sr(t,e,n[Ct],o,l,r,i,n)}else{let u=c,l=s[ae];pp(r)&&(u.flags|=128),cl(e,t,u,l,o,i,!0)}}function SE(e,t,n,r,o,i,s){let a=r[Ut],c=je(r);a!==c&&sr(t,e,n,i,a,o,s);for(let u=Q;u<r.length;u++){let l=r[u];js(l[S],l,e,t,i,a)}}function TE(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:St.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=St.Important),e.setStyle(n,r,o,i))}}function Up(e,t,n,r,o){let i=wt(),s=r&2;try{zt(-1),s&&t.length>pe&&Pp(e,t,pe,!1);let a=s?j.TemplateUpdateStart:j.TemplateCreateStart;G(a,o,n),n(r,o)}finally{zt(i);let a=s?j.TemplateUpdateEnd:j.TemplateCreateEnd;G(a,o,n)}}function Hp(e,t,n){kE(e,t,n),(n.flags&64)===64&&PE(e,t,n)}function $p(e,t,n=lt){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a}}}function ME(e,t,n,r){let i=r.get(_p,Cp)||n===tt.ShadowDom||n===tt.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);return AE(s),s}function AE(e){NE(e)}var NE=()=>null;function RE(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function zp(e,t,n,r,o,i){let s=t[S];if(ul(e,s,t,n,r)){Ht(e)&&OE(t,e.index);return}e.type&3&&(n=RE(n)),xE(e,t,n,r,o,i)}function xE(e,t,n,r,o,i){if(e.type&3){let s=lt(e,t);r=i!=null?i(r,e.value||"",n):r,o.setProperty(s,n,r)}else e.type&12}function OE(e,t){let n=Be(t,e);n[M]&16||(n[M]|=64)}function kE(e,t,n){let r=n.directiveStart,o=n.directiveEnd;Ht(n)&&lE(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||_s(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=ws(t,e,s,n);if(cr(c,t),i!==null&&VE(t,s-r,c,a,n,i),ut(a)){let u=Be(n.index,t);u[Y]=ws(t,e,s,n)}}}function PE(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=fh();try{zt(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];us(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&FE(c,u)}}finally{zt(-1),us(s)}}function FE(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function LE(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];nE(t,i.selectors,!1)&&(r??=[],ut(i)?r.unshift(i):r.push(i))}return r}function VE(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],u=s[a+1];Ou(r,n,c,u)}}function jE(e,t,n,r,o){let i=pe+n,s=t[S],a=o(s,t,e,r,n);t[i]=a,or(e,!0);let c=e.type===2;return c?(Np(t[Z],a,e),(Xf()===0||ss(e))&&cr(a,t),eh()):cr(a,t),fs()&&(!c||!Xu(e))&&al(s,t,a,e),e}function BE(e){let t=e;return eu()?ah():(t=t.parent,or(t,!1)),t}function UE(e,t){let n=e[Ct];if(!n)return;let r;try{r=n.get(Xe,null)}catch{r=null}r?.(t)}function ul(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let u=s[c],l=s[c+1],d=t.data[u];Ou(d,n[u],l,o),a=!0}if(i)for(let c of i){let u=n[c],l=t.data[c];Ou(l,u,r,o),a=!0}return a}function HE(e,t){let n=Be(t,e),r=n[S];$E(r,n);let o=n[Ke];o!==null&&n[er]===null&&(n[er]=wp(o,n[Ct])),G(j.ComponentStart);try{ll(r,n,n[Y])}finally{G(j.ComponentEnd,n[Y])}}function $E(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function ll(e,t,n){ls(t);try{let r=e.viewQuery;r!==null&&Ru(1,r,n);let o=e.template;o!==null&&Up(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[mn]?.finishViewCreation(e),e.staticContentQueries&&bp(e,t),e.staticViewQueries&&Ru(2,e.viewQuery,n);let i=e.components;i!==null&&zE(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[M]&=-5,ds()}}function zE(e,t){for(let n=0;n<t.length;n++)HE(e,t[n])}function dl(e,t,n,r){let o=b(null);try{let i=t.tView,a=e[M]&4096?4096:16,c=nl(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=e[t.index];c[pn]=u;let l=e[mn];return l!==null&&(c[mn]=l.createEmbeddedView(i)),ll(i,c,n),c}finally{b(o)}}function Eo(e,t){return!t||t.firstChild===null||pp(e)}function Co(e,t,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(je(i)),Je(i)&&Gp(i,r);let s=n.type;if(s&8)Co(e,t,n.child,r);else if(s&32){let a=ol(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=Bp(t,n);if(Array.isArray(a))r.push(...a);else{let c=Ft(t[Ae]);Co(c[S],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function Gp(e,t){for(let n=Q;n<e.length;n++){let r=e[n],o=r[S].firstChild;o!==null&&Co(r[S],r,o,t)}e[Ut]!==e[Ke]&&t.push(e[Ut])}function qp(e){if(e[is]!==null){for(let t of e[is])t.impl.addSequence(t);e[is].length=0}}var Wp=[];function GE(e){return e[Ne]??qE(e)}function qE(e){let t=Wp.pop()??Object.create(ZE);return t.lView=e,t}function WE(e){e.lView[Ne]!==e&&(e.lView=null,Wp.push(e))}var ZE=k(m({},Ur),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{go(e.lView)},consumerOnSignalRead(){this.lView[Ne]=this}});function YE(e){let t=e[Ne]??Object.create(QE);return t.lView=e,t}var QE=k(m({},Ur),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=Ft(e.lView);for(;t&&!Zp(t[S]);)t=Ft(t);t&&Kc(t)},consumerOnSignalRead(){this.lView[Ne]=this}});function Zp(e){return e.type!==2}function Yp(e){if(e[uo]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[uo])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[M]&8192)}}var KE=100;function Qp(e,t=0){let r=e[_t].rendererFactory,o=!1;o||r.begin?.();try{JE(e,t)}finally{o||r.end?.()}}function JE(e,t){let n=tu();try{nu(!0),Pu(e,t);let r=0;for(;po(e);){if(r===KE)throw new D(103,!1);r++,Pu(e,1)}}finally{nu(n)}}function XE(e,t,n,r){if(vn(t))return;let o=t[M],i=!1,s=!1;ls(t);let a=!0,c=null,u=null;i||(Zp(e)?(u=GE(t),c=$r(u)):Ci()===null?(a=!1,u=YE(t),c=$r(u)):t[Ne]&&(zr(t[Ne]),t[Ne]=null));try{Qc(t),uh(e.bindingStartIndex),n!==null&&Up(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let f=e.preOrderCheckHooks;f!==null&&ms(t,f,null)}else{let f=e.preOrderHooks;f!==null&&ys(t,f,0,null),mu(t,0)}if(s||eC(t),Yp(t),Kp(t,0),e.contentQueries!==null&&bp(e,t),!i)if(l){let f=e.contentCheckHooks;f!==null&&ms(t,f)}else{let f=e.contentHooks;f!==null&&ys(t,f,1),mu(t,1)}nC(e,t);let d=e.components;d!==null&&Xp(t,d,0);let h=e.viewQuery;if(h!==null&&Ru(2,h,r),!i)if(l){let f=e.viewCheckHooks;f!==null&&ms(t,f)}else{let f=e.viewHooks;f!==null&&ys(t,f,2),mu(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[os]){for(let f of t[os])f();t[os]=null}i||(qp(t),t[M]&=-73)}catch(l){throw i||go(t),l}finally{u!==null&&(_i(u,c),a&&WE(u)),ds()}}function Kp(e,t){for(let n=mp(e);n!==null;n=yp(n))for(let r=Q;r<n.length;r++){let o=n[r];Jp(o,t)}}function eC(e){for(let t=mp(e);t!==null;t=yp(t)){if(!(t[M]&2))continue;let n=t[fo];for(let r=0;r<n.length;r++){let o=n[r];Kc(o)}}}function tC(e,t,n){G(j.ComponentStart);let r=Be(t,e);try{Jp(r,n)}finally{G(j.ComponentEnd,r[Y])}}function Jp(e,t){as(e)&&Pu(e,t)}function Pu(e,t){let r=e[S],o=e[M],i=e[Ne],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&wi(i)),s||=!1,i&&(i.dirty=!1),e[M]&=-9217,s)XE(r,e,r.template,e[Y]);else if(o&8192){let a=b(null);try{Yp(e),Kp(e,1);let c=r.components;c!==null&&Xp(e,c,1),qp(e)}finally{b(a)}}}function Xp(e,t,n){for(let r=0;r<t.length;r++)tC(e,t[r],n)}function nC(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)zt(~o);else{let i=o,s=n[++r],a=n[++r];dh(s,i);let c=t[i];G(j.HostBindingsUpdateStart,c);try{a(2,c)}finally{G(j.HostBindingsUpdateEnd,c)}}}}finally{zt(-1)}}function fl(e,t){let n=tu()?64:1088;for(e[_t].changeDetectionScheduler?.notify(t);e;){e[M]|=n;let r=Ft(e);if(rr(e)&&!r)return e;e=r}return null}function eg(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function tg(e,t){let n=Q+t;if(n<e.length)return e[n]}function Bs(e,t,n,r=!0){let o=t[S];if(rC(o,t,e,n),r){let s=ku(n,e),a=t[Z],c=a.parentNode(e[Ut]);c!==null&&gE(o,e[Ve],a,t,c,s)}let i=t[er];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function ng(e,t){let n=_o(e,t);return n!==void 0&&Vs(n[S],n),n}function _o(e,t){if(e.length<=Q)return;let n=Q+t,r=e[n];if(r){let o=r[pn];o!==null&&o!==e&&sl(o,r),t>0&&(e[n-1][Le]=r[Le]);let i=io(e,Q+t);pE(r[S],r);let s=i[mn];s!==null&&s.detachView(i[S]),r[ae]=null,r[Le]=null,r[M]&=-129}return r}function rC(e,t,n,r){let o=Q+r,i=n.length;r>0&&(n[o-1][Le]=t),r<i-Q?(t[Le]=n[o],jc(n,Q+r,t)):(n.push(t),t[Le]=null),t[ae]=n;let s=t[pn];s!==null&&n!==s&&rg(s,t);let a=t[mn];a!==null&&a.insertView(e),cs(t),t[M]|=128}function rg(e,t){let n=e[fo],r=t[ae];if(ct(r))e[M]|=2;else{let o=r[ae][Ae];t[Ae]!==o&&(e[M]|=2)}n===null?e[fo]=[t]:n.push(t)}var _n=class{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){let t=this._lView,n=t[S];return Co(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[Y]}set context(t){this._lView[Y]=t}get destroyed(){return vn(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[ae];if(Je(t)){let n=t[lo],r=n?n.indexOf(this):-1;r>-1&&(_o(t,r),io(n,r))}this._attachedToViewContainer=!1}Vs(this._lView[S],this._lView)}onDestroy(t){Jc(this._lView,t)}markForCheck(){fl(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[M]&=-129}reattach(){cs(this._lView),this._lView[M]|=128}detectChanges(){this._lView[M]|=1024,Qp(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new D(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=rr(this._lView),n=this._lView[pn];n!==null&&!t&&sl(n,this._lView),jp(this._lView[S],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new D(902,!1);this._appRef=t;let n=rr(this._lView),r=this._lView[pn];r!==null&&!n&&rg(r,this._lView),cs(this._lView)}};function hl(e,t,n,r,o){let i=e.data[t];if(i===null)i=oC(e,t,n,r,o),lh()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=sh();i.injectorIndex=s===null?-1:s.injectorIndex}return or(i,!0),i}function oC(e,t,n,r,o){let i=Xc(),s=eu(),a=s?i:i&&i.parent,c=e.data[t]=sC(e,a,n,t,r,o);return iC(e,c,i,s),c}function iC(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function sC(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return rh()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,fieldIndex:-1,customControlIndex:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function aC(e){let t=e[Wc]??[],r=e[ae][Z],o=[];for(let i of t)i.data[Ep]!==void 0?o.push(i):cC(i,r);e[Wc]=o}function cC(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[Dp];for(;n<o;){let i=r.nextSibling;Ap(t,r,!1),r=i,n++}}}var uC=()=>null,lC=()=>null;function Fu(e,t){return uC(e,t)}function og(e,t,n){return lC(e,t,n)}var ig=class{},Us=class{},Lu=class{resolveComponentFactory(t){throw new D(917,!1)}},To=class{static NULL=new Lu},wn=class{},hr=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>dC()}return e})();function dC(){let e=z(),t=Ue(),n=Be(t.index,e);return(ct(n)?n:e)[Z]}var sg=(()=>{class e{static \u0275prov=_({token:e,providedIn:"root",factory:()=>null})}return e})();var vs={},Vu=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){let o=this.injector.get(t,vs,r);return o!==vs||n===vs?o:this.parentInjector.get(t,n,r)}};function Lh(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=Tc(o,a);else if(i==2){let c=a,u=t[++s];r=Tc(r,c+": "+u+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function te(e,t=0){let n=z();if(n===null)return I(e,t);let r=Ue();return dp(r,n,le(e),t)}function fC(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a=s,c=null,u=null;for(let l of s)if(l.resolveHostDirectives!==null){[a,c,u]=l.resolveHostDirectives(s);break}gC(e,t,n,a,i,c,u)}i!==null&&r!==null&&hC(n,r,i)}function hC(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new D(-301,!1);r.push(t[o],i)}}function pC(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function gC(e,t,n,r,o,i,s){let a=r.length,c=null;for(let h=0;h<a;h++){let f=r[h];c===null&&ut(f)&&(c=f,pC(e,n,h)),Mu(_s(n,t),e,f.type)}CC(n,e.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let h=0;h<a;h++){let f=r[h];f.providersResolver&&f.providersResolver(f)}let u=!1,l=!1,d=kp(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let h=0;h<a;h++){let f=r[h];if(n.mergedAttrs=Do(n.mergedAttrs,f.hostAttrs),yC(e,n,t,d,f),EC(d,f,o),s!==null&&s.has(f)){let[C,v]=s.get(f);n.directiveToIndex.set(f.type,[d,C+n.directiveStart,v+n.directiveStart])}else(i===null||!i.has(f))&&n.directiveToIndex.set(f.type,d);f.contentQueries!==null&&(n.flags|=4),(f.hostBindings!==null||f.hostAttrs!==null||f.hostVars!==0)&&(n.flags|=64);let g=f.type.prototype;!u&&(g.ngOnChanges||g.ngOnInit||g.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=!0),!l&&(g.ngOnChanges||g.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),l=!0),d++}mC(e,n,i)}function mC(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))Vh(0,t,o,r),Vh(1,t,o,r),Bh(t,r,!1);else{let i=n.get(o);jh(0,t,i,r),jh(1,t,i,r),Bh(t,r,!0)}}}function Vh(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),ag(t,i)}}function jh(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),ag(t,s)}}function ag(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function Bh(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||el(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&o.hasOwnProperty(c)){let u=o[c];for(let l of u)if(l===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let u=i[c];for(let l=0;l<u.length;l+=2)if(u[l]===t){s??=[],s.push(u[l+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function yC(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=an(o.type,!0)),s=new En(i,ut(o),te,null);e.blueprint[r]=s,n[r]=s,vC(e,t,r,kp(e,n,o.hostVars,nt),o)}function vC(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;DC(s)!=a&&s.push(a),s.push(n,r,i)}}function DC(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function EC(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;ut(t)&&(n[""]=e)}}function CC(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function cg(e,t,n,r,o,i,s,a){let c=t[S],u=c.consts,l=$t(u,s),d=hl(c,e,n,r,l);return i&&fC(c,t,d,$t(u,a),o),d.mergedAttrs=Do(d.mergedAttrs,d.attrs),d.attrs!==null&&Lh(d,d.attrs,!1),d.mergedAttrs!==null&&Lh(d,d.mergedAttrs,!0),c.queries!==null&&c.queries.elementStart(c,d),d}function ug(e,t){_D(e,t),Zc(t)&&e.queries.elementEnd(t)}function Gt(e,t,n){if(n===nt)return!1;let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function _C(e,t,n,r){let o=Gt(e,t,n);return Gt(e,t+1,r)||o}function Du(e,t,n){return function r(o){let i=Ht(e)?Be(e.index,t):t;fl(i,5);let s=t[Y],a=Uh(t,s,n,o),c=r.__ngNextListenerFn__;for(;c;)a=Uh(t,s,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function Uh(e,t,n,r){let o=b(null);try{return G(j.OutputStart,t,n),n(r)!==!1}catch(i){return UE(e,i),!1}finally{G(j.OutputEnd,t,n),b(o)}}function wC(e,t,n,r,o,i,s,a){let c=ss(e),u=!1,l=null;if(!r&&c&&(l=IC(t,n,i,e.index)),l!==null){let d=l.__ngLastListenerFn__||l;d.__ngNextListenerFn__=s,l.__ngLastListenerFn__=s,u=!0}else{let d=lt(e,n),h=r?r(d):d;GD(n,h,i,a);let f=o.listen(h,i,a);if(!bC(i)){let g=r?C=>r(je(C[e.index])):e.index;lg(g,t,n,i,a,f,!1)}}return u}function bC(e){return e.startsWith("animation")||e.startsWith("transition")}function IC(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=t[tr],c=o[i+2];return a&&a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function lg(e,t,n,r,o,i,s){let a=t.firstCreatePass?Jf(t):null,c=Kf(n),u=c.length;c.push(o,i),a&&a.push(r,e,u,(u+1)*(s?-1:1))}function Hh(e,t,n,r,o,i){let s=t[n],a=t[S],u=a.data[n].outputs[r],d=s[u].subscribe(i);lg(e.index,a,t,o,i,d,!0)}var ju=Symbol("BINDING");var Is=class extends To{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=Vt(t);return new ur(n,this.ngModule)}};function SC(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&Ls.SignalBased)!==0};return o&&(i.transform=o),i})}function TC(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function MC(e,t,n){let r=t instanceof X?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Vu(n,r):n}function AC(e){let t=e.get(wn,null);if(t===null)throw new D(407,!1);let n=e.get(sg,null),r=e.get(ln,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r,ngReflect:!1}}function NC(e,t){let n=dg(e);return Tp(t,n,n==="svg"?qf:n==="math"?Wf:null)}function dg(e){return(e.selectors[0][0]||"div").toLowerCase()}var ur=class extends Us{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=SC(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=TC(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=sE(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o,i,s){G(j.DynamicComponentStart);let a=b(null);try{let c=this.componentDef,u=RC(r,c,s,i),l=MC(c,o||this.ngModule,t),d=AC(l),h=d.rendererFactory.createRenderer(null,c),f=r?ME(h,r,c.encapsulation,l):NC(c,h),g=s?.some($h)||i?.some(y=>typeof y!="function"&&y.bindings.some($h)),C=nl(null,u,null,512|Op(c),null,null,d,h,l,null,wp(f,l,!0));C[pe]=f,ls(C);let v=null;try{let y=cg(pe,C,2,"#host",()=>u.directiveRegistry,!0,0);Np(h,f,y),cr(f,C),Hp(u,C,y),Ip(u,y,C),ug(u,y),n!==void 0&&OC(y,this.ngContentSelectors,n),v=Be(y.index,C),C[Y]=v[Y],ll(u,C,null)}catch(y){throw v!==null&&Nu(v),Nu(C),y}finally{G(j.DynamicComponentEnd),ds()}return new Ss(this.componentType,C,!!g)}finally{b(a)}}};function RC(e,t,n,r){let o=e?["ng-version","21.0.4"]:aE(t.selectors[0]),i=null,s=null,a=0;if(n)for(let l of n)a+=l[ju].requiredVars,l.create&&(l.targetIdx=0,(i??=[]).push(l)),l.update&&(l.targetIdx=0,(s??=[]).push(l));if(r)for(let l=0;l<r.length;l++){let d=r[l];if(typeof d!="function")for(let h of d.bindings){a+=h[ju].requiredVars;let f=l+1;h.create&&(h.targetIdx=f,(i??=[]).push(h)),h.update&&(h.targetIdx=f,(s??=[]).push(h))}}let c=[t];if(r)for(let l of r){let d=typeof l=="function"?l:l.type,h=Fc(d);c.push(h)}return tl(0,null,xC(i,s),1,a,c,null,null,null,[o],null)}function xC(e,t){return!e&&!t?null:n=>{if(n&1&&e)for(let r of e)r.create();if(n&2&&t)for(let r of t)r.update()}}function $h(e){let t=e[ju].kind;return t==="input"||t==="twoWay"}var Ss=class extends ig{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=ho(n[S],pe),this.location=Qu(this._tNode,n),this.instance=Be(this._tNode.index,n)[Y],this.hostView=this.changeDetectorRef=new _n(n,void 0),this.componentType=t}setInput(t,n){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView,i=ul(r,o[S],o,t,n);this.previousInputValues.set(t,n);let s=Be(r.index,o);fl(s,1)}get injector(){return new Dn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function OC(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var Mo=(()=>{class e{static __NG_ELEMENT_ID__=kC}return e})();function kC(){let e=Ue();return FC(e,z())}var PC=Mo,fg=class extends PC{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Qu(this._hostTNode,this._hostLView)}get injector(){return new Dn(this._hostTNode,this._hostLView)}get parentInjector(){let t=Yu(this._hostTNode,this._hostLView);if(ip(t)){let n=Cs(t,this._hostLView),r=Es(t),o=n[S].data[r+8];return new Dn(o,n)}else return new Dn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=zh(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-Q}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Fu(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Eo(this._hostTNode,s)),a}createComponent(t,n,r,o,i,s,a){let c=t&&!yD(t),u;if(c)u=n;else{let v=n||{};u=v.index,r=v.injector,o=v.projectableNodes,i=v.environmentInjector||v.ngModuleRef,s=v.directives,a=v.bindings}let l=c?t:new ur(Vt(t)),d=r||this.parentInjector;if(!i&&l.ngModule==null){let y=(c?d:this.parentInjector).get(X,null);y&&(i=y)}let h=Vt(l.componentType??{}),f=Fu(this._lContainer,h?.id??null),g=f?.firstChild??null,C=l.create(d,o,g,i,s,a);return this.insertImpl(C.hostView,u,Eo(this._hostTNode,f)),C}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(Zf(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[ae],u=new fg(c,c[Ve],c[ae]);u.detach(u.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return Bs(s,o,i,r),t.attachToViewContainerRef(),jc(Eu(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=zh(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=_o(this._lContainer,n);r&&(io(Eu(this._lContainer),n),Vs(r[S],r))}detach(t){let n=this._adjustIndex(t,-1),r=_o(this._lContainer,n);return r&&io(Eu(this._lContainer),n)!=null?new _n(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function zh(e){return e[lo]}function Eu(e){return e[lo]||(e[lo]=[])}function FC(e,t){let n,r=t[e.index];return Je(r)?n=r:(n=eg(r,t,null,e),t[e.index]=n,rl(t,n)),VC(n,t,e,r),new fg(n,e,t)}function LC(e,t){let n=e[Z],r=n.createComment(""),o=lt(t,e),i=n.parentNode(o);return bs(n,i,r,n.nextSibling(o),!1),r}var VC=UC,jC=()=>!1;function BC(e,t,n){return jC(e,t,n)}function UC(e,t,n,r){if(e[Ut])return;let o;n.type&8?o=je(r):o=LC(t,n),e[Ut]=o}var lr=class{},Hs=class{};var Ts=class extends lr{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new Is(this);constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n;let i=Pc(t);this._bootstrapComponents=Rp(i.bootstrap),this._r3Injector=cu(t,n,[{provide:lr,useValue:this},{provide:To,useValue:this.componentFactoryResolver},...r],Dt(t),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},Ms=class extends Hs{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new Ts(this.moduleType,t,[])}};var wo=class extends lr{injector;componentFactoryResolver=new Is(this);instance=null;constructor(t){super();let n=new un([...t.providers,{provide:lr,useValue:this},{provide:To,useValue:this.componentFactoryResolver}],t.parent||ao(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Ao(e,t,n=null){return new wo({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var HC=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Hc(!1,n.type),o=r.length>0?Ao([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=_({token:e,providedIn:"environment",factory:()=>new e(I(X))})}return e})();function No(e){return Io(()=>{let t=hg(e),n=k(m({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Ku.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(HC).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||tt.Emulated,styles:e.styles||Me,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Mn("NgStandalone"),pg(n);let r=e.dependencies;return n.directiveDefs=Gh(r,$C),n.pipeDefs=Gh(r,xf),n.id=qC(n),n})}function $C(e){return Vt(e)||Fc(e)}function Tt(e){return Io(()=>({type:e.type,bootstrap:e.bootstrap||Me,declarations:e.declarations||Me,imports:e.imports||Me,exports:e.exports||Me,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function zC(e,t){if(e==null)return jt;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=Ls.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function GC(e){if(e==null)return jt;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function He(e){return Io(()=>{let t=hg(e);return pg(t),t})}function hg(e){let t={};return{type:e.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||jt,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||Me,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:zC(e.inputs,t),outputs:GC(e.outputs),debugInfo:null}}function pg(e){e.features?.forEach(t=>t(e))}function Gh(e,t){return e?()=>{let n=typeof e=="function"?e():e,r=[];for(let o of n){let i=t(o);i!==null&&r.push(i)}return r}:null}function qC(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function WC(e){return Object.getPrototypeOf(e.prototype).constructor}function qt(e){let t=WC(e.type),n=!0,r=[e];for(;t;){let o;if(ut(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new D(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=Cu(e.inputs),s.declaredInputs=Cu(e.declaredInputs),s.outputs=Cu(e.outputs);let a=o.hostBindings;a&&JC(e,a);let c=o.viewQuery,u=o.contentQueries;if(c&&QC(e,c),u&&KC(e,u),ZC(e,o),Rf(e.outputs,o.outputs),ut(o)&&o.data.animation){let l=e.data;l.animation=(l.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s<i.length;s++){let a=i[s];a&&a.ngInherit&&a(e),a===qt&&(n=!1)}}t=Object.getPrototypeOf(t)}YC(r)}function ZC(e,t){for(let n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;let r=t.inputs[n];r!==void 0&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n])}}function YC(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Do(o.hostAttrs,n=Do(n,o.hostAttrs))}}function Cu(e){return e===jt?{}:e===Me?[]:e}function QC(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function KC(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function JC(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function XC(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=Do(e.mergedAttrs,e.attrs);let l=e.tView=tl(2,e,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);n.queries!==null&&(n.queries.template(n,e),l.queries=n.queries.embeddedTView(e))}a&&(e.flags|=a),or(e,!1);let c=e_(n,t,e,r);fs()&&al(n,t,c,e),cr(c,t);let u=eg(c,t,c,e);t[r+pe]=u,rl(t,u),BC(u,e,t)}function As(e,t,n,r,o,i,s,a,c,u,l){let d=n+pe,h;if(t.firstCreatePass){if(h=hl(t,d,4,s||null,a||null),u!=null){let f=$t(t.consts,u);h.localNames=[];for(let g=0;g<f.length;g+=2)h.localNames.push(f[g],-1)}}else h=t.data[d];return XC(h,e,t,n,r,o,i,c),u!=null&&$p(e,h,l),h}var e_=t_;function t_(e,t,n,r){return hs(!0),t[Z].createComment("")}var pl=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function gg(e){return typeof e=="function"&&e[ve]!==void 0}function gl(e){return gg(e)&&typeof e.set=="function"}var ml=new E("");function An(e){return!!e&&typeof e.then=="function"}function mg(e){return!!e&&typeof e.subscribe=="function"}var yg=new E("");var yl=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=p(yg,{optional:!0})??[];injector=p(Qe);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=de(this.injector,o);if(An(i))n.push(i);else if(mg(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),$s=new E("");function vg(){Ya(()=>{let e="";throw new D(600,e)})}function Dg(e){return e.isBoundToModule}var n_=10;var Nn=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=p(Xe);afterRenderManager=p(Fp);zonelessEnabled=p(mo);rootEffectScheduler=p(gu);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new se;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=p(It);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(V(n=>!n))}constructor(){p(Tn,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=p(X);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=Qe.NULL){return this._injector.get(be).run(()=>{G(j.BootstrapComponentStart);let s=n instanceof Us;if(!this._injector.get(yl).done){let g="";throw new D(405,g)}let c;s?c=n:c=this._injector.get(To).resolveComponentFactory(n),this.componentTypes.push(c.componentType);let u=Dg(c)?void 0:this._injector.get(lr),l=r||c.selector,d=c.create(o,[],l,u),h=d.location.nativeElement,f=d.injector.get(ml,null);return f?.registerApplication(h),d.onDestroy(()=>{this.detachView(d.hostView),vo(this.components,d),f?.unregisterApplication(h)}),this._loadComponent(d),G(j.BootstrapComponentEnd,d),d})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){G(j.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(il.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw G(j.ChangeDetectionEnd),new D(101,!1);let n=b(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,b(n),this.afterTick.next(),G(j.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(wn,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<n_;){G(j.ChangeDetectionSyncStart);try{this.synchronizeOnce()}finally{G(j.ChangeDetectionSyncEnd)}}}synchronizeOnce(){this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=!1;if(this.dirtyFlags&7){let r=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:o}of this.allViews){if(!r&&!po(o))continue;let i=r&&!this.zonelessEnabled?0:1;Qp(o,i),n=!0}if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}n||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>po(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;vo(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView);try{this.tick()}catch(o){this.internalErrorHandler(o)}this.components.push(n),this._injector.get($s,[]).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>vo(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new D(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function vo(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var qx=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";var Bu=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function _u(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function r_(e,t,n,r){let o,i,s=0,a=e.length-1,c=void 0;if(Array.isArray(t)){b(r);let u=t.length-1;for(b(null);s<=a&&s<=u;){let l=e.at(s),d=t[s],h=_u(s,l,s,d,n);if(h!==0){h<0&&e.updateValue(s,d),s++;continue}let f=e.at(a),g=t[u],C=_u(a,f,u,g,n);if(C!==0){C<0&&e.updateValue(a,g),a--,u--;continue}let v=n(s,l),y=n(a,f),re=n(s,d);if(Object.is(re,y)){let ke=n(u,g);Object.is(ke,v)?(e.swap(s,a),e.updateValue(a,g),u--,a--):e.move(a,s),e.updateValue(s,d),s++;continue}if(o??=new Ns,i??=Wh(e,s,a,n),Uu(e,o,s,re))e.updateValue(s,d),s++,a++;else if(i.has(re))o.set(v,e.detach(s)),a--;else{let ke=e.create(s,t[s]);e.attach(s,ke),s++,a++}}for(;s<=u;)qh(e,o,n,s,t[s]),s++}else if(t!=null){b(r);let u=t[Symbol.iterator]();b(null);let l=u.next();for(;!l.done&&s<=a;){let d=e.at(s),h=l.value,f=_u(s,d,s,h,n);if(f!==0)f<0&&e.updateValue(s,h),s++,l=u.next();else{o??=new Ns,i??=Wh(e,s,a,n);let g=n(s,h);if(Uu(e,o,s,g))e.updateValue(s,h),s++,a++,l=u.next();else if(!i.has(g))e.attach(s,e.create(s,h)),s++,a++,l=u.next();else{let C=n(s,d);o.set(C,e.detach(s)),a--}}}for(;!l.done;)qh(e,o,n,e.length,l.value),l=u.next()}for(;s<=a;)e.destroy(e.detach(a--));o?.forEach(u=>{e.destroy(u)})}function Uu(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function qh(e,t,n,r,o){if(Uu(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function Wh(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var Ns=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function Mt(e,t,n,r,o,i,s,a){Mn("NgControlFlow");let c=z(),u=Ie(),l=$t(u.consts,i);return As(c,u,e,t,n,r,o,l,256,s,a),vl}function vl(e,t,n,r,o,i,s,a){Mn("NgControlFlow");let c=z(),u=Ie(),l=$t(u.consts,i);return As(c,u,e,t,n,r,o,l,512,s,a),vl}function At(e,t){Mn("NgControlFlow");let n=z(),r=ir(),o=n[r]!==nt?n[r]:-1,i=o!==-1?Rs(n,pe+o):void 0,s=0;if(Gt(n,r,e)){let a=b(null);try{if(i!==void 0&&ng(i,s),e!==-1){let c=pe+e,u=Rs(n,c),l=Gu(n[S],c),d=og(u,l,n),h=dl(n,l,t,{dehydratedView:d});Bs(u,h,s,Eo(l,d))}}finally{b(a)}}else if(i!==void 0){let a=tg(i,s);a!==void 0&&(a[Y]=t)}}var Hu=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-Q}};function Dl(e){return e}var $u=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function Ro(e,t,n,r,o,i,s,a,c,u,l,d,h){Mn("NgControlFlow");let f=z(),g=Ie(),C=c!==void 0,v=z(),y=a?s.bind(v[Ae][Y]):s,re=new $u(C,y);v[pe+e]=re,As(f,g,e+1,t,n,r,o,$t(g.consts,i),256),C&&As(f,g,e+2,c,u,l,d,$t(g.consts,h),512)}var zu=class extends Bu{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-Q}at(t){return this.getLView(t)[Y].$implicit}attach(t,n){let r=n[er];this.needsIndexUpdate||=t!==this.length,Bs(this.lContainer,n,t,Eo(this.templateTNode,r)),o_(this.lContainer,t)}detach(t){return this.needsIndexUpdate||=t!==this.length-1,i_(this.lContainer,t),s_(this.lContainer,t)}create(t,n){let r=Fu(this.lContainer,this.templateTNode.tView.ssrId);return dl(this.hostLView,this.templateTNode,new Hu(this.lContainer,n,t),{dehydratedView:r})}destroy(t){Vs(t[S],t)}updateValue(t,n){this.getLView(t)[Y].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[Y].$index=t}getLView(t){return a_(this.lContainer,t)}};function xo(e){let t=b(null),n=wt();try{let r=z(),o=r[S],i=r[n],s=n+1,a=Rs(r,s);if(i.liveCollection===void 0){let u=Gu(o,s);i.liveCollection=new zu(a,r,u)}else i.liveCollection.reset();let c=i.liveCollection;if(r_(c,e,i.trackByFn,t),c.updateIndexes(),i.hasEmptyBlock){let u=ir(),l=c.length===0;if(Gt(r,u,l)){let d=n+2,h=Rs(r,d);if(l){let f=Gu(o,d),g=og(h,f,r),C=dl(r,f,void 0,{dehydratedView:g});Bs(h,C,0,Eo(f,g))}else o.firstUpdatePass&&aC(h),ng(h,0)}}}finally{b(t)}}function Rs(e,t){return e[t]}function o_(e,t){if(e.length<=Q)return;let n=Q+t,r=e[n],o=r?r[yn]:void 0;if(r&&o&&o.detachedLeaveAnimationFns&&o.detachedLeaveAnimationFns.length>0){let i=r[Ct];fE(i,o),Cn.delete(r),o.detachedLeaveAnimationFns=void 0}}function i_(e,t){if(e.length<=Q)return;let n=Q+t,r=e[n],o=r?r[yn]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function s_(e,t){return _o(e,t)}function a_(e,t){return tg(e,t)}function Gu(e,t){return ho(e,t)}function pr(e,t,n){let r=z(),o=ir();if(Gt(r,o,t)){let i=Ie(),s=au();zp(s,r,e,t,r[Z],n)}return pr}function Zh(e,t,n,r,o){ul(t,e,n,o?"class":"style",r)}function w(e,t,n,r){let o=z(),i=o[S],s=e+pe,a=i.firstCreatePass?cg(s,o,2,t,LE,nh(),n,r):i.data[s];if(jE(a,o,e,t,c_),ss(a)){let c=o[S];Hp(c,o,a),Ip(c,a,o)}return r!=null&&$p(o,a),w}function A(){let e=Ie(),t=Ue(),n=BE(t);return e.firstCreatePass&&ug(e,n),oh(n)&&ih(),th(),n.classesWithoutHost!=null&&bD(n)&&Zh(e,n,z(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&ID(n)&&Zh(e,n,z(),n.stylesWithoutHost,!1),A}function gr(e,t,n,r){return w(e,t,n,r),A(),gr}var c_=(e,t,n,r,o)=>(hs(!0),Tp(t[Z],r,vh()));function mr(){return z()}var Oo="en-US";var u_=Oo;function Eg(e){typeof e=="string"&&(u_=e.toLowerCase().replace(/_/g,"-"))}function Re(e,t,n){let r=z(),o=Ie(),i=Ue();return Cg(o,r,r[Z],i,e,t,n),Re}function Cg(e,t,n,r,o,i,s){let a=!0,c=null;if((r.type&3||s)&&(c??=Du(r,t,i),wC(r,e,t,s,n,o,i,c)&&(a=!1)),a){let u=r.outputs?.[o],l=r.hostDirectiveOutputs?.[o];if(l&&l.length)for(let d=0;d<l.length;d+=2){let h=l[d],f=l[d+1];c??=Du(r,t,i),Hh(r,t,h,f,o,c)}if(u&&u.length)for(let d of u)c??=Du(r,t,i),Hh(r,t,d,o,o,c)}}function ne(e=1){return yh(e)}function gs(e,t){return e<<17|t<<2}function bn(e){return e>>17&32767}function l_(e){return(e&2)==2}function d_(e,t){return e&131071|t<<17}function qu(e){return e|2}function dr(e){return(e&131068)>>2}function wu(e,t){return e&-131069|t<<2}function f_(e){return(e&1)===1}function Wu(e){return e|1}function h_(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=bn(s),c=dr(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let d=n;l=d[1],(l===null||Xn(d,l)>0)&&(u=!0)}else l=n;if(o)if(c!==0){let h=bn(e[a+1]);e[r+1]=gs(h,a),h!==0&&(e[h+1]=wu(e[h+1],r)),e[a+1]=d_(e[a+1],r)}else e[r+1]=gs(a,0),a!==0&&(e[a+1]=wu(e[a+1],r)),a=r;else e[r+1]=gs(c,0),a===0?a=r:e[c+1]=wu(e[c+1],r),c=r;u&&(e[r+1]=qu(e[r+1])),Yh(e,l,r,!0),Yh(e,l,r,!1),p_(t,l,e,r,i),s=gs(a,c),i?t.classBindings=s:t.styleBindings=s}function p_(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Xn(i,t)>=0&&(n[r+1]=Wu(n[r+1]))}function Yh(e,t,n,r){let o=e[n+1],i=t===null,s=r?bn(o):dr(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],u=e[s+1];g_(c,t)&&(a=!0,e[s+1]=r?Wu(u):qu(u)),s=r?bn(u):dr(u)}a&&(e[n+1]=r?qu(o):Wu(o))}function g_(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Xn(e,t)>=0:!1}function zs(e,t,n){return _g(e,t,n,!1),zs}function $e(e,t){return _g(e,t,null,!0),$e}function _g(e,t,n,r){let o=z(),i=Ie(),s=ru(2);if(i.firstUpdatePass&&y_(i,e,s,r),t!==nt&&Gt(o,s,t)){let a=i.data[wt()];__(i,a,o,o[Z],e,o[s+1]=w_(t,n),r,s)}}function m_(e,t){return t>=e.expandoStartIndex}function y_(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[wt()],s=m_(e,n);b_(i,r)&&t===null&&!s&&(t=!1),t=v_(o,i,t,r),h_(o,i,t,n,s,r)}}function v_(e,t,n,r){let o=hh(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=bu(null,e,t,n,r),n=bo(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=bu(o,e,t,n,r),i===null){let c=D_(e,t,r);c!==void 0&&Array.isArray(c)&&(c=bu(null,e,t,c[1],r),c=bo(c,t.attrs,r),E_(e,t,r,c))}else i=C_(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function D_(e,t,n){let r=n?t.classBindings:t.styleBindings;if(dr(r)!==0)return e[bn(r)]}function E_(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[bn(o)]=r}function C_(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=bo(r,s,n)}return bo(r,t.attrs,n)}function bu(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=bo(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function bo(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),Vf(e,s,n?!0:t[++i]))}return e===void 0?null:e}function __(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,u=c[a+1],l=f_(u)?Qh(c,t,n,o,dr(u),s):void 0;if(!xs(l)){xs(i)||l_(u)&&(i=Qh(c,null,n,o,a,s));let d=Yc(wt(),n);TE(r,s,d,o,i)}}function Qh(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,d=l===null,h=n[o+1];h===nt&&(h=d?Me:void 0);let f=d?rs(h,r):l===r?h:void 0;if(u&&!xs(f)&&(f=rs(c,r)),xs(f)&&(a=f,s))return a;let g=e[o+1];o=s?bn(g):dr(g)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=rs(c,r))}return a}function xs(e){return e!==void 0}function w_(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=Dt(Sp(e)))),e}function b_(e,t){return(e.flags&(t?8:16))!==0}function F(e,t=""){let n=z(),r=Ie(),o=e+pe,i=r.firstCreatePass?hl(r,o,1,t,null):r.data[o],s=I_(r,n,i,t,e);n[o]=s,fs()&&al(r,n,s,i),or(i,!1)}var I_=(e,t,n,r,o)=>(hs(!0),WD(t[Z],r));function S_(e,t,n,r=""){return Gt(e,ir(),n)?t+oo(n)+r:nt}function T_(e,t,n,r,o,i=""){let s=ch(),a=_C(e,s,n,o);return ru(2),a?t+oo(n)+r+oo(o)+i:nt}function ft(e){return yr("",e),ft}function yr(e,t,n){let r=z(),o=S_(r,e,t,n);return o!==nt&&wg(r,wt(),o),yr}function ko(e,t,n,r,o){let i=z(),s=T_(i,e,t,n,r,o);return s!==nt&&wg(i,wt(),s),ko}function wg(e,t,n){let r=Yc(t,e);ZD(e[Z],r,n)}function ze(e,t,n){gl(t)&&(t=t());let r=z(),o=ir();if(Gt(r,o,t)){let i=Ie(),s=au();zp(s,r,e,t,r[Z],n)}return ze}function rt(e,t){let n=gl(e);return n&&e.set(t),n}function Ge(e,t){let n=z(),r=Ie(),o=Ue();return Cg(r,n,n[Z],o,e,t),Ge}function Kh(e,t,n){let r=Ie();r.firstCreatePass&&bg(t,r.data,r.blueprint,ut(e),n)}function bg(e,t,n,r,o){if(e=le(e),Array.isArray(e))for(let i=0;i<e.length;i++)bg(e[i],t,n,r,o);else{let i=Ie(),s=z(),a=Ue(),c=cn(e)?e:le(e.provide),u=zc(e),l=a.providerIndexes&1048575,d=a.directiveStart,h=a.providerIndexes>>20;if(cn(e)||!e.multi){let f=new En(u,o,te,null),g=Su(c,t,o?l:l+h,d);g===-1?(Mu(_s(a,s),i,c),Iu(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[g]=f,s[g]=f)}else{let f=Su(c,t,l+h,d),g=Su(c,t,l,l+h),C=f>=0&&n[f],v=g>=0&&n[g];if(o&&!v||!o&&!C){Mu(_s(a,s),i,c);let y=N_(o?A_:M_,n.length,o,r,u,e);!o&&v&&(n[g].providerFactory=y),Iu(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(y),s.push(y)}else{let y=Ig(n[o?g:f],u,!o&&r);Iu(i,e,f>-1?f:g,y)}!o&&r&&v&&n[g].componentProviders++}}}function Iu(e,t,n,r){let o=cn(t),i=$f(t);if(o||i){let c=(i?le(t.useClass):t).prototype.ngOnDestroy;if(c){let u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let l=u.indexOf(n);l===-1?u.push(n,[r,c]):u[l+1].push(r,c)}else u.push(n,c)}}}function Ig(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Su(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function M_(e,t,n,r,o){return Zu(this.multi,[])}function A_(e,t,n,r,o){let i=this.multi,s;if(this.providerFactory){let a=this.providerFactory.componentProviders,c=ws(r,r[S],this.providerFactory.index,o);s=c.slice(0,a),Zu(i,s);for(let u=a;u<c.length;u++)s.push(c[u])}else s=[],Zu(i,s);return s}function Zu(e,t){for(let n=0;n<e.length;n++){let r=e[n];t.push(r())}return t}function N_(e,t,n,r,o,i){let s=new En(e,n,te,null);return s.multi=[],s.index=t,s.componentProviders=0,Ig(s,o,r&&!n),s}function Po(e,t){return n=>{n.providersResolver=(r,o)=>Kh(r,o?o(e):e,!1),t&&(n.viewProvidersResolver=(r,o)=>Kh(r,o?o(t):t,!0))}}var Os=class{ngModuleFactory;componentFactories;constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},El=(()=>{class e{compileModuleSync(n){return new Ms(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=Pc(n),i=Rp(o.declarations).reduce((s,a)=>{let c=Vt(a);return c&&s.push(new ur(c)),s},[]);return new Os(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Sg=(()=>{class e{applicationErrorHandler=p(Xe);appRef=p(Nn);taskService=p(It);ngZone=p(be);zonelessEnabled=p(mo);tracing=p(Tn,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new ce;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(to):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(p(pu,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?lu:uu;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(to+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){this.taskService.remove(n),this.applicationErrorHandler(r)}finally{this.cleanup()}this.useMicrotaskScheduler=!0,lu(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Tg(){return[{provide:ln,useExisting:Sg},{provide:be,useClass:no},{provide:mo,useValue:!0}]}function R_(){return typeof $localize<"u"&&$localize.locale||Oo}var Cl=new E("",{factory:()=>p(Cl,{optional:!0,skipSelf:!0})||R_()});function Rn(e,t){return bi(e,t?.equal)}var Ng=Symbol("InputSignalNode#UNSET"),G_=k(m({},Ii),{transformFn:void 0,applyValueToInputSignal(e,t){Gr(e,t)}});function Rg(e,t){let n=Object.create(G_);n.value=e,n.transformFn=t?.transform;function r(){if(Hr(n),n.value===Ng){let o=null;throw new D(-950,o)}return n.value}return r[ve]=n,r}function Mg(e,t){return Rg(e,t)}function q_(e){return Rg(Ng,e)}var xg=(Mg.required=q_,Mg);var _l=new E(""),W_=new E("");function Fo(e){return!e.moduleRef}function Z_(e){let t=Fo(e)?e.r3Injector:e.moduleRef.injector,n=t.get(be);return n.run(()=>{Fo(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Xe),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),Fo(e)){let i=()=>t.destroy(),s=e.platformInjector.get(_l);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(_l);s.add(i),e.moduleRef.onDestroy(()=>{vo(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return Q_(r,n,()=>{let i=t.get(It),s=i.add(),a=t.get(yl);return a.runInitializers(),a.donePromise.then(()=>{let c=t.get(Cl,Oo);if(Eg(c||Oo),!t.get(W_,!0))return Fo(e)?t.get(Nn):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Fo(e)){let l=t.get(Nn);return e.rootComponent!==void 0&&l.bootstrap(e.rootComponent),l}else return Y_?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>void i.remove(s))})})}var Y_;function Q_(e,t,n){try{let r=n();return An(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}var Gs=null;function K_(e=[],t){return Qe.create({name:t,providers:[{provide:so,useValue:"platform"},{provide:_l,useValue:new Set([()=>Gs=null])},...e]})}function J_(e=[]){if(Gs)return Gs;let t=K_(e);return Gs=t,vg(),X_(t),t}function X_(e){let t=e.get(Ps,null);de(e,()=>{t?.forEach(n=>n())})}var Lo=(()=>{class e{static __NG_ELEMENT_ID__=ew}return e})();function ew(e){return tw(Ue(),z(),(e&16)===16)}function tw(e,t,n){if(Ht(e)&&!n){let r=Be(e.index,t);return new _n(r,r)}else if(e.type&175){let r=t[Ae];return new _n(r,t)}return null}function Og(e){let{rootComponent:t,appProviders:n,platformProviders:r,platformRef:o}=e;G(j.BootstrapApplicationStart);try{let i=o?.injector??J_(r),s=[Tg(),_h,...n||[]],a=new wo({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return Z_({r3Injector:a.injector,platformInjector:i,rootComponent:t})}catch(i){return Promise.reject(i)}finally{G(j.BootstrapApplicationEnd)}}function wl(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}var kg=null;function qe(){return kg}function bl(e){kg??=e}var Vo=class{},qs=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=_({token:e,factory:()=>p(Pg),providedIn:"platform"})}return e})();var Pg=(()=>{class e extends qs{_location;_history;_doc=p(ee);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return qe().getBaseHref(this._doc)}onPopState(n){let r=qe().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){let r=qe().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||e)};static \u0275prov=_({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function Vg(e,t){return e?t?e.endsWith("/")?t.startsWith("/")?e+t.slice(1):e+t:t.startsWith("/")?e+t:`${e}/${t}`:e:t}function Fg(e){let t=e.search(/#|\?|$/);return e[t-1]==="/"?e.slice(0,t-1)+e.slice(t):e}function Wt(e){return e&&e[0]!=="?"?`?${e}`:e}var Ws=(()=>{class e{historyGo(n){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=_({token:e,factory:()=>p(rw),providedIn:"root"})}return e})(),nw=new E(""),rw=(()=>{class e extends Ws{_platformLocation;_baseHref;_removeListenerFns=[];constructor(n,r){super(),this._platformLocation=n,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??p(ee).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 Vg(this._baseHref,n)}path(n=!1){let r=this._platformLocation.pathname+Wt(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Wt(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Wt(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}static \u0275fac=function(r){return new(r||e)(I(qs),I(nw,8))};static \u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),vr=(()=>{class e{_subject=new se;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(n){this._locationStrategy=n;let r=this._locationStrategy.getBaseHref();this._basePath=sw(Fg(Lg(r))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Wt(r))}normalize(n){return e.stripTrailingSlash(iw(this._basePath,Lg(n)))}prepareExternalUrl(n){return n&&n[0]!=="/"&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Wt(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Wt(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r??void 0,complete:o??void 0})}static normalizeQueryParams=Wt;static joinWithSlash=Vg;static stripTrailingSlash=Fg;static \u0275fac=function(r){return new(r||e)(I(Ws))};static \u0275prov=_({token:e,factory:()=>ow(),providedIn:"root"})}return e})();function ow(){return new vr(I(Ws))}function iw(e,t){if(!e||!t.startsWith(e))return t;let n=t.substring(e.length);return n===""||["/",";","?","#"].includes(n[0])?n:t}function Lg(e){return e.replace(/\/index.html$/,"")}function sw(e){if(new RegExp("^(https?:)?//").test(e)){let[,n]=e.split(/\/\/[^\/]+/);return n}return e}var Il=/\s+/,jg=[],Sl=(()=>{class e{_ngEl;_renderer;initialClasses=jg;rawClass;stateMap=new Map;constructor(n,r){this._ngEl=n,this._renderer=r}set klass(n){this.initialClasses=n!=null?n.trim().split(Il):jg}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(Il):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(Il).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static \u0275fac=function(r){return new(r||e)(te(Sn),te(hr))};static \u0275dir=He({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})();var Zs=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Tt({type:e});static \u0275inj=at({})}return e})();function Ys(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var xn=class{};var Bg="browser";var jo=class{_doc;constructor(t){this._doc=t}manager},Qs=(()=>{class e extends jo{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(I(ee))};static \u0275prov=_({token:e,factory:e.\u0275fac})}return e})(),Xs=new E(""),Nl=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(s=>{s.manager=this});let o=n.filter(s=>!(s instanceof Qs));this._plugins=o.slice().reverse();let i=n.find(s=>s instanceof Qs);i&&this._plugins.push(i)}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new D(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(I(Xs),I(be))};static \u0275prov=_({token:e,factory:e.\u0275fac})}return e})(),Tl="ng-app-id";function Ug(e){for(let t of e)t.remove()}function Hg(e,t){let n=t.createElement("style");return n.textContent=e,n}function uw(e,t,n,r){let o=e.head?.querySelectorAll(`style[${Tl}="${t}"],link[${Tl}="${t}"]`);if(o)for(let i of o)i.removeAttribute(Tl),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]})}function Al(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var Rl=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,uw(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,Hg);r?.forEach(o=>this.addUsage(o,this.external,Al))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(Ug(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])Ug(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,Hg(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,Al(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(I(ee),I(ks),I(Fs,8),I(So))};static \u0275prov=_({token:e,factory:e.\u0275fac})}return e})(),Ml={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"},xl=/%COMP%/g;var zg="%COMP%",lw=`_nghost-${zg}`,dw=`_ngcontent-${zg}`,fw=!0,hw=new E("",{factory:()=>fw});function pw(e){return dw.replace(xl,e)}function gw(e){return lw.replace(xl,e)}function Gg(e,t){return t.map(n=>n.replace(xl,e))}var Ol=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,o,i,s,a,c=null,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.ngZone=a,this.nonce=c,this.tracingService=u,this.platformIsServer=!1,this.defaultRenderer=new Bo(n,s,a,this.platformIsServer,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(n,r);return o instanceof Js?o.applyToHost(n):o instanceof Uo&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.platformIsServer,h=this.tracingService;switch(r.encapsulation){case tt.Emulated:i=new Js(c,u,r,this.appId,l,s,a,d,h);break;case tt.ShadowDom:return new Ks(c,n,r,s,a,this.nonce,d,h,u);case tt.ExperimentalIsolatedShadowDom:return new Ks(c,n,r,s,a,this.nonce,d,h);default:i=new Uo(c,u,r,l,s,a,d,h);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||e)(I(Nl),I(Rl),I(ks),I(hw),I(ee),I(be),I(Fs),I(Tn,8))};static \u0275prov=_({token:e,factory:e.\u0275fac})}return e})(),Bo=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o,i){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.tracingService=i}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(Ml[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){($g(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&($g(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new D(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=Ml[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=Ml[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(St.DashCase|St.Important)?t.style.setProperty(n,r,o&St.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&St.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r,o){if(typeof t=="string"&&(t=qe().getGlobalEventTarget(this.doc,t),!t))throw new D(5102,!1);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;t(n)===!1&&n.preventDefault()}}};function $g(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var Ks=class extends Bo{hostEl;sharedStylesHost;shadowRoot;constructor(t,n,r,o,i,s,a,c,u){super(t,o,i,a,c),this.hostEl=n,this.sharedStylesHost=u,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let l=r.styles;l=Gg(r.id,l);for(let h of l){let f=document.createElement("style");s&&f.setAttribute("nonce",s),f.textContent=h,this.shadowRoot.appendChild(f)}let d=r.getExternalStyles?.();if(d)for(let h of d){let f=Al(h,o);s&&f.setAttribute("nonce",s),this.shadowRoot.appendChild(f)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},Uo=class extends Bo{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c,u){super(t,i,s,a,c),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let l=r.styles;this.styles=u?Gg(u,l):l,this.styleUrls=r.getExternalStyles?.(u)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&Cn.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Js=class extends Uo{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c,u){let l=o+"-"+r.id;super(t,n,r,i,s,a,c,u,l),this.contentAttr=pw(l),this.hostAttr=gw(l)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}};var ea=class e extends Vo{supportsDOMEvents=!0;static makeCurrent(){bl(new e)}onAndCancel(t,n,r,o){return t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=mw();return n==null?null:yw(n)}resetBaseElement(){Ho=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Ys(document.cookie,t)}},Ho=null;function mw(){return Ho=Ho||document.head.querySelector("base"),Ho?Ho.getAttribute("href"):null}function yw(e){return new URL(e,document.baseURI).pathname}var vw=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=_({token:e,factory:e.\u0275fac})}return e})(),qg=["alt","control","meta","shift"],Dw={"\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"},Ew={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Wg=(()=>{class e extends jo{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>qe().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),qg.forEach(u=>{let l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=Dw[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),qg.forEach(s=>{if(s!==o){let a=Ew[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(I(ee))};static \u0275prov=_({token:e,factory:e.\u0275fac})}return e})();function kl(e,t,n){let r=m({rootComponent:e,platformRef:n?.platformRef},Cw(t));return Og(r)}function Cw(e){return{appProviders:[...Sw,...e?.providers??[]],platformProviders:Iw}}function _w(){ea.makeCurrent()}function ww(){return new Et}function bw(){return Ju(document),document}var Iw=[{provide:So,useValue:Bg},{provide:Ps,useValue:_w,multi:!0},{provide:ee,useFactory:bw}];var Sw=[{provide:so,useValue:"root"},{provide:Et,useFactory:ww},{provide:Xs,useClass:Qs,multi:!0},{provide:Xs,useClass:Wg,multi:!0},Ol,Rl,Nl,{provide:wn,useExisting:Ol},{provide:xn,useClass:vw},[]];var Zt=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t=="string"?this.lazyInit=()=>{this.headers=new Map,t.split(`
|
|
5
|
+
`).forEach(n=>{let r=n.indexOf(":");if(r>0){let o=n.slice(0,r),i=n.slice(r+1).trim();this.addHeaderEntry(o,i)}})}:typeof Headers<"u"&&t instanceof Headers?(this.headers=new Map,t.forEach((n,r)=>{this.addHeaderEntry(r,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{this.setHeaderEntries(n,r)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){let n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){let n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(t.name,n);let o=(t.op==="a"?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":let i=t.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let s=this.headers.get(n);if(!s)return;s=s.filter(a=>i.indexOf(a)===-1),s.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}break}}addHeaderEntry(t,n){let r=t.toLowerCase();this.maybeSetNormalizedName(t,r),this.headers.has(r)?this.headers.get(r).push(n):this.headers.set(r,[n])}setHeaderEntries(t,n){let r=(Array.isArray(n)?n:[n]).map(i=>i.toString()),o=t.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(t,o)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}};var Fl=class{map=new Map;set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}},Ll=class{encodeKey(t){return Zg(t)}encodeValue(t){return Zg(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function Tw(e,t){let n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],c=n.get(s)||[];c.push(a),n.set(s,c)}),n}var Mw=/%(\d[a-f0-9])/gi,Aw={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Zg(e){return encodeURIComponent(e).replace(Mw,(t,n)=>Aw[n]??t)}function ta(e){return`${e}`}var Nt=class e{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new Ll,t.fromString){if(t.fromObject)throw new D(2805,!1);this.map=Tw(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{let r=t.fromObject[n],o=Array.isArray(r)?r.map(ta):[ta(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){let n=[];return Object.keys(t).forEach(r=>{let o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{let n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>t!=="").join("&")}clone(t){let n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":let n=(t.op==="a"?this.map.get(t.param):void 0)||[];n.push(ta(t.value)),this.map.set(t.param,n);break;case"d":if(t.value!==void 0){let r=this.map.get(t.param)||[],o=r.indexOf(ta(t.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null)}};function Nw(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Yg(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Qg(e){return typeof Blob<"u"&&e instanceof Blob}function Kg(e){return typeof FormData<"u"&&e instanceof FormData}function Rw(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Jg="Content-Type",Xg="Accept",em="text/plain",tm="application/json",xw=`${tm}, ${em}, */*`,Dr=class e{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(t,n,r,o){this.url=n,this.method=t.toUpperCase();let i;if(Nw(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i){if(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,this.keepalive=!!i.keepalive,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),i.priority&&(this.priority=i.priority),i.cache&&(this.cache=i.cache),i.credentials&&(this.credentials=i.credentials),typeof i.timeout=="number"){if(i.timeout<1||!Number.isInteger(i.timeout))throw new D(2822,"");this.timeout=i.timeout}i.mode&&(this.mode=i.mode),i.redirect&&(this.redirect=i.redirect),i.integrity&&(this.integrity=i.integrity),i.referrer&&(this.referrer=i.referrer),i.referrerPolicy&&(this.referrerPolicy=i.referrerPolicy),this.transferCache=i.transferCache}if(this.headers??=new Zt,this.context??=new Fl,!this.params)this.params=new Nt,this.urlWithParams=n;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=n;else{let a=n.indexOf("?"),c=a===-1?"?":a<n.length-1?"&":"";this.urlWithParams=n+c+s}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||Yg(this.body)||Qg(this.body)||Kg(this.body)||Rw(this.body)?this.body:this.body instanceof Nt?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||Kg(this.body)?null:Qg(this.body)?this.body.type||null:Yg(this.body)?null:typeof this.body=="string"?em:this.body instanceof Nt?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?tm:null}clone(t={}){let n=t.method||this.method,r=t.url||this.url,o=t.responseType||this.responseType,i=t.keepalive??this.keepalive,s=t.priority||this.priority,a=t.cache||this.cache,c=t.mode||this.mode,u=t.redirect||this.redirect,l=t.credentials||this.credentials,d=t.referrer||this.referrer,h=t.integrity||this.integrity,f=t.referrerPolicy||this.referrerPolicy,g=t.transferCache??this.transferCache,C=t.timeout??this.timeout,v=t.body!==void 0?t.body:this.body,y=t.withCredentials??this.withCredentials,re=t.reportProgress??this.reportProgress,ke=t.headers||this.headers,ie=t.params||this.params,jr=t.context??this.context;return t.setHeaders!==void 0&&(ke=Object.keys(t.setHeaders).reduce((Br,Xt)=>Br.set(Xt,t.setHeaders[Xt]),ke)),t.setParams&&(ie=Object.keys(t.setParams).reduce((Br,Xt)=>Br.set(Xt,t.setParams[Xt]),ie)),new e(n,r,v,{params:ie,headers:ke,context:jr,reportProgress:re,responseType:o,withCredentials:y,transferCache:g,keepalive:i,cache:a,priority:s,timeout:C,mode:c,redirect:u,credentials:l,referrer:d,integrity:h,referrerPolicy:f})}},On=(function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e})(On||{}),$o=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,n=200,r="OK"){this.headers=t.headers||new Zt,this.status=t.status!==void 0?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.redirected=t.redirected,this.responseType=t.responseType,this.ok=this.status>=200&&this.status<300}},Vl=class e extends $o{constructor(t={}){super(t)}type=On.ResponseHeader;clone(t={}){return new e({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}},zo=class e extends $o{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=On.Response;clone(t={}){return new e({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected,responseType:t.responseType??this.responseType})}},Er=class extends $o{name="HttpErrorResponse";message;error;ok=!1;constructor(t){super(t,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||"(unknown url)"}`:this.message=`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}},Ow=200,kw=204;var Pw=/^\)\]\}',?\n/;var Fw=(()=>{class e{xhrFactory;tracingService=p(Tn,{optional:!0});constructor(n){this.xhrFactory=n}maybePropagateTrace(n){return this.tracingService?.propagate?this.tracingService.propagate(n):n}handle(n){if(n.method==="JSONP")throw new D(-2800,!1);let r=this.xhrFactory;return x(null).pipe(Fe(()=>new P(i=>{let s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((v,y)=>s.setRequestHeader(v,y.join(","))),n.headers.has(Xg)||s.setRequestHeader(Xg,xw),!n.headers.has(Jg)){let v=n.detectContentTypeHeader();v!==null&&s.setRequestHeader(Jg,v)}if(n.timeout&&(s.timeout=n.timeout),n.responseType){let v=n.responseType.toLowerCase();s.responseType=v!=="json"?v:"text"}let a=n.serializeBody(),c=null,u=()=>{if(c!==null)return c;let v=s.statusText||"OK",y=new Zt(s.getAllResponseHeaders()),re=s.responseURL||n.url;return c=new Vl({headers:y,status:s.status,statusText:v,url:re}),c},l=this.maybePropagateTrace(()=>{let{headers:v,status:y,statusText:re,url:ke}=u(),ie=null;y!==kw&&(ie=typeof s.response>"u"?s.responseText:s.response),y===0&&(y=ie?Ow:0);let jr=y>=200&&y<300;if(n.responseType==="json"&&typeof ie=="string"){let Br=ie;ie=ie.replace(Pw,"");try{ie=ie!==""?JSON.parse(ie):null}catch(Xt){ie=Br,jr&&(jr=!1,ie={error:Xt,text:ie})}}jr?(i.next(new zo({body:ie,headers:v,status:y,statusText:re,url:ke||void 0})),i.complete()):i.error(new Er({error:ie,headers:v,status:y,statusText:re,url:ke||void 0}))}),d=this.maybePropagateTrace(v=>{let{url:y}=u(),re=new Er({error:v,status:s.status||0,statusText:s.statusText||"Unknown Error",url:y||void 0});i.error(re)}),h=d;n.timeout&&(h=this.maybePropagateTrace(v=>{let{url:y}=u(),re=new Er({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:y||void 0});i.error(re)}));let f=!1,g=this.maybePropagateTrace(v=>{f||(i.next(u()),f=!0);let y={type:On.DownloadProgress,loaded:v.loaded};v.lengthComputable&&(y.total=v.total),n.responseType==="text"&&s.responseText&&(y.partialText=s.responseText),i.next(y)}),C=this.maybePropagateTrace(v=>{let y={type:On.UploadProgress,loaded:v.loaded};v.lengthComputable&&(y.total=v.total),i.next(y)});return s.addEventListener("load",l),s.addEventListener("error",d),s.addEventListener("timeout",h),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",g),a!==null&&s.upload&&s.upload.addEventListener("progress",C)),s.send(a),i.next({type:On.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",l),s.removeEventListener("timeout",h),n.reportProgress&&(s.removeEventListener("progress",g),a!==null&&s.upload&&s.upload.removeEventListener("progress",C)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||e)(I(xn))};static \u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Lw(e,t){return t(e)}function Vw(e,t,n){return(r,o)=>de(n,()=>t(r,i=>e(i,o)))}var jw=new E("",{factory:()=>[]}),nm=new E(""),Bw=new E("",{providedIn:"root",factory:()=>!0});var Uw=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=_({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=I(Fw),o},providedIn:"root"})}return e})();var Hw=(()=>{class e{backend;injector;chain=null;pendingTasks=p(ps);contributeToStability=p(Bw);constructor(n,r){this.backend=n,this.injector=r}handle(n){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(jw),...this.injector.get(nm,[])]));this.chain=r.reduceRight((o,i)=>Vw(o,i,this.injector),Lw)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(n,o=>this.backend.handle(o)).pipe(Qr(r))}else return this.chain(n,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(I(Uw),I(X))};static \u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),$w=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=_({token:e,factory:function(r){let o=null;return r?o=new(r||e):o=I(Hw),o},providedIn:"root"})}return e})();function Pl(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,credentials:e.credentials,transferCache:e.transferCache,timeout:e.timeout,keepalive:e.keepalive,priority:e.priority,cache:e.cache,mode:e.mode,redirect:e.redirect,integrity:e.integrity,referrer:e.referrer,referrerPolicy:e.referrerPolicy}}var jl=(()=>{class e{handler;constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Dr)i=n;else{let c;o.headers instanceof Zt?c=o.headers:c=new Zt(o.headers);let u;o.params&&(o.params instanceof Nt?u=o.params:u=new Nt({fromObject:o.params})),i=new Dr(n,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout})}let s=x(i).pipe(Yn(c=>this.handler.handle(c)));if(n instanceof Dr||o.observe==="events")return s;let a=s.pipe(Pe(c=>c instanceof zo));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(V(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new D(2806,!1);return c.body}));case"blob":return a.pipe(V(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new D(2807,!1);return c.body}));case"text":return a.pipe(V(c=>{if(c.body!==null&&typeof c.body!="string")throw new D(2808,!1);return c.body}));case"json":default:return a.pipe(V(c=>c.body))}case"response":return a;default:throw new D(2809,!1)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:new Nt().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,Pl(o,r))}post(n,r,o={}){return this.request("POST",n,Pl(o,r))}put(n,r,o={}){return this.request("PUT",n,Pl(o,r))}static \u0275fac=function(r){return new(r||e)(I($w))};static \u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var rm=(()=>{class e{_doc;constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}static \u0275fac=function(r){return new(r||e)(I(ee))};static \u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var N="primary",ti=Symbol("RouteTitle"),zl=class{params;constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){let n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}};function Ir(e){return new zl(e)}function Gw(e,t,n){let r=n.path.split("/");if(r.length>e.length||n.pathMatch==="full"&&(t.hasChildren()||r.length<e.length))return null;let o={};for(let i=0;i<r.length;i++){let s=r[i],a=e[i];if(s[0]===":")o[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:e.slice(0,r.length),posParams:o}}function aa(e){return new Promise((t,n)=>{e.pipe(yt()).subscribe({next:r=>t(r),error:r=>n(r)})})}function qw(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!pt(e[n],t[n]))return!1;return!0}function pt(e,t){let n=e?Gl(e):void 0,r=t?Gl(t):void 0;if(!n||!r||n.length!=r.length)return!1;let o;for(let i=0;i<n.length;i++)if(o=n[i],!fm(e[o],t[o]))return!1;return!0}function Gl(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}function fm(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;let n=[...e].sort(),r=[...t].sort();return n.every((o,i)=>r[i]===o)}else return e===t}function hm(e){return e.length>0?e[e.length-1]:null}function jn(e){return zi(e)?e:An(e)?J(Promise.resolve(e)):x(e)}function pm(e){return zi(e)?aa(e):Promise.resolve(e)}var Ww={exact:mm,subset:ym},gm={exact:Zw,subset:Yw,ignored:()=>!0};function om(e,t,n){return Ww[n.paths](e.root,t.root,n.matrixParams)&&gm[n.queryParams](e.queryParams,t.queryParams)&&!(n.fragment==="exact"&&e.fragment!==t.fragment)}function Zw(e,t){return pt(e,t)}function mm(e,t,n){if(!Fn(e.segments,t.segments)||!oa(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(let r in t.children)if(!e.children[r]||!mm(e.children[r],t.children[r],n))return!1;return!0}function Yw(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>fm(e[n],t[n]))}function ym(e,t,n){return vm(e,t,t.segments,n)}function vm(e,t,n,r){if(e.segments.length>n.length){let o=e.segments.slice(0,n.length);return!(!Fn(o,n)||t.hasChildren()||!oa(o,n,r))}else if(e.segments.length===n.length){if(!Fn(e.segments,n)||!oa(e.segments,n,r))return!1;for(let o in t.children)if(!e.children[o]||!ym(e.children[o],t.children[o],r))return!1;return!0}else{let o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!Fn(e.segments,o)||!oa(e.segments,o,r)||!e.children[N]?!1:vm(e.children[N],t,i,r)}}function oa(e,t,n){return t.every((r,o)=>gm[n](e[o].parameters,r.parameters))}var gt=class{root;queryParams;fragment;_queryParamMap;constructor(t=new $([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap??=Ir(this.queryParams),this._queryParamMap}toString(){return Jw.serialize(this)}},$=class{segments;children;parent=null;constructor(t,n){this.segments=t,this.children=n,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ia(this)}},Pn=class{path;parameters;_parameterMap;constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap??=Ir(this.parameters),this._parameterMap}toString(){return Em(this)}};function Qw(e,t){return Fn(e,t)&&e.every((n,r)=>pt(n.parameters,t[r].parameters))}function Fn(e,t){return e.length!==t.length?!1:e.every((n,r)=>n.path===t[r].path)}function Kw(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===N&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==N&&(n=n.concat(t(o,r)))}),n}var va=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=_({token:e,factory:()=>new Ln,providedIn:"root"})}return e})(),Ln=class{parse(t){let n=new Wl(t);return new gt(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){let n=`/${Go(t.root,!0)}`,r=tb(t.queryParams),o=typeof t.fragment=="string"?`#${Xw(t.fragment)}`:"";return`${n}${r}${o}`}},Jw=new Ln;function ia(e){return e.segments.map(t=>Em(t)).join("/")}function Go(e,t){if(!e.hasChildren())return ia(e);if(t){let n=e.children[N]?Go(e.children[N],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==N&&r.push(`${o}:${Go(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}else{let n=Kw(e,(r,o)=>o===N?[Go(e.children[N],!1)]:[`${o}:${Go(r,!1)}`]);return Object.keys(e.children).length===1&&e.children[N]!=null?`${ia(e)}/${n[0]}`:`${ia(e)}/(${n.join("//")})`}}function Dm(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function na(e){return Dm(e).replace(/%3B/gi,";")}function Xw(e){return encodeURI(e)}function ql(e){return Dm(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function sa(e){return decodeURIComponent(e)}function im(e){return sa(e.replace(/\+/g,"%20"))}function Em(e){return`${ql(e.path)}${eb(e.parameters)}`}function eb(e){return Object.entries(e).map(([t,n])=>`;${ql(t)}=${ql(n)}`).join("")}function tb(e){let t=Object.entries(e).map(([n,r])=>Array.isArray(r)?r.map(o=>`${na(n)}=${na(o)}`).join("&"):`${na(n)}=${na(r)}`).filter(n=>n);return t.length?`?${t.join("&")}`:""}var nb=/^[^\/()?;#]+/;function Bl(e){let t=e.match(nb);return t?t[0]:""}var rb=/^[^\/()?;=#]+/;function ob(e){let t=e.match(rb);return t?t[0]:""}var ib=/^[^=?&#]+/;function sb(e){let t=e.match(ib);return t?t[0]:""}var ab=/^[^&#]+/;function cb(e){let t=e.match(ab);return t?t[0]:""}var Wl=class{url;remaining;constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new $([],{}):new $([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional("?"))do this.parseQueryParam(t);while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[N]=new $(t,n)),r}parseSegment(){let t=Bl(this.remaining);if(t===""&&this.peekStartsWith(";"))throw new D(4009,!1);return this.capture(t),new Pn(sa(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){let n=ob(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let o=Bl(this.remaining);o&&(r=o,this.capture(r))}t[sa(n)]=sa(r)}parseQueryParam(t){let n=sb(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){let s=cb(this.remaining);s&&(r=s,this.capture(r))}let o=im(n),i=im(r);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}parseParens(t){let n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Bl(this.remaining),o=this.remaining[r.length];if(o!=="/"&&o!==")"&&o!==";")throw new D(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=N);let s=this.parseChildren();n[i??N]=Object.keys(s).length===1&&s[N]?s[N]:new $([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new D(4011,!1)}};function Cm(e){return e.segments.length>0?new $([],{[N]:e}):e}function _m(e){let t={};for(let[r,o]of Object.entries(e.children)){let i=_m(o);if(r===N&&i.segments.length===0&&i.hasChildren())for(let[s,a]of Object.entries(i.children))t[s]=a;else(i.segments.length>0||i.hasChildren())&&(t[r]=i)}let n=new $(e.segments,t);return ub(n)}function ub(e){if(e.numberOfChildren===1&&e.children[N]){let t=e.children[N];return new $(e.segments.concat(t.segments),t.children)}return e}function Sr(e){return e instanceof gt}function lb(e,t,n=null,r=null,o=new Ln){let i=wm(e);return bm(i,t,n,r,o)}function wm(e){let t;function n(i){let s={};for(let c of i.children){let u=n(c);s[c.outlet]=u}let a=new $(i.url,s);return i===e&&(t=a),a}let r=n(e.root),o=Cm(r);return t??o}function bm(e,t,n,r,o){let i=e;for(;i.parent;)i=i.parent;if(t.length===0)return Ul(i,i,i,n,r,o);let s=db(t);if(s.toRoot())return Ul(i,i,new $([],{}),n,r,o);let a=fb(s,i,e),c=a.processChildren?Wo(a.segmentGroup,a.index,s.commands):Sm(a.segmentGroup,a.index,s.commands);return Ul(i,a.segmentGroup,c,n,r,o)}function ca(e){return typeof e=="object"&&e!=null&&!e.outlets&&!e.segmentPath}function Qo(e){return typeof e=="object"&&e!=null&&e.outlets}function sm(e,t,n){e||="\u0275";let r=new gt;return r.queryParams={[e]:t},n.parse(n.serialize(r)).queryParams[e]}function Ul(e,t,n,r,o,i){let s={};for(let[u,l]of Object.entries(r??{}))s[u]=Array.isArray(l)?l.map(d=>sm(u,d,i)):sm(u,l,i);let a;e===t?a=n:a=Im(e,t,n);let c=Cm(_m(a));return new gt(c,s,o)}function Im(e,t,n){let r={};return Object.entries(e.children).forEach(([o,i])=>{i===t?r[o]=n:r[o]=Im(i,t,n)}),new $(e.segments,r)}var ua=class{isAbsolute;numberOfDoubleDots;commands;constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&ca(r[0]))throw new D(4003,!1);let o=r.find(Qo);if(o&&o!==hm(r))throw new D(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function db(e){if(typeof e[0]=="string"&&e.length===1&&e[0]==="/")return new ua(!0,0,e);let t=0,n=!1,r=e.reduce((o,i,s)=>{if(typeof i=="object"&&i!=null){if(i.outlets){let a={};return Object.entries(i.outlets).forEach(([c,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===""?n=!0:a===".."?t++:a!=""&&o.push(a))}),o):[...o,i]},[]);return new ua(n,t,r)}var _r=class{segmentGroup;processChildren;index;constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}};function fb(e,t,n){if(e.isAbsolute)return new _r(t,!0,0);if(!n)return new _r(t,!1,NaN);if(n.parent===null)return new _r(n,!0,0);let r=ca(e.commands[0])?0:1,o=n.segments.length-1+r;return hb(n,o,e.numberOfDoubleDots)}function hb(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new D(4005,!1);o=r.segments.length}return new _r(r,!1,o-i)}function pb(e){return Qo(e[0])?e[0].outlets:{[N]:e}}function Sm(e,t,n){if(e??=new $([],{}),e.segments.length===0&&e.hasChildren())return Wo(e,t,n);let r=gb(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex<e.segments.length){let i=new $(e.segments.slice(0,r.pathIndex),{});return i.children[N]=new $(e.segments.slice(r.pathIndex),e.children),Wo(i,0,o)}else return r.match&&o.length===0?new $(e.segments,{}):r.match&&!e.hasChildren()?Zl(e,t,n):r.match?Wo(e,0,o):Zl(e,t,n)}function Wo(e,t,n){if(n.length===0)return new $(e.segments,{});{let r=pb(n),o={};if(Object.keys(r).some(i=>i!==N)&&e.children[N]&&e.numberOfChildren===1&&e.children[N].segments.length===0){let i=Wo(e.children[N],t,n);return new $(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=Sm(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s)}),new $(e.segments,o)}}function gb(e,t,n){let r=0,o=t,i={match:!1,pathIndex:0,commandIndex:0};for(;o<e.segments.length;){if(r>=n.length)return i;let s=e.segments[o],a=n[r];if(Qo(a))break;let c=`${a}`,u=r<n.length-1?n[r+1]:null;if(o>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!cm(c,u,s))return i;r+=2}else{if(!cm(c,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function Zl(e,t,n){let r=e.segments.slice(0,t),o=0;for(;o<n.length;){let i=n[o];if(Qo(i)){let c=mb(i.outlets);return new $(r,c)}if(o===0&&ca(n[0])){let c=e.segments[t];r.push(new Pn(c.path,am(n[0]))),o++;continue}let s=Qo(i)?i.outlets[N]:`${i}`,a=o<n.length-1?n[o+1]:null;s&&a&&ca(a)?(r.push(new Pn(s,am(a))),o+=2):(r.push(new Pn(s,{})),o++)}return new $(r,{})}function mb(e){let t={};return Object.entries(e).forEach(([n,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(t[n]=Zl(new $([],{}),0,r))}),t}function am(e){let t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function cm(e,t,n){return e==n.path&&pt(t,n.parameters)}var Zo="imperative",fe=(function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e})(fe||{}),We=class{id;url;constructor(t,n){this.id=t,this.url=n}},Tr=class extends We{type=fe.NavigationStart;navigationTrigger;restoredState;constructor(t,n,r="imperative",o=null){super(t,n),this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Yt=class extends We{urlAfterRedirects;type=fe.NavigationEnd;constructor(t,n,r){super(t,n),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Se=(function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e[e.Aborted=4]="Aborted",e})(Se||{}),la=(function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e})(la||{}),Rt=class extends We{reason;code;type=fe.NavigationCancel;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Qt=class extends We{reason;code;type=fe.NavigationSkipped;constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o}},Ko=class extends We{error;target;type=fe.NavigationError;constructor(t,n,r,o){super(t,n),this.error=r,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},da=class extends We{urlAfterRedirects;state;type=fe.RoutesRecognized;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Yl=class extends We{urlAfterRedirects;state;type=fe.GuardsCheckStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ql=class extends We{urlAfterRedirects;state;shouldActivate;type=fe.GuardsCheckEnd;constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Kl=class extends We{urlAfterRedirects;state;type=fe.ResolveStart;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Jl=class extends We{urlAfterRedirects;state;type=fe.ResolveEnd;constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Xl=class{route;type=fe.RouteConfigLoadStart;constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},ed=class{route;type=fe.RouteConfigLoadEnd;constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},td=class{snapshot;type=fe.ChildActivationStart;constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},nd=class{snapshot;type=fe.ChildActivationEnd;constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},rd=class{snapshot;type=fe.ActivationStart;constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},od=class{snapshot;type=fe.ActivationEnd;constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}};var Jo=class{},Mr=class{url;navigationBehaviorOptions;constructor(t,n){this.url=t,this.navigationBehaviorOptions=n}};function yb(e){return!(e instanceof Jo)&&!(e instanceof Mr)}function vb(e,t){return e.providers&&!e._injector&&(e._injector=Ao(e.providers,t,`Route: ${e.path}`)),e._injector??t}function ot(e){return e.outlet||N}function Db(e,t){let n=e.filter(r=>ot(r)===t);return n.push(...e.filter(r=>ot(r)!==t)),n}function Nr(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){let n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}var id=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Nr(this.route?.snapshot)??this.rootInjector}constructor(t){this.rootInjector=t,this.children=new ni(this.rootInjector)}},ni=(()=>{class e{rootInjector;contexts=new Map;constructor(n){this.rootInjector=n}onChildOutletCreated(n,r){let o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){let r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new id(this.rootInjector),this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}static \u0275fac=function(r){return new(r||e)(I(X))};static \u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),fa=class{_root;constructor(t){this._root=t}get root(){return this._root.value}parent(t){let n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){let n=sd(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){let n=sd(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){let n=ad(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return ad(t,this._root).map(n=>n.value)}};function sd(e,t){if(e===t.value)return t;for(let n of t.children){let r=sd(e,n);if(r)return r}return null}function ad(e,t){if(e===t.value)return[t];for(let n of t.children){let r=ad(e,n);if(r.length)return r.unshift(t),r}return[]}var xe=class{value;children;constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}};function Cr(e){let t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}var ha=class extends fa{snapshot;constructor(t,n){super(t),this.snapshot=n,pd(this,t)}toString(){return this.snapshot.toString()}};function Tm(e){let t=Eb(e),n=new ue([new Pn("",{})]),r=new ue({}),o=new ue({}),i=new ue({}),s=new ue(""),a=new Vn(n,r,i,s,o,N,e,t.root);return a.snapshot=t.root,new ha(new xe(a,[]),t)}function Eb(e){let t={},n={},r={},i=new wr([],t,r,"",n,N,e,null,{});return new ga("",new xe(i,[]))}var Vn=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(t,n,r,o,i,s,a,c){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(V(u=>u[ti]))??x(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(V(t=>Ir(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(V(t=>Ir(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function pa(e,t,n="emptyOnly"){let r,{routeConfig:o}=e;return t!==null&&(n==="always"||o?.path===""||!t.component&&!t.routeConfig?.loadComponent)?r={params:m(m({},t.params),e.params),data:m(m({},t.data),e.data),resolve:m(m(m(m({},e.data),t.data),o?.data),e._resolvedData)}:r={params:m({},e.params),data:m({},e.data),resolve:m(m({},e.data),e._resolvedData??{})},o&&Am(o)&&(r.resolve[ti]=o.title),r}var wr=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[ti]}constructor(t,n,r,o,i,s,a,c,u){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=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??=Ir(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Ir(this.queryParams),this._queryParamMap}toString(){let t=this.url.map(r=>r.toString()).join("/"),n=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${t}', path:'${n}')`}},ga=class extends fa{url;constructor(t,n){super(n),this.url=t,pd(this,n)}toString(){return Mm(this._root)}};function pd(e,t){t.value._routerState=e,t.children.forEach(n=>pd(e,n))}function Mm(e){let t=e.children.length>0?` { ${e.children.map(Mm).join(", ")} } `:"";return`${e.value}${t}`}function Hl(e){if(e.snapshot){let t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,pt(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),pt(t.params,n.params)||e.paramsSubject.next(n.params),qw(t.url,n.url)||e.urlSubject.next(n.url),pt(t.data,n.data)||e.dataSubject.next(n.data)}else e.snapshot=e._futureSnapshot,e.dataSubject.next(e._futureSnapshot.data)}function cd(e,t){let n=pt(e.params,t.params)&&Qw(e.url,t.url),r=!e.parent!=!t.parent;return n&&!r&&(!e.parent||cd(e.parent,t.parent))}function Am(e){return typeof e.title=="string"||e.title===null}var Cb=new E(""),Nm=(()=>{class e{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=N;activateEvents=new oe;deactivateEvents=new oe;attachEvents=new oe;detachEvents=new oe;routerOutletData=xg();parentContexts=p(ni);location=p(Mo);changeDetector=p(Lo);inputBinder=p(Da,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(n){if(n.name){let{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new D(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new D(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new D(4012,!1);this.location.detach();let n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){let n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new D(4013,!1);this._activatedRoute=n;let o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new ud(n,a,o.injector,this.routerOutletData);this.activated=o.createComponent(s,{index:o.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||e)};static \u0275dir=He({type:e,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[fr]})}return e})(),ud=class{route;childContexts;parent;outletData;constructor(t,n,r,o){this.route=t,this.childContexts=n,this.parent=r,this.outletData=o}get(t,n){return t===Vn?this.route:t===ni?this.childContexts:t===Cb?this.outletData:this.parent.get(t,n)}},Da=new E("");var Rm=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275cmp=No({type:e,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,o){r&1&&gr(0,"router-outlet")},dependencies:[Nm],encapsulation:2})}return e})();function gd(e){let t=e.children&&e.children.map(gd),n=t?k(m({},e),{children:t}):m({},e);return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==N&&(n.component=Rm),n}function _b(e,t,n){let r=Xo(e,t._root,n?n._root:void 0);return new ha(r,t)}function Xo(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){let r=n.value;r._futureSnapshot=t.value;let o=wb(e,t,n);return new xe(r,o)}else{if(e.shouldAttach(t.value)){let i=e.retrieve(t.value);if(i!==null){let s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>Xo(e,a)),s}}let r=bb(t.value),o=t.children.map(i=>Xo(e,i));return new xe(r,o)}}function wb(e,t,n){return t.children.map(r=>{for(let o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return Xo(e,r,o);return Xo(e,r)})}function bb(e){return new Vn(new ue(e.url),new ue(e.params),new ue(e.queryParams),new ue(e.fragment),new ue(e.data),e.outlet,e.component,e)}var ei=class{redirectTo;navigationBehaviorOptions;constructor(t,n){this.redirectTo=t,this.navigationBehaviorOptions=n}},xm="ngNavigationCancelingError";function ma(e,t){let{redirectTo:n,navigationBehaviorOptions:r}=Sr(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=Om(!1,Se.Redirect);return o.url=n,o.navigationBehaviorOptions=r,o}function Om(e,t){let n=new Error(`NavigationCancelingError: ${e||""}`);return n[xm]=!0,n.cancellationCode=t,n}function Ib(e){return km(e)&&Sr(e.url)}function km(e){return!!e&&e[xm]}var Sb=(e,t,n,r)=>V(o=>(new ld(t,o.targetRouterState,o.currentRouterState,n,r).activate(e),o)),ld=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(t,n,r,o,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(t){let n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),Hl(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){let o=Cr(n);t.children.forEach(i=>{let s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(o===i)if(o.component){let s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=Cr(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){let r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=Cr(t);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){let o=Cr(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new od(i.value.snapshot))}),t.children.length&&this.forwardEvent(new nd(t.value.snapshot))}activateRoutes(t,n,r){let o=t.value,i=n?n.value:null;if(Hl(o),o===i)if(o.component){let s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(o.component){let s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Hl(a.route.value),this.activateChildRoutes(t,null,s.children)}else s.attachRef=null,s.route=o,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}else this.activateChildRoutes(t,null,r)}},ya=class{path;route;constructor(t){this.path=t,this.route=this.path[this.path.length-1]}},br=class{component;route;constructor(t,n){this.component=t,this.route=n}};function Tb(e,t,n){let r=e._root,o=t?t._root:null;return qo(r,o,n,[r.value])}function Mb(e){let t=e.routeConfig?e.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:e,guards:t}}function Rr(e,t){let n=Symbol(),r=t.get(e,n);return r===n?typeof e=="function"&&!Ac(e)?e:t.get(e):r}function qo(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=Cr(t);return e.children.forEach(s=>{Ab(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>Yo(a,n.getContext(s),o)),o}function Ab(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let c=Nb(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new ya(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?qo(e,t,a?a.children:null,r,o):qo(e,t,n,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new br(a.outlet.component,s))}else s&&Yo(t,a,o),o.canActivateChecks.push(new ya(r)),i.component?qo(e,null,a?a.children:null,r,o):qo(e,null,n,r,o);return o}function Nb(e,t,n){if(typeof n=="function")return n(e,t);switch(n){case"pathParamsChange":return!Fn(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Fn(e.url,t.url)||!pt(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!cd(e,t)||!pt(e.queryParams,t.queryParams);case"paramsChange":default:return!cd(e,t)}}function Yo(e,t,n){let r=Cr(e),o=e.value;Object.entries(r).forEach(([i,s])=>{o.component?t?Yo(s,t.children.getContext(i),n):Yo(s,null,n):Yo(s,t,n)}),o.component?t&&t.outlet&&t.outlet.isActivated?n.canDeactivateChecks.push(new br(t.outlet.component,o)):n.canDeactivateChecks.push(new br(null,o)):n.canDeactivateChecks.push(new br(null,o))}function ri(e){return typeof e=="function"}function Rb(e){return typeof e=="boolean"}function xb(e){return e&&ri(e.canLoad)}function Ob(e){return e&&ri(e.canActivate)}function kb(e){return e&&ri(e.canActivateChild)}function Pb(e){return e&&ri(e.canDeactivate)}function Fb(e){return e&&ri(e.canMatch)}function Pm(e){return e instanceof rn||e?.name==="EmptyError"}var ra=Symbol("INITIAL_VALUE");function Ar(){return Fe(e=>ac(e.map(t=>t.pipe(mt(1),lc(ra)))).pipe(V(t=>{for(let n of t)if(n!==!0){if(n===ra)return ra;if(n===!1||Lb(n))return n}return!0}),Pe(t=>t!==ra),mt(1)))}function Lb(e){return Sr(e)||e instanceof ei}function Fm(e){return e.aborted?x(void 0).pipe(mt(1)):new P(t=>{let n=()=>{t.next(),t.complete()};return e.addEventListener("abort",n),()=>e.removeEventListener("abort",n)})}function Lm(e){return Kr(Fm(e))}function Vb(e,t){return De(n=>{let{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return s.length===0&&i.length===0?x(k(m({},n),{guardsResult:!0})):jb(s,r,o,e).pipe(De(a=>a&&Rb(a)?Bb(r,i,e,t):x(a)),V(a=>k(m({},n),{guardsResult:a})))})}function jb(e,t,n,r){return J(e).pipe(De(o=>Gb(o.component,o.route,n,t,r)),yt(o=>o!==!0,!0))}function Bb(e,t,n,r){return J(t).pipe(Yn(o=>Zn(Hb(o.route.parent,r),Ub(o.route,r),zb(e,o.path,n),$b(e,o.route,n))),yt(o=>o!==!0,!0))}function Ub(e,t){return e!==null&&t&&t(new rd(e)),x(!0)}function Hb(e,t){return e!==null&&t&&t(new td(e)),x(!0)}function $b(e,t,n){let r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||r.length===0)return x(!0);let o=r.map(i=>Zr(()=>{let s=Nr(t)??n,a=Rr(i,s),c=Ob(a)?a.canActivate(t,e):de(s,()=>a(t,e));return jn(c).pipe(yt())}));return x(o).pipe(Ar())}function zb(e,t,n){let r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>Mb(s)).filter(s=>s!==null).map(s=>Zr(()=>{let a=s.guards.map(c=>{let u=Nr(s.node)??n,l=Rr(c,u),d=kb(l)?l.canActivateChild(r,e):de(u,()=>l(r,e));return jn(d).pipe(yt())});return x(a).pipe(Ar())}));return x(i).pipe(Ar())}function Gb(e,t,n,r,o){let i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!i||i.length===0)return x(!0);let s=i.map(a=>{let c=Nr(t)??o,u=Rr(a,c),l=Pb(u)?u.canDeactivate(e,t,n,r):de(c,()=>u(e,t,n,r));return jn(l).pipe(yt())});return x(s).pipe(Ar())}function qb(e,t,n,r,o){let i=t.canLoad;if(i===void 0||i.length===0)return x(!0);let s=i.map(a=>{let c=Rr(a,e),u=xb(c)?c.canLoad(t,n):de(e,()=>c(t,n)),l=jn(u);return o?l.pipe(Lm(o)):l});return x(s).pipe(Ar(),Vm(r))}function Vm(e){return rc(Ee(t=>{if(typeof t!="boolean")throw ma(e,t)}),V(t=>t===!0))}function Wb(e,t,n,r,o){let i=t.canMatch;if(!i||i.length===0)return x(!0);let s=i.map(a=>{let c=Rr(a,e),u=Fb(c)?c.canMatch(t,n):de(e,()=>c(t,n)),l=jn(u);return o?l.pipe(Lm(o)):l});return x(s).pipe(Ar(),Vm(r))}var kn=class jm extends Error{segmentGroup;constructor(t){super(),this.segmentGroup=t||null,Object.setPrototypeOf(this,jm.prototype)}},dd=class Bm extends Error{urlTree;constructor(t){super(),this.urlTree=t,Object.setPrototypeOf(this,Bm.prototype)}};function Zb(e){throw new D(4e3,!1)}function Yb(e){throw Om(!1,Se.GuardRejected)}var Qb=class{urlSerializer;urlTree;constructor(t,n){this.urlSerializer=t,this.urlTree=n}async lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),o.numberOfChildren===0)return r;if(o.numberOfChildren>1||!o.children[N])throw Zb(`${t.redirectTo}`);o=o.children[N]}}async applyRedirectCommands(t,n,r,o,i){let s=await Kb(n,o,i);if(s instanceof gt)throw new dd(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),t,r);if(s[0]==="/")throw new dd(a);return a}applyRedirectCreateUrlTree(t,n,r,o){let i=this.createSegmentGroup(t,n.root,r,o);return new gt(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){let r={};return Object.entries(t).forEach(([o,i])=>{if(typeof i=="string"&&i[0]===":"){let a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(t,n,r,o){let i=this.createSegments(t,n.segments,r,o),s={};return Object.entries(n.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(t,c,r,o)}),new $(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path[0]===":"?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){let o=r[n.path.substring(1)];if(!o)throw new D(4001,!1);return o}findOrReturn(t,n){let r=0;for(let o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}};function Kb(e,t,n){if(typeof e=="string")return Promise.resolve(e);let r=e,{queryParams:o,fragment:i,routeConfig:s,url:a,outlet:c,params:u,data:l,title:d}=t;return aa(jn(de(n,()=>r({params:u,data:l,queryParams:o,fragment:i,routeConfig:s,url:a,outlet:c,title:d}))))}var fd={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Jb(e,t,n,r,o,i){let s=Um(e,t,n);return s.matched?(r=vb(t,r),Wb(r,t,n,o,i).pipe(V(a=>a===!0?s:m({},fd)))):x(s)}function Um(e,t,n){if(t.path==="**")return Xb(n);if(t.path==="")return t.pathMatch==="full"&&(e.hasChildren()||n.length>0)?m({},fd):{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};let o=(t.matcher||Gw)(n,e,t);if(!o)return m({},fd);let i={};Object.entries(o.posParams??{}).forEach(([a,c])=>{i[a]=c.path});let s=o.consumed.length>0?m(m({},i),o.consumed[o.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function Xb(e){return{matched:!0,parameters:e.length>0?hm(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}function um(e,t,n,r){return n.length>0&&nI(e,n,r)?{segmentGroup:new $(t,tI(r,new $(n,e.children))),slicedSegments:[]}:n.length===0&&rI(e,n,r)?{segmentGroup:new $(e.segments,eI(e,n,r,e.children)),slicedSegments:n}:{segmentGroup:new $(e.segments,e.children),slicedSegments:n}}function eI(e,t,n,r){let o={};for(let i of n)if(Ea(e,t,i)&&!r[ot(i)]){let s=new $([],{});o[ot(i)]=s}return m(m({},r),o)}function tI(e,t){let n={};n[N]=t;for(let r of e)if(r.path===""&&ot(r)!==N){let o=new $([],{});n[ot(r)]=o}return n}function nI(e,t,n){return n.some(r=>Ea(e,t,r)&&ot(r)!==N)}function rI(e,t,n){return n.some(r=>Ea(e,t,r))}function Ea(e,t,n){return(e.hasChildren()||t.length>0)&&n.pathMatch==="full"?!1:n.path===""}function oI(e,t,n){return t.length===0&&!e.children[n]}var iI=class{};async function sI(e,t,n,r,o,i,s="emptyOnly",a){return new cI(e,t,n,r,o,s,i,a).recognize()}var aI=31,cI=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(t,n,r,o,i,s,a,c){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.abortSignal=c,this.applyRedirects=new Qb(this.urlSerializer,this.urlTree)}noMatchError(t){return new D(4002,`'${t.segmentGroup}'`)}async recognize(){let t=um(this.urlTree.root,[],[],this.config).segmentGroup,{children:n,rootSnapshot:r}=await this.match(t),o=new xe(r,n),i=new ga("",o),s=lb(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s}}async match(t){let n=new wr([],Object.freeze({}),Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),N,this.rootComponentType,null,{});try{return{children:await this.processSegmentGroup(this.injector,this.config,t,N,n),rootSnapshot:n}}catch(r){if(r instanceof dd)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof kn?this.noMatchError(r):r}}async processSegmentGroup(t,n,r,o,i){if(r.segments.length===0&&r.hasChildren())return this.processChildren(t,n,r,i);let s=await this.processSegment(t,n,r,r.segments,o,!0,i);return s instanceof xe?[s]:[]}async processChildren(t,n,r,o){let i=[];for(let c of Object.keys(r.children))c==="primary"?i.unshift(c):i.push(c);let s=[];for(let c of i){let u=r.children[c],l=Db(n,c),d=await this.processSegmentGroup(t,l,u,c,o);s.push(...d)}let a=Hm(s);return uI(a),a}async processSegment(t,n,r,o,i,s,a){for(let c of n)try{return await this.processSegmentAgainstRoute(c._injector??t,n,c,r,o,i,s,a)}catch(u){if(u instanceof kn||Pm(u))continue;throw u}if(oI(r,o,i))return new iI;throw new kn(r)}async processSegmentAgainstRoute(t,n,r,o,i,s,a,c){if(ot(r)!==s&&(s===N||!Ea(o,i,r)))throw new kn(o);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(t,o,r,i,s,c);if(this.allowRedirects&&a)return this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s,c);throw new kn(o)}async expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s,a){let{matched:c,parameters:u,consumedSegments:l,positionalParamSegments:d,remainingSegments:h}=Um(n,o,i);if(!c)throw new kn(n);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>aI&&(this.allowRedirects=!1));let f=new wr(i,u,Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,lm(o),ot(o),o.component??o._loadedComponent??null,o,dm(o)),g=pa(f,a,this.paramsInheritanceStrategy);if(f.params=Object.freeze(g.params),f.data=Object.freeze(g.data),this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let C=await this.applyRedirects.applyRedirectCommands(l,o.redirectTo,d,f,t),v=await this.applyRedirects.lineralizeSegments(o,C);return this.processSegment(t,r,n,v.concat(h),s,!1,a)}async matchSegmentAgainstRoute(t,n,r,o,i,s){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let a=await aa(Jb(n,r,o,t,this.urlSerializer,this.abortSignal));if(r.path==="**"&&(n.children={}),!a?.matched)throw new kn(n);t=r._injector??t;let{routes:c}=await this.getChildConfig(t,r,o),u=r._loadedInjector??t,{parameters:l,consumedSegments:d,remainingSegments:h}=a,f=new wr(d,l,Object.freeze(m({},this.urlTree.queryParams)),this.urlTree.fragment,lm(r),ot(r),r.component??r._loadedComponent??null,r,dm(r)),g=pa(f,s,this.paramsInheritanceStrategy);f.params=Object.freeze(g.params),f.data=Object.freeze(g.data);let{segmentGroup:C,slicedSegments:v}=um(n,d,h,c);if(v.length===0&&C.hasChildren()){let ke=await this.processChildren(u,c,C,f);return new xe(f,ke)}if(c.length===0&&v.length===0)return new xe(f,[]);let y=ot(r)===i,re=await this.processSegment(u,c,C,v,y?N:i,!0,f);return new xe(f,re instanceof xe?[re]:[])}async getChildConfig(t,n,r){if(n.children)return{routes:n.children,injector:t};if(n.loadChildren){if(n._loadedRoutes!==void 0)return{routes:n._loadedRoutes,injector:n._loadedInjector};if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(await aa(qb(t,n,r,this.urlSerializer,this.abortSignal))){let i=await this.configLoader.loadChildren(t,n);return n._loadedRoutes=i.routes,n._loadedInjector=i.injector,i}throw Yb(n)}return{routes:[],injector:t}}};function uI(e){e.sort((t,n)=>t.value.outlet===N?-1:n.value.outlet===N?1:t.value.outlet.localeCompare(n.value.outlet))}function lI(e){let t=e.value.routeConfig;return t&&t.path===""}function Hm(e){let t=[],n=new Set;for(let r of e){if(!lI(r)){t.push(r);continue}let o=t.find(i=>r.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...r.children),n.add(o)):t.push(r)}for(let r of n){let o=Hm(r.children);t.push(new xe(r.value,o))}return t.filter(r=>!n.has(r))}function lm(e){return e.data||{}}function dm(e){return e.resolve||{}}var dI=new E("",{factory:()=>sI});function fI(e,t,n,r,o,i,s){let a=e.get(dI);return De(c=>x(c).pipe(Fe(u=>a(e,t,n,r,u.extractedUrl,o,i,s)),V(({state:u,tree:l})=>k(m({},c),{targetSnapshot:u,urlAfterRedirects:l}))))}function hI(e,t){return De(n=>{let{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return x(n);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 $m(c))s.add(u);let a=0;return J(s).pipe(Yn(c=>i.has(c)?pI(c,r,e,t):(c.data=pa(c,c.parent,e).resolve,x(void 0))),Ee(()=>a++),Zi(1),De(c=>a===s.size?x(n):_e))})}function $m(e){let t=e.children.map(n=>$m(n)).flat();return[e,...t]}function pI(e,t,n,r){let o=e.routeConfig,i=e._resolve;return o?.title!==void 0&&!Am(o)&&(i[ti]=o.title),Zr(()=>(e.data=pa(e,e.parent,n).resolve,gI(i,e,t,r).pipe(V(s=>(e._resolvedData=s,e.data=m(m({},e.data),s),null)))))}function gI(e,t,n,r){let o=Gl(e);if(o.length===0)return x({});let i={};return J(o).pipe(De(s=>mI(e[s],t,n,r).pipe(yt(),Ee(a=>{if(a instanceof ei)throw ma(new Ln,a);i[s]=a}))),Zi(1),V(()=>i),Yr(s=>Pm(s)?_e:sc(s)))}function mI(e,t,n,r){let o=Nr(t)??r,i=Rr(e,o),s=i.resolve?i.resolve(t,n):de(o,()=>i(t,n));return jn(s)}function $l(e){return Fe(t=>{let n=e(t);return n?J(n).pipe(V(()=>t)):x(t)})}var zm=(()=>{class e{buildTitle(n){let r,o=n.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===N);return r}getResolvedTitleForRoute(n){return n.data[ti]}static \u0275fac=function(r){return new(r||e)};static \u0275prov=_({token:e,factory:()=>p(yI),providedIn:"root"})}return e})(),yI=(()=>{class e extends zm{title;constructor(n){super(),this.title=n}updateTitle(n){let r=this.buildTitle(n);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||e)(I(rm))};static \u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Ca=new E("",{factory:()=>({})}),_a=new E(""),Gm=(()=>{class e{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=p(El);async loadComponent(n,r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let o=(async()=>{try{let i=await pm(de(n,()=>r.loadComponent())),s=await Wm(qm(i));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s,s}finally{this.componentLoaders.delete(r)}})();return this.componentLoaders.set(r,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=(async()=>{try{let i=await vI(r,this.compiler,n,this.onLoadEndListener);return r._loadedRoutes=i.routes,r._loadedInjector=i.injector,i}finally{this.childrenLoaders.delete(r)}})();return this.childrenLoaders.set(r,o),o}static \u0275fac=function(r){return new(r||e)};static \u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();async function vI(e,t,n,r){let o=await pm(de(n,()=>e.loadChildren())),i=await Wm(qm(o)),s;i instanceof Hs||Array.isArray(i)?s=i:s=await t.compileModuleAsync(i),r&&r(e);let a,c,u=!1;return Array.isArray(s)?(c=s,u=!0):(a=s.create(n).injector,c=a.get(_a,[],{optional:!0,self:!0}).flat()),{routes:c.map(gd),injector:a}}function DI(e){return e&&typeof e=="object"&&"default"in e}function qm(e){return DI(e)?e.default:e}async function Wm(e){return e}var md=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=_({token:e,factory:()=>p(EI),providedIn:"root"})}return e})(),EI=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}static \u0275fac=function(r){return new(r||e)};static \u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Zm=new E("");var CI=()=>{},Ym=new E(""),Qm=(()=>{class e{currentNavigation=q(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=q(null);events=new se;transitionAbortWithErrorSubject=new se;configLoader=p(Gm);environmentInjector=p(X);destroyRef=p(bt);urlSerializer=p(va);rootContexts=p(ni);location=p(vr);inputBindingEnabled=p(Da,{optional:!0})!==null;titleStrategy=p(zm);options=p(Ca,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=p(md);createViewTransition=p(Zm,{optional:!0});navigationErrorHandler=p(Ym,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>x(void 0);rootComponentType=null;destroyed=!1;constructor(){let n=o=>this.events.next(new Xl(o)),r=o=>this.events.next(new ed(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=n,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(n){let r=++this.navigationId;ye(()=>{this.transitions?.next(k(m({},n),{extractedUrl:this.urlHandlingStrategy.extract(n.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r}))})}setupNavigations(n){return this.transitions=new ue(null),this.transitions.pipe(Pe(r=>r!==null),Fe(r=>{let o=!1,i=new AbortController;return x(r).pipe(Fe(s=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",Se.SupersededByNewNavigation),_e;this.currentTransition=r;let a=this.lastSuccessfulNavigation();this.currentNavigation.set({id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,targetBrowserUrl:typeof s.extras.browserUrl=="string"?this.urlSerializer.parse(s.extras.browserUrl):s.extras.browserUrl,trigger:s.source,extras:s.extras,previousNavigation:a?k(m({},a),{previousNavigation:null}):null,abort:()=>i.abort()});let c=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),u=s.extras.onSameUrlNavigation??n.onSameUrlNavigation;if(!c&&u!=="reload")return this.events.next(new Qt(s.id,this.urlSerializer.serialize(s.rawUrl),"",la.IgnoredSameUrlNavigation)),s.resolve(!1),_e;if(this.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return x(s).pipe(Fe(l=>(this.events.next(new Tr(l.id,this.urlSerializer.serialize(l.extractedUrl),l.source,l.restoredState)),l.id!==this.navigationId?_e:Promise.resolve(l))),fI(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy,i.signal),Ee(l=>{r.targetSnapshot=l.targetSnapshot,r.urlAfterRedirects=l.urlAfterRedirects,this.currentNavigation.update(h=>(h.finalUrl=l.urlAfterRedirects,h));let d=new da(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(d)}));if(c&&this.urlHandlingStrategy.shouldProcessUrl(s.currentRawUrl)){let{id:l,extractedUrl:d,source:h,restoredState:f,extras:g}=s,C=new Tr(l,this.urlSerializer.serialize(d),h,f);this.events.next(C);let v=Tm(this.rootComponentType).snapshot;return this.currentTransition=r=k(m({},s),{targetSnapshot:v,urlAfterRedirects:d,extras:k(m({},g),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(y=>(y.finalUrl=d,y)),x(r)}else return this.events.next(new Qt(s.id,this.urlSerializer.serialize(s.extractedUrl),"",la.IgnoredByUrlHandlingStrategy)),s.resolve(!1),_e}),Ee(s=>{let a=new Yl(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),V(s=>(this.currentTransition=r=k(m({},s),{guards:Tb(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),r)),Vb(this.environmentInjector,s=>this.events.next(s)),Ee(s=>{if(r.guardsResult=s.guardsResult,s.guardsResult&&typeof s.guardsResult!="boolean")throw ma(this.urlSerializer,s.guardsResult);let a=new Ql(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),Pe(s=>s.guardsResult?!0:(this.cancelNavigationTransition(s,"",Se.GuardRejected),!1)),$l(s=>{if(s.guards.canActivateChecks.length!==0)return x(s).pipe(Ee(a=>{let c=new Kl(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(c)}),Fe(a=>{let c=!1;return x(a).pipe(hI(this.paramsInheritanceStrategy,this.environmentInjector),Ee({next:()=>c=!0,complete:()=>{c||this.cancelNavigationTransition(a,"",Se.NoDataFromResolver)}}))}),Ee(a=>{let c=new Jl(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(c)}))}),$l(s=>{let a=u=>{let l=[];if(u.routeConfig?._loadedComponent)u.component=u.routeConfig?._loadedComponent;else if(u.routeConfig?.loadComponent){let d=Nr(u)??this.environmentInjector;l.push(this.configLoader.loadComponent(d,u.routeConfig).then(h=>{u.component=h}))}for(let d of u.children)l.push(...a(d));return l},c=a(s.targetSnapshot.root);return c.length===0?x(s):J(Promise.all(c).then(()=>s))}),$l(()=>this.afterPreactivation()),Fe(()=>{let{currentSnapshot:s,targetSnapshot:a}=r,c=this.createViewTransition?.(this.environmentInjector,s.root,a.root);return c?J(c).pipe(V(()=>r)):x(r)}),V(s=>{let a=_b(n.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return this.currentTransition=r=k(m({},s),{targetRouterState:a}),this.currentNavigation.update(c=>(c.targetRouterState=a,c)),r}),Ee(()=>{this.events.next(new Jo)}),Sb(this.rootContexts,n.routeReuseStrategy,s=>this.events.next(s),this.inputBindingEnabled),mt(1),Kr(Fm(i.signal).pipe(Pe(()=>!o&&!r.targetRouterState),Ee(()=>{this.cancelNavigationTransition(r,i.signal.reason+"",Se.Aborted)}))),Ee({next:s=>{o=!0,this.currentNavigation.update(a=>(a.abort=CI,a)),this.lastSuccessfulNavigation.set(ye(this.currentNavigation)),this.events.next(new Yt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects))),this.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{o=!0}}),Kr(this.transitionAbortWithErrorSubject.pipe(Ee(s=>{throw s}))),Qr(()=>{i.abort(),o||this.cancelNavigationTransition(r,"",Se.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),Yr(s=>{if(this.destroyed)return r.resolve(!1),_e;if(o=!0,km(s))this.events.next(new Rt(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode)),Ib(s)?this.events.next(new Mr(s.url,s.navigationBehaviorOptions)):r.resolve(!1);else{let a=new Ko(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);try{let c=de(this.environmentInjector,()=>this.navigationErrorHandler?.(a));if(c instanceof ei){let{message:u,cancellationCode:l}=ma(this.urlSerializer,c);this.events.next(new Rt(r.id,this.urlSerializer.serialize(r.extractedUrl),u,l)),this.events.next(new Mr(c.redirectTo,c.navigationBehaviorOptions))}else throw this.events.next(a),s}catch(c){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(c)}}return _e}))}))}cancelNavigationTransition(n,r,o){let i=new Rt(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let n=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=ye(this.currentNavigation),o=r?.targetBrowserUrl??r?.extractedUrl;return n.toString()!==o?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||e)};static \u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function _I(e){return e!==Zo}var wI=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275prov=_({token:e,factory:()=>p(bI),providedIn:"root"})}return e})(),hd=class{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}},bI=(()=>{class e extends hd{static \u0275fac=(()=>{let n;return function(o){return(n||(n=In(e)))(o||e)}})();static \u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),yd=(()=>{class e{urlSerializer=p(va);options=p(Ca,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=p(vr);urlHandlingStrategy=p(md);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new gt;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:n,initialUrl:r,targetBrowserUrl:o}){let i=n!==void 0?this.urlHandlingStrategy.merge(n,r):r,s=o??i;return s instanceof gt?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:n,finalUrl:r,initialUrl:o}){r&&n?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,o),this.routerState=n):this.rawUrlTree=o}routerState=Tm(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:n}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n??this.rawUrlTree)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=_({token:e,factory:()=>p(Km),providedIn:"root"})}return e})(),Km=(()=>{class e extends yd{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{n(r.url,r.state,"popstate")})})}handleRouterEvent(n,r){n instanceof Tr?this.updateStateMemento():n instanceof Qt?this.commitTransition(r):n instanceof da?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof Jo?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):n instanceof Rt&&n.code!==Se.SupersededByNewNavigation&&n.code!==Se.Redirect?this.restoreHistory(r):n instanceof Ko?this.restoreHistory(r,!0):n instanceof Yt&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,{extras:r,id:o}){let{replaceUrl:i,state:s}=r;if(this.location.isCurrentPathEqualTo(n)||i){let a=this.browserPageId,c=m(m({},s),this.generateNgRouterState(o,a));this.location.replaceState(n,"",c)}else{let a=m(m({},s),this.generateNgRouterState(o,this.browserPageId+1));this.location.go(n,"",a)}}restoreHistory(n,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,i=this.currentPageId-o;i!==0?this.location.historyGo(i):this.getCurrentUrlTree()===n.finalUrl&&i===0&&(this.resetInternalState(n),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(n),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return this.canceledNavigationResolution==="computed"?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}static \u0275fac=(()=>{let n;return function(o){return(n||(n=In(e)))(o||e)}})();static \u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Jm(e,t){e.events.pipe(Pe(n=>n instanceof Yt||n instanceof Rt||n instanceof Ko||n instanceof Qt),V(n=>n instanceof Yt||n instanceof Qt?0:(n instanceof Rt?n.code===Se.Redirect||n.code===Se.SupersededByNewNavigation:!1)?2:1),Pe(n=>n!==2),mt(1)).subscribe(()=>{t()})}var II={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},SI={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},vd=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=p(pl);stateManager=p(yd);options=p(Ca,{optional:!0})||{};pendingTasks=p(It);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=p(Qm);urlSerializer=p(va);location=p(vr);urlHandlingStrategy=p(md);injector=p(X);_events=new se;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=p(wI);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=p(_a,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!p(Da,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}eventsSubscription=new ce;subscribeToNavigationEvents(){let n=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,i=ye(this.navigationTransitions.currentNavigation);if(o!==null&&i!==null){if(this.stateManager.handleRouterEvent(r,i),r instanceof Rt&&r.code!==Se.Redirect&&r.code!==Se.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Yt)this.navigated=!0;else if(r instanceof Mr){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),c=m({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||_I(o.source)},s);this.scheduleNavigation(a,Zo,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}yb(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortWithErrorSubject.next(o)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Zo,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,r,o)=>{this.navigateToSyncWithBrowser(n,o,r)})}navigateToSyncWithBrowser(n,r,o){let i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){let c=m({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(i.state=c)}let a=this.parseUrl(n);this.scheduleNavigation(a,r,s,i).catch(c=>{this.disposed||this.injector.get(Xe)(c)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return ye(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(gd),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,r={}){let{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,u=c?this.currentUrlTree.fragment:s,l=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":l=m(m({},this.currentUrlTree.queryParams),i);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}l!==null&&(l=this.removeEmptyProps(l));let d;try{let h=o?o.snapshot:this.routerState.snapshot.root;d=wm(h)}catch{(typeof n[0]!="string"||n[0][0]!=="/")&&(n=[]),d=this.currentUrlTree.root}return bm(d,n,l,u??null,this.urlSerializer)}navigateByUrl(n,r={skipLocationChange:!1}){let o=Sr(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,Zo,null,r)}navigate(n,r={skipLocationChange:!1}){return TI(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){try{return this.urlSerializer.parse(n)}catch{return this.console.warn(Jn(4018,!1)),this.urlSerializer.parse("/")}}isActive(n,r){let o;if(r===!0?o=m({},II):r===!1?o=m({},SI):o=r,Sr(n))return om(this.currentUrlTree,n,o);let i=this.parseUrl(n);return om(this.currentUrlTree,i,o)}removeEmptyProps(n){return Object.entries(n).reduce((r,[o,i])=>(i!=null&&(r[o]=i),r),{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,c,u;s?(a=s.resolve,c=s.reject,u=s.promise):u=new Promise((d,h)=>{a=d,c=h});let l=this.pendingTasks.add();return Jm(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(l))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(d=>Promise.reject(d))}static \u0275fac=function(r){return new(r||e)};static \u0275prov=_({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function TI(e){for(let t=0;t<e.length;t++)if(e[t]==null)throw new D(4008,!1)}var MI=new E("");function Dd(e,...t){return Bt([{provide:_a,multi:!0,useValue:e},[],{provide:Vn,useFactory:AI},{provide:$s,multi:!0,useFactory:NI},t.map(n=>n.\u0275providers)])}function AI(){return p(vd).routerState.root}function NI(){let e=p(Qe);return t=>{let n=e.get(Nn);if(t!==n.components[0])return;let r=e.get(vd),o=e.get(RI);e.get(xI)===1&&r.initialNavigation(),e.get(OI,null,{optional:!0})?.setUpPreloading(),e.get(MI,null,{optional:!0})?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var RI=new E("",{factory:()=>new se}),xI=new E("",{factory:()=>1});var OI=new E("");var Xm=[];var ey={providers:[hu(),Dd(Xm)]};var cy=(()=>{class e{_renderer;_elementRef;onChange=n=>{};onTouched=()=>{};constructor(n,r){this._renderer=n,this._elementRef=r}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}static \u0275fac=function(r){return new(r||e)(te(hr),te(Sn))};static \u0275dir=He({type:e})}return e})(),uy=(()=>{class e extends cy{static \u0275fac=(()=>{let n;return function(o){return(n||(n=In(e)))(o||e)}})();static \u0275dir=He({type:e,features:[qt]})}return e})(),Id=new E("");var PI={provide:Id,useExisting:Lt(()=>Ta),multi:!0};function FI(){let e=qe()?qe().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}var LI=new E(""),Ta=(()=>{class e extends cy{_compositionMode;_composing=!1;constructor(n,r,o){super(n,r),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!FI())}writeValue(n){let r=n??"";this.setProperty("value",r)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}static \u0275fac=function(r){return new(r||e)(te(hr),te(Sn),te(LI,8))};static \u0275dir=He({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){r&1&&Re("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},standalone:!1,features:[Po([PI]),qt]})}return e})();var VI=new E(""),jI=new E("");function ly(e){return e!=null}function dy(e){return An(e)?J(e):e}function fy(e){let t={};return e.forEach(n=>{t=n!=null?m(m({},t),n):t}),Object.keys(t).length===0?null:t}function hy(e,t){return t.map(n=>n(e))}function BI(e){return!e.validate}function py(e){return e.map(t=>BI(t)?t:n=>t.validate(n))}function UI(e){if(!e)return null;let t=e.filter(ly);return t.length==0?null:function(n){return fy(hy(n,t))}}function gy(e){return e!=null?UI(py(e)):null}function HI(e){if(!e)return null;let t=e.filter(ly);return t.length==0?null:function(n){let r=hy(n,t).map(dy);return cc(r).pipe(V(fy))}}function my(e){return e!=null?HI(py(e)):null}function ty(e,t){return e===null?[t]:Array.isArray(e)?[...e,t]:[e,t]}function $I(e){return e._rawValidators}function zI(e){return e._rawAsyncValidators}function Ed(e){return e?Array.isArray(e)?e:[e]:[]}function ba(e,t){return Array.isArray(e)?e.includes(t):e===t}function ny(e,t){let n=Ed(t);return Ed(e).forEach(o=>{ba(n,o)||n.push(o)}),n}function ry(e,t){return Ed(t).filter(n=>!ba(e,n))}var Ia=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=gy(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=my(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return this.control?this.control.hasError(t,n):!1}getError(t,n){return this.control?this.control.getError(t,n):null}},Cd=class extends Ia{name;get formDirective(){return null}get path(){return null}},ci=class extends Ia{_parent=null;name=null;valueAccessor=null},_d=class{_cd;constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}};var yy=(()=>{class e extends _d{constructor(n){super(n)}static \u0275fac=function(r){return new(r||e)(te(ci,2))};static \u0275dir=He({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&$e("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[qt]})}return e})();var oi="VALID",wa="INVALID",xr="PENDING",ii="DISABLED",Bn=class{},Sa=class extends Bn{value;source;constructor(t,n){super(),this.value=t,this.source=n}},si=class extends Bn{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},ai=class extends Bn{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},Or=class extends Bn{status;source;constructor(t,n){super(),this.status=t,this.source=n}};var wd=class extends Bn{source;constructor(t){super(),this.source=t}};function GI(e){return(Ma(e)?e.validators:e)||null}function qI(e){return Array.isArray(e)?gy(e):e||null}function WI(e,t){return(Ma(t)?t.asyncValidators:e)||null}function ZI(e){return Array.isArray(e)?my(e):e||null}function Ma(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}var bd=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,n){this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return ye(this.statusReactive)}set status(t){ye(()=>this.statusReactive.set(t))}_status=Rn(()=>this.statusReactive());statusReactive=q(void 0);get valid(){return this.status===oi}get invalid(){return this.status===wa}get pending(){return this.status==xr}get disabled(){return this.status===ii}get enabled(){return this.status!==ii}errors;get pristine(){return ye(this.pristineReactive)}set pristine(t){ye(()=>this.pristineReactive.set(t))}_pristine=Rn(()=>this.pristineReactive());pristineReactive=q(!0);get dirty(){return!this.pristine}get touched(){return ye(this.touchedReactive)}set touched(t){ye(()=>this.touchedReactive.set(t))}_touched=Rn(()=>this.touchedReactive());touchedReactive=q(!1);get untouched(){return!this.touched}_events=new se;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(ny(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(ny(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(ry(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(ry(t,this._rawAsyncValidators))}hasValidator(t){return ba(this._rawValidators,t)}hasAsyncValidator(t){return ba(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(k(m({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new ai(!0,r))}markAllAsDirty(t={}){this.markAsDirty({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsDirty(t))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new ai(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(k(m({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new si(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new si(!0,r))}markAsPending(t={}){this.status=xr;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Or(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(k(m({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=ii,this.errors=null,this._forEachChild(o=>{o.disable(k(m({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Sa(this.value,r)),this._events.next(new Or(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(k(m({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=oi,this._forEachChild(r=>{r.enable(k(m({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(k(m({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===oi||this.status===xr)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Sa(this.value,n)),this._events.next(new Or(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(k(m({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ii:oi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=xr,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1,shouldHaveEmitted:t!==!1};let r=dy(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new Or(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new oe,this.statusChanges=new oe}_calculateStatus(){return this._allControlsDisabled()?ii:this.errors?wa:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(xr)?xr:this._anyControlsHaveStatus(wa)?wa:oi}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),o=this.pristine!==r;this.pristine=r,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),o&&this._events.next(new si(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new ai(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Ma(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=qI(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=ZI(this._rawAsyncValidators)}};var vy=new E("",{factory:()=>Sd}),Sd="always";function YI(e,t){return[...t.path,e]}function QI(e,t,n=Sd){JI(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||n==="always")&&t.valueAccessor.setDisabledState?.(e.disabled),XI(e,t),tS(e,t),eS(e,t),KI(e,t)}function oy(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function KI(e,t){if(t.valueAccessor.setDisabledState){let n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}function JI(e,t){let n=$I(e);t.validator!==null?e.setValidators(ty(n,t.validator)):typeof n=="function"&&e.setValidators([n]);let r=zI(e);t.asyncValidator!==null?e.setAsyncValidators(ty(r,t.asyncValidator)):typeof r=="function"&&e.setAsyncValidators([r]);let o=()=>e.updateValueAndValidity();oy(t._rawValidators,o),oy(t._rawAsyncValidators,o)}function XI(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,e.updateOn==="change"&&Dy(e,t)})}function eS(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,e.updateOn==="blur"&&e._pendingChange&&Dy(e,t),e.updateOn!=="submit"&&e.markAsTouched()})}function Dy(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function tS(e,t){let n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}function nS(e,t){if(!e.hasOwnProperty("model"))return!1;let n=e.model;return n.isFirstChange()?!0:!Object.is(t,n.currentValue)}function rS(e){return Object.getPrototypeOf(e.constructor)===uy}function oS(e,t){if(!t)return null;Array.isArray(t);let n,r,o;return t.forEach(i=>{i.constructor===Ta?n=i:rS(i)?r=i:o=i}),o||r||n||null}function iy(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function sy(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var iS=class extends bd{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,n,r){super(GI(n),WI(r,n)),this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ma(n)&&(n.nonNullable||n.initialValueIsDefault)&&(sy(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),n.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,n?.emitEvent!==!1&&this._events.next(new wd(this))}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){iy(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){iy(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){sy(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var sS={provide:ci,useExisting:Lt(()=>Td)},ay=Promise.resolve(),Td=(()=>{class e extends ci{_changeDetectorRef;callSetDisabledState;control=new iS;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new oe;constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=oS(this,i)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){let r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),nS(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){QI(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(n){ay.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){let r=n.isDisabled.currentValue,o=r!==0&&wl(r);ay.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?YI(n,this._parent):[n]}static \u0275fac=function(r){return new(r||e)(te(Cd,9),te(VI,10),te(jI,10),te(Id,10),te(Lo,8),te(vy,8))};static \u0275dir=He({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[Po([sS]),qt,fr]})}return e})();var aS={provide:Id,useExisting:Lt(()=>Md),multi:!0},Md=(()=>{class e extends uy{writeValue(n){let r=n??"";this.setProperty("value",r)}registerOnChange(n){this.onChange=r=>{n(r==""?null:parseFloat(r))}}static \u0275fac=(()=>{let n;return function(o){return(n||(n=In(e)))(o||e)}})();static \u0275dir=He({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(r,o){r&1&&Re("input",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[Po([aS]),qt]})}return e})();var cS=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Tt({type:e});static \u0275inj=at({})}return e})();var Ey=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:vy,useValue:n.callSetDisabledState??Sd}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=Tt({type:e});static \u0275inj=at({imports:[cS]})}return e})();var it=Object.create(null);it.open="0";it.close="1";it.ping="2";it.pong="3";it.message="4";it.upgrade="5";it.noop="6";var ui=Object.create(null);Object.keys(it).forEach(e=>{ui[it[e]]=e});var li={type:"error",data:"parser error"};var wy=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",by=typeof ArrayBuffer=="function",Iy=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,di=({type:e,data:t},n,r)=>wy&&t instanceof Blob?n?r(t):Cy(t,r):by&&(t instanceof ArrayBuffer||Iy(t))?n?r(t):Cy(new Blob([t]),r):r(it[e]+(t||"")),Cy=(e,t)=>{let n=new FileReader;return n.onload=function(){let r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function _y(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var Ad;function Sy(e,t){if(wy&&e.data instanceof Blob)return e.data.arrayBuffer().then(_y).then(t);if(by&&(e.data instanceof ArrayBuffer||Iy(e.data)))return t(_y(e.data));di(e,!1,n=>{Ad||(Ad=new TextEncoder),t(Ad.encode(n))})}var Ty="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fi=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<Ty.length;e++)fi[Ty.charCodeAt(e)]=e;var My=e=>{let t=e.length*.75,n=e.length,r,o=0,i,s,a,c;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);let u=new ArrayBuffer(t),l=new Uint8Array(u);for(r=0;r<n;r+=4)i=fi[e.charCodeAt(r)],s=fi[e.charCodeAt(r+1)],a=fi[e.charCodeAt(r+2)],c=fi[e.charCodeAt(r+3)],l[o++]=i<<2|s>>4,l[o++]=(s&15)<<4|a>>2,l[o++]=(a&3)<<6|c&63;return u};var lS=typeof ArrayBuffer=="function",hi=(e,t)=>{if(typeof e!="string")return{type:"message",data:Ay(e,t)};let n=e.charAt(0);return n==="b"?{type:"message",data:dS(e.substring(1),t)}:ui[n]?e.length>1?{type:ui[n],data:e.substring(1)}:{type:ui[n]}:li},dS=(e,t)=>{if(lS){let n=My(e);return Ay(n,t)}else return{base64:!0,data:e}},Ay=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}};var Ny="",Ry=(e,t)=>{let n=e.length,r=new Array(n),o=0;e.forEach((i,s)=>{di(i,!1,a=>{r[s]=a,++o===n&&t(r.join(Ny))})})},xy=(e,t)=>{let n=e.split(Ny),r=[];for(let o=0;o<n.length;o++){let i=hi(n[o],t);if(r.push(i),i.type==="error")break}return r};function Oy(){return new TransformStream({transform(e,t){Sy(e,n=>{let r=n.length,o;if(r<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,r);else if(r<65536){o=new Uint8Array(3);let i=new DataView(o.buffer);i.setUint8(0,126),i.setUint16(1,r)}else{o=new Uint8Array(9);let i=new DataView(o.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(n)})}})}var Nd;function Aa(e){return e.reduce((t,n)=>t+n.length,0)}function Na(e,t){if(e[0].length===t)return e.shift();let n=new Uint8Array(t),r=0;for(let o=0;o<t;o++)n[o]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function ky(e,t){Nd||(Nd=new TextDecoder);let n=[],r=0,o=-1,i=!1;return new TransformStream({transform(s,a){for(n.push(s);;){if(r===0){if(Aa(n)<1)break;let c=Na(n,1);i=(c[0]&128)===128,o=c[0]&127,o<126?r=3:o===126?r=1:r=2}else if(r===1){if(Aa(n)<2)break;let c=Na(n,2);o=new DataView(c.buffer,c.byteOffset,c.length).getUint16(0),r=3}else if(r===2){if(Aa(n)<8)break;let c=Na(n,8),u=new DataView(c.buffer,c.byteOffset,c.length),l=u.getUint32(0);if(l>Math.pow(2,21)-1){a.enqueue(li);break}o=l*Math.pow(2,32)+u.getUint32(4),r=3}else{if(Aa(n)<o)break;let c=Na(n,o);a.enqueue(hi(i?c:Nd.decode(c),t)),r=0}if(o===0||o>e){a.enqueue(li);break}}}})}var Rd=4;function W(e){if(e)return fS(e)}function fS(e){for(var t in W.prototype)e[t]=W.prototype[t];return e}W.prototype.on=W.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};W.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};W.prototype.off=W.prototype.removeListener=W.prototype.removeAllListeners=W.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===t||r.fn===t){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+e],this};W.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,t)}return this};W.prototype.emitReserved=W.prototype.emit;W.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};W.prototype.hasListeners=function(e){return!!this.listeners(e).length};var xt=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),Ce=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Py="arraybuffer";function Ra(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}var hS=Ce.setTimeout,pS=Ce.clearTimeout;function Ot(e,t){t.useNativeTimers?(e.setTimeoutFn=hS.bind(Ce),e.clearTimeoutFn=pS.bind(Ce)):(e.setTimeoutFn=Ce.setTimeout.bind(Ce),e.clearTimeoutFn=Ce.clearTimeout.bind(Ce))}var gS=1.33;function Fy(e){return typeof e=="string"?mS(e):Math.ceil((e.byteLength||e.size)*gS)}function mS(e){let t=0,n=0;for(let r=0,o=e.length;r<o;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function xa(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Ly(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function Vy(e){let t={},n=e.split("&");for(let r=0,o=n.length;r<o;r++){let i=n[r].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}var Oa=class extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}},kt=class extends W{constructor(t){super(),this.writable=!1,Ot(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,n,r){return super.emitReserved("error",new Oa(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){let n=hi(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,n={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(n)}_hostname(){let t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){let n=Ly(t);return n.length?"?"+n:""}};var pi=class extends kt{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";let n=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){let n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};xy(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){let t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,Ry(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=xa()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}};var jy=!1;try{jy=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var By=jy;function yS(){}var xd=class extends pi{constructor(t){if(super(t),typeof location<"u"){let n=location.protocol==="https:",r=location.port;r||(r=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,n){let r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(o,i)=>{this.onError("xhr post error",o,i)})}doPoll(){let t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}},ka=(()=>{class e extends W{constructor(n,r,o){super(),this.createRequest=n,Ot(this,o),this._opts=o,this._method=o.method||"GET",this._uri=r,this._data=o.data!==void 0?o.data:null,this._create()}_create(){var n;let r=Ra(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;let o=this._xhr=this.createRequest(r);try{o.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){o.setDisableHeaderCheck&&o.setDisableHeaderCheck(!0);for(let i in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(i)&&o.setRequestHeader(i,this._opts.extraHeaders[i])}}catch{}if(this._method==="POST")try{o.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{o.setRequestHeader("Accept","*/*")}catch{}(n=this._opts.cookieJar)===null||n===void 0||n.addCookies(o),"withCredentials"in o&&(o.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(o.timeout=this._opts.requestTimeout),o.onreadystatechange=()=>{var i;o.readyState===3&&((i=this._opts.cookieJar)===null||i===void 0||i.parseCookies(o.getResponseHeader("set-cookie"))),o.readyState===4&&(o.status===200||o.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof o.status=="number"?o.status:0)},0))},o.send(this._data)}catch(i){this.setTimeoutFn(()=>{this._onError(i)},0);return}typeof document<"u"&&(this._index=e.requestsCount++,e.requests[this._index]=this)}_onError(n){this.emitReserved("error",n,this._xhr),this._cleanup(!0)}_cleanup(n){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=yS,n)try{this._xhr.abort()}catch{}typeof document<"u"&&delete e.requests[this._index],this._xhr=null}}_onLoad(){let n=this._xhr.responseText;n!==null&&(this.emitReserved("data",n),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}return e.requestsCount=0,e.requests={},e})();if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Uy);else if(typeof addEventListener=="function"){let e="onpagehide"in Ce?"pagehide":"unload";addEventListener(e,Uy,!1)}}function Uy(){for(let e in ka.requests)ka.requests.hasOwnProperty(e)&&ka.requests[e].abort()}var vS=(function(){let e=Hy({xdomain:!1});return e&&e.responseType!==null})(),Kt=class extends xd{constructor(t){super(t);let n=t&&t.forceBase64;this.supportsBinary=vS&&!n}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new ka(Hy,this.uri(),t)}};function Hy(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||By))return new XMLHttpRequest}catch{}if(!t)try{return new Ce[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var $y=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",kd=class extends kt{get name(){return"websocket"}doOpen(){let t=this.uri(),n=this.opts.protocols,r=$y?{}:Ra(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,n,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){let r=t[n],o=n===t.length-1;di(r,this.supportsBinary,i=>{try{this.doWrite(r,i)}catch{}o&&xt(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=xa()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}},Od=Ce.WebSocket||Ce.MozWebSocket,Jt=class extends kd{createSocket(t,n,r){return $y?new Od(t,n,r):n?new Od(t,n):new Od(t)}doWrite(t,n){this.ws.send(n)}};var kr=class extends kt{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{let n=ky(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),o=Oy();o.readable.pipeTo(t.writable),this._writer=o.writable.getWriter();let i=()=>{r.read().then(({done:a,value:c})=>{a||(this.onPacket(c),i())}).catch(a=>{})};i();let s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this._writer.write(s).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let n=0;n<t.length;n++){let r=t[n],o=n===t.length-1;this._writer.write(r).then(()=>{o&&xt(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this._transport)===null||t===void 0||t.close()}};var Pd={websocket:Jt,webtransport:kr,polling:Kt};var DS=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,ES=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Pr(e){if(e.length>8e3)throw"URI too long";let t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=DS.exec(e||""),i={},s=14;for(;s--;)i[ES[s]]=o[s]||"";return n!=-1&&r!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=CS(i,i.path),i.queryKey=_S(i,i.query),i}function CS(e,t){let n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function _S(e,t){let n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,i){o&&(n[o]=i)}),n}var Fd=typeof addEventListener=="function"&&typeof removeEventListener=="function",Pa=[];Fd&&addEventListener("offline",()=>{Pa.forEach(e=>e())},!1);var Fa=(()=>{class e extends W{constructor(n,r){if(super(),this.binaryType=Py,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,n&&typeof n=="object"&&(r=n,n=null),n){let o=Pr(n);r.hostname=o.host,r.secure=o.protocol==="https"||o.protocol==="wss",r.port=o.port,o.query&&(r.query=o.query)}else r.host&&(r.hostname=Pr(r.host).host);Ot(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(o=>{let i=o.prototype.name;this.transports.push(i),this._transportsByName[i]=o}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Vy(this.opts.query)),Fd&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Pa.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(n){let r=Object.assign({},this.opts.query);r.EIO=Rd,r.transport=n,this.id&&(r.sid=this.id);let o=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[n]);return new this._transportsByName[n](o)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let n=this.opts.rememberUpgrade&&e.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(n);r.open(),this.setTransport(r)}setTransport(n){this.transport&&this.transport.removeAllListeners(),this.transport=n,n.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",e.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(n){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",n),this.emitReserved("heartbeat"),n.type){case"open":this.onHandshake(JSON.parse(n.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let r=new Error("server error");r.code=n.data,this._onError(r);break;case"message":this.emitReserved("data",n.data),this.emitReserved("message",n.data);break}}onHandshake(n){this.emitReserved("handshake",n),this.id=n.sid,this.transport.query.sid=n.sid,this._pingInterval=n.pingInterval,this._pingTimeout=n.pingTimeout,this._maxPayload=n.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let n=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+n,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},n),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let n=this._getWritablePackets();this.transport.send(n),this._prevBufferLen=n.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let o=0;o<this.writeBuffer.length;o++){let i=this.writeBuffer[o].data;if(i&&(r+=Fy(i)),o>0&&r>this._maxPayload)return this.writeBuffer.slice(0,o);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let n=Date.now()>this._pingTimeoutTime;return n&&(this._pingTimeoutTime=0,xt(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),n}write(n,r,o){return this._sendPacket("message",n,r,o),this}send(n,r,o){return this._sendPacket("message",n,r,o),this}_sendPacket(n,r,o,i){if(typeof r=="function"&&(i=r,r=void 0),typeof o=="function"&&(i=o,o=null),this.readyState==="closing"||this.readyState==="closed")return;o=o||{},o.compress=o.compress!==!1;let s={type:n,data:r,options:o};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),i&&this.once("flush",i),this.flush()}close(){let n=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),n()},o=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?o():n()}):this.upgrading?o():n()),this}_onError(n){if(e.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",n),this._onClose("transport error",n)}_onClose(n,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Fd&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let o=Pa.indexOf(this._offlineEventListener);o!==-1&&Pa.splice(o,1)}this.readyState="closed",this.id=null,this.emitReserved("close",n,r),this.writeBuffer=[],this._prevBufferLen=0}}}return e.protocol=Rd,e})(),La=class extends Fa{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let n=this.createTransport(t),r=!1;Fa.priorWebsocketSuccess=!1;let o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",d=>{if(!r)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Fa.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(l(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{let h=new Error("probe error");h.transport=n.name,this.emitReserved("upgradeError",h)}}))};function i(){r||(r=!0,l(),n.close(),n=null)}let s=d=>{let h=new Error("probe error: "+d);h.transport=n.name,i(),this.emitReserved("upgradeError",h)};function a(){s("transport closed")}function c(){s("socket closed")}function u(d){n&&d.name!==n.name&&i()}let l=()=>{n.removeListener("open",o),n.removeListener("error",s),n.removeListener("close",a),this.off("close",c),this.off("upgrading",u)};n.once("open",o),n.once("error",s),n.once("close",a),this.once("close",c),this.once("upgrading",u),this._upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){let n=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}},Fr=class extends La{constructor(t,n={}){let r=typeof t=="object"?t:n;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(o=>Pd[o]).filter(o=>!!o)),super(t,r)}};var xH=Fr.protocol;function zy(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=Pr(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";let i=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+i+":"+r.port+t,r.href=r.protocol+"://"+i+(n&&n.port===r.port?"":":"+r.port),r}var Hd={};ev(Hd,{Decoder:()=>Bd,Encoder:()=>jd,PacketType:()=>L,protocol:()=>Yy});var bS=typeof ArrayBuffer=="function",IS=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Gy=Object.prototype.toString,SS=typeof Blob=="function"||typeof Blob<"u"&&Gy.call(Blob)==="[object BlobConstructor]",TS=typeof File=="function"||typeof File<"u"&&Gy.call(File)==="[object FileConstructor]";function mi(e){return bS&&(e instanceof ArrayBuffer||IS(e))||SS&&e instanceof Blob||TS&&e instanceof File}function gi(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(gi(e[n]))return!0;return!1}if(mi(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return gi(e.toJSON(),!0);for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&gi(e[n]))return!0;return!1}function qy(e){let t=[],n=e.data,r=e;return r.data=Ld(n,t),r.attachments=t.length,{packet:r,buffers:t}}function Ld(e,t){if(!e)return e;if(mi(e)){let n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){let n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=Ld(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){let n={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=Ld(e[r],t));return n}return e}function Wy(e,t){return e.data=Vd(e.data,t),delete e.attachments,e}function Vd(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=Vd(e[n],t);else if(typeof e=="object")for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Vd(e[n],t));return e}var MS=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],Yy=5,L=(function(e){return e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK",e})(L||{}),jd=class{constructor(t){this.replacer=t}encode(t){return(t.type===L.EVENT||t.type===L.ACK)&&gi(t)?this.encodeAsBinary({type:t.type===L.EVENT?L.BINARY_EVENT:L.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===L.BINARY_EVENT||t.type===L.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){let n=qy(t),r=this.encodeAsString(n.packet),o=n.buffers;return o.unshift(r),o}};function Zy(e){return Object.prototype.toString.call(e)==="[object Object]"}var Bd=class e extends W{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);let r=n.type===L.BINARY_EVENT;r||n.type===L.BINARY_ACK?(n.type=r?L.EVENT:L.ACK,this.reconstructor=new Ud(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(mi(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0,r={type:Number(t.charAt(0))};if(L[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===L.BINARY_EVENT||r.type===L.BINARY_ACK){let i=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);let s=t.substring(i,n);if(s!=Number(s)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(s)}if(t.charAt(n+1)==="/"){let i=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(i,n)}else r.nsp="/";let o=t.charAt(n+1);if(o!==""&&Number(o)==o){let i=n+1;for(;++n;){let s=t.charAt(n);if(s==null||Number(s)!=s){--n;break}if(n===t.length)break}r.id=Number(t.substring(i,n+1))}if(t.charAt(++n)){let i=this.tryParse(t.substr(n));if(e.isPayloadValid(r.type,i))r.data=i;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case L.CONNECT:return Zy(n);case L.DISCONNECT:return n===void 0;case L.CONNECT_ERROR:return typeof n=="string"||Zy(n);case L.EVENT:case L.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&MS.indexOf(n[0])===-1);case L.ACK:case L.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},Ud=class{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){let n=Wy(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function Oe(e,t,n){return e.on(t,n),function(){e.off(t,n)}}var AS=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Lr=class extends W{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let t=this.io;this.subs=[Oe(t,"open",this.onopen.bind(this)),Oe(t,"packet",this.onpacket.bind(this)),Oe(t,"error",this.onerror.bind(this)),Oe(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){var r,o,i;if(AS.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;let s={type:L.EVENT,data:n};if(s.options={},s.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){let l=this.ids++,d=n.pop();this._registerAckCallback(l,d),s.id=l}let a=(o=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||o===void 0?void 0:o.writable,c=this.connected&&!(!((i=this.io.engine)===null||i===void 0)&&i._hasPingExpired());return this.flags.volatile&&!a||(c?(this.notifyOutgoingListeners(s),this.packet(s)):this.sendBuffer.push(s)),this.flags={},this}_registerAckCallback(t,n){var r;let o=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(o===void 0){this.acks[t]=n;return}let i=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===t&&this.sendBuffer.splice(a,1);n.call(this,new Error("operation has timed out"))},o),s=(...a)=>{this.io.clearTimeoutFn(i),n.apply(this,a)};s.withError=!0,this.acks[t]=s}emitWithAck(t,...n){return new Promise((r,o)=>{let i=(s,a)=>s?o(s):r(a);i.withError=!0,n.push(i),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());let r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...i)=>r!==this._queue[0]?void 0:(o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...i)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;let n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:L.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){let r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case L.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case L.EVENT:case L.BINARY_EVENT:this.onevent(t);break;case L.ACK:case L.BINARY_ACK:this.onack(t);break;case L.DISCONNECT:this.ondisconnect();break;case L.CONNECT_ERROR:this.destroy();let r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){let n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){let n=this._anyListeners.slice();for(let r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){let n=this,r=!1;return function(...o){r||(r=!0,n.packet({type:L.ACK,id:t,data:o}))}}onack(t){let n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:L.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){let n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){let n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let n=this._anyOutgoingListeners.slice();for(let r of n)r.apply(this,t.data)}}};function Un(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Un.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};Un.prototype.reset=function(){this.attempts=0};Un.prototype.setMin=function(e){this.ms=e};Un.prototype.setMax=function(e){this.max=e};Un.prototype.setJitter=function(e){this.jitter=e};var Vr=class extends W{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Ot(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Un({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;let o=n.parser||Hd;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new Fr(this.uri,this.opts);let n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let o=Oe(n,"open",function(){r.onopen(),t&&t()}),i=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},s=Oe(n,"error",i);if(this._timeout!==!1){let a=this._timeout,c=this.setTimeoutFn(()=>{o(),i(new Error("timeout")),n.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(o),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let t=this.engine;this.subs.push(Oe(t,"ping",this.onping.bind(this)),Oe(t,"data",this.ondata.bind(this)),Oe(t,"error",this.onerror.bind(this)),Oe(t,"close",this.onclose.bind(this)),Oe(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){xt(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new Lr(this,t,n),this.nsps[t]=r),r}_destroy(t){let n=Object.keys(this.nsps);for(let r of n)if(this.nsps[r].active)return;this._close()}_packet(t){let n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,n){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let n=this.backoff.duration();this._reconnecting=!0;let r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){let t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}};var yi={};function vi(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};let n=zy(e,t.path||"/socket.io"),r=n.source,o=n.id,i=n.path,s=yi[o]&&i in yi[o].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||s,c;return a?c=new Vr(r,t):(yi[o]||(yi[o]=new Vr(r,t)),c=yi[o]),n.query&&!t.query&&(t.query=n.queryKey),c.socket(n.path,t)}Object.assign(vi,{Manager:Vr,Socket:Lr,io:vi,connect:vi});var NS=(e,t)=>t.timestamp,RS=(e,t)=>t.id;function xS(e,t){if(e&1){let n=mr();w(0,"button",15),Re("click",function(){ge(n);let o=ne(2);return me(o.startRecord())}),F(1,"Start Manually"),A(),w(2,"button",16),Re("click",function(){ge(n);let o=ne(2);return me(o.onGenerateTraffic())}),F(3," \u26A1 Auto-Generate Traffic "),A()}}function OS(e,t){if(e&1){let n=mr();w(0,"button",17),Re("click",function(){ge(n);let o=ne(2);return me(o.stopRecord())}),F(1,"Stop Recording"),A()}}function kS(e,t){if(e&1&&(w(0,"div",13)(1,"span",18),F(2),A(),w(3,"span",19),F(4),A()()),e&2){let n=t.$implicit;R(),pr("ngClass",n.method),R(),ft(n.method),R(2),ft(n.url)}}function PS(e,t){e&1&&(w(0,"div",14),F(1,"Waiting for traffic..."),A())}function FS(e,t){if(e&1){let n=mr();w(0,"div",4)(1,"h3"),F(2,"Configuration"),A(),w(3,"div",5)(4,"label"),F(5,"Target URL (Proxy Destination) "),w(6,"input",6),Ge("ngModelChange",function(o){ge(n);let i=ne();return rt(i.recTarget,o)||(i.recTarget=o),me(o)}),A()(),w(7,"label"),F(8,"Recorder Port "),w(9,"input",7),Ge("ngModelChange",function(o){ge(n);let i=ne();return rt(i.recPort,o)||(i.recPort=o),me(o)}),A()()(),w(10,"div",5)(11,"label"),F(12,"Swagger File Path (for Generation) "),w(13,"input",8),Ge("ngModelChange",function(o){ge(n);let i=ne();return rt(i.genSwagger,o)||(i.genSwagger=o),me(o)}),A()(),w(14,"label"),F(15,"Exclude Endpoints (Generate & Record) "),w(16,"input",9),Ge("ngModelChange",function(o){ge(n);let i=ne();return rt(i.genExclude,o)||(i.genExclude=o),me(o)}),A()()(),w(17,"div",10),Mt(18,xS,4,0)(19,OS,2,0,"button",11),A(),w(20,"div",12),Ro(21,kS,5,3,"div",13,NS,!1,PS,2,0,"div",14),A()()}if(e&2){let n=ne();R(6),ze("ngModel",n.recTarget),R(3),ze("ngModel",n.recPort),R(4),ze("ngModel",n.genSwagger),R(3),ze("ngModel",n.genExclude),R(2),At(n.isRecording()?19:18),R(3),xo(n.liveLogs())}}function LS(e,t){if(e&1&&(w(0,"div",27),gr(1,"div",28),A(),w(2,"p",29),F(3),A()),e&2){let n=ne(2);R(),zs("width",n.replayProgress(),"%"),R(2),ko(" ",n.replayStats().current," / ",n.replayStats().total," requests ")}}function VS(e,t){if(e&1){let n=mr();w(0,"div",4)(1,"div",5)(2,"label"),F(3,"Primary Env (Stable) "),w(4,"input",6),Ge("ngModelChange",function(o){ge(n);let i=ne();return rt(i.repEnv1,o)||(i.repEnv1=o),me(o)}),A()(),w(5,"label"),F(6,"Secondary Env (Test) "),w(7,"input",20),Ge("ngModelChange",function(o){ge(n);let i=ne();return rt(i.repEnv2,o)||(i.repEnv2=o),me(o)}),A()()(),w(8,"div",5)(9,"label"),F(10,"Auth Header (Optional) "),w(11,"input",21),Ge("ngModelChange",function(o){ge(n);let i=ne();return rt(i.repAuth,o)||(i.repAuth=o),me(o)}),A()(),w(12,"label"),F(13,"Ignore JSON Fields "),w(14,"input",22),Ge("ngModelChange",function(o){ge(n);let i=ne();return rt(i.repIgnore,o)||(i.repIgnore=o),me(o)}),A()()(),w(15,"div",23)(16,"label",24),F(17,"Exclude Endpoints (Replay) "),w(18,"input",25),Ge("ngModelChange",function(o){ge(n);let i=ne();return rt(i.repExclude,o)||(i.repExclude=o),me(o)}),A()()(),w(19,"button",26),Re("click",function(){ge(n);let o=ne();return me(o.startReplay())}),F(20," \u{1F680} Replay & Compare "),A(),Mt(21,LS,4,4),A()}if(e&2){let n=ne();R(4),ze("ngModel",n.repEnv1),R(3),ze("ngModel",n.repEnv2),R(4),ze("ngModel",n.repAuth),R(3),ze("ngModel",n.repIgnore),R(4),ze("ngModel",n.repExclude),R(3),At(n.replayProgress()>0?21:-1)}}function jS(e,t){e&1&&(w(0,"div",33),F(1," No report data available. Run a Replay first. "),A())}function BS(e,t){if(e&1&&(w(0,"span"),F(1),A()),e&2){let n=t.$implicit;$e("added",n.added)("removed",n.removed),R(),ft(n.value)}}function US(e,t){if(e&1&&(w(0,"div",37)(1,"pre"),Ro(2,BS,2,5,"span",38,Dl),A()()),e&2){let n=ne().$implicit;R(2),xo(n.diff)}}function HS(e,t){if(e&1&&(w(0,"details")(1,"summary"),F(2,"Details "),w(3,"span",18),F(4),A(),w(5,"span",19),F(6),A()(),w(7,"div",34)(8,"div",35)(9,"span",18),F(10),A(),w(11,"span",19),F(12),A(),w(13,"span",36),F(14),A()(),Mt(15,US,4,0,"div",37),A()()),e&2){let n=t.$implicit;R(),$e("fail-card",!n.match),R(2),pr("ngClass",n.method),R(),ft(n.method),R(2),ft(n.url),R(),$e("fail-card",!n.match),R(2),pr("ngClass",n.method),R(),ft(n.method),R(2),ft(n.url),R(),$e("success",n.match)("fail",!n.match),R(),ko(" ",n.status1," vs ",n.status2," "),R(),At(!n.match&&n.diff?15:-1)}}function $S(e,t){if(e&1&&(w(0,"div",4)(1,"div",30)(2,"div",31),F(3),A(),w(4,"div",32),F(5),A()(),Mt(6,jS,2,0,"div",33),Ro(7,HS,16,17,"details",null,RS),A()),e&2){let n=ne();R(3),yr("\u2705 Passed: ",n.finalStats().passed),R(2),yr("\u274C Failed: ",n.finalStats().failed),R(),At(n.reportData().length===0?6:-1),R(),xo(n.reportData())}}var Va=class e{http=p(jl);socket;mode=q("record");isRecording=q(!1);recTarget=q("http://localhost:8080");recPort=q(3e3);genSwagger=q("./full_documentation.json");genExclude=q("");liveLogs=q([]);repEnv1=q("http://localhost:8080");repEnv2=q("http://localhost:8081");repAuth=q("");repIgnore=q("timestamp,id,_id,date");repExclude=q("");replayStats=q({current:0,total:0});finalStats=q({passed:0,failed:0});reportData=q([]);replayProgress=Rn(()=>{let t=this.replayStats();return t.total>0?t.current/t.total*100:0});setMode(t){this.mode.set(t)}ngOnInit(){this.socket=vi("http://localhost:4200"),this.socket.on("record-log",t=>{this.liveLogs.update(n=>[t,...n].slice(0,100))}),this.socket.on("replay-event",t=>{t.type==="start"?(this.replayStats.set({current:0,total:t.total}),this.finalStats.set({passed:0,failed:0}),this.reportData.set([])):t.type==="progress"?this.replayStats.update(n=>k(m({},n),{current:t.current})):t.type==="complete"&&(this.finalStats.set({passed:t.passed,failed:t.failed}),t.results&&(this.reportData.set(t.results),this.mode.set("report")))}),this.socket.on("record-stopped",()=>{this.isRecording.set(!1),alert("Traffic Generation Complete! Recorder stopped.")})}startRecord(){this.http.post("http://localhost:4200/api/record/start",{target:this.recTarget(),port:this.recPort(),file:"ui-traffic.jsonl"}).subscribe(()=>this.isRecording.set(!0))}stopRecord(){this.http.post("http://localhost:4200/api/record/stop",{}).subscribe(()=>this.isRecording.set(!1))}onGenerateTraffic(){let t=this.genExclude().split(",").map(n=>n.trim()).filter(n=>n);this.http.post("http://localhost:4200/api/generate",{proxyUrl:`http://localhost:${this.recPort()}`,target:this.recTarget(),port:this.recPort(),swaggerFile:this.genSwagger(),exclude:t}).subscribe()}startReplay(){let t=this.repExclude().split(",").map(r=>r.trim()).filter(r=>r),n=this.repIgnore().split(",").map(r=>r.trim()).filter(r=>r);this.http.post("http://localhost:4200/api/replay",{file:"ui-traffic.jsonl",env1:this.repEnv1(),env2:this.repEnv2(),auth:this.repAuth(),ignore:n,exclude:t}).subscribe()}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=No({type:e,selectors:[["app-root"]],decls:16,vars:9,consts:[[1,"container"],[1,"badge"],[1,"tabs"],[3,"click"],[1,"panel"],[1,"controls","grid"],["placeholder","http://localhost:8080",3,"ngModelChange","ngModel"],["type","number","placeholder","3000",3,"ngModelChange","ngModel"],["placeholder","./full_documentation.json",3,"ngModelChange","ngModel"],["placeholder","/logout, /health",3,"ngModelChange","ngModel"],[1,"actions"],[1,"btn-danger","full-width"],[1,"logs-window"],[1,"log-line"],[1,"placeholder"],[1,"btn-primary",3,"click"],[1,"btn-warning",3,"click"],[1,"btn-danger","full-width",3,"click"],[1,"method",3,"ngClass"],[1,"url"],["placeholder","http://localhost:8081",3,"ngModelChange","ngModel"],["placeholder","Bearer eyJ...",3,"ngModelChange","ngModel"],["placeholder","timestamp, id, _id",3,"ngModelChange","ngModel"],[1,"controls"],[2,"width","100%"],["placeholder","/admin, /reset-password",2,"width","100%",3,"ngModelChange","ngModel"],[1,"btn-primary","full-width",3,"click"],[1,"progress-bar"],[1,"fill"],[2,"text-align","center","margin-top","5px"],[1,"summary-box"],[1,"stat","success"],[1,"stat","fail"],[1,"placeholder",2,"color","#7f8c8d","text-align","center","padding","20px"],[1,"card"],[1,"card-header"],[1,"status-badge"],[1,"diff-view"],[3,"added","removed"]],template:function(n,r){n&1&&(w(0,"div",0)(1,"header")(2,"h1"),F(3,"\u{1F6A6} Traffic Mirror "),w(4,"span",1),F(5,"v1.0.0 UI"),A()(),w(6,"div",2)(7,"button",3),Re("click",function(){return r.setMode("record")}),F(8," \u{1F534} Record / Gen "),A(),w(9,"button",3),Re("click",function(){return r.setMode("replay")}),F(10," \u25B6\uFE0F Replay "),A(),w(11,"button",3),Re("click",function(){return r.setMode("report")}),F(12," \u{1F4C4} Report "),A()()(),Mt(13,FS,24,6,"div",4),Mt(14,VS,22,6,"div",4),Mt(15,$S,9,3,"div",4),A()),n&2&&(R(7),$e("active",r.mode()==="record"),R(2),$e("active",r.mode()==="replay"),R(2),$e("active",r.mode()==="report"),R(2),At(r.mode()==="record"?13:-1),R(),At(r.mode()==="replay"?14:-1),R(),At(r.mode()==="report"?15:-1))},dependencies:[Zs,Sl,Ey,Ta,Md,yy,Td],styles:[".container[_ngcontent-%COMP%]{max-width:900px;margin:0 auto;font-family:Segoe UI,sans-serif;padding-bottom:50px}header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;border-bottom:2px solid #eee;padding-bottom:10px}.badge[_ngcontent-%COMP%]{font-size:.5em;background:#8e44ad;color:#fff;padding:2px 5px;border-radius:4px;vertical-align:middle}.tabs[_ngcontent-%COMP%]{display:flex;gap:10px}.tabs[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background:none;border:none;font-size:1rem;padding:8px 12px;cursor:pointer;opacity:.6;border-radius:4px}.tabs[_ngcontent-%COMP%] button.active[_ngcontent-%COMP%]{opacity:1;background:#e1f0fa;color:#2980b9;font-weight:700}.panel[_ngcontent-%COMP%]{background:#fff;padding:20px;border-radius:8px;box-shadow:0 2px 10px #0000000d}.controls[_ngcontent-%COMP%]{gap:15px;margin-bottom:15px}.controls.grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr}label[_ngcontent-%COMP%]{font-size:.85rem;font-weight:600;color:#7f8c8d;display:block;margin-bottom:5px}input[_ngcontent-%COMP%]{width:100%;box-sizing:border-box;padding:10px;border:1px solid #ddd;border-radius:6px;outline:none}input[_ngcontent-%COMP%]:focus{border-color:#3498db}.actions[_ngcontent-%COMP%]{display:flex;gap:10px;margin-bottom:15px}.btn-primary[_ngcontent-%COMP%]{background:#3498db;color:#fff;border:none;padding:12px 20px;border-radius:6px;cursor:pointer;font-weight:600}.btn-warning[_ngcontent-%COMP%]{background:#f39c12;color:#fff;border:none;padding:12px 20px;border-radius:6px;cursor:pointer;font-weight:600}.btn-danger[_ngcontent-%COMP%]{background:#e74c3c;color:#fff;border:none;padding:12px 20px;border-radius:6px;cursor:pointer;font-weight:600}.full-width[_ngcontent-%COMP%]{width:100%}.logs-window[_ngcontent-%COMP%]{background:#2c3e50;color:#ecf0f1;height:300px;overflow-y:auto;padding:15px;border-radius:6px;font-family:monospace;font-size:.85rem}.log-line[_ngcontent-%COMP%]{margin-bottom:5px;padding-bottom:5px;border-bottom:1px solid #34495e;display:flex;align-items:center}.method[_ngcontent-%COMP%]{font-weight:700;margin-right:10px;padding:2px 6px;border-radius:3px;color:#fff;font-size:.7em;min-width:45px;text-align:center;display:inline-block}.method.GET[_ngcontent-%COMP%]{background:#3498db}.method.POST[_ngcontent-%COMP%]{background:#27ae60}.method.PUT[_ngcontent-%COMP%]{background:#f39c12}.method.DELETE[_ngcontent-%COMP%]{background:#c0392b}.summary-box[_ngcontent-%COMP%]{display:flex;gap:20px;margin-bottom:20px}.stat[_ngcontent-%COMP%]{flex:1;padding:15px;border-radius:6px;font-weight:700;text-align:center;color:#fff}.stat.success[_ngcontent-%COMP%]{background:#2ecc71}.stat.fail[_ngcontent-%COMP%]{background:#e74c3c}.card[_ngcontent-%COMP%]{border:1px solid #eee;margin-bottom:10px;border-radius:6px;overflow:hidden}.card-header[_ngcontent-%COMP%]{padding:10px 15px;background:#f9f9f9;display:flex;align-items:center;justify-content:space-between}.fail-card[_ngcontent-%COMP%]{border-left:5px solid #e74c3c}.status-badge[_ngcontent-%COMP%]{font-weight:700;font-size:.9em}.status-badge.fail[_ngcontent-%COMP%]{color:#e74c3c}.status-badge.success[_ngcontent-%COMP%]{color:#2ecc71}.diff-view[_ngcontent-%COMP%]{background:#2c3e50;color:#ecf0f1;padding:15px;font-family:monospace;overflow-x:auto;white-space:pre-wrap}.added[_ngcontent-%COMP%]{background-color:#2ecc71;color:#000}.removed[_ngcontent-%COMP%]{background-color:#e74c3c;color:#fff;text-decoration:line-through}.progress-bar[_ngcontent-%COMP%]{height:10px;background:#eee;border-radius:5px;overflow:hidden;margin-top:15px}.fill[_ngcontent-%COMP%]{height:100%;background:#3498db;transition:width .3s}"]})};kl(Va,ey).catch(e=>console.error(e));
|