homebridge-nest-cam
Version:
Nest cam plugin for homebridge: https://homebridge.io/
1 lines • 435 kB
JavaScript
(self.webpackChunkhomebridge_ui=self.webpackChunkhomebridge_ui||[]).push([[179],{852:(qe,de)=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0})},818:(qe,de,V)=>{"use strict";V.d(de,{y:()=>te});var p=V(3),N=V(813),ie=V(122),ge=V(330);var ve=V(46),B=V(975),pe=V(519);let te=(()=>{class me{constructor(se){se&&(this._subscribe=se)}lift(se){const ee=new me;return ee.source=this,ee.operator=se,ee}subscribe(se,ee,De){const fe=function(me){return me&&me instanceof p.Lv||function(me){return me&&(0,B.m)(me.next)&&(0,B.m)(me.error)&&(0,B.m)(me.complete)}(me)&&(0,N.Nn)(me)}(se)?se:new p.Hp(se,ee,De);return(0,pe.x)(()=>{const{operator:Te,source:z}=this;fe.add(Te?Te.call(fe,z):z?this._subscribe(fe):this._trySubscribe(fe))}),fe}_trySubscribe(se){try{return this._subscribe(se)}catch(ee){se.error(ee)}}forEach(se,ee){return new(ee=le(ee))((De,fe)=>{const Te=new p.Hp({next:z=>{try{se(z)}catch(k){fe(k),Te.unsubscribe()}},error:fe,complete:De});this.subscribe(Te)})}_subscribe(se){var ee;return null===(ee=this.source)||void 0===ee?void 0:ee.subscribe(se)}[ie.L](){return this}pipe(...se){return function(me){return 0===me.length?ge.y:1===me.length?me[0]:function(se){return me.reduce((ee,De)=>De(ee),se)}}(se)(this)}toPromise(se){return new(se=le(se))((ee,De)=>{let fe;this.subscribe(Te=>fe=Te,Te=>De(Te),()=>ee(fe))})}}return me.create=X=>new me(X),me})();function le(me){var X;return null!==(X=null!=me?me:ve.v.Promise)&&void 0!==X?X:Promise}},3:(qe,de,V)=>{"use strict";V.d(de,{Hp:()=>se,Lv:()=>Ue});var p=V(975),N=V(813),ie=V(46),ge=V(922);function ae(){}const Q=pe("C",void 0,void 0);function pe(z,k,ye){return{kind:z,value:k,error:ye}}var te=V(146),le=V(519);class Ue extends N.w0{constructor(k){super(),this.isStopped=!1,k?(this.destination=k,(0,N.Nn)(k)&&k.add(this)):this.destination=Te}static create(k,ye,Qe){return new se(k,ye,Qe)}next(k){this.isStopped?fe(pe("N",k,void 0),this):this._next(k)}error(k){this.isStopped?fe(pe("E",void 0,k),this):(this.isStopped=!0,this._error(k))}complete(){this.isStopped?fe(Q,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(k){this.destination.next(k)}_error(k){try{this.destination.error(k)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Je=Function.prototype.bind;function me(z,k){return Je.call(z,k)}class X{constructor(k){this.partialObserver=k}next(k){const{partialObserver:ye}=this;if(ye.next)try{ye.next(k)}catch(Qe){ee(Qe)}}error(k){const{partialObserver:ye}=this;if(ye.error)try{ye.error(k)}catch(Qe){ee(Qe)}else ee(k)}complete(){const{partialObserver:k}=this;if(k.complete)try{k.complete()}catch(ye){ee(ye)}}}class se extends Ue{constructor(k,ye,Qe){let Fe;if(super(),(0,p.m)(k)||!k)Fe={next:null!=k?k:void 0,error:null!=ye?ye:void 0,complete:null!=Qe?Qe:void 0};else{let xe;this&&ie.v.useDeprecatedNextContext?(xe=Object.create(k),xe.unsubscribe=()=>this.unsubscribe(),Fe={next:k.next&&me(k.next,xe),error:k.error&&me(k.error,xe),complete:k.complete&&me(k.complete,xe)}):Fe=k}this.destination=new X(Fe)}}function ee(z){ie.v.useDeprecatedSynchronousErrorHandling?(0,le.O)(z):(0,ge.h)(z)}function fe(z,k){const{onStoppedNotification:ye}=ie.v;ye&&te.z.setTimeout(()=>ye(z,k))}const Te={closed:!0,next:ae,error:function(z){throw z},complete:ae}},813:(qe,de,V)=>{"use strict";V.d(de,{Lc:()=>Q,w0:()=>ae,Nn:()=>ve});var p=V(975);const ie=(0,V(776).d)(pe=>function(le){pe(this),this.message=le?`${le.length} errors occurred during unsubscription:\n${le.map((Ue,Je)=>`${Je+1}) ${Ue.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=le});var ge=V(308);class ae{constructor(te){this.initialTeardown=te,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let te;if(!this.closed){this.closed=!0;const{_parentage:le}=this;if(le)if(this._parentage=null,Array.isArray(le))for(const me of le)me.remove(this);else le.remove(this);const{initialTeardown:Ue}=this;if((0,p.m)(Ue))try{Ue()}catch(me){te=me instanceof ie?me.errors:[me]}const{_finalizers:Je}=this;if(Je){this._finalizers=null;for(const me of Je)try{B(me)}catch(X){te=null!=te?te:[],X instanceof ie?te=[...te,...X.errors]:te.push(X)}}if(te)throw new ie(te)}}add(te){var le;if(te&&te!==this)if(this.closed)B(te);else{if(te instanceof ae){if(te.closed||te._hasParent(this))return;te._addParent(this)}(this._finalizers=null!==(le=this._finalizers)&&void 0!==le?le:[]).push(te)}}_hasParent(te){const{_parentage:le}=this;return le===te||Array.isArray(le)&&le.includes(te)}_addParent(te){const{_parentage:le}=this;this._parentage=Array.isArray(le)?(le.push(te),le):le?[le,te]:te}_removeParent(te){const{_parentage:le}=this;le===te?this._parentage=null:Array.isArray(le)&&(0,ge.P)(le,te)}remove(te){const{_finalizers:le}=this;le&&(0,ge.P)(le,te),te instanceof ae&&te._removeParent(this)}}ae.EMPTY=(()=>{const pe=new ae;return pe.closed=!0,pe})();const Q=ae.EMPTY;function ve(pe){return pe instanceof ae||pe&&"closed"in pe&&(0,p.m)(pe.remove)&&(0,p.m)(pe.add)&&(0,p.m)(pe.unsubscribe)}function B(pe){(0,p.m)(pe)?pe():pe.unsubscribe()}},46:(qe,de,V)=>{"use strict";V.d(de,{v:()=>p});const p={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},985:(qe,de,V)=>{"use strict";V.d(de,{D:()=>Qe});var p=V(955),N=V(903),ie=V(85),ge=V(499);function ae(Fe,xe=0){return(0,ie.e)((Le,L)=>{Le.subscribe((0,ge.x)(L,G=>(0,N.f)(L,Fe,()=>L.next(G),xe),()=>(0,N.f)(L,Fe,()=>L.complete(),xe),G=>(0,N.f)(L,Fe,()=>L.error(G),xe)))})}function Q(Fe,xe=0){return(0,ie.e)((Le,L)=>{L.add(Fe.schedule(()=>Le.subscribe(L),xe))})}var pe=V(818),le=V(565),Ue=V(975);function me(Fe,xe){if(!Fe)throw new Error("Iterable cannot be null");return new pe.y(Le=>{(0,N.f)(Le,xe,()=>{const L=Fe[Symbol.asyncIterator]();(0,N.f)(Le,xe,()=>{L.next().then(G=>{G.done?Le.complete():Le.next(G.value)})},0,!0)})})}var X=V(21),se=V(450),ee=V(602),De=V(920),fe=V(604),Te=V(626),z=V(559);function Qe(Fe,xe){return xe?function(Fe,xe){if(null!=Fe){if((0,X.c)(Fe))return function(Fe,xe){return(0,p.Xf)(Fe).pipe(Q(xe),ae(xe))}(Fe,xe);if((0,ee.z)(Fe))return function(Fe,xe){return new pe.y(Le=>{let L=0;return xe.schedule(function(){L===Fe.length?Le.complete():(Le.next(Fe[L++]),Le.closed||this.schedule())})})}(Fe,xe);if((0,se.t)(Fe))return function(Fe,xe){return(0,p.Xf)(Fe).pipe(Q(xe),ae(xe))}(Fe,xe);if((0,fe.D)(Fe))return me(Fe,xe);if((0,De.T)(Fe))return function(Fe,xe){return new pe.y(Le=>{let L;return(0,N.f)(Le,xe,()=>{L=Fe[le.h](),(0,N.f)(Le,xe,()=>{let G,H;try{({value:G,done:H}=L.next())}catch(K){return void Le.error(K)}H?Le.complete():Le.next(G)},0,!0)}),()=>(0,Ue.m)(null==L?void 0:L.return)&&L.return()})}(Fe,xe);if((0,z.L)(Fe))return function(Fe,xe){return me((0,z.Q)(Fe),xe)}(Fe,xe)}throw(0,Te.z)(Fe)}(Fe,xe):(0,p.Xf)(Fe)}},955:(qe,de,V)=>{"use strict";V.d(de,{Xf:()=>Je});var p=V(762),N=V(602),ie=V(450),ge=V(818),ae=V(21),Q=V(604),ve=V(626),B=V(920),pe=V(559),te=V(975),le=V(922),Ue=V(122);function Je(z){if(z instanceof ge.y)return z;if(null!=z){if((0,ae.c)(z))return function(z){return new ge.y(k=>{const ye=z[Ue.L]();if((0,te.m)(ye.subscribe))return ye.subscribe(k);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(z);if((0,N.z)(z))return function(z){return new ge.y(k=>{for(let ye=0;ye<z.length&&!k.closed;ye++)k.next(z[ye]);k.complete()})}(z);if((0,ie.t)(z))return function(z){return new ge.y(k=>{z.then(ye=>{k.closed||(k.next(ye),k.complete())},ye=>k.error(ye)).then(null,le.h)})}(z);if((0,Q.D)(z))return De(z);if((0,B.T)(z))return function(z){return new ge.y(k=>{for(const ye of z)if(k.next(ye),k.closed)return;k.complete()})}(z);if((0,pe.L)(z))return function(z){return De((0,pe.Q)(z))}(z)}throw(0,ve.z)(z)}function De(z){return new ge.y(k=>{(function(z,k){var ye,Qe,Fe,xe;return(0,p.mG)(this,void 0,void 0,function*(){try{for(ye=(0,p.KL)(z);!(Qe=yield ye.next()).done;)if(k.next(Qe.value),k.closed)return}catch(Le){Fe={error:Le}}finally{try{Qe&&!Qe.done&&(xe=ye.return)&&(yield xe.call(ye))}finally{if(Fe)throw Fe.error}}k.complete()})})(z,k).catch(ye=>k.error(ye))})}},499:(qe,de,V)=>{"use strict";V.d(de,{x:()=>N});var p=V(3);function N(ge,ae,Q,ve,B){return new ie(ge,ae,Q,ve,B)}class ie extends p.Lv{constructor(ae,Q,ve,B,pe,te){super(ae),this.onFinalize=pe,this.shouldUnsubscribe=te,this._next=Q?function(le){try{Q(le)}catch(Ue){ae.error(Ue)}}:super._next,this._error=B?function(le){try{B(le)}catch(Ue){ae.error(Ue)}finally{this.unsubscribe()}}:super._error,this._complete=ve?function(){try{ve()}catch(le){ae.error(le)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var ae;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:Q}=this;super.unsubscribe(),!Q&&(null===(ae=this.onFinalize)||void 0===ae||ae.call(this))}}}},969:(qe,de,V)=>{"use strict";V.d(de,{U:()=>ie});var p=V(85),N=V(499);function ie(ge,ae){return(0,p.e)((Q,ve)=>{let B=0;Q.subscribe((0,N.x)(ve,pe=>{ve.next(ge.call(ae,pe,B++))}))})}},146:(qe,de,V)=>{"use strict";V.d(de,{z:()=>p});const p={setTimeout(N,ie,...ge){const{delegate:ae}=p;return(null==ae?void 0:ae.setTimeout)?ae.setTimeout(N,ie,...ge):setTimeout(N,ie,...ge)},clearTimeout(N){const{delegate:ie}=p;return((null==ie?void 0:ie.clearTimeout)||clearTimeout)(N)},delegate:void 0}},565:(qe,de,V)=>{"use strict";V.d(de,{h:()=>N});const N="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},122:(qe,de,V)=>{"use strict";V.d(de,{L:()=>p});const p="function"==typeof Symbol&&Symbol.observable||"@@observable"},635:(qe,de,V)=>{"use strict";V.d(de,{_6:()=>Q,jO:()=>ge,yG:()=>ae});var p=V(975);function ie(ve){return ve[ve.length-1]}function ge(ve){return(0,p.m)(ie(ve))?ve.pop():void 0}function ae(ve){return function(ve){return ve&&(0,p.m)(ve.schedule)}(ie(ve))?ve.pop():void 0}function Q(ve,B){return"number"==typeof ie(ve)?ve.pop():B}},308:(qe,de,V)=>{"use strict";function p(N,ie){if(N){const ge=N.indexOf(ie);0<=ge&&N.splice(ge,1)}}V.d(de,{P:()=>p})},776:(qe,de,V)=>{"use strict";function p(N){const ge=N(ae=>{Error.call(ae),ae.stack=(new Error).stack});return ge.prototype=Object.create(Error.prototype),ge.prototype.constructor=ge,ge}V.d(de,{d:()=>p})},519:(qe,de,V)=>{"use strict";V.d(de,{x:()=>ie,O:()=>ge});var p=V(46);let N=null;function ie(ae){if(p.v.useDeprecatedSynchronousErrorHandling){const Q=!N;if(Q&&(N={errorThrown:!1,error:null}),ae(),Q){const{errorThrown:ve,error:B}=N;if(N=null,ve)throw B}}else ae()}function ge(ae){p.v.useDeprecatedSynchronousErrorHandling&&N&&(N.errorThrown=!0,N.error=ae)}},903:(qe,de,V)=>{"use strict";function p(N,ie,ge,ae=0,Q=!1){const ve=ie.schedule(function(){ge(),Q?N.add(this.schedule(null,ae)):this.unsubscribe()},ae);if(N.add(ve),!Q)return ve}V.d(de,{f:()=>p})},330:(qe,de,V)=>{"use strict";function p(N){return N}V.d(de,{y:()=>p})},602:(qe,de,V)=>{"use strict";V.d(de,{z:()=>p});const p=N=>N&&"number"==typeof N.length&&"function"!=typeof N},604:(qe,de,V)=>{"use strict";V.d(de,{D:()=>N});var p=V(975);function N(ie){return Symbol.asyncIterator&&(0,p.m)(null==ie?void 0:ie[Symbol.asyncIterator])}},975:(qe,de,V)=>{"use strict";function p(N){return"function"==typeof N}V.d(de,{m:()=>p})},21:(qe,de,V)=>{"use strict";V.d(de,{c:()=>ie});var p=V(122),N=V(975);function ie(ge){return(0,N.m)(ge[p.L])}},920:(qe,de,V)=>{"use strict";V.d(de,{T:()=>ie});var p=V(565),N=V(975);function ie(ge){return(0,N.m)(null==ge?void 0:ge[p.h])}},450:(qe,de,V)=>{"use strict";V.d(de,{t:()=>N});var p=V(975);function N(ie){return(0,p.m)(null==ie?void 0:ie.then)}},559:(qe,de,V)=>{"use strict";V.d(de,{Q:()=>ie,L:()=>ge});var p=V(762),N=V(975);function ie(ae){return(0,p.FC)(this,arguments,function*(){const ve=ae.getReader();try{for(;;){const{value:B,done:pe}=yield(0,p.qq)(ve.read());if(pe)return yield(0,p.qq)(void 0);yield yield(0,p.qq)(B)}}finally{ve.releaseLock()}})}function ge(ae){return(0,N.m)(null==ae?void 0:ae.getReader)}},85:(qe,de,V)=>{"use strict";V.d(de,{e:()=>ie});var p=V(975);function ie(ge){return ae=>{if(function(ge){return(0,p.m)(null==ge?void 0:ge.lift)}(ae))return ae.lift(function(Q){try{return ge(Q,this)}catch(ve){this.error(ve)}});throw new TypeError("Unable to lift unknown Observable type")}}},922:(qe,de,V)=>{"use strict";V.d(de,{h:()=>ie});var p=V(46),N=V(146);function ie(ge){N.z.setTimeout(()=>{const{onUnhandledError:ae}=p.v;if(!ae)throw ge;ae(ge)})}},626:(qe,de,V)=>{"use strict";function p(N){return new TypeError(`You provided ${null!==N&&"object"==typeof N?"an invalid object":`'${N}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}V.d(de,{z:()=>p})},506:function(qe,de,V){"use strict";var p=V(52).default,N=this&&this.__createBinding||(Object.create?function(me,X,se,ee){void 0===ee&&(ee=se),Object.defineProperty(me,ee,{enumerable:!0,get:function(){return X[se]}})}:function(me,X,se,ee){void 0===ee&&(ee=se),me[ee]=X[se]}),ie=this&&this.__setModuleDefault||(Object.create?function(me,X){Object.defineProperty(me,"default",{enumerable:!0,value:X})}:function(me,X){me.default=X}),ge=this&&this.__importStar||function(me){if(me&&me.__esModule)return me;var X={};if(null!=me)for(var se in me)"default"!==se&&Object.prototype.hasOwnProperty.call(me,se)&&N(X,me,se);return ie(X,me),X};Object.defineProperty(de,"__esModule",{value:!0}),de.AppComponent=void 0;const ae=V(19);V(852);const Q=ge(V(461)),ve=ge(V(48)),B=ge(V(32));function pe(me,X){if(1&me){const se=Q.\u0275\u0275getCurrentView();Q.\u0275\u0275elementStart(0,"div",3),Q.\u0275\u0275elementStart(1,"app-login",4),Q.\u0275\u0275listener("authEvent",function(De){return Q.\u0275\u0275restoreView(se),Q.\u0275\u0275nextContext().setAuthenticated(De)}),Q.\u0275\u0275elementEnd(),Q.\u0275\u0275elementEnd()}2&me&&Q.\u0275\u0275property("@opacity",void 0)}function te(me,X){1&me&&(Q.\u0275\u0275elementStart(0,"span"),Q.\u0275\u0275text(1,"Field Test Mode"),Q.\u0275\u0275elementEnd())}function le(me,X){if(1&me){const se=Q.\u0275\u0275getCurrentView();Q.\u0275\u0275elementStart(0,"div",7),Q.\u0275\u0275elementStart(1,"div",8),Q.\u0275\u0275elementStart(2,"div",9),Q.\u0275\u0275elementStart(3,"div",10),Q.\u0275\u0275template(4,te,2,0,"span",2),Q.\u0275\u0275elementEnd(),Q.\u0275\u0275elementStart(5,"div",11),Q.\u0275\u0275elementStart(6,"p",12),Q.\u0275\u0275text(7),Q.\u0275\u0275elementEnd(),Q.\u0275\u0275elementStart(8,"p",13),Q.\u0275\u0275text(9),Q.\u0275\u0275elementEnd(),Q.\u0275\u0275elementEnd(),Q.\u0275\u0275elementStart(10,"div",14),Q.\u0275\u0275element(11,"img",15),Q.\u0275\u0275elementEnd(),Q.\u0275\u0275elementStart(12,"div",14),Q.\u0275\u0275elementStart(13,"button",16),Q.\u0275\u0275listener("click",function(){return Q.\u0275\u0275restoreView(se),Q.\u0275\u0275nextContext(2).signout()}),Q.\u0275\u0275element(14,"i",17),Q.\u0275\u0275elementEnd(),Q.\u0275\u0275elementEnd(),Q.\u0275\u0275elementEnd(),Q.\u0275\u0275elementEnd(),Q.\u0275\u0275elementEnd()}if(2&me){const se=Q.\u0275\u0275nextContext(2);Q.\u0275\u0275property("@opacity",void 0),Q.\u0275\u0275advance(4),Q.\u0275\u0275property("ngIf",se.ft),Q.\u0275\u0275advance(3),Q.\u0275\u0275textInterpolate(se.profile.name),Q.\u0275\u0275advance(2),Q.\u0275\u0275textInterpolate(se.profile.email),Q.\u0275\u0275advance(2),Q.\u0275\u0275propertyInterpolate("src",se.profile.img,Q.\u0275\u0275sanitizeUrl)}}function Ue(me,X){if(1&me&&(Q.\u0275\u0275elementStart(0,"div"),Q.\u0275\u0275elementStart(1,"div",5),Q.\u0275\u0275template(2,le,15,5,"div",6),Q.\u0275\u0275elementEnd(),Q.\u0275\u0275elementEnd()),2&me){const se=Q.\u0275\u0275nextContext();Q.\u0275\u0275advance(2),Q.\u0275\u0275property("ngIf",se.initialized)}}class Je{constructor(){var X;this.title="homebridge-ui",this.authenticated=!0,this.initialized=!1,this.ft=!1,this.homebridge=window.homebridge,null===(X=this.homebridge)||void 0===X||X.showSpinner()}setAuthenticated(X){var se=this;return p(function*(){if(se.initialized=!1,se.authenticated=X,X){se.showForm();const ee=yield se.homebridge.request("/owner");ee&&(se.profile={name:ee.name,email:ee.email,img:ee.profile_image_url})}se.initialized=!0})()}showForm(X){var se=this;return p(function*(){var ee;const De=se;X||(X=(yield se.homebridge.getPluginConfig())[0]);let fe=(yield se.homebridge.getPluginConfigSchema()).schema;if(fe){fe=yield se.modifySchema(fe);for(const Te in Object.keys(X))fe[Te]||delete X[Te];se.form=se.homebridge.createForm({schema:fe},X),null===(ee=se.homebridge)||void 0===ee||ee.hideSpinner(),se.form.onChange(function(){var Te=p(function*(z){yield De.homebridge.updatePluginConfig([z])});return function(z){return Te.apply(this,arguments)}}())}})()}signout(){var X=this;return p(function*(){var se;X.authenticated=!1,null===(se=X.form)||void 0===se||se.end();const ee=(yield X.homebridge.getPluginConfig())[0];ee&&(ee.refreshToken="",yield self.homebridge.updatePluginConfig([ee]),yield X.homebridge.savePluginConfig()),yield X.homebridge.request("/logout")})()}ngOnInit(){var X=this;return p(function*(){var se,ee,De,fe;if(!X.homebridge)return;const Te=(yield X.homebridge.getPluginConfig())[0];if(!Te)return X.authenticated=!1,void(null===(se=X.homebridge)||void 0===se||se.hideSpinner());const z=Te.refreshToken;if(X.ft=(null===(ee=Te.options)||void 0===ee?void 0:ee.fieldTest)||!1,z)if(X.authenticated=yield X.homebridge.request("/auth",{refreshToken:z,ft:X.ft}),X.authenticated){X.showForm();const k=yield X.homebridge.request("/owner");k&&(X.profile={name:k.name,email:k.email,img:k.profile_image_url})}else null===(De=X.homebridge)||void 0===De||De.hideSpinner();else X.authenticated=!1,null===(fe=X.homebridge)||void 0===fe||fe.hideSpinner();X.initialized=!0})()}modifySchema(X){var se=this;return p(function*(){const ee=yield se.homebridge.request("/cameras");if(ee&&ee.length>0&&X&&X.options&&X.options.properties){const De=ee.some(z=>z.capabilities.includes("indoor_chime")),fe=ee.some(z=>z.capabilities.includes("detectors.on_camera")),Te=ee.some(z=>z.capabilities.includes("stranger_detection"));if(De||(delete X.options.properties.doorbellAlerts,delete X.options.properties.doorbellSwitch,delete X.options.properties.chimeSwitch),fe||(delete X.options.properties.alertCheckRate,delete X.options.properties.alertCooldownRate,delete X.options.properties.alertTypes,delete X.options.properties.importantOnly,delete X.options.properties.motionDetection),!Te&&X.options.properties.alertTypes&&X.options.properties.alertTypes.items&&(X.options.properties.alertTypes.items.oneOf=X.options.properties.alertTypes.items.oneOf.filter(k=>{const ye=k.title;return"Package Retrieved"!==ye&&"Package Delivered"!==ye&&"Face"!==ye})),Te&&X.options.properties.alertTypes&&X.options.properties.alertTypes.items){const z=yield se.homebridge.request("/faces"),k=X.options.properties.alertTypes.items.oneOf;k.push({title:"Face - Unknown",enum:["Face - Unknown"]}),X.options.properties.alertTypes.items.oneOf=k.concat(null==z?void 0:z.filter(ye=>ye.name).map(ye=>({title:`Face - ${ye.name}`,enum:[`Face - ${ye.name}`]}))).filter(ye=>"Face"!==ye.title)}if(X.options.properties.alertTypes&&X.options.properties.alertTypes.items){const z=yield se.homebridge.request("/zones");X.options.properties.alertTypes.items.oneOf=X.options.properties.alertTypes.items.oneOf.concat(null==z?void 0:z.filter(ye=>ye.label).map(ye=>({title:`Zone - ${ye.label}`,enum:[`Zone - ${ye.label}`]}))).filter(ye=>"Zone"!==ye.title)}if(X.options.properties.structures&&X.options.properties.structures.items){const z=yield se.homebridge.request("/structures");z&&z.length>1?X.options.properties.structures.items.oneOf=z:delete X.options.properties.structures}X.options.properties.cameras&&X.options.properties.cameras.items&&(ee.length>1?X.options.properties.cameras.items.oneOf=ee.map(z=>({title:z.name,enum:[z.uuid]})):delete X.options.properties.cameras)}return X})()}}de.AppComponent=Je,Je.\u0275fac=function(X){return new(X||Je)},Je.\u0275cmp=Q.\u0275\u0275defineComponent({type:Je,selectors:[["app-root"]],decls:3,vars:2,consts:[[1,"content","hb-plugin-settings-modal"],["class","card card-body",4,"ngIf"],[4,"ngIf"],[1,"card","card-body"],[3,"authEvent"],[2,"height","44px"],["class","container-fluid overflow-hidden",4,"ngIf"],[1,"container-fluid","overflow-hidden"],[1,"profile-container"],[1,"row"],[1,"col-md"],[1,"col-md","text-right"],[1,"profile-name","m-0"],[1,"profile-email","m-0"],[1,"col-md-1","text-right"],["width","36","height","36",1,"profile-img",3,"src"],[1,"btn","btn-danger","m-0",3,"click"],[1,"fas","fa-sign-out-alt"]],template:function(X,se){1&X&&(Q.\u0275\u0275elementStart(0,"div",0),Q.\u0275\u0275template(1,pe,2,1,"div",1),Q.\u0275\u0275template(2,Ue,3,1,"div",2),Q.\u0275\u0275elementEnd()),2&X&&(Q.\u0275\u0275advance(1),Q.\u0275\u0275property("ngIf",!se.authenticated),Q.\u0275\u0275advance(1),Q.\u0275\u0275property("ngIf",se.authenticated))},directives:[ve.NgIf,B.LoginComponent],styles:[".profile-img[_ngcontent-%COMP%]{border-radius:18px}.profile-name[_ngcontent-%COMP%]{font-weight:bolder}.profile-email[_ngcontent-%COMP%]{font-size:small}"],data:{animation:[(0,ae.trigger)("profileTrigger",[(0,ae.transition)(":enter",[(0,ae.style)({height:0,opacity:0}),(0,ae.animate)("200ms",(0,ae.style)({height:43,opacity:1}))]),(0,ae.transition)(":leave",[(0,ae.animate)("200ms",(0,ae.style)({height:0,opacity:0}))])]),(0,ae.trigger)("opacity",[(0,ae.transition)(":enter",[(0,ae.style)({opacity:0}),(0,ae.animate)("200ms",(0,ae.style)({opacity:1}))])])]}})},175:function(qe,de,V){"use strict";var p=this&&this.__createBinding||(Object.create?function(te,le,Ue,Je){void 0===Je&&(Je=Ue),Object.defineProperty(te,Je,{enumerable:!0,get:function(){return le[Ue]}})}:function(te,le,Ue,Je){void 0===Je&&(Je=Ue),te[Je]=le[Ue]}),N=this&&this.__setModuleDefault||(Object.create?function(te,le){Object.defineProperty(te,"default",{enumerable:!0,value:le})}:function(te,le){te.default=le}),ie=this&&this.__importStar||function(te){if(te&&te.__esModule)return te;var le={};if(null!=te)for(var Ue in te)"default"!==Ue&&Object.prototype.hasOwnProperty.call(te,Ue)&&p(le,te,Ue);return N(le,te),le};Object.defineProperty(de,"__esModule",{value:!0}),de.AppModule=void 0;const ge=V(800),ae=V(562),Q=V(278),ve=V(506),B=ie(V(461));class pe{}de.AppModule=pe,pe.\u0275fac=function(le){return new(le||pe)},pe.\u0275mod=B.\u0275\u0275defineNgModule({type:pe,bootstrap:[ve.AppComponent]}),pe.\u0275inj=B.\u0275\u0275defineInjector({providers:[],imports:[[ge.BrowserModule,ae.FormsModule,ae.ReactiveFormsModule,Q.BrowserAnimationsModule]]})},32:function(qe,de,V){"use strict";var p=V(52).default,N=this&&this.__createBinding||(Object.create?function(ee,De,fe,Te){void 0===Te&&(Te=fe),Object.defineProperty(ee,Te,{enumerable:!0,get:function(){return De[fe]}})}:function(ee,De,fe,Te){void 0===Te&&(Te=fe),ee[Te]=De[fe]}),ie=this&&this.__setModuleDefault||(Object.create?function(ee,De){Object.defineProperty(ee,"default",{enumerable:!0,value:De})}:function(ee,De){ee.default=De}),ge=this&&this.__importStar||function(ee){if(ee&&ee.__esModule)return ee;var De={};if(null!=ee)for(var fe in ee)"default"!==fe&&Object.prototype.hasOwnProperty.call(ee,fe)&&N(De,ee,fe);return ie(De,ee),De};Object.defineProperty(de,"__esModule",{value:!0}),de.LoginComponent=void 0;const ae=V(461),Q=V(19),ve=V(562);V(852);const B=ge(V(461)),pe=ge(V(48)),te=ge(V(562)),le=ge(V(809));function Ue(ee,De){if(1&ee){const fe=B.\u0275\u0275getCurrentView();B.\u0275\u0275elementStart(0,"div"),B.\u0275\u0275elementStart(1,"div"),B.\u0275\u0275elementStart(2,"ol"),B.\u0275\u0275elementStart(3,"li"),B.\u0275\u0275text(4,"Click "),B.\u0275\u0275elementStart(5,"a",3),B.\u0275\u0275text(6,"HERE"),B.\u0275\u0275elementEnd(),B.\u0275\u0275text(7," to open the Nest login page."),B.\u0275\u0275elementEnd(),B.\u0275\u0275elementStart(8,"li"),B.\u0275\u0275text(9,"Copy and paste the code below: "),B.\u0275\u0275elementEnd(),B.\u0275\u0275elementEnd(),B.\u0275\u0275elementStart(10,"div",4),B.\u0275\u0275elementStart(11,"div",5),B.\u0275\u0275elementStart(12,"label",6),B.\u0275\u0275text(13,"Code "),B.\u0275\u0275elementStart(14,"strong",7),B.\u0275\u0275text(15,"*"),B.\u0275\u0275elementEnd(),B.\u0275\u0275elementEnd(),B.\u0275\u0275element(16,"input",8),B.\u0275\u0275elementEnd(),B.\u0275\u0275elementStart(17,"div",9),B.\u0275\u0275elementStart(18,"button",10),B.\u0275\u0275listener("click",function(){return B.\u0275\u0275restoreView(fe),B.\u0275\u0275nextContext().doLogin()}),B.\u0275\u0275text(19,"Log In"),B.\u0275\u0275elementEnd(),B.\u0275\u0275elementEnd(),B.\u0275\u0275elementEnd(),B.\u0275\u0275elementEnd(),B.\u0275\u0275elementEnd()}if(2&ee){const fe=B.\u0275\u0275nextContext();B.\u0275\u0275property("@opacity",void 0),B.\u0275\u0275advance(5),B.\u0275\u0275propertyInterpolate("href",fe.url,B.\u0275\u0275sanitizeUrl),B.\u0275\u0275advance(5),B.\u0275\u0275property("formGroup",fe.form),B.\u0275\u0275advance(8),B.\u0275\u0275property("disabled",!(null!=fe.form&&fe.form.valid))}}function Je(ee,De){if(1&ee){const fe=B.\u0275\u0275getCurrentView();B.\u0275\u0275elementStart(0,"div"),B.\u0275\u0275elementStart(1,"div",9),B.\u0275\u0275element(2,"progress-bar",11),B.\u0275\u0275elementStart(3,"div"),B.\u0275\u0275elementStart(4,"p"),B.\u0275\u0275text(5,"Loggin in. Please wait..."),B.\u0275\u0275elementEnd(),B.\u0275\u0275elementEnd(),B.\u0275\u0275elementStart(6,"p",7),B.\u0275\u0275text(7),B.\u0275\u0275elementEnd(),B.\u0275\u0275elementStart(8,"button",12),B.\u0275\u0275listener("click",function(){return B.\u0275\u0275restoreView(fe),B.\u0275\u0275nextContext().restart()}),B.\u0275\u0275text(9,"Restart "),B.\u0275\u0275element(10,"i",13),B.\u0275\u0275elementEnd(),B.\u0275\u0275elementEnd(),B.\u0275\u0275elementEnd()}if(2&ee){const fe=B.\u0275\u0275nextContext();B.\u0275\u0275property("@opacity",void 0),B.\u0275\u0275advance(2),B.\u0275\u0275property("progress",fe.progress)("color",fe.color),B.\u0275\u0275advance(5),B.\u0275\u0275textInterpolate(fe.errMsg)}}class se{constructor(){var fe,Te,De=this;this.waiting=!1,this.url="",this.progress=0,this.color="blue",this.homebridge=window.homebridge,this.errMsg="",this.authEvent=new ae.EventEmitter,null===(fe=this.homebridge)||void 0===fe||fe.addEventListener("error",z=>{this.errMsg=z.data,this.color="red"}),null===(Te=this.homebridge)||void 0===Te||Te.addEventListener("credentials",function(){var z=p(function*(k){yield De.checkAuthentication(k.data)});return function(k){return z.apply(this,arguments)}}()),this.generateForm()}resetLoginUI(){this.waiting=!0,this.color="blue",this.progress=0,this.errMsg=""}generateForm(){this.form=new ve.FormGroup({code:new ve.FormControl("",[ve.Validators.required,("/",De=>De.value.includes("/")?null:{contains:{value:De.value}})])})}ngOnInit(){var De=this;return p(function*(){var fe;const z=null===(fe=((yield De.homebridge.getPluginConfig())[0]||{}).options)||void 0===fe?void 0:fe.fieldTest;De.url=yield De.homebridge.request("/generateToken",{ft:z})})()}checkAuthentication(De){var fe=this;return p(function*(){var Te;const z=(yield fe.homebridge.getPluginConfig())[0]||{};(yield fe.homebridge.request("/auth",{refreshToken:De,ft:null===(Te=z.options)||void 0===Te?void 0:Te.fieldTest}))?(fe.progress=100,fe.color="green",yield(500,new Promise(De=>setTimeout(De,500))),z.refreshToken=De,yield fe.homebridge.updatePluginConfig([z]),yield fe.homebridge.savePluginConfig(),fe.authEvent.emit(!0),fe.waiting=!1,fe.homebridge.showSpinner()):(fe.errMsg="Unable to authenticate via the provided refresh token",fe.color="red")})()}doLogin(){var De=this;return p(function*(){var fe,Te;De.resetLoginUI();const k=null===(fe=((yield De.homebridge.getPluginConfig())[0]||{}).options)||void 0===fe?void 0:fe.fieldTest,ye=null===(Te=De.form)||void 0===Te?void 0:Te.controls.code.value,Qe=yield De.homebridge.request("/getRefreshToken",{code:ye,ft:k});Qe&&(yield De.checkAuthentication(Qe))})()}restart(){var De=this;return p(function*(){De.waiting=!1})()}}de.LoginComponent=se,se.\u0275fac=function(De){return new(De||se)},se.\u0275cmp=B.\u0275\u0275defineComponent({type:se,selectors:[["app-login"]],outputs:{authEvent:"authEvent"},decls:9,vars:2,consts:[[1,"help-block"],["href","https://github.com/Brandawg93/homebridge-nest-cam/wiki/Manual-Authentication","target","_blank"],[4,"ngIf"],["target","_blank","rel","noopener noreferrer",3,"href"],[3,"formGroup"],[1,"schema-form-text","form-group"],[1,"control-label"],[1,"text-danger"],["type","text","formControlName","code",1,"form-control"],[1,"text-center"],["type","button",1,"btn","btn-primary",3,"disabled","click"],[3,"progress","color"],[1,"btn","btn-danger",3,"click"],[1,"fas","fa-undo-alt"]],template:function(De,fe){1&De&&(B.\u0275\u0275elementStart(0,"p",0),B.\u0275\u0275elementStart(1,"strong"),B.\u0275\u0275text(2,"Note: "),B.\u0275\u0275elementEnd(),B.\u0275\u0275text(3,"This UI only works with Google accounts. Please close this page and set up your config.json manually. Instruction can be found on the "),B.\u0275\u0275elementStart(4,"a",1),B.\u0275\u0275text(5,"wiki"),B.\u0275\u0275elementEnd(),B.\u0275\u0275text(6,"."),B.\u0275\u0275elementEnd(),B.\u0275\u0275template(7,Ue,20,4,"div",2),B.\u0275\u0275template(8,Je,11,4,"div",2)),2&De&&(B.\u0275\u0275advance(7),B.\u0275\u0275property("ngIf",!fe.waiting),B.\u0275\u0275advance(1),B.\u0275\u0275property("ngIf",fe.waiting))},directives:[pe.NgIf,te.NgControlStatusGroup,te.FormGroupDirective,te.DefaultValueAccessor,te.NgControlStatus,te.FormControlName,le.ProgressBarComponent],styles:[""],data:{animation:[(0,Q.trigger)("opacity",[(0,Q.transition)(":enter",[(0,Q.style)({opacity:0}),(0,Q.animate)("200ms",(0,Q.style)({opacity:1}))])])]}})},809:function(qe,de,V){"use strict";var p=this&&this.__createBinding||(Object.create?function(B,pe,te,le){void 0===le&&(le=te),Object.defineProperty(B,le,{enumerable:!0,get:function(){return pe[te]}})}:function(B,pe,te,le){void 0===le&&(le=te),B[le]=pe[te]}),N=this&&this.__setModuleDefault||(Object.create?function(B,pe){Object.defineProperty(B,"default",{enumerable:!0,value:pe})}:function(B,pe){B.default=pe}),ie=this&&this.__importStar||function(B){if(B&&B.__esModule)return B;var pe={};if(null!=B)for(var te in B)"default"!==te&&Object.prototype.hasOwnProperty.call(B,te)&&p(pe,B,te);return N(pe,B),pe};Object.defineProperty(de,"__esModule",{value:!0}),de.ProgressBarComponent=void 0;const ge=ie(V(461)),ae=ie(V(48)),Q=function(B){return{width:B}};class ve{constructor(){this.color="blue",0===this.total?this.total=this.progress:this.total||(this.total=100),this.progress&&this.total&&(this.progress>this.total&&(this.progress=100,this.total=100),this.progress=this.progress/this.total*100)}}de.ProgressBarComponent=ve,ve.\u0275fac=function(pe){return new(pe||ve)},ve.\u0275cmp=ge.\u0275\u0275defineComponent({type:ve,selectors:[["progress-bar"]],inputs:{progress:"progress",total:"total",color:"color"},decls:2,vars:6,consts:[[1,"progress-bar-container"],[3,"ngStyle"]],template:function(pe,te){1&pe&&(ge.\u0275\u0275elementStart(0,"div",0),ge.\u0275\u0275element(1,"div",1),ge.\u0275\u0275elementEnd()),2&pe&&(ge.\u0275\u0275advance(1),ge.\u0275\u0275classMapInterpolate1("progress-bar ",te.color,""),ge.\u0275\u0275property("ngStyle",ge.\u0275\u0275pureFunction1(4,Q,te.progress+"%")))},directives:[ae.NgStyle],styles:[".progress-bar-container[_ngcontent-%COMP%]{background-color:#eee;border-radius:3px}.progress-bar[_ngcontent-%COMP%]{height:6px;width:0;border-radius:3px}.progress-bar.green[_ngcontent-%COMP%]{background-color:green}.progress-bar.blue[_ngcontent-%COMP%]{background-color:#00f}.progress-bar.red[_ngcontent-%COMP%]{background-color:red}"]})},496:(qe,de)=>{"use strict";Object.defineProperty(de,"__esModule",{value:!0}),de.environment=void 0,de.environment={production:!0}},835:function(qe,de,V){"use strict";var p=this&&this.__createBinding||(Object.create?function(B,pe,te,le){void 0===le&&(le=te),Object.defineProperty(B,le,{enumerable:!0,get:function(){return pe[te]}})}:function(B,pe,te,le){void 0===le&&(le=te),B[le]=pe[te]}),N=this&&this.__setModuleDefault||(Object.create?function(B,pe){Object.defineProperty(B,"default",{enumerable:!0,value:pe})}:function(B,pe){B.default=pe}),ie=this&&this.__importStar||function(B){if(B&&B.__esModule)return B;var pe={};if(null!=B)for(var te in B)"default"!==te&&Object.prototype.hasOwnProperty.call(B,te)&&p(pe,B,te);return N(pe,B),pe};Object.defineProperty(de,"__esModule",{value:!0});const ge=ie(V(800)),ae=V(461),Q=V(175);V(496).environment.production&&(0,ae.enableProdMode)(),ge.platformBrowser().bootstrapModule(Q.AppModule).catch(B=>console.error(B))},52:qe=>{function de(p,N,ie,ge,ae,Q,ve){try{var B=p[Q](ve),pe=B.value}catch(te){return void ie(te)}B.done?N(pe):Promise.resolve(pe).then(ge,ae)}qe.exports=function(p){return function(){var N=this,ie=arguments;return new Promise(function(ge,ae){var Q=p.apply(N,ie);function ve(pe){de(Q,ge,ae,ve,B,"next",pe)}function B(pe){de(Q,ge,ae,ve,B,"throw",pe)}ve(void 0)})}},qe.exports.default=qe.exports,qe.exports.__esModule=!0},762:(qe,de,V)=>{"use strict";function B(L,G,H,K){return new(H||(H=Promise))(function(oe,_e){function it(Pt){try{Oe(K.next(Pt))}catch(Lt){_e(Lt)}}function zt(Pt){try{Oe(K.throw(Pt))}catch(Lt){_e(Lt)}}function Oe(Pt){Pt.done?oe(Pt.value):function(oe){return oe instanceof H?oe:new H(function(_e){_e(oe)})}(Pt.value).then(it,zt)}Oe((K=K.apply(L,G||[])).next())})}function ee(L){return this instanceof ee?(this.v=L,this):new ee(L)}function De(L,G,H){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var q,K=H.apply(L,G||[]),oe=[];return q={},_e("next"),_e("throw"),_e("return"),q[Symbol.asyncIterator]=function(){return this},q;function _e(Ie){K[Ie]&&(q[Ie]=function(rt){return new Promise(function(gn,cn){oe.push([Ie,rt,gn,cn])>1||it(Ie,rt)})})}function it(Ie,rt){try{!function(Ie){Ie.value instanceof ee?Promise.resolve(Ie.value.v).then(Oe,Pt):Lt(oe[0][2],Ie)}(K[Ie](rt))}catch(gn){Lt(oe[0][3],gn)}}function Oe(Ie){it("next",Ie)}function Pt(Ie){it("throw",Ie)}function Lt(Ie,rt){Ie(rt),oe.shift(),oe.length&&it(oe[0][0],oe[0][1])}}function Te(L){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var H,G=L[Symbol.asyncIterator];return G?G.call(L):(L=function(L){var G="function"==typeof Symbol&&Symbol.iterator,H=G&&L[G],K=0;if(H)return H.call(L);if(L&&"number"==typeof L.length)return{next:function(){return L&&K>=L.length&&(L=void 0),{value:L&&L[K++],done:!L}}};throw new TypeError(G?"Object is not iterable.":"Symbol.iterator is not defined.")}(L),H={},K("next"),K("throw"),K("return"),H[Symbol.asyncIterator]=function(){return this},H);function K(oe){H[oe]=L[oe]&&function(_e){return new Promise(function(it,zt){!function(oe,_e,it,zt){Promise.resolve(zt).then(function(Oe){oe({value:Oe,done:it})},_e)}(it,zt,(_e=L[oe](_e)).done,_e.value)})}}}V.d(de,{mG:()=>B,qq:()=>ee,FC:()=>De,KL:()=>Te})},19:(qe,de,V)=>{"use strict";V.r(de),V.d(de,{AUTO_STYLE:()=>ie,AnimationBuilder:()=>p,AnimationFactory:()=>N,NoopAnimationPlayer:()=>De,animate:()=>ae,animateChild:()=>Je,animation:()=>Ue,group:()=>Q,keyframes:()=>te,query:()=>X,sequence:()=>ve,stagger:()=>se,state:()=>pe,style:()=>B,transition:()=>le,trigger:()=>ge,useAnimation:()=>me,\u0275AnimationGroupPlayer:()=>fe,\u0275PRE_STYLE:()=>Te});class p{}class N{}const ie="*";function ge(z,k){return{type:7,name:z,definitions:k,options:{}}}function ae(z,k=null){return{type:4,styles:k,timings:z}}function Q(z,k=null){return{type:3,steps:z,options:k}}function ve(z,k=null){return{type:2,steps:z,options:k}}function B(z){return{type:6,styles:z,offset:null}}function pe(z,k,ye){return{type:0,name:z,styles:k,options:ye}}function te(z){return{type:5,steps:z}}function le(z,k,ye=null){return{type:1,expr:z,animation:k,options:ye}}function Ue(z,k=null){return{type:8,animation:z,options:k}}function Je(z=null){return{type:9,options:z}}function me(z,k=null){return{type:10,animation:z,options:k}}function X(z,k,ye=null){return{type:11,selector:z,animation:k,options:ye}}function se(z,k){return{type:12,timings:z,animation:k}}function ee(z){Promise.resolve(null).then(z)}class De{constructor(k=0,ye=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=k+ye}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(k=>k()),this._onDoneFns=[])}onStart(k){this._onStartFns.push(k)}onDone(k){this._onDoneFns.push(k)}onDestroy(k){this._onDestroyFns.push(k)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){ee(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(k=>k()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(k=>k()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(k){this._position=this.totalTime?k*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(k){const ye="start"==k?this._onStartFns:this._onDoneFns;ye.forEach(Qe=>Qe()),ye.length=0}}class fe{constructor(k){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=k;let ye=0,Qe=0,Fe=0;const xe=this.players.length;0==xe?ee(()=>this._onFinish()):this.players.forEach(Le=>{Le.onDone(()=>{++ye==xe&&this._onFinish()}),Le.onDestroy(()=>{++Qe==xe&&this._onDestroy()}),Le.onStart(()=>{++Fe==xe&&this._onStart()})}),this.totalTime=this.players.reduce((Le,L)=>Math.max(Le,L.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(k=>k()),this._onDoneFns=[])}init(){this.players.forEach(k=>k.init())}onStart(k){this._onStartFns.push(k)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(k=>k()),this._onStartFns=[])}onDone(k){this._onDoneFns.push(k)}onDestroy(k){this._onDestroyFns.push(k)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(k=>k.play())}pause(){this.players.forEach(k=>k.pause())}restart(){this.players.forEach(k=>k.restart())}finish(){this._onFinish(),this.players.forEach(k=>k.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(k=>k.destroy()),this._onDestroyFns.forEach(k=>k()),this._onDestroyFns=[])}reset(){this.players.forEach(k=>k.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(k){const ye=k*this.totalTime;this.players.forEach(Qe=>{const Fe=Qe.totalTime?Math.min(1,ye/Qe.totalTime):1;Qe.setPosition(Fe)})}getPosition(){const k=this.players.reduce((ye,Qe)=>null===ye||Qe.totalTime>ye.totalTime?Qe:ye,null);return null!=k?k.getPosition():0}beforeDestroy(){this.players.forEach(k=>{k.beforeDestroy&&k.beforeDestroy()})}triggerCallback(k){const ye="start"==k?this._onStartFns:this._onDoneFns;ye.forEach(Qe=>Qe()),ye.length=0}}const Te="!"},48:(qe,de,V)=>{"use strict";V.r(de),V.d(de,{APP_BASE_HREF:()=>fe,AsyncPipe:()=>or,CommonModule:()=>ks,CurrencyPipe:()=>xr,DATE_PIPE_DEFAULT_TIMEZONE:()=>an,DOCUMENT:()=>ve,DatePipe:()=>ft,DecimalPipe:()=>_n,FormStyle:()=>G,FormatWidth:()=>K,HashLocationStrategy:()=>z,I18nPluralPipe:()=>bi,I18nSelectPipe:()=>ln,JsonPipe:()=>fn,KeyValuePipe:()=>ar,LOCATION_INITIALIZED:()=>te,Location:()=>k,LocationStrategy:()=>ee,LowerCasePipe:()=>$n,NgClass:()=>dn,NgComponentOutlet:()=>An,NgForOf:()=>Hn,NgForOfContext:()=>yn,NgIf:()=>nn,NgIfContext:()=>Un,NgLocaleLocalization:()=>Dr,NgLocalization:()=>Yn,NgPlural:()=>$t,NgPluralCase:()=>Cn,NgStyle:()=>Rt,NgSwitch:()=>rn,NgSwitchCase:()=>be,NgSwitchDefault:()=>Ye,NgTemplateOutlet:()=>In,NumberFormatStyle:()=>Le,NumberSymbol:()=>q,PathLocationStrategy:()=>Te,PercentPipe:()=>wi,PlatformLocation:()=>B,Plural:()=>L,SlicePipe:()=>Lr,TitleCasePipe:()=>Sn,TranslationWidth:()=>H,UpperCasePipe:()=>Jn,VERSION:()=>Ii,ViewportScroller:()=>Zi,WeekDay:()=>oe,XhrFactory:()=>Si,formatCurrency:()=>Zn,formatDate:()=>qn,formatNumber:()=>ir,formatPercent:()=>rr,getCurrencySymbol:()=>Vt,getLocaleCurrencyCode:()=>pr,getLocaleCurrencyName:()=>ci,getLocaleCurrencySymbol:()=>Ft,getLocaleDateFormat:()=>rt,getLocaleDateTimeFormat:()=>cn,getLocaleDayNames:()=>zt,getLocaleDayPeriods:()=>it,getLocaleDirection:()=>di,getLocaleEraNames:()=>Pt,getLocaleExtraDayPeriodRules:()=>Wr,getLocaleExtraDayPeriods:()=>Kn,getLocaleFirstDayOfWeek:()=>Lt,getLocaleId:()=>_e,getLocaleMonthNames:()=>Oe,getLocaleNumberFormat:()=>Ht,getLocaleNumberSymbol:()=>Et,getLocalePluralCase:()=>Wt,getLocaleTimeFormat:()=>gn,getLocaleWeekEndRange:()=>Ie,getNumberOfCurrencyDigits:()=>Ot,isPlatformBrowser:()=>pi,isPlatformServer:()=>ki,isPlatformWorkerApp:()=>gi,isPlatformWorkerUi:()=>Qi,registerLocaleData:()=>Rr,\u0275BrowserPlatformLocation:()=>le,\u0275DomAdapter:()=>Q,\u0275NullViewportScroller:()=>Yi,\u0275PLATFORM_BROWSER_ID:()=>Jr,\u0275PLATFORM_SERVER_ID:()=>Mi,\u0275PLATFORM_WORKER_APP_ID:()=>hi,\u0275PLATFORM_WORKER_UI_ID:()=>Ai,\u0275getDOM:()=>ie,\u0275parseCookieValue:()=>Ct,\u0275setRootDomAdapter:()=>ae});var p=V(461);let N=null;function ie(){return N}function ae(g){N||(N=g)}class Q{}const ve=new p.InjectionToken("DocumentToken");let B=(()=>{class g{historyGo(m){throw new Error("Not implemented")}}return g.\u0275fac=function(m){return new(m||g)},g.\u0275prov=p.\u0275\u0275defineInjectable({token:g,factory:function(){return(0,p.\u0275\u0275inject)(le)},providedIn:"platform"}),g})();const te=new p.InjectionToken("Location Initialized");let le=(()=>{class g extends B{constructor(m){super(),this._doc=m,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ie().getBaseHref(this._doc)}onPopState(m){const w=ie().getGlobalEventTarget(this._doc,"window");return w.addEventListener("popstate",m,!1),()=>w.removeEventListener("popstate",m)}onHashChange(m){const w=ie().getGlobalEventTarget(this._doc,"window");return w.addEventListener("hashchange",m,!1),()=>w.removeEventListener("hashchange",m)}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(m){this.location.pathname=m}pushState(m,w,P){Ue()?this._history.pushState(m,w,P):this.location.hash=P}replaceState(m,w,P){Ue()?this._history.replaceState(m,w,P):this.location.hash=P}forward(){this._history.forward()}back(){this._history.back()}historyGo(m=0){this._history.go(m)}getState(){return this._history.state}}return g.\u0275fac=function(m){return new(m||g)(p.\u0275\u0275inject(ve))},g.\u0275prov=p.\u0275\u0275defineInjectable({token:g,factory:function(){return new le((0,p.\u0275\u0275inject)(ve))},providedIn:"platform"}),g})();function Ue(){return!!window.history.pushState}function me(g,C){if(0==g.length)return C;if(0==C.length)return g;let m=0;return g.endsWith("/")&&m++,C.startsWith("/")&&m++,2==m?g+C.substring(1):1==m?g+C:g+"/"+C}function X(g){const C=g.match(/#|\?|$/),m=C&&C.index||g.length;return g.slice(0,m-("/"===g[m-1]?1:0))+g.slice(m)}function se(g){return g&&"?"!==g[0]?"?"+g:g}let ee=(()=>{class g{historyGo(m){throw new Error("Not implemented")}}return g.\u0275fac=function(m){return new(m||g)},g.\u0275prov=p.\u0275\u0275defineInjectable({token:g,factory:function(){return function(g){const C=(0,p.\u0275\u0275inject)(ve).location;return new Te((0,p.\u0275\u0275inject)(B),C&&C.origin||"")}()},providedIn:"root"}),g})();const fe=new p.InjectionToken("appBaseHref");let Te=(()=>{class g extends ee{constructor(m,w){if(super(),this._platformLocation=m,this._removeListenerFns=[],null==w&&(w=this._platformLocation.getBaseHrefFromDOM()),null==w)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=w}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(m){this._removeListenerFns.push(this._platformLocation.onPopState(m),this._platformLocation.onHashChange(m))}getBaseHref(){return this._baseHref}prepareExternalUrl(m){return me(this._baseHref,m)}path(m=!1){const w=this._platformLocation.pathname+se(this._platformLocation.search),P=this._platformLocation.hash;return P&&m?`${w}${P}`:w}pushState(m,w,P,Z){const ue=this.prepareExternalUrl(P+se(Z));this._platformLocation.pushState(m,w,ue)}replaceState(m,w,P,Z){const ue=this.prepareExternalUrl(P+se(Z));this._platformLocation.replaceState(m,w,ue)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(m=0){var w,P;null===(P=(w=this._platformLocation).historyGo)||void 0===P||P.call(w,m)}}return g.\u0275fac=function(m){return new(m||g)(p.\u0275\u0275inject(B),p.\u0275\u0275inject(fe,8))},g.\u0275prov=p.\u0275\u0275defineInjectable({token:g,factory:g.\u0275fac}),g})(),z=(()=>{class g extends ee{constructor(m,w){super(),this._platformLocation=m,this._baseHref="",this._removeListenerFns=[],null!=w&&(this._baseHref=w)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(m){this._removeListenerFns.push(this._platformLocation.onPopState(m),this._platformLocation.onHashChange(m))}getBaseHref(){return this._baseHref}path(m=!1){let w=this._platformLocation.hash;return null==w&&(w="#"),w.length>0?w.substring(1):w}prepareExternalUrl(m){const w=me(this._baseHref,m);return w.length>0?"#"+w:w}pushState(m,w,P,Z){let ue=this.prepareExternalUrl(P+se(Z));0==ue.length&&(ue=this._platformLocation.pathname),this._platformLocation.pushState(m,w,ue)}replaceState(m,w,P,Z){let ue=this.prepareExternalUrl(P+se(Z));0==ue.length&&(ue=this._platformLocation.pathname),this._platformLocation.replaceState(m,w,ue)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(m=0){var w,P;null===(P=(w=this._platformLocation).historyGo)||void 0===P||P.call(w,m)}}return g.\u0275fac=function(m){return new(m||g)(p.\u0275\u0275inject(B),p.\u0275\u0275inject(fe,8))},g.\u0275prov=p.\u0275\u0275defineInjectable({token:g,factory:g.\u0275fac}),g})(),k=(()=>{class g{constructor(m,w){this._subject=new p.EventEmitter,this._urlChangeListeners=[],this._platformStrategy=m;const P=this._platformStrategy.getBaseHref();this._platformLocation=w,this._baseHref=X(Fe(P)),this._platformStrategy.onPopState(Z=>{this._subject.emit({url:this.path(!0),pop:!0,state:Z.state,type:Z.type})})}path(m=!1){return this.normalize(this._platformStrategy.path(m))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(m,w=""){return this.path()==this.normalize(m+se(w))}normalize(m){return g.stripTrailingSlash(function(g,C){return g&&C.startsWith(g)?C.substring(g.length):C}(this._baseHref,Fe(m)))}prepareExternalUrl(m){return m&&"/"!==m[0]&&(m="/"+m),this._platformStrategy.prepareExternalUrl(m)}go(m,w="",P=null){this._platformStrategy.pushState(P,"",m,w),this._notifyUrlChangeListeners(this.prepareExternalUrl(m+se(w)),P)}replaceState(m,w="",P=null){this._platformStrategy.replaceState(P,"",m,w),this._notifyUrlChangeListeners(this.prepareExternalUrl(m+se(w)),P)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(m=0){var w,P;null===(P=(w=this._platformStrategy).historyGo)||void 0===P||P.call(w,m)}onUrlChange(m){this._urlChangeListeners.push(m),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(w=>{this._notifyUrlChangeListeners(w.url,w.state)}))}_notifyUrlChangeListeners(m="",w){this._urlChangeListeners.forEach(P=>P(m,w))}subscribe(m,w,P){return this._subject.subscribe({next:m,error:w,complete:P})}}return g.normalizeQueryParams=se,g.joinWithSlash=me,g.stripTrailingSlash=X,g.\u0275fac=function(m){return new(m||g)(p.\u0275\u0275inject(ee),p.\u0275\u0275inject(B))},g.\u0275prov=p.\u0275\u0275defineInjectable({token:g,factory:function(){return new k((0,p.\u0275\u0275inject)(ee),(0,p.\u0275\u0275inject)(B))},providedIn:"root"}),g})();function Fe(g){return g.replace(/\/index.html$/,"")}const xe={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var Le=(()=>((Le=Le||{})[Le.Decimal=0]="Decimal",Le[Le.Percent=1]="Percent",Le[Le.Currency=2]="Currency",Le[Le.Scientific=3]="Scientific",Le))(),L=(()=>((L=L||{})[L.Zero=0]="Zero",L[L.One=1]="One",L[L.Two=2]="Two",L[L.Few=3]="Few",L[L.Many=4]="Many",L[L.Other=5]="Other",L))(),G=(()=>((G=G||{})[G.Format=0]="Format",G[G.Standalone=1]="Standalone",G))(),H=(()=>((H=H||{})[H.Narrow=0]="Narrow",H[H.Abbreviated=1]="Abbreviated",H[H.Wide=2]="Wide",H[H.Short=3]="Short",H))(),K=(()=>((K=K||{})[K.Short=0]="Short",K[K.Medium=1]="Medium",K[K.Long=2]="Long",K[K.Full=3]="Full",K))(),q=(()=>((q=q||{})[q.Decimal=0]="Decimal",q[q.Group=1]="Group",q[q.List=2]="List",q[q.PercentSign=3]="PercentSign",q[q.PlusSign=4]="PlusSign",q[q.MinusSign=5]="MinusSign",q[q.Exponential=6]="Exponential",q[q.SuperscriptingExponent=7]="SuperscriptingExponent",q[q.PerMille=8]="PerMille",q[q.Infinity=9]="Infinity",q[q.NaN=10]="NaN",q[q.TimeSeparator=11]="TimeSeparator",q[q.CurrencyDecimal=12]="CurrencyDecimal",q[q.CurrencyGroup=13]="CurrencyGroup",q))(),oe=(()=>((oe=oe||{})[oe.Sunday=0]="Sunday",oe[oe.Monday=1]="Monday",oe[oe.Tuesday=2]="Tuesday",oe[oe.Wednesday=3]="Wednesday",oe[oe.Thursday=4]="Thursday",oe[oe.Friday=5]="Friday",oe[oe.Saturday=6]="Saturday",oe))();function _e(g){return(0,p.\u0275findLocaleData)(g)[p.\u0275LocaleDataIndex.LocaleId]}function it(g,C,m){const w=(0,p.\u0275findLocaleData)(g),Z=Kt([w[p.\u0275LocaleDataIndex.DayPeriodsFormat],w[p.\u0275LocaleDataIndex.DayPeriodsStandalone]],C);return Kt(Z,m)}function zt(g,C,m){const w=(0,p.\u0275findLocaleData)(g),Z=Kt([w[p.\u0275LocaleDataIndex.DaysFormat],w[p.\u0275LocaleDataIndex.DaysStandalone]],C);return Kt(Z,m)}function Oe(g,C,m){const w=(0,p.\u0275findLocaleData)(g),Z=Kt([w[p.\u0275LocaleDataIndex.MonthsFormat],w[p.\u0275LocaleDataIndex.MonthsStandalone]],C);return Kt(Z,m)}function Pt(g,C){return Kt((0,p.\u0275findLocaleData)(g)[p.\u0275LocaleDataIndex.Eras],C)}function Lt(g){return(0,p.\u0275findLocaleData)(g)[p.\u0275LocaleDataIndex.FirstDayOfWeek]}function Ie(g){return(0,p.\u0275findLocaleData)(g)[p.\u0275LocaleDataIndex.WeekendRange]}function rt(g,C){return Kt((0,p.\u0275findLocaleData)(g)[p.\u0275LocaleDataIndex.DateFormat],C)}function gn(g,C){return Kt((0,p.\u0275findLocaleData)(g)[p.\u0275LocaleDataIndex.TimeFormat],C)}function cn(g,C){return Kt((0,p.\u0275findLocaleData)(g)[p.\u0275LocaleDataIndex.DateTimeFormat],C)}function Et(g,C){const m=(0,p.\u0275findLocaleData)(g),w=m[p.\u0275LocaleDataIndex.NumberSymbols][C];if(void 0===w){if(C===q.CurrencyDecimal)return m[p.\u0275LocaleDataIndex.NumberSymbols][q.Decimal];if(C===q.CurrencyGroup)return m[p.\u0275LocaleDataIndex.NumberSymbols][q.Group]}return w}function Ht(g,C){return(0,p.\u0275findLocaleData)(g)[p.\u0275LocaleDataIndex.NumberFormats][C]}function Ft(g){return(0,p.\u0275findLocaleData)(g)[p.\u0275LocaleDataIndex.CurrencySymbol]||null}function ci(g){return(0,p.\u0275findLocaleData)(g)[p.\u0275LocaleDataIndex.CurrencyName]||null}function pr(g){return(0,p.\u0275getLocaleCurrencyCode)(g)}const Wt=p.\u0275getLocalePluralCase;function Wn(g){if(!g[p.\u0275LocaleDataIndex.ExtraData])throw new Error(`Missing extra locale data for the locale "${g[p.\u0275LocaleDataIndex.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Wr(g){const C=(0,p.\u0275findLocaleData)(g);return Wn(C),(C[p.\u0275LocaleDataIndex.ExtraData][2]||[]).map(w=>"string"==typeof w?tr(w):[tr(w[0]),tr(w[1])])}function Kn(g,C,m){const w=(0,p.\u0275findLocaleData)(g);Wn(w);const Z=Kt([w[p.\u0275LocaleDataIndex.ExtraData][0],w[p.\u0275LocaleDataIndex.ExtraData][1]],C)||[];return Kt(Z,m)||[]}function di(g){return(0,p.\u0275findLocaleData)(g)[p.\u0275LocaleDataIndex.Directionality]}function Kt(g,C){for(let m=C;m>-1;m--)if(void 0!==g[m])return g[m];throw new Error("Locale data API: locale data undefined")}function tr(g){const[C,m]=g.split(":");return{hours:+C,minutes:+m}}function Vt(g,C,m="en"){const w=function(g){return(0,p.\u0275findLocaleData)(g)[p.\u0275LocaleDataIndex.Currencies]}(m)[g]||xe[g]||[],P=w[1];return"narrow"===C&&"string"==typeof P?P:w[0]||g}function Ot(g){let C;const m=xe[g];return m&&(C=m[2]),"number"==typeof C?C:2}const pt=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ln={},Ut=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var nt=(()=>((nt=nt||{})[nt.Short=0]="Short",nt[nt.ShortGMT=1]="ShortGMT",nt[nt.Long=2]="Long",nt[nt.Extended=3]="Extended",nt))(),Me=(()=>((Me=Me||{})[Me.FullYear=0]="FullYear",Me[Me.Month=1]="Month",Me[Me.Date=2]="Date",Me[Me.Hours=3]="Hours",Me[Me.Minutes=4]="Minutes",Me[Me.Seconds=5]="Seconds",Me[Me.FractionalSeconds=6]="FractionalSeconds",Me[Me.Day=7]="Day",Me))(),$e=(()=>(($e=$e||{})[$e.DayPeriods=0]="DayPeriods",$e[$e.Days=1]="Days",$e[$e.Months=2]="Months",$e[$e.Eras=3]="Eras",$e))();function qn(g,C,m,w){let P=function(g){if(O(g))return g;if("number"==typeof g&&!isNaN(g))return new Date(g);if("string"==typeof g){if(g=g.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(g)){const[P,Z=1,ue=1]=g.split("-").map(Ne=>+Ne);return Tn(P,Z-1,ue)}const m=parseFloat(g);if(!isNaN(g-m))return new Date(m);let w;if(w=g.match(pt))return function(g){const C=new Date(0);let m=0,w=0;const P=g[8]?C.setUTCFullYear:C.setFullYear,Z=g[8]?C.setUTCHours:C.setHours;g[9]&&(m=Number(g[9]+g[10]),w=Number(g[9]+g[11])),P.call(C,Number(g[1]),Number(g[2])-1,Number(g[3]));const ue=Number(g[4]||0)-m,Ne=Number(g[5]||0)-w,vt=Number(g[6]||0),gt=Math.floor(1e3*parseFloat("0."+(g[7]||0)));return Z.call(C,ue,Ne,vt,gt),C}(w)}const C=new Date(g);if(!O(C))throw new Error(`Unable to convert "${g}" into a date`);return C}(g);C=Jt(m,C)||C;let Ne,ue=[];for(;C;){if(Ne=Ut.exec(C),!Ne){ue.push(C);break}{ue=ue.concat(Ne.slice(1));const mt=ue.pop();if(!mt)break;C=mt}}let vt=P.getTimezoneOffset();w&&(vt=mr(w,vt),P=function(g,C,m){const P=g.getTimezoneOffset();return function(g,C){return(g=new Date(g.getTime())).setMinutes(g.getMinutes()+C),g}(g,-1*(mr(C,P)-P))}(P,w));let gt="";return ue.forEach(mt=>{const st=function(g){if(It[g])return It[g];let C;switch(g){case"G":case"GG":case"GGG":C=ht($e.Eras,H.Abbreviated);break;case"GGGG":C=ht($e.Eras,H.Wide);break;case"GGGGG":C=ht($e.Eras,H.Narrow);break;case"y":C=ct(Me.FullYear,1,0,!1,!0);break;case"yy":C=ct(Me.FullYear,2,0,!0,!0);break;case"yyy":C=ct(Me.FullYear,3,0,!1,!0);break;case"yyyy":C=ct(Me.FullYear,4,0,!1,!0);break;case"Y":C=kt(1);break;case"YY":C=kt(2,!0);break;case"YYY":C=kt(3);break;case"YYYY":C=kt(4);break;case"M":case"L":C=ct(Me.Month,1,1);break;case"MM":case"LL":C=ct(Me.Month,2,1);break;case"MMM":C=ht($e.Months,H.Abbreviated);break;case"MMMM":C=ht($e.Months,H.Wide);break;case"MMMMM":C=ht($e.Months,H.Narrow);break;case"LLL":C=ht($e.Months,H.Abbreviated,G.Standalone);break;case"LLLL":C=ht($e.Months,H.Wide,G.Standalone);break;case"LLLLL":C=ht($e.Months,H.Narrow,G.Standalone);break;case"w":C=Qn(1);break;case"ww":C=Qn(2);break;case"W":C=Qn(1,!0);break;case"d":C=ct(Me.Date,1);break;case"dd":C=ct(Me.Date,2);break;case"c":case"cc":C=ct(Me.Day,1);break;case"ccc":C=ht($e.Days,H.Abbreviated,G.Standalone);break;case"cccc":C=ht($e.Days,H.Wide,G.Standalone);break;case"ccccc":C=ht($e.Days,H.Narrow,G.Standalone);break;case"cccccc":C=ht($e.Days,H.Short,G.Standalone);break;case"E":case"EE":case"EEE":C=ht($e.Days,H.Abbreviated);break;case"EEEE":C=ht($e.Days,H.Wide);break;case"EEEEE":C=ht($e.Days,H.Narrow);break;case"EEEEEE":C=ht($e.Days,H.Short);break;case"a":case"aa":case"aaa":C=ht($e.DayPeriods,H.Abbreviated);break;case"aaaa":C=ht($e.DayPeriods,H.Wide);break;case"aaaaa":C=ht($e.DayPeriods,H.Narrow);break;case"b":case"bb":case"bbb":C=ht($e.DayPeriods,H.Abbreviated,G.Standalone,!0);break;case"bbbb":C=ht($e.DayPeriods,H.Wide,G.Standalone,!0);break;case"bbbbb":C=ht($e.DayPeriods,H.Narrow,G.Standalone,!0);break;case"B":case"BB":case"BBB":C=ht($e.DayPeriods,H.Abbreviated,G.Format,!0);break;case"BBBB":C=ht($e.DayPeriods,H.Wide,G.Format,!0);break;case"BBBBB":C=ht($e.DayPeriods,H.Narrow,G.Format,!0);break;case"h":C=ct(Me.Hours,1,-12);break;case"hh":C=ct(Me.Hours,2,-12);break;case"H":C=ct(Me.Hours,1);break;case"HH":C=ct(Me.Hours,2);break;case"m":C=ct(Me.Minutes,1);break;case"mm":C=ct(Me.Minutes,2);break;case"s":C=ct(Me.Seconds,1);break;case"ss":C=ct(Me.Seconds,2);break;case"S":C=ct(Me.FractionalSeconds,1);break;case"SS":C=ct(Me.FractionalSeconds,2);break;case"SSS":C=ct(Me.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":C=Be(nt.Short);break;case"ZZZZZ":C=Be(nt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":C=Be(nt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":C=Be(nt.Long);break;default:return null}return It[g]=C,C}(mt);gt+=st?st(P,m,vt):"''"===mt?"'":mt.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),gt}function Tn(g,C,m){const w=new Date(0);return w.setFullYear(g,C,m),w.setHours(0,0,0),w}function Jt(g,C){const m=_e(g);if(Ln[m]=Ln[m]||{},Ln[m][C])return Ln[m][C];let w="";switch(C){case"shortDate":w=rt(g,K.Short);break;case"mediumDate":w=rt(g,K.Medium);break;case"longDate":w=rt(g,K.Long);break;case"fullDate":w=rt(g,K.Full);break;case"shortTime":w=gn(g,K.Short);break;case"mediumTime":w=gn(g,K.Medium);break;case"longTime":w=gn(g,K.Long);break;case"fullTime":w=gn(g,K.Full);break;case"short":const P=Jt(g,"shortTime"),Z=Jt(g,"shortDate");w=Vn(cn(g,K.Short),[P,Z]);break;case"medium":const ue=Jt(g,"mediumTime"),Ne=Jt(g,"mediumDate");w=Vn(cn(g,K.Medium),[ue,Ne]);break;case"long":const vt=Jt(g,"longTime"),gt=Jt(g,"longDate");w=Vn(cn(g,K.Long),[vt,gt]);break;case"full":const mt=Jt(g,"fullTime"),st=Jt(g,"fullDate");w=Vn(cn(g,K.Full),[mt,st])}return w&&(Ln[m][C]=w),w}function Vn(g,C){return C&&(g=g.replace(/\{([^}]+)}/g,function(m,w){return null!=C&&w in C?C[w]:m})),g}function qt(g,C,m="-",w,P){let Z="";(g<0||P&&g<=0)&&(P?g=1-g:(g=-g,Z=m));let ue=String(g);for(;ue.length<C;)ue="0"+ue;return w&&(ue=ue.substr(ue.length-C)),Z+ue}function ct(g,C,m=0,w=!1,P=!1){return function(Z,ue){let Ne=function(g,C){switch(g){case Me.FullYear:return C.getFullYear();case Me.Month:return C.getMonth();case Me.Date:return C.getDate();case Me.Hours:return C.getHours();case Me.Minutes:return C.getMinutes();case Me.Seconds:return C.getSeconds();case Me.FractionalSeconds:return C.getMilliseconds();case Me.Day:return C.getDay();default:throw new Error(`Unknown DateType value "${g}".`)}}(g,Z);if((m>0||Ne>-m)&&(Ne+=m),g===Me.Hours)0===Ne&&-12===m&&(Ne=12);else if(g===Me.FractionalSeconds)return function(g,C){return qt(g,3).substr(0,C)}(Ne,C);const vt=Et(ue,q.MinusSign);return qt(Ne,C,vt,w,P)}}function ht(g,C,m=G.Format,w=!1){return function(P,Z){return function(g,C,m,w,P,Z){switch(m){case $e.Months:return Oe(C,P,w)[g.getMonth()];case $e.Days:return zt(C,P,w)[g.getDay()];case $e.DayPeriods:const ue=g.getHours(),Ne=g.getMinutes();if(Z){const gt=Wr(C),mt=Kn(C,P,w),st=gt.findIndex(yt=>{if(Array.isArray(yt)){const[Dt,Qt]=yt,y=ue>=Dt.hours&&Ne>=Dt.minutes,h=ue<Qt.hours||ue===Qt.hours&&Ne<Qt.minutes;if(Dt.hours<Qt.hours){if(y&&h)return!0}else if(y||h)return!0}else if(yt.hours===ue&&yt.minutes===Ne)return!0;return!1});if(-1!==st)return mt[st]}return it(C,P,w)[ue<12?0:1];case $e.Eras:return Pt(C,w)[g.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${m}`)}}(P,Z,g,C,m,w)}}function Be(g){return function(C,m,w){const P=-1*w,Z=Et(m,q.MinusSign),ue=P>0?Math.floor(P/60):Math.ceil(P/60);switch(g){case nt.Short:return(P>=0?"+":"")+qt(ue,2,Z)+qt(Math.abs(P%60),2,Z);case nt.ShortGMT:return"GMT"+(P>=0?"+":"")+qt(ue,1,Z);case nt.Long:return"GMT"+(P>=0?"+":"")+qt(ue,2,Z)+":"+qt(Math.abs(P%60),2,Z);case nt.Extended:return 0===w?"Z":(P>=0?"+":"")+qt(ue,2,Z)+":"+qt(Math.abs(P%60),2,Z);default:throw new Error(`Unknown zone width "${g}"`)}}}function kn(g){return Tn(g.getFullYear(),g.getMonth(),g.getDate()+(4-g.getDay()))}function Qn(g,C=!1){return function(m,w){let P;if(C){const Z=new Date(m.getFullYear(),m.getMonth(),1).getDay()-1,ue=m.getDate();P=1+Math.floor((ue+Z)/7)}else{const Z=kn(m),ue=function(g){const C=Tn(g,0,1).getDay();return Tn(g,0,1+(C<=4?4:11)-C)}(Z.getFullYear()),Ne=Z.getTime()-ue.getTime();P=1+Math.round(Ne/6048e5)}return qt(P,g,Et(w,q.MinusSign))}}function kt(g,C=!1){return function(m,w){return qt(kn(m).getFullYear(),g,Et(w,q.MinusSign),C)}}const It={};function mr(g,C){g=g.replace(/:/g,"");const m=Date.parse("Jan 01, 1970 00:00:00 "+g)/6e4;return isNaN(m)?C:m}function O(g){return g instanceof Date&&!isNaN(g.valueOf())}const W=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function tn(g,C,m,w,P,Z,ue=!1){let Ne="",vt=!1;if(isFinite(g)){let gt=function(g){let w,P,Z,ue,Ne,C=Math.abs(g)+"",m=0;for((P=C.indexOf("."))>-1&&(C=C.replace(".","")),(Z=C.search(/e/i))>0?(P<0&&(P=Z),P+=+C.slice(Z+1),C=C.substring(0,Z)):P<0&&(P=C.length),Z=0;"0"===C.charAt(Z);Z++);if(Z===(Ne=C.length))w=[0],P=1;else{for(Ne--;"0"===C.charAt(Ne);)Ne--;for(P-=Z,w=[],ue=0;Z<=Ne;Z++,ue++)w[ue]=Number(C.charAt(Z))}return P>22&&(w=w.splice(0,21),m=P-1,P=1),{digits:w,exponent:m,integerLen:P}}(g);ue&&(gt=function(g){if(0===g.digits[0])return g;const C=g.digits.length-g.integerLen;return g.exponent?g.exponent+=2:(0===C?g.digits.push(0,0):1===C&&g.digits.push(0),g.integerLen+=2),g}(gt));let mt=C.minInt,st=C.minFrac,yt=C.maxFrac;if(Z){const b=Z.match(W);if(null===b)throw new Error(`${Z} is not a valid digit info`);const $=b[1],Ae=b[3],_t=b[5];null!=$&&(mt=sr($)),null!=Ae&&(st=sr(Ae)),null!=_t?yt=sr(_t):null!=Ae&&st>yt&&(yt=st)}!function(g,C,m){if(C>m)throw new Error(`The minimum number of digits after fraction (${C}) is higher than the maximum (${m}).`);let w=g.digits,P=w.length-g.integerLen;const Z=Math.min(Math.max(C,P),m);let ue=Z+g.integerLen,Ne=w[ue];if(ue>0){w.splice(Math.max(g.integerLen,ue));for(let st=ue;st<w.length;st++)w[st]=0}else{P=Math.max(0,P),g.integerLen=1,w.length=Math.max(1,ue=Z+1),w[0]=0;for(let st=1;st<ue;st++)w[st]=0}if(Ne>=5)if(ue-1<0){for(let st=0;st>ue;st--)w.unshift(0),g.integerLen++;w.unshift(1),g.integerLen++}else w[ue-1]++;for(;P<Math.max(0,Z);P++)w.push(0);let vt=0!==Z;const gt=C+g.integerLen,mt=w.reduceRight(function(st,yt,Dt,Qt){return Qt[Dt]=(yt+=st)<10?yt:yt-10,vt&&(0===Qt[Dt]&&Dt>=gt?Qt.pop():vt=!1),yt>=10?1:0},0);mt&&(w.unshift(mt),g.integerLen++)}(gt,st,yt);let Dt=gt.digits,Qt=gt.integerLen;const y=gt.exponent;let h=[];for(vt=Dt.every(b=>!b);Qt<mt;Qt++)Dt.unshift(0);for(;Qt<0;Qt++)Dt.unshift(0);Qt>0?h=Dt.splice(Qt,Dt.length):(h=Dt,Dt=[0]);const f=[];for(Dt.length>=C.lgSize&&f.unshift(Dt.splice(-C.lgSize,Dt.length).join(""));Dt.length>C.gSize;)f.unshift(Dt.splice(-C.gSize,Dt.length).join(""));Dt.length&&f.unshift(Dt.join("")),Ne=f.join(Et(m,w)),h.length&&(Ne+=Et(m,P)+h.join("")),y&&(Ne+=Et(m,q.Exponential)+"+"+y)}else Ne=Et(m,q.Infinity);return Ne=g<0&&!vt?C.negPre+Ne+C.negSuf:C.posPre+Ne+C.posSuf,Ne}function Zn(g,C,m,w,P){const ue=jn(Ht(C,Le.Currency),Et(C,q.MinusSign));return ue.minFrac=Ot(w),ue.maxFrac=ue.minFrac,tn(g,ue,C,q.CurrencyGroup,q.CurrencyDecimal,P).replace("\xa4",m).replace("\xa4","").trim()}function rr(g,C,m){return tn(g,jn(Ht(C,Le.Percent),Et(C,q.MinusSign)),C,q.Group,q.Decimal,m,!0).replace(new RegExp("%","g"),Et(C,q.PercentSign))}function ir(g,C,m){return tn(g,jn(Ht(C,Le.Decimal),Et(C,q.MinusSign)),C,q.Group,q.Decimal,m)}function jn(g,C="-"){const m={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},w=g.split(";"),P=w[0],Z=w[1],ue=-1!==P.indexOf(".")?P.split("."):[P.substring(0,P.lastIndexOf("0")+1),P.substring(P.lastIndexOf("0")+1)],Ne=ue[0],vt=ue[1]||"";m.posPre=Ne.substr(0,Ne.indexOf("#"));for(let mt=0;mt<vt.length;mt++){const st=vt.charAt(mt);"0"===st?m.minFrac=m.maxFrac=mt+1:"#"===st?m.maxFrac=mt+1:m.posSuf+=st}const gt=Ne.split(",");if(m.gSize=gt[1]?gt[1].length:0,m.lgSize=gt[2]||gt[1]?(gt[2]||gt[1]).length:0,Z){const mt=P.length-m.posPre.length-m.posSuf.length,st=Z.indexOf("#");m.negPre=Z.substr(0,st).replace(/'/g,""),m.negSuf=Z.substr(st+mt).replace(/'/g,"")}else m.negPre=C+m.posPre,m.negSuf=m.posSuf;return m}function sr(g){const C=parseInt(g);if(isNaN(C))throw new Error("Invalid integer literal when parsing "+g);return C}class Yn{}function Qr(g,C,m,w){let P=`=${g}`;if(C.indexOf(P)>-1||(P=m.getPluralCategory(g,w),C.indexOf(P)>-1))return P;if(C.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${g}"`)}let Dr=(()=>{class g extends Yn{constructor(m){super(),this.locale=m}getPluralCategory(m,w){switch(Wt(w||this.locale)(m)){case L.Zero:return"zero";case L.One:return"one";case L.Two:return"two";case L.Few:return"few";case L.Many:return"many";default:return"other"}}}return g.\u0275fac=function(m){return new(m||g)(p.\u0275\u0275inject(p.LOCALE_ID))},g.\u0275prov=p.\u0275\u0275defineInjectable({token:g,factory:g.\u0275fac}),g})();function Rr(g,C,m){return(0,p.\u0275registerLocaleData)(g,C,m)}function Ct(g,C){C=encodeURIComponent(C);for(const m of g.split(";")){const w=m.indexOf("="),[P,Z]=-1==w?[m,""]:[m.slice(0,w),m.slice(w+1)];if(P.trim()===C)return decodeURIComponent(Z)}return null}let dn=(()=>{class g{constructor(m,w,P,Z){this._iterableDiffers=m,this._keyValueDiffers=w,this._ngEl=P,this._renderer=Z,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(m){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof m?m.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(m){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof m?m.split(/\s+/):m,this._rawClass&&((0,p.\u0275isListLikeIterable)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const m=this._iterableDiffer.diff(this._rawClass);m&&this._applyIterableChanges(m)}else if(this._keyValueDiffer){const m=this._keyValueDiffer.diff(this._rawClass);m&&this._applyKeyValueChanges(m)}}_applyKeyValueChanges(m){m.forEachAddedItem(w=>this._toggleClass(w.key,w.currentValue)),m.forEachChangedItem(w=>this._toggleClass(w.key,w.currentValue)),m.forEachRemovedItem(w=>{w.previousValue&&this._toggleClass(w.key,!1)})}_applyIterableChanges(m){m.forEachAddedItem(w=>{if("string"!=typeof w.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,p.\u0275stringify)(w.item)}`);this._toggleClass(w.item,!0)}),m.forEachRemovedItem(w=>this._toggleClass(w.item,!1))}_applyClasses(m){m&&(Array.isArray(m)||m instanceof Set?m.forEach(w=>this._toggleClass(w,!0)):Object.keys(m).forEach(w=>this._toggleClass(w,!!m[w])))}_removeClasses(m){m&&(Array.isArray(m)||m instanceof Set?m.forEach(w=>this._toggleClass(w,!1)):Object.keys(m).forEach(w=>this._toggleClass(w,!1)))}_toggleClass(m,w){(m=m.trim())&&m.split(/\s+/g).forEach(P=>{w?this._renderer.addClass(this._ngEl.nativeElement,P):this._renderer.removeClass(this._ngEl.nativeElement,P)})}}return g.\u0275fac=function(m){return new(m||g)(p.\u0275\u0275directiveInject(p.IterableDiffers),p.\u0275\u0275directiveInject(p.KeyValueDiffers),p.\u0275\u0275directiveInject(p.ElementRef),p.\u0275\u0275directiveInject(p.Renderer2))},g.\u0275dir=p.\u0275\u0275defineDirective({type:g,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),g})(),An=(()=>{class g{constructor(m){this._viewContainerRef=m,this._componentRef=null,this._moduleRef=null}ngOnChanges(m){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const w=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(m.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const ue=w.get(p.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(ue.injector)}else this._moduleRef=null;const Z=(this._moduleRef?this._moduleRef.componentFactoryResolver:w.get(p.ComponentFactoryResolver)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(Z,this._viewContainerRef.length,w,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return g.\u0275fac=function(m){return new(m||g)(p.\u0275\u0275directiveInject(p.ViewContainerRef))},g.\u0275dir=p.\u0275\u0275defineDirective({type:g,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[p.\u0275\u0275NgOnChangesFeature]}),g})();class yn{constructor(C,m,w,P){this.$implicit=C,this.ngForOf=m,this.index=w,this.count=P}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Hn=(()=>{class g{constructor(m,w,P){this._viewContainer=m,this._template=w,this._differs=P,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(m){this._ngForOf=m,this._ngForOfDirty=!0}set ngForTrackBy(m){this._trackByFn=m}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(m){m&&(this._template=m)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const m=this._ngForOf;!this._differ&&m&&(this._differ=this._differs.find(m).create(this.ngForTrackBy))}if(this._differ){const m=this._differ.diff(this._ngForOf);m&&this._applyChanges(m)}}_applyChanges(m){const w=this._viewContainer;m.forEachOperation((P,Z,ue)=>{if(null==P.previousIndex)w.createEmbeddedView(this._template,new yn(P.item,this._ngForOf,-1,-1),null===ue?void 0:ue);else if(null==ue)w.remove(null===Z?void 0:Z);else if(null!==Z){const Ne=w.get(Z);w.move(Ne,ue),Xn(Ne,P)}});for(let P=0,Z=w.length;P<Z;P++){const Ne=w.get(P).context;Ne.index=P,Ne.count=Z,Ne.ngForOf=this._ngForOf}m.forEachIdentityChange(P=>{Xn(w.get(P.currentIndex),P)})}static ngTemplateContextGuard(m,w){return!0}}return g.\u0275fac=function(m){return new(m||g)(p.\u0275\u0275directiveInject(p.ViewContainerRef),p.\u0275\u0275directiveInject(p.TemplateRef),p.\u0275\u0275directiveInject(p.IterableDiffers))},g.\u0275dir=p.\u0275\u0275defineDirective({type:g,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),g})();function Xn(g,C){g.context.$implicit=C.item}let nn=(()=>{class g{constructor(m,w){this._viewContainer=m,this._context=new Un,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=w}set ngIf(m){this._context.$implicit=this._context.ngIf=m,this._updateView()}set ngIfThen(m){Nt("ngIfThen",m),this._thenTemplateRef=m,this._thenViewRef=null,this._updateView()}set ngIfElse(m){Nt("ngIfElse",m),this._elseTemplateRef=m,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(m,w){return!0}}return g.\u0275fac=function(m){return new(m||g)(p.\u0275\u0275directiveInject(p.ViewContainerRef),p.\u0275\u0275directiveInject(p.TemplateRef))},g.\u0275dir=p.\u0275\u0275defineDirective({type:g,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),g})();class Un{constructor(){this.$implicit=null,this.ngIf=null}}function Nt(g,C){if(C&&!C.createEmbeddedView)throw new Error(`${g} must be a TemplateRef, but received '${(0,p.\u0275stringify)(C)}'.`)}class Zr{constructor(C,m){this._viewContainerRef=C,this._templateRef=m,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(C){C&&!this._created?this.create():!C&&this._created&&this.destroy()}}let rn=(()=>{class g{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(m){this._ngSwitch=m,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(m){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(m)}_matchCase(m){const w=m==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||w,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),w}_updateDefaultCases(m){if(this._defaultViews&&m!==this._defaultUsed){this._defaultUsed=m;for(let w=0;w<this._defaultViews.length;w++)this._defaultViews[w].enforceState(m)}}}return g.\u0275fac=function(m){return new(m||g)},g.\u0275dir=p.\u0275\u0275defineDirective({type:g,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),g})(),be=(()=>{class g{constructor(m,w,P){this.ngSwitch=P,P._addCase(),this._view=new Zr(m,w)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return g.\u0275fac=function(m){return new(m||g)(p.\u0275\u0275directiveInject(p.ViewContainerRef),p.\u0275\u0275directiveInject(p.TemplateRef),p.\u0275\u0275directiveInject(rn,9))},g.\u0275dir=p.\u0275\u0275defineDirective({type:g,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),g})(),Ye=(()=>{class g{constructor(m,w,P){P._addDefault(new Zr(m,w))}}return g.\u0275fac=function(m){return new(m||g)(p.\u0275\u0275directiveInject(p.ViewContainerRef),p.\u0275\u0275directiveInject(p.TemplateRef),p.\u0275\u0275directiveInject(rn,9))},g.\u0275dir=p.\u0275\u0275defineDirective({type:g,selectors:[["","ngSwitchDefault",""]]}),g})(),$t=(()=>{class g{constructor(m){this._localization=m,this._caseViews={}}set ngPlural(m){this._switchValue=m,this._updateView()}addCase(m,w){this._caseViews[m]=w}_updateView(){this._clearViews();const m=Object.keys(this._caseViews),w=Qr(this._switchValue,m,this._localization);this._activateView(this._caseViews[w])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(m){m&&(this._activeView=m,this._activeView.create())}}return g.\u0275fac=function(m){return new(m||g)(p.\u0275\u0275directiveInject(Yn))},g.\u0275dir=p.\u0275\u0275defineDirective({type:g,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"}}),g})(),Cn=(()=>{class g{constructor(m,w,P,Z){this.value=m;const ue=!isNaN(Number(m));Z.addCase(ue?`=${m}`:m,new Zr(P,w))}}return g.\u0275fac=function(m){return new(m||g)(p.\u0275\u0275injectAttribute("ngPluralCase"),p.\u0275\u0275directiveInject(p.TemplateRef),p.\u0275\u0275directiveInject(p.ViewContainerRef),p.\u0275\u0275directiveInject($t,1))},g.\u0275dir=p.\u0275\u0275defineDirective({type:g,selectors:[["","ngPluralCase",""]]}),g})(),Rt=(()=>{class g{constructor(m,w,P){this._ngEl=m,this._differs=w,this._renderer=P,this._ngStyle=null,this._differ=null}set ngStyle(m){this._ngStyle=m,!this._differ&&m&&(this._differ=this._differs.find(m).create())}ngDoCheck(){if(this._differ){const m=this._differ.diff(this._ngStyle);m&&this._applyChanges(m)}}_setStyle(m,w){const[P,Z]=m.split(".");null!=(w=null!=w&&Z?`${w}${Z}`:w)?this._renderer.setStyle(this._ngEl.nativeElement,P,w):this._renderer.removeStyle(this._ngEl.nativeElement,P)}_applyChanges(m){m.forEachRemovedItem(w=>this._setStyle(w.key,null)),m.forEachAddedItem(w=>this._setStyle(w.key,w.currentValue)),m.forEachChangedItem(w=>this._setStyle(w.key,w.currentValue))}}return g.\u0275fac=function(m){return new(m||g)(p.\u0275\u0275directiveInject(p.ElementRef),p.\u0275\u0275directiveInject(p.KeyValueDiffers),p.\u0275\u0275directiveInject(p.Renderer2))},g.\u0275dir=p.\u0275\u0275defineDirective({type:g,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),g})(),In=(()=>{class g{constructor(m){this._viewContainerRef=m,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(m){if(m.ngTemplateOutlet){const w=this._viewContainerRef;this._viewRef&&w.remove(w.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?w.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&m.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return g.\u0275fac=function(m){return new(m||g)(p.\u0275\u0275directiveInject(p.ViewContainerRef))},g.\u0275dir=p.\u0275\u0275defineDirective({type:g,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[p.\u0275\u0275NgOnChangesFeature]}),g})();function sn(g,C){return Error(`InvalidPipeArgument: '${C}' for pipe '${(0,p.\u0275stringify)(g)}'`)}class Bt{createSubscription(C,m){return C.subscribe({next:m,error:w=>{throw w}})}dispose(C){C.unsubscribe()}onDestroy(C){C.unsubscribe()}}class je{createSubscription(C,m){return C.then(m,w=>{throw w})}dispose(C){}onDestroy(C){}}const Cr=new je,br=new Bt;let or=(()=>{class g{constructor(m){this._ref=m,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(m){return this._obj?m!==this._obj?(this._dispose(),this.transform(m)):this._latestValue:(m&&this._subscribe(m),this._latestValue)}_subscribe(m){this._obj=m,this._strategy=this._selectStrategy(m),this._subscription=this._strategy.createSubscription(m,w=>this._updateLatestValue(m,w))}_selectStrategy(m){if((0,p.\u0275isPromise)(m))return Cr;if((0,p.\u0275isSubscribable)(m))return br;throw sn(g,m)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(m,w){m===this._obj&&(this._latestValue=w,this._ref.markForCheck())}}return g.\u0275fac=function(m){return new(m||g)(p.\u0275\u0275directiveInject(p.ChangeDetectorRef,16))},g.\u0275pipe=p.\u0275\u0275definePipe({name:"async",type:g,pure:!1}),g})(),$n=(()=>{class g{transform(m){if(null==m)return null;if("string"!=typeof m)throw sn(g,m);return m.toLowerCase()}}return g.\u0275fac=function(m){return new(m||g)},g.\u0275pipe=p.\u0275\u0275definePipe({name:"lowercase",type:g,pure:!0}),g})();const on=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let Sn=(()=>{class g{transform(m){if(null==m)return null;if("string"!=typeof m)throw sn(g,m);return m.replace(on,w=>w[0].toUpperCase()+w.substr(1).toLowerCase())}}return g.\u0275fac=function(m){return new(m||g)},g.\u0275pipe=p.\u0275\u0275definePipe({name:"titlecase",type:g,pure:!0}),g})(),Jn=(()=>{class g{transform(m){if(null==m)return null;if("string"!=typeof m)throw sn(g,m);return m.toUpperCase()}}return g.\u0275fac=function(m){return new(m||g)},g.\u0275pipe=p.\u0275\u0275definePipe({name:"uppercase",type:g,pure:!0}),g})();const an=new p.InjectionToken("DATE_PIPE_DEFAULT_TIMEZONE");let ft=(()=>{class g{constructor(m,w){this.locale=m,this.defaultTimezone=w}transform(m,w="mediumDate",P,Z){var ue;if(null==m||""===m||m!=m)return null;try{return qn(m,w,Z||this.locale,null!==(ue=null!=P?P:this.defaultTimezone)&&void 0!==ue?ue:void 0)}catch(Ne){throw sn(g,Ne.message)}}}return g.\u0275fac=function(m){return new(m||g)(p.\u0275\u0275directiveInject(p.LOCALE_ID,16),p.\u0275\u0275directiveInject(an,24))},g.\u0275pipe=p.\u0275\u0275definePipe({name:"date",type:g,pure:!0}),g})();const Yr=/#/g;let bi=(()=>{class g{constructor(m){this._localization=m}transform(m,w,P){if(null==m)return"";if("object"!=typeof w||null===w)throw sn(g,w);return w[Qr(m,Object.keys(w),this._localization,P)].replace(Yr,m.toString())}}return g.\u0275fac=function(m){return new(m||g)(p.\u0275\u0275directiveInject(Yn,16))},g.\u0275pipe=p.\u0275\u0275definePipe({name:"i18nPlural",type:g,pure:!0}),g})(),ln=(()=>{class g{transform(m,w){if(null==m)return"";if("object"!=typeof w||"string"!=typeof m)throw sn(g,w);return w.hasOwnProperty(m)?w[m]:w.hasOwnProperty("other")?w.other:""}}return g.\u0275fac=function(m){return new(m||g)},g.\u0275pipe=p.\u0275\u0275definePipe({name:"i18nSelect",type:g,pure:!0}),g})(),fn=(()=>{class g{transform(m){return JSON.stringify(m,null,2)}}return g.\u0275fac=function(m){return new(m||g)},g.\u0275pipe=p.\u0275\u0275definePipe({name:"json",type:g,pure:!1}),g})(),ar=(()=>{class g{constructor(m){this.differs=m,this.keyValues=[],this.compareFn=wr}transform(m,w=wr){if(!m||!(m instanceof Map)&&"object"!=typeof m)return null;this.differ||(this.differ=this.differs.find(m).create());const P=this.differ.diff(m),Z=w!==this.compareFn;return P&&(this.keyValues=[],P.forEachItem(ue=>{this.keyValues.push(function(g,C){return{key:g,value:C}}(ue.key,ue.currentValue))})),(P||Z)&&(this.keyValues.sort(w),this.compareFn=w),this.keyValues}}return g.\u0275fac=function(m){return new(m||g)(p.\u0275\u0275directiveInject(p.KeyValueDiffers,16))},g.\u0275pipe=p.\u0275\u0275definePipe({name:"keyvalue",type:g,pure:!1}),g})();function wr(g,C){const m=g.key,w=C.key;if(m===w)return 0;if(void 0===m)return 1;if(void 0===w)return-1;if(null===m)return 1;if(null===w)return-1;if("string"==typeof m&&"string"==typeof w)return m<w?-1:1;if("number"==typeof m&&"number"==typeof w)return m-w;if("boolean"==typeof m&&"boolean"==typeof w)return m<w?-1:1;const P=String(m),Z=String(w);return P==Z?0:P<Z?-1:1}let _n=(()=>{class g{constructor(m){this._locale=m}transform(m,w,P){if(!Mr(m))return null;P=P||this._locale;try{return ir(Xr(m),P,w)}catch(Z){throw sn(g,Z.message)}}}return g.\u0275fac=function(m){return new(m||g)(p.\u0275\u0275directiveInject(p.LOCALE_ID,16))},g.\u0275pipe=p.\u0275\u0275definePipe({name:"number",type:g,pure:!0}),g})(),wi=(()=>{class g{constructor(m){this._locale=m}transform(m,w,P){if(!Mr(m))return null;P=P||this._locale;try{return rr(Xr(m),P,w)}catch(Z){throw sn(g,Z.message)}}}return g.\u0275fac=function(m){return new(m||g)(p.\u0275\u0275directiveInject(p.LOCALE_ID,16))},g.\u0275pipe=p.\u0275\u0275definePipe({name:"percent",type:g,pure:!0}),g})(),xr=(()=>{class g{constructor(m,w="USD"){this._locale=m,this._defaultCurrencyCode=w}transform(m,w=this._defaultCurrencyCode,P="symbol",Z,ue){if(!Mr(m))return null;ue=ue||this._locale,"boolean"==typeof P&&(P=P?"symbol":"code");let Ne=w||this._defaultCurrencyCode;"code"!==P&&(Ne="symbol"===P||"symbol-narrow"===P?Vt(Ne,"symbol"===P?"wide":"narrow",ue):P);try{return Zn(Xr(m),ue,Ne,w,Z)}catch(vt){throw sn(g,vt.message)}}}return g.\u0275fac=function(m){return new(m||g)(p.\u0275\u0275directiveInject(p.LOCALE_ID,16),p.\u0275\u0275directiveInject(p.DEFAULT_CURRENCY_CODE,16))},g.\u0275pipe=p.\u0275\u0275definePipe({name:"currency",type:g,pure:!0}),g})();function Mr(g){return!(null==g||""===g||g!=g)}function Xr(g){if("string"==typeof g&&!isNaN(Number(g)-parseFloat(g)))return Number(g);if("number"!=typeof g)throw new Error(`${g} is not a number`);return g}let Lr=(()=>{class g{transform(m,w,P){if(null==m)return null;if(!this.supports(m))throw sn(g,m);return m.slice(w,P)}supports(m){return"string"==typeof m||Array.isArray(m)}}return g.\u0275fac=function(m){return new(m||g)},g.\u0275pipe=p.\u0275\u0275definePipe({name:"slice",type:g,pure:!1}),g})(),ks=(()=>{class g{}return g.\u0275fac=function(m){return new(m||g)},g.\u0275mod=p.\u0275\u0275defineNgModule({type:g}),g.\u0275inj=p.\u0275\u0275defineInjector({providers:[{provide:Yn,useClass:Dr}]}),g})();const Jr="browser",Mi="server",hi="browserWorkerApp",Ai="browserWorkerUi";function pi(g){return g===Jr}function ki(g){return g===Mi}function gi(g){return g===hi}function Qi(g){return g===Ai}const Ii=new p.Version("13.1.1");let Zi=(()=>{class g{}return g.\u0275prov=(0,p.\u0275\u0275defineInjectable)({token:g,providedIn:"root",factory:()=>new Bi((0,p.\u0275\u0275inject)(ve),window)}),g})();class Bi{constructor(C,m){this.document=C,this.window=m,this.offset=()=>[0,0]}setOffset(C){this.offset=Array.isArray(C)?()=>C:C}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(C){this.supportsScrolling()&&this.window.scrollTo(C[0],C[1])}scrollToAnchor(C){if(!this.supportsScrolling())return;const m=function(g,C){const m=g.getElementById(C)||g.getElementsByName(C)[0];if(m)return m;if("function"==typeof g.createTreeWalker&&g.body&&(g.body.createShadowRoot||g.body.attachShadow)){const w=g.createTreeWalker(g.body,NodeFilter.SHOW_ELEMENT);let P=w.currentNode;for(;P;){const Z=P.shadowRoot;if(Z){const ue=Z.getElementById(C)||Z.querySelector(`[name="${C}"]`);if(ue)return ue}P=w.nextNode()}}return null}(this.document,C);m&&(this.scrollToElement(m),this.attemptFocus(m))}setHistoryScrollRestoration(C){if(this.supportScrollRestoration()){const m=this.window.history;m&&m.scrollRestoration&&(m.scrollRestoration=C)}}scrollToElement(C){const m=C.getBoundingClientRect(),w=m.left+this.window.pageXOffset,P=m.top+this.window.pageYOffset,Z=this.offset();this.window.scrollTo(w-Z[0],P-Z[1])}attemptFocus(C){return C.focus(),this.document.activeElement===C}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const C=Vr(this.window.history)||Vr(Object.getPrototypeOf(this.window.history));return!(!C||!C.writable&&!C.set)}catch(C){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(C){return!1}}}function Vr(g){return Object.getOwnPropertyDescriptor(g,"scrollRestoration")}class Yi{setOffset(C){}getScrollPosition(){return[0,0]}scrollToPosition(C){}scrollToAnchor(C){}setHistoryScrollRestoration(C){}}class Si{}},461:(qe,de,V)=>{"use strict";V.r(de),V.d(de,{ANALYZE_FOR_ENTRY_COMPONENTS:()=>My,APP_BOOTSTRAP_LISTENER:()=>Sm,APP_ID:()=>wm,APP_INITIALIZER:()=>vc,ApplicationInitStatus:()=>Vs,ApplicationModule:()=>iw,ApplicationRef:()=>Mo,Attribute:()=>hd,COMPILER_OPTIONS:()=>Pm,CUSTOM_ELEMENTS_SCHEMA:()=>Qd,ChangeDetectionStrategy:()=>It,ChangeDetectorRef:()=>Km,Compiler:()=>Ec,CompilerFactory:()=>pb,Component:()=>rb,ComponentFactory:()=>ha,ComponentFactoryResolver:()=>_o,ComponentRef:()=>ug,ContentChild:()=>Iy,ContentChildren:()=>Ay,DEFAULT_CURRENCY_CODE:()=>Fm,DebugElement:()=>Ub,DebugEventListener:()=>Rb,DebugNode:()=>Hb,DefaultIterableDiffer:()=>Jm,Directive:()=>bm,ElementRef:()=>vo,EmbeddedViewRef:()=>Ob,ErrorHandler:()=>to,EventEmitter:()=>li,Host:()=>Dd,HostBinding:()=>ab,HostListener:()=>lb,INJECTOR:()=>na,Inject:()=>Qs,InjectFlags:()=>Be,Injectable:()=>TD,InjectionToken:()=>Yt,Injector:()=>dr,Input:()=>sb,IterableDiffers:()=>Ma,KeyValueDiffers:()=>Aa,LOCALE_ID:()=>ba,MissingTranslationStrategy:()=>ui,ModuleWithComponentFactories:()=>Nm,NO_ERRORS_SCHEMA:()=>Zd,NgModule:()=>ub,NgModuleFactory:()=>vg,NgModuleRef:()=>Rs,NgProbeToken:()=>bb,NgZone:()=>fr,Optional:()=>Hi,Output:()=>ob,PACKAGE_ROOT_URL:()=>db,PLATFORM_ID:()=>Im,PLATFORM_INITIALIZER:()=>Am,Pipe:()=>ib,PlatformRef:()=>Tc,Query:()=>Gs,QueryList:()=>_a,ReflectiveInjector:()=>Ss,ReflectiveKey:()=>Ei,Renderer2:()=>_C,RendererFactory2:()=>dg,RendererStyleFlags2:()=>ii,ResolvedReflectiveFactory:()=>Bh,Sanitizer:()=>fg,SecurityContext:()=>un,Self:()=>Uo,SimpleChange:()=>m,SkipSelf:()=>Ui,TRANSLATIONS:()=>fb,TRANSLATIONS_FORMAT:()=>hb,TemplateRef:()=>Co,Testability:()=>Lm,TestabilityRegistry:()=>Mc,Type:()=>ko,VERSION:()=>pg,Version:()=>hg,ViewChild:()=>Ty,ViewChildren:()=>Sy,ViewContainerRef:()=>Da,ViewEncapsulation:()=>en,ViewRef:()=>Qm,asNativeElements:()=>xb,assertPlatform:()=>Hm,createNgModuleRef:()=>AC,createPlatform:()=>Bm,createPlatformFactory:()=>jm,defineInjectable:()=>$e,destroyPlatform:()=>wb,enableProdMode:()=>Tb,forwardRef:()=>oe,getDebugNode:()=>wa,getModuleFactory:()=>Fb,getNgModuleById:()=>Nb,getPlatform:()=>Sc,inject:()=>$y,isDevMode:()=>Sb,platformCore:()=>Yb,resolveForwardRef:()=>_e,setTestabilityGetter:()=>Eb,\u0275ALLOW_MULTIPLE_PLATFORMS:()=>Ic,\u0275APP_ID_RANDOM_PROVIDER:()=>Mm,\u0275ChangeDetectorStatus:()=>St,\u0275ComponentFactory:()=>ha,\u0275Console:()=>Tm,\u0275DEFAULT_LOCALE_ID:()=>ho,\u0275INJECTOR_SCOPE:()=>Vl,\u0275LifecycleHooksFeature:()=>Mh,\u0275LocaleDataIndex:()=>He,\u0275NG_COMP_DEF:()=>Bn,\u0275NG_DIR_DEF:()=>yr,\u0275NG_ELEMENT_ID:()=>Zn,\u0275NG_INJ_DEF:()=>gr,\u0275NG_MOD_DEF:()=>Or,\u0275NG_PIPE_DEF:()=>_r,\u0275NG_PROV_DEF:()=>ct,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>pa,\u0275NO_CHANGE:()=>tt,\u0275NgModuleFactory:()=>ya,\u0275NoopNgZone:()=>xm,\u0275ReflectionCapabilities:()=>Ba,\u0275Render3ComponentFactory:()=>ma,\u0275Render3ComponentRef:()=>yg,\u0275Render3NgModuleRef:()=>ic,\u0275RuntimeError:()=>Oe,\u0275ViewRef:()=>Os,\u0275_sanitizeHtml:()=>Vd,\u0275_sanitizeUrl:()=>Ys,\u0275allowSanitizationBypassAndThrow:()=>cs,\u0275bypassSanitizationTrustHtml:()=>s_,\u0275bypassSanitizationTrustResourceUrl:()=>u_,\u0275bypassSanitizationTrustScript:()=>a_,\u0275bypassSanitizationTrustStyle:()=>o_,\u0275bypassSanitizationTrustUrl:()=>l_,\u0275clearResolutionOfComponentResourcesQueue:()=>Md,\u0275compileComponent:()=>dm,\u0275compileDirective:()=>_c,\u0275compileNgModule:()=>sm,\u0275compileNgModuleDefs:()=>om,\u0275compileNgModuleFactory:()=>Vm,\u0275compilePipe:()=>Em,\u0275createInjector:()=>Bl,\u0275defaultIterableDiffers:()=>sy,\u0275defaultKeyValueDiffers:()=>oy,\u0275detectChanges:()=>ah,\u0275devModeEqual:()=>Sh,\u0275findLocaleData:()=>qu,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>rm,\u0275getDebugNode:()=>wa,\u0275getDebugNodeR2:()=>jb,\u0275getDirectives:()=>_h,\u0275getHostElement:()=>Ul,\u0275getInjectableDef:()=>Tn,\u0275getLContext:()=>On,\u0275getLocaleCurrencyCode:()=>_E,\u0275getLocalePluralCase:()=>Op,\u0275getSanitizationBypassType:()=>Td,\u0275global:()=>W,\u0275injectChangeDetectorRef:()=>qm,\u0275isBoundToModule:()=>km,\u0275isDefaultChangeDetectionStrategy:()=>mr,\u0275isListLikeIterable:()=>ao,\u0275isObservable:()=>qh,\u0275isPromise:()=>fu,\u0275isSubscribable:()=>Kh,\u0275ivyEnabled:()=>sw,\u0275makeDecorator:()=>ss,\u0275markDirty:()=>lh,\u0275noSideEffects:()=>kt,\u0275patchComponentDefWithScope:()=>gc,\u0275publishDefaultGlobalUtils:()=>fD,\u0275publishGlobalUtil:()=>Fr,\u0275registerLocaleData:()=>yE,\u0275registerNgModuleType:()=>Eg,\u0275renderComponent:()=>hD,\u0275resetCompiledComponents:()=>KC,\u0275resetJitOptions:()=>zC,\u0275resolveComponentResources:()=>bd,\u0275setClassMetadata:()=>_g,\u0275setCurrentInjector:()=>Ua,\u0275setDocument:()=>h,\u0275setLocaleId:()=>Lp,\u0275store:()=>Fh,\u0275stringify:()=>H,\u0275transitiveScopesFor:()=>wo,\u0275unregisterLocaleData:()=>vE,\u0275unwrapSafeValue:()=>_i,\u0275whenRendered:()=>pD,\u0275\u0275CopyDefinitionFeature:()=>Ih,\u0275\u0275FactoryTarget:()=>vn,\u0275\u0275InheritDefinitionFeature:()=>Gl,\u0275\u0275NgOnChangesFeature:()=>w,\u0275\u0275ProvidersFeature:()=>lg,\u0275\u0275advance:()=>Sf,\u0275\u0275attribute:()=>Kl,\u0275\u0275attributeInterpolate1:()=>ql,\u0275\u0275attributeInterpolate2:()=>Ql,\u0275\u0275attributeInterpolate3:()=>Zl,\u0275\u0275attributeInterpolate4:()=>Yl,\u0275\u0275attributeInterpolate5:()=>Xl,\u0275\u0275attributeInterpolate6:()=>Jl,\u0275\u0275attributeInterpolate7:()=>eu,\u0275\u0275attributeInterpolate8:()=>tu,\u0275\u0275attributeInterpolateV:()=>nu,\u0275\u0275classMap:()=>ap,\u0275\u0275classMapInterpolate1:()=>gp,\u0275\u0275classMapInterpolate2:()=>mp,\u0275\u0275classMapInterpolate3:()=>yp,\u0275\u0275classMapInterpolate4:()=>_p,\u0275\u0275classMapInterpolate5:()=>vp,\u0275\u0275classMapInterpolate6:()=>Dp,\u0275\u0275classMapInterpolate7:()=>Ep,\u0275\u0275classMapInterpolate8:()=>Cp,\u0275\u0275classMapInterpolateV:()=>bp,\u0275\u0275classProp:()=>Au,\u0275\u0275contentQuery:()=>Yg,\u0275\u0275defineComponent:()=>ir,\u0275\u0275defineDirective:()=>Dr,\u0275\u0275defineInjectable:()=>Me,\u0275\u0275defineInjector:()=>qn,\u0275\u0275defineNgModule:()=>sr,\u0275\u0275definePipe:()=>Rr,\u0275\u0275directiveInject:()=>co,\u0275\u0275disableBindings:()=>mi,\u0275\u0275element:()=>Gh,\u0275\u0275elementContainer:()=>zh,\u0275\u0275elementContainerEnd:()=>du,\u0275\u0275elementContainerStart:()=>cu,\u0275\u0275elementEnd:()=>uu,\u0275\u0275elementStart:()=>lu,\u0275\u0275enableBindings:()=>hn,\u0275\u0275getCurrentView:()=>Wh,\u0275\u0275getInheritedFactory:()=>fd,\u0275\u0275hostProperty:()=>Wu,\u0275\u0275i18n:()=>rg,\u0275\u0275i18nApply:()=>sg,\u0275\u0275i18nAttributes:()=>ig,\u0275\u0275i18nEnd:()=>Xu,\u0275\u0275i18nExp:()=>Ju,\u0275\u0275i18nPostprocess:()=>og,\u0275\u0275i18nStart:()=>Yu,\u0275\u0275inject:()=>Mn,\u0275\u0275injectAttribute:()=>La,\u0275\u0275invalidFactory:()=>$h,\u0275\u0275invalidFactoryDep:()=>$a,\u0275\u0275listener:()=>hu,\u0275\u0275loadQuery:()=>Xg,\u0275\u0275namespaceHTML:()=>Jc,\u0275\u0275namespaceMathML:()=>Xc,\u0275\u0275namespaceSVG:()=>Yc,\u0275\u0275nextContext:()=>Yh,\u0275\u0275ngDeclareClassMetadata:()=>aw,\u0275\u0275ngDeclareComponent:()=>lw,\u0275\u0275ngDeclareDirective:()=>ow,\u0275\u0275ngDeclareFactory:()=>uw,\u0275\u0275ngDeclareInjectable:()=>dw,\u0275\u0275ngDeclareInjector:()=>fw,\u0275\u0275ngDeclareNgModule:()=>hw,\u0275\u0275ngDeclarePipe:()=>pw,\u0275\u0275pipe:()=>kg,\u0275\u0275pipeBind1:()=>Bg,\u0275\u0275pipeBind2:()=>jg,\u0275\u0275pipeBind3:()=>Hg,\u0275\u0275pipeBind4:()=>Ug,\u0275\u0275pipeBindV:()=>$g,\u0275\u0275projection:()=>Jh,\u0275\u0275projectionDef:()=>Xh,\u0275\u0275property:()=>ou,\u0275\u0275propertyInterpolate:()=>mu,\u0275\u0275propertyInterpolate1:()=>oa,\u0275\u0275propertyInterpolate2:()=>yu,\u0275\u0275propertyInterpolate3:()=>_u,\u0275\u0275propertyInterpolate4:()=>vu,\u0275\u0275propertyInterpolate5:()=>Du,\u0275\u0275propertyInterpolate6:()=>Eu,\u0275\u0275propertyInterpolate7:()=>Cu,\u0275\u0275propertyInterpolate8:()=>bu,\u0275\u0275propertyInterpolateV:()=>wu,\u0275\u0275pureFunction0:()=>bg,\u0275\u0275pureFunction1:()=>wg,\u0275\u0275pureFunction2:()=>Mg,\u0275\u0275pureFunction3:()=>Ag,\u0275\u0275pureFunction4:()=>Ig,\u0275\u0275pureFunction5:()=>Sg,\u0275\u0275pureFunction6:()=>Tg,\u0275\u0275pureFunction7:()=>Fg,\u0275\u0275pureFunction8:()=>Ng,\u0275\u0275pureFunctionV:()=>Pg,\u0275\u0275queryRefresh:()=>Qg,\u0275\u0275reference:()=>Nh,\u0275\u0275resolveBody:()=>tf,\u0275\u0275resolveDocument:()=>ef,\u0275\u0275resolveWindow:()=>Jd,\u0275\u0275restoreView:()=>Ir,\u0275\u0275sanitizeHtml:()=>kd,\u0275\u0275sanitizeResourceUrl:()=>Ja,\u0275\u0275sanitizeScript:()=>jd,\u0275\u0275sanitizeStyle:()=>Bd,\u0275\u0275sanitizeUrl:()=>Xa,\u0275\u0275sanitizeUrlOrResourceUrl:()=>$d,\u0275\u0275setComponentScope:()=>jn,\u0275\u0275setNgModuleScope:()=>Yn,\u0275\u0275styleMap:()=>Hr,\u0275\u0275styleMapInterpolate1:()=>wp,\u0275\u0275styleMapInterpolate2:()=>Mp,\u0275\u0275styleMapInterpolate3:()=>Ap,\u0275\u0275styleMapInterpolate4:()=>Ip,\u0275\u0275styleMapInterpolate5:()=>Sp,\u0275\u0275styleMapInterpolate6:()=>Tp,\u0275\u0275styleMapInterpolate7:()=>Fp,\u0275\u0275styleMapInterpolate8:()=>Np,\u0275\u0275styleMapInterpolateV:()=>Pp,\u0275\u0275styleProp:()=>Mu,\u0275\u0275stylePropInterpolate1:()=>Vu,\u0275\u0275stylePropInterpolate2:()=>ku,\u0275\u0275stylePropInterpolate3:()=>Bu,\u0275\u0275stylePropInterpolate4:()=>ju,\u0275\u0275stylePropInterpolate5:()=>Hu,\u0275\u0275stylePropInterpolate6:()=>Uu,\u0275\u0275stylePropInterpolate7:()=>$u,\u0275\u0275stylePropInterpolate8:()=>Gu,\u0275\u0275stylePropInterpolateV:()=>zu,\u0275\u0275syntheticHostListener:()=>pu,\u0275\u0275syntheticHostProperty:()=>Ku,\u0275\u0275template:()=>Th,\u0275\u0275templateRefExtractor:()=>nm,\u0275\u0275text:()=>pp,\u0275\u0275textInterpolate:()=>Su,\u0275\u0275textInterpolate1:()=>la,\u0275\u0275textInterpolate2:()=>Tu,\u0275\u0275textInterpolate3:()=>Fu,\u0275\u0275textInterpolate4:()=>Nu,\u0275\u0275textInterpolate5:()=>Pu,\u0275\u0275textInterpolate6:()=>Ou,\u0275\u0275textInterpolate7:()=>Ru,\u0275\u0275textInterpolate8:()=>xu,\u0275\u0275textInterpolateV:()=>Lu,\u0275\u0275trustConstantHtml:()=>Hd,\u0275\u0275trustConstantResourceUrl:()=>Ud,\u0275\u0275viewQuery:()=>Zg});var p=V(818),N=V(813);const ge=(0,V(776).d)(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ae=V(308),Q=V(519);let ve=(()=>{class e extends p.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new B(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new ge}next(n){(0,Q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){(0,Q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){(0,Q.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{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(null===(n=this.observers)||void 0===n?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){const{hasError:r,isStopped:i,observers:s}=this;return r||i?N.Lc:(this.currentObservers=null,s.push(n),new N.w0(()=>{this.currentObservers=null,(0,ae.P)(s,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:i,isStopped:s}=this;r?n.error(i):s&&n.complete()}asObservable(){const n=new p.y;return n.source=this,n}}return e.create=(t,n)=>new B(t,n),e})();class B extends ve{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,t)}error(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,t)}complete(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)}_subscribe(t){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==r?r:N.Lc}}var pe=V(969),te=V(955),le=V(85),Je=(V(903),V(499)),X=V(975);function se(e,t,n=1/0){return(0,X.m)(t)?se((r,i)=>(0,pe.U)((s,a)=>t(r,s,i,a))((0,te.Xf)(e(r,i))),n):("number"==typeof t&&(n=t),(0,le.e)((r,i)=>function(e,t,n,r,i,s,a,u){const c=[];let _=0,E=0,I=!1;const F=()=>{I&&!c.length&&!_&&t.complete()},j=ce=>_<r?Y(ce):c.push(ce),Y=ce=>{_++;let Ee=!1;(0,te.Xf)(n(ce,E++)).subscribe((0,Je.x)(t,we=>{t.next(we)},()=>{Ee=!0},void 0,()=>{if(Ee)try{for(_--;c.length&&_<r;){const we=c.shift();Y(we)}F()}catch(we){t.error(we)}}))};return e.subscribe((0,Je.x)(t,j,()=>{I=!0,F()})),()=>{}}(r,i,e,n)))}var ee=V(330);const fe=new p.y(e=>e.complete());var k=V(635),ye=V(985);function Qe(...e){const t=(0,k.yG)(e),n=(0,k._6)(e,1/0),r=e;return r.length?1===r.length?(0,te.Xf)(r[0]):function(e=1/0){return se(ee.y,e)}(n)((0,ye.D)(r,t)):fe}var Fe=V(3);function Le(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new Fe.Hp({next:()=>{r.unsubscribe(),e()}});return t(...n).subscribe(r)}function L(e){for(let t in e)if(e[t]===L)return t;throw Error("Could not find renamed property on target object.")}function G(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function H(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(H).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function K(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const q=L({__forward_ref__:L});function oe(e){return e.__forward_ref__=oe,e.toString=function(){return H(this())},e}function _e(e){return it(e)?e():e}function it(e){return"function"==typeof e&&e.hasOwnProperty(q)&&e.__forward_ref__===oe}class Oe extends Error{constructor(t,n){super(function(e,t){return`${e?`NG0${e}: `:""}${t}`}(t,n)),this.code=t}}function Ie(e){return"string"==typeof e?e:null==e?"":String(e)}function rt(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Ie(e)}function Ht(e,t){const n=t?` in ${t}`:"";throw new Oe("201",`No provider for ${rt(e)} found${n}`)}function pt(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}function Me(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}const $e=Me;function qn(e){return{providers:e.providers||[],imports:e.imports||[]}}function Tn(e){return Jt(e,ct)||Jt(e,ht)}function Jt(e,t){return e.hasOwnProperty(t)?e[t]:null}function Kr(e){return e&&(e.hasOwnProperty(gr)||e.hasOwnProperty(Pr))?e[gr]:null}const ct=L({\u0275prov:L}),gr=L({\u0275inj:L}),ht=L({ngInjectableDef:L}),Pr=L({ngInjectorDef:L});var Be=(()=>((Be=Be||{})[Be.Default=0]="Default",Be[Be.Host=1]="Host",Be[Be.Self=2]="Self",Be[Be.SkipSelf=4]="SkipSelf",Be[Be.Optional=8]="Optional",Be))();let Fn;function mn(e){const t=Fn;return Fn=e,t}function kn(e,t,n){const r=Tn(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&Be.Optional?null:void 0!==t?t:void Ht(H(e),"Injector")}function kt(e){return{toString:e}.toString()}var It=(()=>((It=It||{})[It.OnPush=0]="OnPush",It[It.Default=1]="Default",It))(),St=(()=>((St=St||{})[St.CheckOnce=0]="CheckOnce",St[St.Checked=1]="Checked",St[St.CheckAlways=2]="CheckAlways",St[St.Detached=3]="Detached",St[St.Errored=4]="Errored",St[St.Destroyed=5]="Destroyed",St))();function mr(e){return null==e||e===It.Default}var en=(()=>{return(e=en||(en={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",en;var e})();const x="undefined"!=typeof globalThis&&globalThis,R="undefined"!=typeof window&&window,A="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,W=x||"undefined"!=typeof global&&global||R||A,dt={},We=[],Bn=L({\u0275cmp:L}),yr=L({\u0275dir:L}),_r=L({\u0275pipe:L}),Or=L({\u0275mod:L}),tn=L({\u0275fac:L}),Zn=L({__NG_ELEMENT_ID__:L});let rr=0;function ir(e){return kt(()=>{const n={},r={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===It.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||We,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||en.Emulated,id:"c",styles:e.styles||We,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,s=e.features,a=e.pipes;return r.id+=rr++,r.inputs=Qr(e.inputs,n),r.outputs=Qr(e.outputs),s&&s.forEach(u=>u(r)),r.directiveDefs=i?()=>("function"==typeof i?i():i).map(vr):null,r.pipeDefs=a?()=>("function"==typeof a?a():a).map(Ci):null,r})}function jn(e,t,n){const r=e.\u0275cmp;r.directiveDefs=()=>t.map(vr),r.pipeDefs=()=>n.map(Ci)}function vr(e){return Ct(e)||dn(e)}function Ci(e){return An(e)}const qr={};function sr(e){return kt(()=>{const t={type:e.type,bootstrap:e.bootstrap||We,declarations:e.declarations||We,imports:e.imports||We,exports:e.exports||We,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(qr[e.id]=e.type),t})}function Yn(e,t){return kt(()=>{const n=yn(e,!0);n.declarations=t.declarations||We,n.imports=t.imports||We,n.exports=t.exports||We})}function Qr(e,t){if(null==e)return dt;const n={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],s=i;Array.isArray(i)&&(s=i[1],i=i[0]),n[i]=r,t&&(t[i]=s)}return n}const Dr=ir;function Rr(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Ct(e){return e[Bn]||null}function dn(e){return e[yr]||null}function An(e){return e[_r]||null}function yn(e,t){const n=e[Or]||null;if(!n&&!0===t)throw new Error(`Type ${H(e)} does not have '\u0275mod' property.`);return n}function ln(e){return Array.isArray(e)&&"object"==typeof e[1]}function fn(e){return Array.isArray(e)&&!0===e[1]}function fi(e){return 0!=(8&e.flags)}function ar(e){return 2==(2&e.flags)}function wr(e){return 1==(1&e.flags)}function _n(e){return null!==e.template}function wi(e){return 0!=(512&e[2])}function C(e,t){return e.hasOwnProperty(tn)?e[tn]:null}class m{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function w(){return P}function P(e){return e.type.prototype.ngOnChanges&&(e.setInput=ue),Z}function Z(){const e=vt(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===dt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function ue(e,t,n,r){const i=vt(e)||function(e,t){return e[Ne]=t}(e,{previous:dt,current:null}),s=i.current||(i.current={}),a=i.previous,u=this.declaredInputs[n],c=a[u];s[u]=new m(c&&c.currentValue,t,a===dt),e[r]=t}w.ngInherit=!0;const Ne="__ngSimpleChanges__";function vt(e){return e[Ne]||null}let mt=null;const st=e=>{mt=e},yt=function(e,t,n){null!=mt&&mt(e,t,n)},Dt="http://www.w3.org/2000/svg",Qt="http://www.w3.org/1998/MathML/";let y;function h(e){y=e}function f(){return void 0!==y?y:"undefined"!=typeof document?document:void 0}function $(e){return!!e.listen}const Ae={createRenderer:(e,t)=>f()};function at(e){for(;Array.isArray(e);)e=e[0];return e}function l(e,t){return at(t[e])}function d(e,t){return at(t[e.index])}function M(e,t){return e.data[t]}function S(e,t){return e[t]}function T(e,t){const n=t[e];return ln(n)?n:n[0]}function U(e){return 4==(4&e[2])}function J(e){return 128==(128&e[2])}function Se(e,t){return null==t?null:e[t]}function Xe(e){e[18]=0}function ot(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const he={lFrame:qc(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function bn(){return he.bindingsEnabled}function hn(){he.bindingsEnabled=!0}function mi(){he.bindingsEnabled=!1}function re(){return he.lFrame.lView}function Ge(){return he.lFrame.tView}function Ir(e){return he.lFrame.contextLView=e,e[8]}function Mt(){let e=Sr();for(;null!==e&&64===e.type;)e=e.parent;return e}function Sr(){return he.lFrame.currentTNode}function Ti(){const e=he.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Pn(e,t){const n=he.lFrame;n.currentTNode=e,n.isParent=t}function kr(){return he.lFrame.isParent}function Xi(){he.lFrame.isParent=!1}function Ve(){return he.isInCheckNoChangesMode}function ze(e){he.isInCheckNoChangesMode=e}function Ke(){const e=he.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function At(){return he.lFrame.bindingIndex}function lr(e){return he.lFrame.bindingIndex=e}function pn(){return he.lFrame.bindingIndex++}function wn(e){const t=he.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Bs(e){he.lFrame.inI18n=e}function Sa(e,t){const n=he.lFrame;n.bindingIndex=n.bindingRootIndex=e,yi(t)}function yi(e){he.lFrame.currentDirectiveIndex=e}function Fi(e){const t=he.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function ei(){return he.lFrame.currentQueryIndex}function ji(e){he.lFrame.currentQueryIndex=e}function ay(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Wc(e,t,n){if(n&Be.SkipSelf){let i=t,s=e;for(;!(i=i.parent,null!==i||n&Be.Host||(i=ay(s),null===i||(s=s[15],10&i.type))););if(null===i)return!1;t=i,e=s}const r=he.lFrame=Kc();return r.currentTNode=t,r.lView=e,!0}function Io(e){const t=Kc(),n=e[1];he.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Kc(){const e=he.lFrame,t=null===e?null:e.child;return null===t?qc(e):t}function qc(e){const 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 null!==e&&(e.child=t),t}function Qc(){const e=he.lFrame;return he.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Zc=Qc;function So(){const e=Qc();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 Gn(){return he.lFrame.selectedIndex}function Ni(e){he.lFrame.selectedIndex=e}function Zt(){const e=he.lFrame;return M(e.tView,e.selectedIndex)}function Yc(){he.lFrame.currentNamespace=Dt}function Xc(){he.lFrame.currentNamespace=Qt}function Jc(){he.lFrame.currentNamespace=null}function To(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const s=e.data[n].type.prototype,{ngAfterContentInit:a,ngAfterContentChecked:u,ngAfterViewInit:c,ngAfterViewChecked:_,ngOnDestroy:E}=s;a&&(e.contentHooks||(e.contentHooks=[])).push(-n,a),u&&((e.contentHooks||(e.contentHooks=[])).push(n,u),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,u)),c&&(e.viewHooks||(e.viewHooks=[])).push(-n,c),_&&((e.viewHooks||(e.viewHooks=[])).push(n,_),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,_)),null!=E&&(e.destroyHooks||(e.destroyHooks=[])).push(n,E)}}function Fo(e,t,n){ed(e,t,3,n)}function No(e,t,n,r){(3&e[2])===n&&ed(e,t,n,r)}function Ta(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function ed(e,t,n,r){const s=null!=r?r:-1,a=t.length-1;let u=0;for(let c=void 0!==r?65535&e[18]:0;c<a;c++)if("number"==typeof t[c+1]){if(u=t[c],null!=r&&u>=r)break}else t[c]<0&&(e[18]+=65536),(u<s||-1==s)&&(hy(e,n,t,c),e[18]=(4294901760&e[18])+c+2),c++}function hy(e,t,n,r){const i=n[r]<0,s=n[r+1],u=e[i?-n[r]:n[r]];if(i){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048,yt(4,u,s);try{s.call(u)}finally{yt(5,u,s)}}}else{yt(4,u,s);try{s.call(u)}finally{yt(5,u,s)}}}class js{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Po(e,t,n){const r=$(e);let i=0;for(;i<n.length;){const s=n[i];if("number"==typeof s){if(0!==s)break;i++;const a=n[i++],u=n[i++],c=n[i++];r?e.setAttribute(t,u,c,a):t.setAttributeNS(a,u,c)}else{const a=s,u=n[++i];Na(a)?r&&e.setProperty(t,a,u):r?e.setAttribute(t,a,u):t.setAttribute(a,u),i++}}return i}function td(e){return 3===e||4===e||6===e}function Na(e){return 64===e.charCodeAt(0)}function Oo(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){const i=t[r];"number"==typeof i?n=i:0===n||nd(e,n,i,null,-1===n||2===n?t[++r]:null)}}return e}function nd(e,t,n,r,i){let s=0,a=e.length;if(-1===t)a=-1;else for(;s<e.length;){const u=e[s++];if("number"==typeof u){if(u===t){a=-1;break}if(u>t){a=s-1;break}}}for(;s<e.length;){const u=e[s];if("number"==typeof u)break;if(u===n){if(null===r)return void(null!==i&&(e[s+1]=i));if(r===e[s+1])return void(e[s+2]=i)}s++,null!==r&&s++,null!==i&&s++}-1!==a&&(e.splice(a,0,t),s=a+1),e.splice(s++,0,n),null!==r&&e.splice(s++,0,r),null!==i&&e.splice(s++,0,i)}function rd(e){return-1!==e}function Ji(e){return 32767&e}function es(e,t){let n=function(e){return e>>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let Pa=!0;function Ro(e){const t=Pa;return Pa=e,t}let vy=0;function Us(e,t){const n=Ra(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Oa(r.data,e),Oa(t,null),Oa(r.blueprint,null));const i=xo(e,t),s=e.injectorIndex;if(rd(i)){const a=Ji(i),u=es(i,t),c=u[1].data;for(let _=0;_<8;_++)t[s+_]=u[a+_]|c[a+_]}return t[s+8]=i,s}function Oa(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ra(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function xo(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;null!==i;){const s=i[1],a=s.type;if(r=2===a?s.declTNode:1===a?i[6]:null,null===r)return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function Lo(e,t,n){!function(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Zn)&&(r=n[Zn]),null==r&&(r=n[Zn]=vy++);const i=255&r;t.data[e+(i>>5)]|=1<<i}(e,t,n)}function od(e,t,n){if(n&Be.Optional)return e;Ht(t,"NodeInjector")}function ad(e,t,n,r){if(n&Be.Optional&&void 0===r&&(r=null),0==(n&(Be.Self|Be.Host))){const i=e[9],s=mn(void 0);try{return i?i.get(t,r,n&Be.Optional):kn(t,r,n&Be.Optional)}finally{mn(s)}}return od(r,t,n)}function ld(e,t,n,r=Be.Default,i){if(null!==e){const s=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Zn)?e[Zn]:void 0;return"number"==typeof t?t>=0?255&t:Cy:t}(n);if("function"==typeof s){if(!Wc(t,e,r))return r&Be.Host?od(i,n,r):ad(t,n,r,i);try{const a=s(r);if(null!=a||r&Be.Optional)return a;Ht(n)}finally{Zc()}}else if("number"==typeof s){let a=null,u=Ra(e,t),c=-1,_=r&Be.Host?t[16][6]:null;for((-1===u||r&Be.SkipSelf)&&(c=-1===u?xo(e,t):t[u+8],-1!==c&&dd(r,!1)?(a=t[1],u=Ji(c),t=es(c,t)):u=-1);-1!==u;){const E=t[1];if(cd(s,u,E.data)){const I=by(u,t,n,a,r,_);if(I!==ud)return I}c=t[u+8],-1!==c&&dd(r,t[1].data[u+8]===_)&&cd(s,u,t)?(a=E,u=Ji(c),t=es(c,t)):u=-1}}}return ad(t,n,r,i)}const ud={};function Cy(){return new ts(Mt(),re())}function by(e,t,n,r,i,s){const a=t[1],u=a.data[e+8],E=Vo(u,a,n,null==r?ar(u)&&Pa:r!=a&&0!=(3&u.type),i&Be.Host&&s===u);return null!==E?$s(t,a,E,u):ud}function Vo(e,t,n,r,i){const s=e.providerIndexes,a=t.data,u=1048575&s,c=e.directiveStart,E=s>>20,F=i?u+E:e.directiveEnd;for(let j=r?u:u+E;j<F;j++){const Y=a[j];if(j<c&&n===Y||j>=c&&Y.type===n)return j}if(i){const j=a[c];if(j&&_n(j)&&j.type===n)return c}return null}function $s(e,t,n,r){let i=e[n];const s=t.data;if(function(e){return e instanceof js}(i)){const a=i;a.resolving&&function(e,t){throw new Oe("200",`Circular dependency in DI detected for ${e}`)}(rt(s[n]));const u=Ro(a.canSeeViewProviders);a.resolving=!0;const c=a.injectImpl?mn(a.injectImpl):null;Wc(e,r,Be.Default);try{i=e[n]=a.factory(void 0,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:s}=t.type.prototype;if(r){const a=P(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,i),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s))}(n,s[n],t)}finally{null!==c&&mn(c),Ro(u),a.resolving=!1,Zc()}}return i}function cd(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function dd(e,t){return!(e&Be.Self||e&Be.Host&&t)}class ts{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return ld(this._tNode,this._lView,t,r,n)}}function fd(e){return kt(()=>{const t=e.prototype.constructor,n=t[tn]||xa(t),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const s=i[tn]||xa(i);if(s&&s!==n)return s;i=Object.getPrototypeOf(i)}return s=>new s})}function xa(e){return it(e)?()=>{const t=xa(_e(e));return t&&t()}:C(e)}function La(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let i=0;for(;i<r;){const s=n[i];if(td(s))break;if(0===s)i+=2;else if("number"==typeof s)for(i++;i<r&&"string"==typeof n[i];)i++;else{if(s===t)return n[i+1];i+=2}}}return null}(Mt(),e)}const ns="__annotations__",rs="__parameters__",is="__prop__metadata__";function ss(e,t,n,r,i){return kt(()=>{const s=Va(t);function a(...u){if(this instanceof a)return s.call(this,...u),this;const c=new a(...u);return function(E){return i&&i(E,...u),(E.hasOwnProperty(ns)?E[ns]:Object.defineProperty(E,ns,{value:[]})[ns]).push(c),r&&r(E),E}}return n&&(a.prototype=Object.create(n.prototype)),a.prototype.ngMetadataName=e,a.annotationCls=a,a})}function Va(e){return function(...n){if(e){const r=e(...n);for(const i in r)this[i]=r[i]}}}function os(e,t,n){return kt(()=>{const r=Va(t);function i(...s){if(this instanceof i)return r.apply(this,s),this;const a=new i(...s);return u.annotation=a,u;function u(c,_,E){const I=c.hasOwnProperty(rs)?c[rs]:Object.defineProperty(c,rs,{value:[]})[rs];for(;I.length<=E;)I.push(null);return(I[E]=I[E]||[]).push(a),c}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}function Oi(e,t,n,r){return kt(()=>{const i=Va(t);function s(...a){if(this instanceof s)return i.apply(this,a),this;const u=new s(...a);return function(_,E){const I=_.constructor,F=I.hasOwnProperty(is)?I[is]:Object.defineProperty(I,is,{value:{}})[is];F[E]=F.hasOwnProperty(E)&&F[E]||[],F[E].unshift(u),r&&r(_,E,...a)}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})}const hd=os("Attribute",e=>({attributeName:e,__NG_ELEMENT_ID__:()=>La(e)}));class Yt{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=Me({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const My=new Yt("AnalyzeForEntryComponents");class Gs{}const Ay=Oi("ContentChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:!0},t),Gs),Iy=Oi("ContentChild",(e,t={})=>Object.assign({selector:e,first:!0,isViewQuery:!1,descendants:!0},t),Gs),Sy=Oi("ViewChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:!0},t),Gs),Ty=Oi("ViewChild",(e,t)=>Object.assign({selector:e,first:!0,isViewQuery:!0,descendants:!0},t),Gs);var vn=(()=>((vn=vn||{})[vn.Directive=0]="Directive",vn[vn.Component=1]="Component",vn[vn.Injectable=2]="Injectable",vn[vn.Pipe=3]="Pipe",vn[vn.NgModule=4]="NgModule",vn))();function Dn(e){const t=W.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}const ko=Function;function zs(e){return"function"==typeof e}function Tr(e,t){void 0===t&&(t=e);for(let n=0;n<e.length;n++){let r=e[n];Array.isArray(r)?(t===e&&(t=e.slice(0,n)),Tr(r,t)):t!==e&&t.push(r)}return t}function ti(e,t){e.forEach(n=>Array.isArray(n)?ti(n,t):t(n))}function gd(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Bo(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Ws(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}function ur(e,t,n){let r=as(e,t);return r>=0?e[1|r]=n:(r=~r,function(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function ka(e,t){const n=as(e,t);if(n>=0)return e[1|n]}function as(e,t){return function(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){const s=r+(i-r>>1),a=e[s<<n];if(t===a)return s<<n;a>t?i=s:r=s+1}return~(i<<n)}(e,t,1)}const Oy=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,Ry=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,xy=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,Ly=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{\s*super\(\.\.\.arguments\)/;class Ba{constructor(t){this._reflect=t||W.Reflect}isReflectionEnabled(){return!0}factory(t){return(...n)=>new t(...n)}_zipTypesAndAnnotations(t,n){let r;r=Ws(void 0===t?n.length:t.length);for(let i=0;i<r.length;i++)r[i]=void 0===t?[]:t[i]&&t[i]!=Object?[t[i]]:[],n&&null!=n[i]&&(r[i]=r[i].concat(n[i]));return r}_ownParameters(t,n){const r=t.toString();if(Oy.test(e=r)||Ly.test(e)||Ry.test(e)&&!xy.test(e))return null;var e;if(t.parameters&&t.parameters!==n.parameters)return t.parameters;const i=t.ctorParameters;if(i&&i!==n.ctorParameters){const u="function"==typeof i?i():i,c=u.map(E=>E&&E.type),_=u.map(E=>E&&ja(E.decorators));return this._zipTypesAndAnnotations(c,_)}const s=t.hasOwnProperty(rs)&&t[rs],a=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",t);return a||s?this._zipTypesAndAnnotations(a,s):Ws(t.length)}parameters(t){if(!zs(t))return[];const n=jo(t);let r=this._ownParameters(t,n);return!r&&n!==Object&&(r=this.parameters(n)),r||[]}_ownAnnotations(t,n){if(t.annotations&&t.annotations!==n.annotations){let r=t.annotations;return"function"==typeof r&&r.annotations&&(r=r.annotations),r}return t.decorators&&t.decorators!==n.decorators?ja(t.decorators):t.hasOwnProperty(ns)?t[ns]:null}annotations(t){if(!zs(t))return[];const n=jo(t),r=this._ownAnnotations(t,n)||[];return(n!==Object?this.annotations(n):[]).concat(r)}_ownPropMetadata(t,n){if(t.propMetadata&&t.propMetadata!==n.propMetadata){let r=t.propMetadata;return"function"==typeof r&&r.propMetadata&&(r=r.propMetadata),r}if(t.propDecorators&&t.propDecorators!==n.propDecorators){const r=t.propDecorators,i={};return Object.keys(r).forEach(s=>{i[s]=ja(r[s])}),i}return t.hasOwnProperty(is)?t[is]:null}propMetadata(t){if(!zs(t))return{};const n=jo(t),r={};if(n!==Object){const s=this.propMetadata(n);Object.keys(s).forEach(a=>{r[a]=s[a]})}const i=this._ownPropMetadata(t,n);return i&&Object.keys(i).forEach(s=>{const a=[];r.hasOwnProperty(s)&&a.push(...r[s]),a.push(...i[s]),r[s]=a}),r}ownPropMetadata(t){return zs(t)&&this._ownPropMetadata(t,jo(t))||{}}hasLifecycleHook(t,n){return t instanceof ko&&n in t.prototype}guards(t){return{}}getter(t){return new Function("o","return o."+t+";")}setter(t){return new Function("o","v","return o."+t+" = v;")}method(t){return new Function("o","args",`if (!o.${t}) throw new Error('"${t}" is undefined');\n return o.${t}.apply(o, args);`)}importUri(t){return"object"==typeof t&&t.filePath?t.filePath:`./${H(t)}`}resourceUri(t){return`./${H(t)}`}resolveIdentifier(t,n,r,i){return i}resolveEnum(t,n){return t[n]}}function ja(e){return e?e.map(t=>new(0,t.type.annotationCls)(...t.args?t.args:[])):[]}function jo(e){const t=e.prototype?Object.getPrototypeOf(e.prototype):null;return(t?t.constructor:null)||Object}const Ri={},Ha="__NG_DI_FLAG__",Ho="ngTempTokenPath",By=/\n/gm,vd="__source",Hy=L({provide:String,useValue:L});let Ks;function Ua(e){const t=Ks;return Ks=e,t}function Uy(e,t=Be.Default){if(void 0===Ks)throw new Error("inject() must be called from an injection context");return null===Ks?kn(e,void 0,t):Ks.get(e,t&Be.Optional?null:void 0,t)}function Mn(e,t=Be.Default){return(Fn||Uy)(_e(e),t)}function $a(e){throw new Error("invalid")}const $y=Mn;function Ga(e){const t=[];for(let n=0;n<e.length;n++){const r=_e(e[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");let i,s=Be.Default;for(let a=0;a<r.length;a++){const u=r[a],c=Gy(u);"number"==typeof c?-1===c?i=u.token:s|=c:i=u}t.push(Mn(i,s))}else t.push(Mn(r))}return t}function qs(e,t){return e[Ha]=t,e.prototype[Ha]=t,e}function Gy(e){return e[Ha]}const Qs=qs(os("Inject",e=>({token:e})),-1),Hi=qs(os("Optional"),8),Uo=qs(os("Self"),2),Ui=qs(os("SkipSelf"),4),Dd=qs(os("Host"),1);let Ed=null;function za(){return Ed=Ed||new Ba}function $o(e){return Cd(za().parameters(e))}function Cd(e){return e.map(t=>function(e){const t={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(e)&&e.length>0)for(let n=0;n<e.length;n++){const r=e[n];if(void 0===r)continue;const i=Object.getPrototypeOf(r);if(r instanceof Hi||"Optional"===i.ngMetadataName)t.optional=!0;else if(r instanceof Ui||"SkipSelf"===i.ngMetadataName)t.skipSelf=!0;else if(r instanceof Uo||"Self"===i.ngMetadataName)t.self=!0;else if(r instanceof Dd||"Host"===i.ngMetadataName)t.host=!0;else if(r instanceof Qs)t.token=r.token;else if(r instanceof hd){if(void 0===r.attributeName)throw new Error("Attribute name must be defined.");t.attribute=r.attributeName}else t.token=r}else t.token=void 0===e||Array.isArray(e)&&0===e.length?null:e;return t}(t))}function bd(e){const t=[],n=new Map;function r(i){let s=n.get(i);if(!s){const a=e(i);n.set(i,s=a.then(Zy))}return s}return ls.forEach((i,s)=>{const a=[];i.templateUrl&&a.push(r(i.templateUrl).then(I=>{i.template=I}));const u=i.styleUrls,c=i.styles||(i.styles=[]),_=i.styles.length;u&&u.forEach((I,F)=>{c.push(""),a.push(r(I).then(j=>{c[_+F]=j,u.splice(u.indexOf(I),1),0==u.length&&(i.styleUrls=void 0)}))});const E=Promise.all(a).then(()=>function(e){Zs.delete(e)}(s));t.push(E)}),Md(),Promise.all(t).then(()=>{})}let ls=new Map;const Zs=new Set;function wd(e){return!!(e.templateUrl&&!e.hasOwnProperty("template")||e.styleUrls&&e.styleUrls.length)}function Md(){const e=ls;return ls=new Map,e}function Zy(e){return"string"==typeof e?e:e.text()}let Go,zo;function Wa(){if(void 0===Go&&(Go=null,W.trustedTypes))try{Go=W.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Go}function us(e){var t;return(null===(t=Wa())||void 0===t?void 0:t.createHTML(e))||e}function Ka(){if(void 0===zo&&(zo=null,W.trustedTypes))try{zo=W.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return zo}function Ad(e){var t;return(null===(t=Ka())||void 0===t?void 0:t.createHTML(e))||e}function Id(e){var t;return(null===(t=Ka())||void 0===t?void 0:t.createScript(e))||e}function Sd(e){var t;return(null===(t=Ka())||void 0===t?void 0:t.createScriptURL(e))||e}class $i{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class e_ extends $i{getTypeName(){return"HTML"}}class t_ extends $i{getTypeName(){return"Style"}}class n_ extends $i{getTypeName(){return"Script"}}class r_ extends $i{getTypeName(){return"URL"}}class i_ extends $i{getTypeName(){return"ResourceURL"}}function _i(e){return e instanceof $i?e.changingThisBreaksApplicationSecurity:e}function cs(e,t){const n=Td(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function Td(e){return e instanceof $i&&e.getTypeName()||null}function s_(e){return new e_(e)}function o_(e){return new t_(e)}function a_(e){return new n_(e)}function l_(e){return new r_(e)}function u_(e){return new i_(e)}function Fd(e){const t=new d_(e);return function(){try{return!!(new window.DOMParser).parseFromString(us(""),"text/html")}catch(e){return!1}}()?new c_(t):t}class c_{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const n=(new window.DOMParser).parseFromString(us(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(n){return null}}}class d_{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);const r=this.inertDocument.createElement("body");n.appendChild(r)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=us(t),n;const r=this.inertDocument.createElement("body");return r.innerHTML=us(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}stripCustomNsAttrs(t){const n=t.attributes;for(let i=n.length-1;0<i;i--){const a=n.item(i).name;("xmlns:ns1"===a||0===a.indexOf("ns1:"))&&t.removeAttribute(a)}let r=t.firstChild;for(;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling}}const h_=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,p_=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Ys(e){return(e=String(e)).match(h_)||e.match(p_)?e:"unsafe:"+e}function Nd(e){return(e=String(e)).split(",").map(t=>Ys(t.trim())).join(", ")}function ni(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Xs(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const Pd=ni("area,br,col,hr,img,wbr"),Od=ni("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Rd=ni("rp,rt"),qa=Xs(Pd,Xs(Od,ni("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Xs(Rd,ni("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Xs(Rd,Od)),Qa=ni("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Za=ni("srcset"),xd=Xs(Qa,Za,ni("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ni("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),g_=ni("script,style,template");class m_{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=this.checkClobberedElement(n,n.nextSibling);if(i){n=i;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!qa.hasOwnProperty(n))return this.sanitizedSomething=!0,!g_.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let i=0;i<r.length;i++){const s=r.item(i),a=s.name,u=a.toLowerCase();if(!xd.hasOwnProperty(u)){this.sanitizedSomething=!0;continue}let c=s.value;Qa[u]&&(c=Ys(c)),Za[u]&&(c=Nd(c)),this.buf.push(" ",a,'="',Ld(c),'"')}return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();qa.hasOwnProperty(n)&&!Pd.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(Ld(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const y_=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,__=/([^\#-~ |!])/g;function Ld(e){return e.replace(/&/g,"&").replace(y_,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(__,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let Wo;function Vd(e,t){let n=null;try{Wo=Wo||Fd(e);let r=t?String(t):"";n=Wo.getInertBodyElement(r);let i=5,s=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=s,s=n.innerHTML,n=Wo.getInertBodyElement(r)}while(r!==s);return us((new m_).sanitizeChildren(Ya(n)||n))}finally{if(n){const r=Ya(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Ya(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var un=(()=>((un=un||{})[un.NONE=0]="NONE",un[un.HTML=1]="HTML",un[un.STYLE=2]="STYLE",un[un.SCRIPT=3]="SCRIPT",un[un.URL=4]="URL",un[un.RESOURCE_URL=5]="RESOURCE_URL",un))();function kd(e){const t=Js();return t?Ad(t.sanitize(un.HTML,e)||""):cs(e,"HTML")?Ad(_i(e)):Vd(f(),Ie(e))}function Bd(e){const t=Js();return t?t.sanitize(un.STYLE,e)||"":cs(e,"Style")?_i(e):Ie(e)}function Xa(e){const t=Js();return t?t.sanitize(un.URL,e)||"":cs(e,"URL")?_i(e):Ys(Ie(e))}function Ja(e){const t=Js();if(t)return Sd(t.sanitize(un.RESOURCE_URL,e)||"");if(cs(e,"ResourceURL"))return Sd(_i(e));throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)")}function jd(e){const t=Js();if(t)return Id(t.sanitize(un.SCRIPT,e)||"");if(cs(e,"Script"))return Id(_i(e));throw new Error("unsafe value used in a script context")}function Hd(e){return us(e[0])}function Ud(e){return function(e){var t;return(null===(t=Wa())||void 0===t?void 0:t.createScriptURL(e))||e}(e[0])}function $d(e,t,n){return function(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Ja:Xa}(t,n)(e)}function Js(){const e=re();return e&&e[12]}function On(e){let t=eo(e);if(t){if(Array.isArray(t)){const n=t;let r,i,s;if(function(e){return e&&e.constructor&&e.constructor.\u0275cmp}(e)){if(r=Kd(n,e),-1==r)throw new Error("The provided component was not found in the application");i=e}else if(function(e){return e&&e.constructor&&e.constructor.\u0275dir}(e)){if(r=function(e,t){let n=e[1].firstChild;for(;n;){const i=n.directiveEnd;for(let s=n.directiveStart;s<i;s++)if(e[s]===t)return n.index;n=b_(n)}return-1}(n,e),-1==r)throw new Error("The provided directive was not found in the application");s=qd(r,n,!1)}else if(r=Wd(n,e),-1==r)return null;const a=at(n[r]),u=eo(a),c=u&&!Array.isArray(u)?u:el(n,r,a);if(i&&void 0===c.component&&(c.component=i,Rn(c.component,c)),s&&void 0===c.directives){c.directives=s;for(let _=0;_<s.length;_++)Rn(s[_],c)}Rn(c.native,c),t=c}}else{const n=e;let r=n;for(;r=r.parentNode;){const i=eo(r);if(i){let s;if(s=Array.isArray(i)?i:i.lView,!s)return null;const a=Wd(s,n);if(a>=0){const u=at(s[a]),c=el(s,a,u);Rn(u,c),t=c;break}}}}return t||null}function el(e,t,n){return{lView:e,nodeIndex:t,native:n,component:void 0,directives:void 0,localRefs:void 0}}function Gd(e){let n,t=eo(e);if(Array.isArray(t)){const r=Kd(t,e);n=T(r,t);const i=el(t,r,n[0]);i.component=e,Rn(e,i),Rn(i.native,i)}else n=T(t.nodeIndex,t.lView);return n}const zd="__ngContext__";function Rn(e,t){e[zd]=t}function eo(e){return e[zd]||null}function tl(e){const t=eo(e);return t?Array.isArray(t)?t:t.lView:null}function Wd(e,t){const n=e[1];for(let r=20;r<n.bindingStartIndex;r++)if(at(e[r])===t)return r;return-1}function b_(e){if(e.child)return e.child;if(e.next)return e.next;for(;e.parent&&!e.parent.next;)e=e.parent;return e.parent&&e.parent.next}function Kd(e,t){const n=e[1].components;if(n)for(let r=0;r<n.length;r++){const i=n[r];if(T(i,e)[8]===t)return i}else if(T(20,e)[8]===t)return 20;return-1}function qd(e,t,n){const r=t[1].data[e];let i=r.directiveStart;return 0==i?We:(!n&&2&r.flags&&i++,t.slice(i,r.directiveEnd))}const nl="ngOriginalError";function rl(e){return e[nl]}function N_(e,...t){e.error(...t)}class to{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),r=(e=t)&&e.ngErrorLogger||N_;var e;r(this._console,"ERROR",t),n&&r(this._console,"ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&rl(t);for(;n&&rl(n);)n=rl(n);return n||null}}const Qd={name:"custom-elements"},Zd={name:"no-errors-schema"},P_=/^>|^->|<!--|-->|--!>|<!-$/g,O_=/(<|>)/;const Xd=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(W))();function Jd(e){return e.ownerDocument.defaultView}function ef(e){return e.ownerDocument}function tf(e){return e.ownerDocument.body}function ri(e){return e instanceof Function?e():e}var ii=(()=>((ii=ii||{})[ii.Important=1]="Important",ii[ii.DashCase=2]="DashCase",ii))();let il;function sl(e,t){return il(e,t)}function no(e){const t=e[3];return fn(t)?t[3]:t}function of(e){return function(e){let t=ln(e)?e:tl(e);for(;t&&!(512&t[2]);)t=no(t);return t}(e)[8]}function ol(e){return af(e[13])}function al(e){return af(e[4])}function af(e){for(;null!==e&&!fn(e);)e=e[4];return e}function fs(e,t,n,r,i){if(null!=r){let s,a=!1;fn(r)?s=r:ln(r)&&(a=!0,r=r[0]);const u=at(r);0===e&&null!==n?null==i?hf(t,n,u):Gi(t,n,u,i||null,!0):1===e&&null!==n?Gi(t,n,u,i||null,!0):2===e?Df(t,u,a):3===e&&t.destroyNode(u),null!=s&&function(e,t,n,r,i){const s=n[7];s!==at(n)&&fs(t,e,r,s,i);for(let u=10;u<n.length;u++){const c=n[u];ro(c[1],c,e,t,r,s)}}(t,e,s,n,i)}}function ll(e,t){return $(e)?e.createText(t):e.createTextNode(t)}function lf(e,t,n){$(e)?e.setValue(t,n):t.textContent=n}function j_(e,t){return e.createComment(function(e){return e.replace(P_,t=>t.replace(O_,"\u200b$1\u200b"))}(t))}function ul(e,t,n){return $(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function uf(e,t){const n=e[9],r=n.indexOf(t),i=t[3];1024&t[2]&&(t[2]&=-1025,ot(i,-1)),n.splice(r,1)}function cl(e,t){if(e.length<=10)return;const n=10+t,r=e[n];if(r){const i=r[17];null!==i&&i!==e&&uf(i,r),t>0&&(e[n-1][4]=r[4]);const s=Bo(e,10+t);!function(e,t){ro(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(r[1],r);const a=s[19];null!==a&&a.detachView(s[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function cf(e,t){if(!(256&t[2])){const n=t[11];$(n)&&n.destroyNode&&ro(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return dl(e[1],e);for(;t;){let n=null;if(ln(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)ln(t)&&dl(t[1],t),t=t[3];null===t&&(t=e),ln(t)&&dl(t[1],t),n=t&&t[4]}t=n}}(t)}}function dl(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r<n.length;r+=2){const i=t[n[r]];if(!(i instanceof js)){const s=n[r+1];if(Array.isArray(s))for(let a=0;a<s.length;a+=2){const u=i[s[a]],c=s[a+1];yt(4,u,c);try{c.call(u)}finally{yt(5,u,c)}}else{yt(4,i,s);try{s.call(i)}finally{yt(5,i,s)}}}}}(e,t),function(e,t){const n=e.cleanup,r=t[7];let i=-1;if(null!==n)for(let s=0;s<n.length-1;s+=2)if("string"==typeof n[s]){const a=n[s+1],u="function"==typeof a?a(t):at(t[a]),c=r[i=n[s+2]],_=n[s+3];"boolean"==typeof _?u.removeEventListener(n[s],c,_):_>=0?r[i=_]():r[i=-_].unsubscribe(),s+=2}else{const a=r[i=n[s+1]];n[s].call(a)}if(null!==r){for(let s=i+1;s<r.length;s++)r[s]();t[7]=null}}(e,t),1===t[1].type&&$(t[11])&&t[11].destroy();const n=t[17];if(null!==n&&fn(t[3])){n!==t[3]&&uf(n,t);const r=t[19];null!==r&&r.detachView(e)}}}function df(e,t,n){return ff(e,t.parent,n)}function ff(e,t,n){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[0];if(2&r.flags){const i=e.data[r.directiveStart].encapsulation;if(i===en.None||i===en.Emulated)return null}return d(r,n)}function Gi(e,t,n,r,i){$(e)?e.insertBefore(t,n,r,i):t.insertBefore(n,r,i)}function hf(e,t,n){$(e)?e.appendChild(t,n):t.appendChild(n)}function pf(e,t,n,r,i){null!==r?Gi(e,t,n,r,i):hf(e,t,n)}function Ko(e,t){return $(e)?e.parentNode(t):t.parentNode}function gf(e,t,n){return yf(e,t,n)}function mf(e,t,n){return 40&e.type?d(e,n):null}let fl,yf=mf;function _f(e,t){yf=e,fl=t}function qo(e,t,n,r){const i=df(e,r,t),s=t[11],u=gf(r.parent||t[6],r,t);if(null!=i)if(Array.isArray(n))for(let c=0;c<n.length;c++)pf(s,i,n[c],u,!1);else pf(s,i,n,u,!1);void 0!==fl&&fl(s,r,t,n,i)}function Qo(e,t){if(null!==t){const n=t.type;if(3&n)return d(t,e);if(4&n)return hl(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return Qo(e,r);{const i=e[t.index];return fn(i)?hl(-1,i):at(i)}}if(32&n)return sl(t,e)()||at(e[t.index]);{const r=vf(e,t);return null!==r?Array.isArray(r)?r[0]:Qo(no(e[16]),r):Qo(e,t.next)}}return null}function vf(e,t){return null!==t?e[16][6].projection[t.projection]:null}function hl(e,t){const n=10+e+1;if(n<t.length){const r=t[n],i=r[1].firstChild;if(null!==i)return Qo(r,i)}return t[7]}function Df(e,t,n){const r=Ko(e,t);r&&function(e,t,n,r){$(e)?e.removeChild(t,n,r):t.removeChild(n)}(e,r,t,n)}function pl(e,t,n,r,i,s,a){for(;null!=n;){const u=r[n.index],c=n.type;if(a&&0===t&&(u&&Rn(at(u),r),n.flags|=4),64!=(64&n.flags))if(8&c)pl(e,t,n.child,r,i,s,!1),fs(t,e,i,u,s);else if(32&c){const _=sl(n,r);let E;for(;E=_();)fs(t,e,i,E,s);fs(t,e,i,u,s)}else 16&c?Ef(e,t,r,n,i,s):fs(t,e,i,u,s);n=a?n.projectionNext:n.next}}function ro(e,t,n,r,i,s){pl(n,r,e.firstChild,t,i,s,!1)}function Ef(e,t,n,r,i,s){const a=n[16],c=a[6].projection[r.projection];if(Array.isArray(c))for(let _=0;_<c.length;_++)fs(t,e,i,c[_],s);else pl(e,t,c,a[3],i,s,!0)}function Cf(e,t,n){$(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function gl(e,t,n){$(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function bf(e,t,n){let r=e.length;for(;;){const i=e.indexOf(t,n);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){const s=t.length;if(i+s===r||e.charCodeAt(i+s)<=32)return i}n=i+1}}const wf="ng-template";function ev(e,t,n){let r=0;for(;r<e.length;){let i=e[r++];if(n&&"class"===i){if(i=e[r],-1!==bf(i.toLowerCase(),t,0))return!0}else if(1===i){for(;r<e.length&&"string"==typeof(i=e[r++]);)if(i.toLowerCase()===t)return!0;return!1}}return!1}function Mf(e){return 4===e.type&&e.value!==wf}function tv(e,t,n){return t===(4!==e.type||n?e.value:wf)}function nv(e,t,n){let r=4;const i=e.attrs||[],s=function(e){for(let t=0;t<e.length;t++)if(td(e[t]))return t;return e.length}(i);let a=!1;for(let u=0;u<t.length;u++){const c=t[u];if("number"!=typeof c){if(!a)if(4&r){if(r=2|1&r,""!==c&&!tv(e,c,n)||""===c&&1===t.length){if(Br(r))return!1;a=!0}}else{const _=8&r?c:t[++u];if(8&r&&null!==e.attrs){if(!ev(e.attrs,_,n)){if(Br(r))return!1;a=!0}continue}const I=rv(8&r?"class":c,i,Mf(e),n);if(-1===I){if(Br(r))return!1;a=!0;continue}if(""!==_){let F;F=I>s?"":i[I+1].toLowerCase();const j=8&r?F:null;if(j&&-1!==bf(j,_,0)||2&r&&_!==F){if(Br(r))return!1;a=!0}}}}else{if(!a&&!Br(r)&&!Br(c))return!1;if(a&&Br(c))continue;a=!1,r=c|1&r}}return Br(r)||a}function Br(e){return 0==(1&e)}function rv(e,t,n,r){if(null===t)return-1;let i=0;if(r||!n){let s=!1;for(;i<t.length;){const a=t[i];if(a===e)return i;if(3===a||6===a)s=!0;else{if(1===a||2===a){let u=t[++i];for(;"string"==typeof u;)u=t[++i];continue}if(4===a)break;if(0===a){i+=4;continue}}i+=s?1:2}return-1}return function(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function Af(e,t,n=!1){for(let r=0;r<t.length;r++)if(nv(e,t[r],n))return!0;return!1}function av(e,t){e:for(let n=0;n<t.length;n++){const r=t[n];if(e.length===r.length){for(let i=0;i<e.length;i++)if(e[i]!==r[i])continue e;return!0}}return!1}function If(e,t){return e?":not("+t.trim()+")":t}function lv(e){let t=e[0],n=1,r=2,i="",s=!1;for(;n<e.length;){let a=e[n];if("string"==typeof a)if(2&r){const u=e[++n];i+="["+a+(u.length>0?'="'+u+'"':"")+"]"}else 8&r?i+="."+a:4&r&&(i+=" "+a);else""!==i&&!Br(a)&&(t+=If(s,i),i=""),r=a,s=s||!Br(r);n++}return""!==i&&(t+=If(s,i)),t}const tt={};function Sf(e){Tf(Ge(),re(),Gn()+e,Ve())}function Tf(e,t,n,r){if(!r)if(3==(3&t[2])){const s=e.preOrderCheckHooks;null!==s&&Fo(t,s,n)}else{const s=e.preOrderHooks;null!==s&&No(t,s,0,n)}Ni(n)}function Zo(e,t){return e<<17|t<<2}function jr(e){return e>>17&32767}function ml(e){return 2|e}function vi(e){return(131068&e)>>2}function yl(e,t){return-131069&e|t<<2}function _l(e){return 1|e}const Al=(()=>Promise.resolve(null))();function jf(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const i=n[r],s=n[r+1];if(-1!==s){const a=e.data[s];ji(i),a.contentQueries(2,t[s],s)}}}function io(e,t,n,r,i,s,a,u,c,_){const E=t.blueprint.slice();return E[0]=i,E[2]=140|r,Xe(E),E[3]=E[15]=e,E[8]=n,E[10]=a||e&&e[10],E[11]=u||e&&e[11],E[12]=c||e&&e[12]||null,E[9]=_||e&&e[9]||null,E[6]=s,E[16]=2==t.type?e[16]:E,E}function hs(e,t,n,r,i){let s=e.data[t];if(null===s)s=Il(e,t,n,r,i),he.lFrame.inI18n&&(s.flags|=64);else if(64&s.type){s.type=n,s.value=r,s.attrs=i;const a=Ti();s.injectorIndex=null===a?-1:a.injectorIndex}return Pn(s,!0),s}function Il(e,t,n,r,i){const s=Sr(),a=kr(),c=e.data[t]=function(e,t,n,r,i,s){return{type:n,index:r,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:i,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next: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}}(0,a?s:s&&s.parent,n,t,r,i);return null===e.firstChild&&(e.firstChild=c),null!==s&&(a?null==s.child&&null!==c.parent&&(s.child=c):null===s.next&&(s.next=c)),c}function ps(e,t,n,r){if(0===n)return-1;const i=t.length;for(let s=0;s<n;s++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function so(e,t,n){Io(t);try{const r=e.viewQuery;null!==r&&Ll(1,r,n);const i=e.template;null!==i&&Hf(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&jf(e,t),e.staticViewQueries&&Ll(2,e.viewQuery,n);const s=e.components;null!==s&&function(e,t){for(let n=0;n<t.length;n++)Gv(e,t[n])}(t,s)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[2]&=-5,So()}}function gs(e,t,n,r){const i=t[2];if(256==(256&i))return;Io(t);const s=Ve();try{Xe(t),lr(e.bindingStartIndex),null!==n&&Hf(e,t,n,2,r);const a=3==(3&i);if(!s)if(a){const _=e.preOrderCheckHooks;null!==_&&Fo(t,_,null)}else{const _=e.preOrderHooks;null!==_&&No(t,_,0,null),Ta(t,0)}if(function(e){for(let t=ol(e);null!==t;t=al(t)){if(!t[2])continue;const n=t[9];for(let r=0;r<n.length;r++){const i=n[r],s=i[3];0==(1024&i[2])&&ot(s,1),i[2]|=1024}}}(t),function(e){for(let t=ol(e);null!==t;t=al(t))for(let n=10;n<t.length;n++){const r=t[n],i=r[1];J(r)&&gs(i,r,i.template,r[8])}}(t),null!==e.contentQueries&&jf(e,t),!s)if(a){const _=e.contentCheckHooks;null!==_&&Fo(t,_)}else{const _=e.contentHooks;null!==_&&No(t,_,1),Ta(t,1)}!function(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let r=0;r<n.length;r++){const i=n[r];if(i<0)Ni(~i);else{const s=i,a=n[++r],u=n[++r];Sa(a,s),u(2,t[s])}}}finally{Ni(-1)}}(e,t);const u=e.components;null!==u&&function(e,t){for(let n=0;n<t.length;n++)$v(e,t[n])}(t,u);const c=e.viewQuery;if(null!==c&&Ll(2,c,r),!s)if(a){const _=e.viewCheckHooks;null!==_&&Fo(t,_)}else{const _=e.viewHooks;null!==_&&No(t,_,2),Ta(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),s||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,ot(t[3],-1))}finally{So()}}function wv(e,t,n,r){const i=t[10],s=!Ve(),a=U(t);try{s&&!a&&i.begin&&i.begin(),a&&so(e,t,r),gs(e,t,n,r)}finally{s&&!a&&i.end&&i.end()}}function Hf(e,t,n,r,i){const s=Gn(),a=2&r;try{Ni(-1),a&&t.length>20&&Tf(e,t,20,Ve()),yt(a?2:0,i),n(r,i)}finally{Ni(s),yt(a?3:1,i)}}function Uf(e,t,n){if(fi(t)){const i=t.directiveEnd;for(let s=t.directiveStart;s<i;s++){const a=e.data[s];a.contentQueries&&a.contentQueries(1,n[s],s)}}}function Sl(e,t,n){!bn()||(function(e,t,n,r){const i=n.directiveStart,s=n.directiveEnd;e.firstCreatePass||Us(n,t),Rn(r,t);const a=n.initialInputs;for(let u=i;u<s;u++){const c=e.data[u],_=_n(c);_&&kv(t,n,c);const E=$s(t,e,u,n);Rn(E,t),null!==a&&Bv(0,u-i,E,c,0,a),_&&(T(n.index,t)[8]=E)}}(e,t,n,d(n,t)),128==(128&n.flags)&&function(e,t,n){const r=n.directiveStart,i=n.directiveEnd,a=n.index,u=he.lFrame.currentDirectiveIndex;try{Ni(a);for(let c=r;c<i;c++){const _=e.data[c],E=t[c];yi(c),(null!==_.hostBindings||0!==_.hostVars||null!==_.hostAttrs)&&Zf(_,E)}}finally{Ni(-1),yi(u)}}(e,t,n))}function Tl(e,t,n=d){const r=t.localNames;if(null!==r){let i=t.index+1;for(let s=0;s<r.length;s+=2){const a=r[s+1],u=-1===a?n(t,e):e[a];e[i++]=u}}}function $f(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Jo(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Jo(e,t,n,r,i,s,a,u,c,_){const E=20+r,I=E+i,F=function(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:tt);return n}(E,I),j="function"==typeof _?_():_;return F[1]={type:e,blueprint:F,template:n,queries:null,viewQuery:u,declTNode:t,data:F.slice().fill(null,E),bindingStartIndex:E,expandoStartIndex:I,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:"function"==typeof s?s():s,pipeRegistry:"function"==typeof a?a():a,firstChild:null,schemas:c,consts:j,incompleteFirstPass:!1}}function zf(e,t,n){if($(e))return e.selectRootElement(t,n===en.ShadowDom);let r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}function Wf(e,t,n,r){const i=nh(t);null===n?i.push(r):(i.push(n),e.firstCreatePass&&rh(e).push(r,i.length-1))}function Kf(e,t,n){for(let r in e)if(e.hasOwnProperty(r)){const i=e[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(t,i):n[r]=[t,i]}return n}function cr(e,t,n,r,i,s,a,u){const c=d(t,n);let E,_=t.inputs;!u&&null!=_&&(E=_[r])?(oh(e,n,E,r,i),ar(t)&&function(e,t){const n=T(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(r=function(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),i=null!=a?a(i,t.value||"",r):i,$(s)?s.setProperty(c,r,i):Na(r)||(c.setProperty?c.setProperty(r,i):c[r]=i))}function Fl(e,t,n,r){let i=!1;if(bn()){const s=function(e,t,n){const r=e.directiveRegistry;let i=null;if(r)for(let s=0;s<r.length;s++){const a=r[s];Af(n,a.selectors,!1)&&(i||(i=[]),Lo(Us(n,t),e,a.type),_n(a)?(Yf(e,n),i.unshift(a)):i.push(a))}return i}(e,t,n),a=null===r?null:{"":-1};if(null!==s){i=!0,Xf(n,e.data.length,s.length);for(let E=0;E<s.length;E++){const I=s[E];I.providersResolver&&I.providersResolver(I)}let u=!1,c=!1,_=ps(e,t,s.length,null);for(let E=0;E<s.length;E++){const I=s[E];n.mergedAttrs=Oo(n.mergedAttrs,I.hostAttrs),Jf(e,n,t,_,I),Vv(_,I,a),null!==I.contentQueries&&(n.flags|=8),(null!==I.hostBindings||null!==I.hostAttrs||0!==I.hostVars)&&(n.flags|=128);const F=I.type.prototype;!u&&(F.ngOnChanges||F.ngOnInit||F.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),u=!0),!c&&(F.ngOnChanges||F.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),c=!0),_++}!function(e,t){const r=t.directiveEnd,i=e.data,s=t.attrs,a=[];let u=null,c=null;for(let _=t.directiveStart;_<r;_++){const E=i[_],I=E.inputs,F=null===s||Mf(t)?null:jv(I,s);a.push(F),u=Kf(I,_,u),c=Kf(E.outputs,_,c)}null!==u&&(u.hasOwnProperty("class")&&(t.flags|=16),u.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=a,t.inputs=u,t.outputs=c}(e,n)}a&&function(e,t,n){if(t){const r=e.localNames=[];for(let i=0;i<t.length;i+=2){const s=n[t[i+1]];if(null==s)throw new Oe("301",`Export of name '${t[i+1]}' not found!`);r.push(t[i],s)}}}(n,r,a)}return n.mergedAttrs=Oo(n.mergedAttrs,n.attrs),i}function Qf(e,t,n,r,i,s){const a=s.hostBindings;if(a){let u=e.hostBindingOpCodes;null===u&&(u=e.hostBindingOpCodes=[]);const c=~t.index;(function(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(u)!=c&&u.push(c),u.push(r,i,a)}}function Zf(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Yf(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Vv(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;_n(t)&&(n[""]=e)}}function Xf(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Jf(e,t,n,r,i){e.data[r]=i;const s=i.factory||(i.factory=C(i.type)),a=new js(s,_n(i),null);e.blueprint[r]=a,n[r]=a,Qf(e,t,0,r,ps(e,n,i.hostVars,tt),i)}function kv(e,t,n){const r=d(t,e),i=$f(n),s=e[10],a=ea(e,io(e,i,null,n.onPush?64:16,r,t,s,s.createRenderer(r,n),null,null));e[t.index]=a}function si(e,t,n,r,i,s){const a=d(e,t);Nl(t[11],a,s,e.value,n,r,i)}function Nl(e,t,n,r,i,s,a){if(null==s)$(e)?e.removeAttribute(t,i,n):t.removeAttribute(i);else{const u=null==a?Ie(s):a(s,r||"",i);$(e)?e.setAttribute(t,i,u,n):n?t.setAttributeNS(n,i,u):t.setAttribute(i,u)}}function Bv(e,t,n,r,i,s){const a=s[t];if(null!==a){const u=r.setInput;for(let c=0;c<a.length;){const _=a[c++],E=a[c++],I=a[c++];null!==u?r.setInput(n,I,_,E):n[E]=I}}}function jv(e,t){let n=null,r=0;for(;r<t.length;){const i=t[r];if(0!==i)if(5!==i){if("number"==typeof i)break;e.hasOwnProperty(i)&&(null===n&&(n=[]),n.push(i,e[i],t[r+1])),r+=2}else r+=2;else r+=4}return n}function eh(e,t,n,r){return new Array(e,!0,!1,t,null,0,r,n,null,null)}function $v(e,t){const n=T(t,e);if(J(n)){const r=n[1];80&n[2]?gs(r,n,r.template,n[8]):n[5]>0&&Pl(n)}}function Pl(e){for(let r=ol(e);null!==r;r=al(r))for(let i=10;i<r.length;i++){const s=r[i];if(1024&s[2]){const a=s[1];gs(a,s,a.template,s[8])}else s[5]>0&&Pl(s)}const n=e[1].components;if(null!==n)for(let r=0;r<n.length;r++){const i=T(n[r],e);J(i)&&i[5]>0&&Pl(i)}}function Gv(e,t){const n=T(t,e),r=n[1];(function(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])})(r,n),so(r,n,n[8])}function ea(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function Ol(e){for(;e;){e[2]|=64;const t=no(e);if(wi(e)&&!t)return e;e=t}return null}function Rl(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],r=tl(n),i=r[1];wv(i,r,i.template,n)}}function xl(e,t,n){const r=t[10];r.begin&&r.begin();try{gs(e,t,e.template,n)}catch(i){throw sh(t,i),i}finally{r.end&&r.end()}}function th(e){Rl(e[8])}function Ll(e,t,n){ji(0),t(e,n)}const Qv=Al;function nh(e){return e[7]||(e[7]=[])}function rh(e){return e.cleanup||(e.cleanup=[])}function ih(e,t,n){return(null===e||_n(e))&&(n=function(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function sh(e,t){const n=e[9],r=n?n.get(to,null):null;r&&r.handleError(t)}function oh(e,t,n,r,i){for(let s=0;s<n.length;){const a=n[s++],u=n[s++],c=t[a],_=e.data[a];null!==_.setInput?_.setInput(c,i,r,u):c[u]=i}}function Di(e,t,n){const r=l(t,e);lf(e[11],r,n)}function ta(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,s=0;if(null!==t)for(let a=0;a<t.length;a++){const u=t[a];"number"==typeof u?s=u:1==s?i=K(i,u):2==s&&(r=K(r,u+": "+t[++a]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}function ah(e){const t=Gd(e);xl(t[1],t,e)}function lh(e){!function(e,t){if(0===e.flags&&e.clean==Al){let r;e.flags|=1,e.clean=new Promise(i=>r=i),e.scheduler(()=>{if(1&e.flags&&(e.flags&=-2,Rl(e)),2&e.flags){e.flags&=-3;const i=e.playerHandler;i&&i.flushPlayers()}e.clean=Al,r(null)})}}(Ol(Gd(e))[8])}const na=new Yt("INJECTOR",-1);class uh{get(t,n=Ri){if(n===Ri){const r=new Error(`NullInjectorError: No provider for ${H(t)}!`);throw r.name="NullInjectorError",r}return n}}const Vl=new Yt("Set Injector scope."),oo={},Zv={};let kl;function ch(){return void 0===kl&&(kl=new uh),kl}function Bl(e,t=null,n=null,r){const i=dh(e,t,n,r);return i._resolveInjectorDefTypes(),i}function dh(e,t=null,n=null,r){return new Yv(e,n,t||ch(),r)}class Yv{constructor(t,n,r,i=null){this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];n&&ti(n,u=>this.processProvider(u,t,n)),ti([t],u=>this.processInjectorType(u,[],s)),this.records.set(na,ms(void 0,this));const a=this.records.get(Vl);this.scope=null!=a?a.value:null,this.source=i||("object"==typeof t?null:H(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,n=Ri,r=Be.Default){this.assertNotDestroyed();const i=Ua(this),s=mn(void 0);try{if(!(r&Be.SkipSelf)){let u=this.records.get(t);if(void 0===u){const c=("function"==typeof(e=t)||"object"==typeof e&&e instanceof Yt)&&Tn(t);u=c&&this.injectableDefInScope(c)?ms(jl(t),oo):null,this.records.set(t,u)}if(null!=u)return this.hydrate(t,u)}return(r&Be.Self?ch():this.parent).get(t,n=r&Be.Optional&&n===Ri?null:n)}catch(a){if("NullInjectorError"===a.name){if((a[Ho]=a[Ho]||[]).unshift(H(t)),i)throw a;return function(e,t,n,r){const i=e[Ho];throw t[vd]&&i.unshift(t[vd]),e.message=function(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let i=H(t);if(Array.isArray(t))i=t.map(H).join(" -> ");else if("object"==typeof t){let s=[];for(let a in t)if(t.hasOwnProperty(a)){let u=t[a];s.push(a+":"+("string"==typeof u?JSON.stringify(u):H(u)))}i=`{${s.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(By,"\n ")}`}("\n"+e.message,i,n,r),e.ngTokenPath=i,e[Ho]=null,e}(a,t,"R3InjectorError",this.source)}throw a}finally{mn(s),Ua(i)}var e}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((r,i)=>t.push(H(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,n,r){if(!(t=_e(t)))return!1;let i=Kr(t);const s=null==i&&t.ngModule||void 0,a=void 0===s?t:s,u=-1!==r.indexOf(a);if(void 0!==s&&(i=Kr(s)),null==i)return!1;if(null!=i.imports&&!u){let E;r.push(a);try{ti(i.imports,I=>{this.processInjectorType(I,n,r)&&(void 0===E&&(E=[]),E.push(I))})}finally{}if(void 0!==E)for(let I=0;I<E.length;I++){const{ngModule:F,providers:j}=E[I];ti(j,Y=>this.processProvider(Y,F,j||We))}}this.injectorDefTypes.add(a);const c=C(a)||(()=>new a);this.records.set(a,ms(c,oo));const _=i.providers;if(null!=_&&!u){const E=t;ti(_,I=>this.processProvider(I,E,_))}return void 0!==s&&void 0!==t.providers}processProvider(t,n,r){let i=ys(t=_e(t))?t:_e(t&&t.provide);const s=(e=t,hh(e)?ms(void 0,e.useValue):ms(fh(e),oo));var e;if(ys(t)||!0!==t.multi)this.records.get(i);else{let a=this.records.get(i);a||(a=ms(void 0,oo,!0),a.factory=()=>Ga(a.multi),this.records.set(i,a)),i=t,a.multi.push(t)}this.records.set(i,s)}hydrate(t,n){return n.value===oo&&(n.value=Zv,n.value=n.factory()),"object"==typeof n.value&&n.value&&null!==(e=n.value)&&"object"==typeof e&&"function"==typeof e.ngOnDestroy&&this.onDestroy.add(n.value),n.value;var e}injectableDefInScope(t){if(!t.providedIn)return!1;const n=_e(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function jl(e){const t=Tn(e),n=null!==t?t.factory:C(e);if(null!==n)return n;if(e instanceof Yt)throw new Error(`Token ${H(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const r=Ws(t,"?");throw new Error(`Can't resolve all parameters for ${H(e)}: (${r.join(", ")}).`)}const n=function(e){const t=e&&(e[ct]||e[ht]);if(t){const n=function(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Error("unreachable")}function fh(e,t,n){let r;if(ys(e)){const i=_e(e);return C(i)||jl(i)}if(hh(e))r=()=>_e(e.useValue);else if(function(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Ga(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))r=()=>Mn(_e(e.useExisting));else{const i=_e(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return C(i)||jl(i);r=()=>new i(...Ga(e.deps))}return r}function ms(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function hh(e){return null!==e&&"object"==typeof e&&Hy in e}function ys(e){return"function"==typeof e}let dr=(()=>{class e{static create(n,r){var i;if(Array.isArray(n))return Bl({name:""},r,n,"");{const s=null!==(i=n.name)&&void 0!==i?i:"";return Bl({name:s},n.parent,n.providers,s)}}}return e.THROW_IF_NOT_FOUND=Ri,e.NULL=new uh,e.\u0275prov=Me({token:e,providedIn:"any",factory:()=>Mn(na)}),e.__NG_ELEMENT_ID__=-1,e})();function Hl(e){$l(e);const t=On(e);return null===t?null:(void 0===t.component&&(t.component=function(e,t){const n=t[1].data[e];return 2&n.flags?t[n.directiveStart]:null}(t.nodeIndex,t.lView)),t.component)}function ph(e){$l(e);const t=On(e);return null===t?null:t.lView[8]}function gh(e){const t=On(e);if(null===t)return null;let r,n=t.lView;for(;2===n[1].type&&(r=no(n));)n=r;return 512&n[2]?null:n[8]}function mh(e){return[...of(e).components]}function yh(e){const t=On(e);return null===t?dr.NULL:new ts(t.lView[1].data[t.nodeIndex],t.lView)}function _h(e){if(e instanceof Text)return[];const t=On(e);if(null===t)return[];const n=t.lView,r=n[1],i=t.nodeIndex;return(null==r?void 0:r.data[i])?(void 0===t.directives&&(t.directives=qd(i,n,!1)),null===t.directives?[]:[...t.directives]):[]}function aD(e){const{constructor:t}=e;if(!t)throw new Error("Unable to find the instance constructor");const n=Ct(t);if(n)return{inputs:n.inputs,outputs:n.outputs,encapsulation:n.encapsulation,changeDetection:n.onPush?It.OnPush:It.Default};const r=dn(t);return r?{inputs:r.inputs,outputs:r.outputs}:null}function Ul(e){return On(e).native}function vh(e){$l(e);const t=On(e);if(null===t)return[];const n=t.lView,i=n[7],s=n[1].cleanup,a=[];if(s&&i)for(let u=0;u<s.length;){const c=s[u++],_=s[u++];if("string"==typeof c){const E=c,I=at(n[_]),F=i[s[u++]],j=s[u++],Y="boolean"==typeof j||j>=0?"dom":"output",ce="boolean"==typeof j&&j;e==I&&a.push({element:e,name:E,callback:F,useCapture:ce,type:Y})}}return a.sort(uD),a}function uD(e,t){return e.name==t.name?0:e.name<t.name?-1:1}function cD(e){return void 0!==e.type&&void 0!==e.template&&void 0!==e.declaredInputs}function $l(e){if("undefined"!=typeof Element&&!(e instanceof Element))throw new Error("Expecting instance of DOM Element")}function dD(e){lh(e),mh(e).forEach(t=>ah(t))}let Eh=!1;function fD(){Eh||(Eh=!0,Fr("\u0275setProfiler",st),Fr("getDirectiveMetadata",aD),Fr("getComponent",Hl),Fr("getContext",ph),Fr("getListeners",vh),Fr("getOwningComponent",gh),Fr("getHostElement",Ul),Fr("getInjector",yh),Fr("getRootComponents",mh),Fr("getDirectives",_h),Fr("applyChanges",dD))}function Fr(e,t){if("undefined"==typeof COMPILED||!COMPILED){const n=W;if(n){let r=n.ng;r||(r=n.ng={}),r[e]=t}}}function hD(e,t={}){const n=t.rendererFactory||Ae,r=t.sanitizer||null,i=Ct(e);i.type!=e&&(i.type=e);const s=i.selectors[0][0],u=zf(n.createRenderer(null,null),t.host||s,i.encapsulation),c=i.onPush?576:528,_=wh(t.scheduler,t.playerHandler),E=n.createRenderer(u,i),I=Jo(0,null,null,1,0,null,null,null,null,null),F=io(null,I,_,c,null,null,n,E,null,t.injector||null);let j;Io(F);try{n.begin&&n.begin(),j=bh(Ch(u,i,F,n,E,r),i,F,_,t.hostFeatures||null),so(I,F,null),gs(I,F,null,null)}finally{So(),n.end&&n.end()}return j}function Ch(e,t,n,r,i,s){const a=n[1];n[20]=e;const c=hs(a,20,2,"#host",null),_=c.mergedAttrs=t.hostAttrs;null!==_&&(ta(c,_,!0),null!==e&&(Po(i,e,_),null!==c.classes&&gl(i,e,c.classes),null!==c.styles&&Cf(i,e,c.styles)));const E=r.createRenderer(e,t),I=io(n,$f(t),null,t.onPush?64:16,n[20],c,r,E,s||null,null);return a.firstCreatePass&&(Lo(Us(c,n),a,t.type),Yf(a,c),Xf(c,n.length,1)),ea(n,I),n[20]=I}function bh(e,t,n,r,i){const s=n[1],a=function(e,t,n){const r=Mt();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Jf(e,r,t,ps(e,t,1,null),n));const i=$s(t,e,r.directiveStart,r);Rn(i,t);const s=d(r,t);return s&&Rn(s,t),i}(s,n,t);if(r.components.push(a),e[8]=a,i&&i.forEach(c=>c(a,t)),t.contentQueries){const c=Mt();t.contentQueries(1,a,c.directiveStart)}const u=Mt();return!s.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Ni(u.index),Qf(n[1],u,0,u.directiveStart,u.directiveEnd,t),Zf(t,a)),a}function wh(e,t){return{components:[],scheduler:e||Xd,clean:Qv,playerHandler:t||null,flags:0}}function Mh(e,t){To(tl(e)[1],Mt())}function pD(e){return of(e).clean}function Ah(e){return Object.getPrototypeOf(e.prototype).constructor}function Gl(e){let t=Ah(e.type),n=!0;const r=[e];for(;t;){let i;if(_n(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");i=t.\u0275dir}if(i){if(n){r.push(i);const a=e;a.inputs=zl(e.inputs),a.declaredInputs=zl(e.declaredInputs),a.outputs=zl(e.outputs);const u=i.hostBindings;u&&_D(e,u);const c=i.viewQuery,_=i.contentQueries;if(c&&mD(e,c),_&&yD(e,_),G(e.inputs,i.inputs),G(e.declaredInputs,i.declaredInputs),G(e.outputs,i.outputs),_n(i)&&i.data.animation){const E=e.data;E.animation=(E.animation||[]).concat(i.data.animation)}}const s=i.features;if(s)for(let a=0;a<s.length;a++){const u=s[a];u&&u.ngInherit&&u(e),u===Gl&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){const i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=Oo(i.hostAttrs,n=Oo(n,i.hostAttrs))}}(r)}function zl(e){return e===dt?{}:e===We?[]:e}function mD(e,t){const n=e.viewQuery;e.viewQuery=n?(r,i)=>{t(r,i),n(r,i)}:t}function yD(e,t){const n=e.contentQueries;e.contentQueries=n?(r,i,s)=>{t(r,i,s),n(r,i,s)}:t}function _D(e,t){const n=e.hostBindings;e.hostBindings=n?(r,i)=>{t(r,i),n(r,i)}:t}const vD=["providersResolver"],DD=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function Ih(e){let n,t=Ah(e.type);n=_n(e)?t.\u0275cmp:t.\u0275dir;const r=e;for(const i of vD)r[i]=n[i];if(_n(n))for(const i of DD)r[i]=n[i]}let ra=null;function _s(){if(!ra){const e=W.Symbol;if(e&&e.iterator)ra=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;n<t.length;++n){const r=t[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(ra=r)}}}return ra}function Sh(e,t){const n=ao(e),r=ao(t);return n&&r?function(e,t,n){const r=e[_s()](),i=t[_s()]();for(;;){const s=r.next(),a=i.next();if(s.done&&a.done)return!0;if(s.done||a.done||!n(s.value,a.value))return!1}}(e,t,Sh):!(n||!e||"object"!=typeof e&&"function"!=typeof e||r||!t||"object"!=typeof t&&"function"!=typeof t)||Object.is(e,t)}function ao(e){return!!Wl(e)&&(Array.isArray(e)||!(e instanceof Map)&&_s()in e)}function Wl(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function oi(e,t,n){return e[t]=n}function lo(e,t){return e[t]}function xn(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function zi(e,t,n,r){const i=xn(e,t,n);return xn(e,t+1,r)||i}function ia(e,t,n,r,i){const s=zi(e,t,n,r);return xn(e,t+2,i)||s}function Nr(e,t,n,r,i,s){const a=zi(e,t,n,r);return zi(e,t+2,i,s)||a}function Kl(e,t,n,r){const i=re();return xn(i,pn(),t)&&(Ge(),si(Zt(),i,e,t,n,r)),Kl}function vs(e,t){let n=!1,r=At();for(let s=1;s<t.length;s+=2)n=xn(e,r++,t[s])||n;if(lr(r),!n)return tt;let i=t[0];for(let s=1;s<t.length;s+=2)i+=Ie(t[s])+t[s+1];return i}function Ds(e,t,n,r){return xn(e,pn(),n)?t+Ie(n)+r:tt}function Es(e,t,n,r,i,s){const u=zi(e,At(),n,i);return wn(2),u?t+Ie(n)+r+Ie(i)+s:tt}function Cs(e,t,n,r,i,s,a,u){const _=ia(e,At(),n,i,a);return wn(3),_?t+Ie(n)+r+Ie(i)+s+Ie(a)+u:tt}function bs(e,t,n,r,i,s,a,u,c,_){const I=Nr(e,At(),n,i,a,c);return wn(4),I?t+Ie(n)+r+Ie(i)+s+Ie(a)+u+Ie(c)+_:tt}function ws(e,t,n,r,i,s,a,u,c,_,E,I){const F=At();let j=Nr(e,F,n,i,a,c);return j=xn(e,F+4,E)||j,wn(5),j?t+Ie(n)+r+Ie(i)+s+Ie(a)+u+Ie(c)+_+Ie(E)+I:tt}function Ms(e,t,n,r,i,s,a,u,c,_,E,I,F,j){const Y=At();let ce=Nr(e,Y,n,i,a,c);return ce=zi(e,Y+4,E,F)||ce,wn(6),ce?t+Ie(n)+r+Ie(i)+s+Ie(a)+u+Ie(c)+_+Ie(E)+I+Ie(F)+j:tt}function As(e,t,n,r,i,s,a,u,c,_,E,I,F,j,Y,ce){const Ee=At();let we=Nr(e,Ee,n,i,a,c);return we=ia(e,Ee+4,E,F,Y)||we,wn(7),we?t+Ie(n)+r+Ie(i)+s+Ie(a)+u+Ie(c)+_+Ie(E)+I+Ie(F)+j+Ie(Y)+ce:tt}function Is(e,t,n,r,i,s,a,u,c,_,E,I,F,j,Y,ce,Ee,we){const ne=At();let ke=Nr(e,ne,n,i,a,c);return ke=Nr(e,ne+4,E,F,Y,Ee)||ke,wn(8),ke?t+Ie(n)+r+Ie(i)+s+Ie(a)+u+Ie(c)+_+Ie(E)+I+Ie(F)+j+Ie(Y)+ce+Ie(Ee)+we:tt}function ql(e,t,n,r,i,s){const a=re(),u=Ds(a,t,n,r);return u!==tt&&si(Zt(),a,e,u,i,s),ql}function Ql(e,t,n,r,i,s,a,u){const c=re(),_=Es(c,t,n,r,i,s);return _!==tt&&si(Zt(),c,e,_,a,u),Ql}function Zl(e,t,n,r,i,s,a,u,c,_){const E=re(),I=Cs(E,t,n,r,i,s,a,u);return I!==tt&&si(Zt(),E,e,I,c,_),Zl}function Yl(e,t,n,r,i,s,a,u,c,_,E,I){const F=re(),j=bs(F,t,n,r,i,s,a,u,c,_);return j!==tt&&si(Zt(),F,e,j,E,I),Yl}function Xl(e,t,n,r,i,s,a,u,c,_,E,I,F,j){const Y=re(),ce=ws(Y,t,n,r,i,s,a,u,c,_,E,I);return ce!==tt&&si(Zt(),Y,e,ce,F,j),Xl}function Jl(e,t,n,r,i,s,a,u,c,_,E,I,F,j,Y,ce){const Ee=re(),we=Ms(Ee,t,n,r,i,s,a,u,c,_,E,I,F,j);return we!==tt&&si(Zt(),Ee,e,we,Y,ce),Jl}function eu(e,t,n,r,i,s,a,u,c,_,E,I,F,j,Y,ce,Ee,we){const ne=re(),ke=As(ne,t,n,r,i,s,a,u,c,_,E,I,F,j,Y,ce);return ke!==tt&&si(Zt(),ne,e,ke,Ee,we),eu}function tu(e,t,n,r,i,s,a,u,c,_,E,I,F,j,Y,ce,Ee,we,ne,ke){const ut=re(),wt=Is(ut,t,n,r,i,s,a,u,c,_,E,I,F,j,Y,ce,Ee,we);return wt!==tt&&si(Zt(),ut,e,wt,ne,ke),tu}function nu(e,t,n,r){const i=re(),s=vs(i,t);return s!==tt&&si(Zt(),i,e,s,n,r),nu}function Th(e,t,n,r,i,s,a,u){const c=re(),_=Ge(),E=e+20,I=_.firstCreatePass?function(e,t,n,r,i,s,a,u,c){const _=t.consts,E=hs(t,e,4,a||null,Se(_,u));Fl(t,n,E,Se(_,c)),To(t,E);const I=E.tViews=Jo(2,E,r,i,s,t.directiveRegistry,t.pipeRegistry,null,t.schemas,_);return null!==t.queries&&(t.queries.template(t,E),I.queries=t.queries.embeddedTView(E)),E}(E,_,c,t,n,r,i,s,a):_.data[E];Pn(I,!1);const F=c[11].createComment("");qo(_,c,F,I),Rn(F,c),ea(c,c[E]=eh(F,c,F,I)),wr(I)&&Sl(_,c,I),null!=a&&Tl(c,I,u)}function Fh(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function Nh(e){return S(he.lFrame.contextLView,20+e)}const Ph={\u0275\u0275defineInjectable:Me,\u0275\u0275defineInjector:qn,\u0275\u0275inject:Mn,\u0275\u0275invalidFactoryDep:$a,resolveForwardRef:_e};const MD=L({provide:String,useValue:L});function Oh(e){return void 0!==e.useClass}function Rh(e){return void 0!==e.useFactory}const TD=ss("Injectable",void 0,void 0,void 0,(e,t)=>function(e,t){let n=null,r=null;e.hasOwnProperty(ct)||Object.defineProperty(e,ct,{get:()=>(null===n&&(n=Dn().compileInjectable(Ph,`ng:///${e.name}/\u0275prov.js`,function(e,t){const n=t||{providedIn:null},r={name:e.name,type:e,typeArgumentCount:0,providedIn:n.providedIn};return(Oh(n)||Rh(n))&&void 0!==n.deps&&(r.deps=Cd(n.deps)),Oh(n)?r.useClass=n.useClass:function(e){return MD in e}(n)?r.useValue=n.useValue:Rh(n)?r.useFactory=n.useFactory:function(e){return void 0!==e.useExisting}(n)&&(r.useExisting=n.useExisting),r}(e,t))),n)}),e.hasOwnProperty(tn)||Object.defineProperty(e,tn,{get:()=>{if(null===r){const i=Dn();r=i.compileFactory(Ph,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,typeArgumentCount:0,deps:$o(e),target:i.FactoryTarget.Injectable})}return r},configurable:!0})}(e,t));function ru(e){return e.length>1?" ("+function(e){const t=[];for(let n=0;n<e.length;++n){if(t.indexOf(e[n])>-1)return t.push(e[n]),t;t.push(e[n])}return t}(e.slice().reverse()).map(r=>H(r.token)).join(" -> ")+")":""}function iu(e,t,n,r){const i=[t],s=n(i),a=r?function(e,t){const n=`${e} caused by: ${t instanceof Error?t.message:t}`,r=Error(n);return r[nl]=t,r}(s,r):Error(s);return a.addKey=ND,a.keys=i,a.injectors=[e],a.constructResolvingMessage=n,a[nl]=r,a}function ND(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function xh(e,t){const n=[];for(let r=0,i=t.length;r<i;r++){const s=t[r];n.push(s&&0!=s.length?s.map(H).join(" "):"?")}return Error("Cannot resolve all parameters for '"+H(e)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+H(e)+"' is decorated with Injectable.")}function VD(e,t){return Error(`Cannot mix multi providers and regular providers, got: ${e} ${t}`)}class Ei{constructor(t,n){if(this.token=t,this.id=n,!t)throw new Error("Token must be defined!");this.displayName=H(this.token)}static get(t){return Lh.get(_e(t))}static get numberOfKeys(){return Lh.numberOfKeys}}class kD{constructor(){this._allKeys=new Map}get(t){if(t instanceof Ei)return t;if(this._allKeys.has(t))return this._allKeys.get(t);const n=new Ei(t,Ei.numberOfKeys);return this._allKeys.set(t,n),n}get numberOfKeys(){return this._allKeys.size}}const Lh=new kD;class BD{constructor(t){this.reflectionCapabilities=t}updateCapabilities(t){this.reflectionCapabilities=t}factory(t){return this.reflectionCapabilities.factory(t)}parameters(t){return this.reflectionCapabilities.parameters(t)}annotations(t){return this.reflectionCapabilities.annotations(t)}propMetadata(t){return this.reflectionCapabilities.propMetadata(t)}hasLifecycleHook(t,n){return this.reflectionCapabilities.hasLifecycleHook(t,n)}getter(t){return this.reflectionCapabilities.getter(t)}setter(t){return this.reflectionCapabilities.setter(t)}method(t){return this.reflectionCapabilities.method(t)}importUri(t){return this.reflectionCapabilities.importUri(t)}resourceUri(t){return this.reflectionCapabilities.resourceUri(t)}resolveIdentifier(t,n,r,i){return this.reflectionCapabilities.resolveIdentifier(t,n,r,i)}resolveEnum(t,n){return this.reflectionCapabilities.resolveEnum(t,n)}}const Vh=new BD(new Ba);class sa{constructor(t,n,r){this.key=t,this.optional=n,this.visibility=r}static fromKey(t){return new sa(t,!1,null)}}const jD=[];class kh{constructor(t,n,r){this.key=t,this.resolvedFactories=n,this.multiProvider=r,this.resolvedFactory=this.resolvedFactories[0]}}class Bh{constructor(t,n){this.factory=t,this.dependencies=n}}function HD(e){let t,n;if(e.useClass){const r=_e(e.useClass);t=Vh.factory(r),n=Hh(r)}else e.useExisting?(t=r=>r,n=[sa.fromKey(Ei.get(e.useExisting))]):e.useFactory?(t=e.useFactory,n=function(e,t){if(t){const n=t.map(r=>[r]);return t.map(r=>Uh(e,r,n))}return Hh(e)}(e.useFactory,e.deps)):(t=()=>e.useValue,n=jD);return new Bh(t,n)}function UD(e){return new kh(Ei.get(e.provide),[HD(e)],e.multi||!1)}function $D(e){const r=function(e,t){for(let n=0;n<e.length;n++){const r=e[n],i=t.get(r.key.id);if(i){if(r.multiProvider!==i.multiProvider)throw VD(i,r);if(r.multiProvider)for(let s=0;s<r.resolvedFactories.length;s++)i.resolvedFactories.push(r.resolvedFactories[s]);else t.set(r.key.id,r)}else{let s;s=r.multiProvider?new kh(r.key,r.resolvedFactories.slice(),r.multiProvider):r,t.set(r.key.id,s)}}return t}(jh(e,[]).map(UD),new Map);return Array.from(r.values())}function jh(e,t){return e.forEach(n=>{if(n instanceof ko)t.push({provide:n,useClass:n});else if(n&&"object"==typeof n&&void 0!==n.provide)t.push(n);else{if(!Array.isArray(n))throw function(e){return Error(`Invalid provider - only instances of Provider and Type are allowed, got: ${e}`)}(n);jh(n,t)}}),t}function Hh(e){const t=Vh.parameters(e);if(!t)return[];if(t.some(n=>null==n))throw xh(e,t);return t.map(n=>Uh(e,n,t))}function Uh(e,t,n){let r=null,i=!1;if(!Array.isArray(t))return su(t instanceof Qs?t.token:t,i,null);let s=null;for(let a=0;a<t.length;++a){const u=t[a];u instanceof ko?r=u:u instanceof Qs?r=u.token:u instanceof Hi?i=!0:u instanceof Uo||u instanceof Ui?s=u:u instanceof Yt&&(r=u)}if(r=_e(r),null!=r)return su(r,i,s);throw xh(e,n)}function su(e,t,n){return new sa(Ei.get(e),t,n)}const uo={};class Ss{static resolve(t){return $D(t)}static resolveAndCreate(t,n){const r=Ss.resolve(t);return Ss.fromResolvedProviders(r,n)}static fromResolvedProviders(t,n){return new WD(t,n)}}let WD=(()=>{class e{constructor(n,r){this._constructionCounter=0,this._providers=n,this.parent=r||null;const i=n.length;this.keyIds=[],this.objs=[];for(let s=0;s<i;s++)this.keyIds[s]=n[s].key.id,this.objs[s]=uo}get(n,r=Ri){return this._getByKey(Ei.get(n),null,r)}resolveAndCreateChild(n){const r=Ss.resolve(n);return this.createChildFromResolved(r)}createChildFromResolved(n){const r=new e(n);return r.parent=this,r}resolveAndInstantiate(n){return this.instantiateResolved(Ss.resolve([n])[0])}instantiateResolved(n){return this._instantiateProvider(n)}getProviderAtIndex(n){if(n<0||n>=this._providers.length)throw function(e){return Error(`Index ${e} is out-of-bounds.`)}(n);return this._providers[n]}_new(n){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw function(e,t){return iu(e,t,function(n){return`Cannot instantiate cyclic dependency!${ru(n)}`})}(this,n.key);return this._instantiateProvider(n)}_getMaxNumberOfObjects(){return this.objs.length}_instantiateProvider(n){if(n.multiProvider){const r=[];for(let i=0;i<n.resolvedFactories.length;++i)r[i]=this._instantiate(n,n.resolvedFactories[i]);return r}return this._instantiate(n,n.resolvedFactories[0])}_instantiate(n,r){const i=r.factory;let s,a;try{s=r.dependencies.map(u=>this._getByReflectiveDependency(u))}catch(u){throw u.addKey&&u.addKey(this,n.key),u}try{a=i(...s)}catch(u){throw function(e,t,n,r){return iu(e,r,function(i){const s=H(i[0].token);return`${t.message}: Error during instantiation of ${s}!${ru(i)}.`},t)}(this,u,0,n.key)}return a}_getByReflectiveDependency(n){return this._getByKey(n.key,n.visibility,n.optional?null:Ri)}_getByKey(n,r,i){return n===e.INJECTOR_KEY?this:r instanceof Uo?this._getByKeySelf(n,i):this._getByKeyDefault(n,i,r)}_getObjByKeyId(n){for(let r=0;r<this.keyIds.length;r++)if(this.keyIds[r]===n)return this.objs[r]===uo&&(this.objs[r]=this._new(this._providers[r])),this.objs[r];return uo}_throwOrNull(n,r){if(r!==Ri)return r;throw function(e,t){return iu(e,t,function(n){return`No provider for ${H(n[0].token)}!${ru(n)}`})}(this,n)}_getByKeySelf(n,r){const i=this._getObjByKeyId(n.id);return i!==uo?i:this._throwOrNull(n,r)}_getByKeyDefault(n,r,i){let s;for(s=i instanceof Ui?this.parent:this;s instanceof e;){const a=s,u=a._getObjByKeyId(n.id);if(u!==uo)return u;s=a.parent}return null!==s?s.get(n.token,r):this._throwOrNull(n,r)}get displayName(){return`ReflectiveInjector(providers: [${function(e,t){const n=[];for(let r=0;r<e._providers.length;++r)n[r]=t(e.getProviderAtIndex(r));return n}(this,r=>' "'+r.key.displayName+'" ').join(", ")}])`}toString(){return this.displayName}}return e.INJECTOR_KEY=Ei.get(dr),e})();function co(e,t=Be.Default){const n=re();return null===n?Mn(e,t):ld(Mt(),n,_e(e),t)}function $h(){throw new Error("invalid")}function ou(e,t,n){const r=re();return xn(r,pn(),t)&&cr(Ge(),Zt(),r,e,t,r[11],n,!1),ou}function au(e,t,n,r,i){const a=i?"class":"style";oh(e,n,t.inputs[a],a,r)}function lu(e,t,n,r){const i=re(),s=Ge(),a=20+e,u=i[11],c=i[a]=ul(u,t,he.lFrame.currentNamespace),_=s.firstCreatePass?function(e,t,n,r,i,s,a){const u=t.consts,_=hs(t,e,2,i,Se(u,s));return Fl(t,n,_,Se(u,a)),null!==_.attrs&&ta(_,_.attrs,!1),null!==_.mergedAttrs&&ta(_,_.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,_),_}(a,s,i,0,t,n,r):s.data[a];Pn(_,!0);const E=_.mergedAttrs;null!==E&&Po(u,c,E);const I=_.classes;null!==I&&gl(u,c,I);const F=_.styles;null!==F&&Cf(u,c,F),64!=(64&_.flags)&&qo(s,i,c,_),0===he.lFrame.elementDepthCount&&Rn(c,i),he.lFrame.elementDepthCount++,wr(_)&&(Sl(s,i,_),Uf(s,_,i)),null!==r&&Tl(i,_)}function uu(){let e=Mt();kr()?Xi():(e=e.parent,Pn(e,!1));const t=e;he.lFrame.elementDepthCount--;const n=Ge();n.firstCreatePass&&(To(n,e),fi(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&au(n,t,re(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&au(n,t,re(),t.stylesWithoutHost,!1)}function Gh(e,t,n,r){lu(e,t,n,r),uu()}function cu(e,t,n){const r=re(),i=Ge(),s=e+20,a=i.firstCreatePass?function(e,t,n,r,i){const s=t.consts,a=Se(s,r),u=hs(t,e,8,"ng-container",a);return null!==a&&ta(u,a,!0),Fl(t,n,u,Se(s,i)),null!==t.queries&&t.queries.elementStart(t,u),u}(s,i,r,t,n):i.data[s];Pn(a,!0);const u=r[s]=r[11].createComment("");qo(i,r,u,a),Rn(u,r),wr(a)&&(Sl(i,r,a),Uf(i,a,r)),null!=n&&Tl(r,a)}function du(){let e=Mt();const t=Ge();kr()?Xi():(e=e.parent,Pn(e,!1)),t.firstCreatePass&&(To(t,e),fi(e)&&t.queries.elementEnd(e))}function zh(e,t,n){cu(e,t,n),du()}function Wh(){return re()}function fu(e){return!!e&&"function"==typeof e.then}function Kh(e){return!!e&&"function"==typeof e.subscribe}const qh=Kh;function hu(e,t,n,r){const i=re(),s=Ge(),a=Mt();return Qh(s,i,i[11],a,e,t,!!n,r),hu}function pu(e,t){const n=Mt(),r=re(),i=Ge();return Qh(i,r,ih(Fi(i.data),n,r),n,e,t,!1),pu}function Qh(e,t,n,r,i,s,a,u){const c=wr(r),E=e.firstCreatePass&&rh(e),I=t[8],F=nh(t);let j=!0;if(3&r.type||u){const Ee=d(r,t),we=u?u(Ee):Ee,ne=F.length,ke=u?ut=>u(at(ut[r.index])):r.index;if($(n)){let ut=null;if(!u&&c&&(ut=function(e,t,n,r){const i=e.cleanup;if(null!=i)for(let s=0;s<i.length-1;s+=2){const a=i[s];if(a===n&&i[s+1]===r){const u=t[7],c=i[s+2];return u.length>c?u[c]:null}"string"==typeof a&&(s+=2)}return null}(e,t,i,r.index)),null!==ut)(ut.__ngLastListenerFn__||ut).__ngNextListenerFn__=s,ut.__ngLastListenerFn__=s,j=!1;else{s=gu(r,t,I,s,!1);const wt=n.listen(we,i,s);F.push(s,wt),E&&E.push(i,ke,ne,ne+1)}}else s=gu(r,t,I,s,!0),we.addEventListener(i,s,a),F.push(s),E&&E.push(i,ke,ne,a)}else s=gu(r,t,I,s,!1);const Y=r.outputs;let ce;if(j&&null!==Y&&(ce=Y[i])){const Ee=ce.length;if(Ee)for(let we=0;we<Ee;we+=2){const hr=t[ce[we]][ce[we+1]].subscribe(s),qi=F.length;F.push(s,hr),E&&E.push(i,r.index,qi,-(qi+1))}}}function Zh(e,t,n,r){try{return yt(6,t,n),!1!==n(r)}catch(i){return sh(e,i),!1}finally{yt(7,t,n)}}function gu(e,t,n,r,i){return function s(a){if(a===Function)return r;const u=2&e.flags?T(e.index,t):t;0==(32&t[2])&&Ol(u);let c=Zh(t,n,r,a),_=s.__ngNextListenerFn__;for(;_;)c=Zh(t,n,_,a)&&c,_=_.__ngNextListenerFn__;return i&&!1===c&&(a.preventDefault(),a.returnValue=!1),c}}function Yh(e=1){return function(e){return(he.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,he.lFrame.contextLView))[8]}(e)}function YD(e,t){let n=null;const r=function(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e);for(let i=0;i<t.length;i++){const s=t[i];if("*"!==s){if(null===r?Af(e,s,!0):av(r,s))return i}else n=i}return n}function Xh(e){const t=re()[16][6];if(!t.projection){const r=t.projection=Ws(e?e.length:1,null),i=r.slice();let s=t.child;for(;null!==s;){const a=e?YD(s,e):0;null!==a&&(i[a]?i[a].projectionNext=s:r[a]=s,i[a]=s),s=s.next}}}function Jh(e,t=0,n){const r=re(),i=Ge(),s=hs(i,20+e,16,null,n||null);null===s.projection&&(s.projection=t),Xi(),64!=(64&s.flags)&&function(e,t,n){Ef(t[11],0,t,n,df(e,n,t),gf(n.parent||t[6],n,t))}(i,r,s)}function mu(e,t,n){return oa(e,"",t,"",n),mu}function oa(e,t,n,r,i){const s=re(),a=Ds(s,t,n,r);return a!==tt&&cr(Ge(),Zt(),s,e,a,s[11],i,!1),oa}function yu(e,t,n,r,i,s,a){const u=re(),c=Es(u,t,n,r,i,s);return c!==tt&&cr(Ge(),Zt(),u,e,c,u[11],a,!1),yu}function _u(e,t,n,r,i,s,a,u,c){const _=re(),E=Cs(_,t,n,r,i,s,a,u);return E!==tt&&cr(Ge(),Zt(),_,e,E,_[11],c,!1),_u}function vu(e,t,n,r,i,s,a,u,c,_,E){const I=re(),F=bs(I,t,n,r,i,s,a,u,c,_);return F!==tt&&cr(Ge(),Zt(),I,e,F,I[11],E,!1),vu}function Du(e,t,n,r,i,s,a,u,c,_,E,I,F){const j=re(),Y=ws(j,t,n,r,i,s,a,u,c,_,E,I);return Y!==tt&&cr(Ge(),Zt(),j,e,Y,j[11],F,!1),Du}function Eu(e,t,n,r,i,s,a,u,c,_,E,I,F,j,Y){const ce=re(),Ee=Ms(ce,t,n,r,i,s,a,u,c,_,E,I,F,j);return Ee!==tt&&cr(Ge(),Zt(),ce,e,Ee,ce[11],Y,!1),Eu}function Cu(e,t,n,r,i,s,a,u,c,_,E,I,F,j,Y,ce,Ee){const we=re(),ne=As(we,t,n,r,i,s,a,u,c,_,E,I,F,j,Y,ce);return ne!==tt&&cr(Ge(),Zt(),we,e,ne,we[11],Ee,!1),Cu}function bu(e,t,n,r,i,s,a,u,c,_,E,I,F,j,Y,ce,Ee,we,ne){const ke=re(),ut=Is(ke,t,n,r,i,s,a,u,c,_,E,I,F,j,Y,ce,Ee,we);return ut!==tt&&cr(Ge(),Zt(),ke,e,ut,ke[11],ne,!1),bu}function wu(e,t,n){const r=re(),i=vs(r,t);return i!==tt&&cr(Ge(),Zt(),r,e,i,r[11],n,!1),wu}function ep(e,t,n,r,i){const s=e[n+1],a=null===t;let u=r?jr(s):vi(s),c=!1;for(;0!==u&&(!1===c||a);){const E=e[u+1];eE(e[u],t)&&(c=!0,e[u+1]=r?_l(E):ml(E)),u=r?jr(E):vi(E)}c&&(e[n+1]=r?ml(s):_l(s))}function eE(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&as(e,t)>=0}const En={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function tp(e){return e.substring(En.key,En.keyEnd)}function tE(e){return e.substring(En.value,En.valueEnd)}function np(e,t){const n=En.textEnd;return n===t?-1:(t=En.keyEnd=function(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,En.key=t,n),Ts(e,t,n))}function rp(e,t){const n=En.textEnd;let r=En.key=Ts(e,t,n);return n===r?-1:(r=En.keyEnd=function(e,t,n){let r;for(;t<n&&(45===(r=e.charCodeAt(t))||95===r||(-33&r)>=65&&(-33&r)<=90||r>=48&&r<=57);)t++;return t}(e,r,n),r=sp(e,r,n),r=En.value=Ts(e,r,n),r=En.valueEnd=function(e,t,n){let r=-1,i=-1,s=-1,a=t,u=a;for(;a<n;){const c=e.charCodeAt(a++);if(59===c)return u;34===c||39===c?u=a=op(e,c,a,n):t===a-4&&85===s&&82===i&&76===r&&40===c?u=a=op(e,41,a,n):c>32&&(u=a),s=i,i=r,r=-33&c}return u}(e,r,n),sp(e,r,n))}function ip(e){En.key=0,En.keyEnd=0,En.value=0,En.valueEnd=0,En.textEnd=e.length}function Ts(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function sp(e,t,n,r){return(t=Ts(e,t,n))<n&&t++,t}function op(e,t,n,r){let i=-1,s=n;for(;s<r;){const a=e.charCodeAt(s++);if(a==t&&92!==i)return s;i=92==a&&92===i?0:a}throw new Error}function Mu(e,t,n){return Ur(e,t,n,!1),Mu}function Au(e,t){return Ur(e,t,null,!0),Au}function Hr(e){$r(cp,aE,e,!1)}function aE(e,t){for(let n=function(e){return ip(e),rp(e,Ts(e,0,En.textEnd))}(t);n>=0;n=rp(t,n))cp(e,tp(t),tE(t))}function ap(e){$r(ur,ai,e,!0)}function ai(e,t){for(let n=function(e){return ip(e),np(e,Ts(e,0,En.textEnd))}(t);n>=0;n=np(t,n))ur(e,tp(t),!0)}function Ur(e,t,n,r){const i=re(),s=Ge(),a=wn(2);s.firstUpdatePass&&up(s,e,a,r),t!==tt&&xn(i,a,t)&&dp(s,s.data[Gn()],i,i[11],e,i[a+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=H(_i(e)))),e}(t,n),r,a)}function $r(e,t,n,r){const i=Ge(),s=wn(2);i.firstUpdatePass&&up(i,null,s,r);const a=re();if(n!==tt&&xn(a,s,n)){const u=i.data[Gn()];if(hp(u,r)&&!lp(i,s)){let c=r?u.classesWithoutHost:u.stylesWithoutHost;null!==c&&(n=K(c,n||"")),au(i,u,a,n,r)}else!function(e,t,n,r,i,s,a,u){i===tt&&(i=We);let c=0,_=0,E=0<i.length?i[0]:null,I=0<s.length?s[0]:null;for(;null!==E||null!==I;){const F=c<i.length?i[c+1]:void 0,j=_<s.length?s[_+1]:void 0;let ce,Y=null;E===I?(c+=2,_+=2,F!==j&&(Y=I,ce=j)):null===I||null!==E&&E<I?(c+=2,Y=E):(_+=2,Y=I,ce=j),null!==Y&&dp(e,t,n,r,Y,ce,a,u),E=c<i.length?i[c]:null,I=_<s.length?s[_]:null}}(i,u,a,a[11],a[s+1],a[s+1]=function(e,t,n){if(null==n||""===n)return We;const r=[],i=_i(n);if(Array.isArray(i))for(let s=0;s<i.length;s++)e(r,i[s],!0);else if("object"==typeof i)for(const s in i)i.hasOwnProperty(s)&&e(r,s,i[s]);else"string"==typeof i&&t(r,i);return r}(e,t,n),r,s)}}function lp(e,t){return t>=e.expandoStartIndex}function up(e,t,n,r){const i=e.data;if(null===i[n+1]){const s=i[Gn()],a=lp(e,n);hp(s,r)&&null===t&&!a&&(t=!1),t=function(e,t,n,r){const i=Fi(e);let s=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=fo(n=Iu(null,e,t,n,r),t.attrs,r),s=null);else{const a=t.directiveStylingLast;if(-1===a||e[a]!==i)if(n=Iu(i,e,t,n,r),null===s){let c=function(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==vi(r))return e[jr(r)]}(e,t,r);void 0!==c&&Array.isArray(c)&&(c=Iu(null,e,t,c[1],r),c=fo(c,t.attrs,r),function(e,t,n,r){e[jr(n?t.classBindings:t.styleBindings)]=r}(e,t,r,c))}else s=function(e,t,n){let r;const i=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<i;s++)r=fo(r,e[s].hostAttrs,n);return fo(r,t.attrs,n)}(e,t,r)}return void 0!==s&&(r?t.residualClasses=s:t.residualStyles=s),n}(i,s,t,r),function(e,t,n,r,i,s){let a=s?t.classBindings:t.styleBindings,u=jr(a),c=vi(a);e[r]=n;let E,_=!1;if(Array.isArray(n)){const I=n;E=I[1],(null===E||as(I,E)>0)&&(_=!0)}else E=n;if(i)if(0!==c){const F=jr(e[u+1]);e[r+1]=Zo(F,u),0!==F&&(e[F+1]=yl(e[F+1],r)),e[u+1]=function(e,t){return 131071&e|t<<17}(e[u+1],r)}else e[r+1]=Zo(u,0),0!==u&&(e[u+1]=yl(e[u+1],r)),u=r;else e[r+1]=Zo(c,0),0===u?u=r:e[c+1]=yl(e[c+1],r),c=r;_&&(e[r+1]=ml(e[r+1])),ep(e,E,r,!0),ep(e,E,r,!1),function(e,t,n,r,i){const s=i?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof t&&as(s,t)>=0&&(n[r+1]=_l(n[r+1]))}(t,E,e,r,s),a=Zo(u,c),s?t.classBindings=a:t.styleBindings=a}(i,s,t,n,a,r)}}function Iu(e,t,n,r,i){let s=null;const a=n.directiveEnd;let u=n.directiveStylingLast;for(-1===u?u=n.directiveStart:u++;u<a&&(s=t[u],r=fo(r,s.hostAttrs,i),s!==e);)u++;return null!==e&&(n.directiveStylingLast=u),r}function fo(e,t,n){const r=n?1:2;let i=-1;if(null!==t)for(let s=0;s<t.length;s++){const a=t[s];"number"==typeof a?i=a:i===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),ur(e,a,!!n||t[++s]))}return void 0===e?null:e}function cp(e,t,n){ur(e,t,_i(n))}function dp(e,t,n,r,i,s,a,u){if(!(3&t.type))return;const c=e.data,_=c[u+1];aa(function(e){return 1==(1&e)}(_)?fp(c,t,n,i,vi(_),a):void 0)||(aa(s)||function(e){return 2==(2&e)}(_)&&(s=fp(c,null,n,i,u,a)),function(e,t,n,r,i){const s=$(e);if(t)i?s?e.addClass(n,r):n.classList.add(r):s?e.removeClass(n,r):n.classList.remove(r);else{let a=-1===r.indexOf("-")?void 0:ii.DashCase;if(null==i)s?e.removeStyle(n,r,a):n.style.removeProperty(r);else{const u="string"==typeof i&&i.endsWith("!important");u&&(i=i.slice(0,-10),a|=ii.Important),s?e.setStyle(n,r,i,a):n.style.setProperty(r,i,u?"important":"")}}}(r,a,l(Gn(),n),i,s))}function fp(e,t,n,r,i,s){const a=null===t;let u;for(;i>0;){const c=e[i],_=Array.isArray(c),E=_?c[1]:c,I=null===E;let F=n[i+1];F===tt&&(F=I?We:void 0);let j=I?ka(F,r):E===r?F:void 0;if(_&&!aa(j)&&(j=ka(c,r)),aa(j)&&(u=j,a))return u;const Y=e[i+1];i=a?jr(Y):vi(Y)}if(null!==t){let c=s?t.residualClasses:t.residualStyles;null!=c&&(u=ka(c,r))}return u}function aa(e){return void 0!==e}function hp(e,t){return 0!=(e.flags&(t?16:32))}function pp(e,t=""){const n=re(),r=Ge(),i=e+20,s=r.firstCreatePass?hs(r,i,1,t,null):r.data[i],a=n[i]=ll(n[11],t);qo(r,n,a,s),Pn(s,!1)}function Su(e){return la("",e,""),Su}function la(e,t,n){const r=re(),i=Ds(r,e,t,n);return i!==tt&&Di(r,Gn(),i),la}function Tu(e,t,n,r,i){const s=re(),a=Es(s,e,t,n,r,i);return a!==tt&&Di(s,Gn(),a),Tu}function Fu(e,t,n,r,i,s,a){const u=re(),c=Cs(u,e,t,n,r,i,s,a);return c!==tt&&Di(u,Gn(),c),Fu}function Nu(e,t,n,r,i,s,a,u,c){const _=re(),E=bs(_,e,t,n,r,i,s,a,u,c);return E!==tt&&Di(_,Gn(),E),Nu}function Pu(e,t,n,r,i,s,a,u,c,_,E){const I=re(),F=ws(I,e,t,n,r,i,s,a,u,c,_,E);return F!==tt&&Di(I,Gn(),F),Pu}function Ou(e,t,n,r,i,s,a,u,c,_,E,I,F){const j=re(),Y=Ms(j,e,t,n,r,i,s,a,u,c,_,E,I,F);return Y!==tt&&Di(j,Gn(),Y),Ou}function Ru(e,t,n,r,i,s,a,u,c,_,E,I,F,j,Y){const ce=re(),Ee=As(ce,e,t,n,r,i,s,a,u,c,_,E,I,F,j,Y);return Ee!==tt&&Di(ce,Gn(),Ee),Ru}function xu(e,t,n,r,i,s,a,u,c,_,E,I,F,j,Y,ce,Ee){const we=re(),ne=Is(we,e,t,n,r,i,s,a,u,c,_,E,I,F,j,Y,ce,Ee);return ne!==tt&&Di(we,Gn(),ne),xu}function Lu(e){const t=re(),n=vs(t,e);return n!==tt&&Di(t,Gn(),n),Lu}function gp(e,t,n){$r(ur,ai,Ds(re(),e,t,n),!0)}function mp(e,t,n,r,i){$r(ur,ai,Es(re(),e,t,n,r,i),!0)}function yp(e,t,n,r,i,s,a){$r(ur,ai,Cs(re(),e,t,n,r,i,s,a),!0)}function _p(e,t,n,r,i,s,a,u,c){$r(ur,ai,bs(re(),e,t,n,r,i,s,a,u,c),!0)}function vp(e,t,n,r,i,s,a,u,c,_,E){$r(ur,ai,ws(re(),e,t,n,r,i,s,a,u,c,_,E),!0)}function Dp(e,t,n,r,i,s,a,u,c,_,E,I,F){$r(ur,ai,Ms(re(),e,t,n,r,i,s,a,u,c,_,E,I,F),!0)}function Ep(e,t,n,r,i,s,a,u,c,_,E,I,F,j,Y){$r(ur,ai,As(re(),e,t,n,r,i,s,a,u,c,_,E,I,F,j,Y),!0)}function Cp(e,t,n,r,i,s,a,u,c,_,E,I,F,j,Y,ce,Ee){$r(ur,ai,Is(re(),e,t,n,r,i,s,a,u,c,_,E,I,F,j,Y,ce,Ee),!0)}function bp(e){$r(ur,ai,vs(re(),e),!0)}function wp(e,t,n){Hr(Ds(re(),e,t,n))}function Mp(e,t,n,r,i){Hr(Es(re(),e,t,n,r,i))}function Ap(e,t,n,r,i,s,a){Hr(Cs(re(),e,t,n,r,i,s,a))}function Ip(e,t,n,r,i,s,a,u,c){Hr(bs(re(),e,t,n,r,i,s,a,u,c))}function Sp(e,t,n,r,i,s,a,u,c,_,E){Hr(ws(re(),e,t,n,r,i,s,a,u,c,_,E))}function Tp(e,t,n,r,i,s,a,u,c,_,E,I,F){Hr(Ms(re(),e,t,n,r,i,s,a,u,c,_,E,I,F))}function Fp(e,t,n,r,i,s,a,u,c,_,E,I,F,j,Y){Hr(As(re(),e,t,n,r,i,s,a,u,c,_,E,I,F,j,Y))}function Np(e,t,n,r,i,s,a,u,c,_,E,I,F,j,Y,ce,Ee){Hr(Is(re(),e,t,n,r,i,s,a,u,c,_,E,I,F,j,Y,ce,Ee))}function Pp(e){Hr(vs(re(),e))}function Vu(e,t,n,r,i){return Ur(e,Ds(re(),t,n,r),i,!1),Vu}function ku(e,t,n,r,i,s,a){return Ur(e,Es(re(),t,n,r,i,s),a,!1),ku}function Bu(e,t,n,r,i,s,a,u,c){return Ur(e,Cs(re(),t,n,r,i,s,a,u),c,!1),Bu}function ju(e,t,n,r,i,s,a,u,c,_,E){return Ur(e,bs(re(),t,n,r,i,s,a,u,c,_),E,!1),ju}function Hu(e,t,n,r,i,s,a,u,c,_,E,I,F){return Ur(e,ws(re(),t,n,r,i,s,a,u,c,_,E,I),F,!1),Hu}function Uu(e,t,n,r,i,s,a,u,c,_,E,I,F,j,Y){return Ur(e,Ms(re(),t,n,r,i,s,a,u,c,_,E,I,F,j),Y,!1),Uu}function $u(e,t,n,r,i,s,a,u,c,_,E,I,F,j,Y,ce,Ee){return Ur(e,As(re(),t,n,r,i,s,a,u,c,_,E,I,F,j,Y,ce),Ee,!1),$u}function Gu(e,t,n,r,i,s,a,u,c,_,E,I,F,j,Y,ce,Ee,we,ne){return Ur(e,Is(re(),t,n,r,i,s,a,u,c,_,E,I,F,j,Y,ce,Ee,we),ne,!1),Gu}function zu(e,t,n){return Ur(e,vs(re(),t),n,!1),zu}function Wu(e,t,n){const r=re();return xn(r,pn(),t)&&cr(Ge(),Zt(),r,e,t,r[11],n,!0),Wu}function Ku(e,t,n){const r=re();if(xn(r,pn(),t)){const s=Ge(),a=Zt();cr(s,a,r,e,t,ih(Fi(s.data),a,r),n,!0)}return Ku}const Wi=void 0;var mE=["en",[["a","p"],["AM","PM"],Wi],[["AM","PM"],Wi,Wi],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Wi,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Wi,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Wi,"{1} 'at' {0}",Wi],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let Fs={};function yE(e,t,n){"string"!=typeof t&&(n=t,t=e[He.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),Fs[t]=e,n&&(Fs[t][He.ExtraData]=n)}function qu(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Rp(t);if(n)return n;const r=t.split("-")[0];if(n=Rp(r),n)return n;if("en"===r)return mE;throw new Error(`Missing locale data for the locale "${e}".`)}function _E(e){return qu(e)[He.CurrencyCode]||null}function Op(e){return qu(e)[He.PluralCase]}function Rp(e){return e in Fs||(Fs[e]=W.ng&&W.ng.common&&W.ng.common.locales&&W.ng.common.locales[e]),Fs[e]}function vE(){Fs={}}var He=(()=>((He=He||{})[He.LocaleId=0]="LocaleId",He[He.DayPeriodsFormat=1]="DayPeriodsFormat",He[He.DayPeriodsStandalone=2]="DayPeriodsStandalone",He[He.DaysFormat=3]="DaysFormat",He[He.DaysStandalone=4]="DaysStandalone",He[He.MonthsFormat=5]="MonthsFormat",He[He.MonthsStandalone=6]="MonthsStandalone",He[He.Eras=7]="Eras",He[He.FirstDayOfWeek=8]="FirstDayOfWeek",He[He.WeekendRange=9]="WeekendRange",He[He.DateFormat=10]="DateFormat",He[He.TimeFormat=11]="TimeFormat",He[He.DateTimeFormat=12]="DateTimeFormat",He[He.NumberSymbols=13]="NumberSymbols",He[He.NumberFormats=14]="NumberFormats",He[He.CurrencyCode=15]="CurrencyCode",He[He.CurrencySymbol=16]="CurrencySymbol",He[He.CurrencyName=17]="CurrencyName",He[He.Currencies=18]="Currencies",He[He.Directionality=19]="Directionality",He[He.PluralCase=20]="PluralCase",He[He.ExtraData=21]="ExtraData",He))();const EE=["zero","one","two","few","many"],ho="en-US",ua={marker:"element"},ca={marker:"ICU"};var Xt=(()=>((Xt=Xt||{})[Xt.SHIFT=2]="SHIFT",Xt[Xt.APPEND_EAGERLY=1]="APPEND_EAGERLY",Xt[Xt.COMMENT=2]="COMMENT",Xt))();let xp=ho;function Lp(e){(function(e,t){null==e&&pt(t,e,null,"!=")})(e,"Expected localeId to be defined"),"string"==typeof e&&(xp=e.toLowerCase().replace(/_/g,"-"))}function Vp(e,t,n){const r=t.insertBeforeIndex,i=Array.isArray(r)?r[0]:r;return null===i?mf(e,0,n):at(n[i])}function kp(e,t,n,r,i){const s=t.insertBeforeIndex;if(Array.isArray(s)){let a=r,u=null;if(3&t.type||(u=a,a=i),null!==a&&0==(2&t.flags))for(let c=1;c<s.length;c++)Gi(e,a,n[s[c]],u,!1)}}function Bp(e,t){if(e.push(t),e.length>1)for(let n=e.length-2;n>=0;n--){const r=e[n];jp(r)||ME(r,t)&&null===AE(r)&&IE(r,t.index)}}function jp(e){return!(64&e.type)}function ME(e,t){return jp(t)||e.index>t.index}function AE(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function IE(e,t){const n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(_f(Vp,kp),e.insertBeforeIndex=t)}function po(e,t){const n=e.data[t];return null===n||"string"==typeof n?null:n.hasOwnProperty("currentCaseLViewIndex")?n:n.value}function FE(e,t,n){const r=Il(e,n,64,null,null);return Bp(t,r),r}function da(e,t){const n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}function Hp(e){return e>>>17}function Up(e){return(131070&e)>>>1}let go=0,mo=0;function Gp(e,t,n,r){const i=n[11];let a,s=null;for(let u=0;u<t.length;u++){const c=t[u];if("string"==typeof c){const _=t[++u];null===n[_]&&(n[_]=ll(i,c))}else if("number"==typeof c)switch(1&c){case 0:const _=Hp(c);let E,I;if(null===s&&(s=_,a=Ko(i,r)),_===s?(E=r,I=a):(E=null,I=at(n[_])),null!==I){const ce=Up(c);Gi(i,I,n[ce],E,!1);const we=po(e,ce);if(null!==we&&"object"==typeof we){const ne=da(we,n);null!==ne&&Gp(e,we.create[ne],n,n[we.anchorIdx])}}break;case 1:const j=t[++u],Y=t[++u];Nl(i,l(c>>>1,n),null,null,j,Y,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${c}"`)}else switch(c){case ca:const _=t[++u],E=t[++u];null===n[E]&&Rn(n[E]=j_(i,_),n);break;case ua:const I=t[++u],F=t[++u];null===n[F]&&Rn(n[F]=ul(i,I,null),n)}}}function zp(e,t,n,r,i){for(let s=0;s<n.length;s++){const a=n[s],u=n[++s];if(a&i){let c="";for(let _=s+1;_<=s+u;_++){const E=n[_];if("string"==typeof E)c+=E;else if("number"==typeof E)if(E<0)c+=Ie(t[r-E]);else{const I=E>>>2;switch(3&E){case 1:const F=n[++_],j=n[++_],Y=e.data[I];"string"==typeof Y?Nl(t[11],t[I],null,Y,F,c,j):cr(e,Y,t,F,c,t[11],j,!1);break;case 0:const ce=t[I];null!==ce&&lf(t[11],ce,c);break;case 2:xE(e,po(e,I),t,c);break;case 3:Wp(e,po(e,I),r,t)}}}}else{const c=n[s+1];if(c>0&&3==(3&c)){const E=po(e,c>>>2);t[E.currentCaseLViewIndex]<0&&Wp(e,E,r,t)}}s+=u}}function Wp(e,t,n,r){let i=r[t.currentCaseLViewIndex];if(null!==i){let s=go;i<0&&(i=r[t.currentCaseLViewIndex]=~i,s=-1),zp(e,r,t.update[i],n,s)}}function xE(e,t,n,r){const i=function(e,t){let n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:{const r=function(e,t){const n=Op(t)(parseInt(e,10)),r=EE[n];return void 0!==r?r:"other"}(t,xp);n=e.cases.indexOf(r),-1===n&&"other"!==r&&(n=e.cases.indexOf("other"));break}case 0:n=e.cases.indexOf("other")}return-1===n?null:n}(t,r);if(da(t,n)!==i&&(Kp(e,t,n),n[t.currentCaseLViewIndex]=null===i?null:~i,null!==i)){const a=n[t.anchorIdx];a&&Gp(e,t.create[i],n,a)}}function Kp(e,t,n){let r=da(t,n);if(null!==r){const i=t.remove[r];for(let s=0;s<i.length;s++){const a=i[s];if(a>0){const u=l(a,n);null!==u&&Df(n[11],u)}else Kp(e,po(e,~a),n)}}}function VE(){const e=[];let n,r,t=-1;function s(u,c){t=0;const _=da(u,c);r=null!==_?u.remove[_]:We}function a(){if(t<r.length){const u=r[t++];return u>0?n[u]:(e.push(t,r),s(n[1].data[~u],n),a())}return 0===e.length?null:(r=e.pop(),t=e.pop(),a())}return function(u,c){for(n=c;e.length;)e.pop();return s(u.value,c),a}}const fa=/\ufffd(\d+):?\d*\ufffd/gi,kE=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,BE=/\ufffd(\d+)\ufffd/,Qp=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,jE=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,HE=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,UE=/\uE500/g;function Zp(e,t,n,r,i,s,a){const u=ps(e,r,1,null);let c=u<<Xt.SHIFT,_=Ti();t===_&&(_=null),null===_&&(c|=Xt.APPEND_EAGERLY),a&&(c|=Xt.COMMENT,function(e){void 0===il&&(il=e())}(VE)),i.push(c,null===s?"":s);const E=Il(e,u,a?32:1,null===s?"":s,null);Bp(n,E);const I=E.index;return Pn(E,!1),null!==_&&t!==_&&function(e,t){let n=e.insertBeforeIndex;null===n?(_f(Vp,kp),n=e.insertBeforeIndex=[null,t]):(function(e,t,n){e!=t&&pt(n,e,t,"==")}(Array.isArray(n),!0,"Expecting array here"),n.push(t))}(_,I),E}function zE(e,t,n,r,i,s,a){const u=a.match(fa),c=Zp(e,t,n,s,r,u?null:a,!1);u&&Ns(i,a,c.index,null,0,null)}function Ns(e,t,n,r,i,s){const a=e.length,u=a+1;e.push(null,null);const c=a+2,_=t.split(fa);let E=0;for(let I=0;I<_.length;I++){const F=_[I];if(1&I){const j=i+parseInt(F,10);e.push(-1-j),E|=Yp(j)}else""!==F&&e.push(F)}return e.push(n<<2|(r?1:0)),r&&e.push(r,s),e[a]=E,e[u]=e.length-c,E}function KE(e){let t=0;for(let n=0;n<e.length;n++){const r=e[n];"number"==typeof r&&r<0&&t++}return t}function Yp(e){return 1<<Math.min(e,31)}function Xp(e){let t,s,n="",r=0,i=!1;for(;null!==(t=jE.exec(e));)i?t[0]===`\ufffd/*${s}\ufffd`&&(r=t.index,i=!1):(n+=e.substring(r,t.index+t[0].length),s=t[1],i=!0);return n+=e.substr(r),n}function Jp(e,t,n,r,i,s){let a=0;const u={type:i.type,currentCaseLViewIndex:ps(e,t,1,null),anchorIdx:s,cases:[],create:[],remove:[],update:[]};(function(e,t,n){e.push(Yp(t.mainBinding),2,-1-t.mainBinding,n<<2|2)})(n,i,s),function(e,t,n){const r=e.data[t];null===r?e.data[t]=n:r.value=n}(e,s,u);const c=i.values;for(let _=0;_<c.length;_++){const E=c[_],I=[];for(let F=0;F<E.length;F++){const j=E[F];if("string"!=typeof j){const Y=I.push(j)-1;E[F]=`\x3c!--\ufffd${Y}\ufffd--\x3e`}}a=YE(e,u,t,n,r,i.cases[_],E.join(""),I)|a}a&&function(e,t,n){e.push(t,1,n<<2|3)}(n,a,s)}function ZE(e){const t=[],n=[];let r=1,i=0;const s=Qu(e=e.replace(Qp,function(a,u,c){return r="select"===c?0:1,i=parseInt(u.substr(1),10),""}));for(let a=0;a<s.length;){let u=s[a++].trim();1===r&&(u=u.replace(/\s*(?:=)?(\w+)\s*/,"$1")),u.length&&t.push(u);const c=Qu(s[a++]);t.length>n.length&&n.push(c)}return{type:r,mainBinding:i,cases:t,values:n}}function Qu(e){if(!e)return[];let t=0;const n=[],r=[],i=/[{}]/g;let s;for(i.lastIndex=0;s=i.exec(e);){const u=s.index;if("}"==s[0]){if(n.pop(),0==n.length){const c=e.substring(t,u);Qp.test(c)?r.push(ZE(c)):r.push(c),t=u+1}}else{if(0==n.length){const c=e.substring(t,u);r.push(c),t=u+1}n.push("{")}}const a=e.substring(t);return r.push(a),r}function YE(e,t,n,r,i,s,a,u){const c=[],_=[],E=[];t.cases.push(s),t.create.push(c),t.remove.push(_),t.update.push(E);const F=Fd(f()).getInertBodyElement(a),j=Ya(F)||F;return j?eg(e,t,n,r,c,_,E,j,i,u,0):0}function eg(e,t,n,r,i,s,a,u,c,_,E){let I=0,F=u.firstChild;for(;F;){const j=ps(e,n,1,null);switch(F.nodeType){case Node.ELEMENT_NODE:const Y=F,ce=Y.tagName.toLowerCase();if(qa.hasOwnProperty(ce)){Zu(i,ua,ce,c,j),e.data[j]=ce;const ke=Y.attributes;for(let ut=0;ut<ke.length;ut++){const wt=ke.item(ut),hr=wt.name.toLowerCase();wt.value.match(fa)?xd.hasOwnProperty(hr)&&Ns(a,wt.value,j,wt.name,0,Qa[hr]?Ys:Za[hr]?Nd:null):tC(i,j,wt)}I=eg(e,t,n,r,i,s,a,F,j,_,E+1)|I,tg(s,j,E)}break;case Node.TEXT_NODE:const Ee=F.textContent||"",we=Ee.match(fa);Zu(i,null,we?"":Ee,c,j),tg(s,j,E),we&&(I=Ns(a,Ee,j,null,0,null)|I);break;case Node.COMMENT_NODE:const ne=BE.exec(F.textContent||"");if(ne){const ut=_[parseInt(ne[1],10)];Zu(i,ca,"",c,j),Jp(e,n,r,c,ut,j),XE(s,j,E)}}F=F.nextSibling}return I}function tg(e,t,n){0===n&&e.push(t)}function XE(e,t,n){0===n&&(e.push(~t),e.push(t))}function Zu(e,t,n,r,i){null!==t&&e.push(t),e.push(n,i,function(e,t,n){return 0|t<<17|n<<1}(0,r,i))}function tC(e,t,n){e.push(t<<1|1,n.name,n.value)}const nC=/\[(\ufffd.+?\ufffd?)\]/,rC=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,iC=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,sC=/{([A-Z0-9_]+)}/g,oC=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,aC=/\/\*/,lC=/\d+\:(\d+)/;function Yu(e,t,n=-1){const r=Ge(),i=re(),s=20+e,a=Se(r.consts,t),u=Ti();r.firstCreatePass&&function(e,t,n,r,i,s){const a=Ti(),u=[],c=[],_=[[]];i=function(e,t){if(function(e){return-1===e}(t))return Xp(e);{const n=e.indexOf(`:${t}\ufffd`)+2+t.toString().length,r=e.search(new RegExp(`\ufffd\\/\\*\\d+:${t}\ufffd`));return Xp(e.substring(n,r))}}(i,s);const E=function(e){return e.replace(UE," ")}(i).split(HE);for(let I=0;I<E.length;I++){let F=E[I];if(0==(1&I)){const j=Qu(F);for(let Y=0;Y<j.length;Y++){let ce=j[Y];if(0==(1&Y)){const Ee=ce;""!==Ee&&zE(e,a,_[0],u,c,n,Ee)}else{const Ee=ce;if("object"!=typeof Ee)throw new Error(`Unable to parse ICU expression in "${i}" message.`);Jp(e,n,c,t,Ee,Zp(e,a,_[0],n,u,"",!0).index)}}}else{const j=47===F.charCodeAt(0),ce=(F.charCodeAt(j?1:0),20+Number.parseInt(F.substring(j?2:1)));if(j)_.shift(),Pn(Ti(),!1);else{const Ee=FE(e,_[0],ce);_.unshift([]),Pn(Ee,!0)}}}e.data[r]={create:u,update:c}}(r,null===u?0:u.index,i,s,a,n);const c=r.data[s],E=ff(r,u===i[6]?null:u,i);(function(e,t,n,r){const i=e[11];for(let s=0;s<t.length;s++){const a=t[s++],u=t[s],c=(a&Xt.COMMENT)===Xt.COMMENT,_=(a&Xt.APPEND_EAGERLY)===Xt.APPEND_EAGERLY,E=a>>>Xt.SHIFT;let I=e[E];null===I&&(I=e[E]=c?i.createComment(u):ll(i,u)),_&&null!==n&&Gi(i,n,I,r,!1)}})(i,c.create,E,u&&8&u.type?i[u.index]:null),Bs(!0)}function Xu(){Bs(!1)}function rg(e,t,n){Yu(e,t,n),Xu()}function ig(e,t){const n=Ge();!function(e,t,n){const i=Mt().index,s=[];if(e.firstCreatePass&&null===e.data[t]){for(let a=0;a<n.length;a+=2){const u=n[a],c=n[a+1];if(""!==c){if(kE.test(c))throw new Error(`ICU expressions are not supported in attributes. Message: "${c}".`);Ns(s,c,i,u,KE(s),null)}}e.data[t]=s}}(n,e+20,Se(n.consts,t))}function Ju(e){return function(e){e&&(go|=1<<Math.min(mo,31)),mo++}(xn(re(),pn(),e)),Ju}function sg(e){!function(e,t,n){if(mo>0){const r=e.data[n];zp(e,t,Array.isArray(r)?r:r.update,At()-mo-1,go)}go=0,mo=0}(Ge(),re(),e+20)}function og(e,t={}){return function(e,t={}){let n=e;if(nC.test(e)){const r={},i=[0];n=n.replace(rC,(s,a,u)=>{const c=a||u,_=r[c]||[];if(_.length||(c.split("|").forEach(ce=>{const Ee=ce.match(lC),we=Ee?parseInt(Ee[1],10):0,ne=aC.test(ce);_.push([we,ne,ce])}),r[c]=_),!_.length)throw new Error(`i18n postprocess: unmatched placeholder - ${c}`);const E=i[i.length-1];let I=0;for(let ce=0;ce<_.length;ce++)if(_[ce][0]===E){I=ce;break}const[F,j,Y]=_[I];return j?i.pop():E!==F&&i.push(F),_.splice(I,1),Y})}return Object.keys(t).length&&(n=n.replace(iC,(r,i,s,a,u,c)=>t.hasOwnProperty(s)?`${i}${t[s]}${c}`:r),n=n.replace(sC,(r,i)=>t.hasOwnProperty(i)?t[i]:r),n=n.replace(oC,(r,i)=>{if(t.hasOwnProperty(i)){const s=t[i];if(!s.length)throw new Error(`i18n postprocess: unmatched ICU - ${r} with key: ${i}`);return s.shift()}return r})),n}(e,t)}function ec(e,t,n,r,i){if(e=_e(e),Array.isArray(e))for(let s=0;s<e.length;s++)ec(e[s],t,n,r,i);else{const s=Ge(),a=re();let u=ys(e)?e:_e(e.provide),c=fh(e);const _=Mt(),E=1048575&_.providerIndexes,I=_.directiveStart,F=_.providerIndexes>>20;if(ys(e)||!e.multi){const j=new js(c,i,co),Y=nc(u,t,i?E:E+F,I);-1===Y?(Lo(Us(_,a),s,u),tc(s,e,t.length),t.push(u),_.directiveStart++,_.directiveEnd++,i&&(_.providerIndexes+=1048576),n.push(j),a.push(j)):(n[Y]=j,a[Y]=j)}else{const j=nc(u,t,E+F,I),Y=nc(u,t,E,E+F),ce=j>=0&&n[j],Ee=Y>=0&&n[Y];if(i&&!Ee||!i&&!ce){Lo(Us(_,a),s,u);const we=function(e,t,n,r,i){const s=new js(e,n,co);return s.multi=[],s.index=t,s.componentProviders=0,ag(s,i,r&&!n),s}(i?fC:dC,n.length,i,r,c);!i&&Ee&&(n[Y].providerFactory=we),tc(s,e,t.length,0),t.push(u),_.directiveStart++,_.directiveEnd++,i&&(_.providerIndexes+=1048576),n.push(we),a.push(we)}else tc(s,e,j>-1?j:Y,ag(n[i?Y:j],c,!i&&r));!i&&r&&Ee&&n[Y].componentProviders++}}}function tc(e,t,n,r){const i=ys(t),s=function(e){return!!e.useClass}(t);if(i||s){const c=(s?_e(t.useClass):t).prototype.ngOnDestroy;if(c){const _=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){const E=_.indexOf(n);-1===E?_.push(n,[r,c]):_[E+1].push(r,c)}else _.push(n,c)}}}function ag(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function nc(e,t,n,r){for(let i=n;i<r;i++)if(t[i]===e)return i;return-1}function dC(e,t,n,r){return rc(this.multi,[])}function fC(e,t,n,r){const i=this.multi;let s;if(this.providerFactory){const a=this.providerFactory.componentProviders,u=$s(n,n[1],this.providerFactory.index,r);s=u.slice(0,a),rc(i,s);for(let c=a;c<u.length;c++)s.push(u[c])}else s=[],rc(i,s);return s}function rc(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function lg(e,t=[]){return n=>{n.providersResolver=(r,i)=>function(e,t,n){const r=Ge();if(r.firstCreatePass){const i=_n(e);ec(n,r.data,r.blueprint,i,!0),ec(t,r.data,r.blueprint,i,!1)}}(r,i?i(e):e,t)}}class ug{}class ha{}class gC{resolveComponentFactory(t){throw function(e){const t=Error(`No component factory found for ${H(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let _o=(()=>{class e{}return e.NULL=new gC,e})();function mC(){return Ps(Mt(),re())}function Ps(e,t){return new vo(d(e,t))}let vo=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=mC,e})();function yC(e){return e instanceof vo?e.nativeElement:e}class dg{}let _C=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function(){const e=re(),n=T(Mt().index,e);return function(e){return e[11]}(ln(n)?n:e)}(),e})(),fg=(()=>{class e{}return e.\u0275prov=Me({token:e,providedIn:"root",factory:()=>null}),e})();class hg{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const pg=new hg("13.1.1"),pa={};function ga(e,t,n,r,i=!1){for(;null!==n;){const s=t[n.index];if(null!==s&&r.push(at(s)),fn(s))for(let u=10;u<s.length;u++){const c=s[u],_=c[1].firstChild;null!==_&&ga(c[1],c,_,r)}const a=n.type;if(8&a)ga(e,t,n.child,r);else if(32&a){const u=sl(n,t);let c;for(;c=u();)r.push(c)}else if(16&a){const u=vf(t,n);if(Array.isArray(u))r.push(...u);else{const c=no(t[16]);ga(c[1],c,u,r,!0)}}n=i?n.projectionNext:n.next}return r}class Os{constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,n=t[1];return ga(n,t,n.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(fn(t)){const n=t[8],r=n?n.indexOf(this):-1;r>-1&&(cl(t,r),Bo(n,r))}this._attachedToViewContainer=!1}cf(this._lView[1],this._lView)}onDestroy(t){Wf(this._lView[1],this._lView,null,t)}markForCheck(){Ol(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){xl(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){ze(!0);try{xl(e,t,n)}finally{ze(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,ro(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class EC extends Os{constructor(t){super(t),this._view=t}detectChanges(){th(this._view)}checkNoChanges(){!function(e){ze(!0);try{th(e)}finally{ze(!1)}}(this._view)}get context(){return null}}class gg extends _o{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Ct(t);return new ma(n,this.ngModule)}}function mg(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const bC=new Yt("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Xd});class ma extends ha{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=t.selectors.map(lv).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return mg(this.componentDef.inputs)}get outputs(){return mg(this.componentDef.outputs)}create(t,n,r,i){const s=(i=i||this.ngModule)?function(e,t){return{get:(n,r,i)=>{const s=e.get(n,pa,i);return s!==pa||r===pa?s:t.get(n,r,i)}}}(t,i.injector):t,a=s.get(dg,Ae),u=s.get(fg,null),c=a.createRenderer(null,this.componentDef),_=this.componentDef.selectors[0][0]||"div",E=r?zf(c,r,this.componentDef.encapsulation):ul(a.createRenderer(null,this.componentDef),_,function(e){const t=e.toLowerCase();return"svg"===t?Dt:"math"===t?Qt:null}(_)),I=this.componentDef.onPush?576:528,F=wh(),j=Jo(0,null,null,1,0,null,null,null,null,null),Y=io(null,j,F,I,null,null,a,c,u,s);let ce,Ee;Io(Y);try{const we=Ch(E,this.componentDef,Y,a,c);if(E)if(r)Po(c,E,["ng-version",pg.full]);else{const{attrs:ne,classes:ke}=function(e){const t=[],n=[];let r=1,i=2;for(;r<e.length;){let s=e[r];if("string"==typeof s)2===i?""!==s&&t.push(s,e[++r]):8===i&&n.push(s);else{if(!Br(i))break;i=s}r++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);ne&&Po(c,E,ne),ke&&ke.length>0&&gl(c,E,ke.join(" "))}if(Ee=M(j,20),void 0!==n){const ne=Ee.projection=[];for(let ke=0;ke<this.ngContentSelectors.length;ke++){const ut=n[ke];ne.push(null!=ut?Array.from(ut):null)}}ce=bh(we,this.componentDef,Y,F,[Mh]),so(j,Y,null)}finally{So()}return new yg(this.componentType,ce,Ps(Ee,Y),Y,Ee)}}class yg extends ug{constructor(t,n,r,i,s){super(),this.location=r,this._rootLView=i,this._tNode=s,this.instance=n,this.hostView=this.changeDetectorRef=new EC(i),this.componentType=t}get injector(){return new ts(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function _g(e,t,n,r){return kt(()=>{const i=e;null!==t&&(i.hasOwnProperty("decorators")&&void 0!==i.decorators?i.decorators.push(...t):i.decorators=t),null!==n&&(i.ctorParameters=n),null!==r&&(i.propDecorators=i.hasOwnProperty("propDecorators")&&void 0!==i.propDecorators?Object.assign(Object.assign({},i.propDecorators),r):r)})}class Rs{}class vg{}const xs=new Map;function Eg(e){const t=new Set;!function n(r){const i=yn(r,!0),s=i.id;if(null!==s){(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${H(t)} vs ${H(t.name)}`)})(s,xs.get(s),r),xs.set(s,r)}const a=ri(i.imports);for(const u of a)t.has(u)||(t.add(u),n(u))}(e)}function Cg(e){return xs.get(e)||qr[e]}function AC(e,t){return new ic(e,null!=t?t:null)}class ic extends Rs{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new gg(this);const r=yn(t);this._bootstrapComponents=ri(r.bootstrap),this._r3Injector=dh(t,n,[{provide:Rs,useValue:this},{provide:_o,useValue:this.componentFactoryResolver}],H(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=dr.THROW_IF_NOT_FOUND,r=Be.Default){return t===dr||t===Rs||t===na?this:this._r3Injector.get(t,n,r)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class ya extends vg{constructor(t){super(),this.moduleType=t,null!==yn(t)&&Eg(t)}create(t){return new ic(this.moduleType,t)}}function bg(e,t,n){const r=Ke()+e,i=re();return i[r]===tt?oi(i,r,n?t.call(n):t()):lo(i,r)}function wg(e,t,n,r){return Og(re(),Ke(),e,t,n,r)}function Mg(e,t,n,r,i){return Rg(re(),Ke(),e,t,n,r,i)}function Ag(e,t,n,r,i,s){return xg(re(),Ke(),e,t,n,r,i,s)}function Ig(e,t,n,r,i,s,a){return Lg(re(),Ke(),e,t,n,r,i,s,a)}function Sg(e,t,n,r,i,s,a,u){const c=Ke()+e,_=re(),E=Nr(_,c,n,r,i,s);return xn(_,c+4,a)||E?oi(_,c+5,u?t.call(u,n,r,i,s,a):t(n,r,i,s,a)):lo(_,c+5)}function Tg(e,t,n,r,i,s,a,u,c){const _=Ke()+e,E=re(),I=Nr(E,_,n,r,i,s);return zi(E,_+4,a,u)||I?oi(E,_+6,c?t.call(c,n,r,i,s,a,u):t(n,r,i,s,a,u)):lo(E,_+6)}function Fg(e,t,n,r,i,s,a,u,c,_){const E=Ke()+e,I=re();let F=Nr(I,E,n,r,i,s);return ia(I,E+4,a,u,c)||F?oi(I,E+7,_?t.call(_,n,r,i,s,a,u,c):t(n,r,i,s,a,u,c)):lo(I,E+7)}function Ng(e,t,n,r,i,s,a,u,c,_,E){const I=Ke()+e,F=re(),j=Nr(F,I,n,r,i,s);return Nr(F,I+4,a,u,c,_)||j?oi(F,I+8,E?t.call(E,n,r,i,s,a,u,c,_):t(n,r,i,s,a,u,c,_)):lo(F,I+8)}function Pg(e,t,n,r){return Vg(re(),Ke(),e,t,n,r)}function Do(e,t){const n=e[t];return n===tt?void 0:n}function Og(e,t,n,r,i,s){const a=t+n;return xn(e,a,i)?oi(e,a+1,s?r.call(s,i):r(i)):Do(e,a+1)}function Rg(e,t,n,r,i,s,a){const u=t+n;return zi(e,u,i,s)?oi(e,u+2,a?r.call(a,i,s):r(i,s)):Do(e,u+2)}function xg(e,t,n,r,i,s,a,u){const c=t+n;return ia(e,c,i,s,a)?oi(e,c+3,u?r.call(u,i,s,a):r(i,s,a)):Do(e,c+3)}function Lg(e,t,n,r,i,s,a,u,c){const _=t+n;return Nr(e,_,i,s,a,u)?oi(e,_+4,c?r.call(c,i,s,a,u):r(i,s,a,u)):Do(e,_+4)}function Vg(e,t,n,r,i,s){let a=t+n,u=!1;for(let c=0;c<i.length;c++)xn(e,a++,i[c])&&(u=!0);return u?oi(e,a,r.apply(s,i)):Do(e,a)}function kg(e,t){const n=Ge();let r;const i=e+20;n.firstCreatePass?(r=function(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(i,r.onDestroy)):r=n.data[i];const s=r.factory||(r.factory=C(r.type)),a=mn(co);try{const u=Ro(!1),c=s();return Ro(u),Fh(n,re(),i,c),c}finally{mn(a)}}function Bg(e,t,n){const r=e+20,i=re(),s=S(i,r);return Eo(i,r)?Og(i,Ke(),t,s.transform,n,s):s.transform(n)}function jg(e,t,n,r){const i=e+20,s=re(),a=S(s,i);return Eo(s,i)?Rg(s,Ke(),t,a.transform,n,r,a):a.transform(n,r)}function Hg(e,t,n,r,i){const s=e+20,a=re(),u=S(a,s);return Eo(a,s)?xg(a,Ke(),t,u.transform,n,r,i,u):u.transform(n,r,i)}function Ug(e,t,n,r,i,s){const a=e+20,u=re(),c=S(u,a);return Eo(u,a)?Lg(u,Ke(),t,c.transform,n,r,i,s,c):c.transform(n,r,i,s)}function $g(e,t,n){const r=e+20,i=re(),s=S(i,r);return Eo(i,r)?Vg(i,Ke(),t,s.transform,n,s):s.transform.apply(s,n)}function Eo(e,t){return e[1].data[t].pure}function sc(e){return t=>{setTimeout(e,void 0,t)}}const li=class extends ve{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){var i,s,a;let u=t,c=n||(()=>null),_=r;if(t&&"object"==typeof t){const I=t;u=null===(i=I.next)||void 0===i?void 0:i.bind(I),c=null===(s=I.error)||void 0===s?void 0:s.bind(I),_=null===(a=I.complete)||void 0===a?void 0:a.bind(I)}this.__isAsync&&(c=sc(c),u&&(u=sc(u)),_&&(_=sc(_)));const E=super.subscribe({next:u,error:c,complete:_});return t instanceof N.w0&&t.add(E),E}};function TC(){return this._results[_s()]()}class _a{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=_s(),r=_a.prototype;r[n]||(r[n]=TC)}get changes(){return this._changes||(this._changes=new li)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const r=this;r.dirty=!1;const i=Tr(t);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let i=e[r],s=t[r];if(n&&(i=n(i),s=n(s)),s!==i)return!1}return!0}(r._results,i,n))&&(r._results=i,r.length=i.length,r.last=i[this.length-1],r.first=i[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let Co=(()=>{class e{}return e.__NG_ELEMENT_ID__=PC,e})();const FC=Co,NC=class extends FC{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t){const n=this._declarationTContainer.tViews,r=io(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(r[19]=s.createEmbeddedView(n)),so(n,r,t),new Os(r)}};function PC(){return va(Mt(),re())}function va(e,t){return 4&e.type?new NC(t,e,Ps(e,t)):null}let Da=(()=>{class e{}return e.__NG_ELEMENT_ID__=OC,e})();function OC(){return Wg(Mt(),re())}const RC=Da,Gg=class extends RC{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Ps(this._hostTNode,this._hostLView)}get injector(){return new ts(this._hostTNode,this._hostLView)}get parentInjector(){const t=xo(this._hostTNode,this._hostLView);if(rd(t)){const n=es(t,this._hostLView),r=Ji(t);return new ts(n[1].data[r+8],n)}return new ts(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=zg(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,r){const i=t.createEmbeddedView(n||{});return this.insert(i,r),i}createComponent(t,n,r,i,s){const a=t&&!zs(t);let u;if(a)u=n;else{const I=n||{};u=I.index,r=I.injector,i=I.projectableNodes,s=I.ngModuleRef}const c=a?t:new ma(Ct(t)),_=r||this.parentInjector;if(!s&&null==c.ngModule&&_){const I=_.get(Rs,null);I&&(s=I)}const E=c.create(_,i,void 0,s);return this.insert(E.hostView,u),E}insert(t,n){const r=t._lView,i=r[1];if(fn(r[3])){const E=this.indexOf(t);if(-1!==E)this.detach(E);else{const I=r[3],F=new Gg(I,I[6],I[3]);F.detach(F.indexOf(t))}}const s=this._adjustIndex(n),a=this._lContainer;!function(e,t,n,r){const i=10+r,s=n.length;r>0&&(n[i-1][4]=t),r<s-10?(t[4]=n[i],gd(n,10+r,t)):(n.push(t),t[4]=null),t[3]=n;const a=t[17];null!==a&&n!==a&&function(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(a,t);const u=t[19];null!==u&&u.insertView(e),t[2]|=128}(i,r,a,s);const u=hl(s,a),c=r[11],_=Ko(c,a[7]);return null!==_&&function(e,t,n,r,i,s){r[0]=i,r[6]=t,ro(e,r,n,1,i,s)}(i,a[6],c,r,_,u),t.attachToViewContainerRef(),gd(oc(a),s,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=zg(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=cl(this._lContainer,n);r&&(Bo(oc(this._lContainer),n),cf(r[1],r))}detach(t){const n=this._adjustIndex(t,-1),r=cl(this._lContainer,n);return r&&null!=Bo(oc(this._lContainer),n)?new Os(r):null}_adjustIndex(t,n=0){return null==t?this.length+n:t}};function zg(e){return e[8]}function oc(e){return e[8]||(e[8]=[])}function Wg(e,t){let n;const r=t[e.index];if(fn(r))n=r;else{let i;if(8&e.type)i=at(r);else{const s=t[11];i=s.createComment("");const a=d(e,t);Gi(s,Ko(s,a),i,function(e,t){return $(e)?e.nextSibling(t):t.nextSibling}(s,a),!1)}t[e.index]=n=eh(r,t,i,e),ea(t,n)}return new Gg(n,e,t)}class ac{constructor(t){this.queryList=t,this.matches=null}clone(){return new ac(this.queryList)}setDirty(){this.queryList.setDirty()}}class lc{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const r=null!==t.contentQueries?t.contentQueries[0]:n.length,i=[];for(let s=0;s<r;s++){const a=n.getByIndex(s);i.push(this.queries[a.indexInDeclarationView].clone())}return new lc(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)null!==tm(t,n).matches&&this.queries[n].setDirty()}}class Kg{constructor(t,n,r=null){this.predicate=t,this.flags=n,this.read=r}}class uc{constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){const i=null!==n?n.length:0,s=this.getByIndex(r).embeddedTView(t,i);s&&(s.indexInDeclarationView=r,null!==n?n.push(s):n=[s])}return null!==n?new uc(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class cc{constructor(t,n=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new cc(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const n=this._declarationNodeIndex;let r=t.parent;for(;null!==r&&8&r.type&&r.index!==n;)r=r.parent;return n===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){const r=this.metadata.predicate;if(Array.isArray(r))for(let i=0;i<r.length;i++){const s=r[i];this.matchTNodeWithReadOption(t,n,VC(n,s)),this.matchTNodeWithReadOption(t,n,Vo(n,t,s,!1,!1))}else r===Co?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Vo(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(null!==r){const i=this.metadata.read;if(null!==i)if(i===vo||i===Da||i===Co&&4&n.type)this.addMatch(n.index,-2);else{const s=Vo(n,t,i,!1,!1);null!==s&&this.addMatch(n.index,s)}else this.addMatch(n.index,r)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function VC(e,t){const n=e.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1];return null}function BC(e,t,n,r){return-1===n?function(e,t){return 11&e.type?Ps(e,t):4&e.type?va(e,t):null}(t,e):-2===n?function(e,t,n){return n===vo?Ps(t,e):n===Co?va(t,e):n===Da?Wg(t,e):void 0}(e,t,r):$s(e,e[1],n,t)}function qg(e,t,n,r){const i=t[19].queries[r];if(null===i.matches){const s=e.data,a=n.matches,u=[];for(let c=0;c<a.length;c+=2){const _=a[c];u.push(_<0?null:BC(t,s[_],a[c+1],n.metadata.read))}i.matches=u}return i.matches}function dc(e,t,n,r){const i=e.queries.getByIndex(n),s=i.matches;if(null!==s){const a=qg(e,t,i,n);for(let u=0;u<s.length;u+=2){const c=s[u];if(c>0)r.push(a[u/2]);else{const _=s[u+1],E=t[-c];for(let I=10;I<E.length;I++){const F=E[I];F[17]===F[3]&&dc(F[1],F,_,r)}if(null!==E[9]){const I=E[9];for(let F=0;F<I.length;F++){const j=I[F];dc(j[1],j,_,r)}}}}}return r}function Qg(e){const t=re(),n=Ge(),r=ei();ji(r+1);const i=tm(n,r);if(e.dirty&&U(t)===(2==(2&i.metadata.flags))){if(null===i.matches)e.reset([]);else{const s=i.crossesNgTemplate?dc(n,t,r,[]):qg(n,t,i,r);e.reset(s,yC),e.notifyOnChanges()}return!0}return!1}function Zg(e,t,n){const r=Ge();r.firstCreatePass&&(em(r,new Kg(e,t,n),-1),2==(2&t)&&(r.staticViewQueries=!0)),Jg(r,re(),t)}function Yg(e,t,n,r){const i=Ge();if(i.firstCreatePass){const s=Mt();em(i,new Kg(t,n,r),s.index),function(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(i,e),2==(2&n)&&(i.staticContentQueries=!0)}Jg(i,re(),n)}function Xg(){return e=re(),t=ei(),e[19].queries[t].queryList;var e,t}function Jg(e,t,n){const r=new _a(4==(4&n));Wf(e,t,r,r.destroy),null===t[19]&&(t[19]=new lc),t[19].queries.push(new ac(r))}function em(e,t,n){null===e.queries&&(e.queries=new uc),e.queries.track(new cc(t,n))}function tm(e,t){return e.queries.getByIndex(t)}function nm(e,t){return va(e,t)}const zn=(()=>({\u0275\u0275attribute:Kl,\u0275\u0275attributeInterpolate1:ql,\u0275\u0275attributeInterpolate2:Ql,\u0275\u0275attributeInterpolate3:Zl,\u0275\u0275attributeInterpolate4:Yl,\u0275\u0275attributeInterpolate5:Xl,\u0275\u0275attributeInterpolate6:Jl,\u0275\u0275attributeInterpolate7:eu,\u0275\u0275attributeInterpolate8:tu,\u0275\u0275attributeInterpolateV:nu,\u0275\u0275defineComponent:ir,\u0275\u0275defineDirective:Dr,\u0275\u0275defineInjectable:Me,\u0275\u0275defineInjector:qn,\u0275\u0275defineNgModule:sr,\u0275\u0275definePipe:Rr,\u0275\u0275directiveInject:co,\u0275\u0275getInheritedFactory:fd,\u0275\u0275inject:Mn,\u0275\u0275injectAttribute:La,\u0275\u0275invalidFactory:$h,\u0275\u0275invalidFactoryDep:$a,\u0275\u0275templateRefExtractor:nm,\u0275\u0275NgOnChangesFeature:w,\u0275\u0275ProvidersFeature:lg,\u0275\u0275CopyDefinitionFeature:Ih,\u0275\u0275InheritDefinitionFeature:Gl,\u0275\u0275nextContext:Yh,\u0275\u0275namespaceHTML:Jc,\u0275\u0275namespaceMathML:Xc,\u0275\u0275namespaceSVG:Yc,\u0275\u0275enableBindings:hn,\u0275\u0275disableBindings:mi,\u0275\u0275elementStart:lu,\u0275\u0275elementEnd:uu,\u0275\u0275element:Gh,\u0275\u0275elementContainerStart:cu,\u0275\u0275elementContainerEnd:du,\u0275\u0275elementContainer:zh,\u0275\u0275pureFunction0:bg,\u0275\u0275pureFunction1:wg,\u0275\u0275pureFunction2:Mg,\u0275\u0275pureFunction3:Ag,\u0275\u0275pureFunction4:Ig,\u0275\u0275pureFunction5:Sg,\u0275\u0275pureFunction6:Tg,\u0275\u0275pureFunction7:Fg,\u0275\u0275pureFunction8:Ng,\u0275\u0275pureFunctionV:Pg,\u0275\u0275getCurrentView:Wh,\u0275\u0275restoreView:Ir,\u0275\u0275listener:hu,\u0275\u0275projection:Jh,\u0275\u0275syntheticHostProperty:Ku,\u0275\u0275syntheticHostListener:pu,\u0275\u0275pipeBind1:Bg,\u0275\u0275pipeBind2:jg,\u0275\u0275pipeBind3:Hg,\u0275\u0275pipeBind4:Ug,\u0275\u0275pipeBindV:$g,\u0275\u0275projectionDef:Xh,\u0275\u0275hostProperty:Wu,\u0275\u0275property:ou,\u0275\u0275propertyInterpolate:mu,\u0275\u0275propertyInterpolate1:oa,\u0275\u0275propertyInterpolate2:yu,\u0275\u0275propertyInterpolate3:_u,\u0275\u0275propertyInterpolate4:vu,\u0275\u0275propertyInterpolate5:Du,\u0275\u0275propertyInterpolate6:Eu,\u0275\u0275propertyInterpolate7:Cu,\u0275\u0275propertyInterpolate8:bu,\u0275\u0275propertyInterpolateV:wu,\u0275\u0275pipe:kg,\u0275\u0275queryRefresh:Qg,\u0275\u0275viewQuery:Zg,\u0275\u0275loadQuery:Xg,\u0275\u0275contentQuery:Yg,\u0275\u0275reference:Nh,\u0275\u0275classMap:ap,\u0275\u0275classMapInterpolate1:gp,\u0275\u0275classMapInterpolate2:mp,\u0275\u0275classMapInterpolate3:yp,\u0275\u0275classMapInterpolate4:_p,\u0275\u0275classMapInterpolate5:vp,\u0275\u0275classMapInterpolate6:Dp,\u0275\u0275classMapInterpolate7:Ep,\u0275\u0275classMapInterpolate8:Cp,\u0275\u0275classMapInterpolateV:bp,\u0275\u0275styleMap:Hr,\u0275\u0275styleMapInterpolate1:wp,\u0275\u0275styleMapInterpolate2:Mp,\u0275\u0275styleMapInterpolate3:Ap,\u0275\u0275styleMapInterpolate4:Ip,\u0275\u0275styleMapInterpolate5:Sp,\u0275\u0275styleMapInterpolate6:Tp,\u0275\u0275styleMapInterpolate7:Fp,\u0275\u0275styleMapInterpolate8:Np,\u0275\u0275styleMapInterpolateV:Pp,\u0275\u0275styleProp:Mu,\u0275\u0275stylePropInterpolate1:Vu,\u0275\u0275stylePropInterpolate2:ku,\u0275\u0275stylePropInterpolate3:Bu,\u0275\u0275stylePropInterpolate4:ju,\u0275\u0275stylePropInterpolate5:Hu,\u0275\u0275stylePropInterpolate6:Uu,\u0275\u0275stylePropInterpolate7:$u,\u0275\u0275stylePropInterpolate8:Gu,\u0275\u0275stylePropInterpolateV:zu,\u0275\u0275classProp:Au,\u0275\u0275advance:Sf,\u0275\u0275template:Th,\u0275\u0275text:pp,\u0275\u0275textInterpolate:Su,\u0275\u0275textInterpolate1:la,\u0275\u0275textInterpolate2:Tu,\u0275\u0275textInterpolate3:Fu,\u0275\u0275textInterpolate4:Nu,\u0275\u0275textInterpolate5:Pu,\u0275\u0275textInterpolate6:Ou,\u0275\u0275textInterpolate7:Ru,\u0275\u0275textInterpolate8:xu,\u0275\u0275textInterpolateV:Lu,\u0275\u0275i18n:rg,\u0275\u0275i18nAttributes:ig,\u0275\u0275i18nExp:Ju,\u0275\u0275i18nStart:Yu,\u0275\u0275i18nEnd:Xu,\u0275\u0275i18nApply:sg,\u0275\u0275i18nPostprocess:og,\u0275\u0275resolveWindow:Jd,\u0275\u0275resolveDocument:ef,\u0275\u0275resolveBody:tf,\u0275\u0275setComponentScope:jn,\u0275\u0275setNgModuleScope:Yn,\u0275\u0275sanitizeHtml:kd,\u0275\u0275sanitizeStyle:Bd,\u0275\u0275sanitizeResourceUrl:Ja,\u0275\u0275sanitizeScript:jd,\u0275\u0275sanitizeUrl:Xa,\u0275\u0275sanitizeUrlOrResourceUrl:$d,\u0275\u0275trustConstantHtml:Hd,\u0275\u0275trustConstantResourceUrl:Ud,forwardRef:oe,resolveForwardRef:_e}))();let Ls=null;function zC(){Ls=null}const bo=[];let fc=!1;function rm(){if(!fc){fc=!0;try{for(let e=bo.length-1;e>=0;e--){const{moduleType:t,ngModule:n}=bo[e];n.declarations&&n.declarations.every(im)&&(bo.splice(e,1),qC(t,n))}}finally{fc=!1}}}function im(e){return Array.isArray(e)?e.every(im):!!_e(e)}function sm(e,t={}){om(e,t),function(e,t){bo.push({moduleType:e,ngModule:t})}(e,t)}function om(e,t,n=!1){const r=Tr(t.declarations||We);let i=null;Object.defineProperty(e,Or,{configurable:!0,get:()=>(null===i&&(i=Dn().compileNgModule(zn,`ng:///${e.name}/\u0275mod.js`,{type:e,bootstrap:Tr(t.bootstrap||We).map(_e),declarations:r.map(_e),imports:Tr(t.imports||We).map(_e).map(cm),exports:Tr(t.exports||We).map(_e).map(cm),schemas:t.schemas?Tr(t.schemas):null,id:t.id||null}),i.schemas||(i.schemas=[])),i)});let s=null;Object.defineProperty(e,tn,{get:()=>{if(null===s){const u=Dn();s=u.compileFactory(zn,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,deps:$o(e),target:u.FactoryTarget.NgModule,typeArgumentCount:0})}return s},configurable:!1});let a=null;Object.defineProperty(e,gr,{get:()=>{if(null===a){const u={name:e.name,type:e,providers:t.providers||We,imports:[(t.imports||We).map(_e),(t.exports||We).map(_e)]};a=Dn().compileInjector(zn,`ng:///${e.name}/\u0275inj.js`,u)}return a},configurable:!1})}let Ea=new WeakMap,pc=new WeakMap;function KC(){Ea=new WeakMap,pc=new WeakMap,bo.length=0}function qC(e,t){const n=Tr(t.declarations||We),r=wo(e);n.forEach(i=>{i.hasOwnProperty(Bn)?gc(Ct(i),r):!i.hasOwnProperty(yr)&&!i.hasOwnProperty(_r)&&(i.ngSelectorScope=e)})}function gc(e,t){e.directiveDefs=()=>Array.from(t.compilation.directives).map(n=>n.hasOwnProperty(Bn)?Ct(n):dn(n)).filter(n=>!!n),e.pipeDefs=()=>Array.from(t.compilation.pipes).map(n=>An(n)),e.schemas=t.schemas,e.tView=null}function wo(e){if(!mc(e))throw new Error(`${e.name} does not have a module def (\u0275mod property)`);const t=yn(e);if(null!==t.transitiveCompileScopes)return t.transitiveCompileScopes;const n={schemas:t.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return ri(t.imports).forEach(r=>{const i=r;if(!mc(i))throw new Error(`Importing ${i.name} which does not have a \u0275mod property`);const s=wo(i);s.exported.directives.forEach(a=>n.compilation.directives.add(a)),s.exported.pipes.forEach(a=>n.compilation.pipes.add(a))}),ri(t.declarations).forEach(r=>{An(r)?n.compilation.pipes.add(r):n.compilation.directives.add(r)}),ri(t.exports).forEach(r=>{const i=r;if(mc(i)){const s=wo(i);s.exported.directives.forEach(a=>{n.compilation.directives.add(a),n.exported.directives.add(a)}),s.exported.pipes.forEach(a=>{n.compilation.pipes.add(a),n.exported.pipes.add(a)})}else An(i)?n.exported.pipes.add(i):n.exported.directives.add(i)}),t.transitiveCompileScopes=n,n}function cm(e){return function(e){return void 0!==e.ngModule}(e)?e.ngModule:e}function mc(e){return!!yn(e)}let yc=0;function dm(e,t){let n=null;(function(e,t){wd(t)&&(ls.set(e,t),Zs.add(e))})(e,t),hm(e,t),Object.defineProperty(e,Bn,{get:()=>{if(null===n){const r=Dn();if(wd(t)){const _=[`Component '${e.name}' is not resolved:`];throw t.templateUrl&&_.push(` - templateUrl: ${t.templateUrl}`),t.styleUrls&&t.styleUrls.length&&_.push(` - styleUrls: ${JSON.stringify(t.styleUrls)}`),_.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(_.join("\n"))}const i=Ls;let s=t.preserveWhitespaces;void 0===s&&(s=null!==i&&void 0!==i.preserveWhitespaces&&i.preserveWhitespaces);let a=t.encapsulation;void 0===a&&(a=null!==i&&void 0!==i.defaultEncapsulation?i.defaultEncapsulation:en.Emulated);const u=t.templateUrl||`ng:///${e.name}/template.html`,c=Object.assign(Object.assign({},pm(e,t)),{typeSourceSpan:r.createParseSourceSpan("Component",e.name,u),template:t.template||"",preserveWhitespaces:s,styles:t.styles||We,animations:t.animations,directives:[],changeDetection:t.changeDetection,pipes:new Map,encapsulation:a,interpolation:t.interpolation,viewProviders:t.viewProviders||null});yc++;try{c.usesInheritance&&gm(e),n=r.compileComponent(zn,u,c)}finally{yc--}if(0===yc&&rm(),function(e){return void 0!==e.ngSelectorScope}(e)){const _=wo(e.ngSelectorScope);gc(n,_)}}return n},configurable:!1})}function _c(e,t){let n=null;hm(e,t||{}),Object.defineProperty(e,yr,{get:()=>{if(null===n){const r=fm(e,t||{});n=Dn().compileDirective(zn,r.sourceMapUrl,r.metadata)}return n},configurable:!1})}function fm(e,t){const n=e&&e.name,r=`ng:///${n}/\u0275dir.js`,i=Dn(),s=pm(e,t);return s.typeSourceSpan=i.createParseSourceSpan("Directive",n,r),s.usesInheritance&&gm(e),{metadata:s,sourceMapUrl:r}}function hm(e,t){let n=null;Object.defineProperty(e,tn,{get:()=>{if(null===n){const r=fm(e,t),i=Dn();n=i.compileFactory(zn,`ng:///${e.name}/\u0275fac.js`,{name:r.metadata.name,type:r.metadata.type,typeArgumentCount:0,deps:$o(e),target:i.FactoryTarget.Directive})}return n},configurable:!1})}function YC(e){return Object.getPrototypeOf(e.prototype)===Object.prototype}function pm(e,t){const n=za(),r=n.ownPropMetadata(e);return{name:e.name,type:e,selector:void 0!==t.selector?t.selector:null,host:t.host||dt,propMetadata:r,inputs:t.inputs||We,outputs:t.outputs||We,queries:mm(e,r,ym),lifecycle:{usesOnChanges:n.hasLifecycleHook(e,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!YC(e),exportAs:eb(t.exportAs),providers:t.providers||null,viewQueries:mm(e,r,_m)}}function gm(e){const t=Object.prototype;let n=Object.getPrototypeOf(e.prototype).constructor;for(;n&&n!==t;)!dn(n)&&!Ct(n)&&nb(n)&&_c(n,null),n=Object.getPrototypeOf(n)}function XC(e){return"string"==typeof e?Dm(e):_e(e)}function JC(e,t){return{propertyName:e,predicate:XC(t.selector),descendants:t.descendants,first:t.first,read:t.read?t.read:null,static:!!t.static,emitDistinctChangesOnly:!!t.emitDistinctChangesOnly}}function mm(e,t,n){const r=[];for(const i in t)if(t.hasOwnProperty(i)){const s=t[i];s.forEach(a=>{if(n(a)){if(!a.selector)throw new Error(`Can't construct a query for the property "${i}" of "${rt(e)}" since the query selector wasn't defined.`);if(s.some(vm))throw new Error("Cannot combine @Input decorators with query decorators");r.push(JC(i,a))}})}return r}function eb(e){return void 0===e?null:Dm(e)}function ym(e){const t=e.ngMetadataName;return"ContentChild"===t||"ContentChildren"===t}function _m(e){const t=e.ngMetadataName;return"ViewChild"===t||"ViewChildren"===t}function vm(e){return"Input"===e.ngMetadataName}function Dm(e){return e.split(",").map(t=>t.trim())}const tb=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function nb(e){const t=za();if(tb.some(r=>t.hasLifecycleHook(e,r)))return!0;const n=t.propMetadata(e);for(const r in n){const i=n[r];for(let s=0;s<i.length;s++){const a=i[s],u=a.ngMetadataName;if(vm(a)||ym(a)||_m(a)||"Output"===u||"HostBinding"===u||"HostListener"===u)return!0}}return!1}function Em(e,t){let n=null,r=null;Object.defineProperty(e,tn,{get:()=>{if(null===r){const i=Cm(e,t),s=Dn();r=s.compileFactory(zn,`ng:///${i.name}/\u0275fac.js`,{name:i.name,type:i.type,typeArgumentCount:0,deps:$o(e),target:s.FactoryTarget.Pipe})}return r},configurable:!1}),Object.defineProperty(e,_r,{get:()=>{if(null===n){const i=Cm(e,t);n=Dn().compilePipe(zn,`ng:///${i.name}/\u0275pipe.js`,i)}return n},configurable:!1})}function Cm(e,t){return{type:e,name:e.name,pipeName:t.name,pure:void 0===t.pure||t.pure}}const bm=ss("Directive",(e={})=>e,void 0,void 0,(e,t)=>_c(e,t)),rb=ss("Component",(e={})=>Object.assign({changeDetection:It.Default},e),bm,void 0,(e,t)=>dm(e,t)),ib=ss("Pipe",e=>Object.assign({pure:!0},e),void 0,void 0,(e,t)=>Em(e,t)),sb=Oi("Input",e=>({bindingPropertyName:e})),ob=Oi("Output",e=>({bindingPropertyName:e})),ab=Oi("HostBinding",e=>({hostPropertyName:e})),lb=Oi("HostListener",(e,t)=>({eventName:e,args:t})),ub=ss("NgModule",e=>e,void 0,void 0,(e,t)=>sm(e,t));function Ca(...e){}const vc=new Yt("Application Initializer");let Vs=(()=>{class e{constructor(n){this.appInits=n,this.resolve=Ca,this.reject=Ca,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i<this.appInits.length;i++){const s=this.appInits[i]();if(fu(s))n.push(s);else if(qh(s)){const a=new Promise((u,c)=>{s.subscribe({complete:u,error:c})});n.push(a)}}Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(Mn(vc,8))},e.\u0275prov=Me({token:e,factory:e.\u0275fac}),e})();const wm=new Yt("AppId"),Mm={provide:wm,useFactory:function(){return`${Dc()}${Dc()}${Dc()}`},deps:[]};function Dc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Am=new Yt("Platform Initializer"),Im=new Yt("Platform ID"),Sm=new Yt("appBootstrapListener"),db=new Yt("Application Packages Root URL");let Tm=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Me({token:e,factory:e.\u0275fac}),e})();const ba=new Yt("LocaleId"),Fm=new Yt("DefaultCurrencyCode"),fb=new Yt("Translations"),hb=new Yt("TranslationsFormat");var ui=(()=>((ui=ui||{})[ui.Error=0]="Error",ui[ui.Warning=1]="Warning",ui[ui.Ignore=2]="Ignore",ui))();class Nm{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let Ec=(()=>{class e{compileModuleSync(n){return new ya(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),s=ri(yn(n).declarations).reduce((a,u)=>{const c=Ct(u);return c&&a.push(new ma(c)),a},[]);return new Nm(r,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Me({token:e,factory:e.\u0275fac}),e})();const Pm=new Yt("compilerOptions");class pb{}const gb=(()=>Promise.resolve(0))();function Cc(e){"undefined"==typeof Zone?gb.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class fr{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new li(!1),this.onMicrotaskEmpty=new li(!1),this.onStable=new li(!1),this.onError=new li(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&n,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function(){let e=W.requestAnimationFrame,t=W.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=()=>{!function(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(W,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,wc(e),e.isCheckStableRunning=!0,bc(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),wc(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,s,a,u)=>{try{return Om(e),n.invokeTask(i,s,a,u)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&t(),Rm(e)}},onInvoke:(n,r,i,s,a,u,c)=>{try{return Om(e),n.invoke(i,s,a,u,c)}finally{e.shouldCoalesceRunChangeDetection&&t(),Rm(e)}},onHasTask:(n,r,i,s)=>{n.hasTask(i,s),r===i&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,wc(e),bc(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(n,r,i,s)=>(n.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(i)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!fr.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(fr.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){const s=this._inner,a=s.scheduleEventTask("NgZoneEvent: "+i,t,yb,Ca,Ca);try{return s.runTask(a,n,r)}finally{s.cancelTask(a)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const yb={};function bc(e){if(0==e._nesting&&!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 wc(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Om(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Rm(e){e._nesting--,bc(e)}class xm{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new li,this.onMicrotaskEmpty=new li,this.onStable=new li,this.onError=new li}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,i){return t.apply(n,r)}}let Lm=(()=>{class e{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{fr.assertNotInAngularZone(),Cc(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Cc(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,i){let s=-1;r&&r>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:i})}whenStable(n,r,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,r,i){return[]}}return e.\u0275fac=function(n){return new(n||e)(Mn(fr))},e.\u0275prov=Me({token:e,factory:e.\u0275fac}),e})(),Mc=(()=>{class e{constructor(){this._applications=new Map,Ac.addToWindow(this)}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return Ac.findTestabilityInTree(this,n,r)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=Me({token:e,factory:e.\u0275fac}),e})();class Db{addToWindow(t){}findTestabilityInTree(t,n,r){return null}}function Eb(e){Ac=e}let Gr,Ac=new Db;function Vm(e,t,n){const r=new ya(n);return Promise.resolve(r)}function km(e){return e.isBoundToModule}const Ic=new Yt("AllowMultipleToken");class bb{constructor(t,n){this.name=t,this.token=n}}function Bm(e){if(Gr&&!Gr.destroyed&&!Gr.injector.get(Ic,!1))throw new Oe("400","");Gr=e.get(Tc);const t=e.get(Am,null);return t&&t.forEach(n=>n()),Gr}function jm(e,t,n=[]){const r=`Platform: ${t}`,i=new Yt(r);return(s=[])=>{let a=Sc();if(!a||a.injector.get(Ic,!1))if(e)e(n.concat(s).concat({provide:i,useValue:!0}));else{const u=n.concat(s).concat({provide:i,useValue:!0},{provide:Vl,useValue:"platform"});Bm(dr.create({providers:u,name:r}))}return Hm()}}function Hm(e){const t=Sc();if(!t)throw new Oe("401","");return t}function wb(){Gr&&!Gr.destroyed&&Gr.destroy()}function Sc(){return Gr&&!Gr.destroyed?Gr:null}let Tc=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const u=function(e,t){let n;return n="noop"===e?new xm:("zone.js"===e?void 0:e)||new fr({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),c=[{provide:fr,useValue:u}];return u.run(()=>{const _=dr.create({providers:c,parent:this.injector,name:n.moduleType.name}),E=n.create(_),I=E.injector.get(to,null);if(!I)throw new Oe("402","");return u.runOutsideAngular(()=>{const F=u.onError.subscribe({next:j=>{I.handleError(j)}});E.onDestroy(()=>{Fc(this._modules,E),F.unsubscribe()})}),function(e,t,n){try{const r=n();return fu(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(I,u,()=>{const F=E.injector.get(Vs);return F.runInitializers(),F.donePromise.then(()=>(Lp(E.injector.get(ba,ho)||ho),this._moduleDoBootstrap(E),E))})})}bootstrapModule(n,r=[]){const i=Um({},r);return Vm(0,0,n).then(s=>this.bootstrapModuleFactory(s,i))}_moduleDoBootstrap(n){const r=n.injector.get(Mo);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!n.instance.ngDoBootstrap)throw new Oe("403","");n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Oe("404","");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(Mn(dr))},e.\u0275prov=Me({token:e,factory:e.\u0275fac}),e})();function Um(e,t){return Array.isArray(t)?t.reduce(Um,e):Object.assign(Object.assign({},e),t)}let Mo=(()=>{class e{constructor(n,r,i,s,a){this._zone=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=s,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const u=new p.y(_=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{_.next(this._stable),_.complete()})}),c=new p.y(_=>{let E;this._zone.runOutsideAngular(()=>{E=this._zone.onStable.subscribe(()=>{fr.assertNotInAngularZone(),Cc(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,_.next(!0))})})});const I=this._zone.onUnstable.subscribe(()=>{fr.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{_.next(!1)}))});return()=>{E.unsubscribe(),I.unsubscribe()}});this.isStable=Qe(u,c.pipe(function(e={}){const{connector:t=(()=>new ve),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=e;return s=>{let a,u,c,_=0,E=!1,I=!1;const F=()=>{null==u||u.unsubscribe(),u=void 0},j=()=>{F(),a=c=void 0,E=I=!1},Y=()=>{const ce=a;j(),null==ce||ce.unsubscribe()};return(0,le.e)((ce,Ee)=>{_++,!I&&!E&&F();const we=c=null!=c?c:t();Ee.add(()=>{_--,0===_&&!I&&!E&&(u=Le(Y,i))}),we.subscribe(Ee),!a&&_>0&&(a=new Fe.Hp({next:ne=>we.next(ne),error:ne=>{I=!0,F(),u=Le(j,n,ne),we.error(ne)},complete:()=>{E=!0,F(),u=Le(j,r),we.complete()}}),(0,te.Xf)(ce).subscribe(a))})(s)}}()))}bootstrap(n,r){if(!this._initStatus.done)throw new Oe("405","");let i;i=n instanceof ha?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(i.componentType);const s=km(i)?void 0:this._injector.get(Rs),u=i.create(dr.NULL,[],r||i.selector,s),c=u.location.nativeElement,_=u.injector.get(Lm,null),E=_&&u.injector.get(Mc);return _&&E&&E.registerApplication(c,_),u.onDestroy(()=>{this.detachView(u.hostView),Fc(this.components,u),E&&E.unregisterApplication(c)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new Oe("101","");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Fc(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(Sm,[]).concat(this._bootstrapListeners).forEach(i=>i(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(n){return new(n||e)(Mn(fr),Mn(dr),Mn(to),Mn(_o),Mn(Vs))},e.\u0275prov=Me({token:e,factory:e.\u0275fac}),e})();function Fc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let Gm=!0,zm=!1;function Sb(){return zm=!0,Gm}function Tb(){if(zm)throw new Error("Cannot enable prod mode after platform setup.");Gm=!1}function Fb(e){const t=Cg(e);if(!t)throw Wm(e);return new ya(t)}function Nb(e){const t=Cg(e);if(!t)throw Wm(e);return t}function Wm(e){return new Error(`No module with ID ${e} loaded`)}let Km=(()=>{class e{}return e.__NG_ELEMENT_ID__=qm,e})();function qm(e){return function(e,t,n){if(ar(e)&&!n){const r=T(e.index,t);return new Os(r,r)}return 47&e.type?new Os(t[16],t):null}(Mt(),re(),16==(16&e))}class Qm extends Km{}class Ob extends Qm{}class Rb{constructor(t,n){this.name=t,this.callback=n}}function xb(e){return e.map(t=>t.nativeElement)}class Nc{constructor(t){this.nativeNode=t}get parent(){const t=this.nativeNode.parentNode;return t?new Ao(t):null}get injector(){return yh(this.nativeNode)}get componentInstance(){const t=this.nativeNode;return t&&(Hl(t)||gh(t))}get context(){return Hl(this.nativeNode)||ph(this.nativeNode)}get listeners(){return vh(this.nativeNode).filter(t=>"dom"===t.type)}get references(){return function(e){const t=On(e);return null===t?{}:(void 0===t.localRefs&&(t.localRefs=function(e,t){const n=e[1].data[t];if(n&&n.localNames){const r={};let i=n.index+1;for(let s=0;s<n.localNames.length;s+=2)r[n.localNames[s]]=e[i],i++;return r}return null}(t.lView,t.nodeIndex)),t.localRefs||{})}(this.nativeNode)}get providerTokens(){return function(e){const t=On(e);if(null===t)return[];const r=t.lView[1],i=r.data[t.nodeIndex],s=[],u=i.directiveEnd;for(let c=1048575&i.providerIndexes;c<u;c++){let _=r.data[c];cD(_)&&(_=_.type),s.push(_)}return s}(this.nativeNode)}}class Ao extends Nc{constructor(t){super(t)}get nativeElement(){return this.nativeNode.nodeType==Node.ELEMENT_NODE?this.nativeNode:null}get name(){const t=On(this.nativeNode);return null!==t?t.lView[1].data[t.nodeIndex].value:this.nativeNode.nodeName}get properties(){const t=On(this.nativeNode);if(null===t)return{};const n=t.lView,r=n[1].data,i=r[t.nodeIndex],s={};return function(e,t){if(e){let n=Object.getPrototypeOf(e);const r=Node.prototype;for(;null!==n&&n!==r;){const i=Object.getOwnPropertyDescriptors(n);for(let s in i)if(!s.startsWith("__")&&!s.startsWith("on")){const a=e[s];Vb(a)&&(t[s]=a)}n=Object.getPrototypeOf(n)}}}(this.nativeElement,s),function(e,t,n,r){let i=t.propertyBindings;if(null!==i)for(let s=0;s<i.length;s++){const a=i[s],c=r[a].split("\ufffd"),_=c[0];if(c.length>1){let E=c[1];for(let I=1;I<c.length-1;I++)E+=Ie(n[a+I-1])+c[I+1];e[_]=E}else e[_]=n[a]}}(s,i,n,r),s}get attributes(){const t={},n=this.nativeElement;if(!n)return t;const r=On(n);if(null===r)return{};const s=r.lView[1].data[r.nodeIndex].attrs,a=[];if(s){let c=0;for(;c<s.length;){const _=s[c];if("string"!=typeof _)break;t[_]=s[c+1],a.push(_.toLowerCase()),c+=2}}const u=n.attributes;for(let c=0;c<u.length;c++){const _=u[c],E=_.name.toLowerCase();-1===a.indexOf(E)&&(t[E]=_.value)}return t}get styles(){return this.nativeElement&&this.nativeElement.style?this.nativeElement.style:{}}get classes(){const t={},r=this.nativeElement.className;return("string"!=typeof r?r.baseVal.split(" "):r.split(" ")).forEach(s=>t[s]=!0),t}get childNodes(){const t=this.nativeNode.childNodes,n=[];for(let r=0;r<t.length;r++)n.push(Lc(t[r]));return n}get children(){const t=this.nativeElement;if(!t)return[];const n=t.children,r=[];for(let i=0;i<n.length;i++)r.push(Lc(n[i]));return r}query(t){return this.queryAll(t)[0]||null}queryAll(t){const n=[];return Zm(this,t,n,!0),n}queryAllNodes(t){const n=[];return Zm(this,t,n,!1),n}triggerEventHandler(t,n){const r=this.nativeNode,i=[];this.listeners.forEach(s=>{if(s.name===t){const a=s.callback;a.call(r,n),i.push(a)}}),"function"==typeof r.eventListeners&&r.eventListeners(t).forEach(s=>{if(-1!==s.toString().indexOf("__ngUnwrap__")){const a=s("__ngUnwrap__");return-1===i.indexOf(a)&&a.call(r,n)}})}}function Vb(e){return"string"==typeof e||"boolean"==typeof e||"number"==typeof e||null===e}function Zm(e,t,n,r){const i=On(e.nativeNode);null!==i?Ki(i.lView[1].data[i.nodeIndex],i.lView,t,n,r,e.nativeNode):Oc(e.nativeNode,t,n,r)}function Ki(e,t,n,r,i,s){const a=function(e,t){const n=null===e?-1:e.index;return-1!==n?at(t[n]):null}(e,t);if(11&e.type){if(Pc(a,n,r,i,s),ar(e)){const c=T(e.index,t);c&&c[1].firstChild&&Ki(c[1].firstChild,c,n,r,i,s)}else e.child&&Ki(e.child,t,n,r,i,s),a&&Oc(a,n,r,i);const u=t[e.index];fn(u)&&Ym(u,n,r,i,s)}else if(4&e.type){const u=t[e.index];Pc(u[7],n,r,i,s),Ym(u,n,r,i,s)}else if(16&e.type){const u=t[16],_=u[6].projection[e.projection];if(Array.isArray(_))for(let E of _)Pc(E,n,r,i,s);else if(_){const E=u[3];Ki(E[1].data[_.index],E,n,r,i,s)}}else e.child&&Ki(e.child,t,n,r,i,s);if(s!==a){const u=4&e.flags?e.projectionNext:e.next;u&&Ki(u,t,n,r,i,s)}}function Ym(e,t,n,r,i){for(let s=10;s<e.length;s++){const a=e[s],u=a[1].firstChild;u&&Ki(u,a,t,n,r,i)}}function Pc(e,t,n,r,i){if(i!==e){const s=wa(e);if(!s)return;(r&&s instanceof Ao&&t(s)&&-1===n.indexOf(s)||!r&&t(s)&&-1===n.indexOf(s))&&n.push(s)}}function Oc(e,t,n,r){const i=e.childNodes,s=i.length;for(let a=0;a<s;a++){const u=i[a],c=wa(u);c&&((r&&c instanceof Ao&&t(c)&&-1===n.indexOf(c)||!r&&t(c)&&-1===n.indexOf(c))&&n.push(c),Oc(u,t,n,r))}}const xc="__ng_debug__";function Lc(e){return e instanceof Node?(e.hasOwnProperty(xc)||(e[xc]=e.nodeType==Node.ELEMENT_NODE?new Ao(e):new Nc(e)),e[xc]):null}const wa=Lc,jb=function(e){return null},Hb=Nc,Ub=Ao;class Xm{constructor(){}supports(t){return ao(t)}create(t){return new Jm(t)}}const $b=(e,t)=>t;class Jm{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||$b}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,i=0,s=null;for(;n||r;){const a=!r||n&&n.currentIndex<ty(r,i,s)?n:r,u=ty(a,i,s),c=a.currentIndex;if(a===r)i--,r=r._nextRemoved;else if(n=n._next,null==a.previousIndex)i++;else{s||(s=[]);const _=u-i,E=c-i;if(_!=E){for(let F=0;F<_;F++){const j=F<s.length?s[F]:s[F]=0,Y=j+F;E<=Y&&Y<_&&(s[F]=j+1)}s[a.previousIndex]=E-_}}u!==c&&t(a,u,c)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;null!==n;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)t(n)}diff(t){if(null==t&&(t=[]),!ao(t))throw new Error(`Error trying to diff '${H(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let i,s,a,n=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let u=0;u<this.length;u++)s=t[u],a=this._trackByFn(u,s),null!==n&&Object.is(n.trackById,a)?(r&&(n=this._verifyReinsertion(n,s,a,u)),Object.is(n.item,s)||this._addIdentityChange(n,s)):(n=this._mismatch(n,s,a,u),r=!0),n=n._next}else i=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[_s()]();let r;for(;!(r=n.next()).done;)t(r.value)}}(t,u=>{a=this._trackByFn(i,u),null!==n&&Object.is(n.trackById,a)?(r&&(n=this._verifyReinsertion(n,u,a,i)),Object.is(n.item,u)||this._addIdentityChange(n,u)):(n=this._mismatch(n,u,a,i),r=!0),n=n._next,i++}),this.length=i;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,i){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,s,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,s,i)):t=this._addAfter(new Gb(n,r),s,i),t}_verifyReinsertion(t,n,r,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==s?t=this._reinsertAfter(s,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,s=t._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const i=null===n?this._itHead:n._next;return t._next=i,t._prev=n,null===i?this._itTail=t:i._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new ey),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ey),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Gb{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class zb{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class ey{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new zb,this.map.set(n,r)),r.add(t)}get(t,n){const i=this.map.get(t);return i?i.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function ty(e,t,n){const r=e.previousIndex;if(null===r)return r;let i=0;return n&&r<n.length&&(i=n[r]),r+t+i}class ny{constructor(){}supports(t){return t instanceof Map||Wl(t)}create(){return new Wb}}class Wb{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let n;for(n=this._mapHead;null!==n;n=n._next)t(n)}forEachPreviousItem(t){let n;for(n=this._previousMapHead;null!==n;n=n._nextPrevious)t(n)}forEachChangedItem(t){let n;for(n=this._changesHead;null!==n;n=n._nextChanged)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}diff(t){if(t){if(!(t instanceof Map||Wl(t)))throw new Error(`Error trying to diff '${H(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,i)=>{if(n&&n.key===i)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const s=this._getOrCreateRecordForKey(i,r);n=this._insertBeforeOrAppend(n,s)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const i=this._records.get(t);this._maybeAddToChanges(i,n);const s=i._prev,a=i._next;return s&&(s._next=a),a&&(a._prev=s),i._next=null,i._prev=null,i}const r=new Kb(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class Kb{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function ry(){return new Ma([new Xm])}let Ma=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const i=r.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||ry()),deps:[[e,new Ui,new Hi]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(null!=r)return r;throw new Error(`Cannot find a differ supporting object '${n}' of type '${function(e){return e.name||typeof e}(n)}'`)}}return e.\u0275prov=Me({token:e,providedIn:"root",factory:ry}),e})();function iy(){return new Aa([new ny])}let Aa=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(r){const i=r.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||iy()),deps:[[e,new Ui,new Hi]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(r)return r;throw new Error(`Cannot find a differ supporting object '${n}'`)}}return e.\u0275prov=Me({token:e,providedIn:"root",factory:iy}),e})();const Qb=[new ny],sy=new Ma([new Xm]),oy=new Aa(Qb),Yb=jm(null,"core",[{provide:Im,useValue:"unknown"},{provide:Tc,deps:[dr]},{provide:Mc,deps:[]},{provide:Tm,deps:[]}]),nw=[{provide:Mo,useClass:Mo,deps:[fr,dr,to,_o,Vs]},{provide:bC,deps:[fr],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(n){t.push(n)}}},{provide:Vs,useClass:Vs,deps:[[new Hi,vc]]},{provide:Ec,useClass:Ec,deps:[]},Mm,{provide:Ma,useFactory:function(){return sy},deps:[]},{provide:Aa,useFactory:function(){return oy},deps:[]},{provide:ba,useFactory:function(e){return e||"undefined"!=typeof $localize&&$localize.locale||ho},deps:[[new Qs(ba),new Hi,new Ui]]},{provide:Fm,useValue:"USD"}];let iw=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(Mn(Mo))},e.\u0275mod=sr({type:e}),e.\u0275inj=qn({providers:nw}),e})();const sw=!0;function ow(e){return Dn().compileDirectiveDeclaration(zn,`ng:///${e.type.name}/\u0275fac.js`,e)}function aw(e){var t,n;_g(e.type,e.decorators,null!==(t=e.ctorParameters)&&void 0!==t?t:null,null!==(n=e.propDecorators)&&void 0!==n?n:null)}function lw(e){return Dn().compileComponentDeclaration(zn,`ng:///${e.type.name}/\u0275cmp.js`,e)}function uw(e){return Dn(function(e){switch(e){case vn.Directive:return"directive";case vn.Component:return"component";case vn.Injectable:return"injectable";case vn.Pipe:return"pipe";case vn.NgModule:;}}(e.target)).compileFactoryDeclaration(zn,`ng:///${e.type.name}/\u0275fac.js`,e)}function dw(e){return Dn().compileInjectableDeclaration(zn,`ng:///${e.type.name}/\u0275prov.js`,e)}function fw(e){return Dn().compileInjectorDeclaration(zn,`ng:///${e.type.name}/\u0275inj.js`,e)}function hw(e){return Dn().compileNgModuleDeclaration(zn,`ng:///${e.type.name}/\u0275mod.js`,e)}function pw(e){return Dn().compilePipeDeclaration(zn,`ng:///${e.type.name}/\u0275pipe.js`,e)}},562:(qe,de,V)=>{"use strict";V.r(de),V.d(de,{AbstractControl:()=>Rr,AbstractControlDirective:()=>Ln,AbstractFormGroupDirective:()=>Er,COMPOSITION_BUFFER_MODE:()=>Le,CheckboxControlValueAccessor:()=>Qe,CheckboxRequiredValidator:()=>Ar,ControlContainer:()=>nt,DefaultValueAccessor:()=>L,EmailValidator:()=>Si,FormArray:()=>An,FormArrayName:()=>ln,FormBuilder:()=>Dt,FormControl:()=>Ct,FormControlDirective:()=>Sn,FormControlName:()=>ar,FormGroup:()=>dn,FormGroupDirective:()=>an,FormGroupName:()=>Yr,FormsModule:()=>mt,MaxLengthValidator:()=>w,MaxValidator:()=>gi,MinLengthValidator:()=>C,MinValidator:()=>Ii,NG_ASYNC_VALIDATORS:()=>q,NG_VALIDATORS:()=>K,NG_VALUE_ACCESSOR:()=>k,NgControl:()=>Ut,NgControlStatus:()=>Tn,NgControlStatusGroup:()=>Jt,NgForm:()=>Xn,NgModel:()=>$t,NgModelGroup:()=>be,NgSelectOption:()=>Mr,NumberValueAccessor:()=>In,PatternValidator:()=>Z,RadioControlValueAccessor:()=>Cr,RangeValueAccessor:()=>or,ReactiveFormsModule:()=>st,RequiredValidator:()=>Vr,SelectControlValueAccessor:()=>xr,SelectMultipleControlValueAccessor:()=>Jr,VERSION:()=>Qt,Validators:()=>_e,\u0275InternalFormsSharedModule:()=>gt,\u0275NgNoValidate:()=>Cn,\u0275NgSelectMultipleOption:()=>Mi});var p=V(461),N=V(48),ie=V(818);const{isArray:ge}=Array,{getPrototypeOf:ae,prototype:Q,keys:ve}=Object;var te=V(955),le=V(635),Ue=V(499),Je=V(969);const{isArray:me}=Array;function ee(y,h){return y.reduce((f,b,$)=>(f[b]=h[$],f),{})}var fe=V(985);let Te=(()=>{class y{constructor(f,b){this._renderer=f,this._elementRef=b,this.onChange=$=>{},this.onTouched=()=>{}}setProperty(f,b){this._renderer.setProperty(this._elementRef.nativeElement,f,b)}registerOnTouched(f){this.onTouched=f}registerOnChange(f){this.onChange=f}setDisabledState(f){this.setProperty("disabled",f)}}return y.\u0275fac=function(f){return new(f||y)(p.\u0275\u0275directiveInject(p.Renderer2),p.\u0275\u0275directiveInject(p.ElementRef))},y.\u0275dir=p.\u0275\u0275defineDirective({type:y}),y})(),z=(()=>{class y extends Te{}return y.\u0275fac=function(){let h;return function(b){return(h||(h=p.\u0275\u0275getInheritedFactory(y)))(b||y)}}(),y.\u0275dir=p.\u0275\u0275defineDirective({type:y,features:[p.\u0275\u0275InheritDefinitionFeature]}),y})();const k=new p.InjectionToken("NgValueAccessor"),ye={provide:k,useExisting:(0,p.forwardRef)(()=>Qe),multi:!0};let Qe=(()=>{class y extends z{writeValue(f){this.setProperty("checked",f)}}return y.\u0275fac=function(){let h;return function(b){return(h||(h=p.\u0275\u0275getInheritedFactory(y)))(b||y)}}(),y.\u0275dir=p.\u0275\u0275defineDirective({type:y,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(f,b){1&f&&p.\u0275\u0275listener("change",function(Ae){return b.onChange(Ae.target.checked)})("blur",function(){return b.onTouched()})},features:[p.\u0275\u0275ProvidersFeature([ye]),p.\u0275\u0275InheritDefinitionFeature]}),y})();const Fe={provide:k,useExisting:(0,p.forwardRef)(()=>L),multi:!0},Le=new p.InjectionToken("CompositionEventMode");let L=(()=>{class y extends Te{constructor(f,b,$){super(f,b),this._compositionMode=$,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const y=(0,N.\u0275getDOM)()?(0,N.\u0275getDOM)().getUserAgent():"";return/android (\d+)/.test(y.toLowerCase())}())}writeValue(f){this.setProperty("value",null==f?"":f)}_handleInput(f){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(f)}_compositionStart(){this._composing=!0}_compositionEnd(f){this._composing=!1,this._compositionMode&&this.onChange(f)}}return y.\u0275fac=function(f){return new(f||y)(p.\u0275\u0275directiveInject(p.Renderer2),p.\u0275\u0275directiveInject(p.ElementRef),p.\u0275\u0275directiveInject(Le,8))},y.\u0275dir=p.\u0275\u0275defineDirective({type:y,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(f,b){1&f&&p.\u0275\u0275listener("input",function(Ae){return b._handleInput(Ae.target.value)})("blur",function(){return b.onTouched()})("compositionstart",function(){return b._compositionStart()})("compositionend",function(Ae){return b._compositionEnd(Ae.target.value)})},features:[p.\u0275\u0275ProvidersFeature([Fe]),p.\u0275\u0275InheritDefinitionFeature]}),y})();function G(y){return null==y||0===y.length}function H(y){return null!=y&&"number"==typeof y.length}const K=new p.InjectionToken("NgValidators"),q=new p.InjectionToken("NgAsyncValidators"),oe=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class _e{static min(h){return it(h)}static max(h){return zt(h)}static required(h){return Oe(h)}static requiredTrue(h){return Pt(h)}static email(h){return Lt(h)}static minLength(h){return Ie(h)}static maxLength(h){return rt(h)}static pattern(h){return gn(h)}static nullValidator(h){return null}static compose(h){return Wt(h)}static composeAsync(h){return Wr(h)}}function it(y){return h=>{if(G(h.value)||G(y))return null;const f=parseFloat(h.value);return!isNaN(f)&&f<y?{min:{min:y,actual:h.value}}:null}}function zt(y){return h=>{if(G(h.value)||G(y))return null;const f=parseFloat(h.value);return!isNaN(f)&&f>y?{max:{max:y,actual:h.value}}:null}}function Oe(y){return G(y.value)?{required:!0}:null}function Pt(y){return!0===y.value?null:{required:!0}}function Lt(y){return G(y.value)||oe.test(y.value)?null:{email:!0}}function Ie(y){return h=>G(h.value)||!H(h.value)?null:h.value.length<y?{minlength:{requiredLength:y,actualLength:h.value.length}}:null}function rt(y){return h=>H(h.value)&&h.value.length>y?{maxlength:{requiredLength:y,actualLength:h.value.length}}:null}function gn(y){if(!y)return cn;let h,f;return"string"==typeof y?(f="","^"!==y.charAt(0)&&(f+="^"),f+=y,"$"!==y.charAt(y.length-1)&&(f+="$"),h=new RegExp(f)):(f=y.toString(),h=y),b=>{if(G(b.value))return null;const $=b.value;return h.test($)?null:{pattern:{requiredPattern:f,actualValue:$}}}}function cn(y){return null}function Et(y){return null!=y}function Ht(y){const h=(0,p.\u0275isPromise)(y)?(0,fe.D)(y):y;return(0,p.\u0275isObservable)(h),h}function Ft(y){let h={};return y.forEach(f=>{h=null!=f?Object.assign(Object.assign({},h),f):h}),0===Object.keys(h).length?null:h}function ci(y,h){return h.map(f=>f(y))}function zr(y){return y.map(h=>function(y){return!y.validate}(h)?h:f=>h.validate(f))}function Wt(y){if(!y)return null;const h=y.filter(Et);return 0==h.length?null:function(f){return Ft(ci(f,h))}}function Wn(y){return null!=y?Wt(zr(y)):null}function Wr(y){if(!y)return null;const h=y.filter(Et);return 0==h.length?null:function(f){return function(...y){const h=(0,le.jO)(y),{args:f,keys:b}=function(y){if(1===y.length){const h=y[0];if(ge(h))return{args:h,keys:null};if(function(y){return y&&"object"==typeof y&&ae(y)===Q}(h)){const f=ve(h);return{args:f.map(b=>h[b]),keys:f}}}return{args:y,keys:null}}(y),$=new ie.y(Ae=>{const{length:_t}=f;if(!_t)return void Ae.complete();const at=new Array(_t);let D=_t,o=_t;for(let l=0;l<_t;l++){let d=!1;(0,te.Xf)(f[l]).subscribe((0,Ue.x)(Ae,v=>{d||(d=!0,o--),at[l]=v},()=>D--,void 0,()=>{(!D||!d)&&(o||Ae.next(b?ee(b,at):at),Ae.complete())}))}});return h?$.pipe(function(y){return(0,Je.U)(h=>function(y,h){return me(h)?y(...h):y(h)}(y,h))}(h)):$}(ci(f,h).map(Ht)).pipe((0,Je.U)(Ft))}}function Kn(y){return null!=y?Wr(zr(y)):null}function di(y,h){return null===y?[h]:Array.isArray(y)?[...y,h]:[y,h]}function Kt(y){return y._rawValidators}function tr(y){return y._rawAsyncValidators}function Vt(y){return y?Array.isArray(y)?y:[y]:[]}function nr(y,h){return Array.isArray(y)?y.includes(h):y===h}function Ot(y,h){const f=Vt(h);return Vt(y).forEach($=>{nr(f,$)||f.push($)}),f}function pt(y,h){return Vt(h).filter(f=>!nr(y,f))}class Ln{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}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}_setValidators(h){this._rawValidators=h||[],this._composedValidatorFn=Wn(this._rawValidators)}_setAsyncValidators(h){this._rawAsyncValidators=h||[],this._composedAsyncValidatorFn=Kn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(h){this._onDestroyCallbacks.push(h)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(h=>h()),this._onDestroyCallbacks=[]}reset(h){this.control&&this.control.reset(h)}hasError(h,f){return!!this.control&&this.control.hasError(h,f)}getError(h,f){return this.control?this.control.getError(h,f):null}}class Ut extends Ln{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class nt extends Ln{get formDirective(){return null}get path(){return null}}class Me{constructor(h){this._cd=h}is(h){var f,b,$;return"submitted"===h?!!(null===(f=this._cd)||void 0===f?void 0:f.submitted):!!(null===($=null===(b=this._cd)||void 0===b?void 0:b.control)||void 0===$?void 0:$[h])}}let Tn=(()=>{class y extends Me{constructor(f){super(f)}}return y.\u0275fac=function(f){return new(f||y)(p.\u0275\u0275directiveInject(Ut,2))},y.\u0275dir=p.\u0275\u0275defineDirective({type:y,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(f,b){2&f&&p.\u0275\u0275classProp("ng-untouched",b.is("untouched"))("ng-touched",b.is("touched"))("ng-pristine",b.is("pristine"))("ng-dirty",b.is("dirty"))("ng-valid",b.is("valid"))("ng-invalid",b.is("invalid"))("ng-pending",b.is("pending"))},features:[p.\u0275\u0275InheritDefinitionFeature]}),y})(),Jt=(()=>{class y extends Me{constructor(f){super(f)}}return y.\u0275fac=function(f){return new(f||y)(p.\u0275\u0275directiveInject(nt,10))},y.\u0275dir=p.\u0275\u0275defineDirective({type:y,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(f,b){2&f&&p.\u0275\u0275classProp("ng-untouched",b.is("untouched"))("ng-touched",b.is("touched"))("ng-pristine",b.is("pristine"))("ng-dirty",b.is("dirty"))("ng-valid",b.is("valid"))("ng-invalid",b.is("invalid"))("ng-pending",b.is("pending"))("ng-submitted",b.is("submitted"))},features:[p.\u0275\u0275InheritDefinitionFeature]}),y})();function Qn(y,h){return[...h.path,y]}function kt(y,h){en(y,h),h.valueAccessor.writeValue(y.value),function(y,h){h.valueAccessor.registerOnChange(f=>{y._pendingValue=f,y._pendingChange=!0,y._pendingDirty=!0,"change"===y.updateOn&&O(y,h)})}(y,h),function(y,h){const f=(b,$)=>{h.valueAccessor.writeValue(b),$&&h.viewToModelUpdate(b)};y.registerOnChange(f),h._registerOnDestroy(()=>{y._unregisterOnChange(f)})}(y,h),function(y,h){h.valueAccessor.registerOnTouched(()=>{y._pendingTouched=!0,"blur"===y.updateOn&&y._pendingChange&&O(y,h),"submit"!==y.updateOn&&y.markAsTouched()})}(y,h),function(y,h){if(h.valueAccessor.setDisabledState){const f=b=>{h.valueAccessor.setDisabledState(b)};y.registerOnDisabledChange(f),h._registerOnDestroy(()=>{y._unregisterOnDisabledChange(f)})}}(y,h)}function It(y,h,f=!0){const b=()=>{};h.valueAccessor&&(h.valueAccessor.registerOnChange(b),h.valueAccessor.registerOnTouched(b)),x(y,h),y&&(h._invokeOnDestroyCallbacks(),y._registerOnCollectionChange(()=>{}))}function St(y,h){y.forEach(f=>{f.registerOnValidatorChange&&f.registerOnValidatorChange(h)})}function en(y,h){const f=Kt(y);null!==h.validator?y.setValidators(di(f,h.validator)):"function"==typeof f&&y.setValidators([f]);const b=tr(y);null!==h.asyncValidator?y.setAsyncValidators(di(b,h.asyncValidator)):"function"==typeof b&&y.setAsyncValidators([b]);const $=()=>y.updateValueAndValidity();St(h._rawValidators,$),St(h._rawAsyncValidators,$)}function x(y,h){let f=!1;if(null!==y){if(null!==h.validator){const $=Kt(y);if(Array.isArray($)&&$.length>0){const Ae=$.filter(_t=>_t!==h.validator);Ae.length!==$.length&&(f=!0,y.setValidators(Ae))}}if(null!==h.asyncValidator){const $=tr(y);if(Array.isArray($)&&$.length>0){const Ae=$.filter(_t=>_t!==h.asyncValidator);Ae.length!==$.length&&(f=!0,y.setAsyncValidators(Ae))}}}const b=()=>{};return St(h._rawValidators,b),St(h._rawAsyncValidators,b),f}function O(y,h){y._pendingDirty&&y.markAsDirty(),y.setValue(y._pendingValue,{emitModelToViewChange:!1}),h.viewToModelUpdate(y._pendingValue),y._pendingChange=!1}function Re(y,h){en(y,h)}function Bn(y,h){if(!y.hasOwnProperty("model"))return!1;const f=y.model;return!!f.isFirstChange()||!Object.is(h,f.currentValue)}function _r(y,h){y._syncPendingControls(),h.forEach(f=>{const b=f.control;"submit"===b.updateOn&&b._pendingChange&&(f.viewToModelUpdate(b._pendingValue),b._pendingChange=!1)})}function Or(y,h){if(!h)return null;let f,b,$;return Array.isArray(h),h.forEach(Ae=>{Ae.constructor===L?f=Ae:function(y){return Object.getPrototypeOf(y.constructor)===z}(Ae)?b=Ae:$=Ae}),$||b||f||null}function tn(y,h){const f=y.indexOf(h);f>-1&&y.splice(f,1)}const rr="VALID",ir="INVALID",jn="PENDING",vr="DISABLED";function qr(y){return(Dr(y)?y.validators:y)||null}function sr(y){return Array.isArray(y)?Wn(y):y||null}function Yn(y,h){return(Dr(h)?h.asyncValidators:y)||null}function Qr(y){return Array.isArray(y)?Kn(y):y||null}function Dr(y){return null!=y&&!Array.isArray(y)&&"object"==typeof y}class Rr{constructor(h,f){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=h,this._rawAsyncValidators=f,this._composedValidatorFn=sr(this._rawValidators),this._composedAsyncValidatorFn=Qr(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(h){this._rawValidators=this._composedValidatorFn=h}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(h){this._rawAsyncValidators=this._composedAsyncValidatorFn=h}get parent(){return this._parent}get valid(){return this.status===rr}get invalid(){return this.status===ir}get pending(){return this.status==jn}get disabled(){return this.status===vr}get enabled(){return this.status!==vr}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(h){this._rawValidators=h,this._composedValidatorFn=sr(h)}setAsyncValidators(h){this._rawAsyncValidators=h,this._composedAsyncValidatorFn=Qr(h)}addValidators(h){this.setValidators(Ot(h,this._rawValidators))}addAsyncValidators(h){this.setAsyncValidators(Ot(h,this._rawAsyncValidators))}removeValidators(h){this.setValidators(pt(h,this._rawValidators))}removeAsyncValidators(h){this.setAsyncValidators(pt(h,this._rawAsyncValidators))}hasValidator(h){return nr(this._rawValidators,h)}hasAsyncValidator(h){return nr(this._rawAsyncValidators,h)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(h={}){this.touched=!0,this._parent&&!h.onlySelf&&this._parent.markAsTouched(h)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(h=>h.markAllAsTouched())}markAsUntouched(h={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(f=>{f.markAsUntouched({onlySelf:!0})}),this._parent&&!h.onlySelf&&this._parent._updateTouched(h)}markAsDirty(h={}){this.pristine=!1,this._parent&&!h.onlySelf&&this._parent.markAsDirty(h)}markAsPristine(h={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(f=>{f.markAsPristine({onlySelf:!0})}),this._parent&&!h.onlySelf&&this._parent._updatePristine(h)}markAsPending(h={}){this.status=jn,!1!==h.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!h.onlySelf&&this._parent.markAsPending(h)}disable(h={}){const f=this._parentMarkedDirty(h.onlySelf);this.status=vr,this.errors=null,this._forEachChild(b=>{b.disable(Object.assign(Object.assign({},h),{onlySelf:!0}))}),this._updateValue(),!1!==h.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},h),{skipPristineCheck:f})),this._onDisabledChange.forEach(b=>b(!0))}enable(h={}){const f=this._parentMarkedDirty(h.onlySelf);this.status=rr,this._forEachChild(b=>{b.enable(Object.assign(Object.assign({},h),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:h.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},h),{skipPristineCheck:f})),this._onDisabledChange.forEach(b=>b(!1))}_updateAncestors(h){this._parent&&!h.onlySelf&&(this._parent.updateValueAndValidity(h),h.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(h){this._parent=h}updateValueAndValidity(h={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===rr||this.status===jn)&&this._runAsyncValidator(h.emitEvent)),!1!==h.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!h.onlySelf&&this._parent.updateValueAndValidity(h)}_updateTreeValidity(h={emitEvent:!0}){this._forEachChild(f=>f._updateTreeValidity(h)),this.updateValueAndValidity({onlySelf:!0,emitEvent:h.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?vr:rr}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(h){if(this.asyncValidator){this.status=jn,this._hasOwnPendingAsyncValidator=!0;const f=Ht(this.asyncValidator(this));this._asyncValidationSubscription=f.subscribe(b=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(b,{emitEvent:h})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(h,f={}){this.errors=h,this._updateControlsErrors(!1!==f.emitEvent)}get(h){return function(y,h,f){if(null==h||(Array.isArray(h)||(h=h.split(".")),Array.isArray(h)&&0===h.length))return null;let b=y;return h.forEach($=>{b=b instanceof dn?b.controls.hasOwnProperty($)?b.controls[$]:null:b instanceof An&&b.at($)||null}),b}(this,h)}getError(h,f){const b=f?this.get(f):this;return b&&b.errors?b.errors[h]:null}hasError(h,f){return!!this.getError(h,f)}get root(){let h=this;for(;h._parent;)h=h._parent;return h}_updateControlsErrors(h){this.status=this._calculateStatus(),h&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(h)}_initObservables(){this.valueChanges=new p.EventEmitter,this.statusChanges=new p.EventEmitter}_calculateStatus(){return this._allControlsDisabled()?vr:this.errors?ir:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(jn)?jn:this._anyControlsHaveStatus(ir)?ir:rr}_anyControlsHaveStatus(h){return this._anyControls(f=>f.status===h)}_anyControlsDirty(){return this._anyControls(h=>h.dirty)}_anyControlsTouched(){return this._anyControls(h=>h.touched)}_updatePristine(h={}){this.pristine=!this._anyControlsDirty(),this._parent&&!h.onlySelf&&this._parent._updatePristine(h)}_updateTouched(h={}){this.touched=this._anyControlsTouched(),this._parent&&!h.onlySelf&&this._parent._updateTouched(h)}_isBoxedValue(h){return"object"==typeof h&&null!==h&&2===Object.keys(h).length&&"value"in h&&"disabled"in h}_registerOnCollectionChange(h){this._onCollectionChange=h}_setUpdateStrategy(h){Dr(h)&&null!=h.updateOn&&(this._updateOn=h.updateOn)}_parentMarkedDirty(h){return!h&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Ct extends Rr{constructor(h=null,f,b){super(qr(f),Yn(b,f)),this._onChange=[],this._pendingChange=!1,this._applyFormState(h),this._setUpdateStrategy(f),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(h,f={}){this.value=this._pendingValue=h,this._onChange.length&&!1!==f.emitModelToViewChange&&this._onChange.forEach(b=>b(this.value,!1!==f.emitViewToModelChange)),this.updateValueAndValidity(f)}patchValue(h,f={}){this.setValue(h,f)}reset(h=null,f={}){this._applyFormState(h),this.markAsPristine(f),this.markAsUntouched(f),this.setValue(this.value,f),this._pendingChange=!1}_updateValue(){}_anyControls(h){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(h){this._onChange.push(h)}_unregisterOnChange(h){tn(this._onChange,h)}registerOnDisabledChange(h){this._onDisabledChange.push(h)}_unregisterOnDisabledChange(h){tn(this._onDisabledChange,h)}_forEachChild(h){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(h){this._isBoxedValue(h)?(this.value=this._pendingValue=h.value,h.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=h}}class dn extends Rr{constructor(h,f,b){super(qr(f),Yn(b,f)),this.controls=h,this._initObservables(),this._setUpdateStrategy(f),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(h,f){return this.controls[h]?this.controls[h]:(this.controls[h]=f,f.setParent(this),f._registerOnCollectionChange(this._onCollectionChange),f)}addControl(h,f,b={}){this.registerControl(h,f),this.updateValueAndValidity({emitEvent:b.emitEvent}),this._onCollectionChange()}removeControl(h,f={}){this.controls[h]&&this.controls[h]._registerOnCollectionChange(()=>{}),delete this.controls[h],this.updateValueAndValidity({emitEvent:f.emitEvent}),this._onCollectionChange()}setControl(h,f,b={}){this.controls[h]&&this.controls[h]._registerOnCollectionChange(()=>{}),delete this.controls[h],f&&this.registerControl(h,f),this.updateValueAndValidity({emitEvent:b.emitEvent}),this._onCollectionChange()}contains(h){return this.controls.hasOwnProperty(h)&&this.controls[h].enabled}setValue(h,f={}){this._checkAllValuesPresent(h),Object.keys(h).forEach(b=>{this._throwIfControlMissing(b),this.controls[b].setValue(h[b],{onlySelf:!0,emitEvent:f.emitEvent})}),this.updateValueAndValidity(f)}patchValue(h,f={}){null!=h&&(Object.keys(h).forEach(b=>{this.controls[b]&&this.controls[b].patchValue(h[b],{onlySelf:!0,emitEvent:f.emitEvent})}),this.updateValueAndValidity(f))}reset(h={},f={}){this._forEachChild((b,$)=>{b.reset(h[$],{onlySelf:!0,emitEvent:f.emitEvent})}),this._updatePristine(f),this._updateTouched(f),this.updateValueAndValidity(f)}getRawValue(){return this._reduceChildren({},(h,f,b)=>(h[b]=f instanceof Ct?f.value:f.getRawValue(),h))}_syncPendingControls(){let h=this._reduceChildren(!1,(f,b)=>!!b._syncPendingControls()||f);return h&&this.updateValueAndValidity({onlySelf:!0}),h}_throwIfControlMissing(h){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[h])throw new Error(`Cannot find form control with name: ${h}.`)}_forEachChild(h){Object.keys(this.controls).forEach(f=>{const b=this.controls[f];b&&h(b,f)})}_setUpControls(){this._forEachChild(h=>{h.setParent(this),h._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(h){for(const f of Object.keys(this.controls)){const b=this.controls[f];if(this.contains(f)&&h(b))return!0}return!1}_reduceValue(){return this._reduceChildren({},(h,f,b)=>((f.enabled||this.disabled)&&(h[b]=f.value),h))}_reduceChildren(h,f){let b=h;return this._forEachChild(($,Ae)=>{b=f(b,$,Ae)}),b}_allControlsDisabled(){for(const h of Object.keys(this.controls))if(this.controls[h].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(h){this._forEachChild((f,b)=>{if(void 0===h[b])throw new Error(`Must supply a value for form control with name: '${b}'.`)})}}class An extends Rr{constructor(h,f,b){super(qr(f),Yn(b,f)),this.controls=h,this._initObservables(),this._setUpdateStrategy(f),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(h){return this.controls[h]}push(h,f={}){this.controls.push(h),this._registerControl(h),this.updateValueAndValidity({emitEvent:f.emitEvent}),this._onCollectionChange()}insert(h,f,b={}){this.controls.splice(h,0,f),this._registerControl(f),this.updateValueAndValidity({emitEvent:b.emitEvent})}removeAt(h,f={}){this.controls[h]&&this.controls[h]._registerOnCollectionChange(()=>{}),this.controls.splice(h,1),this.updateValueAndValidity({emitEvent:f.emitEvent})}setControl(h,f,b={}){this.controls[h]&&this.controls[h]._registerOnCollectionChange(()=>{}),this.controls.splice(h,1),f&&(this.controls.splice(h,0,f),this._registerControl(f)),this.updateValueAndValidity({emitEvent:b.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(h,f={}){this._checkAllValuesPresent(h),h.forEach((b,$)=>{this._throwIfControlMissing($),this.at($).setValue(b,{onlySelf:!0,emitEvent:f.emitEvent})}),this.updateValueAndValidity(f)}patchValue(h,f={}){null!=h&&(h.forEach((b,$)=>{this.at($)&&this.at($).patchValue(b,{onlySelf:!0,emitEvent:f.emitEvent})}),this.updateValueAndValidity(f))}reset(h=[],f={}){this._forEachChild((b,$)=>{b.reset(h[$],{onlySelf:!0,emitEvent:f.emitEvent})}),this._updatePristine(f),this._updateTouched(f),this.updateValueAndValidity(f)}getRawValue(){return this.controls.map(h=>h instanceof Ct?h.value:h.getRawValue())}clear(h={}){this.controls.length<1||(this._forEachChild(f=>f._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:h.emitEvent}))}_syncPendingControls(){let h=this.controls.reduce((f,b)=>!!b._syncPendingControls()||f,!1);return h&&this.updateValueAndValidity({onlySelf:!0}),h}_throwIfControlMissing(h){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(h))throw new Error(`Cannot find form control at index ${h}`)}_forEachChild(h){this.controls.forEach((f,b)=>{h(f,b)})}_updateValue(){this.value=this.controls.filter(h=>h.enabled||this.disabled).map(h=>h.value)}_anyControls(h){return this.controls.some(f=>f.enabled&&h(f))}_setUpControls(){this._forEachChild(h=>this._registerControl(h))}_checkAllValuesPresent(h){this._forEachChild((f,b)=>{if(void 0===h[b])throw new Error(`Must supply a value for form control at index: ${b}.`)})}_allControlsDisabled(){for(const h of this.controls)if(h.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(h){h.setParent(this),h._registerOnCollectionChange(this._onCollectionChange)}}const yn={provide:nt,useExisting:(0,p.forwardRef)(()=>Xn)},Hn=(()=>Promise.resolve(null))();let Xn=(()=>{class y extends nt{constructor(f,b){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new p.EventEmitter,this.form=new dn({},Wn(f),Kn(b))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(f){Hn.then(()=>{const b=this._findContainer(f.path);f.control=b.registerControl(f.name,f.control),kt(f.control,f),f.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(f)})}getControl(f){return this.form.get(f.path)}removeControl(f){Hn.then(()=>{const b=this._findContainer(f.path);b&&b.removeControl(f.name),tn(this._directives,f)})}addFormGroup(f){Hn.then(()=>{const b=this._findContainer(f.path),$=new dn({});Re($,f),b.registerControl(f.name,$),$.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(f){Hn.then(()=>{const b=this._findContainer(f.path);b&&b.removeControl(f.name)})}getFormGroup(f){return this.form.get(f.path)}updateModel(f,b){Hn.then(()=>{this.form.get(f.path).setValue(b)})}setValue(f){this.control.setValue(f)}onSubmit(f){return this.submitted=!0,_r(this.form,this._directives),this.ngSubmit.emit(f),!1}onReset(){this.resetForm()}resetForm(f){this.form.reset(f),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(f){return f.pop(),f.length?this.form.get(f):this.form}}return y.\u0275fac=function(f){return new(f||y)(p.\u0275\u0275directiveInject(K,10),p.\u0275\u0275directiveInject(q,10))},y.\u0275dir=p.\u0275\u0275defineDirective({type:y,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(f,b){1&f&&p.\u0275\u0275listener("submit",function(Ae){return b.onSubmit(Ae)})("reset",function(){return b.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[p.\u0275\u0275ProvidersFeature([yn]),p.\u0275\u0275InheritDefinitionFeature]}),y})(),Er=(()=>{class y extends nt{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Qn(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return y.\u0275fac=function(){let h;return function(b){return(h||(h=p.\u0275\u0275getInheritedFactory(y)))(b||y)}}(),y.\u0275dir=p.\u0275\u0275defineDirective({type:y,features:[p.\u0275\u0275InheritDefinitionFeature]}),y})();const rn={provide:nt,useExisting:(0,p.forwardRef)(()=>be)};let be=(()=>{class y extends Er{constructor(f,b,$){super(),this._parent=f,this._setValidators(b),this._setAsyncValidators($)}_checkParentType(){}}return y.\u0275fac=function(f){return new(f||y)(p.\u0275\u0275directiveInject(nt,5),p.\u0275\u0275directiveInject(K,10),p.\u0275\u0275directiveInject(q,10))},y.\u0275dir=p.\u0275\u0275defineDirective({type:y,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[p.\u0275\u0275ProvidersFeature([rn]),p.\u0275\u0275InheritDefinitionFeature]}),y})();const Ye={provide:Ut,useExisting:(0,p.forwardRef)(()=>$t)},bt=(()=>Promise.resolve(null))();let $t=(()=>{class y extends Ut{constructor(f,b,$,Ae){super(),this.control=new Ct,this._registered=!1,this.update=new p.EventEmitter,this._parent=f,this._setValidators(b),this._setAsyncValidators($),this.valueAccessor=Or(0,Ae)}ngOnChanges(f){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in f&&this._updateDisabled(f),Bn(f,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Qn(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(f){this.viewModel=f,this.update.emit(f)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){kt(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(f){bt.then(()=>{this.control.setValue(f,{emitViewToModelChange:!1})})}_updateDisabled(f){const b=f.isDisabled.currentValue,$=""===b||b&&"false"!==b;bt.then(()=>{$&&!this.control.disabled?this.control.disable():!$&&this.control.disabled&&this.control.enable()})}}return y.\u0275fac=function(f){return new(f||y)(p.\u0275\u0275directiveInject(nt,9),p.\u0275\u0275directiveInject(K,10),p.\u0275\u0275directiveInject(q,10),p.\u0275\u0275directiveInject(k,10))},y.\u0275dir=p.\u0275\u0275defineDirective({type:y,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[p.\u0275\u0275ProvidersFeature([Ye]),p.\u0275\u0275InheritDefinitionFeature,p.\u0275\u0275NgOnChangesFeature]}),y})(),Cn=(()=>{class y{}return y.\u0275fac=function(f){return new(f||y)},y.\u0275dir=p.\u0275\u0275defineDirective({type:y,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),y})();const Rt={provide:k,useExisting:(0,p.forwardRef)(()=>In),multi:!0};let In=(()=>{class y extends z{writeValue(f){this.setProperty("value",null==f?"":f)}registerOnChange(f){this.onChange=b=>{f(""==b?null:parseFloat(b))}}}return y.\u0275fac=function(){let h;return function(b){return(h||(h=p.\u0275\u0275getInheritedFactory(y)))(b||y)}}(),y.\u0275dir=p.\u0275\u0275defineDirective({type:y,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(f,b){1&f&&p.\u0275\u0275listener("input",function(Ae){return b.onChange(Ae.target.value)})("blur",function(){return b.onTouched()})},features:[p.\u0275\u0275ProvidersFeature([Rt]),p.\u0275\u0275InheritDefinitionFeature]}),y})();const Tt={provide:k,useExisting:(0,p.forwardRef)(()=>Cr),multi:!0};let Bt=(()=>{class y{}return y.\u0275fac=function(f){return new(f||y)},y.\u0275mod=p.\u0275\u0275defineNgModule({type:y}),y.\u0275inj=p.\u0275\u0275defineInjector({}),y})(),je=(()=>{class y{constructor(){this._accessors=[]}add(f,b){this._accessors.push([f,b])}remove(f){for(let b=this._accessors.length-1;b>=0;--b)if(this._accessors[b][1]===f)return void this._accessors.splice(b,1)}select(f){this._accessors.forEach(b=>{this._isSameGroup(b,f)&&b[1]!==f&&b[1].fireUncheck(f.value)})}_isSameGroup(f,b){return!!f[0].control&&f[0]._parent===b._control._parent&&f[1].name===b.name}}return y.\u0275fac=function(f){return new(f||y)},y.\u0275prov=p.\u0275\u0275defineInjectable({token:y,factory:y.\u0275fac,providedIn:Bt}),y})(),Cr=(()=>{class y extends z{constructor(f,b,$,Ae){super(f,b),this._registry=$,this._injector=Ae,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(Ut),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(f){this._state=f===this.value,this.setProperty("checked",this._state)}registerOnChange(f){this._fn=f,this.onChange=()=>{f(this.value),this._registry.select(this)}}fireUncheck(f){this.writeValue(f)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return y.\u0275fac=function(f){return new(f||y)(p.\u0275\u0275directiveInject(p.Renderer2),p.\u0275\u0275directiveInject(p.ElementRef),p.\u0275\u0275directiveInject(je),p.\u0275\u0275directiveInject(p.Injector))},y.\u0275dir=p.\u0275\u0275defineDirective({type:y,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(f,b){1&f&&p.\u0275\u0275listener("change",function(){return b.onChange()})("blur",function(){return b.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[p.\u0275\u0275ProvidersFeature([Tt]),p.\u0275\u0275InheritDefinitionFeature]}),y})();const br={provide:k,useExisting:(0,p.forwardRef)(()=>or),multi:!0};let or=(()=>{class y extends z{writeValue(f){this.setProperty("value",parseFloat(f))}registerOnChange(f){this.onChange=b=>{f(""==b?null:parseFloat(b))}}}return y.\u0275fac=function(){let h;return function(b){return(h||(h=p.\u0275\u0275getInheritedFactory(y)))(b||y)}}(),y.\u0275dir=p.\u0275\u0275defineDirective({type:y,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(f,b){1&f&&p.\u0275\u0275listener("change",function(Ae){return b.onChange(Ae.target.value)})("input",function(Ae){return b.onChange(Ae.target.value)})("blur",function(){return b.onTouched()})},features:[p.\u0275\u0275ProvidersFeature([br]),p.\u0275\u0275InheritDefinitionFeature]}),y})();const $n=new p.InjectionToken("NgModelWithFormControlWarning"),on={provide:Ut,useExisting:(0,p.forwardRef)(()=>Sn)};let Sn=(()=>{class y extends Ut{constructor(f,b,$,Ae){super(),this._ngModelWarningConfig=Ae,this.update=new p.EventEmitter,this._ngModelWarningSent=!1,this._setValidators(f),this._setAsyncValidators(b),this.valueAccessor=Or(0,$)}set isDisabled(f){}ngOnChanges(f){if(this._isControlChanged(f)){const b=f.form.previousValue;b&&It(b,this,!1),kt(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Bn(f,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&It(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(f){this.viewModel=f,this.update.emit(f)}_isControlChanged(f){return f.hasOwnProperty("form")}}return y._ngModelWarningSentOnce=!1,y.\u0275fac=function(f){return new(f||y)(p.\u0275\u0275directiveInject(K,10),p.\u0275\u0275directiveInject(q,10),p.\u0275\u0275directiveInject(k,10),p.\u0275\u0275directiveInject($n,8))},y.\u0275dir=p.\u0275\u0275defineDirective({type:y,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[p.\u0275\u0275ProvidersFeature([on]),p.\u0275\u0275InheritDefinitionFeature,p.\u0275\u0275NgOnChangesFeature]}),y})();const Jn={provide:nt,useExisting:(0,p.forwardRef)(()=>an)};let an=(()=>{class y extends nt{constructor(f,b){super(),this.validators=f,this.asyncValidators=b,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new p.EventEmitter,this._setValidators(f),this._setAsyncValidators(b)}ngOnChanges(f){this._checkFormPresent(),f.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(x(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(f){const b=this.form.get(f.path);return kt(b,f),b.updateValueAndValidity({emitEvent:!1}),this.directives.push(f),b}getControl(f){return this.form.get(f.path)}removeControl(f){It(f.control||null,f,!1),tn(this.directives,f)}addFormGroup(f){this._setUpFormContainer(f)}removeFormGroup(f){this._cleanUpFormContainer(f)}getFormGroup(f){return this.form.get(f.path)}addFormArray(f){this._setUpFormContainer(f)}removeFormArray(f){this._cleanUpFormContainer(f)}getFormArray(f){return this.form.get(f.path)}updateModel(f,b){this.form.get(f.path).setValue(b)}onSubmit(f){return this.submitted=!0,_r(this.form,this.directives),this.ngSubmit.emit(f),!1}onReset(){this.resetForm()}resetForm(f){this.form.reset(f),this.submitted=!1}_updateDomValue(){this.directives.forEach(f=>{const b=f.control,$=this.form.get(f.path);b!==$&&(It(b||null,f),$ instanceof Ct&&(kt($,f),f.control=$))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(f){const b=this.form.get(f.path);Re(b,f),b.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(f){if(this.form){const b=this.form.get(f.path);b&&function(y,h){return x(y,h)}(b,f)&&b.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){en(this.form,this),this._oldForm&&x(this._oldForm,this)}_checkFormPresent(){}}return y.\u0275fac=function(f){return new(f||y)(p.\u0275\u0275directiveInject(K,10),p.\u0275\u0275directiveInject(q,10))},y.\u0275dir=p.\u0275\u0275defineDirective({type:y,selectors:[["","formGroup",""]],hostBindings:function(f,b){1&f&&p.\u0275\u0275listener("submit",function(Ae){return b.onSubmit(Ae)})("reset",function(){return b.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[p.\u0275\u0275ProvidersFeature([Jn]),p.\u0275\u0275InheritDefinitionFeature,p.\u0275\u0275NgOnChangesFeature]}),y})();const ft={provide:nt,useExisting:(0,p.forwardRef)(()=>Yr)};let Yr=(()=>{class y extends Er{constructor(f,b,$){super(),this._parent=f,this._setValidators(b),this._setAsyncValidators($)}_checkParentType(){fn(this._parent)}}return y.\u0275fac=function(f){return new(f||y)(p.\u0275\u0275directiveInject(nt,13),p.\u0275\u0275directiveInject(K,10),p.\u0275\u0275directiveInject(q,10))},y.\u0275dir=p.\u0275\u0275defineDirective({type:y,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[p.\u0275\u0275ProvidersFeature([ft]),p.\u0275\u0275InheritDefinitionFeature]}),y})();const bi={provide:nt,useExisting:(0,p.forwardRef)(()=>ln)};let ln=(()=>{class y extends nt{constructor(f,b,$){super(),this._parent=f,this._setValidators(b),this._setAsyncValidators($)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Qn(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){fn(this._parent)}}return y.\u0275fac=function(f){return new(f||y)(p.\u0275\u0275directiveInject(nt,13),p.\u0275\u0275directiveInject(K,10),p.\u0275\u0275directiveInject(q,10))},y.\u0275dir=p.\u0275\u0275defineDirective({type:y,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[p.\u0275\u0275ProvidersFeature([bi]),p.\u0275\u0275InheritDefinitionFeature]}),y})();function fn(y){return!(y instanceof Yr||y instanceof an||y instanceof ln)}const fi={provide:Ut,useExisting:(0,p.forwardRef)(()=>ar)};let ar=(()=>{class y extends Ut{constructor(f,b,$,Ae,_t){super(),this._ngModelWarningConfig=_t,this._added=!1,this.update=new p.EventEmitter,this._ngModelWarningSent=!1,this._parent=f,this._setValidators(b),this._setAsyncValidators($),this.valueAccessor=Or(0,Ae)}set isDisabled(f){}ngOnChanges(f){this._added||this._setUpControl(),Bn(f,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(f){this.viewModel=f,this.update.emit(f)}get path(){return Qn(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return y._ngModelWarningSentOnce=!1,y.\u0275fac=function(f){return new(f||y)(p.\u0275\u0275directiveInject(nt,13),p.\u0275\u0275directiveInject(K,10),p.\u0275\u0275directiveInject(q,10),p.\u0275\u0275directiveInject(k,10),p.\u0275\u0275directiveInject($n,8))},y.\u0275dir=p.\u0275\u0275defineDirective({type:y,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[p.\u0275\u0275ProvidersFeature([fi]),p.\u0275\u0275InheritDefinitionFeature,p.\u0275\u0275NgOnChangesFeature]}),y})();const wr={provide:k,useExisting:(0,p.forwardRef)(()=>xr),multi:!0};function _n(y,h){return null==y?`${h}`:(h&&"object"==typeof h&&(h="Object"),`${y}: ${h}`.slice(0,50))}let xr=(()=>{class y extends z{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(f){this._compareWith=f}writeValue(f){this.value=f;const b=this._getOptionId(f);null==b&&this.setProperty("selectedIndex",-1);const $=_n(b,f);this.setProperty("value",$)}registerOnChange(f){this.onChange=b=>{this.value=this._getOptionValue(b),f(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(f){for(const b of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(b),f))return b;return null}_getOptionValue(f){const b=function(y){return y.split(":")[0]}(f);return this._optionMap.has(b)?this._optionMap.get(b):f}}return y.\u0275fac=function(){let h;return function(b){return(h||(h=p.\u0275\u0275getInheritedFactory(y)))(b||y)}}(),y.\u0275dir=p.\u0275\u0275defineDirective({type:y,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(f,b){1&f&&p.\u0275\u0275listener("change",function(Ae){return b.onChange(Ae.target.value)})("blur",function(){return b.onTouched()})},inputs:{compareWith:"compareWith"},features:[p.\u0275\u0275ProvidersFeature([wr]),p.\u0275\u0275InheritDefinitionFeature]}),y})(),Mr=(()=>{class y{constructor(f,b,$){this._element=f,this._renderer=b,this._select=$,this._select&&(this.id=this._select._registerOption())}set ngValue(f){null!=this._select&&(this._select._optionMap.set(this.id,f),this._setElementValue(_n(this.id,f)),this._select.writeValue(this._select.value))}set value(f){this._setElementValue(f),this._select&&this._select.writeValue(this._select.value)}_setElementValue(f){this._renderer.setProperty(this._element.nativeElement,"value",f)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return y.\u0275fac=function(f){return new(f||y)(p.\u0275\u0275directiveInject(p.ElementRef),p.\u0275\u0275directiveInject(p.Renderer2),p.\u0275\u0275directiveInject(xr,9))},y.\u0275dir=p.\u0275\u0275defineDirective({type:y,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),y})();const Xr={provide:k,useExisting:(0,p.forwardRef)(()=>Jr),multi:!0};function Lr(y,h){return null==y?`${h}`:("string"==typeof h&&(h=`'${h}'`),h&&"object"==typeof h&&(h="Object"),`${y}: ${h}`.slice(0,50))}let Jr=(()=>{class y extends z{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(f){this._compareWith=f}writeValue(f){let b;if(this.value=f,Array.isArray(f)){const $=f.map(Ae=>this._getOptionId(Ae));b=(Ae,_t)=>{Ae._setSelected($.indexOf(_t.toString())>-1)}}else b=($,Ae)=>{$._setSelected(!1)};this._optionMap.forEach(b)}registerOnChange(f){this.onChange=b=>{const $=[],Ae=b.selectedOptions;if(void 0!==Ae){const _t=Ae;for(let at=0;at<_t.length;at++){const o=this._getOptionValue(_t[at].value);$.push(o)}}else{const _t=b.options;for(let at=0;at<_t.length;at++){const D=_t[at];if(D.selected){const o=this._getOptionValue(D.value);$.push(o)}}}this.value=$,f($)}}_registerOption(f){const b=(this._idCounter++).toString();return this._optionMap.set(b,f),b}_getOptionId(f){for(const b of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(b)._value,f))return b;return null}_getOptionValue(f){const b=function(y){return y.split(":")[0]}(f);return this._optionMap.has(b)?this._optionMap.get(b)._value:f}}return y.\u0275fac=function(){let h;return function(b){return(h||(h=p.\u0275\u0275getInheritedFactory(y)))(b||y)}}(),y.\u0275dir=p.\u0275\u0275defineDirective({type:y,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(f,b){1&f&&p.\u0275\u0275listener("change",function(Ae){return b.onChange(Ae.target)})("blur",function(){return b.onTouched()})},inputs:{compareWith:"compareWith"},features:[p.\u0275\u0275ProvidersFeature([Xr]),p.\u0275\u0275InheritDefinitionFeature]}),y})(),Mi=(()=>{class y{constructor(f,b,$){this._element=f,this._renderer=b,this._select=$,this._select&&(this.id=this._select._registerOption(this))}set ngValue(f){null!=this._select&&(this._value=f,this._setElementValue(Lr(this.id,f)),this._select.writeValue(this._select.value))}set value(f){this._select?(this._value=f,this._setElementValue(Lr(this.id,f)),this._select.writeValue(this._select.value)):this._setElementValue(f)}_setElementValue(f){this._renderer.setProperty(this._element.nativeElement,"value",f)}_setSelected(f){this._renderer.setProperty(this._element.nativeElement,"selected",f)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return y.\u0275fac=function(f){return new(f||y)(p.\u0275\u0275directiveInject(p.ElementRef),p.\u0275\u0275directiveInject(p.Renderer2),p.\u0275\u0275directiveInject(Jr,9))},y.\u0275dir=p.\u0275\u0275defineDirective({type:y,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),y})();function hi(y){return"number"==typeof y?y:parseInt(y,10)}function Ai(y){return"number"==typeof y?y:parseFloat(y)}let pi=(()=>{class y{constructor(){this._validator=cn}ngOnChanges(f){if(this.inputName in f){const b=this.normalizeInput(f[this.inputName].currentValue);this._validator=this.enabled()?this.createValidator(b):cn,this._onChange&&this._onChange()}}validate(f){return this._validator(f)}registerOnValidatorChange(f){this._onChange=f}enabled(){return null!=this[this.inputName]}}return y.\u0275fac=function(f){return new(f||y)},y.\u0275dir=p.\u0275\u0275defineDirective({type:y,features:[p.\u0275\u0275NgOnChangesFeature]}),y})();const ki={provide:K,useExisting:(0,p.forwardRef)(()=>gi),multi:!0};let gi=(()=>{class y extends pi{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=f=>Ai(f),this.createValidator=f=>zt(f)}}return y.\u0275fac=function(){let h;return function(b){return(h||(h=p.\u0275\u0275getInheritedFactory(y)))(b||y)}}(),y.\u0275dir=p.\u0275\u0275defineDirective({type:y,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(f,b){2&f&&p.\u0275\u0275attribute("max",b.enabled()?b.max:null)},inputs:{max:"max"},features:[p.\u0275\u0275ProvidersFeature([ki]),p.\u0275\u0275InheritDefinitionFeature]}),y})();const Qi={provide:K,useExisting:(0,p.forwardRef)(()=>Ii),multi:!0};let Ii=(()=>{class y extends pi{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=f=>Ai(f),this.createValidator=f=>it(f)}}return y.\u0275fac=function(){let h;return function(b){return(h||(h=p.\u0275\u0275getInheritedFactory(y)))(b||y)}}(),y.\u0275dir=p.\u0275\u0275defineDirective({type:y,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(f,b){2&f&&p.\u0275\u0275attribute("min",b.enabled()?b.min:null)},inputs:{min:"min"},features:[p.\u0275\u0275ProvidersFeature([Qi]),p.\u0275\u0275InheritDefinitionFeature]}),y})();const Zi={provide:K,useExisting:(0,p.forwardRef)(()=>Vr),multi:!0},Bi={provide:K,useExisting:(0,p.forwardRef)(()=>Ar),multi:!0};let Vr=(()=>{class y{constructor(){this._required=!1}get required(){return this._required}set required(f){this._required=null!=f&&!1!==f&&"false"!=`${f}`,this._onChange&&this._onChange()}validate(f){return this.required?Oe(f):null}registerOnValidatorChange(f){this._onChange=f}}return y.\u0275fac=function(f){return new(f||y)},y.\u0275dir=p.\u0275\u0275defineDirective({type:y,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(f,b){2&f&&p.\u0275\u0275attribute("required",b.required?"":null)},inputs:{required:"required"},features:[p.\u0275\u0275ProvidersFeature([Zi])]}),y})(),Ar=(()=>{class y extends Vr{validate(f){return this.required?Pt(f):null}}return y.\u0275fac=function(){let h;return function(b){return(h||(h=p.\u0275\u0275getInheritedFactory(y)))(b||y)}}(),y.\u0275dir=p.\u0275\u0275defineDirective({type:y,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(f,b){2&f&&p.\u0275\u0275attribute("required",b.required?"":null)},features:[p.\u0275\u0275ProvidersFeature([Bi]),p.\u0275\u0275InheritDefinitionFeature]}),y})();const Yi={provide:K,useExisting:(0,p.forwardRef)(()=>Si),multi:!0};let Si=(()=>{class y{constructor(){this._enabled=!1}set email(f){this._enabled=""===f||!0===f||"true"===f,this._onChange&&this._onChange()}validate(f){return this._enabled?Lt(f):null}registerOnValidatorChange(f){this._onChange=f}}return y.\u0275fac=function(f){return new(f||y)},y.\u0275dir=p.\u0275\u0275defineDirective({type:y,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[p.\u0275\u0275ProvidersFeature([Yi])]}),y})();const g={provide:K,useExisting:(0,p.forwardRef)(()=>C),multi:!0};let C=(()=>{class y extends pi{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=f=>hi(f),this.createValidator=f=>Ie(f)}}return y.\u0275fac=function(){let h;return function(b){return(h||(h=p.\u0275\u0275getInheritedFactory(y)))(b||y)}}(),y.\u0275dir=p.\u0275\u0275defineDirective({type:y,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(f,b){2&f&&p.\u0275\u0275attribute("minlength",b.enabled()?b.minlength:null)},inputs:{minlength:"minlength"},features:[p.\u0275\u0275ProvidersFeature([g]),p.\u0275\u0275InheritDefinitionFeature]}),y})();const m={provide:K,useExisting:(0,p.forwardRef)(()=>w),multi:!0};let w=(()=>{class y extends pi{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=f=>hi(f),this.createValidator=f=>rt(f)}}return y.\u0275fac=function(){let h;return function(b){return(h||(h=p.\u0275\u0275getInheritedFactory(y)))(b||y)}}(),y.\u0275dir=p.\u0275\u0275defineDirective({type:y,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(f,b){2&f&&p.\u0275\u0275attribute("maxlength",b.enabled()?b.maxlength:null)},inputs:{maxlength:"maxlength"},features:[p.\u0275\u0275ProvidersFeature([m]),p.\u0275\u0275InheritDefinitionFeature]}),y})();const P={provide:K,useExisting:(0,p.forwardRef)(()=>Z),multi:!0};let Z=(()=>{class y{constructor(){this._validator=cn}ngOnChanges(f){"pattern"in f&&(this._createValidator(),this._onChange&&this._onChange())}validate(f){return this._validator(f)}registerOnValidatorChange(f){this._onChange=f}_createValidator(){this._validator=gn(this.pattern)}}return y.\u0275fac=function(f){return new(f||y)},y.\u0275dir=p.\u0275\u0275defineDirective({type:y,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(f,b){2&f&&p.\u0275\u0275attribute("pattern",b.pattern?b.pattern:null)},inputs:{pattern:"pattern"},features:[p.\u0275\u0275ProvidersFeature([P]),p.\u0275\u0275NgOnChangesFeature]}),y})(),gt=(()=>{class y{}return y.\u0275fac=function(f){return new(f||y)},y.\u0275mod=p.\u0275\u0275defineNgModule({type:y}),y.\u0275inj=p.\u0275\u0275defineInjector({imports:[[Bt]]}),y})(),mt=(()=>{class y{}return y.\u0275fac=function(f){return new(f||y)},y.\u0275mod=p.\u0275\u0275defineNgModule({type:y}),y.\u0275inj=p.\u0275\u0275defineInjector({imports:[gt]}),y})(),st=(()=>{class y{static withConfig(f){return{ngModule:y,providers:[{provide:$n,useValue:f.warnOnNgModelWithFormControl}]}}}return y.\u0275fac=function(f){return new(f||y)},y.\u0275mod=p.\u0275\u0275defineNgModule({type:y}),y.\u0275inj=p.\u0275\u0275defineInjector({imports:[gt]}),y})(),Dt=(()=>{class y{group(f,b=null){const $=this._reduceControls(f);let at,Ae=null,_t=null;return null!=b&&(function(y){return void 0!==y.asyncValidators||void 0!==y.validators||void 0!==y.updateOn}(b)?(Ae=null!=b.validators?b.validators:null,_t=null!=b.asyncValidators?b.asyncValidators:null,at=null!=b.updateOn?b.updateOn:void 0):(Ae=null!=b.validator?b.validator:null,_t=null!=b.asyncValidator?b.asyncValidator:null)),new dn($,{asyncValidators:_t,updateOn:at,validators:Ae})}control(f,b,$){return new Ct(f,b,$)}array(f,b,$){const Ae=f.map(_t=>this._createControl(_t));return new An(Ae,b,$)}_reduceControls(f){const b={};return Object.keys(f).forEach($=>{b[$]=this._createControl(f[$])}),b}_createControl(f){return f instanceof Ct||f instanceof dn||f instanceof An?f:Array.isArray(f)?this.control(f[0],f.length>1?f[1]:null,f.length>2?f[2]:null):this.control(f)}}return y.\u0275fac=function(f){return new(f||y)},y.\u0275prov=p.\u0275\u0275defineInjectable({token:y,factory:y.\u0275fac,providedIn:st}),y})();const Qt=new p.Version("13.1.1")},278:(qe,de,V)=>{"use strict";V.r(de),V.d(de,{ANIMATION_MODULE_TYPE:()=>f,BrowserAnimationsModule:()=>_t,NoopAnimationsModule:()=>at,\u0275AnimationRenderer:()=>mt,\u0275AnimationRendererFactory:()=>vt,\u0275BrowserAnimationBuilder:()=>m,\u0275BrowserAnimationFactory:()=>w,\u0275InjectableAnimationEngine:()=>Dt});var p=V(461),N=V(800),ie=V(19);function ge(){return"undefined"!=typeof window&&void 0!==window.document}function ae(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Q(D){switch(D.length){case 0:return new ie.NoopAnimationPlayer;case 1:return D[0];default:return new ie.\u0275AnimationGroupPlayer(D)}}function ve(D,o,l,d,v={},M={}){const S=[],T=[];let U=-1,J=null;if(d.forEach(Ce=>{const Se=Ce.offset,Xe=Se==U,ot=Xe&&J||{};Object.keys(Ce).forEach(he=>{let et=he,lt=Ce[he];if("offset"!==he)switch(et=o.normalizePropertyName(et,S),lt){case ie.\u0275PRE_STYLE:lt=v[he];break;case ie.AUTO_STYLE:lt=M[he];break;default:lt=o.normalizeStyleValue(he,et,lt,S)}ot[et]=lt}),Xe||T.push(ot),J=ot,U=Se}),S.length){const Ce="\n - ";throw new Error(`Unable to animate due to the following errors:${Ce}${S.join(Ce)}`)}return T}function B(D,o,l,d){switch(o){case"start":D.onStart(()=>d(l&&pe(l,"start",D)));break;case"done":D.onDone(()=>d(l&&pe(l,"done",D)));break;case"destroy":D.onDestroy(()=>d(l&&pe(l,"destroy",D)))}}function pe(D,o,l){const d=l.totalTime,M=te(D.element,D.triggerName,D.fromState,D.toState,o||D.phaseName,null==d?D.totalTime:d,!!l.disabled),S=D._data;return null!=S&&(M._data=S),M}function te(D,o,l,d,v="",M=0,S){return{element:D,triggerName:o,fromState:l,toState:d,phaseName:v,totalTime:M,disabled:!!S}}function le(D,o,l){let d;return D instanceof Map?(d=D.get(o),d||D.set(o,d=l)):(d=D[o],d||(d=D[o]=l)),d}function Ue(D){const o=D.indexOf(":");return[D.substring(1,o),D.substr(o+1)]}let Je=(D,o)=>!1,me=(D,o,l)=>[];(ae()||"undefined"!=typeof Element)&&(Je=ge()?(D,o)=>{for(;o&&o!==document.documentElement;){if(o===D)return!0;o=o.parentNode||o.host}return!1}:(D,o)=>D.contains(o),me=(D,o,l)=>{let d=[];if(l){const v=D.querySelectorAll(o);for(let M=0;M<v.length;M++)d.push(v[M])}else{const v=D.querySelector(o);v&&d.push(v)}return d});let ee=null,De=!1;function fe(D){ee||(ee=("undefined"!=typeof document?document.body:null)||{},De=!!ee.style&&"WebkitAppearance"in ee.style);let o=!0;return ee.style&&!function(D){return"ebkit"==D.substring(1,6)}(D)&&(o=D in ee.style,!o&&De&&(o="Webkit"+D.charAt(0).toUpperCase()+D.substr(1)in ee.style)),o}const z=Je,k=me;function ye(D){const o={};return Object.keys(D).forEach(l=>{const d=l.replace(/([a-z])([A-Z])/g,"$1-$2");o[d]=D[l]}),o}let Qe=(()=>{class D{validateStyleProperty(l){return fe(l)}matchesElement(l,d){return!1}containsElement(l,d){return z(l,d)}query(l,d,v){return k(l,d,v)}computeStyle(l,d,v){return v||""}animate(l,d,v,M,S,T=[],U){return new ie.NoopAnimationPlayer(v,M)}}return D.\u0275fac=function(l){return new(l||D)},D.\u0275prov=p.\u0275\u0275defineInjectable({token:D,factory:D.\u0275fac}),D})(),Fe=(()=>{class D{}return D.NOOP=new Qe,D})();const G="ng-enter",H="ng-leave",K="ng-trigger",q=".ng-trigger",oe="ng-animating",_e=".ng-animating";function it(D){if("number"==typeof D)return D;const o=D.match(/^(-?[\.\d]+)(m?s)/);return!o||o.length<2?0:zt(parseFloat(o[1]),o[2])}function zt(D,o){return"s"===o?1e3*D:D}function Oe(D,o,l){return D.hasOwnProperty("duration")?D:function(D,o,l){let v,M=0,S="";if("string"==typeof D){const T=D.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===T)return o.push(`The provided timing value "${D}" is invalid.`),{duration:0,delay:0,easing:""};v=zt(parseFloat(T[1]),T[2]);const U=T[3];null!=U&&(M=zt(parseFloat(U),T[4]));const J=T[5];J&&(S=J)}else v=D;if(!l){let T=!1,U=o.length;v<0&&(o.push("Duration values below 0 are not allowed for this animation step."),T=!0),M<0&&(o.push("Delay values below 0 are not allowed for this animation step."),T=!0),T&&o.splice(U,0,`The provided timing value "${D}" is invalid.`)}return{duration:v,delay:M,easing:S}}(D,o,l)}function Lt(D,o={}){return Object.keys(D).forEach(l=>{o[l]=D[l]}),o}function rt(D,o,l={}){if(o)for(let d in D)l[d]=D[d];else Lt(D,l);return l}function gn(D,o,l){return l?o+":"+l+";":""}function cn(D){let o="";for(let l=0;l<D.style.length;l++){const d=D.style.item(l);o+=gn(0,d,D.style.getPropertyValue(d))}for(const l in D.style)D.style.hasOwnProperty(l)&&!l.startsWith("_")&&(o+=gn(0,di(l),D.style[l]));D.setAttribute("style",o)}function Et(D,o,l){D.style&&(Object.keys(o).forEach(d=>{const v=Kn(d);l&&!l.hasOwnProperty(d)&&(l[d]=D.style[v]),D.style[v]=o[d]}),ae()&&cn(D))}function Ht(D,o){D.style&&(Object.keys(o).forEach(l=>{const d=Kn(l);D.style[d]=""}),ae()&&cn(D))}function Ft(D){return Array.isArray(D)?1==D.length?D[0]:(0,ie.sequence)(D):D}const pr=new RegExp("{{\\s*(.+?)\\s*}}","g");function zr(D){let o=[];if("string"==typeof D){let l;for(;l=pr.exec(D);)o.push(l[1]);pr.lastIndex=0}return o}function Wt(D,o,l){const d=D.toString(),v=d.replace(pr,(M,S)=>{let T=o[S];return o.hasOwnProperty(S)||(l.push(`Please provide a value for the animation param ${S}`),T=""),T.toString()});return v==d?D:v}function Wn(D){const o=[];let l=D.next();for(;!l.done;)o.push(l.value),l=D.next();return o}const Wr=/-+([a-z0-9])/g;function Kn(D){return D.replace(Wr,(...o)=>o[1].toUpperCase())}function di(D){return D.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Kt(D,o){return 0===D||0===o}function tr(D,o,l){const d=Object.keys(l);if(d.length&&o.length){let M=o[0],S=[];if(d.forEach(T=>{M.hasOwnProperty(T)||S.push(T),M[T]=l[T]}),S.length)for(var v=1;v<o.length;v++){let T=o[v];S.forEach(function(U){T[U]=nr(D,U)})}}return o}function Vt(D,o,l){switch(o.type){case 7:return D.visitTrigger(o,l);case 0:return D.visitState(o,l);case 1:return D.visitTransition(o,l);case 2:return D.visitSequence(o,l);case 3:return D.visitGroup(o,l);case 4:return D.visitAnimate(o,l);case 5:return D.visitKeyframes(o,l);case 6:return D.visitStyle(o,l);case 8:return D.visitReference(o,l);case 9:return D.visitAnimateChild(o,l);case 10:return D.visitAnimateRef(o,l);case 11:return D.visitQuery(o,l);case 12:return D.visitStagger(o,l);default:throw new Error(`Unable to resolve animation metadata node #${o.type}`)}}function nr(D,o){return window.getComputedStyle(D)[o]}function pt(D,o){const l=[];return"string"==typeof D?D.split(/\s*,\s*/).forEach(d=>function(D,o,l){if(":"==D[0]){const U=function(D,o){switch(D){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(l,d)=>parseFloat(d)>parseFloat(l);case":decrement":return(l,d)=>parseFloat(d)<parseFloat(l);default:return o.push(`The transition alias value "${D}" is not supported`),"* => *"}}(D,l);if("function"==typeof U)return void o.push(U);D=U}const d=D.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==d||d.length<4)return l.push(`The provided transition expression "${D}" is not supported`),o;const v=d[1],M=d[2],S=d[3];o.push($e(v,S));"<"==M[0]&&!("*"==v&&"*"==S)&&o.push($e(S,v))}(d,l,o)):l.push(D),l}const nt=new Set(["true","1"]),Me=new Set(["false","0"]);function $e(D,o){const l=nt.has(D)||Me.has(D),d=nt.has(o)||Me.has(o);return(v,M)=>{let S="*"==D||D==v,T="*"==o||o==M;return!S&&l&&"boolean"==typeof v&&(S=v?nt.has(D):Me.has(D)),!T&&d&&"boolean"==typeof M&&(T=M?nt.has(o):Me.has(o)),S&&T}}const Tn=new RegExp("s*:selfs*,?","g");function Jt(D,o,l){return new qt(D).build(o,l)}class qt{constructor(o){this._driver=o}build(o,l){const d=new gr(l);return this._resetContextStyleTimingState(d),Vt(this,Ft(o),d)}_resetContextStyleTimingState(o){o.currentQuerySelector="",o.collectedStyles={},o.collectedStyles[""]={},o.currentTime=0}visitTrigger(o,l){let d=l.queryCount=0,v=l.depCount=0;const M=[],S=[];return"@"==o.name.charAt(0)&&l.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),o.definitions.forEach(T=>{if(this._resetContextStyleTimingState(l),0==T.type){const U=T,J=U.name;J.toString().split(/\s*,\s*/).forEach(Ce=>{U.name=Ce,M.push(this.visitState(U,l))}),U.name=J}else if(1==T.type){const U=this.visitTransition(T,l);d+=U.queryCount,v+=U.depCount,S.push(U)}else l.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:o.name,states:M,transitions:S,queryCount:d,depCount:v,options:null}}visitState(o,l){const d=this.visitStyle(o.styles,l),v=o.options&&o.options.params||null;if(d.containsDynamicStyles){const M=new Set,S=v||{};if(d.styles.forEach(T=>{if(Pr(T)){const U=T;Object.keys(U).forEach(J=>{zr(U[J]).forEach(Ce=>{S.hasOwnProperty(Ce)||M.add(Ce)})})}}),M.size){const T=Wn(M.values());l.errors.push(`state("${o.name}", ...) must define default values for all the following style substitutions: ${T.join(", ")}`)}}return{type:0,name:o.name,style:d,options:v?{params:v}:null}}visitTransition(o,l){l.queryCount=0,l.depCount=0;const d=Vt(this,Ft(o.animation),l);return{type:1,matchers:pt(o.expr,l.errors),animation:d,queryCount:l.queryCount,depCount:l.depCount,options:Fn(o.options)}}visitSequence(o,l){return{type:2,steps:o.steps.map(d=>Vt(this,d,l)),options:Fn(o.options)}}visitGroup(o,l){const d=l.currentTime;let v=0;const M=o.steps.map(S=>{l.currentTime=d;const T=Vt(this,S,l);return v=Math.max(v,l.currentTime),T});return l.currentTime=v,{type:3,steps:M,options:Fn(o.options)}}visitAnimate(o,l){const d=function(D,o){let l=null;if(D.hasOwnProperty("duration"))l=D;else if("number"==typeof D)return Nn(Oe(D,o).duration,0,"");const d=D;if(d.split(/\s+/).some(M=>"{"==M.charAt(0)&&"{"==M.charAt(1))){const M=Nn(0,0,"");return M.dynamic=!0,M.strValue=d,M}return l=l||Oe(d,o),Nn(l.duration,l.delay,l.easing)}(o.timings,l.errors);l.currentAnimateTimings=d;let v,M=o.styles?o.styles:(0,ie.style)({});if(5==M.type)v=this.visitKeyframes(M,l);else{let S=o.styles,T=!1;if(!S){T=!0;const J={};d.easing&&(J.easing=d.easing),S=(0,ie.style)(J)}l.currentTime+=d.duration+d.delay;const U=this.visitStyle(S,l);U.isEmptyStep=T,v=U}return l.currentAnimateTimings=null,{type:4,timings:d,style:v,options:null}}visitStyle(o,l){const d=this._makeStyleAst(o,l);return this._validateStyleAst(d,l),d}_makeStyleAst(o,l){const d=[];Array.isArray(o.styles)?o.styles.forEach(S=>{"string"==typeof S?S==ie.AUTO_STYLE?d.push(S):l.errors.push(`The provided style string value ${S} is not allowed.`):d.push(S)}):d.push(o.styles);let v=!1,M=null;return d.forEach(S=>{if(Pr(S)){const T=S,U=T.easing;if(U&&(M=U,delete T.easing),!v)for(let J in T)if(T[J].toString().indexOf("{{")>=0){v=!0;break}}}),{type:6,styles:d,easing:M,offset:o.offset,containsDynamicStyles:v,options:null}}_validateStyleAst(o,l){const d=l.currentAnimateTimings;let v=l.currentTime,M=l.currentTime;d&&M>0&&(M-=d.duration+d.delay),o.styles.forEach(S=>{"string"!=typeof S&&Object.keys(S).forEach(T=>{if(!this._driver.validateStyleProperty(T))return void l.errors.push(`The provided animation property "${T}" is not a supported CSS property for animations`);const U=l.collectedStyles[l.currentQuerySelector],J=U[T];let Ce=!0;J&&(M!=v&&M>=J.startTime&&v<=J.endTime&&(l.errors.push(`The CSS property "${T}" that exists between the times of "${J.startTime}ms" and "${J.endTime}ms" is also being animated in a parallel animation between the times of "${M}ms" and "${v}ms"`),Ce=!1),M=J.startTime),Ce&&(U[T]={startTime:M,endTime:v}),l.options&&function(D,o,l){const d=o.params||{},v=zr(D);v.length&&v.forEach(M=>{d.hasOwnProperty(M)||l.push(`Unable to resolve the local animation param ${M} in the given list of values`)})}(S[T],l.options,l.errors)})})}visitKeyframes(o,l){const d={type:5,styles:[],options:null};if(!l.currentAnimateTimings)return l.errors.push("keyframes() must be placed inside of a call to animate()"),d;let M=0;const S=[];let T=!1,U=!1,J=0;const Ce=o.steps.map(jt=>{const Gt=this._makeStyleAst(jt,l);let bn=null!=Gt.offset?Gt.offset:function(D){if("string"==typeof D)return null;let o=null;if(Array.isArray(D))D.forEach(l=>{if(Pr(l)&&l.hasOwnProperty("offset")){const d=l;o=parseFloat(d.offset),delete d.offset}});else if(Pr(D)&&D.hasOwnProperty("offset")){const l=D;o=parseFloat(l.offset),delete l.offset}return o}(Gt.styles),hn=0;return null!=bn&&(M++,hn=Gt.offset=bn),U=U||hn<0||hn>1,T=T||hn<J,J=hn,S.push(hn),Gt});U&&l.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),T&&l.errors.push("Please ensure that all keyframe offsets are in order");const Se=o.steps.length;let Xe=0;M>0&&M<Se?l.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==M&&(Xe=1/(Se-1));const ot=Se-1,he=l.currentTime,et=l.currentAnimateTimings,lt=et.duration;return Ce.forEach((jt,Gt)=>{const bn=Xe>0?Gt==ot?1:Xe*Gt:S[Gt],hn=bn*lt;l.currentTime=he+et.delay+hn,et.duration=hn,this._validateStyleAst(jt,l),jt.offset=bn,d.styles.push(jt)}),d}visitReference(o,l){return{type:8,animation:Vt(this,Ft(o.animation),l),options:Fn(o.options)}}visitAnimateChild(o,l){return l.depCount++,{type:9,options:Fn(o.options)}}visitAnimateRef(o,l){return{type:10,animation:this.visitReference(o.animation,l),options:Fn(o.options)}}visitQuery(o,l){const d=l.currentQuerySelector,v=o.options||{};l.queryCount++,l.currentQuery=o;const[M,S]=function(D){const o=!!D.split(/\s*,\s*/).find(l=>":self"==l);return o&&(D=D.replace(Tn,"")),D=D.replace(/@\*/g,q).replace(/@\w+/g,l=>q+"-"+l.substr(1)).replace(/:animating/g,_e),[D,o]}(o.selector);l.currentQuerySelector=d.length?d+" "+M:M,le(l.collectedStyles,l.currentQuerySelector,{});const T=Vt(this,Ft(o.animation),l);return l.currentQuery=null,l.currentQuerySelector=d,{type:11,selector:M,limit:v.limit||0,optional:!!v.optional,includeSelf:S,animation:T,originalSelector:o.selector,options:Fn(o.options)}}visitStagger(o,l){l.currentQuery||l.errors.push("stagger() can only be used inside of query()");const d="full"===o.timings?{duration:0,delay:0,easing:"full"}:Oe(o.timings,l.errors,!0);return{type:12,animation:Vt(this,Ft(o.animation),l),timings:d,options:null}}}class gr{constructor(o){this.errors=o,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Pr(D){return!Array.isArray(D)&&"object"==typeof D}function Fn(D){return D?(D=Lt(D)).params&&(D.params=function(D){return D?Lt(D):null}(D.params)):D={},D}function Nn(D,o,l){return{duration:D,delay:o,easing:l}}function mn(D,o,l,d,v,M,S=null,T=!1){return{type:1,element:D,keyframes:o,preStyleProps:l,postStyleProps:d,duration:v,delay:M,totalTime:v+M,easing:S,subTimeline:T}}class kn{constructor(){this._map=new Map}get(o){return this._map.get(o)||[]}append(o,l){let d=this._map.get(o);d||this._map.set(o,d=[]),d.push(...l)}has(o){return this._map.has(o)}clear(){this._map.clear()}}const It=new RegExp(":enter","g"),mr=new RegExp(":leave","g");function en(D,o,l,d,v,M={},S={},T,U,J=[]){return(new x).buildKeyframes(D,o,l,d,v,M,S,T,U,J)}class x{buildKeyframes(o,l,d,v,M,S,T,U,J,Ce=[]){J=J||new kn;const Se=new A(o,l,J,v,M,Ce,[]);Se.options=U,Se.currentTimeline.setStyles([S],null,Se.errors,U),Vt(this,d,Se);const Xe=Se.timelines.filter(ot=>ot.containsAnimation());if(Xe.length&&Object.keys(T).length){const ot=Xe[Xe.length-1];ot.allowOnlyTimelineStyles()||ot.setStyles([T],null,Se.errors,U)}return Xe.length?Xe.map(ot=>ot.buildKeyframes()):[mn(l,[],[],[],0,0,"",!1)]}visitTrigger(o,l){}visitState(o,l){}visitTransition(o,l){}visitAnimateChild(o,l){const d=l.subInstructions.get(l.element);if(d){const v=l.createSubContext(o.options),M=l.currentTimeline.currentTime,S=this._visitSubInstructions(d,v,v.options);M!=S&&l.transformIntoNewTimeline(S)}l.previousNode=o}visitAnimateRef(o,l){const d=l.createSubContext(o.options);d.transformIntoNewTimeline(),this.visitReference(o.animation,d),l.transformIntoNewTimeline(d.currentTimeline.currentTime),l.previousNode=o}_visitSubInstructions(o,l,d){let M=l.currentTimeline.currentTime;const S=null!=d.duration?it(d.duration):null,T=null!=d.delay?it(d.delay):null;return 0!==S&&o.forEach(U=>{const J=l.appendInstructionToTimeline(U,S,T);M=Math.max(M,J.duration+J.delay)}),M}visitReference(o,l){l.updateOptions(o.options,!0),Vt(this,o.animation,l),l.previousNode=o}visitSequence(o,l){const d=l.subContextCount;let v=l;const M=o.options;if(M&&(M.params||M.delay)&&(v=l.createSubContext(M),v.transformIntoNewTimeline(),null!=M.delay)){6==v.previousNode.type&&(v.currentTimeline.snapshotCurrentStyles(),v.previousNode=R);const S=it(M.delay);v.delayNextStep(S)}o.steps.length&&(o.steps.forEach(S=>Vt(this,S,v)),v.currentTimeline.applyStylesToKeyframe(),v.subContextCount>d&&v.transformIntoNewTimeline()),l.previousNode=o}visitGroup(o,l){const d=[];let v=l.currentTimeline.currentTime;const M=o.options&&o.options.delay?it(o.options.delay):0;o.steps.forEach(S=>{const T=l.createSubContext(o.options);M&&T.delayNextStep(M),Vt(this,S,T),v=Math.max(v,T.currentTimeline.currentTime),d.push(T.currentTimeline)}),d.forEach(S=>l.currentTimeline.mergeTimelineCollectedStyles(S)),l.transformIntoNewTimeline(v),l.previousNode=o}_visitTiming(o,l){if(o.dynamic){const d=o.strValue;return Oe(l.params?Wt(d,l.params,l.errors):d,l.errors)}return{duration:o.duration,delay:o.delay,easing:o.easing}}visitAnimate(o,l){const d=l.currentAnimateTimings=this._visitTiming(o.timings,l),v=l.currentTimeline;d.delay&&(l.incrementTime(d.delay),v.snapshotCurrentStyles());const M=o.style;5==M.type?this.visitKeyframes(M,l):(l.incrementTime(d.duration),this.visitStyle(M,l),v.applyStylesToKeyframe()),l.currentAnimateTimings=null,l.previousNode=o}visitStyle(o,l){const d=l.currentTimeline,v=l.currentAnimateTimings;!v&&d.getCurrentStyleProperties().length&&d.forwardFrame();const M=v&&v.easing||o.easing;o.isEmptyStep?d.applyEmptyStep(M):d.setStyles(o.styles,M,l.errors,l.options),l.previousNode=o}visitKeyframes(o,l){const d=l.currentAnimateTimings,v=l.currentTimeline.duration,M=d.duration,T=l.createSubContext().currentTimeline;T.easing=d.easing,o.styles.forEach(U=>{T.forwardTime((U.offset||0)*M),T.setStyles(U.styles,U.easing,l.errors,l.options),T.applyStylesToKeyframe()}),l.currentTimeline.mergeTimelineCollectedStyles(T),l.transformIntoNewTimeline(v+M),l.previousNode=o}visitQuery(o,l){const d=l.currentTimeline.currentTime,v=o.options||{},M=v.delay?it(v.delay):0;M&&(6===l.previousNode.type||0==d&&l.currentTimeline.getCurrentStyleProperties().length)&&(l.currentTimeline.snapshotCurrentStyles(),l.previousNode=R);let S=d;const T=l.invokeQuery(o.selector,o.originalSelector,o.limit,o.includeSelf,!!v.optional,l.errors);l.currentQueryTotal=T.length;let U=null;T.forEach((J,Ce)=>{l.currentQueryIndex=Ce;const Se=l.createSubContext(o.options,J);M&&Se.delayNextStep(M),J===l.element&&(U=Se.currentTimeline),Vt(this,o.animation,Se),Se.currentTimeline.applyStylesToKeyframe(),S=Math.max(S,Se.currentTimeline.currentTime)}),l.currentQueryIndex=0,l.currentQueryTotal=0,l.transformIntoNewTimeline(S),U&&(l.currentTimeline.mergeTimelineCollectedStyles(U),l.currentTimeline.snapshotCurrentStyles()),l.previousNode=o}visitStagger(o,l){const d=l.parentContext,v=l.currentTimeline,M=o.timings,S=Math.abs(M.duration),T=S*(l.currentQueryTotal-1);let U=S*l.currentQueryIndex;switch(M.duration<0?"reverse":M.easing){case"reverse":U=T-U;break;case"full":U=d.currentStaggerTime}const Ce=l.currentTimeline;U&&Ce.delayNextStep(U);const Se=Ce.currentTime;Vt(this,o.animation,l),l.previousNode=o,d.currentStaggerTime=v.currentTime-Se+(v.startTime-d.currentTimeline.startTime)}}const R={};class A{constructor(o,l,d,v,M,S,T,U){this._driver=o,this.element=l,this.subInstructions=d,this._enterClassName=v,this._leaveClassName=M,this.errors=S,this.timelines=T,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=R,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=U||new O(this._driver,l,0),T.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(o,l){if(!o)return;const d=o;let v=this.options;null!=d.duration&&(v.duration=it(d.duration)),null!=d.delay&&(v.delay=it(d.delay));const M=d.params;if(M){let S=v.params;S||(S=this.options.params={}),Object.keys(M).forEach(T=>{(!l||!S.hasOwnProperty(T))&&(S[T]=Wt(M[T],S,this.errors))})}}_copyOptions(){const o={};if(this.options){const l=this.options.params;if(l){const d=o.params={};Object.keys(l).forEach(v=>{d[v]=l[v]})}}return o}createSubContext(o=null,l,d){const v=l||this.element,M=new A(this._driver,v,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(v,d||0));return M.previousNode=this.previousNode,M.currentAnimateTimings=this.currentAnimateTimings,M.options=this._copyOptions(),M.updateOptions(o),M.currentQueryIndex=this.currentQueryIndex,M.currentQueryTotal=this.currentQueryTotal,M.parentContext=this,this.subContextCount++,M}transformIntoNewTimeline(o){return this.previousNode=R,this.currentTimeline=this.currentTimeline.fork(this.element,o),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(o,l,d){const v={duration:null!=l?l:o.duration,delay:this.currentTimeline.currentTime+(null!=d?d:0)+o.delay,easing:""},M=new W(this._driver,o.element,o.keyframes,o.preStyleProps,o.postStyleProps,v,o.stretchStartingKeyframe);return this.timelines.push(M),v}incrementTime(o){this.currentTimeline.forwardTime(this.currentTimeline.duration+o)}delayNextStep(o){o>0&&this.currentTimeline.delayNextStep(o)}invokeQuery(o,l,d,v,M,S){let T=[];if(v&&T.push(this.element),o.length>0){o=(o=o.replace(It,"."+this._enterClassName)).replace(mr,"."+this._leaveClassName);let J=this._driver.query(this.element,o,1!=d);0!==d&&(J=d<0?J.slice(J.length+d,J.length):J.slice(0,d)),T.push(...J)}return!M&&0==T.length&&S.push(`\`query("${l}")\` returned zero elements. (Use \`query("${l}", { optional: true })\` if you wish to allow this.)`),T}}class O{constructor(o,l,d,v){this._driver=o,this.element=l,this.startTime=d,this._elementTimelineStylesLookup=v,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(l),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(l,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(o){const l=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||l?(this.forwardTime(this.currentTime+o),l&&this.snapshotCurrentStyles()):this.startTime+=o}fork(o,l){return this.applyStylesToKeyframe(),new O(this._driver,o,l||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(o){this.applyStylesToKeyframe(),this.duration=o,this._loadKeyframe()}_updateStyle(o,l){this._localTimelineStyles[o]=l,this._globalTimelineStyles[o]=l,this._styleSummary[o]={time:this.currentTime,value:l}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(o){o&&(this._previousKeyframe.easing=o),Object.keys(this._globalTimelineStyles).forEach(l=>{this._backFill[l]=this._globalTimelineStyles[l]||ie.AUTO_STYLE,this._currentKeyframe[l]=ie.AUTO_STYLE}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(o,l,d,v){l&&(this._previousKeyframe.easing=l);const M=v&&v.params||{},S=function(D,o){const l={};let d;return D.forEach(v=>{"*"===v?(d=d||Object.keys(o),d.forEach(M=>{l[M]=ie.AUTO_STYLE})):rt(v,!1,l)}),l}(o,this._globalTimelineStyles);Object.keys(S).forEach(T=>{const U=Wt(S[T],M,d);this._pendingStyles[T]=U,this._localTimelineStyles.hasOwnProperty(T)||(this._backFill[T]=this._globalTimelineStyles.hasOwnProperty(T)?this._globalTimelineStyles[T]:ie.AUTO_STYLE),this._updateStyle(T,U)})}applyStylesToKeyframe(){const o=this._pendingStyles,l=Object.keys(o);0!=l.length&&(this._pendingStyles={},l.forEach(d=>{this._currentKeyframe[d]=o[d]}),Object.keys(this._localTimelineStyles).forEach(d=>{this._currentKeyframe.hasOwnProperty(d)||(this._currentKeyframe[d]=this._localTimelineStyles[d])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(o=>{const l=this._localTimelineStyles[o];this._pendingStyles[o]=l,this._updateStyle(o,l)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const o=[];for(let l in this._currentKeyframe)o.push(l);return o}mergeTimelineCollectedStyles(o){Object.keys(o._styleSummary).forEach(l=>{const d=this._styleSummary[l],v=o._styleSummary[l];(!d||v.time>d.time)&&this._updateStyle(l,v.value)})}buildKeyframes(){this.applyStylesToKeyframe();const o=new Set,l=new Set,d=1===this._keyframes.size&&0===this.duration;let v=[];this._keyframes.forEach((T,U)=>{const J=rt(T,!0);Object.keys(J).forEach(Ce=>{const Se=J[Ce];Se==ie.\u0275PRE_STYLE?o.add(Ce):Se==ie.AUTO_STYLE&&l.add(Ce)}),d||(J.offset=U/this.duration),v.push(J)});const M=o.size?Wn(o.values()):[],S=l.size?Wn(l.values()):[];if(d){const T=v[0],U=Lt(T);T.offset=0,U.offset=1,v=[T,U]}return mn(this.element,v,M,S,this.duration,this.startTime,this.easing,!1)}}class W extends O{constructor(o,l,d,v,M,S,T=!1){super(o,l,S.delay),this.keyframes=d,this.preStyleProps=v,this.postStyleProps=M,this._stretchStartingKeyframe=T,this.timings={duration:S.duration,delay:S.delay,easing:S.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let o=this.keyframes,{delay:l,duration:d,easing:v}=this.timings;if(this._stretchStartingKeyframe&&l){const M=[],S=d+l,T=l/S,U=rt(o[0],!1);U.offset=0,M.push(U);const J=rt(o[0],!1);J.offset=Re(T),M.push(J);const Ce=o.length-1;for(let Se=1;Se<=Ce;Se++){let Xe=rt(o[Se],!1);Xe.offset=Re((l+Xe.offset*d)/S),M.push(Xe)}d=S,l=0,v="",o=M}return mn(this.element,o,this.preStyleProps,this.postStyleProps,d,l,v,!0)}}function Re(D,o=3){const l=Math.pow(10,o-1);return Math.round(D*l)/l}class We{}class yr extends We{normalizePropertyName(o,l){return Kn(o)}normalizeStyleValue(o,l,d,v){let M="";const S=d.toString().trim();if(_r[l]&&0!==d&&"0"!==d)if("number"==typeof d)M="px";else{const T=d.match(/^[+-]?[\d\.]+([a-z]*)$/);T&&0==T[1].length&&v.push(`Please provide a CSS unit value for ${o}:${d}`)}return S+M}}const _r=(()=>function(D){const o={};return D.forEach(l=>o[l]=!0),o}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function tn(D,o,l,d,v,M,S,T,U,J,Ce,Se,Xe){return{type:0,element:D,triggerName:o,isRemovalTransition:v,fromState:l,fromStyles:M,toState:d,toStyles:S,timelines:T,queriedElements:U,preStyleProps:J,postStyleProps:Ce,totalTime:Se,errors:Xe}}const Zn={};class rr{constructor(o,l,d){this._triggerName=o,this.ast=l,this._stateStyles=d}match(o,l,d,v){return function(D,o,l,d,v){return D.some(M=>M(o,l,d,v))}(this.ast.matchers,o,l,d,v)}buildStyles(o,l,d){const v=this._stateStyles["*"],M=this._stateStyles[o],S=v?v.buildStyles(l,d):{};return M?M.buildStyles(l,d):S}build(o,l,d,v,M,S,T,U,J,Ce){const Se=[],Xe=this.ast.options&&this.ast.options.params||Zn,he=this.buildStyles(d,T&&T.params||Zn,Se),et=U&&U.params||Zn,lt=this.buildStyles(v,et,Se),jt=new Set,Gt=new Map,bn=new Map,hn="void"===v,mi={params:Object.assign(Object.assign({},Xe),et)},re=Ce?[]:en(o,l,this.ast.animation,M,S,he,lt,mi,J,Se);let Ge=0;if(re.forEach(Mt=>{Ge=Math.max(Mt.duration+Mt.delay,Ge)}),Se.length)return tn(l,this._triggerName,d,v,hn,he,lt,[],[],Gt,bn,Ge,Se);re.forEach(Mt=>{const Sr=Mt.element,Ti=le(Gt,Sr,{});Mt.preStyleProps.forEach(kr=>Ti[kr]=!0);const Pn=le(bn,Sr,{});Mt.postStyleProps.forEach(kr=>Pn[kr]=!0),Sr!==l&&jt.add(Sr)});const Ir=Wn(jt.values());return tn(l,this._triggerName,d,v,hn,he,lt,re,Ir,Gt,bn,Ge)}}class jn{constructor(o,l,d){this.styles=o,this.defaultParams=l,this.normalizer=d}buildStyles(o,l){const d={},v=Lt(this.defaultParams);return Object.keys(o).forEach(M=>{const S=o[M];null!=S&&(v[M]=S)}),this.styles.styles.forEach(M=>{if("string"!=typeof M){const S=M;Object.keys(S).forEach(T=>{let U=S[T];U.length>1&&(U=Wt(U,v,l));const J=this.normalizer.normalizePropertyName(T,l);U=this.normalizer.normalizeStyleValue(T,J,U,l),d[J]=U})}}),d}}class Ci{constructor(o,l,d){this.name=o,this.ast=l,this._normalizer=d,this.transitionFactories=[],this.states={},l.states.forEach(v=>{this.states[v.name]=new jn(v.style,v.options&&v.options.params||{},d)}),sr(this.states,"true","1"),sr(this.states,"false","0"),l.transitions.forEach(v=>{this.transitionFactories.push(new rr(o,v,this.states))}),this.fallbackTransition=function(D,o,l){return new rr(D,{type:1,animation:{type:2,steps:[],options:null},matchers:[(S,T)=>!0],options:null,queryCount:0,depCount:0},o)}(o,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(o,l,d,v){return this.transitionFactories.find(S=>S.match(o,l,d,v))||null}matchStyles(o,l,d){return this.fallbackTransition.buildStyles(o,l,d)}}function sr(D,o,l){D.hasOwnProperty(o)?D.hasOwnProperty(l)||(D[l]=D[o]):D.hasOwnProperty(l)&&(D[o]=D[l])}const Yn=new kn;class Qr{constructor(o,l,d){this.bodyNode=o,this._driver=l,this._normalizer=d,this._animations={},this._playersById={},this.players=[]}register(o,l){const d=[],v=Jt(this._driver,l,d);if(d.length)throw new Error(`Unable to build the animation due to the following errors: ${d.join("\n")}`);this._animations[o]=v}_buildPlayer(o,l,d){const v=o.element,M=ve(0,this._normalizer,0,o.keyframes,l,d);return this._driver.animate(v,M,o.duration,o.delay,o.easing,[],!0)}create(o,l,d={}){const v=[],M=this._animations[o];let S;const T=new Map;if(M?(S=en(this._driver,l,M,G,H,{},{},d,Yn,v),S.forEach(Ce=>{const Se=le(T,Ce.element,{});Ce.postStyleProps.forEach(Xe=>Se[Xe]=null)})):(v.push("The requested animation doesn't exist or has already been destroyed"),S=[]),v.length)throw new Error(`Unable to create the animation due to the following errors: ${v.join("\n")}`);T.forEach((Ce,Se)=>{Object.keys(Ce).forEach(Xe=>{Ce[Xe]=this._driver.computeStyle(Se,Xe,ie.AUTO_STYLE)})});const J=Q(S.map(Ce=>{const Se=T.get(Ce.element);return this._buildPlayer(Ce,{},Se)}));return this._playersById[o]=J,J.onDestroy(()=>this.destroy(o)),this.players.push(J),J}destroy(o){const l=this._getPlayer(o);l.destroy(),delete this._playersById[o];const d=this.players.indexOf(l);d>=0&&this.players.splice(d,1)}_getPlayer(o){const l=this._playersById[o];if(!l)throw new Error(`Unable to find the timeline player referenced by ${o}`);return l}listen(o,l,d,v){const M=te(l,"","","");return B(this._getPlayer(o),d,M,v),()=>{}}command(o,l,d,v){if("register"==d)return void this.register(o,v[0]);if("create"==d)return void this.create(o,l,v[0]||{});const M=this._getPlayer(o);switch(d){case"play":M.play();break;case"pause":M.pause();break;case"reset":M.reset();break;case"restart":M.restart();break;case"finish":M.finish();break;case"init":M.init();break;case"setPosition":M.setPosition(parseFloat(v[0]));break;case"destroy":this.destroy(o)}}}const Dr="ng-animate-queued",Ct="ng-animate-disabled",Hn=[],Xn={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Er={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},nn="__ng_removed";class Un{constructor(o,l=""){this.namespaceId=l;const d=o&&o.hasOwnProperty("value");if(this.value=null!=(D=d?o.value:o)?D:null,d){const M=Lt(o);delete M.value,this.options=M}else this.options={};var D;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(o){const l=o.params;if(l){const d=this.options.params;Object.keys(l).forEach(v=>{null==d[v]&&(d[v]=l[v])})}}}const Nt="void",Zr=new Un(Nt);class rn{constructor(o,l,d){this.id=o,this.hostElement=l,this._engine=d,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+o,Bt(l,this._hostClassName)}listen(o,l,d,v){if(!this._triggers.hasOwnProperty(l))throw new Error(`Unable to listen on the animation trigger event "${d}" because the animation trigger "${l}" doesn't exist!`);if(null==d||0==d.length)throw new Error(`Unable to listen on the animation trigger "${l}" because the provided event is undefined!`);if("start"!=(D=d)&&"done"!=D)throw new Error(`The provided animation trigger event "${d}" for the animation trigger "${l}" is not supported!`);var D;const M=le(this._elementListeners,o,[]),S={name:l,phase:d,callback:v};M.push(S);const T=le(this._engine.statesByElement,o,{});return T.hasOwnProperty(l)||(Bt(o,K),Bt(o,K+"-"+l),T[l]=Zr),()=>{this._engine.afterFlush(()=>{const U=M.indexOf(S);U>=0&&M.splice(U,1),this._triggers[l]||delete T[l]})}}register(o,l){return!this._triggers[o]&&(this._triggers[o]=l,!0)}_getTrigger(o){const l=this._triggers[o];if(!l)throw new Error(`The provided animation trigger "${o}" has not been registered!`);return l}trigger(o,l,d,v=!0){const M=this._getTrigger(l),S=new Ye(this.id,l,o);let T=this._engine.statesByElement.get(o);T||(Bt(o,K),Bt(o,K+"-"+l),this._engine.statesByElement.set(o,T={}));let U=T[l];const J=new Un(d,this.id);if(!(d&&d.hasOwnProperty("value"))&&U&&J.absorbOptions(U.options),T[l]=J,U||(U=Zr),J.value!==Nt&&U.value===J.value){if(!function(D,o){const l=Object.keys(D),d=Object.keys(o);if(l.length!=d.length)return!1;for(let v=0;v<l.length;v++){const M=l[v];if(!o.hasOwnProperty(M)||D[M]!==o[M])return!1}return!0}(U.params,J.params)){const et=[],lt=M.matchStyles(U.value,U.params,et),jt=M.matchStyles(J.value,J.params,et);et.length?this._engine.reportError(et):this._engine.afterFlush(()=>{Ht(o,lt),Et(o,jt)})}return}const Xe=le(this._engine.playersByElement,o,[]);Xe.forEach(et=>{et.namespaceId==this.id&&et.triggerName==l&&et.queued&&et.destroy()});let ot=M.matchTransition(U.value,J.value,o,J.params),he=!1;if(!ot){if(!v)return;ot=M.fallbackTransition,he=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:o,triggerName:l,transition:ot,fromState:U,toState:J,player:S,isFallbackTransition:he}),he||(Bt(o,Dr),S.onStart(()=>{je(o,Dr)})),S.onDone(()=>{let et=this.players.indexOf(S);et>=0&&this.players.splice(et,1);const lt=this._engine.playersByElement.get(o);if(lt){let jt=lt.indexOf(S);jt>=0&<.splice(jt,1)}}),this.players.push(S),Xe.push(S),S}deregister(o){delete this._triggers[o],this._engine.statesByElement.forEach((l,d)=>{delete l[o]}),this._elementListeners.forEach((l,d)=>{this._elementListeners.set(d,l.filter(v=>v.name!=o))})}clearElementCache(o){this._engine.statesByElement.delete(o),this._elementListeners.delete(o);const l=this._engine.playersByElement.get(o);l&&(l.forEach(d=>d.destroy()),this._engine.playersByElement.delete(o))}_signalRemovalForInnerTriggers(o,l){const d=this._engine.driver.query(o,q,!0);d.forEach(v=>{if(v[nn])return;const M=this._engine.fetchNamespacesByElement(v);M.size?M.forEach(S=>S.triggerLeaveAnimation(v,l,!1,!0)):this.clearElementCache(v)}),this._engine.afterFlushAnimationsDone(()=>d.forEach(v=>this.clearElementCache(v)))}triggerLeaveAnimation(o,l,d,v){const M=this._engine.statesByElement.get(o);if(M){const S=[];if(Object.keys(M).forEach(T=>{if(this._triggers[T]){const U=this.trigger(o,T,Nt,v);U&&S.push(U)}}),S.length)return this._engine.markElementAsRemoved(this.id,o,!0,l),d&&Q(S).onDone(()=>this._engine.processLeaveNode(o)),!0}return!1}prepareLeaveAnimationListeners(o){const l=this._elementListeners.get(o),d=this._engine.statesByElement.get(o);if(l&&d){const v=new Set;l.forEach(M=>{const S=M.name;if(v.has(S))return;v.add(S);const U=this._triggers[S].fallbackTransition,J=d[S]||Zr,Ce=new Un(Nt),Se=new Ye(this.id,S,o);this._engine.totalQueuedPlayers++,this._queue.push({element:o,triggerName:S,transition:U,fromState:J,toState:Ce,player:Se,isFallbackTransition:!0})})}}removeNode(o,l){const d=this._engine;if(o.childElementCount&&this._signalRemovalForInnerTriggers(o,l),this.triggerLeaveAnimation(o,l,!0))return;let v=!1;if(d.totalAnimations){const M=d.players.length?d.playersByQueriedElement.get(o):[];if(M&&M.length)v=!0;else{let S=o;for(;S=S.parentNode;)if(d.statesByElement.get(S)){v=!0;break}}}if(this.prepareLeaveAnimationListeners(o),v)d.markElementAsRemoved(this.id,o,!1,l);else{const M=o[nn];(!M||M===Xn)&&(d.afterFlush(()=>this.clearElementCache(o)),d.destroyInnerAnimations(o),d._onRemovalComplete(o,l))}}insertNode(o,l){Bt(o,this._hostClassName)}drainQueuedTransitions(o){const l=[];return this._queue.forEach(d=>{const v=d.player;if(v.destroyed)return;const M=d.element,S=this._elementListeners.get(M);S&&S.forEach(T=>{if(T.name==d.triggerName){const U=te(M,d.triggerName,d.fromState.value,d.toState.value);U._data=o,B(d.player,T.phase,U,T.callback)}}),v.markedForDestroy?this._engine.afterFlush(()=>{v.destroy()}):l.push(d)}),this._queue=[],l.sort((d,v)=>{const M=d.transition.ast.depCount,S=v.transition.ast.depCount;return 0==M||0==S?M-S:this._engine.driver.containsElement(d.element,v.element)?1:-1})}destroy(o){this.players.forEach(l=>l.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,o)}elementContainsData(o){let l=!1;return this._elementListeners.has(o)&&(l=!0),l=!!this._queue.find(d=>d.element===o)||l,l}}class be{constructor(o,l,d){this.bodyNode=o,this.driver=l,this._normalizer=d,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(v,M)=>{}}_onRemovalComplete(o,l){this.onRemovalComplete(o,l)}get queuedPlayers(){const o=[];return this._namespaceList.forEach(l=>{l.players.forEach(d=>{d.queued&&o.push(d)})}),o}createNamespace(o,l){const d=new rn(o,l,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,l)?this._balanceNamespaceList(d,l):(this.newHostElements.set(l,d),this.collectEnterElement(l)),this._namespaceLookup[o]=d}_balanceNamespaceList(o,l){const d=this._namespaceList.length-1;if(d>=0){let v=!1;for(let M=d;M>=0;M--)if(this.driver.containsElement(this._namespaceList[M].hostElement,l)){this._namespaceList.splice(M+1,0,o),v=!0;break}v||this._namespaceList.splice(0,0,o)}else this._namespaceList.push(o);return this.namespacesByHostElement.set(l,o),o}register(o,l){let d=this._namespaceLookup[o];return d||(d=this.createNamespace(o,l)),d}registerTrigger(o,l,d){let v=this._namespaceLookup[o];v&&v.register(l,d)&&this.totalAnimations++}destroy(o,l){if(!o)return;const d=this._fetchNamespace(o);this.afterFlush(()=>{this.namespacesByHostElement.delete(d.hostElement),delete this._namespaceLookup[o];const v=this._namespaceList.indexOf(d);v>=0&&this._namespaceList.splice(v,1)}),this.afterFlushAnimationsDone(()=>d.destroy(l))}_fetchNamespace(o){return this._namespaceLookup[o]}fetchNamespacesByElement(o){const l=new Set,d=this.statesByElement.get(o);if(d){const v=Object.keys(d);for(let M=0;M<v.length;M++){const S=d[v[M]].namespaceId;if(S){const T=this._fetchNamespace(S);T&&l.add(T)}}}return l}trigger(o,l,d,v){if(Cn(l)){const M=this._fetchNamespace(o);if(M)return M.trigger(l,d,v),!0}return!1}insertNode(o,l,d,v){if(!Cn(l))return;const M=l[nn];if(M&&M.setForRemoval){M.setForRemoval=!1,M.setForMove=!0;const S=this.collectedLeaveElements.indexOf(l);S>=0&&this.collectedLeaveElements.splice(S,1)}if(o){const S=this._fetchNamespace(o);S&&S.insertNode(l,d)}v&&this.collectEnterElement(l)}collectEnterElement(o){this.collectedEnterElements.push(o)}markElementAsDisabled(o,l){l?this.disabledNodes.has(o)||(this.disabledNodes.add(o),Bt(o,Ct)):this.disabledNodes.has(o)&&(this.disabledNodes.delete(o),je(o,Ct))}removeNode(o,l,d,v){if(Cn(l)){const M=o?this._fetchNamespace(o):null;if(M?M.removeNode(l,v):this.markElementAsRemoved(o,l,!1,v),d){const S=this.namespacesByHostElement.get(l);S&&S.id!==o&&S.removeNode(l,v)}}else this._onRemovalComplete(l,v)}markElementAsRemoved(o,l,d,v){this.collectedLeaveElements.push(l),l[nn]={namespaceId:o,setForRemoval:v,hasAnimation:d,removedBeforeQueried:!1}}listen(o,l,d,v,M){return Cn(l)?this._fetchNamespace(o).listen(l,d,v,M):()=>{}}_buildInstruction(o,l,d,v,M){return o.transition.build(this.driver,o.element,o.fromState.value,o.toState.value,d,v,o.fromState.options,o.toState.options,l,M)}destroyInnerAnimations(o){let l=this.driver.query(o,q,!0);l.forEach(d=>this.destroyActiveAnimationsForElement(d)),0!=this.playersByQueriedElement.size&&(l=this.driver.query(o,_e,!0),l.forEach(d=>this.finishActiveQueriedAnimationOnElement(d)))}destroyActiveAnimationsForElement(o){const l=this.playersByElement.get(o);l&&l.forEach(d=>{d.queued?d.markedForDestroy=!0:d.destroy()})}finishActiveQueriedAnimationOnElement(o){const l=this.playersByQueriedElement.get(o);l&&l.forEach(d=>d.finish())}whenRenderingDone(){return new Promise(o=>{if(this.players.length)return Q(this.players).onDone(()=>o());o()})}processLeaveNode(o){var l;const d=o[nn];if(d&&d.setForRemoval){if(o[nn]=Xn,d.namespaceId){this.destroyInnerAnimations(o);const v=this._fetchNamespace(d.namespaceId);v&&v.clearElementCache(o)}this._onRemovalComplete(o,d.setForRemoval)}(null===(l=o.classList)||void 0===l?void 0:l.contains(Ct))&&this.markElementAsDisabled(o,!1),this.driver.query(o,".ng-animate-disabled",!0).forEach(v=>{this.markElementAsDisabled(v,!1)})}flush(o=-1){let l=[];if(this.newHostElements.size&&(this.newHostElements.forEach((d,v)=>this._balanceNamespaceList(d,v)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let d=0;d<this.collectedEnterElements.length;d++)Bt(this.collectedEnterElements[d],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const d=[];try{l=this._flushAnimations(d,o)}finally{for(let v=0;v<d.length;v++)d[v]()}}else for(let d=0;d<this.collectedLeaveElements.length;d++)this.processLeaveNode(this.collectedLeaveElements[d]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(d=>d()),this._flushFns=[],this._whenQuietFns.length){const d=this._whenQuietFns;this._whenQuietFns=[],l.length?Q(l).onDone(()=>{d.forEach(v=>v())}):d.forEach(v=>v())}}reportError(o){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${o.join("\n")}`)}_flushAnimations(o,l){const d=new kn,v=[],M=new Map,S=[],T=new Map,U=new Map,J=new Map,Ce=new Set;this.disabledNodes.forEach(Pe=>{Ce.add(Pe);const Ve=this.driver.query(Pe,".ng-animate-queued",!0);for(let ze=0;ze<Ve.length;ze++)Ce.add(Ve[ze])});const Se=this.bodyNode,Xe=Array.from(this.statesByElement.keys()),ot=sn(Xe,this.collectedEnterElements),he=new Map;let et=0;ot.forEach((Pe,Ve)=>{const ze=G+et++;he.set(Ve,ze),Pe.forEach(Ke=>Bt(Ke,ze))});const lt=[],jt=new Set,Gt=new Set;for(let Pe=0;Pe<this.collectedLeaveElements.length;Pe++){const Ve=this.collectedLeaveElements[Pe],ze=Ve[nn];ze&&ze.setForRemoval&&(lt.push(Ve),jt.add(Ve),ze.hasAnimation?this.driver.query(Ve,".ng-star-inserted",!0).forEach(Ke=>jt.add(Ke)):Gt.add(Ve))}const bn=new Map,hn=sn(Xe,Array.from(jt));hn.forEach((Pe,Ve)=>{const ze=H+et++;bn.set(Ve,ze),Pe.forEach(Ke=>Bt(Ke,ze))}),o.push(()=>{ot.forEach((Pe,Ve)=>{const ze=he.get(Ve);Pe.forEach(Ke=>je(Ke,ze))}),hn.forEach((Pe,Ve)=>{const ze=bn.get(Ve);Pe.forEach(Ke=>je(Ke,ze))}),lt.forEach(Pe=>{this.processLeaveNode(Pe)})});const mi=[],re=[];for(let Pe=this._namespaceList.length-1;Pe>=0;Pe--)this._namespaceList[Pe].drainQueuedTransitions(l).forEach(ze=>{const Ke=ze.player,At=ze.element;if(mi.push(Ke),this.collectedEnterElements.length){const er=At[nn];if(er&&er.setForMove)return void Ke.destroy()}const lr=!Se||!this.driver.containsElement(Se,At),pn=bn.get(At),wn=he.get(At),xt=this._buildInstruction(ze,d,wn,pn,lr);if(xt.errors&&xt.errors.length)return void re.push(xt);if(lr)return Ke.onStart(()=>Ht(At,xt.fromStyles)),Ke.onDestroy(()=>Et(At,xt.toStyles)),void v.push(Ke);if(ze.isFallbackTransition)return Ke.onStart(()=>Ht(At,xt.fromStyles)),Ke.onDestroy(()=>Et(At,xt.toStyles)),void v.push(Ke);const Bs=[];xt.timelines.forEach(er=>{er.stretchStartingKeyframe=!0,this.disabledNodes.has(er.element)||Bs.push(er)}),xt.timelines=Bs,d.append(At,xt.timelines),S.push({instruction:xt,player:Ke,element:At}),xt.queriedElements.forEach(er=>le(T,er,[]).push(Ke)),xt.preStyleProps.forEach((er,yi)=>{const Fi=Object.keys(er);if(Fi.length){let ei=U.get(yi);ei||U.set(yi,ei=new Set),Fi.forEach(ji=>ei.add(ji))}}),xt.postStyleProps.forEach((er,yi)=>{const Fi=Object.keys(er);let ei=J.get(yi);ei||J.set(yi,ei=new Set),Fi.forEach(ji=>ei.add(ji))})});if(re.length){const Pe=[];re.forEach(Ve=>{Pe.push(`@${Ve.triggerName} has failed due to:\n`),Ve.errors.forEach(ze=>Pe.push(`- ${ze}\n`))}),mi.forEach(Ve=>Ve.destroy()),this.reportError(Pe)}const Ge=new Map,Ir=new Map;S.forEach(Pe=>{const Ve=Pe.element;d.has(Ve)&&(Ir.set(Ve,Ve),this._beforeAnimationBuild(Pe.player.namespaceId,Pe.instruction,Ge))}),v.forEach(Pe=>{const Ve=Pe.element;this._getPreviousPlayers(Ve,!1,Pe.namespaceId,Pe.triggerName,null).forEach(Ke=>{le(Ge,Ve,[]).push(Ke),Ke.destroy()})});const Mt=lt.filter(Pe=>on(Pe,U,J)),Sr=new Map;Tt(Sr,this.driver,Gt,J,ie.AUTO_STYLE).forEach(Pe=>{on(Pe,U,J)&&Mt.push(Pe)});const Pn=new Map;ot.forEach((Pe,Ve)=>{Tt(Pn,this.driver,new Set(Pe),U,ie.\u0275PRE_STYLE)}),Mt.forEach(Pe=>{const Ve=Sr.get(Pe),ze=Pn.get(Pe);Sr.set(Pe,Object.assign(Object.assign({},Ve),ze))});const kr=[],Xi=[],Ia={};S.forEach(Pe=>{const{element:Ve,player:ze,instruction:Ke}=Pe;if(d.has(Ve)){if(Ce.has(Ve))return ze.onDestroy(()=>Et(Ve,Ke.toStyles)),ze.disabled=!0,ze.overrideTotalTime(Ke.totalTime),void v.push(ze);let At=Ia;if(Ir.size>1){let pn=Ve;const wn=[];for(;pn=pn.parentNode;){const xt=Ir.get(pn);if(xt){At=xt;break}wn.push(pn)}wn.forEach(xt=>Ir.set(xt,At))}const lr=this._buildAnimation(ze.namespaceId,Ke,Ge,M,Pn,Sr);if(ze.setRealPlayer(lr),At===Ia)kr.push(ze);else{const pn=this.playersByElement.get(At);pn&&pn.length&&(ze.parentPlayer=Q(pn)),v.push(ze)}}else Ht(Ve,Ke.fromStyles),ze.onDestroy(()=>Et(Ve,Ke.toStyles)),Xi.push(ze),Ce.has(Ve)&&v.push(ze)}),Xi.forEach(Pe=>{const Ve=M.get(Pe.element);if(Ve&&Ve.length){const ze=Q(Ve);Pe.setRealPlayer(ze)}}),v.forEach(Pe=>{Pe.parentPlayer?Pe.syncPlayerEvents(Pe.parentPlayer):Pe.destroy()});for(let Pe=0;Pe<lt.length;Pe++){const Ve=lt[Pe],ze=Ve[nn];if(je(Ve,H),ze&&ze.hasAnimation)continue;let Ke=[];if(T.size){let lr=T.get(Ve);lr&&lr.length&&Ke.push(...lr);let pn=this.driver.query(Ve,_e,!0);for(let wn=0;wn<pn.length;wn++){let xt=T.get(pn[wn]);xt&&xt.length&&Ke.push(...xt)}}const At=Ke.filter(lr=>!lr.destroyed);At.length?Cr(this,Ve,At):this.processLeaveNode(Ve)}return lt.length=0,kr.forEach(Pe=>{this.players.push(Pe),Pe.onDone(()=>{Pe.destroy();const Ve=this.players.indexOf(Pe);this.players.splice(Ve,1)}),Pe.play()}),kr}elementContainsData(o,l){let d=!1;const v=l[nn];return v&&v.setForRemoval&&(d=!0),this.playersByElement.has(l)&&(d=!0),this.playersByQueriedElement.has(l)&&(d=!0),this.statesByElement.has(l)&&(d=!0),this._fetchNamespace(o).elementContainsData(l)||d}afterFlush(o){this._flushFns.push(o)}afterFlushAnimationsDone(o){this._whenQuietFns.push(o)}_getPreviousPlayers(o,l,d,v,M){let S=[];if(l){const T=this.playersByQueriedElement.get(o);T&&(S=T)}else{const T=this.playersByElement.get(o);if(T){const U=!M||M==Nt;T.forEach(J=>{J.queued||!U&&J.triggerName!=v||S.push(J)})}}return(d||v)&&(S=S.filter(T=>!(d&&d!=T.namespaceId||v&&v!=T.triggerName))),S}_beforeAnimationBuild(o,l,d){const M=l.element,S=l.isRemovalTransition?void 0:o,T=l.isRemovalTransition?void 0:l.triggerName;for(const U of l.timelines){const J=U.element,Ce=J!==M,Se=le(d,J,[]);this._getPreviousPlayers(J,Ce,S,T,l.toState).forEach(ot=>{const he=ot.getRealPlayer();he.beforeDestroy&&he.beforeDestroy(),ot.destroy(),Se.push(ot)})}Ht(M,l.fromStyles)}_buildAnimation(o,l,d,v,M,S){const T=l.triggerName,U=l.element,J=[],Ce=new Set,Se=new Set,Xe=l.timelines.map(he=>{const et=he.element;Ce.add(et);const lt=et[nn];if(lt&<.removedBeforeQueried)return new ie.NoopAnimationPlayer(he.duration,he.delay);const jt=et!==U,Gt=function(D){const o=[];return or(D,o),o}((d.get(et)||Hn).map(Ge=>Ge.getRealPlayer())).filter(Ge=>!!Ge.element&&Ge.element===et),bn=M.get(et),hn=S.get(et),mi=ve(0,this._normalizer,0,he.keyframes,bn,hn),re=this._buildPlayer(he,mi,Gt);if(he.subTimeline&&v&&Se.add(et),jt){const Ge=new Ye(o,T,et);Ge.setRealPlayer(re),J.push(Ge)}return re});J.forEach(he=>{le(this.playersByQueriedElement,he.element,[]).push(he),he.onDone(()=>function(D,o,l){let d;if(D instanceof Map){if(d=D.get(o),d){if(d.length){const v=d.indexOf(l);d.splice(v,1)}0==d.length&&D.delete(o)}}else if(d=D[o],d){if(d.length){const v=d.indexOf(l);d.splice(v,1)}0==d.length&&delete D[o]}return d}(this.playersByQueriedElement,he.element,he))}),Ce.forEach(he=>Bt(he,oe));const ot=Q(Xe);return ot.onDestroy(()=>{Ce.forEach(he=>je(he,oe)),Et(U,l.toStyles)}),Se.forEach(he=>{le(v,he,[]).push(ot)}),ot}_buildPlayer(o,l,d){return l.length>0?this.driver.animate(o.element,l,o.duration,o.delay,o.easing,d):new ie.NoopAnimationPlayer(o.duration,o.delay)}}class Ye{constructor(o,l,d){this.namespaceId=o,this.triggerName=l,this.element=d,this._player=new ie.NoopAnimationPlayer,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(o){this._containsRealPlayer||(this._player=o,Object.keys(this._queuedCallbacks).forEach(l=>{this._queuedCallbacks[l].forEach(d=>B(o,l,void 0,d))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(o.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(o){this.totalTime=o}syncPlayerEvents(o){const l=this._player;l.triggerCallback&&o.onStart(()=>l.triggerCallback("start")),o.onDone(()=>this.finish()),o.onDestroy(()=>this.destroy())}_queueEvent(o,l){le(this._queuedCallbacks,o,[]).push(l)}onDone(o){this.queued&&this._queueEvent("done",o),this._player.onDone(o)}onStart(o){this.queued&&this._queueEvent("start",o),this._player.onStart(o)}onDestroy(o){this.queued&&this._queueEvent("destroy",o),this._player.onDestroy(o)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(o){this.queued||this._player.setPosition(o)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(o){const l=this._player;l.triggerCallback&&l.triggerCallback(o)}}function Cn(D){return D&&1===D.nodeType}function In(D,o){const l=D.style.display;return D.style.display=null!=o?o:"none",l}function Tt(D,o,l,d,v){const M=[];l.forEach(U=>M.push(In(U)));const S=[];d.forEach((U,J)=>{const Ce={};U.forEach(Se=>{const Xe=Ce[Se]=o.computeStyle(J,Se,v);(!Xe||0==Xe.length)&&(J[nn]=Er,S.push(J))}),D.set(J,Ce)});let T=0;return l.forEach(U=>In(U,M[T++])),S}function sn(D,o){const l=new Map;if(D.forEach(T=>l.set(T,[])),0==o.length)return l;const v=new Set(o),M=new Map;function S(T){if(!T)return 1;let U=M.get(T);if(U)return U;const J=T.parentNode;return U=l.has(J)?J:v.has(J)?1:S(J),M.set(T,U),U}return o.forEach(T=>{const U=S(T);1!==U&&l.get(U).push(T)}),l}function Bt(D,o){var l;null===(l=D.classList)||void 0===l||l.add(o)}function je(D,o){var l;null===(l=D.classList)||void 0===l||l.remove(o)}function Cr(D,o,l){Q(l).onDone(()=>D.processLeaveNode(o))}function or(D,o){for(let l=0;l<D.length;l++){const d=D[l];d instanceof ie.\u0275AnimationGroupPlayer?or(d.players,o):o.push(d)}}function on(D,o,l){const d=l.get(D);if(!d)return!1;let v=o.get(D);return v?d.forEach(M=>v.add(M)):o.set(D,d),l.delete(D),!0}class Sn{constructor(o,l,d){this.bodyNode=o,this._driver=l,this._normalizer=d,this._triggerCache={},this.onRemovalComplete=(v,M)=>{},this._transitionEngine=new be(o,l,d),this._timelineEngine=new Qr(o,l,d),this._transitionEngine.onRemovalComplete=(v,M)=>this.onRemovalComplete(v,M)}registerTrigger(o,l,d,v,M){const S=o+"-"+v;let T=this._triggerCache[S];if(!T){const U=[],J=Jt(this._driver,M,U);if(U.length)throw new Error(`The animation trigger "${v}" has failed to build due to the following errors:\n - ${U.join("\n - ")}`);T=function(D,o,l){return new Ci(D,o,l)}(v,J,this._normalizer),this._triggerCache[S]=T}this._transitionEngine.registerTrigger(l,v,T)}register(o,l){this._transitionEngine.register(o,l)}destroy(o,l){this._transitionEngine.destroy(o,l)}onInsert(o,l,d,v){this._transitionEngine.insertNode(o,l,d,v)}onRemove(o,l,d,v){this._transitionEngine.removeNode(o,l,v||!1,d)}disableAnimations(o,l){this._transitionEngine.markElementAsDisabled(o,l)}process(o,l,d,v){if("@"==d.charAt(0)){const[M,S]=Ue(d);this._timelineEngine.command(M,l,S,v)}else this._transitionEngine.trigger(o,l,d,v)}listen(o,l,d,v,M){if("@"==d.charAt(0)){const[S,T]=Ue(d);return this._timelineEngine.listen(S,l,T,M)}return this._transitionEngine.listen(o,l,d,v,M)}flush(o=-1){this._transitionEngine.flush(o)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Jn(D,o){let l=null,d=null;return Array.isArray(o)&&o.length?(l=ft(o[0]),o.length>1&&(d=ft(o[o.length-1]))):o&&(l=ft(o)),l||d?new an(D,l,d):null}let an=(()=>{class D{constructor(l,d,v){this._element=l,this._startStyles=d,this._endStyles=v,this._state=0;let M=D.initialStylesByElement.get(l);M||D.initialStylesByElement.set(l,M={}),this._initialStyles=M}start(){this._state<1&&(this._startStyles&&Et(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Et(this._element,this._initialStyles),this._endStyles&&(Et(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(D.initialStylesByElement.delete(this._element),this._startStyles&&(Ht(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ht(this._element,this._endStyles),this._endStyles=null),Et(this._element,this._initialStyles),this._state=3)}}return D.initialStylesByElement=new WeakMap,D})();function ft(D){let o=null;const l=Object.keys(D);for(let d=0;d<l.length;d++){const v=l[d];Yr(v)&&(o=o||{},o[v]=D[v])}return o}function Yr(D){return"display"===D||"position"===D}const ln="animation",fn="animationend";class ar{constructor(o,l,d,v,M,S,T){this._element=o,this._name=l,this._duration=d,this._delay=v,this._easing=M,this._fillMode=S,this._onDoneFn=T,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=U=>this._handleCallback(U)}apply(){(function(D,o){const l=Vi(D,"").trim();let d=0;l.length&&(function(D,o){let l=0;for(let d=0;d<D.length;d++)","===D.charAt(d)&&l++;return l}(l)+1,o=`${l}, ${o}`),Lr(D,"",o)})(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),Xr(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){wr(this._element,this._name,"paused")}resume(){wr(this._element,this._name,"running")}setPosition(o){const l=xr(this._element,this._name);this._position=o*this._duration,Lr(this._element,"Delay",`-${this._position}ms`,l)}getPosition(){return this._position}_handleCallback(o){const l=o._ngTestManualTimestamp||Date.now(),d=1e3*parseFloat(o.elapsedTime.toFixed(3));o.animationName==this._name&&Math.max(l-this._startTime,0)>=this._delay&&d>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Xr(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(D,o){const d=Vi(D,"").split(","),v=Mr(d,o);v>=0&&(d.splice(v,1),Lr(D,"",d.join(",")))}(this._element,this._name))}}function wr(D,o,l){Lr(D,"PlayState",l,xr(D,o))}function xr(D,o){const l=Vi(D,"");return l.indexOf(",")>0?Mr(l.split(","),o):Mr([l],o)}function Mr(D,o){for(let l=0;l<D.length;l++)if(D[l].indexOf(o)>=0)return l;return-1}function Xr(D,o,l){l?D.removeEventListener(fn,o):D.addEventListener(fn,o)}function Lr(D,o,l,d){const v=ln+o;if(null!=d){const M=D.style[v];if(M.length){const S=M.split(",");S[d]=l,l=S.join(",")}}D.style[v]=l}function Vi(D,o){return D.style[ln+o]||""}class hi{constructor(o,l,d,v,M,S,T,U){this.element=o,this.keyframes=l,this.animationName=d,this._duration=v,this._delay=M,this._finalStyles=T,this._specialStyles=U,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=S||"linear",this.totalTime=v+M,this._buildStyler()}onStart(o){this._onStartFns.push(o)}onDone(o){this._onDoneFns.push(o)}onDestroy(o){this._onDestroyFns.push(o)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(o=>o()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(o=>o()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(o=>o()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(o){this._styler.setPosition(o)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new ar(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(o){const l="start"==o?this._onStartFns:this._onDoneFns;l.forEach(d=>d()),l.length=0}beforeDestroy(){this.init();const o={};if(this.hasStarted()){const l=this._state>=3;Object.keys(this._finalStyles).forEach(d=>{"offset"!=d&&(o[d]=l?this._finalStyles[d]:nr(this.element,d))})}this.currentSnapshot=o}}class Ai extends ie.NoopAnimationPlayer{constructor(o,l){super(),this.element=o,this._startingStyles={},this.__initialized=!1,this._styles=ye(l)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(o=>{this._startingStyles[o]=this.element.style[o]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(o=>this.element.style.setProperty(o,this._styles[o])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(o=>{const l=this._startingStyles[o];l?this.element.style.setProperty(o,l):this.element.style.removeProperty(o)}),this._startingStyles=null,super.destroy())}}class gi{constructor(){this._count=0}validateStyleProperty(o){return fe(o)}matchesElement(o,l){return!1}containsElement(o,l){return z(o,l)}query(o,l,d){return k(o,l,d)}computeStyle(o,l,d){return window.getComputedStyle(o)[l]}buildKeyframeElement(o,l,d){d=d.map(T=>ye(T));let v=`@keyframes ${l} {\n`,M="";d.forEach(T=>{M=" ";const U=parseFloat(T.offset);v+=`${M}${100*U}% {\n`,M+=" ",Object.keys(T).forEach(J=>{const Ce=T[J];switch(J){case"offset":return;case"easing":return void(Ce&&(v+=`${M}animation-timing-function: ${Ce};\n`));default:return void(v+=`${M}${J}: ${Ce};\n`)}}),v+=`${M}}\n`}),v+="}\n";const S=document.createElement("style");return S.textContent=v,S}animate(o,l,d,v,M,S=[],T){const U=S.filter(lt=>lt instanceof hi),J={};Kt(d,v)&&U.forEach(lt=>{let jt=lt.currentSnapshot;Object.keys(jt).forEach(Gt=>J[Gt]=jt[Gt])});const Ce=function(D){let o={};return D&&(Array.isArray(D)?D:[D]).forEach(d=>{Object.keys(d).forEach(v=>{"offset"==v||"easing"==v||(o[v]=d[v])})}),o}(l=tr(o,l,J));if(0==d)return new Ai(o,Ce);const Se="gen_css_kf_"+this._count++,Xe=this.buildKeyframeElement(o,Se,l);(function(D){var o;const l=null===(o=D.getRootNode)||void 0===o?void 0:o.call(D);return"undefined"!=typeof ShadowRoot&&l instanceof ShadowRoot?l:document.head})(o).appendChild(Xe);const he=Jn(o,l),et=new hi(o,l,Se,d,v,M,Ce,he);return et.onDestroy(()=>{var D;(D=Xe).parentNode.removeChild(D)}),et}}class Ar{constructor(o,l,d,v){this.element=o,this.keyframes=l,this.options=d,this._specialStyles=v,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=d.duration,this._delay=d.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(o=>o()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const o=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,o,this.options),this._finalKeyframe=o.length?o[o.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(o,l,d){return o.animate(l,d)}onStart(o){this._onStartFns.push(o)}onDone(o){this._onDoneFns.push(o)}onDestroy(o){this._onDestroyFns.push(o)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(o=>o()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(o=>o()),this._onDestroyFns=[])}setPosition(o){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=o*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const o={};if(this.hasStarted()){const l=this._finalKeyframe;Object.keys(l).forEach(d=>{"offset"!=d&&(o[d]=this._finished?l[d]:nr(this.element,d))})}this.currentSnapshot=o}triggerCallback(o){const l="start"==o?this._onStartFns:this._onDoneFns;l.forEach(d=>d()),l.length=0}}class Yi{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(g().toString()),this._cssKeyframesDriver=new gi}validateStyleProperty(o){return fe(o)}matchesElement(o,l){return!1}containsElement(o,l){return z(o,l)}query(o,l,d){return k(o,l,d)}computeStyle(o,l,d){return window.getComputedStyle(o)[l]}overrideWebAnimationsSupport(o){this._isNativeImpl=o}animate(o,l,d,v,M,S=[],T){if(!T&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(o,l,d,v,M,S);const Ce={duration:d,delay:v,fill:0==v?"both":"forwards"};M&&(Ce.easing=M);const Se={},Xe=S.filter(he=>he instanceof Ar);Kt(d,v)&&Xe.forEach(he=>{let et=he.currentSnapshot;Object.keys(et).forEach(lt=>Se[lt]=et[lt])});const ot=Jn(o,l=tr(o,l=l.map(he=>rt(he,!1)),Se));return new Ar(o,l,Ce,ot)}}function g(){return ge()&&Element.prototype.animate||{}}var C=V(48);let m=(()=>{class D extends ie.AnimationBuilder{constructor(l,d){super(),this._nextAnimationId=0,this._renderer=l.createRenderer(d.body,{id:"0",encapsulation:p.ViewEncapsulation.None,styles:[],data:{animation:[]}})}build(l){const d=this._nextAnimationId.toString();this._nextAnimationId++;const v=Array.isArray(l)?(0,ie.sequence)(l):l;return Z(this._renderer,null,d,"register",[v]),new w(d,this._renderer)}}return D.\u0275fac=function(l){return new(l||D)(p.\u0275\u0275inject(p.RendererFactory2),p.\u0275\u0275inject(C.DOCUMENT))},D.\u0275prov=p.\u0275\u0275defineInjectable({token:D,factory:D.\u0275fac}),D})();class w extends ie.AnimationFactory{constructor(o,l){super(),this._id=o,this._renderer=l}create(o,l){return new P(this._id,o,l||{},this._renderer)}}class P{constructor(o,l,d,v){this.id=o,this.element=l,this._renderer=v,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",d)}_listen(o,l){return this._renderer.listen(this.element,`@@${this.id}:${o}`,l)}_command(o,...l){return Z(this._renderer,this.element,this.id,o,l)}onDone(o){this._listen("done",o)}onStart(o){this._listen("start",o)}onDestroy(o){this._listen("destroy",o)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(o){this._command("setPosition",o)}getPosition(){var o,l;return null!==(l=null===(o=this._renderer.engine.players[+this.id])||void 0===o?void 0:o.getPosition())&&void 0!==l?l:0}}function Z(D,o,l,d,v){return D.setProperty(o,`@@${l}:${d}`,v)}const Ne="@.disabled";let vt=(()=>{class D{constructor(l,d,v){this.delegate=l,this.engine=d,this._zone=v,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),d.onRemovalComplete=(M,S)=>{const T=null==S?void 0:S.parentNode(M);T&&S.removeChild(T,M)}}createRenderer(l,d){const M=this.delegate.createRenderer(l,d);if(!(l&&d&&d.data&&d.data.animation)){let Ce=this._rendererCache.get(M);return Ce||(Ce=new gt("",M,this.engine),this._rendererCache.set(M,Ce)),Ce}const S=d.id,T=d.id+"-"+this._currentId;this._currentId++,this.engine.register(T,l);const U=Ce=>{Array.isArray(Ce)?Ce.forEach(U):this.engine.registerTrigger(S,T,l,Ce.name,Ce)};return d.data.animation.forEach(U),new mt(this,T,M,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(l,d,v){l>=0&&l<this._microtaskId?this._zone.run(()=>d(v)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(M=>{const[S,T]=M;S(T)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([d,v]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return D.\u0275fac=function(l){return new(l||D)(p.\u0275\u0275inject(p.RendererFactory2),p.\u0275\u0275inject(Sn),p.\u0275\u0275inject(p.NgZone))},D.\u0275prov=p.\u0275\u0275defineInjectable({token:D,factory:D.\u0275fac}),D})();class gt{constructor(o,l,d){this.namespaceId=o,this.delegate=l,this.engine=d,this.destroyNode=this.delegate.destroyNode?v=>l.destroyNode(v):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(o,l){return this.delegate.createElement(o,l)}createComment(o){return this.delegate.createComment(o)}createText(o){return this.delegate.createText(o)}appendChild(o,l){this.delegate.appendChild(o,l),this.engine.onInsert(this.namespaceId,l,o,!1)}insertBefore(o,l,d,v=!0){this.delegate.insertBefore(o,l,d),this.engine.onInsert(this.namespaceId,l,o,v)}removeChild(o,l,d){this.engine.onRemove(this.namespaceId,l,this.delegate,d)}selectRootElement(o,l){return this.delegate.selectRootElement(o,l)}parentNode(o){return this.delegate.parentNode(o)}nextSibling(o){return this.delegate.nextSibling(o)}setAttribute(o,l,d,v){this.delegate.setAttribute(o,l,d,v)}removeAttribute(o,l,d){this.delegate.removeAttribute(o,l,d)}addClass(o,l){this.delegate.addClass(o,l)}removeClass(o,l){this.delegate.removeClass(o,l)}setStyle(o,l,d,v){this.delegate.setStyle(o,l,d,v)}removeStyle(o,l,d){this.delegate.removeStyle(o,l,d)}setProperty(o,l,d){"@"==l.charAt(0)&&l==Ne?this.disableAnimations(o,!!d):this.delegate.setProperty(o,l,d)}setValue(o,l){this.delegate.setValue(o,l)}listen(o,l,d){return this.delegate.listen(o,l,d)}disableAnimations(o,l){this.engine.disableAnimations(o,l)}}class mt extends gt{constructor(o,l,d,v){super(l,d,v),this.factory=o,this.namespaceId=l}setProperty(o,l,d){"@"==l.charAt(0)?"."==l.charAt(1)&&l==Ne?this.disableAnimations(o,d=void 0===d||!!d):this.engine.process(this.namespaceId,o,l.substr(1),d):this.delegate.setProperty(o,l,d)}listen(o,l,d){if("@"==l.charAt(0)){const v=function(D){switch(D){case"body":return document.body;case"document":return document;case"window":return window;default:return D}}(o);let M=l.substr(1),S="";return"@"!=M.charAt(0)&&([M,S]=function(D){const o=D.indexOf(".");return[D.substring(0,o),D.substr(o+1)]}(M)),this.engine.listen(this.namespaceId,v,M,S,T=>{this.factory.scheduleListenerCallback(T._data||-1,d,T)})}return this.delegate.listen(o,l,d)}}let Dt=(()=>{class D extends Sn{constructor(l,d,v){super(l.body,d,v)}ngOnDestroy(){this.flush()}}return D.\u0275fac=function(l){return new(l||D)(p.\u0275\u0275inject(C.DOCUMENT),p.\u0275\u0275inject(Fe),p.\u0275\u0275inject(We))},D.\u0275prov=p.\u0275\u0275defineInjectable({token:D,factory:D.\u0275fac}),D})();const f=new p.InjectionToken("AnimationModuleType"),b=[{provide:ie.AnimationBuilder,useClass:m},{provide:We,useFactory:function(){return new yr}},{provide:Sn,useClass:Dt},{provide:p.RendererFactory2,useFactory:function(D,o,l){return new vt(D,o,l)},deps:[N.\u0275DomRendererFactory2,Sn,p.NgZone]}],$=[{provide:Fe,useFactory:function(){return"function"==typeof g()?new Yi:new gi}},{provide:f,useValue:"BrowserAnimations"},...b],Ae=[{provide:Fe,useClass:Qe},{provide:f,useValue:"NoopAnimations"},...b];let _t=(()=>{class D{static withConfig(l){return{ngModule:D,providers:l.disableAnimations?Ae:$}}}return D.\u0275fac=function(l){return new(l||D)},D.\u0275mod=p.\u0275\u0275defineNgModule({type:D}),D.\u0275inj=p.\u0275\u0275defineInjector({providers:$,imports:[N.BrowserModule]}),D})(),at=(()=>{class D{}return D.\u0275fac=function(l){return new(l||D)},D.\u0275mod=p.\u0275\u0275defineNgModule({type:D}),D.\u0275inj=p.\u0275\u0275defineInjector({providers:Ae,imports:[N.BrowserModule]}),D})()},800:(qe,de,V)=>{"use strict";V.r(de),V.d(de,{\u0275getDOM:()=>p.\u0275getDOM,BrowserModule:()=>Wn,BrowserTransferStateModule:()=>ht,By:()=>Pr,DomSanitizer:()=>It,EVENT_MANAGER_PLUGINS:()=>me,EventManager:()=>X,HAMMER_GESTURE_CONFIG:()=>Nn,HAMMER_LOADER:()=>mn,HammerGestureConfig:()=>kn,HammerModule:()=>kt,Meta:()=>Kn,Title:()=>tr,TransferState:()=>ct,VERSION:()=>en,disableDebugTools:()=>Jt,enableDebugTools:()=>Tn,makeStateKey:()=>Kr,platformBrowser:()=>zr,\u0275BrowserDomAdapter:()=>ge,\u0275BrowserGetTestability:()=>Ue,\u0275DomEventsPlugin:()=>Oe,\u0275DomRendererFactory2:()=>K,\u0275DomSanitizerImpl:()=>mr,\u0275DomSharedStylesHost:()=>De,\u0275HammerGesturesPlugin:()=>Qn,\u0275INTERNAL_BROWSER_PLATFORM_PROVIDERS:()=>pr,\u0275KeyEventsPlugin:()=>cn,\u0275NAMESPACE_URIS:()=>Te,\u0275SharedStylesHost:()=>ee,\u0275TRANSITION_ID:()=>pe,\u0275escapeHtml:()=>Vn,\u0275flattenStyles:()=>L,\u0275initDomAdapter:()=>Ht,\u0275shimContentAttribute:()=>xe,\u0275shimHostAttribute:()=>Le});var p=V(48),N=V(461);class ie extends p.\u0275DomAdapter{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class ge extends ie{static makeCurrent(){(0,p.\u0275setRootDomAdapter)(new ge)}onAndCancel(R,A,O){return R.addEventListener(A,O,!1),()=>{R.removeEventListener(A,O,!1)}}dispatchEvent(R,A){R.dispatchEvent(A)}remove(R){R.parentNode&&R.parentNode.removeChild(R)}createElement(R,A){return(A=A||this.getDefaultDocument()).createElement(R)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(R){return R.nodeType===Node.ELEMENT_NODE}isShadowRoot(R){return R instanceof DocumentFragment}getGlobalEventTarget(R,A){return"window"===A?window:"document"===A?R:"body"===A?R.body:null}getBaseHref(R){const A=(ae=ae||document.querySelector("base"),ae?ae.getAttribute("href"):null);return null==A?null:function(x){ve=ve||document.createElement("a"),ve.setAttribute("href",x);const R=ve.pathname;return"/"===R.charAt(0)?R:`/${R}`}(A)}resetBaseElement(){ae=null}getUserAgent(){return window.navigator.userAgent}getCookie(R){return(0,p.\u0275parseCookieValue)(document.cookie,R)}}let ve,ae=null;const pe=new N.InjectionToken("TRANSITION_ID"),le=[{provide:N.APP_INITIALIZER,useFactory:function(x,R,A){return()=>{A.get(N.ApplicationInitStatus).donePromise.then(()=>{const O=(0,p.\u0275getDOM)(),W=R.querySelectorAll(`style[ng-transition="${x}"]`);for(let Re=0;Re<W.length;Re++)O.remove(W[Re])})}},deps:[pe,p.DOCUMENT,N.Injector],multi:!0}];class Ue{static init(){(0,N.setTestabilityGetter)(new Ue)}addToWindow(R){N.\u0275global.getAngularTestability=(O,W=!0)=>{const Re=R.findTestabilityInTree(O,W);if(null==Re)throw new Error("Could not find testability for element.");return Re},N.\u0275global.getAllAngularTestabilities=()=>R.getAllTestabilities(),N.\u0275global.getAllAngularRootElements=()=>R.getAllRootElements(),N.\u0275global.frameworkStabilizers||(N.\u0275global.frameworkStabilizers=[]),N.\u0275global.frameworkStabilizers.push(O=>{const W=N.\u0275global.getAllAngularTestabilities();let Re=W.length,Ze=!1;const dt=function(We){Ze=Ze||We,Re--,0==Re&&O(Ze)};W.forEach(function(We){We.whenStable(dt)})})}findTestabilityInTree(R,A,O){if(null==A)return null;const W=R.getTestability(A);return null!=W?W:O?(0,p.\u0275getDOM)().isShadowRoot(A)?this.findTestabilityInTree(R,A.host,!0):this.findTestabilityInTree(R,A.parentElement,!0):null}}let Je=(()=>{class x{build(){return new XMLHttpRequest}}return x.\u0275fac=function(A){return new(A||x)},x.\u0275prov=N.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})();const me=new N.InjectionToken("EventManagerPlugins");let X=(()=>{class x{constructor(A,O){this._zone=O,this._eventNameToPlugin=new Map,A.forEach(W=>W.manager=this),this._plugins=A.slice().reverse()}addEventListener(A,O,W){return this._findPluginFor(O).addEventListener(A,O,W)}addGlobalEventListener(A,O,W){return this._findPluginFor(O).addGlobalEventListener(A,O,W)}getZone(){return this._zone}_findPluginFor(A){const O=this._eventNameToPlugin.get(A);if(O)return O;const W=this._plugins;for(let Re=0;Re<W.length;Re++){const Ze=W[Re];if(Ze.supports(A))return this._eventNameToPlugin.set(A,Ze),Ze}throw new Error(`No event manager plugin found for event ${A}`)}}return x.\u0275fac=function(A){return new(A||x)(N.\u0275\u0275inject(me),N.\u0275\u0275inject(N.NgZone))},x.\u0275prov=N.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})();class se{constructor(R){this._doc=R}addGlobalEventListener(R,A,O){const W=(0,p.\u0275getDOM)().getGlobalEventTarget(this._doc,R);if(!W)throw new Error(`Unsupported event target ${W} for event ${A}`);return this.addEventListener(W,A,O)}}let ee=(()=>{class x{constructor(){this._stylesSet=new Set}addStyles(A){const O=new Set;A.forEach(W=>{this._stylesSet.has(W)||(this._stylesSet.add(W),O.add(W))}),this.onStylesAdded(O)}onStylesAdded(A){}getAllStyles(){return Array.from(this._stylesSet)}}return x.\u0275fac=function(A){return new(A||x)},x.\u0275prov=N.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})(),De=(()=>{class x extends ee{constructor(A){super(),this._doc=A,this._hostNodes=new Map,this._hostNodes.set(A.head,[])}_addStylesToHost(A,O,W){A.forEach(Re=>{const Ze=this._doc.createElement("style");Ze.textContent=Re,W.push(O.appendChild(Ze))})}addHost(A){const O=[];this._addStylesToHost(this._stylesSet,A,O),this._hostNodes.set(A,O)}removeHost(A){const O=this._hostNodes.get(A);O&&O.forEach(fe),this._hostNodes.delete(A)}onStylesAdded(A){this._hostNodes.forEach((O,W)=>{this._addStylesToHost(A,W,O)})}ngOnDestroy(){this._hostNodes.forEach(A=>A.forEach(fe))}}return x.\u0275fac=function(A){return new(A||x)(N.\u0275\u0275inject(p.DOCUMENT))},x.\u0275prov=N.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})();function fe(x){(0,p.\u0275getDOM)().remove(x)}const Te={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/"},z=/%COMP%/g;function xe(x){return"_ngcontent-%COMP%".replace(z,x)}function Le(x){return"_nghost-%COMP%".replace(z,x)}function L(x,R,A){for(let O=0;O<R.length;O++){let W=R[O];Array.isArray(W)?L(x,W,A):(W=W.replace(z,x),A.push(W))}return A}function G(x){return R=>{if("__ngUnwrap__"===R)return x;!1===x(R)&&(R.preventDefault(),R.returnValue=!1)}}let K=(()=>{class x{constructor(A,O,W){this.eventManager=A,this.sharedStylesHost=O,this.appId=W,this.rendererByCompId=new Map,this.defaultRenderer=new q(A)}createRenderer(A,O){if(!A||!O)return this.defaultRenderer;switch(O.encapsulation){case N.ViewEncapsulation.Emulated:{let W=this.rendererByCompId.get(O.id);return W||(W=new it(this.eventManager,this.sharedStylesHost,O,this.appId),this.rendererByCompId.set(O.id,W)),W.applyToHost(A),W}case 1:case N.ViewEncapsulation.ShadowDom:return new zt(this.eventManager,this.sharedStylesHost,A,O);default:if(!this.rendererByCompId.has(O.id)){const W=L(O.id,O.styles,[]);this.sharedStylesHost.addStyles(W),this.rendererByCompId.set(O.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return x.\u0275fac=function(A){return new(A||x)(N.\u0275\u0275inject(X),N.\u0275\u0275inject(De),N.\u0275\u0275inject(N.APP_ID))},x.\u0275prov=N.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})();class q{constructor(R){this.eventManager=R,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(R,A){return A?document.createElementNS(Te[A]||A,R):document.createElement(R)}createComment(R){return document.createComment(R)}createText(R){return document.createTextNode(R)}appendChild(R,A){R.appendChild(A)}insertBefore(R,A,O){R&&R.insertBefore(A,O)}removeChild(R,A){R&&R.removeChild(A)}selectRootElement(R,A){let O="string"==typeof R?document.querySelector(R):R;if(!O)throw new Error(`The selector "${R}" did not match any elements`);return A||(O.textContent=""),O}parentNode(R){return R.parentNode}nextSibling(R){return R.nextSibling}setAttribute(R,A,O,W){if(W){A=W+":"+A;const Re=Te[W];Re?R.setAttributeNS(Re,A,O):R.setAttribute(A,O)}else R.setAttribute(A,O)}removeAttribute(R,A,O){if(O){const W=Te[O];W?R.removeAttributeNS(W,A):R.removeAttribute(`${O}:${A}`)}else R.removeAttribute(A)}addClass(R,A){R.classList.add(A)}removeClass(R,A){R.classList.remove(A)}setStyle(R,A,O,W){W&(N.RendererStyleFlags2.DashCase|N.RendererStyleFlags2.Important)?R.style.setProperty(A,O,W&N.RendererStyleFlags2.Important?"important":""):R.style[A]=O}removeStyle(R,A,O){O&N.RendererStyleFlags2.DashCase?R.style.removeProperty(A):R.style[A]=""}setProperty(R,A,O){R[A]=O}setValue(R,A){R.nodeValue=A}listen(R,A,O){return"string"==typeof R?this.eventManager.addGlobalEventListener(R,A,G(O)):this.eventManager.addEventListener(R,A,G(O))}}class it extends q{constructor(R,A,O,W){super(R),this.component=O;const Re=L(W+"-"+O.id,O.styles,[]);A.addStyles(Re),this.contentAttr=xe(W+"-"+O.id),this.hostAttr=Le(W+"-"+O.id)}applyToHost(R){super.setAttribute(R,this.hostAttr,"")}createElement(R,A){const O=super.createElement(R,A);return super.setAttribute(O,this.contentAttr,""),O}}class zt extends q{constructor(R,A,O,W){super(R),this.sharedStylesHost=A,this.hostEl=O,this.shadowRoot=O.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Re=L(W.id,W.styles,[]);for(let Ze=0;Ze<Re.length;Ze++){const dt=document.createElement("style");dt.textContent=Re[Ze],this.shadowRoot.appendChild(dt)}}nodeOrShadowRoot(R){return R===this.hostEl?this.shadowRoot:R}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(R,A){return super.appendChild(this.nodeOrShadowRoot(R),A)}insertBefore(R,A,O){return super.insertBefore(this.nodeOrShadowRoot(R),A,O)}removeChild(R,A){return super.removeChild(this.nodeOrShadowRoot(R),A)}parentNode(R){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(R)))}}let Oe=(()=>{class x extends se{constructor(A){super(A)}supports(A){return!0}addEventListener(A,O,W){return A.addEventListener(O,W,!1),()=>this.removeEventListener(A,O,W)}removeEventListener(A,O,W){return A.removeEventListener(O,W)}}return x.\u0275fac=function(A){return new(A||x)(N.\u0275\u0275inject(p.DOCUMENT))},x.\u0275prov=N.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})();const Pt=["alt","control","meta","shift"],Ie={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},rt={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},gn={alt:x=>x.altKey,control:x=>x.ctrlKey,meta:x=>x.metaKey,shift:x=>x.shiftKey};let cn=(()=>{class x extends se{constructor(A){super(A)}supports(A){return null!=x.parseEventName(A)}addEventListener(A,O,W){const Re=x.parseEventName(O),Ze=x.eventCallback(Re.fullKey,W,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,p.\u0275getDOM)().onAndCancel(A,Re.domEventName,Ze))}static parseEventName(A){const O=A.toLowerCase().split("."),W=O.shift();if(0===O.length||"keydown"!==W&&"keyup"!==W)return null;const Re=x._normalizeKey(O.pop());let Ze="";if(Pt.forEach(We=>{const Bn=O.indexOf(We);Bn>-1&&(O.splice(Bn,1),Ze+=We+".")}),Ze+=Re,0!=O.length||0===Re.length)return null;const dt={};return dt.domEventName=W,dt.fullKey=Ze,dt}static getEventFullKey(A){let O="",W=function(x){let R=x.key;if(null==R){if(R=x.keyIdentifier,null==R)return"Unidentified";R.startsWith("U+")&&(R=String.fromCharCode(parseInt(R.substring(2),16)),3===x.location&&rt.hasOwnProperty(R)&&(R=rt[R]))}return Ie[R]||R}(A);return W=W.toLowerCase()," "===W?W="space":"."===W&&(W="dot"),Pt.forEach(Re=>{Re!=W&&gn[Re](A)&&(O+=Re+".")}),O+=W,O}static eventCallback(A,O,W){return Re=>{x.getEventFullKey(Re)===A&&W.runGuarded(()=>O(Re))}}static _normalizeKey(A){return"esc"===A?"escape":A}}return x.\u0275fac=function(A){return new(A||x)(N.\u0275\u0275inject(p.DOCUMENT))},x.\u0275prov=N.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})();function Ht(){ge.makeCurrent(),Ue.init()}const pr=[{provide:N.PLATFORM_ID,useValue:p.\u0275PLATFORM_BROWSER_ID},{provide:N.PLATFORM_INITIALIZER,useValue:Ht,multi:!0},{provide:p.DOCUMENT,useFactory:function(){return(0,N.\u0275setDocument)(document),document},deps:[]}],zr=(0,N.createPlatformFactory)(N.platformCore,"browser",pr),Wt=[{provide:N.\u0275INJECTOR_SCOPE,useValue:"root"},{provide:N.ErrorHandler,useFactory:function(){return new N.ErrorHandler},deps:[]},{provide:me,useClass:Oe,multi:!0,deps:[p.DOCUMENT,N.NgZone,N.PLATFORM_ID]},{provide:me,useClass:cn,multi:!0,deps:[p.DOCUMENT]},{provide:K,useClass:K,deps:[X,De,N.APP_ID]},{provide:N.RendererFactory2,useExisting:K},{provide:ee,useExisting:De},{provide:De,useClass:De,deps:[p.DOCUMENT]},{provide:N.Testability,useClass:N.Testability,deps:[N.NgZone]},{provide:X,useClass:X,deps:[me,N.NgZone]},{provide:p.XhrFactory,useClass:Je,deps:[]}];let Wn=(()=>{class x{constructor(A){if(A)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(A){return{ngModule:x,providers:[{provide:N.APP_ID,useValue:A.appId},{provide:pe,useExisting:N.APP_ID},le]}}}return x.\u0275fac=function(A){return new(A||x)(N.\u0275\u0275inject(x,12))},x.\u0275mod=N.\u0275\u0275defineNgModule({type:x}),x.\u0275inj=N.\u0275\u0275defineInjector({providers:Wt,imports:[p.CommonModule,N.ApplicationModule]}),x})(),Kn=(()=>{class x{constructor(A){this._doc=A,this._dom=(0,p.\u0275getDOM)()}addTag(A,O=!1){return A?this._getOrCreateElement(A,O):null}addTags(A,O=!1){return A?A.reduce((W,Re)=>(Re&&W.push(this._getOrCreateElement(Re,O)),W),[]):[]}getTag(A){return A&&this._doc.querySelector(`meta[${A}]`)||null}getTags(A){if(!A)return[];const O=this._doc.querySelectorAll(`meta[${A}]`);return O?[].slice.call(O):[]}updateTag(A,O){if(!A)return null;O=O||this._parseSelector(A);const W=this.getTag(O);return W?this._setMetaElementAttributes(A,W):this._getOrCreateElement(A,!0)}removeTag(A){this.removeTagElement(this.getTag(A))}removeTagElement(A){A&&this._dom.remove(A)}_getOrCreateElement(A,O=!1){if(!O){const Ze=this._parseSelector(A),dt=this.getTags(Ze).filter(We=>this._containsAttributes(A,We))[0];if(void 0!==dt)return dt}const W=this._dom.createElement("meta");return this._setMetaElementAttributes(A,W),this._doc.getElementsByTagName("head")[0].appendChild(W),W}_setMetaElementAttributes(A,O){return Object.keys(A).forEach(W=>O.setAttribute(this._getMetaKeyMap(W),A[W])),O}_parseSelector(A){const O=A.name?"name":"property";return`${O}="${A[O]}"`}_containsAttributes(A,O){return Object.keys(A).every(W=>O.getAttribute(this._getMetaKeyMap(W))===A[W])}_getMetaKeyMap(A){return di[A]||A}}return x.\u0275fac=function(A){return new(A||x)(N.\u0275\u0275inject(p.DOCUMENT))},x.\u0275prov=N.\u0275\u0275defineInjectable({token:x,factory:function(A){let O=null;return O=A?new A:new Kn((0,N.\u0275\u0275inject)(p.DOCUMENT)),O},providedIn:"root"}),x})();const di={httpEquiv:"http-equiv"};let tr=(()=>{class x{constructor(A){this._doc=A}getTitle(){return this._doc.title}setTitle(A){this._doc.title=A||""}}return x.\u0275fac=function(A){return new(A||x)(N.\u0275\u0275inject(p.DOCUMENT))},x.\u0275prov=N.\u0275\u0275defineInjectable({token:x,factory:function(A){let O=null;return O=A?new A:new tr((0,N.\u0275\u0275inject)(p.DOCUMENT)),O},providedIn:"root"}),x})();function Ln(x,R){"undefined"!=typeof COMPILED&&COMPILED||((N.\u0275global.ng=N.\u0275global.ng||{})[x]=R)}const Ut="undefined"!=typeof window&&window||{};class nt{constructor(R,A){this.msPerTick=R,this.numTicks=A}}class Me{constructor(R){this.appRef=R.injector.get(N.ApplicationRef)}timeChangeDetection(R){const A=R&&R.record,O="Change Detection",W=null!=Ut.console.profile;A&&W&&Ut.console.profile(O);const Re=$e();let Ze=0;for(;Ze<5||$e()-Re<500;)this.appRef.tick(),Ze++;const dt=$e();A&&W&&Ut.console.profileEnd(O);const We=(dt-Re)/Ze;return Ut.console.log(`ran ${Ze} change detection cycles`),Ut.console.log(`${We.toFixed(2)} ms per check`),new nt(We,Ze)}}function $e(){return Ut.performance&&Ut.performance.now?Ut.performance.now():(new Date).getTime()}const qn="profiler";function Tn(x){return Ln(qn,new Me(x)),x}function Jt(){Ln(qn,null)}function Vn(x){const R={"&":"&a;",'"':"&q;","'":"&s;","<":"&l;",">":"&g;"};return x.replace(/[&"'<>]/g,A=>R[A])}function Kr(x){return x}let ct=(()=>{class x{constructor(){this.store={},this.onSerializeCallbacks={}}static init(A){const O=new x;return O.store=A,O}get(A,O){return void 0!==this.store[A]?this.store[A]:O}set(A,O){this.store[A]=O}remove(A){delete this.store[A]}hasKey(A){return this.store.hasOwnProperty(A)}onSerialize(A,O){this.onSerializeCallbacks[A]=O}toJson(){for(const A in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(A))try{this.store[A]=this.onSerializeCallbacks[A]()}catch(O){console.warn("Exception in onSerialize callback: ",O)}return JSON.stringify(this.store)}}return x.\u0275fac=function(A){return new(A||x)},x.\u0275prov=N.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})();function gr(x,R){const A=x.getElementById(R+"-state");let O={};if(A&&A.textContent)try{O=JSON.parse(function(x){const R={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return x.replace(/&[^;]+;/g,A=>R[A])}(A.textContent))}catch(W){console.warn("Exception while restoring TransferState for app "+R,W)}return ct.init(O)}let ht=(()=>{class x{}return x.\u0275fac=function(A){return new(A||x)},x.\u0275mod=N.\u0275\u0275defineNgModule({type:x}),x.\u0275inj=N.\u0275\u0275defineInjector({providers:[{provide:ct,useFactory:gr,deps:[p.DOCUMENT,N.APP_ID]}]}),x})();class Pr{static all(){return()=>!0}static css(R){return A=>null!=A.nativeElement&&function(x,R){return!!(0,p.\u0275getDOM)().isElementNode(x)&&(x.matches&&x.matches(R)||x.msMatchesSelector&&x.msMatchesSelector(R)||x.webkitMatchesSelector&&x.webkitMatchesSelector(R))}(A.nativeElement,R)}static directive(R){return A=>-1!==A.providerTokens.indexOf(R)}}const Fn={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},Nn=new N.InjectionToken("HammerGestureConfig"),mn=new N.InjectionToken("HammerLoader");let kn=(()=>{class x{constructor(){this.events=[],this.overrides={}}buildHammer(A){const O=new Hammer(A,this.options);O.get("pinch").set({enable:!0}),O.get("rotate").set({enable:!0});for(const W in this.overrides)O.get(W).set(this.overrides[W]);return O}}return x.\u0275fac=function(A){return new(A||x)},x.\u0275prov=N.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})(),Qn=(()=>{class x extends se{constructor(A,O,W,Re){super(A),this._config=O,this.console=W,this.loader=Re,this._loaderPromise=null}supports(A){return!(!Fn.hasOwnProperty(A.toLowerCase())&&!this.isCustomEvent(A)||!window.Hammer&&!this.loader)}addEventListener(A,O,W){const Re=this.manager.getZone();if(O=O.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();let Ze=!1,dt=()=>{Ze=!0};return this._loaderPromise.then(()=>{window.Hammer?Ze||(dt=this.addEventListener(A,O,W)):dt=()=>{}}).catch(()=>{dt=()=>{}}),()=>{dt()}}return Re.runOutsideAngular(()=>{const Ze=this._config.buildHammer(A),dt=function(We){Re.runGuarded(function(){W(We)})};return Ze.on(O,dt),()=>{Ze.off(O,dt),"function"==typeof Ze.destroy&&Ze.destroy()}})}isCustomEvent(A){return this._config.events.indexOf(A)>-1}}return x.\u0275fac=function(A){return new(A||x)(N.\u0275\u0275inject(p.DOCUMENT),N.\u0275\u0275inject(Nn),N.\u0275\u0275inject(N.\u0275Console),N.\u0275\u0275inject(mn,8))},x.\u0275prov=N.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})(),kt=(()=>{class x{}return x.\u0275fac=function(A){return new(A||x)},x.\u0275mod=N.\u0275\u0275defineNgModule({type:x}),x.\u0275inj=N.\u0275\u0275defineInjector({providers:[{provide:me,useClass:Qn,multi:!0,deps:[p.DOCUMENT,Nn,N.\u0275Console,[new N.Optional,mn]]},{provide:Nn,useClass:kn,deps:[]}]}),x})(),It=(()=>{class x{}return x.\u0275fac=function(A){return new(A||x)},x.\u0275prov=N.\u0275\u0275defineInjectable({token:x,factory:function(A){let O=null;return O=A?new(A||x):N.\u0275\u0275inject(mr),O},providedIn:"root"}),x})(),mr=(()=>{class x extends It{constructor(A){super(),this._doc=A}sanitize(A,O){if(null==O)return null;switch(A){case N.SecurityContext.NONE:return O;case N.SecurityContext.HTML:return(0,N.\u0275allowSanitizationBypassAndThrow)(O,"HTML")?(0,N.\u0275unwrapSafeValue)(O):(0,N.\u0275_sanitizeHtml)(this._doc,String(O)).toString();case N.SecurityContext.STYLE:return(0,N.\u0275allowSanitizationBypassAndThrow)(O,"Style")?(0,N.\u0275unwrapSafeValue)(O):O;case N.SecurityContext.SCRIPT:if((0,N.\u0275allowSanitizationBypassAndThrow)(O,"Script"))return(0,N.\u0275unwrapSafeValue)(O);throw new Error("unsafe value used in a script context");case N.SecurityContext.URL:return(0,N.\u0275getSanitizationBypassType)(O),(0,N.\u0275allowSanitizationBypassAndThrow)(O,"URL")?(0,N.\u0275unwrapSafeValue)(O):(0,N.\u0275_sanitizeUrl)(String(O));case N.SecurityContext.RESOURCE_URL:if((0,N.\u0275allowSanitizationBypassAndThrow)(O,"ResourceURL"))return(0,N.\u0275unwrapSafeValue)(O);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${A} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(A){return(0,N.\u0275bypassSanitizationTrustHtml)(A)}bypassSecurityTrustStyle(A){return(0,N.\u0275bypassSanitizationTrustStyle)(A)}bypassSecurityTrustScript(A){return(0,N.\u0275bypassSanitizationTrustScript)(A)}bypassSecurityTrustUrl(A){return(0,N.\u0275bypassSanitizationTrustUrl)(A)}bypassSecurityTrustResourceUrl(A){return(0,N.\u0275bypassSanitizationTrustResourceUrl)(A)}}return x.\u0275fac=function(A){return new(A||x)(N.\u0275\u0275inject(p.DOCUMENT))},x.\u0275prov=N.\u0275\u0275defineInjectable({token:x,factory:function(A){let O=null;return O=A?new A:function(x){return new mr(x.get(p.DOCUMENT))}(N.\u0275\u0275inject(N.Injector)),O},providedIn:"root"}),x})();const en=new N.Version("13.1.1")}},qe=>{qe(qe.s=835)}]);